@fullcalendar/moment-timezone 7.0.0-beta.4 → 7.0.0-beta.6
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/LICENSE.md +1 -1
- package/README.md +7 -1
- package/{index.cjs → cjs/index.cjs} +4 -4
- package/{index.js → esm/index.js} +2 -2
- package/{index.global.js → global.js} +2 -2
- package/{index.global.min.js → global.min.js} +2 -2
- package/package.json +17 -14
- /package/{index.d.ts → esm/index.d.ts} +0 -0
package/LICENSE.md
CHANGED
package/README.md
CHANGED
|
@@ -25,12 +25,18 @@ Instantiate a Calendar with the necessary plugin:
|
|
|
25
25
|
import { Calendar } from '@fullcalendar/core'
|
|
26
26
|
import momentTimezonePlugin from '@fullcalendar/moment-timezone'
|
|
27
27
|
import dayGridPlugin from '@fullcalendar/daygrid'
|
|
28
|
+
import classicThemePlugin from '@fullcalendar/theme-classic'
|
|
29
|
+
|
|
30
|
+
import '@fullcalendar/core/skeleton.css'
|
|
31
|
+
import '@fullcalendar/theme-classic/theme.css'
|
|
32
|
+
import '@fullcalendar/theme-classic/palette.css'
|
|
28
33
|
|
|
29
34
|
const calendarEl = document.getElementById('calendar')
|
|
30
35
|
const calendar = new Calendar(calendarEl, {
|
|
31
36
|
plugins: [
|
|
32
37
|
momentTimezonePlugin,
|
|
33
|
-
dayGridPlugin
|
|
38
|
+
dayGridPlugin,
|
|
39
|
+
classicThemePlugin
|
|
34
40
|
],
|
|
35
41
|
initialView: 'dayGridMonth',
|
|
36
42
|
timeZone: 'America/New_York' // enhance named time zones
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var core = require('@fullcalendar/core');
|
|
6
6
|
var moment = require('moment-timezone');
|
|
7
|
-
var
|
|
7
|
+
var internal = require('@fullcalendar/core/internal');
|
|
8
8
|
|
|
9
9
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
10
10
|
|
|
11
11
|
var moment__default = /*#__PURE__*/_interopDefaultLegacy(moment);
|
|
12
12
|
|
|
13
|
-
class MomentNamedTimeZone extends
|
|
13
|
+
class MomentNamedTimeZone extends internal.NamedTimeZoneImpl {
|
|
14
14
|
offsetForArray(a) {
|
|
15
15
|
return moment__default["default"].tz(a, this.timeZoneName).utcOffset();
|
|
16
16
|
}
|
|
@@ -19,7 +19,7 @@ class MomentNamedTimeZone extends internal_cjs.NamedTimeZoneImpl {
|
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
var index =
|
|
22
|
+
var index = core.createPlugin({
|
|
23
23
|
name: '@fullcalendar/moment-timezone',
|
|
24
24
|
namedTimeZonedImpl: MomentNamedTimeZone,
|
|
25
25
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { createPlugin } from '@fullcalendar/core
|
|
1
|
+
import { createPlugin } from '@fullcalendar/core';
|
|
2
2
|
import moment from 'moment-timezone';
|
|
3
|
-
import { NamedTimeZoneImpl } from '@fullcalendar/core/internal
|
|
3
|
+
import { NamedTimeZoneImpl } from '@fullcalendar/core/internal';
|
|
4
4
|
|
|
5
5
|
class MomentNamedTimeZone extends NamedTimeZoneImpl {
|
|
6
6
|
offsetForArray(a) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
FullCalendar Moment Timezone Plugin v7.0.0-beta.
|
|
2
|
+
FullCalendar Moment Timezone Plugin v7.0.0-beta.6
|
|
3
3
|
Docs & License: https://fullcalendar.io/docs/moment-timezone-plugin
|
|
4
|
-
(c)
|
|
4
|
+
(c) 2025 Adam Shaw
|
|
5
5
|
*/
|
|
6
6
|
FullCalendar.MomentTimezone = (function (exports, core, moment, internal) {
|
|
7
7
|
'use strict';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
FullCalendar Moment Timezone Plugin v7.0.0-beta.
|
|
2
|
+
FullCalendar Moment Timezone Plugin v7.0.0-beta.6
|
|
3
3
|
Docs & License: https://fullcalendar.io/docs/moment-timezone-plugin
|
|
4
|
-
(c)
|
|
4
|
+
(c) 2025 Adam Shaw
|
|
5
5
|
*/
|
|
6
6
|
FullCalendar.MomentTimezone=function(e,t,n,a){"use strict";function l(e){return e&&e.__esModule?e:{default:e}}var r=l(n);class u extends a.NamedTimeZoneImpl{offsetForArray(e){return r.default.tz(e,this.timeZoneName).utcOffset()}timestampToArray(e){return r.default.tz(e,this.timeZoneName).toArray()}}var m=t.createPlugin({name:"@fullcalendar/moment-timezone",namedTimeZonedImpl:u});return t.globalPlugins.push(m),e.default=m,Object.defineProperty(e,"__esModule",{value:!0}),e}({},FullCalendar,moment,FullCalendar.Internal);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fullcalendar/moment-timezone",
|
|
3
|
-
"version": "7.0.0-beta.
|
|
3
|
+
"version": "7.0.0-beta.6",
|
|
4
4
|
"title": "FullCalendar Moment Timezone Plugin",
|
|
5
5
|
"description": "Enhanced named time zone functionality with Moment Timezone",
|
|
6
6
|
"keywords": [
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
],
|
|
15
15
|
"homepage": "https://fullcalendar.io/docs/moment-timezone-plugin",
|
|
16
16
|
"peerDependencies": {
|
|
17
|
-
"@fullcalendar/core": "7.0.0-beta.
|
|
17
|
+
"@fullcalendar/core": "7.0.0-beta.6",
|
|
18
18
|
"moment-timezone": "^0.5.40"
|
|
19
19
|
},
|
|
20
20
|
"type": "module",
|
|
@@ -30,21 +30,24 @@
|
|
|
30
30
|
"email": "arshaw@arshaw.com",
|
|
31
31
|
"url": "http://arshaw.com/"
|
|
32
32
|
},
|
|
33
|
-
"copyright": "
|
|
34
|
-
"types": "./index.d.ts",
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"unpkg": "./
|
|
38
|
-
"jsdelivr": "./
|
|
33
|
+
"copyright": "2025 Adam Shaw",
|
|
34
|
+
"types": "./esm/index.d.ts",
|
|
35
|
+
"module": "./esm/index.js",
|
|
36
|
+
"main": "./cjs/index.cjs",
|
|
37
|
+
"unpkg": "./global.min.js",
|
|
38
|
+
"jsdelivr": "./global.min.js",
|
|
39
39
|
"exports": {
|
|
40
40
|
"./package.json": "./package.json",
|
|
41
|
-
"./index.cjs": "./index.cjs",
|
|
42
|
-
"./index.js": "./index.js",
|
|
43
41
|
".": {
|
|
44
|
-
"
|
|
45
|
-
|
|
46
|
-
|
|
42
|
+
"import": {
|
|
43
|
+
"types": "./esm/index.d.ts",
|
|
44
|
+
"default": "./esm/index.js"
|
|
45
|
+
},
|
|
46
|
+
"require": "./cjs/index.cjs"
|
|
47
47
|
}
|
|
48
48
|
},
|
|
49
|
-
"sideEffects":
|
|
49
|
+
"sideEffects": [
|
|
50
|
+
"./global.js",
|
|
51
|
+
"./global.min.js"
|
|
52
|
+
]
|
|
50
53
|
}
|
|
File without changes
|