@syncfusion/ej2-schedule 25.2.7 → 26.1.35

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 (161) hide show
  1. package/.eslintrc.json +3 -2
  2. package/dist/ej2-schedule.min.js +2 -2
  3. package/dist/ej2-schedule.umd.min.js +2 -2
  4. package/dist/ej2-schedule.umd.min.js.map +1 -1
  5. package/dist/es6/ej2-schedule.es2015.js +331 -332
  6. package/dist/es6/ej2-schedule.es2015.js.map +1 -1
  7. package/dist/es6/ej2-schedule.es5.js +392 -407
  8. package/dist/es6/ej2-schedule.es5.js.map +1 -1
  9. package/dist/global/ej2-schedule.min.js +2 -2
  10. package/dist/global/ej2-schedule.min.js.map +1 -1
  11. package/dist/global/index.d.ts +1 -1
  12. package/package.json +17 -16
  13. package/src/recurrence-editor/date-generator.js +1 -0
  14. package/src/recurrence-editor/recurrence-editor.d.ts +8 -8
  15. package/src/recurrence-editor/recurrence-editor.js +1 -2
  16. package/src/schedule/actions/drag.js +2 -1
  17. package/src/schedule/actions/keyboard.js +1 -1
  18. package/src/schedule/actions/virtual-scroll.js +2 -1
  19. package/src/schedule/base/interface.js +0 -1
  20. package/src/schedule/base/schedule-model.d.ts +11 -11
  21. package/src/schedule/base/schedule.d.ts +11 -11
  22. package/src/schedule/base/schedule.js +22 -9
  23. package/src/schedule/base/util.js +1 -1
  24. package/src/schedule/event-renderer/event-base.js +5 -3
  25. package/src/schedule/event-renderer/timeline-view.js +4 -2
  26. package/src/schedule/event-renderer/year.js +2 -1
  27. package/src/schedule/exports/calendar-import.js +1 -2
  28. package/src/schedule/models/toolbar-model.d.ts +2 -2
  29. package/src/schedule/popups/event-window.js +1 -1
  30. package/src/schedule/renderer/header-renderer.js +6 -4
  31. package/src/schedule/renderer/vertical-view.js +3 -0
  32. package/src/schedule/renderer/view-base.js +8 -4
  33. package/styles/bootstrap-dark.css +236 -147
  34. package/styles/bootstrap-dark.scss +19 -2
  35. package/styles/bootstrap.css +237 -148
  36. package/styles/bootstrap.scss +19 -2
  37. package/styles/bootstrap4.css +239 -153
  38. package/styles/bootstrap4.scss +19 -2
  39. package/styles/bootstrap5-dark.css +229 -144
  40. package/styles/bootstrap5-dark.scss +19 -2
  41. package/styles/bootstrap5.css +229 -144
  42. package/styles/bootstrap5.scss +19 -2
  43. package/styles/fabric-dark.css +234 -146
  44. package/styles/fabric-dark.scss +19 -2
  45. package/styles/fabric.css +234 -146
  46. package/styles/fabric.scss +19 -2
  47. package/styles/fluent-dark.css +229 -142
  48. package/styles/fluent-dark.scss +19 -2
  49. package/styles/fluent.css +229 -142
  50. package/styles/fluent.scss +19 -2
  51. package/styles/fluent2.css +5932 -0
  52. package/styles/fluent2.scss +19 -0
  53. package/styles/highcontrast-light.css +229 -138
  54. package/styles/highcontrast-light.scss +19 -2
  55. package/styles/highcontrast.css +229 -138
  56. package/styles/highcontrast.scss +19 -2
  57. package/styles/material-dark.css +273 -155
  58. package/styles/material-dark.scss +19 -2
  59. package/styles/material.css +285 -156
  60. package/styles/material.scss +19 -2
  61. package/styles/material3-dark.css +278 -154
  62. package/styles/material3-dark.scss +19 -2
  63. package/styles/material3.css +278 -154
  64. package/styles/material3.scss +19 -2
  65. package/styles/recurrence-editor/_bds-definition.scss +0 -1
  66. package/styles/recurrence-editor/_bootstrap-dark-definition.scss +0 -1
  67. package/styles/recurrence-editor/_bootstrap-definition.scss +0 -1
  68. package/styles/recurrence-editor/_bootstrap4-definition.scss +0 -1
  69. package/styles/recurrence-editor/_bootstrap5-definition.scss +0 -1
  70. package/styles/recurrence-editor/_bootstrap5.3-definition.scss +14 -0
  71. package/styles/recurrence-editor/_fabric-dark-definition.scss +0 -1
  72. package/styles/recurrence-editor/_fabric-definition.scss +0 -1
  73. package/styles/recurrence-editor/_fluent-definition.scss +0 -1
  74. package/styles/recurrence-editor/_fluent2-definition.scss +14 -0
  75. package/styles/recurrence-editor/_fusionnew-definition.scss +0 -1
  76. package/styles/recurrence-editor/_highcontrast-definition.scss +0 -1
  77. package/styles/recurrence-editor/_highcontrast-light-definition.scss +0 -1
  78. package/styles/recurrence-editor/_layout.scss +1 -17
  79. package/styles/recurrence-editor/_material-dark-definition.scss +0 -1
  80. package/styles/recurrence-editor/_material-definition.scss +0 -1
  81. package/styles/recurrence-editor/_material3-definition.scss +0 -1
  82. package/styles/recurrence-editor/_tailwind-definition.scss +0 -1
  83. package/styles/recurrence-editor/bootstrap-dark.css +21 -23
  84. package/styles/recurrence-editor/bootstrap.css +21 -23
  85. package/styles/recurrence-editor/bootstrap4.css +22 -23
  86. package/styles/recurrence-editor/bootstrap5-dark.css +22 -23
  87. package/styles/recurrence-editor/bootstrap5.css +22 -23
  88. package/styles/recurrence-editor/fabric-dark.css +19 -22
  89. package/styles/recurrence-editor/fabric.css +19 -22
  90. package/styles/recurrence-editor/fluent-dark.css +22 -23
  91. package/styles/recurrence-editor/fluent.css +22 -23
  92. package/styles/recurrence-editor/fluent2.css +1534 -0
  93. package/styles/recurrence-editor/fluent2.scss +8 -0
  94. package/styles/recurrence-editor/highcontrast-light.css +19 -22
  95. package/styles/recurrence-editor/highcontrast.css +19 -22
  96. package/styles/recurrence-editor/material-dark.css +32 -26
  97. package/styles/recurrence-editor/material.css +32 -26
  98. package/styles/recurrence-editor/material3-dark.css +33 -27
  99. package/styles/recurrence-editor/material3.css +33 -27
  100. package/styles/recurrence-editor/tailwind-dark.css +32 -26
  101. package/styles/recurrence-editor/tailwind.css +32 -26
  102. package/styles/schedule/_bds-definition.scss +0 -15
  103. package/styles/schedule/_bootstrap-dark-definition.scss +4 -19
  104. package/styles/schedule/_bootstrap-definition.scss +4 -19
  105. package/styles/schedule/_bootstrap4-definition.scss +3 -18
  106. package/styles/schedule/_bootstrap5-definition.scss +1 -22
  107. package/styles/schedule/_bootstrap5.3-definition.scss +273 -0
  108. package/styles/schedule/_fabric-dark-definition.scss +4 -17
  109. package/styles/schedule/_fabric-definition.scss +4 -19
  110. package/styles/schedule/_fluent-definition.scss +0 -14
  111. package/styles/schedule/_fluent2-definition.scss +273 -0
  112. package/styles/schedule/_fusionnew-definition.scss +0 -21
  113. package/styles/schedule/_highcontrast-definition.scss +1 -16
  114. package/styles/schedule/_highcontrast-light-definition.scss +1 -16
  115. package/styles/schedule/_layout.scss +83 -130
  116. package/styles/schedule/_material-dark-definition.scss +5 -20
  117. package/styles/schedule/_material-definition.scss +4 -19
  118. package/styles/schedule/_material3-definition.scss +1 -23
  119. package/styles/schedule/_tailwind-definition.scss +0 -16
  120. package/styles/schedule/_theme.scss +14 -2
  121. package/styles/schedule/bootstrap-dark.css +220 -126
  122. package/styles/schedule/bootstrap.css +221 -127
  123. package/styles/schedule/bootstrap4.css +223 -132
  124. package/styles/schedule/bootstrap5-dark.css +213 -123
  125. package/styles/schedule/bootstrap5.css +213 -123
  126. package/styles/schedule/fabric-dark.css +218 -125
  127. package/styles/schedule/fabric.css +218 -125
  128. package/styles/schedule/fluent-dark.css +213 -121
  129. package/styles/schedule/fluent.css +213 -121
  130. package/styles/schedule/fluent2.css +5536 -0
  131. package/styles/schedule/fluent2.scss +16 -0
  132. package/styles/schedule/highcontrast-light.css +213 -117
  133. package/styles/schedule/highcontrast.css +213 -117
  134. package/styles/schedule/icons/_bds.scss +6 -21
  135. package/styles/schedule/icons/_bootstrap-dark.scss +4 -16
  136. package/styles/schedule/icons/_bootstrap.scss +4 -16
  137. package/styles/schedule/icons/_bootstrap4.scss +8 -26
  138. package/styles/schedule/icons/_bootstrap5.3.scss +220 -0
  139. package/styles/schedule/icons/_bootstrap5.scss +7 -22
  140. package/styles/schedule/icons/_fabric-dark.scss +5 -17
  141. package/styles/schedule/icons/_fabric.scss +5 -17
  142. package/styles/schedule/icons/_fluent.scss +7 -22
  143. package/styles/schedule/icons/_fluent2.scss +220 -0
  144. package/styles/schedule/icons/_fusionnew.scss +7 -22
  145. package/styles/schedule/icons/_highcontrast-light.scss +5 -17
  146. package/styles/schedule/icons/_highcontrast.scss +5 -17
  147. package/styles/schedule/icons/_material-dark.scss +5 -17
  148. package/styles/schedule/icons/_material.scss +5 -17
  149. package/styles/schedule/icons/_material3.scss +7 -22
  150. package/styles/schedule/icons/_tailwind.scss +7 -22
  151. package/styles/schedule/material-dark.css +257 -134
  152. package/styles/schedule/material.css +269 -135
  153. package/styles/schedule/material3-dark.css +262 -133
  154. package/styles/schedule/material3.css +262 -133
  155. package/styles/schedule/tailwind-dark.css +223 -124
  156. package/styles/schedule/tailwind.css +223 -124
  157. package/styles/tailwind-dark.css +239 -145
  158. package/styles/tailwind-dark.scss +19 -2
  159. package/styles/tailwind.css +239 -145
  160. package/styles/tailwind.scss +19 -2
  161. package/CHANGELOG.md +0 -1932
@@ -1,9 +1,9 @@
1
- import { Animation, Browser, ChildProperty, Collection, Complex, Component, Draggable, Event, EventHandler, HijriParser, Internationalization, KeyboardEvents, L10n, NotifyPropertyChanges, Property, SanitizeHtmlHelper, Touch, addClass, append, classList, cldrData, closest, compile, createElement, detach, extend, formatUnit, getDefaultDateObject, getElement, getValue, initializeCSPTemplate, isNullOrUndefined, prepend, print, remove, removeClass, setStyleAttribute } from '@syncfusion/ej2-base';
2
- import { Dialog, Popup, Tooltip, createSpinner, hideSpinner, isCollide, showSpinner } from '@syncfusion/ej2-popups';
1
+ import { createElement, remove, isNullOrUndefined, closest, addClass, removeClass, append, extend, formatUnit, Touch, EventHandler, Browser, KeyboardEvents, HijriParser, getValue, getDefaultDateObject, cldrData, prepend, setStyleAttribute, Animation, initializeCSPTemplate, Component, L10n, classList, detach, Property, Event, NotifyPropertyChanges, SanitizeHtmlHelper, ChildProperty, Complex, Internationalization, compile, getElement, Collection, Draggable, print as print$1 } from '@syncfusion/ej2-base';
2
+ import { Popup, Dialog, isCollide, Tooltip, createSpinner, showSpinner, hideSpinner } from '@syncfusion/ej2-popups';
3
3
  import { Toolbar, TreeView } from '@syncfusion/ej2-navigations';
4
4
  import { Calendar, DatePicker, DateTimePicker } from '@syncfusion/ej2-calendars';
