@syncfusion/ej2-schedule 19.3.55 → 19.4.42

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 (121) hide show
  1. package/.github/PULL_REQUEST_TEMPLATE/Bug.md +63 -0
  2. package/.github/PULL_REQUEST_TEMPLATE/Feature.md +39 -0
  3. package/CHANGELOG.md +50 -1
  4. package/dist/ej2-schedule.umd.min.js +2 -2
  5. package/dist/ej2-schedule.umd.min.js.map +1 -1
  6. package/dist/es6/ej2-schedule.es2015.js +489 -145
  7. package/dist/es6/ej2-schedule.es2015.js.map +1 -1
  8. package/dist/es6/ej2-schedule.es5.js +493 -152
  9. package/dist/es6/ej2-schedule.es5.js.map +1 -1
  10. package/dist/global/ej2-schedule.min.js +2 -2
  11. package/dist/global/ej2-schedule.min.js.map +1 -1
  12. package/dist/global/index.d.ts +1 -1
  13. package/package.json +15 -15
  14. package/src/recurrence-editor/recurrence-editor.js +2 -2
  15. package/src/schedule/actions/drag.js +12 -4
  16. package/src/schedule/actions/keyboard.d.ts +7 -0
  17. package/src/schedule/actions/keyboard.js +197 -28
  18. package/src/schedule/actions/resize.js +44 -37
  19. package/src/schedule/base/css-constant.d.ts +6 -0
  20. package/src/schedule/base/css-constant.js +6 -0
  21. package/src/schedule/base/interface.d.ts +12 -0
  22. package/src/schedule/base/resource.js +1 -0
  23. package/src/schedule/base/schedule-model.d.ts +89 -20
  24. package/src/schedule/base/schedule.d.ts +88 -19
  25. package/src/schedule/base/schedule.js +15 -4
  26. package/src/schedule/base/util.d.ts +1 -0
  27. package/src/schedule/base/util.js +1 -0
  28. package/src/schedule/event-renderer/event-base.d.ts +2 -1
  29. package/src/schedule/event-renderer/event-base.js +19 -4
  30. package/src/schedule/event-renderer/inline-edit.js +8 -5
  31. package/src/schedule/event-renderer/month.js +3 -2
  32. package/src/schedule/event-renderer/timeline-view.js +4 -0
  33. package/src/schedule/event-renderer/vertical-view.js +9 -6
  34. package/src/schedule/event-renderer/year.js +1 -1
  35. package/src/schedule/exports/excel-export.d.ts +2 -1
  36. package/src/schedule/exports/excel-export.js +21 -18
  37. package/src/schedule/models/event-settings-model.d.ts +17 -9
  38. package/src/schedule/models/event-settings.d.ts +15 -8
  39. package/src/schedule/models/event-settings.js +6 -3
  40. package/src/schedule/models/views-model.d.ts +19 -0
  41. package/src/schedule/models/views.d.ts +17 -0
  42. package/src/schedule/models/views.js +6 -0
  43. package/src/schedule/popups/quick-popups.js +3 -0
  44. package/src/schedule/renderer/agenda.js +2 -1
  45. package/src/schedule/renderer/header-renderer.d.ts +1 -0
  46. package/src/schedule/renderer/header-renderer.js +23 -8
  47. package/src/schedule/renderer/month.d.ts +4 -0
  48. package/src/schedule/renderer/month.js +69 -19
  49. package/src/schedule/renderer/renderer.js +6 -1
  50. package/src/schedule/renderer/timeline-year.js +4 -1
  51. package/src/schedule/renderer/view-base.js +12 -1
  52. package/src/schedule/renderer/year.d.ts +2 -2
  53. package/src/schedule/renderer/year.js +24 -6
  54. package/styles/bootstrap-dark.css +108 -27
  55. package/styles/bootstrap.css +105 -27
  56. package/styles/bootstrap4.css +117 -62
  57. package/styles/bootstrap5-dark.css +118 -67
  58. package/styles/bootstrap5.css +118 -67
  59. package/styles/fabric-dark.css +108 -26
  60. package/styles/fabric.css +109 -26
  61. package/styles/highcontrast-light.css +104 -26
  62. package/styles/highcontrast.css +109 -28
  63. package/styles/material-dark.css +110 -32
  64. package/styles/material.css +103 -25
  65. package/styles/recurrence-editor/_bootstrap-dark-definition.scss +7 -0
  66. package/styles/recurrence-editor/_bootstrap-definition.scss +7 -0
  67. package/styles/recurrence-editor/_bootstrap4-definition.scss +7 -0
  68. package/styles/recurrence-editor/_bootstrap5-definition.scss +7 -0
  69. package/styles/recurrence-editor/_fabric-dark-definition.scss +8 -0
  70. package/styles/recurrence-editor/_fabric-definition.scss +7 -0
  71. package/styles/recurrence-editor/_fluent-definition.scss +15 -0
  72. package/styles/recurrence-editor/_highcontrast-definition.scss +7 -0
  73. package/styles/recurrence-editor/_highcontrast-light-definition.scss +7 -0
  74. package/styles/recurrence-editor/_layout.scss +20 -4
  75. package/styles/recurrence-editor/_material-dark-definition.scss +7 -0
  76. package/styles/recurrence-editor/_material-definition.scss +7 -0
  77. package/styles/recurrence-editor/_tailwind-definition.scss +15 -8
  78. package/styles/recurrence-editor/bootstrap-dark.css +20 -4
  79. package/styles/recurrence-editor/bootstrap.css +20 -4
  80. package/styles/recurrence-editor/bootstrap4.css +20 -4
  81. package/styles/recurrence-editor/bootstrap5-dark.css +20 -4
  82. package/styles/recurrence-editor/bootstrap5.css +20 -4
  83. package/styles/recurrence-editor/fabric-dark.css +20 -4
  84. package/styles/recurrence-editor/fabric.css +20 -4
  85. package/styles/recurrence-editor/highcontrast-light.css +20 -4
  86. package/styles/recurrence-editor/highcontrast.css +20 -4
  87. package/styles/recurrence-editor/material-dark.css +20 -4
  88. package/styles/recurrence-editor/material.css +20 -4
  89. package/styles/recurrence-editor/tailwind-dark.css +20 -4
  90. package/styles/recurrence-editor/tailwind.css +20 -4
  91. package/styles/schedule/_bootstrap-dark-definition.scss +22 -1
  92. package/styles/schedule/_bootstrap-definition.scss +22 -1
  93. package/styles/schedule/_bootstrap4-definition.scss +23 -1
  94. package/styles/schedule/_bootstrap5-definition.scss +145 -119
  95. package/styles/schedule/_fabric-dark-definition.scss +22 -1
  96. package/styles/schedule/_fabric-definition.scss +22 -1
  97. package/styles/schedule/_fluent-definition.scss +218 -0
  98. package/styles/schedule/_highcontrast-definition.scss +22 -1
  99. package/styles/schedule/_highcontrast-light-definition.scss +22 -1
  100. package/styles/schedule/_layout.scss +95 -158
  101. package/styles/schedule/_material-dark-definition.scss +22 -1
  102. package/styles/schedule/_material-definition.scss +21 -0
  103. package/styles/schedule/_tailwind-definition.scss +216 -195
  104. package/styles/schedule/_theme.scss +1 -1
  105. package/styles/schedule/bootstrap-dark.css +88 -23
  106. package/styles/schedule/bootstrap.css +85 -23
  107. package/styles/schedule/bootstrap4.css +97 -58
  108. package/styles/schedule/bootstrap5-dark.css +98 -63
  109. package/styles/schedule/bootstrap5.css +98 -63
  110. package/styles/schedule/fabric-dark.css +88 -22
  111. package/styles/schedule/fabric.css +89 -22
  112. package/styles/schedule/highcontrast-light.css +84 -22
  113. package/styles/schedule/highcontrast.css +89 -24
  114. package/styles/schedule/icons/_fluent.scss +231 -0
  115. package/styles/schedule/icons/_tailwind.scss +231 -231
  116. package/styles/schedule/material-dark.css +90 -28
  117. package/styles/schedule/material.css +83 -21
  118. package/styles/schedule/tailwind-dark.css +94 -52
  119. package/styles/schedule/tailwind.css +94 -52
  120. package/styles/tailwind-dark.css +114 -56
  121. package/styles/tailwind.css +114 -56
