@fullcalendar/rrule
Advanced tools
Comparing version 5.11.0 to 5.11.2
/*! | ||
FullCalendar v5.10.2 | ||
FullCalendar v5.11.2 | ||
Docs & License: https://fullcalendar.io/ | ||
(c) 2021 Adam Shaw | ||
(c) 2022 Adam Shaw | ||
*/ | ||
@@ -6,0 +6,0 @@ 'use strict'; |
/*! | ||
FullCalendar v5.10.2 | ||
FullCalendar v5.11.2 | ||
Docs & License: https://fullcalendar.io/ | ||
(c) 2021 Adam Shaw | ||
(c) 2022 Adam Shaw | ||
*/ | ||
@@ -6,0 +6,0 @@ var FullCalendarRRule = (function (exports, common, rrule) { |
/*! | ||
FullCalendar v5.10.2 | ||
FullCalendar v5.11.2 | ||
Docs & License: https://fullcalendar.io/ | ||
(c) 2021 Adam Shaw | ||
(c) 2022 Adam Shaw | ||
*/ | ||
var FullCalendarRRule=function(e,r,i){"use strict";var t=function(){return(t=Object.assign||function(e){for(var r,i=1,t=arguments.length;i<t;i++)for(var n in r=arguments[i])Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n]);return e}).apply(this,arguments)},n={rrule:r.identity,exrule:r.identity,exdate:r.identity,duration:r.createDuration},u={parse:function(e,n){if(null!=e.rrule){var u=function(e,n){var u,a=!1,f=!1;if("string"==typeof e.rrule){u=(s=function(e){var n=i.rrulestr(e,{forceset:!0}),u=function(e){var i=!1,t=!1;function n(e,n,u){var a=r.parseMarker(u);i=i||!a.isTimeUnspecified,t=t||null!==a.timeZoneOffset}return e.replace(/\b(DTSTART:)([^\n]*)/,n),e.replace(/\b(EXDATE:)([^\n]*)/,n),e.replace(/\b(UNTIL=)([^;\n]*)/,n),{isTimeSpecified:i,isTimeZoneSpecified:t}}(e);return t({rruleSet:n},u)}(e.rrule)).rruleSet,a=s.isTimeSpecified,f=s.isTimeZoneSpecified}if("object"==typeof e.rrule&&e.rrule){var s=l(e.rrule,n);(u=new i.RRuleSet).rrule(s.rrule),a=s.isTimeSpecified,f=s.isTimeZoneSpecified}for(var o=[].concat(e.exdate||[]),c=[].concat(e.exrule||[]),p=0,d=o;p<d.length;p++){var m=d[p];s=r.parseMarker(m);a=a||!s.isTimeUnspecified,f=f||null!==s.timeZoneOffset,u.exdate(new Date(s.marker.valueOf()-60*(s.timeZoneOffset||0)*1e3))}for(var S=0,T=c;S<T.length;S++){s=l(T[S],n);a=a||s.isTimeSpecified,f=f||s.isTimeZoneSpecified,u.exrule(s.rrule)}return{rruleSet:u,isTimeSpecified:a,isTimeZoneSpecified:f}}(e,n);if(u)return{typeData:{rruleSet:u.rruleSet,isTimeZoneSpecified:u.isTimeZoneSpecified},allDayGuess:!u.isTimeSpecified,duration:e.duration}}return null},expand:function(e,r,i){return e.isTimeZoneSpecified?e.rruleSet.between(i.toDate(r.start),i.toDate(r.end),!0).map((function(e){return i.createMarker(e)})):e.rruleSet.between(r.start,r.end,!0)}},a=r.createPlugin({recurringTypes:[u],eventRefiners:n});function l(e,n){var u=!1,a=!1;function l(e){if("string"==typeof e){var i=r.parseMarker(e);return i?(u=u||!i.isTimeUnspecified,a=a||null!==i.timeZoneOffset,new Date(i.marker.valueOf()-60*(i.timeZoneOffset||0)*1e3)):null}return e}var o=t(t({},e),{dtstart:l(e.dtstart),until:l(e.until),freq:s(e.freq),wkst:null==e.wkst?(n.weekDow-1+7)%7:s(e.wkst),byweekday:f(e.byweekday)});return{rrule:new i.RRule(o),isTimeSpecified:u,isTimeZoneSpecified:a}}function f(e){return Array.isArray(e)?e.map(s):s(e)}function s(e){return"string"==typeof e?i.RRule[e.toUpperCase()]:e}return r.globalPlugins.push(a),e.default=a,Object.defineProperty(e,"__esModule",{value:!0}),e}({},FullCalendar,rrule); |
/*! | ||
FullCalendar v5.10.2 | ||
FullCalendar v5.11.2 | ||
Docs & License: https://fullcalendar.io/ | ||
(c) 2021 Adam Shaw | ||
(c) 2022 Adam Shaw | ||
*/ | ||
@@ -6,0 +6,0 @@ import { __assign } from 'tslib'; |
{ | ||
"name": "@fullcalendar/rrule", | ||
"version": "5.11.0", | ||
"version": "5.11.2", | ||
"title": "FullCalendar RRule Plugin", | ||
@@ -8,3 +8,3 @@ "description": "A connector to the RRule library, for recurring events", | ||
"dependencies": { | ||
"@fullcalendar/common": "~5.11.0", | ||
"@fullcalendar/common": "~5.11.2", | ||
"tslib": "^2.1.0" | ||
@@ -16,3 +16,3 @@ }, | ||
"devDependencies": { | ||
"@fullcalendar/core-preact": "5.11.0", | ||
"@fullcalendar/core-preact": "5.11.2", | ||
"rrule": "^2.6.0" | ||
@@ -19,0 +19,0 @@ }, |
Updated@fullcalendar/common@~5.11.2