From 56ec55110a27a13cc2c7d1fb09f1650f8c4cd842 Mon Sep 17 00:00:00 2001 From: Mario Date: Mon, 15 Jun 2020 08:19:13 +0000 Subject: update fullcalendar to version 4.4.2 --- library/fullcalendar/demos/background-events.html | 109 ----------- library/fullcalendar/demos/daygrid-views.html | 109 ----------- library/fullcalendar/demos/default.html | 103 ---------- .../demos/external-dragging-2cals.html | 75 ------- .../demos/external-dragging-builtin.html | 149 -------------- library/fullcalendar/demos/full-height.html | 129 ------------- library/fullcalendar/demos/google-calendar.html | 86 --------- library/fullcalendar/demos/js/theme-chooser.js | 141 -------------- library/fullcalendar/demos/json.html | 93 --------- library/fullcalendar/demos/json/events.json | 56 ------ library/fullcalendar/demos/list-views.html | 118 ----------- library/fullcalendar/demos/locales.html | 152 --------------- library/fullcalendar/demos/php/get-events.php | 50 ----- library/fullcalendar/demos/php/get-time-zones.php | 9 - library/fullcalendar/demos/php/utils.php | 130 ------------- library/fullcalendar/demos/rrule.html | 73 ------- library/fullcalendar/demos/selectable.html | 125 ------------ library/fullcalendar/demos/themes.html | 215 --------------------- library/fullcalendar/demos/time-zones.html | 145 -------------- library/fullcalendar/demos/timegrid-views.html | 113 ----------- library/fullcalendar/demos/week-numbers.html | 118 ----------- 21 files changed, 2298 deletions(-) delete mode 100644 library/fullcalendar/demos/background-events.html delete mode 100644 library/fullcalendar/demos/daygrid-views.html delete mode 100644 library/fullcalendar/demos/default.html delete mode 100644 library/fullcalendar/demos/external-dragging-2cals.html delete mode 100644 library/fullcalendar/demos/external-dragging-builtin.html delete mode 100644 library/fullcalendar/demos/full-height.html delete mode 100644 library/fullcalendar/demos/google-calendar.html delete mode 100644 library/fullcalendar/demos/js/theme-chooser.js delete mode 100644 library/fullcalendar/demos/json.html delete mode 100644 library/fullcalendar/demos/json/events.json delete mode 100644 library/fullcalendar/demos/list-views.html delete mode 100644 library/fullcalendar/demos/locales.html delete mode 100644 library/fullcalendar/demos/php/get-events.php delete mode 100644 library/fullcalendar/demos/php/get-time-zones.php delete mode 100644 library/fullcalendar/demos/php/utils.php delete mode 100644 library/fullcalendar/demos/rrule.html delete mode 100644 library/fullcalendar/demos/selectable.html delete mode 100644 library/fullcalendar/demos/themes.html delete mode 100644 library/fullcalendar/demos/time-zones.html delete mode 100644 library/fullcalendar/demos/timegrid-views.html delete mode 100644 library/fullcalendar/demos/week-numbers.html (limited to 'library/fullcalendar/demos') diff --git a/library/fullcalendar/demos/background-events.html b/library/fullcalendar/demos/background-events.html deleted file mode 100644 index a36fede8d..000000000 --- a/library/fullcalendar/demos/background-events.html +++ /dev/null @@ -1,109 +0,0 @@ - - - - - - - - - - - - - - - - - - -
- - - diff --git a/library/fullcalendar/demos/daygrid-views.html b/library/fullcalendar/demos/daygrid-views.html deleted file mode 100644 index 96220fb3e..000000000 --- a/library/fullcalendar/demos/daygrid-views.html +++ /dev/null @@ -1,109 +0,0 @@ - - - - - - - - - - - - - - -
- - - diff --git a/library/fullcalendar/demos/default.html b/library/fullcalendar/demos/default.html deleted file mode 100644 index a2b3849c8..000000000 --- a/library/fullcalendar/demos/default.html +++ /dev/null @@ -1,103 +0,0 @@ - - - - - - - - - - - - - - -
- - - diff --git a/library/fullcalendar/demos/external-dragging-2cals.html b/library/fullcalendar/demos/external-dragging-2cals.html deleted file mode 100644 index bf4f08470..000000000 --- a/library/fullcalendar/demos/external-dragging-2cals.html +++ /dev/null @@ -1,75 +0,0 @@ - - - - - - - - - - - - - - -
-
- - - diff --git a/library/fullcalendar/demos/external-dragging-builtin.html b/library/fullcalendar/demos/external-dragging-builtin.html deleted file mode 100644 index f9471b0ef..000000000 --- a/library/fullcalendar/demos/external-dragging-builtin.html +++ /dev/null @@ -1,149 +0,0 @@ - - - - - - - - - - - - - - - - - -
- -
-