@@ -135,7 +135,9 @@ export declare class Schedule extends Component<HTMLElement> implements INotifyP
135
135
  isPrinting: boolean;
136
136
  /**
137
137
  * Sets the `width` of the Schedule component, accepting both string and number values.
138
+ *
138
139
  * {% codeBlock src='schedule/width/index.md' %}{% endcodeBlock %}
140
+ *
139
141
  * The string value can be either pixel or percentage format.
140
142
  * When set to `auto`, the Schedule width gets auto-adjusted and display its content related to the viewable screen size.
141
143
  *
@@ -144,7 +146,9 @@ export declare class Schedule extends Component<HTMLElement> implements INotifyP
144
146
  width: string | number;
145
147
  /**
146
148
  * Sets the `height` of the Schedule component, accepting both string and number values.
149
+ *
147
150
  * {% codeBlock src='schedule/height/index.md' %}{% endcodeBlock %}
151
+ *
148
152
  * The string type includes either pixel or percentage values.
149
153
  * When `height` is set with specific pixel value, then the Schedule will be rendered to that specified space.
150
154
  * In case, if `auto` value is set, then the height of the Schedule gets auto-adjusted within the given container.
@@ -155,6 +159,7 @@ export declare class Schedule extends Component<HTMLElement> implements INotifyP
155
159
  /**
156
160
  * When set to `false`, hides the header bar of the Schedule from UI. By default,
157
161
  * the header bar holds the date and view navigation options, to which the user can add their own custom items onto it.
162
+ *
158
163
  * {% codeBlock src='schedule/showHeaderBar/index.md' %}{% endcodeBlock %}
159
164
  *
160
165
  * @default true
@@ -163,6 +168,7 @@ export declare class Schedule extends Component<HTMLElement> implements INotifyP
163
168
  /**
164
169
  * When set to `false`, hides the current time indicator from the Schedule. Otherwise,
165
170
  * it visually depicts the live current system time appropriately on the user interface.
171
+ *
166
172
  * {% codeBlock src='schedule/showTimeIndicator/index.md' %}{% endcodeBlock %}
167
173
  *
168
174
  * @default true
@@ -183,6 +189,7 @@ export declare class Schedule extends Component<HTMLElement> implements INotifyP
183
189
  * * TimelineWorkWeek
184
190
  * * TimelineMonth
185
191
  * * TimelineYear
192
+ *
186
193
  * {% codeBlock src='schedule/currentView/index.md' %}{% endcodeBlock %}
187
194
  *
188
195
  * @default 'Week'
@@ -192,8 +199,10 @@ export declare class Schedule extends Component<HTMLElement> implements INotifyP
192
199
  * This property holds the views collection and its configurations. It accepts either the array of view names or the array of view
193
200
  * objects that holds different configurations for each views. By default,
194
201
  * Schedule displays all the views namely `Day`, `Week`, `Work Week`, `Month` and `Agenda`.
202
+ *
195
203
  * Example for array of views:
196
204
  * {% codeBlock src="schedule/view-api/index.ts" %}{% endcodeBlock %}
205
+ *
197
206
  * Example for array of view objects:
198
207
  * {% codeBlock src="schedule/view-api/array.ts" %}{% endcodeBlock %}
199
208
  * {% codeBlock src='schedule/views/index.md' %}{% endcodeBlock %}
@@ -204,6 +213,7 @@ export declare class Schedule extends Component<HTMLElement> implements INotifyP
204
213
  /**
205
214
  * To mark the active (current) date on the Schedule, `selectedDate` property can be defined.
206
215
  * Usually, it defaults to the current System date.
216
+ *
207
217
  * {% codeBlock src='schedule/selectedDate/index.md' %}{% endcodeBlock %}
208
218
  *
209
219
  * @default 'new Date()'
@@ -213,6 +223,7 @@ export declare class Schedule extends Component<HTMLElement> implements INotifyP
213
223
  /**
214
224
  * To define the minimum date on the Schedule, `minDate` property can be defined.
215
225
  * Usually, it defaults to the new Date(1900, 0, 1).
226
+ *
216
227
  * {% codeBlock src='schedule/minDate/index.md' %}{% endcodeBlock %}
217
228
  *
218
229
  * @default new Date(1900, 0, 1)
@@ -222,6 +233,7 @@ export declare class Schedule extends Component<HTMLElement> implements INotifyP
222
233
  /**
223
234
  * To define the maximum date on the Schedule, `maxDate` property can be defined.
224
235
  * Usually, it defaults to the new Date(2099, 11, 31).
236
+ *
225
237
  * {% codeBlock src='schedule/maxDate/index.md' %}{% endcodeBlock %}
226
238
  *
227
239
  * @default new Date(2099, 11, 31)
@@ -231,7 +243,9 @@ export declare class Schedule extends Component<HTMLElement> implements INotifyP
231
243
  /**
232
244
  * By default, Schedule follows the date-format as per the default culture assigned to it.
233
245
  * It is also possible to manually set specific date format by using the `dateFormat` property.
246
+ *
234
247
  * {% codeBlock src='schedule/dateFormat/index.md' %}{% endcodeBlock %}
248
+ *
235
249
  * The format of the date range label in the header bar depends on the `dateFormat` value or else based on the
236
250
  * locale assigned to the Schedule.
237
251
  *
@@ -239,9 +253,11 @@ export declare class Schedule extends Component<HTMLElement> implements INotifyP
239
253
  */
