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/rrule | |
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/rrule')
-rw-r--r-- | library/fullcalendar/packages/rrule/index.global.js | 34 | ||||
-rw-r--r-- | library/fullcalendar/packages/rrule/index.global.min.js | 6 |
2 files changed, 30 insertions, 10 deletions
diff --git a/library/fullcalendar/packages/rrule/index.global.js b/library/fullcalendar/packages/rrule/index.global.js index 795d352b5..42916b492 100644 --- a/library/fullcalendar/packages/rrule/index.global.js +++ b/library/fullcalendar/packages/rrule/index.global.js @@ -1,11 +1,31 @@ /*! -FullCalendar RRule Plugin v6.0.3 +FullCalendar RRule Plugin v6.1.8 Docs & License: https://fullcalendar.io/docs/rrule-plugin -(c) 2022 Adam Shaw +(c) 2023 Adam Shaw */ -FullCalendar.RRule = (function (exports, core, rrule, internal) { +FullCalendar.RRule = (function (exports, core, rruleLib, internal) { 'use strict'; + function _interopNamespace(e) { + if (e && e.__esModule) return e; + var n = Object.create(null); + if (e) { + Object.keys(e).forEach(function (k) { + if (k !== 'default') { + var d = Object.getOwnPropertyDescriptor(e, k); + Object.defineProperty(n, k, d.get ? d : { + enumerable: true, + get: function () { return e[k]; } + }); + } + }); + } + n["default"] = e; + return n; + } + + var rruleLib__namespace = /*#__PURE__*/_interopNamespace(rruleLib); + const recurringType = { parse(eventProps, dateEnv) { if (eventProps.rrule != null) { @@ -47,7 +67,7 @@ FullCalendar.RRule = (function (exports, core, rrule, internal) { } if (typeof eventProps.rrule === 'object' && eventProps.rrule) { // non-null object let res = parseRRuleObject(eventProps.rrule, dateEnv); - rruleSet = new rrule.RRuleSet(); + rruleSet = new rruleLib__namespace.RRuleSet(); rruleSet.rrule(res.rrule); isTimeSpecified = res.isTimeSpecified; isTimeZoneSpecified = res.isTimeZoneSpecified; @@ -88,10 +108,10 @@ FullCalendar.RRule = (function (exports, core, rrule, internal) { let rruleOptions = Object.assign(Object.assign({}, rruleInput), { dtstart: processDateInput(rruleInput.dtstart), until: processDateInput(rruleInput.until), freq: convertConstant(rruleInput.freq), wkst: rruleInput.wkst == null ? (dateEnv.weekDow - 1 + 7) % 7 // convert Sunday-first to Monday-first : convertConstant(rruleInput.wkst), byweekday: convertConstants(rruleInput.byweekday) }); - return { rrule: new rrule.RRule(rruleOptions), isTimeSpecified, isTimeZoneSpecified }; + return { rrule: new rruleLib__namespace.RRule(rruleOptions), isTimeSpecified, isTimeZoneSpecified }; } function parseRRuleString(str) { - let rruleSet = rrule.rrulestr(str, { forceset: true }); + let rruleSet = rruleLib__namespace.rrulestr(str, { forceset: true }); let analysis = analyzeRRuleString(str); return Object.assign({ rruleSet }, analysis); } @@ -116,7 +136,7 @@ FullCalendar.RRule = (function (exports, core, rrule, internal) { } function convertConstant(input) { if (typeof input === 'string') { - return rrule.RRule[input.toUpperCase()]; + return rruleLib__namespace.RRule[input.toUpperCase()]; } return input; } diff --git a/library/fullcalendar/packages/rrule/index.global.min.js b/library/fullcalendar/packages/rrule/index.global.min.js index 4197cedb2..27574912d 100644 --- a/library/fullcalendar/packages/rrule/index.global.min.js +++ b/library/fullcalendar/packages/rrule/index.global.min.js @@ -1,6 +1,6 @@ /*! -FullCalendar RRule Plugin v6.0.3 +FullCalendar RRule Plugin v6.1.8 Docs & License: https://fullcalendar.io/docs/rrule-plugin -(c) 2022 Adam Shaw +(c) 2023 Adam Shaw */ -FullCalendar.RRule=function(e,r,t,i){"use strict";const n={parse(e,r){if(null!=e.rrule){let n=function(e,r){let n,u=!1,a=!1;if("string"==typeof e.rrule){let r=function(e){let r=t.rrulestr(e,{forceset:!0}),n=function(e){let r=!1,t=!1;function n(e,n,l){let u=i.parseMarker(l);r=r||!u.isTimeUnspecified,t=t||null!==u.timeZoneOffset}return e.replace(/\b(DTSTART:)([^\n]*)/,n),e.replace(/\b(EXDATE:)([^\n]*)/,n),e.replace(/\b(UNTIL=)([^;\n]*)/,n),{isTimeSpecified:r,isTimeZoneSpecified:t}}(e);return Object.assign({rruleSet:r},n)}(e.rrule);n=r.rruleSet,u=r.isTimeSpecified,a=r.isTimeZoneSpecified}if("object"==typeof e.rrule&&e.rrule){let i=l(e.rrule,r);n=new t.RRuleSet,n.rrule(i.rrule),u=i.isTimeSpecified,a=i.isTimeZoneSpecified}let s=[].concat(e.exdate||[]),f=[].concat(e.exrule||[]);for(let e of s){let r=i.parseMarker(e);u=u||!r.isTimeUnspecified,a=a||null!==r.timeZoneOffset,n.exdate(new Date(r.marker.valueOf()-60*(r.timeZoneOffset||0)*1e3))}for(let e of f){let t=l(e,r);u=u||t.isTimeSpecified,a=a||t.isTimeZoneSpecified,n.exrule(t.rrule)}return{rruleSet:n,isTimeSpecified:u,isTimeZoneSpecified:a}}(e,r);if(n)return{typeData:{rruleSet:n.rruleSet,isTimeZoneSpecified:n.isTimeZoneSpecified},allDayGuess:!n.isTimeSpecified,duration:e.duration}}return null},expand(e,r,t){let i;return i=e.isTimeZoneSpecified?e.rruleSet.between(t.toDate(r.start),t.toDate(r.end),!0).map(e=>t.createMarker(e)):e.rruleSet.between(r.start,r.end,!0),i}};function l(e,r){let n=!1,l=!1;function s(e){if("string"==typeof e){let r=i.parseMarker(e);return r?(n=n||!r.isTimeUnspecified,l=l||null!==r.timeZoneOffset,new Date(r.marker.valueOf()-60*(r.timeZoneOffset||0)*1e3)):null}return e}let f=Object.assign(Object.assign({},e),{dtstart:s(e.dtstart),until:s(e.until),freq:a(e.freq),wkst:null==e.wkst?(r.weekDow-1+7)%7:a(e.wkst),byweekday:u(e.byweekday)});return{rrule:new t.RRule(f),isTimeSpecified:n,isTimeZoneSpecified:l}}function u(e){return Array.isArray(e)?e.map(a):a(e)}function a(e){return"string"==typeof e?t.RRule[e.toUpperCase()]:e}const s={rrule:i.identity,exrule:i.identity,exdate:i.identity,duration:i.createDuration};var f=r.createPlugin({name:"@fullcalendar/rrule",recurringTypes:[n],eventRefiners:s});return r.globalPlugins.push(f),e.default=f,Object.defineProperty(e,"__esModule",{value:!0}),e}({},FullCalendar,rrule,FullCalendar.Internal);
\ No newline at end of file +FullCalendar.RRule=function(e,r,t,i){"use strict";function n(e){if(e&&e.__esModule)return e;var r=Object.create(null);return e&&Object.keys(e).forEach((function(t){if("default"!==t){var i=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,i.get?i:{enumerable:!0,get:function(){return e[t]}})}})),r.default=e,r}var l=n(t);const u={parse(e,r){if(null!=e.rrule){let t=function(e,r){let t,n=!1,u=!1;if("string"==typeof e.rrule){let r=function(e){let r=l.rrulestr(e,{forceset:!0}),t=function(e){let r=!1,t=!1;function n(e,n,l){let u=i.parseMarker(l);r=r||!u.isTimeUnspecified,t=t||null!==u.timeZoneOffset}return e.replace(/\b(DTSTART:)([^\n]*)/,n),e.replace(/\b(EXDATE:)([^\n]*)/,n),e.replace(/\b(UNTIL=)([^;\n]*)/,n),{isTimeSpecified:r,isTimeZoneSpecified:t}}(e);return Object.assign({rruleSet:r},t)}(e.rrule);t=r.rruleSet,n=r.isTimeSpecified,u=r.isTimeZoneSpecified}if("object"==typeof e.rrule&&e.rrule){let i=a(e.rrule,r);t=new l.RRuleSet,t.rrule(i.rrule),n=i.isTimeSpecified,u=i.isTimeZoneSpecified}let f=[].concat(e.exdate||[]),s=[].concat(e.exrule||[]);for(let e of f){let r=i.parseMarker(e);n=n||!r.isTimeUnspecified,u=u||null!==r.timeZoneOffset,t.exdate(new Date(r.marker.valueOf()-60*(r.timeZoneOffset||0)*1e3))}for(let e of s){let i=a(e,r);n=n||i.isTimeSpecified,u=u||i.isTimeZoneSpecified,t.exrule(i.rrule)}return{rruleSet:t,isTimeSpecified:n,isTimeZoneSpecified:u}}(e,r);if(t)return{typeData:{rruleSet:t.rruleSet,isTimeZoneSpecified:t.isTimeZoneSpecified},allDayGuess:!t.isTimeSpecified,duration:e.duration}}return null},expand(e,r,t){let i;return i=e.isTimeZoneSpecified?e.rruleSet.between(t.toDate(r.start),t.toDate(r.end),!0).map(e=>t.createMarker(e)):e.rruleSet.between(r.start,r.end,!0),i}};function a(e,r){let t=!1,n=!1;function u(e){if("string"==typeof e){let r=i.parseMarker(e);return r?(t=t||!r.isTimeUnspecified,n=n||null!==r.timeZoneOffset,new Date(r.marker.valueOf()-60*(r.timeZoneOffset||0)*1e3)):null}return e}let a=Object.assign(Object.assign({},e),{dtstart:u(e.dtstart),until:u(e.until),freq:s(e.freq),wkst:null==e.wkst?(r.weekDow-1+7)%7:s(e.wkst),byweekday:f(e.byweekday)});return{rrule:new l.RRule(a),isTimeSpecified:t,isTimeZoneSpecified:n}}function f(e){return Array.isArray(e)?e.map(s):s(e)}function s(e){return"string"==typeof e?l.RRule[e.toUpperCase()]:e}const c={rrule:i.identity,exrule:i.identity,exdate:i.identity,duration:i.createDuration};var o=r.createPlugin({name:"@fullcalendar/rrule",recurringTypes:[u],eventRefiners:c});return r.globalPlugins.push(o),e.default=o,Object.defineProperty(e,"__esModule",{value:!0}),e}({},FullCalendar,rrule,FullCalendar.Internal);
\ No newline at end of file |