full_calendar 4.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.DS_Store +0 -0
- data/.gitignore +49 -0
- data/Gemfile +6 -0
- data/Gemfile.lock +20 -0
- data/LICENSE.txt +21 -0
- data/README.md +102 -0
- data/Rakefile +2 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/full_calendar.gemspec +28 -0
- data/lib/.DS_Store +0 -0
- data/lib/full_calendar/engine.rb +9 -0
- data/lib/full_calendar/version.rb +3 -0
- data/lib/full_calendar.rb +73 -0
- data/lib/generators/.DS_Store +0 -0
- data/lib/generators/fullcalendar/.DS_Store +0 -0
- data/lib/generators/fullcalendar/install_generator.rb +61 -0
- data/lib/generators/fullcalendar/templates/default.js.tt +13 -0
- data/lib/generators/fullcalendar/templates/default.scss.tt +7 -0
- data/vendor/.DS_Store +0 -0
- data/vendor/assets/.DS_Store +0 -0
- data/vendor/assets/javascripts/.DS_Store +0 -0
- data/vendor/assets/javascripts/fullcalendar/.DS_Store +0 -0
- data/vendor/assets/javascripts/fullcalendar/bootstrap/.DS_Store +0 -0
- data/vendor/assets/javascripts/fullcalendar/bootstrap/main.js +90 -0
- data/vendor/assets/javascripts/fullcalendar/bootstrap/main.min.js +20 -0
- data/vendor/assets/javascripts/fullcalendar/core/.DS_Store +0 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/af.js +30 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/ar-dz.js +31 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/ar-kw.js +31 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/ar-ly.js +31 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/ar-ma.js +31 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/ar-sa.js +31 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/ar-tn.js +31 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/ar.js +31 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/bg.js +31 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/bs.js +32 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/ca.js +30 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/cs.js +32 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/da.js +30 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/de.js +33 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/el.js +30 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/en-au.js +17 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/en-gb.js +17 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/en-nz.js +17 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/es-us.js +30 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/es.js +30 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/et.js +32 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/eu.js +30 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/fa.js +33 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/fi.js +30 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/fr-ca.js +27 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/fr-ch.js +31 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/fr.js +31 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/gl.js +30 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/he.js +27 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/hi.js +32 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/hr.js +32 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/hu.js +30 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/id.js +30 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/is.js +30 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/it.js +32 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/ja.js +28 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/ka.js +32 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/kk.js +32 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/ko.js +26 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/lb.js +30 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/lt.js +30 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/lv.js +32 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/mk.js +28 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/ms.js +32 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/nb.js +30 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/nl.js +30 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/nn.js +30 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/pl.js +30 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/pt-br.js +28 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/pt.js +30 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/ro.js +32 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/ru.js +32 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/sk.js +32 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/sl.js +30 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/sq.js +32 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/sr-cyrl.js +32 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/sr.js +32 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/sv.js +30 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/th.js +25 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/tr.js +30 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/uk.js +32 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/vi.js +32 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/zh-cn.js +33 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/zh-tw.js +26 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales-all.js +1353 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales-all.min.js +6 -0
- data/vendor/assets/javascripts/fullcalendar/core/main.js +8679 -0
- data/vendor/assets/javascripts/fullcalendar/core/main.min.js +9 -0
- data/vendor/assets/javascripts/fullcalendar/daygrid/.DS_Store +0 -0
- data/vendor/assets/javascripts/fullcalendar/daygrid/main.js +1639 -0
- data/vendor/assets/javascripts/fullcalendar/daygrid/main.min.js +20 -0
- data/vendor/assets/javascripts/fullcalendar/google-calendar/main.js +169 -0
- data/vendor/assets/javascripts/fullcalendar/google-calendar/main.min.js +20 -0
- data/vendor/assets/javascripts/fullcalendar/interaction/main.js +2143 -0
- data/vendor/assets/javascripts/fullcalendar/interaction/main.min.js +21 -0
- data/vendor/assets/javascripts/fullcalendar/list/.DS_Store +0 -0
- data/vendor/assets/javascripts/fullcalendar/list/main.js +341 -0
- data/vendor/assets/javascripts/fullcalendar/list/main.min.js +20 -0
- data/vendor/assets/javascripts/fullcalendar/luxon/main.js +162 -0
- data/vendor/assets/javascripts/fullcalendar/luxon/main.min.js +20 -0
- data/vendor/assets/javascripts/fullcalendar/moment/main.js +103 -0
- data/vendor/assets/javascripts/fullcalendar/moment/main.min.js +6 -0
- data/vendor/assets/javascripts/fullcalendar/moment-timezone/main.js +64 -0
- data/vendor/assets/javascripts/fullcalendar/moment-timezone/main.min.js +20 -0
- data/vendor/assets/javascripts/fullcalendar/rrule/main.js +127 -0
- data/vendor/assets/javascripts/fullcalendar/rrule/main.min.js +20 -0
- data/vendor/assets/javascripts/fullcalendar/timegrid/.DS_Store +0 -0
- data/vendor/assets/javascripts/fullcalendar/timegrid/main.js +1354 -0
- data/vendor/assets/javascripts/fullcalendar/timegrid/main.min.js +20 -0
- data/vendor/assets/stylesheets/.DS_Store +0 -0
- data/vendor/assets/stylesheets/fullcalendar/.DS_Store +0 -0
- data/vendor/assets/stylesheets/fullcalendar/bootstrap/.DS_Store +0 -0
- data/vendor/assets/stylesheets/fullcalendar/bootstrap/main.css +33 -0
- data/vendor/assets/stylesheets/fullcalendar/bootstrap/main.min.css +5 -0
- data/vendor/assets/stylesheets/fullcalendar/core/.DS_Store +0 -0
- data/vendor/assets/stylesheets/fullcalendar/core/main.css +900 -0
- data/vendor/assets/stylesheets/fullcalendar/core/main.min.css +5 -0
- data/vendor/assets/stylesheets/fullcalendar/daygrid/.DS_Store +0 -0
- data/vendor/assets/stylesheets/fullcalendar/daygrid/main.css +69 -0
- data/vendor/assets/stylesheets/fullcalendar/daygrid/main.min.css +5 -0
- data/vendor/assets/stylesheets/fullcalendar/list/.DS_Store +0 -0
- data/vendor/assets/stylesheets/fullcalendar/list/main.css +101 -0
- data/vendor/assets/stylesheets/fullcalendar/list/main.min.css +5 -0
- data/vendor/assets/stylesheets/fullcalendar/timegrid/.DS_Store +0 -0
- data/vendor/assets/stylesheets/fullcalendar/timegrid/main.css +266 -0
- data/vendor/assets/stylesheets/fullcalendar/timegrid/main.min.css +5 -0
- metadata +219 -0
@@ -0,0 +1,20 @@
|
|
1
|
+
/*!
|
2
|
+
FullCalendar Luxon Plugin v4.2.0
|
3
|
+
Docs & License: https://fullcalendar.io/
|
4
|
+
(c) 2019 Adam Shaw
|
5
|
+
*/
|
6
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("luxon"),require("@fullcalendar/core")):"function"==typeof define&&define.amd?define(["exports","luxon","@fullcalendar/core"],t):(e=e||self,t(e.FullCalendarLuxon={},e.luxon,e.FullCalendar))}(this,function(e,t,n){"use strict";function o(e,t){function n(){this.constructor=e}f(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function r(e,o){if(!(o instanceof n.Calendar))throw new Error("must supply a Calendar instance");return t.DateTime.fromJSDate(e,{zone:o.dateEnv.timeZone,locale:o.dateEnv.locale.codes[0]})}function a(e,o){if(!(o instanceof n.Calendar))throw new Error("must supply a Calendar instance");return t.Duration.fromObject(m({},e,{locale:o.dateEnv.locale.codes[0]}))}function i(e,t){var n=c(e);if(t.end){var o=u(t.start.array,t.timeZone,t.localeCodes[0]),r=u(t.end.array,t.timeZone,t.localeCodes[0]);return d(n,o.toFormat.bind(o),r.toFormat.bind(r),t.separator)}return u(t.date.array,t.timeZone,t.localeCodes[0]).toFormat(n.whole)}function l(e){return[e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond]}function u(e,n,o){return t.DateTime.fromObject({zone:n,locale:o,year:e[0],month:e[1]+1,day:e[2],hour:e[3],minute:e[4],second:e[5],millisecond:e[6]})}function c(e){var t=e.match(/^(.*?)\{(.*)\}(.*)$/);if(t){var n=c(t[2]);return{head:t[1],middle:n,tail:t[3],whole:t[1]+n.whole+t[3]}}return{head:null,middle:null,tail:null,whole:e}}function d(e,t,n,o){if(e.middle){var r=t(e.head),a=d(e.middle,t,n,o),i=t(e.tail),l=n(e.head),u=d(e.middle,t,n,o),c=n(e.tail);if(r===l&&i===c)return r+(a===u?a:a+o+u)+i}return t(e.whole)+o+n(e.whole)}/*! *****************************************************************************
|
7
|
+
Copyright (c) Microsoft Corporation. All rights reserved.
|
8
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
9
|
+
this file except in compliance with the License. You may obtain a copy of the
|
10
|
+
License at http://www.apache.org/licenses/LICENSE-2.0
|
11
|
+
|
12
|
+
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
13
|
+
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
14
|
+
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
15
|
+
MERCHANTABLITY OR NON-INFRINGEMENT.
|
16
|
+
|
17
|
+
See the Apache Version 2.0 License for specific language governing permissions
|
18
|
+
and limitations under the License.
|
19
|
+
***************************************************************************** */
|
20
|
+
var f=function(e,t){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},m=function(){return m=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++){t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},m.apply(this,arguments)},s=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return o(n,e),n.prototype.offsetForArray=function(e){return u(e,this.timeZoneName).offset},n.prototype.timestampToArray=function(e){return l(t.DateTime.fromMillis(e,{zone:this.timeZoneName}))},n}(n.NamedTimeZoneImpl),p=n.createPlugin({cmdFormatter:i,namedTimeZonedImpl:s});e.default=p,e.toDateTime=r,e.toDuration=a,Object.defineProperty(e,"__esModule",{value:!0})});
|
@@ -0,0 +1,103 @@
|
|
1
|
+
/*!
|
2
|
+
FullCalendar Moment Plugin v4.2.0
|
3
|
+
Docs & License: https://fullcalendar.io/
|
4
|
+
(c) 2019 Adam Shaw
|
5
|
+
*/
|
6
|
+
(function (global, factory) {
|
7
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('moment'), require('@fullcalendar/core')) :
|
8
|
+
typeof define === 'function' && define.amd ? define(['exports', 'moment', '@fullcalendar/core'], factory) :
|
9
|
+
(global = global || self, factory(global.FullCalendarMoment = {}, global.moment, global.FullCalendar));
|
10
|
+
}(this, function (exports, moment, core) { 'use strict';
|
11
|
+
|
12
|
+
moment = moment && moment.hasOwnProperty('default') ? moment['default'] : moment;
|
13
|
+
|
14
|
+
function toMoment(date, calendar) {
|
15
|
+
if (!(calendar instanceof core.Calendar)) {
|
16
|
+
throw new Error('must supply a Calendar instance');
|
17
|
+
}
|
18
|
+
return convertToMoment(date, calendar.dateEnv.timeZone, null, calendar.dateEnv.locale.codes[0]);
|
19
|
+
}
|
20
|
+
function toDuration(fcDuration) {
|
21
|
+
return moment.duration(fcDuration); // momment accepts all the props that fc.Duration already has!
|
22
|
+
}
|
23
|
+
function formatWithCmdStr(cmdStr, arg) {
|
24
|
+
var cmd = parseCmdStr(cmdStr);
|
25
|
+
if (arg.end) {
|
26
|
+
var startMom = convertToMoment(arg.start.array, arg.timeZone, arg.start.timeZoneOffset, arg.localeCodes[0]);
|
27
|
+
var endMom = convertToMoment(arg.end.array, arg.timeZone, arg.end.timeZoneOffset, arg.localeCodes[0]);
|
28
|
+
return formatRange(cmd, createMomentFormatFunc(startMom), createMomentFormatFunc(endMom), arg.separator);
|
29
|
+
}
|
30
|
+
return convertToMoment(arg.date.array, arg.timeZone, arg.date.timeZoneOffset, arg.localeCodes[0]).format(cmd.whole); // TODO: test for this
|
31
|
+
}
|
32
|
+
var main = core.createPlugin({
|
33
|
+
cmdFormatter: formatWithCmdStr
|
34
|
+
});
|
35
|
+
function createMomentFormatFunc(mom) {
|
36
|
+
return function (cmdStr) {
|
37
|
+
return cmdStr ? mom.format(cmdStr) : ''; // because calling with blank string results in ISO8601 :(
|
38
|
+
};
|
39
|
+
}
|
40
|
+
function convertToMoment(input, timeZone, timeZoneOffset, locale) {
|
41
|
+
var mom;
|
42
|
+
if (timeZone === 'local') {
|
43
|
+
mom = moment(input);
|
44
|
+
}
|
45
|
+
else if (timeZone === 'UTC') {
|
46
|
+
mom = moment.utc(input);
|
47
|
+
}
|
48
|
+
else if (moment.tz) {
|
49
|
+
mom = moment.tz(input, timeZone);
|
50
|
+
}
|
51
|
+
else {
|
52
|
+
mom = moment.utc(input);
|
53
|
+
if (timeZoneOffset != null) {
|
54
|
+
mom.utcOffset(timeZoneOffset);
|
55
|
+
}
|
56
|
+
}
|
57
|
+
mom.locale(locale);
|
58
|
+
return mom;
|
59
|
+
}
|
60
|
+
function parseCmdStr(cmdStr) {
|
61
|
+
var parts = cmdStr.match(/^(.*?)\{(.*)\}(.*)$/); // TODO: lookbehinds for escape characters
|
62
|
+
if (parts) {
|
63
|
+
var middle = parseCmdStr(parts[2]);
|
64
|
+
return {
|
65
|
+
head: parts[1],
|
66
|
+
middle: middle,
|
67
|
+
tail: parts[3],
|
68
|
+
whole: parts[1] + middle.whole + parts[3]
|
69
|
+
};
|
70
|
+
}
|
71
|
+
else {
|
72
|
+
return {
|
73
|
+
head: null,
|
74
|
+
middle: null,
|
75
|
+
tail: null,
|
76
|
+
whole: cmdStr
|
77
|
+
};
|
78
|
+
}
|
79
|
+
}
|
80
|
+
function formatRange(cmd, formatStart, formatEnd, separator) {
|
81
|
+
if (cmd.middle) {
|
82
|
+
var startHead = formatStart(cmd.head);
|
83
|
+
var startMiddle = formatRange(cmd.middle, formatStart, formatEnd, separator);
|
84
|
+
var startTail = formatStart(cmd.tail);
|
85
|
+
var endHead = formatEnd(cmd.head);
|
86
|
+
var endMiddle = formatRange(cmd.middle, formatStart, formatEnd, separator);
|
87
|
+
var endTail = formatEnd(cmd.tail);
|
88
|
+
if (startHead === endHead && startTail === endTail) {
|
89
|
+
return startHead +
|
90
|
+
(startMiddle === endMiddle ? startMiddle : startMiddle + separator + endMiddle) +
|
91
|
+
startTail;
|
92
|
+
}
|
93
|
+
}
|
94
|
+
return formatStart(cmd.whole) + separator + formatEnd(cmd.whole);
|
95
|
+
}
|
96
|
+
|
97
|
+
exports.default = main;
|
98
|
+
exports.toDuration = toDuration;
|
99
|
+
exports.toMoment = toMoment;
|
100
|
+
|
101
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
102
|
+
|
103
|
+
}));
|
@@ -0,0 +1,6 @@
|
|
1
|
+
/*!
|
2
|
+
FullCalendar Moment Plugin v4.2.0
|
3
|
+
Docs & License: https://fullcalendar.io/
|
4
|
+
(c) 2019 Adam Shaw
|
5
|
+
*/
|
6
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("moment"),require("@fullcalendar/core")):"function"==typeof define&&define.amd?define(["exports","moment","@fullcalendar/core"],t):(e=e||self,t(e.FullCalendarMoment={},e.moment,e.FullCalendar))}(this,function(e,t,n){"use strict";function r(e,t){if(!(t instanceof n.Calendar))throw new Error("must supply a Calendar instance");return u(e,t.dateEnv.timeZone,null,t.dateEnv.locale.codes[0])}function a(e){return t.duration(e)}function o(e,t){var n=i(e);if(t.end){var r=u(t.start.array,t.timeZone,t.start.timeZoneOffset,t.localeCodes[0]),a=u(t.end.array,t.timeZone,t.end.timeZoneOffset,t.localeCodes[0]);return d(n,l(r),l(a),t.separator)}return u(t.date.array,t.timeZone,t.date.timeZoneOffset,t.localeCodes[0]).format(n.whole)}function l(e){return function(t){return t?e.format(t):""}}function u(e,n,r,a){var o;return"local"===n?o=t(e):"UTC"===n?o=t.utc(e):t.tz?o=t.tz(e,n):(o=t.utc(e),null!=r&&o.utcOffset(r)),o.locale(a),o}function i(e){var t=e.match(/^(.*?)\{(.*)\}(.*)$/);if(t){var n=i(t[2]);return{head:t[1],middle:n,tail:t[3],whole:t[1]+n.whole+t[3]}}return{head:null,middle:null,tail:null,whole:e}}function d(e,t,n,r){if(e.middle){var a=t(e.head),o=d(e.middle,t,n,r),l=t(e.tail),u=n(e.head),i=d(e.middle,t,n,r),f=n(e.tail);if(a===u&&l===f)return a+(o===i?o:o+r+i)+l}return t(e.whole)+r+n(e.whole)}t=t&&t.hasOwnProperty("default")?t.default:t;var f=n.createPlugin({cmdFormatter:o});e.default=f,e.toDuration=a,e.toMoment=r,Object.defineProperty(e,"__esModule",{value:!0})});
|
@@ -0,0 +1,64 @@
|
|
1
|
+
/*!
|
2
|
+
FullCalendar Moment Timezone Plugin v4.2.0
|
3
|
+
Docs & License: https://fullcalendar.io/
|
4
|
+
(c) 2019 Adam Shaw
|
5
|
+
*/
|
6
|
+
(function (global, factory) {
|
7
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('moment'), require('moment-timezone/builds/moment-timezone-with-data'), require('@fullcalendar/core')) :
|
8
|
+
typeof define === 'function' && define.amd ? define(['exports', 'moment', 'moment-timezone/builds/moment-timezone-with-data', '@fullcalendar/core'], factory) :
|
9
|
+
(global = global || self, factory(global.FullCalendarMomentTimezone = {}, global.moment, global.moment, global.FullCalendar));
|
10
|
+
}(this, function (exports, moment, momentTimezoneWithData, core) { 'use strict';
|
11
|
+
|
12
|
+
moment = moment && moment.hasOwnProperty('default') ? moment['default'] : moment;
|
13
|
+
|
14
|
+
/*! *****************************************************************************
|
15
|
+
Copyright (c) Microsoft Corporation. All rights reserved.
|
16
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
17
|
+
this file except in compliance with the License. You may obtain a copy of the
|
18
|
+
License at http://www.apache.org/licenses/LICENSE-2.0
|
19
|
+
|
20
|
+
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
21
|
+
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
22
|
+
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
23
|
+
MERCHANTABLITY OR NON-INFRINGEMENT.
|
24
|
+
|
25
|
+
See the Apache Version 2.0 License for specific language governing permissions
|
26
|
+
and limitations under the License.
|
27
|
+
***************************************************************************** */
|
28
|
+
/* global Reflect, Promise */
|
29
|
+
|
30
|
+
var extendStatics = function(d, b) {
|
31
|
+
extendStatics = Object.setPrototypeOf ||
|
32
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
33
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
34
|
+
return extendStatics(d, b);
|
35
|
+
};
|
36
|
+
|
37
|
+
function __extends(d, b) {
|
38
|
+
extendStatics(d, b);
|
39
|
+
function __() { this.constructor = d; }
|
40
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
41
|
+
}
|
42
|
+
|
43
|
+
var MomentNamedTimeZone = /** @class */ (function (_super) {
|
44
|
+
__extends(MomentNamedTimeZone, _super);
|
45
|
+
function MomentNamedTimeZone() {
|
46
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
47
|
+
}
|
48
|
+
MomentNamedTimeZone.prototype.offsetForArray = function (a) {
|
49
|
+
return moment.tz(a, this.timeZoneName).utcOffset();
|
50
|
+
};
|
51
|
+
MomentNamedTimeZone.prototype.timestampToArray = function (ms) {
|
52
|
+
return moment.tz(ms, this.timeZoneName).toArray();
|
53
|
+
};
|
54
|
+
return MomentNamedTimeZone;
|
55
|
+
}(core.NamedTimeZoneImpl));
|
56
|
+
var main = core.createPlugin({
|
57
|
+
namedTimeZonedImpl: MomentNamedTimeZone
|
58
|
+
});
|
59
|
+
|
60
|
+
exports.default = main;
|
61
|
+
|
62
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
63
|
+
|
64
|
+
}));
|
@@ -0,0 +1,20 @@
|
|
1
|
+
/*!
|
2
|
+
FullCalendar Moment Timezone Plugin v4.2.0
|
3
|
+
Docs & License: https://fullcalendar.io/
|
4
|
+
(c) 2019 Adam Shaw
|
5
|
+
*/
|
6
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("moment"),require("moment-timezone/builds/moment-timezone-with-data"),require("@fullcalendar/core")):"function"==typeof define&&define.amd?define(["exports","moment","moment-timezone/builds/moment-timezone-with-data","@fullcalendar/core"],t):(e=e||self,t(e.FullCalendarMomentTimezone={},e.moment,e.moment,e.FullCalendar))}(this,function(e,t,n,o){"use strict";function r(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}t=t&&t.hasOwnProperty("default")?t.default:t;/*! *****************************************************************************
|
7
|
+
Copyright (c) Microsoft Corporation. All rights reserved.
|
8
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
9
|
+
this file except in compliance with the License. You may obtain a copy of the
|
10
|
+
License at http://www.apache.org/licenses/LICENSE-2.0
|
11
|
+
|
12
|
+
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
13
|
+
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
14
|
+
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
15
|
+
MERCHANTABLITY OR NON-INFRINGEMENT.
|
16
|
+
|
17
|
+
See the Apache Version 2.0 License for specific language governing permissions
|
18
|
+
and limitations under the License.
|
19
|
+
***************************************************************************** */
|
20
|
+
var i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},u=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return r(n,e),n.prototype.offsetForArray=function(e){return t.tz(e,this.timeZoneName).utcOffset()},n.prototype.timestampToArray=function(e){return t.tz(e,this.timeZoneName).toArray()},n}(o.NamedTimeZoneImpl),m=o.createPlugin({namedTimeZonedImpl:u});e.default=m,Object.defineProperty(e,"__esModule",{value:!0})});
|
@@ -0,0 +1,127 @@
|
|
1
|
+
/*!
|
2
|
+
FullCalendar RRule Plugin v4.2.0
|
3
|
+
Docs & License: https://fullcalendar.io/
|
4
|
+
(c) 2019 Adam Shaw
|
5
|
+
*/
|
6
|
+
(function (global, factory) {
|
7
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('rrule'), require('@fullcalendar/core')) :
|
8
|
+
typeof define === 'function' && define.amd ? define(['exports', 'rrule', '@fullcalendar/core'], factory) :
|
9
|
+
(global = global || self, factory(global.FullCalendarRrule = {}, global.rrule, global.FullCalendar));
|
10
|
+
}(this, function (exports, rrule, core) { 'use strict';
|
11
|
+
|
12
|
+
/*! *****************************************************************************
|
13
|
+
Copyright (c) Microsoft Corporation. All rights reserved.
|
14
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
15
|
+
this file except in compliance with the License. You may obtain a copy of the
|
16
|
+
License at http://www.apache.org/licenses/LICENSE-2.0
|
17
|
+
|
18
|
+
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
19
|
+
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
20
|
+
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
21
|
+
MERCHANTABLITY OR NON-INFRINGEMENT.
|
22
|
+
|
23
|
+
See the Apache Version 2.0 License for specific language governing permissions
|
24
|
+
and limitations under the License.
|
25
|
+
***************************************************************************** */
|
26
|
+
|
27
|
+
var __assign = function() {
|
28
|
+
__assign = Object.assign || function __assign(t) {
|
29
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
30
|
+
s = arguments[i];
|
31
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
32
|
+
}
|
33
|
+
return t;
|
34
|
+
};
|
35
|
+
return __assign.apply(this, arguments);
|
36
|
+
};
|
37
|
+
|
38
|
+
var EVENT_DEF_PROPS = {
|
39
|
+
rrule: null,
|
40
|
+
duration: core.createDuration
|
41
|
+
};
|
42
|
+
var recurring = {
|
43
|
+
parse: function (rawEvent, leftoverProps, dateEnv) {
|
44
|
+
if (rawEvent.rrule != null) {
|
45
|
+
var props = core.refineProps(rawEvent, EVENT_DEF_PROPS, {}, leftoverProps);
|
46
|
+
var parsed = parseRRule(props.rrule, dateEnv);
|
47
|
+
if (parsed) {
|
48
|
+
return {
|
49
|
+
typeData: parsed.rrule,
|
50
|
+
allDayGuess: parsed.allDayGuess,
|
51
|
+
duration: props.duration
|
52
|
+
};
|
53
|
+
}
|
54
|
+
}
|
55
|
+
return null;
|
56
|
+
},
|
57
|
+
expand: function (rrule, framingRange) {
|
58
|
+
// we WANT an inclusive start and in exclusive end, but the js rrule lib will only do either BOTH
|
59
|
+
// inclusive or BOTH exclusive, which is stupid: https://github.com/jakubroztocil/rrule/issues/84
|
60
|
+
// Workaround: make inclusive, which will generate extra occurences, and then trim.
|
61
|
+
return rrule.between(framingRange.start, framingRange.end, true)
|
62
|
+
.filter(function (date) {
|
63
|
+
return date.valueOf() < framingRange.end.valueOf();
|
64
|
+
});
|
65
|
+
}
|
66
|
+
};
|
67
|
+
var main = core.createPlugin({
|
68
|
+
recurringTypes: [recurring]
|
69
|
+
});
|
70
|
+
function parseRRule(input, dateEnv) {
|
71
|
+
var allDayGuess = null;
|
72
|
+
var rrule$1;
|
73
|
+
if (typeof input === 'string') {
|
74
|
+
rrule$1 = rrule.rrulestr(input);
|
75
|
+
}
|
76
|
+
else if (typeof input === 'object' && input) { // non-null object
|
77
|
+
var refined = __assign({}, input); // copy
|
78
|
+
if (typeof refined.dtstart === 'string') {
|
79
|
+
var dtstartMeta = dateEnv.createMarkerMeta(refined.dtstart);
|
80
|
+
if (dtstartMeta) {
|
81
|
+
refined.dtstart = dtstartMeta.marker;
|
82
|
+
allDayGuess = dtstartMeta.isTimeUnspecified;
|
83
|
+
}
|
84
|
+
else {
|
85
|
+
delete refined.dtstart;
|
86
|
+
}
|
87
|
+
}
|
88
|
+
if (typeof refined.until === 'string') {
|
89
|
+
refined.until = dateEnv.createMarker(refined.until);
|
90
|
+
}
|
91
|
+
if (refined.freq != null) {
|
92
|
+
refined.freq = convertConstant(refined.freq);
|
93
|
+
}
|
94
|
+
if (refined.wkst != null) {
|
95
|
+
refined.wkst = convertConstant(refined.wkst);
|
96
|
+
}
|
97
|
+
else {
|
98
|
+
refined.wkst = (dateEnv.weekDow - 1 + 7) % 7; // convert Sunday-first to Monday-first
|
99
|
+
}
|
100
|
+
if (refined.byweekday != null) {
|
101
|
+
refined.byweekday = convertConstants(refined.byweekday); // the plural version
|
102
|
+
}
|
103
|
+
rrule$1 = new rrule.RRule(refined);
|
104
|
+
}
|
105
|
+
if (rrule$1) {
|
106
|
+
return { rrule: rrule$1, allDayGuess: allDayGuess };
|
107
|
+
}
|
108
|
+
return null;
|
109
|
+
}
|
110
|
+
function convertConstants(input) {
|
111
|
+
if (Array.isArray(input)) {
|
112
|
+
return input.map(convertConstant);
|
113
|
+
}
|
114
|
+
return convertConstant(input);
|
115
|
+
}
|
116
|
+
function convertConstant(input) {
|
117
|
+
if (typeof input === 'string') {
|
118
|
+
return rrule.RRule[input.toUpperCase()];
|
119
|
+
}
|
120
|
+
return input;
|
121
|
+
}
|
122
|
+
|
123
|
+
exports.default = main;
|
124
|
+
|
125
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
126
|
+
|
127
|
+
}));
|
@@ -0,0 +1,20 @@
|
|
1
|
+
/*!
|
2
|
+
FullCalendar RRule Plugin v4.2.0
|
3
|
+
Docs & License: https://fullcalendar.io/
|
4
|
+
(c) 2019 Adam Shaw
|
5
|
+
*/
|
6
|
+
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports,require("rrule"),require("@fullcalendar/core")):"function"==typeof define&&define.amd?define(["exports","rrule","@fullcalendar/core"],r):(e=e||self,r(e.FullCalendarRrule={},e.rrule,e.FullCalendar))}(this,function(e,r,t){"use strict";function n(e,t){var n,i=null;if("string"==typeof e)n=r.rrulestr(e);else if("object"==typeof e&&e){var f=a({},e);if("string"==typeof f.dtstart){var o=t.createMarkerMeta(f.dtstart);o?(f.dtstart=o.marker,i=o.isTimeUnspecified):delete f.dtstart}"string"==typeof f.until&&(f.until=t.createMarker(f.until)),null!=f.freq&&(f.freq=l(f.freq)),null!=f.wkst?f.wkst=l(f.wkst):f.wkst=(t.weekDow-1+7)%7,null!=f.byweekday&&(f.byweekday=u(f.byweekday)),n=new r.RRule(f)}return n?{rrule:n,allDayGuess:i}:null}function u(e){return Array.isArray(e)?e.map(l):l(e)}function l(e){return"string"==typeof e?r.RRule[e.toUpperCase()]:e}/*! *****************************************************************************
|
7
|
+
Copyright (c) Microsoft Corporation. All rights reserved.
|
8
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
9
|
+
this file except in compliance with the License. You may obtain a copy of the
|
10
|
+
License at http://www.apache.org/licenses/LICENSE-2.0
|
11
|
+
|
12
|
+
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
13
|
+
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
14
|
+
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
15
|
+
MERCHANTABLITY OR NON-INFRINGEMENT.
|
16
|
+
|
17
|
+
See the Apache Version 2.0 License for specific language governing permissions
|
18
|
+
and limitations under the License.
|
19
|
+
***************************************************************************** */
|
20
|
+
var a=function(){return a=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var u in r)Object.prototype.hasOwnProperty.call(r,u)&&(e[u]=r[u])}return e},a.apply(this,arguments)},i={rrule:null,duration:t.createDuration},f={parse:function(e,r,u){if(null!=e.rrule){var l=t.refineProps(e,i,{},r),a=n(l.rrule,u);if(a)return{typeData:a.rrule,allDayGuess:a.allDayGuess,duration:l.duration}}return null},expand:function(e,r){return e.between(r.start,r.end,!0).filter(function(e){return e.valueOf()<r.end.valueOf()})}},o=t.createPlugin({recurringTypes:[f]});e.default=o,Object.defineProperty(e,"__esModule",{value:!0})});
|
Binary file
|