@syncfusion/ej2-schedule 25.2.7 → 26.1.38

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 (174) 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 +436 -376
  6. package/dist/es6/ej2-schedule.es2015.js.map +1 -1
  7. package/dist/es6/ej2-schedule.es5.js +496 -450
  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/crud.js +3 -1
  17. package/src/schedule/actions/drag.js +2 -1
  18. package/src/schedule/actions/keyboard.js +1 -1
  19. package/src/schedule/actions/resize.js +5 -0
  20. package/src/schedule/actions/virtual-scroll.js +2 -1
  21. package/src/schedule/base/interface.js +0 -1
  22. package/src/schedule/base/schedule-model.d.ts +11 -11
  23. package/src/schedule/base/schedule.d.ts +11 -11
  24. package/src/schedule/base/schedule.js +28 -12
  25. package/src/schedule/base/util.js +1 -1
  26. package/src/schedule/event-renderer/agenda-base.js +2 -2
  27. package/src/schedule/event-renderer/event-base.js +6 -4
  28. package/src/schedule/event-renderer/month.js +2 -1
  29. package/src/schedule/event-renderer/timeline-view.js +10 -3
  30. package/src/schedule/event-renderer/vertical-view.js +4 -4
  31. package/src/schedule/event-renderer/year.js +3 -2
  32. package/src/schedule/exports/calendar-import.js +1 -2
  33. package/src/schedule/exports/print.js +10 -7
  34. package/src/schedule/models/toolbar-model.d.ts +2 -2
  35. package/src/schedule/popups/event-window.js +1 -1
  36. package/src/schedule/popups/quick-popups.js +1 -1
  37. package/src/schedule/renderer/header-renderer.js +7 -5
  38. package/src/schedule/renderer/month.js +5 -4
  39. package/src/schedule/renderer/renderer.js +8 -2
  40. package/src/schedule/renderer/timeline-year.js +3 -3
  41. package/src/schedule/renderer/vertical-view.d.ts +1 -0
  42. package/src/schedule/renderer/vertical-view.js +24 -9
  43. package/src/schedule/renderer/view-base.d.ts +1 -0
  44. package/src/schedule/renderer/view-base.js +33 -6
  45. package/src/schedule/renderer/year.js +1 -1
  46. package/styles/bootstrap-dark.css +236 -147
  47. package/styles/bootstrap-dark.scss +19 -2
  48. package/styles/bootstrap.css +237 -148
  49. package/styles/bootstrap.scss +19 -2
  50. package/styles/bootstrap4.css +239 -153
  51. package/styles/bootstrap4.scss +19 -2
  52. package/styles/bootstrap5-dark.css +229 -144
  53. package/styles/bootstrap5-dark.scss +19 -2
  54. package/styles/bootstrap5.css +229 -144
  55. package/styles/bootstrap5.scss +19 -2
  56. package/styles/fabric-dark.css +234 -146
  57. package/styles/fabric-dark.scss +19 -2
  58. package/styles/fabric.css +234 -146
  59. package/styles/fabric.scss +19 -2
  60. package/styles/fluent-dark.css +229 -142
  61. package/styles/fluent-dark.scss +19 -2
  62. package/styles/fluent.css +229 -142
  63. package/styles/fluent.scss +19 -2
  64. package/styles/fluent2.css +5947 -0
  65. package/styles/fluent2.scss +19 -0
  66. package/styles/highcontrast-light.css +229 -138
  67. package/styles/highcontrast-light.scss +19 -2
  68. package/styles/highcontrast.css +229 -138
  69. package/styles/highcontrast.scss +19 -2
  70. package/styles/material-dark.css +273 -155
  71. package/styles/material-dark.scss +19 -2
  72. package/styles/material.css +285 -156
  73. package/styles/material.scss +19 -2
  74. package/styles/material3-dark.css +278 -154
  75. package/styles/material3-dark.scss +19 -2
  76. package/styles/material3.css +278 -154
  77. package/styles/material3.scss +19 -2
  78. package/styles/recurrence-editor/_bds-definition.scss +0 -1
  79. package/styles/recurrence-editor/_bootstrap-dark-definition.scss +0 -1
  80. package/styles/recurrence-editor/_bootstrap-definition.scss +0 -1
  81. package/styles/recurrence-editor/_bootstrap4-definition.scss +0 -1
  82. package/styles/recurrence-editor/_bootstrap5-definition.scss +0 -1
  83. package/styles/recurrence-editor/_bootstrap5.3-definition.scss +14 -0
  84. package/styles/recurrence-editor/_fabric-dark-definition.scss +0 -1
  85. package/styles/recurrence-editor/_fabric-definition.scss +0 -1
  86. package/styles/recurrence-editor/_fluent-definition.scss +0 -1
  87. package/styles/recurrence-editor/_fluent2-definition.scss +14 -0
  88. package/styles/recurrence-editor/_fusionnew-definition.scss +0 -1
  89. package/styles/recurrence-editor/_highcontrast-definition.scss +0 -1
  90. package/styles/recurrence-editor/_highcontrast-light-definition.scss +0 -1
  91. package/styles/recurrence-editor/_layout.scss +1 -17
  92. package/styles/recurrence-editor/_material-dark-definition.scss +0 -1
  93. package/styles/recurrence-editor/_material-definition.scss +0 -1
  94. package/styles/recurrence-editor/_material3-definition.scss +0 -1
  95. package/styles/recurrence-editor/_tailwind-definition.scss +0 -1
  96. package/styles/recurrence-editor/bootstrap-dark.css +21 -23
  97. package/styles/recurrence-editor/bootstrap.css +21 -23
  98. package/styles/recurrence-editor/bootstrap4.css +22 -23
  99. package/styles/recurrence-editor/bootstrap5-dark.css +22 -23
  100. package/styles/recurrence-editor/bootstrap5.css +22 -23
  101. package/styles/recurrence-editor/fabric-dark.css +19 -22
  102. package/styles/recurrence-editor/fabric.css +19 -22
  103. package/styles/recurrence-editor/fluent-dark.css +22 -23
  104. package/styles/recurrence-editor/fluent.css +22 -23
  105. package/styles/recurrence-editor/fluent2.css +1534 -0
  106. package/styles/recurrence-editor/fluent2.scss +8 -0
  107. package/styles/recurrence-editor/highcontrast-light.css +19 -22
  108. package/styles/recurrence-editor/highcontrast.css +19 -22
  109. package/styles/recurrence-editor/material-dark.css +32 -26
  110. package/styles/recurrence-editor/material.css +32 -26
  111. package/styles/recurrence-editor/material3-dark.css +33 -27
  112. package/styles/recurrence-editor/material3.css +33 -27
  113. package/styles/recurrence-editor/tailwind-dark.css +32 -26
  114. package/styles/recurrence-editor/tailwind.css +32 -26
  115. package/styles/schedule/_bds-definition.scss +0 -15
  116. package/styles/schedule/_bootstrap-dark-definition.scss +4 -19
  117. package/styles/schedule/_bootstrap-definition.scss +4 -19
  118. package/styles/schedule/_bootstrap4-definition.scss +3 -18
  119. package/styles/schedule/_bootstrap5-definition.scss +1 -22
  120. package/styles/schedule/_bootstrap5.3-definition.scss +273 -0
  121. package/styles/schedule/_fabric-dark-definition.scss +4 -17
  122. package/styles/schedule/_fabric-definition.scss +4 -19
  123. package/styles/schedule/_fluent-definition.scss +0 -14
  124. package/styles/schedule/_fluent2-definition.scss +273 -0
  125. package/styles/schedule/_fusionnew-definition.scss +0 -21
  126. package/styles/schedule/_highcontrast-definition.scss +1 -16
  127. package/styles/schedule/_highcontrast-light-definition.scss +1 -16
  128. package/styles/schedule/_layout.scss +83 -130
  129. package/styles/schedule/_material-dark-definition.scss +5 -20
  130. package/styles/schedule/_material-definition.scss +4 -19
  131. package/styles/schedule/_material3-definition.scss +1 -23
  132. package/styles/schedule/_tailwind-definition.scss +0 -16
  133. package/styles/schedule/_theme.scss +18 -2
  134. package/styles/schedule/bootstrap-dark.css +220 -126
  135. package/styles/schedule/bootstrap.css +221 -127
  136. package/styles/schedule/bootstrap4.css +223 -132
  137. package/styles/schedule/bootstrap5-dark.css +213 -123
  138. package/styles/schedule/bootstrap5.css +213 -123
  139. package/styles/schedule/fabric-dark.css +218 -125
  140. package/styles/schedule/fabric.css +218 -125
  141. package/styles/schedule/fluent-dark.css +213 -121
  142. package/styles/schedule/fluent.css +213 -121
  143. package/styles/schedule/fluent2.css +5551 -0
  144. package/styles/schedule/fluent2.scss +16 -0
  145. package/styles/schedule/highcontrast-light.css +213 -117
  146. package/styles/schedule/highcontrast.css +213 -117
  147. package/styles/schedule/icons/_bds.scss +6 -21
  148. package/styles/schedule/icons/_bootstrap-dark.scss +4 -16
  149. package/styles/schedule/icons/_bootstrap.scss +4 -16
  150. package/styles/schedule/icons/_bootstrap4.scss +8 -26
  151. package/styles/schedule/icons/_bootstrap5.3.scss +220 -0
  152. package/styles/schedule/icons/_bootstrap5.scss +7 -22
  153. package/styles/schedule/icons/_fabric-dark.scss +5 -17
  154. package/styles/schedule/icons/_fabric.scss +5 -17
  155. package/styles/schedule/icons/_fluent.scss +7 -22
  156. package/styles/schedule/icons/_fluent2.scss +220 -0
  157. package/styles/schedule/icons/_fusionnew.scss +7 -22
  158. package/styles/schedule/icons/_highcontrast-light.scss +5 -17
  159. package/styles/schedule/icons/_highcontrast.scss +5 -17
  160. package/styles/schedule/icons/_material-dark.scss +5 -17
  161. package/styles/schedule/icons/_material.scss +5 -17
  162. package/styles/schedule/icons/_material3.scss +7 -22
  163. package/styles/schedule/icons/_tailwind.scss +7 -22
  164. package/styles/schedule/material-dark.css +257 -134
  165. package/styles/schedule/material.css +269 -135
  166. package/styles/schedule/material3-dark.css +262 -133
  167. package/styles/schedule/material3.css +262 -133
  168. package/styles/schedule/tailwind-dark.css +223 -124
  169. package/styles/schedule/tailwind.css +223 -124
  170. package/styles/tailwind-dark.css +239 -145
  171. package/styles/tailwind-dark.scss +19 -2
  172. package/styles/tailwind.css +239 -145
  173. package/styles/tailwind.scss +19 -2
  174. 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, L10n, classList, detach, Property, Event, NotifyPropertyChanges, Component, 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 @@ var initialLoad = 'initial-load';
74
74
  /** @private */
75
75
  var initialEnd = 'initial-end';
76
76
  /** @private */
77
- var print$1 = 'print';
77
+ var print = 'print';
78
78
  /** @private */
79
79
  var dataReady = 'data-ready';
80
80
  /** @private */