240
254
  dateFormat: string;
241
255
  /**
242
- * It allows the Scheduler to display in other calendar modes.
256
+ * It allows the Scheduler to display in other calendar modes.
243
257
  * By default, Scheduler is displayed in `Gregorian` calendar mode.
258
+ *
244
259
  * {% codeBlock src='schedule/calendarMode/index.md' %}{% endcodeBlock %}
260
+ *
245
261
  * To change the mode, you can set either `Gregorian` or `Islamic` as a value to this `calendarMode` property.
246
262
  *
247
263
  * @default 'Gregorian'
@@ -250,7 +266,9 @@ export declare class Schedule extends Component<HTMLElement> implements INotifyP
250
266
  /**
251
267
  * When set to `false`, it hides the weekend days of a week from the Schedule. The days which are not defined in the working days
252
268
  * collection are usually treated as weekend days.
269
+ *
253
270
  * {% codeBlock src='schedule/showWeekend/index.md' %}{% endcodeBlock %}
271
+ *
254
272
  * Note: By default, this option is not applicable on `Work Week` view.
255
273
  * For example, if the working days are defined as [1, 2, 3, 4], then the remaining days of that week will be considered as
256
274
  * the weekend days and will be hidden on all the views.
@@ -262,6 +280,7 @@ export declare class Schedule extends Component<HTMLElement> implements INotifyP
262
280
  * This option allows the user to set the first day of a week on Schedule. It should be based on the locale set to it and each culture
263
281
  * defines its own first day of week values. If needed, the user can set it manually on his own by defining the value through
264
282
  * this property. It usually accepts the integer values, whereby 0 is always denoted as Sunday, 1 as Monday and so on.
283
+ *
265
284
  * {% codeBlock src='schedule/firstDayOfWeek/index.md' %}{% endcodeBlock %}
266
285
  *
267
286
  * @default 0
@@ -273,6 +292,7 @@ export declare class Schedule extends Component<HTMLElement> implements INotifyP
273
292
  * * FirstDay
274
293
  * * FirstFourDayWeek
275
294
  * * FirstFullWeek
295
+ *
276
296
  * {% codeBlock src='schedule/weekRule/index.md' %}{% endcodeBlock %}
277
297
  *
278
298
  * @default 'FirstDay'
@@ -281,6 +301,7 @@ export declare class Schedule extends Component<HTMLElement> implements INotifyP
281
301
  /**
282
302
  * It is used to set the working days on Schedule. The only days that are defined in this collection will be rendered on the `workWeek`
283
303
  * view whereas on other views, it will display all the usual days and simply highlights the working days with different shade.
304
+ *
284
305
  * {% codeBlock src='schedule/workDays/index.md' %}{% endcodeBlock %}
285
306
  *
286
307
  * @default '[1, 2, 3, 4, 5]'
@@ -289,6 +310,7 @@ export declare class Schedule extends Component<HTMLElement> implements INotifyP
289
310
  workDays: number[];
290
311
  /**
291
312
  * This option allows the user to set the number of months count to be displayed on the Schedule.
313
+ *
292
314
  * {% codeBlock src='schedule/monthsCount/index.md' %}{% endcodeBlock %}
293
315
  *
294
316
  * @default 12
@@ -298,6 +320,7 @@ export declare class Schedule extends Component<HTMLElement> implements INotifyP
298
320
  /**
299
321
  * It is used to specify the starting hour, from which the Schedule starts to display. It accepts the time string in a short skeleton
300
322
  * format and also, hides the time beyond the specified start time.
323
+ *
301
324
  * {% codeBlock src='schedule/startHour/index.md' %}{% endcodeBlock %}
302
325
  *
303
326
  * @default '00:00'
@@ -305,6 +328,7 @@ export declare class Schedule extends Component<HTMLElement> implements INotifyP
305
328
  startHour: string;
306
329
  /**
307
330
  * It is used to specify the end hour, at which the Schedule ends. It too accepts the time string in a short skeleton format.
331
+ *
308
332
  * {% codeBlock src='schedule/endHour/index.md' %}{% endcodeBlock %}
309
333
  *
310
334
  * @default '24:00'
@@ -313,6 +337,7 @@ export declare class Schedule extends Component<HTMLElement> implements INotifyP
313
337
  /**
314
338
  * By default, Schedule follows the time-format as per the default culture assigned to it.
315
339
  * It is also possible to manually set specific time format by using the `timeFormat` property.
340
+ *
316
341
  * {% codeBlock src='schedule/timeFormat/index.md' %}{% endcodeBlock %}
317
342
  *
318
343
  * @default null
@@ -321,6 +346,7 @@ export declare class Schedule extends Component<HTMLElement> implements INotifyP
321
346
  /**
322
347
  * When set to `true`, If valid, the scroll on the all day row is activated when the all day row
323
348
  * height reaches the max height when the all day row is expanded.
349
+ *
324
350
  * {% codeBlock src='schedule/enableAllDayScroll/index.md' %}{% endcodeBlock %}
325
351
  *
326
352
  * @default false
@@ -328,6 +354,7 @@ export declare class Schedule extends Component<HTMLElement> implements INotifyP
328
354
  enableAllDayScroll: boolean;
329
355
  /**
330
356
  * When set to `true`, the header view navigations are listed under the popup and if we enable resource grouping, the compact view will be enabled.
357
+ *
331
358
  * {% codeBlock src='schedule/enableAdaptiveUI/index.md' %}{% endcodeBlock %}
332
359
  *
333
360
  * @default false
@@ -336,6 +363,7 @@ export declare class Schedule extends Component<HTMLElement> implements INotifyP
336
363
  /**
337
364
  * When set to `true`, allows the resizing of appointments. It allows the rescheduling of appointments either by changing the
338
365
  * start or end time by dragging the event resize handlers.
366
+ *
339
367
  * {% codeBlock src='schedule/allowResizing/index.md' %}{% endcodeBlock %}
340
368
  *
341
369
  * @default true
@@ -345,6 +373,7 @@ export declare class Schedule extends Component<HTMLElement> implements INotifyP
345
373
  * The working hours should be highlighted on Schedule with different color shade and an additional option must be provided to
346
374
  * highlight it or not. This functionality is handled through `workHours` property and the start work hour should be 9 AM by default
347
375
  * and end work hour should point to 6 PM. The start and end working hours needs to be provided as Time value of short skeleton type.
376
+ *
348
377
  * {% codeBlock src='schedule/workHours/index.md' %}{% endcodeBlock %}
349
378
  *
350
379
  * @default { highlight: true, start: '09:00', end: '18:00' }
@@ -353,6 +382,7 @@ export declare class Schedule extends Component<HTMLElement> implements INotifyP
353
382
  /**
354
383
  * Allows to set different time duration on Schedule along with the customized grid count. It also has template option to
355
384
  * customize the time slots with required time values in its own format.
385
+ *
356
386
  * {% codeBlock src='schedule/timeScale/index.md' %}{% endcodeBlock %}
357
387
  *
358
388
  * @default { enable: true, interval: 60, slotCount: 2, majorSlotTemplate: null, minorSlotTemplate: null }
@@ -360,6 +390,7 @@ export declare class Schedule extends Component<HTMLElement> implements INotifyP
360
390
  timeScale: TimeScaleModel;
361
391
  /**
362
392
  * When set to `true`, allows the keyboard interaction to take place on Schedule.
393
+ *
363
394
  * {% codeBlock src='schedule/allowKeyboardInteraction/index.md' %}{% endcodeBlock %}
364
395
  *
365
396
  * @default true
@@ -368,6 +399,7 @@ export declare class Schedule extends Component<HTMLElement> implements INotifyP
368
399
  /**
369
400
  * When set to `true`, allows the appointments to move over the time slots. When an appointment is dragged, both its start
370
401
  * and end time tends to change simultaneously allowing it to reschedule the appointment on some other time.
402
+ *
371
403
  * {% codeBlock src='schedule/allowDragAndDrop/index.md' %}{% endcodeBlock %}
372
404
  *
373
405
  * @default true
@@ -376,6 +408,7 @@ export declare class Schedule extends Component<HTMLElement> implements INotifyP
376
408
  /**
377
409
  * It accepts either the string or HTMLElement as template design content and parse it appropriately before displaying it onto
378
410
  * the date header cells. The field that can be accessed via this template is `date`.
411
+ *
379
412
  * {% codeBlock src='schedule/dateHeaderTemplate/index.md' %}{% endcodeBlock %}
380
413
  *
381
414
  * @default null
@@ -384,6 +417,7 @@ export declare class Schedule extends Component<HTMLElement> implements INotifyP
384
417
  /**
385
418
  * It accepts either the string or HTMLElement as template design content and parse it appropriately before displaying it onto
386
419
  * the month date cells. This template is only applicable for month view day cells.
420
+ *
387
421
  * {% codeBlock src='schedule/cellHeaderTemplate/index.md' %}{% endcodeBlock %}
388
422
  *
389
423
  * @default null
@@ -392,6 +426,7 @@ export declare class Schedule extends Component<HTMLElement> implements INotifyP
392
426
  /**
393
427
  * It accepts either the string or HTMLElement as template design content and parse it appropriately before displaying it onto
394
428
  * the day header cells. This template is only applicable for year view header cells.
429
+ *
395
430
  * {% codeBlock src='schedule/dayHeaderTemplate/index.md' %}{% endcodeBlock %}
396
431
  *
397
432
  * @default null
@@ -400,6 +435,7 @@ export declare class Schedule extends Component<HTMLElement> implements INotifyP
400
435
  /**
401
436
  * It accepts either the string or HTMLElement as template design content and parse it appropriately before displaying it onto
402
437
  * the month header cells. This template is only applicable for year view header cells.
438
+ *
403
439
  * {% codeBlock src='schedule/monthHeaderTemplate/index.md' %}{% endcodeBlock %}
404
440
  *
405
441
  * @default null
@@ -422,6 +458,7 @@ export declare class Schedule extends Component<HTMLElement> implements INotifyP
422
458
  cellTemplate: string;
423
459
  /**
424
460
  * When set to `true`, makes the Schedule to render in a read only mode. No CRUD actions will be allowed at this time.
461
+ *
425
462
  * {% codeBlock src='schedule/readonly/index.md' %}{% endcodeBlock %}
426
463
  *
427
464
  * @default false
@@ -430,46 +467,47 @@ export declare class Schedule extends Component<HTMLElement> implements INotifyP
430
467
  /**
431
468
  * When set to `true`, displays a quick popup with cell or event details on single clicking over the cells or on events.
432
469
  * By default, it is set to `true`.
470
+ *
433
471
  * {% codeBlock src='schedule/showQuickInfo/index.md' %}{% endcodeBlock %}
434
472
  *
435
473
  * @default true
436
474
  */
