diff options
author | Mario <mario@mariovavti.com> | 2023-07-04 08:47:22 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2023-07-04 08:47:22 +0000 |
commit | d31eb4c89cd0a53eb3caaf2d0ce2f317c251aa89 (patch) | |
tree | 559fac980ab869cd27b3183c9f22ccf667888614 /library/fullcalendar/packages/web-component/index.global.js | |
parent | 6753d260e47bddbc61bbfe1fe6d9de384afc2da6 (diff) | |
download | volse-hubzilla-d31eb4c89cd0a53eb3caaf2d0ce2f317c251aa89.tar.gz volse-hubzilla-d31eb4c89cd0a53eb3caaf2d0ce2f317c251aa89.tar.bz2 volse-hubzilla-d31eb4c89cd0a53eb3caaf2d0ce2f317c251aa89.zip |
update fullcalendar
Diffstat (limited to 'library/fullcalendar/packages/web-component/index.global.js')
-rw-r--r-- | library/fullcalendar/packages/web-component/index.global.js | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/library/fullcalendar/packages/web-component/index.global.js b/library/fullcalendar/packages/web-component/index.global.js index aa22a52a3..8f6a13c0b 100644 --- a/library/fullcalendar/packages/web-component/index.global.js +++ b/library/fullcalendar/packages/web-component/index.global.js @@ -1,7 +1,7 @@ /*! -FullCalendar Web Component v6.0.3 -Docs & License: https://fullcalendar.io -(c) 2022 Adam Shaw +FullCalendar Web Component v6.1.8 +Docs & License: https://fullcalendar.io/docs/web-component +(c) 2023 Adam Shaw */ (function (core) { 'use strict'; @@ -43,8 +43,17 @@ Docs & License: https://fullcalendar.io this._calendar.resetOptions(options); } else { - this.innerHTML = '<div></div>'; - let calendarEl = this.querySelector('div'); + let root; + if (this.hasAttribute('shadow')) { + this.attachShadow({ mode: 'open' }); + root = this.shadowRoot; + } + else { + // eslint-disable-next-line @typescript-eslint/no-this-alias + root = this; + } + root.innerHTML = '<div></div>'; + let calendarEl = root.querySelector('div'); let calendar = new core.Calendar(calendarEl, options); calendar.render(); this._calendar = calendar; |