@event-calendar/core 1.4.0 → 1.4.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 +3 -3
- package/index.js +2 -2
- package/package.json +1 -1
- package/src/storage/state.js +1 -1
- package/src/storage/stores.js +1 -1
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@ Full-sized drag & drop JavaScript event calendar with resource view:
|
|
|
6
6
|
|
|
7
7
|
* Lightweight (28kb [br](https://en.wikipedia.org/wiki/Brotli) compressed)
|
|
8
8
|
* Zero-dependency (pre-built bundle)
|
|
9
|
-
* Used on over
|
|
9
|
+
* Used on over 70,000 websites with [Bookly](https://wordpress.org/plugins/bookly-responsive-appointment-booking-tool/)
|
|
10
10
|
|
|
11
11
|
Inspired by [FullCalendar](https://fullcalendar.io/), implements similar options.
|
|
12
12
|
|
|
@@ -193,8 +193,8 @@ import '@event-calendar/core/index.css';
|
|
|
193
193
|
### Pre-built browser ready bundle
|
|
194
194
|
Include the following lines of code in the `<head>` section of your page:
|
|
195
195
|
```html
|
|
196
|
-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@event-calendar/build@1.4.
|
|
197
|
-
<script src="https://cdn.jsdelivr.net/npm/@event-calendar/build@1.4.
|
|
196
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@event-calendar/build@1.4.1/event-calendar.min.css">
|
|
197
|
+
<script src="https://cdn.jsdelivr.net/npm/@event-calendar/build@1.4.1/event-calendar.min.js"></script>
|
|
198
198
|
```
|
|
199
199
|
|
|
200
200
|
<details>
|
package/index.js
CHANGED
|
@@ -793,7 +793,7 @@ function diff(options) {
|
|
|
793
793
|
}
|
|
794
794
|
|
|
795
795
|
function monthMode(state) {
|
|
796
|
-
return derived(state.
|
|
796
|
+
return derived(state.view, $view => $view.startsWith?.('dayGrid'));
|
|
797
797
|
}
|
|
798
798
|
|
|
799
799
|
function activeRange(state) {
|
|
@@ -997,7 +997,6 @@ class State {
|
|
|
997
997
|
// Private stores
|
|
998
998
|
this._queue = writable(new Map()); // debounce queue
|
|
999
999
|
this._auxiliary = writable([]); // auxiliary components
|
|
1000
|
-
this._viewClass = writable(undefined);
|
|
1001
1000
|
this._monthMode = monthMode(this);
|
|
1002
1001
|
this._currentRange = currentRange(this);
|
|
1003
1002
|
this._activeRange = activeRange(this);
|
|
@@ -1014,6 +1013,7 @@ class State {
|
|
|
1014
1013
|
this._viewTitle = viewTitle(this);
|
|
1015
1014
|
this._viewDates = viewDates(this);
|
|
1016
1015
|
this._view = view(this);
|
|
1016
|
+
this._viewClass = writable(undefined);
|
|
1017
1017
|
this._viewComponent = writable(undefined);
|
|
1018
1018
|
// Resources
|
|
1019
1019
|
this._resBgColor = writable(noop);
|
package/package.json
CHANGED
package/src/storage/state.js
CHANGED
|
@@ -30,7 +30,6 @@ export default class {
|
|
|
30
30
|
// Private stores
|
|
31
31
|
this._queue = writable(new Map()); // debounce queue
|
|
32
32
|
this._auxiliary = writable([]); // auxiliary components
|
|
33
|
-
this._viewClass = writable(undefined);
|
|
34
33
|
this._monthMode = monthMode(this);
|
|
35
34
|
this._currentRange = currentRange(this);
|
|
36
35
|
this._activeRange = activeRange(this);
|
|
@@ -47,6 +46,7 @@ export default class {
|
|
|
47
46
|
this._viewTitle = viewTitle(this);
|
|
48
47
|
this._viewDates = viewDates(this);
|
|
49
48
|
this._view = view2(this);
|
|
49
|
+
this._viewClass = writable(undefined);
|
|
50
50
|
this._viewComponent = writable(undefined);
|
|
51
51
|
// Resources
|
|
52
52
|
this._resBgColor = writable(noop);
|
package/src/storage/stores.js
CHANGED
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
} from '../lib.js';
|
|
21
21
|
|
|
22
22
|
export function monthMode(state) {
|
|
23
|
-
return derived(state.
|
|
23
|
+
return derived(state.view, $view => $view.startsWith?.('dayGrid'));
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
export function activeRange(state) {
|