@syncfusion/ej2-schedule 20.3.61 → 20.4.40

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.
Files changed (157) hide show
  1. package/.eslintrc.json +16 -1
  2. package/CHANGELOG.md +10 -0
  3. package/README.md +62 -46
  4. package/dist/ej2-schedule.min.js +2 -2
  5. package/dist/ej2-schedule.umd.min.js +2 -2
  6. package/dist/ej2-schedule.umd.min.js.map +1 -1
  7. package/dist/es6/ej2-schedule.es2015.js +786 -524
  8. package/dist/es6/ej2-schedule.es2015.js.map +1 -1
  9. package/dist/es6/ej2-schedule.es5.js +821 -535
  10. package/dist/es6/ej2-schedule.es5.js.map +1 -1
  11. package/dist/global/ej2-schedule.min.js +2 -2
  12. package/dist/global/ej2-schedule.min.js.map +1 -1
  13. package/dist/global/index.d.ts +1 -1
  14. package/package.json +23 -33
  15. package/src/common/calendar-util.js +1 -1
  16. package/src/recurrence-editor/date-generator.js +26 -26
  17. package/src/recurrence-editor/recurrence-editor.js +5 -5
  18. package/src/schedule/actions/action-base.js +3 -3
  19. package/src/schedule/actions/crud.js +16 -16
  20. package/src/schedule/actions/drag.js +36 -32
  21. package/src/schedule/actions/keyboard.js +10 -8
  22. package/src/schedule/actions/resize.js +6 -6
  23. package/src/schedule/actions/touch.js +4 -3
  24. package/src/schedule/actions/virtual-scroll.js +10 -7
  25. package/src/schedule/base/interface.d.ts +8 -1
  26. package/src/schedule/base/resource.d.ts +1 -0
  27. package/src/schedule/base/resource.js +179 -93
  28. package/src/schedule/base/schedule-model.d.ts +7 -0
  29. package/src/schedule/base/schedule.d.ts +23 -0
  30. package/src/schedule/base/schedule.js +73 -22
  31. package/src/schedule/base/util.js +4 -6
  32. package/src/schedule/event-renderer/agenda-base.js +36 -31
  33. package/src/schedule/event-renderer/event-base.js +25 -25
  34. package/src/schedule/event-renderer/inline-edit.js +8 -5
  35. package/src/schedule/event-renderer/month.js +17 -14
  36. package/src/schedule/event-renderer/timeline-view.js +11 -11
  37. package/src/schedule/event-renderer/vertical-view.d.ts +1 -0
  38. package/src/schedule/event-renderer/vertical-view.js +97 -70
  39. package/src/schedule/event-renderer/year.js +25 -17
  40. package/src/schedule/exports/calendar-export.js +4 -4
  41. package/src/schedule/exports/calendar-import.js +14 -15
  42. package/src/schedule/exports/excel-export.js +1 -1
  43. package/src/schedule/models/group-model.d.ts +8 -0
  44. package/src/schedule/models/group.d.ts +7 -0
  45. package/src/schedule/models/group.js +3 -0
  46. package/src/schedule/models/views-model.d.ts +8 -1
  47. package/src/schedule/models/views.d.ts +7 -1
  48. package/src/schedule/models/views.js +3 -0
  49. package/src/schedule/popups/event-tooltip.js +3 -2
  50. package/src/schedule/popups/event-window.js +36 -30
  51. package/src/schedule/popups/quick-popups.js +6 -6
  52. package/src/schedule/renderer/agenda.js +5 -5
  53. package/src/schedule/renderer/header-renderer.d.ts +1 -1
  54. package/src/schedule/renderer/header-renderer.js +21 -5
  55. package/src/schedule/renderer/month-agenda.js +11 -4
  56. package/src/schedule/renderer/month.js +44 -16
  57. package/src/schedule/renderer/renderer.js +3 -3
  58. package/src/schedule/renderer/timeline-header-row.js +7 -7
  59. package/src/schedule/renderer/timeline-month.js +5 -5
  60. package/src/schedule/renderer/timeline-view.js +2 -2
  61. package/src/schedule/renderer/timeline-year.js +20 -14
  62. package/src/schedule/renderer/vertical-view.js +24 -9
  63. package/src/schedule/renderer/view-base.d.ts +3 -0
  64. package/src/schedule/renderer/view-base.js +11 -3
  65. package/src/schedule/renderer/year.js +11 -5
  66. package/styles/bootstrap-dark.css +364 -101
  67. package/styles/bootstrap.css +363 -99
  68. package/styles/bootstrap4.css +375 -141
  69. package/styles/bootstrap5-dark.css +339 -137
  70. package/styles/bootstrap5.css +339 -137
  71. package/styles/fabric-dark.css +330 -101
  72. package/styles/fabric.css +316 -106
  73. package/styles/fluent-dark.css +395 -102
  74. package/styles/fluent.css +395 -102
  75. package/styles/highcontrast-light.css +407 -98
  76. package/styles/highcontrast.css +399 -113
  77. package/styles/material-dark.css +362 -110
  78. package/styles/material.css +404 -110
  79. package/styles/recurrence-editor/_layout.scss +42 -28
  80. package/styles/recurrence-editor/bootstrap-dark.css +137 -28
  81. package/styles/recurrence-editor/bootstrap-dark.scss +5 -0
  82. package/styles/recurrence-editor/bootstrap.css +137 -28
  83. package/styles/recurrence-editor/bootstrap.scss +5 -0
  84. package/styles/recurrence-editor/bootstrap4.css +171 -28
  85. package/styles/recurrence-editor/bootstrap4.scss +5 -0
  86. package/styles/recurrence-editor/bootstrap5-dark.css +178 -28
  87. package/styles/recurrence-editor/bootstrap5-dark.scss +5 -0
  88. package/styles/recurrence-editor/bootstrap5.css +178 -28
  89. package/styles/recurrence-editor/bootstrap5.scss +5 -0
  90. package/styles/recurrence-editor/fabric-dark.css +113 -28
  91. package/styles/recurrence-editor/fabric-dark.scss +5 -0
  92. package/styles/recurrence-editor/fabric.css +106 -28
  93. package/styles/recurrence-editor/fabric.scss +5 -0
  94. package/styles/recurrence-editor/fluent-dark.css +158 -28
  95. package/styles/recurrence-editor/fluent-dark.scss +5 -0
  96. package/styles/recurrence-editor/fluent.css +158 -28
  97. package/styles/recurrence-editor/fluent.scss +5 -0
  98. package/styles/recurrence-editor/highcontrast-light.css +110 -28
  99. package/styles/recurrence-editor/highcontrast-light.scss +5 -0
  100. package/styles/recurrence-editor/highcontrast.css +110 -28
  101. package/styles/recurrence-editor/highcontrast.scss +5 -0
  102. package/styles/recurrence-editor/material-dark.css +138 -28
  103. package/styles/recurrence-editor/material-dark.scss +5 -0
  104. package/styles/recurrence-editor/material.css +163 -28
  105. package/styles/recurrence-editor/material.scss +5 -0
  106. package/styles/recurrence-editor/tailwind-dark.css +126 -28
  107. package/styles/recurrence-editor/tailwind-dark.scss +5 -0
  108. package/styles/recurrence-editor/tailwind.css +126 -28
  109. package/styles/recurrence-editor/tailwind.scss +5 -0
  110. package/styles/schedule/_bootstrap-dark-definition.scss +63 -4
  111. package/styles/schedule/_bootstrap-definition.scss +62 -3
  112. package/styles/schedule/_bootstrap4-definition.scss +65 -5
  113. package/styles/schedule/_bootstrap5-definition.scss +63 -5
  114. package/styles/schedule/_fabric-dark-definition.scss +61 -3
  115. package/styles/schedule/_fabric-definition.scss +62 -3
  116. package/styles/schedule/_fluent-definition.scss +63 -6
  117. package/styles/schedule/_fusionnew-definition.scss +60 -3
  118. package/styles/schedule/_highcontrast-definition.scss +62 -3
  119. package/styles/schedule/_highcontrast-light-definition.scss +62 -3
  120. package/styles/schedule/_layout.scss +117 -506
  121. package/styles/schedule/_material-dark-definition.scss +63 -4
  122. package/styles/schedule/_material-definition.scss +63 -4
  123. package/styles/schedule/_material3-definition.scss +62 -3
  124. package/styles/schedule/_tailwind-definition.scss +63 -6
  125. package/styles/schedule/_theme.scss +97 -62
  126. package/styles/schedule/bootstrap-dark.css +332 -73
  127. package/styles/schedule/bootstrap-dark.scss +11 -0
  128. package/styles/schedule/bootstrap.css +331 -71
  129. package/styles/schedule/bootstrap.scss +11 -0
  130. package/styles/schedule/bootstrap4.css +343 -113
  131. package/styles/schedule/bootstrap4.scss +11 -0
  132. package/styles/schedule/bootstrap5-dark.css +307 -109
  133. package/styles/schedule/bootstrap5-dark.scss +11 -0
  134. package/styles/schedule/bootstrap5.css +307 -109
  135. package/styles/schedule/bootstrap5.scss +11 -0
  136. package/styles/schedule/fabric-dark.css +298 -73
  137. package/styles/schedule/fabric-dark.scss +11 -0
  138. package/styles/schedule/fabric.css +284 -78
  139. package/styles/schedule/fabric.scss +11 -0
  140. package/styles/schedule/fluent-dark.css +363 -74
  141. package/styles/schedule/fluent-dark.scss +11 -0
  142. package/styles/schedule/fluent.css +363 -74
  143. package/styles/schedule/fluent.scss +11 -0
  144. package/styles/schedule/highcontrast-light.css +375 -70
  145. package/styles/schedule/highcontrast-light.scss +11 -0
  146. package/styles/schedule/highcontrast.css +367 -85
  147. package/styles/schedule/highcontrast.scss +11 -0
  148. package/styles/schedule/material-dark.css +330 -82
  149. package/styles/schedule/material-dark.scss +11 -0
  150. package/styles/schedule/material.css +372 -82
  151. package/styles/schedule/material.scss +11 -0
  152. package/styles/schedule/tailwind-dark.css +246 -111
  153. package/styles/schedule/tailwind-dark.scss +11 -0
  154. package/styles/schedule/tailwind.css +246 -111
  155. package/styles/schedule/tailwind.scss +11 -0
  156. package/styles/tailwind-dark.css +279 -140
  157. package/styles/tailwind.css +279 -140
