@fullcalendar/moment-timezone 5.11.2 → 6.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/main.cjs.js +7 -13
- package/main.global.js +7 -43
- package/main.global.min.js +2 -2
- package/main.js +7 -13
- package/main.js.map +1 -1
- package/package.json +3 -3
package/main.cjs.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
FullCalendar
|
2
|
+
FullCalendar v6.0.0-beta.1
|
3
3
|
Docs & License: https://fullcalendar.io/
|
4
4
|
(c) 2022 Adam Shaw
|
5
5
|
*/
|
@@ -7,7 +7,6 @@ Docs & License: https://fullcalendar.io/
|
|
7
7
|
|
8
8
|
Object.defineProperty(exports, '__esModule', { value: true });
|
9
9
|
|
10
|
-
var tslib = require('tslib');
|
11
10
|
var moment = require('moment');
|
12
11
|
require('moment-timezone');
|
13
12
|
var common = require('@fullcalendar/common');
|
@@ -16,19 +15,14 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
16
15
|
|
17
16
|
var moment__default = /*#__PURE__*/_interopDefaultLegacy(moment);
|
18
17
|
|
19
|
-
|
20
|
-
|
21
|
-
function MomentNamedTimeZone() {
|
22
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
23
|
-
}
|
24
|
-
MomentNamedTimeZone.prototype.offsetForArray = function (a) {
|
18
|
+
class MomentNamedTimeZone extends common.NamedTimeZoneImpl {
|
19
|
+
offsetForArray(a) {
|
25
20
|
return moment__default['default'].tz(a, this.timeZoneName).utcOffset();
|
26
|
-
}
|
27
|
-
|
21
|
+
}
|
22
|
+
timestampToArray(ms) {
|
28
23
|
return moment__default['default'].tz(ms, this.timeZoneName).toArray();
|
29
|
-
}
|
30
|
-
|
31
|
-
}(common.NamedTimeZoneImpl));
|
24
|
+
}
|
25
|
+
}
|
32
26
|
var main = common.createPlugin({
|
33
27
|
namedTimeZonedImpl: MomentNamedTimeZone,
|
34
28
|
});
|
package/main.global.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
FullCalendar
|
2
|
+
FullCalendar v6.0.0-beta.1
|
3
3
|
Docs & License: https://fullcalendar.io/
|
4
4
|
(c) 2022 Adam Shaw
|
5
5
|
*/
|
@@ -10,50 +10,14 @@ var FullCalendarMomentTimezone = (function (exports, common, moment) {
|
|
10
10
|
|
11
11
|
var moment__default = /*#__PURE__*/_interopDefaultLegacy(moment);
|
12
12
|
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
17
|
-
purpose with or without fee is hereby granted.
|
18
|
-
|
19
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
20
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
21
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
22
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
23
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
24
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
25
|
-
PERFORMANCE OF THIS SOFTWARE.
|
26
|
-
***************************************************************************** */
|
27
|
-
/* global Reflect, Promise */
|
28
|
-
|
29
|
-
var extendStatics = function(d, b) {
|
30
|
-
extendStatics = Object.setPrototypeOf ||
|
31
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
32
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
33
|
-
return extendStatics(d, b);
|
34
|
-
};
|
35
|
-
|
36
|
-
function __extends(d, b) {
|
37
|
-
if (typeof b !== "function" && b !== null)
|
38
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
39
|
-
extendStatics(d, b);
|
40
|
-
function __() { this.constructor = d; }
|
41
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
42
|
-
}
|
43
|
-
|
44
|
-
var MomentNamedTimeZone = /** @class */ (function (_super) {
|
45
|
-
__extends(MomentNamedTimeZone, _super);
|
46
|
-
function MomentNamedTimeZone() {
|
47
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
48
|
-
}
|
49
|
-
MomentNamedTimeZone.prototype.offsetForArray = function (a) {
|
13
|
+
class MomentNamedTimeZone extends common.NamedTimeZoneImpl {
|
14
|
+
offsetForArray(a) {
|
50
15
|
return moment__default['default'].tz(a, this.timeZoneName).utcOffset();
|
51
|
-
}
|
52
|
-
|
16
|
+
}
|
17
|
+
timestampToArray(ms) {
|
53
18
|
return moment__default['default'].tz(ms, this.timeZoneName).toArray();
|
54
|
-
}
|
55
|
-
|
56
|
-
}(common.NamedTimeZoneImpl));
|
19
|
+
}
|
20
|
+
}
|
57
21
|
var plugin = common.createPlugin({
|
58
22
|
namedTimeZonedImpl: MomentNamedTimeZone,
|
59
23
|
});
|
package/main.global.min.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
/*!
|
2
|
-
FullCalendar
|
2
|
+
FullCalendar v6.0.0-beta.1
|
3
3
|
Docs & License: https://fullcalendar.io/
|
4
4
|
(c) 2022 Adam Shaw
|
5
5
|
*/
|
6
|
-
var FullCalendarMomentTimezone=function(t,
|
6
|
+
var FullCalendarMomentTimezone=function(e,t,a){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=r(a);class l extends t.NamedTimeZoneImpl{offsetForArray(e){return n.default.tz(e,this.timeZoneName).utcOffset()}timestampToArray(e){return n.default.tz(e,this.timeZoneName).toArray()}}var u=t.createPlugin({namedTimeZonedImpl:l});return t.globalPlugins.push(u),e.default=u,Object.defineProperty(e,"__esModule",{value:!0}),e}({},FullCalendar,moment);
|
package/main.js
CHANGED
@@ -1,26 +1,20 @@
|
|
1
1
|
/*!
|
2
|
-
FullCalendar
|
2
|
+
FullCalendar v6.0.0-beta.1
|
3
3
|
Docs & License: https://fullcalendar.io/
|
4
4
|
(c) 2022 Adam Shaw
|
5
5
|
*/
|
6
|
-
import { __extends } from 'tslib';
|
7
6
|
import moment from 'moment';
|
8
7
|
import 'moment-timezone';
|
9
8
|
import { createPlugin, NamedTimeZoneImpl } from '@fullcalendar/common';
|
10
9
|
|
11
|
-
|
12
|
-
|
13
|
-
function MomentNamedTimeZone() {
|
14
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
15
|
-
}
|
16
|
-
MomentNamedTimeZone.prototype.offsetForArray = function (a) {
|
10
|
+
class MomentNamedTimeZone extends NamedTimeZoneImpl {
|
11
|
+
offsetForArray(a) {
|
17
12
|
return moment.tz(a, this.timeZoneName).utcOffset();
|
18
|
-
}
|
19
|
-
|
13
|
+
}
|
14
|
+
timestampToArray(ms) {
|
20
15
|
return moment.tz(ms, this.timeZoneName).toArray();
|
21
|
-
}
|
22
|
-
|
23
|
-
}(NamedTimeZoneImpl));
|
16
|
+
}
|
17
|
+
}
|
24
18
|
var main = createPlugin({
|
25
19
|
namedTimeZonedImpl: MomentNamedTimeZone,
|
26
20
|
});
|
package/main.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"main.js","sources":["src/main.ts"],"sourcesContent":["import moment from 'moment'\nimport 'moment-timezone'\nimport { NamedTimeZoneImpl, createPlugin } from '@fullcalendar/common'\n\nclass MomentNamedTimeZone extends NamedTimeZoneImpl {\n offsetForArray(a: number[]): number {\n return (moment as any).tz(a, this.timeZoneName).utcOffset()\n }\n\n timestampToArray(ms: number): number[] {\n return (moment as any).tz(ms, this.timeZoneName).toArray()\n }\n}\n\nexport default createPlugin({\n namedTimeZonedImpl: MomentNamedTimeZone,\n})\n"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"main.js","sources":["src/main.ts"],"sourcesContent":["import moment from 'moment'\nimport 'moment-timezone'\nimport { NamedTimeZoneImpl, createPlugin } from '@fullcalendar/common'\n\nclass MomentNamedTimeZone extends NamedTimeZoneImpl {\n offsetForArray(a: number[]): number {\n return (moment as any).tz(a, this.timeZoneName).utcOffset()\n }\n\n timestampToArray(ms: number): number[] {\n return (moment as any).tz(ms, this.timeZoneName).toArray()\n }\n}\n\nexport default createPlugin({\n namedTimeZonedImpl: MomentNamedTimeZone,\n})\n"],"names":[],"mappings":";;;;;;;;;AAIA,MAAM,mBAAoB,SAAQ,iBAAiB;IACjD,cAAc,CAAC,CAAW;QACxB,OAAQ,MAAc,CAAC,EAAE,CAAC,CAAC,EAAE,IAAI,CAAC,YAAY,CAAC,CAAC,SAAS,EAAE,CAAA;KAC5D;IAED,gBAAgB,CAAC,EAAU;QACzB,OAAQ,MAAc,CAAC,EAAE,CAAC,EAAE,EAAE,IAAI,CAAC,YAAY,CAAC,CAAC,OAAO,EAAE,CAAA;KAC3D;CACF;AAED,WAAe,YAAY,CAAC;IAC1B,kBAAkB,EAAE,mBAAmB;CACxC,CAAC;;;;"}
|
package/package.json
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
{
|
2
2
|
"name": "@fullcalendar/moment-timezone",
|
3
|
-
"version": "
|
3
|
+
"version": "6.0.0-beta.1",
|
4
4
|
"title": "FullCalendar Moment Timezone Plugin",
|
5
5
|
"description": "A connector to the moment-timezone library",
|
6
6
|
"docs": "https://fullcalendar.io/docs/moment-timezone-plugin",
|
7
7
|
"dependencies": {
|
8
|
-
"@fullcalendar/common": "
|
8
|
+
"@fullcalendar/common": "6.0.0-beta.1",
|
9
9
|
"tslib": "^2.1.0"
|
10
10
|
},
|
11
11
|
"peerDependencies": {
|
@@ -13,7 +13,7 @@
|
|
13
13
|
"moment-timezone": "^0.5.31"
|
14
14
|
},
|
15
15
|
"devDependencies": {
|
16
|
-
"@fullcalendar/core-preact": "
|
16
|
+
"@fullcalendar/core-preact": "6.0.0-beta.1",
|
17
17
|
"moment": "^2.29.1",
|
18
18
|
"moment-timezone": "^0.5.31"
|
19
19
|
},
|