437
475
  showQuickInfo: boolean;
438
476
  /**
439
- * This property helps user to add/edit the event in inline.
477
+ * This property helps user to add/edit the event in inline. By default, it is set to `false`.
478
+ *
440
479
  * {% codeBlock src='schedule/allowInline/index.md' %}{% endcodeBlock %}
441
- * By default, it is set to `false`.
442
480
  *
443
481
  * @default false
444
482
  */
445
483
  allowInline: boolean;
446
484
  /**
447
- * This property helps user to allow/prevent the selection of multiple cells.
485
+ * This property helps user to allow/prevent the selection of multiple cells. By default, it is set to `true`.
486
+ *
448
487
  * {% codeBlock src='schedule/allowMultiCellSelection/index.md' %}{% endcodeBlock %}
449
- * By default, it is set to `true`.
450
488
  *
451
489
  * @default true
452
490
  */
453
491
  allowMultiCellSelection: boolean;
454
492
  /**
455
- * This property helps user to allow/prevent the selection of multiple days(rows).
493
+ * This property helps user to allow/prevent the selection of multiple days(rows). By default, it is set to `true`.
494
+ *
456
495
  * {% codeBlock src='schedule/allowMultiRowSelection/index.md' %}{% endcodeBlock %}
457
- * By default, it is set to `true`.
458
496
  *
459
497
  * @default true
460
498
  */