@@ -13,10 +13,8 @@
13
13
  }
14
14
 
15
15
  .e-header-calendar {
16
- @if ($schedule-skin == 'tailwind' or $schedule-skin == 'bootstrap5' or $schedule-skin == 'FluentUI') {
17
- background-color: $schedule-calendar-background;
18
- box-shadow: $schedule-popup-box-shadow-1;
19
- }
16
+ background-color: $schedule-calendar-background;
17
+ box-shadow: $schedule-calendar-shadow;
20
18
  }
21
19
 
22
20
  .e-vertical-view {
@@ -73,20 +71,11 @@
73
71
  }
74
72
 
75
73
  .e-time-cells-wrap table td {
76
- background-color: $schedule-header-bg-color;
74
+ background-color: $schedule-time-cells-bg-color;
77
75
  border-color: $schedule-content-border-color;
78
76
  border-style: $border-type;
79
77
  border-width: 0 1px 1px 0;
80
- color: $schedule-secondary-content-font-color;
81
- @if ($schedule-skin == 'bootstrap4') {
82
- color: $schedule-primary-content-font-color;
83
- }
84
- @if ($schedule-skin == 'tailwind') {
85
- background-color: $schedule-tbar-default-bg;
86
- }
87
- @if ($schedule-skin == 'bootstrap5') {
88
- background-color: $schedule-vertical-time-slot-color;
89
- }
78
+ color: $schedule-time-cells-font-color;
90
79
  }
