aboutsummaryrefslogtreecommitdiffstats
path: root/library/fullcalendar/packages/web-component/index.global.js
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2023-07-11 18:57:18 +0000
committerMario <mario@mariovavti.com>2023-07-11 18:57:18 +0000
commit63fb8d03929189bfc8cbf53d23cb79984fe2c3cd (patch)
treeb9f74bd8c7721dca7ece251fdbb9a7c4fe9b949a /library/fullcalendar/packages/web-component/index.global.js
parent57796a2f962d045445cbf69237bb3d6786e4d0d4 (diff)
parent384de0925e502cfa8fe6ca287530ef5529fdff10 (diff)
downloadvolse-hubzilla-8.6.tar.gz
volse-hubzilla-8.6.tar.bz2
volse-hubzilla-8.6.zip
Merge branch '8.6RC'8.6
Diffstat (limited to 'library/fullcalendar/packages/web-component/index.global.js')
-rw-r--r--library/fullcalendar/packages/web-component/index.global.js19
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;