@event-calendar/core 0.14.3 → 0.15.0

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 CHANGED
@@ -4,7 +4,7 @@ See [demo](https://vkurko.github.io/calendar/).
4
4
 
5
5
  Full-sized drag & drop JavaScript event calendar with resource view:
6
6
 
7
- * Lightweight (54kb [br](https://en.wikipedia.org/wiki/Brotli) compressed `modern` version)
7
+ * Lightweight (31kb [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
 
@@ -195,7 +195,6 @@ Include the following lines of code in the `<head>` section of your page:
195
195
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@event-calendar/build/event-calendar.min.css">
196
196
  <script src="https://cdn.jsdelivr.net/npm/@event-calendar/build/event-calendar.min.js"></script>
197
197
  ```
198
- > If you don't need IE11 support, you can use the `modern` version of the bundle instead: `event-calendar-modern.min.css` and `event-calendar-modern.min.js`. The lack of IE11 support makes the bundle ~1.5 times smaller.
199
198
 
200
199
  Then initialize the calendar with something like this:
201
200
  ```js
@@ -1750,7 +1749,7 @@ This should be a value that can be parsed into a [Duration](#duration-object) ob
1750
1749
 
1751
1750
  ### theme
1752
1751
  - Type `object` or `function`
1753
- - Default `{active: 'ec-active', allDay: 'ec-all-day', bgEvent: 'ec-bg-event', bgEvents: 'ec-bg-events', body: 'ec-body', button: 'ec-button', buttonGroup: 'ec-button-group', calendar: 'ec', compact: 'ec-compact', content: 'ec-content', day: 'ec-day', dayFoot: 'ec-day-foot', dayHead: 'ec-day-head', daySide: 'ec-day-side', days: 'ec-days', draggable: 'ec-draggable', dragging: 'ec-dragging', event: 'ec-event', eventBody: 'ec-event-body', eventTag: 'ec-event-tag', eventTime: 'ec-event-time', eventTitle: 'ec-event-title', events: 'ec-events', extra: 'ec-extra', ghost: 'ec-ghost', handle: 'ec-handle', header: 'ec-header', hiddenScroll: 'ec-hidden-scroll', hiddenTimes: 'ec-hidden-times', highlight: 'ec-highlight', icon: 'ec-icon', line: 'ec-line', lines: 'ec-lines', list: 'ec-list', month: 'ec-month', noEvents: 'ec-no-events', nowIndicator: 'ec-now-indicator', otherMonth: 'ec-other-month', pointer: 'ec-pointer', popup: 'ec-popup', preview: 'ec-preview', resizer: 'ec-resizer', resizingX: 'ec-resizing-x', resizingY: 'ec-resizing-y', resource: 'ec-resource', resourceTitle: 'ec-resource-title', sidebar: 'ec-sidebar', sidebarTitle: 'ec-sidebar-title', time: 'ec-time', title: 'ec-title', today: 'ec-today', toolbar: 'ec-toolbar', uniform: 'ec-uniform', week: 'ec-week', withScroll: 'ec-with-scroll'}`
1752
+ - Default `{active: 'ec-active', allDay: 'ec-all-day', bgEvent: 'ec-bg-event', bgEvents: 'ec-bg-events', body: 'ec-body', button: 'ec-button', buttonGroup: 'ec-button-group', calendar: 'ec', compact: 'ec-compact', content: 'ec-content', day: 'ec-day', dayFoot: 'ec-day-foot', dayHead: 'ec-day-head', daySide: 'ec-day-side', days: 'ec-days', draggable: 'ec-draggable', dragging: 'ec-dragging', event: 'ec-event', eventBody: 'ec-event-body', eventTag: 'ec-event-tag', eventTime: 'ec-event-time', eventTitle: 'ec-event-title', events: 'ec-events', extra: 'ec-extra', ghost: 'ec-ghost', handle: 'ec-handle', header: 'ec-header', hiddenScroll: 'ec-hidden-scroll', hiddenTimes: 'ec-hidden-times', highlight: 'ec-highlight', icon: 'ec-icon', line: 'ec-line', lines: 'ec-lines', list: 'ec-list', month: 'ec-month', noEvents: 'ec-no-events', nowIndicator: 'ec-now-indicator', otherMonth: 'ec-other-month', pointer: 'ec-pointer', popup: 'ec-popup', preview: 'ec-preview', resizer: 'ec-resizer', resizingX: 'ec-resizing-x', resizingY: 'ec-resizing-y', resource: 'ec-resource', resourceTitle: 'ec-resource-title', selecting: 'ec-selecting', sidebar: 'ec-sidebar', sidebarTitle: 'ec-sidebar-title', time: 'ec-time', title: 'ec-title', today: 'ec-today', toolbar: 'ec-toolbar', uniform: 'ec-uniform', week: 'ec-week', withScroll: 'ec-with-scroll'}`
1754
1753
 
1755
1754
  Defines the CSS classes that the Event Calendar uses to generate HTML markup.
1756
1755
 
@@ -2420,9 +2419,6 @@ Here are all properties that exist in View object:
2420
2419
 
2421
2420
  ## Browser support
2422
2421
 
2423
- - Chrome (latest)
2424
- - Firefox (latest)
2425
- - Safari (latest)
2426
- - Opera (latest)
2427
- - Edge (latest)
2428
- - Internet Explorer 11
2422
+ The latest versions of Chrome, Firefox, Safari, and Edge are supported.
2423
+
2424
+ > The library is compiled to support browsers that match the following browserslist configuration: `default and supports fetch`. You can see the resulting list [here](https://browsersl.ist/#q=defaults+and+supports+fetch).
package/index.css CHANGED
@@ -1 +1,521 @@
1
- .ec-month .ec-body,.ec-days,.ec-day,.ec-day-title,.ec-resource{flex:1 1 0%;min-width:0;max-width:100%}.ec{display:flex;flex-direction:column;-webkit-tap-highlight-color:rgba(0,0,0,0)}.ec ::-webkit-scrollbar{background:#fff}.ec ::-webkit-scrollbar-thumb{border:4px solid #fff;box-shadow:none;background:#dadce0;border-radius:8px;min-height:40px}.ec :hover::-webkit-scrollbar-thumb{background:#bdc1c6}.ec-hidden-scroll{display:none;overflow-y:scroll;visibility:hidden;flex-shrink:0}.ec-with-scroll .ec-hidden-scroll{display:block}.ec-toolbar{flex:0 0 auto;display:flex;justify-content:space-between;align-items:center;margin-bottom:1em}.ec-toolbar>*{margin-bottom:-0.5em}.ec-toolbar>*>*{margin-bottom:.5em}.ec-toolbar>*>*:not(:last-child){margin-right:.75em}.ec-title{margin:0}.ec-button{background-color:#fff;border:1px solid #ced4da;padding:.375rem .75rem;font-size:1rem;line-height:1.5;border-radius:.25rem}.ec-button:not(:disabled){color:#212529;cursor:pointer}.ec-button:not(:disabled):hover,.ec-button.ec-active{background-color:#ececec;border-color:#b1bbc4}.ec-button-group{display:inline-flex}.ec-button-group .ec-button:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0;margin-left:-1px}.ec-button-group .ec-button:not(:last-child){border-top-right-radius:0;border-bottom-right-radius:0}.ec-icon{display:inline-block;width:1em}.ec-icon.ec-prev:after,.ec-icon.ec-next:after{content:"";position:relative;width:.5em;height:.5em;border-top:2px solid #212529;border-right:2px solid #212529;display:inline-block}.ec-icon.ec-prev:after{transform:rotate(-135deg) translate(-2px, 2px)}.ec-icon.ec-next:after{transform:rotate(45deg) translate(-2px, 2px)}.ec-header,.ec-all-day,.ec-body,.ec-days,.ec-day{border:1px solid #dadce0}.ec-header{display:flex;flex-shrink:0}.ec-header .ec-resource{flex-direction:column}.ec-header .ec-resource .ec-days{border-top-style:solid}.ec-header .ec-days{border-bottom:none}.ec-header .ec-day{min-height:24px;line-height:24px;text-align:center;overflow:hidden;text-overflow:ellipsis}.ec-all-day{display:flex;flex-shrink:0;border-top:none}.ec-all-day .ec-days{border-bottom:none}.ec-all-day .ec-day{padding-bottom:4px}.ec-all-day .ec-event-time{display:none}.ec-body{position:relative;overflow-x:hidden;overflow-y:auto}.ec:not(.ec-list) .ec-body{border-top:none}.ec-sidebar{flex:0 0 auto;width:auto;max-width:100%;padding:0 4px 0 8px;display:flex;flex-direction:column;justify-content:center}.ec-sidebar-title{visibility:hidden;overflow-y:hidden;height:0;text-align:right}.ec-all-day .ec-sidebar-title{visibility:visible;height:auto;padding:8px 0}.ec-content{display:flex}.ec-month .ec-content{flex-direction:column;height:100%}.ec-month .ec-uniform .ec-content{overflow:hidden}.ec-list .ec-content{flex-direction:column}.ec-resource{display:flex}.ec-days{display:flex;border-style:none none solid}.ec-days:last-child{border-bottom:none}.ec-month .ec-days,.ec-resource .ec-days{flex:1 0 auto}.ec-month .ec-uniform .ec-days{flex:1 1 0%;min-height:0}.ec-day{border-style:none none none solid}.ec-day.ec-today{background-color:#fcf8e3}.ec-day.ec-highlight{background-color:#e5f7fe}.ec-month .ec-body .ec-day{min-height:5em;position:relative}.ec-month .ec-uniform .ec-day{min-height:0}.ec-month .ec-day:first-child{border-left:none}.ec-day.ec-other-month .ec-day-head{opacity:.3}.ec-list .ec-day{flex:1 0 auto;background-color:#fff;border-style:solid none;padding:8px 14px;font-weight:bold;position:-webkit-sticky;position:sticky;top:0;z-index:2}.ec-list .ec-day:first-child{border-top:none}.ec-month .ec-day-head{text-align:right;padding:4px 4px 3px}.ec-month .ec-day-foot{position:absolute;bottom:0;padding:2px;font-size:.85em}.ec-month .ec-day-foot a{cursor:pointer}.ec-list .ec-day-side{float:right}.ec-list .ec-no-events{text-align:center;padding:5em 0}.ec-events{margin:0 6px 0 0}.ec-week .ec-events,.ec-events.ec-preview{position:relative}.ec-event{display:flex;padding:2px;color:#fff;box-sizing:border-box;box-shadow:0 0 1px 0 #dadce0;background-color:#039be5;border-radius:3px;font-size:.85em;line-height:1.5;z-index:1}.ec-month .ec-event,.ec-all-day .ec-event{position:relative}.ec-week .ec-body .ec-event{position:absolute}.ec-list .ec-event{flex-direction:row;padding:8px 14px;color:inherit;background-color:rgba(0,0,0,0);border-radius:0}.ec-event.ec-preview{position:absolute;z-index:1000;width:100%;-webkit-user-select:none;user-select:none;opacity:.8}.ec-event.ec-pointer{color:inherit;pointer-events:none;-webkit-user-select:none;user-select:none;position:absolute;z-index:0;box-shadow:none;display:none}.ec-day:hover .ec-event.ec-pointer{display:flex}.ec-event-body{display:flex;flex-direction:column;width:100%}.ec-month .ec-event-body,.ec-all-day .ec-event-body{flex-direction:row}.ec-event-tag{width:4px;border-radius:2px;margin-right:8px}.ec-event-time{overflow:hidden;white-space:nowrap;margin:0 0 1px 0;flex-shrink:0}.ec-month .ec-event-time{margin:0 3px 0 0;max-width:100%;text-overflow:ellipsis}.ec-event-title{overflow:hidden}.ec-month .ec-event-title,.ec-all-day .ec-event-title{min-height:1.5em;white-space:nowrap;text-overflow:ellipsis}.ec-week .ec-body .ec-event-title{position:-webkit-sticky;position:sticky;top:0}.ec-list .ec-event-title{font-size:1rem}.ec-draggable{cursor:pointer;-webkit-user-select:none;user-select:none}.ec-ghost{opacity:.5;-webkit-user-select:none;user-select:none}.ec-bg-events{position:relative}.ec-bg-event{position:absolute;background-color:#dadce0;opacity:.3;width:100%}.ec-hidden-times{visibility:hidden;overflow-y:hidden;height:0}.ec-time,.ec-line{height:24px}.ec-time{position:relative;line-height:24px;top:-12px;text-align:right;white-space:nowrap}.ec-lines{width:8px}.ec-line:not(:first-child):after{content:"";position:absolute;width:100%;border-bottom:1px solid #dadce0;pointer-events:none}.ec-body:not(.ec-compact) .ec-line:nth-child(even):after{border-bottom-style:dotted}.ec-popup{position:absolute;top:0;display:flex;flex-direction:column;width:110%;min-width:180px;z-index:1010;padding:8px 10px 14px;background-color:#fff;border-radius:6px;outline:1px solid rgba(0,0,0,0);box-shadow:0 1px 3px 0 rgba(60,64,67,.3),0 4px 8px 3px rgba(60,64,67,.15)}.ec-popup .ec-day-head{text-align:left;display:flex;justify-content:space-between}.ec-popup .ec-day-head a{cursor:pointer;font-size:1.5em;line-height:.8}.ec-popup .ec-events{margin:0;min-height:0;overflow:auto}.ec-extra{position:relative;height:100%;overflow:hidden;margin-left:-6.5px;-webkit-user-select:none;user-select:none}.ec-now-indicator{position:absolute;z-index:1005;width:100%;border-top:#ea4335 solid 2px;pointer-events:none}.ec-now-indicator:before{background:#ea4335;border-radius:50%;content:"";position:absolute;height:12px;margin-top:-7px;width:12px;pointer-events:none}.ec-resizer{position:absolute;-webkit-user-select:none;user-select:none}.ec-month .ec-resizer,.ec-all-day .ec-resizer{top:0;right:0;bottom:0;width:50%;max-width:8px;cursor:ew-resize}.ec-week .ec-body .ec-resizer{left:0;right:0;bottom:0;height:50%;max-height:8px;cursor:ns-resize}.ec-dragging{cursor:pointer !important}.ec-resizing-y{cursor:ns-resize !important}.ec-resizing-x{cursor:ew-resize !important}
1
+ /* Grid */
2
+ .ec-month .ec-body,
3
+ .ec-days,
4
+ .ec-day,
5
+ .ec-day-title,
6
+ .ec-resource {
7
+ flex: 1 1 0;
8
+ min-width: 0;
9
+ max-width: 100%;
10
+ }
11
+
12
+ .ec {
13
+ display: flex;
14
+ flex-direction: column;
15
+ -webkit-tap-highlight-color: transparent;
16
+ /* Scrollbar */
17
+ }
18
+ .ec ::-webkit-scrollbar {
19
+ background: #fff;
20
+ }
21
+ .ec ::-webkit-scrollbar-thumb {
22
+ border: 4px solid #fff;
23
+ box-shadow: none;
24
+ background: #dadce0;
25
+ border-radius: 8px;
26
+ min-height: 40px;
27
+ }
28
+ .ec :hover::-webkit-scrollbar-thumb {
29
+ background: #bdc1c6;
30
+ }
31
+
32
+ .ec-hidden-scroll {
33
+ display: none;
34
+ overflow-y: scroll;
35
+ visibility: hidden;
36
+ flex-shrink: 0;
37
+ }
38
+ .ec-with-scroll .ec-hidden-scroll {
39
+ display: block;
40
+ }
41
+
42
+ /* Toolbar */
43
+ .ec-toolbar {
44
+ flex: 0 0 auto;
45
+ display: flex;
46
+ justify-content: space-between;
47
+ align-items: center;
48
+ margin-bottom: 1em;
49
+ }
50
+ .ec-toolbar > * {
51
+ margin-bottom: -0.5em;
52
+ }
53
+ .ec-toolbar > * > * {
54
+ margin-bottom: 0.5em;
55
+ }
56
+ .ec-toolbar > * > *:not(:last-child) {
57
+ margin-right: 0.75em;
58
+ }
59
+
60
+ .ec-title {
61
+ margin: 0;
62
+ }
63
+
64
+ .ec-button {
65
+ background-color: #fff;
66
+ border: 1px solid #ced4da;
67
+ padding: 0.375rem 0.75rem;
68
+ font-size: 1rem;
69
+ line-height: 1.5;
70
+ border-radius: 0.25rem;
71
+ }
72
+ .ec-button:not(:disabled) {
73
+ color: #212529;
74
+ cursor: pointer;
75
+ }
76
+ .ec-button:not(:disabled):hover, .ec-button.ec-active {
77
+ background-color: #ececec;
78
+ border-color: #b1bbc4;
79
+ }
80
+
81
+ .ec-button-group {
82
+ display: inline-flex;
83
+ }
84
+ .ec-button-group .ec-button:not(:first-child) {
85
+ border-top-left-radius: 0;
86
+ border-bottom-left-radius: 0;
87
+ margin-left: -1px;
88
+ }
89
+ .ec-button-group .ec-button:not(:last-child) {
90
+ border-top-right-radius: 0;
91
+ border-bottom-right-radius: 0;
92
+ }
93
+
94
+ .ec-icon {
95
+ display: inline-block;
96
+ width: 1em;
97
+ }
98
+ .ec-icon.ec-prev:after, .ec-icon.ec-next:after {
99
+ content: "";
100
+ position: relative;
101
+ width: 0.5em;
102
+ height: 0.5em;
103
+ border-top: 2px solid #212529;
104
+ border-right: 2px solid #212529;
105
+ display: inline-block;
106
+ }
107
+ .ec-icon.ec-prev:after {
108
+ transform: rotate(-135deg) translate(-2px, 2px);
109
+ }
110
+ .ec-icon.ec-next:after {
111
+ transform: rotate(45deg) translate(-2px, 2px);
112
+ }
113
+
114
+ /* Header */
115
+ .ec-header,
116
+ .ec-all-day,
117
+ .ec-body,
118
+ .ec-days,
119
+ .ec-day {
120
+ border: 1px solid #dadce0;
121
+ }
122
+
123
+ .ec-header {
124
+ display: flex;
125
+ flex-shrink: 0;
126
+ }
127
+ .ec-header .ec-resource {
128
+ flex-direction: column;
129
+ }
130
+ .ec-header .ec-resource .ec-days {
131
+ border-top-style: solid;
132
+ }
133
+ .ec-header .ec-days {
134
+ border-bottom: none;
135
+ }
136
+ .ec-header .ec-day {
137
+ min-height: 24px;
138
+ line-height: 24px;
139
+ text-align: center;
140
+ overflow: hidden;
141
+ text-overflow: ellipsis;
142
+ }
143
+
144
+ /* All Day */
145
+ .ec-all-day {
146
+ display: flex;
147
+ flex-shrink: 0;
148
+ border-top: none;
149
+ }
150
+ .ec-all-day .ec-days {
151
+ border-bottom: none;
152
+ }
153
+ .ec-all-day .ec-day {
154
+ padding-bottom: 4px;
155
+ }
156
+ .ec-all-day .ec-event-time {
157
+ display: none;
158
+ }
159
+
160
+ /* Body */
161
+ .ec-body {
162
+ position: relative;
163
+ overflow-x: hidden;
164
+ overflow-y: auto;
165
+ }
166
+ .ec:not(.ec-list) .ec-body {
167
+ border-top: none;
168
+ }
169
+
170
+ .ec-sidebar {
171
+ flex: 0 0 auto;
172
+ width: auto;
173
+ max-width: 100%;
174
+ padding: 0 4px 0 8px;
175
+ display: flex;
176
+ flex-direction: column;
177
+ justify-content: center;
178
+ }
179
+
180
+ .ec-sidebar-title {
181
+ visibility: hidden;
182
+ overflow-y: hidden;
183
+ height: 0;
184
+ text-align: right;
185
+ }
186
+ .ec-all-day .ec-sidebar-title {
187
+ visibility: visible;
188
+ height: auto;
189
+ padding: 8px 0;
190
+ }
191
+
192
+ .ec-content {
193
+ display: flex;
194
+ }
195
+ .ec-month .ec-content {
196
+ flex-direction: column;
197
+ height: 100%;
198
+ }
199
+ .ec-month .ec-uniform .ec-content {
200
+ overflow: hidden;
201
+ }
202
+ .ec-list .ec-content {
203
+ flex-direction: column;
204
+ }
205
+
206
+ .ec-resource {
207
+ display: flex;
208
+ }
209
+
210
+ .ec-days {
211
+ display: flex;
212
+ border-style: none none solid;
213
+ }
214
+ .ec-days:last-child {
215
+ border-bottom: none;
216
+ }
217
+ .ec-month .ec-days, .ec-resource .ec-days {
218
+ flex: 1 0 auto;
219
+ }
220
+ .ec-month .ec-uniform .ec-days {
221
+ flex: 1 1 0;
222
+ min-height: 0;
223
+ }
224
+
225
+ .ec-day {
226
+ border-style: none none none solid;
227
+ }
228
+ .ec-day.ec-today {
229
+ background-color: #fcf8e3;
230
+ }
231
+ .ec-day.ec-highlight {
232
+ background-color: #e5f7fe;
233
+ }
234
+ .ec-month .ec-body .ec-day {
235
+ min-height: 5em;
236
+ position: relative;
237
+ }
238
+ .ec-month .ec-uniform .ec-day {
239
+ min-height: 0;
240
+ }
241
+ .ec-month .ec-day:first-child {
242
+ border-left: none;
243
+ }
244
+ .ec-day.ec-other-month .ec-day-head {
245
+ opacity: 0.3;
246
+ }
247
+ .ec-list .ec-day {
248
+ flex: 1 0 auto;
249
+ background-color: #fff;
250
+ border-style: solid none;
251
+ padding: 8px 14px;
252
+ font-weight: bold;
253
+ position: sticky;
254
+ top: 0;
255
+ z-index: 2;
256
+ }
257
+ .ec-list .ec-day:first-child {
258
+ border-top: none;
259
+ }
260
+
261
+ .ec-month .ec-day-head {
262
+ text-align: right;
263
+ padding: 4px 4px 3px;
264
+ }
265
+ .ec-month .ec-day-foot {
266
+ position: absolute;
267
+ bottom: 0;
268
+ padding: 2px;
269
+ font-size: 0.85em;
270
+ }
271
+ .ec-month .ec-day-foot a {
272
+ cursor: pointer;
273
+ }
274
+
275
+ .ec-list .ec-day-side {
276
+ float: right;
277
+ }
278
+ .ec-list .ec-no-events {
279
+ text-align: center;
280
+ padding: 5em 0;
281
+ }
282
+
283
+ .ec-events {
284
+ margin: 0 6px 0 0;
285
+ }
286
+ .ec-week .ec-events, .ec-events.ec-preview {
287
+ position: relative;
288
+ }
289
+
290
+ .ec-event {
291
+ display: flex;
292
+ padding: 2px;
293
+ color: #fff;
294
+ box-sizing: border-box;
295
+ box-shadow: 0 0 1px 0 #dadce0;
296
+ background-color: #039be5;
297
+ border-radius: 3px;
298
+ font-size: 0.85em;
299
+ line-height: 1.5;
300
+ z-index: 1;
301
+ }
302
+ .ec-month .ec-event, .ec-all-day .ec-event {
303
+ position: relative;
304
+ }
305
+ .ec-week .ec-body .ec-event {
306
+ position: absolute;
307
+ }
308
+ .ec-list .ec-event {
309
+ flex-direction: row;
310
+ padding: 8px 14px;
311
+ color: inherit;
312
+ background-color: transparent;
313
+ border-radius: 0;
314
+ }
315
+ .ec-event.ec-preview {
316
+ position: absolute;
317
+ z-index: 1000;
318
+ width: 100%;
319
+ user-select: none;
320
+ opacity: 0.8;
321
+ }
322
+ .ec-event.ec-pointer {
323
+ color: inherit;
324
+ pointer-events: none;
325
+ user-select: none;
326
+ position: absolute;
327
+ z-index: 0;
328
+ box-shadow: none;
329
+ display: none;
330
+ }
331
+ .ec-day:hover .ec-event.ec-pointer {
332
+ display: flex;
333
+ }
334
+
335
+ .ec-event-body {
336
+ display: flex;
337
+ flex-direction: column;
338
+ width: 100%;
339
+ }
340
+ .ec-month .ec-event-body, .ec-all-day .ec-event-body {
341
+ flex-direction: row;
342
+ }
343
+
344
+ .ec-event-tag {
345
+ width: 4px;
346
+ border-radius: 2px;
347
+ margin-right: 8px;
348
+ }
349
+
350
+ .ec-event-time {
351
+ overflow: hidden;
352
+ white-space: nowrap;
353
+ margin: 0 0 1px 0;
354
+ flex-shrink: 0;
355
+ }
356
+ .ec-month .ec-event-time {
357
+ margin: 0 3px 0 0;
358
+ max-width: 100%;
359
+ text-overflow: ellipsis;
360
+ }
361
+
362
+ .ec-event-title {
363
+ overflow: hidden;
364
+ }
365
+ .ec-month .ec-event-title, .ec-all-day .ec-event-title {
366
+ min-height: 1.5em;
367
+ white-space: nowrap;
368
+ text-overflow: ellipsis;
369
+ }
370
+ .ec-week .ec-body .ec-event-title {
371
+ position: sticky;
372
+ top: 0;
373
+ }
374
+ .ec-list .ec-event-title {
375
+ font-size: 1rem;
376
+ }
377
+
378
+ .ec-draggable {
379
+ cursor: pointer;
380
+ user-select: none;
381
+ }
382
+
383
+ .ec-ghost {
384
+ opacity: 0.5;
385
+ user-select: none;
386
+ }
387
+
388
+ .ec-bg-events {
389
+ position: relative;
390
+ }
391
+
392
+ .ec-bg-event {
393
+ position: absolute;
394
+ background-color: #dadce0;
395
+ opacity: 0.3;
396
+ width: 100%;
397
+ }
398
+
399
+ .ec-hidden-times {
400
+ visibility: hidden;
401
+ overflow-y: hidden;
402
+ height: 0;
403
+ }
404
+
405
+ .ec-time,
406
+ .ec-line {
407
+ height: 24px;
408
+ }
409
+
410
+ .ec-time {
411
+ position: relative;
412
+ line-height: 24px;
413
+ top: -12px;
414
+ text-align: right;
415
+ white-space: nowrap;
416
+ }
417
+
418
+ .ec-lines {
419
+ width: 8px;
420
+ }
421
+
422
+ .ec-line:not(:first-child):after {
423
+ content: "";
424
+ position: absolute;
425
+ width: 100%;
426
+ border-bottom: 1px solid #dadce0;
427
+ pointer-events: none;
428
+ }
429
+
430
+ .ec-body:not(.ec-compact) .ec-line:nth-child(even):after {
431
+ border-bottom-style: dotted;
432
+ }
433
+
434
+ .ec-popup {
435
+ position: absolute;
436
+ top: 0;
437
+ display: flex;
438
+ flex-direction: column;
439
+ width: 110%;
440
+ min-width: 180px;
441
+ z-index: 1010;
442
+ padding: 8px 10px 14px;
443
+ background-color: #fff;
444
+ border-radius: 6px;
445
+ outline: 1px solid transparent;
446
+ box-shadow: 0 1px 3px 0 rgba(60, 64, 67, 0.3), 0 4px 8px 3px rgba(60, 64, 67, 0.15);
447
+ }
448
+ .ec-popup .ec-day-head {
449
+ text-align: left;
450
+ display: flex;
451
+ justify-content: space-between;
452
+ }
453
+ .ec-popup .ec-day-head a {
454
+ cursor: pointer;
455
+ font-size: 1.5em;
456
+ line-height: 0.8;
457
+ }
458
+ .ec-popup .ec-events {
459
+ margin: 0;
460
+ min-height: 0;
461
+ overflow: auto;
462
+ }
463
+
464
+ .ec-extra {
465
+ position: relative;
466
+ height: 100%;
467
+ overflow: hidden;
468
+ margin-left: -6.5px;
469
+ user-select: none;
470
+ }
471
+
472
+ .ec-now-indicator {
473
+ position: absolute;
474
+ z-index: 1005;
475
+ width: 100%;
476
+ border-top: #ea4335 solid 2px;
477
+ pointer-events: none;
478
+ }
479
+ .ec-now-indicator:before {
480
+ background: #ea4335;
481
+ border-radius: 50%;
482
+ content: "";
483
+ position: absolute;
484
+ height: 12px;
485
+ margin-top: -7px;
486
+ width: 12px;
487
+ pointer-events: none;
488
+ }
489
+
490
+ .ec-resizer {
491
+ position: absolute;
492
+ user-select: none;
493
+ }
494
+ .ec-month .ec-resizer, .ec-all-day .ec-resizer {
495
+ top: 0;
496
+ right: 0;
497
+ bottom: 0;
498
+ width: 50%;
499
+ max-width: 8px;
500
+ cursor: ew-resize;
501
+ }
502
+ .ec-week .ec-body .ec-resizer {
503
+ left: 0;
504
+ right: 0;
505
+ bottom: 0;
506
+ height: 50%;
507
+ max-height: 8px;
508
+ cursor: ns-resize;
509
+ }
510
+
511
+ .ec-dragging {
512
+ cursor: pointer !important;
513
+ }
514
+
515
+ .ec-resizing-y {
516
+ cursor: ns-resize !important;
517
+ }
518
+
519
+ .ec-resizing-x {
520
+ cursor: ew-resize !important;
521
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@event-calendar/core",
3
- "version": "0.14.3",
3
+ "version": "0.15.0",
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.14.3",
40
+ "@event-calendar/common": "~0.15.0",
41
41
  "svelte": "^3.55.0"
42
42
  }
43
43
  }
package/src/index.scss CHANGED
@@ -4,7 +4,7 @@
4
4
  .ec-day,
5
5
  .ec-day-title,
6
6
  .ec-resource {
7
- flex: 1 1 0%; /* % for ie11 */
7
+ flex: 1 1 0;
8
8
  min-width: 0;
9
9
  max-width: 100%;
10
10
  }
@@ -219,7 +219,7 @@
219
219
 
220
220
  .ec-month & {
221
221
  flex-direction: column;
222
- height: 100%; /* ie11 */
222
+ height: 100%;
223
223
  }
224
224
 
225
225
  .ec-month .ec-uniform & {
@@ -245,11 +245,11 @@
245
245
 
246
246
  .ec-month &,
247
247
  .ec-resource & {
248
- flex: 1 0 auto; /* ie11 */
248
+ flex: 1 0 auto;
249
249
  }
250
250
 
251
251
  .ec-month .ec-uniform & {
252
- flex: 1 1 0%;
252
+ flex: 1 1 0;
253
253
  min-height: 0;
254
254
  }
255
255
  }
@@ -283,7 +283,7 @@
283
283
  }
284
284
 
285
285
  .ec-list & {
286
- flex: 1 0 auto; /* ie11 */
286
+ flex: 1 0 auto;
287
287
  background-color: #fff;
288
288
  border-style: solid none;
289
289
  padding: 8px 14px;