91
80
 
92
81
  .e-time-cells-wrap table td {
@@ -94,9 +83,7 @@
94
83
  }
95
84
 
96
85
  .e-time-cells-wrap .e-time-cells {
97
- @if ($schedule-skin != 'tailwind' and $schedule-skin != 'bootstrap5') {
98
- border-bottom-color: $schedule-content-border-color;
99
- }
86
+ border-bottom-color: $schedule-time-cells-border-bottom-color;
100
87
  }
101
88
 
102
89
  .e-header-cells {
@@ -104,9 +91,7 @@
104
91
 
105
92
  &.e-current-day {
106
93
  color: $schedule-active-font-color;
107
- @if ($schedule-skin == 'tailwind') {
108
- font-weight: 500;
109
- }
94
+ font-weight: $schedule-current-day-font-weight;
110
95
  }
111
96
  }
112
97
 
@@ -144,9 +129,7 @@
144
129
 
145
130
  &:hover {
146
131
  background-color: $schedule-select-bg-color;
147
- @if ($schedule-skin == 'bootstrap5') {
148
- color: $schedule-active-color;
149
- }
132
+ color: $schedule-selected-cell-hover-font-color;
150
133
  }
151
134
  }
152
135
  }
@@ -157,9 +140,7 @@
157
140
 
