@syncfusion/ej2-schedule 26.1.40 → 26.1.41-16103
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.json +243 -260
- package/README.md +82 -82
- package/dist/ej2-schedule.umd.min.js +1 -10
- package/dist/ej2-schedule.umd.min.js.map +1 -1
- package/dist/es6/ej2-schedule.es2015.js +591 -244
- package/dist/es6/ej2-schedule.es2015.js.map +1 -1
- package/dist/es6/ej2-schedule.es5.js +1057 -703
- package/dist/es6/ej2-schedule.es5.js.map +1 -1
- package/helpers/e2e/index.js +3 -3
- package/helpers/e2e/recurrence-editor.js +13 -13
- package/helpers/e2e/schedule.js +13 -13
- package/license +9 -9
- package/package.json +79 -79
- package/src/recurrence-editor/date-generator.js +3 -0
- package/src/recurrence-editor/recurrence-editor-model.d.ts +65 -65
- package/src/recurrence-editor/recurrence-editor.js +19 -19
- package/src/schedule/actions/crud.js +22 -6
- package/src/schedule/actions/drag.d.ts +4 -0
- package/src/schedule/actions/drag.js +73 -34
- package/src/schedule/actions/keyboard.d.ts +1 -0
- package/src/schedule/actions/keyboard.js +45 -3
- package/src/schedule/actions/resize.js +34 -33
- package/src/schedule/actions/touch.js +4 -0
- package/src/schedule/actions/virtual-scroll.d.ts +6 -0
- package/src/schedule/actions/virtual-scroll.js +119 -34
- package/src/schedule/base/interface.d.ts +6 -2
- package/src/schedule/base/resource.js +5 -0
- package/src/schedule/base/schedule-model.d.ts +805 -805
- package/src/schedule/base/schedule.d.ts +26 -0
- package/src/schedule/base/schedule.js +63 -21
- package/src/schedule/base/util.d.ts +10 -5
- package/src/schedule/base/util.js +15 -10
- package/src/schedule/event-renderer/agenda-base.js +13 -13
- package/src/schedule/event-renderer/event-base.js +18 -3
- package/src/schedule/event-renderer/inline-edit.js +13 -5
- package/src/schedule/event-renderer/month.js +20 -17
- package/src/schedule/event-renderer/timeline-view.js +21 -18
- package/src/schedule/event-renderer/vertical-view.d.ts +2 -1
- package/src/schedule/event-renderer/vertical-view.js +65 -33
- package/src/schedule/event-renderer/year.js +20 -20
- package/src/schedule/exports/print.js +1 -0
- package/src/schedule/models/event-settings-model.d.ts +155 -155
- package/src/schedule/models/event-settings.js +19 -19
- package/src/schedule/models/field-options-model.d.ts +22 -22
- package/src/schedule/models/field-options.js +19 -19
- package/src/schedule/models/fields-model.d.ts +92 -92
- package/src/schedule/models/fields.js +19 -19
- package/src/schedule/models/group-model.d.ts +48 -48
- package/src/schedule/models/group.js +19 -19
- package/src/schedule/models/header-rows-model.d.ts +22 -22
- package/src/schedule/models/header-rows.js +19 -19
- package/src/schedule/models/quick-info-templates-model.d.ts +37 -37
- package/src/schedule/models/quick-info-templates.js +19 -19
- package/src/schedule/models/resources-model.d.ts +85 -85
- package/src/schedule/models/resources.js +19 -19
- package/src/schedule/models/time-scale-model.d.ts +40 -40
- package/src/schedule/models/time-scale.js +19 -19
- package/src/schedule/models/toolbar-model.d.ts +187 -187
- package/src/schedule/models/toolbar.js +19 -19
- package/src/schedule/models/views-model.d.ts +329 -329
- package/src/schedule/models/views.js +19 -19
- package/src/schedule/models/work-hours-model.d.ts +16 -16
- package/src/schedule/models/work-hours.js +19 -19
- package/src/schedule/popups/event-tooltip.js +2 -1
- package/src/schedule/popups/event-window.d.ts +1 -0
- package/src/schedule/popups/event-window.js +13 -10
- package/src/schedule/renderer/agenda.js +13 -13
- package/src/schedule/renderer/day.js +13 -13
- package/src/schedule/renderer/header-renderer.d.ts +1 -0
- package/src/schedule/renderer/header-renderer.js +20 -12
- package/src/schedule/renderer/month-agenda.js +13 -13
- package/src/schedule/renderer/month.js +19 -13
- package/src/schedule/renderer/timeline-header-row.js +1 -1
- package/src/schedule/renderer/timeline-month.js +13 -13
- package/src/schedule/renderer/timeline-view.js +22 -17
- package/src/schedule/renderer/timeline-year.js +19 -15
- package/src/schedule/renderer/vertical-view.js +33 -23
- package/src/schedule/renderer/view-base.d.ts +1 -0
- package/src/schedule/renderer/view-base.js +14 -1
- package/src/schedule/renderer/week.js +13 -13
- package/src/schedule/renderer/work-week.js +13 -13
- package/src/schedule/renderer/year.js +17 -17
- package/styles/bootstrap-dark-lite.css +4174 -0
- package/styles/bootstrap-dark-lite.scss +18 -0
- package/styles/bootstrap-dark.css +823 -595
- package/styles/bootstrap-dark.scss +3 -2
- package/styles/bootstrap-lite.css +4169 -0
- package/styles/bootstrap-lite.scss +18 -0
- package/styles/bootstrap.css +823 -595
- package/styles/bootstrap.scss +3 -2
- package/styles/bootstrap4-lite.css +4216 -0
- package/styles/bootstrap4-lite.scss +18 -0
- package/styles/bootstrap4.css +809 -636
- package/styles/bootstrap4.scss +3 -2
- package/styles/bootstrap5-dark-lite.css +4215 -0
- package/styles/bootstrap5-dark-lite.scss +18 -0
- package/styles/bootstrap5-dark.css +824 -596
- package/styles/bootstrap5-dark.scss +3 -2
- package/styles/bootstrap5-lite.css +4215 -0
- package/styles/bootstrap5-lite.scss +18 -0
- package/styles/bootstrap5.3-lite.css +4261 -0
- package/styles/bootstrap5.3-lite.scss +18 -0
- package/styles/bootstrap5.3.css +5023 -0
- package/styles/bootstrap5.3.scss +20 -0
- package/styles/bootstrap5.css +824 -596
- package/styles/bootstrap5.scss +3 -2
- package/styles/fabric-dark-lite.css +4144 -0
- package/styles/fabric-dark-lite.scss +18 -0
- package/styles/fabric-dark.css +830 -594
- package/styles/fabric-dark.scss +3 -2
- package/styles/fabric-lite.css +4141 -0
- package/styles/fabric-lite.scss +18 -0
- package/styles/fabric.css +830 -587
- package/styles/fabric.scss +3 -2
- package/styles/fluent-dark-lite.css +4207 -0
- package/styles/fluent-dark-lite.scss +18 -0
- package/styles/fluent-dark.css +828 -592
- package/styles/fluent-dark.scss +3 -2
- package/styles/fluent-lite.css +4207 -0
- package/styles/fluent-lite.scss +18 -0
- package/styles/fluent.css +828 -592
- package/styles/fluent.scss +3 -2
- package/styles/fluent2-lite.css +4427 -0
- package/styles/fluent2-lite.scss +18 -0
- package/styles/fluent2.css +863 -1627
- package/styles/fluent2.scss +3 -2
- package/styles/highcontrast-light-lite.css +4233 -0
- package/styles/highcontrast-light-lite.scss +18 -0
- package/styles/highcontrast-light.css +833 -583
- package/styles/highcontrast-light.scss +3 -2
- package/styles/highcontrast-lite.css +4242 -0
- package/styles/highcontrast-lite.scss +18 -0
- package/styles/highcontrast.css +834 -584
- package/styles/highcontrast.scss +3 -2
- package/styles/material-dark-lite.css +4221 -0
- package/styles/material-dark-lite.scss +18 -0
- package/styles/material-dark.css +839 -581
- package/styles/material-dark.scss +3 -2
- package/styles/material-lite.css +4247 -0
- package/styles/material-lite.scss +18 -0
- package/styles/material.css +836 -599
- package/styles/material.scss +3 -2
- package/styles/material3-dark-lite.css +4238 -0
- package/styles/material3-dark-lite.scss +18 -0
- package/styles/material3-dark.css +832 -656
- package/styles/material3-dark.scss +4 -3
- package/styles/material3-lite.css +4240 -0
- package/styles/material3-lite.scss +18 -0
- package/styles/material3.css +831 -709
- package/styles/material3.scss +4 -3
- package/styles/recurrence-editor/_all.scss +2 -2
- package/styles/recurrence-editor/_bds-definition.scss +14 -14
- package/styles/recurrence-editor/_bigger.scss +134 -0
- package/styles/recurrence-editor/_bootstrap-dark-definition.scss +14 -14
- package/styles/recurrence-editor/_bootstrap-definition.scss +14 -14
- package/styles/recurrence-editor/_bootstrap4-definition.scss +14 -14
- package/styles/recurrence-editor/_bootstrap5-definition.scss +14 -14
- package/styles/recurrence-editor/_bootstrap5.3-definition.scss +14 -14
- package/styles/recurrence-editor/_fabric-dark-definition.scss +14 -14
- package/styles/recurrence-editor/_fabric-definition.scss +14 -14
- package/styles/recurrence-editor/_fluent-definition.scss +14 -14
- package/styles/recurrence-editor/_fluent2-definition.scss +14 -14
- package/styles/recurrence-editor/_fusionnew-definition.scss +14 -14
- package/styles/recurrence-editor/_highcontrast-definition.scss +14 -14
- package/styles/recurrence-editor/_highcontrast-light-definition.scss +14 -14
- package/styles/recurrence-editor/_layout.scss +415 -525
- package/styles/recurrence-editor/_material-dark-definition.scss +14 -14
- package/styles/recurrence-editor/_material-definition.scss +14 -14
- package/styles/recurrence-editor/_material3-definition.scss +14 -14
- package/styles/recurrence-editor/_tailwind-definition.scss +14 -14
- package/styles/recurrence-editor/_theme.scss +1 -1
- package/styles/recurrence-editor/bootstrap-dark.css +87 -131
- package/styles/recurrence-editor/bootstrap-dark.scss +1 -0
- package/styles/recurrence-editor/bootstrap.css +87 -131
- package/styles/recurrence-editor/bootstrap.scss +1 -0
- package/styles/recurrence-editor/bootstrap4.css +87 -149
- package/styles/recurrence-editor/bootstrap4.scss +1 -0
- package/styles/recurrence-editor/bootstrap5-dark.css +87 -135
- package/styles/recurrence-editor/bootstrap5-dark.scss +1 -0
- package/styles/recurrence-editor/bootstrap5.3.css +501 -0
- package/styles/recurrence-editor/bootstrap5.3.scss +9 -0
- package/styles/recurrence-editor/bootstrap5.css +87 -135
- package/styles/recurrence-editor/bootstrap5.scss +1 -0
- package/styles/recurrence-editor/fabric-dark.css +87 -130
- package/styles/recurrence-editor/fabric-dark.scss +1 -0
- package/styles/recurrence-editor/fabric.css +87 -123
- package/styles/recurrence-editor/fabric.scss +1 -0
- package/styles/recurrence-editor/fluent-dark.css +87 -122
- package/styles/recurrence-editor/fluent-dark.scss +1 -0
- package/styles/recurrence-editor/fluent.css +87 -122
- package/styles/recurrence-editor/fluent.scss +1 -0
- package/styles/recurrence-editor/fluent2.css +94 -1148
- package/styles/recurrence-editor/fluent2.scss +1 -0
- package/styles/recurrence-editor/highcontrast-light.css +87 -118
- package/styles/recurrence-editor/highcontrast-light.scss +1 -0
- package/styles/recurrence-editor/highcontrast.css +87 -118
- package/styles/recurrence-editor/highcontrast.scss +1 -0
- package/styles/recurrence-editor/material-dark.css +87 -115
- package/styles/recurrence-editor/material-dark.scss +1 -0
- package/styles/recurrence-editor/material.css +87 -136
- package/styles/recurrence-editor/material.scss +1 -0
- package/styles/recurrence-editor/material3-dark.css +88 -194
- package/styles/recurrence-editor/material3-dark.scss +2 -1
- package/styles/recurrence-editor/material3.css +89 -249
- package/styles/recurrence-editor/material3.scss +2 -1
- package/styles/recurrence-editor/tailwind-dark.css +87 -116
- package/styles/recurrence-editor/tailwind-dark.scss +1 -0
- package/styles/recurrence-editor/tailwind.css +87 -116
- package/styles/recurrence-editor/tailwind.scss +1 -0
- package/styles/schedule/_all.scss +2 -2
- package/styles/schedule/_bds-definition.scss +272 -272
- package/styles/schedule/_bigger.scss +810 -0
- package/styles/schedule/_bootstrap-dark-definition.scss +270 -270
- package/styles/schedule/_bootstrap-definition.scss +270 -270
- package/styles/schedule/_bootstrap4-definition.scss +273 -273
- package/styles/schedule/_bootstrap5-definition.scss +274 -274
- package/styles/schedule/_bootstrap5.3-definition.scss +276 -273
- package/styles/schedule/_fabric-dark-definition.scss +271 -271
- package/styles/schedule/_fabric-definition.scss +270 -270
- package/styles/schedule/_fluent-definition.scss +276 -276
- package/styles/schedule/_fluent2-definition.scss +273 -273
- package/styles/schedule/_fusionnew-definition.scss +273 -273
- package/styles/schedule/_highcontrast-definition.scss +271 -271
- package/styles/schedule/_highcontrast-light-definition.scss +271 -271
- package/styles/schedule/_layout.scss +3787 -4218
- package/styles/schedule/_material-dark-definition.scss +270 -270
- package/styles/schedule/_material-definition.scss +270 -270
- package/styles/schedule/_material3-definition.scss +275 -275
- package/styles/schedule/_tailwind-definition.scss +271 -271
- package/styles/schedule/_theme.scss +589 -567
- package/styles/schedule/bootstrap-dark.css +706 -484
- package/styles/schedule/bootstrap-dark.scss +1 -0
- package/styles/schedule/bootstrap.css +706 -484
- package/styles/schedule/bootstrap.scss +1 -0
- package/styles/schedule/bootstrap4.css +699 -532
- package/styles/schedule/bootstrap4.scss +1 -0
- package/styles/schedule/bootstrap5-dark.css +714 -492
- package/styles/schedule/bootstrap5-dark.scss +1 -0
- package/styles/schedule/bootstrap5.3.css +4621 -0
- package/styles/schedule/bootstrap5.3.scss +17 -0
- package/styles/schedule/bootstrap5.css +714 -492
- package/styles/schedule/bootstrap5.scss +1 -0
- package/styles/schedule/fabric-dark.css +713 -483
- package/styles/schedule/fabric-dark.scss +1 -0
- package/styles/schedule/fabric.css +713 -476
- package/styles/schedule/fabric.scss +1 -0
- package/styles/schedule/fluent-dark.css +723 -493
- package/styles/schedule/fluent-dark.scss +1 -0
- package/styles/schedule/fluent.css +723 -493
- package/styles/schedule/fluent.scss +1 -0
- package/styles/schedule/fluent2.css +752 -1525
- package/styles/schedule/fluent2.scss +1 -0
- package/styles/schedule/highcontrast-light.css +721 -477
- package/styles/schedule/highcontrast-light.scss +1 -0
- package/styles/schedule/highcontrast.css +721 -477
- package/styles/schedule/highcontrast.scss +1 -0
- package/styles/schedule/icons/_bds.scss +220 -220
- package/styles/schedule/icons/_bootstrap-dark.scss +223 -223
- package/styles/schedule/icons/_bootstrap.scss +223 -223
- package/styles/schedule/icons/_bootstrap4.scss +217 -217
- package/styles/schedule/icons/_bootstrap5.3.scss +220 -220
- package/styles/schedule/icons/_bootstrap5.scss +220 -220
- package/styles/schedule/icons/_fabric-dark.scss +223 -223
- package/styles/schedule/icons/_fabric.scss +223 -223
- package/styles/schedule/icons/_fluent.scss +220 -220
- package/styles/schedule/icons/_fluent2.scss +220 -220
- package/styles/schedule/icons/_fusionnew.scss +220 -220
- package/styles/schedule/icons/_highcontrast-light.scss +223 -223
- package/styles/schedule/icons/_highcontrast.scss +223 -223
- package/styles/schedule/icons/_material-dark.scss +223 -223
- package/styles/schedule/icons/_material.scss +223 -223
- package/styles/schedule/icons/_material3.scss +220 -220
- package/styles/schedule/icons/_tailwind.scss +220 -220
- package/styles/schedule/material-dark.css +732 -480
- package/styles/schedule/material-dark.scss +1 -0
- package/styles/schedule/material.css +729 -498
- package/styles/schedule/material.scss +1 -0
- package/styles/schedule/material3-dark.css +713 -543
- package/styles/schedule/material3-dark.scss +2 -1
- package/styles/schedule/material3.css +714 -598
- package/styles/schedule/material3.scss +2 -1
- package/styles/schedule/tailwind-dark.css +725 -484
- package/styles/schedule/tailwind-dark.scss +1 -0
- package/styles/schedule/tailwind.css +725 -484
- package/styles/schedule/tailwind.scss +1 -0
- package/styles/tailwind-dark-lite.css +4184 -0
- package/styles/tailwind-dark-lite.scss +18 -0
- package/styles/tailwind-dark.css +832 -585
- package/styles/tailwind-dark.scss +3 -2
- package/styles/tailwind-lite.css +4184 -0
- package/styles/tailwind-lite.scss +18 -0
- package/styles/tailwind.css +832 -585
- package/styles/tailwind.scss +3 -2
- package/dist/ej2-schedule.min.js +0 -10
- package/dist/global/ej2-schedule.min.js +0 -11
- package/dist/global/ej2-schedule.min.js.map +0 -1
- package/dist/global/index.d.ts +0 -14
- package/tslint.json +0 -111
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
var __extends = (this && this.__extends) || (function () {
|
|
2
|
-
var extendStatics = function (d, b) {
|
|
3
|
-
extendStatics = Object.setPrototypeOf ||
|
|
4
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
6
|
-
return extendStatics(d, b);
|
|
7
|
-
};
|
|
8
|
-
return function (d, b) {
|
|
9
|
-
extendStatics(d, b);
|
|
10
|
-
function __() { this.constructor = d; }
|
|
11
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12
|
-
};
|
|
13
|
-
})();
|
|
1
|
+
var __extends = (this && this.__extends) || (function () {
|
|
2
|
+
var extendStatics = function (d, b) {
|
|
3
|
+
extendStatics = Object.setPrototypeOf ||
|
|
4
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
6
|
+
return extendStatics(d, b);
|
|
7
|
+
};
|
|
8
|
+
return function (d, b) {
|
|
9
|
+
extendStatics(d, b);
|
|
10
|
+
function __() { this.constructor = d; }
|
|
11
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12
|
+
};
|
|
13
|
+
})();
|
|
14
14
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
15
15
|
import { append, createElement, extend, EventHandler, Animation, formatUnit, closest } from '@syncfusion/ej2-base';
|
|
16
16
|
import { isNullOrUndefined, setStyleAttribute, remove, removeClass, addClass } from '@syncfusion/ej2-base';
|
|
@@ -35,8 +35,8 @@ var VerticalEvent = /** @class */ (function (_super) {
|
|
|
35
35
|
_this.slotCount = _this.parent.activeViewOptions.timeScale.slotCount;
|
|
36
36
|
_this.interval = _this.parent.activeViewOptions.timeScale.interval;
|
|
37
37
|
_this.allDayLevel = 0;
|
|
38
|
-
_this.startHour = _this.parent.
|
|
39
|
-
_this.endHour = _this.parent.
|
|
38
|
+
_this.startHour = _this.getStartEndHours(_this.parent.activeViewOptions.startHour);
|
|
39
|
+
_this.endHour = _this.getStartEndHours(_this.parent.activeViewOptions.endHour);
|
|
40
40
|
_this.element = _this.parent.activeView.getPanel();
|
|
41
41
|
_this.fields = _this.parent.eventFields;
|
|
42
42
|
_this.animation = new Animation({ progress: _this.animationUiUpdate.bind(_this) });
|
|
@@ -129,7 +129,7 @@ var VerticalEvent = /** @class */ (function (_super) {
|
|
|
129
129
|
this.resources = this.parent.resourceBase.renderedResources;
|
|
130
130
|
}
|
|
131
131
|
this.cellHeight =
|
|
132
|
-
parseFloat(
|
|
132
|
+
parseFloat(this.parent.getElementHeight(this.parent.element.querySelector('.e-content-wrap tbody tr')).toFixed(2));
|
|
133
133
|
this.dateRender[0] = this.parent.activeView.renderDates;
|
|
134
134
|
if (this.parent.activeViewOptions.group.resources.length > 0) {
|
|
135
135
|
for (var i = 0, len = this.resources.length; i < len; i++) {
|
|
@@ -170,7 +170,7 @@ var VerticalEvent = /** @class */ (function (_super) {
|
|
|
170
170
|
var renderDates = this.dateRender[parseInt(resource.toString(), 10)];
|
|
171
171
|
for (var day = 0, length_1 = renderDates.length; day < length_1; day++) {
|
|
172
172
|
var startDate = new Date(renderDates[parseInt(day.toString(), 10)].getTime());
|
|
173
|
-
var endDate = util.addDays(renderDates[parseInt(day.toString(), 10)], 1);
|
|
173
|
+
var endDate = util.resetTime(util.addDays(renderDates[parseInt(day.toString(), 10)], 1));
|
|
174
174
|
var filterEvents = this.filterEvents(startDate, endDate, this.parent.blockProcessed, this.resources[parseInt(resource.toString(), 10)]);
|
|
175
175
|
for (var _a = 0, filterEvents_1 = filterEvents; _a < filterEvents_1.length; _a++) {
|
|
176
176
|
var event_1 = filterEvents_1[_a];
|
|
@@ -201,7 +201,7 @@ var VerticalEvent = /** @class */ (function (_super) {
|
|
|
201
201
|
}
|
|
202
202
|
else {
|
|
203
203
|
blockHeight = formatUnit(this.getHeight(eStart, eEnd));
|
|
204
|
-
blockTop = formatUnit(this.getTopValue(eStart
|
|
204
|
+
blockTop = formatUnit(this.getTopValue(eStart));
|
|
205
205
|
}
|
|
206
206
|
var appointmentElement = this.createBlockAppointmentElement(eventObj, resource, this.isResourceEventTemplate);
|
|
207
207
|
setStyleAttribute(appointmentElement, { 'width': '100%', 'height': blockHeight, 'top': blockTop });
|
|
@@ -215,7 +215,7 @@ var VerticalEvent = /** @class */ (function (_super) {
|
|
|
215
215
|
var resources = this.getResourceList();
|
|
216
216
|
var dateCount = this.getStartCount();
|
|
217
217
|
var isRender;
|
|
218
|
-
var appHeight = eventType === 'allDayEvents' ?
|
|
218
|
+
var appHeight = eventType === 'allDayEvents' ? this.parent.getElementHeightFromClass(this.element.querySelector('.' + cls.ALLDAY_APPOINTMENT_WRAPPER_CLASS), cls.APPOINTMENT_CLASS) : 0;
|
|
219
219
|
var allDayRowTop = eventType === 'allDayEvents' && this.allDayElement.length > 0 ? this.allDayElement[0].offsetTop : 0;
|
|
220
220
|
var _loop_1 = function (resource) {
|
|
221
221
|
isRender = true;
|
|
@@ -234,7 +234,7 @@ var VerticalEvent = /** @class */ (function (_super) {
|
|
|
234
234
|
renderDates[parseInt(day.toString(), 10)] <= renderedDate[renderedDate.length - 1]; day++) {
|
|
235
235
|
this_1.renderedEvents = [];
|
|
236
236
|
var startDate = new Date(renderDates[parseInt(day.toString(), 10)].getTime());
|
|
237
|
-
var endDate = util.addDays(renderDates[parseInt(day.toString(), 10)], 1);
|
|
237
|
+
var endDate = util.resetTime(util.addDays(renderDates[parseInt(day.toString(), 10)], 1));
|
|
238
238
|
var filterEvents = this_1.filterEvents(startDate, endDate, eventCollection, this_1.resources[parseInt(resource.toString(), 10)]);
|
|
239
239
|
if (isRender) {
|
|
240
240
|
for (var _i = 0, filterEvents_2 = filterEvents; _i < filterEvents_2.length; _i++) {
|
|
@@ -456,7 +456,10 @@ var VerticalEvent = /** @class */ (function (_super) {
|
|
|
456
456
|
var field = this.parent.eventFields;
|
|
457
457
|
var schedule = util.getStartEndHours(currentDate, this.startHour, this.endHour);
|
|
458
458
|
var event = extend({}, record, null, true);
|
|
459
|
-
event.isSpanned = {
|
|
459
|
+
event.isSpanned = {
|
|
460
|
+
isBottom: false, isTop: false,
|
|
461
|
+
isSameDuration: event[field.startTime].getTime() === event[field.endTime].getTime()
|
|
462
|
+
};
|
|
460
463
|
if (record[field.startTime].getTime() < schedule.startHour.getTime()) {
|
|
461
464
|
event[field.startTime] = schedule.startHour;
|
|
462
465
|
event.isSpanned.isTop = true;
|
|
@@ -574,9 +577,9 @@ var VerticalEvent = /** @class */ (function (_super) {
|
|
|
574
577
|
return;
|
|
575
578
|
}
|
|
576
579
|
if (eStart <= eEnd && isValidEvent && this.isWorkDayAvailable(resource, eStart)) {
|
|
577
|
-
var appHeight = this.getHeight(eStart, eEnd);
|
|
580
|
+
var appHeight = record.isSpanned.isSameDuration ? this.cellHeight : this.getHeight(eStart, eEnd);
|
|
578
581
|
if (eStart.getTime() >= schedule.startHour.getTime()) {
|
|
579
|
-
topValue = this.getTopValue(eStart
|
|
582
|
+
topValue = this.getTopValue(eStart);
|
|
580
583
|
}
|
|
581
584
|
var appIndex = this.getOverlapIndex(record, dayIndex, false, resource);
|
|
582
585
|
record.Index = appIndex;
|
|
@@ -637,13 +640,20 @@ var VerticalEvent = /** @class */ (function (_super) {
|
|
|
637
640
|
var tempLeft = (parseFloat(appWidth) + 1) * index;
|
|
638
641
|
return (tempLeft > 99 ? 99 : tempLeft) + '%';
|
|
639
642
|
};
|
|
640
|
-
VerticalEvent.prototype.
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
643
|
+
VerticalEvent.prototype.getStartEndHours = function (startEndTime) {
|
|
644
|
+
if (!isNullOrUndefined(startEndTime) && startEndTime !== '') {
|
|
645
|
+
var startEndDate = new Date(2000, 0, 0, 0);
|
|
646
|
+
var timeString = startEndTime.split(':');
|
|
647
|
+
if (timeString.length === 2) {
|
|
648
|
+
startEndDate.setHours(parseInt(timeString[0], 10), parseInt(timeString[1], 10), 0);
|
|
649
|
+
}
|
|
650
|
+
return startEndDate;
|
|
651
|
+
}
|
|
652
|
+
return null;
|
|
653
|
+
};
|
|
654
|
+
VerticalEvent.prototype.getTopValue = function (date) {
|
|
655
|
+
var startHour = this.getStartEndHours(this.parent.activeViewOptions.startHour);
|
|
656
|
+
var diffInMinutes = ((date.getHours() - startHour.getHours()) * 60) + (date.getMinutes() - startHour.getMinutes());
|
|
647
657
|
return (this.parent.activeViewOptions.timeScale.enable) ? ((diffInMinutes * this.cellHeight * this.slotCount) / this.interval) : 0;
|
|
648
658
|
};
|
|
649
659
|
VerticalEvent.prototype.getOverlapIndex = function (record, day, isAllDay, resource) {
|
|
@@ -679,10 +689,32 @@ var VerticalEvent = /** @class */ (function (_super) {
|
|
|
679
689
|
if (this.parent.activeViewOptions.group.resources.length > 0) {
|
|
680
690
|
this.overlapList = this.filterEventsByResource(this.resources[parseInt(resource.toString(), 10)], this.overlapList);
|
|
681
691
|
}
|
|
692
|
+
var queue_1 = [];
|
|
682
693
|
this.overlapList.forEach(function (obj) {
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
694
|
+
queue_1.push(obj);
|
|
695
|
+
var filterList = [];
|
|
696
|
+
var processedIds = new Set();
|
|
697
|
+
var _loop_2 = function () {
|
|
698
|
+
var currentObj = queue_1.shift();
|
|
699
|
+
var overlaps = appointmentList_1.filter(function (data) {
|
|
700
|
+
return data[fieldMapping.endTime] > currentObj[fieldMapping.startTime] &&
|
|
701
|
+
data[fieldMapping.startTime] <= currentObj[fieldMapping.endTime] &&
|
|
702
|
+
!processedIds.has(data[fieldMapping.id]);
|
|
703
|
+
});
|
|
704
|
+
overlaps.forEach(function (overlap) {
|
|
705
|
+
filterList.push(overlap);
|
|
706
|
+
processedIds.add(overlap[fieldMapping.id]);
|
|
707
|
+
queue_1.push(overlap);
|
|
708
|
+
});
|
|
709
|
+
if (processedIds.size < appointmentList_1.length - 1) {
|
|
710
|
+
return "break";
|
|
711
|
+
}
|
|
712
|
+
};
|
|
713
|
+
while (queue_1.length > 0) {
|
|
714
|
+
var state_1 = _loop_2();
|
|
715
|
+
if (state_1 === "break")
|
|
716
|
+
break;
|
|
717
|
+
}
|
|
686
718
|
if (_this.parent.activeViewOptions.group.resources.length > 0) {
|
|
687
719
|
filterList = _this.filterEventsByResource(_this.resources[parseInt(resource.toString(), 10)], filterList);
|
|
688
720
|
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
var __extends = (this && this.__extends) || (function () {
|
|
2
|
-
var extendStatics = function (d, b) {
|
|
3
|
-
extendStatics = Object.setPrototypeOf ||
|
|
4
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
6
|
-
return extendStatics(d, b);
|
|
7
|
-
};
|
|
8
|
-
return function (d, b) {
|
|
9
|
-
extendStatics(d, b);
|
|
10
|
-
function __() { this.constructor = d; }
|
|
11
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12
|
-
};
|
|
13
|
-
})();
|
|
1
|
+
var __extends = (this && this.__extends) || (function () {
|
|
2
|
+
var extendStatics = function (d, b) {
|
|
3
|
+
extendStatics = Object.setPrototypeOf ||
|
|
4
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
6
|
+
return extendStatics(d, b);
|
|
7
|
+
};
|
|
8
|
+
return function (d, b) {
|
|
9
|
+
extendStatics(d, b);
|
|
10
|
+
function __() { this.constructor = d; }
|
|
11
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12
|
+
};
|
|
13
|
+
})();
|
|
14
14
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
15
15
|
import { addClass, append, createElement, extend, remove, isNullOrUndefined } from '@syncfusion/ej2-base';
|
|
16
16
|
import { setStyleAttribute, EventHandler } from '@syncfusion/ej2-base';
|
|
@@ -67,8 +67,8 @@ var YearEvent = /** @class */ (function (_super) {
|
|
|
67
67
|
var monthDate = new Date(this.parent.selectedDate.getFullYear(), month, 1);
|
|
68
68
|
var monthStart = this.parent.calendarUtil.getMonthStartDate(new Date(monthDate.getTime()));
|
|
69
69
|
var monthEnd = this.parent.calendarUtil.getMonthEndDate(new Date(monthDate.getTime()));
|
|
70
|
-
var startDate = util.getWeekFirstDate(monthStart, this.parent.firstDayOfWeek);
|
|
71
|
-
var endDate = util.addDays(util.getWeekLastDate(monthEnd, this.parent.firstDayOfWeek), 1);
|
|
70
|
+
var startDate = util.getWeekFirstDate(monthStart, this.parent.activeViewOptions.firstDayOfWeek);
|
|
71
|
+
var endDate = util.addDays(util.getWeekLastDate(monthEnd, this.parent.activeViewOptions.firstDayOfWeek), 1);
|
|
72
72
|
for (var index = 0; startDate.getTime() < endDate.getTime(); index++) {
|
|
73
73
|
var start = util.resetTime(new Date(startDate.getTime()));
|
|
74
74
|
var end = util.addDays(new Date(start.getTime()), 1);
|
|
@@ -89,10 +89,10 @@ var YearEvent = /** @class */ (function (_super) {
|
|
|
89
89
|
YearEvent.prototype.timelineYearViewEvents = function () {
|
|
90
90
|
var _this = this;
|
|
91
91
|
var workCell = this.parent.element.querySelector('.' + cls.WORK_CELLS_CLASS + ':not(.' + cls.OTHERMONTH_CLASS + ')');
|
|
92
|
-
this.cellWidth =
|
|
92
|
+
this.cellWidth = this.parent.getElementWidth(workCell);
|
|
93
93
|
this.cellHeader = util.getOuterHeight(workCell.querySelector('.' + cls.DATE_HEADER_CLASS));
|
|
94
94
|
var eventTable = this.parent.element.querySelector('.' + cls.EVENT_TABLE_CLASS);
|
|
95
|
-
this.eventHeight =
|
|
95
|
+
this.eventHeight = this.parent.getElementHeightFromClass(eventTable, cls.APPOINTMENT_CLASS);
|
|
96
96
|
var selector = "." + cls.MONTH_HEADER_WRAPPER + " tbody tr,." + cls.RESOURCE_COLUMN_TABLE_CLASS + " tbody tr,." + cls.CONTENT_TABLE_CLASS + " tbody tr";
|
|
97
97
|
this.addCellHeight(selector, this.eventHeight, EVENT_GAP, this.cellHeader, this.moreIndicatorHeight);
|
|
98
98
|
var wrapperCollection = [].slice.call(this.parent.element.querySelectorAll('.' + cls.APPOINTMENT_CONTAINER_CLASS));
|
|
@@ -248,10 +248,10 @@ var YearEvent = /** @class */ (function (_super) {
|
|
|
248
248
|
var contentTable = this.parent.element.querySelector('.' + cls.CONTENT_WRAP_CLASS);
|
|
249
249
|
var isVerticalScrollbarAvail = contentTable.offsetWidth > contentTable.clientWidth;
|
|
250
250
|
var workCell = this.parent.element.querySelector('.' + cls.WORK_CELLS_CLASS);
|
|
251
|
-
this.cellWidth =
|
|
251
|
+
this.cellWidth = this.parent.getElementWidth(workCell);
|
|
252
252
|
this.cellHeader = 0;
|
|
253
253
|
var eventTable = this.parent.element.querySelector('.' + cls.EVENT_TABLE_CLASS);
|
|
254
|
-
this.eventHeight =
|
|
254
|
+
this.eventHeight = this.parent.getElementHeightFromClass(eventTable, cls.APPOINTMENT_CLASS);
|
|
255
255
|
var selector = "." + cls.MONTH_HEADER_WRAPPER + " tbody tr,." + cls.RESOURCE_COLUMN_TABLE_CLASS + " tbody tr,." + cls.CONTENT_TABLE_CLASS + " tbody tr";
|
|
256
256
|
this.addCellHeight(selector, this.eventHeight, EVENT_GAP, this.cellHeader, this.moreIndicatorHeight);
|
|
257
257
|
var wrapperCollection = [].slice.call(this.parent.element.querySelectorAll('.' + cls.APPOINTMENT_CONTAINER_CLASS));
|
|
@@ -293,7 +293,7 @@ var YearEvent = /** @class */ (function (_super) {
|
|
|
293
293
|
appWrapper.forEach(function (appWrap, cellIndex) {
|
|
294
294
|
var td = row.querySelector("td:nth-child(" + (cellIndex + 1) + ")");
|
|
295
295
|
var app = [].slice.call(appWrap.children);
|
|
296
|
-
var width =
|
|
296
|
+
var width = _this.parent.getElementWidth(td);
|
|
297
297
|
var left = td.offsetLeft;
|
|
298
298
|
if (_this.parent.enableRtl) {
|
|
299
299
|
var right_1 = conTable_1.offsetWidth - left - td.offsetWidth;
|
|
@@ -78,6 +78,7 @@ var Print = /** @class */ (function () {
|
|
|
78
78
|
Schedule.Inject(Day, Week, WorkWeek, Month, Agenda, MonthAgenda, TimelineViews, TimelineMonth, Year, TimelineYear);
|
|
79
79
|
this.printInstance = new Schedule(this.getPrintScheduleModel(printOptions));
|
|
80
80
|
this.printInstance.isPrinting = true;
|
|
81
|
+
this.printInstance.registeredTemplate = this.parent.registeredTemplate;
|
|
81
82
|
this.printInstance.root = this.parent.root ? this.parent.root : this.parent;
|
|
82
83
|
this.printInstance.appendTo(element);
|
|
83
84
|
this.printInstance.on(events.print, this.contentReady, this);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Property, ChildProperty, Complex } from '@syncfusion/ej2-base';
|
|
1
|
+
import { Property, ChildProperty, Complex } from '@syncfusion/ej2-base';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Interface for a class EventSettings
|
|
@@ -6,159 +6,159 @@ import { Property, ChildProperty, Complex } from '@syncfusion/ej2-base';import {
|
|
|
6
6
|
export interface EventSettingsModel {
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
|
-
* It accepts either the string or HTMLElement as template design content and parse it appropriately before displaying
|
|
10
|
-
* it onto the event background. All the event fields mapped to Schedule from dataSource can be accessed within this template code.
|
|
11
|
-
* {% codeBlock src="schedule/event-template-api/index.ts" %}{% endcodeBlock %}
|
|
12
|
-
*
|
|
13
|
-
* @default null
|
|
14
|
-
* @angularType string | object
|
|
15
|
-
* @reactType string | function | JSX.Element
|
|
16
|
-
* @vueType string | function
|
|
17
|
-
* @aspType string
|
|
18
|
-
*/
|
|
19
|
-
template?: string | Function;
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* With this property, the event data will be bound to Schedule.
|
|
23
|
-
* The event data can be passed either as an array of JavaScript objects,
|
|
24
|
-
* or else can create an instance of [`DataManager`](http://ej2.syncfusion.com/documentation/data/api-dataManager.html)
|
|
25
|
-
* in case of processing remote data and can be assigned to the `dataSource` property.
|
|
26
|
-
* With the remote data assigned to dataSource, check the available
|
|
27
|
-
* [adaptors](http://ej2.syncfusion.com/documentation/data/adaptors.html) to customize the data processing.
|
|
28
|
-
*
|
|
29
|
-
* @default []
|
|
30
|
-
*/
|
|
31
|
-
dataSource?: Record<string, any>[] | DataManager;
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* Defines the external [`query`](http://ej2.syncfusion.com/documentation/data/api-query.html)
|
|
35
|
-
* that will be executed along with the data processing.
|
|
36
|
-
*
|
|
37
|
-
* @default null
|
|
38
|
-
*/
|
|
39
|
-
query?: Query;
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* Defines the collection of default event fields to be bind to the Schedule.
|
|
43
|
-
*
|
|
44
|
-
* @default null
|
|
45
|
-
*/
|
|
46
|
-
fields?: FieldModel;
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* When set to `true` will display the normal tooltip over the events with its subject, location, start and end time.
|
|
50
|
-
*
|
|
51
|
-
* @default false
|
|
52
|
-
*/
|
|
53
|
-
enableTooltip?: boolean;
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* Defines the option to render the spanned events (more than 24 hours) in either `AllDayRow` or `TimeSlot`. By default it renders in `AllDayRow`.
|
|
57
|
-
* This property is applicable for `Day`, `Week` and `WorkWeek` views only. The possible values for this property as follows
|
|
58
|
-
* * `AllDayRow`: Denotes the rendering of spanned events in an all-day row.
|
|
59
|
-
* * `TimeSlot`: Denotes the rendering of spanned events in an time slot row.
|
|
60
|
-
* {% codeBlock src='schedule/spannedEventPlacement/index.md' %}{% endcodeBlock %}
|
|
61
|
-
*
|
|
62
|
-
* @default 'AllDayRow'
|
|
63
|
-
*/
|
|
64
|
-
spannedEventPlacement?: SpannedEventPlacement;
|
|
65
|
-
|
|
66
|
-
/**
|
|
67
|
-
* Sets a minimum duration for an event where the events are rendered for this minimum duration when the duration of the event is lesser than this value.
|
|
68
|
-
* It accepts duration value in minutes. This property is only applicable when the event duration is lesser than this property duration.
|
|
69
|
-
*
|
|
70
|
-
* @default 1
|
|
71
|
-
*/
|
|
72
|
-
minimumEventDuration?: number;
|
|
73
|
-
|
|
74
|
-
/**
|
|
75
|
-
* It accepts either the string or HTMLElement as template design content and parse it appropriately before displaying it onto tooltip.
|
|
76
|
-
* All the event fields mapped with Schedule dataSource can be accessed within this template code.
|
|
77
|
-
* {% codeBlock src="schedule/tooltip-template-api/index.ts" %}{% endcodeBlock %}
|
|
78
|
-
*
|
|
79
|
-
* @default null
|
|
80
|
-
* @angularType string | object
|
|
81
|
-
* @reactType string | function | JSX.Element
|
|
82
|
-
* @vueType string | function
|
|
83
|
-
* @aspType string
|
|
84
|
-
*/
|
|
85
|
-
tooltipTemplate?: string | Function;
|
|
86
|
-
|
|
87
|
-
/**
|
|
88
|
-
* Defines the resource name, to decides the color of which particular resource level is to be applied on appointments, when
|
|
89
|
-
* grouping is enabled on scheduler.
|
|
90
|
-
* {% codeBlock src="schedule/resource-color-field-api/index.ts" %}{% endcodeBlock %}
|
|
91
|
-
*
|
|
92
|
-
* @default null
|
|
93
|
-
*/
|
|
94
|
-
resourceColorField?: string;
|
|
95
|
-
|
|
96
|
-
/**
|
|
97
|
-
* When set to `true` will edit the future events only instead of editing entire series.
|
|
98
|
-
*
|
|
99
|
-
* @default false
|
|
100
|
-
*/
|
|
101
|
-
editFollowingEvents?: boolean;
|
|
102
|
-
|
|
103
|
-
/**
|
|
104
|
-
* When set to `false` the add action will be restricted.
|
|
105
|
-
*
|
|
106
|
-
* @default true
|
|
107
|
-
*/
|
|
108
|
-
allowAdding?: boolean;
|
|
109
|
-
|
|
110
|
-
/**
|
|
111
|
-
* When set to `false` the edit action will be restricted.
|
|
112
|
-
*
|
|
113
|
-
* @default true
|
|
114
|
-
*/
|
|
115
|
-
allowEditing?: boolean;
|
|
116
|
-
|
|
117
|
-
/**
|
|
118
|
-
* When set to `false` the delete action will be restricted.
|
|
119
|
-
*
|
|
120
|
-
* @default true
|
|
121
|
-
*/
|
|
122
|
-
allowDeleting?: boolean;
|
|
123
|
-
|
|
124
|
-
/**
|
|
125
|
-
* It enables the event to occupy the full height of the cell without the header of the cell.
|
|
126
|
-
*
|
|
127
|
-
* @default false
|
|
128
|
-
*/
|
|
129
|
-
enableMaxHeight?: boolean;
|
|
130
|
-
|
|
131
|
-
/**
|
|
132
|
-
* This property enables the event to occupy the full height that remaining from the header and more indicator.
|
|
133
|
-
* More than one appointment are available on the cell the more indicator is created.
|
|
134
|
-
*
|
|
135
|
-
* @default false
|
|
136
|
-
*/
|
|
137
|
-
enableIndicator?: boolean;
|
|
138
|
-
|
|
139
|
-
/**
|
|
140
|
-
* This property ignores or include the Events element bottom white space.
|
|
141
|
-
*
|
|
142
|
-
* @default false
|
|
143
|
-
*/
|
|
144
|
-
ignoreWhitespace?: boolean;
|
|
145
|
-
|
|
146
|
-
/**
|
|
147
|
-
* Defines the custom sort comparer function.
|
|
148
|
-
* The sort comparer function has the same functionality like
|
|
149
|
-
* [`Array.sort`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort) sort comparer.
|
|
150
|
-
*
|
|
151
|
-
* @default null
|
|
152
|
-
*/
|
|
153
|
-
sortComparer?: SortComparerFunction;
|
|
154
|
-
|
|
155
|
-
/**
|
|
156
|
-
* Gets or sets a value that determines whether the start date and end date filter conditions should be included in the query itself when requesting data from the server, or passed as query parameters in the API call.
|
|
157
|
-
* When set to <c>true</c> the filter conditions will be part of the query itself, potentially reducing the size of the request and minimizing the time needed to parse the response.
|
|
158
|
-
* However, it can also lead to longer query strings, which could result in issues with maximum URL length or server limitations on query string length.
|
|
159
|
-
*
|
|
160
|
-
* @default false
|
|
161
|
-
*/
|
|
162
|
-
includeFiltersInQuery?: boolean;
|
|
9
|
+
* It accepts either the string or HTMLElement as template design content and parse it appropriately before displaying
|
|
10
|
+
* it onto the event background. All the event fields mapped to Schedule from dataSource can be accessed within this template code.
|
|
11
|
+
* {% codeBlock src="schedule/event-template-api/index.ts" %}{% endcodeBlock %}
|
|
12
|
+
*
|
|
13
|
+
* @default null
|
|
14
|
+
* @angularType string | object
|
|
15
|
+
* @reactType string | function | JSX.Element
|
|
16
|
+
* @vueType string | function
|
|
17
|
+
* @aspType string
|
|
18
|
+
*/
|
|
19
|
+
template?: string | Function;
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* With this property, the event data will be bound to Schedule.
|
|
23
|
+
* The event data can be passed either as an array of JavaScript objects,
|
|
24
|
+
* or else can create an instance of [`DataManager`](http://ej2.syncfusion.com/documentation/data/api-dataManager.html)
|
|
25
|
+
* in case of processing remote data and can be assigned to the `dataSource` property.
|
|
26
|
+
* With the remote data assigned to dataSource, check the available
|
|
27
|
+
* [adaptors](http://ej2.syncfusion.com/documentation/data/adaptors.html) to customize the data processing.
|
|
28
|
+
*
|
|
29
|
+
* @default []
|
|
30
|
+
*/
|
|
31
|
+
dataSource?: Record<string, any>[] | DataManager;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Defines the external [`query`](http://ej2.syncfusion.com/documentation/data/api-query.html)
|
|
35
|
+
* that will be executed along with the data processing.
|
|
36
|
+
*
|
|
37
|
+
* @default null
|
|
38
|
+
*/
|
|
39
|
+
query?: Query;
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Defines the collection of default event fields to be bind to the Schedule.
|
|
43
|
+
*
|
|
44
|
+
* @default null
|
|
45
|
+
*/
|
|
46
|
+
fields?: FieldModel;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* When set to `true` will display the normal tooltip over the events with its subject, location, start and end time.
|
|
50
|
+
*
|
|
51
|
+
* @default false
|
|
52
|
+
*/
|
|
53
|
+
enableTooltip?: boolean;
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Defines the option to render the spanned events (more than 24 hours) in either `AllDayRow` or `TimeSlot`. By default it renders in `AllDayRow`.
|
|
57
|
+
* This property is applicable for `Day`, `Week` and `WorkWeek` views only. The possible values for this property as follows
|
|
58
|
+
* * `AllDayRow`: Denotes the rendering of spanned events in an all-day row.
|
|
59
|
+
* * `TimeSlot`: Denotes the rendering of spanned events in an time slot row.
|
|
60
|
+
* {% codeBlock src='schedule/spannedEventPlacement/index.md' %}{% endcodeBlock %}
|
|
61
|
+
*
|
|
62
|
+
* @default 'AllDayRow'
|
|
63
|
+
*/
|
|
64
|
+
spannedEventPlacement?: SpannedEventPlacement;
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Sets a minimum duration for an event where the events are rendered for this minimum duration when the duration of the event is lesser than this value.
|
|
68
|
+
* It accepts duration value in minutes. This property is only applicable when the event duration is lesser than this property duration.
|
|
69
|
+
*
|
|
70
|
+
* @default 1
|
|
71
|
+
*/
|
|
72
|
+
minimumEventDuration?: number;
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* It accepts either the string or HTMLElement as template design content and parse it appropriately before displaying it onto tooltip.
|
|
76
|
+
* All the event fields mapped with Schedule dataSource can be accessed within this template code.
|
|
77
|
+
* {% codeBlock src="schedule/tooltip-template-api/index.ts" %}{% endcodeBlock %}
|
|
78
|
+
*
|
|
79
|
+
* @default null
|
|
80
|
+
* @angularType string | object
|
|
81
|
+
* @reactType string | function | JSX.Element
|
|
82
|
+
* @vueType string | function
|
|
83
|
+
* @aspType string
|
|
84
|
+
*/
|
|
85
|
+
tooltipTemplate?: string | Function;
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Defines the resource name, to decides the color of which particular resource level is to be applied on appointments, when
|
|
89
|
+
* grouping is enabled on scheduler.
|
|
90
|
+
* {% codeBlock src="schedule/resource-color-field-api/index.ts" %}{% endcodeBlock %}
|
|
91
|
+
*
|
|
92
|
+
* @default null
|
|
93
|
+
*/
|
|
94
|
+
resourceColorField?: string;
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* When set to `true` will edit the future events only instead of editing entire series.
|
|
98
|
+
*
|
|
99
|
+
* @default false
|
|
100
|
+
*/
|
|
101
|
+
editFollowingEvents?: boolean;
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* When set to `false` the add action will be restricted.
|
|
105
|
+
*
|
|
106
|
+
* @default true
|
|
107
|
+
*/
|
|
108
|
+
allowAdding?: boolean;
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* When set to `false` the edit action will be restricted.
|
|
112
|
+
*
|
|
113
|
+
* @default true
|
|
114
|
+
*/
|
|
115
|
+
allowEditing?: boolean;
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* When set to `false` the delete action will be restricted.
|
|
119
|
+
*
|
|
120
|
+
* @default true
|
|
121
|
+
*/
|
|
122
|
+
allowDeleting?: boolean;
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* It enables the event to occupy the full height of the cell without the header of the cell.
|
|
126
|
+
*
|
|
127
|
+
* @default false
|
|
128
|
+
*/
|
|
129
|
+
enableMaxHeight?: boolean;
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* This property enables the event to occupy the full height that remaining from the header and more indicator.
|
|
133
|
+
* More than one appointment are available on the cell the more indicator is created.
|
|
134
|
+
*
|
|
135
|
+
* @default false
|
|
136
|
+
*/
|
|
137
|
+
enableIndicator?: boolean;
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* This property ignores or include the Events element bottom white space.
|
|
141
|
+
*
|
|
142
|
+
* @default false
|
|
143
|
+
*/
|
|
144
|
+
ignoreWhitespace?: boolean;
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* Defines the custom sort comparer function.
|
|
148
|
+
* The sort comparer function has the same functionality like
|
|
149
|
+
* [`Array.sort`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort) sort comparer.
|
|
150
|
+
*
|
|
151
|
+
* @default null
|
|
152
|
+
*/
|
|
153
|
+
sortComparer?: SortComparerFunction;
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* Gets or sets a value that determines whether the start date and end date filter conditions should be included in the query itself when requesting data from the server, or passed as query parameters in the API call.
|
|
157
|
+
* When set to <c>true</c> the filter conditions will be part of the query itself, potentially reducing the size of the request and minimizing the time needed to parse the response.
|
|
158
|
+
* However, it can also lead to longer query strings, which could result in issues with maximum URL length or server limitations on query string length.
|
|
159
|
+
*
|
|
160
|
+
* @default false
|
|
161
|
+
*/
|
|
162
|
+
includeFiltersInQuery?: boolean;
|
|
163
163
|
|
|
164
164
|
}
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
var __extends = (this && this.__extends) || (function () {
|
|
2
|
-
var extendStatics = function (d, b) {
|
|
3
|
-
extendStatics = Object.setPrototypeOf ||
|
|
4
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
6
|
-
return extendStatics(d, b);
|
|
7
|
-
};
|
|
8
|
-
return function (d, b) {
|
|
9
|
-
extendStatics(d, b);
|
|
10
|
-
function __() { this.constructor = d; }
|
|
11
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12
|
-
};
|
|
13
|
-
})();
|
|
14
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
15
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
16
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
17
|
-
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;
|
|
18
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19
|
-
};
|
|
1
|
+
var __extends = (this && this.__extends) || (function () {
|
|
2
|
+
var extendStatics = function (d, b) {
|
|
3
|
+
extendStatics = Object.setPrototypeOf ||
|
|
4
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
6
|
+
return extendStatics(d, b);
|
|
7
|
+
};
|
|
8
|
+
return function (d, b) {
|
|
9
|
+
extendStatics(d, b);
|
|
10
|
+
function __() { this.constructor = d; }
|
|
11
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12
|
+
};
|
|
13
|
+
})();
|
|
14
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
15
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
16
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
17
|
+
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;
|
|
18
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19
|
+
};
|
|
20
20
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
21
21
|
import { Property, ChildProperty, Complex } from '@syncfusion/ej2-base';
|
|
22
22
|
import { Field } from './fields';
|