@@ -168,7 +168,7 @@ function getTranslateX(element) {
168
168
  function getWeekFirstDate(date, firstDayOfWeek) {
169
169
  var 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
@@ -667,8 +667,6 @@ var PREVIOUS_TIMELINE_CLASS = 'e-previous-timeline';
667
667
  var HIDE_CHILDS_CLASS = 'e-hide-childs';
668
668
  /** @private */
669
669
  var SCROLL_CONTAINER_CLASS = 'e-scroll-container';
670
- /** @private */
671
-
672
670
  /** @private */
673
671
  var TIMELINE_WRAPPER_CLASS = 'e-timeline-wrapper';
674
672
  /** @private */
@@ -1029,7 +1027,6 @@ var __assign = (undefined && undefined.__assign) || function () {
1029
1027
  };
1030
1028
  return __assign.apply(this, arguments);
1031
1029
  };
1032
- /* eslint-disable @typescript-eslint/no-explicit-any */
1033
1030
  /**
1034
1031
  * Header module
1035
1032
  */
@@ -1087,7 +1084,8 @@ var HeaderRenderer = /** @__PURE__ @class */ (function () {
1087
1084
  };
1088
1085
  HeaderRenderer.prototype.renderToolbar = function () {
1089
1086
  var _this = this;
1090
- var items = (this.parent.toolbarItems && this.parent.toolbarItems.length > 0) ? this.getToolbarItems() : this.getItems();
1087
+ var items = (this.parent.toolbarItems && this.parent.toolbarItems.length > 0) ?
1088
+ this.getToolbarItems() : this.getItems();
1091
1089
  this.parent.trigger(actionBegin, { requestType: 'toolbarItemRendering', items: items }, function (args) {
1092
1090
  _this.toolbarObj = new Toolbar({
1093
1091
  items: args.items,
@@ -1180,6 +1178,7 @@ var HeaderRenderer = /** @__PURE__ @class */ (function () {
1180
1178
  if (!selEle) {
1181
1179
  return;
1182
1180
  }
1181
+ selEle.firstElementChild.setAttribute('aria-haspopup', 'true');
1183
1182
  var textEle = selEle.querySelector('.e-tbar-btn-text');
1184
1183
  if (this.parent.activeViewOptions.dateRangeTemplate) {
1185
1184
  textEle.textContent = '';
@@ -1189,7 +1188,7 @@ var HeaderRenderer = /** @__PURE__ @class */ (function () {
1189
1188
  };
1190
1189
  var viewName = this.parent.activeViewOptions.dateRangeTemplateName;
1191
1190
  var templateId = this.parent.element.id + '_' + viewName + 'dateRangeTemplate';
1192
- var dateTemplate = [].slice.call(this.parent.getDateRangeTemplate()(args, this.parent, 'dateRangeTemplate', templateId, false));
1191
+ var dateTemplate = [].slice.call(this.parent.getDateRangeTemplate()(args, this.parent, 'dateRangeTemplate', templateId, false, undefined, undefined, this.parent.root));
1193
1192
  append(dateTemplate, textEle);
1194
1193
  }
1195
1194
  else {
@@ -1327,7 +1326,7 @@ var HeaderRenderer = /** @__PURE__ @class */ (function () {
1327
1326
  items.push(__assign({}, tbItem, propItem));
1328
1327
  break;
1329
1328
  case 'Views':
1330
- if (this.parent.views.length > 1) {
1329
+ if (!isNullOrUndefined(this.parent.views) && this.parent.views.length > 1) {
1331
1330
  for (var _b = 0, _c = this.parent.views; _b < _c.length; _b++) {
1332
1331
  var view = _c[_b];
1333
1332
  tbItem = this.getItemObject(view);
@@ -1377,11 +1376,11 @@ var HeaderRenderer = /** @__PURE__ @class */ (function () {
1377
1376
  align: 'Right', showAlwaysInPopup: (this.parent.isAdaptive || this.parent.enableAdaptiveUI), prefixIcon: 'e-icon-today',
1378
1377
  text: this.l10n.getConstant('today'), cssClass: 'e-today', overflow: 'Show'
1379
1378
  });
1380
- if (this.parent.views.length > 1) {
1379
+ if (!isNullOrUndefined(this.parent.views) && this.parent.views.length > 1) {
1381
1380
  items.push({ align: 'Right', type: 'Separator', cssClass: 'e-schedule-seperator' });
1382
1381
  }
1383
1382
  }
1384
- if (this.parent.views.length > 1) {
1383
+ if (!isNullOrUndefined(this.parent.views) && this.parent.views.length > 1) {
1385
1384
  for (var _i = 0, _a = this.parent.views; _i < _a.length; _i++) {
1386
1385
  var item = _a[_i];
1387
1386
  items.push(this.getItemObject(item));
@@ -2607,7 +2606,7 @@ var KeyboardInteraction = /** @__PURE__ @class */ (function () {
2607
2606
  };
2608
2607
  KeyboardInteraction.prototype.processViewNavigation = function (e) {
2609
2608
  var index = parseInt(e.key, 10) - 1;
2610
- if (index < this.parent.views.length) {
2609
+ if (!isNullOrUndefined(this.parent.views) && index < this.parent.views.length) {
2611
2610
  var view = this.parent.viewCollections[parseInt(index.toString(), 10)].option;
2612
2611
  this.parent.changeView(view, e, undefined, index);
2613
2612
  if (this.parent.headerModule) {
@@ -4002,6 +4001,7 @@ function generate(startDate, rule, excludeDate, startDayOfWeek, maximumCount, vi
4002
4001
  return data;
4003
4002
  }
4004
4003
  maxOccurrence = maximumCount;
4004
+ startDayOfWeek = startDayOfWeek || 0;
4005
4005
  setFirstDayOfWeek(DAYINDEX[parseInt(startDayOfWeek.toString(), 10)]);
4006
4006
  if (ruleObject.until) {
4007
4007
  var end = resetTime(ruleObject.until);
@@ -5493,7 +5493,6 @@ function roundDateValues(date) {
5493
5493
  }
5494
5494
 
5495
5495
  /* eslint-disable @typescript-eslint/no-explicit-any */
5496
- /* eslint-disable max-len */
5497
5496
  /**
5498
5497
  * EventBase for appointment rendering
5499
5498
  */
@@ -6618,7 +6617,7 @@ var EventBase = /** @__PURE__ @class */ (function () {
6618
6617
  var templateId = scheduleId + viewName + 'eventTemplate';
6619
6618
  var templateName = isResourceEventTemplate && this.parent.currentView.indexOf('Year') === -1 ?
6620
6619
  this.parent.getEventTemplateName(resIndex) : 'eventTemplate';
6621
- templateElement = this.parent.getAppointmentTemplate()(record, this.parent, templateName, templateId, false);
6620
+ templateElement = this.parent.getAppointmentTemplate()(record, this.parent, templateName, templateId, false, undefined, undefined, this.parent.root);
6622
6621
  }
6623
6622
  else {
6624
6623
  var appointmentSubject = createElement('div', { className: SUBJECT_CLASS });
@@ -6717,12 +6716,14 @@ var EventBase = /** @__PURE__ @class */ (function () {
6717
6716
  var firstDate = 0;
6718
6717
  var lastDate = dateRender.length;
6719
6718
  var filteredDates;
6720
- if (dateRender[0] < this.parent.minDate && dateRender[dateRender.length - 1] > this.parent.maxDate) {
6719
+ var maxDate = isNullOrUndefined(this.parent.maxDate) ? new Date(2099, 11, 31) : this.parent.maxDate;
6720
+ var minDate = isNullOrUndefined(this.parent.minDate) ? new Date(1900, 0, 1) : this.parent.minDate;
6721
+ if (dateRender[0] < minDate && dateRender[dateRender.length - 1] > maxDate) {
6721
6722
  for (var i = 0; i < dateRender.length; i++) {
6722
- if (resetTime(dateRender[parseInt(i.toString(), 10)]).getTime() === resetTime(new Date(this.parent.minDate)).getTime()) {
6723
+ if (resetTime(dateRender[parseInt(i.toString(), 10)]).getTime() === resetTime(new Date(minDate)).getTime()) {
6723
6724
  firstDate = i;
6724
6725
  }
6725
- if (resetTime(dateRender[parseInt(i.toString(), 10)]).getTime() === resetTime(new Date(this.parent.maxDate)).getTime()) {
6726
+ if (resetTime(dateRender[parseInt(i.toString(), 10)]).getTime() === resetTime(new Date(maxDate)).getTime()) {
6726
6727
  lastDate = i;
6727
6728
  }
6728
6729
  }
@@ -6865,7 +6866,7 @@ var EventBase = /** @__PURE__ @class */ (function () {
6865
6866
  return EventBase;
6866
6867
  }());
6867
6868
 
6868
- var __extends$1 = (undefined && undefined.__extends) || (function () {
6869
+ var __extends = (undefined && undefined.__extends) || (function () {
6869
6870
  var extendStatics = function (d, b) {
6870
6871
  extendStatics = Object.setPrototypeOf ||
6871
6872
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -6878,12 +6879,11 @@ var __extends$1 = (undefined && undefined.__extends) || (function () {
6878
6879
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
6879
6880
  };
6880
6881
  })();
6881
- /* eslint-disable @typescript-eslint/no-explicit-any */
6882
6882
  /**
6883
6883
  * Vertical view appointment rendering
6884
6884
  */
6885
6885
  var VerticalEvent = /** @__PURE__ @class */ (function (_super) {
6886
- __extends$1(VerticalEvent, _super);
6886
+ __extends(VerticalEvent, _super);
6887
6887
  function VerticalEvent(parent) {
6888
6888
  var _this = _super.call(this, parent) || this;
6889
6889
  _this.dateRender = [];
@@ -7221,7 +7221,7 @@ var VerticalEvent = /** @__PURE__ @class */ (function (_super) {
7221
7221
  var templateId = elementId + viewName + 'eventTemplate';
7222
7222
  var resIndex = this.parent.uiStateValues.isGroupAdaptive ? this.parent.uiStateValues.groupIndex : resource;
7223
7223
  var templateName = this.isResourceEventTemplate ? this.parent.getEventTemplateName(resIndex) : 'eventTemplate';
7224
- templateElement = this.parent.getAppointmentTemplate()(record, this.parent, templateName, templateId, false);
7224
+ templateElement = this.parent.getAppointmentTemplate()(record, this.parent, templateName, templateId, false, undefined, undefined, this.parent.root);
7225
7225
  }
7226
7226
  else {
7227
7227
  var appointmentSubject = createElement('div', { className: SUBJECT_CLASS });
@@ -7436,7 +7436,7 @@ var VerticalEvent = /** @__PURE__ @class */ (function (_super) {
7436
7436
  }
7437
7437
  if (eStart <= eEnd && isValidEvent && this.isWorkDayAvailable(resource, eStart)) {
7438
7438
  var appHeight = this.getHeight(eStart, eEnd);
7439
- if (eStart.getTime() > schedule.startHour.getTime()) {
7439
+ if (eStart.getTime() >= schedule.startHour.getTime()) {
7440
7440
  topValue = this.getTopValue(eStart, dayIndex, resource);
7441
7441
  }
7442
7442
  var appIndex = this.getOverlapIndex(record, dayIndex, false, resource);
@@ -7703,12 +7703,12 @@ var VerticalEvent = /** @__PURE__ @class */ (function (_super) {
7703
7703
  var rowHeight;
7704
7704
  if (this.parent.uiStateValues.expand) {
7705
7705
  target.setAttribute('title', this.parent.localeObj.getConstant('collapseAllDaySection'));
7706
- target.setAttribute('aria-label', 'Collapse section');
7706
+ target.setAttribute('aria-label', this.parent.localeObj.getConstant('collapseAllDaySection'));
7707
7707
  rowHeight = ((this.allDayLevel + 1) * this.getEventHeight()) + 4;
7708
7708
  }
7709
7709
  else {
7710
7710
  target.setAttribute('title', this.parent.localeObj.getConstant('expandAllDaySection'));
7711
- target.setAttribute('aria-label', 'Expand section');
7711
+ target.setAttribute('aria-label', this.parent.localeObj.getConstant('expandAllDaySection'));
7712
7712
  rowHeight = (3 * this.getEventHeight()) + 4;
7713
7713
  this.parent.element.querySelector('.' + DATE_HEADER_WRAP_CLASS).scrollTop = 0;
7714
7714
  }
@@ -7740,7 +7740,7 @@ var VerticalEvent = /** @__PURE__ @class */ (function (_super) {
7740
7740
  return VerticalEvent;
7741
7741
  }(EventBase));
7742
7742
 
7743
- var __extends$2 = (undefined && undefined.__extends) || (function () {
7743
+ var __extends$1 = (undefined && undefined.__extends) || (function () {
7744
7744
  var extendStatics = function (d, b) {
7745
7745
  extendStatics = Object.setPrototypeOf ||
7746
7746
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -7753,13 +7753,12 @@ var __extends$2 = (undefined && undefined.__extends) || (function () {
7753
7753
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
7754
7754
  };
7755
7755
  })();
7756
- /* eslint-disable @typescript-eslint/no-explicit-any */
7757
7756
  var EVENT_GAP = 0;
7758
7757
  /**
7759
7758
  * Month view events render
7760
7759
  */
7761
7760
  var MonthEvent = /** @__PURE__ @class */ (function (_super) {
7762
- __extends$2(MonthEvent, _super);
7761
+ __extends$1(MonthEvent, _super);
7763
7762
  function MonthEvent(parent) {
7764
7763
  var _this = _super.call(this, parent) || this;
7765
7764
  _this.renderedEvents = [];
@@ -8142,7 +8141,7 @@ var MonthEvent = /** @__PURE__ @class */ (function (_super) {
8142
8141
  var viewName = this.parent.activeViewOptions.eventTemplateName;
8143
8142
  var templateId = scheduleId + viewName + 'eventTemplate';
8144
8143
  var eventTemplate = this.isResourceEventTemplate ? this.parent.getEventTemplateName(resIndex) : 'eventTemplate';
8145
- templateElement = this.parent.getAppointmentTemplate()(eventObj, this.parent, eventTemplate, templateId, false);
8144
+ templateElement = this.parent.getAppointmentTemplate()(eventObj, this.parent, eventTemplate, templateId, false, undefined, undefined, this.parent.root);
8146
8145
  }
8147
8146
  else {
8148
8147
  var eventLocation = (record[this.fields.location] || this.parent.eventSettings.fields.location.default || '');
@@ -8271,6 +8270,7 @@ var MonthEvent = /** @__PURE__ @class */ (function (_super) {
8271
8270
  if (indicator) {
8272
8271
  var count = parseInt(indicator.getAttribute('data-count'), 10) + 1;
8273
8272
  indicator.setAttribute('data-count', count.toString());
8273
+ indicator.setAttribute('aria-label', count + ' ' + this.parent.localeObj.getConstant('moreEvents'));
8274
8274
  indicator.innerHTML = this.getMoreIndicatorText(count);
8275
8275
  }
8276
8276
  else {
@@ -8448,7 +8448,7 @@ var MonthEvent = /** @__PURE__ @class */ (function (_super) {
8448
8448
  return MonthEvent;
8449
8449
  }(EventBase));
8450
8450
 
8451
- var __extends$3 = (undefined && undefined.__extends) || (function () {
8451
+ var __extends$2 = (undefined && undefined.__extends) || (function () {
8452
8452
  var extendStatics = function (d, b) {
8453
8453
  extendStatics = Object.setPrototypeOf ||
8454
8454
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -8461,8 +8461,6 @@ var __extends$3 = (undefined && undefined.__extends) || (function () {
8461
8461
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
8462
8462
  };
8463
8463
  })();
8464
- /* eslint-disable max-len */
8465
- /* eslint-disable @typescript-eslint/no-explicit-any */
8466
8464
  var EVENT_GAP$1 = 2;
8467
8465
  var BLOCK_INDICATOR_WIDTH = 22;
8468
8466
  var BLOCK_INDICATOR_HEIGHT = 18;
@@ -8470,7 +8468,7 @@ var BLOCK_INDICATOR_HEIGHT = 18;
8470
8468
  * Timeline view events render
8471
8469
  */
8472
8470
  var TimelineEvent = /** @__PURE__ @class */ (function (_super) {
8473
- __extends$3(TimelineEvent, _super);
8471
+ __extends$2(TimelineEvent, _super);
8474
8472
  function TimelineEvent(parent, type) {
8475
8473
  var _this = _super.call(this, parent) || this;
8476
8474
  _this.startHour = _this.parent.activeView.getStartHour();
@@ -8516,8 +8514,10 @@ var TimelineEvent = /** @__PURE__ @class */ (function (_super) {
8516
8514
  for (var _a = 0, appointments_2 = appointments; _a < appointments_2.length; _a++) {
8517
8515
  var app = appointments_2[_a];
8518
8516
  var eventData = app.data;
8519
- if (eventData.trimStartTime.getTime() <= date.getTime() &&
8520
- eventData.trimEndTime.getTime() > date.getTime()) {
8517
+ if ((eventData.trimStartTime.getTime() <= date.getTime() &&
8518
+ eventData.trimEndTime.getTime() > date.getTime()) ||
8519
+ (eventData.trimStartTime.getTime() === date.getTime() &&
8520
+ eventData.trimEndTime.getTime() === date.getTime())) {
8521
8521
  appointmentsList.push(app);
8522
8522
  }
8523
8523
  }
@@ -8906,8 +8906,13 @@ var TimelineEvent = /** @__PURE__ @class */ (function (_super) {
8906
8906
  }
8907
8907
  };
8908
8908
  TimelineEvent.prototype.getSameDayEventsWidth = function (startDate, endDate) {
8909
+ var intervalMins = this.interval;
8910
+ if (this.slotsPerDay === 1) {
8911
+ var hoursRange = getStartEndHours(resetTime(new Date(startDate.getTime())), this.startHour, this.endHour);
8912
+ intervalMins = (hoursRange.endHour.getTime() - hoursRange.startHour.getTime()) / MS_PER_MINUTE;
8913
+ }
8909
8914
  return ((getUniversalTime(endDate) - getUniversalTime(startDate)) /
8910
- MS_PER_MINUTE * (this.cellWidth * this.slotCount) / this.interval);
8915
+ MS_PER_MINUTE * (this.cellWidth * this.slotCount) / intervalMins);
8911
8916
  };
8912
8917
  TimelineEvent.prototype.getSpannedEventsWidth = function (startDate, endDate, diffInDays) {
8913
8918
  var width = (diffInDays * this.slotsPerDay) * this.cellWidth;
@@ -9529,14 +9534,14 @@ var QuickPopups = /** @__PURE__ @class */ (function () {
9529
9534
  removeClass([element], ICON);
9530
9535
  };
9531
9536
  QuickPopups.prototype.quickDialogClass = function (action) {
9532
- var classList$$1 = [
9537
+ var classList = [
9533
9538
  QUICK_DIALOG_OCCURRENCE_CLASS, QUICK_DIALOG_SERIES_CLASS, QUICK_DIALOG_DELETE_CLASS,
9534
9539
  QUICK_DIALOG_CANCEL_CLASS, QUICK_DIALOG_ALERT_BTN_CLASS, DISABLE_CLASS
9535
9540
  ];
9536
9541
  var okButton = this.quickDialog.element.querySelector('.' + QUICK_DIALOG_ALERT_OK);
9537
9542
  var cancelButton = this.quickDialog.element.querySelector('.' + QUICK_DIALOG_ALERT_CANCEL);
9538
9543
  var followingEventButton = this.quickDialog.element.querySelector('.' + QUICK_DIALOG_ALERT_FOLLOWING);
9539
- removeClass([okButton, cancelButton], classList$$1);
9544
+ removeClass([okButton, cancelButton], classList);
9540
9545
  addClass([this.quickDialog.element.querySelector('.' + QUICK_DIALOG_CANCEL_CLASS)], DISABLE_CLASS);
9541
9546
  if (this.parent.eventSettings.editFollowingEvents) {
9542
9547
  addClass([followingEventButton], DISABLE_CLASS);
@@ -9709,7 +9714,7 @@ var QuickPopups = /** @__PURE__ @class */ (function () {
9709
9714
  var templateElement = void 0;
9710
9715
  if (!isNullOrUndefined(this_1.parent.activeViewOptions.eventTemplate)) {
9711
9716
  var tempId = this_1.parent.element.id + '_' + this_1.parent.activeViewOptions.eventTemplateName + 'eventTemplate';
9712
- templateElement = this_1.parent.getAppointmentTemplate()(eventData, this_1.parent, 'eventTemplate', tempId, false);
9717
+ templateElement = this_1.parent.getAppointmentTemplate()(eventData, this_1.parent, 'eventTemplate', tempId, false, undefined, undefined, this_1.parent.root);
9713
9718
  append(templateElement, appointmentElement);
9714
9719
  }
9715
9720
  else {
@@ -10955,7 +10960,7 @@ var EventTooltip = /** @__PURE__ @class */ (function () {
10955
10960
  return EventTooltip;
10956
10961
  }());
10957
10962
 
10958
- var __extends$4 = (undefined && undefined.__extends) || (function () {
10963
+ var __extends$3 = (undefined && undefined.__extends) || (function () {
10959
10964
  var extendStatics = function (d, b) {
10960
10965
  extendStatics = Object.setPrototypeOf ||
10961
10966
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -10968,7 +10973,7 @@ var __extends$4 = (undefined && undefined.__extends) || (function () {
10968
10973
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
10969
10974
  };
10970
10975
  })();
10971
- var __decorate$1 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
10976
+ var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
10972
10977
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
10973
10978
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
10974
10979
  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;
@@ -11099,7 +11104,7 @@ var endOnDateClassList = [ENDONCOUNTWRAPPER];
11099
11104
  * ```
11100
11105
  */
11101
11106
  var RecurrenceEditor = /** @__PURE__ @class */ (function (_super) {
11102
- __extends$4(RecurrenceEditor, _super);
11107
+ __extends$3(RecurrenceEditor, _super);
11103
11108
  /**
11104
11109
  * Constructor for creating the widget
11105
11110
  *
@@ -11880,7 +11885,7 @@ var RecurrenceEditor = /** @__PURE__ @class */ (function (_super) {
11880
11885
  }
11881
11886
  };
11882
11887
  RecurrenceEditor.prototype.getCalendarMode = function () {
11883
- return this.calendarMode.toLowerCase();
11888
+ return !isNullOrUndefined(this.calendarMode) ? this.calendarMode.toLowerCase() : 'gregorian';
11884
11889
  };
11885
11890
  RecurrenceEditor.prototype.getRuleSummary = function (rule) {
11886
11891
  if (rule === void 0) { rule = this.getRecurrenceRule(); }
@@ -12063,43 +12068,43 @@ var RecurrenceEditor = /** @__PURE__ @class */ (function (_super) {
12063
12068
  }
12064
12069
  }
12065
12070
  };
12066
- __decorate$1([
12071
+ __decorate([
12067
12072
  Property(['none', 'daily', 'weekly', 'monthly', 'yearly'])
12068
12073
  ], RecurrenceEditor.prototype, "frequencies", void 0);
12069
- __decorate$1([
12074
+ __decorate([
12070
12075
  Property(['never', 'until', 'count'])
12071
12076
  ], RecurrenceEditor.prototype, "endTypes", void 0);
12072
- __decorate$1([
12077
+ __decorate([
12073
12078
  Property(0)
12074
12079
  ], RecurrenceEditor.prototype, "firstDayOfWeek", void 0);
12075
- __decorate$1([
12080
+ __decorate([
12076
12081
  Property(new Date())
12077
12082
  ], RecurrenceEditor.prototype, "startDate", void 0);
12078
- __decorate$1([
12083
+ __decorate([
12079
12084
  Property()
12080
12085
  ], RecurrenceEditor.prototype, "dateFormat", void 0);
12081
- __decorate$1([
12086
+ __decorate([
12082
12087
  Property('Gregorian')
12083
12088
  ], RecurrenceEditor.prototype, "calendarMode", void 0);
12084
- __decorate$1([
12089
+ __decorate([
12085
12090
  Property()
12086
12091
  ], RecurrenceEditor.prototype, "cssClass", void 0);
12087
- __decorate$1([
12092
+ __decorate([
12088
12093
  Property()
12089
12094
  ], RecurrenceEditor.prototype, "value", void 0);
12090
- __decorate$1([
12095
+ __decorate([
12091
12096
  Property(new Date(1900, 0, 1))
12092
12097
  ], RecurrenceEditor.prototype, "minDate", void 0);
12093
- __decorate$1([
12098
+ __decorate([
12094
12099
  Property(new Date(2099, 11, 31))
12095
12100
  ], RecurrenceEditor.prototype, "maxDate", void 0);
12096
- __decorate$1([
12101
+ __decorate([
12097
12102
  Property(0)
12098
12103
  ], RecurrenceEditor.prototype, "selectedType", void 0);
12099
- __decorate$1([
12104
+ __decorate([
12100
12105
  Event()
12101
12106
  ], RecurrenceEditor.prototype, "change", void 0);
12102
- RecurrenceEditor = __decorate$1([
12107
+ RecurrenceEditor = __decorate([
12103
12108
  NotifyPropertyChanges
12104
12109
  ], RecurrenceEditor);
12105
12110
  return RecurrenceEditor;
@@ -13201,7 +13206,7 @@ var EventWindow = /** @__PURE__ @class */ (function () {
13201
13206
  };
13202
13207
  EventWindow.prototype.getFormat = function (formatType) {
13203
13208
  var format;
13204
- if (this.parent.locale === 'en' || this.parent.locale === 'en-US') {
13209
+ if (isNullOrUndefined(this.parent.locale) || this.parent.locale === 'en' || this.parent.locale === 'en-US') {
13205
13210
  format = getValue(formatType + '.short', getDefaultDateObject(this.parent.getCalendarMode()));
13206
13211
  }
13207
13212
  else {
@@ -14140,7 +14145,7 @@ var VirtualScroll = /** @__PURE__ @class */ (function () {
14140
14145
  conTable.offsetHeight / this.renderedLength) + 'px';
14141
14146
  var conWrap = this.parent.element.querySelector('.' + CONTENT_WRAP_CLASS);
14142
14147
  if ((conWrap.scrollHeight - conWrap.scrollTop) < conWrap.offsetHeight * this.bufferCount) {
14143
- virtual.style.height = parseInt(virtual.style.height) + (conWrap.offsetHeight * this.bufferCount) + 'px';
14148
+ virtual.style.height = parseInt(virtual.style.height, 10) + (conWrap.offsetHeight * this.bufferCount) + 'px';
14144
14149
  }
14145
14150
  }
14146
14151
  else {
@@ -14190,6 +14195,7 @@ var VirtualScroll = /** @__PURE__ @class */ (function () {
14190
14195
  var endIndex = (firstTDIndex + this.renderedLength);
14191
14196
  firstTDIndex = (endIndex > this.parent.resourceBase.expandedResources.length) ?
14192
14197
  (this.parent.resourceBase.expandedResources.length - this.renderedLength) : firstTDIndex;
14198
+ firstTDIndex = firstTDIndex < 0 ? 0 : firstTDIndex;
14193
14199
  this.parent.resourceBase.renderedResources = this.parent.resourceBase.expandedResources.slice(firstTDIndex, endIndex);
14194
14200
  if (this.parent.resourceBase.renderedResources.length > 0) {
14195
14201
  this.updateContent(resWrap, conWrap, eventWrap, this.parent.resourceBase.renderedResources);
@@ -14694,14 +14700,20 @@ var Render = /** @__PURE__ @class */ (function () {
14694
14700
  }
14695
14701
  };
14696
14702
  Render.prototype.updateLabelText = function (view) {
14697
- var content = this.parent.activeView.getLabelText(view);
14698
14703
  this.parent.element.setAttribute('role', 'application');
14699
- this.parent.element.setAttribute('aria-label', content);
14704
+ this.parent.element.removeAttribute('aria-labelledby');
14705
+ this.parent.element.removeAttribute('aria-label');
14706
+ if (view === 'Year') {
14707
+ this.parent.element.setAttribute('aria-label', this.parent.activeView.getLabelText(view));
14708
+ }
14709
+ else {
14710
+ this.parent.element.setAttribute('aria-labelledby', this.parent.element.id + '_table');
14711
+ }
14700
14712
  };
14701
14713
  return Render;
14702
14714
  }());
14703
14715
 
14704
- var __extends$5 = (undefined && undefined.__extends) || (function () {
14716
+ var __extends$4 = (undefined && undefined.__extends) || (function () {
14705
14717
  var extendStatics = function (d, b) {
14706
14718
  extendStatics = Object.setPrototypeOf ||
14707
14719
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -14714,7 +14726,7 @@ var __extends$5 = (undefined && undefined.__extends) || (function () {
14714
14726
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
14715
14727
  };
14716
14728
  })();
14717
- var __decorate$2 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
14729
+ var __decorate$1 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
14718
14730
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
14719
14731
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
14720
14732
  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;
@@ -14724,23 +14736,23 @@ var __decorate$2 = (undefined && undefined.__decorate) || function (decorators,
14724
14736
  * A class that represents the configuration of working hours related options of scheduler.
14725
14737
  */
14726
14738
  var WorkHours = /** @__PURE__ @class */ (function (_super) {
14727
- __extends$5(WorkHours, _super);
14739
+ __extends$4(WorkHours, _super);
14728
14740
  function WorkHours() {
14729
14741
  return _super !== null && _super.apply(this, arguments) || this;
14730
14742
  }
14731
- __decorate$2([
14743
+ __decorate$1([
14732
14744
  Property(true)
14733
14745
  ], WorkHours.prototype, "highlight", void 0);
14734
- __decorate$2([
14746
+ __decorate$1([
14735
14747
  Property('09:00')
14736
14748
  ], WorkHours.prototype, "start", void 0);
14737
- __decorate$2([
14749
+ __decorate$1([
14738
14750
  Property('18:00')
14739
14751
  ], WorkHours.prototype, "end", void 0);
14740
14752
  return WorkHours;
14741
14753
  }(ChildProperty));
14742
14754
 
14743
- var __extends$6 = (undefined && undefined.__extends) || (function () {
14755
+ var __extends$5 = (undefined && undefined.__extends) || (function () {
14744
14756
  var extendStatics = function (d, b) {
14745
14757
  extendStatics = Object.setPrototypeOf ||
14746
14758
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -14753,7 +14765,7 @@ var __extends$6 = (undefined && undefined.__extends) || (function () {
14753
14765
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
14754
14766
  };
14755
14767
  })();
14756
- var __decorate$3 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
14768
+ var __decorate$2 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
14757
14769
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
14758
14770
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
14759
14771
  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;
@@ -14763,29 +14775,29 @@ var __decorate$3 = (undefined && undefined.__decorate) || function (decorators,
14763
14775
  * A class that represents the configuration of options related to timescale on scheduler.
14764
14776
  */
14765
14777
  var TimeScale = /** @__PURE__ @class */ (function (_super) {
14766
- __extends$6(TimeScale, _super);
14778
+ __extends$5(TimeScale, _super);
14767
14779
  function TimeScale() {
14768
14780
  return _super !== null && _super.apply(this, arguments) || this;
14769
14781
  }
14770
- __decorate$3([
14782
+ __decorate$2([
14771
14783
  Property(true)
14772
14784
  ], TimeScale.prototype, "enable", void 0);
14773
- __decorate$3([
14785
+ __decorate$2([
14774
14786
  Property(60)
14775
14787
  ], TimeScale.prototype, "interval", void 0);
14776
- __decorate$3([
14788
+ __decorate$2([
14777
14789
  Property(2)
14778
14790
  ], TimeScale.prototype, "slotCount", void 0);
14779
- __decorate$3([
14791
+ __decorate$2([
14780
14792
  Property()
14781
14793
  ], TimeScale.prototype, "minorSlotTemplate", void 0);
14782
- __decorate$3([
14794
+ __decorate$2([
14783
14795
  Property()
14784
14796
  ], TimeScale.prototype, "majorSlotTemplate", void 0);
14785
14797
  return TimeScale;
14786
14798
  }(ChildProperty));
14787
14799
 
14788
- var __extends$7 = (undefined && undefined.__extends) || (function () {
14800
+ var __extends$6 = (undefined && undefined.__extends) || (function () {
14789
14801
  var extendStatics = function (d, b) {
14790
14802
  extendStatics = Object.setPrototypeOf ||
14791
14803
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -14798,7 +14810,7 @@ var __extends$7 = (undefined && undefined.__extends) || (function () {
14798
14810
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
14799
14811
  };
14800
14812
  })();
14801
- var __decorate$4 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
14813
+ var __decorate$3 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
14802
14814
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
14803
14815
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
14804
14816
  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;
@@ -14808,26 +14820,26 @@ var __decorate$4 = (undefined && undefined.__decorate) || function (decorators,
14808
14820
  * A class that defines the template options available to customize the quick popup of scheduler.
14809
14821
  */
14810
14822
  var QuickInfoTemplates = /** @__PURE__ @class */ (function (_super) {
14811
- __extends$7(QuickInfoTemplates, _super);
14823
+ __extends$6(QuickInfoTemplates, _super);
14812
14824
  function QuickInfoTemplates() {
14813
14825
  return _super !== null && _super.apply(this, arguments) || this;
14814
14826
  }
14815
- __decorate$4([
14827
+ __decorate$3([
14816
14828
  Property('Both')
14817
14829
  ], QuickInfoTemplates.prototype, "templateType", void 0);
14818
- __decorate$4([
14830
+ __decorate$3([
14819
14831
  Property()
14820
14832
  ], QuickInfoTemplates.prototype, "header", void 0);
14821
- __decorate$4([
14833
+ __decorate$3([
14822
14834
  Property()
14823
14835
  ], QuickInfoTemplates.prototype, "content", void 0);
14824
- __decorate$4([
14836
+ __decorate$3([
14825
14837
  Property()
14826
14838
  ], QuickInfoTemplates.prototype, "footer", void 0);
14827
14839
  return QuickInfoTemplates;
14828
14840
  }(ChildProperty));
14829
14841
 
14830
- var __extends$8 = (undefined && undefined.__extends) || (function () {
14842
+ var __extends$7 = (undefined && undefined.__extends) || (function () {
14831
14843
  var extendStatics = function (d, b) {
14832
14844
  extendStatics = Object.setPrototypeOf ||
14833
14845
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -14840,7 +14852,7 @@ var __extends$8 = (undefined && undefined.__extends) || (function () {
14840
14852
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
14841
14853
  };
14842
14854
  })();
14843
- var __decorate$5 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
14855
+ var __decorate$4 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
14844
14856
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
14845
14857
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
14846
14858
  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;
@@ -14850,21 +14862,20 @@ var __decorate$5 = (undefined && undefined.__decorate) || function (decorators,
14850
14862
  * A class that represents the header rows related configurations on timeline views.
14851
14863
  */
14852
14864
  var HeaderRows = /** @__PURE__ @class */ (function (_super) {
14853
- __extends$8(HeaderRows, _super);
14865
+ __extends$7(HeaderRows, _super);
14854
14866
  function HeaderRows() {
14855
14867
  return _super !== null && _super.apply(this, arguments) || this;
14856
14868
  }
14857
- __decorate$5([
14869
+ __decorate$4([
14858
14870
  Property()
14859
14871
  ], HeaderRows.prototype, "option", void 0);
14860
- __decorate$5([
14872
+ __decorate$4([
14861
14873
  Property()
14862
14874
  ], HeaderRows.prototype, "template", void 0);
14863
14875
  return HeaderRows;
14864
14876
  }(ChildProperty));
14865
14877
 
14866
14878
  /* eslint-disable @typescript-eslint/no-explicit-any */
14867
- /* eslint-disable max-len */
14868
14879
  /**
14869
14880
  * Schedule CRUD operations
14870
14881
  */
@@ -14920,7 +14931,9 @@ var Crud = /** @__PURE__ @class */ (function () {
14920
14931
  _this.parent.trigger(dataBound, null, function () {
14921
14932
  _this.parent.hideSpinner();
14922
14933
  if (_this.parent.isPrinting) {
14923
- _this.parent.notify(print$1, {});
14934
+ setTimeout(function () {
14935
+ _this.parent.notify(print, {});
14936
+ }, 100);
14924
14937
  }
14925
14938
  });
14926
14939
  });
@@ -15747,7 +15760,7 @@ var WorkCellInteraction = /** @__PURE__ @class */ (function () {
15747
15760
  return WorkCellInteraction;
15748
15761
  }());
15749
15762
 
15750
- var __extends$11 = (undefined && undefined.__extends) || (function () {
15763
+ var __extends$8 = (undefined && undefined.__extends) || (function () {
15751
15764
  var extendStatics = function (d, b) {
15752
15765
  extendStatics = Object.setPrototypeOf ||
15753
15766
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -15760,37 +15773,36 @@ var __extends$11 = (undefined && undefined.__extends) || (function () {
15760
15773
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15761
15774
  };
15762
15775
  })();
15763
- var __decorate$8 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
15776
+ var __decorate$5 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
15764
15777
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
15765
15778
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
15766
15779
  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;
15767
15780
  return c > 3 && r && Object.defineProperty(target, key, r), r;
15768
15781
  };
15769
- /* eslint-disable @typescript-eslint/no-explicit-any */
15770
15782
  /**
15771
15783
  * Configuration that applies on each appointment field options of scheduler.
15772
15784
  */
15773
15785
  var FieldOptions = /** @__PURE__ @class */ (function (_super) {
15774
- __extends$11(FieldOptions, _super);
15786
+ __extends$8(FieldOptions, _super);
15775
15787
  function FieldOptions() {
15776
15788
  return _super !== null && _super.apply(this, arguments) || this;
15777
15789
  }
15778
- __decorate$8([
15790
+ __decorate$5([
15779
15791
  Property()
15780
15792
  ], FieldOptions.prototype, "name", void 0);
15781
- __decorate$8([
15793
+ __decorate$5([
15782
15794
  Property()
15783
15795
  ], FieldOptions.prototype, "default", void 0);
15784
- __decorate$8([
15796
+ __decorate$5([
15785
15797
  Property()
15786
15798
  ], FieldOptions.prototype, "title", void 0);
15787
- __decorate$8([
15799
+ __decorate$5([
15788
15800
  Property({})
15789
15801
  ], FieldOptions.prototype, "validation", void 0);
15790
15802
  return FieldOptions;
15791
15803
  }(ChildProperty));
15792
15804
 
15793
- var __extends$10 = (undefined && undefined.__extends) || (function () {
15805
+ var __extends$9 = (undefined && undefined.__extends) || (function () {
15794
15806
  var extendStatics = function (d, b) {
15795
15807
  extendStatics = Object.setPrototypeOf ||
15796
15808
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -15803,7 +15815,7 @@ var __extends$10 = (undefined && undefined.__extends) || (function () {
15803
15815
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15804
15816
  };
15805
15817
  })();
15806
- var __decorate$7 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
15818
+ var __decorate$6 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
15807
15819
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
15808
15820
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
15809
15821
  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;
@@ -15817,59 +15829,59 @@ var __decorate$7 = (undefined && undefined.__decorate) || function (decorators,
15817
15829
  * those fields with dataSource can be given altogether within it.
15818
15830
  */
15819
15831
  var Field = /** @__PURE__ @class */ (function (_super) {
15820
- __extends$10(Field, _super);
15832
+ __extends$9(Field, _super);
15821
15833
  function Field() {
15822
15834
  return _super !== null && _super.apply(this, arguments) || this;
15823
15835
  }
15824
- __decorate$7([
15836
+ __decorate$6([
15825
15837
  Property('Id')
15826
15838
  ], Field.prototype, "id", void 0);
15827
- __decorate$7([
15839
+ __decorate$6([
15828
15840
  Property('IsBlock')
15829
15841
  ], Field.prototype, "isBlock", void 0);
15830
- __decorate$7([
15842
+ __decorate$6([
15831
15843
  Complex({ name: 'Subject' }, FieldOptions)
15832
15844
  ], Field.prototype, "subject", void 0);
15833
- __decorate$7([
15845
+ __decorate$6([
15834
15846
  Complex({ name: 'StartTime' }, FieldOptions)
15835
15847
  ], Field.prototype, "startTime", void 0);
15836
- __decorate$7([
15848
+ __decorate$6([
15837
15849
  Complex({ name: 'EndTime' }, FieldOptions)
15838
15850
  ], Field.prototype, "endTime", void 0);
15839
- __decorate$7([
15851
+ __decorate$6([
15840
15852
  Complex({ name: 'StartTimezone' }, FieldOptions)
15841
15853
  ], Field.prototype, "startTimezone", void 0);
15842
- __decorate$7([
15854
+ __decorate$6([
15843
15855
  Complex({ name: 'EndTimezone' }, FieldOptions)
15844
15856
  ], Field.prototype, "endTimezone", void 0);
15845
- __decorate$7([
15857
+ __decorate$6([
15846
15858
  Complex({ name: 'Location' }, FieldOptions)
15847
15859
  ], Field.prototype, "location", void 0);
15848
- __decorate$7([
15860
+ __decorate$6([
15849
15861
  Complex({ name: 'Description' }, FieldOptions)
15850
15862
  ], Field.prototype, "description", void 0);
15851
- __decorate$7([
15863
+ __decorate$6([
15852
15864
  Complex({ name: 'IsAllDay' }, FieldOptions)
15853
15865
  ], Field.prototype, "isAllDay", void 0);
15854
- __decorate$7([
15866
+ __decorate$6([
15855
15867
  Complex({ name: 'RecurrenceID' }, FieldOptions)
15856
15868
  ], Field.prototype, "recurrenceID", void 0);
15857
- __decorate$7([
15869
+ __decorate$6([
15858
15870
  Complex({ name: 'RecurrenceRule' }, FieldOptions)
15859
15871
  ], Field.prototype, "recurrenceRule", void 0);
15860
- __decorate$7([
15872
+ __decorate$6([
15861
15873
  Complex({ name: 'RecurrenceException' }, FieldOptions)
15862
15874
  ], Field.prototype, "recurrenceException", void 0);
15863
- __decorate$7([
15875
+ __decorate$6([
15864
15876
  Property('IsReadonly')
15865
15877
  ], Field.prototype, "isReadonly", void 0);
15866
- __decorate$7([
15878
+ __decorate$6([
15867
15879
  Property('FollowingID')
15868
15880
  ], Field.prototype, "followingID", void 0);
15869
15881
  return Field;
15870
15882
  }(ChildProperty));
15871
15883
 
15872
- var __extends$9 = (undefined && undefined.__extends) || (function () {
15884
+ var __extends$a = (undefined && undefined.__extends) || (function () {
15873
15885
  var extendStatics = function (d, b) {
15874
15886
  extendStatics = Object.setPrototypeOf ||
15875
15887
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -15882,79 +15894,78 @@ var __extends$9 = (undefined && undefined.__extends) || (function () {
15882
15894
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15883
15895
  };
15884
15896
  })();
15885
- var __decorate$6 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
15897
+ var __decorate$7 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
15886
15898
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
15887
15899
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
15888
15900
  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;
15889
15901
  return c > 3 && r && Object.defineProperty(target, key, r), r;
15890
15902
  };
15891
- /* eslint-disable @typescript-eslint/no-explicit-any */
15892
15903
  /**
15893
15904
  * Holds the configuration of event related options and dataSource binding to Schedule.
15894
15905
  */
15895
15906
  var EventSettings = /** @__PURE__ @class */ (function (_super) {
15896
- __extends$9(EventSettings, _super);
15907
+ __extends$a(EventSettings, _super);
15897
15908
  function EventSettings() {
15898
15909
  return _super !== null && _super.apply(this, arguments) || this;
15899
15910
  }
15900
- __decorate$6([
15911
+ __decorate$7([
15901
15912
  Property()
15902
15913
  ], EventSettings.prototype, "template", void 0);
15903
- __decorate$6([
15914
+ __decorate$7([
15904
15915
  Property([])
15905
15916
  ], EventSettings.prototype, "dataSource", void 0);
15906
- __decorate$6([
15917
+ __decorate$7([
15907
15918
  Property()
15908
15919
  ], EventSettings.prototype, "query", void 0);
15909
- __decorate$6([
15920
+ __decorate$7([
15910
15921
  Complex({}, Field)
15911
15922
  ], EventSettings.prototype, "fields", void 0);
15912
- __decorate$6([
15923
+ __decorate$7([
15913
15924
  Property(false)
15914
15925
  ], EventSettings.prototype, "enableTooltip", void 0);
15915
- __decorate$6([
15926
+ __decorate$7([
15916
15927
  Property('AllDayRow')
15917
15928
  ], EventSettings.prototype, "spannedEventPlacement", void 0);
15918
- __decorate$6([
15929
+ __decorate$7([
15919
15930
  Property(1)
15920
15931
  ], EventSettings.prototype, "minimumEventDuration", void 0);
15921
- __decorate$6([
15932
+ __decorate$7([
15922
15933
  Property()
15923
15934
  ], EventSettings.prototype, "tooltipTemplate", void 0);
15924
- __decorate$6([
15935
+ __decorate$7([
15925
15936
  Property()
15926
15937
  ], EventSettings.prototype, "resourceColorField", void 0);
15927
- __decorate$6([
15938
+ __decorate$7([
15928
15939
  Property(false)
15929
15940
  ], EventSettings.prototype, "editFollowingEvents", void 0);
15930
- __decorate$6([
15941
+ __decorate$7([
15931
15942
  Property(true)
15932
15943
  ], EventSettings.prototype, "allowAdding", void 0);
15933
- __decorate$6([
15944
+ __decorate$7([
15934
15945
  Property(true)
15935
15946
  ], EventSettings.prototype, "allowEditing", void 0);
15936
- __decorate$6([
15947
+ __decorate$7([
15937
15948
  Property(true)
15938
15949
  ], EventSettings.prototype, "allowDeleting", void 0);
15939
- __decorate$6([
15950
+ __decorate$7([
15940
15951
  Property(false)
15941
15952
  ], EventSettings.prototype, "enableMaxHeight", void 0);
15942
- __decorate$6([
15953
+ __decorate$7([
15943
15954
  Property(false)
15944
15955
  ], EventSettings.prototype, "enableIndicator", void 0);
15945
- __decorate$6([
15956
+ __decorate$7([
15946
15957
  Property(false)
15947
15958
  ], EventSettings.prototype, "ignoreWhitespace", void 0);
15948
- __decorate$6([
15959
+ __decorate$7([
15949
15960
  Property()
15950
15961
  ], EventSettings.prototype, "sortComparer", void 0);
15951
- __decorate$6([
15962
+ __decorate$7([
15952
15963
  Property()
15953
15964
  ], EventSettings.prototype, "includeFiltersInQuery", void 0);
15954
15965
  return EventSettings;
15955
15966
  }(ChildProperty));
15956
15967
 
15957
- var __extends$12 = (undefined && undefined.__extends) || (function () {
15968
+ var __extends$b = (undefined && undefined.__extends) || (function () {
15958
15969
  var extendStatics = function (d, b) {
15959
15970
  extendStatics = Object.setPrototypeOf ||
15960
15971
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -15967,7 +15978,7 @@ var __extends$12 = (undefined && undefined.__extends) || (function () {
15967
15978
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15968
15979
  };
15969
15980
  })();
15970
- var __decorate$9 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
15981
+ var __decorate$8 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
15971
15982
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
15972
15983
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
15973
15984
  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;
@@ -15977,35 +15988,35 @@ var __decorate$9 = (undefined && undefined.__decorate) || function (decorators,
15977
15988
  * A class that holds the resource grouping related configurations on Schedule.
15978
15989
  */
15979
15990
  var Group = /** @__PURE__ @class */ (function (_super) {
15980
- __extends$12(Group, _super);
15991
+ __extends$b(Group, _super);
15981
15992
  function Group() {
15982
15993
  return _super !== null && _super.apply(this, arguments) || this;
15983
15994
  }
15984
- __decorate$9([
15995
+ __decorate$8([
15985
15996
  Property(false)
15986
15997
  ], Group.prototype, "byDate", void 0);
15987
- __decorate$9([
15998
+ __decorate$8([
15988
15999
  Property(true)
15989
16000
  ], Group.prototype, "byGroupID", void 0);
15990
- __decorate$9([
16001
+ __decorate$8([
15991
16002
  Property(false)
15992
16003
  ], Group.prototype, "allowGroupEdit", void 0);
15993
- __decorate$9([
16004
+ __decorate$8([
15994
16005
  Property([])
15995
16006
  ], Group.prototype, "resources", void 0);
15996
- __decorate$9([
16007
+ __decorate$8([
15997
16008
  Property(true)
15998
16009
  ], Group.prototype, "enableCompactView", void 0);
15999
- __decorate$9([
16010
+ __decorate$8([
16000
16011
  Property()
16001
16012
  ], Group.prototype, "headerTooltipTemplate", void 0);
16002
- __decorate$9([
16013
+ __decorate$8([
16003
16014
  Property(false)
16004
16015
  ], Group.prototype, "hideNonWorkingDays", void 0);
16005
16016
  return Group;
16006
16017
  }(ChildProperty));
16007
16018
 
16008
- var __extends$13 = (undefined && undefined.__extends) || (function () {
16019
+ var __extends$c = (undefined && undefined.__extends) || (function () {
16009
16020
  var extendStatics = function (d, b) {
16010
16021
  extendStatics = Object.setPrototypeOf ||
16011
16022
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -16018,71 +16029,69 @@ var __extends$13 = (undefined && undefined.__extends) || (function () {
16018
16029
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
16019
16030
  };
16020
16031
  })();
16021
- var __decorate$10 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
16032
+ var __decorate$9 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
16022
16033
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
16023
16034
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
16024
16035
  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;
16025
16036
  return c > 3 && r && Object.defineProperty(target, key, r), r;
16026
16037
  };
16027
- /* eslint-disable @typescript-eslint/no-explicit-any */
16028
16038
  /**
16029
16039
  * A class that represents the resource related configurations and its data binding options.
16030
16040
  */
16031
16041
  var Resources = /** @__PURE__ @class */ (function (_super) {
16032
- __extends$13(Resources, _super);
16042
+ __extends$c(Resources, _super);
16033
16043
  function Resources() {
16034
16044
  return _super !== null && _super.apply(this, arguments) || this;
16035
16045
  }
16036
- __decorate$10([
16046
+ __decorate$9([
16037
16047
  Property()
16038
16048
  ], Resources.prototype, "field", void 0);
16039
- __decorate$10([
16049
+ __decorate$9([
16040
16050
  Property()
16041
16051
  ], Resources.prototype, "title", void 0);
16042
- __decorate$10([
16052
+ __decorate$9([
16043
16053
  Property()
16044
16054
  ], Resources.prototype, "name", void 0);
16045
- __decorate$10([
16055
+ __decorate$9([
16046
16056
  Property(false)
16047
16057
  ], Resources.prototype, "allowMultiple", void 0);
16048
- __decorate$10([
16058
+ __decorate$9([
16049
16059
  Property([])
16050
16060
  ], Resources.prototype, "dataSource", void 0);
16051
- __decorate$10([
16061
+ __decorate$9([
16052
16062
  Property()
16053
16063
  ], Resources.prototype, "query", void 0);
16054
- __decorate$10([
16064
+ __decorate$9([
16055
16065
  Property('Id')
16056
16066
  ], Resources.prototype, "idField", void 0);
16057
- __decorate$10([
16067
+ __decorate$9([
16058
16068
  Property('Text')
16059
16069
  ], Resources.prototype, "textField", void 0);
16060
- __decorate$10([
16070
+ __decorate$9([
16061
16071
  Property('Expanded')
16062
16072
  ], Resources.prototype, "expandedField", void 0);
16063
- __decorate$10([
16073
+ __decorate$9([
16064
16074
  Property('GroupID')
16065
16075
  ], Resources.prototype, "groupIDField", void 0);
16066
- __decorate$10([
16076
+ __decorate$9([
16067
16077
  Property('Color')
16068
16078
  ], Resources.prototype, "colorField", void 0);
16069
- __decorate$10([
16079
+ __decorate$9([
16070
16080
  Property('StartHour')
16071
16081
  ], Resources.prototype, "startHourField", void 0);
16072
- __decorate$10([
16082
+ __decorate$9([
16073
16083
  Property('EndHour')
16074
16084
  ], Resources.prototype, "endHourField", void 0);
16075
- __decorate$10([
16085
+ __decorate$9([
16076
16086
  Property('WorkDays')
16077
16087
  ], Resources.prototype, "workDaysField", void 0);
16078
- __decorate$10([
16088
+ __decorate$9([
16079
16089
  Property('CssClass')
16080
16090
  ], Resources.prototype, "cssClassField", void 0);
16081
16091
  return Resources;
16082
16092
  }(ChildProperty));
16083
16093
 
16084
16094
  /* eslint-disable @typescript-eslint/no-explicit-any */
16085
- /* eslint-disable max-len */
16086
16095
  var ResourceBase = /** @__PURE__ @class */ (function () {
16087
16096
  function ResourceBase(parent) {
16088
16097
  this.resourceCollection = [];
@@ -16489,7 +16498,7 @@ var ResourceBase = /** @__PURE__ @class */ (function () {
16489
16498
  };
16490
16499
  var this_1 = this;
16491
16500
  for (var i = 0, len = this.resourceTreeLevel.length; i < len; i++) {
16492
- _loop_1(i, len);
16501
+ _loop_1(i);
16493
16502
  }
16494
16503
  if (isTimeLine) {
16495
16504
  this.lastResourceLevel = resTreeColl;
@@ -16515,7 +16524,7 @@ var ResourceBase = /** @__PURE__ @class */ (function () {
16515
16524
  };
16516
16525
  var this_2 = this;
16517
16526
  for (var i = 0, len = resource.groupOrder.length; i < len; i++) {
16518
- _loop_2(i, len);
16527
+ _loop_2(i);
16519
16528
  }
16520
16529
  headerCollection.pop();
16521
16530
  var target = (this.parent.currentView === 'MonthAgenda') ? this.parent.activeView.getPanel() : this.parent.element;
@@ -17185,7 +17194,7 @@ var ResourceBase = /** @__PURE__ @class */ (function () {
17185
17194
  return ResourceBase;
17186
17195
  }());
17187
17196
 
17188
- var __extends$14 = (undefined && undefined.__extends) || (function () {
17197
+ var __extends$d = (undefined && undefined.__extends) || (function () {
17189
17198
  var extendStatics = function (d, b) {
17190
17199
  extendStatics = Object.setPrototypeOf ||
17191
17200
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -17198,78 +17207,78 @@ var __extends$14 = (undefined && undefined.__extends) || (function () {
17198
17207
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
17199
17208
  };
17200
17209
  })();
17201
- var __decorate$11 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
17210
+ var __decorate$a = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
17202
17211
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
17203
17212
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
17204
17213
  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;
17205
17214
  return c > 3 && r && Object.defineProperty(target, key, r), r;
17206
17215
  };
17207
17216
  var ToolbarItem = /** @__PURE__ @class */ (function (_super) {
17208
- __extends$14(ToolbarItem, _super);
17217
+ __extends$d(ToolbarItem, _super);
17209
17218
  function ToolbarItem() {
17210
17219
  return _super !== null && _super.apply(this, arguments) || this;
17211
17220
  }
17212
- __decorate$11([
17221
+ __decorate$a([
17213
17222
  Property('')
17214
17223
  ], ToolbarItem.prototype, "id", void 0);
17215
- __decorate$11([
17224
+ __decorate$a([
17216
17225
  Property('')
17217
17226
  ], ToolbarItem.prototype, "text", void 0);
17218
- __decorate$11([
17227
+ __decorate$a([
17219
17228
  Property('auto')
17220
17229
  ], ToolbarItem.prototype, "width", void 0);
17221
- __decorate$11([
17230
+ __decorate$a([
17222
17231
  Property('')
17223
17232
  ], ToolbarItem.prototype, "cssClass", void 0);
17224
- __decorate$11([
17233
+ __decorate$a([
17225
17234
  Property(false)
17226
17235
  ], ToolbarItem.prototype, "showAlwaysInPopup", void 0);
17227
- __decorate$11([
17236
+ __decorate$a([
17228
17237
  Property(false)
17229
17238
  ], ToolbarItem.prototype, "disabled", void 0);
17230
- __decorate$11([
17239
+ __decorate$a([
17231
17240
  Property('')
17232
17241
  ], ToolbarItem.prototype, "prefixIcon", void 0);
17233
- __decorate$11([
17242
+ __decorate$a([
17234
17243
  Property('')
17235
17244
  ], ToolbarItem.prototype, "suffixIcon", void 0);
17236
- __decorate$11([
17245
+ __decorate$a([
17237
17246
  Property(true)
17238
17247
  ], ToolbarItem.prototype, "visible", void 0);
17239
- __decorate$11([
17248
+ __decorate$a([
17240
17249
  Property('None')
17241
17250
  ], ToolbarItem.prototype, "overflow", void 0);
17242
- __decorate$11([
17251
+ __decorate$a([
17243
17252
  Property('')
17244
17253
  ], ToolbarItem.prototype, "template", void 0);
17245
- __decorate$11([
17254
+ __decorate$a([
17246
17255
  Property('Button')
17247
17256
  ], ToolbarItem.prototype, "type", void 0);
17248
- __decorate$11([
17257
+ __decorate$a([
17249
17258
  Property('Both')
17250
17259
  ], ToolbarItem.prototype, "showTextOn", void 0);
17251
- __decorate$11([
17260
+ __decorate$a([
17252
17261
  Property(null)
17253
17262
  ], ToolbarItem.prototype, "htmlAttributes", void 0);
17254
- __decorate$11([
17263
+ __decorate$a([
17255
17264
  Property('')
17256
17265
  ], ToolbarItem.prototype, "tooltipText", void 0);
17257
- __decorate$11([
17266
+ __decorate$a([
17258
17267
  Property('Left')
17259
17268
  ], ToolbarItem.prototype, "align", void 0);
17260
- __decorate$11([
17269
+ __decorate$a([
17261
17270
  Property(-1)
17262
17271
  ], ToolbarItem.prototype, "tabIndex", void 0);
17263
- __decorate$11([
17272
+ __decorate$a([
17264
17273
  Property('Custom')
17265
17274
  ], ToolbarItem.prototype, "name", void 0);
17266
- __decorate$11([
17275
+ __decorate$a([
17267
17276
  Event()
17268
17277
  ], ToolbarItem.prototype, "click", void 0);
17269
17278
  return ToolbarItem;
17270
17279
  }(ChildProperty));
17271
17280
 
17272
- var __extends = (undefined && undefined.__extends) || (function () {
17281
+ var __extends$e = (undefined && undefined.__extends) || (function () {
17273
17282
  var extendStatics = function (d, b) {
17274
17283
  extendStatics = Object.setPrototypeOf ||
17275
17284
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -17282,13 +17291,12 @@ var __extends = (undefined && undefined.__extends) || (function () {
17282
17291
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
17283
17292
  };
17284
17293
  })();
17285
- var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
17294
+ var __decorate$b = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
17286
17295
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
17287
17296
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
17288
17297
  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;
17289
17298
  return c > 3 && r && Object.defineProperty(target, key, r), r;
17290
17299
  };
17291
- /* eslint-disable @typescript-eslint/no-explicit-any */
17292
17300
  /**
17293
17301
  * Represents the Schedule component that displays a list of events scheduled against specific date and timings,
17294
17302
  * thus helping us to plan and manage it properly.
@@ -17303,7 +17311,7 @@ var __decorate = (undefined && undefined.__decorate) || function (decorators, ta
17303
17311
  * ```
17304
17312
  */
17305
17313
  var Schedule = /** @__PURE__ @class */ (function (_super) {
17306
- __extends(Schedule, _super);
17314
+ __extends$e(Schedule, _super);
17307
17315
  /**
17308
17316
  * Constructor for creating the Schedule widget
17309
17317
  *
@@ -17480,8 +17488,10 @@ var Schedule = /** @__PURE__ @class */ (function (_super) {
17480
17488
  if (selectedDate === void 0) { selectedDate = this.selectedDate; }
17481
17489
  // persist the selected date value
17482
17490
  var date = selectedDate instanceof Date ? new Date(selectedDate.getTime()) : new Date(selectedDate);
17483
- var minDate = this.minDate instanceof Date ? new Date(this.minDate.getTime()) : new Date(this.minDate);
17484
- var maxDate = this.maxDate instanceof Date ? new Date(this.maxDate.getTime()) : new Date(this.maxDate);
17491
+ var minDate = isNullOrUndefined(this.minDate) ? new Date(1900, 0, 1) :
17492
+ this.minDate instanceof Date ? new Date(this.minDate.getTime()) : new Date(this.minDate);
17493
+ var maxDate = isNullOrUndefined(this.maxDate) ? new Date(2099, 11, 31) :
17494
+ this.maxDate instanceof Date ? new Date(this.maxDate.getTime()) : new Date(this.maxDate);
17485
17495
  if (minDate <= maxDate) {
17486
17496
  if (date < minDate) {
17487
17497
  date = minDate;
@@ -17509,6 +17519,9 @@ var Schedule = /** @__PURE__ @class */ (function (_super) {
17509
17519
  };
17510
17520
  Schedule.prototype.setViewOptions = function (isModuleLoad) {
17511
17521
  if (isModuleLoad === void 0) { isModuleLoad = false; }
17522
+ if (isNullOrUndefined(this.views) || this.views.length === 0) {
17523
+ return;
17524
+ }
17512
17525
  this.viewOptions = {};
17513
17526
  this.viewCollections = [];
17514
17527
  var viewName;
@@ -17581,7 +17594,7 @@ var Schedule = /** @__PURE__ @class */ (function (_super) {
17581
17594
  byDate: isYearView ? false : this.group.byDate,
17582
17595
  byGroupID: this.group.byGroupID,
17583
17596
  allowGroupEdit: this.group.allowGroupEdit,
17584
- resources: this.group.resources,
17597
+ resources: isNullOrUndefined(this.group.resources) ? [] : this.group.resources,
17585
17598
  headerTooltipTemplate: this.group.headerTooltipTemplate,
17586
17599
  enableCompactView: this.group.enableCompactView,
17587
17600
  hideNonWorkingDays: ['Day', 'Week', 'WorkWeek', 'Month'].indexOf(this.currentView) > -1 ? this.group.hideNonWorkingDays : false
@@ -17717,7 +17730,7 @@ var Schedule = /** @__PURE__ @class */ (function (_super) {
17717
17730
  var culShortNames = [];
17718
17731
  var cldrObj;
17719
17732
  var nameSpace = '';
17720
- if (this.locale === 'en' || this.locale === 'en-US') {
17733
+ if (isNullOrUndefined(this.locale) || this.locale === 'en' || this.locale === 'en-US') {
17721
17734
  nameSpace = 'days.stand-alone.';
17722
17735
  cldrObj = (getValue(nameSpace + type, getDefaultDateObject(this.getCalendarMode())));
17723
17736
  }
@@ -17736,7 +17749,7 @@ var Schedule = /** @__PURE__ @class */ (function (_super) {
17736
17749
  this.internalTimeFormat = this.timeFormat;
17737
17750
  return;
17738
17751
  }
17739
- if (this.locale === 'en' || this.locale === 'en-US') {
17752
+ if (isNullOrUndefined(this.locale) || this.locale === 'en' || this.locale === 'en-US') {
17740
17753
  this.internalTimeFormat = (getValue('timeFormats.short', getDefaultDateObject(this.getCalendarMode())));
17741
17754
  }
17742
17755
  else {
@@ -17750,7 +17763,7 @@ var Schedule = /** @__PURE__ @class */ (function (_super) {
17750
17763
  * @private
17751
17764
  */
17752
17765
  Schedule.prototype.getCalendarMode = function () {
17753
- return this.calendarMode.toLowerCase();
17766
+ return !isNullOrUndefined(this.calendarMode) ? this.calendarMode.toLowerCase() : 'gregorian';
17754
17767
  };
17755
17768
  /**
17756
17769
  * Method to get time in string
@@ -17880,7 +17893,9 @@ var Schedule = /** @__PURE__ @class */ (function (_super) {
17880
17893
  */
17881
17894
  Schedule.prototype.isMinMaxDate = function (date) {
17882
17895
  if (date === void 0) { date = this.selectedDate; }
17883
- return ((date.getTime() >= this.minDate.getTime()) && (date.getTime() <= this.maxDate.getTime()));
17896
+ var maxDate = isNullOrUndefined(this.maxDate) ? new Date(2099, 11, 31) : this.maxDate;
17897
+ var minDate = isNullOrUndefined(this.minDate) ? new Date(1900, 0, 1) : this.minDate;
17898
+ return ((date.getTime() >= minDate.getTime()) && (date.getTime() <= maxDate.getTime()));
17884
17899
  };
17885
17900
  /**
17886
17901
  * Method to validate the selected date
@@ -17962,7 +17977,8 @@ var Schedule = /** @__PURE__ @class */ (function (_super) {
17962
17977
  if (this && isNullOrUndefined(this.uiStateValues) || !(this.enablePersistence)) {
17963
17978
  this.uiStateValues = {
17964
17979
  expand: false, isInitial: true, left: 0, top: 0, isGroupAdaptive: false,
17965
- isIgnoreOccurrence: false, groupIndex: this.adaptiveGroupIndex, action: false, isBlock: false, isCustomMonth: true, isPreventTimezone: false
17980
+ isIgnoreOccurrence: false, groupIndex: this.adaptiveGroupIndex, action: false,
17981
+ isBlock: false, isCustomMonth: true, isPreventTimezone: false
17966
17982
  };
17967
17983
  }
17968
17984
  this.currentTimezoneDate = this.getCurrentTime();
@@ -18019,6 +18035,7 @@ var Schedule = /** @__PURE__ @class */ (function (_super) {
18019
18035
  subject: 'Subject',
18020
18036
  addTitle: 'Add title',
18021
18037
  moreDetails: 'More Details',
18038
+ moreEvents: 'More Events',
18022
18039
  save: 'Save',
18023
18040
  editContent: 'How would you like to change the appointment in the series?',
18024
18041
  deleteContent: 'Are you sure you want to delete this event?',
@@ -18053,6 +18070,7 @@ var Schedule = /** @__PURE__ @class */ (function (_super) {
18053
18070
  ok: 'Ok',
18054
18071
  yes: 'Yes',
18055
18072
  no: 'No',
18073
+ of: 'of',
18056
18074
  occurrence: 'Occurrence',
18057
18075
  series: 'Series',
18058
18076
  previous: 'Previous',
@@ -18624,7 +18642,7 @@ var Schedule = /** @__PURE__ @class */ (function (_super) {
18624
18642
  var scheduleId = this.element.id + '_';
18625
18643
  var viewName = this.activeViewOptions.headerIndentTemplateName;
18626
18644
  var templateId = scheduleId + viewName + 'headerIndentTemplate';
18627
- var indentTemplate = [].slice.call(this.getHeaderIndentTemplate()(data, this, 'headerIndentTemplate', templateId, false));
18645
+ var indentTemplate = [].slice.call(this.getHeaderIndentTemplate()(data, this, 'headerIndentTemplate', templateId, false, undefined, undefined, this.root));
18628
18646
  append(indentTemplate, td);
18629
18647
  }
18630
18648
  };
@@ -18784,7 +18802,9 @@ var Schedule = /** @__PURE__ @class */ (function (_super) {
18784
18802
  break;
18785
18803
  case 'timezone':
18786
18804
  this.eventBase.timezonePropertyChange(oldProp.timezone);
18787
- this.headerModule.setCalendarTimezone();
18805
+ if (this.headerModule) {
18806
+ this.headerModule.setCalendarTimezone();
18807
+ }
18788
18808
  break;
18789
18809
  case 'enableRtl':
18790
18810
  this.setRtlClass();
@@ -18808,6 +18828,9 @@ var Schedule = /** @__PURE__ @class */ (function (_super) {
18808
18828
  this.changeView(this.currentView, null, true);
18809
18829
  }
18810
18830
  else if (state.isDate) {
18831
+ if (isNullOrUndefined(this.selectedDate)) {
18832
+ this.setProperties({ selectedDate: this.getCurrentTime() }, true);
18833
+ }
18811
18834
  this.changeDate(this.selectedDate);
18812
18835
  }
18813
18836
  else if (state.isLayout) {
@@ -19151,8 +19174,9 @@ var Schedule = /** @__PURE__ @class */ (function (_super) {
19151
19174
  }
19152
19175
  var msMajorInterval = this.activeViewOptions.timeScale.interval * MS_PER_MINUTE;
19153
19176
  var msInterval = msMajorInterval / this.activeViewOptions.timeScale.slotCount;
19154
- var startIndex = Math.round((startHour.getTime() - viewStartHour.getTime()) / msInterval);
19155
- var endIndex = Math.ceil((endHour.getTime() - viewStartHour.getTime()) / msInterval);
19177
+ var offsetDiff = ((viewStartHour.getTimezoneOffset() - startHour.getTimezoneOffset()) * MS_PER_MINUTE);
19178
+ var startIndex = Math.round((startHour.getTime() - viewStartHour.getTime() + offsetDiff) / msInterval);
19179
+ var endIndex = Math.ceil((endHour.getTime() - viewStartHour.getTime() + offsetDiff) / msInterval);
19156
19180
  var tempStartIndex = startIndex;
19157
19181
  var tempEndIndex = endIndex;
19158
19182
  var cells = [];
@@ -20051,274 +20075,274 @@ var Schedule = /** @__PURE__ @class */ (function (_super) {
20051
20075
  }
20052
20076
  removeClass([this.element], removeClasses);
20053
20077
  };
20054
- __decorate([
20078
+ __decorate$b([
20055
20079
  Property('auto')
20056
20080
  ], Schedule.prototype, "width", void 0);
20057
- __decorate([
20081
+ __decorate$b([
20058
20082
  Property('auto')
20059
20083
  ], Schedule.prototype, "height", void 0);
20060
- __decorate([
20084
+ __decorate$b([
20061
20085
  Property(true)
20062
20086
  ], Schedule.prototype, "showHeaderBar", void 0);
20063
- __decorate([
20087
+ __decorate$b([
20064
20088
  Property(true)
20065
20089
  ], Schedule.prototype, "showTimeIndicator", void 0);
20066
- __decorate([
20090
+ __decorate$b([
20067
20091
  Property(true)
20068
20092
  ], Schedule.prototype, "allowSwiping", void 0);
20069
- __decorate([
20093
+ __decorate$b([
20070
20094
  Collection([], ToolbarItem)
20071
20095
  ], Schedule.prototype, "toolbarItems", void 0);
20072
- __decorate([
20096
+ __decorate$b([
20073
20097
  Property('Week')
20074
20098
  ], Schedule.prototype, "currentView", void 0);
20075
- __decorate([
20099
+ __decorate$b([
20076
20100
  Property(['Day', 'Week', 'WorkWeek', 'Month', 'Agenda'])
20077
20101
  ], Schedule.prototype, "views", void 0);
20078
- __decorate([
20102
+ __decorate$b([
20079
20103
  Property(new Date())
20080
20104
  ], Schedule.prototype, "selectedDate", void 0);
20081
- __decorate([
20105
+ __decorate$b([
20082
20106
  Property(new Date(1900, 0, 1))
20083
20107
  ], Schedule.prototype, "minDate", void 0);
20084
- __decorate([
20108
+ __decorate$b([
20085
20109
  Property(new Date(2099, 11, 31))
20086
20110
  ], Schedule.prototype, "maxDate", void 0);
20087
- __decorate([
20111
+ __decorate$b([
20088
20112
  Property()
20089
20113
  ], Schedule.prototype, "dateFormat", void 0);
20090
- __decorate([
20114
+ __decorate$b([
20091
20115
  Property('Gregorian')
20092
20116
  ], Schedule.prototype, "calendarMode", void 0);
20093
- __decorate([
20117
+ __decorate$b([
20094
20118
  Property(true)
20095
20119
  ], Schedule.prototype, "showWeekend", void 0);
20096
- __decorate([
20120
+ __decorate$b([
20097
20121
  Property(0)
20098
20122
  ], Schedule.prototype, "firstDayOfWeek", void 0);
20099
- __decorate([
20123
+ __decorate$b([
20100
20124
  Property('FirstDay')
20101
20125
  ], Schedule.prototype, "weekRule", void 0);
20102
- __decorate([
20126
+ __decorate$b([
20103
20127
  Property([1, 2, 3, 4, 5])
20104
20128
  ], Schedule.prototype, "workDays", void 0);
20105
- __decorate([
20129
+ __decorate$b([
20106
20130
  Property(12)
20107
20131
  ], Schedule.prototype, "monthsCount", void 0);
20108
- __decorate([
20132
+ __decorate$b([
20109
20133
  Property('00:00')
20110
20134
  ], Schedule.prototype, "startHour", void 0);
20111
- __decorate([
20135
+ __decorate$b([
20112
20136
  Property('24:00')
20113
20137
  ], Schedule.prototype, "endHour", void 0);
20114
- __decorate([
20138
+ __decorate$b([
20115
20139
  Property(null)
20116
20140
  ], Schedule.prototype, "timeFormat", void 0);
20117
- __decorate([
20141
+ __decorate$b([
20118
20142
  Property(true)
20119
20143
  ], Schedule.prototype, "enableHtmlSanitizer", void 0);
20120
- __decorate([
20144
+ __decorate$b([
20121
20145
  Property(false)
20122
20146
  ], Schedule.prototype, "enableAllDayScroll", void 0);
20123
- __decorate([
20147
+ __decorate$b([
20124
20148
  Property(false)
20125
20149
  ], Schedule.prototype, "enableAdaptiveUI", void 0);
20126
- __decorate([
20150
+ __decorate$b([
20127
20151
  Property(true)
20128
20152
  ], Schedule.prototype, "allowResizing", void 0);
20129
- __decorate([
20153
+ __decorate$b([
20130
20154
  Complex({}, WorkHours)
20131
20155
  ], Schedule.prototype, "workHours", void 0);
20132
- __decorate([
20156
+ __decorate$b([
20133
20157
  Complex({}, TimeScale)
20134
20158
  ], Schedule.prototype, "timeScale", void 0);
20135
- __decorate([
20159
+ __decorate$b([
20136
20160
  Property(true)
20137
20161
  ], Schedule.prototype, "allowKeyboardInteraction", void 0);
20138
- __decorate([
20162
+ __decorate$b([
20139
20163
  Property(true)
20140
20164
  ], Schedule.prototype, "allowDragAndDrop", void 0);
20141
- __decorate([
20165
+ __decorate$b([
20142
20166
  Property()
20143
20167
  ], Schedule.prototype, "dateHeaderTemplate", void 0);
20144
- __decorate([
20168
+ __decorate$b([
20145
20169
  Property()
20146
20170
  ], Schedule.prototype, "dateRangeTemplate", void 0);
20147
- __decorate([
20171
+ __decorate$b([
20148
20172
  Property()
20149
20173
  ], Schedule.prototype, "cellHeaderTemplate", void 0);
20150
- __decorate([
20174
+ __decorate$b([
20151
20175
  Property()
20152
20176
  ], Schedule.prototype, "dayHeaderTemplate", void 0);
20153
- __decorate([
20177
+ __decorate$b([
20154
20178
  Property()
20155
20179
  ], Schedule.prototype, "monthHeaderTemplate", void 0);
20156
- __decorate([
20180
+ __decorate$b([
20157
20181
  Property()
20158
20182
  ], Schedule.prototype, "cellTemplate", void 0);
20159
- __decorate([
20183
+ __decorate$b([
20160
20184
  Property(false)
20161
20185
  ], Schedule.prototype, "readonly", void 0);
20162
- __decorate([
20186
+ __decorate$b([
20163
20187
  Property(true)
20164
20188
  ], Schedule.prototype, "showQuickInfo", void 0);
20165
- __decorate([
20189
+ __decorate$b([
20166
20190
  Property(false)
20167
20191
  ], Schedule.prototype, "allowInline", void 0);
20168
- __decorate([
20192
+ __decorate$b([
20169
20193
  Property(true)
20170
20194
  ], Schedule.prototype, "allowMultiCellSelection", void 0);
20171
- __decorate([
20195
+ __decorate$b([
20172
20196
  Property(true)
20173
20197
  ], Schedule.prototype, "allowMultiRowSelection", void 0);
20174
- __decorate([
20198
+ __decorate$b([
20175
20199
  Property(false)
20176
20200
  ], Schedule.prototype, "quickInfoOnSelectionEnd", void 0);
20177
- __decorate([
20201
+ __decorate$b([
20178
20202
  Property(false)
20179
20203
  ], Schedule.prototype, "showWeekNumber", void 0);
20180
- __decorate([
20204
+ __decorate$b([
20181
20205
  Property(false)
20182
20206
  ], Schedule.prototype, "rowAutoHeight", void 0);
20183
- __decorate([
20207
+ __decorate$b([
20184
20208
  Property(false)
20185
20209
  ], Schedule.prototype, "allowMultiDrag", void 0);
20186
- __decorate([
20210
+ __decorate$b([
20187
20211
  Property(0)
20188
20212
  ], Schedule.prototype, "firstMonthOfYear", void 0);
20189
- __decorate([
20213
+ __decorate$b([
20190
20214
  Property()
20191
20215
  ], Schedule.prototype, "editorTemplate", void 0);
20192
- __decorate([
20216
+ __decorate$b([
20193
20217
  Property()
20194
20218
  ], Schedule.prototype, "editorHeaderTemplate", void 0);
20195
- __decorate([
20219
+ __decorate$b([
20196
20220
  Property()
20197
20221
  ], Schedule.prototype, "editorFooterTemplate", void 0);
20198
- __decorate([
20222
+ __decorate$b([
20199
20223
  Complex({}, QuickInfoTemplates)
20200
20224
  ], Schedule.prototype, "quickInfoTemplates", void 0);
20201
- __decorate([
20225
+ __decorate$b([
20202
20226
  Property(7)
20203
20227
  ], Schedule.prototype, "agendaDaysCount", void 0);
20204
- __decorate([
20228
+ __decorate$b([
20205
20229
  Property(true)
20206
20230
  ], Schedule.prototype, "hideEmptyAgendaDays", void 0);
20207
- __decorate([
20231
+ __decorate$b([
20208
20232
  Property(true)
20209
20233
  ], Schedule.prototype, "enableRecurrenceValidation", void 0);
20210
- __decorate([
20234
+ __decorate$b([
20211
20235
  Property()
20212
20236
  ], Schedule.prototype, "timezone", void 0);
20213
- __decorate([
20237
+ __decorate$b([
20214
20238
  Complex({}, EventSettings)
20215
20239
  ], Schedule.prototype, "eventSettings", void 0);
20216
- __decorate([
20240
+ __decorate$b([
20217
20241
  Property(timezoneData)
20218
20242
  ], Schedule.prototype, "timezoneDataSource", void 0);
20219
- __decorate([
20243
+ __decorate$b([
20220
20244
  Property()
20221
20245
  ], Schedule.prototype, "resourceHeaderTemplate", void 0);
20222
- __decorate([
20246
+ __decorate$b([
20223
20247
  Property()
20224
20248
  ], Schedule.prototype, "headerIndentTemplate", void 0);
20225
- __decorate([
20249
+ __decorate$b([
20226
20250
  Complex({}, Group)
20227
20251
  ], Schedule.prototype, "group", void 0);
20228
- __decorate([
20252
+ __decorate$b([
20229
20253
  Collection([], Resources)
20230
20254
  ], Schedule.prototype, "resources", void 0);
20231
- __decorate([
20255
+ __decorate$b([
20232
20256
  Collection([], HeaderRows)
20233
20257
  ], Schedule.prototype, "headerRows", void 0);
20234
- __decorate([
20258
+ __decorate$b([
20235
20259
  Property()
20236
20260
  ], Schedule.prototype, "cssClass", void 0);
20237
- __decorate([
20261
+ __decorate$b([
20238
20262
  Property()
20239
20263
  ], Schedule.prototype, "eventDragArea", void 0);
20240
- __decorate([
20264
+ __decorate$b([
20241
20265
  Event()
20242
20266
  ], Schedule.prototype, "created", void 0);
20243
- __decorate([
20267
+ __decorate$b([
20244
20268
  Event()
20245
20269
  ], Schedule.prototype, "destroyed", void 0);
20246
- __decorate([
20270
+ __decorate$b([
20247
20271
  Event()
20248
20272
  ], Schedule.prototype, "cellClick", void 0);
20249
- __decorate([
20273
+ __decorate$b([
20250
20274
  Event()
20251
20275
  ], Schedule.prototype, "cellDoubleClick", void 0);
20252
- __decorate([
20276
+ __decorate$b([
20253
20277
  Event()
20254
20278
  ], Schedule.prototype, "moreEventsClick", void 0);
20255
- __decorate([
20279
+ __decorate$b([
20256
20280
  Event()
20257
20281
  ], Schedule.prototype, "hover", void 0);
20258
- __decorate([
20282
+ __decorate$b([
20259
20283
  Event()
20260
20284
  ], Schedule.prototype, "select", void 0);
20261
- __decorate([
20285
+ __decorate$b([
20262
20286
  Event()
20263
20287
  ], Schedule.prototype, "actionBegin", void 0);
20264
- __decorate([
20288
+ __decorate$b([
20265
20289
  Event()
20266
20290
  ], Schedule.prototype, "actionComplete", void 0);
20267
- __decorate([
20291
+ __decorate$b([
20268
20292
  Event()
20269
20293
  ], Schedule.prototype, "actionFailure", void 0);
20270
- __decorate([
20294
+ __decorate$b([
20271
20295
  Event()
20272
20296
  ], Schedule.prototype, "navigating", void 0);
20273
- __decorate([
20297
+ __decorate$b([
20274
20298
  Event()
20275
20299
  ], Schedule.prototype, "renderCell", void 0);
20276
- __decorate([
20300
+ __decorate$b([
20277
20301
  Event()
20278
20302
  ], Schedule.prototype, "eventClick", void 0);
20279
- __decorate([
20303
+ __decorate$b([
20280
20304
  Event()
20281
20305
  ], Schedule.prototype, "eventDoubleClick", void 0);
20282
- __decorate([
20306
+ __decorate$b([
20283
20307
  Event()
20284
20308
  ], Schedule.prototype, "eventRendered", void 0);
20285
- __decorate([
20309
+ __decorate$b([
20286
20310
  Event()
20287
20311
  ], Schedule.prototype, "dataBinding", void 0);
20288
- __decorate([
20312
+ __decorate$b([
20289
20313
  Event()
20290
20314
  ], Schedule.prototype, "popupOpen", void 0);
20291
- __decorate([
20315
+ __decorate$b([
20292
20316
  Event()
20293
20317
  ], Schedule.prototype, "popupClose", void 0);
20294
- __decorate([
20318
+ __decorate$b([
20295
20319
  Event()
20296
20320
  ], Schedule.prototype, "dragStart", void 0);
20297
- __decorate([
20321
+ __decorate$b([
20298
20322
  Event()
20299
20323
  ], Schedule.prototype, "drag", void 0);
20300
- __decorate([
20324
+ __decorate$b([
20301
20325
  Event()
20302
20326
  ], Schedule.prototype, "dragStop", void 0);
20303
- __decorate([
20327
+ __decorate$b([
20304
20328
  Event()
20305
20329
  ], Schedule.prototype, "resizeStart", void 0);
20306
- __decorate([
20330
+ __decorate$b([
20307
20331
  Event()
20308
20332
  ], Schedule.prototype, "resizing", void 0);
20309
- __decorate([
20333
+ __decorate$b([
20310
20334
  Event()
20311
20335
  ], Schedule.prototype, "resizeStop", void 0);
20312
- __decorate([
20336
+ __decorate$b([
20313
20337
  Event()
20314
20338
  ], Schedule.prototype, "virtualScrollStart", void 0);
20315
- __decorate([
20339
+ __decorate$b([
20316
20340
  Event()
20317
20341
  ], Schedule.prototype, "virtualScrollStop", void 0);
20318
- __decorate([
20342
+ __decorate$b([
20319
20343
  Event()
20320
20344
  ], Schedule.prototype, "dataBound", void 0);
20321
- Schedule = __decorate([
20345
+ Schedule = __decorate$b([
20322
20346
  NotifyPropertyChanges
20323
20347
  ], Schedule);
20324
20348
  return Schedule;
@@ -20707,7 +20731,6 @@ var ActionBase = /** @__PURE__ @class */ (function () {
20707
20731
  };
20708
20732
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
20709
20733
  ActionBase.prototype.renderDynamicElement = function (cellTd, element, isAppointment) {
20710
- if (isAppointment === void 0) { isAppointment = false; }
20711
20734
  if (cellTd.querySelector('.' + APPOINTMENT_WRAPPER_CLASS)) {
20712
20735
  cellTd.querySelector('.' + APPOINTMENT_WRAPPER_CLASS).appendChild(element);
20713
20736
  }
@@ -20786,7 +20809,7 @@ var ActionBase = /** @__PURE__ @class */ (function () {
20786
20809
  return ActionBase;
20787
20810
  }());
20788
20811
 
20789
- var __extends$15 = (undefined && undefined.__extends) || (function () {
20812
+ var __extends$f = (undefined && undefined.__extends) || (function () {
20790
20813
  var extendStatics = function (d, b) {
20791
20814
  extendStatics = Object.setPrototypeOf ||
20792
20815
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -20799,12 +20822,11 @@ var __extends$15 = (undefined && undefined.__extends) || (function () {
20799
20822
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
20800
20823
  };
20801
20824
  })();
20802
- /* eslint-disable @typescript-eslint/no-explicit-any */
20803
20825
  /**
20804
20826
  * Schedule events resize actions
20805
20827
  */
20806
20828
  var Resize = /** @__PURE__ @class */ (function (_super) {
20807
- __extends$15(Resize, _super);
20829
+ __extends$f(Resize, _super);
20808
20830
  function Resize() {
20809
20831
  return _super !== null && _super.apply(this, arguments) || this;
20810
20832
  }
@@ -20898,6 +20920,11 @@ var Resize = /** @__PURE__ @class */ (function (_super) {
20898
20920
  }
20899
20921
  var viewElement = _this.parent.element.querySelector('.' + CONTENT_WRAP_CLASS);
20900
20922
  _this.scrollArgs = { element: viewElement, width: viewElement.scrollWidth, height: viewElement.scrollHeight };
20923
+ // 883565 - To fix the resizing not working issue at the last column of the timeline view
20924
+ if (['Month', 'TimelineYear'].indexOf(_this.parent.currentView) < 0) {
20925
+ var scrollWidth = Math.round(_this.scrollArgs.width / _this.actionObj.cellWidth) * _this.actionObj.cellWidth;
20926
+ _this.scrollArgs.width = _this.scrollArgs.width < scrollWidth ? scrollWidth : _this.scrollArgs.width;
20927
+ }
20901
20928
  EventHandler.add(document, Browser.touchMoveEvent, _this.resizing, _this);
20902
20929
  EventHandler.add(document, Browser.touchEndEvent, _this.resizeStop, _this);
20903
20930
  });
@@ -21399,7 +21426,7 @@ var Resize = /** @__PURE__ @class */ (function (_super) {
21399
21426
  return Resize;
21400
21427
  }(ActionBase));
21401
21428
 
21402
- var __extends$17 = (undefined && undefined.__extends) || (function () {
21429
+ var __extends$g = (undefined && undefined.__extends) || (function () {
21403
21430
  var extendStatics = function (d, b) {
21404
21431
  extendStatics = Object.setPrototypeOf ||
21405
21432
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -21412,13 +21439,12 @@ var __extends$17 = (undefined && undefined.__extends) || (function () {
21412
21439
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
21413
21440
  };
21414
21441
  })();
21415
- /* eslint-disable @typescript-eslint/no-explicit-any */
21416
21442
  var EVENT_GAP$2 = 2;
21417
21443
  /**
21418
21444
  * Year view events render
21419
21445
  */
21420
21446
  var YearEvent = /** @__PURE__ @class */ (function (_super) {
21421
- __extends$17(YearEvent, _super);
21447
+ __extends$g(YearEvent, _super);
21422
21448
  function YearEvent(parent) {
21423
21449
  var _this = _super.call(this, parent, 'day') || this;
21424
21450
  _this.isResource = false;
@@ -21570,7 +21596,8 @@ var YearEvent = /** @__PURE__ @class */ (function (_super) {
21570
21596
  return "continue";
21571
21597
  }
21572
21598
  }
21573
- var enableAppRender = this_1.maxOrIndicator || (overlapIndex < eventsPerRow) || (this_1.cellHeight > availedHeight);
21599
+ var enableAppRender = this_1.maxOrIndicator || (overlapIndex < eventsPerRow) ||
21600
+ (this_1.cellHeight > availedHeight);
21574
21601
  if (this_1.parent.rowAutoHeight || enableAppRender || this_1.cellHeight > availedHeight) {
21575
21602
  this_1.renderEvent(eventWrapper, eventData, row, leftValue, rightValue, monthStart, dayIndex);
21576
21603
  if (this_1.parent.rowAutoHeight || this_1.cellHeight > availedHeight) {
@@ -21873,7 +21900,7 @@ var YearEvent = /** @__PURE__ @class */ (function (_super) {
21873
21900
  var eventObj = extend({}, record, null, true);
21874
21901
  if (this.parent.activeViewOptions.eventTemplate) {
21875
21902
  var templateId = this.parent.element.id + '_' + this.parent.activeViewOptions.eventTemplateName + 'eventTemplate';
21876
- templateElement = this.parent.getAppointmentTemplate()(eventObj, this.parent, 'eventTemplate', templateId, false);
21903
+ templateElement = this.parent.getAppointmentTemplate()(eventObj, this.parent, 'eventTemplate', templateId, false, undefined, undefined, this.parent.root);
21877
21904
  }
21878
21905
  else {
21879
21906
  var locationEle = (record[this.fields.location] || this.parent.eventSettings.fields.location.default || '');
@@ -22022,7 +22049,7 @@ var YearEvent = /** @__PURE__ @class */ (function (_super) {
22022
22049
  return YearEvent;
22023
22050
  }(TimelineEvent));
22024
22051
 
22025
- var __extends$16 = (undefined && undefined.__extends) || (function () {
22052
+ var __extends$h = (undefined && undefined.__extends) || (function () {
22026
22053
  var extendStatics = function (d, b) {
22027
22054
  extendStatics = Object.setPrototypeOf ||
22028
22055
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -22035,13 +22062,12 @@ var __extends$16 = (undefined && undefined.__extends) || (function () {
22035
22062
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
22036
22063
  };
22037
22064
  })();
22038
- /* eslint-disable @typescript-eslint/no-explicit-any */
22039
22065
  var MINUTES_PER_DAY = 1440;
22040
22066
  /**
22041
22067
  * Schedule events drag actions
22042
22068
  */
22043
22069
  var DragAndDrop = /** @__PURE__ @class */ (function (_super) {
22044
- __extends$16(DragAndDrop, _super);
22070
+ __extends$h(DragAndDrop, _super);
22045
22071
  function DragAndDrop() {
22046
22072
  var _this = _super !== null && _super.apply(this, arguments) || this;
22047
22073
  _this.widthUptoCursorPoint = 0;
@@ -22308,7 +22334,8 @@ var DragAndDrop = /** @__PURE__ @class */ (function (_super) {
22308
22334
  if (this.parent.quickPopup) {
22309
22335
  this.parent.quickPopup.quickPopupHide(true);
22310
22336
  }
22311
- if ((!isNullOrUndefined(e.target)) && e.target.classList && e.target.classList.contains(DISABLE_DATES)) {
22337
+ if ((!isNullOrUndefined(e.target)) && e.target.classList &&
22338
+ e.target.classList.contains(DISABLE_DATES)) {
22312
22339
  return;
22313
22340
  }
22314
22341
  var eventObj = extend({}, this.actionObj.event, null, true);
@@ -22552,13 +22579,13 @@ var DragAndDrop = /** @__PURE__ @class */ (function (_super) {
22552
22579
  if (this.parent.currentView === 'TimelineYear' && (!td.classList.contains(WORK_CELLS_CLASS) || td.classList.contains(OTHERMONTH_CLASS))) {
22553
22580
  return;
22554
22581
  }
22555
- var dragStart$$1 = this.parent.getDateFromElement(td);
22556
- var dragEnd = new Date(dragStart$$1.getTime());
22582
+ var dragStart = this.parent.getDateFromElement(td);
22583
+ var dragEnd = new Date(dragStart.getTime());
22557
22584
  dragEnd.setMilliseconds(eventDuration);
22558
22585
  if (this.parent.activeViewOptions.group.resources.length > 0) {
22559
22586
  this.actionObj.groupIndex = parseInt(td.getAttribute('data-group-index'), 10);
22560
22587
  }
22561
- this.actionObj.start = new Date(dragStart$$1.getTime());
22588
+ this.actionObj.start = new Date(dragStart.getTime());
22562
22589
  this.actionObj.end = new Date(dragEnd.getTime());
22563
22590
  this.actionObj.clone.style.top = formatUnit(td.offsetParent.offsetTop);
22564
22591
  this.actionObj.clone.style.left = formatUnit(td.offsetLeft);
@@ -22630,13 +22657,13 @@ var DragAndDrop = /** @__PURE__ @class */ (function (_super) {
22630
22657
  if (this.parent.activeViewOptions.group.resources.length > 0 && !this.parent.uiStateValues.isGroupAdaptive) {
22631
22658
  this.actionObj.groupIndex = parseInt(td.getAttribute('data-group-index'), 10);
22632
22659
  }
22633
- var dragStart$$1;
22660
+ var dragStart;
22634
22661
  var dragEnd;
22635
22662
  if (this.parent.activeViewOptions.timeScale.enable && !this.isAllDayDrag) {
22636
22663
  this.appendCloneElement(this.getEventWrapper(colIndex));
22637
- dragStart$$1 = this.parent.getDateFromElement(td);
22638
- dragStart$$1.setMinutes(dragStart$$1.getMinutes() + (diffInMinutes / heightPerMinute));
22639
- dragEnd = new Date(dragStart$$1.getTime());
22664
+ dragStart = this.parent.getDateFromElement(td);
22665
+ dragStart.setMinutes(dragStart.getMinutes() + (diffInMinutes / heightPerMinute));
22666
+ dragEnd = new Date(dragStart.getTime());
22640
22667
  if (this.actionObj.element.classList.contains(ALLDAY_APPOINTMENT_CLASS)) {
22641
22668
  dragEnd.setMinutes(dragEnd.getMinutes() + this.actionObj.slotInterval);
22642
22669
  }
@@ -22645,10 +22672,10 @@ var DragAndDrop = /** @__PURE__ @class */ (function (_super) {
22645
22672
  }
22646
22673
  }
22647
22674
  else {
22648
- dragStart$$1 = this.parent.getDateFromElement(td);
22649
- dragStart$$1.setDate(dragStart$$1.getDate() - this.daysVariation);
22650
- dragStart$$1.setHours(eventStart.getHours(), eventStart.getMinutes(), eventStart.getSeconds());
22651
- dragEnd = new Date(dragStart$$1.getTime());
22675
+ dragStart = this.parent.getDateFromElement(td);
22676
+ dragStart.setDate(dragStart.getDate() - this.daysVariation);
22677
+ dragStart.setHours(eventStart.getHours(), eventStart.getMinutes(), eventStart.getSeconds());
22678
+ dragEnd = new Date(dragStart.getTime());
22652
22679
  dragEnd.setMilliseconds(eventDuration);
22653
22680
  if (!this.actionObj.element.classList.contains(ALLDAY_APPOINTMENT_CLASS) &&
22654
22681
  this.actionObj.clone.classList.contains(ALLDAY_APPOINTMENT_CLASS)) {
@@ -22656,9 +22683,9 @@ var DragAndDrop = /** @__PURE__ @class */ (function (_super) {
22656
22683
  }
22657
22684
  var index_1 = this.parent.activeViewOptions.group.byDate || (this.parent.virtualScrollModule &&
22658
22685
  !this.parent.activeViewOptions.timeScale.enable) ? colIndex : undefined;
22659
- this.updateAllDayEvents(dragStart$$1, dragEnd, index_1);
22686
+ this.updateAllDayEvents(dragStart, dragEnd, index_1);
22660
22687
  }
22661
- this.actionObj.start = new Date(+dragStart$$1);
22688
+ this.actionObj.start = new Date(+dragStart);
22662
22689
  this.actionObj.end = new Date(+dragEnd);
22663
22690
  var event = this.getUpdatedEvent(this.actionObj.start, this.actionObj.end, this.actionObj.event);
22664
22691
  var dynamicWrappers = [].slice.call(this.parent.element.querySelectorAll('.e-dynamic-clone'));
@@ -22976,13 +23003,13 @@ var DragAndDrop = /** @__PURE__ @class */ (function (_super) {
22976
23003
  this.actionObj.groupIndex = parseInt(td.getAttribute('data-group-index'), 10);
22977
23004
  }
22978
23005
  var timeString = new Date(currentDate.setDate(currentDate.getDate() - this.daysVariation));
22979
- var dragStart$$1 = new Date(timeString.getTime());
23006
+ var dragStart = new Date(timeString.getTime());
22980
23007
  var startTimeDiff = getUniversalTime(eventObj[this.parent.eventFields.startTime]) -
22981
23008
  getUniversalTime(resetTime(new Date(+eventObj[this.parent.eventFields.startTime])));
22982
- dragStart$$1.setMilliseconds(startTimeDiff);
22983
- var dragEnd = new Date(dragStart$$1.getTime());
23009
+ dragStart.setMilliseconds(startTimeDiff);
23010
+ var dragEnd = new Date(dragStart.getTime());
22984
23011
  dragEnd.setMilliseconds(eventDuration);
22985
- this.actionObj.start = new Date(dragStart$$1.getTime());
23012
+ this.actionObj.start = new Date(dragStart.getTime());
22986
23013
  this.actionObj.end = new Date(dragEnd.getTime());
22987
23014
  }
22988
23015
  }
@@ -23398,10 +23425,11 @@ var ViewBase = /** @__PURE__ @class */ (function () {
23398
23425
  }
23399
23426
  });
23400
23427
  });
23401
- if (!isNullOrUndefined(this.parent.resourceBase.renderedResources) && this.parent.resourceBase.renderedResources.length > 0) {
23428
+ var rendereData = this.parent.resourceBase.renderedResources;
23429
+ if (!isNullOrUndefined(rendereData) && rendereData.length > 0) {
23402
23430
  for (var i = 0; i < resourceTd.length; i++) {
23403
23431
  var element = resourceTd[parseInt(i.toString(), 10)];
23404
- var data = this.parent.resourceBase.renderedResources[parseInt(i.toString(), 10)];
23432
+ var data = rendereData[parseInt(i.toString(), 10)];
23405
23433
  if (this.parent.activeView && !isNullOrUndefined(element) && !isNullOrUndefined(data)
23406
23434
  && parseInt(element.getAttribute('data-group-index'), 10) === data.groupIndex) {
23407
23435
  this.parent.activeView.setResourceHeaderContent(element, data, RESOURCE_TEXT_CLASS);
@@ -23463,9 +23491,15 @@ var ViewBase = /** @__PURE__ @class */ (function () {
23463
23491
  };
23464
23492
  ViewBase.prototype.setAriaAttributes = function (table) {
23465
23493
  table.setAttribute('role', 'grid');
23494
+ if (this.parent.currentView !== 'Year') {
23495
+ table.setAttribute('id', this.parent.element.id + '_table');
23496
+ }
23466
23497
  table.setAttribute('aria-label', this.getLabelText(this.parent.currentView));
23467
23498
  };
23468
23499
  ViewBase.prototype.createColGroup = function (table, lastRow) {
23500
+ if (isNullOrUndefined(lastRow)) {
23501
+ return;
23502
+ }
23469
23503
  var length = lastRow.length;
23470
23504
  if (lastRow[0] && lastRow[0].colSpan) {
23471
23505
  length = lastRow.map(function (value) { return value.colSpan; }).reduce(function (prev, next) { return prev + next; });
@@ -23609,7 +23643,7 @@ var ViewBase = /** @__PURE__ @class */ (function () {
23609
23643
  };
23610
23644
  ViewBase.prototype.isWorkDay = function (date, workDays) {
23611
23645
  if (workDays === void 0) { workDays = this.parent.activeViewOptions.workDays; }
23612
- if (workDays.indexOf(date.getDay()) >= 0) {
23646
+ if (!isNullOrUndefined(workDays) && workDays.indexOf(date.getDay()) >= 0) {
23613
23647
  return true;
23614
23648
  }
23615
23649
  return false;
@@ -23707,9 +23741,29 @@ var ViewBase = /** @__PURE__ @class */ (function () {
23707
23741
  var weekLength = type === 'next' ? WEEK_LENGTH : -WEEK_LENGTH;
23708
23742
  return addDays(this.parent.selectedDate, weekLength * this.parent.activeViewOptions.interval);
23709
23743
  };
23744
+ ViewBase.prototype.formatViewLabel = function (view, startDate, endDate) {
23745
+ var formatOptions = { type: 'date', skeleton: 'full', calendar: this.parent.getCalendarMode() };
23746
+ return this.parent.localeObj.getConstant(view) + ' ' + this.parent.localeObj.getConstant('start') + ' ' + this.parent.globalize.formatDate(startDate, formatOptions) + ' '
23747
+ + this.parent.localeObj.getConstant('endAt') + ' ' + this.parent.globalize.formatDate(endDate, formatOptions);
23748
+ };
23710
23749
  ViewBase.prototype.getLabelText = function (view) {
23711
23750
  var viewStr = view.charAt(0).toLowerCase() + view.substring(1);
23712
- return this.parent.localeObj.getConstant(viewStr) + ' of ' + capitalizeFirstWord(this.parent.globalize.formatDate(this.parent.selectedDate, { skeleton: 'long', calendar: this.parent.getCalendarMode() }), 'single');
23751
+ if (view === 'Year' || view === 'TimelineYear') {
23752
+ return this.formatViewLabel(viewStr, this.parent.activeView.getStartDate(), this.parent.activeView.getEndDate());
23753
+ }
23754
+ else {
23755
+ if (this.renderDates.length > 0) {
23756
+ if (this.parent.currentView === 'Day' || this.parent.currentView === 'TimelineDay') {
23757
+ return this.parent.localeObj.getConstant(viewStr) + ' of ' + capitalizeFirstWord(this.parent.globalize.formatDate(this.parent.selectedDate, { type: 'date', skeleton: 'full', calendar: this.parent.getCalendarMode() }), 'single');
23758
+ }
23759
+ else {
23760
+ return this.formatViewLabel(viewStr, this.renderDates[0], this.renderDates[this.renderDates.length - 1]);
23761
+ }
23762
+ }
23763
+ else {
23764
+ return '';
23765
+ }
23766
+ }
23713
23767
  };
23714
23768
  ViewBase.prototype.getDateRangeText = function () {
23715
23769
  if (this.parent.isAdaptive) {
@@ -23736,7 +23790,7 @@ var ViewBase = /** @__PURE__ @class */ (function () {
23736
23790
  }
23737
23791
  var formattedStr;
23738
23792
  var longDateFormat;
23739
- if (this.parent.locale === 'en' || this.parent.locale === 'en-US') {
23793
+ if (isNullOrUndefined(this.parent.locale) || this.parent.locale === 'en' || this.parent.locale === 'en-US') {
23740
23794
  longDateFormat = getValue('dateFormats.long', getDefaultDateObject(mode));
23741
23795
  }
23742
23796
  else {
@@ -23800,7 +23854,7 @@ var ViewBase = /** @__PURE__ @class */ (function () {
23800
23854
  var scheduleId = this.parent.element.id + '_';
23801
23855
  var viewName = this.parent.activeViewOptions.resourceHeaderTemplateName;
23802
23856
  var templateId = scheduleId + viewName + 'resourceHeaderTemplate';
23803
- var quickTemplate = [].slice.call(this.parent.getResourceHeaderTemplate()(data, this.parent, 'resourceHeaderTemplate', templateId, false));
23857
+ var quickTemplate = [].slice.call(this.parent.getResourceHeaderTemplate()(data, this.parent, 'resourceHeaderTemplate', templateId, false, undefined, undefined, this.parent.root));
23804
23858
  append(quickTemplate, tdElement);
23805
23859
  }
23806
23860
  else {
@@ -23972,7 +24026,7 @@ var ViewBase = /** @__PURE__ @class */ (function () {
23972
24026
  return ViewBase;
23973
24027
  }());
23974
24028
 
23975
- var __extends$19 = (undefined && undefined.__extends) || (function () {
24029
+ var __extends$i = (undefined && undefined.__extends) || (function () {
23976
24030
  var extendStatics = function (d, b) {
23977
24031
  extendStatics = Object.setPrototypeOf ||
23978
24032
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -23989,7 +24043,7 @@ var __extends$19 = (undefined && undefined.__extends) || (function () {
23989
24043
  * vertical view
23990
24044
  */
23991
24045
  var VerticalView = /** @__PURE__ @class */ (function (_super) {
23992
- __extends$19(VerticalView, _super);
24046
+ __extends$i(VerticalView, _super);
23993
24047
  function VerticalView(parent) {
23994
24048
  var _this = _super.call(this, parent) || this;
23995
24049
  _this.viewClass = 'e-day-view';
@@ -24100,6 +24154,9 @@ var VerticalView = /** @__PURE__ @class */ (function (_super) {
24100
24154
  this.highlightCurrentTime();
24101
24155
  }
24102
24156
  this.retainScrollPosition();
24157
+ if (!isNullOrUndefined(timeCells) && !isNullOrUndefined(content) && timeCells.scrollTop !== content.scrollTop) {
24158
+ timeCells.scrollTop = content.scrollTop;
24159
+ }
24103
24160
  };
24104
24161
  VerticalView.prototype.setContentHeight = function (element, leftPanelElement, height) {
24105
24162
  if (this.parent.isAdaptive && !this.isTimelineView()) {
@@ -24185,12 +24242,12 @@ var VerticalView = /** @__PURE__ @class */ (function (_super) {
24185
24242
  var end = this.parent.getStartEndTime(workEndHour);
24186
24243
  for (var _i = 0, renderDates_1 = renderDates; _i < renderDates_1.length; _i++) {
24187
24244
  var col = renderDates_1[_i];
24188
- var classList$$1 = [HEADER_CELLS_CLASS];
24245
+ var classList = [HEADER_CELLS_CLASS];
24189
24246
  if (this.isCurrentDate(col)) {
24190
- classList$$1.push(CURRENT_DAY_CLASS);
24247
+ classList.push(CURRENT_DAY_CLASS);
24191
24248
  }
24192
24249
  dateCol.push({
24193
- date: col, type: 'dateHeader', className: classList$$1, colSpan: 1,
24250
+ date: col, type: 'dateHeader', className: classList, colSpan: 1,
24194
24251
  workDays: workDays, startHour: new Date(+start), endHour: new Date(+end)
24195
24252
  });
24196
24253
  }
@@ -24350,7 +24407,7 @@ var VerticalView = /** @__PURE__ @class */ (function (_super) {
24350
24407
  templateName = 'dateHeaderTemplate';
24351
24408
  var args = { date: date, type: type };
24352
24409
  var viewName = this.parent.activeViewOptions.dateHeaderTemplateName;
24353
- cntEle = [].slice.call(this.parent.getDateHeaderTemplate()(args, this.parent, templateName, templateId + viewName + templateName, false));
24410
+ cntEle = [].slice.call(this.parent.getDateHeaderTemplate()(args, this.parent, templateName, templateId + viewName + templateName, false, undefined, undefined, this.parent.root));
24354
24411
  }
24355
24412
  else {
24356
24413
  wrapper.innerHTML = this.parent.activeView.isTimelineView() ?
@@ -24364,7 +24421,7 @@ var VerticalView = /** @__PURE__ @class */ (function (_super) {
24364
24421
  if (this.parent.activeViewOptions.timeScale.majorSlotTemplate) {
24365
24422
  templateName = 'majorSlotTemplate';
24366
24423
  var args = { date: date, type: type };
24367
- cntEle = [].slice.call(this.parent.getMajorSlotTemplate()(args, this.parent, templateName, templateId + templateName, false));
24424
+ cntEle = [].slice.call(this.parent.getMajorSlotTemplate()(args, this.parent, templateName, templateId + templateName, false, undefined, undefined, this.parent.root));
24368
24425
  }
24369
24426
  else {
24370
24427
  wrapper.innerHTML = "<span>" + this.getTime(date) + "</span>";
@@ -24375,7 +24432,7 @@ var VerticalView = /** @__PURE__ @class */ (function (_super) {
24375
24432
  if (this.parent.activeViewOptions.timeScale.minorSlotTemplate) {
24376
24433
  templateName = 'minorSlotTemplate';
24377
24434
  var args = { date: date, type: type };
24378
- cntEle = [].slice.call(this.parent.getMinorSlotTemplate()(args, this.parent, templateName, templateId + templateName, false));
24435
+ cntEle = [].slice.call(this.parent.getMinorSlotTemplate()(args, this.parent, templateName, templateId + templateName, false, undefined, undefined, this.parent.root));
24379
24436
  }
24380
24437
  else {
24381
24438
  cntEle = [].slice.call(wrapper.childNodes);
@@ -24386,7 +24443,7 @@ var VerticalView = /** @__PURE__ @class */ (function (_super) {
24386
24443
  var viewName = this.parent.activeViewOptions.cellTemplateName;
24387
24444
  templateName = 'cellTemplate';
24388
24445
  var args = { date: date, type: type, groupIndex: groupIndex };
24389
- cntEle = [].slice.call(this.parent.getCellTemplate()(args, this.parent, templateName, templateId + viewName + templateName, false));
24446
+ cntEle = [].slice.call(this.parent.getCellTemplate()(args, this.parent, templateName, templateId + viewName + templateName, false, undefined, undefined, this.parent.root));
24390
24447
  }
24391
24448
  break;
24392
24449
  }
@@ -24505,7 +24562,8 @@ var VerticalView = /** @__PURE__ @class */ (function (_super) {
24505
24562
  var appointmentExpandCollapse = createElement('div', {
24506
24563
  attrs: {
24507
24564
  'tabindex': '0', 'role': 'list',
24508
- title: this.parent.localeObj.getConstant('expandAllDaySection'), 'aria-disabled': 'false', 'aria-label': 'Expand section'
24565
+ title: this.parent.localeObj.getConstant('expandAllDaySection'), 'aria-disabled': 'false',
24566
+ 'aria-label': this.parent.localeObj.getConstant('expandAllDaySection')
24509
24567
  },
24510
24568
  className: ALLDAY_APPOINTMENT_SECTION_CLASS + ' ' + APPOINTMENT_ROW_EXPAND_CLASS + ' ' +
24511
24569
  ICON + ' ' + DISABLE_CLASS
@@ -24662,7 +24720,7 @@ var VerticalView = /** @__PURE__ @class */ (function (_super) {
24662
24720
  if (!this.parent.isMinMaxDate(cellDate)) {
24663
24721
  clsName.push(DISABLE_DATES);
24664
24722
  }
24665
- setTime(cellDate, getDateInMs(r.date));
24723
+ cellDate = new Date(cellDate.setHours(r.date.getHours(), r.date.getMinutes(), r.date.getSeconds(), r.date.getMilliseconds()));
24666
24724
  var type = 'workCells';
24667
24725
  if (tdData.className.indexOf(RESOURCE_PARENT_CLASS) !== -1) {
24668
24726
  clsName.push(RESOURCE_GROUP_CELLS_CLASS);
@@ -24679,7 +24737,7 @@ var VerticalView = /** @__PURE__ @class */ (function (_super) {
24679
24737
  var scheduleId = this.parent.element.id + '_';
24680
24738
  var viewName = this.parent.activeViewOptions.cellTemplateName;
24681
24739
  var templateId = scheduleId + viewName + 'cellTemplate';
24682
- var tooltipTemplate = [].slice.call(this.parent.getCellTemplate()(args_1, this.parent, 'cellTemplate', templateId, false));
24740
+ var tooltipTemplate = [].slice.call(this.parent.getCellTemplate()(args_1, this.parent, 'cellTemplate', templateId, false, undefined, undefined, this.parent.root));
24683
24741
  append(tooltipTemplate, ntd);
24684
24742
  }
24685
24743
  ntd.setAttribute('data-date', cellDate.getTime().toString());
@@ -24735,10 +24793,21 @@ var VerticalView = /** @__PURE__ @class */ (function (_super) {
24735
24793
  end.setMilliseconds(end.getMilliseconds() + msInterval);
24736
24794
  return end;
24737
24795
  };
24796
+ VerticalView.prototype.getStartEndHours = function (startEndTime) {
24797
+ if (!isNullOrUndefined(startEndTime) && startEndTime !== '') {
24798
+ var startEndDate = new Date(2000, 0, 0, 0);
24799
+ var timeString = startEndTime.split(':');
24800
+ if (timeString.length === 2) {
24801
+ startEndDate.setHours(parseInt(timeString[0], 10), parseInt(timeString[1], 10), 0);
24802
+ }
24803
+ return startEndDate;
24804
+ }
24805
+ return new Date(2000, 0, 0, 0);
24806
+ };
24738
24807
  VerticalView.prototype.getTimeSlotRows = function (handler) {
24739
24808
  var rows = [];
24740
- var startHour = this.getStartHour();
24741
- var endHour = this.getEndHour();
24809
+ var startHour = this.getStartEndHours(this.parent.activeViewOptions.startHour);
24810
+ var endHour = this.getStartEndHours(this.parent.activeViewOptions.endHour);
24742
24811
  var msMajorInterval = this.parent.activeViewOptions.timeScale.interval * MS_PER_MINUTE;
24743
24812
  var msInterval = msMajorInterval / this.parent.activeViewOptions.timeScale.slotCount;
24744
24813
  var length = Math.round(MS_PER_DAY / msInterval);
@@ -24821,7 +24890,7 @@ var VerticalView = /** @__PURE__ @class */ (function (_super) {
24821
24890
  return VerticalView;
24822
24891
  }(ViewBase));
24823
24892
 
24824
- var __extends$18 = (undefined && undefined.__extends) || (function () {
24893
+ var __extends$j = (undefined && undefined.__extends) || (function () {
24825
24894
  var extendStatics = function (d, b) {
24826
24895
  extendStatics = Object.setPrototypeOf ||
24827
24896
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -24838,7 +24907,7 @@ var __extends$18 = (undefined && undefined.__extends) || (function () {
24838
24907
  * day view
24839
24908
  */
24840
24909
  var Day = /** @__PURE__ @class */ (function (_super) {
24841
- __extends$18(Day, _super);
24910
+ __extends$j(Day, _super);
24842
24911
  /**
24843
24912
  * Constructor for day view
24844
24913
  *
@@ -24860,7 +24929,7 @@ var Day = /** @__PURE__ @class */ (function (_super) {
24860
24929
  return Day;
24861
24930
  }(VerticalView));
24862
24931
 
24863
- var __extends$20 = (undefined && undefined.__extends) || (function () {
24932
+ var __extends$k = (undefined && undefined.__extends) || (function () {
24864
24933
  var extendStatics = function (d, b) {
24865
24934
  extendStatics = Object.setPrototypeOf ||
24866
24935
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -24877,7 +24946,7 @@ var __extends$20 = (undefined && undefined.__extends) || (function () {
24877
24946
  * week view
24878
24947
  */
24879
24948
  var Week = /** @__PURE__ @class */ (function (_super) {
24880
- __extends$20(Week, _super);
24949
+ __extends$k(Week, _super);
24881
24950
  /**
24882
24951
  * Constructor for week view
24883
24952
  *
@@ -24905,7 +24974,7 @@ var Week = /** @__PURE__ @class */ (function (_super) {
24905
24974
  return Week;
24906
24975
  }(VerticalView));
24907
24976
 
24908
- var __extends$21 = (undefined && undefined.__extends) || (function () {
24977
+ var __extends$l = (undefined && undefined.__extends) || (function () {
24909
24978
  var extendStatics = function (d, b) {
24910
24979
  extendStatics = Object.setPrototypeOf ||
24911
24980
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -24922,7 +24991,7 @@ var __extends$21 = (undefined && undefined.__extends) || (function () {
24922
24991
  * work week view
24923
24992
  */
24924
24993
  var WorkWeek = /** @__PURE__ @class */ (function (_super) {
24925
- __extends$21(WorkWeek, _super);
24994
+ __extends$l(WorkWeek, _super);
24926
24995
  /**
24927
24996
  * Constructor for work week view
24928
24997
  *
@@ -24950,7 +25019,7 @@ var WorkWeek = /** @__PURE__ @class */ (function (_super) {
24950
25019
  return WorkWeek;
24951
25020
  }(VerticalView));
24952
25021
 
24953
- var __extends$22 = (undefined && undefined.__extends) || (function () {
25022
+ var __extends$m = (undefined && undefined.__extends) || (function () {
24954
25023
  var extendStatics = function (d, b) {
24955
25024
  extendStatics = Object.setPrototypeOf ||
24956
25025
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -24963,12 +25032,11 @@ var __extends$22 = (undefined && undefined.__extends) || (function () {
24963
25032
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
24964
25033
  };
24965
25034
  })();
24966
- /* eslint-disable @typescript-eslint/no-explicit-any */
24967
25035
  /**
24968
25036
  * month view
24969
25037
  */
24970
25038
  var Month = /** @__PURE__ @class */ (function (_super) {
24971
- __extends$22(Month, _super);
25039
+ __extends$m(Month, _super);
24972
25040
  function Month(parent) {
24973
25041
  var _this = _super.call(this, parent) || this;
24974
25042
  _this.dayNameFormat = 'wide';
@@ -25118,12 +25186,12 @@ var Month = /** @__PURE__ @class */ (function (_super) {
25118
25186
  var dateSlots = [];
25119
25187
  var isCurrentMonth = this.isCurrentMonth(this.parent.selectedDate);
25120
25188
  for (var col = 0; col < count; col++) {
25121
- var classList$$1 = [HEADER_CELLS_CLASS];
25189
+ var classList = [HEADER_CELLS_CLASS];
25122
25190
  var currentDateIndex = renderDates.slice(0, count).map(function (date) { return date.getDay(); });
25123
25191
  if (isCurrentMonth && currentDateIndex.indexOf(this.parent.currentTimezoneDate.getDay()) === col) {
25124
- classList$$1.push(CURRENT_DAY_CLASS);
25192
+ classList.push(CURRENT_DAY_CLASS);
25125
25193
  }
25126
- dateSlots.push({ date: renderDates[parseInt(col.toString(), 10)], type: 'monthDay', className: classList$$1, colSpan: 1, workDays: workDays });
25194
+ dateSlots.push({ date: renderDates[parseInt(col.toString(), 10)], type: 'monthDay', className: classList, colSpan: 1, workDays: workDays });
25127
25195
  }
25128
25196
  return dateSlots;
25129
25197
  };
@@ -25293,7 +25361,7 @@ var Month = /** @__PURE__ @class */ (function (_super) {
25293
25361
  var elementId = this.parent.element.id + '_';
25294
25362
  var viewName = this.parent.activeViewOptions.dateHeaderTemplateName;
25295
25363
  var templateId = elementId + viewName + 'dateHeaderTemplate';
25296
- var dateTemplate = [].slice.call(this.parent.getDateHeaderTemplate()(cellArgs, this.parent, 'dateHeaderTemplate', templateId, false));
25364
+ var dateTemplate = [].slice.call(this.parent.getDateHeaderTemplate()(cellArgs, this.parent, 'dateHeaderTemplate', templateId, false, undefined, undefined, this.parent.root));
25297
25365
  if (dateTemplate && dateTemplate.length) {
25298
25366
  append(dateTemplate, tdEle);
25299
25367
  }
@@ -25320,10 +25388,10 @@ var Month = /** @__PURE__ @class */ (function (_super) {
25320
25388
  return [];
25321
25389
  }
25322
25390
  var slotDatas = [];
25323
- var prepareSlots = function (rowIndex, renderDate, resData, classList$$1) {
25391
+ var prepareSlots = function (rowIndex, renderDate, resData, classList) {
25324
25392
  var data = {
25325
25393
  date: new Date(+renderDate), groupIndex: resData.groupIndex, workDays: resData.workDays,
25326
- type: 'monthCells', className: classList$$1 || [WORK_CELLS_CLASS]
25394
+ type: 'monthCells', className: classList || [WORK_CELLS_CLASS]
25327
25395
  };
25328
25396
  if (!slotDatas[parseInt(rowIndex.toString(), 10)]) {
25329
25397
  slotDatas[parseInt(rowIndex.toString(), 10)] = [];
@@ -25469,7 +25537,7 @@ var Month = /** @__PURE__ @class */ (function (_super) {
25469
25537
  var scheduleId = this.parent.element.id + '_';
25470
25538
  var viewName = this.parent.activeViewOptions.cellTemplateName;
25471
25539
  var templateId = scheduleId + viewName + 'cellTemplate';
25472
- var cellTemplate = [].slice.call(this.parent.getCellTemplate()(args_1, this.parent, 'cellTemplate', templateId, false));
25540
+ var cellTemplate = [].slice.call(this.parent.getCellTemplate()(args_1, this.parent, 'cellTemplate', templateId, false, undefined, undefined, this.parent.root));
25473
25541
  append(cellTemplate, ntd);
25474
25542
  }
25475
25543
  var args = { elementType: type, element: ntd, date: data.date, groupIndex: data.groupIndex };
@@ -25486,7 +25554,7 @@ var Month = /** @__PURE__ @class */ (function (_super) {
25486
25554
  var scheduleId = this.parent.element.id + '_';
25487
25555
  var viewName = this.parent.activeViewOptions.cellHeaderTemplateName;
25488
25556
  var templateId = scheduleId + viewName + 'cellHeaderTemplate';
25489
- var cellHeaderTemplate = [].slice.call(this.parent.getCellHeaderTemplate()(args, this.parent, 'cellHeaderTemplate', templateId, false));
25557
+ var cellHeaderTemplate = [].slice.call(this.parent.getCellHeaderTemplate()(args, this.parent, 'cellHeaderTemplate', templateId, false, undefined, undefined, this.parent.root));
25490
25558
  append(cellHeaderTemplate, dateHeader);
25491
25559
  }
25492
25560
  else {
@@ -25616,7 +25684,8 @@ var Month = /** @__PURE__ @class */ (function (_super) {
25616
25684
  return this.formatDateRange(this.parent.selectedDate);
25617
25685
  };
25618
25686
  Month.prototype.getLabelText = function (view) {
25619
- return this.parent.localeObj.getConstant(view) + ' of ' + capitalizeFirstWord(this.parent.globalize.formatDate(this.parent.selectedDate, { format: 'MMMM y', calendar: this.parent.getCalendarMode() }), 'single');
25687
+ var viewStr = view.charAt(0).toLowerCase() + view.substring(1);
25688
+ return this.formatViewLabel(viewStr, this.getStartDate(), this.getEndDate());
25620
25689
  };
25621
25690
  Month.prototype.createWeekNumberElement = function (text) {
25622
25691
  var tr = createElement('tr');
@@ -25665,7 +25734,7 @@ var Month = /** @__PURE__ @class */ (function (_super) {
25665
25734
  return Month;
25666
25735
  }(ViewBase));
25667
25736
 
25668
- var __extends$23 = (undefined && undefined.__extends) || (function () {
25737
+ var __extends$n = (undefined && undefined.__extends) || (function () {
25669
25738
  var extendStatics = function (d, b) {
25670
25739
  extendStatics = Object.setPrototypeOf ||
25671
25740
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -25678,12 +25747,11 @@ var __extends$23 = (undefined && undefined.__extends) || (function () {
25678
25747
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
25679
25748
  };
25680
25749
  })();
25681
- /* eslint-disable @typescript-eslint/no-explicit-any */
25682
25750
  /**
25683
25751
  * year view
25684
25752
  */
25685
25753
  var Year = /** @__PURE__ @class */ (function (_super) {
25686
- __extends$23(Year, _super);
25754
+ __extends$n(Year, _super);
25687
25755
  function Year(parent) {
25688
25756
  var _this = _super.call(this, parent) || this;
25689
25757
  _this.viewClass = 'e-year-view';
@@ -25828,18 +25896,18 @@ var Year = /** @__PURE__ @class */ (function (_super) {
25828
25896
  var args = { date: date, type: 'monthCells' };
25829
25897
  this.renderTemplates(this.parent.getCellTemplate(), args, 'cellTemplate', this.parent.activeViewOptions.cellTemplateName, td);
25830
25898
  }
25831
- var classList$$1 = [];
25899
+ var classList = [];
25832
25900
  if (currentDate.getMonth() !== date.getMonth()) {
25833
- classList$$1.push(OTHERMONTH_CLASS);
25901
+ classList.push(OTHERMONTH_CLASS);
25834
25902
  if (td.firstElementChild && !this.parent.activeViewOptions.cellTemplate) {
25835
25903
  td.firstElementChild.setAttribute('aria-disabled', 'true');
25836
25904
  }
25837
25905
  }
25838
25906
  if (this.isCurrentDate(date) && currentDate.getMonth() === date.getMonth()) {
25839
- classList$$1 = classList$$1.concat(['e-today', 'e-selected']);
25907
+ classList = classList.concat(['e-today', 'e-selected']);
25840
25908
  }
25841
- if (classList$$1.length > 0) {
25842
- addClass([td], classList$$1);
25909
+ if (classList.length > 0) {
25910
+ addClass([td], classList);
25843
25911
  }
25844
25912
  tr_1.appendChild(td);
25845
25913
  if (currentDate.getMonth() === date.getMonth()) {
@@ -25941,7 +26009,7 @@ var Year = /** @__PURE__ @class */ (function (_super) {
25941
26009
  };
25942
26010
  Year.prototype.renderTemplates = function (fn, args, tName, vName, ele) {
25943
26011
  var templateId = this.parent.element.id + '_' + vName + tName;
25944
- var template = [].slice.call(fn(args, this.parent, tName, templateId, false));
26012
+ var template = [].slice.call(fn(args, this.parent, tName, templateId, false, undefined, undefined, this.parent.root));
25945
26013
  append(template, ele);
25946
26014
  };
25947
26015
  Year.prototype.onCellClick = function (e) {
@@ -26110,7 +26178,7 @@ var Year = /** @__PURE__ @class */ (function (_super) {
26110
26178
  return Year;
26111
26179
  }(ViewBase));
26112
26180
 
26113
- var __extends$25 = (undefined && undefined.__extends) || (function () {
26181
+ var __extends$o = (undefined && undefined.__extends) || (function () {
26114
26182
  var extendStatics = function (d, b) {
26115
26183
  extendStatics = Object.setPrototypeOf ||
26116
26184
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -26123,9 +26191,8 @@ var __extends$25 = (undefined && undefined.__extends) || (function () {
26123
26191
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
26124
26192
  };
26125
26193
  })();
26126
- /* eslint-disable @typescript-eslint/no-explicit-any */
26127
26194
  var AgendaBase = /** @__PURE__ @class */ (function (_super) {
26128
- __extends$25(AgendaBase, _super);
26195
+ __extends$o(AgendaBase, _super);
26129
26196
  function AgendaBase(parent) {
26130
26197
  return _super.call(this, parent) || this;
26131
26198
  }
@@ -26174,7 +26241,7 @@ var AgendaBase = /** @__PURE__ @class */ (function (_super) {
26174
26241
  var scheduleId = _this.parent.element.id + '_';
26175
26242
  var viewName = _this.parent.activeViewOptions.eventTemplateName;
26176
26243
  var templateId = scheduleId + viewName + 'eventTemplate';
26177
- templateEle = _this.parent.getAppointmentTemplate()(listData[parseInt(li.toString(), 10)], _this.parent, 'eventTemplate', templateId, false);
26244
+ templateEle = _this.parent.getAppointmentTemplate()(listData[parseInt(li.toString(), 10)], _this.parent, 'eventTemplate', templateId, false, undefined, undefined, _this.parent.root);
26178
26245
  if (!isNullOrUndefined(listData[parseInt(li.toString(), 10)][fieldMapping.recurrenceRule])) {
26179
26246
  var iconClass = (listData[parseInt(li.toString(), 10)][fieldMapping.id] ===
26180
26247
  listData[parseInt(li.toString(), 10)][fieldMapping.recurrenceID]) ?
@@ -26478,7 +26545,7 @@ var AgendaBase = /** @__PURE__ @class */ (function (_super) {
26478
26545
  var scheduleId = this.parent.element.id + '_';
26479
26546
  var viewName = this.parent.activeViewOptions.dateHeaderTemplateName;
26480
26547
  var templateId = scheduleId + viewName + 'dateHeaderTemplate';
26481
- var dateTemplate = [].slice.call(this.parent.getDateHeaderTemplate()(args, this.parent, 'dateHeaderTemplate', templateId, false));
26548
+ var dateTemplate = [].slice.call(this.parent.getDateHeaderTemplate()(args, this.parent, 'dateHeaderTemplate', templateId, false, undefined, undefined, this.parent.root));
26482
26549
  append(dateTemplate, dateHeader);
26483
26550
  }
26484
26551
  else {
@@ -26521,7 +26588,7 @@ var AgendaBase = /** @__PURE__ @class */ (function (_super) {
26521
26588
  return AgendaBase;
26522
26589
  }(ViewBase));
26523
26590
 
26524
- var __extends$24 = (undefined && undefined.__extends) || (function () {
26591
+ var __extends$p = (undefined && undefined.__extends) || (function () {
26525
26592
  var extendStatics = function (d, b) {
26526
26593
  extendStatics = Object.setPrototypeOf ||
26527
26594
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -26534,12 +26601,11 @@ var __extends$24 = (undefined && undefined.__extends) || (function () {
26534
26601
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
26535
26602
  };
26536
26603
  })();
26537
- /* eslint-disable @typescript-eslint/no-explicit-any */
26538
26604
  /**
26539
26605
  * agenda view
26540
26606
  */
26541
26607
  var Agenda = /** @__PURE__ @class */ (function (_super) {
26542
- __extends$24(Agenda, _super);
26608
+ __extends$p(Agenda, _super);
26543
26609
  function Agenda(parent) {
26544
26610
  var _this = _super.call(this, parent) || this;
26545
26611
  _this.viewClass = 'e-agenda-view';
@@ -27015,7 +27081,7 @@ var Agenda = /** @__PURE__ @class */ (function (_super) {
27015
27081
  return Agenda;
27016
27082
  }(AgendaBase));
27017
27083
 
27018
- var __extends$26 = (undefined && undefined.__extends) || (function () {
27084
+ var __extends$q = (undefined && undefined.__extends) || (function () {
27019
27085
  var extendStatics = function (d, b) {
27020
27086
  extendStatics = Object.setPrototypeOf ||
27021
27087
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -27028,12 +27094,11 @@ var __extends$26 = (undefined && undefined.__extends) || (function () {
27028
27094
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
27029
27095
  };
27030
27096
  })();
27031
- /* eslint-disable @typescript-eslint/no-explicit-any */
27032
27097
  /**
27033
27098
  * month agenda view
27034
27099
  */
27035
27100
  var MonthAgenda = /** @__PURE__ @class */ (function (_super) {
27036
- __extends$26(MonthAgenda, _super);
27101
+ __extends$q(MonthAgenda, _super);
27037
27102
  function MonthAgenda(parent) {
27038
27103
  var _this = _super.call(this, parent) || this;
27039
27104
  _this.dayNameFormat = 'narrow';
@@ -27318,7 +27383,7 @@ var TimelineHeaderRow = /** @__PURE__ @class */ (function () {
27318
27383
  return TimelineHeaderRow;
27319
27384
  }());
27320
27385
 
27321
- var __extends$27 = (undefined && undefined.__extends) || (function () {
27386
+ var __extends$r = (undefined && undefined.__extends) || (function () {
27322
27387
  var extendStatics = function (d, b) {
27323
27388
  extendStatics = Object.setPrototypeOf ||
27324
27389
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -27335,7 +27400,7 @@ var __extends$27 = (undefined && undefined.__extends) || (function () {
27335
27400
  * timeline views
27336
27401
  */
27337
27402
  var TimelineViews = /** @__PURE__ @class */ (function (_super) {
27338
- __extends$27(TimelineViews, _super);
27403
+ __extends$r(TimelineViews, _super);
27339
27404
  function TimelineViews(parent) {
27340
27405
  var _this = _super.call(this, parent) || this;
27341
27406
  _this.timelineAppointment = null;
@@ -27600,7 +27665,7 @@ var TimelineViews = /** @__PURE__ @class */ (function (_super) {
27600
27665
  return TimelineViews;
27601
27666
  }(VerticalView));
27602
27667
 
27603
- var __extends$28 = (undefined && undefined.__extends) || (function () {
27668
+ var __extends$s = (undefined && undefined.__extends) || (function () {
27604
27669
  var extendStatics = function (d, b) {
27605
27670
  extendStatics = Object.setPrototypeOf ||
27606
27671
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -27617,7 +27682,7 @@ var __extends$28 = (undefined && undefined.__extends) || (function () {
27617
27682
  * timeline month view
27618
27683
  */
27619
27684
  var TimelineMonth = /** @__PURE__ @class */ (function (_super) {
27620
- __extends$28(TimelineMonth, _super);
27685
+ __extends$s(TimelineMonth, _super);
27621
27686
  function TimelineMonth(parent) {
27622
27687
  var _this = _super.call(this, parent) || this;
27623
27688
  _this.viewClass = 'e-timeline-month-view';
@@ -27650,11 +27715,11 @@ var TimelineMonth = /** @__PURE__ @class */ (function (_super) {
27650
27715
  var dateSlots = [];
27651
27716
  for (var _i = 0, renderDates_1 = renderDates; _i < renderDates_1.length; _i++) {
27652
27717
  var col = renderDates_1[_i];
27653
- var classList$$1 = [HEADER_CELLS_CLASS];
27718
+ var classList = [HEADER_CELLS_CLASS];
27654
27719
  if (this.isCurrentDate(col)) {
27655
- classList$$1.push(CURRENT_DAY_CLASS);
27720
+ classList.push(CURRENT_DAY_CLASS);
27656
27721
  }
27657
- dateSlots.push({ date: col, type: 'dateHeader', className: classList$$1, colSpan: 1, workDays: workDays });
27722
+ dateSlots.push({ date: col, type: 'dateHeader', className: classList, colSpan: 1, workDays: workDays });
27658
27723
  }
27659
27724
  return dateSlots;
27660
27725
  };
@@ -27773,7 +27838,7 @@ var TimelineMonth = /** @__PURE__ @class */ (function (_super) {
27773
27838
  return TimelineMonth;
27774
27839
  }(Month));
27775
27840
 
27776
- var __extends$29 = (undefined && undefined.__extends) || (function () {
27841
+ var __extends$t = (undefined && undefined.__extends) || (function () {
27777
27842
  var extendStatics = function (d, b) {
27778
27843
  extendStatics = Object.setPrototypeOf ||
27779
27844
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -27786,12 +27851,11 @@ var __extends$29 = (undefined && undefined.__extends) || (function () {
27786
27851
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
27787
27852
  };
27788
27853
  })();
27789
- /* eslint-disable @typescript-eslint/no-explicit-any */
27790
27854
  /**
27791
27855
  * timeline year view
27792
27856
  */
27793
27857
  var TimelineYear = /** @__PURE__ @class */ (function (_super) {
27794
- __extends$29(TimelineYear, _super);
27858
+ __extends$t(TimelineYear, _super);
27795
27859
  function TimelineYear(parent) {
27796
27860
  var _this = _super.call(this, parent) || this;
27797
27861
  _this.viewClass = 'e-timeline-year-view';
@@ -28020,15 +28084,15 @@ var TimelineYear = /** @__PURE__ @class */ (function (_super) {
28020
28084
  });
28021
28085
  if (isDateAvail) {
28022
28086
  var tds = [td];
28023
- var classList$$1 = [];
28087
+ var classList = [];
28024
28088
  if (this.parent.activeViewOptions.workDays.indexOf(date.getDay()) > -1) {
28025
- classList$$1.push(WORKDAY_CLASS);
28089
+ classList.push(WORKDAY_CLASS);
28026
28090
  }
28027
28091
  if (!this.parent.isMinMaxDate(date)) {
28028
28092
  addClass([td], DISABLE_DATES);
28029
28093
  }
28030
28094
  if (this.isCurrentDate(date)) {
28031
- classList$$1.push(CURRENT_DAY_CLASS);
28095
+ classList.push(CURRENT_DAY_CLASS);
28032
28096
  if (this.parent.activeViewOptions.orientation === 'Horizontal') {
28033
28097
  tds.push(this.element.querySelector('.' + HEADER_CELLS_CLASS + (":nth-child(" + (column + 1) + ")")));
28034
28098
  }
@@ -28036,8 +28100,8 @@ var TimelineYear = /** @__PURE__ @class */ (function (_super) {
28036
28100
  tds.push(this.element.querySelectorAll('.' + MONTH_HEADER_CLASS).item(month));
28037
28101
  }
28038
28102
  }
28039
- if (classList$$1.length > 0) {
28040
- addClass(tds, classList$$1);
28103
+ if (classList.length > 0) {
28104
+ addClass(tds, classList);
28041
28105
  }
28042
28106
  }
28043
28107
  else {
@@ -28081,14 +28145,14 @@ var TimelineYear = /** @__PURE__ @class */ (function (_super) {
28081
28145
  var monthDate = new Date(this.parent.selectedDate.getFullYear(), monthCells[parseInt(row.toString(), 10)], 1);
28082
28146
  var date = this.parent.calendarUtil.getMonthStartDate(new Date(monthDate.getTime()));
28083
28147
  for (var month = 0; month < this.columnCount; month++) {
28084
- var classList$$1 = [];
28148
+ var classList = [];
28085
28149
  var groupIndex = resData.groupIndex;
28086
- classList$$1 = classList$$1.concat(resData.className);
28087
- if (classList$$1.indexOf(RESOURCE_PARENT_CLASS) > -1) {
28088
- classList$$1.push(RESOURCE_GROUP_CELLS_CLASS);
28150
+ classList = classList.concat(resData.className);
28151
+ if (classList.indexOf(RESOURCE_PARENT_CLASS) > -1) {
28152
+ classList.push(RESOURCE_GROUP_CELLS_CLASS);
28089
28153
  }
28090
28154
  else {
28091
- classList$$1.push(WORKDAY_CLASS);
28155
+ classList.push(WORKDAY_CLASS);
28092
28156
  }
28093
28157
  monthDate = new Date(this.parent.selectedDate.getFullYear(), monthCells[parseInt(month.toString(), 10)], 1);
28094
28158
  date = this.parent.calendarUtil.getMonthStartDate(new Date(monthDate.getTime()));
@@ -28099,7 +28163,7 @@ var TimelineYear = /** @__PURE__ @class */ (function (_super) {
28099
28163
  'data-date': date.getTime().toString()
28100
28164
  }
28101
28165
  });
28102
- addClass([tdELe], classList$$1);
28166
+ addClass([tdELe], classList);
28103
28167
  tdELe.setAttribute('data-group-index', groupIndex.toString());
28104
28168
  this.renderCellTemplate({ date: date, type: 'resourceGroupCells', groupIndex: groupIndex }, tdELe);
28105
28169
  this.wireEvents(tdELe);
@@ -28137,23 +28201,23 @@ var TimelineYear = /** @__PURE__ @class */ (function (_super) {
28137
28201
  monthTr.appendChild(monthTd);
28138
28202
  }
28139
28203
  for (var month = 0; month < this.columnCount; month++) {
28140
- var classList$$1 = [];
28204
+ var classList = [];
28141
28205
  var groupIndex = void 0;
28142
28206
  if (this.parent.activeViewOptions.orientation === 'Vertical') {
28143
28207
  groupIndex = resData.groupIndex;
28144
- classList$$1 = classList$$1.concat(resData.className);
28145
- if (classList$$1.indexOf(RESOURCE_PARENT_CLASS) > -1) {
28146
- classList$$1.push(RESOURCE_GROUP_CELLS_CLASS);
28208
+ classList = classList.concat(resData.className);
28209
+ if (classList.indexOf(RESOURCE_PARENT_CLASS) > -1) {
28210
+ classList.push(RESOURCE_GROUP_CELLS_CLASS);
28147
28211
  }
28148
28212
  else {
28149
- classList$$1.push(WORKDAY_CLASS);
28213
+ classList.push(WORKDAY_CLASS);
28150
28214
  }
28151
28215
  monthDate = new Date(this.parent.selectedDate.getFullYear(), months[parseInt(month.toString(), 10)], 1);
28152
28216
  date = this.parent.calendarUtil.getMonthStartDate(new Date(monthDate.getTime()));
28153
28217
  }
28154
28218
  else {
28155
28219
  groupIndex = this.colLevels.slice(-1)[0][parseInt(month.toString(), 10)].groupIndex;
28156
- classList$$1.push(WORKDAY_CLASS);
28220
+ classList.push(WORKDAY_CLASS);
28157
28221
  }
28158
28222
  var startDateText = this.parent.globalize.formatDate(date, { type: 'dateTime', skeleton: 'full', calendar: this.parent.getCalendarMode() });
28159
28223
  var endDateText = this.parent.globalize.formatDate(this.parent.calendarUtil.getMonthEndDate(new Date(monthDate.getTime())), { type: 'dateTime', skeleton: 'full', calendar: this.parent.getCalendarMode() });
@@ -28165,7 +28229,7 @@ var TimelineYear = /** @__PURE__ @class */ (function (_super) {
28165
28229
  'aria-label': startDateText + ' ' + this.parent.localeObj.getConstant('endAt') + ' ' + endDateText
28166
28230
  }
28167
28231
  });
28168
- addClass([td], classList$$1);
28232
+ addClass([td], classList);
28169
28233
  td.setAttribute('data-group-index', groupIndex.toString());
28170
28234
  this.renderCellTemplate({ date: date, type: 'resourceGroupCells', groupIndex: groupIndex }, td);
28171
28235
  this.wireEvents(td);
@@ -28183,10 +28247,10 @@ var TimelineYear = /** @__PURE__ @class */ (function (_super) {
28183
28247
  var monthId = "schedule_" + this.parent.activeViewOptions.dayHeaderTemplateName + "monthHeaderTemplate";
28184
28248
  if (type === 'dayHeaderTemplate') {
28185
28249
  args.day = this.parent.getDayNames('wide')[column % 7];
28186
- return [].slice.call(this.parent.getDayHeaderTemplate()(args, this.parent, 'dayHeaderTemplate', dayId, false));
28250
+ return [].slice.call(this.parent.getDayHeaderTemplate()(args, this.parent, 'dayHeaderTemplate', dayId, false, undefined, undefined, this.parent.root));
28187
28251
  }
28188
28252
  else {
28189
- return [].slice.call(this.parent.getMonthHeaderTemplate()(args, this.parent, 'monthHeaderTemplate', monthId, false));
28253
+ return [].slice.call(this.parent.getMonthHeaderTemplate()(args, this.parent, 'monthHeaderTemplate', monthId, false, undefined, undefined, this.parent.root));
28190
28254
  }
28191
28255
  };
28192
28256
  TimelineYear.prototype.renderCellTemplate = function (data, td) {
@@ -28200,7 +28264,7 @@ var TimelineYear = /** @__PURE__ @class */ (function (_super) {
28200
28264
  var scheduleId = this.parent.element.id + '_';
28201
28265
  var viewName = this.parent.activeViewOptions.cellTemplateName;
28202
28266
  var templateId = scheduleId + viewName + 'cellTemplate';
28203
- var cellTemplate = [].slice.call(this.parent.getCellTemplate()(args, this.parent, 'cellTemplate', templateId, false));
28267
+ var cellTemplate = [].slice.call(this.parent.getCellTemplate()(args, this.parent, 'cellTemplate', templateId, false, undefined, undefined, this.parent.root));
28204
28268
  append(cellTemplate, td);
28205
28269
  };
28206
28270
  TimelineYear.prototype.scrollToDate = function (scrollDate) {
@@ -28441,8 +28505,7 @@ var ICalendarImport = /** @__PURE__ @class */ (function () {
28441
28505
  else {
28442
28506
  newlineOffset = 1;
28443
28507
  }
28444
- // eslint-disable-next-line security/detect-object-injection
28445
- var firstChar = iCalString[lastPosition];
28508
+ var firstChar = iCalString.charAt(lastPosition);
28446
28509
  if (firstChar === ' ' || firstChar === '\n' || firstChar === '\t') {
28447
28510
  iString += iCalString.slice(lastPosition + 1, position - newlineOffset);
28448
28511
  }
@@ -28798,8 +28861,9 @@ var Print = /** @__PURE__ @class */ (function () {
28798
28861
  Schedule.Inject(Day, Week, WorkWeek, Month, Agenda, MonthAgenda, TimelineViews, TimelineMonth, Year, TimelineYear);
28799
28862
  this.printInstance = new Schedule(this.getPrintScheduleModel(printOptions));
28800
28863
  this.printInstance.isPrinting = true;
28864
+ this.printInstance.root = this.parent.root ? this.parent.root : this.parent;
28801
28865
  this.printInstance.appendTo(element);
28802
- this.printInstance.on(print$1, this.contentReady, this);
28866
+ this.printInstance.on(print, this.contentReady, this);
28803
28867
  this.printWindow = window.open('', 'print', 'height=' + window.outerHeight + ',width=' + window.outerWidth + ',tabbar=no');
28804
28868
  this.printWindow.moveTo(0, 0);
28805
28869
  this.printWindow.resizeTo(screen.availWidth, screen.availHeight);
@@ -28831,7 +28895,7 @@ var Print = /** @__PURE__ @class */ (function () {
28831
28895
  eventSettings.dataSource = this.parent.eventsData;
28832
28896
  var eventTemplate = !isNullOrUndefined(printOptions.eventSettings) &&
28833
28897
  !isNullOrUndefined(printOptions.eventSettings.template) ? printOptions.eventSettings.template : eventSettings.template;
28834
- eventSettings.template = typeof (eventTemplate) === 'function' ? null : eventTemplate;
28898
+ eventSettings.template = !this.parent.isAngular && typeof (eventTemplate) === 'function' ? null : eventTemplate;
28835
28899
  printModel.eventSettings = eventSettings;
28836
28900
  break;
28837
28901
  }
@@ -28842,13 +28906,15 @@ var Print = /** @__PURE__ @class */ (function () {
28842
28906
  break;
28843
28907
  case 'timeScale':
28844
28908
  timeScale = isNullOrUndefined(printOptions.timeScale) ? this.parent.timeScale : printOptions.timeScale;
28845
- timeScale.majorSlotTemplate = typeof (timeScale.majorSlotTemplate) === 'function' ? null : timeScale.majorSlotTemplate;
28846
- timeScale.minorSlotTemplate = typeof (timeScale.minorSlotTemplate) === 'function' ? null : timeScale.minorSlotTemplate;
28847
- printOptions.timeScale = timeScale;
28909
+ if (!this.parent.isAngular) {
28910
+ timeScale.majorSlotTemplate = typeof (timeScale.majorSlotTemplate) === 'function' ? null : timeScale.majorSlotTemplate;
28911
+ timeScale.minorSlotTemplate = typeof (timeScale.minorSlotTemplate) === 'function' ? null : timeScale.minorSlotTemplate;
28912
+ }
28913
+ printModel.timeScale = timeScale;
28848
28914
  break;
28849
28915
  case 'views':
28850
28916
  views = isNullOrUndefined(printOptions.views) ? this.parent.views : printOptions.views;
28851
- if (views && views.length > 0 && typeof (views[0]) === 'object') {
28917
+ if (!this.parent.isAngular && views && views.length > 0 && typeof (views[0]) === 'object') {
28852
28918
  var _loop_1 = function (view) {
28853
28919
  scheduleTemplates.forEach(function (x) {
28854
28920
  if (!isNullOrUndefined(view["" + x])) {
@@ -28866,8 +28932,8 @@ var Print = /** @__PURE__ @class */ (function () {
28866
28932
  default:
28867
28933
  if (scheduleTemplates.indexOf(key) > -1) {
28868
28934
  printModel["" + key] = isNullOrUndefined(printOptions["" + key]) ?
28869
- (typeof (this.parent["" + key]) === 'function' ? null : this.parent["" + key]) :
28870
- (typeof (printOptions["" + key]) === 'function' ? null : printOptions["" + key]);
28935
+ (!this.parent.isAngular && typeof (this.parent["" + key]) === 'function' ? null : this.parent["" + key]) :
28936
+ (!this.parent.isAngular && typeof (printOptions["" + key]) === 'function' ? null : printOptions["" + key]);
28871
28937
  break;
28872
28938
  }
28873
28939
  if (scheduleEvents.indexOf(key) > -1) {
@@ -28883,9 +28949,9 @@ var Print = /** @__PURE__ @class */ (function () {
28883
28949
  };
28884
28950
  Print.prototype.contentReady = function () {
28885
28951
  var _this = this;
28886
- this.printWindow = print(this.printInstance.element, this.printWindow);
28952
+ this.printWindow = print$1(this.printInstance.element, this.printWindow);
28887
28953
  this.printWindow.onbeforeunload = function () {
28888
- _this.printInstance.off(print$1, _this.contentReady);
28954
+ _this.printInstance.off(print, _this.contentReady);
28889
28955
  _this.printInstance.element.remove();
28890
28956
  _this.printInstance.destroy();
28891
28957
  _this.printInstance = null;
@@ -28901,25 +28967,5 @@ var Print = /** @__PURE__ @class */ (function () {
28901
28967
  return Print;
28902
28968
  }());
28903
28969
 
28904
- /**
28905
- * Exporting modules
28906
- */
28907
-
28908
- /**
28909
- * Schedule component exported items
28910
- */
28911
-
28912
- /**
28913
- * Recurrence-Editor component exported items
28914
- */
28915
-
28916
- /**
28917
- * Calendar util exported items
28918
- */
28919
-
28920
- /**
28921
- * Export Schedule components
28922
- */
28923
-
28924
- 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 };
28970
+ 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 };
28925
28971
  //# sourceMappingURL=ej2-schedule.es5.js.map