@event-calendar/core 1.1.0 → 1.1.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 +7 -7
- package/package.json +2 -12
- package/src/Calendar.svelte +3 -4
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@ See [demo](https://vkurko.github.io/calendar/) and [changelog](CHANGELOG.md).
|
|
|
4
4
|
|
|
5
5
|
Full-sized drag & drop JavaScript event calendar with resource view:
|
|
6
6
|
|
|
7
|
-
* Lightweight (
|
|
7
|
+
* Lightweight (28kb [br](https://en.wikipedia.org/wiki/Brotli) compressed)
|
|
8
8
|
* Zero-dependency (pre-built bundle)
|
|
9
9
|
* Used on over 60,000 websites with [Bookly](https://wordpress.org/plugins/bookly-responsive-appointment-booking-tool/)
|
|
10
10
|
|
|
@@ -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.1.
|
|
197
|
-
<script src="https://cdn.jsdelivr.net/npm/@event-calendar/build@1.1.
|
|
196
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@event-calendar/build@1.1.1/event-calendar.min.css">
|
|
197
|
+
<script src="https://cdn.jsdelivr.net/npm/@event-calendar/build@1.1.1/event-calendar.min.js"></script>
|
|
198
198
|
```
|
|
199
199
|
|
|
200
200
|
<details>
|
package/index.js
CHANGED
|
@@ -1561,8 +1561,8 @@ function instance($$self, $$props, $$invalidate) {
|
|
|
1561
1561
|
let $_bodyEl;
|
|
1562
1562
|
let $_scrollable;
|
|
1563
1563
|
let $_queue;
|
|
1564
|
-
let $events;
|
|
1565
1564
|
let $_events;
|
|
1565
|
+
let $events;
|
|
1566
1566
|
let $eventSources;
|
|
1567
1567
|
let $_interaction;
|
|
1568
1568
|
let $theme;
|
|
@@ -1581,10 +1581,10 @@ function instance($$self, $$props, $$invalidate) {
|
|
|
1581
1581
|
component_subscribe($$self, _bodyEl, value => $$invalidate(33, $_bodyEl = value));
|
|
1582
1582
|
component_subscribe($$self, _interaction, value => $$invalidate(38, $_interaction = value));
|
|
1583
1583
|
component_subscribe($$self, _iClass, value => $$invalidate(3, $_iClass = value));
|
|
1584
|
-
component_subscribe($$self, _events, value => $$invalidate(
|
|
1584
|
+
component_subscribe($$self, _events, value => $$invalidate(35, $_events = value));
|
|
1585
1585
|
component_subscribe($$self, _queue, value => $$invalidate(34, $_queue = value));
|
|
1586
1586
|
component_subscribe($$self, _scrollable, value => $$invalidate(0, $_scrollable = value));
|
|
1587
|
-
component_subscribe($$self, events, value => $$invalidate(
|
|
1587
|
+
component_subscribe($$self, events, value => $$invalidate(36, $events = value));
|
|
1588
1588
|
component_subscribe($$self, eventSources, value => $$invalidate(37, $eventSources = value));
|
|
1589
1589
|
component_subscribe($$self, height, value => $$invalidate(4, $height = value));
|
|
1590
1590
|
component_subscribe($$self, theme, value => $$invalidate(1, $theme = value));
|
|
@@ -1675,10 +1675,10 @@ function instance($$self, $$props, $$invalidate) {
|
|
|
1675
1675
|
}
|
|
1676
1676
|
|
|
1677
1677
|
function updateEvents(func) {
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
set_store_value(events, $events =
|
|
1678
|
+
set_store_value(_events, $_events = func($_events), $_events);
|
|
1679
|
+
|
|
1680
|
+
if (!$eventSources.length) {
|
|
1681
|
+
set_store_value(events, $events = $_events, $events);
|
|
1682
1682
|
}
|
|
1683
1683
|
}
|
|
1684
1684
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@event-calendar/core",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"title": "Event Calendar Core package",
|
|
5
5
|
"description": "Full-sized drag & drop event calendar with resource view",
|
|
6
6
|
"keywords": [
|
|
@@ -15,16 +15,6 @@
|
|
|
15
15
|
"url": "https://github.com/vkurko/calendar.git",
|
|
16
16
|
"directory": "packages/core"
|
|
17
17
|
},
|
|
18
|
-
"funding": [
|
|
19
|
-
{
|
|
20
|
-
"type": "paypal_$10",
|
|
21
|
-
"url": "https://paypal.me/vkurko/10usd"
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
"type": "paypal_$1",
|
|
25
|
-
"url": "https://paypal.me/vkurko/1usd"
|
|
26
|
-
}
|
|
27
|
-
],
|
|
28
18
|
"license": "MIT",
|
|
29
19
|
"type": "module",
|
|
30
20
|
"svelte": "src/index.js",
|
|
@@ -37,7 +27,7 @@
|
|
|
37
27
|
"./package.json": "./package.json"
|
|
38
28
|
},
|
|
39
29
|
"dependencies": {
|
|
40
|
-
"@event-calendar/common": "~1.1.
|
|
30
|
+
"@event-calendar/common": "~1.1.1",
|
|
41
31
|
"svelte": "^3.55.1"
|
|
42
32
|
}
|
|
43
33
|
}
|
package/src/Calendar.svelte
CHANGED
|
@@ -111,10 +111,9 @@
|
|
|
111
111
|
}
|
|
112
112
|
|
|
113
113
|
function updateEvents(func) {
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
$events = func($events);
|
|
114
|
+
$_events = func($_events);
|
|
115
|
+
if (!$eventSources.length) {
|
|
116
|
+
$events = $_events;
|
|
118
117
|
}
|
|
119
118
|
}
|
|
120
119
|
|