@syncfusion/ej2-schedule 30.2.4 → 31.1.17
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/dist/ej2-schedule.min.js +2 -2
- package/dist/ej2-schedule.umd.min.js +2 -2
- package/dist/ej2-schedule.umd.min.js.map +1 -1
- package/dist/es6/ej2-schedule.es2015.js +132 -43
- package/dist/es6/ej2-schedule.es2015.js.map +1 -1
- package/dist/es6/ej2-schedule.es5.js +132 -43
- package/dist/es6/ej2-schedule.es5.js.map +1 -1
- package/dist/global/ej2-schedule.min.js +2 -2
- package/dist/global/ej2-schedule.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/dist/ts/common/calendar-util.d.ts +92 -0
- package/dist/ts/common/calendar-util.ts +261 -0
- package/dist/ts/common/index.d.ts +4 -0
- package/dist/ts/common/index.ts +4 -0
- package/dist/ts/components.d.ts +5 -0
- package/dist/ts/components.ts +5 -0
- package/dist/ts/index.d.ts +6 -0
- package/dist/ts/index.ts +7 -0
- package/dist/ts/recurrence-editor/date-generator.d.ts +76 -0
- package/dist/ts/recurrence-editor/date-generator.ts +1699 -0
- package/dist/ts/recurrence-editor/index.d.ts +6 -0
- package/dist/ts/recurrence-editor/index.ts +6 -0
- package/dist/ts/recurrence-editor/recurrence-editor-model.d.ts +112 -0
- package/dist/ts/recurrence-editor/recurrence-editor.d.ts +245 -0
- package/dist/ts/recurrence-editor/recurrence-editor.ts +1257 -0
- package/dist/ts/schedule/actions/action-base.d.ts +44 -0
- package/dist/ts/schedule/actions/action-base.ts +493 -0
- package/dist/ts/schedule/actions/crud.d.ts +41 -0
- package/dist/ts/schedule/actions/crud.ts +784 -0
- package/dist/ts/schedule/actions/data.d.ts +63 -0
- package/dist/ts/schedule/actions/data.ts +128 -0
- package/dist/ts/schedule/actions/drag.d.ts +75 -0
- package/dist/ts/schedule/actions/drag.ts +1401 -0
- package/dist/ts/schedule/actions/keyboard.d.ts +100 -0
- package/dist/ts/schedule/actions/keyboard.ts +1435 -0
- package/dist/ts/schedule/actions/resize.d.ts +27 -0
- package/dist/ts/schedule/actions/resize.ts +602 -0
- package/dist/ts/schedule/actions/scroll.d.ts +69 -0
- package/dist/ts/schedule/actions/scroll.ts +105 -0
- package/dist/ts/schedule/actions/touch.d.ts +32 -0
- package/dist/ts/schedule/actions/touch.ts +314 -0
- package/dist/ts/schedule/actions/virtual-scroll.d.ts +55 -0
- package/dist/ts/schedule/actions/virtual-scroll.ts +596 -0
- package/dist/ts/schedule/actions/work-cells.d.ts +14 -0
- package/dist/ts/schedule/actions/work-cells.ts +151 -0
- package/dist/ts/schedule/base/constant.d.ts +102 -0
- package/dist/ts/schedule/base/constant.ts +103 -0
- package/dist/ts/schedule/base/css-constant.d.ts +475 -0
- package/dist/ts/schedule/base/css-constant.ts +475 -0
- package/dist/ts/schedule/base/interface.d.ts +673 -0
- package/dist/ts/schedule/base/interface.ts +738 -0
- package/dist/ts/schedule/base/resource.d.ts +59 -0
- package/dist/ts/schedule/base/resource.ts +1091 -0
- package/dist/ts/schedule/base/schedule-model.d.ts +930 -0
- package/dist/ts/schedule/base/schedule.d.ts +1967 -0
- package/dist/ts/schedule/base/schedule.ts +4221 -0
- package/dist/ts/schedule/base/type.d.ts +134 -0
- package/dist/ts/schedule/base/type.ts +142 -0
- package/dist/ts/schedule/base/util.d.ts +266 -0
- package/dist/ts/schedule/base/util.ts +492 -0
- package/dist/ts/schedule/event-renderer/agenda-base.d.ts +15 -0
- package/dist/ts/schedule/event-renderer/agenda-base.ts +423 -0
- package/dist/ts/schedule/event-renderer/event-base.d.ts +101 -0
- package/dist/ts/schedule/event-renderer/event-base.ts +1501 -0
- package/dist/ts/schedule/event-renderer/inline-edit.d.ts +23 -0
- package/dist/ts/schedule/event-renderer/inline-edit.ts +287 -0
- package/dist/ts/schedule/event-renderer/month.d.ts +60 -0
- package/dist/ts/schedule/event-renderer/month.ts +760 -0
- package/dist/ts/schedule/event-renderer/timeline-view.d.ts +51 -0
- package/dist/ts/schedule/event-renderer/timeline-view.ts +606 -0
- package/dist/ts/schedule/event-renderer/vertical-view.d.ts +57 -0
- package/dist/ts/schedule/event-renderer/vertical-view.ts +898 -0
- package/dist/ts/schedule/event-renderer/year.d.ts +27 -0
- package/dist/ts/schedule/event-renderer/year.ts +623 -0
- package/dist/ts/schedule/exports/calendar-export.d.ts +16 -0
- package/dist/ts/schedule/exports/calendar-export.ts +160 -0
- package/dist/ts/schedule/exports/calendar-import.d.ts +18 -0
- package/dist/ts/schedule/exports/calendar-import.ts +277 -0
- package/dist/ts/schedule/exports/excel-export.d.ts +14 -0
- package/dist/ts/schedule/exports/excel-export.ts +89 -0
- package/dist/ts/schedule/exports/index.d.ts +7 -0
- package/dist/ts/schedule/exports/index.ts +7 -0
- package/dist/ts/schedule/exports/print.d.ts +20 -0
- package/dist/ts/schedule/exports/print.ts +233 -0
- package/dist/ts/schedule/index.d.ts +26 -0
- package/dist/ts/schedule/index.ts +26 -0
- package/dist/ts/schedule/models/event-settings-model.d.ts +165 -0
- package/dist/ts/schedule/models/event-settings.d.ts +149 -0
- package/dist/ts/schedule/models/event-settings.ts +187 -0
- package/dist/ts/schedule/models/field-options-model.d.ts +37 -0
- package/dist/ts/schedule/models/field-options.d.ts +31 -0
- package/dist/ts/schedule/models/field-options.ts +41 -0
- package/dist/ts/schedule/models/fields-model.d.ts +129 -0
- package/dist/ts/schedule/models/fields.d.ts +117 -0
- package/dist/ts/schedule/models/fields.ts +149 -0
- package/dist/ts/schedule/models/group-model.d.ts +69 -0
- package/dist/ts/schedule/models/group.d.ts +60 -0
- package/dist/ts/schedule/models/group.ts +75 -0
- package/dist/ts/schedule/models/header-rows-model.d.ts +33 -0
- package/dist/ts/schedule/models/header-rows.d.ts +30 -0
- package/dist/ts/schedule/models/header-rows.ts +35 -0
- package/dist/ts/schedule/models/models.d.ts +14 -0
- package/dist/ts/schedule/models/models.ts +15 -0
- package/dist/ts/schedule/models/quick-info-templates-model.d.ts +52 -0
- package/dist/ts/schedule/models/quick-info-templates.d.ts +47 -0
- package/dist/ts/schedule/models/quick-info-templates.ts +56 -0
- package/dist/ts/schedule/models/resources-model.d.ts +122 -0
- package/dist/ts/schedule/models/resources.d.ts +106 -0
- package/dist/ts/schedule/models/resources.ts +138 -0
- package/dist/ts/schedule/models/time-scale-model.d.ts +57 -0
- package/dist/ts/schedule/models/time-scale.d.ts +50 -0
- package/dist/ts/schedule/models/time-scale.ts +61 -0
- package/dist/ts/schedule/models/toolbar-model.d.ts +196 -0
- package/dist/ts/schedule/models/toolbar.d.ts +176 -0
- package/dist/ts/schedule/models/toolbar.ts +196 -0
- package/dist/ts/schedule/models/views-model.d.ts +370 -0
- package/dist/ts/schedule/models/views.d.ts +335 -0
- package/dist/ts/schedule/models/views.ts +408 -0
- package/dist/ts/schedule/models/work-hours-model.d.ts +29 -0
- package/dist/ts/schedule/models/work-hours.d.ts +24 -0
- package/dist/ts/schedule/models/work-hours.ts +31 -0
- package/dist/ts/schedule/popups/event-tooltip.d.ts +16 -0
- package/dist/ts/schedule/popups/event-tooltip.ts +203 -0
- package/dist/ts/schedule/popups/event-window.d.ts +118 -0
- package/dist/ts/schedule/popups/event-window.ts +2055 -0
- package/dist/ts/schedule/popups/form-validator.d.ts +16 -0
- package/dist/ts/schedule/popups/form-validator.ts +110 -0
- package/dist/ts/schedule/popups/quick-popups.d.ts +78 -0
- package/dist/ts/schedule/popups/quick-popups.ts +1470 -0
- package/dist/ts/schedule/renderer/agenda.d.ts +45 -0
- package/dist/ts/schedule/renderer/agenda.ts +497 -0
- package/dist/ts/schedule/renderer/day.d.ts +20 -0
- package/dist/ts/schedule/renderer/day.ts +28 -0
- package/dist/ts/schedule/renderer/header-renderer.d.ts +48 -0
- package/dist/ts/schedule/renderer/header-renderer.ts +736 -0
- package/dist/ts/schedule/renderer/month-agenda.d.ts +29 -0
- package/dist/ts/schedule/renderer/month-agenda.ts +184 -0
- package/dist/ts/schedule/renderer/month.d.ts +61 -0
- package/dist/ts/schedule/renderer/month.ts +766 -0
- package/dist/ts/schedule/renderer/renderer.d.ts +13 -0
- package/dist/ts/schedule/renderer/renderer.ts +165 -0
- package/dist/ts/schedule/renderer/timeline-header-row.d.ts +15 -0
- package/dist/ts/schedule/renderer/timeline-header-row.ts +132 -0
- package/dist/ts/schedule/renderer/timeline-month.d.ts +29 -0
- package/dist/ts/schedule/renderer/timeline-month.ts +184 -0
- package/dist/ts/schedule/renderer/timeline-view.d.ts +31 -0
- package/dist/ts/schedule/renderer/timeline-view.ts +308 -0
- package/dist/ts/schedule/renderer/timeline-year.d.ts +22 -0
- package/dist/ts/schedule/renderer/timeline-year.ts +450 -0
- package/dist/ts/schedule/renderer/vertical-view.d.ts +63 -0
- package/dist/ts/schedule/renderer/vertical-view.ts +911 -0
- package/dist/ts/schedule/renderer/view-base.d.ts +83 -0
- package/dist/ts/schedule/renderer/view-base.ts +709 -0
- package/dist/ts/schedule/renderer/week.d.ts +22 -0
- package/dist/ts/schedule/renderer/week.ts +35 -0
- package/dist/ts/schedule/renderer/work-week.d.ts +22 -0
- package/dist/ts/schedule/renderer/work-week.ts +36 -0
- package/dist/ts/schedule/renderer/year.d.ts +46 -0
- package/dist/ts/schedule/renderer/year.ts +470 -0
- package/dist/ts/schedule/timezone/timezone.d.ts +16 -0
- package/dist/ts/schedule/timezone/timezone.ts +313 -0
- package/package.json +56 -21
- package/src/schedule/actions/action-base.js +3 -0
- package/src/schedule/actions/drag.js +11 -4
- package/src/schedule/actions/keyboard.js +1 -1
- package/src/schedule/actions/resize.js +9 -5
- package/src/schedule/actions/virtual-scroll.js +3 -0
- package/src/schedule/base/css-constant.d.ts +2 -0
- package/src/schedule/base/css-constant.js +2 -0
- package/src/schedule/base/schedule.js +15 -1
- package/src/schedule/event-renderer/agenda-base.d.ts +1 -1
- package/src/schedule/event-renderer/agenda-base.js +5 -4
- package/src/schedule/event-renderer/inline-edit.js +11 -6
- package/src/schedule/event-renderer/month.js +5 -3
- package/src/schedule/event-renderer/vertical-view.js +3 -0
- package/src/schedule/event-renderer/year.d.ts +2 -0
- package/src/schedule/event-renderer/year.js +28 -4
- package/src/schedule/popups/event-tooltip.js +4 -0
- package/src/schedule/popups/event-window.js +2 -2
- package/src/schedule/popups/quick-popups.js +5 -1
- package/src/schedule/renderer/agenda.js +3 -2
- package/src/schedule/renderer/month.js +9 -7
- package/src/schedule/renderer/vertical-view.js +1 -1
- package/src/schedule/renderer/view-base.d.ts +2 -0
- package/src/schedule/renderer/view-base.js +9 -0
- package/src/schedule/renderer/year.js +3 -2
- package/styles/bds-lite.css +11 -8
- package/styles/bds.css +11 -8
- package/styles/bootstrap-dark-lite.css +12 -9
- package/styles/bootstrap-dark.css +12 -9
- package/styles/bootstrap-lite.css +12 -9
- package/styles/bootstrap.css +12 -9
- package/styles/bootstrap4-lite.css +11 -8
- package/styles/bootstrap4.css +11 -8
- package/styles/bootstrap5-dark-lite.css +11 -8
- package/styles/bootstrap5-dark.css +11 -8
- package/styles/bootstrap5-lite.css +11 -8
- package/styles/bootstrap5.3-lite.css +11 -8
- package/styles/bootstrap5.3.css +11 -8
- package/styles/bootstrap5.css +11 -8
- package/styles/fabric-dark-lite.css +12 -9
- package/styles/fabric-dark.css +12 -9
- package/styles/fabric-lite.css +12 -9
- package/styles/fabric.css +12 -9
- package/styles/fluent-dark-lite.css +13 -10
- package/styles/fluent-dark.css +13 -10
- package/styles/fluent-lite.css +13 -10
- package/styles/fluent.css +13 -10
- package/styles/fluent2-lite.css +11 -8
- package/styles/fluent2.css +11 -8
- package/styles/highcontrast-light-lite.css +12 -9
- package/styles/highcontrast-light.css +12 -9
- package/styles/highcontrast-lite.css +12 -9
- package/styles/highcontrast.css +12 -9
- package/styles/material-dark-lite.css +12 -9
- package/styles/material-dark.css +12 -9
- package/styles/material-lite.css +12 -9
- package/styles/material.css +12 -9
- package/styles/material3-dark-lite.css +11 -8
- package/styles/material3-dark.css +11 -8
- package/styles/material3-lite.css +11 -8
- package/styles/material3.css +11 -8
- package/styles/recurrence-editor/_bds-definition.scss +1 -0
- package/styles/recurrence-editor/_bootstrap-dark-definition.scss +1 -0
- package/styles/recurrence-editor/_bootstrap-definition.scss +1 -0
- package/styles/recurrence-editor/_bootstrap4-definition.scss +1 -0
- package/styles/recurrence-editor/_bootstrap5-definition.scss +1 -0
- package/styles/recurrence-editor/_bootstrap5.3-definition.scss +1 -0
- package/styles/recurrence-editor/_fabric-dark-definition.scss +1 -0
- package/styles/recurrence-editor/_fabric-definition.scss +1 -0
- package/styles/recurrence-editor/_fluent-definition.scss +1 -0
- package/styles/recurrence-editor/_fluent2-definition.scss +1 -0
- package/styles/recurrence-editor/_fusionnew-definition.scss +1 -0
- package/styles/recurrence-editor/_highcontrast-definition.scss +1 -0
- package/styles/recurrence-editor/_highcontrast-light-definition.scss +1 -0
- package/styles/recurrence-editor/_layout.scss +5 -1
- package/styles/recurrence-editor/_material-dark-definition.scss +1 -0
- package/styles/recurrence-editor/_material-definition.scss +1 -0
- package/styles/recurrence-editor/_material3-definition.scss +1 -0
- package/styles/recurrence-editor/_tailwind-definition.scss +1 -0
- package/styles/recurrence-editor/_tailwind3-definition.scss +1 -0
- package/styles/recurrence-editor/bds.css +3 -0
- package/styles/recurrence-editor/bootstrap-dark.css +4 -1
- package/styles/recurrence-editor/bootstrap.css +4 -1
- package/styles/recurrence-editor/bootstrap4.css +3 -0
- package/styles/recurrence-editor/bootstrap5-dark.css +3 -0
- package/styles/recurrence-editor/bootstrap5.3.css +3 -0
- package/styles/recurrence-editor/bootstrap5.css +3 -0
- package/styles/recurrence-editor/fabric-dark.css +4 -1
- package/styles/recurrence-editor/fabric.css +4 -1
- package/styles/recurrence-editor/fluent-dark.css +4 -1
- package/styles/recurrence-editor/fluent.css +4 -1
- package/styles/recurrence-editor/fluent2.css +3 -0
- package/styles/recurrence-editor/highcontrast-light.css +4 -1
- package/styles/recurrence-editor/highcontrast.css +4 -1
- package/styles/recurrence-editor/material-dark.css +4 -1
- package/styles/recurrence-editor/material.css +4 -1
- package/styles/recurrence-editor/material3-dark.css +3 -0
- package/styles/recurrence-editor/material3.css +3 -0
- package/styles/recurrence-editor/tailwind-dark.css +3 -0
- package/styles/recurrence-editor/tailwind.css +3 -0
- package/styles/recurrence-editor/tailwind3.css +3 -0
- package/styles/schedule/_bds-definition.scss +2 -0
- package/styles/schedule/_bootstrap-dark-definition.scss +2 -0
- package/styles/schedule/_bootstrap-definition.scss +2 -0
- package/styles/schedule/_bootstrap4-definition.scss +2 -0
- package/styles/schedule/_bootstrap5-definition.scss +2 -0
- package/styles/schedule/_bootstrap5.3-definition.scss +2 -0
- package/styles/schedule/_fabric-dark-definition.scss +2 -0
- package/styles/schedule/_fabric-definition.scss +2 -0
- package/styles/schedule/_fluent-definition.scss +3 -1
- package/styles/schedule/_fluent2-definition.scss +2 -0
- package/styles/schedule/_fusionnew-definition.scss +2 -0
- package/styles/schedule/_highcontrast-definition.scss +2 -0
- package/styles/schedule/_highcontrast-light-definition.scss +2 -0
- package/styles/schedule/_layout.scss +12 -11
- package/styles/schedule/_material-dark-definition.scss +2 -0
- package/styles/schedule/_material-definition.scss +2 -0
- package/styles/schedule/_material3-definition.scss +2 -0
- package/styles/schedule/_tailwind-definition.scss +2 -0
- package/styles/schedule/_tailwind3-definition.scss +2 -0
- package/styles/schedule/bds.css +8 -8
- package/styles/schedule/bootstrap-dark.css +8 -8
- package/styles/schedule/bootstrap.css +8 -8
- package/styles/schedule/bootstrap4.css +8 -8
- package/styles/schedule/bootstrap5-dark.css +8 -8
- package/styles/schedule/bootstrap5.3.css +8 -8
- package/styles/schedule/bootstrap5.css +8 -8
- package/styles/schedule/fabric-dark.css +8 -8
- package/styles/schedule/fabric.css +8 -8
- package/styles/schedule/fluent-dark.css +9 -9
- package/styles/schedule/fluent.css +9 -9
- package/styles/schedule/fluent2.css +8 -8
- package/styles/schedule/highcontrast-light.css +8 -8
- package/styles/schedule/highcontrast.css +8 -8
- package/styles/schedule/material-dark.css +8 -8
- package/styles/schedule/material.css +8 -8
- package/styles/schedule/material3-dark.css +8 -8
- package/styles/schedule/material3.css +8 -8
- package/styles/schedule/tailwind-dark.css +8 -8
- package/styles/schedule/tailwind.css +8 -8
- package/styles/schedule/tailwind3.css +8 -8
- package/styles/tailwind-dark-lite.css +11 -8
- package/styles/tailwind-dark.css +11 -8
- package/styles/tailwind-lite.css +11 -8
- package/styles/tailwind.css +11 -8
- package/styles/tailwind3-lite.css +11 -8
- package/styles/tailwind3.css +11 -8
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import { Property, ChildProperty } from '@syncfusion/ej2-base';import { DataManager, Query } from '@syncfusion/ej2-data';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Interface for a class Resources
|
|
5
|
+
*/
|
|
6
|
+
export interface ResourcesModel {
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* A value that binds to the resource field of event object.
|
|
10
|
+
*
|
|
11
|
+
* @default null
|
|
12
|
+
*/
|
|
13
|
+
field?: string;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* It holds the title of the resource field to be displayed on the schedule event editor window.
|
|
17
|
+
*
|
|
18
|
+
* @default null
|
|
19
|
+
*/
|
|
20
|
+
title?: string;
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* It represents a unique resource name for differentiating various resource objects while grouping.
|
|
24
|
+
*
|
|
25
|
+
* @default null
|
|
26
|
+
*/
|
|
27
|
+
name?: string;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* When set to true, allows multiple selection of resource names, thus creating multiple instances of same appointment for the
|
|
31
|
+
* selected resources.
|
|
32
|
+
*
|
|
33
|
+
* @default false
|
|
34
|
+
*/
|
|
35
|
+
allowMultiple?: boolean;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Assigns the resource dataSource
|
|
39
|
+
* The data can be passed either as an array of JavaScript objects,
|
|
40
|
+
* or else can create an instance of [`DataManager`](http://ej2.syncfusion.com/documentation/data/api-dataManager.html)
|
|
41
|
+
* in case of processing remote data and can be assigned to the `dataSource` property.
|
|
42
|
+
* With the remote data assigned to dataSource, check the available
|
|
43
|
+
* [adaptors](http://ej2.syncfusion.com/documentation/data/adaptors.html) to customize the data processing.
|
|
44
|
+
*
|
|
45
|
+
* @default []
|
|
46
|
+
*/
|
|
47
|
+
dataSource?: Record<string, any>[] | DataManager;
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Defines the external [`query`](http://ej2.syncfusion.com/documentation/data/api-query.html)
|
|
51
|
+
* that will be executed along with the data processing.
|
|
52
|
+
*
|
|
53
|
+
* @default null
|
|
54
|
+
*/
|
|
55
|
+
query?: Query;
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* It maps the `id` field from the dataSource and is used to uniquely identify the resources.
|
|
59
|
+
*
|
|
60
|
+
* @default 'Id'
|
|
61
|
+
*/
|
|
62
|
+
idField?: string;
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* It maps the `text` field from the dataSource, which is used to specify the resource names.
|
|
66
|
+
*
|
|
67
|
+
* @default 'Text'
|
|
68
|
+
*/
|
|
69
|
+
textField?: string;
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* It maps the `expanded` field from the dataSource, which is used to specify whether each resource levels
|
|
73
|
+
* in timeline view needs to be maintained in an expanded or collapsed state by default.
|
|
74
|
+
*
|
|
75
|
+
* @default 'Expanded'
|
|
76
|
+
*/
|
|
77
|
+
expandedField?: string;
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* It maps the `groupID` field from the dataSource, which is used to specify under which parent resource,
|
|
81
|
+
* the child should be grouped.
|
|
82
|
+
*
|
|
83
|
+
* @default 'GroupID'
|
|
84
|
+
*/
|
|
85
|
+
groupIDField?: string;
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* It maps the `color` field from the dataSource, which is used to specify colors for the resources.
|
|
89
|
+
*
|
|
90
|
+
* @default 'Color'
|
|
91
|
+
*/
|
|
92
|
+
colorField?: string;
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* It maps the `startHour` field from the dataSource, which is used to specify different work start hour for each resources.
|
|
96
|
+
*
|
|
97
|
+
* @default 'StartHour'
|
|
98
|
+
*/
|
|
99
|
+
startHourField?: string;
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* It maps the `endHour` field from the dataSource, which is used to specify different work end hour for each resources.
|
|
103
|
+
*
|
|
104
|
+
* @default 'EndHour'
|
|
105
|
+
*/
|
|
106
|
+
endHourField?: string;
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* It maps the working days field from the dataSource, which is used to specify different working days for each resources.
|
|
110
|
+
*
|
|
111
|
+
* @default 'WorkDays'
|
|
112
|
+
*/
|
|
113
|
+
workDaysField?: string;
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* It maps the `cssClass` field from the dataSource, which is used to specify different styles to each resource appointments.
|
|
117
|
+
*
|
|
118
|
+
* @default 'CssClass'
|
|
119
|
+
*/
|
|
120
|
+
cssClassField?: string;
|
|
121
|
+
|
|
122
|
+
}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { ChildProperty } from '@syncfusion/ej2-base';
|
|
2
|
+
import { DataManager, Query } from '@syncfusion/ej2-data';
|
|
3
|
+
/**
|
|
4
|
+
* A class that represents the resource related configurations and its data binding options.
|
|
5
|
+
*/
|
|
6
|
+
export declare class Resources extends ChildProperty<Resources> {
|
|
7
|
+
/**
|
|
8
|
+
* A value that binds to the resource field of event object.
|
|
9
|
+
*
|
|
10
|
+
* @default null
|
|
11
|
+
*/
|
|
12
|
+
field: string;
|
|
13
|
+
/**
|
|
14
|
+
* It holds the title of the resource field to be displayed on the schedule event editor window.
|
|
15
|
+
*
|
|
16
|
+
* @default null
|
|
17
|
+
*/
|
|
18
|
+
title: string;
|
|
19
|
+
/**
|
|
20
|
+
* It represents a unique resource name for differentiating various resource objects while grouping.
|
|
21
|
+
*
|
|
22
|
+
* @default null
|
|
23
|
+
*/
|
|
24
|
+
name: string;
|
|
25
|
+
/**
|
|
26
|
+
* When set to true, allows multiple selection of resource names, thus creating multiple instances of same appointment for the
|
|
27
|
+
* selected resources.
|
|
28
|
+
*
|
|
29
|
+
* @default false
|
|
30
|
+
*/
|
|
31
|
+
allowMultiple: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Assigns the resource dataSource
|
|
34
|
+
* The data can be passed either as an array of JavaScript objects,
|
|
35
|
+
* or else can create an instance of [`DataManager`](http://ej2.syncfusion.com/documentation/data/api-dataManager.html)
|
|
36
|
+
* in case of processing remote data and can be assigned to the `dataSource` property.
|
|
37
|
+
* With the remote data assigned to dataSource, check the available
|
|
38
|
+
* [adaptors](http://ej2.syncfusion.com/documentation/data/adaptors.html) to customize the data processing.
|
|
39
|
+
*
|
|
40
|
+
* @default []
|
|
41
|
+
*/
|
|
42
|
+
dataSource: Record<string, any>[] | DataManager;
|
|
43
|
+
/**
|
|
44
|
+
* Defines the external [`query`](http://ej2.syncfusion.com/documentation/data/api-query.html)
|
|
45
|
+
* that will be executed along with the data processing.
|
|
46
|
+
*
|
|
47
|
+
* @default null
|
|
48
|
+
*/
|
|
49
|
+
query: Query;
|
|
50
|
+
/**
|
|
51
|
+
* It maps the `id` field from the dataSource and is used to uniquely identify the resources.
|
|
52
|
+
*
|
|
53
|
+
* @default 'Id'
|
|
54
|
+
*/
|
|
55
|
+
idField: string;
|
|
56
|
+
/**
|
|
57
|
+
* It maps the `text` field from the dataSource, which is used to specify the resource names.
|
|
58
|
+
*
|
|
59
|
+
* @default 'Text'
|
|
60
|
+
*/
|
|
61
|
+
textField: string;
|
|
62
|
+
/**
|
|
63
|
+
* It maps the `expanded` field from the dataSource, which is used to specify whether each resource levels
|
|
64
|
+
* in timeline view needs to be maintained in an expanded or collapsed state by default.
|
|
65
|
+
*
|
|
66
|
+
* @default 'Expanded'
|
|
67
|
+
*/
|
|
68
|
+
expandedField: string;
|
|
69
|
+
/**
|
|
70
|
+
* It maps the `groupID` field from the dataSource, which is used to specify under which parent resource,
|
|
71
|
+
* the child should be grouped.
|
|
72
|
+
*
|
|
73
|
+
* @default 'GroupID'
|
|
74
|
+
*/
|
|
75
|
+
groupIDField: string;
|
|
76
|
+
/**
|
|
77
|
+
* It maps the `color` field from the dataSource, which is used to specify colors for the resources.
|
|
78
|
+
*
|
|
79
|
+
* @default 'Color'
|
|
80
|
+
*/
|
|
81
|
+
colorField: string;
|
|
82
|
+
/**
|
|
83
|
+
* It maps the `startHour` field from the dataSource, which is used to specify different work start hour for each resources.
|
|
84
|
+
*
|
|
85
|
+
* @default 'StartHour'
|
|
86
|
+
*/
|
|
87
|
+
startHourField: string;
|
|
88
|
+
/**
|
|
89
|
+
* It maps the `endHour` field from the dataSource, which is used to specify different work end hour for each resources.
|
|
90
|
+
*
|
|
91
|
+
* @default 'EndHour'
|
|
92
|
+
*/
|
|
93
|
+
endHourField: string;
|
|
94
|
+
/**
|
|
95
|
+
* It maps the working days field from the dataSource, which is used to specify different working days for each resources.
|
|
96
|
+
*
|
|
97
|
+
* @default 'WorkDays'
|
|
98
|
+
*/
|
|
99
|
+
workDaysField: string;
|
|
100
|
+
/**
|
|
101
|
+
* It maps the `cssClass` field from the dataSource, which is used to specify different styles to each resource appointments.
|
|
102
|
+
*
|
|
103
|
+
* @default 'CssClass'
|
|
104
|
+
*/
|
|
105
|
+
cssClassField: string;
|
|
106
|
+
}
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2
|
+
import { Property, ChildProperty } from '@syncfusion/ej2-base';
|
|
3
|
+
import { DataManager, Query } from '@syncfusion/ej2-data';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* A class that represents the resource related configurations and its data binding options.
|
|
7
|
+
*/
|
|
8
|
+
export class Resources extends ChildProperty<Resources> {
|
|
9
|
+
/**
|
|
10
|
+
* A value that binds to the resource field of event object.
|
|
11
|
+
*
|
|
12
|
+
* @default null
|
|
13
|
+
*/
|
|
14
|
+
@Property()
|
|
15
|
+
public field: string;
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* It holds the title of the resource field to be displayed on the schedule event editor window.
|
|
19
|
+
*
|
|
20
|
+
* @default null
|
|
21
|
+
*/
|
|
22
|
+
@Property()
|
|
23
|
+
public title: string;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* It represents a unique resource name for differentiating various resource objects while grouping.
|
|
27
|
+
*
|
|
28
|
+
* @default null
|
|
29
|
+
*/
|
|
30
|
+
@Property()
|
|
31
|
+
public name: string;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* When set to true, allows multiple selection of resource names, thus creating multiple instances of same appointment for the
|
|
35
|
+
* selected resources.
|
|
36
|
+
*
|
|
37
|
+
* @default false
|
|
38
|
+
*/
|
|
39
|
+
@Property(false)
|
|
40
|
+
public allowMultiple: boolean;
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Assigns the resource dataSource
|
|
44
|
+
* The data can be passed either as an array of JavaScript objects,
|
|
45
|
+
* or else can create an instance of [`DataManager`](http://ej2.syncfusion.com/documentation/data/api-dataManager.html)
|
|
46
|
+
* in case of processing remote data and can be assigned to the `dataSource` property.
|
|
47
|
+
* With the remote data assigned to dataSource, check the available
|
|
48
|
+
* [adaptors](http://ej2.syncfusion.com/documentation/data/adaptors.html) to customize the data processing.
|
|
49
|
+
*
|
|
50
|
+
* @default []
|
|
51
|
+
*/
|
|
52
|
+
@Property([])
|
|
53
|
+
public dataSource: Record<string, any>[] | DataManager;
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Defines the external [`query`](http://ej2.syncfusion.com/documentation/data/api-query.html)
|
|
57
|
+
* that will be executed along with the data processing.
|
|
58
|
+
*
|
|
59
|
+
* @default null
|
|
60
|
+
*/
|
|
61
|
+
@Property()
|
|
62
|
+
public query: Query;
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* It maps the `id` field from the dataSource and is used to uniquely identify the resources.
|
|
66
|
+
*
|
|
67
|
+
* @default 'Id'
|
|
68
|
+
*/
|
|
69
|
+
@Property('Id')
|
|
70
|
+
public idField: string;
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* It maps the `text` field from the dataSource, which is used to specify the resource names.
|
|
74
|
+
*
|
|
75
|
+
* @default 'Text'
|
|
76
|
+
*/
|
|
77
|
+
@Property('Text')
|
|
78
|
+
public textField: string;
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* It maps the `expanded` field from the dataSource, which is used to specify whether each resource levels
|
|
82
|
+
* in timeline view needs to be maintained in an expanded or collapsed state by default.
|
|
83
|
+
*
|
|
84
|
+
* @default 'Expanded'
|
|
85
|
+
*/
|
|
86
|
+
@Property('Expanded')
|
|
87
|
+
public expandedField: string;
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* It maps the `groupID` field from the dataSource, which is used to specify under which parent resource,
|
|
91
|
+
* the child should be grouped.
|
|
92
|
+
*
|
|
93
|
+
* @default 'GroupID'
|
|
94
|
+
*/
|
|
95
|
+
@Property('GroupID')
|
|
96
|
+
public groupIDField: string;
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* It maps the `color` field from the dataSource, which is used to specify colors for the resources.
|
|
100
|
+
*
|
|
101
|
+
* @default 'Color'
|
|
102
|
+
*/
|
|
103
|
+
@Property('Color')
|
|
104
|
+
public colorField: string;
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* It maps the `startHour` field from the dataSource, which is used to specify different work start hour for each resources.
|
|
108
|
+
*
|
|
109
|
+
* @default 'StartHour'
|
|
110
|
+
*/
|
|
111
|
+
@Property('StartHour')
|
|
112
|
+
public startHourField: string;
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* It maps the `endHour` field from the dataSource, which is used to specify different work end hour for each resources.
|
|
116
|
+
*
|
|
117
|
+
* @default 'EndHour'
|
|
118
|
+
*/
|
|
119
|
+
@Property('EndHour')
|
|
120
|
+
public endHourField: string;
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* It maps the working days field from the dataSource, which is used to specify different working days for each resources.
|
|
124
|
+
*
|
|
125
|
+
* @default 'WorkDays'
|
|
126
|
+
*/
|
|
127
|
+
@Property('WorkDays')
|
|
128
|
+
public workDaysField: string;
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* It maps the `cssClass` field from the dataSource, which is used to specify different styles to each resource appointments.
|
|
132
|
+
*
|
|
133
|
+
* @default 'CssClass'
|
|
134
|
+
*/
|
|
135
|
+
@Property('CssClass')
|
|
136
|
+
public cssClassField: string;
|
|
137
|
+
|
|
138
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { Property, ChildProperty } from '@syncfusion/ej2-base';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Interface for a class TimeScale
|
|
5
|
+
*/
|
|
6
|
+
export interface TimeScaleModel {
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* When set to `true`, allows the schedule to display the appointments accurately against the exact time duration.
|
|
10
|
+
* If set to `false`, all the appointments of a day will be displayed one below the other.
|
|
11
|
+
*
|
|
12
|
+
* @default true
|
|
13
|
+
*/
|
|
14
|
+
enable?: boolean;
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Defines the time duration on which the time axis to be displayed either in 1 hour or 30 minutes interval and so on.
|
|
18
|
+
* It accepts the values in minutes.
|
|
19
|
+
*
|
|
20
|
+
* @default 60
|
|
21
|
+
*/
|
|
22
|
+
interval?: number;
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Decides the number of slot count to be split for the specified time interval duration.
|
|
26
|
+
*
|
|
27
|
+
* @default 2
|
|
28
|
+
*/
|
|
29
|
+
slotCount?: number;
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* The template option to be applied for minor time slot. Here, the
|
|
33
|
+
* template accepts either the string or HTMLElement as template design and then the parsed design is displayed
|
|
34
|
+
* onto the time cells. The time details can be accessed within this template.
|
|
35
|
+
*
|
|
36
|
+
* @default null
|
|
37
|
+
* @angularType string | object
|
|
38
|
+
* @reactType string | function | JSX.Element
|
|
39
|
+
* @vueType string | function
|
|
40
|
+
* @aspType string
|
|
41
|
+
*/
|
|
42
|
+
minorSlotTemplate?: string | Function;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* The template option to be applied for major time slot. Here, the
|
|
46
|
+
* template accepts either the string or HTMLElement as template design and then the parsed design is displayed
|
|
47
|
+
* onto the time cells. The time details can be accessed within this template.
|
|
48
|
+
*
|
|
49
|
+
* @default null
|
|
50
|
+
* @angularType string | object
|
|
51
|
+
* @reactType string | function | JSX.Element
|
|
52
|
+
* @vueType string | function
|
|
53
|
+
* @aspType string
|
|
54
|
+
*/
|
|
55
|
+
majorSlotTemplate?: string | Function;
|
|
56
|
+
|
|
57
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { ChildProperty } from '@syncfusion/ej2-base';
|
|
2
|
+
/**
|
|
3
|
+
* A class that represents the configuration of options related to timescale on scheduler.
|
|
4
|
+
*/
|
|
5
|
+
export declare class TimeScale extends ChildProperty<TimeScale> {
|
|
6
|
+
/**
|
|
7
|
+
* When set to `true`, allows the schedule to display the appointments accurately against the exact time duration.
|
|
8
|
+
* If set to `false`, all the appointments of a day will be displayed one below the other.
|
|
9
|
+
*
|
|
10
|
+
* @default true
|
|
11
|
+
*/
|
|
12
|
+
enable: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Defines the time duration on which the time axis to be displayed either in 1 hour or 30 minutes interval and so on.
|
|
15
|
+
* It accepts the values in minutes.
|
|
16
|
+
*
|
|
17
|
+
* @default 60
|
|
18
|
+
*/
|
|
19
|
+
interval: number;
|
|
20
|
+
/**
|
|
21
|
+
* Decides the number of slot count to be split for the specified time interval duration.
|
|
22
|
+
*
|
|
23
|
+
* @default 2
|
|
24
|
+
*/
|
|
25
|
+
slotCount: number;
|
|
26
|
+
/**
|
|
27
|
+
* The template option to be applied for minor time slot. Here, the
|
|
28
|
+
* template accepts either the string or HTMLElement as template design and then the parsed design is displayed
|
|
29
|
+
* onto the time cells. The time details can be accessed within this template.
|
|
30
|
+
*
|
|
31
|
+
* @default null
|
|
32
|
+
* @angularType string | object
|
|
33
|
+
* @reactType string | function | JSX.Element
|
|
34
|
+
* @vueType string | function
|
|
35
|
+
* @aspType string
|
|
36
|
+
*/
|
|
37
|
+
minorSlotTemplate: string | Function;
|
|
38
|
+
/**
|
|
39
|
+
* The template option to be applied for major time slot. Here, the
|
|
40
|
+
* template accepts either the string or HTMLElement as template design and then the parsed design is displayed
|
|
41
|
+
* onto the time cells. The time details can be accessed within this template.
|
|
42
|
+
*
|
|
43
|
+
* @default null
|
|
44
|
+
* @angularType string | object
|
|
45
|
+
* @reactType string | function | JSX.Element
|
|
46
|
+
* @vueType string | function
|
|
47
|
+
* @aspType string
|
|
48
|
+
*/
|
|
49
|
+
majorSlotTemplate: string | Function;
|
|
50
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { Property, ChildProperty } from '@syncfusion/ej2-base';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* A class that represents the configuration of options related to timescale on scheduler.
|
|
5
|
+
*/
|
|
6
|
+
export class TimeScale extends ChildProperty<TimeScale> {
|
|
7
|
+
/**
|
|
8
|
+
* When set to `true`, allows the schedule to display the appointments accurately against the exact time duration.
|
|
9
|
+
* If set to `false`, all the appointments of a day will be displayed one below the other.
|
|
10
|
+
*
|
|
11
|
+
* @default true
|
|
12
|
+
*/
|
|
13
|
+
@Property(true)
|
|
14
|
+
public enable: boolean;
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Defines the time duration on which the time axis to be displayed either in 1 hour or 30 minutes interval and so on.
|
|
18
|
+
* It accepts the values in minutes.
|
|
19
|
+
*
|
|
20
|
+
* @default 60
|
|
21
|
+
*/
|
|
22
|
+
@Property(60)
|
|
23
|
+
public interval: number;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Decides the number of slot count to be split for the specified time interval duration.
|
|
27
|
+
*
|
|
28
|
+
* @default 2
|
|
29
|
+
*/
|
|
30
|
+
@Property(2)
|
|
31
|
+
public slotCount: number;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* The template option to be applied for minor time slot. Here, the
|
|
35
|
+
* template accepts either the string or HTMLElement as template design and then the parsed design is displayed
|
|
36
|
+
* onto the time cells. The time details can be accessed within this template.
|
|
37
|
+
*
|
|
38
|
+
* @default null
|
|
39
|
+
* @angularType string | object
|
|
40
|
+
* @reactType string | function | JSX.Element
|
|
41
|
+
* @vueType string | function
|
|
42
|
+
* @aspType string
|
|
43
|
+
*/
|
|
44
|
+
@Property()
|
|
45
|
+
public minorSlotTemplate: string | Function;
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* The template option to be applied for major time slot. Here, the
|
|
49
|
+
* template accepts either the string or HTMLElement as template design and then the parsed design is displayed
|
|
50
|
+
* onto the time cells. The time details can be accessed within this template.
|
|
51
|
+
*
|
|
52
|
+
* @default null
|
|
53
|
+
* @angularType string | object
|
|
54
|
+
* @reactType string | function | JSX.Element
|
|
55
|
+
* @vueType string | function
|
|
56
|
+
* @aspType string
|
|
57
|
+
*/
|
|
58
|
+
@Property()
|
|
59
|
+
public majorSlotTemplate: string | Function;
|
|
60
|
+
|
|
61
|
+
}
|