From 4f734e0f374428be6424faee0a56458d4fa80396 Mon Sep 17 00:00:00 2001 From: polo Date: Tue, 23 Dec 2025 21:34:47 +0100 Subject: installation de fullcalendar avec composer et CDN au lieu de GIT --- .../packages/web-component/index.global.js | 79 ---------------------- .../packages/web-component/index.global.min.js | 6 -- 2 files changed, 85 deletions(-) delete mode 100644 public/js/fullcalendar/packages/web-component/index.global.js delete mode 100644 public/js/fullcalendar/packages/web-component/index.global.min.js (limited to 'public/js/fullcalendar/packages/web-component') diff --git a/public/js/fullcalendar/packages/web-component/index.global.js b/public/js/fullcalendar/packages/web-component/index.global.js deleted file mode 100644 index 450b052..0000000 --- a/public/js/fullcalendar/packages/web-component/index.global.js +++ /dev/null @@ -1,79 +0,0 @@ -/*! -FullCalendar Web Component v6.1.17 -Docs & License: https://fullcalendar.io/docs/web-component -(c) 2024 Adam Shaw -*/ -(function (core) { - 'use strict'; - - class FullCalendarElement extends HTMLElement { - constructor() { - super(...arguments); - this._calendar = null; - this._options = null; - } - connectedCallback() { - this._handleOptionsStr(this.getAttribute('options')); - } - disconnectedCallback() { - this._handleOptionsStr(null); - } - attributeChangedCallback(name, oldVal, newVal) { - if (name === 'options' && - this._calendar // initial render happened - ) { - this._handleOptionsStr(newVal); - } - } - get options() { - return this._options; - } - set options(options) { - this._handleOptions(options); - } - getApi() { - return this._calendar; - } - _handleOptionsStr(optionsStr) { - this._handleOptions(optionsStr ? JSON.parse(optionsStr) : null); - } - _handleOptions(options) { - if (options) { - if (this._calendar) { - this._calendar.resetOptions(options); - } - else { - 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 = '
'; - let calendarEl = root.querySelector('div'); - let calendar = new core.Calendar(calendarEl, options); - calendar.render(); - this._calendar = calendar; - } - this._options = options; - } - else { - if (this._calendar) { - this._calendar.destroy(); - this._calendar = null; - } - this._options = null; - } - } - static get observedAttributes() { - return ['options']; - } - } - - globalThis.FullCalendarElement = FullCalendarElement; - customElements.define('full-calendar', FullCalendarElement); - -})(FullCalendar); diff --git a/public/js/fullcalendar/packages/web-component/index.global.min.js b/public/js/fullcalendar/packages/web-component/index.global.min.js deleted file mode 100644 index 321e59b..0000000 --- a/public/js/fullcalendar/packages/web-component/index.global.min.js +++ /dev/null @@ -1,6 +0,0 @@ -/*! -FullCalendar Web Component v6.1.17 -Docs & License: https://fullcalendar.io/docs/web-component -(c) 2024 Adam Shaw -*/ -!function(t){"use strict";class e extends HTMLElement{constructor(){super(...arguments),this._calendar=null,this._options=null}connectedCallback(){this._handleOptionsStr(this.getAttribute("options"))}disconnectedCallback(){this._handleOptionsStr(null)}attributeChangedCallback(t,e,n){"options"===t&&this._calendar&&this._handleOptionsStr(n)}get options(){return this._options}set options(t){this._handleOptions(t)}getApi(){return this._calendar}_handleOptionsStr(t){this._handleOptions(t?JSON.parse(t):null)}_handleOptions(e){if(e){if(this._calendar)this._calendar.resetOptions(e);else{let n;this.hasAttribute("shadow")?(this.attachShadow({mode:"open"}),n=this.shadowRoot):n=this,n.innerHTML="
";let s=n.querySelector("div"),i=new t.Calendar(s,e);i.render(),this._calendar=i}this._options=e}else this._calendar&&(this._calendar.destroy(),this._calendar=null),this._options=null}static get observedAttributes(){return["options"]}}globalThis.FullCalendarElement=e,customElements.define("full-calendar",e)}(FullCalendar); \ No newline at end of file -- cgit v1.2.3