Draggable Events

- -
-
My Event 1
-
My Event 2
-
My Event 3
-
My Event 4
-
My Event 5
-
- -

- - -

-
- -
- -
- -
- - diff --git a/library/fullcalendar/demos/full-height.html b/library/fullcalendar/demos/full-height.html deleted file mode 100644 index 799622eab..000000000 --- a/library/fullcalendar/demos/full-height.html +++ /dev/null @@ -1,129 +0,0 @@ - - - - - - - - - - - - - - - - - - -
-
-
- - - diff --git a/library/fullcalendar/demos/google-calendar.html b/library/fullcalendar/demos/google-calendar.html deleted file mode 100644 index 96194ac62..000000000 --- a/library/fullcalendar/demos/google-calendar.html +++ /dev/null @@ -1,86 +0,0 @@ - - - - - - - - - - - - - - - - - -
loading...
- -
- - - diff --git a/library/fullcalendar/demos/js/theme-chooser.js b/library/fullcalendar/demos/js/theme-chooser.js deleted file mode 100644 index 92a7c4753..000000000 --- a/library/fullcalendar/demos/js/theme-chooser.js +++ /dev/null @@ -1,141 +0,0 @@ - -function initThemeChooser(settings) { - var isInitialized = false; - var currentThemeSystem; // don't set this directly. use setThemeSystem - var currentStylesheetEl; - var loadingEl = document.getElementById('loading'); - var systemSelectEl = document.querySelector('#theme-system-selector select'); - var themeSelectWrapEls = Array.prototype.slice.call( // convert to real array - document.querySelectorAll('.selector[data-theme-system]') - ); - - systemSelectEl.addEventListener('change', function() { - setThemeSystem(this.value); - }); - - setThemeSystem(systemSelectEl.value); - - themeSelectWrapEls.forEach(function(themeSelectWrapEl) { - var themeSelectEl = themeSelectWrapEl.querySelector('select'); - - themeSelectWrapEl.addEventListener('change', function() { - setTheme( - currentThemeSystem, - themeSelectEl.options[themeSelectEl.selectedIndex].value - ); - }); - }); - - - function setThemeSystem(themeSystem) { - var selectedTheme; - - currentThemeSystem = themeSystem; - - themeSelectWrapEls.forEach(function(themeSelectWrapEl) { - var themeSelectEl = themeSelectWrapEl.querySelector('select'); - - if (themeSelectWrapEl.getAttribute('data-theme-system') === themeSystem) { - selectedTheme = themeSelectEl.options[themeSelectEl.selectedIndex].value; - themeSelectWrapEl.style.display = 'inline-block'; - } else { - themeSelectWrapEl.style.display = 'none'; - } - }); - - setTheme(themeSystem, selectedTheme); - } - - - function setTheme(themeSystem, themeName) { - var stylesheetUrl = generateStylesheetUrl(themeSystem, themeName); - var stylesheetEl; - - function done() { - if (!isInitialized) { - isInitialized = true; - settings.init(themeSystem); - } - else { - settings.change(themeSystem); - } - - showCredits(themeSystem, themeName); - } - - if (stylesheetUrl) { - stylesheetEl = document.createElement('link'); - stylesheetEl.setAttribute('rel', 'stylesheet'); - stylesheetEl.setAttribute('href', stylesheetUrl); - document.querySelector('head').appendChild(stylesheetEl); - - loadingEl.style.display = 'inline'; - - whenStylesheetLoaded(stylesheetEl, function() { - if (currentStylesheetEl) { - currentStylesheetEl.parentNode.removeChild(currentStylesheetEl); - } - currentStylesheetEl = stylesheetEl; - loadingEl.style.display = 'none'; - done(); - }); - } else { - if (currentStylesheetEl) { - currentStylesheetEl.parentNode.removeChild(currentStylesheetEl); - currentStylesheetEl = null - } - done(); - } - } - - - function generateStylesheetUrl(themeSystem, themeName) { - if (themeSystem === 'bootstrap') { - if (themeName) { - return 'https://bootswatch.com/4/' + themeName + '/bootstrap.min.css'; - } - else { // the default bootstrap theme - return 'https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css'; - } - } - } - - - function showCredits(themeSystem, themeName) { - var creditId; - - if (themeSystem.match('bootstrap')) { - if (themeName) { - creditId = 'bootstrap-custom'; - } - else { - creditId = 'bootstrap-standard'; - } - } - - Array.prototype.slice.call( // convert to real array - document.querySelectorAll('.credits') - ).forEach(function(creditEl) { - if (creditEl.getAttribute('data-credit-id') === creditId) { - creditEl.style.display = 'block'; - } else { - creditEl.style.display = 'none'; - } - }) - } - - - function whenStylesheetLoaded(linkNode, callback) { - var isReady = false; - - function ready() { - if (!isReady) { // avoid double-call - isReady = true; - callback(); - } - } - - linkNode.onload = ready; // does not work cross-browser - setTimeout(ready, 2000); // max wait. also handles browsers that don't support onload - } -} diff --git a/library/fullcalendar/demos/json.html b/library/fullcalendar/demos/json.html deleted file mode 100644 index a107361b0..000000000 --- a/library/fullcalendar/demos/json.html +++ /dev/null @@ -1,93 +0,0 @@ - - - - - - - - - - - - - - - - - - -
- php/get-events.php must be running. -
- -
loading...
- -
- - - diff --git a/library/fullcalendar/demos/json/events.json b/library/fullcalendar/demos/json/events.json deleted file mode 100644 index 466f837ed..000000000 --- a/library/fullcalendar/demos/json/events.json +++ /dev/null @@ -1,56 +0,0 @@ -[ - { - "title": "All Day Event", - "start": "2019-04-01" - }, - { - "title": "Long Event", - "start": "2019-04-07", - "end": "2019-04-10" - }, - { - "id": "999", - "title": "Repeating Event", - "start": "2019-04-09T16:00:00-05:00" - }, - { - "id": "999", - "title": "Repeating Event", - "start": "2019-04-16T16:00:00-05:00" - }, - { - "title": "Conference", - "start": "2019-04-11", - "end": "2019-04-13" - }, - { - "title": "Meeting", - "start": "2019-04-12T10:30:00-05:00", - "end": "2019-04-12T12:30:00-05:00" - }, - { - "title": "Lunch", - "start": "2019-04-12T12:00:00-05:00" - }, - { - "title": "Meeting", - "start": "2019-04-12T14:30:00-05:00" - }, - { - "title": "Happy Hour", - "start": "2019-04-12T17:30:00-05:00" - }, - { - "title": "Dinner", - "start": "2019-04-12T20:00:00" - }, - { - "title": "Birthday Party", - "start": "2019-04-13T07:00:00-05:00" - }, - { - "title": "Click for Google", - "url": "http://google.com/", - "start": "2019-04-28" - } -] diff --git a/library/fullcalendar/demos/list-views.html b/library/fullcalendar/demos/list-views.html deleted file mode 100644 index 744c08494..000000000 --- a/library/fullcalendar/demos/list-views.html +++ /dev/null @@ -1,118 +0,0 @@ - - - - - - - - - - - - - -
- - - diff --git a/library/fullcalendar/demos/locales.html b/library/fullcalendar/demos/locales.html deleted file mode 100644 index 9e94b4b62..000000000 --- a/library/fullcalendar/demos/locales.html +++ /dev/null @@ -1,152 +0,0 @@ - - - - - - - - - - - - - - - - - - - -
- - Locales: - - -
- -
- - - diff --git a/library/fullcalendar/demos/php/get-events.php b/library/fullcalendar/demos/php/get-events.php deleted file mode 100644 index 888201557..000000000 --- a/library/fullcalendar/demos/php/get-events.php +++ /dev/null @@ -1,50 +0,0 @@ -isWithinDayRange($range_start, $range_end)) { - $output_arrays[] = $event->toArray(); - } -} - -// Send JSON to the client. -echo json_encode($output_arrays); diff --git a/library/fullcalendar/demos/php/get-time-zones.php b/library/fullcalendar/demos/php/get-time-zones.php deleted file mode 100644 index 241e1bd18..000000000 --- a/library/fullcalendar/demos/php/get-time-zones.php +++ /dev/null @@ -1,9 +0,0 @@ -values. - // You can optionally force the timeZone of the parsed dates. - public function __construct($array, $timeZone=null) { - - $this->title = $array['title']; - - if (isset($array['allDay'])) { - // allDay has been explicitly specified - $this->allDay = (bool)$array['allDay']; - } - else { - // Guess allDay based off of ISO8601 date strings - $this->allDay = preg_match(self::ALL_DAY_REGEX, $array['start']) && - (!isset($array['end']) || preg_match(self::ALL_DAY_REGEX, $array['end'])); - } - - if ($this->allDay) { - // If dates are allDay, we want to parse them in UTC to avoid DST issues. - $timeZone = null; - } - - // Parse dates - $this->start = parseDateTime($array['start'], $timeZone); - $this->end = isset($array['end']) ? parseDateTime($array['end'], $timeZone) : null; - - // Record misc properties - foreach ($array as $name => $value) { - if (!in_array($name, array('title', 'allDay', 'start', 'end'))) { - $this->properties[$name] = $value; - } - } - } - - - // Returns whether the date range of our event intersects with the given all-day range. - // $rangeStart and $rangeEnd are assumed to be dates in UTC with 00:00:00 time. - public function isWithinDayRange($rangeStart, $rangeEnd) { - - // Normalize our event's dates for comparison with the all-day range. - $eventStart = stripTime($this->start); - - if (isset($this->end)) { - $eventEnd = stripTime($this->end); // normalize - } - else { - $eventEnd = $eventStart; // consider this a zero-duration event - } - - // Check if the two whole-day ranges intersect. - return $eventStart < $rangeEnd && $eventEnd >= $rangeStart; - } - - - // Converts this Event object back to a plain data array, to be used for generating JSON - public function toArray() { - - // Start with the misc properties (don't worry, PHP won't affect the original array) - $array = $this->properties; - - $array['title'] = $this->title; - - // Figure out the date format. This essentially encodes allDay into the date string. - if ($this->allDay) { - $format = 'Y-m-d'; // output like "2013-12-29" - } - else { - $format = 'c'; // full ISO8601 output, like "2013-12-29T09:00:00+08:00" - } - - // Serialize dates into strings - $array['start'] = $this->start->format($format); - if (isset($this->end)) { - $array['end'] = $this->end->format($format); - } - - return $array; - } - -} - - -// Date Utilities -//---------------------------------------------------------------------------------------------- - - -// Parses a string into a DateTime object, optionally forced into the given timeZone. -function parseDateTime($string, $timeZone=null) { - $date = new DateTime( - $string, - $timeZone ? $timeZone : new DateTimeZone('UTC') - // Used only when the string is ambiguous. - // Ignored if string has a timeZone offset in it. - ); - if ($timeZone) { - // If our timeZone was ignored above, force it. - $date->setTimezone($timeZone); - } - return $date; -} - - -// Takes the year/month/date values of the given DateTime and converts them to a new DateTime, -// but in UTC. -function stripTime($datetime) { - return new DateTime($datetime->format('Y-m-d')); -} diff --git a/library/fullcalendar/demos/rrule.html b/library/fullcalendar/demos/rrule.html deleted file mode 100644 index d98234242..000000000 --- a/library/fullcalendar/demos/rrule.html +++ /dev/null @@ -1,73 +0,0 @@ - - - - - - - - - - - - - - - - - - - - -
- - - diff --git a/library/fullcalendar/demos/selectable.html b/library/fullcalendar/demos/selectable.html deleted file mode 100644 index 3b0f84871..000000000 --- a/library/fullcalendar/demos/selectable.html +++ /dev/null @@ -1,125 +0,0 @@ - - - - - - - - - - - - - - - - -
- - - diff --git a/library/fullcalendar/demos/themes.html b/library/fullcalendar/demos/themes.html deleted file mode 100644 index 0f34ad04b..000000000 --- a/library/fullcalendar/demos/themes.html +++ /dev/null @@ -1,215 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - -
- -
- -
- Theme System: - - -
- - - - - -
- - - -
-
- -
- - - diff --git a/library/fullcalendar/demos/time-zones.html b/library/fullcalendar/demos/time-zones.html deleted file mode 100644 index 5330fea9b..000000000 --- a/library/fullcalendar/demos/time-zones.html +++ /dev/null @@ -1,145 +0,0 @@ - - - - - - - - - - - - - - - - - - -
- -
- Timezone: - -
- -
- loading... - php/get-events.php must be running. -
- -
- -
- -
- - - diff --git a/library/fullcalendar/demos/timegrid-views.html b/library/fullcalendar/demos/timegrid-views.html deleted file mode 100644 index 584991043..000000000 --- a/library/fullcalendar/demos/timegrid-views.html +++ /dev/null @@ -1,113 +0,0 @@ - - - - - - - - - - - - - - - - - - -
- - - diff --git a/library/fullcalendar/demos/week-numbers.html b/library/fullcalendar/demos/week-numbers.html deleted file mode 100644 index 5ad5c4b1e..000000000 --- a/library/fullcalendar/demos/week-numbers.html +++ /dev/null @@ -1,118 +0,0 @@ - - - - - - - - - - - - - - - - - - -
- - - -- cgit v1.2.3