461
499
  allowMultiRowSelection: boolean;
462
500
  /**
463
- * This property helps to show quick popup after multiple cell selection.
501
+ * This property helps to show quick popup after multiple cell selection. By default, it is set to `false`.
502
+ *
464
503
  * {% codeBlock src='schedule/quickInfoOnSelectionEnd/index.md' %}{% endcodeBlock %}
465
- * By default, it is set to `false`.
466
504
  *
467
505
  * @default false
468
506
  */
469
507
  quickInfoOnSelectionEnd: boolean;
470
508
  /**
471
- * When set to `true`, displays the week number of the current view date range.
472
- * By default, it is set to `false`.
509
+ * When set to `true`, displays the week number of the current view date range. By default, it is set to `false`.
510
+ *
473
511
  * {% codeBlock src='schedule/showWeekNumber/index.md' %}{% endcodeBlock %}
474
512
  *
475
513
  * @default false
@@ -478,21 +516,24 @@ export declare class Schedule extends Component<HTMLElement> implements INotifyP
478
516
  /**
479
517
  * when set to `true`, allows the height of the work-cells to adjust automatically
480
518
  * based on the number of appointments present in those time ranges.
519
+ *
481
520
  * {% codeBlock src='schedule/rowAutoHeight/index.md' %}{% endcodeBlock %}
482
521
  *
483
522
  * @default false
484
523
  */
485
524
  rowAutoHeight: boolean;
486
525
  /**
487
- * This property helps to drag the multiple selected events.
488
- * By default, it is set to `false`.
526
+ * This property helps to drag the multiple selected events. By default, it is set to `false`.
527
+ *
528
+ * {% codeBlock src='schedule/allowMultiDrag/index.md' %}{% endcodeBlock %}
489
529
  *
490
530
  * @default false
491
531
  */
492
532
  allowMultiDrag: boolean;
493
533
  /**
494
- * This property helps render the year view customized months.
495
- * By default, it is set to `0`.
534
+ * This property helps render the year view customized months. By default, it is set to `0`.
535
+ *
536
+ * {% codeBlock src='schedule/firstMonthOfYear/index.md' %}{% endcodeBlock %}
496
537
  *
497
538
  * @default 0
498
539
  */
@@ -500,6 +541,7 @@ export declare class Schedule extends Component<HTMLElement> implements INotifyP
500
541
  /**
501
542
  * The template option to render the customized editor window. The form elements defined within this template should be accompanied
502
543
  * with `e-field` class, so as to fetch and process it from internally.
544
+ *
503
545
  * {% codeBlock src='schedule/editorTemplate/index.md' %}{% endcodeBlock %}
504
546
  *
505
547
  * @default null
@@ -508,6 +550,7 @@ export declare class Schedule extends Component<HTMLElement> implements INotifyP
508
550
  /**
509
551
  * The template option to customize the quick window. The three sections of the quick popup whereas the header, content,
510
552
  * and footer can be easily customized with individual template option.
553
+ *
511
554
  * {% codeBlock src='schedule/quickInfoTemplates/index.md' %}{% endcodeBlock %}
512
555
  *
513
556
  * @default null
@@ -516,6 +559,7 @@ export declare class Schedule extends Component<HTMLElement> implements INotifyP
516
559
  /**
517
560
  * Sets the number of days to be displayed by default in Agenda View and in case of virtual scrolling,
518
561
  * the number of days will be fetched on each scroll-end based on this count.
562
+ *
519
563
  * {% codeBlock src='schedule/agendaDaysCount/index.md' %}{% endcodeBlock %}
520
564
  *
521
565
  * @default 7
@@ -524,14 +568,15 @@ export declare class Schedule extends Component<HTMLElement> implements INotifyP
524
568
  /**
525
569
  * The days which does not has even a single event to display will be hidden from the UI of Agenda View by default.
526
570
  * When this property is set to `false`, the empty dates will also be displayed on the Schedule.
571
+ *
527
572
  * {% codeBlock src='schedule/hideEmptyAgendaDays/index.md' %}{% endcodeBlock %}
528
573
  *
529
574
  * @default true
530
575
  */
