@syncfusion/ej2-schedule 26.1.39 → 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.
- package/.eslintrc.json +243 -260
- package/README.md +82 -82
- package/dist/ej2-schedule.umd.min.js +1 -10
- package/dist/ej2-schedule.umd.min.js.map +1 -1
- package/dist/es6/ej2-schedule.es2015.js +605 -249
- package/dist/es6/ej2-schedule.es2015.js.map +1 -1
- package/dist/es6/ej2-schedule.es5.js +1072 -709
- package/dist/es6/ej2-schedule.es5.js.map +1 -1
- package/helpers/e2e/index.js +3 -3
- package/helpers/e2e/recurrence-editor.js +13 -13
- package/helpers/e2e/schedule.js +13 -13
- package/license +9 -9
- package/package.json +79 -79
- package/src/recurrence-editor/date-generator.js +3 -0
- package/src/recurrence-editor/recurrence-editor-model.d.ts +65 -65
- package/src/recurrence-editor/recurrence-editor.js +19 -19
- package/src/schedule/actions/crud.js +22 -6
- package/src/schedule/actions/drag.d.ts +4 -0
- package/src/schedule/actions/drag.js +73 -34
- package/src/schedule/actions/keyboard.d.ts +1 -0
- package/src/schedule/actions/keyboard.js +45 -3
- package/src/schedule/actions/resize.js +34 -32
- package/src/schedule/actions/touch.js +4 -0
- package/src/schedule/actions/virtual-scroll.d.ts +6 -0
- package/src/schedule/actions/virtual-scroll.js +119 -34
- package/src/schedule/base/interface.d.ts +6 -2
- package/src/schedule/base/resource.js +5 -0
- package/src/schedule/base/schedule-model.d.ts +805 -805
- package/src/schedule/base/schedule.d.ts +26 -0
- package/src/schedule/base/schedule.js +63 -21
- package/src/schedule/base/util.d.ts +10 -5
- package/src/schedule/base/util.js +15 -10
- package/src/schedule/event-renderer/agenda-base.js +15 -14
- package/src/schedule/event-renderer/event-base.js +18 -3
- package/src/schedule/event-renderer/inline-edit.js +13 -5
- package/src/schedule/event-renderer/month.js +20 -17
- package/src/schedule/event-renderer/timeline-view.js +21 -18
- package/src/schedule/event-renderer/vertical-view.d.ts +2 -1
- package/src/schedule/event-renderer/vertical-view.js +66 -34
- package/src/schedule/event-renderer/year.js +20 -20
- package/src/schedule/exports/print.js +1 -0
- package/src/schedule/models/event-settings-model.d.ts +155 -155
- package/src/schedule/models/event-settings.js +19 -19
- package/src/schedule/models/field-options-model.d.ts +22 -22
- package/src/schedule/models/field-options.js +19 -19
- package/src/schedule/models/fields-model.d.ts +92 -92
- package/src/schedule/models/fields.js +19 -19
- package/src/schedule/models/group-model.d.ts +48 -48
- package/src/schedule/models/group.js +19 -19
- package/src/schedule/models/header-rows-model.d.ts +22 -22
- package/src/schedule/models/header-rows.js +19 -19
- package/src/schedule/models/quick-info-templates-model.d.ts +37 -37
- package/src/schedule/models/quick-info-templates.js +19 -19
- package/src/schedule/models/resources-model.d.ts +85 -85
- package/src/schedule/models/resources.js +19 -19
- package/src/schedule/models/time-scale-model.d.ts +40 -40
- package/src/schedule/models/time-scale.js +19 -19
- package/src/schedule/models/toolbar-model.d.ts +187 -187
- package/src/schedule/models/toolbar.js +19 -19
- package/src/schedule/models/views-model.d.ts +329 -329
- package/src/schedule/models/views.js +19 -19
- package/src/schedule/models/work-hours-model.d.ts +16 -16
- package/src/schedule/models/work-hours.js +19 -19
- package/src/schedule/popups/event-tooltip.js +2 -1
- package/src/schedule/popups/event-window.d.ts +1 -0
- package/src/schedule/popups/event-window.js +25 -15
- package/src/schedule/renderer/agenda.js +13 -13
- package/src/schedule/renderer/day.js +13 -13
- package/src/schedule/renderer/header-renderer.d.ts +1 -0
- package/src/schedule/renderer/header-renderer.js +20 -12
- package/src/schedule/renderer/month-agenda.js +13 -13
- package/src/schedule/renderer/month.js +19 -13
- package/src/schedule/renderer/timeline-header-row.js +1 -1
- package/src/schedule/renderer/timeline-month.js +13 -13
- package/src/schedule/renderer/timeline-view.js +22 -17
- package/src/schedule/renderer/timeline-year.js +19 -15
- package/src/schedule/renderer/vertical-view.js +33 -23
- package/src/schedule/renderer/view-base.d.ts +1 -0
- package/src/schedule/renderer/view-base.js +14 -1
- package/src/schedule/renderer/week.js +13 -13
- package/src/schedule/renderer/work-week.js +13 -13
- package/src/schedule/renderer/year.js +17 -17
- package/styles/bootstrap-dark-lite.css +4174 -0
- package/styles/bootstrap-dark-lite.scss +18 -0
- package/styles/bootstrap-dark.css +823 -595
- package/styles/bootstrap-dark.scss +3 -2
- package/styles/bootstrap-lite.css +4169 -0
- package/styles/bootstrap-lite.scss +18 -0
- package/styles/bootstrap.css +823 -595
- package/styles/bootstrap.scss +3 -2
- package/styles/bootstrap4-lite.css +4216 -0
- package/styles/bootstrap4-lite.scss +18 -0
- package/styles/bootstrap4.css +809 -636
- package/styles/bootstrap4.scss +3 -2
- package/styles/bootstrap5-dark-lite.css +4215 -0
- package/styles/bootstrap5-dark-lite.scss +18 -0
- package/styles/bootstrap5-dark.css +824 -596
- package/styles/bootstrap5-dark.scss +3 -2
- package/styles/bootstrap5-lite.css +4215 -0
- package/styles/bootstrap5-lite.scss +18 -0
- package/styles/bootstrap5.3-lite.css +4261 -0
- package/styles/bootstrap5.3-lite.scss +18 -0
- package/styles/bootstrap5.3.css +5023 -0
- package/styles/bootstrap5.3.scss +20 -0
- package/styles/bootstrap5.css +824 -596
- package/styles/bootstrap5.scss +3 -2
- package/styles/fabric-dark-lite.css +4144 -0
- package/styles/fabric-dark-lite.scss +18 -0
- package/styles/fabric-dark.css +830 -594
- package/styles/fabric-dark.scss +3 -2
- package/styles/fabric-lite.css +4141 -0
- package/styles/fabric-lite.scss +18 -0
- package/styles/fabric.css +830 -587
- package/styles/fabric.scss +3 -2
- package/styles/fluent-dark-lite.css +4207 -0
- package/styles/fluent-dark-lite.scss +18 -0
- package/styles/fluent-dark.css +828 -592
- package/styles/fluent-dark.scss +3 -2
- package/styles/fluent-lite.css +4207 -0
- package/styles/fluent-lite.scss +18 -0
- package/styles/fluent.css +828 -592
- package/styles/fluent.scss +3 -2
- package/styles/fluent2-lite.css +4427 -0
- package/styles/fluent2-lite.scss +18 -0
- package/styles/fluent2.css +863 -1627
- package/styles/fluent2.scss +3 -2
- package/styles/highcontrast-light-lite.css +4233 -0
- package/styles/highcontrast-light-lite.scss +18 -0
- package/styles/highcontrast-light.css +833 -583
- package/styles/highcontrast-light.scss +3 -2
- package/styles/highcontrast-lite.css +4242 -0
- package/styles/highcontrast-lite.scss +18 -0
- package/styles/highcontrast.css +834 -584
- package/styles/highcontrast.scss +3 -2
- package/styles/material-dark-lite.css +4221 -0
- package/styles/material-dark-lite.scss +18 -0
- package/styles/material-dark.css +839 -581
- package/styles/material-dark.scss +3 -2
- package/styles/material-lite.css +4247 -0
- package/styles/material-lite.scss +18 -0
- package/styles/material.css +836 -599
- package/styles/material.scss +3 -2
- package/styles/material3-dark-lite.css +4238 -0
- package/styles/material3-dark-lite.scss +18 -0
- package/styles/material3-dark.css +832 -656
- package/styles/material3-dark.scss +4 -3
- package/styles/material3-lite.css +4240 -0
- package/styles/material3-lite.scss +18 -0
- package/styles/material3.css +831 -709
- package/styles/material3.scss +4 -3
- package/styles/recurrence-editor/_all.scss +2 -2
- package/styles/recurrence-editor/_bds-definition.scss +14 -14
- package/styles/recurrence-editor/_bigger.scss +134 -0
- package/styles/recurrence-editor/_bootstrap-dark-definition.scss +14 -14
- package/styles/recurrence-editor/_bootstrap-definition.scss +14 -14
- package/styles/recurrence-editor/_bootstrap4-definition.scss +14 -14
- package/styles/recurrence-editor/_bootstrap5-definition.scss +14 -14
- package/styles/recurrence-editor/_bootstrap5.3-definition.scss +14 -14
- package/styles/recurrence-editor/_fabric-dark-definition.scss +14 -14
- package/styles/recurrence-editor/_fabric-definition.scss +14 -14
- package/styles/recurrence-editor/_fluent-definition.scss +14 -14
- package/styles/recurrence-editor/_fluent2-definition.scss +14 -14
- package/styles/recurrence-editor/_fusionnew-definition.scss +14 -14
- package/styles/recurrence-editor/_highcontrast-definition.scss +14 -14
- package/styles/recurrence-editor/_highcontrast-light-definition.scss +14 -14
- package/styles/recurrence-editor/_layout.scss +415 -525
- package/styles/recurrence-editor/_material-dark-definition.scss +14 -14
- package/styles/recurrence-editor/_material-definition.scss +14 -14
- package/styles/recurrence-editor/_material3-definition.scss +14 -14
- package/styles/recurrence-editor/_tailwind-definition.scss +14 -14
- package/styles/recurrence-editor/_theme.scss +1 -1
- package/styles/recurrence-editor/bootstrap-dark.css +87 -131
- package/styles/recurrence-editor/bootstrap-dark.scss +1 -0
- package/styles/recurrence-editor/bootstrap.css +87 -131
- package/styles/recurrence-editor/bootstrap.scss +1 -0
- package/styles/recurrence-editor/bootstrap4.css +87 -149
- package/styles/recurrence-editor/bootstrap4.scss +1 -0
- package/styles/recurrence-editor/bootstrap5-dark.css +87 -135
- package/styles/recurrence-editor/bootstrap5-dark.scss +1 -0
- package/styles/recurrence-editor/bootstrap5.3.css +501 -0
- package/styles/recurrence-editor/bootstrap5.3.scss +9 -0
- package/styles/recurrence-editor/bootstrap5.css +87 -135
- package/styles/recurrence-editor/bootstrap5.scss +1 -0
- package/styles/recurrence-editor/fabric-dark.css +87 -130
- package/styles/recurrence-editor/fabric-dark.scss +1 -0
- package/styles/recurrence-editor/fabric.css +87 -123
- package/styles/recurrence-editor/fabric.scss +1 -0
- package/styles/recurrence-editor/fluent-dark.css +87 -122
- package/styles/recurrence-editor/fluent-dark.scss +1 -0
- package/styles/recurrence-editor/fluent.css +87 -122
- package/styles/recurrence-editor/fluent.scss +1 -0
- package/styles/recurrence-editor/fluent2.css +94 -1148
- package/styles/recurrence-editor/fluent2.scss +1 -0
- package/styles/recurrence-editor/highcontrast-light.css +87 -118
- package/styles/recurrence-editor/highcontrast-light.scss +1 -0
- package/styles/recurrence-editor/highcontrast.css +87 -118
- package/styles/recurrence-editor/highcontrast.scss +1 -0
- package/styles/recurrence-editor/material-dark.css +87 -115
- package/styles/recurrence-editor/material-dark.scss +1 -0
- package/styles/recurrence-editor/material.css +87 -136
- package/styles/recurrence-editor/material.scss +1 -0
- package/styles/recurrence-editor/material3-dark.css +88 -194
- package/styles/recurrence-editor/material3-dark.scss +2 -1
- package/styles/recurrence-editor/material3.css +89 -249
- package/styles/recurrence-editor/material3.scss +2 -1
- package/styles/recurrence-editor/tailwind-dark.css +87 -116
- package/styles/recurrence-editor/tailwind-dark.scss +1 -0
- package/styles/recurrence-editor/tailwind.css +87 -116
- package/styles/recurrence-editor/tailwind.scss +1 -0
- package/styles/schedule/_all.scss +2 -2
- package/styles/schedule/_bds-definition.scss +272 -272
- package/styles/schedule/_bigger.scss +810 -0
- package/styles/schedule/_bootstrap-dark-definition.scss +270 -270
- package/styles/schedule/_bootstrap-definition.scss +270 -270
- package/styles/schedule/_bootstrap4-definition.scss +273 -273
- package/styles/schedule/_bootstrap5-definition.scss +274 -274
- package/styles/schedule/_bootstrap5.3-definition.scss +276 -273
- package/styles/schedule/_fabric-dark-definition.scss +271 -271
- package/styles/schedule/_fabric-definition.scss +270 -270
- package/styles/schedule/_fluent-definition.scss +276 -276
- package/styles/schedule/_fluent2-definition.scss +273 -273
- package/styles/schedule/_fusionnew-definition.scss +273 -273
- package/styles/schedule/_highcontrast-definition.scss +271 -271
- package/styles/schedule/_highcontrast-light-definition.scss +271 -271
- package/styles/schedule/_layout.scss +3787 -4218
- package/styles/schedule/_material-dark-definition.scss +270 -270
- package/styles/schedule/_material-definition.scss +270 -270
- package/styles/schedule/_material3-definition.scss +275 -275
- package/styles/schedule/_tailwind-definition.scss +271 -271
- package/styles/schedule/_theme.scss +589 -567
- package/styles/schedule/bootstrap-dark.css +706 -484
- package/styles/schedule/bootstrap-dark.scss +1 -0
- package/styles/schedule/bootstrap.css +706 -484
- package/styles/schedule/bootstrap.scss +1 -0
- package/styles/schedule/bootstrap4.css +699 -532
- package/styles/schedule/bootstrap4.scss +1 -0
- package/styles/schedule/bootstrap5-dark.css +714 -492
- package/styles/schedule/bootstrap5-dark.scss +1 -0
- package/styles/schedule/bootstrap5.3.css +4621 -0
- package/styles/schedule/bootstrap5.3.scss +17 -0
- package/styles/schedule/bootstrap5.css +714 -492
- package/styles/schedule/bootstrap5.scss +1 -0
- package/styles/schedule/fabric-dark.css +713 -483
- package/styles/schedule/fabric-dark.scss +1 -0
- package/styles/schedule/fabric.css +713 -476
- package/styles/schedule/fabric.scss +1 -0
- package/styles/schedule/fluent-dark.css +723 -493
- package/styles/schedule/fluent-dark.scss +1 -0
- package/styles/schedule/fluent.css +723 -493
- package/styles/schedule/fluent.scss +1 -0
- package/styles/schedule/fluent2.css +752 -1525
- package/styles/schedule/fluent2.scss +1 -0
- package/styles/schedule/highcontrast-light.css +721 -477
- package/styles/schedule/highcontrast-light.scss +1 -0
- package/styles/schedule/highcontrast.css +721 -477
- package/styles/schedule/highcontrast.scss +1 -0
- package/styles/schedule/icons/_bds.scss +220 -220
- package/styles/schedule/icons/_bootstrap-dark.scss +223 -223
- package/styles/schedule/icons/_bootstrap.scss +223 -223
- package/styles/schedule/icons/_bootstrap4.scss +217 -217
- package/styles/schedule/icons/_bootstrap5.3.scss +220 -220
- package/styles/schedule/icons/_bootstrap5.scss +220 -220
- package/styles/schedule/icons/_fabric-dark.scss +223 -223
- package/styles/schedule/icons/_fabric.scss +223 -223
- package/styles/schedule/icons/_fluent.scss +220 -220
- package/styles/schedule/icons/_fluent2.scss +220 -220
- package/styles/schedule/icons/_fusionnew.scss +220 -220
- package/styles/schedule/icons/_highcontrast-light.scss +223 -223
- package/styles/schedule/icons/_highcontrast.scss +223 -223
- package/styles/schedule/icons/_material-dark.scss +223 -223
- package/styles/schedule/icons/_material.scss +223 -223
- package/styles/schedule/icons/_material3.scss +220 -220
- package/styles/schedule/icons/_tailwind.scss +220 -220
- package/styles/schedule/material-dark.css +732 -480
- package/styles/schedule/material-dark.scss +1 -0
- package/styles/schedule/material.css +729 -498
- package/styles/schedule/material.scss +1 -0
- package/styles/schedule/material3-dark.css +713 -543
- package/styles/schedule/material3-dark.scss +2 -1
- package/styles/schedule/material3.css +714 -598
- package/styles/schedule/material3.scss +2 -1
- package/styles/schedule/tailwind-dark.css +725 -484
- package/styles/schedule/tailwind-dark.scss +1 -0
- package/styles/schedule/tailwind.css +725 -484
- package/styles/schedule/tailwind.scss +1 -0
- package/styles/tailwind-dark-lite.css +4184 -0
- package/styles/tailwind-dark-lite.scss +18 -0
- package/styles/tailwind-dark.css +832 -585
- package/styles/tailwind-dark.scss +3 -2
- package/styles/tailwind-lite.css +4184 -0
- package/styles/tailwind-lite.scss +18 -0
- package/styles/tailwind.css +832 -585
- package/styles/tailwind.scss +3 -2
- package/dist/ej2-schedule.min.js +0 -10
- package/dist/global/ej2-schedule.min.js +0 -11
- package/dist/global/ej2-schedule.min.js.map +0 -1
- package/dist/global/index.d.ts +0 -14
- 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
|
|
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
|
|
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
|
|
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 = /** @
|
|
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 = /** @
|
|
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 = /** @
|
|
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 = /** @
|
|
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
|
-
|
|
2609
|
-
|
|
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 = /** @
|
|
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 = /** @
|
|
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 = /** @
|
|
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 = /** @
|
|
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 = /** @
|
|
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,
|
|
6416
|
-
var date =
|
|
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 = /** @
|
|
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.
|
|
6902
|
-
_this.endHour = _this.parent.
|
|
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) });
|
|
@@ -6978,7 +7055,7 @@ var VerticalEvent = /** @__PURE__ @class */ (function (_super) {
|
|
|
6978
7055
|
this.parent.crudModule.crudObj.isCrudAction = false;
|
|
6979
7056
|
}
|
|
6980
7057
|
this.parent.renderTemplates(function () {
|
|
6981
|
-
if (_this.parent.isReact && _this.parent.activeViewOptions.eventTemplate) {
|
|
7058
|
+
if (_this.parent && _this.parent.isReact && _this.parent.activeViewOptions.eventTemplate) {
|
|
6982
7059
|
var wraps = [].slice.call(_this.parent.element.querySelectorAll('.' + APPOINTMENT_WRAPPER_HIDDEN_CLASS));
|
|
6983
7060
|
removeClass(wraps, APPOINTMENT_WRAPPER_HIDDEN_CLASS);
|
|
6984
7061
|
}
|
|
@@ -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
|
|
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 = {
|
|
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
|
|
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.
|
|
7504
|
-
|
|
7505
|
-
|
|
7506
|
-
|
|
7507
|
-
|
|
7508
|
-
|
|
7509
|
-
|
|
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
|
-
|
|
7547
|
-
|
|
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 = /** @
|
|
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.
|
|
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 = /** @
|
|
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
|
-
|
|
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 = /** @
|
|
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
|
-
|
|
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 = /** @
|
|
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 = /** @
|
|
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 = /** @
|
|
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.
|
|
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 = /** @
|
|
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 = /** @
|
|
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) {
|
|
@@ -12455,12 +12584,15 @@ var EventWindow = /** @__PURE__ @class */ (function () {
|
|
|
12455
12584
|
this.recurrenceEditor = null;
|
|
12456
12585
|
}
|
|
12457
12586
|
this.destroyComponents();
|
|
12458
|
-
var formElements = [].slice.call(form.children);
|
|
12459
|
-
for (var _i = 0, formElements_1 = formElements; _i < formElements_1.length; _i++) {
|
|
12460
|
-
var element = formElements_1[_i];
|
|
12461
|
-
remove(element);
|
|
12462
|
-
}
|
|
12463
12587
|
this.parent.resetTemplates(['editorTemplate']);
|
|
12588
|
+
EventHandler.clearEvents(form);
|
|
12589
|
+
if (!this.parent.isReact) {
|
|
12590
|
+
var formElements = [].slice.call(form.children);
|
|
12591
|
+
for (var _i = 0, formElements_1 = formElements; _i < formElements_1.length; _i++) {
|
|
12592
|
+
var element = formElements_1[_i];
|
|
12593
|
+
remove(element);
|
|
12594
|
+
}
|
|
12595
|
+
}
|
|
12464
12596
|
}
|
|
12465
12597
|
var templateId = this.parent.element.id + '_editorTemplate';
|
|
12466
12598
|
var tempEle = [].slice.call(this.parent.getEditorTemplate()(args || {}, this.parent, 'editorTemplate', templateId, false));
|
|
@@ -12468,15 +12600,17 @@ var EventWindow = /** @__PURE__ @class */ (function () {
|
|
|
12468
12600
|
this.parent.renderTemplates(function () {
|
|
12469
12601
|
if (_this.element) {
|
|
12470
12602
|
_this.applyFormValidation();
|
|
12471
|
-
if (
|
|
12472
|
-
_this.
|
|
12473
|
-
_this.eventCrudData = null;
|
|
12603
|
+
if (args) {
|
|
12604
|
+
_this.setEditorContent(args, type, repeatType);
|
|
12474
12605
|
}
|
|
12475
12606
|
}
|
|
12476
12607
|
});
|
|
12477
12608
|
}
|
|
12478
12609
|
else {
|
|
12479
12610
|
form.appendChild(this.getDefaultEventWindowContent());
|
|
12611
|
+
if (args) {
|
|
12612
|
+
this.setEditorContent(args, type, repeatType);
|
|
12613
|
+
}
|
|
12480
12614
|
}
|
|
12481
12615
|
};
|
|
12482
12616
|
EventWindow.prototype.getDefaultEventWindowContent = function () {
|
|
@@ -13067,17 +13201,17 @@ var EventWindow = /** @__PURE__ @class */ (function () {
|
|
|
13067
13201
|
if (!isNullOrUndefined(descriptionRule)) {
|
|
13068
13202
|
rules[this.parent.eventSettings.fields.description.name] = descriptionRule;
|
|
13069
13203
|
}
|
|
13204
|
+
if (this.fieldValidator) {
|
|
13205
|
+
this.fieldValidator.destroy();
|
|
13206
|
+
this.fieldValidator = null;
|
|
13207
|
+
}
|
|
13070
13208
|
this.fieldValidator = new FieldValidator();
|
|
13071
13209
|
this.fieldValidator.renderFormValidator(form, rules, this.element, this.parent.locale);
|
|
13072
13210
|
};
|
|
13073
13211
|
EventWindow.prototype.showDetails = function (eventData) {
|
|
13074
|
-
this.eventData =
|
|
13212
|
+
this.eventData = eventData;
|
|
13075
13213
|
var eventObj = extend({}, eventData, null, true);
|
|
13076
13214
|
var formElements = this.getFormElements(EVENT_WINDOW_DIALOG_CLASS);
|
|
13077
|
-
if (this.parent.isReact && formElements.length < 1 && !this.cellClickAction) {
|
|
13078
|
-
this.eventCrudData = eventObj;
|
|
13079
|
-
return;
|
|
13080
|
-
}
|
|
13081
13215
|
if ((!this.cellClickAction || this.cellClickAction && !isNullOrUndefined(this.parent.editorTemplate)) &&
|
|
13082
13216
|
eventObj[this.fields.endTime].getHours() === 0 && eventObj[this.fields.endTime].getMinutes() === 0) {
|
|
13083
13217
|
this.trimAllDay(eventObj);
|
|
@@ -14096,7 +14230,7 @@ var EventWindow = /** @__PURE__ @class */ (function () {
|
|
|
14096
14230
|
/**
|
|
14097
14231
|
* Virtual Scroll
|
|
14098
14232
|
*/
|
|
14099
|
-
var VirtualScroll = /** @
|
|
14233
|
+
var VirtualScroll = /** @class */ (function () {
|
|
14100
14234
|
function VirtualScroll(parent) {
|
|
14101
14235
|
this.translateY = 0;
|
|
14102
14236
|
this.itemSize = 60;
|
|
@@ -14104,6 +14238,8 @@ var VirtualScroll = /** @__PURE__ @class */ (function () {
|
|
|
14104
14238
|
this.renderedLength = 0;
|
|
14105
14239
|
this.averageRowHeight = 0;
|
|
14106
14240
|
this.startIndex = 0;
|
|
14241
|
+
this.existingDataCollection = [];
|
|
14242
|
+
this.enableTransition = true;
|
|
14107
14243
|
this.parent = parent;
|
|
14108
14244
|
this.addEventListener();
|
|
14109
14245
|
}
|
|
@@ -14176,10 +14312,10 @@ var VirtualScroll = /** @__PURE__ @class */ (function () {
|
|
|
14176
14312
|
};
|
|
14177
14313
|
VirtualScroll.prototype.setItemSize = function () {
|
|
14178
14314
|
if (this.isHorizontalScroll) {
|
|
14179
|
-
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;
|
|
14180
14316
|
}
|
|
14181
14317
|
else {
|
|
14182
|
-
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;
|
|
14183
14319
|
}
|
|
14184
14320
|
};
|
|
14185
14321
|
VirtualScroll.prototype.refreshLayout = function () {
|
|
@@ -14193,11 +14329,16 @@ var VirtualScroll = /** @__PURE__ @class */ (function () {
|
|
|
14193
14329
|
var resWrap = this.parent.element.querySelector('.' + RESOURCE_COLUMN_WRAP_CLASS);
|
|
14194
14330
|
var conWrap = this.parent.element.querySelector('.' + CONTENT_WRAP_CLASS);
|
|
14195
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
|
+
}
|
|
14196
14336
|
var firstTDIndex = parseInt(resWrap.querySelector('tbody td').getAttribute('data-group-index'), 10);
|
|
14197
14337
|
var endIndex = (firstTDIndex + this.renderedLength);
|
|
14198
14338
|
firstTDIndex = (endIndex > this.parent.resourceBase.expandedResources.length) ?
|
|
14199
14339
|
(this.parent.resourceBase.expandedResources.length - this.renderedLength) : firstTDIndex;
|
|
14200
14340
|
firstTDIndex = firstTDIndex < 0 ? 0 : firstTDIndex;
|
|
14341
|
+
this.existingDataCollection = this.parent.resourceBase.renderedResources;
|
|
14201
14342
|
this.parent.resourceBase.renderedResources = this.parent.resourceBase.expandedResources.slice(firstTDIndex, endIndex);
|
|
14202
14343
|
if (this.parent.resourceBase.renderedResources.length > 0) {
|
|
14203
14344
|
this.updateContent(resWrap, conWrap, eventWrap, this.parent.resourceBase.renderedResources);
|
|
@@ -14247,6 +14388,7 @@ var VirtualScroll = /** @__PURE__ @class */ (function () {
|
|
|
14247
14388
|
var scrollHeight = this.parent.rowAutoHeight ?
|
|
14248
14389
|
(conTable.offsetHeight - conWrap.offsetHeight) : this.bufferCount * this.itemSize;
|
|
14249
14390
|
var resCollection = [];
|
|
14391
|
+
this.existingDataCollection = this.parent.resourceBase.renderedResources;
|
|
14250
14392
|
if ((conWrap.scrollTop) - this.translateY < 0) {
|
|
14251
14393
|
resCollection = this.upScroll(conWrap, firstTDIndex);
|
|
14252
14394
|
}
|
|
@@ -14450,56 +14592,133 @@ var VirtualScroll = /** @__PURE__ @class */ (function () {
|
|
|
14450
14592
|
this.parent.element.focus();
|
|
14451
14593
|
}
|
|
14452
14594
|
for (var i = 0; i < renderedLength; i++) {
|
|
14453
|
-
remove(resWrap.querySelector('tbody tr'));
|
|
14454
|
-
remove(conWrap.querySelector('tbody tr'));
|
|
14455
14595
|
remove(eventWrap.querySelector('div'));
|
|
14456
14596
|
}
|
|
14457
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);
|
|
14458
14607
|
var resourceRows = this.parent.resourceBase.getContentRows(resCollection, true);
|
|
14459
14608
|
var contentRows = this.parent.activeView.getContentRows();
|
|
14460
14609
|
var eventRows = this.parent.activeView.getEventRows(resCollection.length);
|
|
14461
|
-
|
|
14462
|
-
|
|
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
|
+
}
|
|
14463
14626
|
append(eventRows, eventWrap);
|
|
14464
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
|
+
};
|
|
14465
14636
|
VirtualScroll.prototype.updateHorizontalContent = function (conWrap, resCollection) {
|
|
14637
|
+
this.existingDataCollection = this.parent.resourceBase.expandedResources;
|
|
14466
14638
|
this.parent.resourceBase.expandedResources = resCollection;
|
|
14467
14639
|
var selectedEle = this.parent.getSelectedCells();
|
|
14468
14640
|
this.focusedEle = selectedEle[selectedEle.length - 1] || this.focusedEle;
|
|
14469
|
-
var
|
|
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;
|
|
14470
14652
|
for (var i = 0; i < renderedLength; i++) {
|
|
14471
14653
|
remove(conWrap.querySelector('tbody tr'));
|
|
14472
14654
|
}
|
|
14473
|
-
if (this.parent.
|
|
14474
|
-
|
|
14475
|
-
this.parent.activeView.colLevels[0] = resCollection;
|
|
14476
|
-
}
|
|
14477
|
-
else {
|
|
14478
|
-
this.parent.activeView.colLevels[this.parent.activeView.colLevels.length - 2] = resCollection;
|
|
14479
|
-
}
|
|
14480
|
-
var contentRows = this.parent.activeView.getContentRows();
|
|
14481
|
-
append(contentRows, conWrap.querySelector('tbody'));
|
|
14655
|
+
if (this.parent.activeViewOptions.group.byDate) {
|
|
14656
|
+
this.parent.activeView.colLevels[0] = resCollection;
|
|
14482
14657
|
}
|
|
14483
14658
|
else {
|
|
14484
|
-
|
|
14485
|
-
|
|
14486
|
-
|
|
14487
|
-
|
|
14488
|
-
|
|
14489
|
-
|
|
14490
|
-
|
|
14491
|
-
|
|
14492
|
-
|
|
14493
|
-
|
|
14494
|
-
|
|
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
|
+
}
|
|
14495
14678
|
});
|
|
14496
|
-
|
|
14497
|
-
|
|
14498
|
-
|
|
14499
|
-
|
|
14500
|
-
|
|
14501
|
-
|
|
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'));
|
|
14502
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
|
+
});
|
|
14503
14722
|
};
|
|
14504
14723
|
VirtualScroll.prototype.getBufferCollection = function (startIndex, endIndex) {
|
|
14505
14724
|
return this.parent.resourceBase.expandedResources.slice(startIndex, endIndex);
|
|
@@ -14560,7 +14779,7 @@ var VirtualScroll = /** @__PURE__ @class */ (function () {
|
|
|
14560
14779
|
/**
|
|
14561
14780
|
* Schedule DOM rendering
|
|
14562
14781
|
*/
|
|
14563
|
-
var Render = /** @
|
|
14782
|
+
var Render = /** @class */ (function () {
|
|
14564
14783
|
function Render(parent) {
|
|
14565
14784
|
this.parent = parent;
|
|
14566
14785
|
}
|
|
@@ -14715,29 +14934,29 @@ var Render = /** @__PURE__ @class */ (function () {
|
|
|
14715
14934
|
return Render;
|
|
14716
14935
|
}());
|
|
14717
14936
|
|
|
14718
|
-
var __extends$4 = (undefined && undefined.__extends) || (function () {
|
|
14719
|
-
var extendStatics = function (d, b) {
|
|
14720
|
-
extendStatics = Object.setPrototypeOf ||
|
|
14721
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
14722
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
14723
|
-
return extendStatics(d, b);
|
|
14724
|
-
};
|
|
14725
|
-
return function (d, b) {
|
|
14726
|
-
extendStatics(d, b);
|
|
14727
|
-
function __() { this.constructor = d; }
|
|
14728
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
14729
|
-
};
|
|
14730
|
-
})();
|
|
14731
|
-
var __decorate$1 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
14732
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
14733
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
14734
|
-
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;
|
|
14735
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
14736
|
-
};
|
|
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
|
+
};
|
|
14737
14956
|
/**
|
|
14738
14957
|
* A class that represents the configuration of working hours related options of scheduler.
|
|
14739
14958
|
*/
|
|
14740
|
-
var WorkHours = /** @
|
|
14959
|
+
var WorkHours = /** @class */ (function (_super) {
|
|
14741
14960
|
__extends$4(WorkHours, _super);
|
|
14742
14961
|
function WorkHours() {
|
|
14743
14962
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -14754,29 +14973,29 @@ var WorkHours = /** @__PURE__ @class */ (function (_super) {
|
|
|
14754
14973
|
return WorkHours;
|
|
14755
14974
|
}(ChildProperty));
|
|
14756
14975
|
|
|
14757
|
-
var __extends$5 = (undefined && undefined.__extends) || (function () {
|
|
14758
|
-
var extendStatics = function (d, b) {
|
|
14759
|
-
extendStatics = Object.setPrototypeOf ||
|
|
14760
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
14761
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
14762
|
-
return extendStatics(d, b);
|
|
14763
|
-
};
|
|
14764
|
-
return function (d, b) {
|
|
14765
|
-
extendStatics(d, b);
|
|
14766
|
-
function __() { this.constructor = d; }
|
|
14767
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
14768
|
-
};
|
|
14769
|
-
})();
|
|
14770
|
-
var __decorate$2 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
14771
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
14772
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
14773
|
-
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;
|
|
14774
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
14775
|
-
};
|
|
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
|
+
};
|
|
14776
14995
|
/**
|
|
14777
14996
|
* A class that represents the configuration of options related to timescale on scheduler.
|
|
14778
14997
|
*/
|
|
14779
|
-
var TimeScale = /** @
|
|
14998
|
+
var TimeScale = /** @class */ (function (_super) {
|
|
14780
14999
|
__extends$5(TimeScale, _super);
|
|
14781
15000
|
function TimeScale() {
|
|
14782
15001
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -14799,29 +15018,29 @@ var TimeScale = /** @__PURE__ @class */ (function (_super) {
|
|
|
14799
15018
|
return TimeScale;
|
|
14800
15019
|
}(ChildProperty));
|
|
14801
15020
|
|
|
14802
|
-
var __extends$6 = (undefined && undefined.__extends) || (function () {
|
|
14803
|
-
var extendStatics = function (d, b) {
|
|
14804
|
-
extendStatics = Object.setPrototypeOf ||
|
|
14805
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
14806
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
14807
|
-
return extendStatics(d, b);
|
|
14808
|
-
};
|
|
14809
|
-
return function (d, b) {
|
|
14810
|
-
extendStatics(d, b);
|
|
14811
|
-
function __() { this.constructor = d; }
|
|
14812
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
14813
|
-
};
|
|
14814
|
-
})();
|
|
14815
|
-
var __decorate$3 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
14816
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
14817
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
14818
|
-
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;
|
|
14819
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
14820
|
-
};
|
|
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
|
+
};
|
|
14821
15040
|
/**
|
|
14822
15041
|
* A class that defines the template options available to customize the quick popup of scheduler.
|
|
14823
15042
|
*/
|
|
14824
|
-
var QuickInfoTemplates = /** @
|
|
15043
|
+
var QuickInfoTemplates = /** @class */ (function (_super) {
|
|
14825
15044
|
__extends$6(QuickInfoTemplates, _super);
|
|
14826
15045
|
function QuickInfoTemplates() {
|
|
14827
15046
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -14841,29 +15060,29 @@ var QuickInfoTemplates = /** @__PURE__ @class */ (function (_super) {
|
|
|
14841
15060
|
return QuickInfoTemplates;
|
|
14842
15061
|
}(ChildProperty));
|
|
14843
15062
|
|
|
14844
|
-
var __extends$7 = (undefined && undefined.__extends) || (function () {
|
|
14845
|
-
var extendStatics = function (d, b) {
|
|
14846
|
-
extendStatics = Object.setPrototypeOf ||
|
|
14847
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
14848
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
14849
|
-
return extendStatics(d, b);
|
|
14850
|
-
};
|
|
14851
|
-
return function (d, b) {
|
|
14852
|
-
extendStatics(d, b);
|
|
14853
|
-
function __() { this.constructor = d; }
|
|
14854
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
14855
|
-
};
|
|
14856
|
-
})();
|
|
14857
|
-
var __decorate$4 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
14858
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
14859
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
14860
|
-
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;
|
|
14861
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
14862
|
-
};
|
|
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
|
+
};
|
|
14863
15082
|
/**
|
|
14864
15083
|
* A class that represents the header rows related configurations on timeline views.
|
|
14865
15084
|
*/
|
|
14866
|
-
var HeaderRows = /** @
|
|
15085
|
+
var HeaderRows = /** @class */ (function (_super) {
|
|
14867
15086
|
__extends$7(HeaderRows, _super);
|
|
14868
15087
|
function HeaderRows() {
|
|
14869
15088
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -14881,7 +15100,7 @@ var HeaderRows = /** @__PURE__ @class */ (function (_super) {
|
|
|
14881
15100
|
/**
|
|
14882
15101
|
* Schedule CRUD operations
|
|
14883
15102
|
*/
|
|
14884
|
-
var Crud = /** @
|
|
15103
|
+
var Crud = /** @class */ (function () {
|
|
14885
15104
|
function Crud(parent) {
|
|
14886
15105
|
this.parent = parent;
|
|
14887
15106
|
this.crudObj = { sourceEvent: null, targetEvent: null, isCrudAction: false };
|
|
@@ -14986,10 +15205,10 @@ var Crud = /** @__PURE__ @class */ (function () {
|
|
|
14986
15205
|
addedRecords: args.editParams.addedRecords, changedRecords: args.editParams.changedRecords,
|
|
14987
15206
|
deletedRecords: args.editParams.deletedRecords
|
|
14988
15207
|
};
|
|
14989
|
-
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) {
|
|
14990
15209
|
this.parent.dragAndDropModule.actionObj.element.style.display = 'none';
|
|
14991
15210
|
}
|
|
14992
|
-
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) {
|
|
14993
15212
|
this.parent.resizeModule.actionObj.element.style.display = 'none';
|
|
14994
15213
|
}
|
|
14995
15214
|
if (this.parent.isSpecificResourceEvents()) {
|
|
@@ -15378,16 +15597,32 @@ var Crud = /** @__PURE__ @class */ (function () {
|
|
|
15378
15597
|
var updateSeriesEvents = (eventData instanceof Array) ? eventData : [eventData];
|
|
15379
15598
|
var args = {
|
|
15380
15599
|
requestType: action === 'EditSeries' ? 'eventChange' : 'eventRemove', cancel: false,
|
|
15381
|
-
addedRecords: [], changedRecords:
|
|
15600
|
+
addedRecords: [], changedRecords: [], deletedRecords: []
|
|
15382
15601
|
};
|
|
15383
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
|
+
}
|
|
15384
15618
|
this.parent.trigger(actionBegin, args, function (seriesArgs) {
|
|
15385
15619
|
if (!seriesArgs.cancel) {
|
|
15386
15620
|
var fields_2 = _this.parent.eventFields;
|
|
15387
15621
|
var editParams = { addedRecords: [], changedRecords: [], deletedRecords: [] };
|
|
15388
15622
|
var seriesEvents = seriesData instanceof Array ? seriesData : [seriesData];
|
|
15623
|
+
var records = action === 'EditSeries' ? seriesArgs.changedRecords : seriesArgs.deletedRecords;
|
|
15389
15624
|
var _loop_4 = function (a, count) {
|
|
15390
|
-
var childEvent =
|
|
15625
|
+
var childEvent = records[parseInt(a.toString(), 10)];
|
|
15391
15626
|
var parentEvent = seriesEvents[parseInt(a.toString(), 10)];
|
|
15392
15627
|
var eventCollections = _this.parent.eventBase.getEventCollections(parentEvent);
|
|
15393
15628
|
var deletedEvents = eventCollections.follow.concat(eventCollections.occurrence);
|
|
@@ -15417,11 +15652,11 @@ var Crud = /** @__PURE__ @class */ (function () {
|
|
|
15417
15652
|
break;
|
|
15418
15653
|
}
|
|
15419
15654
|
};
|
|
15420
|
-
for (var a = 0, count =
|
|
15655
|
+
for (var a = 0, count = records.length; a < count; a++) {
|
|
15421
15656
|
_loop_4(a, count);
|
|
15422
15657
|
}
|
|
15423
15658
|
var promise = _this.parent.dataModule.dataManager.saveChanges(editParams, fields_2.id, _this.getTable(), _this.getQuery());
|
|
15424
|
-
var cloneEvent = extend({},
|
|
15659
|
+
var cloneEvent = extend({}, records[records.length - 1], null, true);
|
|
15425
15660
|
_this.parent.eventBase.selectWorkCellByTime(action === 'EditSeries' ? [_this.parent.eventBase.processTimezone(cloneEvent)] : [cloneEvent]);
|
|
15426
15661
|
var crudArgs = {
|
|
15427
15662
|
requestType: action === 'EditSeries' ? 'eventChanged' : 'eventRemoved',
|
|
@@ -15626,7 +15861,7 @@ var Crud = /** @__PURE__ @class */ (function () {
|
|
|
15626
15861
|
/**
|
|
15627
15862
|
* Work cell interactions
|
|
15628
15863
|
*/
|
|
15629
|
-
var WorkCellInteraction = /** @
|
|
15864
|
+
var WorkCellInteraction = /** @class */ (function () {
|
|
15630
15865
|
function WorkCellInteraction(parent) {
|
|
15631
15866
|
this.parent = parent;
|
|
15632
15867
|
EventHandler.add(this.parent.element, 'mouseover', this.onHover, this);
|
|
@@ -15762,29 +15997,29 @@ var WorkCellInteraction = /** @__PURE__ @class */ (function () {
|
|
|
15762
15997
|
return WorkCellInteraction;
|
|
15763
15998
|
}());
|
|
15764
15999
|
|
|
15765
|
-
var __extends$8 = (undefined && undefined.__extends) || (function () {
|
|
15766
|
-
var extendStatics = function (d, b) {
|
|
15767
|
-
extendStatics = Object.setPrototypeOf ||
|
|
15768
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
15769
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
15770
|
-
return extendStatics(d, b);
|
|
15771
|
-
};
|
|
15772
|
-
return function (d, b) {
|
|
15773
|
-
extendStatics(d, b);
|
|
15774
|
-
function __() { this.constructor = d; }
|
|
15775
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15776
|
-
};
|
|
15777
|
-
})();
|
|
15778
|
-
var __decorate$5 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
15779
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
15780
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
15781
|
-
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;
|
|
15782
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
15783
|
-
};
|
|
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
|
+
};
|
|
15784
16019
|
/**
|
|
15785
16020
|
* Configuration that applies on each appointment field options of scheduler.
|
|
15786
16021
|
*/
|
|
15787
|
-
var FieldOptions = /** @
|
|
16022
|
+
var FieldOptions = /** @class */ (function (_super) {
|
|
15788
16023
|
__extends$8(FieldOptions, _super);
|
|
15789
16024
|
function FieldOptions() {
|
|
15790
16025
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -15804,25 +16039,25 @@ var FieldOptions = /** @__PURE__ @class */ (function (_super) {
|
|
|
15804
16039
|
return FieldOptions;
|
|
15805
16040
|
}(ChildProperty));
|
|
15806
16041
|
|
|
15807
|
-
var __extends$9 = (undefined && undefined.__extends) || (function () {
|
|
15808
|
-
var extendStatics = function (d, b) {
|
|
15809
|
-
extendStatics = Object.setPrototypeOf ||
|
|
15810
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
15811
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
15812
|
-
return extendStatics(d, b);
|
|
15813
|
-
};
|
|
15814
|
-
return function (d, b) {
|
|
15815
|
-
extendStatics(d, b);
|
|
15816
|
-
function __() { this.constructor = d; }
|
|
15817
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15818
|
-
};
|
|
15819
|
-
})();
|
|
15820
|
-
var __decorate$6 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
15821
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
15822
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
15823
|
-
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;
|
|
15824
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
15825
|
-
};
|
|
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
|
+
};
|
|
15826
16061
|
/**
|
|
15827
16062
|
* A class that holds the collection of event fields that requires to be mapped with the dataSource
|
|
15828
16063
|
* fields along with its available configuration settings. Each field in it accepts both string and object
|
|
@@ -15830,7 +16065,7 @@ var __decorate$6 = (undefined && undefined.__decorate) || function (decorators,
|
|
|
15830
16065
|
* name is mapped with it. If the `object` type is defined on each fields, then the validation related settings and mapping of
|
|
15831
16066
|
* those fields with dataSource can be given altogether within it.
|
|
15832
16067
|
*/
|
|
15833
|
-
var Field = /** @
|
|
16068
|
+
var Field = /** @class */ (function (_super) {
|
|
15834
16069
|
__extends$9(Field, _super);
|
|
15835
16070
|
function Field() {
|
|
15836
16071
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -15883,29 +16118,29 @@ var Field = /** @__PURE__ @class */ (function (_super) {
|
|
|
15883
16118
|
return Field;
|
|
15884
16119
|
}(ChildProperty));
|
|
15885
16120
|
|
|
15886
|
-
var __extends$a = (undefined && undefined.__extends) || (function () {
|
|
15887
|
-
var extendStatics = function (d, b) {
|
|
15888
|
-
extendStatics = Object.setPrototypeOf ||
|
|
15889
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
15890
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
15891
|
-
return extendStatics(d, b);
|
|
15892
|
-
};
|
|
15893
|
-
return function (d, b) {
|
|
15894
|
-
extendStatics(d, b);
|
|
15895
|
-
function __() { this.constructor = d; }
|
|
15896
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15897
|
-
};
|
|
15898
|
-
})();
|
|
15899
|
-
var __decorate$7 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
15900
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
15901
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
15902
|
-
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;
|
|
15903
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
15904
|
-
};
|
|
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
|
+
};
|
|
15905
16140
|
/**
|
|
15906
16141
|
* Holds the configuration of event related options and dataSource binding to Schedule.
|
|
15907
16142
|
*/
|
|
15908
|
-
var EventSettings = /** @
|
|
16143
|
+
var EventSettings = /** @class */ (function (_super) {
|
|
15909
16144
|
__extends$a(EventSettings, _super);
|
|
15910
16145
|
function EventSettings() {
|
|
15911
16146
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -15967,29 +16202,29 @@ var EventSettings = /** @__PURE__ @class */ (function (_super) {
|
|
|
15967
16202
|
return EventSettings;
|
|
15968
16203
|
}(ChildProperty));
|
|
15969
16204
|
|
|
15970
|
-
var __extends$b = (undefined && undefined.__extends) || (function () {
|
|
15971
|
-
var extendStatics = function (d, b) {
|
|
15972
|
-
extendStatics = Object.setPrototypeOf ||
|
|
15973
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
15974
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
15975
|
-
return extendStatics(d, b);
|
|
15976
|
-
};
|
|
15977
|
-
return function (d, b) {
|
|
15978
|
-
extendStatics(d, b);
|
|
15979
|
-
function __() { this.constructor = d; }
|
|
15980
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15981
|
-
};
|
|
15982
|
-
})();
|
|
15983
|
-
var __decorate$8 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
15984
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
15985
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
15986
|
-
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;
|
|
15987
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
15988
|
-
};
|
|
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
|
+
};
|
|
15989
16224
|
/**
|
|
15990
16225
|
* A class that holds the resource grouping related configurations on Schedule.
|
|
15991
16226
|
*/
|
|
15992
|
-
var Group = /** @
|
|
16227
|
+
var Group = /** @class */ (function (_super) {
|
|
15993
16228
|
__extends$b(Group, _super);
|
|
15994
16229
|
function Group() {
|
|
15995
16230
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -16018,29 +16253,29 @@ var Group = /** @__PURE__ @class */ (function (_super) {
|
|
|
16018
16253
|
return Group;
|
|
16019
16254
|
}(ChildProperty));
|
|
16020
16255
|
|
|
16021
|
-
var __extends$c = (undefined && undefined.__extends) || (function () {
|
|
16022
|
-
var extendStatics = function (d, b) {
|
|
16023
|
-
extendStatics = Object.setPrototypeOf ||
|
|
16024
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
16025
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
16026
|
-
return extendStatics(d, b);
|
|
16027
|
-
};
|
|
16028
|
-
return function (d, b) {
|
|
16029
|
-
extendStatics(d, b);
|
|
16030
|
-
function __() { this.constructor = d; }
|
|
16031
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
16032
|
-
};
|
|
16033
|
-
})();
|
|
16034
|
-
var __decorate$9 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
16035
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
16036
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
16037
|
-
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;
|
|
16038
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
16039
|
-
};
|
|
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
|
+
};
|
|
16040
16275
|
/**
|
|
16041
16276
|
* A class that represents the resource related configurations and its data binding options.
|
|
16042
16277
|
*/
|
|
16043
|
-
var Resources = /** @
|
|
16278
|
+
var Resources = /** @class */ (function (_super) {
|
|
16044
16279
|
__extends$c(Resources, _super);
|
|
16045
16280
|
function Resources() {
|
|
16046
16281
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -16094,7 +16329,7 @@ var Resources = /** @__PURE__ @class */ (function (_super) {
|
|
|
16094
16329
|
}(ChildProperty));
|
|
16095
16330
|
|
|
16096
16331
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
16097
|
-
var ResourceBase = /** @
|
|
16332
|
+
var ResourceBase = /** @class */ (function () {
|
|
16098
16333
|
function ResourceBase(parent) {
|
|
16099
16334
|
this.resourceCollection = [];
|
|
16100
16335
|
this.leftPixel = 25;
|
|
@@ -16182,7 +16417,11 @@ var ResourceBase = /** @__PURE__ @class */ (function () {
|
|
|
16182
16417
|
var resColl = this.resourceCollection;
|
|
16183
16418
|
var tr = createElement('tr');
|
|
16184
16419
|
var td = createElement('td', { attrs: { tabindex: isVirtualScroll ? '-1' : '0' } });
|
|
16420
|
+
var existingGroupIndices = this.parent.activeView.getGroupIndices();
|
|
16185
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
|
+
}
|
|
16186
16425
|
var ntd = td.cloneNode();
|
|
16187
16426
|
rIndex = findIndexInData(resColl, 'name', resData[parseInt(i.toString(), 10)].resource.name);
|
|
16188
16427
|
if (rIndex === resColl.length - 1) {
|
|
@@ -16363,6 +16602,7 @@ var ResourceBase = /** @__PURE__ @class */ (function () {
|
|
|
16363
16602
|
this.setExpandedResources();
|
|
16364
16603
|
var resourceCount = this.parent.virtualScrollModule.getRenderedCount();
|
|
16365
16604
|
var startIndex = this.expandedResources.indexOf(this.renderedResources[0]);
|
|
16605
|
+
this.parent.virtualScrollModule.existingDataCollection = this.renderedResources;
|
|
16366
16606
|
this.renderedResources = this.expandedResources.slice(startIndex, startIndex + resourceCount);
|
|
16367
16607
|
if (this.renderedResources.length < resourceCount) {
|
|
16368
16608
|
var sIndex = this.expandedResources.length - resourceCount;
|
|
@@ -17196,26 +17436,26 @@ var ResourceBase = /** @__PURE__ @class */ (function () {
|
|
|
17196
17436
|
return ResourceBase;
|
|
17197
17437
|
}());
|
|
17198
17438
|
|
|
17199
|
-
var __extends$d = (undefined && undefined.__extends) || (function () {
|
|
17200
|
-
var extendStatics = function (d, b) {
|
|
17201
|
-
extendStatics = Object.setPrototypeOf ||
|
|
17202
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
17203
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
17204
|
-
return extendStatics(d, b);
|
|
17205
|
-
};
|
|
17206
|
-
return function (d, b) {
|
|
17207
|
-
extendStatics(d, b);
|
|
17208
|
-
function __() { this.constructor = d; }
|
|
17209
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
17210
|
-
};
|
|
17211
|
-
})();
|
|
17212
|
-
var __decorate$a = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
17213
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
17214
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
17215
|
-
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;
|
|
17216
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
17217
|
-
};
|
|
17218
|
-
var ToolbarItem = /** @
|
|
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) {
|
|
17219
17459
|
__extends$d(ToolbarItem, _super);
|
|
17220
17460
|
function ToolbarItem() {
|
|
17221
17461
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -17280,25 +17520,25 @@ var ToolbarItem = /** @__PURE__ @class */ (function (_super) {
|
|
|
17280
17520
|
return ToolbarItem;
|
|
17281
17521
|
}(ChildProperty));
|
|
17282
17522
|
|
|
17283
|
-
var __extends$e = (undefined && undefined.__extends) || (function () {
|
|
17284
|
-
var extendStatics = function (d, b) {
|
|
17285
|
-
extendStatics = Object.setPrototypeOf ||
|
|
17286
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
17287
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
17288
|
-
return extendStatics(d, b);
|
|
17289
|
-
};
|
|
17290
|
-
return function (d, b) {
|
|
17291
|
-
extendStatics(d, b);
|
|
17292
|
-
function __() { this.constructor = d; }
|
|
17293
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
17294
|
-
};
|
|
17295
|
-
})();
|
|
17296
|
-
var __decorate$b = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
17297
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
17298
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
17299
|
-
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;
|
|
17300
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
17301
|
-
};
|
|
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
|
+
};
|
|
17302
17542
|
/**
|
|
17303
17543
|
* Represents the Schedule component that displays a list of events scheduled against specific date and timings,
|
|
17304
17544
|
* thus helping us to plan and manage it properly.
|
|
@@ -17312,7 +17552,7 @@ var __decorate$b = (undefined && undefined.__decorate) || function (decorators,
|
|
|
17312
17552
|
* </script>
|
|
17313
17553
|
* ```
|
|
17314
17554
|
*/
|
|
17315
|
-
var Schedule = /** @
|
|
17555
|
+
var Schedule = /** @class */ (function (_super) {
|
|
17316
17556
|
__extends$e(Schedule, _super);
|
|
17317
17557
|
/**
|
|
17318
17558
|
* Constructor for creating the Schedule widget
|
|
@@ -17397,6 +17637,37 @@ var Schedule = /** @__PURE__ @class */ (function (_super) {
|
|
|
17397
17637
|
}
|
|
17398
17638
|
return templateName;
|
|
17399
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
|
+
};
|
|
17400
17671
|
/**
|
|
17401
17672
|
* Method to render react templates
|
|
17402
17673
|
*
|
|
@@ -17477,6 +17748,7 @@ var Schedule = /** @__PURE__ @class */ (function (_super) {
|
|
|
17477
17748
|
this.headerModule = new HeaderRenderer(this);
|
|
17478
17749
|
}
|
|
17479
17750
|
this.renderTableContainer();
|
|
17751
|
+
this.uiStateValues.isTransformed = Math.round(this.element.getBoundingClientRect().width) !== this.element.offsetWidth;
|
|
17480
17752
|
if (Browser.isDevice || Browser.isTouch) {
|
|
17481
17753
|
this.scheduleTouchModule = new ScheduleTouch(this);
|
|
17482
17754
|
}
|
|
@@ -17980,7 +18252,7 @@ var Schedule = /** @__PURE__ @class */ (function (_super) {
|
|
|
17980
18252
|
this.uiStateValues = {
|
|
17981
18253
|
expand: false, isInitial: true, left: 0, top: 0, isGroupAdaptive: false,
|
|
17982
18254
|
isIgnoreOccurrence: false, groupIndex: this.adaptiveGroupIndex, action: false,
|
|
17983
|
-
isBlock: false, isCustomMonth: true, isPreventTimezone: false
|
|
18255
|
+
isBlock: false, isCustomMonth: true, isPreventTimezone: false, isTransformed: false
|
|
17984
18256
|
};
|
|
17985
18257
|
}
|
|
17986
18258
|
this.currentTimezoneDate = this.getCurrentTime();
|
|
@@ -18474,7 +18746,8 @@ var Schedule = /** @__PURE__ @class */ (function (_super) {
|
|
|
18474
18746
|
};
|
|
18475
18747
|
Schedule.prototype.onScheduleResize = function () {
|
|
18476
18748
|
if (isNullOrUndefined(this.activeView) || ((this.isAdaptive || isMobile()) && document.activeElement
|
|
18477
|
-
&& document.activeElement.classList.contains(SUBJECT_CLASS)
|
|
18749
|
+
&& (document.activeElement.classList.contains(SUBJECT_CLASS) ||
|
|
18750
|
+
document.activeElement.classList.contains(INLINE_SUBJECT_CLASS))) || this.uiStateValues.isTapHold) {
|
|
18478
18751
|
return;
|
|
18479
18752
|
}
|
|
18480
18753
|
if (this.virtualScrollModule && this.activeView.isTimelineView()) {
|
|
@@ -18497,6 +18770,12 @@ var Schedule = /** @__PURE__ @class */ (function (_super) {
|
|
|
18497
18770
|
this.virtualScrollModule.isRemoteRefresh = false;
|
|
18498
18771
|
}
|
|
18499
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
|
+
}
|
|
18500
18779
|
}
|
|
18501
18780
|
else {
|
|
18502
18781
|
this.notify(contentReady, {});
|
|
@@ -19373,6 +19652,9 @@ var Schedule = /** @__PURE__ @class */ (function (_super) {
|
|
|
19373
19652
|
* @returns {void}
|
|
19374
19653
|
*/
|
|
19375
19654
|
Schedule.prototype.scrollTo = function (hour, scrollDate) {
|
|
19655
|
+
if (this.currentView.indexOf('Agenda') < 0 && isNullOrUndefined(this.element.querySelector('.e-work-cells'))) {
|
|
19656
|
+
return;
|
|
19657
|
+
}
|
|
19376
19658
|
if (this.activeView.scrollToDate && isNullOrUndefined(hour) && scrollDate) {
|
|
19377
19659
|
this.activeView.scrollToDate(scrollDate);
|
|
19378
19660
|
}
|
|
@@ -20354,7 +20636,7 @@ var Schedule = /** @__PURE__ @class */ (function (_super) {
|
|
|
20354
20636
|
/**
|
|
20355
20637
|
* Base class for the common drag and resize related actions
|
|
20356
20638
|
*/
|
|
20357
|
-
var ActionBase = /** @
|
|
20639
|
+
var ActionBase = /** @class */ (function () {
|
|
20358
20640
|
function ActionBase(parent) {
|
|
20359
20641
|
this.daysVariation = 0;
|
|
20360
20642
|
this.parent = parent;
|
|
@@ -20811,23 +21093,23 @@ var ActionBase = /** @__PURE__ @class */ (function () {
|
|
|
20811
21093
|
return ActionBase;
|
|
20812
21094
|
}());
|
|
20813
21095
|
|
|
20814
|
-
var __extends$f = (undefined && undefined.__extends) || (function () {
|
|
20815
|
-
var extendStatics = function (d, b) {
|
|
20816
|
-
extendStatics = Object.setPrototypeOf ||
|
|
20817
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
20818
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
20819
|
-
return extendStatics(d, b);
|
|
20820
|
-
};
|
|
20821
|
-
return function (d, b) {
|
|
20822
|
-
extendStatics(d, b);
|
|
20823
|
-
function __() { this.constructor = d; }
|
|
20824
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
20825
|
-
};
|
|
20826
|
-
})();
|
|
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
|
+
})();
|
|
20827
21109
|
/**
|
|
20828
21110
|
* Schedule events resize actions
|
|
20829
21111
|
*/
|
|
20830
|
-
var Resize = /** @
|
|
21112
|
+
var Resize = /** @class */ (function (_super) {
|
|
20831
21113
|
__extends$f(Resize, _super);
|
|
20832
21114
|
function Resize() {
|
|
20833
21115
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -20892,8 +21174,8 @@ var Resize = /** @__PURE__ @class */ (function (_super) {
|
|
|
20892
21174
|
};
|
|
20893
21175
|
_this.actionObj.groupIndex = _this.parent.uiStateValues.isGroupAdaptive ? _this.parent.uiStateValues.groupIndex : 0;
|
|
20894
21176
|
var workCell = _this.parent.element.querySelector('.' + WORK_CELLS_CLASS);
|
|
20895
|
-
_this.actionObj.cellWidth = getElementWidth(workCell);
|
|
20896
|
-
_this.actionObj.cellHeight = getElementHeight(workCell);
|
|
21177
|
+
_this.actionObj.cellWidth = _this.parent.getElementWidth(workCell);
|
|
21178
|
+
_this.actionObj.cellHeight = _this.parent.getElementHeight(workCell);
|
|
20897
21179
|
var hRows = _this.parent.activeViewOptions.headerRows.map(function (row) { return row.option; });
|
|
20898
21180
|
if (_this.parent.activeView.isTimelineView() && hRows.length > 0 && ['Date', 'Hour'].indexOf(hRows.slice(-1)[0]) < 0) {
|
|
20899
21181
|
var tr = _this.parent.getContentTable().querySelector('tr');
|
|
@@ -21127,6 +21409,7 @@ var Resize = /** @__PURE__ @class */ (function (_super) {
|
|
|
21127
21409
|
EventHandler.remove(document, Browser.touchEndEvent, this.resizeStop);
|
|
21128
21410
|
clearInterval(this.actionObj.scrollInterval);
|
|
21129
21411
|
this.actionObj.scrollInterval = null;
|
|
21412
|
+
this.actionObj.action = null;
|
|
21130
21413
|
this.removeCloneElementClasses();
|
|
21131
21414
|
this.removeCloneElement();
|
|
21132
21415
|
this.actionClass('removeClass');
|
|
@@ -21203,9 +21486,10 @@ var Resize = /** @__PURE__ @class */ (function (_super) {
|
|
|
21203
21486
|
parseInt(this.actionObj.clone.style.left, 10);
|
|
21204
21487
|
offsetValue = Math.round(offsetValue / this.actionObj.cellWidth) * this.actionObj.cellWidth;
|
|
21205
21488
|
if (!isLeft) {
|
|
21206
|
-
offsetValue += (getElementWidth(this.actionObj.clone) - this.actionObj.cellWidth);
|
|
21489
|
+
offsetValue += (this.parent.getElementWidth(this.actionObj.clone) - this.actionObj.cellWidth);
|
|
21207
21490
|
}
|
|
21208
|
-
cellIndex = Math.
|
|
21491
|
+
cellIndex = !isTimelineMonth ? Math.round(offsetValue / (this.parent.getElementWidth(tr) / noOfDays)) :
|
|
21492
|
+
Math.floor(offsetValue / Math.floor(this.parent.getElementWidth(tr) / noOfDays));
|
|
21209
21493
|
isDateHeader = isTimeViews && headerName === 'Date';
|
|
21210
21494
|
cellIndex = isLeft ? cellIndex : isTimelineMonth ? cellIndex + 1 : cellIndex;
|
|
21211
21495
|
isLastCell = cellIndex === tdCollections.length;
|
|
@@ -21214,7 +21498,7 @@ var Resize = /** @__PURE__ @class */ (function (_super) {
|
|
|
21214
21498
|
else {
|
|
21215
21499
|
var cellWidth = this.actionObj.cellWidth;
|
|
21216
21500
|
cellIndex = isLeft ? Math.floor(offset / this.actionObj.cellWidth) :
|
|
21217
|
-
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);
|
|
21218
21502
|
if (this.parent.enableRtl) {
|
|
21219
21503
|
var cellOffsetWidth = 0;
|
|
21220
21504
|
if (headerName === 'TimelineMonth' || (!this.parent.activeViewOptions.timeScale.enable &&
|
|
@@ -21222,7 +21506,7 @@ var Resize = /** @__PURE__ @class */ (function (_super) {
|
|
|
21222
21506
|
cellOffsetWidth = this.actionObj.cellWidth;
|
|
21223
21507
|
}
|
|
21224
21508
|
var offsetWidth = (Math.floor(offset / this.actionObj.cellWidth) *
|
|
21225
|
-
this.actionObj.cellWidth) + (isLeft ? 0 : getElementWidth(this.actionObj.clone) - cellOffsetWidth);
|
|
21509
|
+
this.actionObj.cellWidth) + (isLeft ? 0 : this.parent.getElementWidth(this.actionObj.clone) - cellOffsetWidth);
|
|
21226
21510
|
cellIndex = Math.floor(offsetWidth / this.actionObj.cellWidth);
|
|
21227
21511
|
}
|
|
21228
21512
|
isLastCell = cellIndex === tdCollections.length;
|
|
@@ -21241,7 +21525,7 @@ var Resize = /** @__PURE__ @class */ (function (_super) {
|
|
|
21241
21525
|
}
|
|
21242
21526
|
else {
|
|
21243
21527
|
if (!isLeft) {
|
|
21244
|
-
offset += getElementWidth(this.actionObj.clone);
|
|
21528
|
+
offset += this.parent.getElementWidth(this.actionObj.clone);
|
|
21245
21529
|
}
|
|
21246
21530
|
var spanMinutes = Math.ceil((this.actionObj.slotInterval / this.actionObj.cellWidth) *
|
|
21247
21531
|
(offset - Math.floor(offset / this.actionObj.cellWidth) * this.actionObj.cellWidth));
|
|
@@ -21253,9 +21537,9 @@ var Resize = /** @__PURE__ @class */ (function (_super) {
|
|
|
21253
21537
|
}
|
|
21254
21538
|
else {
|
|
21255
21539
|
var cloneIndex = closest(this.actionObj.clone, 'td').cellIndex;
|
|
21256
|
-
var originalWidth = Math.ceil((isLeft ? getElementWidth(this.actionObj.element) : 0) /
|
|
21540
|
+
var originalWidth = Math.ceil((isLeft ? this.parent.getElementWidth(this.actionObj.element) : 0) /
|
|
21257
21541
|
this.actionObj.cellWidth) * this.actionObj.cellWidth;
|
|
21258
|
-
var noOfDays = Math.ceil((getElementWidth(this.actionObj.clone) - originalWidth) /
|
|
21542
|
+
var noOfDays = Math.ceil((this.parent.getElementWidth(this.actionObj.clone) - originalWidth) /
|
|
21259
21543
|
this.actionObj.cellWidth);
|
|
21260
21544
|
var tr = closest(this.actionObj.clone, 'tr');
|
|
21261
21545
|
var dayIndex = isLeft ? cloneIndex - noOfDays : cloneIndex + noOfDays - 1;
|
|
@@ -21318,9 +21602,9 @@ var Resize = /** @__PURE__ @class */ (function (_super) {
|
|
|
21318
21602
|
var slotInterval = (this.actionObj.cellWidth / this.actionObj.slotInterval) * this.actionObj.interval;
|
|
21319
21603
|
var pageWidth = isLeft ? (this.actionObj.X - this.actionObj.pageX) : (this.actionObj.pageX - this.actionObj.X);
|
|
21320
21604
|
var targetWidth = isTimelineView ?
|
|
21321
|
-
(getElementWidth(this.actionObj.element) / this.actionObj.cellWidth) * this.actionObj.cellWidth :
|
|
21322
|
-
this.parent.currentView === 'Month' ? getElementWidth(this.actionObj.element) :
|
|
21323
|
-
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;
|
|
21324
21608
|
var offsetWidth = targetWidth + (Math.ceil(pageWidth / this.actionObj.cellWidth) * this.actionObj.cellWidth);
|
|
21325
21609
|
var left = (this.parent.enableRtl) ? parseInt(this.actionObj.element.style.right, 10) : this.actionObj.clone.offsetLeft;
|
|
21326
21610
|
if (isTimeViews) {
|
|
@@ -21335,7 +21619,7 @@ var Resize = /** @__PURE__ @class */ (function (_super) {
|
|
|
21335
21619
|
this.actionObj.event[this.parent.eventFields.isAllDay] = false;
|
|
21336
21620
|
}
|
|
21337
21621
|
var width = !isLeft && ((offsetWidth + this.actionObj.clone.offsetLeft > this.scrollArgs.width)) ?
|
|
21338
|
-
getElementWidth(this.actionObj.clone) : (offsetWidth < this.actionObj.cellWidth) ? offsetWidth : offsetWidth;
|
|
21622
|
+
this.parent.getElementWidth(this.actionObj.clone) : (offsetWidth < this.actionObj.cellWidth) ? offsetWidth : offsetWidth;
|
|
21339
21623
|
if (this.parent.enableRtl) {
|
|
21340
21624
|
var rightValue = isTimelineView ? parseInt(this.actionObj.element.style.right, 10) :
|
|
21341
21625
|
-(offsetWidth - this.actionObj.cellWidth);
|
|
@@ -21349,7 +21633,7 @@ var Resize = /** @__PURE__ @class */ (function (_super) {
|
|
|
21349
21633
|
}
|
|
21350
21634
|
rightValue = rightValue >= this.scrollArgs.width ? this.scrollArgs.width - this.actionObj.cellWidth : rightValue;
|
|
21351
21635
|
styles.right = formatUnit(rightValue);
|
|
21352
|
-
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;
|
|
21353
21637
|
}
|
|
21354
21638
|
else {
|
|
21355
21639
|
var offsetLeft = isLeft ? this.actionObj.element.offsetLeft - (this.actionObj.X - this.actionObj.pageX) :
|
|
@@ -21357,12 +21641,12 @@ var Resize = /** @__PURE__ @class */ (function (_super) {
|
|
|
21357
21641
|
if (isTimelineView) {
|
|
21358
21642
|
offsetLeft = isLeft ? offsetLeft : parseInt(this.actionObj.clone.style.left, 10);
|
|
21359
21643
|
if (this.parent.enableRtl) {
|
|
21360
|
-
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))
|
|
21361
21645
|
? parseInt(this.actionObj.clone.style.right, 10) : offsetLeft : offsetLeft;
|
|
21362
21646
|
}
|
|
21363
21647
|
else {
|
|
21364
|
-
offsetLeft = isLeft ? (this.actionObj.pageX > this.actionObj.X + getElementWidth(this.actionObj.clone) &&
|
|
21365
|
-
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) ?
|
|
21366
21650
|
parseInt(this.actionObj.clone.style.left, 10) : offsetLeft : offsetLeft;
|
|
21367
21651
|
}
|
|
21368
21652
|
}
|
|
@@ -21378,10 +21662,10 @@ var Resize = /** @__PURE__ @class */ (function (_super) {
|
|
|
21378
21662
|
}
|
|
21379
21663
|
else {
|
|
21380
21664
|
offsetLeft = 0;
|
|
21381
|
-
width = getElementWidth(this.actionObj.clone);
|
|
21665
|
+
width = this.parent.getElementWidth(this.actionObj.clone);
|
|
21382
21666
|
}
|
|
21383
21667
|
}
|
|
21384
|
-
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) *
|
|
21385
21669
|
this.actionObj.cellWidth;
|
|
21386
21670
|
if (isLeft) {
|
|
21387
21671
|
styles.left = formatUnit(isTimelineView ? offsetLeft : isLeft ? leftValue < 0 ? -offsetLeft :
|
|
@@ -21428,24 +21712,24 @@ var Resize = /** @__PURE__ @class */ (function (_super) {
|
|
|
21428
21712
|
return Resize;
|
|
21429
21713
|
}(ActionBase));
|
|
21430
21714
|
|
|
21431
|
-
var __extends$g = (undefined && undefined.__extends) || (function () {
|
|
21432
|
-
var extendStatics = function (d, b) {
|
|
21433
|
-
extendStatics = Object.setPrototypeOf ||
|
|
21434
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
21435
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
21436
|
-
return extendStatics(d, b);
|
|
21437
|
-
};
|
|
21438
|
-
return function (d, b) {
|
|
21439
|
-
extendStatics(d, b);
|
|
21440
|
-
function __() { this.constructor = d; }
|
|
21441
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
21442
|
-
};
|
|
21443
|
-
})();
|
|
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
|
+
})();
|
|
21444
21728
|
var EVENT_GAP$2 = 2;
|
|
21445
21729
|
/**
|
|
21446
21730
|
* Year view events render
|
|
21447
21731
|
*/
|
|
21448
|
-
var YearEvent = /** @
|
|
21732
|
+
var YearEvent = /** @class */ (function (_super) {
|
|
21449
21733
|
__extends$g(YearEvent, _super);
|
|
21450
21734
|
function YearEvent(parent) {
|
|
21451
21735
|
var _this = _super.call(this, parent, 'day') || this;
|
|
@@ -21490,8 +21774,8 @@ var YearEvent = /** @__PURE__ @class */ (function (_super) {
|
|
|
21490
21774
|
var monthDate = new Date(this.parent.selectedDate.getFullYear(), month, 1);
|
|
21491
21775
|
var monthStart = this.parent.calendarUtil.getMonthStartDate(new Date(monthDate.getTime()));
|
|
21492
21776
|
var monthEnd = this.parent.calendarUtil.getMonthEndDate(new Date(monthDate.getTime()));
|
|
21493
|
-
var startDate = getWeekFirstDate(monthStart, this.parent.firstDayOfWeek);
|
|
21494
|
-
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);
|
|
21495
21779
|
for (var index = 0; startDate.getTime() < endDate.getTime(); index++) {
|
|
21496
21780
|
var start = resetTime(new Date(startDate.getTime()));
|
|
21497
21781
|
var end = addDays(new Date(start.getTime()), 1);
|
|
@@ -21512,10 +21796,10 @@ var YearEvent = /** @__PURE__ @class */ (function (_super) {
|
|
|
21512
21796
|
YearEvent.prototype.timelineYearViewEvents = function () {
|
|
21513
21797
|
var _this = this;
|
|
21514
21798
|
var workCell = this.parent.element.querySelector('.' + WORK_CELLS_CLASS + ':not(.' + OTHERMONTH_CLASS + ')');
|
|
21515
|
-
this.cellWidth = getElementWidth(workCell);
|
|
21799
|
+
this.cellWidth = this.parent.getElementWidth(workCell);
|
|
21516
21800
|
this.cellHeader = getOuterHeight(workCell.querySelector('.' + DATE_HEADER_CLASS));
|
|
21517
21801
|
var eventTable = this.parent.element.querySelector('.' + EVENT_TABLE_CLASS);
|
|
21518
|
-
this.eventHeight = getElementHeightFromClass(eventTable, APPOINTMENT_CLASS);
|
|
21802
|
+
this.eventHeight = this.parent.getElementHeightFromClass(eventTable, APPOINTMENT_CLASS);
|
|
21519
21803
|
var selector = "." + MONTH_HEADER_WRAPPER + " tbody tr,." + RESOURCE_COLUMN_TABLE_CLASS + " tbody tr,." + CONTENT_TABLE_CLASS + " tbody tr";
|
|
21520
21804
|
this.addCellHeight(selector, this.eventHeight, EVENT_GAP$2, this.cellHeader, this.moreIndicatorHeight);
|
|
21521
21805
|
var wrapperCollection = [].slice.call(this.parent.element.querySelectorAll('.' + APPOINTMENT_CONTAINER_CLASS));
|
|
@@ -21671,10 +21955,10 @@ var YearEvent = /** @__PURE__ @class */ (function (_super) {
|
|
|
21671
21955
|
var contentTable = this.parent.element.querySelector('.' + CONTENT_WRAP_CLASS);
|
|
21672
21956
|
var isVerticalScrollbarAvail = contentTable.offsetWidth > contentTable.clientWidth;
|
|
21673
21957
|
var workCell = this.parent.element.querySelector('.' + WORK_CELLS_CLASS);
|
|
21674
|
-
this.cellWidth = getElementWidth(workCell);
|
|
21958
|
+
this.cellWidth = this.parent.getElementWidth(workCell);
|
|
21675
21959
|
this.cellHeader = 0;
|
|
21676
21960
|
var eventTable = this.parent.element.querySelector('.' + EVENT_TABLE_CLASS);
|
|
21677
|
-
this.eventHeight = getElementHeightFromClass(eventTable, APPOINTMENT_CLASS);
|
|
21961
|
+
this.eventHeight = this.parent.getElementHeightFromClass(eventTable, APPOINTMENT_CLASS);
|
|
21678
21962
|
var selector = "." + MONTH_HEADER_WRAPPER + " tbody tr,." + RESOURCE_COLUMN_TABLE_CLASS + " tbody tr,." + CONTENT_TABLE_CLASS + " tbody tr";
|
|
21679
21963
|
this.addCellHeight(selector, this.eventHeight, EVENT_GAP$2, this.cellHeader, this.moreIndicatorHeight);
|
|
21680
21964
|
var wrapperCollection = [].slice.call(this.parent.element.querySelectorAll('.' + APPOINTMENT_CONTAINER_CLASS));
|
|
@@ -21716,7 +22000,7 @@ var YearEvent = /** @__PURE__ @class */ (function (_super) {
|
|
|
21716
22000
|
appWrapper.forEach(function (appWrap, cellIndex) {
|
|
21717
22001
|
var td = row.querySelector("td:nth-child(" + (cellIndex + 1) + ")");
|
|
21718
22002
|
var app = [].slice.call(appWrap.children);
|
|
21719
|
-
var width = getElementWidth(td);
|
|
22003
|
+
var width = _this.parent.getElementWidth(td);
|
|
21720
22004
|
var left = td.offsetLeft;
|
|
21721
22005
|
if (_this.parent.enableRtl) {
|
|
21722
22006
|
var right_1 = conTable_1.offsetWidth - left - td.offsetWidth;
|
|
@@ -22051,24 +22335,24 @@ var YearEvent = /** @__PURE__ @class */ (function (_super) {
|
|
|
22051
22335
|
return YearEvent;
|
|
22052
22336
|
}(TimelineEvent));
|
|
22053
22337
|
|
|
22054
|
-
var __extends$h = (undefined && undefined.__extends) || (function () {
|
|
22055
|
-
var extendStatics = function (d, b) {
|
|
22056
|
-
extendStatics = Object.setPrototypeOf ||
|
|
22057
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
22058
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
22059
|
-
return extendStatics(d, b);
|
|
22060
|
-
};
|
|
22061
|
-
return function (d, b) {
|
|
22062
|
-
extendStatics(d, b);
|
|
22063
|
-
function __() { this.constructor = d; }
|
|
22064
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
22065
|
-
};
|
|
22066
|
-
})();
|
|
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
|
+
})();
|
|
22067
22351
|
var MINUTES_PER_DAY = 1440;
|
|
22068
22352
|
/**
|
|
22069
22353
|
* Schedule events drag actions
|
|
22070
22354
|
*/
|
|
22071
|
-
var DragAndDrop = /** @
|
|
22355
|
+
var DragAndDrop = /** @class */ (function (_super) {
|
|
22072
22356
|
__extends$h(DragAndDrop, _super);
|
|
22073
22357
|
function DragAndDrop() {
|
|
22074
22358
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -22091,14 +22375,19 @@ var DragAndDrop = /** @__PURE__ @class */ (function (_super) {
|
|
|
22091
22375
|
_this.isAllDayTarget = false;
|
|
22092
22376
|
_this.targetTd = null;
|
|
22093
22377
|
_this.isCursorAhead = false;
|
|
22378
|
+
_this.enableCurrentViewDrag = false;
|
|
22379
|
+
_this.isPreventMultiDrag = false;
|
|
22380
|
+
_this.slotsUptoCursor = -1;
|
|
22381
|
+
_this.eleTop = 0;
|
|
22094
22382
|
return _this;
|
|
22095
22383
|
}
|
|
22096
22384
|
DragAndDrop.prototype.wireDragEvent = function (element) {
|
|
22385
|
+
var isVerticalView = ['Day', 'Week', 'WorkWeek'].indexOf(this.parent.currentView) > -1;
|
|
22097
22386
|
new Draggable(element, {
|
|
22098
22387
|
abort: '.' + EVENT_RESIZE_CLASS,
|
|
22099
22388
|
clone: true,
|
|
22100
22389
|
isDragScroll: true,
|
|
22101
|
-
enableTailMode: (this.parent.eventDragArea) ? true : false,
|
|
22390
|
+
enableTailMode: (this.parent.eventDragArea || isVerticalView) ? true : false,
|
|
22102
22391
|
cursorAt: (this.parent.eventDragArea) ? { left: -20, top: -20 } : { left: 0, top: 0 },
|
|
22103
22392
|
dragArea: this.dragArea,
|
|
22104
22393
|
dragStart: this.dragStart.bind(this),
|
|
@@ -22122,6 +22411,8 @@ var DragAndDrop = /** @__PURE__ @class */ (function (_super) {
|
|
|
22122
22411
|
}
|
|
22123
22412
|
this.setDragActionDefaultValues();
|
|
22124
22413
|
this.actionObj.element = e.element;
|
|
22414
|
+
this.eleTop = parseFloat(this.actionObj.element.style.top);
|
|
22415
|
+
this.slotsUptoCursor = -1;
|
|
22125
22416
|
this.actionObj.action = 'drag';
|
|
22126
22417
|
var elements = [];
|
|
22127
22418
|
if (!this.parent.allowMultiDrag || isNullOrUndefined(this.parent.selectedElements) || this.parent.selectedElements.length === 0 ||
|
|
@@ -22200,12 +22491,21 @@ var DragAndDrop = /** @__PURE__ @class */ (function (_super) {
|
|
|
22200
22491
|
}
|
|
22201
22492
|
var top_1 = parseInt(e.top, 10);
|
|
22202
22493
|
top_1 = top_1 < 0 ? 0 : top_1;
|
|
22203
|
-
|
|
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);
|
|
22204
22501
|
var scrollHeight = this.parent.element.querySelector('.e-content-wrap').scrollHeight;
|
|
22205
22502
|
var cloneBottom = parseInt(topValue, 10) + this.actionObj.clone.offsetHeight;
|
|
22206
22503
|
if (cloneBottom > scrollHeight) {
|
|
22207
22504
|
topValue = (parseInt(topValue, 10) - (cloneBottom - scrollHeight)) + 'px';
|
|
22208
22505
|
}
|
|
22506
|
+
if (this.isPreventMultiDrag) {
|
|
22507
|
+
topValue = formatUnit(this.actionObj.clone.offsetTop);
|
|
22508
|
+
}
|
|
22209
22509
|
}
|
|
22210
22510
|
return { left: leftValue, top: topValue };
|
|
22211
22511
|
};
|
|
@@ -22257,6 +22557,7 @@ var DragAndDrop = /** @__PURE__ @class */ (function (_super) {
|
|
|
22257
22557
|
_this.actionObj.interval = dragEventArgs.interval;
|
|
22258
22558
|
_this.actionObj.navigation = dragEventArgs.navigation;
|
|
22259
22559
|
_this.actionObj.scroll = dragEventArgs.scroll;
|
|
22560
|
+
_this.enableCurrentViewDrag = dragArgs.dragWithinRange && !dragArgs.navigation.enable && _this.parent.allowMultiDrag;
|
|
22260
22561
|
_this.actionObj.excludeSelectors = dragEventArgs.excludeSelectors;
|
|
22261
22562
|
var viewElement = _this.parent.element.querySelector('.' + CONTENT_WRAP_CLASS);
|
|
22262
22563
|
_this.scrollArgs = { element: viewElement, width: viewElement.scrollWidth, height: viewElement.scrollHeight };
|
|
@@ -22417,6 +22718,7 @@ var DragAndDrop = /** @__PURE__ @class */ (function (_super) {
|
|
|
22417
22718
|
DragAndDrop.prototype.dragStop = function (e) {
|
|
22418
22719
|
var _this = this;
|
|
22419
22720
|
this.isCursorAhead = false;
|
|
22721
|
+
this.isPreventMultiDrag = false;
|
|
22420
22722
|
this.removeCloneElementClasses();
|
|
22421
22723
|
this.removeCloneElement();
|
|
22422
22724
|
clearInterval(this.actionObj.navigationInterval);
|
|
@@ -22485,7 +22787,7 @@ var DragAndDrop = /** @__PURE__ @class */ (function (_super) {
|
|
|
22485
22787
|
this.timelineEventModule.cellWidth = this.actionObj.cellWidth;
|
|
22486
22788
|
this.timelineEventModule.getSlotDates();
|
|
22487
22789
|
this.actionObj.cellWidth = this.isHeaderRows ? this.timelineEventModule.cellWidth :
|
|
22488
|
-
getElementWidth(this.parent.element.querySelector('.' + WORK_CELLS_CLASS));
|
|
22790
|
+
this.parent.getElementWidth(this.parent.element.querySelector('.' + WORK_CELLS_CLASS));
|
|
22489
22791
|
this.calculateTimelineTime(e);
|
|
22490
22792
|
}
|
|
22491
22793
|
else {
|
|
@@ -22630,7 +22932,7 @@ var DragAndDrop = /** @__PURE__ @class */ (function (_super) {
|
|
|
22630
22932
|
(dragArea.scrollTop + dragArea.offsetHeight - this.actionObj.clone.offsetHeight + window.pageYOffset) +
|
|
22631
22933
|
(this.actionObj.clone.offsetHeight - this.heightUptoCursorPoint);
|
|
22632
22934
|
offsetTop = Math.round(offsetTop / this.actionObj.cellHeight) * this.actionObj.cellHeight;
|
|
22633
|
-
if (dragArea.scrollTop > 0) {
|
|
22935
|
+
if (dragArea.scrollTop > 0 && offsetTop < dragArea.scrollHeight) {
|
|
22634
22936
|
this.actionObj.clone.style.top = formatUnit(offsetTop);
|
|
22635
22937
|
}
|
|
22636
22938
|
}
|
|
@@ -22662,7 +22964,9 @@ var DragAndDrop = /** @__PURE__ @class */ (function (_super) {
|
|
|
22662
22964
|
var dragStart;
|
|
22663
22965
|
var dragEnd;
|
|
22664
22966
|
if (this.parent.activeViewOptions.timeScale.enable && !this.isAllDayDrag) {
|
|
22665
|
-
this.
|
|
22967
|
+
if (!this.enableCurrentViewDrag || this.multiData.length === 0) {
|
|
22968
|
+
this.appendCloneElement(this.getEventWrapper(colIndex));
|
|
22969
|
+
}
|
|
22666
22970
|
dragStart = this.parent.getDateFromElement(td);
|
|
22667
22971
|
dragStart.setMinutes(dragStart.getMinutes() + (diffInMinutes / heightPerMinute));
|
|
22668
22972
|
dragEnd = new Date(dragStart.getTime());
|
|
@@ -22719,18 +23023,34 @@ var DragAndDrop = /** @__PURE__ @class */ (function (_super) {
|
|
|
22719
23023
|
this.startTime = eventObj_1[this.parent.eventFields.startTime].getTime();
|
|
22720
23024
|
}
|
|
22721
23025
|
var startTimeDiff = event[this.parent.eventFields.startTime].getTime() - this.startTime;
|
|
22722
|
-
|
|
22723
|
-
this.
|
|
22724
|
-
|
|
22725
|
-
|
|
22726
|
-
|
|
22727
|
-
var
|
|
22728
|
-
|
|
22729
|
-
|
|
22730
|
-
|
|
22731
|
-
|
|
22732
|
-
|
|
22733
|
-
|
|
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
|
+
}
|
|
22734
23054
|
}
|
|
22735
23055
|
}
|
|
22736
23056
|
}
|
|
@@ -22860,7 +23180,7 @@ var DragAndDrop = /** @__PURE__ @class */ (function (_super) {
|
|
|
22860
23180
|
var appHeight = this.parent.activeViewOptions.timeScale.enable ? this.verticalEvent.getHeight(eStart, eEnd) :
|
|
22861
23181
|
this.actionObj.element.offsetHeight;
|
|
22862
23182
|
var topValue = this.parent.activeViewOptions.timeScale.enable ?
|
|
22863
|
-
this.verticalEvent.getTopValue(eStart
|
|
23183
|
+
this.verticalEvent.getTopValue(eStart) : this.actionObj.element.offsetTop;
|
|
22864
23184
|
if (isNullOrUndefined(index)) {
|
|
22865
23185
|
if (i === 0) {
|
|
22866
23186
|
this.actionObj.clone.style.top = formatUnit(topValue);
|
|
@@ -22948,6 +23268,9 @@ var DragAndDrop = /** @__PURE__ @class */ (function (_super) {
|
|
|
22948
23268
|
};
|
|
22949
23269
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
22950
23270
|
DragAndDrop.prototype.swapDragging = function (e) {
|
|
23271
|
+
if (this.isPreventMultiDrag) {
|
|
23272
|
+
return;
|
|
23273
|
+
}
|
|
22951
23274
|
var colIndex = !isNullOrUndefined(closest(this.actionObj.target, 'td')) && closest(this.actionObj.target, 'td').cellIndex;
|
|
22952
23275
|
if (closest(this.actionObj.target, '.' + DATE_HEADER_WRAP_CLASS) &&
|
|
22953
23276
|
!closest(this.actionObj.clone, '.' + ALLDAY_APPOINTMENT_WRAPPER_CLASS)) {
|
|
@@ -23073,7 +23396,7 @@ var DragAndDrop = /** @__PURE__ @class */ (function (_super) {
|
|
|
23073
23396
|
getUniversalTime(eventObj[this.parent.eventFields.startTime]);
|
|
23074
23397
|
var offsetLeft = this.parent.enableRtl ? Math.abs(this.actionObj.clone.offsetLeft) - this.actionObj.clone.offsetWidth :
|
|
23075
23398
|
parseInt(this.actionObj.clone.style.left, 10);
|
|
23076
|
-
offsetLeft = Math.
|
|
23399
|
+
offsetLeft = Math.round(offsetLeft / this.actionObj.cellWidth) * this.actionObj.cellWidth;
|
|
23077
23400
|
var rightOffset;
|
|
23078
23401
|
if (this.parent.enableRtl) {
|
|
23079
23402
|
rightOffset = Math.abs(parseInt(this.actionObj.clone.style.right, 10));
|
|
@@ -23259,7 +23582,7 @@ var DragAndDrop = /** @__PURE__ @class */ (function (_super) {
|
|
|
23259
23582
|
return 0;
|
|
23260
23583
|
};
|
|
23261
23584
|
DragAndDrop.prototype.getColumnIndex = function (offsetLeft) {
|
|
23262
|
-
var index = Math.
|
|
23585
|
+
var index = Math.round(offsetLeft / this.actionObj.cellWidth);
|
|
23263
23586
|
if (this.isHeaderRows) {
|
|
23264
23587
|
return index;
|
|
23265
23588
|
}
|
|
@@ -23304,7 +23627,7 @@ var DragAndDrop = /** @__PURE__ @class */ (function (_super) {
|
|
|
23304
23627
|
~~(dragArea.querySelector('table').offsetHeight / trCollection.length) : this.actionObj.cellHeight;
|
|
23305
23628
|
var rowIndex = Math.floor(Math.floor((this.actionObj.Y +
|
|
23306
23629
|
(dragArea.scrollTop - translateY - (window.scrollY || window.pageYOffset))) -
|
|
23307
|
-
getElementTop(dragArea)) / rowHeight);
|
|
23630
|
+
getElementTop(dragArea, this.parent.uiStateValues.isTransformed)) / rowHeight);
|
|
23308
23631
|
rowIndex = (rowIndex < 0) ? 0 : (rowIndex > trCollection.length - 1) ? trCollection.length - 1 : rowIndex;
|
|
23309
23632
|
this.actionObj.index = rowIndex;
|
|
23310
23633
|
var eventContainer = this.parent.element.querySelectorAll('.e-appointment-container:not(.e-hidden)').item(rowIndex);
|
|
@@ -23320,7 +23643,7 @@ var DragAndDrop = /** @__PURE__ @class */ (function (_super) {
|
|
|
23320
23643
|
if (!isNullOrUndefined(this.parent.eventDragArea)) {
|
|
23321
23644
|
return;
|
|
23322
23645
|
}
|
|
23323
|
-
var top = getElementHeight(trCollection[parseInt(rowIndex.toString(), 10)]) * rowIndex;
|
|
23646
|
+
var top = this.parent.getElementHeight(trCollection[parseInt(rowIndex.toString(), 10)]) * rowIndex;
|
|
23324
23647
|
if (this.parent.rowAutoHeight) {
|
|
23325
23648
|
var cursorElement = this.getCursorElement(e);
|
|
23326
23649
|
if (cursorElement) {
|
|
@@ -23397,7 +23720,7 @@ var DragAndDrop = /** @__PURE__ @class */ (function (_super) {
|
|
|
23397
23720
|
/**
|
|
23398
23721
|
* view base
|
|
23399
23722
|
*/
|
|
23400
|
-
var ViewBase = /** @
|
|
23723
|
+
var ViewBase = /** @class */ (function () {
|
|
23401
23724
|
/**
|
|
23402
23725
|
* Constructor
|
|
23403
23726
|
*
|
|
@@ -23656,6 +23979,10 @@ var ViewBase = /** @__PURE__ @class */ (function () {
|
|
|
23656
23979
|
}
|
|
23657
23980
|
startHour.setMilliseconds(0);
|
|
23658
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
|
+
}
|
|
23659
23986
|
return !(getDateInMs(date) < getDateInMs(startHour) || getDateInMs(date) >= getDateInMs(endHour) ||
|
|
23660
23987
|
!this.isWorkDay(date, workDays));
|
|
23661
23988
|
};
|
|
@@ -23885,7 +24212,7 @@ var ViewBase = /** @__PURE__ @class */ (function () {
|
|
|
23885
24212
|
if (this.isTimelineView()) {
|
|
23886
24213
|
var colElements = this.getColElements();
|
|
23887
24214
|
var contentBody = this.element.querySelector('.' + CONTENT_TABLE_CLASS + ' tbody');
|
|
23888
|
-
var colWidth_1 = (getElementWidth(contentBody) / (colElements.length / 2));
|
|
24215
|
+
var colWidth_1 = (this.parent.getElementWidth(contentBody) / (colElements.length / 2));
|
|
23889
24216
|
if (content.offsetHeight !== content.clientHeight) {
|
|
23890
24217
|
var resourceColumn = this.parent.element.querySelector('.' + RESOURCE_COLUMN_WRAP_CLASS);
|
|
23891
24218
|
if (!isNullOrUndefined(resourceColumn) && resourceColumn.offsetHeight !== content.clientHeight) {
|
|
@@ -24017,6 +24344,15 @@ var ViewBase = /** @__PURE__ @class */ (function () {
|
|
|
24017
24344
|
this.parent.resourceBase.expandedResources = this.colLevels[this.colLevels.length - 1];
|
|
24018
24345
|
}
|
|
24019
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
|
+
};
|
|
24020
24356
|
ViewBase.prototype.destroy = function () {
|
|
24021
24357
|
if (this.element && this.element.parentNode) {
|
|
24022
24358
|
remove(this.element);
|
|
@@ -24028,23 +24364,23 @@ var ViewBase = /** @__PURE__ @class */ (function () {
|
|
|
24028
24364
|
return ViewBase;
|
|
24029
24365
|
}());
|
|
24030
24366
|
|
|
24031
|
-
var __extends$i = (undefined && undefined.__extends) || (function () {
|
|
24032
|
-
var extendStatics = function (d, b) {
|
|
24033
|
-
extendStatics = Object.setPrototypeOf ||
|
|
24034
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
24035
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
24036
|
-
return extendStatics(d, b);
|
|
24037
|
-
};
|
|
24038
|
-
return function (d, b) {
|
|
24039
|
-
extendStatics(d, b);
|
|
24040
|
-
function __() { this.constructor = d; }
|
|
24041
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
24042
|
-
};
|
|
24043
|
-
})();
|
|
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
|
+
})();
|
|
24044
24380
|
/**
|
|
24045
24381
|
* vertical view
|
|
24046
24382
|
*/
|
|
24047
|
-
var VerticalView = /** @
|
|
24383
|
+
var VerticalView = /** @class */ (function (_super) {
|
|
24048
24384
|
__extends$i(VerticalView, _super);
|
|
24049
24385
|
function VerticalView(parent) {
|
|
24050
24386
|
var _this = _super.call(this, parent) || this;
|
|
@@ -24267,11 +24603,8 @@ var VerticalView = /** @__PURE__ @class */ (function (_super) {
|
|
|
24267
24603
|
var currentDate = this.parent.getCurrentTime();
|
|
24268
24604
|
if (this.parent.showTimeIndicator && this.isWorkHourRange(currentDate)) {
|
|
24269
24605
|
var currentDateIndex = this.getCurrentTimeIndicatorIndex();
|
|
24270
|
-
if (currentDateIndex.length > 0) {
|
|
24271
|
-
|
|
24272
|
-
if (workCells.length > 0) {
|
|
24273
|
-
this.changeCurrentTimePosition();
|
|
24274
|
-
}
|
|
24606
|
+
if (currentDateIndex.length > 0 && !isNullOrUndefined(this.element.querySelector('.' + WORK_CELLS_CLASS))) {
|
|
24607
|
+
this.changeCurrentTimePosition();
|
|
24275
24608
|
if (isNullOrUndefined(this.currentTimeIndicatorTimer)) {
|
|
24276
24609
|
var interval = MS_PER_MINUTE - ((currentDate.getSeconds() * 1000) + currentDate.getMilliseconds());
|
|
24277
24610
|
if (interval <= (MS_PER_MINUTE - 1000)) {
|
|
@@ -24373,7 +24706,11 @@ var VerticalView = /** @__PURE__ @class */ (function (_super) {
|
|
|
24373
24706
|
}
|
|
24374
24707
|
for (var _i = 0, currentDateIndex_1 = currentDateIndex; _i < currentDateIndex_1.length; _i++) {
|
|
24375
24708
|
var day = currentDateIndex_1[_i];
|
|
24376
|
-
curTimeWrap
|
|
24709
|
+
if (curTimeWrap.length > day) {
|
|
24710
|
+
curTimeWrap[parseInt(day.toString(), 10)].appendChild(createElement('div', {
|
|
24711
|
+
className: CURRENT_TIMELINE_CLASS, styles: 'top:' + topInPx
|
|
24712
|
+
}));
|
|
24713
|
+
}
|
|
24377
24714
|
}
|
|
24378
24715
|
var currentTimeEle = createElement('div', {
|
|
24379
24716
|
innerHTML: this.parent.getTimeString(this.parent.getCurrentTime()),
|
|
@@ -24390,13 +24727,13 @@ var VerticalView = /** @__PURE__ @class */ (function (_super) {
|
|
|
24390
24727
|
}
|
|
24391
24728
|
};
|
|
24392
24729
|
VerticalView.prototype.getTopFromDateTime = function (date) {
|
|
24393
|
-
var startHour = this.
|
|
24730
|
+
var startHour = this.getStartEndHours(this.parent.activeViewOptions.startHour);
|
|
24394
24731
|
var diffInMinutes = ((date.getHours() - startHour.getHours()) * 60) + (date.getMinutes() - startHour.getMinutes());
|
|
24395
24732
|
return (diffInMinutes * this.getWorkCellHeight() * this.parent.activeViewOptions.timeScale.slotCount) /
|
|
24396
24733
|
this.parent.activeViewOptions.timeScale.interval;
|
|
24397
24734
|
};
|
|
24398
24735
|
VerticalView.prototype.getWorkCellHeight = function () {
|
|
24399
|
-
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));
|
|
24400
24737
|
};
|
|
24401
24738
|
VerticalView.prototype.getTdContent = function (date, type, groupIndex) {
|
|
24402
24739
|
var cntEle;
|
|
@@ -24699,12 +25036,21 @@ var VerticalView = /** @__PURE__ @class */ (function (_super) {
|
|
|
24699
25036
|
var rows = [];
|
|
24700
25037
|
var tr = createElement('tr');
|
|
24701
25038
|
var td = createElement('td', { attrs: { 'aria-selected': 'false' } });
|
|
25039
|
+
var existingGroupIndices = this.getGroupIndices();
|
|
24702
25040
|
var handler = function (r) {
|
|
24703
25041
|
var ntr = tr.cloneNode();
|
|
24704
25042
|
for (var _i = 0, _a = _this.colLevels[_this.colLevels.length - 1]; _i < _a.length; _i++) {
|
|
24705
25043
|
var tdData = _a[_i];
|
|
24706
|
-
var
|
|
24707
|
-
|
|
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
|
+
}
|
|
24708
25054
|
}
|
|
24709
25055
|
rows.push(ntr);
|
|
24710
25056
|
return r;
|
|
@@ -24892,23 +25238,23 @@ var VerticalView = /** @__PURE__ @class */ (function (_super) {
|
|
|
24892
25238
|
return VerticalView;
|
|
24893
25239
|
}(ViewBase));
|
|
24894
25240
|
|
|
24895
|
-
var __extends$j = (undefined && undefined.__extends) || (function () {
|
|
24896
|
-
var extendStatics = function (d, b) {
|
|
24897
|
-
extendStatics = Object.setPrototypeOf ||
|
|
24898
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
24899
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
24900
|
-
return extendStatics(d, b);
|
|
24901
|
-
};
|
|
24902
|
-
return function (d, b) {
|
|
24903
|
-
extendStatics(d, b);
|
|
24904
|
-
function __() { this.constructor = d; }
|
|
24905
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
24906
|
-
};
|
|
24907
|
-
})();
|
|
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
|
+
})();
|
|
24908
25254
|
/**
|
|
24909
25255
|
* day view
|
|
24910
25256
|
*/
|
|
24911
|
-
var Day = /** @
|
|
25257
|
+
var Day = /** @class */ (function (_super) {
|
|
24912
25258
|
__extends$j(Day, _super);
|
|
24913
25259
|
/**
|
|
24914
25260
|
* Constructor for day view
|
|
@@ -24931,23 +25277,23 @@ var Day = /** @__PURE__ @class */ (function (_super) {
|
|
|
24931
25277
|
return Day;
|
|
24932
25278
|
}(VerticalView));
|
|
24933
25279
|
|
|
24934
|
-
var __extends$k = (undefined && undefined.__extends) || (function () {
|
|
24935
|
-
var extendStatics = function (d, b) {
|
|
24936
|
-
extendStatics = Object.setPrototypeOf ||
|
|
24937
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
24938
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
24939
|
-
return extendStatics(d, b);
|
|
24940
|
-
};
|
|
24941
|
-
return function (d, b) {
|
|
24942
|
-
extendStatics(d, b);
|
|
24943
|
-
function __() { this.constructor = d; }
|
|
24944
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
24945
|
-
};
|
|
24946
|
-
})();
|
|
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
|
+
})();
|
|
24947
25293
|
/**
|
|
24948
25294
|
* week view
|
|
24949
25295
|
*/
|
|
24950
|
-
var Week = /** @
|
|
25296
|
+
var Week = /** @class */ (function (_super) {
|
|
24951
25297
|
__extends$k(Week, _super);
|
|
24952
25298
|
/**
|
|
24953
25299
|
* Constructor for week view
|
|
@@ -24976,23 +25322,23 @@ var Week = /** @__PURE__ @class */ (function (_super) {
|
|
|
24976
25322
|
return Week;
|
|
24977
25323
|
}(VerticalView));
|
|
24978
25324
|
|
|
24979
|
-
var __extends$l = (undefined && undefined.__extends) || (function () {
|
|
24980
|
-
var extendStatics = function (d, b) {
|
|
24981
|
-
extendStatics = Object.setPrototypeOf ||
|
|
24982
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
24983
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
24984
|
-
return extendStatics(d, b);
|
|
24985
|
-
};
|
|
24986
|
-
return function (d, b) {
|
|
24987
|
-
extendStatics(d, b);
|
|
24988
|
-
function __() { this.constructor = d; }
|
|
24989
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
24990
|
-
};
|
|
24991
|
-
})();
|
|
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
|
+
})();
|
|
24992
25338
|
/**
|
|
24993
25339
|
* work week view
|
|
24994
25340
|
*/
|
|
24995
|
-
var WorkWeek = /** @
|
|
25341
|
+
var WorkWeek = /** @class */ (function (_super) {
|
|
24996
25342
|
__extends$l(WorkWeek, _super);
|
|
24997
25343
|
/**
|
|
24998
25344
|
* Constructor for work week view
|
|
@@ -25021,23 +25367,23 @@ var WorkWeek = /** @__PURE__ @class */ (function (_super) {
|
|
|
25021
25367
|
return WorkWeek;
|
|
25022
25368
|
}(VerticalView));
|
|
25023
25369
|
|
|
25024
|
-
var __extends$m = (undefined && undefined.__extends) || (function () {
|
|
25025
|
-
var extendStatics = function (d, b) {
|
|
25026
|
-
extendStatics = Object.setPrototypeOf ||
|
|
25027
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
25028
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
25029
|
-
return extendStatics(d, b);
|
|
25030
|
-
};
|
|
25031
|
-
return function (d, b) {
|
|
25032
|
-
extendStatics(d, b);
|
|
25033
|
-
function __() { this.constructor = d; }
|
|
25034
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
25035
|
-
};
|
|
25036
|
-
})();
|
|
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
|
+
})();
|
|
25037
25383
|
/**
|
|
25038
25384
|
* month view
|
|
25039
25385
|
*/
|
|
25040
|
-
var Month = /** @
|
|
25386
|
+
var Month = /** @class */ (function (_super) {
|
|
25041
25387
|
__extends$m(Month, _super);
|
|
25042
25388
|
function Month(parent) {
|
|
25043
25389
|
var _this = _super.call(this, parent) || this;
|
|
@@ -25499,7 +25845,13 @@ var Month = /** @__PURE__ @class */ (function (_super) {
|
|
|
25499
25845
|
var tr = createElement('tr');
|
|
25500
25846
|
var td = createElement('td', { attrs: { 'aria-selected': 'false' } });
|
|
25501
25847
|
var slotDatas = this.getContentSlots();
|
|
25848
|
+
var isTimeline = this.parent.currentView === 'TimelineMonth';
|
|
25849
|
+
var existingGroupIndices = isTimeline ? this.getGroupIndices() : [];
|
|
25502
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
|
+
}
|
|
25503
25855
|
var ntr = tr.cloneNode();
|
|
25504
25856
|
for (var col = 0; col < slotDatas[parseInt(row.toString(), 10)].length; col++) {
|
|
25505
25857
|
var ntd = this.createContentTd(slotDatas[parseInt(row.toString(), 10)][parseInt(col.toString(), 10)], td);
|
|
@@ -25736,23 +26088,23 @@ var Month = /** @__PURE__ @class */ (function (_super) {
|
|
|
25736
26088
|
return Month;
|
|
25737
26089
|
}(ViewBase));
|
|
25738
26090
|
|
|
25739
|
-
var __extends$n = (undefined && undefined.__extends) || (function () {
|
|
25740
|
-
var extendStatics = function (d, b) {
|
|
25741
|
-
extendStatics = Object.setPrototypeOf ||
|
|
25742
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
25743
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
25744
|
-
return extendStatics(d, b);
|
|
25745
|
-
};
|
|
25746
|
-
return function (d, b) {
|
|
25747
|
-
extendStatics(d, b);
|
|
25748
|
-
function __() { this.constructor = d; }
|
|
25749
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
25750
|
-
};
|
|
25751
|
-
})();
|
|
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
|
+
})();
|
|
25752
26104
|
/**
|
|
25753
26105
|
* year view
|
|
25754
26106
|
*/
|
|
25755
|
-
var Year = /** @
|
|
26107
|
+
var Year = /** @class */ (function (_super) {
|
|
25756
26108
|
__extends$n(Year, _super);
|
|
25757
26109
|
function Year(parent) {
|
|
25758
26110
|
var _this = _super.call(this, parent) || this;
|
|
@@ -25844,7 +26196,7 @@ var Year = /** @__PURE__ @class */ (function (_super) {
|
|
|
25844
26196
|
this.setAriaAttributes(contentTable);
|
|
25845
26197
|
var thead = createElement('thead', { className: 'e-week-header' });
|
|
25846
26198
|
var tr = createElement('tr');
|
|
25847
|
-
var currentWeek = getWeekFirstDate(firstDateOfMonth(currentDate), this.parent.firstDayOfWeek);
|
|
26199
|
+
var currentWeek = getWeekFirstDate(firstDateOfMonth(currentDate), this.parent.activeViewOptions.firstDayOfWeek);
|
|
25848
26200
|
if (this.parent.activeViewOptions.showWeekNumber) {
|
|
25849
26201
|
tr.appendChild(createElement('th'));
|
|
25850
26202
|
}
|
|
@@ -25973,7 +26325,7 @@ var Year = /** @__PURE__ @class */ (function (_super) {
|
|
|
25973
26325
|
return dateCol;
|
|
25974
26326
|
};
|
|
25975
26327
|
Year.prototype.getMonthDates = function (date) {
|
|
25976
|
-
var startDate = getWeekFirstDate(firstDateOfMonth(date), this.parent.firstDayOfWeek);
|
|
26328
|
+
var startDate = getWeekFirstDate(firstDateOfMonth(date), this.parent.activeViewOptions.firstDayOfWeek);
|
|
25977
26329
|
var endDate = addDays(new Date(+startDate), (6 * WEEK_LENGTH));
|
|
25978
26330
|
var dateCollection = [];
|
|
25979
26331
|
for (var start = startDate; start.getTime() < endDate.getTime(); start = addDays(start, 1)) {
|
|
@@ -26109,10 +26461,10 @@ var Year = /** @__PURE__ @class */ (function (_super) {
|
|
|
26109
26461
|
return addDays(addMonths(this.getStartDate(), this.parent.monthsCount), -1);
|
|
26110
26462
|
};
|
|
26111
26463
|
Year.prototype.startDate = function () {
|
|
26112
|
-
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();
|
|
26113
26465
|
};
|
|
26114
26466
|
Year.prototype.endDate = function () {
|
|
26115
|
-
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) :
|
|
26116
26468
|
addDays(this.getEndDate(), 1);
|
|
26117
26469
|
};
|
|
26118
26470
|
Year.prototype.getEndDateFromStartDate = function (start) {
|
|
@@ -26180,20 +26532,20 @@ var Year = /** @__PURE__ @class */ (function (_super) {
|
|
|
26180
26532
|
return Year;
|
|
26181
26533
|
}(ViewBase));
|
|
26182
26534
|
|
|
26183
|
-
var __extends$o = (undefined && undefined.__extends) || (function () {
|
|
26184
|
-
var extendStatics = function (d, b) {
|
|
26185
|
-
extendStatics = Object.setPrototypeOf ||
|
|
26186
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
26187
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
26188
|
-
return extendStatics(d, b);
|
|
26189
|
-
};
|
|
26190
|
-
return function (d, b) {
|
|
26191
|
-
extendStatics(d, b);
|
|
26192
|
-
function __() { this.constructor = d; }
|
|
26193
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
26194
|
-
};
|
|
26195
|
-
})();
|
|
26196
|
-
var AgendaBase = /** @
|
|
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) {
|
|
26197
26549
|
__extends$o(AgendaBase, _super);
|
|
26198
26550
|
function AgendaBase(parent) {
|
|
26199
26551
|
return _super.call(this, parent) || this;
|
|
@@ -26243,7 +26595,8 @@ var AgendaBase = /** @__PURE__ @class */ (function (_super) {
|
|
|
26243
26595
|
var scheduleId = _this.parent.element.id + '_';
|
|
26244
26596
|
var viewName = _this.parent.activeViewOptions.eventTemplateName;
|
|
26245
26597
|
var templateId = scheduleId + viewName + 'eventTemplate';
|
|
26246
|
-
templateEle =
|
|
26598
|
+
templateEle =
|
|
26599
|
+
_this.parent.getAppointmentTemplate()(listData[parseInt(li.toString(), 10)], _this.parent, 'eventTemplate', templateId, false, undefined, undefined, _this.parent.root);
|
|
26247
26600
|
if (!isNullOrUndefined(listData[parseInt(li.toString(), 10)][fieldMapping.recurrenceRule])) {
|
|
26248
26601
|
var iconClass = (listData[parseInt(li.toString(), 10)][fieldMapping.id] ===
|
|
26249
26602
|
listData[parseInt(li.toString(), 10)][fieldMapping.recurrenceID]) ?
|
|
@@ -26590,23 +26943,23 @@ var AgendaBase = /** @__PURE__ @class */ (function (_super) {
|
|
|
26590
26943
|
return AgendaBase;
|
|
26591
26944
|
}(ViewBase));
|
|
26592
26945
|
|
|
26593
|
-
var __extends$p = (undefined && undefined.__extends) || (function () {
|
|
26594
|
-
var extendStatics = function (d, b) {
|
|
26595
|
-
extendStatics = Object.setPrototypeOf ||
|
|
26596
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
26597
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
26598
|
-
return extendStatics(d, b);
|
|
26599
|
-
};
|
|
26600
|
-
return function (d, b) {
|
|
26601
|
-
extendStatics(d, b);
|
|
26602
|
-
function __() { this.constructor = d; }
|
|
26603
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
26604
|
-
};
|
|
26605
|
-
})();
|
|
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
|
+
})();
|
|
26606
26959
|
/**
|
|
26607
26960
|
* agenda view
|
|
26608
26961
|
*/
|
|
26609
|
-
var Agenda = /** @
|
|
26962
|
+
var Agenda = /** @class */ (function (_super) {
|
|
26610
26963
|
__extends$p(Agenda, _super);
|
|
26611
26964
|
function Agenda(parent) {
|
|
26612
26965
|
var _this = _super.call(this, parent) || this;
|
|
@@ -27083,23 +27436,23 @@ var Agenda = /** @__PURE__ @class */ (function (_super) {
|
|
|
27083
27436
|
return Agenda;
|
|
27084
27437
|
}(AgendaBase));
|
|
27085
27438
|
|
|
27086
|
-
var __extends$q = (undefined && undefined.__extends) || (function () {
|
|
27087
|
-
var extendStatics = function (d, b) {
|
|
27088
|
-
extendStatics = Object.setPrototypeOf ||
|
|
27089
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
27090
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
27091
|
-
return extendStatics(d, b);
|
|
27092
|
-
};
|
|
27093
|
-
return function (d, b) {
|
|
27094
|
-
extendStatics(d, b);
|
|
27095
|
-
function __() { this.constructor = d; }
|
|
27096
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
27097
|
-
};
|
|
27098
|
-
})();
|
|
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
|
+
})();
|
|
27099
27452
|
/**
|
|
27100
27453
|
* month agenda view
|
|
27101
27454
|
*/
|
|
27102
|
-
var MonthAgenda = /** @
|
|
27455
|
+
var MonthAgenda = /** @class */ (function (_super) {
|
|
27103
27456
|
__extends$q(MonthAgenda, _super);
|
|
27104
27457
|
function MonthAgenda(parent) {
|
|
27105
27458
|
var _this = _super.call(this, parent) || this;
|
|
@@ -27262,7 +27615,7 @@ var MonthAgenda = /** @__PURE__ @class */ (function (_super) {
|
|
|
27262
27615
|
/**
|
|
27263
27616
|
* timeline header rows
|
|
27264
27617
|
*/
|
|
27265
|
-
var TimelineHeaderRow = /** @
|
|
27618
|
+
var TimelineHeaderRow = /** @class */ (function () {
|
|
27266
27619
|
function TimelineHeaderRow(parent, renderDates) {
|
|
27267
27620
|
this.parent = parent;
|
|
27268
27621
|
this.renderDates = renderDates;
|
|
@@ -27294,7 +27647,7 @@ var TimelineHeaderRow = /** @__PURE__ @class */ (function () {
|
|
|
27294
27647
|
var jsDate = +new Date(1970, 0, 1);
|
|
27295
27648
|
var tzOffsetDiff = d.getTimezoneOffset() - new Date(1970, 0, 1).getTimezoneOffset();
|
|
27296
27649
|
var key = Math.ceil(((((+d - jsDate) - (tzOffsetDiff * 60 * 1000)) / MS_PER_DAY) + new Date(jsDate).getDay() + 1) / 7);
|
|
27297
|
-
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()) {
|
|
27298
27651
|
key = key - 1;
|
|
27299
27652
|
}
|
|
27300
27653
|
result[parseInt(key.toString(), 10)] = result[parseInt(key.toString(), 10)] || [];
|
|
@@ -27385,23 +27738,23 @@ var TimelineHeaderRow = /** @__PURE__ @class */ (function () {
|
|
|
27385
27738
|
return TimelineHeaderRow;
|
|
27386
27739
|
}());
|
|
27387
27740
|
|
|
27388
|
-
var __extends$r = (undefined && undefined.__extends) || (function () {
|
|
27389
|
-
var extendStatics = function (d, b) {
|
|
27390
|
-
extendStatics = Object.setPrototypeOf ||
|
|
27391
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
27392
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
27393
|
-
return extendStatics(d, b);
|
|
27394
|
-
};
|
|
27395
|
-
return function (d, b) {
|
|
27396
|
-
extendStatics(d, b);
|
|
27397
|
-
function __() { this.constructor = d; }
|
|
27398
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
27399
|
-
};
|
|
27400
|
-
})();
|
|
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
|
+
})();
|
|
27401
27754
|
/**
|
|
27402
27755
|
* timeline views
|
|
27403
27756
|
*/
|
|
27404
|
-
var TimelineViews = /** @
|
|
27757
|
+
var TimelineViews = /** @class */ (function (_super) {
|
|
27405
27758
|
__extends$r(TimelineViews, _super);
|
|
27406
27759
|
function TimelineViews(parent) {
|
|
27407
27760
|
var _this = _super.call(this, parent) || this;
|
|
@@ -27452,7 +27805,7 @@ var TimelineViews = /** @__PURE__ @class */ (function (_super) {
|
|
|
27452
27805
|
}
|
|
27453
27806
|
var scrollLeft;
|
|
27454
27807
|
if (isNullOrUndefined(hour) || !this.parent.activeViewOptions.timeScale.enable) {
|
|
27455
|
-
scrollLeft = index * getElementWidth(this.element.querySelector('.e-work-cells'));
|
|
27808
|
+
scrollLeft = index * this.parent.getElementWidth(this.element.querySelector('.e-work-cells'));
|
|
27456
27809
|
}
|
|
27457
27810
|
else {
|
|
27458
27811
|
scrollLeft = isNullOrUndefined(scrollDate) ? this.getLeftFromDateTime(null, date) :
|
|
@@ -27539,7 +27892,7 @@ var TimelineViews = /** @__PURE__ @class */ (function (_super) {
|
|
|
27539
27892
|
if (this.parent.activeView.colLevels[parseInt(index.toString(), 10)] &&
|
|
27540
27893
|
this.parent.activeView.colLevels[parseInt(index.toString(), 10)][0].colSpan) {
|
|
27541
27894
|
diffInDates = currentDateIndex[0] * this.parent.activeView.colLevels[parseInt(index.toString(), 10)][0].colSpan *
|
|
27542
|
-
getElementWidth(this.element.querySelector('.e-work-cells'));
|
|
27895
|
+
this.parent.getElementWidth(this.element.querySelector('.e-work-cells'));
|
|
27543
27896
|
}
|
|
27544
27897
|
else {
|
|
27545
27898
|
var endHour = this.getEndHour();
|
|
@@ -27549,8 +27902,8 @@ var TimelineViews = /** @__PURE__ @class */ (function (_super) {
|
|
|
27549
27902
|
}
|
|
27550
27903
|
}
|
|
27551
27904
|
}
|
|
27552
|
-
return diffInDates + ((diffInMinutes * getElementWidth(this.element.querySelector('.e-work-cells'))
|
|
27553
|
-
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);
|
|
27554
27907
|
};
|
|
27555
27908
|
TimelineViews.prototype.renderHeader = function () {
|
|
27556
27909
|
var tr = createElement('tr');
|
|
@@ -27617,7 +27970,12 @@ var TimelineViews = /** @__PURE__ @class */ (function (_super) {
|
|
|
27617
27970
|
var tr = createElement('tr');
|
|
27618
27971
|
var td = createElement('td', { attrs: { 'aria-selected': 'false' } });
|
|
27619
27972
|
var trCount = this.getRowCount();
|
|
27973
|
+
var existingGroupIndices = this.getGroupIndices();
|
|
27620
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
|
+
}
|
|
27621
27979
|
var ntr = tr.cloneNode();
|
|
27622
27980
|
for (var _i = 0, _a = this.colLevels[this.colLevels.length - 1]; _i < _a.length; _i++) {
|
|
27623
27981
|
var tdData = _a[_i];
|
|
@@ -27667,23 +28025,23 @@ var TimelineViews = /** @__PURE__ @class */ (function (_super) {
|
|
|
27667
28025
|
return TimelineViews;
|
|
27668
28026
|
}(VerticalView));
|
|
27669
28027
|
|
|
27670
|
-
var __extends$s = (undefined && undefined.__extends) || (function () {
|
|
27671
|
-
var extendStatics = function (d, b) {
|
|
27672
|
-
extendStatics = Object.setPrototypeOf ||
|
|
27673
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
27674
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
27675
|
-
return extendStatics(d, b);
|
|
27676
|
-
};
|
|
27677
|
-
return function (d, b) {
|
|
27678
|
-
extendStatics(d, b);
|
|
27679
|
-
function __() { this.constructor = d; }
|
|
27680
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
27681
|
-
};
|
|
27682
|
-
})();
|
|
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
|
+
})();
|
|
27683
28041
|
/**
|
|
27684
28042
|
* timeline month view
|
|
27685
28043
|
*/
|
|
27686
|
-
var TimelineMonth = /** @
|
|
28044
|
+
var TimelineMonth = /** @class */ (function (_super) {
|
|
27687
28045
|
__extends$s(TimelineMonth, _super);
|
|
27688
28046
|
function TimelineMonth(parent) {
|
|
27689
28047
|
var _this = _super.call(this, parent) || this;
|
|
@@ -27840,23 +28198,23 @@ var TimelineMonth = /** @__PURE__ @class */ (function (_super) {
|
|
|
27840
28198
|
return TimelineMonth;
|
|
27841
28199
|
}(Month));
|
|
27842
28200
|
|
|
27843
|
-
var __extends$t = (undefined && undefined.__extends) || (function () {
|
|
27844
|
-
var extendStatics = function (d, b) {
|
|
27845
|
-
extendStatics = Object.setPrototypeOf ||
|
|
27846
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
27847
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
27848
|
-
return extendStatics(d, b);
|
|
27849
|
-
};
|
|
27850
|
-
return function (d, b) {
|
|
27851
|
-
extendStatics(d, b);
|
|
27852
|
-
function __() { this.constructor = d; }
|
|
27853
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
27854
|
-
};
|
|
27855
|
-
})();
|
|
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
|
+
})();
|
|
27856
28214
|
/**
|
|
27857
28215
|
* timeline year view
|
|
27858
28216
|
*/
|
|
27859
|
-
var TimelineYear = /** @
|
|
28217
|
+
var TimelineYear = /** @class */ (function (_super) {
|
|
27860
28218
|
__extends$t(TimelineYear, _super);
|
|
27861
28219
|
function TimelineYear(parent) {
|
|
27862
28220
|
var _this = _super.call(this, parent) || this;
|
|
@@ -28137,13 +28495,17 @@ var TimelineYear = /** @__PURE__ @class */ (function (_super) {
|
|
|
28137
28495
|
TimelineYear.prototype.getContentRows = function () {
|
|
28138
28496
|
var tRow = [];
|
|
28139
28497
|
var monthCells = this.getMonths();
|
|
28498
|
+
var existingGroupIndices = this.getGroupIndices();
|
|
28140
28499
|
for (var row = 0; row < this.parent.resourceBase.renderedResources.length; row++) {
|
|
28141
|
-
var tr = createElement('tr');
|
|
28142
|
-
tRow.push(tr);
|
|
28143
28500
|
var resData = void 0;
|
|
28144
28501
|
if (this.parent.activeViewOptions.group.resources.length > 0 && !this.parent.uiStateValues.isGroupAdaptive) {
|
|
28145
28502
|
resData = this.parent.resourceBase.renderedResources[parseInt(row.toString(), 10)];
|
|
28503
|
+
if (existingGroupIndices.length > 0 && existingGroupIndices.indexOf(resData.groupIndex) > -1) {
|
|
28504
|
+
continue;
|
|
28505
|
+
}
|
|
28146
28506
|
}
|
|
28507
|
+
var tr = createElement('tr');
|
|
28508
|
+
tRow.push(tr);
|
|
28147
28509
|
var monthDate = new Date(this.parent.selectedDate.getFullYear(), monthCells[parseInt(row.toString(), 10)], 1);
|
|
28148
28510
|
var date = this.parent.calendarUtil.getMonthStartDate(new Date(monthDate.getTime()));
|
|
28149
28511
|
for (var month = 0; month < this.columnCount; month++) {
|
|
@@ -28313,7 +28675,7 @@ var TimelineYear = /** @__PURE__ @class */ (function (_super) {
|
|
|
28313
28675
|
/**
|
|
28314
28676
|
* ICalendar Export Module
|
|
28315
28677
|
*/
|
|
28316
|
-
var ICalendarExport = /** @
|
|
28678
|
+
var ICalendarExport = /** @class */ (function () {
|
|
28317
28679
|
function ICalendarExport(parent) {
|
|
28318
28680
|
this.parent = parent;
|
|
28319
28681
|
}
|
|
@@ -28462,7 +28824,7 @@ var ICalendarExport = /** @__PURE__ @class */ (function () {
|
|
|
28462
28824
|
/**
|
|
28463
28825
|
* ICalendar Import Module
|
|
28464
28826
|
*/
|
|
28465
|
-
var ICalendarImport = /** @
|
|
28827
|
+
var ICalendarImport = /** @class */ (function () {
|
|
28466
28828
|
function ICalendarImport(parent) {
|
|
28467
28829
|
this.allDay = false;
|
|
28468
28830
|
this.parent = parent;
|
|
@@ -28727,7 +29089,7 @@ var ICalendarImport = /** @__PURE__ @class */ (function () {
|
|
|
28727
29089
|
/**
|
|
28728
29090
|
* Excel Export Module
|
|
28729
29091
|
*/
|
|
28730
|
-
var ExcelExport = /** @
|
|
29092
|
+
var ExcelExport = /** @class */ (function () {
|
|
28731
29093
|
function ExcelExport(parent) {
|
|
28732
29094
|
this.parent = parent;
|
|
28733
29095
|
}
|
|
@@ -28800,7 +29162,7 @@ var ExcelExport = /** @__PURE__ @class */ (function () {
|
|
|
28800
29162
|
/**
|
|
28801
29163
|
* Print Module
|
|
28802
29164
|
*/
|
|
28803
|
-
var Print = /** @
|
|
29165
|
+
var Print = /** @class */ (function () {
|
|
28804
29166
|
function Print(parent) {
|
|
28805
29167
|
this.parent = parent;
|
|
28806
29168
|
}
|
|
@@ -28863,6 +29225,7 @@ var Print = /** @__PURE__ @class */ (function () {
|
|
|
28863
29225
|
Schedule.Inject(Day, Week, WorkWeek, Month, Agenda, MonthAgenda, TimelineViews, TimelineMonth, Year, TimelineYear);
|
|
28864
29226
|
this.printInstance = new Schedule(this.getPrintScheduleModel(printOptions));
|
|
28865
29227
|
this.printInstance.isPrinting = true;
|
|
29228
|
+
this.printInstance.registeredTemplate = this.parent.registeredTemplate;
|
|
28866
29229
|
this.printInstance.root = this.parent.root ? this.parent.root : this.parent;
|
|
28867
29230
|
this.printInstance.appendTo(element);
|
|
28868
29231
|
this.printInstance.on(print, this.contentReady, this);
|