158
141
  &:hover {
159
142
  background-color: $schedule-select-bg-color;
160
- @if ($schedule-skin == 'bootstrap5') {
161
- color: $schedule-active-color;
162
- }
143
+ color: $schedule-selected-cell-hover-font-color;
163
144
  }
164
145
  }
165
146
 
@@ -200,19 +181,13 @@
200
181
  border-style: $border-type;
201
182
  border-width: $schedule-month-work-cells-border;
202
183
  color: $schedule-header-font-color;
203
- text-align: left;
204
-
205
- @if ($schedule-skin == 'tailwind') {
206
- font-size: 12px;
207
- text-align: center;
208
- text-transform: uppercase;
209
- }
184
+ font-size: $schedule-month-date-header-cell-font-size;
185
+ text-align: $schedule-month-date-header-cell-text-align;
186
+ text-transform: $schedule-month-date-header-cell-text-transform;
210
187
 
211
188
  &.e-current-day {
212
189
  color: $schedule-active-font-color;
213
- @if ($schedule-skin == 'tailwind') {
214
- font-weight: 500;
215
- }
190
+ font-weight: $schedule-current-day-font-weight;
216
191
  }
217
192
  }
218
193
 
@@ -226,10 +201,7 @@
226
201
 
227
202
  &:hover {
228
203
  background: $schedule-hover-bg-color;
229
- color: $schedule-hover-font-color;
230
- @if ($schedule-skin == 'bootstrap5') {
231
- color: $schedule-select-font-color;
232
- }
204
+ color: $schedule-work-cell-hover-color;
233
205
  }
234
206
  }
235
207
 
@@ -244,11 +216,8 @@
244
216
  .e-current-date .e-date-header {
245
217
  background-color: $schedule-current-date-bg-color;
246
218
  border-radius: 50%;
247
- color: $schedule-active-color;
219
+ color: $schedule-current-date-header-font-color;
248
220
  width: 20px;
249
- @if ($schedule-skin == 'highcontrast') {
250
- color: $schedule-active-font-color;
251
- }
252
221
  }
253
222
 
