@fullcalendar/daygrid 7.0.0-beta.4 → 7.0.0-beta.5

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2021 Adam Shaw
3
+ Copyright (c) 2025 Adam Shaw
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining
6
6
  a copy of this software and associated documentation files (the
package/README.md CHANGED
@@ -18,10 +18,15 @@ Instantiate a Calendar with the necessary plugin:
18
18
  ```js
19
19
  import { Calendar } from '@fullcalendar/core'
20
20
  import dayGridPlugin from '@fullcalendar/daygrid'
21
+ import classicThemePlugin from '@fullcalendar/theme-classic'
22
+
23
+ import '@fullcalendar/core/skeleton.css'
24
+ import '@fullcalendar/theme-classic/theme.css'
25
+ import '@fullcalendar/theme-classic/palette.css'
21
26
 
22
27
  const calendarEl = document.getElementById('calendar')
23
28
  const calendar = new Calendar(calendarEl, {
24
- plugins: [dayGridPlugin],
29
+ plugins: [dayGridPlugin, classicThemePlugin],
25
30
  initialView: 'dayGridMonth',
26
31
  events: [
27
32
  { title: 'Meeting', start: new Date() }
@@ -2,14 +2,25 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var index_cjs = require('@fullcalendar/core/index.cjs');
5
+ var core = require('@fullcalendar/core');
6
6
  var internalCommon = require('./internal.cjs');
7
- require('@fullcalendar/core/internal.cjs');
8
- require('@fullcalendar/core/preact.cjs');
7
+ var internal = require('@fullcalendar/core/internal');
8
+ require('@fullcalendar/core/preact');
9
+ require('@fullcalendar/core/internal-classnames');
9
10
 
10
- var index = index_cjs.createPlugin({
11
+ const OPTION_REFINERS = {
12
+ dayHeaders: Boolean,
13
+ dayHeaderFormat: internal.createFormatter,
14
+ };
15
+ const OPTION_DEFAULTS = {
16
+ dayHeaders: true,
17
+ };
18
+
19
+ var index = core.createPlugin({
11
20
  name: '@fullcalendar/daygrid',
12
21
  initialView: 'dayGridMonth',
22
+ optionRefiners: OPTION_REFINERS,
23
+ optionDefaults: OPTION_DEFAULTS,
13
24
  views: {
14
25
  dayGrid: {
15
26
  component: internalCommon.DayGridView,