aboutsummaryrefslogtreecommitdiffstats
path: root/library/fullcalendar/packages/web-component/index.global.js
diff options
context:
space:
mode:
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;