@event-calendar/core 0.15.0 → 0.15.2
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 +17 -5
- package/index.css +4 -8
- package/index.js +3 -3
- package/package.json +3 -3
- package/src/index.scss +5 -10
package/README.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# Event Calendar [](https://www.jsdelivr.com/package/npm/@event-calendar/build) [](https://www.npmjs.com/package/@event-calendar/core) [](https://www.paypal.me/vkurko/10usd)
|
|
2
2
|
|
|
3
|
-
See [demo](https://vkurko.github.io/calendar/).
|
|
3
|
+
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 (37kb [br](https://en.wikipedia.org/wiki/Brotli) compressed)
|
|
8
8
|
* Zero-dependency (pre-built bundle)
|
|
9
9
|
* Used by [Bookly](https://wordpress.org/plugins/bookly-responsive-appointment-booking-tool/)
|
|
10
10
|
|
|
@@ -192,10 +192,22 @@ import '@event-calendar/core/index.css';
|
|
|
192
192
|
### Pre-built browser ready bundle
|
|
193
193
|
Include the following lines of code in the `<head>` section of your page:
|
|
194
194
|
```html
|
|
195
|
-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@event-calendar/build/event-calendar.min.css">
|
|
196
|
-
<script src="https://cdn.jsdelivr.net/npm/@event-calendar/build/event-calendar.min.js"></script>
|
|
195
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@event-calendar/build@0.15.2/event-calendar.min.css">
|
|
196
|
+
<script src="https://cdn.jsdelivr.net/npm/@event-calendar/build@0.15.2/event-calendar.min.js"></script>
|
|
197
197
|
```
|
|
198
198
|
|
|
199
|
+
<details>
|
|
200
|
+
<summary>Note</summary>
|
|
201
|
+
|
|
202
|
+
> Please note that the file paths contain an indication of a specific version of the library. You can remove this indication, then the latest version will be loaded:
|
|
203
|
+
> ```html
|
|
204
|
+
> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@event-calendar/build/event-calendar.min.css">
|
|
205
|
+
> <script src="https://cdn.jsdelivr.net/npm/@event-calendar/build/event-calendar.min.js"></script>
|
|
206
|
+
> ```
|
|
207
|
+
> But it is recommended to always specify the version and explicitly update it if necessary, in order to avoid unpredictable problems when a new version of the library is released.
|
|
208
|
+
|
|
209
|
+
</details>
|
|
210
|
+
|
|
199
211
|
Then initialize the calendar with something like this:
|
|
200
212
|
```js
|
|
201
213
|
let ec = new EventCalendar(document.getElementById('ec'), {
|
|
@@ -2421,4 +2433,4 @@ Here are all properties that exist in View object:
|
|
|
2421
2433
|
|
|
2422
2434
|
The latest versions of Chrome, Firefox, Safari, and Edge are supported.
|
|
2423
2435
|
|
|
2424
|
-
> The library is compiled to support browsers that match the following browserslist configuration: `
|
|
2436
|
+
> The library is compiled to support browsers that match the following browserslist configuration: `defaults and supports fetch`. You can see the resulting list [here](https://browsersl.ist/#q=defaults+and+supports+fetch).
|
package/index.css
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/* Grid */
|
|
2
|
-
.ec-month .ec-body,
|
|
3
2
|
.ec-days,
|
|
4
3
|
.ec-day,
|
|
5
4
|
.ec-day-title,
|
|
@@ -166,6 +165,9 @@
|
|
|
166
165
|
.ec:not(.ec-list) .ec-body {
|
|
167
166
|
border-top: none;
|
|
168
167
|
}
|
|
168
|
+
.ec-month .ec-body {
|
|
169
|
+
flex: 1 1 auto;
|
|
170
|
+
}
|
|
169
171
|
|
|
170
172
|
.ec-sidebar {
|
|
171
173
|
flex: 0 0 auto;
|
|
@@ -196,9 +198,6 @@
|
|
|
196
198
|
flex-direction: column;
|
|
197
199
|
height: 100%;
|
|
198
200
|
}
|
|
199
|
-
.ec-month .ec-uniform .ec-content {
|
|
200
|
-
overflow: hidden;
|
|
201
|
-
}
|
|
202
201
|
.ec-list .ec-content {
|
|
203
202
|
flex-direction: column;
|
|
204
203
|
}
|
|
@@ -219,7 +218,7 @@
|
|
|
219
218
|
}
|
|
220
219
|
.ec-month .ec-uniform .ec-days {
|
|
221
220
|
flex: 1 1 0;
|
|
222
|
-
min-height:
|
|
221
|
+
min-height: calc(5em + 1px);
|
|
223
222
|
}
|
|
224
223
|
|
|
225
224
|
.ec-day {
|
|
@@ -235,9 +234,6 @@
|
|
|
235
234
|
min-height: 5em;
|
|
236
235
|
position: relative;
|
|
237
236
|
}
|
|
238
|
-
.ec-month .ec-uniform .ec-day {
|
|
239
|
-
min-height: 0;
|
|
240
|
-
}
|
|
241
237
|
.ec-month .ec-day:first-child {
|
|
242
238
|
border-left: none;
|
|
243
239
|
}
|
package/index.js
CHANGED
|
@@ -465,7 +465,7 @@ function parseOpts(opts, state) {
|
|
|
465
465
|
}
|
|
466
466
|
}
|
|
467
467
|
|
|
468
|
-
/* packages/core/src/Buttons.svelte generated by Svelte v3.55.
|
|
468
|
+
/* packages/core/src/Buttons.svelte generated by Svelte v3.55.1 */
|
|
469
469
|
|
|
470
470
|
function get_each_context$1(ctx, list, i) {
|
|
471
471
|
const child_ctx = ctx.slice();
|
|
@@ -868,7 +868,7 @@ class Buttons extends SvelteComponent {
|
|
|
868
868
|
}
|
|
869
869
|
}
|
|
870
870
|
|
|
871
|
-
/* packages/core/src/Toolbar.svelte generated by Svelte v3.55.
|
|
871
|
+
/* packages/core/src/Toolbar.svelte generated by Svelte v3.55.1 */
|
|
872
872
|
|
|
873
873
|
function get_each_context(ctx, list, i) {
|
|
874
874
|
const child_ctx = ctx.slice();
|
|
@@ -1238,7 +1238,7 @@ class Toolbar extends SvelteComponent {
|
|
|
1238
1238
|
}
|
|
1239
1239
|
}
|
|
1240
1240
|
|
|
1241
|
-
/* packages/core/src/Calendar.svelte generated by Svelte v3.55.
|
|
1241
|
+
/* packages/core/src/Calendar.svelte generated by Svelte v3.55.1 */
|
|
1242
1242
|
|
|
1243
1243
|
function create_fragment(ctx) {
|
|
1244
1244
|
let div;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@event-calendar/core",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.2",
|
|
4
4
|
"title": "Event Calendar Core package",
|
|
5
5
|
"description": "Full-sized drag & drop event calendar with resource view",
|
|
6
6
|
"keywords": [
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"./package.json": "./package.json"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@event-calendar/common": "~0.15.
|
|
41
|
-
"svelte": "^3.55.
|
|
40
|
+
"@event-calendar/common": "~0.15.2",
|
|
41
|
+
"svelte": "^3.55.1"
|
|
42
42
|
}
|
|
43
43
|
}
|
package/src/index.scss
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/* Grid */
|
|
2
|
-
.ec-month .ec-body,
|
|
3
2
|
.ec-days,
|
|
4
3
|
.ec-day,
|
|
5
4
|
.ec-day-title,
|
|
@@ -189,6 +188,10 @@
|
|
|
189
188
|
.ec:not(.ec-list) & {
|
|
190
189
|
border-top: none;
|
|
191
190
|
}
|
|
191
|
+
|
|
192
|
+
.ec-month & {
|
|
193
|
+
flex: 1 1 auto;
|
|
194
|
+
}
|
|
192
195
|
}
|
|
193
196
|
|
|
194
197
|
.ec-sidebar {
|
|
@@ -222,10 +225,6 @@
|
|
|
222
225
|
height: 100%;
|
|
223
226
|
}
|
|
224
227
|
|
|
225
|
-
.ec-month .ec-uniform & {
|
|
226
|
-
overflow: hidden;
|
|
227
|
-
}
|
|
228
|
-
|
|
229
228
|
.ec-list & {
|
|
230
229
|
flex-direction: column;
|
|
231
230
|
}
|
|
@@ -250,7 +249,7 @@
|
|
|
250
249
|
|
|
251
250
|
.ec-month .ec-uniform & {
|
|
252
251
|
flex: 1 1 0;
|
|
253
|
-
min-height:
|
|
252
|
+
min-height: calc(5em + 1px);
|
|
254
253
|
}
|
|
255
254
|
}
|
|
256
255
|
|
|
@@ -270,10 +269,6 @@
|
|
|
270
269
|
position: relative;
|
|
271
270
|
}
|
|
272
271
|
|
|
273
|
-
.ec-month .ec-uniform & {
|
|
274
|
-
min-height: 0;
|
|
275
|
-
}
|
|
276
|
-
|
|
277
272
|
.ec-month &:first-child {
|
|
278
273
|
border-left: none;
|
|
279
274
|
}
|