@syncfusion/ej2-schedule 26.1.40 → 26.1.41-16103

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 (298) hide show
  1. package/.eslintrc.json +243 -260
  2. package/README.md +82 -82
  3. package/dist/ej2-schedule.umd.min.js +1 -10
  4. package/dist/ej2-schedule.umd.min.js.map +1 -1
  5. package/dist/es6/ej2-schedule.es2015.js +591 -244
  6. package/dist/es6/ej2-schedule.es2015.js.map +1 -1
  7. package/dist/es6/ej2-schedule.es5.js +1057 -703
  8. package/dist/es6/ej2-schedule.es5.js.map +1 -1
  9. package/helpers/e2e/index.js +3 -3
  10. package/helpers/e2e/recurrence-editor.js +13 -13
  11. package/helpers/e2e/schedule.js +13 -13
  12. package/license +9 -9
  13. package/package.json +79 -79
  14. package/src/recurrence-editor/date-generator.js +3 -0
  15. package/src/recurrence-editor/recurrence-editor-model.d.ts +65 -65
  16. package/src/recurrence-editor/recurrence-editor.js +19 -19
  17. package/src/schedule/actions/crud.js +22 -6
  18. package/src/schedule/actions/drag.d.ts +4 -0
  19. package/src/schedule/actions/drag.js +73 -34
  20. package/src/schedule/actions/keyboard.d.ts +1 -0
  21. package/src/schedule/actions/keyboard.js +45 -3
  22. package/src/schedule/actions/resize.js +34 -33
  23. package/src/schedule/actions/touch.js +4 -0
  24. package/src/schedule/actions/virtual-scroll.d.ts +6 -0
  25. package/src/schedule/actions/virtual-scroll.js +119 -34
  26. package/src/schedule/base/interface.d.ts +6 -2
  27. package/src/schedule/base/resource.js +5 -0
  28. package/src/schedule/base/schedule-model.d.ts +805 -805
  29. package/src/schedule/base/schedule.d.ts +26 -0
  30. package/src/schedule/base/schedule.js +63 -21
  31. package/src/schedule/base/util.d.ts +10 -5
  32. package/src/schedule/base/util.js +15 -10
  33. package/src/schedule/event-renderer/agenda-base.js +13 -13
  34. package/src/schedule/event-renderer/event-base.js +18 -3
  35. package/src/schedule/event-renderer/inline-edit.js +13 -5
  36. package/src/schedule/event-renderer/month.js +20 -17
  37. package/src/schedule/event-renderer/timeline-view.js +21 -18
  38. package/src/schedule/event-renderer/vertical-view.d.ts +2 -1
  39. package/src/schedule/event-renderer/vertical-view.js +65 -33
  40. package/src/schedule/event-renderer/year.js +20 -20
  41. package/src/schedule/exports/print.js +1 -0
  42. package/src/schedule/models/event-settings-model.d.ts +155 -155
  43. package/src/schedule/models/event-settings.js +19 -19
  44. package/src/schedule/models/field-options-model.d.ts +22 -22
  45. package/src/schedule/models/field-options.js +19 -19
  46. package/src/schedule/models/fields-model.d.ts +92 -92
  47. package/src/schedule/models/fields.js +19 -19
  48. package/src/schedule/models/group-model.d.ts +48 -48
  49. package/src/schedule/models/group.js +19 -19
  50. package/src/schedule/models/header-rows-model.d.ts +22 -22
  51. package/src/schedule/models/header-rows.js +19 -19
  52. package/src/schedule/models/quick-info-templates-model.d.ts +37 -37
  53. package/src/schedule/models/quick-info-templates.js +19 -19
  54. package/src/schedule/models/resources-model.d.ts +85 -85
  55. package/src/schedule/models/resources.js +19 -19
  56. package/src/schedule/models/time-scale-model.d.ts +40 -40
  57. package/src/schedule/models/time-scale.js +19 -19
  58. package/src/schedule/models/toolbar-model.d.ts +187 -187
  59. package/src/schedule/models/toolbar.js +19 -19
  60. package/src/schedule/models/views-model.d.ts +329 -329
  61. package/src/schedule/models/views.js +19 -19
  62. package/src/schedule/models/work-hours-model.d.ts +16 -16
  63. package/src/schedule/models/work-hours.js +19 -19
  64. package/src/schedule/popups/event-tooltip.js +2 -1
  65. package/src/schedule/popups/event-window.d.ts +1 -0
  66. package/src/schedule/popups/event-window.js +13 -10
  67. package/src/schedule/renderer/agenda.js +13 -13
  68. package/src/schedule/renderer/day.js +13 -13
  69. package/src/schedule/renderer/header-renderer.d.ts +1 -0
  70. package/src/schedule/renderer/header-renderer.js +20 -12
  71. package/src/schedule/renderer/month-agenda.js +13 -13
  72. package/src/schedule/renderer/month.js +19 -13
  73. package/src/schedule/renderer/timeline-header-row.js +1 -1
  74. package/src/schedule/renderer/timeline-month.js +13 -13
  75. package/src/schedule/renderer/timeline-view.js +22 -17
  76. package/src/schedule/renderer/timeline-year.js +19 -15
  77. package/src/schedule/renderer/vertical-view.js +33 -23
  78. package/src/schedule/renderer/view-base.d.ts +1 -0
  79. package/src/schedule/renderer/view-base.js +14 -1
  80. package/src/schedule/renderer/week.js +13 -13
  81. package/src/schedule/renderer/work-week.js +13 -13
  82. package/src/schedule/renderer/year.js +17 -17
  83. package/styles/bootstrap-dark-lite.css +4174 -0
  84. package/styles/bootstrap-dark-lite.scss +18 -0
  85. package/styles/bootstrap-dark.css +823 -595
  86. package/styles/bootstrap-dark.scss +3 -2
  87. package/styles/bootstrap-lite.css +4169 -0
  88. package/styles/bootstrap-lite.scss +18 -0
  89. package/styles/bootstrap.css +823 -595
  90. package/styles/bootstrap.scss +3 -2
  91. package/styles/bootstrap4-lite.css +4216 -0
  92. package/styles/bootstrap4-lite.scss +18 -0
  93. package/styles/bootstrap4.css +809 -636
  94. package/styles/bootstrap4.scss +3 -2
  95. package/styles/bootstrap5-dark-lite.css +4215 -0
  96. package/styles/bootstrap5-dark-lite.scss +18 -0
  97. package/styles/bootstrap5-dark.css +824 -596
  98. package/styles/bootstrap5-dark.scss +3 -2
  99. package/styles/bootstrap5-lite.css +4215 -0
  100. package/styles/bootstrap5-lite.scss +18 -0
  101. package/styles/bootstrap5.3-lite.css +4261 -0
  102. package/styles/bootstrap5.3-lite.scss +18 -0
  103. package/styles/bootstrap5.3.css +5023 -0
  104. package/styles/bootstrap5.3.scss +20 -0
  105. package/styles/bootstrap5.css +824 -596
  106. package/styles/bootstrap5.scss +3 -2
  107. package/styles/fabric-dark-lite.css +4144 -0
  108. package/styles/fabric-dark-lite.scss +18 -0
  109. package/styles/fabric-dark.css +830 -594
  110. package/styles/fabric-dark.scss +3 -2
  111. package/styles/fabric-lite.css +4141 -0
  112. package/styles/fabric-lite.scss +18 -0
  113. package/styles/fabric.css +830 -587
  114. package/styles/fabric.scss +3 -2
  115. package/styles/fluent-dark-lite.css +4207 -0
  116. package/styles/fluent-dark-lite.scss +18 -0
  117. package/styles/fluent-dark.css +828 -592
  118. package/styles/fluent-dark.scss +3 -2
  119. package/styles/fluent-lite.css +4207 -0
  120. package/styles/fluent-lite.scss +18 -0
  121. package/styles/fluent.css +828 -592
  122. package/styles/fluent.scss +3 -2
  123. package/styles/fluent2-lite.css +4427 -0
  124. package/styles/fluent2-lite.scss +18 -0
  125. package/styles/fluent2.css +863 -1627
  126. package/styles/fluent2.scss +3 -2
  127. package/styles/highcontrast-light-lite.css +4233 -0
  128. package/styles/highcontrast-light-lite.scss +18 -0
  129. package/styles/highcontrast-light.css +833 -583
  130. package/styles/highcontrast-light.scss +3 -2
  131. package/styles/highcontrast-lite.css +4242 -0
  132. package/styles/highcontrast-lite.scss +18 -0
  133. package/styles/highcontrast.css +834 -584
  134. package/styles/highcontrast.scss +3 -2
  135. package/styles/material-dark-lite.css +4221 -0
  136. package/styles/material-dark-lite.scss +18 -0
  137. package/styles/material-dark.css +839 -581
  138. package/styles/material-dark.scss +3 -2
  139. package/styles/material-lite.css +4247 -0
  140. package/styles/material-lite.scss +18 -0
  141. package/styles/material.css +836 -599
  142. package/styles/material.scss +3 -2
  143. package/styles/material3-dark-lite.css +4238 -0
  144. package/styles/material3-dark-lite.scss +18 -0
  145. package/styles/material3-dark.css +832 -656
  146. package/styles/material3-dark.scss +4 -3
  147. package/styles/material3-lite.css +4240 -0
  148. package/styles/material3-lite.scss +18 -0
  149. package/styles/material3.css +831 -709
  150. package/styles/material3.scss +4 -3
  151. package/styles/recurrence-editor/_all.scss +2 -2
  152. package/styles/recurrence-editor/_bds-definition.scss +14 -14
  153. package/styles/recurrence-editor/_bigger.scss +134 -0
  154. package/styles/recurrence-editor/_bootstrap-dark-definition.scss +14 -14
  155. package/styles/recurrence-editor/_bootstrap-definition.scss +14 -14
  156. package/styles/recurrence-editor/_bootstrap4-definition.scss +14 -14
  157. package/styles/recurrence-editor/_bootstrap5-definition.scss +14 -14
  158. package/styles/recurrence-editor/_bootstrap5.3-definition.scss +14 -14
  159. package/styles/recurrence-editor/_fabric-dark-definition.scss +14 -14
  160. package/styles/recurrence-editor/_fabric-definition.scss +14 -14
  161. package/styles/recurrence-editor/_fluent-definition.scss +14 -14
  162. package/styles/recurrence-editor/_fluent2-definition.scss +14 -14
  163. package/styles/recurrence-editor/_fusionnew-definition.scss +14 -14
  164. package/styles/recurrence-editor/_highcontrast-definition.scss +14 -14
  165. package/styles/recurrence-editor/_highcontrast-light-definition.scss +14 -14
  166. package/styles/recurrence-editor/_layout.scss +415 -525
  167. package/styles/recurrence-editor/_material-dark-definition.scss +14 -14
  168. package/styles/recurrence-editor/_material-definition.scss +14 -14
  169. package/styles/recurrence-editor/_material3-definition.scss +14 -14
  170. package/styles/recurrence-editor/_tailwind-definition.scss +14 -14
  171. package/styles/recurrence-editor/_theme.scss +1 -1
  172. package/styles/recurrence-editor/bootstrap-dark.css +87 -131
  173. package/styles/recurrence-editor/bootstrap-dark.scss +1 -0
  174. package/styles/recurrence-editor/bootstrap.css +87 -131
  175. package/styles/recurrence-editor/bootstrap.scss +1 -0
  176. package/styles/recurrence-editor/bootstrap4.css +87 -149
  177. package/styles/recurrence-editor/bootstrap4.scss +1 -0
  178. package/styles/recurrence-editor/bootstrap5-dark.css +87 -135
  179. package/styles/recurrence-editor/bootstrap5-dark.scss +1 -0
  180. package/styles/recurrence-editor/bootstrap5.3.css +501 -0
  181. package/styles/recurrence-editor/bootstrap5.3.scss +9 -0
  182. package/styles/recurrence-editor/bootstrap5.css +87 -135
  183. package/styles/recurrence-editor/bootstrap5.scss +1 -0
  184. package/styles/recurrence-editor/fabric-dark.css +87 -130
  185. package/styles/recurrence-editor/fabric-dark.scss +1 -0
  186. package/styles/recurrence-editor/fabric.css +87 -123
  187. package/styles/recurrence-editor/fabric.scss +1 -0
  188. package/styles/recurrence-editor/fluent-dark.css +87 -122
  189. package/styles/recurrence-editor/fluent-dark.scss +1 -0
  190. package/styles/recurrence-editor/fluent.css +87 -122
  191. package/styles/recurrence-editor/fluent.scss +1 -0
  192. package/styles/recurrence-editor/fluent2.css +94 -1148
  193. package/styles/recurrence-editor/fluent2.scss +1 -0
  194. package/styles/recurrence-editor/highcontrast-light.css +87 -118
  195. package/styles/recurrence-editor/highcontrast-light.scss +1 -0
  196. package/styles/recurrence-editor/highcontrast.css +87 -118
  197. package/styles/recurrence-editor/highcontrast.scss +1 -0
  198. package/styles/recurrence-editor/material-dark.css +87 -115
  199. package/styles/recurrence-editor/material-dark.scss +1 -0
  200. package/styles/recurrence-editor/material.css +87 -136
  201. package/styles/recurrence-editor/material.scss +1 -0
  202. package/styles/recurrence-editor/material3-dark.css +88 -194
  203. package/styles/recurrence-editor/material3-dark.scss +2 -1
  204. package/styles/recurrence-editor/material3.css +89 -249
  205. package/styles/recurrence-editor/material3.scss +2 -1
  206. package/styles/recurrence-editor/tailwind-dark.css +87 -116
  207. package/styles/recurrence-editor/tailwind-dark.scss +1 -0
  208. package/styles/recurrence-editor/tailwind.css +87 -116
  209. package/styles/recurrence-editor/tailwind.scss +1 -0
  210. package/styles/schedule/_all.scss +2 -2
  211. package/styles/schedule/_bds-definition.scss +272 -272
  212. package/styles/schedule/_bigger.scss +810 -0
  213. package/styles/schedule/_bootstrap-dark-definition.scss +270 -270
  214. package/styles/schedule/_bootstrap-definition.scss +270 -270
  215. package/styles/schedule/_bootstrap4-definition.scss +273 -273
  216. package/styles/schedule/_bootstrap5-definition.scss +274 -274
  217. package/styles/schedule/_bootstrap5.3-definition.scss +276 -273
  218. package/styles/schedule/_fabric-dark-definition.scss +271 -271
  219. package/styles/schedule/_fabric-definition.scss +270 -270
  220. package/styles/schedule/_fluent-definition.scss +276 -276
  221. package/styles/schedule/_fluent2-definition.scss +273 -273
  222. package/styles/schedule/_fusionnew-definition.scss +273 -273
  223. package/styles/schedule/_highcontrast-definition.scss +271 -271
  224. package/styles/schedule/_highcontrast-light-definition.scss +271 -271
  225. package/styles/schedule/_layout.scss +3787 -4218
  226. package/styles/schedule/_material-dark-definition.scss +270 -270
  227. package/styles/schedule/_material-definition.scss +270 -270
  228. package/styles/schedule/_material3-definition.scss +275 -275
  229. package/styles/schedule/_tailwind-definition.scss +271 -271
  230. package/styles/schedule/_theme.scss +589 -567
  231. package/styles/schedule/bootstrap-dark.css +706 -484
  232. package/styles/schedule/bootstrap-dark.scss +1 -0
  233. package/styles/schedule/bootstrap.css +706 -484
  234. package/styles/schedule/bootstrap.scss +1 -0
  235. package/styles/schedule/bootstrap4.css +699 -532
  236. package/styles/schedule/bootstrap4.scss +1 -0
  237. package/styles/schedule/bootstrap5-dark.css +714 -492
  238. package/styles/schedule/bootstrap5-dark.scss +1 -0
  239. package/styles/schedule/bootstrap5.3.css +4621 -0
  240. package/styles/schedule/bootstrap5.3.scss +17 -0
  241. package/styles/schedule/bootstrap5.css +714 -492
  242. package/styles/schedule/bootstrap5.scss +1 -0
  243. package/styles/schedule/fabric-dark.css +713 -483
  244. package/styles/schedule/fabric-dark.scss +1 -0
  245. package/styles/schedule/fabric.css +713 -476
  246. package/styles/schedule/fabric.scss +1 -0
  247. package/styles/schedule/fluent-dark.css +723 -493
  248. package/styles/schedule/fluent-dark.scss +1 -0
  249. package/styles/schedule/fluent.css +723 -493
  250. package/styles/schedule/fluent.scss +1 -0
  251. package/styles/schedule/fluent2.css +752 -1525
  252. package/styles/schedule/fluent2.scss +1 -0
  253. package/styles/schedule/highcontrast-light.css +721 -477
  254. package/styles/schedule/highcontrast-light.scss +1 -0
  255. package/styles/schedule/highcontrast.css +721 -477
  256. package/styles/schedule/highcontrast.scss +1 -0
  257. package/styles/schedule/icons/_bds.scss +220 -220
  258. package/styles/schedule/icons/_bootstrap-dark.scss +223 -223
  259. package/styles/schedule/icons/_bootstrap.scss +223 -223
  260. package/styles/schedule/icons/_bootstrap4.scss +217 -217
  261. package/styles/schedule/icons/_bootstrap5.3.scss +220 -220
  262. package/styles/schedule/icons/_bootstrap5.scss +220 -220
  263. package/styles/schedule/icons/_fabric-dark.scss +223 -223
  264. package/styles/schedule/icons/_fabric.scss +223 -223
  265. package/styles/schedule/icons/_fluent.scss +220 -220
  266. package/styles/schedule/icons/_fluent2.scss +220 -220
  267. package/styles/schedule/icons/_fusionnew.scss +220 -220
  268. package/styles/schedule/icons/_highcontrast-light.scss +223 -223
  269. package/styles/schedule/icons/_highcontrast.scss +223 -223
  270. package/styles/schedule/icons/_material-dark.scss +223 -223
  271. package/styles/schedule/icons/_material.scss +223 -223
  272. package/styles/schedule/icons/_material3.scss +220 -220
  273. package/styles/schedule/icons/_tailwind.scss +220 -220
  274. package/styles/schedule/material-dark.css +732 -480
  275. package/styles/schedule/material-dark.scss +1 -0
  276. package/styles/schedule/material.css +729 -498
  277. package/styles/schedule/material.scss +1 -0
  278. package/styles/schedule/material3-dark.css +713 -543
  279. package/styles/schedule/material3-dark.scss +2 -1
  280. package/styles/schedule/material3.css +714 -598
  281. package/styles/schedule/material3.scss +2 -1
  282. package/styles/schedule/tailwind-dark.css +725 -484
  283. package/styles/schedule/tailwind-dark.scss +1 -0
  284. package/styles/schedule/tailwind.css +725 -484
  285. package/styles/schedule/tailwind.scss +1 -0
  286. package/styles/tailwind-dark-lite.css +4184 -0
  287. package/styles/tailwind-dark-lite.scss +18 -0
  288. package/styles/tailwind-dark.css +832 -585
  289. package/styles/tailwind-dark.scss +3 -2
  290. package/styles/tailwind-lite.css +4184 -0
  291. package/styles/tailwind-lite.scss +18 -0
  292. package/styles/tailwind.css +832 -585
  293. package/styles/tailwind.scss +3 -2
  294. package/dist/ej2-schedule.min.js +0 -10
  295. package/dist/global/ej2-schedule.min.js +0 -11
  296. package/dist/global/ej2-schedule.min.js.map +0 -1
  297. package/dist/global/index.d.ts +0 -14
  298. package/tslint.json +0 -111
@@ -107,15 +107,16 @@ var MS_PER_MINUTE = 60000;
107
107
  *
108
108
  * @param {Element} container Accepts the DOM element
109
109
  * @param {string} elementClass Accepts the element class
110
+ * @param {boolean} isTransformed Accepts the boolean value that indicates the status of the transform style applied to the element
110
111
  * @returns {number} Returns the height of the element
111
112
  */