254
223
  .e-selected-cell {
@@ -256,9 +225,7 @@
256
225
  color: $schedule-select-font-color;
257
226
 
258
227
  .e-date-header {
259
- @if ($schedule-skin == 'highcontrast') {
260
- color: $schedule-select-font-color;
261
- }
228
+ color: $schedule-selected-date-header-cell-font-color;
262
229
  }
263
230
 
264
231
  .e-more-indicator {
@@ -272,6 +239,11 @@
272
239
  }
273
240
 
274
241
  .e-month-agenda-view {
242
+
243
+ .e-content-wrap .e-table-container {
244
+ overflow: auto;
245
+ }
246
+
275
247
  .e-date-header-wrap table td {
276
248
  border-width: $schedule-month-agenda-header-cells-border;
277
249
  text-align: center;
@@ -306,9 +278,7 @@
306
278
 
307
279
  &.e-current-day {
308
280
  color: $schedule-active-font-color;
309
- @if ($schedule-skin == 'tailwind') {
310
- font-weight: 500;
311
- }
281
+ font-weight: $schedule-current-day-font-weight;
312
282
  }
313
283
  }
314
284
 
@@ -385,6 +355,81 @@
385
355
  }
386
356
  }
387
357
 
358
+ .e-timeline-year-view {
359
+ .e-work-cells {
360
+ background-color: $schedule-work-cells-bg-color;
361
+ border-color: $schedule-content-border-color;
362
+ border-style: $border-type;
363
+ border-width: 0 $border-size $border-size 0;
364
+ color: $schedule-primary-content-font-color;
365
+ padding: 0;
366
+
367
+ &:hover:not(.e-other-month) {
368
+ background: $schedule-hover-bg-color;
369
+ color: $schedule-hover-font-color;
370
+ }
371
+
372
+ &.e-work-days {
373
+ background-color: $schedule-workhour-bg-color;
374
+ }
375
+
376
+ &.e-other-month {
377
+ color: $schedule-secondary-content-font-color;
378
+ }
379
+
380
+ &.e-current-day .e-date-header {
381
+ background-color: $schedule-current-date-bg-color;
382
+ border-radius: 50%;
383
+ color: $schedule-current-day-active-color;
384
+ margin: 2px;
385
+ width: 20px;
386
+ }
387
+
388
+ &.e-selected-cell {
389
+ background-color: $schedule-select-bg-color;
390
+ color: $schedule-select-font-color;
391
+
392
+ .e-date-header {
393
+ color: $schedule-select-font-color;
394
+ }
395
+
396
+ .e-more-indicator {
397
+ color: $schedule-select-font-color;
398
+ }
399
+
400
+ &:hover {
401
+ background-color: $schedule-select-bg-color;
402
+ }
403
+ }
404
+
405
+ &.e-disable-dates {
406
+ background-color: $schedule-disable-dates-color;
407
+
408
+ .e-date-header {
409
+ cursor: default;
410
+ opacity: .35;
411
+
412
+ &:hover {
413
+ text-decoration: none;
414
+ }
415
+ }
416
+
417
+ &:hover {
418
+ background-color: $schedule-disable-dates-color;
419
+ }
420
+ }
421
+ }
422
+
423
+ &.e-virtual-mask .e-work-cells {
424
+ background-color: $schedule-disable-dates-color;
425
+ box-shadow: inset 0 0 0 8px $schedule-work-cells-bg-color;
426
+
427
+ &:hover {
428
+ background-color: $schedule-disable-dates-color;
429
+ }
430
+ }
431
+ }
432
+
388
433
  #{if(&, '&', '*')}.e-rtl {
389
434
  .e-vertical-view {
390
435
  .e-date-header-wrap table tbody td:first-child,
@@ -489,17 +534,7 @@
489
534
  }
490
535
 
491
536
  .e-tip-content {
492
- padding: 3px 6px;
493
- }
494
-
495
- @if ($schedule-skin == 'bootstrap4') {
496
- .e-tip-content {
497
- padding: 4px 8px 0;
498
- }
499
-
500
- .e-arrow-tip {
501
- overflow: visible;
502
- }
537
+ padding: $schedule-tip-content-padding;
503
538
  }
504
539
 
505
540
  .e-tip-content,