@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,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
|
import { Property, ChildProperty, Complex, Collection } from '@syncfusion/ej2-base';
|
|
21
21
|
import { TimeScale } from '../models/time-scale';
|
|
22
22
|
import { Group } from '../models/group';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Property, ChildProperty } from '@syncfusion/ej2-base';
|
|
1
|
+
import { Property, ChildProperty } from '@syncfusion/ej2-base';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Interface for a class WorkHours
|
|
@@ -6,24 +6,24 @@ import { Property, ChildProperty } from '@syncfusion/ej2-base';
|
|
|
6
6
|
export interface WorkHoursModel {
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
|
-
* When set to `true`, highlights the cells of working hour range with an active color.
|
|
10
|
-
*
|
|
11
|
-
* @default true
|
|
12
|
-
*/
|
|
13
|
-
highlight?: boolean;
|
|
9
|
+
* When set to `true`, highlights the cells of working hour range with an active color.
|
|
10
|
+
*
|
|
11
|
+
* @default true
|
|
12
|
+
*/
|
|
13
|
+
highlight?: boolean;
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
|
-
* It accepts the time string in short skeleton format `Hm` and usually denotes the start of the working hour range.
|
|
17
|
-
*
|
|
18
|
-
* @default '09:00'
|
|
19
|
-
*/
|
|
20
|
-
start?: string;
|
|
16
|
+
* It accepts the time string in short skeleton format `Hm` and usually denotes the start of the working hour range.
|
|
17
|
+
*
|
|
18
|
+
* @default '09:00'
|
|
19
|
+
*/
|
|
20
|
+
start?: string;
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
|
-
* It accepts the time string in short skeleton format `Hm` and usually denotes the end of the working hour range.
|
|
24
|
-
*
|
|
25
|
-
* @default '18:00'
|
|
26
|
-
*/
|
|
27
|
-
end?: string;
|
|
23
|
+
* It accepts the time string in short skeleton format `Hm` and usually denotes the end of the working hour range.
|
|
24
|
+
*
|
|
25
|
+
* @default '18:00'
|
|
26
|
+
*/
|
|
27
|
+
end?: string;
|
|
28
28
|
|
|
29
29
|
}
|
|
@@ -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
|
import { Property, ChildProperty } from '@syncfusion/ej2-base';
|
|
21
21
|
/**
|
|
22
22
|
* A class that represents the configuration of working hours related options of scheduler.
|
|
@@ -79,7 +79,8 @@ var EventTooltip = /** @class */ (function () {
|
|
|
79
79
|
var fields = this.parent.eventFields;
|
|
80
80
|
var eventStart = new Date('' + record[fields.startTime]);
|
|
81
81
|
var eventEnd = new Date('' + record[fields.endTime]);
|
|
82
|
-
eventEnd = (eventEnd.
|
|
82
|
+
eventEnd = ((eventEnd.getTime() - eventStart.getTime() !== 0) && eventEnd.getHours() === 0 && eventEnd.getMinutes() === 0) ?
|
|
83
|
+
new Date(eventEnd.setMilliseconds(-1000)) : eventEnd;
|
|
83
84
|
var startDate = util.resetTime(new Date('' + eventStart));
|
|
84
85
|
var endDate = util.resetTime(new Date('' + eventEnd));
|
|
85
86
|
var tooltipSubject = (record[fields.subject] || this.parent.eventSettings.fields.subject.default
|
|
@@ -35,6 +35,7 @@ export declare class EventWindow {
|
|
|
35
35
|
refreshRecurrenceEditor(): void;
|
|
36
36
|
setRecurrenceEditor(recurrenceEditor: RecurrenceEditor): void;
|
|
37
37
|
openEditor(data: Record<string, any>, type: CurrentAction, isEventData?: boolean, repeatType?: number): void;
|
|
38
|
+
private setEditorContent;
|
|
38
39
|
setDialogContent(): void;
|
|
39
40
|
setDialogHeader(): void;
|
|
40
41
|
setDialogFooter(): void;
|
|
@@ -159,8 +159,13 @@ var EventWindow = /** @class */ (function () {
|
|
|
159
159
|
this.addEventHandlers();
|
|
160
160
|
}
|
|
161
161
|
if (!isNullOrUndefined(this.parent.editorTemplate)) {
|
|
162
|
-
this.renderFormElements(this.element.querySelector('.e-schedule-form'), data);
|
|
162
|
+
this.renderFormElements(this.element.querySelector('.e-schedule-form'), data, type, repeatType);
|
|
163
163
|
}
|
|
164
|
+
else {
|
|
165
|
+
this.setEditorContent(data, type, repeatType);
|
|
166
|
+
}
|
|
167
|
+
};
|
|
168
|
+
EventWindow.prototype.setEditorContent = function (data, type, repeatType) {
|
|
164
169
|
if (!this.parent.isAdaptive && isNullOrUndefined(this.parent.editorTemplate)) {
|
|
165
170
|
removeClass([this.dialogObject.element.querySelector('.e-recurrenceeditor')], cls.DISABLE_CLASS);
|
|
166
171
|
}
|
|
@@ -341,7 +346,7 @@ var EventWindow = /** @class */ (function () {
|
|
|
341
346
|
container.appendChild(form);
|
|
342
347
|
return container;
|
|
343
348
|
};
|
|
344
|
-
EventWindow.prototype.renderFormElements = function (form, args) {
|
|
349
|
+
EventWindow.prototype.renderFormElements = function (form, args, type, repeatType) {
|
|
345
350
|
var _this = this;
|
|
346
351
|
if (!isNullOrUndefined(this.parent.editorTemplate)) {
|
|
347
352
|
if (args) {
|
|
@@ -370,15 +375,17 @@ var EventWindow = /** @class */ (function () {
|
|
|
370
375
|
this.parent.renderTemplates(function () {
|
|
371
376
|
if (_this.element) {
|
|
372
377
|
_this.applyFormValidation();
|
|
373
|
-
if (
|
|
374
|
-
_this.
|
|
375
|
-
_this.eventCrudData = null;
|
|
378
|
+
if (args) {
|
|
379
|
+
_this.setEditorContent(args, type, repeatType);
|
|
376
380
|
}
|
|
377
381
|
}
|
|
378
382
|
});
|
|
379
383
|
}
|
|
380
384
|
else {
|
|
381
385
|
form.appendChild(this.getDefaultEventWindowContent());
|
|
386
|
+
if (args) {
|
|
387
|
+
this.setEditorContent(args, type, repeatType);
|
|
388
|
+
}
|
|
382
389
|
}
|
|
383
390
|
};
|
|
384
391
|
EventWindow.prototype.getDefaultEventWindowContent = function () {
|
|
@@ -977,13 +984,9 @@ var EventWindow = /** @class */ (function () {
|
|
|
977
984
|
this.fieldValidator.renderFormValidator(form, rules, this.element, this.parent.locale);
|
|
978
985
|
};
|
|
979
986
|
EventWindow.prototype.showDetails = function (eventData) {
|
|
980
|
-
this.eventData =
|
|
987
|
+
this.eventData = eventData;
|
|
981
988
|
var eventObj = extend({}, eventData, null, true);
|
|
982
989
|
var formElements = this.getFormElements(cls.EVENT_WINDOW_DIALOG_CLASS);
|
|
983
|
-
if (this.parent.isReact && formElements.length < 1 && !this.cellClickAction) {
|
|
984
|
-
this.eventCrudData = eventObj;
|
|
985
|
-
return;
|
|
986
|
-
}
|
|
987
990
|
if ((!this.cellClickAction || this.cellClickAction && !isNullOrUndefined(this.parent.editorTemplate)) &&
|
|
988
991
|
eventObj[this.fields.endTime].getHours() === 0 && eventObj[this.fields.endTime].getMinutes() === 0) {
|
|
989
992
|
this.trimAllDay(eventObj);
|
|
@@ -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 { formatUnit, isNullOrUndefined, closest, extend, append, prepend, remove } from '@syncfusion/ej2-base';
|
|
16
16
|
import { createElement, addClass, EventHandler } from '@syncfusion/ej2-base';
|
|
@@ -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
|
import { VerticalView } from './vertical-view';
|
|
15
15
|
/**
|
|
16
16
|
* day view
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
var __assign = (this && this.__assign) || function () {
|
|
2
|
-
__assign = Object.assign || function(t) {
|
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
-
s = arguments[i];
|
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
-
t[p] = s[p];
|
|
7
|
-
}
|
|
8
|
-
return t;
|
|
9
|
-
};
|
|
10
|
-
return __assign.apply(this, arguments);
|
|
11
|
-
};
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
12
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
13
13
|
import { isNullOrUndefined, createElement, remove, closest, addClass, removeClass, extend, append } from '@syncfusion/ej2-base';
|
|
14
14
|
import { Toolbar } from '@syncfusion/ej2-navigations';
|
|
@@ -81,10 +81,12 @@ var HeaderRenderer = /** @class */ (function () {
|
|
|
81
81
|
items: args.items,
|
|
82
82
|
overflowMode: 'Popup',
|
|
83
83
|
clicked: _this.toolbarClickHandler.bind(_this),
|
|
84
|
+
created: _this.toolbarCreateHandler.bind(_this),
|
|
84
85
|
enableRtl: _this.parent.enableRtl,
|
|
85
86
|
enableHtmlSanitizer: _this.parent.enableHtmlSanitizer,
|
|
86
87
|
locale: _this.parent.locale
|
|
87
88
|
});
|
|
89
|
+
_this.toolbarObj.isStringTemplate = true;
|
|
88
90
|
_this.toolbarObj.root = _this.parent.root ? _this.parent.root : _this.parent;
|
|
89
91
|
_this.toolbarObj.appendTo(_this.parent.element.querySelector('.' + cls.HEADER_TOOLBAR));
|
|
90
92
|
_this.toolbarObj.element.setAttribute('aria-label', 'Scheduler');
|
|
@@ -517,6 +519,12 @@ var HeaderRenderer = /** @class */ (function () {
|
|
|
517
519
|
var views = [].slice.call(this.element.querySelectorAll('.e-views'));
|
|
518
520
|
return views.indexOf(target);
|
|
519
521
|
};
|
|
522
|
+
HeaderRenderer.prototype.toolbarCreateHandler = function () {
|
|
523
|
+
if (this.parent && this.parent.portals && this.toolbarObj && this.toolbarObj.portals) {
|
|
524
|
+
this.parent.portals = this.parent.portals.concat(this.toolbarObj.portals);
|
|
525
|
+
this.parent['renderReactTemplates']();
|
|
526
|
+
}
|
|
527
|
+
};
|
|
520
528
|
HeaderRenderer.prototype.toolbarClickHandler = function (args) {
|
|
521
529
|
if (!args.item) {
|
|
522
530
|
return;
|
|
@@ -660,7 +668,7 @@ var HeaderRenderer = /** @class */ (function () {
|
|
|
660
668
|
var firstDate = new Date(dates[0].getTime());
|
|
661
669
|
var lastDate = new Date(dates[dates.length - 1].getTime());
|
|
662
670
|
if (this.parent.currentView === 'WorkWeek' || this.parent.currentView === 'TimelineWorkWeek') {
|
|
663
|
-
firstDate = util.getWeekFirstDate(util.resetTime(this.parent.selectedDate), this.parent.firstDayOfWeek);
|
|
671
|
+
firstDate = util.getWeekFirstDate(util.resetTime(this.parent.selectedDate), this.parent.activeViewOptions.firstDayOfWeek);
|
|
664
672
|
lastDate = util.addDays(firstDate, 7 * this.parent.activeViewOptions.interval);
|
|
665
673
|
}
|
|
666
674
|
else if (this.parent.currentView === 'Month') {
|
|
@@ -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 { EventHandler, createElement, addClass, formatUnit, remove } from '@syncfusion/ej2-base';
|
|
16
16
|
import { AgendaBase } from '../event-renderer/agenda-base';
|
|
@@ -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 { EventHandler, formatUnit, isNullOrUndefined, createElement, addClass, append, prepend, remove, extend } from '@syncfusion/ej2-base';
|
|
16
16
|
import { ViewBase } from './view-base';
|
|
@@ -483,7 +483,13 @@ var Month = /** @class */ (function (_super) {
|
|
|
483
483
|
var tr = createElement('tr');
|
|
484
484
|
var td = createElement('td', { attrs: { 'aria-selected': 'false' } });
|
|
485
485
|
var slotDatas = this.getContentSlots();
|
|
486
|
+
var isTimeline = this.parent.currentView === 'TimelineMonth';
|
|
487
|
+
var existingGroupIndices = isTimeline ? this.getGroupIndices() : [];
|
|
486
488
|
for (var row = 0; row < slotDatas.length; row++) {
|
|
489
|
+
if (existingGroupIndices.length > 0 &&
|
|
490
|
+
existingGroupIndices.indexOf(slotDatas[parseInt(row.toString(), 10)][0].groupIndex) > -1) {
|
|
491
|
+
continue;
|
|
492
|
+
}
|
|
487
493
|
var ntr = tr.cloneNode();
|
|
488
494
|
for (var col = 0; col < slotDatas[parseInt(row.toString(), 10)].length; col++) {
|
|
489
495
|
var ntd = this.createContentTd(slotDatas[parseInt(row.toString(), 10)][parseInt(col.toString(), 10)], td);
|
|
@@ -35,7 +35,7 @@ var TimelineHeaderRow = /** @class */ (function () {
|
|
|
35
35
|
var jsDate = +new Date(1970, 0, 1);
|
|
36
36
|
var tzOffsetDiff = d.getTimezoneOffset() - new Date(1970, 0, 1).getTimezoneOffset();
|
|
37
37
|
var key = Math.ceil(((((+d - jsDate) - (tzOffsetDiff * 60 * 1000)) / MS_PER_DAY) + new Date(jsDate).getDay() + 1) / 7);
|
|
38
|
-
if (this.parent.firstDayOfWeek && this.parent.firstDayOfWeek > new Date(+d).getDay()) {
|
|
38
|
+
if (this.parent.activeViewOptions.firstDayOfWeek && this.parent.activeViewOptions.firstDayOfWeek > new Date(+d).getDay()) {
|
|
39
39
|
key = key - 1;
|
|
40
40
|
}
|
|
41
41
|
result[parseInt(key.toString(), 10)] = result[parseInt(key.toString(), 10)] || [];
|
|
@@ -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
|
import { EventHandler, createElement, formatUnit } from '@syncfusion/ej2-base';
|
|
15
15
|
import { Month } from './month';
|
|
16
16
|
import { TimelineEvent } from '../event-renderer/timeline-view';
|
|
@@ -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
|
import { isNullOrUndefined, createElement, prepend, extend, formatUnit, append, setStyleAttribute } from '@syncfusion/ej2-base';
|
|
15
15
|
import { VerticalView } from './vertical-view';
|
|
16
16
|
import { TimelineEvent } from '../event-renderer/timeline-view';
|
|
@@ -72,7 +72,7 @@ var TimelineViews = /** @class */ (function (_super) {
|
|
|
72
72
|
}
|
|
73
73
|
var scrollLeft;
|
|
74
74
|
if (isNullOrUndefined(hour) || !this.parent.activeViewOptions.timeScale.enable) {
|
|
75
|
-
scrollLeft = index *
|
|
75
|
+
scrollLeft = index * this.parent.getElementWidth(this.element.querySelector('.e-work-cells'));
|
|
76
76
|
}
|
|
77
77
|
else {
|
|
78
78
|
scrollLeft = isNullOrUndefined(scrollDate) ? this.getLeftFromDateTime(null, date) :
|
|
@@ -159,7 +159,7 @@ var TimelineViews = /** @class */ (function (_super) {
|
|
|
159
159
|
if (this.parent.activeView.colLevels[parseInt(index.toString(), 10)] &&
|
|
160
160
|
this.parent.activeView.colLevels[parseInt(index.toString(), 10)][0].colSpan) {
|
|
161
161
|
diffInDates = currentDateIndex[0] * this.parent.activeView.colLevels[parseInt(index.toString(), 10)][0].colSpan *
|
|
162
|
-
|
|
162
|
+
this.parent.getElementWidth(this.element.querySelector('.e-work-cells'));
|
|
163
163
|
}
|
|
164
164
|
else {
|
|
165
165
|
var endHour = this.getEndHour();
|
|
@@ -169,8 +169,8 @@ var TimelineViews = /** @class */ (function (_super) {
|
|
|
169
169
|
}
|
|
170
170
|
}
|
|
171
171
|
}
|
|
172
|
-
return diffInDates + ((diffInMinutes *
|
|
173
|
-
this.parent.activeViewOptions.timeScale.interval);
|
|
172
|
+
return diffInDates + ((diffInMinutes * this.parent.getElementWidth(this.element.querySelector('.e-work-cells'))
|
|
173
|
+
* this.parent.activeViewOptions.timeScale.slotCount) / this.parent.activeViewOptions.timeScale.interval);
|
|
174
174
|
};
|
|
175
175
|
TimelineViews.prototype.renderHeader = function () {
|
|
176
176
|
var tr = createElement('tr');
|
|
@@ -237,7 +237,12 @@ var TimelineViews = /** @class */ (function (_super) {
|
|
|
237
237
|
var tr = createElement('tr');
|
|
238
238
|
var td = createElement('td', { attrs: { 'aria-selected': 'false' } });
|
|
239
239
|
var trCount = this.getRowCount();
|
|
240
|
+
var existingGroupIndices = this.getGroupIndices();
|
|
240
241
|
for (var i = 0; i < trCount; i++) {
|
|
242
|
+
if (existingGroupIndices.length > 0 &&
|
|
243
|
+
existingGroupIndices.indexOf(this.parent.resourceBase.renderedResources[parseInt(i.toString(), 10)].groupIndex) > -1) {
|
|
244
|
+
continue;
|
|
245
|
+
}
|
|
241
246
|
var ntr = tr.cloneNode();
|
|
242
247
|
for (var _i = 0, _a = this.colLevels[this.colLevels.length - 1]; _i < _a.length; _i++) {
|
|
243
248
|
var tdData = _a[_i];
|
|
@@ -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, addClass, createElement, EventHandler } from '@syncfusion/ej2-base';
|
|
16
16
|
import { Year } from './year';
|
|
@@ -301,13 +301,17 @@ var TimelineYear = /** @class */ (function (_super) {
|
|
|
301
301
|
TimelineYear.prototype.getContentRows = function () {
|
|
302
302
|
var tRow = [];
|
|
303
303
|
var monthCells = this.getMonths();
|
|
304
|
+
var existingGroupIndices = this.getGroupIndices();
|
|
304
305
|
for (var row = 0; row < this.parent.resourceBase.renderedResources.length; row++) {
|
|
305
|
-
var tr = createElement('tr');
|
|
306
|
-
tRow.push(tr);
|
|
307
306
|
var resData = void 0;
|
|
308
307
|
if (this.parent.activeViewOptions.group.resources.length > 0 && !this.parent.uiStateValues.isGroupAdaptive) {
|
|
309
308
|
resData = this.parent.resourceBase.renderedResources[parseInt(row.toString(), 10)];
|
|
309
|
+
if (existingGroupIndices.length > 0 && existingGroupIndices.indexOf(resData.groupIndex) > -1) {
|
|
310
|
+
continue;
|
|
311
|
+
}
|
|
310
312
|
}
|
|
313
|
+
var tr = createElement('tr');
|
|
314
|
+
tRow.push(tr);
|
|
311
315
|
var monthDate = new Date(this.parent.selectedDate.getFullYear(), monthCells[parseInt(row.toString(), 10)], 1);
|
|
312
316
|
var date = this.parent.calendarUtil.getMonthStartDate(new Date(monthDate.getTime()));
|
|
313
317
|
for (var month = 0; month < this.columnCount; month++) {
|