112
- function getElementHeightFromClass(container, elementClass) {
113
+ function getElementHeightFromClass(container, elementClass, isTransformed) {
113
114
  var height = 0;
114
115
  var el = createElement('div', { className: elementClass }).cloneNode();
115
116
  el.style.visibility = 'hidden';
116
117
  el.style.position = 'absolute';
117
118
  container.appendChild(el);
118
- height = getElementHeight(el);
119
+ height = getElementHeight(el, isTransformed);
119
120
  remove(el);
120
121
  return height;
121
122
  }
@@ -124,15 +125,16 @@ function getElementHeightFromClass(container, elementClass) {
124
125
  *
125
126
  * @param {Element} container Accepts the DOM element
126
127
  * @param {string} elementClass Accepts the element class
128
+ * @param {boolean} isTransformed Accepts the boolean value that indicates the status of the transform style applied to the element
127
129
  * @returns {number} Returns the width of the element
128
130
  */
129
- function getElementWidthFromClass(container, elementClass) {
131
+ function getElementWidthFromClass(container, elementClass, isTransformed) {
130
132
  var width = 0;
131
133
  var el = createElement('div', { className: elementClass }).cloneNode();
132
134
  el.style.visibility = 'hidden';
133
135
  el.style.position = 'absolute';
134
136
  container.appendChild(el);
135
- width = getElementWidth(el);
137
+ width = getElementWidth(el, isTransformed);
136
138
  remove(el);
137
139
  return width;
138
140
  }
@@ -524,28 +526,31 @@ function capitalizeFirstWord(inputString, type) {
524
526
  * Method to get element cell width
525
527
  *
526
528
  * @param {HTMLElement} element Accepts the DOM element
529
+ * @param {boolean} isTransformed Accepts the boolean value that indicates the status of the transform style applied to the element
527
530
  * @returns {number} Returns the width of the given element
528
531
  */
529
- function getElementWidth(element) {
530
- return document.body.style.transform.includes('scale') ? element.offsetWidth : element.getBoundingClientRect().width;
532
+ function getElementWidth(element, isTransformed) {
533
+ return isTransformed ? element.offsetWidth : element.getBoundingClientRect().width;
531
534
  }
532
535
  /**
533
536
  * Method to get element cell Height
534
537
  *
535
538
  * @param {HTMLElement} element Accepts the DOM element
539
+ * @param {boolean} isTransformed Accepts the boolean value that indicates the status of the transform style applied to the element
536
540
  * @returns {number} Returns the Height of the given element
537
541
  */
538
- function getElementHeight(element) {
539
- return document.body.style.transform.includes('scale') ? element.offsetHeight : element.getBoundingClientRect().height;
542
+ function getElementHeight(element, isTransformed) {
543
+ return isTransformed ? element.offsetHeight : element.getBoundingClientRect().height;
540
544
  }
541
545
  /**
542
546
  * Method to get element cell Top
543
547
  *
544
548
  * @param {HTMLElement} element Accepts the DOM element
549
+ * @param {boolean} isTransformed Accepts the boolean value that indicates the status of the transform style applied to the element
545
550
  * @returns {number} Returns the top value of the given element
546
551
  */
547
- function getElementTop(element) {
548
- return document.body.style.transform.includes('scale') ? element.offsetTop : element.getBoundingClientRect().top;
552
+ function getElementTop(element, isTransformed) {
553
+ return isTransformed ? element.offsetTop : element.getBoundingClientRect().top;
549
554
  }
550
555
 
551
556
  /**
@@ -1016,21 +1021,21 @@ var ALLDAY_APPOINTMENT_SCROLL = 'e-all-day-scroll';
1016
1021
  /** @private */
1017
1022
  var ALLDAY_APPOINTMENT_AUTO = 'e-all-day-auto';
1018
1023
 
1019
- var __assign = (undefined && undefined.__assign) || function () {
1020
- __assign = Object.assign || function(t) {
1021
- for (var s, i = 1, n = arguments.length; i < n; i++) {
1022
- s = arguments[i];
1023
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
1024
- t[p] = s[p];
1025
- }
1026
- return t;
1027
- };
1028
- return __assign.apply(this, arguments);
1029
- };
1024
+ var __assign = (undefined && undefined.__assign) || function () {
1025
+ __assign = Object.assign || function(t) {
1026
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
1027
+ s = arguments[i];
1028
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
1029
+ t[p] = s[p];
1030
+ }
1031
+ return t;
1032
+ };
1033
+ return __assign.apply(this, arguments);
1034
+ };
1030
1035
  /**
1031
1036
  * Header module
1032
1037
  */
1033
- var HeaderRenderer = /** @__PURE__ @class */ (function () {
1038
+ var HeaderRenderer = /** @class */ (function () {
1034
1039
  function HeaderRenderer(parent) {
1035
1040
  this.parent = parent;
1036
1041
  this.l10n = this.parent.localeObj;
@@ -1091,10 +1096,12 @@ var HeaderRenderer = /** @__PURE__ @class */ (function () {
1091
1096
  items: args.items,
1092
1097
  overflowMode: 'Popup',
1093
1098
  clicked: _this.toolbarClickHandler.bind(_this),
1099
+ created: _this.toolbarCreateHandler.bind(_this),
1094
1100
  enableRtl: _this.parent.enableRtl,
1095
1101
  enableHtmlSanitizer: _this.parent.enableHtmlSanitizer,
1096
1102
  locale: _this.parent.locale
1097
1103
  });
1104
+ _this.toolbarObj.isStringTemplate = true;
1098
1105
  _this.toolbarObj.root = _this.parent.root ? _this.parent.root : _this.parent;
1099
1106
  _this.toolbarObj.appendTo(_this.parent.element.querySelector('.' + HEADER_TOOLBAR));
1100
1107
  _this.toolbarObj.element.setAttribute('aria-label', 'Scheduler');
@@ -1527,6 +1534,12 @@ var HeaderRenderer = /** @__PURE__ @class */ (function () {
1527
1534
  var views = [].slice.call(this.element.querySelectorAll('.e-views'));
1528
1535
  return views.indexOf(target);
1529
1536
  };
1537
+ HeaderRenderer.prototype.toolbarCreateHandler = function () {
1538
+ if (this.parent && this.parent.portals && this.toolbarObj && this.toolbarObj.portals) {
1539
+ this.parent.portals = this.parent.portals.concat(this.toolbarObj.portals);
1540
+ this.parent['renderReactTemplates']();
1541
+ }
1542
+ };
1530
1543
  HeaderRenderer.prototype.toolbarClickHandler = function (args) {
1531
1544
  if (!args.item) {
1532
1545
  return;
@@ -1670,7 +1683,7 @@ var HeaderRenderer = /** @__PURE__ @class */ (function () {
1670
1683
  var firstDate = new Date(dates[0].getTime());
1671
1684
  var lastDate = new Date(dates[dates.length - 1].getTime());
1672
1685
  if (this.parent.currentView === 'WorkWeek' || this.parent.currentView === 'TimelineWorkWeek') {
1673
- firstDate = getWeekFirstDate(resetTime(this.parent.selectedDate), this.parent.firstDayOfWeek);
1686
+ firstDate = getWeekFirstDate(resetTime(this.parent.selectedDate), this.parent.activeViewOptions.firstDayOfWeek);
1674
1687
  lastDate = addDays(firstDate, 7 * this.parent.activeViewOptions.interval);
1675
1688
  }
1676
1689
  else if (this.parent.currentView === 'Month') {
@@ -1716,7 +1729,7 @@ var HeaderRenderer = /** @__PURE__ @class */ (function () {
1716
1729
  /**
1717
1730
  * `Scroll` module
1718
1731
  */
1719
- var Scroll = /** @__PURE__ @class */ (function () {
1732
+ var Scroll = /** @class */ (function () {
1720
1733
  /**
1721
1734
  * Constructor for the scrolling.
1722
1735
  *
@@ -1809,7 +1822,7 @@ var Scroll = /** @__PURE__ @class */ (function () {
1809
1822
  /**
1810
1823
  * `touch` module is used to handle touch interactions.
1811
1824
  */
1812
- var ScheduleTouch = /** @__PURE__ @class */ (function () {
1825
+ var ScheduleTouch = /** @class */ (function () {
1813
1826
  function ScheduleTouch(parent) {
1814
1827
  this.parent = parent;
1815
1828
  this.element = this.parent.element.querySelector('.' + TABLE_CONTAINER_CLASS);
@@ -1928,6 +1941,7 @@ var ScheduleTouch = /** @__PURE__ @class */ (function () {
1928
1941
  this.parent.selectedElements = [];
1929
1942
  this.parent.eventBase.getSelectedEventElements(target);
1930
1943
  if (this.parent.resizeModule && closest(e.originalEvent.target, '.' + EVENT_RESIZE_CLASS)) {
1944
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
1931
1945
  this.parent.resizeModule.resizeStart(e.originalEvent);
1932
1946
  }
1933
1947
  }
@@ -2014,6 +2028,9 @@ var ScheduleTouch = /** @__PURE__ @class */ (function () {
2014
2028
  this.element.style.transform = 'translatex(' + (this.parent.enableRtl ? prevWidth : -this.currentPanel.element.offsetLeft) + 'px)';
2015
2029
  };
2016
2030
  ScheduleTouch.prototype.onTransitionEnd = function () {
2031
+ if (!isNullOrUndefined(this.element) && !this.element.classList.contains(TRANSLATE_CLASS)) {
2032
+ return;
2033
+ }
2017
2034
  removeClass([this.element], TRANSLATE_CLASS);
2018
2035
  this.element.style.transitionDuration = '';
2019
2036
  this.element.style.transform = '';
@@ -2064,7 +2081,7 @@ var ScheduleTouch = /** @__PURE__ @class */ (function () {
2064
2081
  /**
2065
2082
  * Keyboard interaction
2066
2083
  */
2067
- var KeyboardInteraction = /** @__PURE__ @class */ (function () {
2084
+ var KeyboardInteraction = /** @class */ (function () {
2068
2085
  function KeyboardInteraction(parent) {
2069
2086
  this.selectedCells = [];
2070
2087
  this.keyConfigs = {
@@ -2099,7 +2116,9 @@ var KeyboardInteraction = /** @__PURE__ @class */ (function () {
2099
2116
  ctrlShiftUpArrow: 'ctrl+shift+uparrow',
2100
2117
  ctrlShiftDownArrow: 'ctrl+shift+downarrow',
2101
2118
  ctrlShiftLeftArrow: 'ctrl+shift+leftarrow',
2102
- ctrlShiftRightArrow: 'ctrl+shift+rightarrow'
2119
+ ctrlShiftRightArrow: 'ctrl+shift+rightarrow',
2120
+ shiftAltY: 'shift+alt+y',
2121
+ shiftAltN: 'shift+alt+n'
2103
2122
  };
2104
2123
  this.parent = parent;
2105
2124
  this.parent.element.tabIndex = this.parent.element.tabIndex === -1 ? 0 : this.parent.element.tabIndex;
@@ -2180,6 +2199,43 @@ var KeyboardInteraction = /** @__PURE__ @class */ (function () {
2180
2199
  this.processFTwelve(e);
2181
2200
  }
2182
2201
  break;
2202
+ case 'shiftAltY':
2203
+ this.parent.changeDate(new Date(), e);
2204
+ break;
2205
+ case 'shiftAltN':
2206
+ if (this.parent.currentView === 'Agenda' || this.parent.currentView === 'MonthAgenda' ||
2207
+ this.parent.currentView === 'Year') {
2208
+ return;
2209
+ }
2210
+ this.processShiftAltN(e);
2211
+ break;
2212
+ }
2213
+ };
2214
+ KeyboardInteraction.prototype.processShiftAltN = function (e) {
2215
+ var selectedCells = this.parent.getSelectedCells();
2216
+ var target = e.target;
2217
+ var cellData = extend({}, null, true);
2218
+ if (selectedCells.length > 0 && (closest(target, '.' + WORK_CELLS_CLASS)
2219
+ || closest(target, '.' + ALLDAY_CELLS_CLASS) || closest(target, '.' + HEADER_CELLS_CLASS))) {
2220
+ cellData = this.getSelectedElements(target);
2221
+ }
2222
+ else if (closest(target, '.' + APPOINTMENT_CLASS) && !isNullOrUndefined(this.parent.activeEventData.event)) {
2223
+ var event_1 = this.parent.activeEventData.event;
2224
+ cellData.startTime = event_1.StartTime;
2225
+ cellData.endTime = event_1.EndTime;
2226
+ cellData.isAllDay = event_1.IsAllDay;
2227
+ }
2228
+ else {
2229
+ var workHour = this.parent.getStartEndTime(this.parent.workHours.start);
2230
+ var slotInterval = this.parent.activeViewOptions.timeScale.interval /
2231
+ this.parent.activeViewOptions.timeScale.slotCount;
2232
+ cellData.startTime = new Date(this.parent.selectedDate);
2233
+ cellData.startTime.setHours(workHour.getHours(), workHour.getMinutes(), 0, 0);
2234
+ cellData.endTime = new Date(cellData.startTime.getTime() + slotInterval * 60000);
2235
+ }
2236
+ var args = extend(cellData, { cancel: false, event: e });
2237
+ if (args != null) {
2238
+ this.parent.eventWindow.openEditor(args, 'Add');
2183
2239
  }
2184
2240
  };
2185
2241
  KeyboardInteraction.prototype.processFTwelve = function (e) {
@@ -2605,8 +2661,11 @@ var KeyboardInteraction = /** @__PURE__ @class */ (function () {
2605
2661
  return this.parent.eventBase.selectWorkCellByTime([selectedObject]);
2606
2662
  };
2607
2663
  KeyboardInteraction.prototype.processViewNavigation = function (e) {
2608
- var index = parseInt(e.key, 10) - 1;
2609
- if (!isNullOrUndefined(this.parent.views) && index < this.parent.views.length) {
2664
+ if (isNullOrUndefined(e.code)) {
2665
+ return;
2666
+ }
2667
+ var index = parseInt(e.code.slice(e.code.length - 1), 10) - 1;
2668
+ if (!isNaN(index) && !isNullOrUndefined(this.parent.views) && index < this.parent.views.length) {
2610
2669
  var view = this.parent.viewCollections[parseInt(index.toString(), 10)].option;
2611
2670
  this.parent.changeView(view, e, undefined, index);
2612
2671
  if (this.parent.headerModule) {
@@ -3223,7 +3282,7 @@ var KeyboardInteraction = /** @__PURE__ @class */ (function () {
3223
3282
  *
3224
3283
  * @private
3225
3284
  */
3226
- var Data = /** @__PURE__ @class */ (function () {
3285
+ var Data = /** @class */ (function () {
3227
3286
  /**
3228
3287
  * Constructor for data module
3229
3288
  *
@@ -3333,7 +3392,7 @@ var Data = /** @__PURE__ @class */ (function () {
3333
3392
 
3334
3393
  /* eslint-disable @typescript-eslint/no-explicit-any */
3335
3394
  /** @private */
3336
- var Gregorian = /** @__PURE__ @class */ (function () {
3395
+ var Gregorian = /** @class */ (function () {
3337
3396
  function Gregorian() {
3338
3397
  }
3339
3398
  Gregorian.prototype.firstDateOfMonth = function (date) {
@@ -3418,7 +3477,7 @@ var Gregorian = /** @__PURE__ @class */ (function () {
3418
3477
  return Gregorian;
3419
3478
  }());
3420
3479
  /** @private */
3421
- var Islamic = /** @__PURE__ @class */ (function () {
3480
+ var Islamic = /** @class */ (function () {
3422
3481
  function Islamic() {
3423
3482
  }
3424
3483
  Islamic.prototype.firstDateOfMonth = function (date) {
@@ -3560,7 +3619,7 @@ var Islamic = /** @__PURE__ @class */ (function () {
3560
3619
  /**
3561
3620
  * Time zone
3562
3621
  */
3563
- var Timezone = /** @__PURE__ @class */ (function () {
3622
+ var Timezone = /** @class */ (function () {
3564
3623
  function Timezone() {
3565
3624
  this.timezoneData = [];
3566
3625
  this.timezoneData = this.getTimezoneData();
@@ -4167,6 +4226,9 @@ function weeklyType(startDate, endDate, data, ruleObject) {
4167
4226
  }
4168
4227
  else {
4169
4228
  tempDate = getStartDateForWeek(startDate, ruleObject.day);
4229
+ if (interval > 1 && dayIndex.indexOf(ruleObject.day[0]) < startDate.getDay()) {
4230
+ tempDate.setDate(tempDate.getDate() + ((interval - 1) * 7));
4231
+ }
4170
4232
  while (compareDates(tempDate, endDate)) {
4171
4233
  weekState = validateRules(tempDate, ruleObject);
4172
4234
  if (weekState && (expectedDays.indexOf(DAYINDEX[tempDate.getDay()]) > -1)) {
@@ -5496,7 +5558,7 @@ function roundDateValues(date) {
5496
5558
  /**
5497
5559
  * EventBase for appointment rendering
5498
5560
  */
5499
- var EventBase = /** @__PURE__ @class */ (function () {
5561
+ var EventBase = /** @class */ (function () {
5500
5562
  /**
5501
5563
  * Constructor for EventBase
5502
5564
  *
@@ -6383,6 +6445,7 @@ var EventBase = /** @__PURE__ @class */ (function () {
6383
6445
  this.parent.activeEventData = { event: eventObject, element: target };
6384
6446
  };
6385
6447
  EventBase.prototype.generateOccurrence = function (event, viewDate, isMaxCount) {
6448
+ var _this = this;
6386
6449
  var startDate = event[this.parent.eventFields.startTime];
6387
6450
  var endDate = event[this.parent.eventFields.endTime];
6388
6451
  var eventRule = event[this.parent.eventFields.recurrenceRule];
@@ -6397,6 +6460,10 @@ var EventBase = /** @__PURE__ @class */ (function () {
6397
6460
  var newTimezone = this.parent.timezone || this.parent.tzModule.getLocalTimezoneName();
6398
6461
  var firstDay = this.parent.activeViewOptions.firstDayOfWeek;
6399
6462
  var calendarMode = this.parent.calendarMode;
6463
+ if (event[this.parent.eventFields.recurrenceRule] && event[this.parent.eventFields.recurrenceRule].includes('BYMONTHDAY') &&
6464
+ this.parent.timezone && event[this.parent.eventFields.startTimezone] && event[this.parent.eventFields.endTimezone]) {
6465
+ startDate = this.parent.tzModule.convert(event[this.parent.eventFields.startTime], this.parent.timezone, event[this.parent.eventFields.startTimezone]);
6466
+ }
6400
6467
  var dates = generate(startDate, eventRule, exception, firstDay, maxCount, viewDate, calendarMode, newTimezone);
6401
6468
  if (this.parent.currentView === 'Agenda' && eventRule.indexOf('COUNT') === -1 && eventRule.indexOf('UNTIL') === -1) {
6402
6469
  if (isNullOrUndefined(event.generatedDates)) {
@@ -6411,11 +6478,21 @@ var EventBase = /** @__PURE__ @class */ (function () {
6411
6478
  }
6412
6479
  }
6413
6480
  }
6481
+ var isDSTAdjusted = false;
6482
+ var convertedDates = [];
6483
+ if (event[this.parent.eventFields.recurrenceRule] && event[this.parent.eventFields.recurrenceRule].includes('BYMONTHDAY') &&
6484
+ this.parent.timezone && event[this.parent.eventFields.startTimezone] && event[this.parent.eventFields.endTimezone]) {
6485
+ isDSTAdjusted = true;
6486
+ convertedDates.push.apply(convertedDates, dates.map(function (date) {
6487
+ return _this.parent.tzModule.convert(new Date(date), event[_this.parent.eventFields.startTimezone], _this.parent.timezone).getTime();
6488
+ }));
6489
+ }
6490
+ convertedDates = convertedDates.length > 0 ? convertedDates : dates;
6414
6491
  var occurrenceCollection = [];
6415
- for (var _i = 0, dates_1 = dates; _i < dates_1.length; _i++) {
6416
- var date = dates_1[_i];
6492
+ for (var _i = 0, convertedDates_1 = convertedDates; _i < convertedDates_1.length; _i++) {
6493
+ var date = convertedDates_1[_i];
6417
6494
  var clonedObject = extend({}, event, null, true);
6418
- date = this.getDSTAdjustedTime(date, clonedObject);
6495
+ date = !isDSTAdjusted ? this.getDSTAdjustedTime(date, clonedObject) : date;
6419
6496
  clonedObject[this.parent.eventFields.startTime] = new Date(date);
6420
6497
  clonedObject[this.parent.eventFields.endTime] = new Date(new Date(date).setMilliseconds(duration));
6421
6498
  clonedObject[this.parent.eventFields.recurrenceID] = clonedObject[this.parent.eventFields.id];
@@ -6868,23 +6945,23 @@ var EventBase = /** @__PURE__ @class */ (function () {
6868
6945
  return EventBase;
6869
6946
  }());
6870
6947
 
6871
- var __extends = (undefined && undefined.__extends) || (function () {
6872
- var extendStatics = function (d, b) {
6873
- extendStatics = Object.setPrototypeOf ||
6874
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6875
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6876
- return extendStatics(d, b);
6877
- };
6878
- return function (d, b) {
6879
- extendStatics(d, b);
6880
- function __() { this.constructor = d; }
6881
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
6882
- };
6883
- })();
6948
+ var __extends = (undefined && undefined.__extends) || (function () {
6949
+ var extendStatics = function (d, b) {
6950
+ extendStatics = Object.setPrototypeOf ||
6951
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6952
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6953
+ return extendStatics(d, b);
6954
+ };
6955
+ return function (d, b) {
6956
+ extendStatics(d, b);
6957
+ function __() { this.constructor = d; }
6958
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
6959
+ };
6960
+ })();
6884
6961
  /**
6885
6962
  * Vertical view appointment rendering
6886
6963
  */
6887
- var VerticalEvent = /** @__PURE__ @class */ (function (_super) {
6964
+ var VerticalEvent = /** @class */ (function (_super) {
6888
6965
  __extends(VerticalEvent, _super);
6889
6966
  function VerticalEvent(parent) {
6890
6967
  var _this = _super.call(this, parent) || this;
@@ -6898,8 +6975,8 @@ var VerticalEvent = /** @__PURE__ @class */ (function (_super) {
6898
6975
  _this.slotCount = _this.parent.activeViewOptions.timeScale.slotCount;
6899
6976
  _this.interval = _this.parent.activeViewOptions.timeScale.interval;
6900
6977
  _this.allDayLevel = 0;
6901
- _this.startHour = _this.parent.activeView.getStartHour();
6902
- _this.endHour = _this.parent.activeView.getEndHour();
6978
+ _this.startHour = _this.getStartEndHours(_this.parent.activeViewOptions.startHour);
6979
+ _this.endHour = _this.getStartEndHours(_this.parent.activeViewOptions.endHour);
6903
6980
  _this.element = _this.parent.activeView.getPanel();
6904
6981
  _this.fields = _this.parent.eventFields;
6905
6982
  _this.animation = new Animation({ progress: _this.animationUiUpdate.bind(_this) });
@@ -6992,7 +7069,7 @@ var VerticalEvent = /** @__PURE__ @class */ (function (_super) {
6992
7069
  this.resources = this.parent.resourceBase.renderedResources;
6993
7070
  }
6994
7071
  this.cellHeight =
6995
- parseFloat(getElementHeight(this.parent.element.querySelector('.e-content-wrap tbody tr')).toFixed(2));
7072
+ parseFloat(this.parent.getElementHeight(this.parent.element.querySelector('.e-content-wrap tbody tr')).toFixed(2));
6996
7073
  this.dateRender[0] = this.parent.activeView.renderDates;
6997
7074
  if (this.parent.activeViewOptions.group.resources.length > 0) {
6998
7075
  for (var i = 0, len = this.resources.length; i < len; i++) {
@@ -7033,7 +7110,7 @@ var VerticalEvent = /** @__PURE__ @class */ (function (_super) {
7033
7110
  var renderDates = this.dateRender[parseInt(resource.toString(), 10)];
7034
7111
  for (var day = 0, length_1 = renderDates.length; day < length_1; day++) {
7035
7112
  var startDate = new Date(renderDates[parseInt(day.toString(), 10)].getTime());
7036
- var endDate = addDays(renderDates[parseInt(day.toString(), 10)], 1);
7113
+ var endDate = resetTime(addDays(renderDates[parseInt(day.toString(), 10)], 1));
7037
7114
  var filterEvents = this.filterEvents(startDate, endDate, this.parent.blockProcessed, this.resources[parseInt(resource.toString(), 10)]);
7038
7115
  for (var _a = 0, filterEvents_1 = filterEvents; _a < filterEvents_1.length; _a++) {
7039
7116
  var event_1 = filterEvents_1[_a];
@@ -7064,7 +7141,7 @@ var VerticalEvent = /** @__PURE__ @class */ (function (_super) {
7064
7141
  }
7065
7142
  else {
7066
7143
  blockHeight = formatUnit(this.getHeight(eStart, eEnd));
7067
- blockTop = formatUnit(this.getTopValue(eStart, dayIndex, resource));
7144
+ blockTop = formatUnit(this.getTopValue(eStart));
7068
7145
  }
7069
7146
  var appointmentElement = this.createBlockAppointmentElement(eventObj, resource, this.isResourceEventTemplate);
7070
7147
  setStyleAttribute(appointmentElement, { 'width': '100%', 'height': blockHeight, 'top': blockTop });
@@ -7078,7 +7155,7 @@ var VerticalEvent = /** @__PURE__ @class */ (function (_super) {
7078
7155
  var resources = this.getResourceList();
7079
7156
  var dateCount = this.getStartCount();
7080
7157
  var isRender;
7081
- var appHeight = eventType === 'allDayEvents' ? getElementHeightFromClass(this.element.querySelector('.' + ALLDAY_APPOINTMENT_WRAPPER_CLASS), APPOINTMENT_CLASS) : 0;
7158
+ var appHeight = eventType === 'allDayEvents' ? this.parent.getElementHeightFromClass(this.element.querySelector('.' + ALLDAY_APPOINTMENT_WRAPPER_CLASS), APPOINTMENT_CLASS) : 0;
7082
7159
  var allDayRowTop = eventType === 'allDayEvents' && this.allDayElement.length > 0 ? this.allDayElement[0].offsetTop : 0;
7083
7160
  var _loop_1 = function (resource) {
7084
7161
  isRender = true;
@@ -7097,7 +7174,7 @@ var VerticalEvent = /** @__PURE__ @class */ (function (_super) {
7097
7174
  renderDates[parseInt(day.toString(), 10)] <= renderedDate[renderedDate.length - 1]; day++) {
7098
7175
  this_1.renderedEvents = [];
7099
7176
  var startDate = new Date(renderDates[parseInt(day.toString(), 10)].getTime());
7100
- var endDate = addDays(renderDates[parseInt(day.toString(), 10)], 1);
7177
+ var endDate = resetTime(addDays(renderDates[parseInt(day.toString(), 10)], 1));
7101
7178
  var filterEvents = this_1.filterEvents(startDate, endDate, eventCollection, this_1.resources[parseInt(resource.toString(), 10)]);
7102
7179
  if (isRender) {
7103
7180
  for (var _i = 0, filterEvents_2 = filterEvents; _i < filterEvents_2.length; _i++) {
@@ -7319,7 +7396,10 @@ var VerticalEvent = /** @__PURE__ @class */ (function (_super) {
7319
7396
  var field = this.parent.eventFields;
7320
7397
  var schedule = getStartEndHours(currentDate, this.startHour, this.endHour);
7321
7398
  var event = extend({}, record, null, true);
7322
- event.isSpanned = { isBottom: false, isTop: false };
7399
+ event.isSpanned = {
7400
+ isBottom: false, isTop: false,
7401
+ isSameDuration: event[field.startTime].getTime() === event[field.endTime].getTime()
7402
+ };
7323
7403
  if (record[field.startTime].getTime() < schedule.startHour.getTime()) {
7324
7404
  event[field.startTime] = schedule.startHour;
7325
7405
  event.isSpanned.isTop = true;
@@ -7437,9 +7517,9 @@ var VerticalEvent = /** @__PURE__ @class */ (function (_super) {
7437
7517
  return;
7438
7518
  }
7439
7519
  if (eStart <= eEnd && isValidEvent && this.isWorkDayAvailable(resource, eStart)) {
7440
- var appHeight = this.getHeight(eStart, eEnd);
7520
+ var appHeight = record.isSpanned.isSameDuration ? this.cellHeight : this.getHeight(eStart, eEnd);
7441
7521
  if (eStart.getTime() >= schedule.startHour.getTime()) {
7442
- topValue = this.getTopValue(eStart, dayIndex, resource);
7522
+ topValue = this.getTopValue(eStart);
7443
7523
  }
7444
7524
  var appIndex = this.getOverlapIndex(record, dayIndex, false, resource);
7445
7525
  record.Index = appIndex;
@@ -7500,13 +7580,20 @@ var VerticalEvent = /** @__PURE__ @class */ (function (_super) {
7500
7580
  var tempLeft = (parseFloat(appWidth) + 1) * index;
7501
7581
  return (tempLeft > 99 ? 99 : tempLeft) + '%';
7502
7582
  };
7503
- VerticalEvent.prototype.getTopValue = function (date, day, resource) {
7504
- var viewDate = resetTime(this.dateRender[parseInt(resource.toString(), 10)][parseInt(day.toString(), 10)]);
7505
- var startEndHours = getStartEndHours(viewDate, this.startHour, this.endHour);
7506
- var startHour = startEndHours.startHour;
7507
- var adjustedStartHour = isDaylightSavingTime(viewDate) && (startHour.getHours() !== this.startHour.getHours()) ?
7508
- this.startHour.getHours() : startHour.getHours();
7509
- var diffInMinutes = ((date.getHours() - adjustedStartHour) * 60) + (date.getMinutes() - startHour.getMinutes());
7583
+ VerticalEvent.prototype.getStartEndHours = function (startEndTime) {
7584
+ if (!isNullOrUndefined(startEndTime) && startEndTime !== '') {
7585
+ var startEndDate = new Date(2000, 0, 0, 0);
7586
+ var timeString = startEndTime.split(':');
7587
+ if (timeString.length === 2) {
7588
+ startEndDate.setHours(parseInt(timeString[0], 10), parseInt(timeString[1], 10), 0);
7589
+ }
7590
+ return startEndDate;
7591
+ }
7592
+ return null;
7593
+ };
7594
+ VerticalEvent.prototype.getTopValue = function (date) {
7595
+ var startHour = this.getStartEndHours(this.parent.activeViewOptions.startHour);
7596
+ var diffInMinutes = ((date.getHours() - startHour.getHours()) * 60) + (date.getMinutes() - startHour.getMinutes());
7510
7597
  return (this.parent.activeViewOptions.timeScale.enable) ? ((diffInMinutes * this.cellHeight * this.slotCount) / this.interval) : 0;
7511
7598
  };
7512
7599
  VerticalEvent.prototype.getOverlapIndex = function (record, day, isAllDay, resource) {
@@ -7542,10 +7629,32 @@ var VerticalEvent = /** @__PURE__ @class */ (function (_super) {
7542
7629
  if (this.parent.activeViewOptions.group.resources.length > 0) {
7543
7630
  this.overlapList = this.filterEventsByResource(this.resources[parseInt(resource.toString(), 10)], this.overlapList);
7544
7631
  }
7632
+ var queue_1 = [];
7545
7633
  this.overlapList.forEach(function (obj) {
7546
- var filterList = appointmentList_1.filter(function (data) {
7547
- return data[fieldMapping.endTime] > obj[fieldMapping.startTime] && data[fieldMapping.startTime] <= obj[fieldMapping.endTime];
7548
- });
7634
+ queue_1.push(obj);
7635
+ var filterList = [];
7636
+ var processedIds = new Set();
7637
+ var _loop_2 = function () {
7638
+ var currentObj = queue_1.shift();
7639
+ var overlaps = appointmentList_1.filter(function (data) {
7640
+ return data[fieldMapping.endTime] > currentObj[fieldMapping.startTime] &&
7641
+ data[fieldMapping.startTime] <= currentObj[fieldMapping.endTime] &&
7642
+ !processedIds.has(data[fieldMapping.id]);
7643
+ });
7644
+ overlaps.forEach(function (overlap) {
7645
+ filterList.push(overlap);
7646
+ processedIds.add(overlap[fieldMapping.id]);
7647
+ queue_1.push(overlap);
7648
+ });
7649
+ if (processedIds.size < appointmentList_1.length - 1) {
7650
+ return "break";
7651
+ }
7652
+ };
7653
+ while (queue_1.length > 0) {
7654
+ var state_1 = _loop_2();
7655
+ if (state_1 === "break")
7656
+ break;
7657
+ }
7549
7658
  if (_this.parent.activeViewOptions.group.resources.length > 0) {
7550
7659
  filterList = _this.filterEventsByResource(_this.resources[parseInt(resource.toString(), 10)], filterList);
7551
7660
  }
@@ -7742,24 +7851,24 @@ var VerticalEvent = /** @__PURE__ @class */ (function (_super) {
7742
7851
  return VerticalEvent;
7743
7852
  }(EventBase));
7744
7853
 
7745
- var __extends$1 = (undefined && undefined.__extends) || (function () {
7746
- var extendStatics = function (d, b) {
7747
- extendStatics = Object.setPrototypeOf ||
7748
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
7749
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
7750
- return extendStatics(d, b);
7751
- };
7752
- return function (d, b) {
7753
- extendStatics(d, b);
7754
- function __() { this.constructor = d; }
7755
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
7756
- };
7757
- })();
7854
+ var __extends$1 = (undefined && undefined.__extends) || (function () {
7855
+ var extendStatics = function (d, b) {
7856
+ extendStatics = Object.setPrototypeOf ||
7857
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
7858
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
7859
+ return extendStatics(d, b);
7860
+ };
7861
+ return function (d, b) {
7862
+ extendStatics(d, b);
7863
+ function __() { this.constructor = d; }
7864
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
7865
+ };
7866
+ })();
7758
7867
  var EVENT_GAP = 0;
7759
7868
  /**
7760
7869
  * Month view events render
7761
7870
  */
7762
- var MonthEvent = /** @__PURE__ @class */ (function (_super) {
7871
+ var MonthEvent = /** @class */ (function (_super) {
7763
7872
  __extends$1(MonthEvent, _super);
7764
7873
  function MonthEvent(parent) {
7765
7874
  var _this = _super.call(this, parent) || this;
@@ -7833,7 +7942,7 @@ var MonthEvent = /** @__PURE__ @class */ (function (_super) {
7833
7942
  this.monthHeaderHeight = wrapper.offsetTop - cellTd.offsetTop;
7834
7943
  cellTd.removeChild(wrapper);
7835
7944
  }
7836
- this.eventHeight = getElementHeightFromClass(this.element, APPOINTMENT_CLASS);
7945
+ this.eventHeight = this.parent.getElementHeightFromClass(this.element, APPOINTMENT_CLASS);
7837
7946
  var selector = '.' + CONTENT_TABLE_CLASS + ' tbody tr';
7838
7947
  this.addCellHeight(selector, this.eventHeight, (this.parent.currentView === 'Month' ? EVENT_GAP : 2), this.monthHeaderHeight, this.moreIndicatorHeight);
7839
7948
  var scrollTop = conWrap.scrollTop;
@@ -7912,8 +8021,8 @@ var MonthEvent = /** @__PURE__ @class */ (function (_super) {
7912
8021
  });
7913
8022
  }
7914
8023
  var cellDetail = this.workCells[this.parent.activeView.isTimelineView() ? 0 : this.workCells.length - 1];
7915
- this.cellWidth = getElementWidth(cellDetail);
7916
- this.cellHeight = getElementHeight(cellDetail);
8024
+ this.cellWidth = this.parent.getElementWidth(cellDetail);
8025
+ this.cellHeight = this.parent.getElementHeight(cellDetail);
7917
8026
  this.dateRender = dateRender;
7918
8027
  var filteredDates = this.getRenderedDates(dateRender);
7919
8028
  this.getSlotDates(workDays || this.parent.activeViewOptions.workDays);
@@ -8084,7 +8193,10 @@ var MonthEvent = /** @__PURE__ @class */ (function (_super) {
8084
8193
  if (this.parent.crudModule && this.parent.crudModule.crudObj.isCrudAction) {
8085
8194
  for (var i = 0, len = this.parent.crudModule.crudObj.sourceEvent.length; i < len; i++) {
8086
8195
  var sourceRes = this.parent.crudModule.crudObj.sourceEvent[parseInt(i.toString(), 10)];
8087
- this.renderEventsHandler(sourceRes.renderDates, sourceRes.workDays, sourceRes);
8196
+ if (!this.parent.uiStateValues.isGroupAdaptive ||
8197
+ (this.parent.uiStateValues.groupIndex === sourceRes.groupIndex && this.parent.uiStateValues.isGroupAdaptive)) {
8198
+ this.renderEventsHandler(sourceRes.renderDates, sourceRes.workDays, sourceRes);
8199
+ }
8088
8200
  if (this.parent.crudModule.crudObj.sourceEvent[parseInt(i.toString(), 10)].groupIndex !==
8089
8201
  this.parent.crudModule.crudObj.targetEvent[parseInt(i.toString(), 10)].groupIndex) {
8090
8202
  var target = this.parent.crudModule.crudObj.targetEvent[parseInt(i.toString(), 10)];
@@ -8450,26 +8562,26 @@ var MonthEvent = /** @__PURE__ @class */ (function (_super) {
8450
8562
  return MonthEvent;
8451
8563
  }(EventBase));
8452
8564
 
8453
- var __extends$2 = (undefined && undefined.__extends) || (function () {
8454
- var extendStatics = function (d, b) {
8455
- extendStatics = Object.setPrototypeOf ||
8456
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
8457
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
8458
- return extendStatics(d, b);
8459
- };
8460
- return function (d, b) {
8461
- extendStatics(d, b);
8462
- function __() { this.constructor = d; }
8463
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
8464
- };
8465
- })();
8565
+ var __extends$2 = (undefined && undefined.__extends) || (function () {
8566
+ var extendStatics = function (d, b) {
8567
+ extendStatics = Object.setPrototypeOf ||
8568
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
8569
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
8570
+ return extendStatics(d, b);
8571
+ };
8572
+ return function (d, b) {
8573
+ extendStatics(d, b);
8574
+ function __() { this.constructor = d; }
8575
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
8576
+ };
8577
+ })();
8466
8578
  var EVENT_GAP$1 = 2;
8467
8579
  var BLOCK_INDICATOR_WIDTH = 22;
8468
8580
  var BLOCK_INDICATOR_HEIGHT = 18;
8469
8581
  /**
8470
8582
  * Timeline view events render
8471
8583
  */
8472
- var TimelineEvent = /** @__PURE__ @class */ (function (_super) {
8584
+ var TimelineEvent = /** @class */ (function (_super) {
8473
8585
  __extends$2(TimelineEvent, _super);
8474
8586
  function TimelineEvent(parent, type) {
8475
8587
  var _this = _super.call(this, parent) || this;
@@ -8494,7 +8606,7 @@ var TimelineEvent = /** @__PURE__ @class */ (function (_super) {
8494
8606
  this.parent.activeViewOptions.headerRows.slice(-1)[0].option !== 'Hour') {
8495
8607
  this.renderType = 'day';
8496
8608
  var workCell = this.content.querySelector('.' + WORK_CELLS_CLASS);
8497
- this.cellWidth = getElementWidth(workCell) / +(workCell.getAttribute('colspan') || 1);
8609
+ this.cellWidth = this.parent.getElementWidth(workCell) / +(workCell.getAttribute('colspan') || 1);
8498
8610
  this.slotsPerDay = 1;
8499
8611
  }
8500
8612
  else {
@@ -8579,7 +8691,10 @@ var TimelineEvent = /** @__PURE__ @class */ (function (_super) {
8579
8691
  for (var i = 0, len = this.parent.crudModule.crudObj.sourceEvent.length; i < len; i++) {
8580
8692
  var source = this.parent.crudModule.crudObj.sourceEvent[parseInt(i.toString(), 10)];
8581
8693
  this.rowIndex = source.groupIndex;
8582
- this.renderEventsHandler(this.parent.activeView.renderDates, this.parent.activeViewOptions.workDays, source);
8694
+ if (!this.parent.uiStateValues.isGroupAdaptive ||
8695
+ (this.parent.uiStateValues.groupIndex === source.groupIndex && this.parent.uiStateValues.isGroupAdaptive)) {
8696
+ this.renderEventsHandler(this.parent.activeView.renderDates, this.parent.activeViewOptions.workDays, source);
8697
+ }
8583
8698
  if (this.parent.crudModule.crudObj.targetEvent[parseInt(i.toString(), 10)] && this.parent.crudModule.crudObj.sourceEvent[parseInt(i.toString(), 10)].groupIndex !==
8584
8699
  this.parent.crudModule.crudObj.targetEvent[parseInt(i.toString(), 10)].groupIndex) {
8585
8700
  var target = this.parent.crudModule.crudObj.targetEvent[parseInt(i.toString(), 10)];
@@ -8664,14 +8779,14 @@ var TimelineEvent = /** @__PURE__ @class */ (function (_super) {
8664
8779
  this.wireAppointmentEvents(appointmentElement, event);
8665
8780
  if (this.parent.rowAutoHeight) {
8666
8781
  var conWrap = this.parent.element.querySelector('.' + CONTENT_WRAP_CLASS);
8667
- var conWidth = getElementWidth(conWrap);
8782
+ var conWidth = this.parent.getElementWidth(conWrap);
8668
8783
  var isWithoutScroll = conWrap.offsetHeight === conWrap.clientHeight &&
8669
8784
  conWrap.offsetWidth === conWrap.clientWidth;
8670
8785
  this.renderEventElement(event, appointmentElement, cellTd);
8671
8786
  var firstChild = this.getFirstChild(resIndex);
8672
8787
  this.updateCellHeight(firstChild, height);
8673
8788
  if (isWithoutScroll &&
8674
- (conWrap.offsetWidth > conWrap.clientWidth || conWidth !== getElementWidth(conWrap))) {
8789
+ (conWrap.offsetWidth > conWrap.clientWidth || conWidth !== this.parent.getElementWidth(conWrap))) {
8675
8790
  this.adjustAppointments(conWidth);
8676
8791
  }
8677
8792
  }
@@ -8790,7 +8905,7 @@ var TimelineEvent = /** @__PURE__ @class */ (function (_super) {
8790
8905
  TimelineEvent.prototype.adjustAppointments = function (conWidth) {
8791
8906
  var _this = this;
8792
8907
  var tr = this.parent.element.querySelector('.' + CONTENT_TABLE_CLASS + ' tbody tr');
8793
- var actualCellWidth = getElementWidth(this.workCells[0]);
8908
+ var actualCellWidth = this.parent.getElementWidth(this.workCells[0]);
8794
8909
  this.cellWidth = actualCellWidth / +(this.workCells[0].getAttribute('colspan') || 1);
8795
8910
  var currentPercentage = (actualCellWidth * tr.children.length) / (conWidth / 100);
8796
8911
  var apps = [].slice.call(this.parent.element.querySelectorAll('.' + APPOINTMENT_CLASS));
@@ -9055,7 +9170,7 @@ var TimelineEvent = /** @__PURE__ @class */ (function (_super) {
9055
9170
  /**
9056
9171
  * Inline Edit interactions
9057
9172
  */
9058
- var InlineEdit = /** @__PURE__ @class */ (function () {
9173
+ var InlineEdit = /** @class */ (function () {
9059
9174
  function InlineEdit(parent) {
9060
9175
  this.parent = parent;
9061
9176
  this.parent.on(inlineClick, this.inlineEdit, this);
@@ -9136,7 +9251,15 @@ var InlineEdit = /** @__PURE__ @class */ (function () {
9136
9251
  subjectWrap.insertBefore(inlineSubject, subjectWrap.firstChild);
9137
9252
  }
9138
9253
  else {
9139
- args.element.querySelector('.e-appointment-details').prepend(inlineSubject);
9254
+ var elementSelector = ['TimelineDay', 'TimelineWeek', 'TimelineWorkWeek', 'TimelineMonth'].indexOf(this.parent.currentView) > -1 ?
9255
+ '.e-inner-wrap' : '.e-appointment-details';
9256
+ var innerWrapElement = args.element.querySelector(elementSelector);
9257
+ if (isNullOrUndefined(innerWrapElement)) {
9258
+ args.element.querySelector('.e-appointment-details').prepend(inlineSubject);
9259
+ }
9260
+ else {
9261
+ innerWrapElement.prepend(inlineSubject);
9262
+ }
9140
9263
  }
9141
9264
  inlineSubject.focus();
9142
9265
  }
@@ -9154,11 +9277,11 @@ var InlineEdit = /** @__PURE__ @class */ (function () {
9154
9277
  var allDayElements = [].slice.call(this.parent.element.querySelectorAll('.' + ALLDAY_APPOINTMENT_CLASS));
9155
9278
  var allDayLevel = 0;
9156
9279
  if (allDayElements.length > 0) {
9157
- allDayLevel = Math.floor(getElementHeight(this.parent.element.querySelector('.' + ALLDAY_ROW_CLASS)) /
9280
+ allDayLevel = Math.floor(this.parent.getElementHeight(this.parent.element.querySelector('.' + ALLDAY_ROW_CLASS)) /
9158
9281
  allDayElements[0].offsetHeight) - 1;
9159
9282
  }
9160
9283
  verticalEvent.allDayLevel = allDayLevel;
9161
- var appHeight = getElementHeightFromClass(this.parent.element.querySelector('.' + ALLDAY_APPOINTMENT_WRAPPER_CLASS), APPOINTMENT_CLASS);
9284
+ var appHeight = this.parent.getElementHeightFromClass(this.parent.element.querySelector('.' + ALLDAY_APPOINTMENT_WRAPPER_CLASS), APPOINTMENT_CLASS);
9162
9285
  var cellTop = verticalEvent.allDayElement.length > 0 ? verticalEvent.allDayElement[0].offsetTop : 0;
9163
9286
  verticalEvent.renderAllDayEvents(saveObj, index, resIndex, daysCount, this.parent.allowInline, cellTop, appHeight);
9164
9287
  }
@@ -9186,7 +9309,7 @@ var InlineEdit = /** @__PURE__ @class */ (function () {
9186
9309
  monthEvent.cellWidth = monthEvent.workCells[0].offsetWidth;
9187
9310
  monthEvent.cellHeight = monthEvent.workCells[0].offsetHeight;
9188
9311
  monthEvent.eventHeight =
9189
- getElementHeightFromClass(this.parent.monthModule.element || monthEvent.element, APPOINTMENT_CLASS);
9312
+ this.parent.getElementHeightFromClass(this.parent.monthModule.element || monthEvent.element, APPOINTMENT_CLASS);
9190
9313
  monthEvent.getSlotDates(workDays);
9191
9314
  var filteredDates = monthEvent.getRenderedDates(renderDates);
9192
9315
  var spannedEvents = monthEvent.splitEvent(saveObject, filteredDates || renderDates);
@@ -9210,7 +9333,7 @@ var InlineEdit = /** @__PURE__ @class */ (function () {
9210
9333
  var dayLength = this.parent.element.querySelectorAll('.' + CONTENT_TABLE_CLASS + ' tbody tr').length === 0 ?
9211
9334
  0 : this.parent.element.querySelectorAll('.' + CONTENT_TABLE_CLASS + ' tbody tr')[0].children.length;
9212
9335
  timelineView.slotsPerDay = dayLength / timelineView.dateRender.length;
9213
- timelineView.eventHeight = getElementHeightFromClass(timelineView.element, APPOINTMENT_CLASS);
9336
+ timelineView.eventHeight = this.parent.getElementHeightFromClass(timelineView.element, APPOINTMENT_CLASS);
9214
9337
  timelineView.renderEvents(saveObject, resIndex);
9215
9338
  };
9216
9339
  InlineEdit.prototype.getEventDaysCount = function (saveObj) {
@@ -9299,7 +9422,7 @@ var InlineEdit = /** @__PURE__ @class */ (function () {
9299
9422
  /**
9300
9423
  * Appointment window field validation
9301
9424
  */
9302
- var FieldValidator = /** @__PURE__ @class */ (function () {
9425
+ var FieldValidator = /** @class */ (function () {
9303
9426
  function FieldValidator() {
9304
9427
  }
9305
9428
  FieldValidator.prototype.renderFormValidator = function (form, rules, element, locale) {
@@ -9403,7 +9526,7 @@ var EVENT_FIELD = 'e-field';
9403
9526
  /**
9404
9527
  * Quick Popups interactions
9405
9528
  */
9406
- var QuickPopups = /** @__PURE__ @class */ (function () {
9529
+ var QuickPopups = /** @class */ (function () {
9407
9530
  function QuickPopups(parent) {
9408
9531
  this.isMultipleEventSelect = false;
9409
9532
  this.isCrudAction = false;
@@ -10819,7 +10942,7 @@ var QuickPopups = /** @__PURE__ @class */ (function () {
10819
10942
  /**
10820
10943
  * Tooltip for Schedule
10821
10944
  */
10822
- var EventTooltip = /** @__PURE__ @class */ (function () {
10945
+ var EventTooltip = /** @class */ (function () {
10823
10946
  function EventTooltip(parent) {
10824
10947
  this.parent = parent;
10825
10948
  this.tooltipObj = new Tooltip({
@@ -10892,7 +11015,8 @@ var EventTooltip = /** @__PURE__ @class */ (function () {
10892
11015
  var fields = this.parent.eventFields;
10893
11016
  var eventStart = new Date('' + record[fields.startTime]);
10894
11017
  var eventEnd = new Date('' + record[fields.endTime]);
10895
- eventEnd = (eventEnd.getHours() === 0 && eventEnd.getMinutes() === 0) ? new Date(eventEnd.setMilliseconds(-1000)) : eventEnd;
11018
+ eventEnd = ((eventEnd.getTime() - eventStart.getTime() !== 0) && eventEnd.getHours() === 0 && eventEnd.getMinutes() === 0) ?
11019
+ new Date(eventEnd.setMilliseconds(-1000)) : eventEnd;
10896
11020
  var startDate = resetTime(new Date('' + eventStart));
10897
11021
  var endDate = resetTime(new Date('' + eventEnd));
10898
11022
  var tooltipSubject = (record[fields.subject] || this.parent.eventSettings.fields.subject.default
@@ -10962,25 +11086,25 @@ var EventTooltip = /** @__PURE__ @class */ (function () {
10962
11086
  return EventTooltip;
10963
11087
  }());
10964
11088
 
10965
- var __extends$3 = (undefined && undefined.__extends) || (function () {
10966
- var extendStatics = function (d, b) {
10967
- extendStatics = Object.setPrototypeOf ||
10968
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
10969
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
10970
- return extendStatics(d, b);
10971
- };
10972
- return function (d, b) {
10973
- extendStatics(d, b);
10974
- function __() { this.constructor = d; }
10975
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
10976
- };
10977
- })();
10978
- var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
10979
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
10980
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
10981
- 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;
10982
- return c > 3 && r && Object.defineProperty(target, key, r), r;
10983
- };
11089
+ var __extends$3 = (undefined && undefined.__extends) || (function () {
11090
+ var extendStatics = function (d, b) {
11091
+ extendStatics = Object.setPrototypeOf ||
11092
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
11093
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
11094
+ return extendStatics(d, b);
11095
+ };
11096
+ return function (d, b) {
11097
+ extendStatics(d, b);
11098
+ function __() { this.constructor = d; }
11099
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
11100
+ };
11101
+ })();
11102
+ var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
11103
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
11104
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
11105
+ 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;
11106
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
11107
+ };
10984
11108
  var HEADER = 'e-editor';
10985
11109
  var INPUTWARAPPER = 'e-input-wrapper';
10986
11110
  var INPUTWARAPPERSIDE = 'e-input-wrapper-side';
@@ -11105,7 +11229,7 @@ var endOnDateClassList = [ENDONCOUNTWRAPPER];
11105
11229
  * </script>
11106
11230
  * ```
11107
11231
  */
11108
- var RecurrenceEditor = /** @__PURE__ @class */ (function (_super) {
11232
+ var RecurrenceEditor = /** @class */ (function (_super) {
11109
11233
  __extends$3(RecurrenceEditor, _super);
11110
11234
  /**
11111
11235
  * Constructor for creating the widget
@@ -12122,7 +12246,7 @@ var HIDE_STYLE_CLASS = 'e-hide';
12122
12246
  /**
12123
12247
  * Event editor window
12124
12248
  */
12125
- var EventWindow = /** @__PURE__ @class */ (function () {
12249
+ var EventWindow = /** @class */ (function () {
12126
12250
  function EventWindow(parent) {
12127
12251
  this.parent = parent;
12128
12252
  this.l10n = this.parent.localeObj;
@@ -12260,8 +12384,13 @@ var EventWindow = /** @__PURE__ @class */ (function () {
12260
12384
  this.addEventHandlers();
12261
12385
  }
12262
12386
  if (!isNullOrUndefined(this.parent.editorTemplate)) {
12263
- this.renderFormElements(this.element.querySelector('.e-schedule-form'), data);
12387
+ this.renderFormElements(this.element.querySelector('.e-schedule-form'), data, type, repeatType);
12388
+ }
12389
+ else {
12390
+ this.setEditorContent(data, type, repeatType);
12264
12391
  }
12392
+ };
12393
+ EventWindow.prototype.setEditorContent = function (data, type, repeatType) {
12265
12394
  if (!this.parent.isAdaptive && isNullOrUndefined(this.parent.editorTemplate)) {
12266
12395
  removeClass([this.dialogObject.element.querySelector('.e-recurrenceeditor')], DISABLE_CLASS);
12267
12396
  }
@@ -12442,7 +12571,7 @@ var EventWindow = /** @__PURE__ @class */ (function () {
12442
12571
  container.appendChild(form);
12443
12572
  return container;
12444
12573
  };
12445
- EventWindow.prototype.renderFormElements = function (form, args) {
12574
+ EventWindow.prototype.renderFormElements = function (form, args, type, repeatType) {
12446
12575
  var _this = this;
12447
12576
  if (!isNullOrUndefined(this.parent.editorTemplate)) {
12448
12577
  if (args) {
@@ -12471,15 +12600,17 @@ var EventWindow = /** @__PURE__ @class */ (function () {
12471
12600
  this.parent.renderTemplates(function () {
12472
12601
  if (_this.element) {
12473
12602
  _this.applyFormValidation();
12474
- if (_this.eventCrudData) {
12475
- _this.showDetails(_this.eventCrudData);
12476
- _this.eventCrudData = null;
12603
+ if (args) {
12604
+ _this.setEditorContent(args, type, repeatType);
12477
12605
  }
12478
12606
  }
12479
12607
  });
12480
12608
  }
12481
12609
  else {
12482
12610
  form.appendChild(this.getDefaultEventWindowContent());
12611
+ if (args) {
12612
+ this.setEditorContent(args, type, repeatType);
12613
+ }
12483
12614
  }
12484
12615
  };
12485
12616
  EventWindow.prototype.getDefaultEventWindowContent = function () {
@@ -13078,13 +13209,9 @@ var EventWindow = /** @__PURE__ @class */ (function () {
13078
13209
  this.fieldValidator.renderFormValidator(form, rules, this.element, this.parent.locale);
13079
13210
  };
13080
13211
  EventWindow.prototype.showDetails = function (eventData) {
13081
- this.eventData = this.eventCrudData ? this.eventData : eventData;
13212
+ this.eventData = eventData;
13082
13213
  var eventObj = extend({}, eventData, null, true);
13083
13214
  var formElements = this.getFormElements(EVENT_WINDOW_DIALOG_CLASS);
13084
- if (this.parent.isReact && formElements.length < 1 && !this.cellClickAction) {
13085
- this.eventCrudData = eventObj;
13086
- return;
13087
- }
13088
13215
  if ((!this.cellClickAction || this.cellClickAction && !isNullOrUndefined(this.parent.editorTemplate)) &&
13089
13216
  eventObj[this.fields.endTime].getHours() === 0 && eventObj[this.fields.endTime].getMinutes() === 0) {
13090
13217
  this.trimAllDay(eventObj);
@@ -14103,7 +14230,7 @@ var EventWindow = /** @__PURE__ @class */ (function () {
14103
14230
  /**
14104
14231
  * Virtual Scroll
14105
14232
  */
14106
- var VirtualScroll = /** @__PURE__ @class */ (function () {
14233
+ var VirtualScroll = /** @class */ (function () {
14107
14234
  function VirtualScroll(parent) {
14108
14235
  this.translateY = 0;
14109
14236
  this.itemSize = 60;
@@ -14111,6 +14238,8 @@ var VirtualScroll = /** @__PURE__ @class */ (function () {
14111
14238
  this.renderedLength = 0;
14112
14239
  this.averageRowHeight = 0;
14113
14240
  this.startIndex = 0;
14241
+ this.existingDataCollection = [];
14242
+ this.enableTransition = true;
14114
14243
  this.parent = parent;
14115
14244
  this.addEventListener();
14116
14245
  }
@@ -14183,10 +14312,10 @@ var VirtualScroll = /** @__PURE__ @class */ (function () {
14183
14312
  };
14184
14313
  VirtualScroll.prototype.setItemSize = function () {
14185
14314
  if (this.isHorizontalScroll) {
14186
- this.itemSize = getElementWidthFromClass(this.parent.activeView.element, WORK_CELLS_CLASS) || this.itemSize;
14315
+ this.itemSize = getElementWidthFromClass(this.parent.activeView.element, WORK_CELLS_CLASS, this.parent.uiStateValues.isTransformed) || this.itemSize;
14187
14316
  }
14188
14317
  else {
14189
- this.itemSize = getElementHeightFromClass(this.parent.activeView.element, WORK_CELLS_CLASS) || this.itemSize;
14318
+ this.itemSize = this.parent.getElementHeightFromClass(this.parent.activeView.element, WORK_CELLS_CLASS) || this.itemSize;
14190
14319
  }
14191
14320
  };
14192
14321
  VirtualScroll.prototype.refreshLayout = function () {
@@ -14200,11 +14329,16 @@ var VirtualScroll = /** @__PURE__ @class */ (function () {
14200
14329
  var resWrap = this.parent.element.querySelector('.' + RESOURCE_COLUMN_WRAP_CLASS);
14201
14330
  var conWrap = this.parent.element.querySelector('.' + CONTENT_WRAP_CLASS);
14202
14331
  var eventWrap = this.parent.element.querySelector('.' + EVENT_TABLE_CLASS);
14332
+ if (!this.parent.rowAutoHeight) {
14333
+ this.enableTransition = false;
14334
+ removeClass([conWrap, resWrap], 'e-transition');
14335
+ }
14203
14336
  var firstTDIndex = parseInt(resWrap.querySelector('tbody td').getAttribute('data-group-index'), 10);
14204
14337
  var endIndex = (firstTDIndex + this.renderedLength);
14205
14338
  firstTDIndex = (endIndex > this.parent.resourceBase.expandedResources.length) ?
14206
14339
  (this.parent.resourceBase.expandedResources.length - this.renderedLength) : firstTDIndex;
14207
14340
  firstTDIndex = firstTDIndex < 0 ? 0 : firstTDIndex;
14341
+ this.existingDataCollection = this.parent.resourceBase.renderedResources;
14208
14342
  this.parent.resourceBase.renderedResources = this.parent.resourceBase.expandedResources.slice(firstTDIndex, endIndex);
14209
14343
  if (this.parent.resourceBase.renderedResources.length > 0) {
14210
14344
  this.updateContent(resWrap, conWrap, eventWrap, this.parent.resourceBase.renderedResources);
@@ -14254,6 +14388,7 @@ var VirtualScroll = /** @__PURE__ @class */ (function () {
14254
14388
  var scrollHeight = this.parent.rowAutoHeight ?
14255
14389
  (conTable.offsetHeight - conWrap.offsetHeight) : this.bufferCount * this.itemSize;
14256
14390
  var resCollection = [];
14391
+ this.existingDataCollection = this.parent.resourceBase.renderedResources;
14257
14392
  if ((conWrap.scrollTop) - this.translateY < 0) {
14258
14393
  resCollection = this.upScroll(conWrap, firstTDIndex);
14259
14394
  }
@@ -14457,56 +14592,133 @@ var VirtualScroll = /** @__PURE__ @class */ (function () {
14457
14592
  this.parent.element.focus();
14458
14593
  }
14459
14594
  for (var i = 0; i < renderedLength; i++) {
14460
- remove(resWrap.querySelector('tbody tr'));
14461
- remove(conWrap.querySelector('tbody tr'));
14462
14595
  remove(eventWrap.querySelector('div'));
14463
14596
  }
14464
14597
  this.parent.resourceBase.renderedResources = resCollection;
14598
+ var currentGroupIndices = this.parent.activeView.getGroupIndices(resCollection);
14599
+ var previousGroupIndices = this.parent.activeView.getGroupIndices(this.existingDataCollection);
14600
+ var newGroupIndices = currentGroupIndices.filter(function (index) { return previousGroupIndices.indexOf(index) < 0; });
14601
+ var resWrapRows = Array.from(resWrap.querySelectorAll('tbody tr'));
14602
+ var conWrapRows = Array.from(conWrap.querySelectorAll('tbody tr'));
14603
+ var resWrapBody = resWrap.querySelector('tbody');
14604
+ var conWrapBody = conWrap.querySelector('tbody');
14605
+ this.removeObsoleteRows(resWrapRows, currentGroupIndices);
14606
+ this.removeObsoleteRows(conWrapRows, currentGroupIndices);
14465
14607
  var resourceRows = this.parent.resourceBase.getContentRows(resCollection, true);
14466
14608
  var contentRows = this.parent.activeView.getContentRows();
14467
14609
  var eventRows = this.parent.activeView.getEventRows(resCollection.length);
14468
- append(resourceRows, resWrap.querySelector('tbody'));
14469
- append(contentRows, conWrap.querySelector('tbody'));
14610
+ for (var i = 0; i < newGroupIndices.length; i++) {
14611
+ var index = currentGroupIndices.indexOf(newGroupIndices[parseInt(i.toString(), 10)]);
14612
+ if (index === 0) {
14613
+ prepend([resourceRows[parseInt(i.toString(), 10)]], resWrapBody);
14614
+ prepend([contentRows[parseInt(i.toString(), 10)]], conWrapBody);
14615
+ }
14616
+ else if (resWrapBody && conWrapBody && resWrapBody.children[parseInt(index.toString(), 10)] &&
14617
+ conWrapBody.children[parseInt(index.toString(), 10)]) {
14618
+ resWrapBody.insertBefore(resourceRows[parseInt(i.toString(), 10)], resWrapBody.children[parseInt(index.toString(), 10)]);
14619
+ conWrapBody.insertBefore(contentRows[parseInt(i.toString(), 10)], conWrapBody.children[parseInt(index.toString(), 10)]);
14620
+ }
14621
+ else {
14622
+ append([resourceRows[parseInt(i.toString(), 10)]], resWrapBody);
14623
+ append([contentRows[parseInt(i.toString(), 10)]], conWrapBody);
14624
+ }
14625
+ }
14470
14626
  append(eventRows, eventWrap);
14471
14627
  };
14628
+ VirtualScroll.prototype.removeObsoleteRows = function (elements, currentGroupIndices) {
14629
+ elements.forEach(function (element) {
14630
+ var groupIndex = parseInt(element.firstElementChild.getAttribute('data-group-index'), 10);
14631
+ if (currentGroupIndices.indexOf(groupIndex) < 0) {
14632
+ remove(element);
14633
+ }
14634
+ });
14635
+ };
14472
14636
  VirtualScroll.prototype.updateHorizontalContent = function (conWrap, resCollection) {
14637
+ this.existingDataCollection = this.parent.resourceBase.expandedResources;
14473
14638
  this.parent.resourceBase.expandedResources = resCollection;
14474
14639
  var selectedEle = this.parent.getSelectedCells();
14475
14640
  this.focusedEle = selectedEle[selectedEle.length - 1] || this.focusedEle;
14476
- var renderedLength = conWrap.querySelectorAll('tbody tr').length;
14641
+ var tbody = conWrap.querySelector('tbody');
14642
+ var renderedRows = Array.from(tbody.querySelectorAll('tr'));
14643
+ if (this.parent.currentView === 'Month') {
14644
+ this.updateMonthViewContent(conWrap, resCollection);
14645
+ }
14646
+ else {
14647
+ this.updateOtherViewContent(conWrap, resCollection, renderedRows);
14648
+ }
14649
+ };
14650
+ VirtualScroll.prototype.updateMonthViewContent = function (conWrap, resCollection) {
14651
+ var renderedLength = conWrap.querySelectorAll(' tr').length;
14477
14652
  for (var i = 0; i < renderedLength; i++) {
14478
14653
  remove(conWrap.querySelector('tbody tr'));
14479
14654
  }
14480
- if (this.parent.currentView === 'Month') {
14481
- if (this.parent.activeViewOptions.group.byDate) {
14482
- this.parent.activeView.colLevels[0] = resCollection;
14483
- }
14484
- else {
14485
- this.parent.activeView.colLevels[this.parent.activeView.colLevels.length - 2] = resCollection;
14486
- }
14487
- var contentRows = this.parent.activeView.getContentRows();
14488
- append(contentRows, conWrap.querySelector('tbody'));
14655
+ if (this.parent.activeViewOptions.group.byDate) {
14656
+ this.parent.activeView.colLevels[0] = resCollection;
14489
14657
  }
14490
14658
  else {
14491
- var col = [].slice.call(conWrap.querySelector('colgroup').children);
14492
- for (var i = 0; i < col.length; i++) {
14493
- remove(col[parseInt(i.toString(), 10)]);
14494
- }
14495
- this.parent.activeView.colLevels[this.parent.activeView.colLevels.length - 1] = resCollection;
14496
- var contentRows = this.parent.activeView.getContentRows();
14497
- var table = conWrap.querySelector('table');
14498
- var thead = conWrap.querySelector('thead');
14499
- var colGroupEle_1 = conWrap.querySelector('colgroup');
14500
- resCollection.forEach(function () {
14501
- colGroupEle_1.appendChild(createElement('col'));
14659
+ this.parent.activeView.colLevels[this.parent.activeView.colLevels.length - 2] = resCollection;
14660
+ }
14661
+ var contentRows = this.parent.activeView.getContentRows();
14662
+ append(contentRows, conWrap.querySelector('tbody'));
14663
+ };
14664
+ VirtualScroll.prototype.updateOtherViewContent = function (conWrap, resCollection, renderedRows) {
14665
+ var tbody = conWrap.querySelector('tbody');
14666
+ var colGroup = conWrap.querySelector('colgroup');
14667
+ var thead = conWrap.querySelector('thead');
14668
+ var table = conWrap.querySelector('table');
14669
+ this.parent.activeView.colLevels[this.parent.activeView.colLevels.length - 1] = resCollection;
14670
+ var newGroupIndices = new Set(resCollection.map(function (data) { return data.groupIndex; }));
14671
+ renderedRows.forEach(function (row) {
14672
+ var tdElements = row.querySelectorAll('td');
14673
+ tdElements.forEach(function (td) {
14674
+ var groupIndex = parseInt(td.getAttribute('data-group-index'), 10);
14675
+ if (!newGroupIndices.has(groupIndex)) {
14676
+ td.remove();
14677
+ }
14502
14678
  });
14503
- thead.appendChild(this.parent.eventBase.createEventWrapper('', this.startIndex > 0 ? this.startIndex : 0));
14504
- if (this.parent.activeViewOptions.timeScale.enable) {
14505
- thead.appendChild(this.parent.eventBase.createEventWrapper('timeIndicator'));
14506
- }
14507
- prepend([thead], table);
14508
- append(contentRows, conWrap.querySelector('tbody'));
14679
+ });
14680
+ var col = [].slice.call(conWrap.querySelector('colgroup').children);
14681
+ for (var i = 0; i < col.length; i++) {
14682
+ remove(col[parseInt(i.toString(), 10)]);
14683
+ }
14684
+ resCollection.forEach(function () { return colGroup.appendChild(createElement('col')); });
14685
+ var tHead = [].slice.call(conWrap.querySelector('thead').children);
14686
+ for (var i = 0; i < tHead.length; i++) {
14687
+ remove(tHead[parseInt(i.toString(), 10)]);
14688
+ }
14689
+ thead.appendChild(this.parent.eventBase.createEventWrapper('', this.startIndex > 0 ? this.startIndex : 0));
14690
+ if (this.parent.activeViewOptions.timeScale.enable) {
14691
+ thead.appendChild(this.parent.eventBase.createEventWrapper('timeIndicator'));
14509
14692
  }
14693
+ prepend([thead], table);
14694
+ var contentRows = this.parent.activeView.getContentRows();
14695
+ this.mergeNewTdData(tbody, contentRows);
14696
+ };
14697
+ VirtualScroll.prototype.mergeNewTdData = function (tbody, contentRows) {
14698
+ var existingRows = Array.from(tbody.querySelectorAll('tr'));
14699
+ existingRows.forEach(function (existingRow, rowIndex) {
14700
+ if (rowIndex < contentRows.length) {
14701
+ var newRow = contentRows[parseInt(rowIndex.toString(), 10)];
14702
+ var existingTds_1 = Array.from(existingRow.querySelectorAll('td'));
14703
+ var newTds = Array.from(newRow.querySelectorAll('td'));
14704
+ newTds.forEach(function (newTd) {
14705
+ var newGroupIndex = parseInt(newTd.getAttribute('data-group-index').toString(), 10);
14706
+ var inserted = false;
14707
+ for (var _i = 0, existingTds_2 = existingTds_1; _i < existingTds_2.length; _i++) {
14708
+ var existingTd = existingTds_2[_i];
14709
+ var existingGroupIndex = parseInt(existingTd.getAttribute('data-group-index').toString(), 10);
14710
+ if (newGroupIndex < existingGroupIndex) {
14711
+ existingRow.insertBefore(newTd, existingTd);
14712
+ inserted = true;
14713
+ break;
14714
+ }
14715
+ }
14716
+ if (!inserted) {
14717
+ existingRow.appendChild(newTd);
14718
+ }
14719
+ });
14720
+ }
14721
+ });
14510
14722
  };
14511
14723
  VirtualScroll.prototype.getBufferCollection = function (startIndex, endIndex) {
14512
14724
  return this.parent.resourceBase.expandedResources.slice(startIndex, endIndex);
@@ -14567,7 +14779,7 @@ var VirtualScroll = /** @__PURE__ @class */ (function () {
14567
14779
  /**
14568
14780
  * Schedule DOM rendering
14569
14781
  */
14570
- var Render = /** @__PURE__ @class */ (function () {
14782
+ var Render = /** @class */ (function () {
14571
14783
  function Render(parent) {
14572
14784
  this.parent = parent;
14573
14785
  }
@@ -14722,29 +14934,29 @@ var Render = /** @__PURE__ @class */ (function () {
14722
14934
  return Render;
14723
14935
  }());
14724
14936
 
14725
- var __extends$4 = (undefined && undefined.__extends) || (function () {
14726
- var extendStatics = function (d, b) {
14727
- extendStatics = Object.setPrototypeOf ||
14728
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
14729
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
14730
- return extendStatics(d, b);
14731
- };
14732
- return function (d, b) {
14733
- extendStatics(d, b);
14734
- function __() { this.constructor = d; }
14735
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
14736
- };
14737
- })();
14738
- var __decorate$1 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
14739
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
14740
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
14741
- 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;
14742
- return c > 3 && r && Object.defineProperty(target, key, r), r;
14743
- };
14937
+ var __extends$4 = (undefined && undefined.__extends) || (function () {
14938
+ var extendStatics = function (d, b) {
14939
+ extendStatics = Object.setPrototypeOf ||
14940
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
14941
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
14942
+ return extendStatics(d, b);
14943
+ };
14944
+ return function (d, b) {
14945
+ extendStatics(d, b);
14946
+ function __() { this.constructor = d; }
14947
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
14948
+ };
14949
+ })();
14950
+ var __decorate$1 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
14951
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
14952
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
14953
+ 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;
14954
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
14955
+ };
14744
14956
  /**
14745
14957
  * A class that represents the configuration of working hours related options of scheduler.
14746
14958
  */
14747
- var WorkHours = /** @__PURE__ @class */ (function (_super) {
14959
+ var WorkHours = /** @class */ (function (_super) {
14748
14960
  __extends$4(WorkHours, _super);
14749
14961
  function WorkHours() {
14750
14962
  return _super !== null && _super.apply(this, arguments) || this;
@@ -14761,29 +14973,29 @@ var WorkHours = /** @__PURE__ @class */ (function (_super) {
14761
14973
  return WorkHours;
14762
14974
  }(ChildProperty));
14763
14975
 
14764
- var __extends$5 = (undefined && undefined.__extends) || (function () {
14765
- var extendStatics = function (d, b) {
14766
- extendStatics = Object.setPrototypeOf ||
14767
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
14768
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
14769
- return extendStatics(d, b);
14770
- };
14771
- return function (d, b) {
14772
- extendStatics(d, b);
14773
- function __() { this.constructor = d; }
14774
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
14775
- };
14776
- })();
14777
- var __decorate$2 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
14778
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
14779
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
14780
- 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;
14781
- return c > 3 && r && Object.defineProperty(target, key, r), r;
14782
- };
14976
+ var __extends$5 = (undefined && undefined.__extends) || (function () {
14977
+ var extendStatics = function (d, b) {
14978
+ extendStatics = Object.setPrototypeOf ||
14979
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
14980
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
14981
+ return extendStatics(d, b);
14982
+ };
14983
+ return function (d, b) {
14984
+ extendStatics(d, b);
14985
+ function __() { this.constructor = d; }
14986
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
14987
+ };
14988
+ })();
14989
+ var __decorate$2 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
14990
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
14991
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
14992
+ 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;
14993
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
14994
+ };
14783
14995
  /**
14784
14996
  * A class that represents the configuration of options related to timescale on scheduler.
14785
14997
  */
14786
- var TimeScale = /** @__PURE__ @class */ (function (_super) {
14998
+ var TimeScale = /** @class */ (function (_super) {
14787
14999
  __extends$5(TimeScale, _super);
14788
15000
  function TimeScale() {
14789
15001
  return _super !== null && _super.apply(this, arguments) || this;
@@ -14806,29 +15018,29 @@ var TimeScale = /** @__PURE__ @class */ (function (_super) {
14806
15018
  return TimeScale;
14807
15019
  }(ChildProperty));
14808
15020
 
14809
- var __extends$6 = (undefined && undefined.__extends) || (function () {
14810
- var extendStatics = function (d, b) {
14811
- extendStatics = Object.setPrototypeOf ||
14812
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
14813
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
14814
- return extendStatics(d, b);
14815
- };
14816
- return function (d, b) {
14817
- extendStatics(d, b);
14818
- function __() { this.constructor = d; }
14819
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
14820
- };
14821
- })();
14822
- var __decorate$3 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
14823
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
14824
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
14825
- 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;
14826
- return c > 3 && r && Object.defineProperty(target, key, r), r;
14827
- };
15021
+ var __extends$6 = (undefined && undefined.__extends) || (function () {
15022
+ var extendStatics = function (d, b) {
15023
+ extendStatics = Object.setPrototypeOf ||
15024
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
15025
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
15026
+ return extendStatics(d, b);
15027
+ };
15028
+ return function (d, b) {
15029
+ extendStatics(d, b);
15030
+ function __() { this.constructor = d; }
15031
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15032
+ };
15033
+ })();
15034
+ var __decorate$3 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
15035
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
15036
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
15037
+ 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;
15038
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
15039
+ };
14828
15040
  /**
14829
15041
  * A class that defines the template options available to customize the quick popup of scheduler.
14830
15042
  */
14831
- var QuickInfoTemplates = /** @__PURE__ @class */ (function (_super) {
15043
+ var QuickInfoTemplates = /** @class */ (function (_super) {
14832
15044
  __extends$6(QuickInfoTemplates, _super);
14833
15045
  function QuickInfoTemplates() {
14834
15046
  return _super !== null && _super.apply(this, arguments) || this;
@@ -14848,29 +15060,29 @@ var QuickInfoTemplates = /** @__PURE__ @class */ (function (_super) {
14848
15060
  return QuickInfoTemplates;
14849
15061
  }(ChildProperty));
14850
15062
 
14851
- var __extends$7 = (undefined && undefined.__extends) || (function () {
14852
- var extendStatics = function (d, b) {
14853
- extendStatics = Object.setPrototypeOf ||
14854
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
14855
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
14856
- return extendStatics(d, b);
14857
- };
14858
- return function (d, b) {
14859
- extendStatics(d, b);
14860
- function __() { this.constructor = d; }
14861
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
14862
- };
14863
- })();
14864
- var __decorate$4 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
14865
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
14866
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
14867
- 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;
14868
- return c > 3 && r && Object.defineProperty(target, key, r), r;
14869
- };
15063
+ var __extends$7 = (undefined && undefined.__extends) || (function () {
15064
+ var extendStatics = function (d, b) {
15065
+ extendStatics = Object.setPrototypeOf ||
15066
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
15067
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
15068
+ return extendStatics(d, b);
15069
+ };
15070
+ return function (d, b) {
15071
+ extendStatics(d, b);
15072
+ function __() { this.constructor = d; }
15073
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15074
+ };
15075
+ })();
15076
+ var __decorate$4 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
15077
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
15078
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
15079
+ 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;
15080
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
15081
+ };
14870
15082
  /**
14871
15083
  * A class that represents the header rows related configurations on timeline views.
14872
15084
  */
14873
- var HeaderRows = /** @__PURE__ @class */ (function (_super) {
15085
+ var HeaderRows = /** @class */ (function (_super) {
14874
15086
  __extends$7(HeaderRows, _super);
14875
15087
  function HeaderRows() {
14876
15088
  return _super !== null && _super.apply(this, arguments) || this;
@@ -14888,7 +15100,7 @@ var HeaderRows = /** @__PURE__ @class */ (function (_super) {
14888
15100
  /**
14889
15101
  * Schedule CRUD operations
14890
15102
  */
14891
- var Crud = /** @__PURE__ @class */ (function () {
15103
+ var Crud = /** @class */ (function () {
14892
15104
  function Crud(parent) {
14893
15105
  this.parent = parent;
14894
15106
  this.crudObj = { sourceEvent: null, targetEvent: null, isCrudAction: false };
@@ -14993,10 +15205,10 @@ var Crud = /** @__PURE__ @class */ (function () {
14993
15205
  addedRecords: args.editParams.addedRecords, changedRecords: args.editParams.changedRecords,
14994
15206
  deletedRecords: args.editParams.deletedRecords
14995
15207
  };
14996
- if (this.parent.dragAndDropModule && this.parent.dragAndDropModule.actionObj && this.parent.dragAndDropModule.actionObj.element) {
15208
+ if (this.parent.dragAndDropModule && this.parent.dragAndDropModule.actionObj && this.parent.dragAndDropModule.actionObj.element && this.parent.dragAndDropModule.actionObj.action) {
14997
15209
  this.parent.dragAndDropModule.actionObj.element.style.display = 'none';
14998
15210
  }
14999
- if (this.parent.resizeModule && this.parent.resizeModule.actionObj && this.parent.resizeModule.actionObj.element) {
15211
+ if (this.parent.resizeModule && this.parent.resizeModule.actionObj && this.parent.resizeModule.actionObj.element && this.parent.resizeModule.actionObj.action) {
15000
15212
  this.parent.resizeModule.actionObj.element.style.display = 'none';
15001
15213
  }
15002
15214
  if (this.parent.isSpecificResourceEvents()) {
@@ -15385,16 +15597,32 @@ var Crud = /** @__PURE__ @class */ (function () {
15385
15597
  var updateSeriesEvents = (eventData instanceof Array) ? eventData : [eventData];
15386
15598
  var args = {
15387
15599
  requestType: action === 'EditSeries' ? 'eventChange' : 'eventRemove', cancel: false,
15388
- addedRecords: [], changedRecords: updateSeriesEvents, deletedRecords: []
15600
+ addedRecords: [], changedRecords: [], deletedRecords: []
15389
15601
  };
15390
15602
  args.data = seriesData;
15603
+ if (action === 'EditSeries') {
15604
+ args.changedRecords = updateSeriesEvents;
15605
+ }
15606
+ else {
15607
+ args.deletedRecords = updateSeriesEvents;
15608
+ }
15609
+ if (action === 'EditSeries' && !this.parent.uiStateValues.isIgnoreOccurrence) {
15610
+ var seriesEvents = seriesData instanceof Array ? seriesData : [seriesData];
15611
+ for (var a = 0, count = args.changedRecords.length; a < count; a++) {
15612
+ var parentEvent = seriesEvents[parseInt(a.toString(), 10)];
15613
+ var eventCollections = this.parent.eventBase.getEventCollections(parentEvent);
15614
+ var deletedEvents = eventCollections.follow.concat(eventCollections.occurrence);
15615
+ args.deletedRecords = args.deletedRecords.concat(deletedEvents);
15616
+ }
15617
+ }
15391
15618
  this.parent.trigger(actionBegin, args, function (seriesArgs) {
15392
15619
  if (!seriesArgs.cancel) {
15393
15620
  var fields_2 = _this.parent.eventFields;
15394
15621
  var editParams = { addedRecords: [], changedRecords: [], deletedRecords: [] };
15395
15622
  var seriesEvents = seriesData instanceof Array ? seriesData : [seriesData];
15623
+ var records = action === 'EditSeries' ? seriesArgs.changedRecords : seriesArgs.deletedRecords;
15396
15624
  var _loop_4 = function (a, count) {
15397
- var childEvent = seriesArgs.changedRecords[parseInt(a.toString(), 10)];
15625
+ var childEvent = records[parseInt(a.toString(), 10)];
15398
15626
  var parentEvent = seriesEvents[parseInt(a.toString(), 10)];
15399
15627
  var eventCollections = _this.parent.eventBase.getEventCollections(parentEvent);
15400
15628
  var deletedEvents = eventCollections.follow.concat(eventCollections.occurrence);
@@ -15424,11 +15652,11 @@ var Crud = /** @__PURE__ @class */ (function () {
15424
15652
  break;
15425
15653
  }
15426
15654
  };
15427
- for (var a = 0, count = seriesArgs.changedRecords.length; a < count; a++) {
15655
+ for (var a = 0, count = records.length; a < count; a++) {
15428
15656
  _loop_4(a, count);
15429
15657
  }
15430
15658
  var promise = _this.parent.dataModule.dataManager.saveChanges(editParams, fields_2.id, _this.getTable(), _this.getQuery());
15431
- var cloneEvent = extend({}, seriesArgs.changedRecords[seriesArgs.changedRecords.length - 1], null, true);
15659
+ var cloneEvent = extend({}, records[records.length - 1], null, true);
15432
15660
  _this.parent.eventBase.selectWorkCellByTime(action === 'EditSeries' ? [_this.parent.eventBase.processTimezone(cloneEvent)] : [cloneEvent]);
15433
15661
  var crudArgs = {
15434
15662
  requestType: action === 'EditSeries' ? 'eventChanged' : 'eventRemoved',
@@ -15633,7 +15861,7 @@ var Crud = /** @__PURE__ @class */ (function () {
15633
15861
  /**
15634
15862
  * Work cell interactions
15635
15863
  */
15636
- var WorkCellInteraction = /** @__PURE__ @class */ (function () {
15864
+ var WorkCellInteraction = /** @class */ (function () {
15637
15865
  function WorkCellInteraction(parent) {
15638
15866
  this.parent = parent;
15639
15867
  EventHandler.add(this.parent.element, 'mouseover', this.onHover, this);
@@ -15769,29 +15997,29 @@ var WorkCellInteraction = /** @__PURE__ @class */ (function () {
15769
15997
  return WorkCellInteraction;
15770
15998
  }());
15771
15999
 
15772
- var __extends$8 = (undefined && undefined.__extends) || (function () {
15773
- var extendStatics = function (d, b) {
15774
- extendStatics = Object.setPrototypeOf ||
15775
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
15776
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
15777
- return extendStatics(d, b);
15778
- };
15779
- return function (d, b) {
15780
- extendStatics(d, b);
15781
- function __() { this.constructor = d; }
15782
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15783
- };
15784
- })();
15785
- var __decorate$5 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
15786
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
15787
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
15788
- 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;
15789
- return c > 3 && r && Object.defineProperty(target, key, r), r;
15790
- };
16000
+ var __extends$8 = (undefined && undefined.__extends) || (function () {
16001
+ var extendStatics = function (d, b) {
16002
+ extendStatics = Object.setPrototypeOf ||
16003
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
16004
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
16005
+ return extendStatics(d, b);
16006
+ };
16007
+ return function (d, b) {
16008
+ extendStatics(d, b);
16009
+ function __() { this.constructor = d; }
16010
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
16011
+ };
16012
+ })();
16013
+ var __decorate$5 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
16014
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
16015
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
16016
+ 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;
16017
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
16018
+ };
15791
16019
  /**
15792
16020
  * Configuration that applies on each appointment field options of scheduler.
15793
16021
  */
15794
- var FieldOptions = /** @__PURE__ @class */ (function (_super) {
16022
+ var FieldOptions = /** @class */ (function (_super) {
15795
16023
  __extends$8(FieldOptions, _super);
15796
16024
  function FieldOptions() {
15797
16025
  return _super !== null && _super.apply(this, arguments) || this;
@@ -15811,25 +16039,25 @@ var FieldOptions = /** @__PURE__ @class */ (function (_super) {
15811
16039
  return FieldOptions;
15812
16040
  }(ChildProperty));
15813
16041
 
15814
- var __extends$9 = (undefined && undefined.__extends) || (function () {
15815
- var extendStatics = function (d, b) {
15816
- extendStatics = Object.setPrototypeOf ||
15817
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
15818
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
15819
- return extendStatics(d, b);
15820
- };
15821
- return function (d, b) {
15822
- extendStatics(d, b);
15823
- function __() { this.constructor = d; }
15824
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15825
- };
15826
- })();
15827
- var __decorate$6 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
15828
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
15829
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
15830
- 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;
15831
- return c > 3 && r && Object.defineProperty(target, key, r), r;
15832
- };
16042
+ var __extends$9 = (undefined && undefined.__extends) || (function () {
16043
+ var extendStatics = function (d, b) {
16044
+ extendStatics = Object.setPrototypeOf ||
16045
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
16046
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
16047
+ return extendStatics(d, b);
16048
+ };
16049
+ return function (d, b) {
16050
+ extendStatics(d, b);
16051
+ function __() { this.constructor = d; }
16052
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
16053
+ };
16054
+ })();
16055
+ var __decorate$6 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
16056
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
16057
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
16058
+ 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;
16059
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
16060
+ };
15833
16061
  /**
15834
16062
  * A class that holds the collection of event fields that requires to be mapped with the dataSource
15835
16063
  * fields along with its available configuration settings. Each field in it accepts both string and object
@@ -15837,7 +16065,7 @@ var __decorate$6 = (undefined && undefined.__decorate) || function (decorators,
15837
16065
  * name is mapped with it. If the `object` type is defined on each fields, then the validation related settings and mapping of
15838
16066
  * those fields with dataSource can be given altogether within it.
15839
16067
  */
15840
- var Field = /** @__PURE__ @class */ (function (_super) {
16068
+ var Field = /** @class */ (function (_super) {
15841
16069
  __extends$9(Field, _super);
15842
16070
  function Field() {
15843
16071
  return _super !== null && _super.apply(this, arguments) || this;
@@ -15890,29 +16118,29 @@ var Field = /** @__PURE__ @class */ (function (_super) {
15890
16118
  return Field;
15891
16119
  }(ChildProperty));
15892
16120
 
15893
- var __extends$a = (undefined && undefined.__extends) || (function () {
15894
- var extendStatics = function (d, b) {
15895
- extendStatics = Object.setPrototypeOf ||
15896
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
15897
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
15898
- return extendStatics(d, b);
15899
- };
15900
- return function (d, b) {
15901
- extendStatics(d, b);
15902
- function __() { this.constructor = d; }
15903
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15904
- };
15905
- })();
15906
- var __decorate$7 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
15907
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
15908
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
15909
- 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;
15910
- return c > 3 && r && Object.defineProperty(target, key, r), r;
15911
- };
16121
+ var __extends$a = (undefined && undefined.__extends) || (function () {
16122
+ var extendStatics = function (d, b) {
16123
+ extendStatics = Object.setPrototypeOf ||
16124
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
16125
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
16126
+ return extendStatics(d, b);
16127
+ };
16128
+ return function (d, b) {
16129
+ extendStatics(d, b);
16130
+ function __() { this.constructor = d; }
16131
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
16132
+ };
16133
+ })();
16134
+ var __decorate$7 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
16135
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
16136
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
16137
+ 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;
16138
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
16139
+ };
15912
16140
  /**
15913
16141
  * Holds the configuration of event related options and dataSource binding to Schedule.
15914
16142
  */
15915
- var EventSettings = /** @__PURE__ @class */ (function (_super) {
16143
+ var EventSettings = /** @class */ (function (_super) {
15916
16144
  __extends$a(EventSettings, _super);
15917
16145
  function EventSettings() {
15918
16146
  return _super !== null && _super.apply(this, arguments) || this;
@@ -15974,29 +16202,29 @@ var EventSettings = /** @__PURE__ @class */ (function (_super) {
15974
16202
  return EventSettings;
15975
16203
  }(ChildProperty));
15976
16204
 
15977
- var __extends$b = (undefined && undefined.__extends) || (function () {
15978
- var extendStatics = function (d, b) {
15979
- extendStatics = Object.setPrototypeOf ||
15980
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
15981
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
15982
- return extendStatics(d, b);
15983
- };
15984
- return function (d, b) {
15985
- extendStatics(d, b);
15986
- function __() { this.constructor = d; }
15987
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15988
- };
15989
- })();
15990
- var __decorate$8 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
15991
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
15992
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
15993
- 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;
15994
- return c > 3 && r && Object.defineProperty(target, key, r), r;
15995
- };
16205
+ var __extends$b = (undefined && undefined.__extends) || (function () {
16206
+ var extendStatics = function (d, b) {
16207
+ extendStatics = Object.setPrototypeOf ||
16208
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
16209
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
16210
+ return extendStatics(d, b);
16211
+ };
16212
+ return function (d, b) {
16213
+ extendStatics(d, b);
16214
+ function __() { this.constructor = d; }
16215
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
16216
+ };
16217
+ })();
16218
+ var __decorate$8 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
16219
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
16220
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
16221
+ 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;
16222
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
16223
+ };
15996
16224
  /**
15997
16225
  * A class that holds the resource grouping related configurations on Schedule.
15998
16226
  */
15999
- var Group = /** @__PURE__ @class */ (function (_super) {
16227
+ var Group = /** @class */ (function (_super) {
16000
16228
  __extends$b(Group, _super);
16001
16229
  function Group() {
16002
16230
  return _super !== null && _super.apply(this, arguments) || this;
@@ -16025,29 +16253,29 @@ var Group = /** @__PURE__ @class */ (function (_super) {
16025
16253
  return Group;
16026
16254
  }(ChildProperty));
16027
16255
 
16028
- var __extends$c = (undefined && undefined.__extends) || (function () {
16029
- var extendStatics = function (d, b) {
16030
- extendStatics = Object.setPrototypeOf ||
16031
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
16032
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
16033
- return extendStatics(d, b);
16034
- };
16035
- return function (d, b) {
16036
- extendStatics(d, b);
16037
- function __() { this.constructor = d; }
16038
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
16039
- };
16040
- })();
16041
- var __decorate$9 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
16042
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
16043
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
16044
- 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;
16045
- return c > 3 && r && Object.defineProperty(target, key, r), r;
16046
- };
16256
+ var __extends$c = (undefined && undefined.__extends) || (function () {
16257
+ var extendStatics = function (d, b) {
16258
+ extendStatics = Object.setPrototypeOf ||
16259
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
16260
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
16261
+ return extendStatics(d, b);
16262
+ };
16263
+ return function (d, b) {
16264
+ extendStatics(d, b);
16265
+ function __() { this.constructor = d; }
16266
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
16267
+ };
16268
+ })();
16269
+ var __decorate$9 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
16270
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
16271
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
16272
+ 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;
16273
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
16274
+ };
16047
16275
  /**
16048
16276
  * A class that represents the resource related configurations and its data binding options.
16049
16277
  */
16050
- var Resources = /** @__PURE__ @class */ (function (_super) {
16278
+ var Resources = /** @class */ (function (_super) {
16051
16279
  __extends$c(Resources, _super);
16052
16280
  function Resources() {
16053
16281
  return _super !== null && _super.apply(this, arguments) || this;
@@ -16101,7 +16329,7 @@ var Resources = /** @__PURE__ @class */ (function (_super) {
16101
16329
  }(ChildProperty));
16102
16330
 
16103
16331
  /* eslint-disable @typescript-eslint/no-explicit-any */
16104
- var ResourceBase = /** @__PURE__ @class */ (function () {
16332
+ var ResourceBase = /** @class */ (function () {
16105
16333
  function ResourceBase(parent) {
16106
16334
  this.resourceCollection = [];
16107
16335
  this.leftPixel = 25;
@@ -16189,7 +16417,11 @@ var ResourceBase = /** @__PURE__ @class */ (function () {
16189
16417
  var resColl = this.resourceCollection;
16190
16418
  var tr = createElement('tr');
16191
16419
  var td = createElement('td', { attrs: { tabindex: isVirtualScroll ? '-1' : '0' } });
16420
+ var existingGroupIndices = this.parent.activeView.getGroupIndices();
16192
16421
  for (var i = 0; i < resData.length; i++) {
16422
+ if (existingGroupIndices.length > 0 && existingGroupIndices.indexOf(resData[parseInt(i.toString(), 10)].groupIndex) > -1) {
16423
+ continue;
16424
+ }
16193
16425
  var ntd = td.cloneNode();
16194
16426
  rIndex = findIndexInData(resColl, 'name', resData[parseInt(i.toString(), 10)].resource.name);
16195
16427
  if (rIndex === resColl.length - 1) {
@@ -16370,6 +16602,7 @@ var ResourceBase = /** @__PURE__ @class */ (function () {
16370
16602
  this.setExpandedResources();
16371
16603
  var resourceCount = this.parent.virtualScrollModule.getRenderedCount();
16372
16604
  var startIndex = this.expandedResources.indexOf(this.renderedResources[0]);
16605
+ this.parent.virtualScrollModule.existingDataCollection = this.renderedResources;
16373
16606
  this.renderedResources = this.expandedResources.slice(startIndex, startIndex + resourceCount);
16374
16607
  if (this.renderedResources.length < resourceCount) {
16375
16608
  var sIndex = this.expandedResources.length - resourceCount;
@@ -17203,26 +17436,26 @@ var ResourceBase = /** @__PURE__ @class */ (function () {
17203
17436
  return ResourceBase;
17204
17437
  }());
17205
17438
 
17206
- var __extends$d = (undefined && undefined.__extends) || (function () {
17207
- var extendStatics = function (d, b) {
17208
- extendStatics = Object.setPrototypeOf ||
17209
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
17210
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
17211
- return extendStatics(d, b);
17212
- };
17213
- return function (d, b) {
17214
- extendStatics(d, b);
17215
- function __() { this.constructor = d; }
17216
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
17217
- };
17218
- })();
17219
- var __decorate$a = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
17220
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
17221
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
17222
- 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;
17223
- return c > 3 && r && Object.defineProperty(target, key, r), r;
17224
- };
17225
- var ToolbarItem = /** @__PURE__ @class */ (function (_super) {
17439
+ var __extends$d = (undefined && undefined.__extends) || (function () {
17440
+ var extendStatics = function (d, b) {
17441
+ extendStatics = Object.setPrototypeOf ||
17442
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
17443
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
17444
+ return extendStatics(d, b);
17445
+ };
17446
+ return function (d, b) {
17447
+ extendStatics(d, b);
17448
+ function __() { this.constructor = d; }
17449
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
17450
+ };
17451
+ })();
17452
+ var __decorate$a = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
17453
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
17454
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
17455
+ 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;
17456
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
17457
+ };
17458
+ var ToolbarItem = /** @class */ (function (_super) {
17226
17459
  __extends$d(ToolbarItem, _super);
17227
17460
  function ToolbarItem() {
17228
17461
  return _super !== null && _super.apply(this, arguments) || this;
@@ -17287,25 +17520,25 @@ var ToolbarItem = /** @__PURE__ @class */ (function (_super) {
17287
17520
  return ToolbarItem;
17288
17521
  }(ChildProperty));
17289
17522
 
17290
- var __extends$e = (undefined && undefined.__extends) || (function () {
17291
- var extendStatics = function (d, b) {
17292
- extendStatics = Object.setPrototypeOf ||
17293
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
17294
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
17295
- return extendStatics(d, b);
17296
- };
17297
- return function (d, b) {
17298
- extendStatics(d, b);
17299
- function __() { this.constructor = d; }
17300
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
17301
- };
17302
- })();
17303
- var __decorate$b = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
17304
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
17305
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
17306
- 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;
17307
- return c > 3 && r && Object.defineProperty(target, key, r), r;
17308
- };
17523
+ var __extends$e = (undefined && undefined.__extends) || (function () {
17524
+ var extendStatics = function (d, b) {
17525
+ extendStatics = Object.setPrototypeOf ||
17526
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
17527
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
17528
+ return extendStatics(d, b);
17529
+ };
17530
+ return function (d, b) {
17531
+ extendStatics(d, b);
17532
+ function __() { this.constructor = d; }
17533
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
17534
+ };
17535
+ })();
17536
+ var __decorate$b = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
17537
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
17538
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
17539
+ 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;
17540
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
17541
+ };
17309
17542
  /**
17310
17543
  * Represents the Schedule component that displays a list of events scheduled against specific date and timings,
17311
17544
  * thus helping us to plan and manage it properly.
@@ -17319,7 +17552,7 @@ var __decorate$b = (undefined && undefined.__decorate) || function (decorators,
17319
17552
  * </script>
17320
17553
  * ```
17321
17554
  */
17322
- var Schedule = /** @__PURE__ @class */ (function (_super) {
17555
+ var Schedule = /** @class */ (function (_super) {
17323
17556
  __extends$e(Schedule, _super);
17324
17557
  /**
17325
17558
  * Constructor for creating the Schedule widget
@@ -17404,6 +17637,37 @@ var Schedule = /** @__PURE__ @class */ (function (_super) {
17404
17637
  }
17405
17638
  return templateName;
17406
17639
  };
17640
+ /**
17641
+ * Method to get element width
17642
+ *
17643
+ * @param {HTMLElement} element Accepts the DOM element
17644
+ * @returns {number} Returns the width of the given element
17645
+ * @private
17646
+ */
17647
+ Schedule.prototype.getElementWidth = function (element) {
17648
+ return getElementWidth(element, this.uiStateValues.isTransformed);
17649
+ };
17650
+ /**
17651
+ * Method to get element height
17652
+ *
17653
+ * @param {HTMLElement} element Accepts the DOM element
17654
+ * @returns {number} Returns the Height of the given element
17655
+ * @private
17656
+ */
17657
+ Schedule.prototype.getElementHeight = function (element) {
17658
+ return getElementHeight(element, this.uiStateValues.isTransformed);
17659
+ };
17660
+ /**
17661
+ * Method to get height from element
17662
+ *
17663
+ * @param {Element} element Accepts the DOM element
17664
+ * @param {string} elementClass Accepts the element class
17665
+ * @returns {number} Returns the height of the element
17666
+ * @private
17667
+ */
17668
+ Schedule.prototype.getElementHeightFromClass = function (element, elementClass) {
17669
+ return getElementHeightFromClass(element, elementClass, this.uiStateValues.isTransformed);
17670
+ };
17407
17671
  /**
17408
17672
  * Method to render react templates
17409
17673
  *
@@ -17484,6 +17748,7 @@ var Schedule = /** @__PURE__ @class */ (function (_super) {
17484
17748
  this.headerModule = new HeaderRenderer(this);
17485
17749
  }
17486
17750
  this.renderTableContainer();
17751
+ this.uiStateValues.isTransformed = Math.round(this.element.getBoundingClientRect().width) !== this.element.offsetWidth;
17487
17752
  if (Browser.isDevice || Browser.isTouch) {
17488
17753
  this.scheduleTouchModule = new ScheduleTouch(this);
17489
17754
  }
@@ -17987,7 +18252,7 @@ var Schedule = /** @__PURE__ @class */ (function (_super) {
17987
18252
  this.uiStateValues = {
17988
18253
  expand: false, isInitial: true, left: 0, top: 0, isGroupAdaptive: false,
17989
18254
  isIgnoreOccurrence: false, groupIndex: this.adaptiveGroupIndex, action: false,
17990
- isBlock: false, isCustomMonth: true, isPreventTimezone: false
18255
+ isBlock: false, isCustomMonth: true, isPreventTimezone: false, isTransformed: false
17991
18256
  };
17992
18257
  }
17993
18258
  this.currentTimezoneDate = this.getCurrentTime();
@@ -18481,7 +18746,8 @@ var Schedule = /** @__PURE__ @class */ (function (_super) {
18481
18746
  };
18482
18747
  Schedule.prototype.onScheduleResize = function () {
18483
18748
  if (isNullOrUndefined(this.activeView) || ((this.isAdaptive || isMobile()) && document.activeElement
18484
- && document.activeElement.classList.contains(SUBJECT_CLASS)) || this.uiStateValues.isTapHold) {
18749
+ && (document.activeElement.classList.contains(SUBJECT_CLASS) ||
18750
+ document.activeElement.classList.contains(INLINE_SUBJECT_CLASS))) || this.uiStateValues.isTapHold) {
18485
18751
  return;
18486
18752
  }
18487
18753
  if (this.virtualScrollModule && this.activeView.isTimelineView()) {
@@ -18504,6 +18770,12 @@ var Schedule = /** @__PURE__ @class */ (function (_super) {
18504
18770
  this.virtualScrollModule.isRemoteRefresh = false;
18505
18771
  }
18506
18772
  this.refreshEvents(isRemoteRefresh);
18773
+ if (this.virtualScrollModule && !this.virtualScrollModule.enableTransition) {
18774
+ var resWrap = this.element.querySelector('.' + RESOURCE_COLUMN_WRAP_CLASS);
18775
+ var conWrap = this.element.querySelector('.' + CONTENT_WRAP_CLASS);
18776
+ this.virtualScrollModule.enableTransition = true;
18777
+ addClass([conWrap, resWrap], 'e-transition');
18778
+ }
18507
18779
  }
18508
18780
  else {
18509
18781
  this.notify(contentReady, {});
@@ -19380,6 +19652,9 @@ var Schedule = /** @__PURE__ @class */ (function (_super) {
19380
19652
  * @returns {void}
19381
19653
  */
19382
19654
  Schedule.prototype.scrollTo = function (hour, scrollDate) {
19655
+ if (this.currentView.indexOf('Agenda') < 0 && isNullOrUndefined(this.element.querySelector('.e-work-cells'))) {
19656
+ return;
19657
+ }
19383
19658
  if (this.activeView.scrollToDate && isNullOrUndefined(hour) && scrollDate) {
19384
19659
  this.activeView.scrollToDate(scrollDate);
19385
19660
  }
@@ -20361,7 +20636,7 @@ var Schedule = /** @__PURE__ @class */ (function (_super) {
20361
20636
  /**
20362
20637
  * Base class for the common drag and resize related actions
20363
20638
  */
20364
- var ActionBase = /** @__PURE__ @class */ (function () {
20639
+ var ActionBase = /** @class */ (function () {
20365
20640
  function ActionBase(parent) {
20366
20641
  this.daysVariation = 0;
20367
20642
  this.parent = parent;
@@ -20818,23 +21093,23 @@ var ActionBase = /** @__PURE__ @class */ (function () {
20818
21093
  return ActionBase;
20819
21094
  }());
20820
21095
 
20821
- var __extends$f = (undefined && undefined.__extends) || (function () {
20822
- var extendStatics = function (d, b) {
20823
- extendStatics = Object.setPrototypeOf ||
20824
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
20825
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
20826
- return extendStatics(d, b);
20827
- };
20828
- return function (d, b) {
20829
- extendStatics(d, b);
20830
- function __() { this.constructor = d; }
20831
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
20832
- };
20833
- })();
21096
+ var __extends$f = (undefined && undefined.__extends) || (function () {
21097
+ var extendStatics = function (d, b) {
21098
+ extendStatics = Object.setPrototypeOf ||
21099
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
21100
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
21101
+ return extendStatics(d, b);
21102
+ };
21103
+ return function (d, b) {
21104
+ extendStatics(d, b);
21105
+ function __() { this.constructor = d; }
21106
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
21107
+ };
21108
+ })();
20834
21109
  /**
20835
21110
  * Schedule events resize actions
20836
21111
  */
20837
- var Resize = /** @__PURE__ @class */ (function (_super) {
21112
+ var Resize = /** @class */ (function (_super) {
20838
21113
  __extends$f(Resize, _super);
20839
21114
  function Resize() {
20840
21115
  return _super !== null && _super.apply(this, arguments) || this;
@@ -20899,8 +21174,8 @@ var Resize = /** @__PURE__ @class */ (function (_super) {
20899
21174
  };
20900
21175
  _this.actionObj.groupIndex = _this.parent.uiStateValues.isGroupAdaptive ? _this.parent.uiStateValues.groupIndex : 0;
20901
21176
  var workCell = _this.parent.element.querySelector('.' + WORK_CELLS_CLASS);
20902
- _this.actionObj.cellWidth = getElementWidth(workCell);
20903
- _this.actionObj.cellHeight = getElementHeight(workCell);
21177
+ _this.actionObj.cellWidth = _this.parent.getElementWidth(workCell);
21178
+ _this.actionObj.cellHeight = _this.parent.getElementHeight(workCell);
20904
21179
  var hRows = _this.parent.activeViewOptions.headerRows.map(function (row) { return row.option; });
20905
21180
  if (_this.parent.activeView.isTimelineView() && hRows.length > 0 && ['Date', 'Hour'].indexOf(hRows.slice(-1)[0]) < 0) {
20906
21181
  var tr = _this.parent.getContentTable().querySelector('tr');
@@ -21134,6 +21409,7 @@ var Resize = /** @__PURE__ @class */ (function (_super) {
21134
21409
  EventHandler.remove(document, Browser.touchEndEvent, this.resizeStop);
21135
21410
  clearInterval(this.actionObj.scrollInterval);
21136
21411
  this.actionObj.scrollInterval = null;
21412
+ this.actionObj.action = null;
21137
21413
  this.removeCloneElementClasses();
21138
21414
  this.removeCloneElement();
21139
21415
  this.actionClass('removeClass');
@@ -21210,10 +21486,10 @@ var Resize = /** @__PURE__ @class */ (function (_super) {
21210
21486
  parseInt(this.actionObj.clone.style.left, 10);
21211
21487
  offsetValue = Math.round(offsetValue / this.actionObj.cellWidth) * this.actionObj.cellWidth;
21212
21488
  if (!isLeft) {
21213
- offsetValue += (getElementWidth(this.actionObj.clone) - this.actionObj.cellWidth);
21489
+ offsetValue += (this.parent.getElementWidth(this.actionObj.clone) - this.actionObj.cellWidth);
21214
21490
  }
21215
- cellIndex = !isTimelineMonth ? Math.round(offsetValue / (getElementWidth(tr) / noOfDays)) :
21216
- Math.floor(offsetValue / Math.floor(getElementWidth(tr) / noOfDays));
21491
+ cellIndex = !isTimelineMonth ? Math.round(offsetValue / (this.parent.getElementWidth(tr) / noOfDays)) :
21492
+ Math.floor(offsetValue / Math.floor(this.parent.getElementWidth(tr) / noOfDays));
21217
21493
  isDateHeader = isTimeViews && headerName === 'Date';
21218
21494
  cellIndex = isLeft ? cellIndex : isTimelineMonth ? cellIndex + 1 : cellIndex;
21219
21495
  isLastCell = cellIndex === tdCollections.length;
@@ -21222,7 +21498,7 @@ var Resize = /** @__PURE__ @class */ (function (_super) {
21222
21498
  else {
21223
21499
  var cellWidth = this.actionObj.cellWidth;
21224
21500
  cellIndex = isLeft ? Math.floor(offset / this.actionObj.cellWidth) :
21225
- Math.ceil((offset + (getElementWidth(this.actionObj.clone) - cellWidth)) / this.actionObj.cellWidth);
21501
+ Math.ceil((offset + (this.parent.getElementWidth(this.actionObj.clone) - cellWidth)) / this.actionObj.cellWidth);
21226
21502
  if (this.parent.enableRtl) {
21227
21503
  var cellOffsetWidth = 0;
21228
21504
  if (headerName === 'TimelineMonth' || (!this.parent.activeViewOptions.timeScale.enable &&
@@ -21230,7 +21506,7 @@ var Resize = /** @__PURE__ @class */ (function (_super) {
21230
21506
  cellOffsetWidth = this.actionObj.cellWidth;
21231
21507
  }
21232
21508
  var offsetWidth = (Math.floor(offset / this.actionObj.cellWidth) *
21233
- this.actionObj.cellWidth) + (isLeft ? 0 : getElementWidth(this.actionObj.clone) - cellOffsetWidth);
21509
+ this.actionObj.cellWidth) + (isLeft ? 0 : this.parent.getElementWidth(this.actionObj.clone) - cellOffsetWidth);
21234
21510
  cellIndex = Math.floor(offsetWidth / this.actionObj.cellWidth);
21235
21511
  }
21236
21512
  isLastCell = cellIndex === tdCollections.length;
@@ -21249,7 +21525,7 @@ var Resize = /** @__PURE__ @class */ (function (_super) {
21249
21525
  }
21250
21526
  else {
21251
21527
  if (!isLeft) {
21252
- offset += getElementWidth(this.actionObj.clone);
21528
+ offset += this.parent.getElementWidth(this.actionObj.clone);
21253
21529
  }
21254
21530
  var spanMinutes = Math.ceil((this.actionObj.slotInterval / this.actionObj.cellWidth) *
21255
21531
  (offset - Math.floor(offset / this.actionObj.cellWidth) * this.actionObj.cellWidth));
@@ -21261,9 +21537,9 @@ var Resize = /** @__PURE__ @class */ (function (_super) {
21261
21537
  }
21262
21538
  else {
21263
21539
  var cloneIndex = closest(this.actionObj.clone, 'td').cellIndex;
21264
- var originalWidth = Math.ceil((isLeft ? getElementWidth(this.actionObj.element) : 0) /
21540
+ var originalWidth = Math.ceil((isLeft ? this.parent.getElementWidth(this.actionObj.element) : 0) /
21265
21541
  this.actionObj.cellWidth) * this.actionObj.cellWidth;
21266
- var noOfDays = Math.ceil((getElementWidth(this.actionObj.clone) - originalWidth) /
21542
+ var noOfDays = Math.ceil((this.parent.getElementWidth(this.actionObj.clone) - originalWidth) /
21267
21543
  this.actionObj.cellWidth);
21268
21544
  var tr = closest(this.actionObj.clone, 'tr');
21269
21545
  var dayIndex = isLeft ? cloneIndex - noOfDays : cloneIndex + noOfDays - 1;
@@ -21326,9 +21602,9 @@ var Resize = /** @__PURE__ @class */ (function (_super) {
21326
21602
  var slotInterval = (this.actionObj.cellWidth / this.actionObj.slotInterval) * this.actionObj.interval;
21327
21603
  var pageWidth = isLeft ? (this.actionObj.X - this.actionObj.pageX) : (this.actionObj.pageX - this.actionObj.X);
21328
21604
  var targetWidth = isTimelineView ?
21329
- (getElementWidth(this.actionObj.element) / this.actionObj.cellWidth) * this.actionObj.cellWidth :
21330
- this.parent.currentView === 'Month' ? getElementWidth(this.actionObj.element) :
21331
- Math.ceil(getElementWidth(this.actionObj.element) / this.actionObj.cellWidth) * this.actionObj.cellWidth;
21605
+ (this.parent.getElementWidth(this.actionObj.element) / this.actionObj.cellWidth) * this.actionObj.cellWidth :
21606
+ this.parent.currentView === 'Month' ? this.parent.getElementWidth(this.actionObj.element) :
21607
+ Math.ceil(this.parent.getElementWidth(this.actionObj.element) / this.actionObj.cellWidth) * this.actionObj.cellWidth;
21332
21608
  var offsetWidth = targetWidth + (Math.ceil(pageWidth / this.actionObj.cellWidth) * this.actionObj.cellWidth);
21333
21609
  var left = (this.parent.enableRtl) ? parseInt(this.actionObj.element.style.right, 10) : this.actionObj.clone.offsetLeft;
21334
21610
  if (isTimeViews) {
@@ -21343,7 +21619,7 @@ var Resize = /** @__PURE__ @class */ (function (_super) {
21343
21619
  this.actionObj.event[this.parent.eventFields.isAllDay] = false;
21344
21620
  }
21345
21621
  var width = !isLeft && ((offsetWidth + this.actionObj.clone.offsetLeft > this.scrollArgs.width)) ?
21346
- getElementWidth(this.actionObj.clone) : (offsetWidth < this.actionObj.cellWidth) ? offsetWidth : offsetWidth;
21622
+ this.parent.getElementWidth(this.actionObj.clone) : (offsetWidth < this.actionObj.cellWidth) ? offsetWidth : offsetWidth;
21347
21623
  if (this.parent.enableRtl) {
21348
21624
  var rightValue = isTimelineView ? parseInt(this.actionObj.element.style.right, 10) :
21349
21625
  -(offsetWidth - this.actionObj.cellWidth);
@@ -21357,7 +21633,7 @@ var Resize = /** @__PURE__ @class */ (function (_super) {
21357
21633
  }
21358
21634
  rightValue = rightValue >= this.scrollArgs.width ? this.scrollArgs.width - this.actionObj.cellWidth : rightValue;
21359
21635
  styles.right = formatUnit(rightValue);
21360
- width = width + rightValue > this.scrollArgs.width ? getElementWidth(this.actionObj.clone) : width;
21636
+ width = width + rightValue > this.scrollArgs.width ? this.parent.getElementWidth(this.actionObj.clone) : width;
21361
21637
  }
21362
21638
  else {
21363
21639
  var offsetLeft = isLeft ? this.actionObj.element.offsetLeft - (this.actionObj.X - this.actionObj.pageX) :
@@ -21365,12 +21641,12 @@ var Resize = /** @__PURE__ @class */ (function (_super) {
21365
21641
  if (isTimelineView) {
21366
21642
  offsetLeft = isLeft ? offsetLeft : parseInt(this.actionObj.clone.style.left, 10);
21367
21643
  if (this.parent.enableRtl) {
21368
- offsetLeft = !isLeft ? (this.actionObj.pageX < this.actionObj.X - getElementWidth(this.actionObj.clone))
21644
+ offsetLeft = !isLeft ? (this.actionObj.pageX < this.actionObj.X - this.parent.getElementWidth(this.actionObj.clone))
21369
21645
  ? parseInt(this.actionObj.clone.style.right, 10) : offsetLeft : offsetLeft;
21370
21646
  }
21371
21647
  else {
21372
- offsetLeft = isLeft ? (this.actionObj.pageX > this.actionObj.X + getElementWidth(this.actionObj.clone) &&
21373
- getElementWidth(this.actionObj.clone) === this.actionObj.cellWidth) ?
21648
+ offsetLeft = isLeft ? (this.actionObj.pageX > this.actionObj.X + this.parent.getElementWidth(this.actionObj.clone) &&
21649
+ this.parent.getElementWidth(this.actionObj.clone) === this.actionObj.cellWidth) ?
21374
21650
  parseInt(this.actionObj.clone.style.left, 10) : offsetLeft : offsetLeft;
21375
21651
  }
21376
21652
  }
@@ -21386,10 +21662,10 @@ var Resize = /** @__PURE__ @class */ (function (_super) {
21386
21662
  }
21387
21663
  else {
21388
21664
  offsetLeft = 0;
21389
- width = getElementWidth(this.actionObj.clone);
21665
+ width = this.parent.getElementWidth(this.actionObj.clone);
21390
21666
  }
21391
21667
  }
21392
- var cloneWidth = Math.ceil(getElementWidth(this.actionObj.clone) / this.actionObj.cellWidth) *
21668
+ var cloneWidth = Math.ceil(this.parent.getElementWidth(this.actionObj.clone) / this.actionObj.cellWidth) *
21393
21669
  this.actionObj.cellWidth;
21394
21670
  if (isLeft) {
21395
21671
  styles.left = formatUnit(isTimelineView ? offsetLeft : isLeft ? leftValue < 0 ? -offsetLeft :
@@ -21436,24 +21712,24 @@ var Resize = /** @__PURE__ @class */ (function (_super) {
21436
21712
  return Resize;
21437
21713
  }(ActionBase));
21438
21714
 
21439
- var __extends$g = (undefined && undefined.__extends) || (function () {
21440
- var extendStatics = function (d, b) {
21441
- extendStatics = Object.setPrototypeOf ||
21442
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
21443
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
21444
- return extendStatics(d, b);
21445
- };
21446
- return function (d, b) {
21447
- extendStatics(d, b);
21448
- function __() { this.constructor = d; }
21449
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
21450
- };
21451
- })();
21715
+ var __extends$g = (undefined && undefined.__extends) || (function () {
21716
+ var extendStatics = function (d, b) {
21717
+ extendStatics = Object.setPrototypeOf ||
21718
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
21719
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
21720
+ return extendStatics(d, b);
21721
+ };
21722
+ return function (d, b) {
21723
+ extendStatics(d, b);
21724
+ function __() { this.constructor = d; }
21725
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
21726
+ };
21727
+ })();
21452
21728
  var EVENT_GAP$2 = 2;
21453
21729
  /**
21454
21730
  * Year view events render
21455
21731
  */
21456
- var YearEvent = /** @__PURE__ @class */ (function (_super) {
21732
+ var YearEvent = /** @class */ (function (_super) {
21457
21733
  __extends$g(YearEvent, _super);
21458
21734
  function YearEvent(parent) {
21459
21735
  var _this = _super.call(this, parent, 'day') || this;
@@ -21498,8 +21774,8 @@ var YearEvent = /** @__PURE__ @class */ (function (_super) {
21498
21774
  var monthDate = new Date(this.parent.selectedDate.getFullYear(), month, 1);
21499
21775
  var monthStart = this.parent.calendarUtil.getMonthStartDate(new Date(monthDate.getTime()));
21500
21776
  var monthEnd = this.parent.calendarUtil.getMonthEndDate(new Date(monthDate.getTime()));
21501
- var startDate = getWeekFirstDate(monthStart, this.parent.firstDayOfWeek);
21502
- var endDate = addDays(getWeekLastDate(monthEnd, this.parent.firstDayOfWeek), 1);
21777
+ var startDate = getWeekFirstDate(monthStart, this.parent.activeViewOptions.firstDayOfWeek);
21778
+ var endDate = addDays(getWeekLastDate(monthEnd, this.parent.activeViewOptions.firstDayOfWeek), 1);
21503
21779
  for (var index = 0; startDate.getTime() < endDate.getTime(); index++) {
21504
21780
  var start = resetTime(new Date(startDate.getTime()));
21505
21781
  var end = addDays(new Date(start.getTime()), 1);
@@ -21520,10 +21796,10 @@ var YearEvent = /** @__PURE__ @class */ (function (_super) {
21520
21796
  YearEvent.prototype.timelineYearViewEvents = function () {
21521
21797
  var _this = this;
21522
21798
  var workCell = this.parent.element.querySelector('.' + WORK_CELLS_CLASS + ':not(.' + OTHERMONTH_CLASS + ')');
21523
- this.cellWidth = getElementWidth(workCell);
21799
+ this.cellWidth = this.parent.getElementWidth(workCell);
21524
21800
  this.cellHeader = getOuterHeight(workCell.querySelector('.' + DATE_HEADER_CLASS));
21525
21801
  var eventTable = this.parent.element.querySelector('.' + EVENT_TABLE_CLASS);
21526
- this.eventHeight = getElementHeightFromClass(eventTable, APPOINTMENT_CLASS);
21802
+ this.eventHeight = this.parent.getElementHeightFromClass(eventTable, APPOINTMENT_CLASS);
21527
21803
  var selector = "." + MONTH_HEADER_WRAPPER + " tbody tr,." + RESOURCE_COLUMN_TABLE_CLASS + " tbody tr,." + CONTENT_TABLE_CLASS + " tbody tr";
21528
21804
  this.addCellHeight(selector, this.eventHeight, EVENT_GAP$2, this.cellHeader, this.moreIndicatorHeight);
21529
21805
  var wrapperCollection = [].slice.call(this.parent.element.querySelectorAll('.' + APPOINTMENT_CONTAINER_CLASS));
@@ -21679,10 +21955,10 @@ var YearEvent = /** @__PURE__ @class */ (function (_super) {
21679
21955
  var contentTable = this.parent.element.querySelector('.' + CONTENT_WRAP_CLASS);
21680
21956
  var isVerticalScrollbarAvail = contentTable.offsetWidth > contentTable.clientWidth;
21681
21957
  var workCell = this.parent.element.querySelector('.' + WORK_CELLS_CLASS);
21682
- this.cellWidth = getElementWidth(workCell);
21958
+ this.cellWidth = this.parent.getElementWidth(workCell);
21683
21959
  this.cellHeader = 0;
21684
21960
  var eventTable = this.parent.element.querySelector('.' + EVENT_TABLE_CLASS);
21685
- this.eventHeight = getElementHeightFromClass(eventTable, APPOINTMENT_CLASS);
21961
+ this.eventHeight = this.parent.getElementHeightFromClass(eventTable, APPOINTMENT_CLASS);
21686
21962
  var selector = "." + MONTH_HEADER_WRAPPER + " tbody tr,." + RESOURCE_COLUMN_TABLE_CLASS + " tbody tr,." + CONTENT_TABLE_CLASS + " tbody tr";
21687
21963
  this.addCellHeight(selector, this.eventHeight, EVENT_GAP$2, this.cellHeader, this.moreIndicatorHeight);
21688
21964
  var wrapperCollection = [].slice.call(this.parent.element.querySelectorAll('.' + APPOINTMENT_CONTAINER_CLASS));
@@ -21724,7 +22000,7 @@ var YearEvent = /** @__PURE__ @class */ (function (_super) {
21724
22000
  appWrapper.forEach(function (appWrap, cellIndex) {
21725
22001
  var td = row.querySelector("td:nth-child(" + (cellIndex + 1) + ")");
21726
22002
  var app = [].slice.call(appWrap.children);
21727
- var width = getElementWidth(td);
22003
+ var width = _this.parent.getElementWidth(td);
21728
22004
  var left = td.offsetLeft;
21729
22005
  if (_this.parent.enableRtl) {
21730
22006
  var right_1 = conTable_1.offsetWidth - left - td.offsetWidth;
@@ -22059,24 +22335,24 @@ var YearEvent = /** @__PURE__ @class */ (function (_super) {
22059
22335
  return YearEvent;
22060
22336
  }(TimelineEvent));
22061
22337
 
22062
- var __extends$h = (undefined && undefined.__extends) || (function () {
22063
- var extendStatics = function (d, b) {
22064
- extendStatics = Object.setPrototypeOf ||
22065
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
22066
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
22067
- return extendStatics(d, b);
22068
- };
22069
- return function (d, b) {
22070
- extendStatics(d, b);
22071
- function __() { this.constructor = d; }
22072
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
22073
- };
22074
- })();
22338
+ var __extends$h = (undefined && undefined.__extends) || (function () {
22339
+ var extendStatics = function (d, b) {
22340
+ extendStatics = Object.setPrototypeOf ||
22341
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
22342
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
22343
+ return extendStatics(d, b);
22344
+ };
22345
+ return function (d, b) {
22346
+ extendStatics(d, b);
22347
+ function __() { this.constructor = d; }
22348
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
22349
+ };
22350
+ })();
22075
22351
  var MINUTES_PER_DAY = 1440;
22076
22352
  /**
22077
22353
  * Schedule events drag actions
22078
22354
  */
22079
- var DragAndDrop = /** @__PURE__ @class */ (function (_super) {
22355
+ var DragAndDrop = /** @class */ (function (_super) {
22080
22356
  __extends$h(DragAndDrop, _super);
22081
22357
  function DragAndDrop() {
22082
22358
  var _this = _super !== null && _super.apply(this, arguments) || this;
@@ -22099,14 +22375,19 @@ var DragAndDrop = /** @__PURE__ @class */ (function (_super) {
22099
22375
  _this.isAllDayTarget = false;
22100
22376
  _this.targetTd = null;
22101
22377
  _this.isCursorAhead = false;
22378
+ _this.enableCurrentViewDrag = false;
22379
+ _this.isPreventMultiDrag = false;
22380
+ _this.slotsUptoCursor = -1;
22381
+ _this.eleTop = 0;
22102
22382
  return _this;
22103
22383
  }
22104
22384
  DragAndDrop.prototype.wireDragEvent = function (element) {
22385
+ var isVerticalView = ['Day', 'Week', 'WorkWeek'].indexOf(this.parent.currentView) > -1;
22105
22386
  new Draggable(element, {
22106
22387
  abort: '.' + EVENT_RESIZE_CLASS,
22107
22388
  clone: true,
22108
22389
  isDragScroll: true,
22109
- enableTailMode: (this.parent.eventDragArea) ? true : false,
22390
+ enableTailMode: (this.parent.eventDragArea || isVerticalView) ? true : false,
22110
22391
  cursorAt: (this.parent.eventDragArea) ? { left: -20, top: -20 } : { left: 0, top: 0 },
22111
22392
  dragArea: this.dragArea,
22112
22393
  dragStart: this.dragStart.bind(this),
@@ -22130,6 +22411,8 @@ var DragAndDrop = /** @__PURE__ @class */ (function (_super) {
22130
22411
  }
22131
22412
  this.setDragActionDefaultValues();
22132
22413
  this.actionObj.element = e.element;
22414
+ this.eleTop = parseFloat(this.actionObj.element.style.top);
22415
+ this.slotsUptoCursor = -1;
22133
22416
  this.actionObj.action = 'drag';
22134
22417
  var elements = [];
22135
22418
  if (!this.parent.allowMultiDrag || isNullOrUndefined(this.parent.selectedElements) || this.parent.selectedElements.length === 0 ||
@@ -22208,12 +22491,21 @@ var DragAndDrop = /** @__PURE__ @class */ (function (_super) {
22208
22491
  }
22209
22492
  var top_1 = parseInt(e.top, 10);
22210
22493
  top_1 = top_1 < 0 ? 0 : top_1;
22211
- topValue = formatUnit(Math.ceil(top_1 / cellHeight) * cellHeight);
22494
+ if (this.slotsUptoCursor < 0) {
22495
+ var cellsCountUptoCursor = Math.floor(top_1 / cellHeight);
22496
+ var cellsCountUptoEleTop = Math.floor(this.eleTop / cellHeight);
22497
+ this.slotsUptoCursor = cellsCountUptoCursor - cellsCountUptoEleTop;
22498
+ }
22499
+ top_1 = (Math.floor((top_1 + 1) / cellHeight) - this.slotsUptoCursor) * cellHeight;
22500
+ topValue = formatUnit(top_1 < 0 ? 0 : top_1);
22212
22501
  var scrollHeight = this.parent.element.querySelector('.e-content-wrap').scrollHeight;
22213
22502
  var cloneBottom = parseInt(topValue, 10) + this.actionObj.clone.offsetHeight;
22214
22503
  if (cloneBottom > scrollHeight) {
22215
22504
  topValue = (parseInt(topValue, 10) - (cloneBottom - scrollHeight)) + 'px';
22216
22505
  }
22506
+ if (this.isPreventMultiDrag) {
22507
+ topValue = formatUnit(this.actionObj.clone.offsetTop);
22508
+ }
22217
22509
  }
22218
22510
  return { left: leftValue, top: topValue };
22219
22511
  };
@@ -22265,6 +22557,7 @@ var DragAndDrop = /** @__PURE__ @class */ (function (_super) {
22265
22557
  _this.actionObj.interval = dragEventArgs.interval;
22266
22558
  _this.actionObj.navigation = dragEventArgs.navigation;
22267
22559
  _this.actionObj.scroll = dragEventArgs.scroll;
22560
+ _this.enableCurrentViewDrag = dragArgs.dragWithinRange && !dragArgs.navigation.enable && _this.parent.allowMultiDrag;
22268
22561
  _this.actionObj.excludeSelectors = dragEventArgs.excludeSelectors;
22269
22562
  var viewElement = _this.parent.element.querySelector('.' + CONTENT_WRAP_CLASS);
22270
22563
  _this.scrollArgs = { element: viewElement, width: viewElement.scrollWidth, height: viewElement.scrollHeight };
@@ -22425,6 +22718,7 @@ var DragAndDrop = /** @__PURE__ @class */ (function (_super) {
22425
22718
  DragAndDrop.prototype.dragStop = function (e) {
22426
22719
  var _this = this;
22427
22720
  this.isCursorAhead = false;
22721
+ this.isPreventMultiDrag = false;
22428
22722
  this.removeCloneElementClasses();
22429
22723
  this.removeCloneElement();
22430
22724
  clearInterval(this.actionObj.navigationInterval);
@@ -22493,7 +22787,7 @@ var DragAndDrop = /** @__PURE__ @class */ (function (_super) {
22493
22787
  this.timelineEventModule.cellWidth = this.actionObj.cellWidth;
22494
22788
  this.timelineEventModule.getSlotDates();
22495
22789
  this.actionObj.cellWidth = this.isHeaderRows ? this.timelineEventModule.cellWidth :
22496
- getElementWidth(this.parent.element.querySelector('.' + WORK_CELLS_CLASS));
22790
+ this.parent.getElementWidth(this.parent.element.querySelector('.' + WORK_CELLS_CLASS));
22497
22791
  this.calculateTimelineTime(e);
22498
22792
  }
22499
22793
  else {
@@ -22638,7 +22932,7 @@ var DragAndDrop = /** @__PURE__ @class */ (function (_super) {
22638
22932
  (dragArea.scrollTop + dragArea.offsetHeight - this.actionObj.clone.offsetHeight + window.pageYOffset) +
22639
22933
  (this.actionObj.clone.offsetHeight - this.heightUptoCursorPoint);
22640
22934
  offsetTop = Math.round(offsetTop / this.actionObj.cellHeight) * this.actionObj.cellHeight;
22641
- if (dragArea.scrollTop > 0) {
22935
+ if (dragArea.scrollTop > 0 && offsetTop < dragArea.scrollHeight) {
22642
22936
  this.actionObj.clone.style.top = formatUnit(offsetTop);
22643
22937
  }
22644
22938
  }
@@ -22670,7 +22964,9 @@ var DragAndDrop = /** @__PURE__ @class */ (function (_super) {
22670
22964
  var dragStart;
22671
22965
  var dragEnd;
22672
22966
  if (this.parent.activeViewOptions.timeScale.enable && !this.isAllDayDrag) {
22673
- this.appendCloneElement(this.getEventWrapper(colIndex));
22967
+ if (!this.enableCurrentViewDrag || this.multiData.length === 0) {
22968
+ this.appendCloneElement(this.getEventWrapper(colIndex));
22969
+ }
22674
22970
  dragStart = this.parent.getDateFromElement(td);
22675
22971
  dragStart.setMinutes(dragStart.getMinutes() + (diffInMinutes / heightPerMinute));
22676
22972
  dragEnd = new Date(dragStart.getTime());
@@ -22727,18 +23023,34 @@ var DragAndDrop = /** @__PURE__ @class */ (function (_super) {
22727
23023
  this.startTime = eventObj_1[this.parent.eventFields.startTime].getTime();
22728
23024
  }
22729
23025
  var startTimeDiff = event[this.parent.eventFields.startTime].getTime() - this.startTime;
22730
- for (var index_2 = 0; index_2 < this.multiData.length; index_2++) {
22731
- this.updatedData[parseInt(index_2.toString(), 10)] =
22732
- this.updateMultipleData(this.multiData[parseInt(index_2.toString(), 10)], startTimeDiff);
22733
- var dayIndex = this.getDayIndex(this.updatedData[parseInt(index_2.toString(), 10)]);
22734
- if (dayIndex >= 0) {
22735
- var wrapper = this.getEventWrapper(dayIndex, this.updatedData[parseInt(index_2.toString(), 10)][this.parent.eventFields.isAllDay]);
22736
- this.appendCloneElement(wrapper, this.actionObj.cloneElement[parseInt(index_2.toString(), 10)]);
22737
- this.updateEventHeight(this.updatedData[parseInt(index_2.toString(), 10)], index_2, dayIndex);
22738
- }
22739
- else {
22740
- if (!isNullOrUndefined(this.actionObj.cloneElement[parseInt(index_2.toString(), 10)].parentNode)) {
22741
- remove(this.actionObj.cloneElement[parseInt(index_2.toString(), 10)]);
23026
+ if (this.enableCurrentViewDrag) {
23027
+ var renderDates = this.getRenderedDates();
23028
+ for (var i = 0; i < this.multiData.length; i++) {
23029
+ var eventObj_2 = extend({}, this.multiData[parseInt(i.toString(), 10)], null, true);
23030
+ var startTime = new Date(eventObj_2[this.parent.eventFields.startTime].getTime() + startTimeDiff);
23031
+ var dayIndex = this.parent.getIndexOfDate(renderDates, resetTime(startTime));
23032
+ if (dayIndex < 0) {
23033
+ this.isPreventMultiDrag = true;
23034
+ break;
23035
+ }
23036
+ this.isPreventMultiDrag = false;
23037
+ }
23038
+ }
23039
+ if (!this.isPreventMultiDrag) {
23040
+ for (var index_2 = 0; index_2 < this.multiData.length; index_2++) {
23041
+ this.updatedData[parseInt(index_2.toString(), 10)] =
23042
+ this.updateMultipleData(this.multiData[parseInt(index_2.toString(), 10)], startTimeDiff);
23043
+ var dayIndex = this.getDayIndex(this.updatedData[parseInt(index_2.toString(), 10)]);
23044
+ if (dayIndex >= 0) {
23045
+ var isAllDay = this.updatedData[parseInt(index_2.toString(), 10)][this.parent.eventFields.isAllDay];
23046
+ var wrapper = this.getEventWrapper(dayIndex, isAllDay);
23047
+ this.appendCloneElement(wrapper, this.actionObj.cloneElement[parseInt(index_2.toString(), 10)]);
23048
+ this.updateEventHeight(this.updatedData[parseInt(index_2.toString(), 10)], index_2, dayIndex);
23049
+ }
23050
+ else {
23051
+ if (!isNullOrUndefined(this.actionObj.cloneElement[parseInt(index_2.toString(), 10)].parentNode)) {
23052
+ remove(this.actionObj.cloneElement[parseInt(index_2.toString(), 10)]);
23053
+ }
22742
23054
  }
22743
23055
  }
22744
23056
  }
@@ -22868,7 +23180,7 @@ var DragAndDrop = /** @__PURE__ @class */ (function (_super) {
22868
23180
  var appHeight = this.parent.activeViewOptions.timeScale.enable ? this.verticalEvent.getHeight(eStart, eEnd) :
22869
23181
  this.actionObj.element.offsetHeight;
22870
23182
  var topValue = this.parent.activeViewOptions.timeScale.enable ?
22871
- this.verticalEvent.getTopValue(eStart, dayIndex, indexGroup) : this.actionObj.element.offsetTop;
23183
+ this.verticalEvent.getTopValue(eStart) : this.actionObj.element.offsetTop;
22872
23184
  if (isNullOrUndefined(index)) {
22873
23185
  if (i === 0) {
22874
23186
  this.actionObj.clone.style.top = formatUnit(topValue);
@@ -22956,6 +23268,9 @@ var DragAndDrop = /** @__PURE__ @class */ (function (_super) {
22956
23268
  };
22957
23269
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
22958
23270
  DragAndDrop.prototype.swapDragging = function (e) {
23271
+ if (this.isPreventMultiDrag) {
23272
+ return;
23273
+ }
22959
23274
  var colIndex = !isNullOrUndefined(closest(this.actionObj.target, 'td')) && closest(this.actionObj.target, 'td').cellIndex;
22960
23275
  if (closest(this.actionObj.target, '.' + DATE_HEADER_WRAP_CLASS) &&
22961
23276
  !closest(this.actionObj.clone, '.' + ALLDAY_APPOINTMENT_WRAPPER_CLASS)) {
@@ -23081,7 +23396,7 @@ var DragAndDrop = /** @__PURE__ @class */ (function (_super) {
23081
23396
  getUniversalTime(eventObj[this.parent.eventFields.startTime]);
23082
23397
  var offsetLeft = this.parent.enableRtl ? Math.abs(this.actionObj.clone.offsetLeft) - this.actionObj.clone.offsetWidth :
23083
23398
  parseInt(this.actionObj.clone.style.left, 10);
23084
- offsetLeft = Math.floor(offsetLeft / Math.trunc(this.actionObj.cellWidth)) * this.actionObj.cellWidth;
23399
+ offsetLeft = Math.round(offsetLeft / this.actionObj.cellWidth) * this.actionObj.cellWidth;
23085
23400
  var rightOffset;
23086
23401
  if (this.parent.enableRtl) {
23087
23402
  rightOffset = Math.abs(parseInt(this.actionObj.clone.style.right, 10));
@@ -23267,7 +23582,7 @@ var DragAndDrop = /** @__PURE__ @class */ (function (_super) {
23267
23582
  return 0;
23268
23583
  };
23269
23584
  DragAndDrop.prototype.getColumnIndex = function (offsetLeft) {
23270
- var index = Math.floor(offsetLeft / Math.trunc(this.actionObj.cellWidth));
23585
+ var index = Math.round(offsetLeft / this.actionObj.cellWidth);
23271
23586
  if (this.isHeaderRows) {
23272
23587
  return index;
23273
23588
  }
@@ -23312,7 +23627,7 @@ var DragAndDrop = /** @__PURE__ @class */ (function (_super) {
23312
23627
  ~~(dragArea.querySelector('table').offsetHeight / trCollection.length) : this.actionObj.cellHeight;
23313
23628
  var rowIndex = Math.floor(Math.floor((this.actionObj.Y +
23314
23629
  (dragArea.scrollTop - translateY - (window.scrollY || window.pageYOffset))) -
23315
- getElementTop(dragArea)) / rowHeight);
23630
+ getElementTop(dragArea, this.parent.uiStateValues.isTransformed)) / rowHeight);
23316
23631
  rowIndex = (rowIndex < 0) ? 0 : (rowIndex > trCollection.length - 1) ? trCollection.length - 1 : rowIndex;
23317
23632
  this.actionObj.index = rowIndex;
23318
23633
  var eventContainer = this.parent.element.querySelectorAll('.e-appointment-container:not(.e-hidden)').item(rowIndex);
@@ -23328,7 +23643,7 @@ var DragAndDrop = /** @__PURE__ @class */ (function (_super) {
23328
23643
  if (!isNullOrUndefined(this.parent.eventDragArea)) {
23329
23644
  return;
23330
23645
  }
23331
- var top = getElementHeight(trCollection[parseInt(rowIndex.toString(), 10)]) * rowIndex;
23646
+ var top = this.parent.getElementHeight(trCollection[parseInt(rowIndex.toString(), 10)]) * rowIndex;
23332
23647
  if (this.parent.rowAutoHeight) {
23333
23648
  var cursorElement = this.getCursorElement(e);
23334
23649
  if (cursorElement) {
@@ -23405,7 +23720,7 @@ var DragAndDrop = /** @__PURE__ @class */ (function (_super) {
23405
23720
  /**
23406
23721
  * view base
23407
23722
  */
23408
- var ViewBase = /** @__PURE__ @class */ (function () {
23723
+ var ViewBase = /** @class */ (function () {
23409
23724
  /**
23410
23725
  * Constructor
23411
23726
  *
@@ -23664,6 +23979,10 @@ var ViewBase = /** @__PURE__ @class */ (function () {
23664
23979
  }
23665
23980
  startHour.setMilliseconds(0);
23666
23981
  endHour.setMilliseconds(0);
23982
+ if (resetTime(date).getTime() !== resetTime(startHour).getTime()) {
23983
+ startHour = new Date(2000, 0, 0, startHour.getHours(), startHour.getMinutes(), startHour.getMilliseconds());
23984
+ endHour = new Date(2000, 0, 0, endHour.getHours(), endHour.getMinutes(), endHour.getMilliseconds());
23985
+ }
23667
23986
  return !(getDateInMs(date) < getDateInMs(startHour) || getDateInMs(date) >= getDateInMs(endHour) ||
23668
23987
  !this.isWorkDay(date, workDays));
23669
23988
  };
@@ -23893,7 +24212,7 @@ var ViewBase = /** @__PURE__ @class */ (function () {
23893
24212
  if (this.isTimelineView()) {
23894
24213
  var colElements = this.getColElements();
23895
24214
  var contentBody = this.element.querySelector('.' + CONTENT_TABLE_CLASS + ' tbody');
23896
- var colWidth_1 = (getElementWidth(contentBody) / (colElements.length / 2));
24215
+ var colWidth_1 = (this.parent.getElementWidth(contentBody) / (colElements.length / 2));
23897
24216
  if (content.offsetHeight !== content.clientHeight) {
23898
24217
  var resourceColumn = this.parent.element.querySelector('.' + RESOURCE_COLUMN_WRAP_CLASS);
23899
24218
  if (!isNullOrUndefined(resourceColumn) && resourceColumn.offsetHeight !== content.clientHeight) {
@@ -24025,6 +24344,15 @@ var ViewBase = /** @__PURE__ @class */ (function () {
24025
24344
  this.parent.resourceBase.expandedResources = this.colLevels[this.colLevels.length - 1];
24026
24345
  }
24027
24346
  };
24347
+ ViewBase.prototype.getGroupIndices = function (dataCollection) {
24348
+ var groupIndices = [];
24349
+ if (this.parent.virtualScrollModule && this.parent.activeViewOptions.group.resources.length > 0 && (dataCollection ||
24350
+ this.parent.virtualScrollModule.existingDataCollection.length > 0) && !this.parent.uiStateValues.isGroupAdaptive) {
24351
+ dataCollection = isNullOrUndefined(dataCollection) ? this.parent.virtualScrollModule.existingDataCollection : dataCollection;
24352
+ groupIndices = dataCollection.map(function (data) { return data.groupIndex; });
24353
+ }
24354
+ return groupIndices;
24355
+ };
24028
24356
  ViewBase.prototype.destroy = function () {
24029
24357
  if (this.element && this.element.parentNode) {
24030
24358
  remove(this.element);
@@ -24036,23 +24364,23 @@ var ViewBase = /** @__PURE__ @class */ (function () {
24036
24364
  return ViewBase;
24037
24365
  }());
24038
24366
 
24039
- var __extends$i = (undefined && undefined.__extends) || (function () {
24040
- var extendStatics = function (d, b) {
24041
- extendStatics = Object.setPrototypeOf ||
24042
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
24043
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
24044
- return extendStatics(d, b);
24045
- };
24046
- return function (d, b) {
24047
- extendStatics(d, b);
24048
- function __() { this.constructor = d; }
24049
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
24050
- };
24051
- })();
24367
+ var __extends$i = (undefined && undefined.__extends) || (function () {
24368
+ var extendStatics = function (d, b) {
24369
+ extendStatics = Object.setPrototypeOf ||
24370
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
24371
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
24372
+ return extendStatics(d, b);
24373
+ };
24374
+ return function (d, b) {
24375
+ extendStatics(d, b);
24376
+ function __() { this.constructor = d; }
24377
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
24378
+ };
24379
+ })();
24052
24380
  /**
24053
24381
  * vertical view
24054
24382
  */
24055
- var VerticalView = /** @__PURE__ @class */ (function (_super) {
24383
+ var VerticalView = /** @class */ (function (_super) {
24056
24384
  __extends$i(VerticalView, _super);
24057
24385
  function VerticalView(parent) {
24058
24386
  var _this = _super.call(this, parent) || this;
@@ -24275,11 +24603,8 @@ var VerticalView = /** @__PURE__ @class */ (function (_super) {
24275
24603
  var currentDate = this.parent.getCurrentTime();
24276
24604
  if (this.parent.showTimeIndicator && this.isWorkHourRange(currentDate)) {
24277
24605
  var currentDateIndex = this.getCurrentTimeIndicatorIndex();
24278
- if (currentDateIndex.length > 0) {
24279
- var workCells = [].slice.call(this.element.querySelectorAll('.' + WORK_CELLS_CLASS));
24280
- if (workCells.length > 0) {
24281
- this.changeCurrentTimePosition();
24282
- }
24606
+ if (currentDateIndex.length > 0 && !isNullOrUndefined(this.element.querySelector('.' + WORK_CELLS_CLASS))) {
24607
+ this.changeCurrentTimePosition();
24283
24608
  if (isNullOrUndefined(this.currentTimeIndicatorTimer)) {
24284
24609
  var interval = MS_PER_MINUTE - ((currentDate.getSeconds() * 1000) + currentDate.getMilliseconds());
24285
24610
  if (interval <= (MS_PER_MINUTE - 1000)) {
@@ -24381,7 +24706,11 @@ var VerticalView = /** @__PURE__ @class */ (function (_super) {
24381
24706
  }
24382
24707
  for (var _i = 0, currentDateIndex_1 = currentDateIndex; _i < currentDateIndex_1.length; _i++) {
24383
24708
  var day = currentDateIndex_1[_i];
24384
- curTimeWrap[parseInt(day.toString(), 10)].appendChild(createElement('div', { className: CURRENT_TIMELINE_CLASS, styles: 'top:' + topInPx }));
24709
+ if (curTimeWrap.length > day) {
24710
+ curTimeWrap[parseInt(day.toString(), 10)].appendChild(createElement('div', {
24711
+ className: CURRENT_TIMELINE_CLASS, styles: 'top:' + topInPx
24712
+ }));
24713
+ }
24385
24714
  }
24386
24715
  var currentTimeEle = createElement('div', {
24387
24716
  innerHTML: this.parent.getTimeString(this.parent.getCurrentTime()),
@@ -24398,13 +24727,13 @@ var VerticalView = /** @__PURE__ @class */ (function (_super) {
24398
24727
  }
24399
24728
  };
24400
24729
  VerticalView.prototype.getTopFromDateTime = function (date) {
24401
- var startHour = this.getStartHour();
24730
+ var startHour = this.getStartEndHours(this.parent.activeViewOptions.startHour);
24402
24731
  var diffInMinutes = ((date.getHours() - startHour.getHours()) * 60) + (date.getMinutes() - startHour.getMinutes());
24403
24732
  return (diffInMinutes * this.getWorkCellHeight() * this.parent.activeViewOptions.timeScale.slotCount) /
24404
24733
  this.parent.activeViewOptions.timeScale.interval;
24405
24734
  };
24406
24735
  VerticalView.prototype.getWorkCellHeight = function () {
24407
- return parseFloat(getElementHeight(this.element.querySelector('.' + WORK_CELLS_CLASS)).toFixed(2));
24736
+ return parseFloat(this.parent.getElementHeight(this.element.querySelector('.' + WORK_CELLS_CLASS)).toFixed(2));
24408
24737
  };
24409
24738
  VerticalView.prototype.getTdContent = function (date, type, groupIndex) {
24410
24739
  var cntEle;
@@ -24707,12 +25036,21 @@ var VerticalView = /** @__PURE__ @class */ (function (_super) {
24707
25036
  var rows = [];
24708
25037
  var tr = createElement('tr');
24709
25038
  var td = createElement('td', { attrs: { 'aria-selected': 'false' } });
25039
+ var existingGroupIndices = this.getGroupIndices();
24710
25040
  var handler = function (r) {
24711
25041
  var ntr = tr.cloneNode();
24712
25042
  for (var _i = 0, _a = _this.colLevels[_this.colLevels.length - 1]; _i < _a.length; _i++) {
24713
25043
  var tdData = _a[_i];
24714
- var ntd = _this.createContentTd(tdData, r, td);
24715
- ntr.appendChild(ntd);
25044
+ var isAllowTdCreation = true;
25045
+ if (_this.parent.virtualScrollModule && _this.parent.activeViewOptions.group.resources.length > 0) {
25046
+ if (existingGroupIndices.indexOf(tdData.groupIndex) > -1) {
25047
+ isAllowTdCreation = false;
25048
+ }
25049
+ }
25050
+ if (isAllowTdCreation) {
25051
+ var ntd = _this.createContentTd(tdData, r, td);
25052
+ ntr.appendChild(ntd);
25053
+ }
24716
25054
  }
24717
25055
  rows.push(ntr);
24718
25056
  return r;
@@ -24900,23 +25238,23 @@ var VerticalView = /** @__PURE__ @class */ (function (_super) {
24900
25238
  return VerticalView;
24901
25239
  }(ViewBase));
24902
25240
 
24903
- var __extends$j = (undefined && undefined.__extends) || (function () {
24904
- var extendStatics = function (d, b) {
24905
- extendStatics = Object.setPrototypeOf ||
24906
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
24907
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
24908
- return extendStatics(d, b);
24909
- };
24910
- return function (d, b) {
24911
- extendStatics(d, b);
24912
- function __() { this.constructor = d; }
24913
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
24914
- };
24915
- })();
25241
+ var __extends$j = (undefined && undefined.__extends) || (function () {
25242
+ var extendStatics = function (d, b) {
25243
+ extendStatics = Object.setPrototypeOf ||
25244
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
25245
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
25246
+ return extendStatics(d, b);
25247
+ };
25248
+ return function (d, b) {
25249
+ extendStatics(d, b);
25250
+ function __() { this.constructor = d; }
25251
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
25252
+ };
25253
+ })();
24916
25254
  /**
24917
25255
  * day view
24918
25256
  */
24919
- var Day = /** @__PURE__ @class */ (function (_super) {
25257
+ var Day = /** @class */ (function (_super) {
24920
25258
  __extends$j(Day, _super);
24921
25259
  /**
24922
25260
  * Constructor for day view
@@ -24939,23 +25277,23 @@ var Day = /** @__PURE__ @class */ (function (_super) {
24939
25277
  return Day;
24940
25278
  }(VerticalView));
24941
25279
 
24942
- var __extends$k = (undefined && undefined.__extends) || (function () {
24943
- var extendStatics = function (d, b) {
24944
- extendStatics = Object.setPrototypeOf ||
24945
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
24946
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
24947
- return extendStatics(d, b);
24948
- };
24949
- return function (d, b) {
24950
- extendStatics(d, b);
24951
- function __() { this.constructor = d; }
24952
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
24953
- };
24954
- })();
25280
+ var __extends$k = (undefined && undefined.__extends) || (function () {
25281
+ var extendStatics = function (d, b) {
25282
+ extendStatics = Object.setPrototypeOf ||
25283
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
25284
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
25285
+ return extendStatics(d, b);
25286
+ };
25287
+ return function (d, b) {
25288
+ extendStatics(d, b);
25289
+ function __() { this.constructor = d; }
25290
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
25291
+ };
25292
+ })();
24955
25293
  /**
24956
25294
  * week view
24957
25295
  */
24958
- var Week = /** @__PURE__ @class */ (function (_super) {
25296
+ var Week = /** @class */ (function (_super) {
24959
25297
  __extends$k(Week, _super);
24960
25298
  /**
24961
25299
  * Constructor for week view
@@ -24984,23 +25322,23 @@ var Week = /** @__PURE__ @class */ (function (_super) {
24984
25322
  return Week;
24985
25323
  }(VerticalView));
24986
25324
 
24987
- var __extends$l = (undefined && undefined.__extends) || (function () {
24988
- var extendStatics = function (d, b) {
24989
- extendStatics = Object.setPrototypeOf ||
24990
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
24991
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
24992
- return extendStatics(d, b);
24993
- };
24994
- return function (d, b) {
24995
- extendStatics(d, b);
24996
- function __() { this.constructor = d; }
24997
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
24998
- };
24999
- })();
25325
+ var __extends$l = (undefined && undefined.__extends) || (function () {
25326
+ var extendStatics = function (d, b) {
25327
+ extendStatics = Object.setPrototypeOf ||
25328
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
25329
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
25330
+ return extendStatics(d, b);
25331
+ };
25332
+ return function (d, b) {
25333
+ extendStatics(d, b);
25334
+ function __() { this.constructor = d; }
25335
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
25336
+ };
25337
+ })();
25000
25338
  /**
25001
25339
  * work week view
25002
25340
  */
25003
- var WorkWeek = /** @__PURE__ @class */ (function (_super) {
25341
+ var WorkWeek = /** @class */ (function (_super) {
25004
25342
  __extends$l(WorkWeek, _super);
25005
25343
  /**
25006
25344
  * Constructor for work week view
@@ -25029,23 +25367,23 @@ var WorkWeek = /** @__PURE__ @class */ (function (_super) {
25029
25367
  return WorkWeek;
25030
25368
  }(VerticalView));
25031
25369
 
25032
- var __extends$m = (undefined && undefined.__extends) || (function () {
25033
- var extendStatics = function (d, b) {
25034
- extendStatics = Object.setPrototypeOf ||
25035
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
25036
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
25037
- return extendStatics(d, b);
25038
- };
25039
- return function (d, b) {
25040
- extendStatics(d, b);
25041
- function __() { this.constructor = d; }
25042
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
25043
- };
25044
- })();
25370
+ var __extends$m = (undefined && undefined.__extends) || (function () {
25371
+ var extendStatics = function (d, b) {
25372
+ extendStatics = Object.setPrototypeOf ||
25373
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
25374
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
25375
+ return extendStatics(d, b);
25376
+ };
25377
+ return function (d, b) {
25378
+ extendStatics(d, b);
25379
+ function __() { this.constructor = d; }
25380
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
25381
+ };
25382
+ })();
25045
25383
  /**
25046
25384
  * month view
25047
25385
  */
25048
- var Month = /** @__PURE__ @class */ (function (_super) {
25386
+ var Month = /** @class */ (function (_super) {
25049
25387
  __extends$m(Month, _super);
25050
25388
  function Month(parent) {
25051
25389
  var _this = _super.call(this, parent) || this;
@@ -25507,7 +25845,13 @@ var Month = /** @__PURE__ @class */ (function (_super) {
25507
25845
  var tr = createElement('tr');
25508
25846
  var td = createElement('td', { attrs: { 'aria-selected': 'false' } });
25509
25847
  var slotDatas = this.getContentSlots();
25848
+ var isTimeline = this.parent.currentView === 'TimelineMonth';
25849
+ var existingGroupIndices = isTimeline ? this.getGroupIndices() : [];
25510
25850
  for (var row = 0; row < slotDatas.length; row++) {
25851
+ if (existingGroupIndices.length > 0 &&
25852
+ existingGroupIndices.indexOf(slotDatas[parseInt(row.toString(), 10)][0].groupIndex) > -1) {
25853
+ continue;
25854
+ }
25511
25855
  var ntr = tr.cloneNode();
25512
25856
  for (var col = 0; col < slotDatas[parseInt(row.toString(), 10)].length; col++) {
25513
25857
  var ntd = this.createContentTd(slotDatas[parseInt(row.toString(), 10)][parseInt(col.toString(), 10)], td);
@@ -25744,23 +26088,23 @@ var Month = /** @__PURE__ @class */ (function (_super) {
25744
26088
  return Month;
25745
26089
  }(ViewBase));
25746
26090
 
25747
- var __extends$n = (undefined && undefined.__extends) || (function () {
25748
- var extendStatics = function (d, b) {
25749
- extendStatics = Object.setPrototypeOf ||
25750
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
25751
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
25752
- return extendStatics(d, b);
25753
- };
25754
- return function (d, b) {
25755
- extendStatics(d, b);
25756
- function __() { this.constructor = d; }
25757
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
25758
- };
25759
- })();
26091
+ var __extends$n = (undefined && undefined.__extends) || (function () {
26092
+ var extendStatics = function (d, b) {
26093
+ extendStatics = Object.setPrototypeOf ||
26094
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
26095
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
26096
+ return extendStatics(d, b);
26097
+ };
26098
+ return function (d, b) {
26099
+ extendStatics(d, b);
26100
+ function __() { this.constructor = d; }
26101
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
26102
+ };
26103
+ })();
25760
26104
  /**
25761
26105
  * year view
25762
26106
  */
25763
- var Year = /** @__PURE__ @class */ (function (_super) {
26107
+ var Year = /** @class */ (function (_super) {
25764
26108
  __extends$n(Year, _super);
25765
26109
  function Year(parent) {
25766
26110
  var _this = _super.call(this, parent) || this;
@@ -25852,7 +26196,7 @@ var Year = /** @__PURE__ @class */ (function (_super) {
25852
26196
  this.setAriaAttributes(contentTable);
25853
26197
  var thead = createElement('thead', { className: 'e-week-header' });
25854
26198
  var tr = createElement('tr');
25855
- var currentWeek = getWeekFirstDate(firstDateOfMonth(currentDate), this.parent.firstDayOfWeek);
26199
+ var currentWeek = getWeekFirstDate(firstDateOfMonth(currentDate), this.parent.activeViewOptions.firstDayOfWeek);
25856
26200
  if (this.parent.activeViewOptions.showWeekNumber) {
25857
26201
  tr.appendChild(createElement('th'));
25858
26202
  }
@@ -25981,7 +26325,7 @@ var Year = /** @__PURE__ @class */ (function (_super) {
25981
26325
  return dateCol;
25982
26326
  };
25983
26327
  Year.prototype.getMonthDates = function (date) {
25984
- var startDate = getWeekFirstDate(firstDateOfMonth(date), this.parent.firstDayOfWeek);
26328
+ var startDate = getWeekFirstDate(firstDateOfMonth(date), this.parent.activeViewOptions.firstDayOfWeek);
25985
26329
  var endDate = addDays(new Date(+startDate), (6 * WEEK_LENGTH));
25986
26330
  var dateCollection = [];
25987
26331
  for (var start = startDate; start.getTime() < endDate.getTime(); start = addDays(start, 1)) {
@@ -26117,10 +26461,10 @@ var Year = /** @__PURE__ @class */ (function (_super) {
26117
26461
  return addDays(addMonths(this.getStartDate(), this.parent.monthsCount), -1);
26118
26462
  };
26119
26463
  Year.prototype.startDate = function () {
26120
- return this.parent.currentView === 'Year' ? getWeekFirstDate(this.getStartDate(), this.parent.firstDayOfWeek) : this.getStartDate();
26464
+ return this.parent.currentView === 'Year' ? getWeekFirstDate(this.getStartDate(), this.parent.activeViewOptions.firstDayOfWeek) : this.getStartDate();
26121
26465
  };
26122
26466
  Year.prototype.endDate = function () {
26123
- return this.parent.currentView === 'Year' ? addDays(getWeekLastDate(this.getEndDate(), this.parent.firstDayOfWeek), 1) :
26467
+ return this.parent.currentView === 'Year' ? addDays(getWeekLastDate(this.getEndDate(), this.parent.activeViewOptions.firstDayOfWeek), 1) :
26124
26468
  addDays(this.getEndDate(), 1);
26125
26469
  };
26126
26470
  Year.prototype.getEndDateFromStartDate = function (start) {
@@ -26188,20 +26532,20 @@ var Year = /** @__PURE__ @class */ (function (_super) {
26188
26532
  return Year;
26189
26533
  }(ViewBase));
26190
26534
 
26191
- var __extends$o = (undefined && undefined.__extends) || (function () {
26192
- var extendStatics = function (d, b) {
26193
- extendStatics = Object.setPrototypeOf ||
26194
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
26195
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
26196
- return extendStatics(d, b);
26197
- };
26198
- return function (d, b) {
26199
- extendStatics(d, b);
26200
- function __() { this.constructor = d; }
26201
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
26202
- };
26203
- })();
26204
- var AgendaBase = /** @__PURE__ @class */ (function (_super) {
26535
+ var __extends$o = (undefined && undefined.__extends) || (function () {
26536
+ var extendStatics = function (d, b) {
26537
+ extendStatics = Object.setPrototypeOf ||
26538
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
26539
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
26540
+ return extendStatics(d, b);
26541
+ };
26542
+ return function (d, b) {
26543
+ extendStatics(d, b);
26544
+ function __() { this.constructor = d; }
26545
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
26546
+ };
26547
+ })();
26548
+ var AgendaBase = /** @class */ (function (_super) {
26205
26549
  __extends$o(AgendaBase, _super);
26206
26550
  function AgendaBase(parent) {
26207
26551
  return _super.call(this, parent) || this;
@@ -26599,23 +26943,23 @@ var AgendaBase = /** @__PURE__ @class */ (function (_super) {
26599
26943
  return AgendaBase;
26600
26944
  }(ViewBase));
26601
26945
 
26602
- var __extends$p = (undefined && undefined.__extends) || (function () {
26603
- var extendStatics = function (d, b) {
26604
- extendStatics = Object.setPrototypeOf ||
26605
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
26606
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
26607
- return extendStatics(d, b);
26608
- };
26609
- return function (d, b) {
26610
- extendStatics(d, b);
26611
- function __() { this.constructor = d; }
26612
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
26613
- };
26614
- })();
26946
+ var __extends$p = (undefined && undefined.__extends) || (function () {
26947
+ var extendStatics = function (d, b) {
26948
+ extendStatics = Object.setPrototypeOf ||
26949
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
26950
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
26951
+ return extendStatics(d, b);
26952
+ };
26953
+ return function (d, b) {
26954
+ extendStatics(d, b);
26955
+ function __() { this.constructor = d; }
26956
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
26957
+ };
26958
+ })();
26615
26959
  /**
26616
26960
  * agenda view
26617
26961
  */
26618
- var Agenda = /** @__PURE__ @class */ (function (_super) {
26962
+ var Agenda = /** @class */ (function (_super) {
26619
26963
  __extends$p(Agenda, _super);
26620
26964
  function Agenda(parent) {
26621
26965
  var _this = _super.call(this, parent) || this;
@@ -27092,23 +27436,23 @@ var Agenda = /** @__PURE__ @class */ (function (_super) {
27092
27436
  return Agenda;
27093
27437
  }(AgendaBase));
27094
27438
 
27095
- var __extends$q = (undefined && undefined.__extends) || (function () {
27096
- var extendStatics = function (d, b) {
27097
- extendStatics = Object.setPrototypeOf ||
27098
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
27099
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
27100
- return extendStatics(d, b);
27101
- };
27102
- return function (d, b) {
27103
- extendStatics(d, b);
27104
- function __() { this.constructor = d; }
27105
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
27106
- };
27107
- })();
27439
+ var __extends$q = (undefined && undefined.__extends) || (function () {
27440
+ var extendStatics = function (d, b) {
27441
+ extendStatics = Object.setPrototypeOf ||
27442
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
27443
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
27444
+ return extendStatics(d, b);
27445
+ };
27446
+ return function (d, b) {
27447
+ extendStatics(d, b);
27448
+ function __() { this.constructor = d; }
27449
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
27450
+ };
27451
+ })();
27108
27452
  /**
27109
27453
  * month agenda view
27110
27454
  */
27111
- var MonthAgenda = /** @__PURE__ @class */ (function (_super) {
27455
+ var MonthAgenda = /** @class */ (function (_super) {
27112
27456
  __extends$q(MonthAgenda, _super);
27113
27457
  function MonthAgenda(parent) {
27114
27458
  var _this = _super.call(this, parent) || this;
@@ -27271,7 +27615,7 @@ var MonthAgenda = /** @__PURE__ @class */ (function (_super) {
27271
27615
  /**
27272
27616
  * timeline header rows
27273
27617
  */
27274
- var TimelineHeaderRow = /** @__PURE__ @class */ (function () {
27618
+ var TimelineHeaderRow = /** @class */ (function () {
27275
27619
  function TimelineHeaderRow(parent, renderDates) {
27276
27620
  this.parent = parent;
27277
27621
  this.renderDates = renderDates;
@@ -27303,7 +27647,7 @@ var TimelineHeaderRow = /** @__PURE__ @class */ (function () {
27303
27647
  var jsDate = +new Date(1970, 0, 1);
27304
27648
  var tzOffsetDiff = d.getTimezoneOffset() - new Date(1970, 0, 1).getTimezoneOffset();
27305
27649
  var key = Math.ceil(((((+d - jsDate) - (tzOffsetDiff * 60 * 1000)) / MS_PER_DAY) + new Date(jsDate).getDay() + 1) / 7);
27306
- if (this.parent.firstDayOfWeek && this.parent.firstDayOfWeek > new Date(+d).getDay()) {
27650
+ if (this.parent.activeViewOptions.firstDayOfWeek && this.parent.activeViewOptions.firstDayOfWeek > new Date(+d).getDay()) {
27307
27651
  key = key - 1;
27308
27652
  }
27309
27653
  result[parseInt(key.toString(), 10)] = result[parseInt(key.toString(), 10)] || [];
@@ -27394,23 +27738,23 @@ var TimelineHeaderRow = /** @__PURE__ @class */ (function () {
27394
27738
  return TimelineHeaderRow;
27395
27739
  }());
27396
27740
 
27397
- var __extends$r = (undefined && undefined.__extends) || (function () {
27398
- var extendStatics = function (d, b) {
27399
- extendStatics = Object.setPrototypeOf ||
27400
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
27401
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
27402
- return extendStatics(d, b);
27403
- };
27404
- return function (d, b) {
27405
- extendStatics(d, b);
27406
- function __() { this.constructor = d; }
27407
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
27408
- };
27409
- })();
27741
+ var __extends$r = (undefined && undefined.__extends) || (function () {
27742
+ var extendStatics = function (d, b) {
27743
+ extendStatics = Object.setPrototypeOf ||
27744
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
27745
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
27746
+ return extendStatics(d, b);
27747
+ };
27748
+ return function (d, b) {
27749
+ extendStatics(d, b);
27750
+ function __() { this.constructor = d; }
27751
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
27752
+ };
27753
+ })();
27410
27754
  /**
27411
27755
  * timeline views
27412
27756
  */
27413
- var TimelineViews = /** @__PURE__ @class */ (function (_super) {
27757
+ var TimelineViews = /** @class */ (function (_super) {
27414
27758
  __extends$r(TimelineViews, _super);
27415
27759
  function TimelineViews(parent) {
27416
27760
  var _this = _super.call(this, parent) || this;
@@ -27461,7 +27805,7 @@ var TimelineViews = /** @__PURE__ @class */ (function (_super) {
27461
27805
  }
27462
27806
  var scrollLeft;
27463
27807
  if (isNullOrUndefined(hour) || !this.parent.activeViewOptions.timeScale.enable) {
27464
- scrollLeft = index * getElementWidth(this.element.querySelector('.e-work-cells'));
27808
+ scrollLeft = index * this.parent.getElementWidth(this.element.querySelector('.e-work-cells'));
27465
27809
  }
27466
27810
  else {
27467
27811
  scrollLeft = isNullOrUndefined(scrollDate) ? this.getLeftFromDateTime(null, date) :
@@ -27548,7 +27892,7 @@ var TimelineViews = /** @__PURE__ @class */ (function (_super) {
27548
27892
  if (this.parent.activeView.colLevels[parseInt(index.toString(), 10)] &&
27549
27893
  this.parent.activeView.colLevels[parseInt(index.toString(), 10)][0].colSpan) {
27550
27894
  diffInDates = currentDateIndex[0] * this.parent.activeView.colLevels[parseInt(index.toString(), 10)][0].colSpan *
27551
- getElementWidth(this.element.querySelector('.e-work-cells'));
27895
+ this.parent.getElementWidth(this.element.querySelector('.e-work-cells'));
27552
27896
  }
27553
27897
  else {
27554
27898
  var endHour = this.getEndHour();
@@ -27558,8 +27902,8 @@ var TimelineViews = /** @__PURE__ @class */ (function (_super) {
27558
27902
  }
27559
27903
  }
27560
27904
  }
27561
- return diffInDates + ((diffInMinutes * getElementWidth(this.element.querySelector('.e-work-cells')) * this.parent.activeViewOptions.timeScale.slotCount) /
27562
- this.parent.activeViewOptions.timeScale.interval);
27905
+ return diffInDates + ((diffInMinutes * this.parent.getElementWidth(this.element.querySelector('.e-work-cells'))
27906
+ * this.parent.activeViewOptions.timeScale.slotCount) / this.parent.activeViewOptions.timeScale.interval);
27563
27907
  };
27564
27908
  TimelineViews.prototype.renderHeader = function () {
27565
27909
  var tr = createElement('tr');
@@ -27626,7 +27970,12 @@ var TimelineViews = /** @__PURE__ @class */ (function (_super) {
27626
27970
  var tr = createElement('tr');
27627
27971
  var td = createElement('td', { attrs: { 'aria-selected': 'false' } });
27628
27972
  var trCount = this.getRowCount();
27973
+ var existingGroupIndices = this.getGroupIndices();
27629
27974
  for (var i = 0; i < trCount; i++) {
27975
+ if (existingGroupIndices.length > 0 &&
27976
+ existingGroupIndices.indexOf(this.parent.resourceBase.renderedResources[parseInt(i.toString(), 10)].groupIndex) > -1) {
27977
+ continue;
27978
+ }
27630
27979
  var ntr = tr.cloneNode();
27631
27980
  for (var _i = 0, _a = this.colLevels[this.colLevels.length - 1]; _i < _a.length; _i++) {
27632
27981
  var tdData = _a[_i];
@@ -27676,23 +28025,23 @@ var TimelineViews = /** @__PURE__ @class */ (function (_super) {
27676
28025
  return TimelineViews;
27677
28026
  }(VerticalView));
27678
28027
 
27679
- var __extends$s = (undefined && undefined.__extends) || (function () {
27680
- var extendStatics = function (d, b) {
27681
- extendStatics = Object.setPrototypeOf ||
27682
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
27683
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
27684
- return extendStatics(d, b);
27685
- };
27686
- return function (d, b) {
27687
- extendStatics(d, b);
27688
- function __() { this.constructor = d; }
27689
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
27690
- };
27691
- })();
28028
+ var __extends$s = (undefined && undefined.__extends) || (function () {
28029
+ var extendStatics = function (d, b) {
28030
+ extendStatics = Object.setPrototypeOf ||
28031
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
28032
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
28033
+ return extendStatics(d, b);
28034
+ };
28035
+ return function (d, b) {
28036
+ extendStatics(d, b);
28037
+ function __() { this.constructor = d; }
28038
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28039
+ };
28040
+ })();
27692
28041
  /**
27693
28042
  * timeline month view
27694
28043
  */
27695
- var TimelineMonth = /** @__PURE__ @class */ (function (_super) {
28044
+ var TimelineMonth = /** @class */ (function (_super) {
27696
28045
  __extends$s(TimelineMonth, _super);
27697
28046
  function TimelineMonth(parent) {
27698
28047
  var _this = _super.call(this, parent) || this;
@@ -27849,23 +28198,23 @@ var TimelineMonth = /** @__PURE__ @class */ (function (_super) {
27849
28198
  return TimelineMonth;
27850
28199
  }(Month));
27851
28200
 
27852
- var __extends$t = (undefined && undefined.__extends) || (function () {
27853
- var extendStatics = function (d, b) {
27854
- extendStatics = Object.setPrototypeOf ||
27855
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
27856
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
27857
- return extendStatics(d, b);
27858
- };
27859
- return function (d, b) {
27860
- extendStatics(d, b);
27861
- function __() { this.constructor = d; }
27862
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
27863
- };
27864
- })();
28201
+ var __extends$t = (undefined && undefined.__extends) || (function () {
28202
+ var extendStatics = function (d, b) {
28203
+ extendStatics = Object.setPrototypeOf ||
28204
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
28205
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
28206
+ return extendStatics(d, b);
28207
+ };
28208
+ return function (d, b) {
28209
+ extendStatics(d, b);
28210
+ function __() { this.constructor = d; }
28211
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28212
+ };
28213
+ })();
27865
28214
  /**
27866
28215
  * timeline year view
27867
28216
  */
27868
- var TimelineYear = /** @__PURE__ @class */ (function (_super) {
28217
+ var TimelineYear = /** @class */ (function (_super) {
27869
28218
  __extends$t(TimelineYear, _super);
27870
28219
  function TimelineYear(parent) {
27871
28220
  var _this = _super.call(this, parent) || this;
@@ -28146,13 +28495,17 @@ var TimelineYear = /** @__PURE__ @class */ (function (_super) {
28146
28495
  TimelineYear.prototype.getContentRows = function () {
28147
28496
  var tRow = [];
28148
28497
  var monthCells = this.getMonths();
28498
+ var existingGroupIndices = this.getGroupIndices();
28149
28499
  for (var row = 0; row < this.parent.resourceBase.renderedResources.length; row++) {
28150
- var tr = createElement('tr');
28151
- tRow.push(tr);
28152
28500
  var resData = void 0;
28153
28501
  if (this.parent.activeViewOptions.group.resources.length > 0 && !this.parent.uiStateValues.isGroupAdaptive) {
28154
28502
  resData = this.parent.resourceBase.renderedResources[parseInt(row.toString(), 10)];
28503
+ if (existingGroupIndices.length > 0 && existingGroupIndices.indexOf(resData.groupIndex) > -1) {
28504
+ continue;
28505
+ }
28155
28506
  }
28507
+ var tr = createElement('tr');
28508
+ tRow.push(tr);
28156
28509
  var monthDate = new Date(this.parent.selectedDate.getFullYear(), monthCells[parseInt(row.toString(), 10)], 1);
28157
28510
  var date = this.parent.calendarUtil.getMonthStartDate(new Date(monthDate.getTime()));
28158
28511
  for (var month = 0; month < this.columnCount; month++) {
@@ -28322,7 +28675,7 @@ var TimelineYear = /** @__PURE__ @class */ (function (_super) {
28322
28675
  /**
28323
28676
  * ICalendar Export Module
28324
28677
  */
28325
- var ICalendarExport = /** @__PURE__ @class */ (function () {
28678
+ var ICalendarExport = /** @class */ (function () {
28326
28679
  function ICalendarExport(parent) {
28327
28680
  this.parent = parent;
28328
28681
  }
@@ -28471,7 +28824,7 @@ var ICalendarExport = /** @__PURE__ @class */ (function () {
28471
28824
  /**
28472
28825
  * ICalendar Import Module
28473
28826
  */
28474
- var ICalendarImport = /** @__PURE__ @class */ (function () {
28827
+ var ICalendarImport = /** @class */ (function () {
28475
28828
  function ICalendarImport(parent) {
28476
28829
  this.allDay = false;
28477
28830
  this.parent = parent;
@@ -28736,7 +29089,7 @@ var ICalendarImport = /** @__PURE__ @class */ (function () {
28736
29089
  /**
28737
29090
  * Excel Export Module
28738
29091
  */
28739
- var ExcelExport = /** @__PURE__ @class */ (function () {
29092
+ var ExcelExport = /** @class */ (function () {
28740
29093
  function ExcelExport(parent) {
28741
29094
  this.parent = parent;
28742
29095
  }
@@ -28809,7 +29162,7 @@ var ExcelExport = /** @__PURE__ @class */ (function () {
28809
29162
  /**
28810
29163
  * Print Module
28811
29164
  */
28812
- var Print = /** @__PURE__ @class */ (function () {
29165
+ var Print = /** @class */ (function () {
28813
29166
  function Print(parent) {
28814
29167
  this.parent = parent;
28815
29168
  }
@@ -28872,6 +29225,7 @@ var Print = /** @__PURE__ @class */ (function () {
28872
29225
  Schedule.Inject(Day, Week, WorkWeek, Month, Agenda, MonthAgenda, TimelineViews, TimelineMonth, Year, TimelineYear);
28873
29226
  this.printInstance = new Schedule(this.getPrintScheduleModel(printOptions));
28874
29227
  this.printInstance.isPrinting = true;
29228
+ this.printInstance.registeredTemplate = this.parent.registeredTemplate;
28875
29229
  this.printInstance.root = this.parent.root ? this.parent.root : this.parent;
28876
29230
  this.printInstance.appendTo(element);
28877
29231
  this.printInstance.on(print, this.contentReady, this);