fullcalendar 6.0.0-beta.4 → 6.0.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/README.md +52 -9
- package/index.cjs +6 -7
- package/index.global.js +861 -852
- package/index.global.min.js +3 -3
- package/index.js +2 -2
- package/package.json +14 -15
package/README.md
CHANGED
|
@@ -1,14 +1,57 @@
|
|
|
1
1
|
|
|
2
2
|
# FullCalendar Standard Bundle
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
Easily render a full-sized drag & drop calendar with a combination of standard plugins
|
|
5
5
|
|
|
6
|
-
This `fullcalendar` package bundles
|
|
6
|
+
This `fullcalendar` package bundles these plugins:
|
|
7
7
|
|
|
8
|
-
- [@fullcalendar/core](https://
|
|
9
|
-
- [@fullcalendar/interaction](https://
|
|
10
|
-
- [@fullcalendar/daygrid](https://
|
|
11
|
-
- [@fullcalendar/timegrid](https://
|
|
12
|
-
- [@fullcalendar/list](https://
|
|
13
|
-
|
|
14
|
-
|
|
8
|
+
- [@fullcalendar/core](https://github.com/fullcalendar/fullcalendar/tree/main/packages/core)
|
|
9
|
+
- [@fullcalendar/interaction](https://github.com/fullcalendar/fullcalendar/tree/main/packages/interaction)
|
|
10
|
+
- [@fullcalendar/daygrid](https://github.com/fullcalendar/fullcalendar/tree/main/packages/daygrid)
|
|
11
|
+
- [@fullcalendar/timegrid](https://github.com/fullcalendar/fullcalendar/tree/main/packages/timegrid)
|
|
12
|
+
- [@fullcalendar/list](https://github.com/fullcalendar/fullcalendar/tree/main/packages/list)
|
|
13
|
+
|
|
14
|
+
## Usage with CDN or ZIP archive
|
|
15
|
+
|
|
16
|
+
Load the `index.global.min.js` file and use the `FullCalendar` global namespace:
|
|
17
|
+
|
|
18
|
+
```html
|
|
19
|
+
<!DOCTYPE html>
|
|
20
|
+
<html>
|
|
21
|
+
<head>
|
|
22
|
+
<script src='https://cdn.jsdelivr.net/npm/fullcalendar/index.global.min.js'></script>
|
|
23
|
+
<script>
|
|
24
|
+
|
|
25
|
+
document.addEventListener('DOMContentLoaded', function() {
|
|
26
|
+
const calendarEl = document.getElementById('calendar')
|
|
27
|
+
const calendar = new FullCalendar.Calendar(calendarEl, {
|
|
28
|
+
initialView: 'dayGridMonth'
|
|
29
|
+
})
|
|
30
|
+
calendar.render()
|
|
31
|
+
})
|
|
32
|
+
|
|
33
|
+
</script>
|
|
34
|
+
</head>
|
|
35
|
+
<body>
|
|
36
|
+
<div id='calendar'></div>
|
|
37
|
+
</body>
|
|
38
|
+
</html>
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
## Usage with NPM and ES modules
|
|
42
|
+
|
|
43
|
+
```sh
|
|
44
|
+
npm install fullcalendar
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
```js
|
|
48
|
+
import { Calendar } from 'fullcalendar'
|
|
49
|
+
|
|
50
|
+
document.addEventListener('DOMContentLoaded', function() {
|
|
51
|
+
const calendarEl = document.getElementById('calendar')
|
|
52
|
+
const calendar = new Calendar(calendarEl, {
|
|
53
|
+
initialView: 'dayGridMonth'
|
|
54
|
+
})
|
|
55
|
+
calendar.render()
|
|
56
|
+
})
|
|
57
|
+
```
|
package/index.cjs
CHANGED
|
@@ -2,12 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var index_cjs = require('@fullcalendar/core/index.cjs');
|
|
6
6
|
var interactionPlugin = require('@fullcalendar/interaction/index.cjs');
|
|
7
7
|
var dayGridPlugin = require('@fullcalendar/daygrid/index.cjs');
|
|
8
8
|
var timeGridPlugin = require('@fullcalendar/timegrid/index.cjs');
|
|
9
9
|
var listPlugin = require('@fullcalendar/list/index.cjs');
|
|
10
|
-
var index_cjs = require('@fullcalendar/core/index.cjs');
|
|
11
10
|
|
|
12
11
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
13
12
|
|
|
@@ -16,17 +15,17 @@ var dayGridPlugin__default = /*#__PURE__*/_interopDefaultLegacy(dayGridPlugin);
|
|
|
16
15
|
var timeGridPlugin__default = /*#__PURE__*/_interopDefaultLegacy(timeGridPlugin);
|
|
17
16
|
var listPlugin__default = /*#__PURE__*/_interopDefaultLegacy(listPlugin);
|
|
18
17
|
|
|
19
|
-
|
|
18
|
+
index_cjs.globalPlugins.push(interactionPlugin__default["default"], dayGridPlugin__default["default"], timeGridPlugin__default["default"], listPlugin__default["default"]);
|
|
20
19
|
|
|
21
|
-
Object.keys(
|
|
20
|
+
Object.keys(index_cjs).forEach(function (k) {
|
|
22
21
|
if (k !== 'default' && !exports.hasOwnProperty(k)) Object.defineProperty(exports, k, {
|
|
23
22
|
enumerable: true,
|
|
24
|
-
get: function () { return
|
|
23
|
+
get: function () { return index_cjs[k]; }
|
|
25
24
|
});
|
|
26
25
|
});
|
|
27
|
-
Object.keys(
|
|
26
|
+
Object.keys(interactionPlugin).forEach(function (k) {
|
|
28
27
|
if (k !== 'default' && !exports.hasOwnProperty(k)) Object.defineProperty(exports, k, {
|
|
29
28
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
29
|
+
get: function () { return interactionPlugin[k]; }
|
|
31
30
|
});
|
|
32
31
|
});
|