531
576
  hideEmptyAgendaDays: boolean;
532
577
  /**
533
- * The recurrence validation will be done by default
534
- * When this property is set to `false`, the recurrence validation will be skipped.
578
+ * The recurrence validation will be done by default. When this property is set to `false`, the recurrence validation will be skipped.
579
+ *
535
580
  * {% codeBlock src='schedule/enableRecurrenceValidation/index.md' %}{% endcodeBlock %}
536
581
  *
537
582
  * @default true
@@ -543,6 +588,7 @@ export declare class Schedule extends Component<HTMLElement> implements INotifyP
543
588
  * Whenever the Schedule is bound to remote data services, it is always recommended to set specific timezone to Schedule to make the
544
589
  * events on it to display on the same time irrespective of the system timezone. It usually accepts
545
590
  * the valid [IANA](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) timezone names.
591
+ *
546
592
  * {% codeBlock src='schedule/timezone/index.md' %}{% endcodeBlock %}
547
593
  *
548
594
  * @default null
@@ -551,6 +597,7 @@ export declare class Schedule extends Component<HTMLElement> implements INotifyP
551
597
  /**
552
598
  * Complete set of settings related to Schedule events to bind it to local or remote dataSource, map applicable database fields and
553
599
  * other validation to be carried out on the available fields.
600
+ *
554
601
  * {% codeBlock src='schedule/eventSettings/index.md' %}{% endcodeBlock %}
555
602
  *
556
603
  * @default null
@@ -558,6 +605,7 @@ export declare class Schedule extends Component<HTMLElement> implements INotifyP
558
605
  eventSettings: EventSettingsModel;
559
606
  /**
560
607
  * Allows to define the collection of timezone items in the Schedule. Only the items bound to this property get listed out in the timezone dropdown of the appointment window.
608
+ *
561
609
  * {% codeBlock src='schedule/timezoneDatasource/index.md' %}{% endcodeBlock %}
562
610
  *
563
611
  * @default timezoneData
@@ -591,6 +639,7 @@ export declare class Schedule extends Component<HTMLElement> implements INotifyP
591
639
  /**
592
640
  * Allows defining the group related settings of multiple resources. When this property is non-empty, it means
593
641
  * that the resources will be grouped on the schedule layout based on the provided resource names.
642
+ *
594
643
  * {% codeBlock src='schedule/group/index.md' %}{% endcodeBlock %}
595
644
  *
596
645
  * @default {}
@@ -599,6 +648,7 @@ export declare class Schedule extends Component<HTMLElement> implements INotifyP
599
648
  /**
600
649
  * Allows defining the collection of resources to be displayed on the Schedule. The resource collection needs to be defined
601
650
  * with unique resource names to identify it along with the respective dataSource and field mapping options.
651
+ *
602
652
  * {% codeBlock src='schedule/resources/index.md' %}{% endcodeBlock %}
603
653
  *
604
654
  * @default []
@@ -607,6 +657,7 @@ export declare class Schedule extends Component<HTMLElement> implements INotifyP
607
657
  /**
608
658
  * Allows defining the collection of custom header rows to display the year, month, week, date and hour label as an individual row
609
659
  * on the timeline view of the scheduler.
660
+ *
610
661
  * {% codeBlock src='schedule/headerRows/index.md' %}{% endcodeBlock %}
611
662
  *
612
663
  * @default []
@@ -615,6 +666,7 @@ export declare class Schedule extends Component<HTMLElement> implements INotifyP
615
666
  /**
616
667
  * It is used to customize the Schedule which accepts custom CSS class names that defines specific user-defined styles and themes
617
668
  * to be applied on the Schedule element.
669
+ *
618
670
  * {% codeBlock src='schedule/cssClass/index.md' %}{% endcodeBlock %}
619
671
  *
620
672
  * @default null
@@ -622,8 +674,8 @@ export declare class Schedule extends Component<HTMLElement> implements INotifyP
622
674
  cssClass: string;
623
675
  /**
624
676
  * It enables the external drag and drop support for appointments on scheduler, to be able to move them out of the scheduler layout.
625
- * When the drag area is explicitly set with specific DOM element name,
626
- * the appointments can be dragged anywhere within the specified drag area location.
677
+ * When the drag area is explicitly set with specific DOM element name, the appointments can be dragged anywhere within the specified drag area location.
678
+ *
627
679
  * {% codeBlock src='schedule/eventDragArea/index.md' %}{% endcodeBlock %}
628
680
  *
629
681
  * @default null
@@ -673,6 +725,7 @@ export declare class Schedule extends Component<HTMLElement> implements INotifyP
673
725
  select: EmitType<SelectEventArgs>;
674
726
  /**
675
727
  * Triggers on beginning of every scheduler action.
728
+ *
676
729
  * {% codeBlock src='schedule/actionBegin/index.md' %}{% endcodeBlock %}
677
730
  *
678
731
  * @event 'actionBegin'
@@ -680,6 +733,7 @@ export declare class Schedule extends Component<HTMLElement> implements INotifyP
680
733
  actionBegin: EmitType<ActionEventArgs>;
681
734
  /**
682
735
  * Triggers on successful completion of the scheduler actions.
736
+ *
683
737
  * {% codeBlock src='schedule/actionComplete/index.md' %}{% endcodeBlock %}
684
738
  *
685
739
  * @event 'actionComplete'
@@ -687,6 +741,7 @@ export declare class Schedule extends Component<HTMLElement> implements INotifyP
687
741
  actionComplete: EmitType<ActionEventArgs>;
688
742
  /**
689
743
  * Triggers when a scheduler action gets failed or interrupted and an error information will be returned.
744
+ *
690
745
  * {% codeBlock src='schedule/actionFailure/index.md' %}{% endcodeBlock %}
691
746
  *
692
747
  * @event 'actionFailure'
@@ -694,6 +749,7 @@ export declare class Schedule extends Component<HTMLElement> implements INotifyP
694
749
  actionFailure: EmitType<ActionEventArgs>;
695
750
  /**
696
751
  * Triggers before the date or view navigation takes place on scheduler.
752
+ *
697
753
  * {% codeBlock src='schedule/navigating/index.md' %}{% endcodeBlock %}
698
754
  *
699
755
  * @event 'navigating'
@@ -701,6 +757,7 @@ export declare class Schedule extends Component<HTMLElement> implements INotifyP
701
757
  navigating: EmitType<NavigatingEventArgs>;
702
758
  /**
703
759
  * Triggers before each element of the schedule rendering on the page.
760
+ *
704
761
  * {% codeBlock src='schedule/renderCell/index.md' %}{% endcodeBlock %}
705
762
  *
706
763
  * @event 'renderCell'
@@ -708,6 +765,7 @@ export declare class Schedule extends Component<HTMLElement> implements INotifyP
708
765
  renderCell: EmitType<RenderCellEventArgs>;
709
766
  /**
710
767
  * Triggers when the events are single clicked or on single tapping the events on the mobile devices.
768
+ *
711
769
  * {% codeBlock src='schedule/eventClick/index.md' %}{% endcodeBlock %}
712
770
  *
713
771
  * @event 'eventClick'
@@ -715,6 +773,7 @@ export declare class Schedule extends Component<HTMLElement> implements INotifyP
715
773
  eventClick: EmitType<EventClickArgs>;
716
774
  /**
717
775
  * Triggers before each of the event getting rendered on the scheduler user interface.
776
+ *
718
777
  * {% codeBlock src='schedule/eventRendered/index.md' %}{% endcodeBlock %}
719
778
  *
720
779
  * @event 'eventRendered'
@@ -722,6 +781,7 @@ export declare class Schedule extends Component<HTMLElement> implements INotifyP
722
781
  eventRendered: EmitType<EventRenderedArgs>;
723
782
  /**
724
783
  * Triggers before the data binds to the scheduler.
784
+ *
725
785
  * {% codeBlock src='schedule/dataBinding/index.md' %}{% endcodeBlock %}
726
786
  *
727
787
  * @event 'dataBinding'
@@ -729,6 +789,7 @@ export declare class Schedule extends Component<HTMLElement> implements INotifyP
729
789
  dataBinding: EmitType<ReturnType>;
730
790
  /**
731
791
  * Triggers before any of the scheduler popups opens on the page.
792
+ *
732
793
  * {% codeBlock src='schedule/popupOpen/index.md' %}{% endcodeBlock %}
733
794
  *
734
795
  * @event 'popupOpen'
@@ -736,6 +797,7 @@ export declare class Schedule extends Component<HTMLElement> implements INotifyP
736
797
  popupOpen: EmitType<PopupOpenEventArgs>;
737
798
  /**
738
799
  * Triggers before any of the scheduler popups close on the page.
800
+ *
739
801
  * {% codeBlock src='schedule/popupClose/index.md' %}{% endcodeBlock %}
740
802
  *
741
803
  * @event 'popupClose'
@@ -743,6 +805,7 @@ export declare class Schedule extends Component<HTMLElement> implements INotifyP
743
805
  popupClose: EmitType<PopupCloseEventArgs>;
744
806
  /**
745
807
  * Triggers when an appointment is started to drag.
808
+ *
746
809
  * {% codeBlock src='schedule/dragStart/index.md' %}{% endcodeBlock %}
747
810
  *
748
811
  * @event 'dragStart'
@@ -750,6 +813,7 @@ export declare class Schedule extends Component<HTMLElement> implements INotifyP
750
813
  dragStart: EmitType<DragEventArgs>;
751
814
  /**
752
815
  * Triggers when an appointment is being in a dragged state.
816
+ *
753
817
  * {% codeBlock src='schedule/drag/index.md' %}{% endcodeBlock %}
754
818
  *
755
819
  * @event 'drag'
@@ -757,6 +821,7 @@ export declare class Schedule extends Component<HTMLElement> implements INotifyP
757
821
  drag: EmitType<DragEventArgs>;
758
822
  /**
759
823
  * Triggers when the dragging of appointment is stopped.
824
+ *
760
825
  * {% codeBlock src='schedule/dragStop/index.md' %}{% endcodeBlock %}
761
826
  *
762
827
  * @event 'dragStop'
@@ -764,6 +829,7 @@ export declare class Schedule extends Component<HTMLElement> implements INotifyP
764
829
  dragStop: EmitType<DragEventArgs>;
765
830
  /**
766
831
  * Triggers when an appointment is started to resize.
832
+ *
767
833
  * {% codeBlock src='schedule/resizeStart/index.md' %}{% endcodeBlock %}
768
834
  *
769
835
  * @event 'resizeStart'
@@ -771,6 +837,7 @@ export declare class Schedule extends Component<HTMLElement> implements INotifyP
771
837
  resizeStart: EmitType<ResizeEventArgs>;
772
838
  /**
773
839
  * Triggers when an appointment is being in a resizing action.
840
+ *
774
841
  * {% codeBlock src='schedule/resizing/index.md' %}{% endcodeBlock %}
775
842
  *
776
843
  * @event 'resizing'
@@ -778,6 +845,7 @@ export declare class Schedule extends Component<HTMLElement> implements INotifyP
778
845
  resizing: EmitType<ResizeEventArgs>;
779
846
  /**
780
847
  * Triggers when the resizing of appointment is stopped.
848
+ *
781
849
  * {% codeBlock src='schedule/resizeStop/index.md' %}{% endcodeBlock %}
782
850
  *
783
851
  * @event 'resizeStop'
@@ -785,6 +853,7 @@ export declare class Schedule extends Component<HTMLElement> implements INotifyP
785
853
  resizeStop: EmitType<ResizeEventArgs>;
786
854
  /**
787
855
  * Triggers once the event data is bound to the scheduler.
856
+ *
788
857
  * {% codeBlock src='schedule/dataBound/index.md' %}{% endcodeBlock %}
789
858
  *
790
859
  * @event 'dataBound'
@@ -331,13 +331,19 @@ var Schedule = /** @class */ (function (_super) {
331
331
  timeFormat: this.internalTimeFormat,
332
332
  group: group,
333
333
  headerRows: this.headerRows,
334
- orientation: 'Horizontal'
334
+ orientation: 'Horizontal',
335
+ numberOfWeeks: 0,
336
+ displayDate: null
335
337
  };
336
338
  var viewOptions = this.viewCollections[this.viewIndex];
337
339
  var viewsData = extend(scheduleOptions, viewOptions, undefined, true);
338
340
  if (this.firstDayOfWeek !== 0 && viewOptions.firstDayOfWeek && this.firstDayOfWeek !== viewOptions.firstDayOfWeek) {
339
341
  viewsData.firstDayOfWeek = this.firstDayOfWeek;
340
342
  }
343
+ if (viewsData.displayDate) {
344
+ viewsData.displayDate = viewsData.displayDate instanceof Date ? new Date(viewsData.displayDate.getTime()) :
345
+ new Date(viewsData.displayDate);
346
+ }
341
347
  return viewsData;
342
348
  };