5
- import { DataManager, Deferred, Predicate, Query } from '@syncfusion/ej2-data';
6
- import { Button, CheckBox, RadioButton } from '@syncfusion/ej2-buttons';
5
+ import { DataManager, Query, Predicate, Deferred } from '@syncfusion/ej2-data';
6
+ import { Button, RadioButton, CheckBox } from '@syncfusion/ej2-buttons';
7
7
  import { FormValidator, Input, NumericTextBox } from '@syncfusion/ej2-inputs';
8
8
  import { DropDownList, MultiSelect } from '@syncfusion/ej2-dropdowns';
9
9
  import { ListBase } from '@syncfusion/ej2-lists';
@@ -74,7 +74,7 @@ const initialLoad = 'initial-load';
74
74
  /** @private */
75
75
  const initialEnd = 'initial-end';
76
76
  /** @private */
77
- const print$1 = 'print';
77
+ const print = 'print';
78
78
  /** @private */
79
79
  const dataReady = 'data-ready';
80
80
  /** @private */
@@ -168,7 +168,7 @@ function getTranslateX(element) {
168
168
  function getWeekFirstDate(date, firstDayOfWeek) {
169
169
  const date1 = new Date(date.getTime());
170
170
  firstDayOfWeek = (firstDayOfWeek - date1.getDay() + 7 * (-1)) % 7;
171
- return new Date(date1.setDate(date1.getDate() + firstDayOfWeek));
171
+ return new Date(date1.setDate(date1.getDate() + (isNaN(firstDayOfWeek) ? 0 : firstDayOfWeek)));
172
172
  }
173
173
  /**
174
174
  * Method to get week last date
@@ -666,8 +666,6 @@ const PREVIOUS_TIMELINE_CLASS = 'e-previous-timeline';
666
666
  const HIDE_CHILDS_CLASS = 'e-hide-childs';
667
667
  /** @private */
668
668
  const SCROLL_CONTAINER_CLASS = 'e-scroll-container';
669
- /** @private */
670
-
671
669
  /** @private */
672
670
  const TIMELINE_WRAPPER_CLASS = 'e-timeline-wrapper';
673
671
  /** @private */
@@ -1074,7 +1072,8 @@ class HeaderRenderer {
1074
1072
  this.renderToolbar();
1075
1073
  }
1076
1074
  renderToolbar() {
1077
- const items = (this.parent.toolbarItems && this.parent.toolbarItems.length > 0) ? this.getToolbarItems() : this.getItems();
1075
+ const items = (this.parent.toolbarItems && this.parent.toolbarItems.length > 0) ?
1076
+ this.getToolbarItems() : this.getItems();
1078
1077
  this.parent.trigger(actionBegin, { requestType: 'toolbarItemRendering', items: items }, (args) => {
1079
1078
  this.toolbarObj = new Toolbar({
1080
1079
  items: args.items,
@@ -1166,6 +1165,7 @@ class HeaderRenderer {
1166
1165
  if (!selEle) {
1167
1166
  return;
1168
1167
  }
1168
+ selEle.firstElementChild.setAttribute('aria-haspopup', 'true');
1169
1169
  const textEle = selEle.querySelector('.e-tbar-btn-text');
1170
1170
  if (this.parent.activeViewOptions.dateRangeTemplate) {
1171
1171
  textEle.textContent = '';
@@ -1312,7 +1312,7 @@ class HeaderRenderer {
1312
1312
  items.push(Object.assign({}, tbItem, propItem));
1313
1313
  break;
1314
1314
  case 'Views':
1315
- if (this.parent.views.length > 1) {
1315
+ if (!isNullOrUndefined(this.parent.views) && this.parent.views.length > 1) {
1316
1316
  for (const view of this.parent.views) {
1317
1317
  tbItem = this.getItemObject(view);
1318
1318
  tbItem.align = propItem.align ? propItem.align : item.align;
@@ -1361,11 +1361,11 @@ class HeaderRenderer {
1361
1361
  align: 'Right', showAlwaysInPopup: (this.parent.isAdaptive || this.parent.enableAdaptiveUI), prefixIcon: 'e-icon-today',
1362
1362
  text: this.l10n.getConstant('today'), cssClass: 'e-today', overflow: 'Show'
1363
1363
  });
1364
- if (this.parent.views.length > 1) {
1364
+ if (!isNullOrUndefined(this.parent.views) && this.parent.views.length > 1) {
1365
1365
  items.push({ align: 'Right', type: 'Separator', cssClass: 'e-schedule-seperator' });
1366
1366
  }
1367
1367
  }
1368
- if (this.parent.views.length > 1) {
1368
+ if (!isNullOrUndefined(this.parent.views) && this.parent.views.length > 1) {
1369
1369
  for (const item of this.parent.views) {
1370
1370
  items.push(this.getItemObject(item));
1371
1371
  }
@@ -2581,7 +2581,7 @@ class KeyboardInteraction {
2581
2581
  }
2582
2582
  processViewNavigation(e) {
2583
2583
  const index = parseInt(e.key, 10) - 1;
2584
- if (index < this.parent.views.length) {
2584
+ if (!isNullOrUndefined(this.parent.views) && index < this.parent.views.length) {
2585
2585
  const view = this.parent.viewCollections[parseInt(index.toString(), 10)].option;
2586
2586
  this.parent.changeView(view, e, undefined, index);
2587
2587
  if (this.parent.headerModule) {
@@ -3961,6 +3961,7 @@ function generate(startDate, rule, excludeDate, startDayOfWeek, maximumCount = M
3961
3961
  return data;
3962
3962
  }
3963
3963
  maxOccurrence = maximumCount;
3964
+ startDayOfWeek = startDayOfWeek || 0;
3964
3965
  setFirstDayOfWeek(DAYINDEX[parseInt(startDayOfWeek.toString(), 10)]);
3965
3966
  if (ruleObject.until) {
3966
3967
  const end = resetTime(ruleObject.until);
@@ -5451,7 +5452,6 @@ function roundDateValues(date) {
5451
5452
  }
5452
5453
 
5453
5454
  /* eslint-disable @typescript-eslint/no-explicit-any */
5454
- /* eslint-disable max-len */
5455
5455
  /**
5456
5456
  * EventBase for appointment rendering
5457
5457
  */
@@ -6603,12 +6603,14 @@ class EventBase {
6603
6603
  let firstDate = 0;
6604
6604
  let lastDate = dateRender.length;
6605
6605
  let filteredDates;
6606
- if (dateRender[0] < this.parent.minDate && dateRender[dateRender.length - 1] > this.parent.maxDate) {
6606
+ const maxDate = isNullOrUndefined(this.parent.maxDate) ? new Date(2099, 11, 31) : this.parent.maxDate;
6607
+ const minDate = isNullOrUndefined(this.parent.minDate) ? new Date(1900, 0, 1) : this.parent.minDate;
6608
+ if (dateRender[0] < minDate && dateRender[dateRender.length - 1] > maxDate) {
6607
6609
  for (let i = 0; i < dateRender.length; i++) {
6608
- if (resetTime(dateRender[parseInt(i.toString(), 10)]).getTime() === resetTime(new Date(this.parent.minDate)).getTime()) {
6610
+ if (resetTime(dateRender[parseInt(i.toString(), 10)]).getTime() === resetTime(new Date(minDate)).getTime()) {
6609
6611
  firstDate = i;
6610
6612
  }
6611
- if (resetTime(dateRender[parseInt(i.toString(), 10)]).getTime() === resetTime(new Date(this.parent.maxDate)).getTime()) {
6613
+ if (resetTime(dateRender[parseInt(i.toString(), 10)]).getTime() === resetTime(new Date(maxDate)).getTime()) {
6612
6614
  lastDate = i;
6613
6615
  }
6614
6616
  }
@@ -8251,7 +8253,6 @@ class MonthEvent extends EventBase {
8251
8253
  }
8252
8254
 
8253
8255
  /* eslint-disable max-len */
8254
- /* eslint-disable @typescript-eslint/no-explicit-any */
8255
8256
  const EVENT_GAP$1 = 2;
8256
8257
  const BLOCK_INDICATOR_WIDTH = 22;
8257
8258
  const BLOCK_INDICATOR_HEIGHT = 18;
@@ -8301,8 +8302,10 @@ class TimelineEvent extends MonthEvent {
8301
8302
  else {
8302
8303
  for (const app of appointments) {
8303
8304
  const eventData = app.data;
8304
- if (eventData.trimStartTime.getTime() <= date.getTime() &&
8305
- eventData.trimEndTime.getTime() > date.getTime()) {
8305
+ if ((eventData.trimStartTime.getTime() <= date.getTime() &&
8306
+ eventData.trimEndTime.getTime() > date.getTime()) ||
8307
+ (eventData.trimStartTime.getTime() === date.getTime() &&
8308
+ eventData.trimEndTime.getTime() === date.getTime())) {
8306
8309
  appointmentsList.push(app);
8307
8310
  }
8308
8311
  }
@@ -9297,14 +9300,14 @@ class QuickPopups {
9297
9300
  removeClass([element], ICON);
9298
9301
  }
9299
9302
  quickDialogClass(action) {
9300
- const classList$$1 = [
9303
+ const classList = [
9301
9304
  QUICK_DIALOG_OCCURRENCE_CLASS, QUICK_DIALOG_SERIES_CLASS, QUICK_DIALOG_DELETE_CLASS,
9302
9305
  QUICK_DIALOG_CANCEL_CLASS, QUICK_DIALOG_ALERT_BTN_CLASS, DISABLE_CLASS
9303
9306
  ];
9304
9307
  const okButton = this.quickDialog.element.querySelector('.' + QUICK_DIALOG_ALERT_OK);
9305
9308
  const cancelButton = this.quickDialog.element.querySelector('.' + QUICK_DIALOG_ALERT_CANCEL);
9306
9309
  const followingEventButton = this.quickDialog.element.querySelector('.' + QUICK_DIALOG_ALERT_FOLLOWING);
9307
- removeClass([okButton, cancelButton], classList$$1);
9310
+ removeClass([okButton, cancelButton], classList);
9308
9311
  addClass([this.quickDialog.element.querySelector('.' + QUICK_DIALOG_CANCEL_CLASS)], DISABLE_CLASS);
9309
9312
  if (this.parent.eventSettings.editFollowingEvents) {
9310
9313
  addClass([followingEventButton], DISABLE_CLASS);
@@ -10703,7 +10706,7 @@ class EventTooltip {
10703
10706
  }
10704
10707
  }
10705
10708
 
10706
- var __decorate$1 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
10709
+ var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
10707
10710
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
10708
10711
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
10709
10712
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
@@ -11599,7 +11602,7 @@ let RecurrenceEditor = class RecurrenceEditor extends Component {
11599
11602
  }
11600
11603
  }
11601
11604
  getCalendarMode() {
11602
- return this.calendarMode.toLowerCase();
11605
+ return !isNullOrUndefined(this.calendarMode) ? this.calendarMode.toLowerCase() : 'gregorian';
11603
11606
  }
11604
11607
  getRuleSummary(rule = this.getRecurrenceRule()) {
11605
11608
  return generateSummary(rule, this.localeObj, this.locale, this.calendarMode);
@@ -11779,43 +11782,43 @@ let RecurrenceEditor = class RecurrenceEditor extends Component {
11779
11782
  }
11780
11783
  }
11781
11784
  };
11782
- __decorate$1([
11785
+ __decorate([
11783
11786
  Property(['none', 'daily', 'weekly', 'monthly', 'yearly'])
11784
11787
  ], RecurrenceEditor.prototype, "frequencies", void 0);
11785
- __decorate$1([
11788
+ __decorate([
11786
11789
  Property(['never', 'until', 'count'])
11787
11790
  ], RecurrenceEditor.prototype, "endTypes", void 0);
11788
- __decorate$1([
11791
+ __decorate([
11789
11792
  Property(0)
11790
11793
  ], RecurrenceEditor.prototype, "firstDayOfWeek", void 0);
11791
- __decorate$1([
11794
+ __decorate([
11792
11795
  Property(new Date())
11793
11796
  ], RecurrenceEditor.prototype, "startDate", void 0);
11794
- __decorate$1([
11797
+ __decorate([
11795
11798
  Property()
11796
11799
  ], RecurrenceEditor.prototype, "dateFormat", void 0);
11797
- __decorate$1([
11800
+ __decorate([
11798
11801
  Property('Gregorian')
11799
11802
  ], RecurrenceEditor.prototype, "calendarMode", void 0);
11800
- __decorate$1([
11803
+ __decorate([
11801
11804
  Property()
11802
11805
  ], RecurrenceEditor.prototype, "cssClass", void 0);
11803
- __decorate$1([
11806
+ __decorate([
11804
11807
  Property()
11805
11808
  ], RecurrenceEditor.prototype, "value", void 0);
11806
- __decorate$1([
11809
+ __decorate([
11807
11810
  Property(new Date(1900, 0, 1))
11808
11811
  ], RecurrenceEditor.prototype, "minDate", void 0);
11809
- __decorate$1([
11812
+ __decorate([
11810
11813
  Property(new Date(2099, 11, 31))
11811
11814
  ], RecurrenceEditor.prototype, "maxDate", void 0);
11812
- __decorate$1([
11815
+ __decorate([
11813
11816
  Property(0)
11814
11817
  ], RecurrenceEditor.prototype, "selectedType", void 0);
11815
- __decorate$1([
11818
+ __decorate([
11816
11819
  Event()
11817
11820
  ], RecurrenceEditor.prototype, "change", void 0);
11818
- RecurrenceEditor = __decorate$1([
11821
+ RecurrenceEditor = __decorate([
11819
11822
  NotifyPropertyChanges
11820
11823
  ], RecurrenceEditor);
11821
11824
 
@@ -12897,7 +12900,7 @@ class EventWindow {
12897
12900
  }
12898
12901
  getFormat(formatType) {
12899
12902
  let format;
12900
- if (this.parent.locale === 'en' || this.parent.locale === 'en-US') {
12903
+ if (isNullOrUndefined(this.parent.locale) || this.parent.locale === 'en' || this.parent.locale === 'en-US') {
12901
12904
  format = getValue(formatType + '.short', getDefaultDateObject(this.parent.getCalendarMode()));
12902
12905
  }
12903
12906
  else {
@@ -13814,7 +13817,7 @@ class VirtualScroll {
13814
13817
  conTable.offsetHeight / this.renderedLength) + 'px';
13815
13818
  const conWrap = this.parent.element.querySelector('.' + CONTENT_WRAP_CLASS);
13816
13819
  if ((conWrap.scrollHeight - conWrap.scrollTop) < conWrap.offsetHeight * this.bufferCount) {
13817
- virtual.style.height = parseInt(virtual.style.height) + (conWrap.offsetHeight * this.bufferCount) + 'px';
13820
+ virtual.style.height = parseInt(virtual.style.height, 10) + (conWrap.offsetHeight * this.bufferCount) + 'px';
13818
13821
  }
13819
13822
  }
13820
13823
  else {
@@ -13864,6 +13867,7 @@ class VirtualScroll {
13864
13867
  const endIndex = (firstTDIndex + this.renderedLength);
13865
13868
  firstTDIndex = (endIndex > this.parent.resourceBase.expandedResources.length) ?
13866
13869
  (this.parent.resourceBase.expandedResources.length - this.renderedLength) : firstTDIndex;
13870
+ firstTDIndex = firstTDIndex < 0 ? 0 : firstTDIndex;
13867
13871
  this.parent.resourceBase.renderedResources = this.parent.resourceBase.expandedResources.slice(firstTDIndex, endIndex);
13868
13872
  if (this.parent.resourceBase.renderedResources.length > 0) {
13869
13873
  this.updateContent(resWrap, conWrap, eventWrap, this.parent.resourceBase.renderedResources);
@@ -14365,7 +14369,7 @@ class Render {
14365
14369
  }
14366
14370
  }
14367
14371
 
14368
- var __decorate$2 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
14372
+ var __decorate$1 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
14369
14373
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
14370
14374
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
14371
14375
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
@@ -14376,17 +14380,17 @@ var __decorate$2 = (undefined && undefined.__decorate) || function (decorators,
14376
14380
  */
14377
14381
  class WorkHours extends ChildProperty {
14378
14382
  }
14379
- __decorate$2([
14383
+ __decorate$1([
14380
14384
  Property(true)
14381
14385
  ], WorkHours.prototype, "highlight", void 0);
14382
- __decorate$2([
14386
+ __decorate$1([
14383
14387
  Property('09:00')
14384
14388
  ], WorkHours.prototype, "start", void 0);
14385
- __decorate$2([
14389
+ __decorate$1([
14386
14390
  Property('18:00')
14387
14391
  ], WorkHours.prototype, "end", void 0);
14388
14392
 
14389
- var __decorate$3 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
14393
+ var __decorate$2 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
14390
14394
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
14391
14395
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
14392
14396
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
@@ -14397,23 +14401,23 @@ var __decorate$3 = (undefined && undefined.__decorate) || function (decorators,
14397
14401
  */
14398
14402
  class TimeScale extends ChildProperty {
14399
14403
  }
14400
- __decorate$3([
14404
+ __decorate$2([
14401
14405
  Property(true)
14402
14406
  ], TimeScale.prototype, "enable", void 0);
14403
- __decorate$3([
14407
+ __decorate$2([
14404
14408
  Property(60)
14405
14409
  ], TimeScale.prototype, "interval", void 0);
14406
- __decorate$3([
14410
+ __decorate$2([
14407
14411
  Property(2)
14408
14412
  ], TimeScale.prototype, "slotCount", void 0);
14409
- __decorate$3([
14413
+ __decorate$2([
14410
14414
  Property()
14411
14415
  ], TimeScale.prototype, "minorSlotTemplate", void 0);
14412
- __decorate$3([
14416
+ __decorate$2([
14413
14417
  Property()
14414
14418
  ], TimeScale.prototype, "majorSlotTemplate", void 0);
14415
14419
 
14416
- var __decorate$4 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
14420
+ var __decorate$3 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
14417
14421
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
14418
14422
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
14419
14423
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
@@ -14424,20 +14428,20 @@ var __decorate$4 = (undefined && undefined.__decorate) || function (decorators,
14424
14428
  */
14425
14429
  class QuickInfoTemplates extends ChildProperty {
14426
14430
  }
14427
- __decorate$4([
14431
+ __decorate$3([
14428
14432
  Property('Both')
14429
14433
  ], QuickInfoTemplates.prototype, "templateType", void 0);
14430
- __decorate$4([
14434
+ __decorate$3([
14431
14435
  Property()
14432
14436
  ], QuickInfoTemplates.prototype, "header", void 0);
14433
- __decorate$4([
14437
+ __decorate$3([
14434
14438
  Property()
14435
14439
  ], QuickInfoTemplates.prototype, "content", void 0);
14436
- __decorate$4([
14440
+ __decorate$3([
14437
14441
  Property()
14438
14442
  ], QuickInfoTemplates.prototype, "footer", void 0);
14439
14443
 
14440
- var __decorate$5 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
14444
+ var __decorate$4 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
14441
14445
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
14442
14446
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
14443
14447
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
@@ -14448,15 +14452,14 @@ var __decorate$5 = (undefined && undefined.__decorate) || function (decorators,
14448
14452
  */
14449
14453
  class HeaderRows extends ChildProperty {
14450
14454
  }
14451
- __decorate$5([
14455
+ __decorate$4([
14452
14456
  Property()
14453
14457
  ], HeaderRows.prototype, "option", void 0);
14454
- __decorate$5([
14458
+ __decorate$4([
14455
14459
  Property()
14456
14460
  ], HeaderRows.prototype, "template", void 0);
14457
14461
 
14458
14462
  /* eslint-disable @typescript-eslint/no-explicit-any */
14459
- /* eslint-disable max-len */
14460
14463
  /**
14461
14464
  * Schedule CRUD operations
14462
14465
  */
@@ -14510,7 +14513,7 @@ class Crud {
14510
14513
  this.parent.trigger(dataBound, null, () => {
14511
14514
  this.parent.hideSpinner();
14512
14515
  if (this.parent.isPrinting) {
14513
- this.parent.notify(print$1, {});
14516
+ this.parent.notify(print, {});
14514
14517
  }
14515
14518
  });
14516
14519
  });
@@ -15286,32 +15289,31 @@ class WorkCellInteraction {
15286
15289
  }
15287
15290
  }
15288
15291
 
15289
- var __decorate$8 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
15292
+ var __decorate$5 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
15290
15293
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
15291
15294
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
15292
15295
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
15293
15296
  return c > 3 && r && Object.defineProperty(target, key, r), r;
15294
15297
  };
15295
- /* eslint-disable @typescript-eslint/no-explicit-any */
15296
15298
  /**
15297
15299
  * Configuration that applies on each appointment field options of scheduler.
15298
15300
  */
15299
15301
  class FieldOptions extends ChildProperty {
15300
15302
  }
15301
- __decorate$8([
15303
+ __decorate$5([
15302
15304
  Property()
15303
15305
  ], FieldOptions.prototype, "name", void 0);
15304
- __decorate$8([
15306
+ __decorate$5([
15305
15307
  Property()
15306
15308
  ], FieldOptions.prototype, "default", void 0);
15307
- __decorate$8([
15309
+ __decorate$5([
15308
15310
  Property()
15309
15311
  ], FieldOptions.prototype, "title", void 0);
15310
- __decorate$8([
15312
+ __decorate$5([
15311
15313
  Property({})
15312
15314
  ], FieldOptions.prototype, "validation", void 0);
15313
15315
 
15314
- var __decorate$7 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
15316
+ var __decorate$6 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
15315
15317
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
15316
15318
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
15317
15319
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
@@ -15326,120 +15328,119 @@ var __decorate$7 = (undefined && undefined.__decorate) || function (decorators,
15326
15328
  */
15327
15329
  class Field extends ChildProperty {
15328
15330
  }
15329
- __decorate$7([
15331
+ __decorate$6([
15330
15332
  Property('Id')
15331
15333
  ], Field.prototype, "id", void 0);
15332
- __decorate$7([
15334
+ __decorate$6([
15333
15335
  Property('IsBlock')
15334
15336
  ], Field.prototype, "isBlock", void 0);
15335
- __decorate$7([
15337
+ __decorate$6([
15336
15338
  Complex({ name: 'Subject' }, FieldOptions)
15337
15339
  ], Field.prototype, "subject", void 0);
15338
- __decorate$7([
15340
+ __decorate$6([
15339
15341
  Complex({ name: 'StartTime' }, FieldOptions)
15340
15342
  ], Field.prototype, "startTime", void 0);
15341
- __decorate$7([
15343
+ __decorate$6([
15342
15344
  Complex({ name: 'EndTime' }, FieldOptions)
15343
15345
  ], Field.prototype, "endTime", void 0);
15344
- __decorate$7([
15346
+ __decorate$6([
15345
15347
  Complex({ name: 'StartTimezone' }, FieldOptions)
15346
15348
  ], Field.prototype, "startTimezone", void 0);
15347
- __decorate$7([
15349
+ __decorate$6([
15348
15350
  Complex({ name: 'EndTimezone' }, FieldOptions)
15349
15351
  ], Field.prototype, "endTimezone", void 0);
15350
- __decorate$7([
15352
+ __decorate$6([
15351
15353
  Complex({ name: 'Location' }, FieldOptions)
15352
15354
  ], Field.prototype, "location", void 0);
15353
- __decorate$7([
15355
+ __decorate$6([
15354
15356
  Complex({ name: 'Description' }, FieldOptions)
15355
15357
  ], Field.prototype, "description", void 0);
15356
- __decorate$7([
15358
+ __decorate$6([
15357
15359
  Complex({ name: 'IsAllDay' }, FieldOptions)
15358
15360
  ], Field.prototype, "isAllDay", void 0);
15359
- __decorate$7([
15361
+ __decorate$6([
15360
15362
  Complex({ name: 'RecurrenceID' }, FieldOptions)
15361
15363
  ], Field.prototype, "recurrenceID", void 0);
15362
- __decorate$7([
15364
+ __decorate$6([
15363
15365
  Complex({ name: 'RecurrenceRule' }, FieldOptions)
15364
15366
  ], Field.prototype, "recurrenceRule", void 0);
15365
- __decorate$7([
15367
+ __decorate$6([
15366
15368
  Complex({ name: 'RecurrenceException' }, FieldOptions)
15367
15369
  ], Field.prototype, "recurrenceException", void 0);
15368
- __decorate$7([
15370
+ __decorate$6([
15369
15371
  Property('IsReadonly')
15370
15372
  ], Field.prototype, "isReadonly", void 0);
15371
- __decorate$7([
15373
+ __decorate$6([
15372
15374
  Property('FollowingID')
15373
15375
  ], Field.prototype, "followingID", void 0);
15374
15376
 
15375
- var __decorate$6 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
15377
+ var __decorate$7 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
15376
15378
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
15377
15379
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
15378
15380
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
15379
15381
  return c > 3 && r && Object.defineProperty(target, key, r), r;
15380
15382
  };
15381
- /* eslint-disable @typescript-eslint/no-explicit-any */
15382
15383
  /**
15383
15384
  * Holds the configuration of event related options and dataSource binding to Schedule.
15384
15385
  */
15385
15386
  class EventSettings extends ChildProperty {
15386
15387
  }
15387
- __decorate$6([
15388
+ __decorate$7([
15388
15389
  Property()
15389
15390
  ], EventSettings.prototype, "template", void 0);
15390
- __decorate$6([
15391
+ __decorate$7([
15391
15392
  Property([])
15392
15393
  ], EventSettings.prototype, "dataSource", void 0);
15393
- __decorate$6([
15394
+ __decorate$7([
15394
15395
  Property()
15395
15396
  ], EventSettings.prototype, "query", void 0);
15396
- __decorate$6([
15397
+ __decorate$7([
15397
15398
  Complex({}, Field)
15398
15399
  ], EventSettings.prototype, "fields", void 0);
15399
- __decorate$6([
15400
+ __decorate$7([
15400
15401
  Property(false)
15401
15402
  ], EventSettings.prototype, "enableTooltip", void 0);
15402
- __decorate$6([
15403
+ __decorate$7([
15403
15404
  Property('AllDayRow')
15404
15405
  ], EventSettings.prototype, "spannedEventPlacement", void 0);
15405
- __decorate$6([
15406
+ __decorate$7([
15406
15407
  Property(1)
15407
15408
  ], EventSettings.prototype, "minimumEventDuration", void 0);
15408
- __decorate$6([
15409
+ __decorate$7([
15409
15410
  Property()
15410
15411
  ], EventSettings.prototype, "tooltipTemplate", void 0);
15411
- __decorate$6([
15412
+ __decorate$7([
15412
15413
  Property()
15413
15414
  ], EventSettings.prototype, "resourceColorField", void 0);
15414
- __decorate$6([
15415
+ __decorate$7([
15415
15416
  Property(false)
15416
15417
  ], EventSettings.prototype, "editFollowingEvents", void 0);
15417
- __decorate$6([
15418
+ __decorate$7([
15418
15419
  Property(true)
15419
15420
  ], EventSettings.prototype, "allowAdding", void 0);
15420
- __decorate$6([
15421
+ __decorate$7([
15421
15422
  Property(true)
15422
15423
  ], EventSettings.prototype, "allowEditing", void 0);
15423
- __decorate$6([
15424
+ __decorate$7([
15424
15425
  Property(true)
15425
15426
  ], EventSettings.prototype, "allowDeleting", void 0);
15426
- __decorate$6([
15427
+ __decorate$7([
15427
15428
  Property(false)
15428
15429
  ], EventSettings.prototype, "enableMaxHeight", void 0);
15429
- __decorate$6([
15430
+ __decorate$7([
15430
15431
  Property(false)
15431
15432
  ], EventSettings.prototype, "enableIndicator", void 0);
15432
- __decorate$6([
15433
+ __decorate$7([
15433
15434
  Property(false)
15434
15435
  ], EventSettings.prototype, "ignoreWhitespace", void 0);
15435
- __decorate$6([
15436
+ __decorate$7([
15436
15437
  Property()
15437
15438
  ], EventSettings.prototype, "sortComparer", void 0);
15438
- __decorate$6([
15439
+ __decorate$7([
15439
15440
  Property()
15440
15441
  ], EventSettings.prototype, "includeFiltersInQuery", void 0);
15441
15442
 
15442
- var __decorate$9 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
15443
+ var __decorate$8 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
15443
15444
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
15444
15445
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
15445
15446
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
@@ -15450,88 +15451,86 @@ var __decorate$9 = (undefined && undefined.__decorate) || function (decorators,
15450
15451
  */
15451
15452
  class Group extends ChildProperty {
15452
15453
  }
15453
- __decorate$9([
15454
+ __decorate$8([
15454
15455
  Property(false)
15455
15456
  ], Group.prototype, "byDate", void 0);
15456
- __decorate$9([
15457
+ __decorate$8([
15457
15458
  Property(true)
15458
15459
  ], Group.prototype, "byGroupID", void 0);
15459
- __decorate$9([
15460
+ __decorate$8([
15460
15461
  Property(false)
15461
15462
  ], Group.prototype, "allowGroupEdit", void 0);
15462
- __decorate$9([
15463
+ __decorate$8([
15463
15464
  Property([])
15464
15465
  ], Group.prototype, "resources", void 0);
15465
- __decorate$9([
15466
+ __decorate$8([
15466
15467
  Property(true)
15467
15468
  ], Group.prototype, "enableCompactView", void 0);
15468
- __decorate$9([
15469
+ __decorate$8([
15469
15470
  Property()
15470
15471
  ], Group.prototype, "headerTooltipTemplate", void 0);
15471
- __decorate$9([
15472
+ __decorate$8([
15472
15473
  Property(false)
15473
15474
  ], Group.prototype, "hideNonWorkingDays", void 0);
15474
15475
 
15475
- var __decorate$10 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
15476
+ var __decorate$9 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
15476
15477
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
15477
15478
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
15478
15479
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
15479
15480
  return c > 3 && r && Object.defineProperty(target, key, r), r;
15480
15481
  };
15481
- /* eslint-disable @typescript-eslint/no-explicit-any */
15482
15482
  /**
15483
15483
  * A class that represents the resource related configurations and its data binding options.
15484
15484
  */
15485
15485
  class Resources extends ChildProperty {
15486
15486
  }
15487
- __decorate$10([
15487
+ __decorate$9([
15488
15488
  Property()
15489
15489
  ], Resources.prototype, "field", void 0);
15490
- __decorate$10([
15490
+ __decorate$9([
15491
15491
  Property()
15492
15492
  ], Resources.prototype, "title", void 0);
15493
- __decorate$10([
15493
+ __decorate$9([
15494
15494
  Property()
15495
15495
  ], Resources.prototype, "name", void 0);
15496
- __decorate$10([
15496
+ __decorate$9([
15497
15497
  Property(false)
15498
15498
  ], Resources.prototype, "allowMultiple", void 0);
15499
- __decorate$10([
15499
+ __decorate$9([
15500
15500
  Property([])
15501
15501
  ], Resources.prototype, "dataSource", void 0);
15502
- __decorate$10([
15502
+ __decorate$9([
15503
15503
  Property()
15504
15504
  ], Resources.prototype, "query", void 0);
15505
- __decorate$10([
15505
+ __decorate$9([
15506
15506
  Property('Id')
15507
15507
  ], Resources.prototype, "idField", void 0);
15508
- __decorate$10([
15508
+ __decorate$9([
15509
15509
  Property('Text')
15510
15510
  ], Resources.prototype, "textField", void 0);
15511
- __decorate$10([
15511
+ __decorate$9([
15512
15512
  Property('Expanded')
15513
15513
  ], Resources.prototype, "expandedField", void 0);
15514
- __decorate$10([
15514
+ __decorate$9([
15515
15515
  Property('GroupID')
15516
15516
  ], Resources.prototype, "groupIDField", void 0);
15517
- __decorate$10([
15517
+ __decorate$9([
15518
15518
  Property('Color')
15519
15519
  ], Resources.prototype, "colorField", void 0);
15520
- __decorate$10([
15520
+ __decorate$9([
15521
15521
  Property('StartHour')
15522
15522
  ], Resources.prototype, "startHourField", void 0);
15523
- __decorate$10([
15523
+ __decorate$9([
15524
15524
  Property('EndHour')
15525
15525
  ], Resources.prototype, "endHourField", void 0);
15526
- __decorate$10([
15526
+ __decorate$9([
15527
15527
  Property('WorkDays')
15528
15528
  ], Resources.prototype, "workDaysField", void 0);
15529
- __decorate$10([
15529
+ __decorate$9([
15530
15530
  Property('CssClass')
15531
15531
  ], Resources.prototype, "cssClassField", void 0);
15532
15532
 
15533
15533
  /* eslint-disable @typescript-eslint/no-explicit-any */
15534
- /* eslint-disable max-len */
15535
15534
  class ResourceBase {
15536
15535
  constructor(parent) {
15537
15536
  this.resourceCollection = [];
@@ -16565,7 +16564,7 @@ class ResourceBase {
16565
16564
  }
16566
16565
  }
16567
16566
 
16568
- var __decorate$11 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
16567
+ var __decorate$a = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
16569
16568
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
16570
16569
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
16571
16570
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
@@ -16573,71 +16572,70 @@ var __decorate$11 = (undefined && undefined.__decorate) || function (decorators,
16573
16572
  };
16574
16573
  class ToolbarItem extends ChildProperty {
16575
16574
  }
16576
- __decorate$11([
16575
+ __decorate$a([
16577
16576
  Property('')
16578
16577
  ], ToolbarItem.prototype, "id", void 0);
16579
- __decorate$11([
16578
+ __decorate$a([
16580
16579
  Property('')
16581
16580
  ], ToolbarItem.prototype, "text", void 0);
16582
- __decorate$11([
16581
+ __decorate$a([
16583
16582
  Property('auto')
16584
16583
  ], ToolbarItem.prototype, "width", void 0);
16585
- __decorate$11([
16584
+ __decorate$a([
16586
16585
  Property('')
16587
16586
  ], ToolbarItem.prototype, "cssClass", void 0);
16588
- __decorate$11([
16587
+ __decorate$a([
16589
16588
  Property(false)
16590
16589
  ], ToolbarItem.prototype, "showAlwaysInPopup", void 0);
16591
- __decorate$11([
16590
+ __decorate$a([
16592
16591
  Property(false)
16593
16592
  ], ToolbarItem.prototype, "disabled", void 0);
16594
- __decorate$11([
16593
+ __decorate$a([
16595
16594
  Property('')
16596
16595
  ], ToolbarItem.prototype, "prefixIcon", void 0);
16597
- __decorate$11([
16596
+ __decorate$a([
16598
16597
  Property('')
16599
16598
  ], ToolbarItem.prototype, "suffixIcon", void 0);
16600
- __decorate$11([
16599
+ __decorate$a([
16601
16600
  Property(true)
16602
16601
  ], ToolbarItem.prototype, "visible", void 0);
16603
- __decorate$11([
16602
+ __decorate$a([
16604
16603
  Property('None')
16605
16604
  ], ToolbarItem.prototype, "overflow", void 0);
16606
- __decorate$11([
16605
+ __decorate$a([
16607
16606
  Property('')
16608
16607
  ], ToolbarItem.prototype, "template", void 0);
16609
- __decorate$11([
16608
+ __decorate$a([
16610
16609
  Property('Button')
16611
16610
  ], ToolbarItem.prototype, "type", void 0);
16612
- __decorate$11([
16611
+ __decorate$a([
16613
16612
  Property('Both')
16614
16613
  ], ToolbarItem.prototype, "showTextOn", void 0);
16615
- __decorate$11([
16614
+ __decorate$a([
16616
16615
  Property(null)
16617
16616
  ], ToolbarItem.prototype, "htmlAttributes", void 0);
16618
- __decorate$11([
16617
+ __decorate$a([
16619
16618
  Property('')
16620
16619
  ], ToolbarItem.prototype, "tooltipText", void 0);
16621
- __decorate$11([
16620
+ __decorate$a([
16622
16621
  Property('Left')
16623
16622
  ], ToolbarItem.prototype, "align", void 0);
16624
- __decorate$11([
16623
+ __decorate$a([
16625
16624
  Property(-1)
16626
16625
  ], ToolbarItem.prototype, "tabIndex", void 0);
16627
- __decorate$11([
16626
+ __decorate$a([
16628
16627
  Property('Custom')
16629
16628
  ], ToolbarItem.prototype, "name", void 0);
16630
- __decorate$11([
16629
+ __decorate$a([
16631
16630
  Event()
16632
16631
  ], ToolbarItem.prototype, "click", void 0);
16633
16632
 
16634
- var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
16633
+ var __decorate$b = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
16635
16634
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
16636
16635
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
16637
16636
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
16638
16637
  return c > 3 && r && Object.defineProperty(target, key, r), r;
16639
16638
  };
16640
- /* eslint-disable @typescript-eslint/no-explicit-any */
16641
16639
  /**
16642
16640
  * Represents the Schedule component that displays a list of events scheduled against specific date and timings,
16643
16641
  * thus helping us to plan and manage it properly.
@@ -16824,8 +16822,10 @@ let Schedule = class Schedule extends Component {
16824
16822
  validateDate(selectedDate = this.selectedDate) {
16825
16823
  // persist the selected date value
16826
16824
  let date = selectedDate instanceof Date ? new Date(selectedDate.getTime()) : new Date(selectedDate);
16827
- const minDate = this.minDate instanceof Date ? new Date(this.minDate.getTime()) : new Date(this.minDate);
16828
- const maxDate = this.maxDate instanceof Date ? new Date(this.maxDate.getTime()) : new Date(this.maxDate);
16825
+ const minDate = isNullOrUndefined(this.minDate) ? new Date(1900, 0, 1) :
16826
+ this.minDate instanceof Date ? new Date(this.minDate.getTime()) : new Date(this.minDate);
16827
+ const maxDate = isNullOrUndefined(this.maxDate) ? new Date(2099, 11, 31) :
16828
+ this.maxDate instanceof Date ? new Date(this.maxDate.getTime()) : new Date(this.maxDate);
16829
16829
  if (minDate <= maxDate) {
16830
16830
  if (date < minDate) {
16831
16831
  date = minDate;
@@ -16852,6 +16852,9 @@ let Schedule = class Schedule extends Component {
16852
16852
  return -1;
16853
16853
  }
16854
16854
  setViewOptions(isModuleLoad = false) {
16855
+ if (isNullOrUndefined(this.views) || this.views.length === 0) {
16856
+ return;
16857
+ }
16855
16858
  this.viewOptions = {};
16856
16859
  this.viewCollections = [];
16857
16860
  let viewName;
@@ -16923,7 +16926,7 @@ let Schedule = class Schedule extends Component {
16923
16926
  byDate: isYearView ? false : this.group.byDate,
16924
16927
  byGroupID: this.group.byGroupID,
16925
16928
  allowGroupEdit: this.group.allowGroupEdit,
16926
- resources: this.group.resources,
16929
+ resources: isNullOrUndefined(this.group.resources) ? [] : this.group.resources,
16927
16930
  headerTooltipTemplate: this.group.headerTooltipTemplate,
16928
16931
  enableCompactView: this.group.enableCompactView,
16929
16932
  hideNonWorkingDays: ['Day', 'Week', 'WorkWeek', 'Month'].indexOf(this.currentView) > -1 ? this.group.hideNonWorkingDays : false
@@ -17059,7 +17062,7 @@ let Schedule = class Schedule extends Component {
17059
17062
  const culShortNames = [];
17060
17063
  let cldrObj;
17061
17064
  let nameSpace = '';
17062
- if (this.locale === 'en' || this.locale === 'en-US') {
17065
+ if (isNullOrUndefined(this.locale) || this.locale === 'en' || this.locale === 'en-US') {
17063
17066
  nameSpace = 'days.stand-alone.';
17064
17067
  cldrObj = (getValue(nameSpace + type, getDefaultDateObject(this.getCalendarMode())));
17065
17068
  }
@@ -17077,7 +17080,7 @@ let Schedule = class Schedule extends Component {
17077
17080
  this.internalTimeFormat = this.timeFormat;
17078
17081
  return;
17079
17082
  }
17080
- if (this.locale === 'en' || this.locale === 'en-US') {
17083
+ if (isNullOrUndefined(this.locale) || this.locale === 'en' || this.locale === 'en-US') {
17081
17084
  this.internalTimeFormat = (getValue('timeFormats.short', getDefaultDateObject(this.getCalendarMode())));
17082
17085
  }
17083
17086
  else {
@@ -17091,7 +17094,7 @@ let Schedule = class Schedule extends Component {
17091
17094
  * @private
17092
17095
  */
17093
17096
  getCalendarMode() {
17094
- return this.calendarMode.toLowerCase();
17097
+ return !isNullOrUndefined(this.calendarMode) ? this.calendarMode.toLowerCase() : 'gregorian';
17095
17098
  }
17096
17099
  /**
17097
17100
  * Method to get time in string
@@ -17218,7 +17221,9 @@ let Schedule = class Schedule extends Component {
17218
17221
  * @private
17219
17222
  */
17220
17223
  isMinMaxDate(date = this.selectedDate) {
17221
- return ((date.getTime() >= this.minDate.getTime()) && (date.getTime() <= this.maxDate.getTime()));
17224
+ const maxDate = isNullOrUndefined(this.maxDate) ? new Date(2099, 11, 31) : this.maxDate;
17225
+ const minDate = isNullOrUndefined(this.minDate) ? new Date(1900, 0, 1) : this.minDate;
17226
+ return ((date.getTime() >= minDate.getTime()) && (date.getTime() <= maxDate.getTime()));
17222
17227
  }
17223
17228
  /**
17224
17229
  * Method to validate the selected date
@@ -17298,7 +17303,8 @@ let Schedule = class Schedule extends Component {
17298
17303
  if (this && isNullOrUndefined(this.uiStateValues) || !(this.enablePersistence)) {
17299
17304
  this.uiStateValues = {
17300
17305
  expand: false, isInitial: true, left: 0, top: 0, isGroupAdaptive: false,
17301
- isIgnoreOccurrence: false, groupIndex: this.adaptiveGroupIndex, action: false, isBlock: false, isCustomMonth: true, isPreventTimezone: false
17306
+ isIgnoreOccurrence: false, groupIndex: this.adaptiveGroupIndex, action: false,
17307
+ isBlock: false, isCustomMonth: true, isPreventTimezone: false
17302
17308
  };
17303
17309
  }
17304
17310
  this.currentTimezoneDate = this.getCurrentTime();
@@ -18117,7 +18123,9 @@ let Schedule = class Schedule extends Component {
18117
18123
  break;
18118
18124
  case 'timezone':
18119
18125
  this.eventBase.timezonePropertyChange(oldProp.timezone);
18120
- this.headerModule.setCalendarTimezone();
18126
+ if (this.headerModule) {
18127
+ this.headerModule.setCalendarTimezone();
18128
+ }
18121
18129
  break;
18122
18130
  case 'enableRtl':
18123
18131
  this.setRtlClass();
@@ -18141,6 +18149,9 @@ let Schedule = class Schedule extends Component {
18141
18149
  this.changeView(this.currentView, null, true);
18142
18150
  }
18143
18151
  else if (state.isDate) {
18152
+ if (isNullOrUndefined(this.selectedDate)) {
18153
+ this.setProperties({ selectedDate: this.getCurrentTime() }, true);
18154
+ }
18144
18155
  this.changeDate(this.selectedDate);
18145
18156
  }
18146
18157
  else if (state.isLayout) {
@@ -19370,274 +19381,274 @@ let Schedule = class Schedule extends Component {
19370
19381
  removeClass([this.element], removeClasses);
19371
19382
  }
19372
19383
  };
19373
- __decorate([
19384
+ __decorate$b([
19374
19385
  Property('auto')
19375
19386
  ], Schedule.prototype, "width", void 0);
19376
- __decorate([
19387
+ __decorate$b([
19377
19388
  Property('auto')
19378
19389
  ], Schedule.prototype, "height", void 0);
19379
- __decorate([
19390
+ __decorate$b([
19380
19391
  Property(true)
19381
19392
  ], Schedule.prototype, "showHeaderBar", void 0);
19382
- __decorate([
19393
+ __decorate$b([
19383
19394
  Property(true)
19384
19395
  ], Schedule.prototype, "showTimeIndicator", void 0);
19385
- __decorate([
19396
+ __decorate$b([
19386
19397
  Property(true)
19387
19398
  ], Schedule.prototype, "allowSwiping", void 0);
19388
- __decorate([
19399
+ __decorate$b([
19389
19400
  Collection([], ToolbarItem)
19390
19401
  ], Schedule.prototype, "toolbarItems", void 0);
19391
- __decorate([
19402
+ __decorate$b([
19392
19403
  Property('Week')
19393
19404
  ], Schedule.prototype, "currentView", void 0);
19394
- __decorate([
19405
+ __decorate$b([
19395
19406
  Property(['Day', 'Week', 'WorkWeek', 'Month', 'Agenda'])
19396
19407
  ], Schedule.prototype, "views", void 0);
19397
- __decorate([
19408
+ __decorate$b([
19398
19409
  Property(new Date())
19399
19410
  ], Schedule.prototype, "selectedDate", void 0);
19400
- __decorate([
19411
+ __decorate$b([
19401
19412
  Property(new Date(1900, 0, 1))
19402
19413
  ], Schedule.prototype, "minDate", void 0);
19403
- __decorate([
19414
+ __decorate$b([
19404
19415
  Property(new Date(2099, 11, 31))
19405
19416
  ], Schedule.prototype, "maxDate", void 0);
19406
- __decorate([
19417
+ __decorate$b([
19407
19418
  Property()
19408
19419
  ], Schedule.prototype, "dateFormat", void 0);
19409
- __decorate([
19420
+ __decorate$b([
19410
19421
  Property('Gregorian')
19411
19422
  ], Schedule.prototype, "calendarMode", void 0);
19412
- __decorate([
19423
+ __decorate$b([
19413
19424
  Property(true)
19414
19425
  ], Schedule.prototype, "showWeekend", void 0);
19415
- __decorate([
19426
+ __decorate$b([
19416
19427
  Property(0)
19417
19428
  ], Schedule.prototype, "firstDayOfWeek", void 0);
19418
- __decorate([
19429
+ __decorate$b([
19419
19430
  Property('FirstDay')
19420
19431
  ], Schedule.prototype, "weekRule", void 0);
19421
- __decorate([
19432
+ __decorate$b([
19422
19433
  Property([1, 2, 3, 4, 5])
19423
19434
  ], Schedule.prototype, "workDays", void 0);
19424
- __decorate([
19435
+ __decorate$b([
19425
19436
  Property(12)
19426
19437
  ], Schedule.prototype, "monthsCount", void 0);
19427
- __decorate([
19438
+ __decorate$b([
19428
19439
  Property('00:00')
19429
19440
  ], Schedule.prototype, "startHour", void 0);
19430
- __decorate([
19441
+ __decorate$b([
19431
19442
  Property('24:00')
19432
19443
  ], Schedule.prototype, "endHour", void 0);
19433
- __decorate([
19444
+ __decorate$b([
19434
19445
  Property(null)
19435
19446
  ], Schedule.prototype, "timeFormat", void 0);
19436
- __decorate([
19447
+ __decorate$b([
19437
19448
  Property(true)
19438
19449
  ], Schedule.prototype, "enableHtmlSanitizer", void 0);
19439
- __decorate([
19450
+ __decorate$b([
19440
19451
  Property(false)
19441
19452
  ], Schedule.prototype, "enableAllDayScroll", void 0);
19442
- __decorate([
19453
+ __decorate$b([
19443
19454
  Property(false)
19444
19455
  ], Schedule.prototype, "enableAdaptiveUI", void 0);
19445
- __decorate([
19456
+ __decorate$b([
19446
19457
  Property(true)
19447
19458
  ], Schedule.prototype, "allowResizing", void 0);
19448
- __decorate([
19459
+ __decorate$b([
19449
19460
  Complex({}, WorkHours)
19450
19461
  ], Schedule.prototype, "workHours", void 0);
19451
- __decorate([
19462
+ __decorate$b([
19452
19463
  Complex({}, TimeScale)
19453
19464
  ], Schedule.prototype, "timeScale", void 0);
19454
- __decorate([
19465
+ __decorate$b([
19455
19466
  Property(true)
19456
19467
  ], Schedule.prototype, "allowKeyboardInteraction", void 0);
19457
- __decorate([
19468
+ __decorate$b([
19458
19469
  Property(true)
19459
19470
  ], Schedule.prototype, "allowDragAndDrop", void 0);
19460
- __decorate([
19471
+ __decorate$b([
19461
19472
  Property()
19462
19473
  ], Schedule.prototype, "dateHeaderTemplate", void 0);
19463
- __decorate([
19474
+ __decorate$b([
19464
19475
  Property()
19465
19476
  ], Schedule.prototype, "dateRangeTemplate", void 0);
19466
- __decorate([
19477
+ __decorate$b([
19467
19478
  Property()
19468
19479
  ], Schedule.prototype, "cellHeaderTemplate", void 0);
19469
- __decorate([
19480
+ __decorate$b([
19470
19481
  Property()
19471
19482
  ], Schedule.prototype, "dayHeaderTemplate", void 0);
19472
- __decorate([
19483
+ __decorate$b([
19473
19484
  Property()
19474
19485
  ], Schedule.prototype, "monthHeaderTemplate", void 0);
19475
- __decorate([
19486
+ __decorate$b([
19476
19487
  Property()
19477
19488
  ], Schedule.prototype, "cellTemplate", void 0);
19478
- __decorate([
19489
+ __decorate$b([
19479
19490
  Property(false)
19480
19491
  ], Schedule.prototype, "readonly", void 0);
19481
- __decorate([
19492
+ __decorate$b([
19482
19493
  Property(true)
19483
19494
  ], Schedule.prototype, "showQuickInfo", void 0);
19484
- __decorate([
19495
+ __decorate$b([
19485
19496
  Property(false)
19486
19497
  ], Schedule.prototype, "allowInline", void 0);
19487
- __decorate([
19498
+ __decorate$b([
19488
19499
  Property(true)
19489
19500
  ], Schedule.prototype, "allowMultiCellSelection", void 0);
19490
- __decorate([
19501
+ __decorate$b([
19491
19502
  Property(true)
19492
19503
  ], Schedule.prototype, "allowMultiRowSelection", void 0);
19493
- __decorate([
19504
+ __decorate$b([
19494
19505
  Property(false)
19495
19506
  ], Schedule.prototype, "quickInfoOnSelectionEnd", void 0);
19496
- __decorate([
19507
+ __decorate$b([
19497
19508
  Property(false)
19498
19509
  ], Schedule.prototype, "showWeekNumber", void 0);
19499
- __decorate([
19510
+ __decorate$b([
19500
19511
  Property(false)
19501
19512
  ], Schedule.prototype, "rowAutoHeight", void 0);
19502
- __decorate([
19513
+ __decorate$b([
19503
19514
  Property(false)
19504
19515
  ], Schedule.prototype, "allowMultiDrag", void 0);
19505
- __decorate([
19516
+ __decorate$b([
19506
19517
  Property(0)
19507
19518
  ], Schedule.prototype, "firstMonthOfYear", void 0);
19508
- __decorate([
19519
+ __decorate$b([
19509
19520
  Property()
19510
19521
  ], Schedule.prototype, "editorTemplate", void 0);
19511
- __decorate([
19522
+ __decorate$b([
19512
19523
  Property()
19513
19524
  ], Schedule.prototype, "editorHeaderTemplate", void 0);
19514
- __decorate([
19525
+ __decorate$b([
19515
19526
  Property()
19516
19527
  ], Schedule.prototype, "editorFooterTemplate", void 0);
19517
- __decorate([
19528
+ __decorate$b([
19518
19529
  Complex({}, QuickInfoTemplates)
19519
19530
  ], Schedule.prototype, "quickInfoTemplates", void 0);
19520
- __decorate([
19531
+ __decorate$b([
19521
19532
  Property(7)
19522
19533
  ], Schedule.prototype, "agendaDaysCount", void 0);
19523
- __decorate([
19534
+ __decorate$b([
19524
19535
  Property(true)
19525
19536
  ], Schedule.prototype, "hideEmptyAgendaDays", void 0);
19526
- __decorate([
19537
+ __decorate$b([
19527
19538
  Property(true)
19528
19539
  ], Schedule.prototype, "enableRecurrenceValidation", void 0);
19529
- __decorate([
19540
+ __decorate$b([
19530
19541
  Property()
19531
19542
  ], Schedule.prototype, "timezone", void 0);
19532
- __decorate([
19543
+ __decorate$b([
19533
19544
  Complex({}, EventSettings)
19534
19545
  ], Schedule.prototype, "eventSettings", void 0);
19535
- __decorate([
19546
+ __decorate$b([
19536
19547
  Property(timezoneData)
19537
19548
  ], Schedule.prototype, "timezoneDataSource", void 0);
19538
- __decorate([
19549
+ __decorate$b([
19539
19550
  Property()
19540
19551
  ], Schedule.prototype, "resourceHeaderTemplate", void 0);
19541
- __decorate([
19552
+ __decorate$b([
19542
19553
  Property()
19543
19554
  ], Schedule.prototype, "headerIndentTemplate", void 0);
19544
- __decorate([
19555
+ __decorate$b([
19545
19556
  Complex({}, Group)
19546
19557
  ], Schedule.prototype, "group", void 0);
19547
- __decorate([
19558
+ __decorate$b([
19548
19559
  Collection([], Resources)
19549
19560
  ], Schedule.prototype, "resources", void 0);
19550
- __decorate([
19561
+ __decorate$b([
19551
19562
  Collection([], HeaderRows)
19552
19563
  ], Schedule.prototype, "headerRows", void 0);
19553
- __decorate([
19564
+ __decorate$b([
19554
19565
  Property()
19555
19566
  ], Schedule.prototype, "cssClass", void 0);
19556
- __decorate([
19567
+ __decorate$b([
19557
19568
  Property()
19558
19569
  ], Schedule.prototype, "eventDragArea", void 0);
19559
- __decorate([
19570
+ __decorate$b([
19560
19571
  Event()
19561
19572
  ], Schedule.prototype, "created", void 0);
19562
- __decorate([
19573
+ __decorate$b([
19563
19574
  Event()
19564
19575
  ], Schedule.prototype, "destroyed", void 0);
19565
- __decorate([
19576
+ __decorate$b([
19566
19577
  Event()
19567
19578
  ], Schedule.prototype, "cellClick", void 0);
19568
- __decorate([
19579
+ __decorate$b([
19569
19580
  Event()
19570
19581
  ], Schedule.prototype, "cellDoubleClick", void 0);
19571
- __decorate([
19582
+ __decorate$b([
19572
19583
  Event()
19573
19584
  ], Schedule.prototype, "moreEventsClick", void 0);
19574
- __decorate([
19585
+ __decorate$b([
19575
19586
  Event()
19576
19587
  ], Schedule.prototype, "hover", void 0);
19577
- __decorate([
19588
+ __decorate$b([
19578
19589
  Event()
19579
19590
  ], Schedule.prototype, "select", void 0);
19580
- __decorate([
19591
+ __decorate$b([
19581
19592
  Event()
19582
19593
  ], Schedule.prototype, "actionBegin", void 0);
19583
- __decorate([
19594
+ __decorate$b([
19584
19595
  Event()
19585
19596
  ], Schedule.prototype, "actionComplete", void 0);
19586
- __decorate([
19597
+ __decorate$b([
19587
19598
  Event()
19588
19599
  ], Schedule.prototype, "actionFailure", void 0);
19589
- __decorate([
19600
+ __decorate$b([
19590
19601
  Event()
19591
19602
  ], Schedule.prototype, "navigating", void 0);
19592
- __decorate([
19603
+ __decorate$b([
19593
19604
  Event()
19594
19605
  ], Schedule.prototype, "renderCell", void 0);
19595
- __decorate([
19606
+ __decorate$b([
19596
19607
  Event()
19597
19608
  ], Schedule.prototype, "eventClick", void 0);
19598
- __decorate([
19609
+ __decorate$b([
19599
19610
  Event()
19600
19611
  ], Schedule.prototype, "eventDoubleClick", void 0);
19601
- __decorate([
19612
+ __decorate$b([
19602
19613
  Event()
19603
19614
  ], Schedule.prototype, "eventRendered", void 0);
19604
- __decorate([
19615
+ __decorate$b([
19605
19616
  Event()
19606
19617
  ], Schedule.prototype, "dataBinding", void 0);
19607
- __decorate([
19618
+ __decorate$b([
19608
19619
  Event()
19609
19620
  ], Schedule.prototype, "popupOpen", void 0);
19610
- __decorate([
19621
+ __decorate$b([
19611
19622
  Event()
19612
19623
  ], Schedule.prototype, "popupClose", void 0);
19613
- __decorate([
19624
+ __decorate$b([
19614
19625
  Event()
19615
19626
  ], Schedule.prototype, "dragStart", void 0);
19616
- __decorate([
19627
+ __decorate$b([
19617
19628
  Event()
19618
19629
  ], Schedule.prototype, "drag", void 0);
19619
- __decorate([
19630
+ __decorate$b([
19620
19631
  Event()
19621
19632
  ], Schedule.prototype, "dragStop", void 0);
19622
- __decorate([
19633
+ __decorate$b([
19623
19634
  Event()
19624
19635
  ], Schedule.prototype, "resizeStart", void 0);
19625
- __decorate([
19636
+ __decorate$b([
19626
19637
  Event()
19627
19638
  ], Schedule.prototype, "resizing", void 0);
19628
- __decorate([
19639
+ __decorate$b([
19629
19640
  Event()
19630
19641
  ], Schedule.prototype, "resizeStop", void 0);
19631
- __decorate([
19642
+ __decorate$b([
19632
19643
  Event()
19633
19644
  ], Schedule.prototype, "virtualScrollStart", void 0);
19634
- __decorate([
19645
+ __decorate$b([
19635
19646
  Event()
19636
19647
  ], Schedule.prototype, "virtualScrollStop", void 0);
19637
- __decorate([
19648
+ __decorate$b([
19638
19649
  Event()
19639
19650
  ], Schedule.prototype, "dataBound", void 0);
19640
- Schedule = __decorate([
19651
+ Schedule = __decorate$b([
19641
19652
  NotifyPropertyChanges
19642
19653
  ], Schedule);
19643
19654
 
@@ -20821,7 +20832,8 @@ class YearEvent extends TimelineEvent {
20821
20832
  continue;
20822
20833
  }
20823
20834
  }
20824
- const enableAppRender = this.maxOrIndicator || (overlapIndex < eventsPerRow) || (this.cellHeight > availedHeight);
20835
+ const enableAppRender = this.maxOrIndicator || (overlapIndex < eventsPerRow) ||
20836
+ (this.cellHeight > availedHeight);
20825
20837
  if (this.parent.rowAutoHeight || enableAppRender || this.cellHeight > availedHeight) {
20826
20838
  this.renderEvent(eventWrapper, eventData, row, leftValue, rightValue, monthStart, dayIndex);
20827
20839
  if (this.parent.rowAutoHeight || this.cellHeight > availedHeight) {
@@ -21517,7 +21529,8 @@ class DragAndDrop extends ActionBase {
21517
21529
  if (this.parent.quickPopup) {
21518
21530
  this.parent.quickPopup.quickPopupHide(true);
21519
21531
  }
21520
- if ((!isNullOrUndefined(e.target)) && e.target.classList && e.target.classList.contains(DISABLE_DATES)) {
21532
+ if ((!isNullOrUndefined(e.target)) && e.target.classList &&
21533
+ e.target.classList.contains(DISABLE_DATES)) {
21521
21534
  return;
21522
21535
  }
21523
21536
  const eventObj = extend({}, this.actionObj.event, null, true);
@@ -21758,13 +21771,13 @@ class DragAndDrop extends ActionBase {
21758
21771
  if (this.parent.currentView === 'TimelineYear' && (!td.classList.contains(WORK_CELLS_CLASS) || td.classList.contains(OTHERMONTH_CLASS))) {
21759
21772
  return;
21760
21773
  }
21761
- const dragStart$$1 = this.parent.getDateFromElement(td);
21762
- const dragEnd = new Date(dragStart$$1.getTime());
21774
+ const dragStart = this.parent.getDateFromElement(td);
21775
+ const dragEnd = new Date(dragStart.getTime());
21763
21776
  dragEnd.setMilliseconds(eventDuration);
21764
21777
  if (this.parent.activeViewOptions.group.resources.length > 0) {
21765
21778
  this.actionObj.groupIndex = parseInt(td.getAttribute('data-group-index'), 10);
21766
21779
  }
21767
- this.actionObj.start = new Date(dragStart$$1.getTime());
21780
+ this.actionObj.start = new Date(dragStart.getTime());
21768
21781
  this.actionObj.end = new Date(dragEnd.getTime());
21769
21782
  this.actionObj.clone.style.top = formatUnit(td.offsetParent.offsetTop);
21770
21783
  this.actionObj.clone.style.left = formatUnit(td.offsetLeft);
@@ -21835,13 +21848,13 @@ class DragAndDrop extends ActionBase {
21835
21848
  if (this.parent.activeViewOptions.group.resources.length > 0 && !this.parent.uiStateValues.isGroupAdaptive) {
21836
21849
  this.actionObj.groupIndex = parseInt(td.getAttribute('data-group-index'), 10);
21837
21850
  }
21838
- let dragStart$$1;
21851
+ let dragStart;
21839
21852
  let dragEnd;
21840
21853
  if (this.parent.activeViewOptions.timeScale.enable && !this.isAllDayDrag) {
21841
21854
  this.appendCloneElement(this.getEventWrapper(colIndex));
21842
- dragStart$$1 = this.parent.getDateFromElement(td);
21843
- dragStart$$1.setMinutes(dragStart$$1.getMinutes() + (diffInMinutes / heightPerMinute));
21844
- dragEnd = new Date(dragStart$$1.getTime());
21855
+ dragStart = this.parent.getDateFromElement(td);
21856
+ dragStart.setMinutes(dragStart.getMinutes() + (diffInMinutes / heightPerMinute));
21857
+ dragEnd = new Date(dragStart.getTime());
21845
21858
  if (this.actionObj.element.classList.contains(ALLDAY_APPOINTMENT_CLASS)) {
21846
21859
  dragEnd.setMinutes(dragEnd.getMinutes() + this.actionObj.slotInterval);
21847
21860
  }
@@ -21850,10 +21863,10 @@ class DragAndDrop extends ActionBase {
21850
21863
  }
21851
21864
  }
21852
21865
  else {
21853
- dragStart$$1 = this.parent.getDateFromElement(td);
21854
- dragStart$$1.setDate(dragStart$$1.getDate() - this.daysVariation);
21855
- dragStart$$1.setHours(eventStart.getHours(), eventStart.getMinutes(), eventStart.getSeconds());
21856
- dragEnd = new Date(dragStart$$1.getTime());
21866
+ dragStart = this.parent.getDateFromElement(td);
21867
+ dragStart.setDate(dragStart.getDate() - this.daysVariation);
21868
+ dragStart.setHours(eventStart.getHours(), eventStart.getMinutes(), eventStart.getSeconds());
21869
+ dragEnd = new Date(dragStart.getTime());
21857
21870
  dragEnd.setMilliseconds(eventDuration);
21858
21871
  if (!this.actionObj.element.classList.contains(ALLDAY_APPOINTMENT_CLASS) &&
21859
21872
  this.actionObj.clone.classList.contains(ALLDAY_APPOINTMENT_CLASS)) {
@@ -21861,9 +21874,9 @@ class DragAndDrop extends ActionBase {
21861
21874
  }
21862
21875
  const index = this.parent.activeViewOptions.group.byDate || (this.parent.virtualScrollModule &&
21863
21876
  !this.parent.activeViewOptions.timeScale.enable) ? colIndex : undefined;
21864
- this.updateAllDayEvents(dragStart$$1, dragEnd, index);
21877
+ this.updateAllDayEvents(dragStart, dragEnd, index);
21865
21878
  }
21866
- this.actionObj.start = new Date(+dragStart$$1);
21879
+ this.actionObj.start = new Date(+dragStart);
21867
21880
  this.actionObj.end = new Date(+dragEnd);
21868
21881
  const event = this.getUpdatedEvent(this.actionObj.start, this.actionObj.end, this.actionObj.event);
21869
21882
  const dynamicWrappers = [].slice.call(this.parent.element.querySelectorAll('.e-dynamic-clone'));
@@ -22177,13 +22190,13 @@ class DragAndDrop extends ActionBase {
22177
22190
  this.actionObj.groupIndex = parseInt(td.getAttribute('data-group-index'), 10);
22178
22191
  }
22179
22192
  const timeString = new Date(currentDate.setDate(currentDate.getDate() - this.daysVariation));
22180
- const dragStart$$1 = new Date(timeString.getTime());
22193
+ const dragStart = new Date(timeString.getTime());
22181
22194
  const startTimeDiff = getUniversalTime(eventObj[this.parent.eventFields.startTime]) -
22182
22195
  getUniversalTime(resetTime(new Date(+eventObj[this.parent.eventFields.startTime])));
22183
- dragStart$$1.setMilliseconds(startTimeDiff);
22184
- const dragEnd = new Date(dragStart$$1.getTime());
22196
+ dragStart.setMilliseconds(startTimeDiff);
22197
+ const dragEnd = new Date(dragStart.getTime());
22185
22198
  dragEnd.setMilliseconds(eventDuration);
22186
- this.actionObj.start = new Date(dragStart$$1.getTime());
22199
+ this.actionObj.start = new Date(dragStart.getTime());
22187
22200
  this.actionObj.end = new Date(dragEnd.getTime());
22188
22201
  }
22189
22202
  }
@@ -22595,10 +22608,11 @@ class ViewBase {
22595
22608
  }
22596
22609
  });
22597
22610
  });
22598
- if (!isNullOrUndefined(this.parent.resourceBase.renderedResources) && this.parent.resourceBase.renderedResources.length > 0) {
22611
+ const rendereData = this.parent.resourceBase.renderedResources;
22612
+ if (!isNullOrUndefined(rendereData) && rendereData.length > 0) {
22599
22613
  for (let i = 0; i < resourceTd.length; i++) {
22600
22614
  const element = resourceTd[parseInt(i.toString(), 10)];
22601
- const data = this.parent.resourceBase.renderedResources[parseInt(i.toString(), 10)];
22615
+ const data = rendereData[parseInt(i.toString(), 10)];
22602
22616
  if (this.parent.activeView && !isNullOrUndefined(element) && !isNullOrUndefined(data)
22603
22617
  && parseInt(element.getAttribute('data-group-index'), 10) === data.groupIndex) {
22604
22618
  this.parent.activeView.setResourceHeaderContent(element, data, RESOURCE_TEXT_CLASS);
@@ -22663,6 +22677,9 @@ class ViewBase {
22663
22677
  table.setAttribute('aria-label', this.getLabelText(this.parent.currentView));
22664
22678
  }
22665
22679
  createColGroup(table, lastRow) {
22680
+ if (isNullOrUndefined(lastRow)) {
22681
+ return;
22682
+ }
22666
22683
  let length = lastRow.length;
22667
22684
  if (lastRow[0] && lastRow[0].colSpan) {
22668
22685
  length = lastRow.map((value) => value.colSpan).reduce((prev, next) => prev + next);
@@ -22802,7 +22819,7 @@ class ViewBase {
22802
22819
  this.parent.getCurrentTime().getFullYear() && date.getMonth() === this.parent.getCurrentTime().getMonth();
22803
22820
  }
22804
22821
  isWorkDay(date, workDays = this.parent.activeViewOptions.workDays) {
22805
- if (workDays.indexOf(date.getDay()) >= 0) {
22822
+ if (!isNullOrUndefined(workDays) && workDays.indexOf(date.getDay()) >= 0) {
22806
22823
  return true;
22807
22824
  }
22808
22825
  return false;
@@ -22929,7 +22946,7 @@ class ViewBase {
22929
22946
  }
22930
22947
  let formattedStr;
22931
22948
  let longDateFormat;
22932
- if (this.parent.locale === 'en' || this.parent.locale === 'en-US') {
22949
+ if (isNullOrUndefined(this.parent.locale) || this.parent.locale === 'en' || this.parent.locale === 'en-US') {
22933
22950
  longDateFormat = getValue('dateFormats.long', getDefaultDateObject(mode));
22934
22951
  }
22935
22952
  else {
@@ -23274,6 +23291,9 @@ class VerticalView extends ViewBase {
23274
23291
  this.highlightCurrentTime();
23275
23292
  }
23276
23293
  this.retainScrollPosition();
23294
+ if (!isNullOrUndefined(timeCells) && !isNullOrUndefined(content) && timeCells.scrollTop !== content.scrollTop) {
23295
+ timeCells.scrollTop = content.scrollTop;
23296
+ }
23277
23297
  }
23278
23298
  setContentHeight(element, leftPanelElement, height) {
23279
23299
  if (this.parent.isAdaptive && !this.isTimelineView()) {
@@ -23356,12 +23376,12 @@ class VerticalView extends ViewBase {
23356
23376
  const start = this.parent.getStartEndTime(workStartHour);
23357
23377
  const end = this.parent.getStartEndTime(workEndHour);
23358
23378
  for (const col of renderDates) {
23359
- const classList$$1 = [HEADER_CELLS_CLASS];
23379
+ const classList = [HEADER_CELLS_CLASS];
23360
23380
  if (this.isCurrentDate(col)) {
23361
- classList$$1.push(CURRENT_DAY_CLASS);
23381
+ classList.push(CURRENT_DAY_CLASS);
23362
23382
  }
23363
23383
  dateCol.push({
23364
- date: col, type: 'dateHeader', className: classList$$1, colSpan: 1,
23384
+ date: col, type: 'dateHeader', className: classList, colSpan: 1,
23365
23385
  workDays: workDays, startHour: new Date(+start), endHour: new Date(+end)
23366
23386
  });
23367
23387
  }
@@ -24214,12 +24234,12 @@ class Month extends ViewBase {
24214
24234
  const dateSlots = [];
24215
24235
  const isCurrentMonth = this.isCurrentMonth(this.parent.selectedDate);
24216
24236
  for (let col = 0; col < count; col++) {
24217
- const classList$$1 = [HEADER_CELLS_CLASS];
24237
+ const classList = [HEADER_CELLS_CLASS];
24218
24238
  const currentDateIndex = renderDates.slice(0, count).map((date) => date.getDay());
24219
24239
  if (isCurrentMonth && currentDateIndex.indexOf(this.parent.currentTimezoneDate.getDay()) === col) {
24220
- classList$$1.push(CURRENT_DAY_CLASS);
24240
+ classList.push(CURRENT_DAY_CLASS);
24221
24241
  }
24222
- dateSlots.push({ date: renderDates[parseInt(col.toString(), 10)], type: 'monthDay', className: classList$$1, colSpan: 1, workDays: workDays });
24242
+ dateSlots.push({ date: renderDates[parseInt(col.toString(), 10)], type: 'monthDay', className: classList, colSpan: 1, workDays: workDays });
24223
24243
  }
24224
24244
  return dateSlots;
24225
24245
  }
@@ -24416,10 +24436,10 @@ class Month extends ViewBase {
24416
24436
  return [];
24417
24437
  }
24418
24438
  const slotDatas = [];
24419
- const prepareSlots = (rowIndex, renderDate, resData, classList$$1) => {
24439
+ const prepareSlots = (rowIndex, renderDate, resData, classList) => {
24420
24440
  const data = {
24421
24441
  date: new Date(+renderDate), groupIndex: resData.groupIndex, workDays: resData.workDays,
24422
- type: 'monthCells', className: classList$$1 || [WORK_CELLS_CLASS]
24442
+ type: 'monthCells', className: classList || [WORK_CELLS_CLASS]
24423
24443
  };
24424
24444
  if (!slotDatas[parseInt(rowIndex.toString(), 10)]) {
24425
24445
  slotDatas[parseInt(rowIndex.toString(), 10)] = [];
@@ -24859,7 +24879,7 @@ class Year extends ViewBase {
24859
24879
  else {
24860
24880
  tr.appendChild(createElement('th', { innerHTML: this.parent.getDayNames('narrow')[currentWeek.getDay()] }));
24861
24881
  }
24862
- let nextDay = new Date(currentWeek.getTime() + MS_PER_DAY);
24882
+ const nextDay = new Date(currentWeek.getTime() + MS_PER_DAY);
24863
24883
  currentWeek = nextDay.getDate() === currentWeek.getDate() ? addDays(nextDay, 1) : nextDay;
24864
24884
  }
24865
24885
  thead.appendChild(tr);
@@ -24898,18 +24918,18 @@ class Year extends ViewBase {
24898
24918
  const args = { date: date, type: 'monthCells' };
24899
24919
  this.renderTemplates(this.parent.getCellTemplate(), args, 'cellTemplate', this.parent.activeViewOptions.cellTemplateName, td);
24900
24920
  }
24901
- let classList$$1 = [];
24921
+ let classList = [];
24902
24922
  if (currentDate.getMonth() !== date.getMonth()) {
24903
- classList$$1.push(OTHERMONTH_CLASS);
24923
+ classList.push(OTHERMONTH_CLASS);
24904
24924
  if (td.firstElementChild && !this.parent.activeViewOptions.cellTemplate) {
24905
24925
  td.firstElementChild.setAttribute('aria-disabled', 'true');
24906
24926
  }
24907
24927
  }
24908
24928
  if (this.isCurrentDate(date) && currentDate.getMonth() === date.getMonth()) {
24909
- classList$$1 = classList$$1.concat(['e-today', 'e-selected']);
24929
+ classList = classList.concat(['e-today', 'e-selected']);
24910
24930
  }
24911
- if (classList$$1.length > 0) {
24912
- addClass([td], classList$$1);
24931
+ if (classList.length > 0) {
24932
+ addClass([td], classList);
24913
24933
  }
24914
24934
  tr.appendChild(td);
24915
24935
  if (currentDate.getMonth() === date.getMonth()) {
@@ -26607,11 +26627,11 @@ class TimelineMonth extends Month {
26607
26627
  getDateSlots(renderDates, workDays) {
26608
26628
  const dateSlots = [];
26609
26629
  for (const col of renderDates) {
26610
- const classList$$1 = [HEADER_CELLS_CLASS];
26630
+ const classList = [HEADER_CELLS_CLASS];
26611
26631
  if (this.isCurrentDate(col)) {
26612
- classList$$1.push(CURRENT_DAY_CLASS);
26632
+ classList.push(CURRENT_DAY_CLASS);
26613
26633
  }
26614
- dateSlots.push({ date: col, type: 'dateHeader', className: classList$$1, colSpan: 1, workDays: workDays });
26634
+ dateSlots.push({ date: col, type: 'dateHeader', className: classList, colSpan: 1, workDays: workDays });
26615
26635
  }
26616
26636
  return dateSlots;
26617
26637
  }
@@ -26958,15 +26978,15 @@ class TimelineYear extends Year {
26958
26978
  });
26959
26979
  if (isDateAvail) {
26960
26980
  const tds = [td];
26961
- const classList$$1 = [];
26981
+ const classList = [];
26962
26982
  if (this.parent.activeViewOptions.workDays.indexOf(date.getDay()) > -1) {
26963
- classList$$1.push(WORKDAY_CLASS);
26983
+ classList.push(WORKDAY_CLASS);
26964
26984
  }
26965
26985
  if (!this.parent.isMinMaxDate(date)) {
26966
26986
  addClass([td], DISABLE_DATES);
26967
26987
  }
26968
26988
  if (this.isCurrentDate(date)) {
26969
- classList$$1.push(CURRENT_DAY_CLASS);
26989
+ classList.push(CURRENT_DAY_CLASS);
26970
26990
  if (this.parent.activeViewOptions.orientation === 'Horizontal') {
26971
26991
  tds.push(this.element.querySelector('.' + HEADER_CELLS_CLASS + `:nth-child(${column + 1})`));
26972
26992
  }
@@ -26974,8 +26994,8 @@ class TimelineYear extends Year {
26974
26994
  tds.push(this.element.querySelectorAll('.' + MONTH_HEADER_CLASS).item(month));
26975
26995
  }
26976
26996
  }
26977
- if (classList$$1.length > 0) {
26978
- addClass(tds, classList$$1);
26997
+ if (classList.length > 0) {
26998
+ addClass(tds, classList);
26979
26999
  }
26980
27000
  }
26981
27001
  else {
@@ -27019,14 +27039,14 @@ class TimelineYear extends Year {
27019
27039
  let monthDate = new Date(this.parent.selectedDate.getFullYear(), monthCells[parseInt(row.toString(), 10)], 1);
27020
27040
  let date = this.parent.calendarUtil.getMonthStartDate(new Date(monthDate.getTime()));
27021
27041
  for (let month = 0; month < this.columnCount; month++) {
27022
- let classList$$1 = [];
27042
+ let classList = [];
27023
27043
  const groupIndex = resData.groupIndex;
27024
- classList$$1 = classList$$1.concat(resData.className);
27025
- if (classList$$1.indexOf(RESOURCE_PARENT_CLASS) > -1) {
27026
- classList$$1.push(RESOURCE_GROUP_CELLS_CLASS);
27044
+ classList = classList.concat(resData.className);
27045
+ if (classList.indexOf(RESOURCE_PARENT_CLASS) > -1) {
27046
+ classList.push(RESOURCE_GROUP_CELLS_CLASS);
27027
27047
  }
27028
27048
  else {
27029
- classList$$1.push(WORKDAY_CLASS);
27049
+ classList.push(WORKDAY_CLASS);
27030
27050
  }
27031
27051
  monthDate = new Date(this.parent.selectedDate.getFullYear(), monthCells[parseInt(month.toString(), 10)], 1);
27032
27052
  date = this.parent.calendarUtil.getMonthStartDate(new Date(monthDate.getTime()));
@@ -27037,7 +27057,7 @@ class TimelineYear extends Year {
27037
27057
  'data-date': date.getTime().toString()
27038
27058
  }
27039
27059
  });
27040
- addClass([tdELe], classList$$1);
27060
+ addClass([tdELe], classList);
27041
27061
  tdELe.setAttribute('data-group-index', groupIndex.toString());
27042
27062
  this.renderCellTemplate({ date: date, type: 'resourceGroupCells', groupIndex: groupIndex }, tdELe);
27043
27063
  this.wireEvents(tdELe);
@@ -27075,23 +27095,23 @@ class TimelineYear extends Year {
27075
27095
  monthTr.appendChild(monthTd);
27076
27096
  }
27077
27097
  for (let month = 0; month < this.columnCount; month++) {
27078
- let classList$$1 = [];
27098
+ let classList = [];
27079
27099
  let groupIndex;
27080
27100
  if (this.parent.activeViewOptions.orientation === 'Vertical') {
27081
27101
  groupIndex = resData.groupIndex;
27082
- classList$$1 = classList$$1.concat(resData.className);
27083
- if (classList$$1.indexOf(RESOURCE_PARENT_CLASS) > -1) {
27084
- classList$$1.push(RESOURCE_GROUP_CELLS_CLASS);
27102
+ classList = classList.concat(resData.className);
27103
+ if (classList.indexOf(RESOURCE_PARENT_CLASS) > -1) {
27104
+ classList.push(RESOURCE_GROUP_CELLS_CLASS);
27085
27105
  }
27086
27106
  else {
27087
- classList$$1.push(WORKDAY_CLASS);
27107
+ classList.push(WORKDAY_CLASS);
27088
27108
  }
27089
27109
  monthDate = new Date(this.parent.selectedDate.getFullYear(), months[parseInt(month.toString(), 10)], 1);
27090
27110
  date = this.parent.calendarUtil.getMonthStartDate(new Date(monthDate.getTime()));
27091
27111
  }
27092
27112
  else {
27093
27113
  groupIndex = this.colLevels.slice(-1)[0][parseInt(month.toString(), 10)].groupIndex;
27094
- classList$$1.push(WORKDAY_CLASS);
27114
+ classList.push(WORKDAY_CLASS);
27095
27115
  }
27096
27116
  const startDateText = this.parent.globalize.formatDate(date, { type: 'dateTime', skeleton: 'full', calendar: this.parent.getCalendarMode() });
27097
27117
  const endDateText = this.parent.globalize.formatDate(this.parent.calendarUtil.getMonthEndDate(new Date(monthDate.getTime())), { type: 'dateTime', skeleton: 'full', calendar: this.parent.getCalendarMode() });
@@ -27103,7 +27123,7 @@ class TimelineYear extends Year {
27103
27123
  'aria-label': startDateText + ' ' + this.parent.localeObj.getConstant('endAt') + ' ' + endDateText
27104
27124
  }
27105
27125
  });
27106
- addClass([td], classList$$1);
27126
+ addClass([td], classList);
27107
27127
  td.setAttribute('data-group-index', groupIndex.toString());
27108
27128
  this.renderCellTemplate({ date: date, type: 'resourceGroupCells', groupIndex: groupIndex }, td);
27109
27129
  this.wireEvents(td);
@@ -27373,8 +27393,7 @@ class ICalendarImport {
27373
27393
  else {
27374
27394
  newlineOffset = 1;
27375
27395
  }
27376
- // eslint-disable-next-line security/detect-object-injection
27377
- const firstChar = iCalString[lastPosition];
27396
+ const firstChar = iCalString.charAt(lastPosition);
27378
27397
  if (firstChar === ' ' || firstChar === '\n' || firstChar === '\t') {
27379
27398
  iString += iCalString.slice(lastPosition + 1, position - newlineOffset);
27380
27399
  }
@@ -27722,7 +27741,7 @@ class Print {
27722
27741
  this.printInstance = new Schedule(this.getPrintScheduleModel(printOptions));
27723
27742
  this.printInstance.isPrinting = true;
27724
27743
  this.printInstance.appendTo(element);
27725
- this.printInstance.on(print$1, this.contentReady, this);
27744
+ this.printInstance.on(print, this.contentReady, this);
27726
27745
  this.printWindow = window.open('', 'print', 'height=' + window.outerHeight + ',width=' + window.outerWidth + ',tabbar=no');
27727
27746
  this.printWindow.moveTo(0, 0);
27728
27747
  this.printWindow.resizeTo(screen.availWidth, screen.availHeight);
@@ -27800,9 +27819,9 @@ class Print {
27800
27819
  return printModel;
27801
27820
  }
27802
27821
  contentReady() {
27803
- this.printWindow = print(this.printInstance.element, this.printWindow);
27822
+ this.printWindow = print$1(this.printInstance.element, this.printWindow);
27804
27823
  this.printWindow.onbeforeunload = () => {
27805
- this.printInstance.off(print$1, this.contentReady);
27824
+ this.printInstance.off(print, this.contentReady);
27806
27825
  this.printInstance.element.remove();
27807
27826
  this.printInstance.destroy();
27808
27827
  this.printInstance = null;
@@ -27817,25 +27836,5 @@ class Print {
27817
27836
  }
27818
27837
  }
27819
27838
 
27820
- /**
27821
- * Exporting modules
27822
- */
27823
-
27824
- /**
27825
- * Schedule component exported items
27826
- */
27827
-
27828
- /**
27829
- * Recurrence-Editor component exported items
27830
- */
27831
-
27832
- /**
27833
- * Calendar util exported items
27834
- */
27835
-
27836
- /**
27837
- * Export Schedule components
27838
- */
27839
-
27840
- export { Schedule, cellClick, cellDoubleClick, moreEventsClick, select, hover, actionBegin, actionComplete, actionFailure, navigating, renderCell, eventClick, eventDoubleClick, eventRendered, dataBinding, dataBound, popupOpen, popupClose, dragStart, drag, dragStop, resizeStart, resizing, resizeStop, inlineClick, cellSelect, virtualScrollStart, virtualScrollStop, initialLoad, initialEnd, print$1 as print, dataReady, eventsLoaded, contentReady, scroll, virtualScroll, scrollUiUpdate, uiUpdate, documentClick, cellMouseDown, WEEK_LENGTH, DEFAULT_WEEKS, MS_PER_DAY, MS_PER_MINUTE, getElementHeightFromClass, getElementWidthFromClass, getTranslateY, getTranslateX, getWeekFirstDate, getWeekLastDate, firstDateOfMonth, lastDateOfMonth, getWeekNumber, getWeekMiddleDate, setTime, resetTime, getDateInMs, getDateCount, addDays, addMonths, addYears, getStartEndHours, getMaxDays, getDaysCount, getDateFromString, getScrollBarWidth, resetScrollbarWidth, findIndexInData, getOuterHeight, removeChildren, isDaylightSavingTime, getUniversalTime, isMobile, isIPadDevice, capitalizeFirstWord, getElementWidth, getElementHeight, getElementTop, Resize, DragAndDrop, HeaderRenderer, ViewBase, Day, Week, WorkWeek, Month, Year, Agenda, MonthAgenda, TimelineViews, TimelineMonth, TimelineYear, Timezone, timezoneData, ICalendarExport, ICalendarImport, ExcelExport, Print, RecurrenceEditor, generateSummary, generate, getDateFromRecurrenceDateString, extractObjectFromRule, getCalendarUtil, getRecurrenceStringFromDate, Gregorian, Islamic };
27839
+ export { Agenda, DEFAULT_WEEKS, Day, DragAndDrop, ExcelExport, Gregorian, HeaderRenderer, ICalendarExport, ICalendarImport, Islamic, MS_PER_DAY, MS_PER_MINUTE, Month, MonthAgenda, Print, RecurrenceEditor, Resize, Schedule, TimelineMonth, TimelineViews, TimelineYear, Timezone, ViewBase, WEEK_LENGTH, Week, WorkWeek, Year, actionBegin, actionComplete, actionFailure, addDays, addMonths, addYears, capitalizeFirstWord, cellClick, cellDoubleClick, cellMouseDown, cellSelect, contentReady, dataBinding, dataBound, dataReady, documentClick, drag, dragStart, dragStop, eventClick, eventDoubleClick, eventRendered, eventsLoaded, extractObjectFromRule, findIndexInData, firstDateOfMonth, generate, generateSummary, getCalendarUtil, getDateCount, getDateFromRecurrenceDateString, getDateFromString, getDateInMs, getDaysCount, getElementHeight, getElementHeightFromClass, getElementTop, getElementWidth, getElementWidthFromClass, getMaxDays, getOuterHeight, getRecurrenceStringFromDate, getScrollBarWidth, getStartEndHours, getTranslateX, getTranslateY, getUniversalTime, getWeekFirstDate, getWeekLastDate, getWeekMiddleDate, getWeekNumber, hover, initialEnd, initialLoad, inlineClick, isDaylightSavingTime, isIPadDevice, isMobile, lastDateOfMonth, moreEventsClick, navigating, popupClose, popupOpen, print, removeChildren, renderCell, resetScrollbarWidth, resetTime, resizeStart, resizeStop, resizing, scroll, scrollUiUpdate, select, setTime, timezoneData, uiUpdate, virtualScroll, virtualScrollStart, virtualScrollStop };
27841
27840
  //# sourceMappingURL=ej2-schedule.es2015.js.map