@syncfusion/ej2-schedule 25.2.7 → 26.1.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.json +3 -2
- package/dist/ej2-schedule.min.js +2 -2
- package/dist/ej2-schedule.umd.min.js +2 -2
- package/dist/ej2-schedule.umd.min.js.map +1 -1
- package/dist/es6/ej2-schedule.es2015.js +331 -332
- package/dist/es6/ej2-schedule.es2015.js.map +1 -1
- package/dist/es6/ej2-schedule.es5.js +392 -407
- package/dist/es6/ej2-schedule.es5.js.map +1 -1
- package/dist/global/ej2-schedule.min.js +2 -2
- package/dist/global/ej2-schedule.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +17 -16
- package/src/recurrence-editor/date-generator.js +1 -0
- package/src/recurrence-editor/recurrence-editor.d.ts +8 -8
- package/src/recurrence-editor/recurrence-editor.js +1 -2
- package/src/schedule/actions/drag.js +2 -1
- package/src/schedule/actions/keyboard.js +1 -1
- package/src/schedule/actions/virtual-scroll.js +2 -1
- package/src/schedule/base/interface.js +0 -1
- package/src/schedule/base/schedule-model.d.ts +11 -11
- package/src/schedule/base/schedule.d.ts +11 -11
- package/src/schedule/base/schedule.js +22 -9
- package/src/schedule/base/util.js +1 -1
- package/src/schedule/event-renderer/event-base.js +5 -3
- package/src/schedule/event-renderer/timeline-view.js +4 -2
- package/src/schedule/event-renderer/year.js +2 -1
- package/src/schedule/exports/calendar-import.js +1 -2
- package/src/schedule/models/toolbar-model.d.ts +2 -2
- package/src/schedule/popups/event-window.js +1 -1
- package/src/schedule/renderer/header-renderer.js +6 -4
- package/src/schedule/renderer/vertical-view.js +3 -0
- package/src/schedule/renderer/view-base.js +8 -4
- package/styles/bootstrap-dark.css +236 -147
- package/styles/bootstrap-dark.scss +19 -2
- package/styles/bootstrap.css +237 -148
- package/styles/bootstrap.scss +19 -2
- package/styles/bootstrap4.css +239 -153
- package/styles/bootstrap4.scss +19 -2
- package/styles/bootstrap5-dark.css +229 -144
- package/styles/bootstrap5-dark.scss +19 -2
- package/styles/bootstrap5.css +229 -144
- package/styles/bootstrap5.scss +19 -2
- package/styles/fabric-dark.css +234 -146
- package/styles/fabric-dark.scss +19 -2
- package/styles/fabric.css +234 -146
- package/styles/fabric.scss +19 -2
- package/styles/fluent-dark.css +229 -142
- package/styles/fluent-dark.scss +19 -2
- package/styles/fluent.css +229 -142
- package/styles/fluent.scss +19 -2
- package/styles/fluent2.css +5932 -0
- package/styles/fluent2.scss +19 -0
- package/styles/highcontrast-light.css +229 -138
- package/styles/highcontrast-light.scss +19 -2
- package/styles/highcontrast.css +229 -138
- package/styles/highcontrast.scss +19 -2
- package/styles/material-dark.css +273 -155
- package/styles/material-dark.scss +19 -2
- package/styles/material.css +285 -156
- package/styles/material.scss +19 -2
- package/styles/material3-dark.css +278 -154
- package/styles/material3-dark.scss +19 -2
- package/styles/material3.css +278 -154
- package/styles/material3.scss +19 -2
- package/styles/recurrence-editor/_bds-definition.scss +0 -1
- package/styles/recurrence-editor/_bootstrap-dark-definition.scss +0 -1
- package/styles/recurrence-editor/_bootstrap-definition.scss +0 -1
- package/styles/recurrence-editor/_bootstrap4-definition.scss +0 -1
- package/styles/recurrence-editor/_bootstrap5-definition.scss +0 -1
- package/styles/recurrence-editor/_bootstrap5.3-definition.scss +14 -0
- package/styles/recurrence-editor/_fabric-dark-definition.scss +0 -1
- package/styles/recurrence-editor/_fabric-definition.scss +0 -1
- package/styles/recurrence-editor/_fluent-definition.scss +0 -1
- package/styles/recurrence-editor/_fluent2-definition.scss +14 -0
- package/styles/recurrence-editor/_fusionnew-definition.scss +0 -1
- package/styles/recurrence-editor/_highcontrast-definition.scss +0 -1
- package/styles/recurrence-editor/_highcontrast-light-definition.scss +0 -1
- package/styles/recurrence-editor/_layout.scss +1 -17
- package/styles/recurrence-editor/_material-dark-definition.scss +0 -1
- package/styles/recurrence-editor/_material-definition.scss +0 -1
- package/styles/recurrence-editor/_material3-definition.scss +0 -1
- package/styles/recurrence-editor/_tailwind-definition.scss +0 -1
- package/styles/recurrence-editor/bootstrap-dark.css +21 -23
- package/styles/recurrence-editor/bootstrap.css +21 -23
- package/styles/recurrence-editor/bootstrap4.css +22 -23
- package/styles/recurrence-editor/bootstrap5-dark.css +22 -23
- package/styles/recurrence-editor/bootstrap5.css +22 -23
- package/styles/recurrence-editor/fabric-dark.css +19 -22
- package/styles/recurrence-editor/fabric.css +19 -22
- package/styles/recurrence-editor/fluent-dark.css +22 -23
- package/styles/recurrence-editor/fluent.css +22 -23
- package/styles/recurrence-editor/fluent2.css +1534 -0
- package/styles/recurrence-editor/fluent2.scss +8 -0
- package/styles/recurrence-editor/highcontrast-light.css +19 -22
- package/styles/recurrence-editor/highcontrast.css +19 -22
- package/styles/recurrence-editor/material-dark.css +32 -26
- package/styles/recurrence-editor/material.css +32 -26
- package/styles/recurrence-editor/material3-dark.css +33 -27
- package/styles/recurrence-editor/material3.css +33 -27
- package/styles/recurrence-editor/tailwind-dark.css +32 -26
- package/styles/recurrence-editor/tailwind.css +32 -26
- package/styles/schedule/_bds-definition.scss +0 -15
- package/styles/schedule/_bootstrap-dark-definition.scss +4 -19
- package/styles/schedule/_bootstrap-definition.scss +4 -19
- package/styles/schedule/_bootstrap4-definition.scss +3 -18
- package/styles/schedule/_bootstrap5-definition.scss +1 -22
- package/styles/schedule/_bootstrap5.3-definition.scss +273 -0
- package/styles/schedule/_fabric-dark-definition.scss +4 -17
- package/styles/schedule/_fabric-definition.scss +4 -19
- package/styles/schedule/_fluent-definition.scss +0 -14
- package/styles/schedule/_fluent2-definition.scss +273 -0
- package/styles/schedule/_fusionnew-definition.scss +0 -21
- package/styles/schedule/_highcontrast-definition.scss +1 -16
- package/styles/schedule/_highcontrast-light-definition.scss +1 -16
- package/styles/schedule/_layout.scss +83 -130
- package/styles/schedule/_material-dark-definition.scss +5 -20
- package/styles/schedule/_material-definition.scss +4 -19
- package/styles/schedule/_material3-definition.scss +1 -23
- package/styles/schedule/_tailwind-definition.scss +0 -16
- package/styles/schedule/_theme.scss +14 -2
- package/styles/schedule/bootstrap-dark.css +220 -126
- package/styles/schedule/bootstrap.css +221 -127
- package/styles/schedule/bootstrap4.css +223 -132
- package/styles/schedule/bootstrap5-dark.css +213 -123
- package/styles/schedule/bootstrap5.css +213 -123
- package/styles/schedule/fabric-dark.css +218 -125
- package/styles/schedule/fabric.css +218 -125
- package/styles/schedule/fluent-dark.css +213 -121
- package/styles/schedule/fluent.css +213 -121
- package/styles/schedule/fluent2.css +5536 -0
- package/styles/schedule/fluent2.scss +16 -0
- package/styles/schedule/highcontrast-light.css +213 -117
- package/styles/schedule/highcontrast.css +213 -117
- package/styles/schedule/icons/_bds.scss +6 -21
- package/styles/schedule/icons/_bootstrap-dark.scss +4 -16
- package/styles/schedule/icons/_bootstrap.scss +4 -16
- package/styles/schedule/icons/_bootstrap4.scss +8 -26
- package/styles/schedule/icons/_bootstrap5.3.scss +220 -0
- package/styles/schedule/icons/_bootstrap5.scss +7 -22
- package/styles/schedule/icons/_fabric-dark.scss +5 -17
- package/styles/schedule/icons/_fabric.scss +5 -17
- package/styles/schedule/icons/_fluent.scss +7 -22
- package/styles/schedule/icons/_fluent2.scss +220 -0
- package/styles/schedule/icons/_fusionnew.scss +7 -22
- package/styles/schedule/icons/_highcontrast-light.scss +5 -17
- package/styles/schedule/icons/_highcontrast.scss +5 -17
- package/styles/schedule/icons/_material-dark.scss +5 -17
- package/styles/schedule/icons/_material.scss +5 -17
- package/styles/schedule/icons/_material3.scss +7 -22
- package/styles/schedule/icons/_tailwind.scss +7 -22
- package/styles/schedule/material-dark.css +257 -134
- package/styles/schedule/material.css +269 -135
- package/styles/schedule/material3-dark.css +262 -133
- package/styles/schedule/material3.css +262 -133
- package/styles/schedule/tailwind-dark.css +223 -124
- package/styles/schedule/tailwind.css +223 -124
- package/styles/tailwind-dark.css +239 -145
- package/styles/tailwind-dark.scss +19 -2
- package/styles/tailwind.css +239 -145
- package/styles/tailwind.scss +19 -2
- package/CHANGELOG.md +0 -1932
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Dialog,
|
|
1
|
+
import { createElement, remove, isNullOrUndefined, closest, addClass, removeClass, append, extend, formatUnit, Touch, EventHandler, Browser, KeyboardEvents, HijriParser, getValue, getDefaultDateObject, cldrData, prepend, setStyleAttribute, Animation, initializeCSPTemplate, L10n, classList, detach, Property, Event, NotifyPropertyChanges, Component, SanitizeHtmlHelper, ChildProperty, Complex, Internationalization, compile, getElement, Collection, Draggable, print as print$1 } from '@syncfusion/ej2-base';
|
|
2
|
+
import { Popup, Dialog, isCollide, Tooltip, createSpinner, showSpinner, hideSpinner } from '@syncfusion/ej2-popups';
|
|
3
3
|
import { Toolbar, TreeView } from '@syncfusion/ej2-navigations';
|
|
4
4
|
import { Calendar, DatePicker, DateTimePicker } from '@syncfusion/ej2-calendars';
|
|
5
|
-
import { DataManager,
|
|
6
|
-
import { Button,
|
|
5
|
+
import { DataManager, Query, Predicate, Deferred } from '@syncfusion/ej2-data';
|
|
6
|
+
import { Button, RadioButton, CheckBox } from '@syncfusion/ej2-buttons';
|
|
7
7
|
import { FormValidator, Input, NumericTextBox } from '@syncfusion/ej2-inputs';
|
|
8
8
|
import { DropDownList, MultiSelect } from '@syncfusion/ej2-dropdowns';
|
|
9
9
|
import { ListBase } from '@syncfusion/ej2-lists';
|
|
@@ -74,7 +74,7 @@ var initialLoad = 'initial-load';
|
|
|
74
74
|
/** @private */
|
|
75
75
|
var initialEnd = 'initial-end';
|
|
76
76
|
/** @private */
|
|
77
|
-
var print
|
|
77
|
+
var print = 'print';
|
|
78
78
|
/** @private */
|
|
79
79
|
var dataReady = 'data-ready';
|
|
80
80
|
/** @private */
|
|
@@ -168,7 +168,7 @@ function getTranslateX(element) {
|
|
|
168
168
|
function getWeekFirstDate(date, firstDayOfWeek) {
|
|
169
169
|
var date1 = new Date(date.getTime());
|
|
170
170
|
firstDayOfWeek = (firstDayOfWeek - date1.getDay() + 7 * (-1)) % 7;
|
|
171
|
-
return new Date(date1.setDate(date1.getDate() + firstDayOfWeek));
|
|
171
|
+
return new Date(date1.setDate(date1.getDate() + (isNaN(firstDayOfWeek) ? 0 : firstDayOfWeek)));
|
|
172
172
|
}
|
|
173
173
|
/**
|
|
174
174
|
* Method to get week last date
|
|
@@ -667,8 +667,6 @@ var PREVIOUS_TIMELINE_CLASS = 'e-previous-timeline';
|
|
|
667
667
|
var HIDE_CHILDS_CLASS = 'e-hide-childs';
|
|
668
668
|
/** @private */
|
|
669
669
|
var SCROLL_CONTAINER_CLASS = 'e-scroll-container';
|
|
670
|
-
/** @private */
|
|
671
|
-
|
|
672
670
|
/** @private */
|
|
673
671
|
var TIMELINE_WRAPPER_CLASS = 'e-timeline-wrapper';
|
|
674
672
|
/** @private */
|
|
@@ -1029,7 +1027,6 @@ var __assign = (undefined && undefined.__assign) || function () {
|
|
|
1029
1027
|
};
|
|
1030
1028
|
return __assign.apply(this, arguments);
|
|
1031
1029
|
};
|
|
1032
|
-
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
1033
1030
|
/**
|
|
1034
1031
|
* Header module
|
|
1035
1032
|
*/
|
|
@@ -1087,7 +1084,8 @@ var HeaderRenderer = /** @__PURE__ @class */ (function () {
|
|
|
1087
1084
|
};
|
|
1088
1085
|
HeaderRenderer.prototype.renderToolbar = function () {
|
|
1089
1086
|
var _this = this;
|
|
1090
|
-
var items = (this.parent.toolbarItems && this.parent.toolbarItems.length > 0) ?
|
|
1087
|
+
var items = (this.parent.toolbarItems && this.parent.toolbarItems.length > 0) ?
|
|
1088
|
+
this.getToolbarItems() : this.getItems();
|
|
1091
1089
|
this.parent.trigger(actionBegin, { requestType: 'toolbarItemRendering', items: items }, function (args) {
|
|
1092
1090
|
_this.toolbarObj = new Toolbar({
|
|
1093
1091
|
items: args.items,
|
|
@@ -1180,6 +1178,7 @@ var HeaderRenderer = /** @__PURE__ @class */ (function () {
|
|
|
1180
1178
|
if (!selEle) {
|
|
1181
1179
|
return;
|
|
1182
1180
|
}
|
|
1181
|
+
selEle.firstElementChild.setAttribute('aria-haspopup', 'true');
|
|
1183
1182
|
var textEle = selEle.querySelector('.e-tbar-btn-text');
|
|
1184
1183
|
if (this.parent.activeViewOptions.dateRangeTemplate) {
|
|
1185
1184
|
textEle.textContent = '';
|
|
@@ -1327,7 +1326,7 @@ var HeaderRenderer = /** @__PURE__ @class */ (function () {
|
|
|
1327
1326
|
items.push(__assign({}, tbItem, propItem));
|
|
1328
1327
|
break;
|
|
1329
1328
|
case 'Views':
|
|
1330
|
-
if (this.parent.views.length > 1) {
|
|
1329
|
+
if (!isNullOrUndefined(this.parent.views) && this.parent.views.length > 1) {
|
|
1331
1330
|
for (var _b = 0, _c = this.parent.views; _b < _c.length; _b++) {
|
|
1332
1331
|
var view = _c[_b];
|
|
1333
1332
|
tbItem = this.getItemObject(view);
|
|
@@ -1377,11 +1376,11 @@ var HeaderRenderer = /** @__PURE__ @class */ (function () {
|
|
|
1377
1376
|
align: 'Right', showAlwaysInPopup: (this.parent.isAdaptive || this.parent.enableAdaptiveUI), prefixIcon: 'e-icon-today',
|
|
1378
1377
|
text: this.l10n.getConstant('today'), cssClass: 'e-today', overflow: 'Show'
|
|
1379
1378
|
});
|
|
1380
|
-
if (this.parent.views.length > 1) {
|
|
1379
|
+
if (!isNullOrUndefined(this.parent.views) && this.parent.views.length > 1) {
|
|
1381
1380
|
items.push({ align: 'Right', type: 'Separator', cssClass: 'e-schedule-seperator' });
|
|
1382
1381
|
}
|
|
1383
1382
|
}
|
|
1384
|
-
if (this.parent.views.length > 1) {
|
|
1383
|
+
if (!isNullOrUndefined(this.parent.views) && this.parent.views.length > 1) {
|
|
1385
1384
|
for (var _i = 0, _a = this.parent.views; _i < _a.length; _i++) {
|
|
1386
1385
|
var item = _a[_i];
|
|
1387
1386
|
items.push(this.getItemObject(item));
|
|
@@ -2607,7 +2606,7 @@ var KeyboardInteraction = /** @__PURE__ @class */ (function () {
|
|
|
2607
2606
|
};
|
|
2608
2607
|
KeyboardInteraction.prototype.processViewNavigation = function (e) {
|
|
2609
2608
|
var index = parseInt(e.key, 10) - 1;
|
|
2610
|
-
if (index < this.parent.views.length) {
|
|
2609
|
+
if (!isNullOrUndefined(this.parent.views) && index < this.parent.views.length) {
|
|
2611
2610
|
var view = this.parent.viewCollections[parseInt(index.toString(), 10)].option;
|
|
2612
2611
|
this.parent.changeView(view, e, undefined, index);
|
|
2613
2612
|
if (this.parent.headerModule) {
|
|
@@ -4002,6 +4001,7 @@ function generate(startDate, rule, excludeDate, startDayOfWeek, maximumCount, vi
|
|
|
4002
4001
|
return data;
|
|
4003
4002
|
}
|
|
4004
4003
|
maxOccurrence = maximumCount;
|
|
4004
|
+
startDayOfWeek = startDayOfWeek || 0;
|
|
4005
4005
|
setFirstDayOfWeek(DAYINDEX[parseInt(startDayOfWeek.toString(), 10)]);
|
|
4006
4006
|
if (ruleObject.until) {
|
|
4007
4007
|
var end = resetTime(ruleObject.until);
|
|
@@ -5493,7 +5493,6 @@ function roundDateValues(date) {
|
|
|
5493
5493
|
}
|
|
5494
5494
|
|
|
5495
5495
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
5496
|
-
/* eslint-disable max-len */
|
|
5497
5496
|
/**
|
|
5498
5497
|
* EventBase for appointment rendering
|
|
5499
5498
|
*/
|
|
@@ -6717,12 +6716,14 @@ var EventBase = /** @__PURE__ @class */ (function () {
|
|
|
6717
6716
|
var firstDate = 0;
|
|
6718
6717
|
var lastDate = dateRender.length;
|
|
6719
6718
|
var filteredDates;
|
|
6720
|
-
|
|
6719
|
+
var maxDate = isNullOrUndefined(this.parent.maxDate) ? new Date(2099, 11, 31) : this.parent.maxDate;
|
|
6720
|
+
var minDate = isNullOrUndefined(this.parent.minDate) ? new Date(1900, 0, 1) : this.parent.minDate;
|
|
6721
|
+
if (dateRender[0] < minDate && dateRender[dateRender.length - 1] > maxDate) {
|
|
6721
6722
|
for (var i = 0; i < dateRender.length; i++) {
|
|
6722
|
-
if (resetTime(dateRender[parseInt(i.toString(), 10)]).getTime() === resetTime(new Date(
|
|
6723
|
+
if (resetTime(dateRender[parseInt(i.toString(), 10)]).getTime() === resetTime(new Date(minDate)).getTime()) {
|
|
6723
6724
|
firstDate = i;
|
|
6724
6725
|
}
|
|
6725
|
-
if (resetTime(dateRender[parseInt(i.toString(), 10)]).getTime() === resetTime(new Date(
|
|
6726
|
+
if (resetTime(dateRender[parseInt(i.toString(), 10)]).getTime() === resetTime(new Date(maxDate)).getTime()) {
|
|
6726
6727
|
lastDate = i;
|
|
6727
6728
|
}
|
|
6728
6729
|
}
|
|
@@ -6865,7 +6866,7 @@ var EventBase = /** @__PURE__ @class */ (function () {
|
|
|
6865
6866
|
return EventBase;
|
|
6866
6867
|
}());
|
|
6867
6868
|
|
|
6868
|
-
var __extends
|
|
6869
|
+
var __extends = (undefined && undefined.__extends) || (function () {
|
|
6869
6870
|
var extendStatics = function (d, b) {
|
|
6870
6871
|
extendStatics = Object.setPrototypeOf ||
|
|
6871
6872
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -6878,12 +6879,11 @@ var __extends$1 = (undefined && undefined.__extends) || (function () {
|
|
|
6878
6879
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
6879
6880
|
};
|
|
6880
6881
|
})();
|
|
6881
|
-
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
6882
6882
|
/**
|
|
6883
6883
|
* Vertical view appointment rendering
|
|
6884
6884
|
*/
|
|
6885
6885
|
var VerticalEvent = /** @__PURE__ @class */ (function (_super) {
|
|
6886
|
-
__extends
|
|
6886
|
+
__extends(VerticalEvent, _super);
|
|
6887
6887
|
function VerticalEvent(parent) {
|
|
6888
6888
|
var _this = _super.call(this, parent) || this;
|
|
6889
6889
|
_this.dateRender = [];
|
|
@@ -7740,7 +7740,7 @@ var VerticalEvent = /** @__PURE__ @class */ (function (_super) {
|
|
|
7740
7740
|
return VerticalEvent;
|
|
7741
7741
|
}(EventBase));
|
|
7742
7742
|
|
|
7743
|
-
var __extends$
|
|
7743
|
+
var __extends$1 = (undefined && undefined.__extends) || (function () {
|
|
7744
7744
|
var extendStatics = function (d, b) {
|
|
7745
7745
|
extendStatics = Object.setPrototypeOf ||
|
|
7746
7746
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -7753,13 +7753,12 @@ var __extends$2 = (undefined && undefined.__extends) || (function () {
|
|
|
7753
7753
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
7754
7754
|
};
|
|
7755
7755
|
})();
|
|
7756
|
-
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
7757
7756
|
var EVENT_GAP = 0;
|
|
7758
7757
|
/**
|
|
7759
7758
|
* Month view events render
|
|
7760
7759
|
*/
|
|
7761
7760
|
var MonthEvent = /** @__PURE__ @class */ (function (_super) {
|
|
7762
|
-
__extends$
|
|
7761
|
+
__extends$1(MonthEvent, _super);
|
|
7763
7762
|
function MonthEvent(parent) {
|
|
7764
7763
|
var _this = _super.call(this, parent) || this;
|
|
7765
7764
|
_this.renderedEvents = [];
|
|
@@ -8448,7 +8447,7 @@ var MonthEvent = /** @__PURE__ @class */ (function (_super) {
|
|
|
8448
8447
|
return MonthEvent;
|
|
8449
8448
|
}(EventBase));
|
|
8450
8449
|
|
|
8451
|
-
var __extends$
|
|
8450
|
+
var __extends$2 = (undefined && undefined.__extends) || (function () {
|
|
8452
8451
|
var extendStatics = function (d, b) {
|
|
8453
8452
|
extendStatics = Object.setPrototypeOf ||
|
|
8454
8453
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -8461,8 +8460,6 @@ var __extends$3 = (undefined && undefined.__extends) || (function () {
|
|
|
8461
8460
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
8462
8461
|
};
|
|
8463
8462
|
})();
|
|
8464
|
-
/* eslint-disable max-len */
|
|
8465
|
-
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
8466
8463
|
var EVENT_GAP$1 = 2;
|
|
8467
8464
|
var BLOCK_INDICATOR_WIDTH = 22;
|
|
8468
8465
|
var BLOCK_INDICATOR_HEIGHT = 18;
|
|
@@ -8470,7 +8467,7 @@ var BLOCK_INDICATOR_HEIGHT = 18;
|
|
|
8470
8467
|
* Timeline view events render
|
|
8471
8468
|
*/
|
|
8472
8469
|
var TimelineEvent = /** @__PURE__ @class */ (function (_super) {
|
|
8473
|
-
__extends$
|
|
8470
|
+
__extends$2(TimelineEvent, _super);
|
|
8474
8471
|
function TimelineEvent(parent, type) {
|
|
8475
8472
|
var _this = _super.call(this, parent) || this;
|
|
8476
8473
|
_this.startHour = _this.parent.activeView.getStartHour();
|
|
@@ -8516,8 +8513,10 @@ var TimelineEvent = /** @__PURE__ @class */ (function (_super) {
|
|
|
8516
8513
|
for (var _a = 0, appointments_2 = appointments; _a < appointments_2.length; _a++) {
|
|
8517
8514
|
var app = appointments_2[_a];
|
|
8518
8515
|
var eventData = app.data;
|
|
8519
|
-
if (eventData.trimStartTime.getTime() <= date.getTime() &&
|
|
8520
|
-
eventData.trimEndTime.getTime() > date.getTime())
|
|
8516
|
+
if ((eventData.trimStartTime.getTime() <= date.getTime() &&
|
|
8517
|
+
eventData.trimEndTime.getTime() > date.getTime()) ||
|
|
8518
|
+
(eventData.trimStartTime.getTime() === date.getTime() &&
|
|
8519
|
+
eventData.trimEndTime.getTime() === date.getTime())) {
|
|
8521
8520
|
appointmentsList.push(app);
|
|
8522
8521
|
}
|
|
8523
8522
|
}
|
|
@@ -9529,14 +9528,14 @@ var QuickPopups = /** @__PURE__ @class */ (function () {
|
|
|
9529
9528
|
removeClass([element], ICON);
|
|
9530
9529
|
};
|
|
9531
9530
|
QuickPopups.prototype.quickDialogClass = function (action) {
|
|
9532
|
-
var classList
|
|
9531
|
+
var classList = [
|
|
9533
9532
|
QUICK_DIALOG_OCCURRENCE_CLASS, QUICK_DIALOG_SERIES_CLASS, QUICK_DIALOG_DELETE_CLASS,
|
|
9534
9533
|
QUICK_DIALOG_CANCEL_CLASS, QUICK_DIALOG_ALERT_BTN_CLASS, DISABLE_CLASS
|
|
9535
9534
|
];
|
|
9536
9535
|
var okButton = this.quickDialog.element.querySelector('.' + QUICK_DIALOG_ALERT_OK);
|
|
9537
9536
|
var cancelButton = this.quickDialog.element.querySelector('.' + QUICK_DIALOG_ALERT_CANCEL);
|
|
9538
9537
|
var followingEventButton = this.quickDialog.element.querySelector('.' + QUICK_DIALOG_ALERT_FOLLOWING);
|
|
9539
|
-
removeClass([okButton, cancelButton], classList
|
|
9538
|
+
removeClass([okButton, cancelButton], classList);
|
|
9540
9539
|
addClass([this.quickDialog.element.querySelector('.' + QUICK_DIALOG_CANCEL_CLASS)], DISABLE_CLASS);
|
|
9541
9540
|
if (this.parent.eventSettings.editFollowingEvents) {
|
|
9542
9541
|
addClass([followingEventButton], DISABLE_CLASS);
|
|
@@ -10955,7 +10954,7 @@ var EventTooltip = /** @__PURE__ @class */ (function () {
|
|
|
10955
10954
|
return EventTooltip;
|
|
10956
10955
|
}());
|
|
10957
10956
|
|
|
10958
|
-
var __extends$
|
|
10957
|
+
var __extends$3 = (undefined && undefined.__extends) || (function () {
|
|
10959
10958
|
var extendStatics = function (d, b) {
|
|
10960
10959
|
extendStatics = Object.setPrototypeOf ||
|
|
10961
10960
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -10968,7 +10967,7 @@ var __extends$4 = (undefined && undefined.__extends) || (function () {
|
|
|
10968
10967
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
10969
10968
|
};
|
|
10970
10969
|
})();
|
|
10971
|
-
var __decorate
|
|
10970
|
+
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
10972
10971
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
10973
10972
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
10974
10973
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -11099,7 +11098,7 @@ var endOnDateClassList = [ENDONCOUNTWRAPPER];
|
|
|
11099
11098
|
* ```
|
|
11100
11099
|
*/
|
|
11101
11100
|
var RecurrenceEditor = /** @__PURE__ @class */ (function (_super) {
|
|
11102
|
-
__extends$
|
|
11101
|
+
__extends$3(RecurrenceEditor, _super);
|
|
11103
11102
|
/**
|
|
11104
11103
|
* Constructor for creating the widget
|
|
11105
11104
|
*
|
|
@@ -11880,7 +11879,7 @@ var RecurrenceEditor = /** @__PURE__ @class */ (function (_super) {
|
|
|
11880
11879
|
}
|
|
11881
11880
|
};
|
|
11882
11881
|
RecurrenceEditor.prototype.getCalendarMode = function () {
|
|
11883
|
-
return this.calendarMode.toLowerCase();
|
|
11882
|
+
return !isNullOrUndefined(this.calendarMode) ? this.calendarMode.toLowerCase() : 'gregorian';
|
|
11884
11883
|
};
|
|
11885
11884
|
RecurrenceEditor.prototype.getRuleSummary = function (rule) {
|
|
11886
11885
|
if (rule === void 0) { rule = this.getRecurrenceRule(); }
|
|
@@ -12063,43 +12062,43 @@ var RecurrenceEditor = /** @__PURE__ @class */ (function (_super) {
|
|
|
12063
12062
|
}
|
|
12064
12063
|
}
|
|
12065
12064
|
};
|
|
12066
|
-
__decorate
|
|
12065
|
+
__decorate([
|
|
12067
12066
|
Property(['none', 'daily', 'weekly', 'monthly', 'yearly'])
|
|
12068
12067
|
], RecurrenceEditor.prototype, "frequencies", void 0);
|
|
12069
|
-
__decorate
|
|
12068
|
+
__decorate([
|
|
12070
12069
|
Property(['never', 'until', 'count'])
|
|
12071
12070
|
], RecurrenceEditor.prototype, "endTypes", void 0);
|
|
12072
|
-
__decorate
|
|
12071
|
+
__decorate([
|
|
12073
12072
|
Property(0)
|
|
12074
12073
|
], RecurrenceEditor.prototype, "firstDayOfWeek", void 0);
|
|
12075
|
-
__decorate
|
|
12074
|
+
__decorate([
|
|
12076
12075
|
Property(new Date())
|
|
12077
12076
|
], RecurrenceEditor.prototype, "startDate", void 0);
|
|
12078
|
-
__decorate
|
|
12077
|
+
__decorate([
|
|
12079
12078
|
Property()
|
|
12080
12079
|
], RecurrenceEditor.prototype, "dateFormat", void 0);
|
|
12081
|
-
__decorate
|
|
12080
|
+
__decorate([
|
|
12082
12081
|
Property('Gregorian')
|
|
12083
12082
|
], RecurrenceEditor.prototype, "calendarMode", void 0);
|
|
12084
|
-
__decorate
|
|
12083
|
+
__decorate([
|
|
12085
12084
|
Property()
|
|
12086
12085
|
], RecurrenceEditor.prototype, "cssClass", void 0);
|
|
12087
|
-
__decorate
|
|
12086
|
+
__decorate([
|
|
12088
12087
|
Property()
|
|
12089
12088
|
], RecurrenceEditor.prototype, "value", void 0);
|
|
12090
|
-
__decorate
|
|
12089
|
+
__decorate([
|
|
12091
12090
|
Property(new Date(1900, 0, 1))
|
|
12092
12091
|
], RecurrenceEditor.prototype, "minDate", void 0);
|
|
12093
|
-
__decorate
|
|
12092
|
+
__decorate([
|
|
12094
12093
|
Property(new Date(2099, 11, 31))
|
|
12095
12094
|
], RecurrenceEditor.prototype, "maxDate", void 0);
|
|
12096
|
-
__decorate
|
|
12095
|
+
__decorate([
|
|
12097
12096
|
Property(0)
|
|
12098
12097
|
], RecurrenceEditor.prototype, "selectedType", void 0);
|
|
12099
|
-
__decorate
|
|
12098
|
+
__decorate([
|
|
12100
12099
|
Event()
|
|
12101
12100
|
], RecurrenceEditor.prototype, "change", void 0);
|
|
12102
|
-
RecurrenceEditor = __decorate
|
|
12101
|
+
RecurrenceEditor = __decorate([
|
|
12103
12102
|
NotifyPropertyChanges
|
|
12104
12103
|
], RecurrenceEditor);
|
|
12105
12104
|
return RecurrenceEditor;
|
|
@@ -13201,7 +13200,7 @@ var EventWindow = /** @__PURE__ @class */ (function () {
|
|
|
13201
13200
|
};
|
|
13202
13201
|
EventWindow.prototype.getFormat = function (formatType) {
|
|
13203
13202
|
var format;
|
|
13204
|
-
if (this.parent.locale === 'en' || this.parent.locale === 'en-US') {
|
|
13203
|
+
if (isNullOrUndefined(this.parent.locale) || this.parent.locale === 'en' || this.parent.locale === 'en-US') {
|
|
13205
13204
|
format = getValue(formatType + '.short', getDefaultDateObject(this.parent.getCalendarMode()));
|
|
13206
13205
|
}
|
|
13207
13206
|
else {
|
|
@@ -14140,7 +14139,7 @@ var VirtualScroll = /** @__PURE__ @class */ (function () {
|
|
|
14140
14139
|
conTable.offsetHeight / this.renderedLength) + 'px';
|
|
14141
14140
|
var conWrap = this.parent.element.querySelector('.' + CONTENT_WRAP_CLASS);
|
|
14142
14141
|
if ((conWrap.scrollHeight - conWrap.scrollTop) < conWrap.offsetHeight * this.bufferCount) {
|
|
14143
|
-
virtual.style.height = parseInt(virtual.style.height) + (conWrap.offsetHeight * this.bufferCount) + 'px';
|
|
14142
|
+
virtual.style.height = parseInt(virtual.style.height, 10) + (conWrap.offsetHeight * this.bufferCount) + 'px';
|
|
14144
14143
|
}
|
|
14145
14144
|
}
|
|
14146
14145
|
else {
|
|
@@ -14190,6 +14189,7 @@ var VirtualScroll = /** @__PURE__ @class */ (function () {
|
|
|
14190
14189
|
var endIndex = (firstTDIndex + this.renderedLength);
|
|
14191
14190
|
firstTDIndex = (endIndex > this.parent.resourceBase.expandedResources.length) ?
|
|
14192
14191
|
(this.parent.resourceBase.expandedResources.length - this.renderedLength) : firstTDIndex;
|
|
14192
|
+
firstTDIndex = firstTDIndex < 0 ? 0 : firstTDIndex;
|
|
14193
14193
|
this.parent.resourceBase.renderedResources = this.parent.resourceBase.expandedResources.slice(firstTDIndex, endIndex);
|
|
14194
14194
|
if (this.parent.resourceBase.renderedResources.length > 0) {
|
|
14195
14195
|
this.updateContent(resWrap, conWrap, eventWrap, this.parent.resourceBase.renderedResources);
|
|
@@ -14701,7 +14701,7 @@ var Render = /** @__PURE__ @class */ (function () {
|
|
|
14701
14701
|
return Render;
|
|
14702
14702
|
}());
|
|
14703
14703
|
|
|
14704
|
-
var __extends$
|
|
14704
|
+
var __extends$4 = (undefined && undefined.__extends) || (function () {
|
|
14705
14705
|
var extendStatics = function (d, b) {
|
|
14706
14706
|
extendStatics = Object.setPrototypeOf ||
|
|
14707
14707
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -14714,7 +14714,7 @@ var __extends$5 = (undefined && undefined.__extends) || (function () {
|
|
|
14714
14714
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
14715
14715
|
};
|
|
14716
14716
|
})();
|
|
14717
|
-
var __decorate$
|
|
14717
|
+
var __decorate$1 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
14718
14718
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
14719
14719
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
14720
14720
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -14724,23 +14724,23 @@ var __decorate$2 = (undefined && undefined.__decorate) || function (decorators,
|
|
|
14724
14724
|
* A class that represents the configuration of working hours related options of scheduler.
|
|
14725
14725
|
*/
|
|
14726
14726
|
var WorkHours = /** @__PURE__ @class */ (function (_super) {
|
|
14727
|
-
__extends$
|
|
14727
|
+
__extends$4(WorkHours, _super);
|
|
14728
14728
|
function WorkHours() {
|
|
14729
14729
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
14730
14730
|
}
|
|
14731
|
-
__decorate$
|
|
14731
|
+
__decorate$1([
|
|
14732
14732
|
Property(true)
|
|
14733
14733
|
], WorkHours.prototype, "highlight", void 0);
|
|
14734
|
-
__decorate$
|
|
14734
|
+
__decorate$1([
|
|
14735
14735
|
Property('09:00')
|
|
14736
14736
|
], WorkHours.prototype, "start", void 0);
|
|
14737
|
-
__decorate$
|
|
14737
|
+
__decorate$1([
|
|
14738
14738
|
Property('18:00')
|
|
14739
14739
|
], WorkHours.prototype, "end", void 0);
|
|
14740
14740
|
return WorkHours;
|
|
14741
14741
|
}(ChildProperty));
|
|
14742
14742
|
|
|
14743
|
-
var __extends$
|
|
14743
|
+
var __extends$5 = (undefined && undefined.__extends) || (function () {
|
|
14744
14744
|
var extendStatics = function (d, b) {
|
|
14745
14745
|
extendStatics = Object.setPrototypeOf ||
|
|
14746
14746
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -14753,7 +14753,7 @@ var __extends$6 = (undefined && undefined.__extends) || (function () {
|
|
|
14753
14753
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
14754
14754
|
};
|
|
14755
14755
|
})();
|
|
14756
|
-
var __decorate$
|
|
14756
|
+
var __decorate$2 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
14757
14757
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
14758
14758
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
14759
14759
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -14763,29 +14763,29 @@ var __decorate$3 = (undefined && undefined.__decorate) || function (decorators,
|
|
|
14763
14763
|
* A class that represents the configuration of options related to timescale on scheduler.
|
|
14764
14764
|
*/
|
|
14765
14765
|
var TimeScale = /** @__PURE__ @class */ (function (_super) {
|
|
14766
|
-
__extends$
|
|
14766
|
+
__extends$5(TimeScale, _super);
|
|
14767
14767
|
function TimeScale() {
|
|
14768
14768
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
14769
14769
|
}
|
|
14770
|
-
__decorate$
|
|
14770
|
+
__decorate$2([
|
|
14771
14771
|
Property(true)
|
|
14772
14772
|
], TimeScale.prototype, "enable", void 0);
|
|
14773
|
-
__decorate$
|
|
14773
|
+
__decorate$2([
|
|
14774
14774
|
Property(60)
|
|
14775
14775
|
], TimeScale.prototype, "interval", void 0);
|
|
14776
|
-
__decorate$
|
|
14776
|
+
__decorate$2([
|
|
14777
14777
|
Property(2)
|
|
14778
14778
|
], TimeScale.prototype, "slotCount", void 0);
|
|
14779
|
-
__decorate$
|
|
14779
|
+
__decorate$2([
|
|
14780
14780
|
Property()
|
|
14781
14781
|
], TimeScale.prototype, "minorSlotTemplate", void 0);
|
|
14782
|
-
__decorate$
|
|
14782
|
+
__decorate$2([
|
|
14783
14783
|
Property()
|
|
14784
14784
|
], TimeScale.prototype, "majorSlotTemplate", void 0);
|
|
14785
14785
|
return TimeScale;
|
|
14786
14786
|
}(ChildProperty));
|
|
14787
14787
|
|
|
14788
|
-
var __extends$
|
|
14788
|
+
var __extends$6 = (undefined && undefined.__extends) || (function () {
|
|
14789
14789
|
var extendStatics = function (d, b) {
|
|
14790
14790
|
extendStatics = Object.setPrototypeOf ||
|
|
14791
14791
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -14798,7 +14798,7 @@ var __extends$7 = (undefined && undefined.__extends) || (function () {
|
|
|
14798
14798
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
14799
14799
|
};
|
|
14800
14800
|
})();
|
|
14801
|
-
var __decorate$
|
|
14801
|
+
var __decorate$3 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
14802
14802
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
14803
14803
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
14804
14804
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -14808,26 +14808,26 @@ var __decorate$4 = (undefined && undefined.__decorate) || function (decorators,
|
|
|
14808
14808
|
* A class that defines the template options available to customize the quick popup of scheduler.
|
|
14809
14809
|
*/
|
|
14810
14810
|
var QuickInfoTemplates = /** @__PURE__ @class */ (function (_super) {
|
|
14811
|
-
__extends$
|
|
14811
|
+
__extends$6(QuickInfoTemplates, _super);
|
|
14812
14812
|
function QuickInfoTemplates() {
|
|
14813
14813
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
14814
14814
|
}
|
|
14815
|
-
__decorate$
|
|
14815
|
+
__decorate$3([
|
|
14816
14816
|
Property('Both')
|
|
14817
14817
|
], QuickInfoTemplates.prototype, "templateType", void 0);
|
|
14818
|
-
__decorate$
|
|
14818
|
+
__decorate$3([
|
|
14819
14819
|
Property()
|
|
14820
14820
|
], QuickInfoTemplates.prototype, "header", void 0);
|
|
14821
|
-
__decorate$
|
|
14821
|
+
__decorate$3([
|
|
14822
14822
|
Property()
|
|
14823
14823
|
], QuickInfoTemplates.prototype, "content", void 0);
|
|
14824
|
-
__decorate$
|
|
14824
|
+
__decorate$3([
|
|
14825
14825
|
Property()
|
|
14826
14826
|
], QuickInfoTemplates.prototype, "footer", void 0);
|
|
14827
14827
|
return QuickInfoTemplates;
|
|
14828
14828
|
}(ChildProperty));
|
|
14829
14829
|
|
|
14830
|
-
var __extends$
|
|
14830
|
+
var __extends$7 = (undefined && undefined.__extends) || (function () {
|
|
14831
14831
|
var extendStatics = function (d, b) {
|
|
14832
14832
|
extendStatics = Object.setPrototypeOf ||
|
|
14833
14833
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -14840,7 +14840,7 @@ var __extends$8 = (undefined && undefined.__extends) || (function () {
|
|
|
14840
14840
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
14841
14841
|
};
|
|
14842
14842
|
})();
|
|
14843
|
-
var __decorate$
|
|
14843
|
+
var __decorate$4 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
14844
14844
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
14845
14845
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
14846
14846
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -14850,21 +14850,20 @@ var __decorate$5 = (undefined && undefined.__decorate) || function (decorators,
|
|
|
14850
14850
|
* A class that represents the header rows related configurations on timeline views.
|
|
14851
14851
|
*/
|
|
14852
14852
|
var HeaderRows = /** @__PURE__ @class */ (function (_super) {
|
|
14853
|
-
__extends$
|
|
14853
|
+
__extends$7(HeaderRows, _super);
|
|
14854
14854
|
function HeaderRows() {
|
|
14855
14855
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
14856
14856
|
}
|
|
14857
|
-
__decorate$
|
|
14857
|
+
__decorate$4([
|
|
14858
14858
|
Property()
|
|
14859
14859
|
], HeaderRows.prototype, "option", void 0);
|
|
14860
|
-
__decorate$
|
|
14860
|
+
__decorate$4([
|
|
14861
14861
|
Property()
|
|
14862
14862
|
], HeaderRows.prototype, "template", void 0);
|
|
14863
14863
|
return HeaderRows;
|
|
14864
14864
|
}(ChildProperty));
|
|
14865
14865
|
|
|
14866
14866
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
14867
|
-
/* eslint-disable max-len */
|
|
14868
14867
|
/**
|
|
14869
14868
|
* Schedule CRUD operations
|
|
14870
14869
|
*/
|
|
@@ -14920,7 +14919,7 @@ var Crud = /** @__PURE__ @class */ (function () {
|
|
|
14920
14919
|
_this.parent.trigger(dataBound, null, function () {
|
|
14921
14920
|
_this.parent.hideSpinner();
|
|
14922
14921
|
if (_this.parent.isPrinting) {
|
|
14923
|
-
_this.parent.notify(print
|
|
14922
|
+
_this.parent.notify(print, {});
|
|
14924
14923
|
}
|
|
14925
14924
|
});
|
|
14926
14925
|
});
|
|
@@ -15747,7 +15746,7 @@ var WorkCellInteraction = /** @__PURE__ @class */ (function () {
|
|
|
15747
15746
|
return WorkCellInteraction;
|
|
15748
15747
|
}());
|
|
15749
15748
|
|
|
15750
|
-
var __extends$
|
|
15749
|
+
var __extends$8 = (undefined && undefined.__extends) || (function () {
|
|
15751
15750
|
var extendStatics = function (d, b) {
|
|
15752
15751
|
extendStatics = Object.setPrototypeOf ||
|
|
15753
15752
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -15760,37 +15759,36 @@ var __extends$11 = (undefined && undefined.__extends) || (function () {
|
|
|
15760
15759
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15761
15760
|
};
|
|
15762
15761
|
})();
|
|
15763
|
-
var __decorate$
|
|
15762
|
+
var __decorate$5 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
15764
15763
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
15765
15764
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
15766
15765
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
15767
15766
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
15768
15767
|
};
|
|
15769
|
-
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
15770
15768
|
/**
|
|
15771
15769
|
* Configuration that applies on each appointment field options of scheduler.
|
|
15772
15770
|
*/
|
|
15773
15771
|
var FieldOptions = /** @__PURE__ @class */ (function (_super) {
|
|
15774
|
-
__extends$
|
|
15772
|
+
__extends$8(FieldOptions, _super);
|
|
15775
15773
|
function FieldOptions() {
|
|
15776
15774
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
15777
15775
|
}
|
|
15778
|
-
__decorate$
|
|
15776
|
+
__decorate$5([
|
|
15779
15777
|
Property()
|
|
15780
15778
|
], FieldOptions.prototype, "name", void 0);
|
|
15781
|
-
__decorate$
|
|
15779
|
+
__decorate$5([
|
|
15782
15780
|
Property()
|
|
15783
15781
|
], FieldOptions.prototype, "default", void 0);
|
|
15784
|
-
__decorate$
|
|
15782
|
+
__decorate$5([
|
|
15785
15783
|
Property()
|
|
15786
15784
|
], FieldOptions.prototype, "title", void 0);
|
|
15787
|
-
__decorate$
|
|
15785
|
+
__decorate$5([
|
|
15788
15786
|
Property({})
|
|
15789
15787
|
], FieldOptions.prototype, "validation", void 0);
|
|
15790
15788
|
return FieldOptions;
|
|
15791
15789
|
}(ChildProperty));
|
|
15792
15790
|
|
|
15793
|
-
var __extends$
|
|
15791
|
+
var __extends$9 = (undefined && undefined.__extends) || (function () {
|
|
15794
15792
|
var extendStatics = function (d, b) {
|
|
15795
15793
|
extendStatics = Object.setPrototypeOf ||
|
|
15796
15794
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -15803,7 +15801,7 @@ var __extends$10 = (undefined && undefined.__extends) || (function () {
|
|
|
15803
15801
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15804
15802
|
};
|
|
15805
15803
|
})();
|
|
15806
|
-
var __decorate$
|
|
15804
|
+
var __decorate$6 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
15807
15805
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
15808
15806
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
15809
15807
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -15817,59 +15815,59 @@ var __decorate$7 = (undefined && undefined.__decorate) || function (decorators,
|
|
|
15817
15815
|
* those fields with dataSource can be given altogether within it.
|
|
15818
15816
|
*/
|
|
15819
15817
|
var Field = /** @__PURE__ @class */ (function (_super) {
|
|
15820
|
-
__extends$
|
|
15818
|
+
__extends$9(Field, _super);
|
|
15821
15819
|
function Field() {
|
|
15822
15820
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
15823
15821
|
}
|
|
15824
|
-
__decorate$
|
|
15822
|
+
__decorate$6([
|
|
15825
15823
|
Property('Id')
|
|
15826
15824
|
], Field.prototype, "id", void 0);
|
|
15827
|
-
__decorate$
|
|
15825
|
+
__decorate$6([
|
|
15828
15826
|
Property('IsBlock')
|
|
15829
15827
|
], Field.prototype, "isBlock", void 0);
|
|
15830
|
-
__decorate$
|
|
15828
|
+
__decorate$6([
|
|
15831
15829
|
Complex({ name: 'Subject' }, FieldOptions)
|
|
15832
15830
|
], Field.prototype, "subject", void 0);
|
|
15833
|
-
__decorate$
|
|
15831
|
+
__decorate$6([
|
|
15834
15832
|
Complex({ name: 'StartTime' }, FieldOptions)
|
|
15835
15833
|
], Field.prototype, "startTime", void 0);
|
|
15836
|
-
__decorate$
|
|
15834
|
+
__decorate$6([
|
|
15837
15835
|
Complex({ name: 'EndTime' }, FieldOptions)
|
|
15838
15836
|
], Field.prototype, "endTime", void 0);
|
|
15839
|
-
__decorate$
|
|
15837
|
+
__decorate$6([
|
|
15840
15838
|
Complex({ name: 'StartTimezone' }, FieldOptions)
|
|
15841
15839
|
], Field.prototype, "startTimezone", void 0);
|
|
15842
|
-
__decorate$
|
|
15840
|
+
__decorate$6([
|
|
15843
15841
|
Complex({ name: 'EndTimezone' }, FieldOptions)
|
|
15844
15842
|
], Field.prototype, "endTimezone", void 0);
|
|
15845
|
-
__decorate$
|
|
15843
|
+
__decorate$6([
|
|
15846
15844
|
Complex({ name: 'Location' }, FieldOptions)
|
|
15847
15845
|
], Field.prototype, "location", void 0);
|
|
15848
|
-
__decorate$
|
|
15846
|
+
__decorate$6([
|
|
15849
15847
|
Complex({ name: 'Description' }, FieldOptions)
|
|
15850
15848
|
], Field.prototype, "description", void 0);
|
|
15851
|
-
__decorate$
|
|
15849
|
+
__decorate$6([
|
|
15852
15850
|
Complex({ name: 'IsAllDay' }, FieldOptions)
|
|
15853
15851
|
], Field.prototype, "isAllDay", void 0);
|
|
15854
|
-
__decorate$
|
|
15852
|
+
__decorate$6([
|
|
15855
15853
|
Complex({ name: 'RecurrenceID' }, FieldOptions)
|
|
15856
15854
|
], Field.prototype, "recurrenceID", void 0);
|
|
15857
|
-
__decorate$
|
|
15855
|
+
__decorate$6([
|
|
15858
15856
|
Complex({ name: 'RecurrenceRule' }, FieldOptions)
|
|
15859
15857
|
], Field.prototype, "recurrenceRule", void 0);
|
|
15860
|
-
__decorate$
|
|
15858
|
+
__decorate$6([
|
|
15861
15859
|
Complex({ name: 'RecurrenceException' }, FieldOptions)
|
|
15862
15860
|
], Field.prototype, "recurrenceException", void 0);
|
|
15863
|
-
__decorate$
|
|
15861
|
+
__decorate$6([
|
|
15864
15862
|
Property('IsReadonly')
|
|
15865
15863
|
], Field.prototype, "isReadonly", void 0);
|
|
15866
|
-
__decorate$
|
|
15864
|
+
__decorate$6([
|
|
15867
15865
|
Property('FollowingID')
|
|
15868
15866
|
], Field.prototype, "followingID", void 0);
|
|
15869
15867
|
return Field;
|
|
15870
15868
|
}(ChildProperty));
|
|
15871
15869
|
|
|
15872
|
-
var __extends$
|
|
15870
|
+
var __extends$a = (undefined && undefined.__extends) || (function () {
|
|
15873
15871
|
var extendStatics = function (d, b) {
|
|
15874
15872
|
extendStatics = Object.setPrototypeOf ||
|
|
15875
15873
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -15882,79 +15880,78 @@ var __extends$9 = (undefined && undefined.__extends) || (function () {
|
|
|
15882
15880
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15883
15881
|
};
|
|
15884
15882
|
})();
|
|
15885
|
-
var __decorate$
|
|
15883
|
+
var __decorate$7 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
15886
15884
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
15887
15885
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
15888
15886
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
15889
15887
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
15890
15888
|
};
|
|
15891
|
-
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
15892
15889
|
/**
|
|
15893
15890
|
* Holds the configuration of event related options and dataSource binding to Schedule.
|
|
15894
15891
|
*/
|
|
15895
15892
|
var EventSettings = /** @__PURE__ @class */ (function (_super) {
|
|
15896
|
-
__extends$
|
|
15893
|
+
__extends$a(EventSettings, _super);
|
|
15897
15894
|
function EventSettings() {
|
|
15898
15895
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
15899
15896
|
}
|
|
15900
|
-
__decorate$
|
|
15897
|
+
__decorate$7([
|
|
15901
15898
|
Property()
|
|
15902
15899
|
], EventSettings.prototype, "template", void 0);
|
|
15903
|
-
__decorate$
|
|
15900
|
+
__decorate$7([
|
|
15904
15901
|
Property([])
|
|
15905
15902
|
], EventSettings.prototype, "dataSource", void 0);
|
|
15906
|
-
__decorate$
|
|
15903
|
+
__decorate$7([
|
|
15907
15904
|
Property()
|
|
15908
15905
|
], EventSettings.prototype, "query", void 0);
|
|
15909
|
-
__decorate$
|
|
15906
|
+
__decorate$7([
|
|
15910
15907
|
Complex({}, Field)
|
|
15911
15908
|
], EventSettings.prototype, "fields", void 0);
|
|
15912
|
-
__decorate$
|
|
15909
|
+
__decorate$7([
|
|
15913
15910
|
Property(false)
|
|
15914
15911
|
], EventSettings.prototype, "enableTooltip", void 0);
|
|
15915
|
-
__decorate$
|
|
15912
|
+
__decorate$7([
|
|
15916
15913
|
Property('AllDayRow')
|
|
15917
15914
|
], EventSettings.prototype, "spannedEventPlacement", void 0);
|
|
15918
|
-
__decorate$
|
|
15915
|
+
__decorate$7([
|
|
15919
15916
|
Property(1)
|
|
15920
15917
|
], EventSettings.prototype, "minimumEventDuration", void 0);
|
|
15921
|
-
__decorate$
|
|
15918
|
+
__decorate$7([
|
|
15922
15919
|
Property()
|
|
15923
15920
|
], EventSettings.prototype, "tooltipTemplate", void 0);
|
|
15924
|
-
__decorate$
|
|
15921
|
+
__decorate$7([
|
|
15925
15922
|
Property()
|
|
15926
15923
|
], EventSettings.prototype, "resourceColorField", void 0);
|
|
15927
|
-
__decorate$
|
|
15924
|
+
__decorate$7([
|
|
15928
15925
|
Property(false)
|
|
15929
15926
|
], EventSettings.prototype, "editFollowingEvents", void 0);
|
|
15930
|
-
__decorate$
|
|
15927
|
+
__decorate$7([
|
|
15931
15928
|
Property(true)
|
|
15932
15929
|
], EventSettings.prototype, "allowAdding", void 0);
|
|
15933
|
-
__decorate$
|
|
15930
|
+
__decorate$7([
|
|
15934
15931
|
Property(true)
|
|
15935
15932
|
], EventSettings.prototype, "allowEditing", void 0);
|
|
15936
|
-
__decorate$
|
|
15933
|
+
__decorate$7([
|
|
15937
15934
|
Property(true)
|
|
15938
15935
|
], EventSettings.prototype, "allowDeleting", void 0);
|
|
15939
|
-
__decorate$
|
|
15936
|
+
__decorate$7([
|
|
15940
15937
|
Property(false)
|
|
15941
15938
|
], EventSettings.prototype, "enableMaxHeight", void 0);
|
|
15942
|
-
__decorate$
|
|
15939
|
+
__decorate$7([
|
|
15943
15940
|
Property(false)
|
|
15944
15941
|
], EventSettings.prototype, "enableIndicator", void 0);
|
|
15945
|
-
__decorate$
|
|
15942
|
+
__decorate$7([
|
|
15946
15943
|
Property(false)
|
|
15947
15944
|
], EventSettings.prototype, "ignoreWhitespace", void 0);
|
|
15948
|
-
__decorate$
|
|
15945
|
+
__decorate$7([
|
|
15949
15946
|
Property()
|
|
15950
15947
|
], EventSettings.prototype, "sortComparer", void 0);
|
|
15951
|
-
__decorate$
|
|
15948
|
+
__decorate$7([
|
|
15952
15949
|
Property()
|
|
15953
15950
|
], EventSettings.prototype, "includeFiltersInQuery", void 0);
|
|
15954
15951
|
return EventSettings;
|
|
15955
15952
|
}(ChildProperty));
|
|
15956
15953
|
|
|
15957
|
-
var __extends$
|
|
15954
|
+
var __extends$b = (undefined && undefined.__extends) || (function () {
|
|
15958
15955
|
var extendStatics = function (d, b) {
|
|
15959
15956
|
extendStatics = Object.setPrototypeOf ||
|
|
15960
15957
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -15967,7 +15964,7 @@ var __extends$12 = (undefined && undefined.__extends) || (function () {
|
|
|
15967
15964
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15968
15965
|
};
|
|
15969
15966
|
})();
|
|
15970
|
-
var __decorate$
|
|
15967
|
+
var __decorate$8 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
15971
15968
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
15972
15969
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
15973
15970
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -15977,35 +15974,35 @@ var __decorate$9 = (undefined && undefined.__decorate) || function (decorators,
|
|
|
15977
15974
|
* A class that holds the resource grouping related configurations on Schedule.
|
|
15978
15975
|
*/
|
|
15979
15976
|
var Group = /** @__PURE__ @class */ (function (_super) {
|
|
15980
|
-
__extends$
|
|
15977
|
+
__extends$b(Group, _super);
|
|
15981
15978
|
function Group() {
|
|
15982
15979
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
15983
15980
|
}
|
|
15984
|
-
__decorate$
|
|
15981
|
+
__decorate$8([
|
|
15985
15982
|
Property(false)
|
|
15986
15983
|
], Group.prototype, "byDate", void 0);
|
|
15987
|
-
__decorate$
|
|
15984
|
+
__decorate$8([
|
|
15988
15985
|
Property(true)
|
|
15989
15986
|
], Group.prototype, "byGroupID", void 0);
|
|
15990
|
-
__decorate$
|
|
15987
|
+
__decorate$8([
|
|
15991
15988
|
Property(false)
|
|
15992
15989
|
], Group.prototype, "allowGroupEdit", void 0);
|
|
15993
|
-
__decorate$
|
|
15990
|
+
__decorate$8([
|
|
15994
15991
|
Property([])
|
|
15995
15992
|
], Group.prototype, "resources", void 0);
|
|
15996
|
-
__decorate$
|
|
15993
|
+
__decorate$8([
|
|
15997
15994
|
Property(true)
|
|
15998
15995
|
], Group.prototype, "enableCompactView", void 0);
|
|
15999
|
-
__decorate$
|
|
15996
|
+
__decorate$8([
|
|
16000
15997
|
Property()
|
|
16001
15998
|
], Group.prototype, "headerTooltipTemplate", void 0);
|
|
16002
|
-
__decorate$
|
|
15999
|
+
__decorate$8([
|
|
16003
16000
|
Property(false)
|
|
16004
16001
|
], Group.prototype, "hideNonWorkingDays", void 0);
|
|
16005
16002
|
return Group;
|
|
16006
16003
|
}(ChildProperty));
|
|
16007
16004
|
|
|
16008
|
-
var __extends$
|
|
16005
|
+
var __extends$c = (undefined && undefined.__extends) || (function () {
|
|
16009
16006
|
var extendStatics = function (d, b) {
|
|
16010
16007
|
extendStatics = Object.setPrototypeOf ||
|
|
16011
16008
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -16018,71 +16015,69 @@ var __extends$13 = (undefined && undefined.__extends) || (function () {
|
|
|
16018
16015
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
16019
16016
|
};
|
|
16020
16017
|
})();
|
|
16021
|
-
var __decorate$
|
|
16018
|
+
var __decorate$9 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
16022
16019
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
16023
16020
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
16024
16021
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
16025
16022
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
16026
16023
|
};
|
|
16027
|
-
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
16028
16024
|
/**
|
|
16029
16025
|
* A class that represents the resource related configurations and its data binding options.
|
|
16030
16026
|
*/
|
|
16031
16027
|
var Resources = /** @__PURE__ @class */ (function (_super) {
|
|
16032
|
-
__extends$
|
|
16028
|
+
__extends$c(Resources, _super);
|
|
16033
16029
|
function Resources() {
|
|
16034
16030
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
16035
16031
|
}
|
|
16036
|
-
__decorate$
|
|
16032
|
+
__decorate$9([
|
|
16037
16033
|
Property()
|
|
16038
16034
|
], Resources.prototype, "field", void 0);
|
|
16039
|
-
__decorate$
|
|
16035
|
+
__decorate$9([
|
|
16040
16036
|
Property()
|
|
16041
16037
|
], Resources.prototype, "title", void 0);
|
|
16042
|
-
__decorate$
|
|
16038
|
+
__decorate$9([
|
|
16043
16039
|
Property()
|
|
16044
16040
|
], Resources.prototype, "name", void 0);
|
|
16045
|
-
__decorate$
|
|
16041
|
+
__decorate$9([
|
|
16046
16042
|
Property(false)
|
|
16047
16043
|
], Resources.prototype, "allowMultiple", void 0);
|
|
16048
|
-
__decorate$
|
|
16044
|
+
__decorate$9([
|
|
16049
16045
|
Property([])
|
|
16050
16046
|
], Resources.prototype, "dataSource", void 0);
|
|
16051
|
-
__decorate$
|
|
16047
|
+
__decorate$9([
|
|
16052
16048
|
Property()
|
|
16053
16049
|
], Resources.prototype, "query", void 0);
|
|
16054
|
-
__decorate$
|
|
16050
|
+
__decorate$9([
|
|
16055
16051
|
Property('Id')
|
|
16056
16052
|
], Resources.prototype, "idField", void 0);
|
|
16057
|
-
__decorate$
|
|
16053
|
+
__decorate$9([
|
|
16058
16054
|
Property('Text')
|
|
16059
16055
|
], Resources.prototype, "textField", void 0);
|
|
16060
|
-
__decorate$
|
|
16056
|
+
__decorate$9([
|
|
16061
16057
|
Property('Expanded')
|
|
16062
16058
|
], Resources.prototype, "expandedField", void 0);
|
|
16063
|
-
__decorate$
|
|
16059
|
+
__decorate$9([
|
|
16064
16060
|
Property('GroupID')
|
|
16065
16061
|
], Resources.prototype, "groupIDField", void 0);
|
|
16066
|
-
__decorate$
|
|
16062
|
+
__decorate$9([
|
|
16067
16063
|
Property('Color')
|
|
16068
16064
|
], Resources.prototype, "colorField", void 0);
|
|
16069
|
-
__decorate$
|
|
16065
|
+
__decorate$9([
|
|
16070
16066
|
Property('StartHour')
|
|
16071
16067
|
], Resources.prototype, "startHourField", void 0);
|
|
16072
|
-
__decorate$
|
|
16068
|
+
__decorate$9([
|
|
16073
16069
|
Property('EndHour')
|
|
16074
16070
|
], Resources.prototype, "endHourField", void 0);
|
|
16075
|
-
__decorate$
|
|
16071
|
+
__decorate$9([
|
|
16076
16072
|
Property('WorkDays')
|
|
16077
16073
|
], Resources.prototype, "workDaysField", void 0);
|
|
16078
|
-
__decorate$
|
|
16074
|
+
__decorate$9([
|
|
16079
16075
|
Property('CssClass')
|
|
16080
16076
|
], Resources.prototype, "cssClassField", void 0);
|
|
16081
16077
|
return Resources;
|
|
16082
16078
|
}(ChildProperty));
|
|
16083
16079
|
|
|
16084
16080
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
16085
|
-
/* eslint-disable max-len */
|
|
16086
16081
|
var ResourceBase = /** @__PURE__ @class */ (function () {
|
|
16087
16082
|
function ResourceBase(parent) {
|
|
16088
16083
|
this.resourceCollection = [];
|
|
@@ -16489,7 +16484,7 @@ var ResourceBase = /** @__PURE__ @class */ (function () {
|
|
|
16489
16484
|
};
|
|
16490
16485
|
var this_1 = this;
|
|
16491
16486
|
for (var i = 0, len = this.resourceTreeLevel.length; i < len; i++) {
|
|
16492
|
-
_loop_1(i
|
|
16487
|
+
_loop_1(i);
|
|
16493
16488
|
}
|
|
16494
16489
|
if (isTimeLine) {
|
|
16495
16490
|
this.lastResourceLevel = resTreeColl;
|
|
@@ -16515,7 +16510,7 @@ var ResourceBase = /** @__PURE__ @class */ (function () {
|
|
|
16515
16510
|
};
|
|
16516
16511
|
var this_2 = this;
|
|
16517
16512
|
for (var i = 0, len = resource.groupOrder.length; i < len; i++) {
|
|
16518
|
-
_loop_2(i
|
|
16513
|
+
_loop_2(i);
|
|
16519
16514
|
}
|
|
16520
16515
|
headerCollection.pop();
|
|
16521
16516
|
var target = (this.parent.currentView === 'MonthAgenda') ? this.parent.activeView.getPanel() : this.parent.element;
|
|
@@ -17185,7 +17180,7 @@ var ResourceBase = /** @__PURE__ @class */ (function () {
|
|
|
17185
17180
|
return ResourceBase;
|
|
17186
17181
|
}());
|
|
17187
17182
|
|
|
17188
|
-
var __extends$
|
|
17183
|
+
var __extends$d = (undefined && undefined.__extends) || (function () {
|
|
17189
17184
|
var extendStatics = function (d, b) {
|
|
17190
17185
|
extendStatics = Object.setPrototypeOf ||
|
|
17191
17186
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -17198,78 +17193,78 @@ var __extends$14 = (undefined && undefined.__extends) || (function () {
|
|
|
17198
17193
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
17199
17194
|
};
|
|
17200
17195
|
})();
|
|
17201
|
-
var __decorate$
|
|
17196
|
+
var __decorate$a = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
17202
17197
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
17203
17198
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
17204
17199
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
17205
17200
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
17206
17201
|
};
|
|
17207
17202
|
var ToolbarItem = /** @__PURE__ @class */ (function (_super) {
|
|
17208
|
-
__extends$
|
|
17203
|
+
__extends$d(ToolbarItem, _super);
|
|
17209
17204
|
function ToolbarItem() {
|
|
17210
17205
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
17211
17206
|
}
|
|
17212
|
-
__decorate$
|
|
17207
|
+
__decorate$a([
|
|
17213
17208
|
Property('')
|
|
17214
17209
|
], ToolbarItem.prototype, "id", void 0);
|
|
17215
|
-
__decorate$
|
|
17210
|
+
__decorate$a([
|
|
17216
17211
|
Property('')
|
|
17217
17212
|
], ToolbarItem.prototype, "text", void 0);
|
|
17218
|
-
__decorate$
|
|
17213
|
+
__decorate$a([
|
|
17219
17214
|
Property('auto')
|
|
17220
17215
|
], ToolbarItem.prototype, "width", void 0);
|
|
17221
|
-
__decorate$
|
|
17216
|
+
__decorate$a([
|
|
17222
17217
|
Property('')
|
|
17223
17218
|
], ToolbarItem.prototype, "cssClass", void 0);
|
|
17224
|
-
__decorate$
|
|
17219
|
+
__decorate$a([
|
|
17225
17220
|
Property(false)
|
|
17226
17221
|
], ToolbarItem.prototype, "showAlwaysInPopup", void 0);
|
|
17227
|
-
__decorate$
|
|
17222
|
+
__decorate$a([
|
|
17228
17223
|
Property(false)
|
|
17229
17224
|
], ToolbarItem.prototype, "disabled", void 0);
|
|
17230
|
-
__decorate$
|
|
17225
|
+
__decorate$a([
|
|
17231
17226
|
Property('')
|
|
17232
17227
|
], ToolbarItem.prototype, "prefixIcon", void 0);
|
|
17233
|
-
__decorate$
|
|
17228
|
+
__decorate$a([
|
|
17234
17229
|
Property('')
|
|
17235
17230
|
], ToolbarItem.prototype, "suffixIcon", void 0);
|
|
17236
|
-
__decorate$
|
|
17231
|
+
__decorate$a([
|
|
17237
17232
|
Property(true)
|
|
17238
17233
|
], ToolbarItem.prototype, "visible", void 0);
|
|
17239
|
-
__decorate$
|
|
17234
|
+
__decorate$a([
|
|
17240
17235
|
Property('None')
|
|
17241
17236
|
], ToolbarItem.prototype, "overflow", void 0);
|
|
17242
|
-
__decorate$
|
|
17237
|
+
__decorate$a([
|
|
17243
17238
|
Property('')
|
|
17244
17239
|
], ToolbarItem.prototype, "template", void 0);
|
|
17245
|
-
__decorate$
|
|
17240
|
+
__decorate$a([
|
|
17246
17241
|
Property('Button')
|
|
17247
17242
|
], ToolbarItem.prototype, "type", void 0);
|
|
17248
|
-
__decorate$
|
|
17243
|
+
__decorate$a([
|
|
17249
17244
|
Property('Both')
|
|
17250
17245
|
], ToolbarItem.prototype, "showTextOn", void 0);
|
|
17251
|
-
__decorate$
|
|
17246
|
+
__decorate$a([
|
|
17252
17247
|
Property(null)
|
|
17253
17248
|
], ToolbarItem.prototype, "htmlAttributes", void 0);
|
|
17254
|
-
__decorate$
|
|
17249
|
+
__decorate$a([
|
|
17255
17250
|
Property('')
|
|
17256
17251
|
], ToolbarItem.prototype, "tooltipText", void 0);
|
|
17257
|
-
__decorate$
|
|
17252
|
+
__decorate$a([
|
|
17258
17253
|
Property('Left')
|
|
17259
17254
|
], ToolbarItem.prototype, "align", void 0);
|
|
17260
|
-
__decorate$
|
|
17255
|
+
__decorate$a([
|
|
17261
17256
|
Property(-1)
|
|
17262
17257
|
], ToolbarItem.prototype, "tabIndex", void 0);
|
|
17263
|
-
__decorate$
|
|
17258
|
+
__decorate$a([
|
|
17264
17259
|
Property('Custom')
|
|
17265
17260
|
], ToolbarItem.prototype, "name", void 0);
|
|
17266
|
-
__decorate$
|
|
17261
|
+
__decorate$a([
|
|
17267
17262
|
Event()
|
|
17268
17263
|
], ToolbarItem.prototype, "click", void 0);
|
|
17269
17264
|
return ToolbarItem;
|
|
17270
17265
|
}(ChildProperty));
|
|
17271
17266
|
|
|
17272
|
-
var __extends = (undefined && undefined.__extends) || (function () {
|
|
17267
|
+
var __extends$e = (undefined && undefined.__extends) || (function () {
|
|
17273
17268
|
var extendStatics = function (d, b) {
|
|
17274
17269
|
extendStatics = Object.setPrototypeOf ||
|
|
17275
17270
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -17282,13 +17277,12 @@ var __extends = (undefined && undefined.__extends) || (function () {
|
|
|
17282
17277
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
17283
17278
|
};
|
|
17284
17279
|
})();
|
|
17285
|
-
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
17280
|
+
var __decorate$b = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
17286
17281
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
17287
17282
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
17288
17283
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
17289
17284
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
17290
17285
|
};
|
|
17291
|
-
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
17292
17286
|
/**
|
|
17293
17287
|
* Represents the Schedule component that displays a list of events scheduled against specific date and timings,
|
|
17294
17288
|
* thus helping us to plan and manage it properly.
|
|
@@ -17303,7 +17297,7 @@ var __decorate = (undefined && undefined.__decorate) || function (decorators, ta
|
|
|
17303
17297
|
* ```
|
|
17304
17298
|
*/
|
|
17305
17299
|
var Schedule = /** @__PURE__ @class */ (function (_super) {
|
|
17306
|
-
__extends(Schedule, _super);
|
|
17300
|
+
__extends$e(Schedule, _super);
|
|
17307
17301
|
/**
|
|
17308
17302
|
* Constructor for creating the Schedule widget
|
|
17309
17303
|
*
|
|
@@ -17480,8 +17474,10 @@ var Schedule = /** @__PURE__ @class */ (function (_super) {
|
|
|
17480
17474
|
if (selectedDate === void 0) { selectedDate = this.selectedDate; }
|
|
17481
17475
|
// persist the selected date value
|
|
17482
17476
|
var date = selectedDate instanceof Date ? new Date(selectedDate.getTime()) : new Date(selectedDate);
|
|
17483
|
-
var minDate = this.minDate
|
|
17484
|
-
|
|
17477
|
+
var minDate = isNullOrUndefined(this.minDate) ? new Date(1900, 0, 1) :
|
|
17478
|
+
this.minDate instanceof Date ? new Date(this.minDate.getTime()) : new Date(this.minDate);
|
|
17479
|
+
var maxDate = isNullOrUndefined(this.maxDate) ? new Date(2099, 11, 31) :
|
|
17480
|
+
this.maxDate instanceof Date ? new Date(this.maxDate.getTime()) : new Date(this.maxDate);
|
|
17485
17481
|
if (minDate <= maxDate) {
|
|
17486
17482
|
if (date < minDate) {
|
|
17487
17483
|
date = minDate;
|
|
@@ -17509,6 +17505,9 @@ var Schedule = /** @__PURE__ @class */ (function (_super) {
|
|
|
17509
17505
|
};
|
|
17510
17506
|
Schedule.prototype.setViewOptions = function (isModuleLoad) {
|
|
17511
17507
|
if (isModuleLoad === void 0) { isModuleLoad = false; }
|
|
17508
|
+
if (isNullOrUndefined(this.views) || this.views.length === 0) {
|
|
17509
|
+
return;
|
|
17510
|
+
}
|
|
17512
17511
|
this.viewOptions = {};
|
|
17513
17512
|
this.viewCollections = [];
|
|
17514
17513
|
var viewName;
|
|
@@ -17581,7 +17580,7 @@ var Schedule = /** @__PURE__ @class */ (function (_super) {
|
|
|
17581
17580
|
byDate: isYearView ? false : this.group.byDate,
|
|
17582
17581
|
byGroupID: this.group.byGroupID,
|
|
17583
17582
|
allowGroupEdit: this.group.allowGroupEdit,
|
|
17584
|
-
resources: this.group.resources,
|
|
17583
|
+
resources: isNullOrUndefined(this.group.resources) ? [] : this.group.resources,
|
|
17585
17584
|
headerTooltipTemplate: this.group.headerTooltipTemplate,
|
|
17586
17585
|
enableCompactView: this.group.enableCompactView,
|
|
17587
17586
|
hideNonWorkingDays: ['Day', 'Week', 'WorkWeek', 'Month'].indexOf(this.currentView) > -1 ? this.group.hideNonWorkingDays : false
|
|
@@ -17717,7 +17716,7 @@ var Schedule = /** @__PURE__ @class */ (function (_super) {
|
|
|
17717
17716
|
var culShortNames = [];
|
|
17718
17717
|
var cldrObj;
|
|
17719
17718
|
var nameSpace = '';
|
|
17720
|
-
if (this.locale === 'en' || this.locale === 'en-US') {
|
|
17719
|
+
if (isNullOrUndefined(this.locale) || this.locale === 'en' || this.locale === 'en-US') {
|
|
17721
17720
|
nameSpace = 'days.stand-alone.';
|
|
17722
17721
|
cldrObj = (getValue(nameSpace + type, getDefaultDateObject(this.getCalendarMode())));
|
|
17723
17722
|
}
|
|
@@ -17736,7 +17735,7 @@ var Schedule = /** @__PURE__ @class */ (function (_super) {
|
|
|
17736
17735
|
this.internalTimeFormat = this.timeFormat;
|
|
17737
17736
|
return;
|
|
17738
17737
|
}
|
|
17739
|
-
if (this.locale === 'en' || this.locale === 'en-US') {
|
|
17738
|
+
if (isNullOrUndefined(this.locale) || this.locale === 'en' || this.locale === 'en-US') {
|
|
17740
17739
|
this.internalTimeFormat = (getValue('timeFormats.short', getDefaultDateObject(this.getCalendarMode())));
|
|
17741
17740
|
}
|
|
17742
17741
|
else {
|
|
@@ -17750,7 +17749,7 @@ var Schedule = /** @__PURE__ @class */ (function (_super) {
|
|
|
17750
17749
|
* @private
|
|
17751
17750
|
*/
|
|
17752
17751
|
Schedule.prototype.getCalendarMode = function () {
|
|
17753
|
-
return this.calendarMode.toLowerCase();
|
|
17752
|
+
return !isNullOrUndefined(this.calendarMode) ? this.calendarMode.toLowerCase() : 'gregorian';
|
|
17754
17753
|
};
|
|
17755
17754
|
/**
|
|
17756
17755
|
* Method to get time in string
|
|
@@ -17880,7 +17879,9 @@ var Schedule = /** @__PURE__ @class */ (function (_super) {
|
|
|
17880
17879
|
*/
|
|
17881
17880
|
Schedule.prototype.isMinMaxDate = function (date) {
|
|
17882
17881
|
if (date === void 0) { date = this.selectedDate; }
|
|
17883
|
-
|
|
17882
|
+
var maxDate = isNullOrUndefined(this.maxDate) ? new Date(2099, 11, 31) : this.maxDate;
|
|
17883
|
+
var minDate = isNullOrUndefined(this.minDate) ? new Date(1900, 0, 1) : this.minDate;
|
|
17884
|
+
return ((date.getTime() >= minDate.getTime()) && (date.getTime() <= maxDate.getTime()));
|
|
17884
17885
|
};
|
|
17885
17886
|
/**
|
|
17886
17887
|
* Method to validate the selected date
|
|
@@ -17962,7 +17963,8 @@ var Schedule = /** @__PURE__ @class */ (function (_super) {
|
|
|
17962
17963
|
if (this && isNullOrUndefined(this.uiStateValues) || !(this.enablePersistence)) {
|
|
17963
17964
|
this.uiStateValues = {
|
|
17964
17965
|
expand: false, isInitial: true, left: 0, top: 0, isGroupAdaptive: false,
|
|
17965
|
-
isIgnoreOccurrence: false, groupIndex: this.adaptiveGroupIndex, action: false,
|
|
17966
|
+
isIgnoreOccurrence: false, groupIndex: this.adaptiveGroupIndex, action: false,
|
|
17967
|
+
isBlock: false, isCustomMonth: true, isPreventTimezone: false
|
|
17966
17968
|
};
|
|
17967
17969
|
}
|
|
17968
17970
|
this.currentTimezoneDate = this.getCurrentTime();
|
|
@@ -18784,7 +18786,9 @@ var Schedule = /** @__PURE__ @class */ (function (_super) {
|
|
|
18784
18786
|
break;
|
|
18785
18787
|
case 'timezone':
|
|
18786
18788
|
this.eventBase.timezonePropertyChange(oldProp.timezone);
|
|
18787
|
-
this.headerModule
|
|
18789
|
+
if (this.headerModule) {
|
|
18790
|
+
this.headerModule.setCalendarTimezone();
|
|
18791
|
+
}
|
|
18788
18792
|
break;
|
|
18789
18793
|
case 'enableRtl':
|
|
18790
18794
|
this.setRtlClass();
|
|
@@ -18808,6 +18812,9 @@ var Schedule = /** @__PURE__ @class */ (function (_super) {
|
|
|
18808
18812
|
this.changeView(this.currentView, null, true);
|
|
18809
18813
|
}
|
|
18810
18814
|
else if (state.isDate) {
|
|
18815
|
+
if (isNullOrUndefined(this.selectedDate)) {
|
|
18816
|
+
this.setProperties({ selectedDate: this.getCurrentTime() }, true);
|
|
18817
|
+
}
|
|
18811
18818
|
this.changeDate(this.selectedDate);
|
|
18812
18819
|
}
|
|
18813
18820
|
else if (state.isLayout) {
|
|
@@ -20051,274 +20058,274 @@ var Schedule = /** @__PURE__ @class */ (function (_super) {
|
|
|
20051
20058
|
}
|
|
20052
20059
|
removeClass([this.element], removeClasses);
|
|
20053
20060
|
};
|
|
20054
|
-
__decorate([
|
|
20061
|
+
__decorate$b([
|
|
20055
20062
|
Property('auto')
|
|
20056
20063
|
], Schedule.prototype, "width", void 0);
|
|
20057
|
-
__decorate([
|
|
20064
|
+
__decorate$b([
|
|
20058
20065
|
Property('auto')
|
|
20059
20066
|
], Schedule.prototype, "height", void 0);
|
|
20060
|
-
__decorate([
|
|
20067
|
+
__decorate$b([
|
|
20061
20068
|
Property(true)
|
|
20062
20069
|
], Schedule.prototype, "showHeaderBar", void 0);
|
|
20063
|
-
__decorate([
|
|
20070
|
+
__decorate$b([
|
|
20064
20071
|
Property(true)
|
|
20065
20072
|
], Schedule.prototype, "showTimeIndicator", void 0);
|
|
20066
|
-
__decorate([
|
|
20073
|
+
__decorate$b([
|
|
20067
20074
|
Property(true)
|
|
20068
20075
|
], Schedule.prototype, "allowSwiping", void 0);
|
|
20069
|
-
__decorate([
|
|
20076
|
+
__decorate$b([
|
|
20070
20077
|
Collection([], ToolbarItem)
|
|
20071
20078
|
], Schedule.prototype, "toolbarItems", void 0);
|
|
20072
|
-
__decorate([
|
|
20079
|
+
__decorate$b([
|
|
20073
20080
|
Property('Week')
|
|
20074
20081
|
], Schedule.prototype, "currentView", void 0);
|
|
20075
|
-
__decorate([
|
|
20082
|
+
__decorate$b([
|
|
20076
20083
|
Property(['Day', 'Week', 'WorkWeek', 'Month', 'Agenda'])
|
|
20077
20084
|
], Schedule.prototype, "views", void 0);
|
|
20078
|
-
__decorate([
|
|
20085
|
+
__decorate$b([
|
|
20079
20086
|
Property(new Date())
|
|
20080
20087
|
], Schedule.prototype, "selectedDate", void 0);
|
|
20081
|
-
__decorate([
|
|
20088
|
+
__decorate$b([
|
|
20082
20089
|
Property(new Date(1900, 0, 1))
|
|
20083
20090
|
], Schedule.prototype, "minDate", void 0);
|
|
20084
|
-
__decorate([
|
|
20091
|
+
__decorate$b([
|
|
20085
20092
|
Property(new Date(2099, 11, 31))
|
|
20086
20093
|
], Schedule.prototype, "maxDate", void 0);
|
|
20087
|
-
__decorate([
|
|
20094
|
+
__decorate$b([
|
|
20088
20095
|
Property()
|
|
20089
20096
|
], Schedule.prototype, "dateFormat", void 0);
|
|
20090
|
-
__decorate([
|
|
20097
|
+
__decorate$b([
|
|
20091
20098
|
Property('Gregorian')
|
|
20092
20099
|
], Schedule.prototype, "calendarMode", void 0);
|
|
20093
|
-
__decorate([
|
|
20100
|
+
__decorate$b([
|
|
20094
20101
|
Property(true)
|
|
20095
20102
|
], Schedule.prototype, "showWeekend", void 0);
|
|
20096
|
-
__decorate([
|
|
20103
|
+
__decorate$b([
|
|
20097
20104
|
Property(0)
|
|
20098
20105
|
], Schedule.prototype, "firstDayOfWeek", void 0);
|
|
20099
|
-
__decorate([
|
|
20106
|
+
__decorate$b([
|
|
20100
20107
|
Property('FirstDay')
|
|
20101
20108
|
], Schedule.prototype, "weekRule", void 0);
|
|
20102
|
-
__decorate([
|
|
20109
|
+
__decorate$b([
|
|
20103
20110
|
Property([1, 2, 3, 4, 5])
|
|
20104
20111
|
], Schedule.prototype, "workDays", void 0);
|
|
20105
|
-
__decorate([
|
|
20112
|
+
__decorate$b([
|
|
20106
20113
|
Property(12)
|
|
20107
20114
|
], Schedule.prototype, "monthsCount", void 0);
|
|
20108
|
-
__decorate([
|
|
20115
|
+
__decorate$b([
|
|
20109
20116
|
Property('00:00')
|
|
20110
20117
|
], Schedule.prototype, "startHour", void 0);
|
|
20111
|
-
__decorate([
|
|
20118
|
+
__decorate$b([
|
|
20112
20119
|
Property('24:00')
|
|
20113
20120
|
], Schedule.prototype, "endHour", void 0);
|
|
20114
|
-
__decorate([
|
|
20121
|
+
__decorate$b([
|
|
20115
20122
|
Property(null)
|
|
20116
20123
|
], Schedule.prototype, "timeFormat", void 0);
|
|
20117
|
-
__decorate([
|
|
20124
|
+
__decorate$b([
|
|
20118
20125
|
Property(true)
|
|
20119
20126
|
], Schedule.prototype, "enableHtmlSanitizer", void 0);
|
|
20120
|
-
__decorate([
|
|
20127
|
+
__decorate$b([
|
|
20121
20128
|
Property(false)
|
|
20122
20129
|
], Schedule.prototype, "enableAllDayScroll", void 0);
|
|
20123
|
-
__decorate([
|
|
20130
|
+
__decorate$b([
|
|
20124
20131
|
Property(false)
|
|
20125
20132
|
], Schedule.prototype, "enableAdaptiveUI", void 0);
|
|
20126
|
-
__decorate([
|
|
20133
|
+
__decorate$b([
|
|
20127
20134
|
Property(true)
|
|
20128
20135
|
], Schedule.prototype, "allowResizing", void 0);
|
|
20129
|
-
__decorate([
|
|
20136
|
+
__decorate$b([
|
|
20130
20137
|
Complex({}, WorkHours)
|
|
20131
20138
|
], Schedule.prototype, "workHours", void 0);
|
|
20132
|
-
__decorate([
|
|
20139
|
+
__decorate$b([
|
|
20133
20140
|
Complex({}, TimeScale)
|
|
20134
20141
|
], Schedule.prototype, "timeScale", void 0);
|
|
20135
|
-
__decorate([
|
|
20142
|
+
__decorate$b([
|
|
20136
20143
|
Property(true)
|
|
20137
20144
|
], Schedule.prototype, "allowKeyboardInteraction", void 0);
|
|
20138
|
-
__decorate([
|
|
20145
|
+
__decorate$b([
|
|
20139
20146
|
Property(true)
|
|
20140
20147
|
], Schedule.prototype, "allowDragAndDrop", void 0);
|
|
20141
|
-
__decorate([
|
|
20148
|
+
__decorate$b([
|
|
20142
20149
|
Property()
|
|
20143
20150
|
], Schedule.prototype, "dateHeaderTemplate", void 0);
|
|
20144
|
-
__decorate([
|
|
20151
|
+
__decorate$b([
|
|
20145
20152
|
Property()
|
|
20146
20153
|
], Schedule.prototype, "dateRangeTemplate", void 0);
|
|
20147
|
-
__decorate([
|
|
20154
|
+
__decorate$b([
|
|
20148
20155
|
Property()
|
|
20149
20156
|
], Schedule.prototype, "cellHeaderTemplate", void 0);
|
|
20150
|
-
__decorate([
|
|
20157
|
+
__decorate$b([
|
|
20151
20158
|
Property()
|
|
20152
20159
|
], Schedule.prototype, "dayHeaderTemplate", void 0);
|
|
20153
|
-
__decorate([
|
|
20160
|
+
__decorate$b([
|
|
20154
20161
|
Property()
|
|
20155
20162
|
], Schedule.prototype, "monthHeaderTemplate", void 0);
|
|
20156
|
-
__decorate([
|
|
20163
|
+
__decorate$b([
|
|
20157
20164
|
Property()
|
|
20158
20165
|
], Schedule.prototype, "cellTemplate", void 0);
|
|
20159
|
-
__decorate([
|
|
20166
|
+
__decorate$b([
|
|
20160
20167
|
Property(false)
|
|
20161
20168
|
], Schedule.prototype, "readonly", void 0);
|
|
20162
|
-
__decorate([
|
|
20169
|
+
__decorate$b([
|
|
20163
20170
|
Property(true)
|
|
20164
20171
|
], Schedule.prototype, "showQuickInfo", void 0);
|
|
20165
|
-
__decorate([
|
|
20172
|
+
__decorate$b([
|
|
20166
20173
|
Property(false)
|
|
20167
20174
|
], Schedule.prototype, "allowInline", void 0);
|
|
20168
|
-
__decorate([
|
|
20175
|
+
__decorate$b([
|
|
20169
20176
|
Property(true)
|
|
20170
20177
|
], Schedule.prototype, "allowMultiCellSelection", void 0);
|
|
20171
|
-
__decorate([
|
|
20178
|
+
__decorate$b([
|
|
20172
20179
|
Property(true)
|
|
20173
20180
|
], Schedule.prototype, "allowMultiRowSelection", void 0);
|
|
20174
|
-
__decorate([
|
|
20181
|
+
__decorate$b([
|
|
20175
20182
|
Property(false)
|
|
20176
20183
|
], Schedule.prototype, "quickInfoOnSelectionEnd", void 0);
|
|
20177
|
-
__decorate([
|
|
20184
|
+
__decorate$b([
|
|
20178
20185
|
Property(false)
|
|
20179
20186
|
], Schedule.prototype, "showWeekNumber", void 0);
|
|
20180
|
-
__decorate([
|
|
20187
|
+
__decorate$b([
|
|
20181
20188
|
Property(false)
|
|
20182
20189
|
], Schedule.prototype, "rowAutoHeight", void 0);
|
|
20183
|
-
__decorate([
|
|
20190
|
+
__decorate$b([
|
|
20184
20191
|
Property(false)
|
|
20185
20192
|
], Schedule.prototype, "allowMultiDrag", void 0);
|
|
20186
|
-
__decorate([
|
|
20193
|
+
__decorate$b([
|
|
20187
20194
|
Property(0)
|
|
20188
20195
|
], Schedule.prototype, "firstMonthOfYear", void 0);
|
|
20189
|
-
__decorate([
|
|
20196
|
+
__decorate$b([
|
|
20190
20197
|
Property()
|
|
20191
20198
|
], Schedule.prototype, "editorTemplate", void 0);
|
|
20192
|
-
__decorate([
|
|
20199
|
+
__decorate$b([
|
|
20193
20200
|
Property()
|
|
20194
20201
|
], Schedule.prototype, "editorHeaderTemplate", void 0);
|
|
20195
|
-
__decorate([
|
|
20202
|
+
__decorate$b([
|
|
20196
20203
|
Property()
|
|
20197
20204
|
], Schedule.prototype, "editorFooterTemplate", void 0);
|
|
20198
|
-
__decorate([
|
|
20205
|
+
__decorate$b([
|
|
20199
20206
|
Complex({}, QuickInfoTemplates)
|
|
20200
20207
|
], Schedule.prototype, "quickInfoTemplates", void 0);
|
|
20201
|
-
__decorate([
|
|
20208
|
+
__decorate$b([
|
|
20202
20209
|
Property(7)
|
|
20203
20210
|
], Schedule.prototype, "agendaDaysCount", void 0);
|
|
20204
|
-
__decorate([
|
|
20211
|
+
__decorate$b([
|
|
20205
20212
|
Property(true)
|
|
20206
20213
|
], Schedule.prototype, "hideEmptyAgendaDays", void 0);
|
|
20207
|
-
__decorate([
|
|
20214
|
+
__decorate$b([
|
|
20208
20215
|
Property(true)
|
|
20209
20216
|
], Schedule.prototype, "enableRecurrenceValidation", void 0);
|
|
20210
|
-
__decorate([
|
|
20217
|
+
__decorate$b([
|
|
20211
20218
|
Property()
|
|
20212
20219
|
], Schedule.prototype, "timezone", void 0);
|
|
20213
|
-
__decorate([
|
|
20220
|
+
__decorate$b([
|
|
20214
20221
|
Complex({}, EventSettings)
|
|
20215
20222
|
], Schedule.prototype, "eventSettings", void 0);
|
|
20216
|
-
__decorate([
|
|
20223
|
+
__decorate$b([
|
|
20217
20224
|
Property(timezoneData)
|
|
20218
20225
|
], Schedule.prototype, "timezoneDataSource", void 0);
|
|
20219
|
-
__decorate([
|
|
20226
|
+
__decorate$b([
|
|
20220
20227
|
Property()
|
|
20221
20228
|
], Schedule.prototype, "resourceHeaderTemplate", void 0);
|
|
20222
|
-
__decorate([
|
|
20229
|
+
__decorate$b([
|
|
20223
20230
|
Property()
|
|
20224
20231
|
], Schedule.prototype, "headerIndentTemplate", void 0);
|
|
20225
|
-
__decorate([
|
|
20232
|
+
__decorate$b([
|
|
20226
20233
|
Complex({}, Group)
|
|
20227
20234
|
], Schedule.prototype, "group", void 0);
|
|
20228
|
-
__decorate([
|
|
20235
|
+
__decorate$b([
|
|
20229
20236
|
Collection([], Resources)
|
|
20230
20237
|
], Schedule.prototype, "resources", void 0);
|
|
20231
|
-
__decorate([
|
|
20238
|
+
__decorate$b([
|
|
20232
20239
|
Collection([], HeaderRows)
|
|
20233
20240
|
], Schedule.prototype, "headerRows", void 0);
|
|
20234
|
-
__decorate([
|
|
20241
|
+
__decorate$b([
|
|
20235
20242
|
Property()
|
|
20236
20243
|
], Schedule.prototype, "cssClass", void 0);
|
|
20237
|
-
__decorate([
|
|
20244
|
+
__decorate$b([
|
|
20238
20245
|
Property()
|
|
20239
20246
|
], Schedule.prototype, "eventDragArea", void 0);
|
|
20240
|
-
__decorate([
|
|
20247
|
+
__decorate$b([
|
|
20241
20248
|
Event()
|
|
20242
20249
|
], Schedule.prototype, "created", void 0);
|
|
20243
|
-
__decorate([
|
|
20250
|
+
__decorate$b([
|
|
20244
20251
|
Event()
|
|
20245
20252
|
], Schedule.prototype, "destroyed", void 0);
|
|
20246
|
-
__decorate([
|
|
20253
|
+
__decorate$b([
|
|
20247
20254
|
Event()
|
|
20248
20255
|
], Schedule.prototype, "cellClick", void 0);
|
|
20249
|
-
__decorate([
|
|
20256
|
+
__decorate$b([
|
|
20250
20257
|
Event()
|
|
20251
20258
|
], Schedule.prototype, "cellDoubleClick", void 0);
|
|
20252
|
-
__decorate([
|
|
20259
|
+
__decorate$b([
|
|
20253
20260
|
Event()
|
|
20254
20261
|
], Schedule.prototype, "moreEventsClick", void 0);
|
|
20255
|
-
__decorate([
|
|
20262
|
+
__decorate$b([
|
|
20256
20263
|
Event()
|
|
20257
20264
|
], Schedule.prototype, "hover", void 0);
|
|
20258
|
-
__decorate([
|
|
20265
|
+
__decorate$b([
|
|
20259
20266
|
Event()
|
|
20260
20267
|
], Schedule.prototype, "select", void 0);
|
|
20261
|
-
__decorate([
|
|
20268
|
+
__decorate$b([
|
|
20262
20269
|
Event()
|
|
20263
20270
|
], Schedule.prototype, "actionBegin", void 0);
|
|
20264
|
-
__decorate([
|
|
20271
|
+
__decorate$b([
|
|
20265
20272
|
Event()
|
|
20266
20273
|
], Schedule.prototype, "actionComplete", void 0);
|
|
20267
|
-
__decorate([
|
|
20274
|
+
__decorate$b([
|
|
20268
20275
|
Event()
|
|
20269
20276
|
], Schedule.prototype, "actionFailure", void 0);
|
|
20270
|
-
__decorate([
|
|
20277
|
+
__decorate$b([
|
|
20271
20278
|
Event()
|
|
20272
20279
|
], Schedule.prototype, "navigating", void 0);
|
|
20273
|
-
__decorate([
|
|
20280
|
+
__decorate$b([
|
|
20274
20281
|
Event()
|
|
20275
20282
|
], Schedule.prototype, "renderCell", void 0);
|
|
20276
|
-
__decorate([
|
|
20283
|
+
__decorate$b([
|
|
20277
20284
|
Event()
|
|
20278
20285
|
], Schedule.prototype, "eventClick", void 0);
|
|
20279
|
-
__decorate([
|
|
20286
|
+
__decorate$b([
|
|
20280
20287
|
Event()
|
|
20281
20288
|
], Schedule.prototype, "eventDoubleClick", void 0);
|
|
20282
|
-
__decorate([
|
|
20289
|
+
__decorate$b([
|
|
20283
20290
|
Event()
|
|
20284
20291
|
], Schedule.prototype, "eventRendered", void 0);
|
|
20285
|
-
__decorate([
|
|
20292
|
+
__decorate$b([
|
|
20286
20293
|
Event()
|
|
20287
20294
|
], Schedule.prototype, "dataBinding", void 0);
|
|
20288
|
-
__decorate([
|
|
20295
|
+
__decorate$b([
|
|
20289
20296
|
Event()
|
|
20290
20297
|
], Schedule.prototype, "popupOpen", void 0);
|
|
20291
|
-
__decorate([
|
|
20298
|
+
__decorate$b([
|
|
20292
20299
|
Event()
|
|
20293
20300
|
], Schedule.prototype, "popupClose", void 0);
|
|
20294
|
-
__decorate([
|
|
20301
|
+
__decorate$b([
|
|
20295
20302
|
Event()
|
|
20296
20303
|
], Schedule.prototype, "dragStart", void 0);
|
|
20297
|
-
__decorate([
|
|
20304
|
+
__decorate$b([
|
|
20298
20305
|
Event()
|
|
20299
20306
|
], Schedule.prototype, "drag", void 0);
|
|
20300
|
-
__decorate([
|
|
20307
|
+
__decorate$b([
|
|
20301
20308
|
Event()
|
|
20302
20309
|
], Schedule.prototype, "dragStop", void 0);
|
|
20303
|
-
__decorate([
|
|
20310
|
+
__decorate$b([
|
|
20304
20311
|
Event()
|
|
20305
20312
|
], Schedule.prototype, "resizeStart", void 0);
|
|
20306
|
-
__decorate([
|
|
20313
|
+
__decorate$b([
|
|
20307
20314
|
Event()
|
|
20308
20315
|
], Schedule.prototype, "resizing", void 0);
|
|
20309
|
-
__decorate([
|
|
20316
|
+
__decorate$b([
|
|
20310
20317
|
Event()
|
|
20311
20318
|
], Schedule.prototype, "resizeStop", void 0);
|
|
20312
|
-
__decorate([
|
|
20319
|
+
__decorate$b([
|
|
20313
20320
|
Event()
|
|
20314
20321
|
], Schedule.prototype, "virtualScrollStart", void 0);
|
|
20315
|
-
__decorate([
|
|
20322
|
+
__decorate$b([
|
|
20316
20323
|
Event()
|
|
20317
20324
|
], Schedule.prototype, "virtualScrollStop", void 0);
|
|
20318
|
-
__decorate([
|
|
20325
|
+
__decorate$b([
|
|
20319
20326
|
Event()
|
|
20320
20327
|
], Schedule.prototype, "dataBound", void 0);
|
|
20321
|
-
Schedule = __decorate([
|
|
20328
|
+
Schedule = __decorate$b([
|
|
20322
20329
|
NotifyPropertyChanges
|
|
20323
20330
|
], Schedule);
|
|
20324
20331
|
return Schedule;
|
|
@@ -20707,7 +20714,6 @@ var ActionBase = /** @__PURE__ @class */ (function () {
|
|
|
20707
20714
|
};
|
|
20708
20715
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
20709
20716
|
ActionBase.prototype.renderDynamicElement = function (cellTd, element, isAppointment) {
|
|
20710
|
-
if (isAppointment === void 0) { isAppointment = false; }
|
|
20711
20717
|
if (cellTd.querySelector('.' + APPOINTMENT_WRAPPER_CLASS)) {
|
|
20712
20718
|
cellTd.querySelector('.' + APPOINTMENT_WRAPPER_CLASS).appendChild(element);
|
|
20713
20719
|
}
|
|
@@ -20786,7 +20792,7 @@ var ActionBase = /** @__PURE__ @class */ (function () {
|
|
|
20786
20792
|
return ActionBase;
|
|
20787
20793
|
}());
|
|
20788
20794
|
|
|
20789
|
-
var __extends$
|
|
20795
|
+
var __extends$f = (undefined && undefined.__extends) || (function () {
|
|
20790
20796
|
var extendStatics = function (d, b) {
|
|
20791
20797
|
extendStatics = Object.setPrototypeOf ||
|
|
20792
20798
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -20799,12 +20805,11 @@ var __extends$15 = (undefined && undefined.__extends) || (function () {
|
|
|
20799
20805
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
20800
20806
|
};
|
|
20801
20807
|
})();
|
|
20802
|
-
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
20803
20808
|
/**
|
|
20804
20809
|
* Schedule events resize actions
|
|
20805
20810
|
*/
|
|
20806
20811
|
var Resize = /** @__PURE__ @class */ (function (_super) {
|
|
20807
|
-
__extends$
|
|
20812
|
+
__extends$f(Resize, _super);
|
|
20808
20813
|
function Resize() {
|
|
20809
20814
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
20810
20815
|
}
|
|
@@ -21399,7 +21404,7 @@ var Resize = /** @__PURE__ @class */ (function (_super) {
|
|
|
21399
21404
|
return Resize;
|
|
21400
21405
|
}(ActionBase));
|
|
21401
21406
|
|
|
21402
|
-
var __extends$
|
|
21407
|
+
var __extends$g = (undefined && undefined.__extends) || (function () {
|
|
21403
21408
|
var extendStatics = function (d, b) {
|
|
21404
21409
|
extendStatics = Object.setPrototypeOf ||
|
|
21405
21410
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -21412,13 +21417,12 @@ var __extends$17 = (undefined && undefined.__extends) || (function () {
|
|
|
21412
21417
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
21413
21418
|
};
|
|
21414
21419
|
})();
|
|
21415
|
-
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
21416
21420
|
var EVENT_GAP$2 = 2;
|
|
21417
21421
|
/**
|
|
21418
21422
|
* Year view events render
|
|
21419
21423
|
*/
|
|
21420
21424
|
var YearEvent = /** @__PURE__ @class */ (function (_super) {
|
|
21421
|
-
__extends$
|
|
21425
|
+
__extends$g(YearEvent, _super);
|
|
21422
21426
|
function YearEvent(parent) {
|
|
21423
21427
|
var _this = _super.call(this, parent, 'day') || this;
|
|
21424
21428
|
_this.isResource = false;
|
|
@@ -21570,7 +21574,8 @@ var YearEvent = /** @__PURE__ @class */ (function (_super) {
|
|
|
21570
21574
|
return "continue";
|
|
21571
21575
|
}
|
|
21572
21576
|
}
|
|
21573
|
-
var enableAppRender = this_1.maxOrIndicator || (overlapIndex < eventsPerRow) ||
|
|
21577
|
+
var enableAppRender = this_1.maxOrIndicator || (overlapIndex < eventsPerRow) ||
|
|
21578
|
+
(this_1.cellHeight > availedHeight);
|
|
21574
21579
|
if (this_1.parent.rowAutoHeight || enableAppRender || this_1.cellHeight > availedHeight) {
|
|
21575
21580
|
this_1.renderEvent(eventWrapper, eventData, row, leftValue, rightValue, monthStart, dayIndex);
|
|
21576
21581
|
if (this_1.parent.rowAutoHeight || this_1.cellHeight > availedHeight) {
|
|
@@ -22022,7 +22027,7 @@ var YearEvent = /** @__PURE__ @class */ (function (_super) {
|
|
|
22022
22027
|
return YearEvent;
|
|
22023
22028
|
}(TimelineEvent));
|
|
22024
22029
|
|
|
22025
|
-
var __extends$
|
|
22030
|
+
var __extends$h = (undefined && undefined.__extends) || (function () {
|
|
22026
22031
|
var extendStatics = function (d, b) {
|
|
22027
22032
|
extendStatics = Object.setPrototypeOf ||
|
|
22028
22033
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -22035,13 +22040,12 @@ var __extends$16 = (undefined && undefined.__extends) || (function () {
|
|
|
22035
22040
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
22036
22041
|
};
|
|
22037
22042
|
})();
|
|
22038
|
-
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
22039
22043
|
var MINUTES_PER_DAY = 1440;
|
|
22040
22044
|
/**
|
|
22041
22045
|
* Schedule events drag actions
|
|
22042
22046
|
*/
|
|
22043
22047
|
var DragAndDrop = /** @__PURE__ @class */ (function (_super) {
|
|
22044
|
-
__extends$
|
|
22048
|
+
__extends$h(DragAndDrop, _super);
|
|
22045
22049
|
function DragAndDrop() {
|
|
22046
22050
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
22047
22051
|
_this.widthUptoCursorPoint = 0;
|
|
@@ -22308,7 +22312,8 @@ var DragAndDrop = /** @__PURE__ @class */ (function (_super) {
|
|
|
22308
22312
|
if (this.parent.quickPopup) {
|
|
22309
22313
|
this.parent.quickPopup.quickPopupHide(true);
|
|
22310
22314
|
}
|
|
22311
|
-
if ((!isNullOrUndefined(e.target)) && e.target.classList &&
|
|
22315
|
+
if ((!isNullOrUndefined(e.target)) && e.target.classList &&
|
|
22316
|
+
e.target.classList.contains(DISABLE_DATES)) {
|
|
22312
22317
|
return;
|
|
22313
22318
|
}
|
|
22314
22319
|
var eventObj = extend({}, this.actionObj.event, null, true);
|
|
@@ -22552,13 +22557,13 @@ var DragAndDrop = /** @__PURE__ @class */ (function (_super) {
|
|
|
22552
22557
|
if (this.parent.currentView === 'TimelineYear' && (!td.classList.contains(WORK_CELLS_CLASS) || td.classList.contains(OTHERMONTH_CLASS))) {
|
|
22553
22558
|
return;
|
|
22554
22559
|
}
|
|
22555
|
-
var dragStart
|
|
22556
|
-
var dragEnd = new Date(dragStart
|
|
22560
|
+
var dragStart = this.parent.getDateFromElement(td);
|
|
22561
|
+
var dragEnd = new Date(dragStart.getTime());
|
|
22557
22562
|
dragEnd.setMilliseconds(eventDuration);
|
|
22558
22563
|
if (this.parent.activeViewOptions.group.resources.length > 0) {
|
|
22559
22564
|
this.actionObj.groupIndex = parseInt(td.getAttribute('data-group-index'), 10);
|
|
22560
22565
|
}
|
|
22561
|
-
this.actionObj.start = new Date(dragStart
|
|
22566
|
+
this.actionObj.start = new Date(dragStart.getTime());
|
|
22562
22567
|
this.actionObj.end = new Date(dragEnd.getTime());
|
|
22563
22568
|
this.actionObj.clone.style.top = formatUnit(td.offsetParent.offsetTop);
|
|
22564
22569
|
this.actionObj.clone.style.left = formatUnit(td.offsetLeft);
|
|
@@ -22630,13 +22635,13 @@ var DragAndDrop = /** @__PURE__ @class */ (function (_super) {
|
|
|
22630
22635
|
if (this.parent.activeViewOptions.group.resources.length > 0 && !this.parent.uiStateValues.isGroupAdaptive) {
|
|
22631
22636
|
this.actionObj.groupIndex = parseInt(td.getAttribute('data-group-index'), 10);
|
|
22632
22637
|
}
|
|
22633
|
-
var dragStart
|
|
22638
|
+
var dragStart;
|
|
22634
22639
|
var dragEnd;
|
|
22635
22640
|
if (this.parent.activeViewOptions.timeScale.enable && !this.isAllDayDrag) {
|
|
22636
22641
|
this.appendCloneElement(this.getEventWrapper(colIndex));
|
|
22637
|
-
dragStart
|
|
22638
|
-
dragStart
|
|
22639
|
-
dragEnd = new Date(dragStart
|
|
22642
|
+
dragStart = this.parent.getDateFromElement(td);
|
|
22643
|
+
dragStart.setMinutes(dragStart.getMinutes() + (diffInMinutes / heightPerMinute));
|
|
22644
|
+
dragEnd = new Date(dragStart.getTime());
|
|
22640
22645
|
if (this.actionObj.element.classList.contains(ALLDAY_APPOINTMENT_CLASS)) {
|
|
22641
22646
|
dragEnd.setMinutes(dragEnd.getMinutes() + this.actionObj.slotInterval);
|
|
22642
22647
|
}
|
|
@@ -22645,10 +22650,10 @@ var DragAndDrop = /** @__PURE__ @class */ (function (_super) {
|
|
|
22645
22650
|
}
|
|
22646
22651
|
}
|
|
22647
22652
|
else {
|
|
22648
|
-
dragStart
|
|
22649
|
-
dragStart
|
|
22650
|
-
dragStart
|
|
22651
|
-
dragEnd = new Date(dragStart
|
|
22653
|
+
dragStart = this.parent.getDateFromElement(td);
|
|
22654
|
+
dragStart.setDate(dragStart.getDate() - this.daysVariation);
|
|
22655
|
+
dragStart.setHours(eventStart.getHours(), eventStart.getMinutes(), eventStart.getSeconds());
|
|
22656
|
+
dragEnd = new Date(dragStart.getTime());
|
|
22652
22657
|
dragEnd.setMilliseconds(eventDuration);
|
|
22653
22658
|
if (!this.actionObj.element.classList.contains(ALLDAY_APPOINTMENT_CLASS) &&
|
|
22654
22659
|
this.actionObj.clone.classList.contains(ALLDAY_APPOINTMENT_CLASS)) {
|
|
@@ -22656,9 +22661,9 @@ var DragAndDrop = /** @__PURE__ @class */ (function (_super) {
|
|
|
22656
22661
|
}
|
|
22657
22662
|
var index_1 = this.parent.activeViewOptions.group.byDate || (this.parent.virtualScrollModule &&
|
|
22658
22663
|
!this.parent.activeViewOptions.timeScale.enable) ? colIndex : undefined;
|
|
22659
|
-
this.updateAllDayEvents(dragStart
|
|
22664
|
+
this.updateAllDayEvents(dragStart, dragEnd, index_1);
|
|
22660
22665
|
}
|
|
22661
|
-
this.actionObj.start = new Date(+dragStart
|
|
22666
|
+
this.actionObj.start = new Date(+dragStart);
|
|
22662
22667
|
this.actionObj.end = new Date(+dragEnd);
|
|
22663
22668
|
var event = this.getUpdatedEvent(this.actionObj.start, this.actionObj.end, this.actionObj.event);
|
|
22664
22669
|
var dynamicWrappers = [].slice.call(this.parent.element.querySelectorAll('.e-dynamic-clone'));
|
|
@@ -22976,13 +22981,13 @@ var DragAndDrop = /** @__PURE__ @class */ (function (_super) {
|
|
|
22976
22981
|
this.actionObj.groupIndex = parseInt(td.getAttribute('data-group-index'), 10);
|
|
22977
22982
|
}
|
|
22978
22983
|
var timeString = new Date(currentDate.setDate(currentDate.getDate() - this.daysVariation));
|
|
22979
|
-
var dragStart
|
|
22984
|
+
var dragStart = new Date(timeString.getTime());
|
|
22980
22985
|
var startTimeDiff = getUniversalTime(eventObj[this.parent.eventFields.startTime]) -
|
|
22981
22986
|
getUniversalTime(resetTime(new Date(+eventObj[this.parent.eventFields.startTime])));
|
|
22982
|
-
dragStart
|
|
22983
|
-
var dragEnd = new Date(dragStart
|
|
22987
|
+
dragStart.setMilliseconds(startTimeDiff);
|
|
22988
|
+
var dragEnd = new Date(dragStart.getTime());
|
|
22984
22989
|
dragEnd.setMilliseconds(eventDuration);
|
|
22985
|
-
this.actionObj.start = new Date(dragStart
|
|
22990
|
+
this.actionObj.start = new Date(dragStart.getTime());
|
|
22986
22991
|
this.actionObj.end = new Date(dragEnd.getTime());
|
|
22987
22992
|
}
|
|
22988
22993
|
}
|
|
@@ -23398,10 +23403,11 @@ var ViewBase = /** @__PURE__ @class */ (function () {
|
|
|
23398
23403
|
}
|
|
23399
23404
|
});
|
|
23400
23405
|
});
|
|
23401
|
-
|
|
23406
|
+
var rendereData = this.parent.resourceBase.renderedResources;
|
|
23407
|
+
if (!isNullOrUndefined(rendereData) && rendereData.length > 0) {
|
|
23402
23408
|
for (var i = 0; i < resourceTd.length; i++) {
|
|
23403
23409
|
var element = resourceTd[parseInt(i.toString(), 10)];
|
|
23404
|
-
var data =
|
|
23410
|
+
var data = rendereData[parseInt(i.toString(), 10)];
|
|
23405
23411
|
if (this.parent.activeView && !isNullOrUndefined(element) && !isNullOrUndefined(data)
|
|
23406
23412
|
&& parseInt(element.getAttribute('data-group-index'), 10) === data.groupIndex) {
|
|
23407
23413
|
this.parent.activeView.setResourceHeaderContent(element, data, RESOURCE_TEXT_CLASS);
|
|
@@ -23466,6 +23472,9 @@ var ViewBase = /** @__PURE__ @class */ (function () {
|
|
|
23466
23472
|
table.setAttribute('aria-label', this.getLabelText(this.parent.currentView));
|
|
23467
23473
|
};
|
|
23468
23474
|
ViewBase.prototype.createColGroup = function (table, lastRow) {
|
|
23475
|
+
if (isNullOrUndefined(lastRow)) {
|
|
23476
|
+
return;
|
|
23477
|
+
}
|
|
23469
23478
|
var length = lastRow.length;
|
|
23470
23479
|
if (lastRow[0] && lastRow[0].colSpan) {
|
|
23471
23480
|
length = lastRow.map(function (value) { return value.colSpan; }).reduce(function (prev, next) { return prev + next; });
|
|
@@ -23609,7 +23618,7 @@ var ViewBase = /** @__PURE__ @class */ (function () {
|
|
|
23609
23618
|
};
|
|
23610
23619
|
ViewBase.prototype.isWorkDay = function (date, workDays) {
|
|
23611
23620
|
if (workDays === void 0) { workDays = this.parent.activeViewOptions.workDays; }
|
|
23612
|
-
if (workDays.indexOf(date.getDay()) >= 0) {
|
|
23621
|
+
if (!isNullOrUndefined(workDays) && workDays.indexOf(date.getDay()) >= 0) {
|
|
23613
23622
|
return true;
|
|
23614
23623
|
}
|
|
23615
23624
|
return false;
|
|
@@ -23736,7 +23745,7 @@ var ViewBase = /** @__PURE__ @class */ (function () {
|
|
|
23736
23745
|
}
|
|
23737
23746
|
var formattedStr;
|
|
23738
23747
|
var longDateFormat;
|
|
23739
|
-
if (this.parent.locale === 'en' || this.parent.locale === 'en-US') {
|
|
23748
|
+
if (isNullOrUndefined(this.parent.locale) || this.parent.locale === 'en' || this.parent.locale === 'en-US') {
|
|
23740
23749
|
longDateFormat = getValue('dateFormats.long', getDefaultDateObject(mode));
|
|
23741
23750
|
}
|
|
23742
23751
|
else {
|
|
@@ -23972,7 +23981,7 @@ var ViewBase = /** @__PURE__ @class */ (function () {
|
|
|
23972
23981
|
return ViewBase;
|
|
23973
23982
|
}());
|
|
23974
23983
|
|
|
23975
|
-
var __extends$
|
|
23984
|
+
var __extends$i = (undefined && undefined.__extends) || (function () {
|
|
23976
23985
|
var extendStatics = function (d, b) {
|
|
23977
23986
|
extendStatics = Object.setPrototypeOf ||
|
|
23978
23987
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -23989,7 +23998,7 @@ var __extends$19 = (undefined && undefined.__extends) || (function () {
|
|
|
23989
23998
|
* vertical view
|
|
23990
23999
|
*/
|
|
23991
24000
|
var VerticalView = /** @__PURE__ @class */ (function (_super) {
|
|
23992
|
-
__extends$
|
|
24001
|
+
__extends$i(VerticalView, _super);
|
|
23993
24002
|
function VerticalView(parent) {
|
|
23994
24003
|
var _this = _super.call(this, parent) || this;
|
|
23995
24004
|
_this.viewClass = 'e-day-view';
|
|
@@ -24100,6 +24109,9 @@ var VerticalView = /** @__PURE__ @class */ (function (_super) {
|
|
|
24100
24109
|
this.highlightCurrentTime();
|
|
24101
24110
|
}
|
|
24102
24111
|
this.retainScrollPosition();
|
|
24112
|
+
if (!isNullOrUndefined(timeCells) && !isNullOrUndefined(content) && timeCells.scrollTop !== content.scrollTop) {
|
|
24113
|
+
timeCells.scrollTop = content.scrollTop;
|
|
24114
|
+
}
|
|
24103
24115
|
};
|
|
24104
24116
|
VerticalView.prototype.setContentHeight = function (element, leftPanelElement, height) {
|
|
24105
24117
|
if (this.parent.isAdaptive && !this.isTimelineView()) {
|
|
@@ -24185,12 +24197,12 @@ var VerticalView = /** @__PURE__ @class */ (function (_super) {
|
|
|
24185
24197
|
var end = this.parent.getStartEndTime(workEndHour);
|
|
24186
24198
|
for (var _i = 0, renderDates_1 = renderDates; _i < renderDates_1.length; _i++) {
|
|
24187
24199
|
var col = renderDates_1[_i];
|
|
24188
|
-
var classList
|
|
24200
|
+
var classList = [HEADER_CELLS_CLASS];
|
|
24189
24201
|
if (this.isCurrentDate(col)) {
|
|
24190
|
-
classList
|
|
24202
|
+
classList.push(CURRENT_DAY_CLASS);
|
|
24191
24203
|
}
|
|
24192
24204
|
dateCol.push({
|
|
24193
|
-
date: col, type: 'dateHeader', className: classList
|
|
24205
|
+
date: col, type: 'dateHeader', className: classList, colSpan: 1,
|
|
24194
24206
|
workDays: workDays, startHour: new Date(+start), endHour: new Date(+end)
|
|
24195
24207
|
});
|
|
24196
24208
|
}
|
|
@@ -24821,7 +24833,7 @@ var VerticalView = /** @__PURE__ @class */ (function (_super) {
|
|
|
24821
24833
|
return VerticalView;
|
|
24822
24834
|
}(ViewBase));
|
|
24823
24835
|
|
|
24824
|
-
var __extends$
|
|
24836
|
+
var __extends$j = (undefined && undefined.__extends) || (function () {
|
|
24825
24837
|
var extendStatics = function (d, b) {
|
|
24826
24838
|
extendStatics = Object.setPrototypeOf ||
|
|
24827
24839
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -24838,7 +24850,7 @@ var __extends$18 = (undefined && undefined.__extends) || (function () {
|
|
|
24838
24850
|
* day view
|
|
24839
24851
|
*/
|
|
24840
24852
|
var Day = /** @__PURE__ @class */ (function (_super) {
|
|
24841
|
-
__extends$
|
|
24853
|
+
__extends$j(Day, _super);
|
|
24842
24854
|
/**
|
|
24843
24855
|
* Constructor for day view
|
|
24844
24856
|
*
|
|
@@ -24860,7 +24872,7 @@ var Day = /** @__PURE__ @class */ (function (_super) {
|
|
|
24860
24872
|
return Day;
|
|
24861
24873
|
}(VerticalView));
|
|
24862
24874
|
|
|
24863
|
-
var __extends$
|
|
24875
|
+
var __extends$k = (undefined && undefined.__extends) || (function () {
|
|
24864
24876
|
var extendStatics = function (d, b) {
|
|
24865
24877
|
extendStatics = Object.setPrototypeOf ||
|
|
24866
24878
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -24877,7 +24889,7 @@ var __extends$20 = (undefined && undefined.__extends) || (function () {
|
|
|
24877
24889
|
* week view
|
|
24878
24890
|
*/
|
|
24879
24891
|
var Week = /** @__PURE__ @class */ (function (_super) {
|
|
24880
|
-
__extends$
|
|
24892
|
+
__extends$k(Week, _super);
|
|
24881
24893
|
/**
|
|
24882
24894
|
* Constructor for week view
|
|
24883
24895
|
*
|
|
@@ -24905,7 +24917,7 @@ var Week = /** @__PURE__ @class */ (function (_super) {
|
|
|
24905
24917
|
return Week;
|
|
24906
24918
|
}(VerticalView));
|
|
24907
24919
|
|
|
24908
|
-
var __extends$
|
|
24920
|
+
var __extends$l = (undefined && undefined.__extends) || (function () {
|
|
24909
24921
|
var extendStatics = function (d, b) {
|
|
24910
24922
|
extendStatics = Object.setPrototypeOf ||
|
|
24911
24923
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -24922,7 +24934,7 @@ var __extends$21 = (undefined && undefined.__extends) || (function () {
|
|
|
24922
24934
|
* work week view
|
|
24923
24935
|
*/
|
|
24924
24936
|
var WorkWeek = /** @__PURE__ @class */ (function (_super) {
|
|
24925
|
-
__extends$
|
|
24937
|
+
__extends$l(WorkWeek, _super);
|
|
24926
24938
|
/**
|
|
24927
24939
|
* Constructor for work week view
|
|
24928
24940
|
*
|
|
@@ -24950,7 +24962,7 @@ var WorkWeek = /** @__PURE__ @class */ (function (_super) {
|
|
|
24950
24962
|
return WorkWeek;
|
|
24951
24963
|
}(VerticalView));
|
|
24952
24964
|
|
|
24953
|
-
var __extends$
|
|
24965
|
+
var __extends$m = (undefined && undefined.__extends) || (function () {
|
|
24954
24966
|
var extendStatics = function (d, b) {
|
|
24955
24967
|
extendStatics = Object.setPrototypeOf ||
|
|
24956
24968
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -24963,12 +24975,11 @@ var __extends$22 = (undefined && undefined.__extends) || (function () {
|
|
|
24963
24975
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
24964
24976
|
};
|
|
24965
24977
|
})();
|
|
24966
|
-
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
24967
24978
|
/**
|
|
24968
24979
|
* month view
|
|
24969
24980
|
*/
|
|
24970
24981
|
var Month = /** @__PURE__ @class */ (function (_super) {
|
|
24971
|
-
__extends$
|
|
24982
|
+
__extends$m(Month, _super);
|
|
24972
24983
|
function Month(parent) {
|
|
24973
24984
|
var _this = _super.call(this, parent) || this;
|
|
24974
24985
|
_this.dayNameFormat = 'wide';
|
|
@@ -25118,12 +25129,12 @@ var Month = /** @__PURE__ @class */ (function (_super) {
|
|
|
25118
25129
|
var dateSlots = [];
|
|
25119
25130
|
var isCurrentMonth = this.isCurrentMonth(this.parent.selectedDate);
|
|
25120
25131
|
for (var col = 0; col < count; col++) {
|
|
25121
|
-
var classList
|
|
25132
|
+
var classList = [HEADER_CELLS_CLASS];
|
|
25122
25133
|
var currentDateIndex = renderDates.slice(0, count).map(function (date) { return date.getDay(); });
|
|
25123
25134
|
if (isCurrentMonth && currentDateIndex.indexOf(this.parent.currentTimezoneDate.getDay()) === col) {
|
|
25124
|
-
classList
|
|
25135
|
+
classList.push(CURRENT_DAY_CLASS);
|
|
25125
25136
|
}
|
|
25126
|
-
dateSlots.push({ date: renderDates[parseInt(col.toString(), 10)], type: 'monthDay', className: classList
|
|
25137
|
+
dateSlots.push({ date: renderDates[parseInt(col.toString(), 10)], type: 'monthDay', className: classList, colSpan: 1, workDays: workDays });
|
|
25127
25138
|
}
|
|
25128
25139
|
return dateSlots;
|
|
25129
25140
|
};
|
|
@@ -25320,10 +25331,10 @@ var Month = /** @__PURE__ @class */ (function (_super) {
|
|
|
25320
25331
|
return [];
|
|
25321
25332
|
}
|
|
25322
25333
|
var slotDatas = [];
|
|
25323
|
-
var prepareSlots = function (rowIndex, renderDate, resData, classList
|
|
25334
|
+
var prepareSlots = function (rowIndex, renderDate, resData, classList) {
|
|
25324
25335
|
var data = {
|
|
25325
25336
|
date: new Date(+renderDate), groupIndex: resData.groupIndex, workDays: resData.workDays,
|
|
25326
|
-
type: 'monthCells', className: classList
|
|
25337
|
+
type: 'monthCells', className: classList || [WORK_CELLS_CLASS]
|
|
25327
25338
|
};
|
|
25328
25339
|
if (!slotDatas[parseInt(rowIndex.toString(), 10)]) {
|
|
25329
25340
|
slotDatas[parseInt(rowIndex.toString(), 10)] = [];
|
|
@@ -25665,7 +25676,7 @@ var Month = /** @__PURE__ @class */ (function (_super) {
|
|
|
25665
25676
|
return Month;
|
|
25666
25677
|
}(ViewBase));
|
|
25667
25678
|
|
|
25668
|
-
var __extends$
|
|
25679
|
+
var __extends$n = (undefined && undefined.__extends) || (function () {
|
|
25669
25680
|
var extendStatics = function (d, b) {
|
|
25670
25681
|
extendStatics = Object.setPrototypeOf ||
|
|
25671
25682
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -25678,12 +25689,11 @@ var __extends$23 = (undefined && undefined.__extends) || (function () {
|
|
|
25678
25689
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
25679
25690
|
};
|
|
25680
25691
|
})();
|
|
25681
|
-
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
25682
25692
|
/**
|
|
25683
25693
|
* year view
|
|
25684
25694
|
*/
|
|
25685
25695
|
var Year = /** @__PURE__ @class */ (function (_super) {
|
|
25686
|
-
__extends$
|
|
25696
|
+
__extends$n(Year, _super);
|
|
25687
25697
|
function Year(parent) {
|
|
25688
25698
|
var _this = _super.call(this, parent) || this;
|
|
25689
25699
|
_this.viewClass = 'e-year-view';
|
|
@@ -25828,18 +25838,18 @@ var Year = /** @__PURE__ @class */ (function (_super) {
|
|
|
25828
25838
|
var args = { date: date, type: 'monthCells' };
|
|
25829
25839
|
this.renderTemplates(this.parent.getCellTemplate(), args, 'cellTemplate', this.parent.activeViewOptions.cellTemplateName, td);
|
|
25830
25840
|
}
|
|
25831
|
-
var classList
|
|
25841
|
+
var classList = [];
|
|
25832
25842
|
if (currentDate.getMonth() !== date.getMonth()) {
|
|
25833
|
-
classList
|
|
25843
|
+
classList.push(OTHERMONTH_CLASS);
|
|
25834
25844
|
if (td.firstElementChild && !this.parent.activeViewOptions.cellTemplate) {
|
|
25835
25845
|
td.firstElementChild.setAttribute('aria-disabled', 'true');
|
|
25836
25846
|
}
|
|
25837
25847
|
}
|
|
25838
25848
|
if (this.isCurrentDate(date) && currentDate.getMonth() === date.getMonth()) {
|
|
25839
|
-
classList
|
|
25849
|
+
classList = classList.concat(['e-today', 'e-selected']);
|
|
25840
25850
|
}
|
|
25841
|
-
if (classList
|
|
25842
|
-
addClass([td], classList
|
|
25851
|
+
if (classList.length > 0) {
|
|
25852
|
+
addClass([td], classList);
|
|
25843
25853
|
}
|
|
25844
25854
|
tr_1.appendChild(td);
|
|
25845
25855
|
if (currentDate.getMonth() === date.getMonth()) {
|
|
@@ -26110,7 +26120,7 @@ var Year = /** @__PURE__ @class */ (function (_super) {
|
|
|
26110
26120
|
return Year;
|
|
26111
26121
|
}(ViewBase));
|
|
26112
26122
|
|
|
26113
|
-
var __extends$
|
|
26123
|
+
var __extends$o = (undefined && undefined.__extends) || (function () {
|
|
26114
26124
|
var extendStatics = function (d, b) {
|
|
26115
26125
|
extendStatics = Object.setPrototypeOf ||
|
|
26116
26126
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -26123,9 +26133,8 @@ var __extends$25 = (undefined && undefined.__extends) || (function () {
|
|
|
26123
26133
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
26124
26134
|
};
|
|
26125
26135
|
})();
|
|
26126
|
-
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
26127
26136
|
var AgendaBase = /** @__PURE__ @class */ (function (_super) {
|
|
26128
|
-
__extends$
|
|
26137
|
+
__extends$o(AgendaBase, _super);
|
|
26129
26138
|
function AgendaBase(parent) {
|
|
26130
26139
|
return _super.call(this, parent) || this;
|
|
26131
26140
|
}
|
|
@@ -26521,7 +26530,7 @@ var AgendaBase = /** @__PURE__ @class */ (function (_super) {
|
|
|
26521
26530
|
return AgendaBase;
|
|
26522
26531
|
}(ViewBase));
|
|
26523
26532
|
|
|
26524
|
-
var __extends$
|
|
26533
|
+
var __extends$p = (undefined && undefined.__extends) || (function () {
|
|
26525
26534
|
var extendStatics = function (d, b) {
|
|
26526
26535
|
extendStatics = Object.setPrototypeOf ||
|
|
26527
26536
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -26534,12 +26543,11 @@ var __extends$24 = (undefined && undefined.__extends) || (function () {
|
|
|
26534
26543
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
26535
26544
|
};
|
|
26536
26545
|
})();
|
|
26537
|
-
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
26538
26546
|
/**
|
|
26539
26547
|
* agenda view
|
|
26540
26548
|
*/
|
|
26541
26549
|
var Agenda = /** @__PURE__ @class */ (function (_super) {
|
|
26542
|
-
__extends$
|
|
26550
|
+
__extends$p(Agenda, _super);
|
|
26543
26551
|
function Agenda(parent) {
|
|
26544
26552
|
var _this = _super.call(this, parent) || this;
|
|
26545
26553
|
_this.viewClass = 'e-agenda-view';
|
|
@@ -27015,7 +27023,7 @@ var Agenda = /** @__PURE__ @class */ (function (_super) {
|
|
|
27015
27023
|
return Agenda;
|
|
27016
27024
|
}(AgendaBase));
|
|
27017
27025
|
|
|
27018
|
-
var __extends$
|
|
27026
|
+
var __extends$q = (undefined && undefined.__extends) || (function () {
|
|
27019
27027
|
var extendStatics = function (d, b) {
|
|
27020
27028
|
extendStatics = Object.setPrototypeOf ||
|
|
27021
27029
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -27028,12 +27036,11 @@ var __extends$26 = (undefined && undefined.__extends) || (function () {
|
|
|
27028
27036
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
27029
27037
|
};
|
|
27030
27038
|
})();
|
|
27031
|
-
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
27032
27039
|
/**
|
|
27033
27040
|
* month agenda view
|
|
27034
27041
|
*/
|
|
27035
27042
|
var MonthAgenda = /** @__PURE__ @class */ (function (_super) {
|
|
27036
|
-
__extends$
|
|
27043
|
+
__extends$q(MonthAgenda, _super);
|
|
27037
27044
|
function MonthAgenda(parent) {
|
|
27038
27045
|
var _this = _super.call(this, parent) || this;
|
|
27039
27046
|
_this.dayNameFormat = 'narrow';
|
|
@@ -27318,7 +27325,7 @@ var TimelineHeaderRow = /** @__PURE__ @class */ (function () {
|
|
|
27318
27325
|
return TimelineHeaderRow;
|
|
27319
27326
|
}());
|
|
27320
27327
|
|
|
27321
|
-
var __extends$
|
|
27328
|
+
var __extends$r = (undefined && undefined.__extends) || (function () {
|
|
27322
27329
|
var extendStatics = function (d, b) {
|
|
27323
27330
|
extendStatics = Object.setPrototypeOf ||
|
|
27324
27331
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -27335,7 +27342,7 @@ var __extends$27 = (undefined && undefined.__extends) || (function () {
|
|
|
27335
27342
|
* timeline views
|
|
27336
27343
|
*/
|
|
27337
27344
|
var TimelineViews = /** @__PURE__ @class */ (function (_super) {
|
|
27338
|
-
__extends$
|
|
27345
|
+
__extends$r(TimelineViews, _super);
|
|
27339
27346
|
function TimelineViews(parent) {
|
|
27340
27347
|
var _this = _super.call(this, parent) || this;
|
|
27341
27348
|
_this.timelineAppointment = null;
|
|
@@ -27600,7 +27607,7 @@ var TimelineViews = /** @__PURE__ @class */ (function (_super) {
|
|
|
27600
27607
|
return TimelineViews;
|
|
27601
27608
|
}(VerticalView));
|
|
27602
27609
|
|
|
27603
|
-
var __extends$
|
|
27610
|
+
var __extends$s = (undefined && undefined.__extends) || (function () {
|
|
27604
27611
|
var extendStatics = function (d, b) {
|
|
27605
27612
|
extendStatics = Object.setPrototypeOf ||
|
|
27606
27613
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -27617,7 +27624,7 @@ var __extends$28 = (undefined && undefined.__extends) || (function () {
|
|
|
27617
27624
|
* timeline month view
|
|
27618
27625
|
*/
|
|
27619
27626
|
var TimelineMonth = /** @__PURE__ @class */ (function (_super) {
|
|
27620
|
-
__extends$
|
|
27627
|
+
__extends$s(TimelineMonth, _super);
|
|
27621
27628
|
function TimelineMonth(parent) {
|
|
27622
27629
|
var _this = _super.call(this, parent) || this;
|
|
27623
27630
|
_this.viewClass = 'e-timeline-month-view';
|
|
@@ -27650,11 +27657,11 @@ var TimelineMonth = /** @__PURE__ @class */ (function (_super) {
|
|
|
27650
27657
|
var dateSlots = [];
|
|
27651
27658
|
for (var _i = 0, renderDates_1 = renderDates; _i < renderDates_1.length; _i++) {
|
|
27652
27659
|
var col = renderDates_1[_i];
|
|
27653
|
-
var classList
|
|
27660
|
+
var classList = [HEADER_CELLS_CLASS];
|
|
27654
27661
|
if (this.isCurrentDate(col)) {
|
|
27655
|
-
classList
|
|
27662
|
+
classList.push(CURRENT_DAY_CLASS);
|
|
27656
27663
|
}
|
|
27657
|
-
dateSlots.push({ date: col, type: 'dateHeader', className: classList
|
|
27664
|
+
dateSlots.push({ date: col, type: 'dateHeader', className: classList, colSpan: 1, workDays: workDays });
|
|
27658
27665
|
}
|
|
27659
27666
|
return dateSlots;
|
|
27660
27667
|
};
|
|
@@ -27773,7 +27780,7 @@ var TimelineMonth = /** @__PURE__ @class */ (function (_super) {
|
|
|
27773
27780
|
return TimelineMonth;
|
|
27774
27781
|
}(Month));
|
|
27775
27782
|
|
|
27776
|
-
var __extends$
|
|
27783
|
+
var __extends$t = (undefined && undefined.__extends) || (function () {
|
|
27777
27784
|
var extendStatics = function (d, b) {
|
|
27778
27785
|
extendStatics = Object.setPrototypeOf ||
|
|
27779
27786
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -27786,12 +27793,11 @@ var __extends$29 = (undefined && undefined.__extends) || (function () {
|
|
|
27786
27793
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
27787
27794
|
};
|
|
27788
27795
|
})();
|
|
27789
|
-
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
27790
27796
|
/**
|
|
27791
27797
|
* timeline year view
|
|
27792
27798
|
*/
|
|
27793
27799
|
var TimelineYear = /** @__PURE__ @class */ (function (_super) {
|
|
27794
|
-
__extends$
|
|
27800
|
+
__extends$t(TimelineYear, _super);
|
|
27795
27801
|
function TimelineYear(parent) {
|
|
27796
27802
|
var _this = _super.call(this, parent) || this;
|
|
27797
27803
|
_this.viewClass = 'e-timeline-year-view';
|
|
@@ -28020,15 +28026,15 @@ var TimelineYear = /** @__PURE__ @class */ (function (_super) {
|
|
|
28020
28026
|
});
|
|
28021
28027
|
if (isDateAvail) {
|
|
28022
28028
|
var tds = [td];
|
|
28023
|
-
var classList
|
|
28029
|
+
var classList = [];
|
|
28024
28030
|
if (this.parent.activeViewOptions.workDays.indexOf(date.getDay()) > -1) {
|
|
28025
|
-
classList
|
|
28031
|
+
classList.push(WORKDAY_CLASS);
|
|
28026
28032
|
}
|
|
28027
28033
|
if (!this.parent.isMinMaxDate(date)) {
|
|
28028
28034
|
addClass([td], DISABLE_DATES);
|
|
28029
28035
|
}
|
|
28030
28036
|
if (this.isCurrentDate(date)) {
|
|
28031
|
-
classList
|
|
28037
|
+
classList.push(CURRENT_DAY_CLASS);
|
|
28032
28038
|
if (this.parent.activeViewOptions.orientation === 'Horizontal') {
|
|
28033
28039
|
tds.push(this.element.querySelector('.' + HEADER_CELLS_CLASS + (":nth-child(" + (column + 1) + ")")));
|
|
28034
28040
|
}
|
|
@@ -28036,8 +28042,8 @@ var TimelineYear = /** @__PURE__ @class */ (function (_super) {
|
|
|
28036
28042
|
tds.push(this.element.querySelectorAll('.' + MONTH_HEADER_CLASS).item(month));
|
|
28037
28043
|
}
|
|
28038
28044
|
}
|
|
28039
|
-
if (classList
|
|
28040
|
-
addClass(tds, classList
|
|
28045
|
+
if (classList.length > 0) {
|
|
28046
|
+
addClass(tds, classList);
|
|
28041
28047
|
}
|
|
28042
28048
|
}
|
|
28043
28049
|
else {
|
|
@@ -28081,14 +28087,14 @@ var TimelineYear = /** @__PURE__ @class */ (function (_super) {
|
|
|
28081
28087
|
var monthDate = new Date(this.parent.selectedDate.getFullYear(), monthCells[parseInt(row.toString(), 10)], 1);
|
|
28082
28088
|
var date = this.parent.calendarUtil.getMonthStartDate(new Date(monthDate.getTime()));
|
|
28083
28089
|
for (var month = 0; month < this.columnCount; month++) {
|
|
28084
|
-
var classList
|
|
28090
|
+
var classList = [];
|
|
28085
28091
|
var groupIndex = resData.groupIndex;
|
|
28086
|
-
classList
|
|
28087
|
-
if (classList
|
|
28088
|
-
classList
|
|
28092
|
+
classList = classList.concat(resData.className);
|
|
28093
|
+
if (classList.indexOf(RESOURCE_PARENT_CLASS) > -1) {
|
|
28094
|
+
classList.push(RESOURCE_GROUP_CELLS_CLASS);
|
|
28089
28095
|
}
|
|
28090
28096
|
else {
|
|
28091
|
-
classList
|
|
28097
|
+
classList.push(WORKDAY_CLASS);
|
|
28092
28098
|
}
|
|
28093
28099
|
monthDate = new Date(this.parent.selectedDate.getFullYear(), monthCells[parseInt(month.toString(), 10)], 1);
|
|
28094
28100
|
date = this.parent.calendarUtil.getMonthStartDate(new Date(monthDate.getTime()));
|
|
@@ -28099,7 +28105,7 @@ var TimelineYear = /** @__PURE__ @class */ (function (_super) {
|
|
|
28099
28105
|
'data-date': date.getTime().toString()
|
|
28100
28106
|
}
|
|
28101
28107
|
});
|
|
28102
|
-
addClass([tdELe], classList
|
|
28108
|
+
addClass([tdELe], classList);
|
|
28103
28109
|
tdELe.setAttribute('data-group-index', groupIndex.toString());
|
|
28104
28110
|
this.renderCellTemplate({ date: date, type: 'resourceGroupCells', groupIndex: groupIndex }, tdELe);
|
|
28105
28111
|
this.wireEvents(tdELe);
|
|
@@ -28137,23 +28143,23 @@ var TimelineYear = /** @__PURE__ @class */ (function (_super) {
|
|
|
28137
28143
|
monthTr.appendChild(monthTd);
|
|
28138
28144
|
}
|
|
28139
28145
|
for (var month = 0; month < this.columnCount; month++) {
|
|
28140
|
-
var classList
|
|
28146
|
+
var classList = [];
|
|
28141
28147
|
var groupIndex = void 0;
|
|
28142
28148
|
if (this.parent.activeViewOptions.orientation === 'Vertical') {
|
|
28143
28149
|
groupIndex = resData.groupIndex;
|
|
28144
|
-
classList
|
|
28145
|
-
if (classList
|
|
28146
|
-
classList
|
|
28150
|
+
classList = classList.concat(resData.className);
|
|
28151
|
+
if (classList.indexOf(RESOURCE_PARENT_CLASS) > -1) {
|
|
28152
|
+
classList.push(RESOURCE_GROUP_CELLS_CLASS);
|
|
28147
28153
|
}
|
|
28148
28154
|
else {
|
|
28149
|
-
classList
|
|
28155
|
+
classList.push(WORKDAY_CLASS);
|
|
28150
28156
|
}
|
|
28151
28157
|
monthDate = new Date(this.parent.selectedDate.getFullYear(), months[parseInt(month.toString(), 10)], 1);
|
|
28152
28158
|
date = this.parent.calendarUtil.getMonthStartDate(new Date(monthDate.getTime()));
|
|
28153
28159
|
}
|
|
28154
28160
|
else {
|
|
28155
28161
|
groupIndex = this.colLevels.slice(-1)[0][parseInt(month.toString(), 10)].groupIndex;
|
|
28156
|
-
classList
|
|
28162
|
+
classList.push(WORKDAY_CLASS);
|
|
28157
28163
|
}
|
|
28158
28164
|
var startDateText = this.parent.globalize.formatDate(date, { type: 'dateTime', skeleton: 'full', calendar: this.parent.getCalendarMode() });
|
|
28159
28165
|
var endDateText = this.parent.globalize.formatDate(this.parent.calendarUtil.getMonthEndDate(new Date(monthDate.getTime())), { type: 'dateTime', skeleton: 'full', calendar: this.parent.getCalendarMode() });
|
|
@@ -28165,7 +28171,7 @@ var TimelineYear = /** @__PURE__ @class */ (function (_super) {
|
|
|
28165
28171
|
'aria-label': startDateText + ' ' + this.parent.localeObj.getConstant('endAt') + ' ' + endDateText
|
|
28166
28172
|
}
|
|
28167
28173
|
});
|
|
28168
|
-
addClass([td], classList
|
|
28174
|
+
addClass([td], classList);
|
|
28169
28175
|
td.setAttribute('data-group-index', groupIndex.toString());
|
|
28170
28176
|
this.renderCellTemplate({ date: date, type: 'resourceGroupCells', groupIndex: groupIndex }, td);
|
|
28171
28177
|
this.wireEvents(td);
|
|
@@ -28441,8 +28447,7 @@ var ICalendarImport = /** @__PURE__ @class */ (function () {
|
|
|
28441
28447
|
else {
|
|
28442
28448
|
newlineOffset = 1;
|
|
28443
28449
|
}
|
|
28444
|
-
|
|
28445
|
-
var firstChar = iCalString[lastPosition];
|
|
28450
|
+
var firstChar = iCalString.charAt(lastPosition);
|
|
28446
28451
|
if (firstChar === ' ' || firstChar === '\n' || firstChar === '\t') {
|
|
28447
28452
|
iString += iCalString.slice(lastPosition + 1, position - newlineOffset);
|
|
28448
28453
|
}
|
|
@@ -28799,7 +28804,7 @@ var Print = /** @__PURE__ @class */ (function () {
|
|
|
28799
28804
|
this.printInstance = new Schedule(this.getPrintScheduleModel(printOptions));
|
|
28800
28805
|
this.printInstance.isPrinting = true;
|
|
28801
28806
|
this.printInstance.appendTo(element);
|
|
28802
|
-
this.printInstance.on(print
|
|
28807
|
+
this.printInstance.on(print, this.contentReady, this);
|
|
28803
28808
|
this.printWindow = window.open('', 'print', 'height=' + window.outerHeight + ',width=' + window.outerWidth + ',tabbar=no');
|
|
28804
28809
|
this.printWindow.moveTo(0, 0);
|
|
28805
28810
|
this.printWindow.resizeTo(screen.availWidth, screen.availHeight);
|
|
@@ -28883,9 +28888,9 @@ var Print = /** @__PURE__ @class */ (function () {
|
|
|
28883
28888
|
};
|
|
28884
28889
|
Print.prototype.contentReady = function () {
|
|
28885
28890
|
var _this = this;
|
|
28886
|
-
this.printWindow = print(this.printInstance.element, this.printWindow);
|
|
28891
|
+
this.printWindow = print$1(this.printInstance.element, this.printWindow);
|
|
28887
28892
|
this.printWindow.onbeforeunload = function () {
|
|
28888
|
-
_this.printInstance.off(print
|
|
28893
|
+
_this.printInstance.off(print, _this.contentReady);
|
|
28889
28894
|
_this.printInstance.element.remove();
|
|
28890
28895
|
_this.printInstance.destroy();
|
|
28891
28896
|
_this.printInstance = null;
|
|
@@ -28901,25 +28906,5 @@ var Print = /** @__PURE__ @class */ (function () {
|
|
|
28901
28906
|
return Print;
|
|
28902
28907
|
}());
|
|
28903
28908
|
|
|
28904
|
-
|
|
28905
|
-
* Exporting modules
|
|
28906
|
-
*/
|
|
28907
|
-
|
|
28908
|
-
/**
|
|
28909
|
-
* Schedule component exported items
|
|
28910
|
-
*/
|
|
28911
|
-
|
|
28912
|
-
/**
|
|
28913
|
-
* Recurrence-Editor component exported items
|
|
28914
|
-
*/
|
|
28915
|
-
|
|
28916
|
-
/**
|
|
28917
|
-
* Calendar util exported items
|
|
28918
|
-
*/
|
|
28919
|
-
|
|
28920
|
-
/**
|
|
28921
|
-
* Export Schedule components
|
|
28922
|
-
*/
|
|
28923
|
-
|
|
28924
|
-
export { Schedule, cellClick, cellDoubleClick, moreEventsClick, select, hover, actionBegin, actionComplete, actionFailure, navigating, renderCell, eventClick, eventDoubleClick, eventRendered, dataBinding, dataBound, popupOpen, popupClose, dragStart, drag, dragStop, resizeStart, resizing, resizeStop, inlineClick, cellSelect, virtualScrollStart, virtualScrollStop, initialLoad, initialEnd, print$1 as print, dataReady, eventsLoaded, contentReady, scroll, virtualScroll, scrollUiUpdate, uiUpdate, documentClick, cellMouseDown, WEEK_LENGTH, DEFAULT_WEEKS, MS_PER_DAY, MS_PER_MINUTE, getElementHeightFromClass, getElementWidthFromClass, getTranslateY, getTranslateX, getWeekFirstDate, getWeekLastDate, firstDateOfMonth, lastDateOfMonth, getWeekNumber, getWeekMiddleDate, setTime, resetTime, getDateInMs, getDateCount, addDays, addMonths, addYears, getStartEndHours, getMaxDays, getDaysCount, getDateFromString, getScrollBarWidth, resetScrollbarWidth, findIndexInData, getOuterHeight, removeChildren, isDaylightSavingTime, getUniversalTime, isMobile, isIPadDevice, capitalizeFirstWord, getElementWidth, getElementHeight, getElementTop, Resize, DragAndDrop, HeaderRenderer, ViewBase, Day, Week, WorkWeek, Month, Year, Agenda, MonthAgenda, TimelineViews, TimelineMonth, TimelineYear, Timezone, timezoneData, ICalendarExport, ICalendarImport, ExcelExport, Print, RecurrenceEditor, generateSummary, generate, getDateFromRecurrenceDateString, extractObjectFromRule, getCalendarUtil, getRecurrenceStringFromDate, Gregorian, Islamic };
|
|
28909
|
+
export { Agenda, DEFAULT_WEEKS, Day, DragAndDrop, ExcelExport, Gregorian, HeaderRenderer, ICalendarExport, ICalendarImport, Islamic, MS_PER_DAY, MS_PER_MINUTE, Month, MonthAgenda, Print, RecurrenceEditor, Resize, Schedule, TimelineMonth, TimelineViews, TimelineYear, Timezone, ViewBase, WEEK_LENGTH, Week, WorkWeek, Year, actionBegin, actionComplete, actionFailure, addDays, addMonths, addYears, capitalizeFirstWord, cellClick, cellDoubleClick, cellMouseDown, cellSelect, contentReady, dataBinding, dataBound, dataReady, documentClick, drag, dragStart, dragStop, eventClick, eventDoubleClick, eventRendered, eventsLoaded, extractObjectFromRule, findIndexInData, firstDateOfMonth, generate, generateSummary, getCalendarUtil, getDateCount, getDateFromRecurrenceDateString, getDateFromString, getDateInMs, getDaysCount, getElementHeight, getElementHeightFromClass, getElementTop, getElementWidth, getElementWidthFromClass, getMaxDays, getOuterHeight, getRecurrenceStringFromDate, getScrollBarWidth, getStartEndHours, getTranslateX, getTranslateY, getUniversalTime, getWeekFirstDate, getWeekLastDate, getWeekMiddleDate, getWeekNumber, hover, initialEnd, initialLoad, inlineClick, isDaylightSavingTime, isIPadDevice, isMobile, lastDateOfMonth, moreEventsClick, navigating, popupClose, popupOpen, print, removeChildren, renderCell, resetScrollbarWidth, resetTime, resizeStart, resizeStop, resizing, scroll, scrollUiUpdate, select, setTime, timezoneData, uiUpdate, virtualScroll, virtualScrollStart, virtualScrollStop };
|
|
28925
28910
|
//# sourceMappingURL=ej2-schedule.es5.js.map
|