343
349
  Schedule.prototype.initializeDataModule = function () {
@@ -650,7 +656,7 @@ var Schedule = /** @class */ (function (_super) {
650
656
  if (this && isNullOrUndefined(this.uiStateValues) || !(this.enablePersistence)) {
651
657
  this.uiStateValues = {
652
658
  expand: false, isInitial: true, left: 0, top: 0, isGroupAdaptive: false,
653
- isIgnoreOccurrence: false, groupIndex: 0, action: false, isBlock: false
659
+ isIgnoreOccurrence: false, groupIndex: 0, action: false, isBlock: false, isCustomMonth: true
654
660
  };
655
661
  }
656
662
  this.activeCellsData = { startTime: this.getCurrentTime(), endTime: this.getCurrentTime(), isAllDay: false };
@@ -1429,7 +1435,7 @@ var Schedule = /** @class */ (function (_super) {
1429
1435
  if (dateHeader.classList.contains(cls.ALLDAY_APPOINTMENT_AUTO)) {
1430
1436
  removeClass([dateHeader], cls.ALLDAY_APPOINTMENT_AUTO);
1431
1437
  }
1432
- this.eventBase.allDayExpandScroll(dateHeader, true);
1438
+ this.eventBase.allDayExpandScroll(dateHeader);
1433
1439
  }
1434
1440
  if (!this.uiStateValues.expand) {
1435
1441
  allDayRow.style.height = '';
@@ -1619,6 +1625,7 @@ var Schedule = /** @class */ (function (_super) {
1619
1625
  }
1620
1626
  break;
1621
1627
  case 'spannedEventPlacement':
1628
+ case 'minimumEventDuration':
1622
1629
  case 'enableMaxHeight':
1623
1630
  case 'enableIndicator':
1624
1631
  this.refreshEvents(false);
@@ -1993,7 +2000,7 @@ var Schedule = /** @class */ (function (_super) {
1993
2000
  */
1994
2001
  Schedule.prototype.exportToExcel = function (excelExportOptions) {
1995
2002
  if (this.excelExportModule) {
1996
- this.excelExportModule.initializeExcelExport(excelExportOptions || {});
2003
+ this.excelExportModule.initializeExcelExport(excelExportOptions);
1997
2004
  }
1998
2005
  else {
1999
2006
  throw Error('Inject ExcelExport module');
@@ -2178,6 +2185,9 @@ var Schedule = /** @class */ (function (_super) {
2178
2185
  this.crudModule.refreshDataManager();
2179
2186
  }
2180
2187
  else {
2188
+ if (this.activeViewOptions && this.activeViewOptions.eventTemplate) {
2189
+ this.resetTemplates(['eventTemplate']);
2190
+ }
2181
2191
  var eventsData = this.eventsData || [];
2182
2192
  var blockData = this.blockData || [];
2183
2193
  var data = eventsData.concat(blockData);
@@ -2435,6 +2445,7 @@ var Schedule = /** @class */ (function (_super) {
2435
2445
  this.eventTooltip = null;
2436
2446
  }
2437
2447
  this.destroyPopups();
2448
+ this.hideSpinner();
2438
2449
  this.unWireEvents();
2439
2450
  this.destroyHeaderModule();
2440
2451
  if (this.eventTooltip) {
@@ -2,6 +2,7 @@
2
2
  * Schedule common utilities
3
3
  */
4
4
  export declare const WEEK_LENGTH: number;
5
+ export declare const DEFAULT_WEEKS: number;
5
6
  export declare const MS_PER_DAY: number;
6
7
  export declare const MS_PER_MINUTE: number;
7
8
  /**
@@ -4,6 +4,7 @@ import { createElement, remove, isNullOrUndefined } from '@syncfusion/ej2-base';
4
4
  * Schedule common utilities
5
5
  */
6
6
  export var WEEK_LENGTH = 7;
7
+ export var DEFAULT_WEEKS = 6;
7
8
  export var MS_PER_DAY = 86400000;
8
9
  export var MS_PER_MINUTE = 60000;
9
10
  /**
@@ -80,7 +80,8 @@ export declare class EventBase {
80
80
  isValidEvent(eventObj: Record<string, any>, start: Date, end: Date, schedule: {
81
81
  [key: string]: Date;
82
82
  }): boolean;
83
- allDayExpandScroll(dateHeader: HTMLElement, heightPropChanged?: boolean): void;
83
+ allDayExpandScroll(dateHeader: HTMLElement): void;
84
+ updateEventMinimumDuration(startEndHours: Record<string, Date>, startTime: Date, endTime: Date): Record<string, Date>;
84
85
  private unWireEvents;
85
86
  destroy(): void;
86
87
  }