@syncfusion/ej2-schedule 31.1.17 → 31.1.21

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.
Files changed (168) hide show
  1. package/dist/ej2-schedule.min.js +2 -2
  2. package/dist/ej2-schedule.umd.min.js +2 -2
  3. package/dist/ej2-schedule.umd.min.js.map +1 -1
  4. package/dist/es6/ej2-schedule.es2015.js +7 -3
  5. package/dist/es6/ej2-schedule.es2015.js.map +1 -1
  6. package/dist/es6/ej2-schedule.es5.js +6 -2
  7. package/dist/es6/ej2-schedule.es5.js.map +1 -1
  8. package/dist/global/ej2-schedule.min.js +2 -2
  9. package/dist/global/ej2-schedule.min.js.map +1 -1
  10. package/dist/global/index.d.ts +1 -1
  11. package/package.json +18 -53
  12. package/src/schedule/actions/virtual-scroll.js +5 -1
  13. package/src/schedule/event-renderer/event-base.js +1 -1
  14. package/styles/bootstrap4-lite.css +8 -0
  15. package/styles/bootstrap4.css +8 -0
  16. package/styles/recurrence-editor/bootstrap4.css +8 -0
  17. package/styles/schedule/bootstrap4.css +8 -0
  18. package/dist/ts/common/calendar-util.d.ts +0 -92
  19. package/dist/ts/common/calendar-util.ts +0 -261
  20. package/dist/ts/common/index.d.ts +0 -4
  21. package/dist/ts/common/index.ts +0 -4
  22. package/dist/ts/components.d.ts +0 -5
  23. package/dist/ts/components.ts +0 -5
  24. package/dist/ts/index.d.ts +0 -6
  25. package/dist/ts/index.ts +0 -7
  26. package/dist/ts/recurrence-editor/date-generator.d.ts +0 -76
  27. package/dist/ts/recurrence-editor/date-generator.ts +0 -1699
  28. package/dist/ts/recurrence-editor/index.d.ts +0 -6
  29. package/dist/ts/recurrence-editor/index.ts +0 -6
  30. package/dist/ts/recurrence-editor/recurrence-editor-model.d.ts +0 -112
  31. package/dist/ts/recurrence-editor/recurrence-editor.d.ts +0 -245
  32. package/dist/ts/recurrence-editor/recurrence-editor.ts +0 -1257
  33. package/dist/ts/schedule/actions/action-base.d.ts +0 -44
  34. package/dist/ts/schedule/actions/action-base.ts +0 -493
  35. package/dist/ts/schedule/actions/crud.d.ts +0 -41
  36. package/dist/ts/schedule/actions/crud.ts +0 -784
  37. package/dist/ts/schedule/actions/data.d.ts +0 -63
  38. package/dist/ts/schedule/actions/data.ts +0 -128
  39. package/dist/ts/schedule/actions/drag.d.ts +0 -75
  40. package/dist/ts/schedule/actions/drag.ts +0 -1401
  41. package/dist/ts/schedule/actions/keyboard.d.ts +0 -100
  42. package/dist/ts/schedule/actions/keyboard.ts +0 -1435
  43. package/dist/ts/schedule/actions/resize.d.ts +0 -27
  44. package/dist/ts/schedule/actions/resize.ts +0 -602
  45. package/dist/ts/schedule/actions/scroll.d.ts +0 -69
  46. package/dist/ts/schedule/actions/scroll.ts +0 -105
  47. package/dist/ts/schedule/actions/touch.d.ts +0 -32
  48. package/dist/ts/schedule/actions/touch.ts +0 -314
  49. package/dist/ts/schedule/actions/virtual-scroll.d.ts +0 -55
  50. package/dist/ts/schedule/actions/virtual-scroll.ts +0 -596
  51. package/dist/ts/schedule/actions/work-cells.d.ts +0 -14
  52. package/dist/ts/schedule/actions/work-cells.ts +0 -151
  53. package/dist/ts/schedule/base/constant.d.ts +0 -102
  54. package/dist/ts/schedule/base/constant.ts +0 -103
  55. package/dist/ts/schedule/base/css-constant.d.ts +0 -475
  56. package/dist/ts/schedule/base/css-constant.ts +0 -475
  57. package/dist/ts/schedule/base/interface.d.ts +0 -673
  58. package/dist/ts/schedule/base/interface.ts +0 -738
  59. package/dist/ts/schedule/base/resource.d.ts +0 -59
  60. package/dist/ts/schedule/base/resource.ts +0 -1091
  61. package/dist/ts/schedule/base/schedule-model.d.ts +0 -930
  62. package/dist/ts/schedule/base/schedule.d.ts +0 -1967
  63. package/dist/ts/schedule/base/schedule.ts +0 -4221
  64. package/dist/ts/schedule/base/type.d.ts +0 -134
  65. package/dist/ts/schedule/base/type.ts +0 -142
  66. package/dist/ts/schedule/base/util.d.ts +0 -266
  67. package/dist/ts/schedule/base/util.ts +0 -492
  68. package/dist/ts/schedule/event-renderer/agenda-base.d.ts +0 -15
  69. package/dist/ts/schedule/event-renderer/agenda-base.ts +0 -423
  70. package/dist/ts/schedule/event-renderer/event-base.d.ts +0 -101
  71. package/dist/ts/schedule/event-renderer/event-base.ts +0 -1501
  72. package/dist/ts/schedule/event-renderer/inline-edit.d.ts +0 -23
  73. package/dist/ts/schedule/event-renderer/inline-edit.ts +0 -287
  74. package/dist/ts/schedule/event-renderer/month.d.ts +0 -60
  75. package/dist/ts/schedule/event-renderer/month.ts +0 -760
  76. package/dist/ts/schedule/event-renderer/timeline-view.d.ts +0 -51
  77. package/dist/ts/schedule/event-renderer/timeline-view.ts +0 -606
  78. package/dist/ts/schedule/event-renderer/vertical-view.d.ts +0 -57
  79. package/dist/ts/schedule/event-renderer/vertical-view.ts +0 -898
  80. package/dist/ts/schedule/event-renderer/year.d.ts +0 -27
  81. package/dist/ts/schedule/event-renderer/year.ts +0 -623
  82. package/dist/ts/schedule/exports/calendar-export.d.ts +0 -16
  83. package/dist/ts/schedule/exports/calendar-export.ts +0 -160
  84. package/dist/ts/schedule/exports/calendar-import.d.ts +0 -18
  85. package/dist/ts/schedule/exports/calendar-import.ts +0 -277
  86. package/dist/ts/schedule/exports/excel-export.d.ts +0 -14
  87. package/dist/ts/schedule/exports/excel-export.ts +0 -89
  88. package/dist/ts/schedule/exports/index.d.ts +0 -7
  89. package/dist/ts/schedule/exports/index.ts +0 -7
  90. package/dist/ts/schedule/exports/print.d.ts +0 -20
  91. package/dist/ts/schedule/exports/print.ts +0 -233
  92. package/dist/ts/schedule/index.d.ts +0 -26
  93. package/dist/ts/schedule/index.ts +0 -26
  94. package/dist/ts/schedule/models/event-settings-model.d.ts +0 -165
  95. package/dist/ts/schedule/models/event-settings.d.ts +0 -149
  96. package/dist/ts/schedule/models/event-settings.ts +0 -187
  97. package/dist/ts/schedule/models/field-options-model.d.ts +0 -37
  98. package/dist/ts/schedule/models/field-options.d.ts +0 -31
  99. package/dist/ts/schedule/models/field-options.ts +0 -41
  100. package/dist/ts/schedule/models/fields-model.d.ts +0 -129
  101. package/dist/ts/schedule/models/fields.d.ts +0 -117
  102. package/dist/ts/schedule/models/fields.ts +0 -149
  103. package/dist/ts/schedule/models/group-model.d.ts +0 -69
  104. package/dist/ts/schedule/models/group.d.ts +0 -60
  105. package/dist/ts/schedule/models/group.ts +0 -75
  106. package/dist/ts/schedule/models/header-rows-model.d.ts +0 -33
  107. package/dist/ts/schedule/models/header-rows.d.ts +0 -30
  108. package/dist/ts/schedule/models/header-rows.ts +0 -35
  109. package/dist/ts/schedule/models/models.d.ts +0 -14
  110. package/dist/ts/schedule/models/models.ts +0 -15
  111. package/dist/ts/schedule/models/quick-info-templates-model.d.ts +0 -52
  112. package/dist/ts/schedule/models/quick-info-templates.d.ts +0 -47
  113. package/dist/ts/schedule/models/quick-info-templates.ts +0 -56
  114. package/dist/ts/schedule/models/resources-model.d.ts +0 -122
  115. package/dist/ts/schedule/models/resources.d.ts +0 -106
  116. package/dist/ts/schedule/models/resources.ts +0 -138
  117. package/dist/ts/schedule/models/time-scale-model.d.ts +0 -57
  118. package/dist/ts/schedule/models/time-scale.d.ts +0 -50
  119. package/dist/ts/schedule/models/time-scale.ts +0 -61
  120. package/dist/ts/schedule/models/toolbar-model.d.ts +0 -196
  121. package/dist/ts/schedule/models/toolbar.d.ts +0 -176
  122. package/dist/ts/schedule/models/toolbar.ts +0 -196
  123. package/dist/ts/schedule/models/views-model.d.ts +0 -370
  124. package/dist/ts/schedule/models/views.d.ts +0 -335
  125. package/dist/ts/schedule/models/views.ts +0 -408
  126. package/dist/ts/schedule/models/work-hours-model.d.ts +0 -29
  127. package/dist/ts/schedule/models/work-hours.d.ts +0 -24
  128. package/dist/ts/schedule/models/work-hours.ts +0 -31
  129. package/dist/ts/schedule/popups/event-tooltip.d.ts +0 -16
  130. package/dist/ts/schedule/popups/event-tooltip.ts +0 -203
  131. package/dist/ts/schedule/popups/event-window.d.ts +0 -118
  132. package/dist/ts/schedule/popups/event-window.ts +0 -2055
  133. package/dist/ts/schedule/popups/form-validator.d.ts +0 -16
  134. package/dist/ts/schedule/popups/form-validator.ts +0 -110
  135. package/dist/ts/schedule/popups/quick-popups.d.ts +0 -78
  136. package/dist/ts/schedule/popups/quick-popups.ts +0 -1470
  137. package/dist/ts/schedule/renderer/agenda.d.ts +0 -45
  138. package/dist/ts/schedule/renderer/agenda.ts +0 -497
  139. package/dist/ts/schedule/renderer/day.d.ts +0 -20
  140. package/dist/ts/schedule/renderer/day.ts +0 -28
  141. package/dist/ts/schedule/renderer/header-renderer.d.ts +0 -48
  142. package/dist/ts/schedule/renderer/header-renderer.ts +0 -736
  143. package/dist/ts/schedule/renderer/month-agenda.d.ts +0 -29
  144. package/dist/ts/schedule/renderer/month-agenda.ts +0 -184
  145. package/dist/ts/schedule/renderer/month.d.ts +0 -61
  146. package/dist/ts/schedule/renderer/month.ts +0 -766
  147. package/dist/ts/schedule/renderer/renderer.d.ts +0 -13
  148. package/dist/ts/schedule/renderer/renderer.ts +0 -165
  149. package/dist/ts/schedule/renderer/timeline-header-row.d.ts +0 -15
  150. package/dist/ts/schedule/renderer/timeline-header-row.ts +0 -132
  151. package/dist/ts/schedule/renderer/timeline-month.d.ts +0 -29
  152. package/dist/ts/schedule/renderer/timeline-month.ts +0 -184
  153. package/dist/ts/schedule/renderer/timeline-view.d.ts +0 -31
  154. package/dist/ts/schedule/renderer/timeline-view.ts +0 -308
  155. package/dist/ts/schedule/renderer/timeline-year.d.ts +0 -22
  156. package/dist/ts/schedule/renderer/timeline-year.ts +0 -450
  157. package/dist/ts/schedule/renderer/vertical-view.d.ts +0 -63
  158. package/dist/ts/schedule/renderer/vertical-view.ts +0 -911
  159. package/dist/ts/schedule/renderer/view-base.d.ts +0 -83
  160. package/dist/ts/schedule/renderer/view-base.ts +0 -709
  161. package/dist/ts/schedule/renderer/week.d.ts +0 -22
  162. package/dist/ts/schedule/renderer/week.ts +0 -35
  163. package/dist/ts/schedule/renderer/work-week.d.ts +0 -22
  164. package/dist/ts/schedule/renderer/work-week.ts +0 -36
  165. package/dist/ts/schedule/renderer/year.d.ts +0 -46
  166. package/dist/ts/schedule/renderer/year.ts +0 -470
  167. package/dist/ts/schedule/timezone/timezone.d.ts +0 -16
  168. package/dist/ts/schedule/timezone/timezone.ts +0 -313
@@ -1,673 +0,0 @@
1
- import { BaseEventArgs } from '@syncfusion/ej2-base';
2
- import { ItemModel } from '@syncfusion/ej2-navigations';
3
- import { PopupType, ExcelFormat, View, NavigationDirection } from './type';
4
- import { ResourcesModel, ViewsModel } from '../models/models';
5
- import { Worksheets } from '@syncfusion/ej2-excel-export';
6
- /**
7
- * Interface
8
- */
9
- /** An interface that holds options to control the actions of scheduler such as editing, navigation, and more. */
10
- export interface ActionEventArgs extends ToolbarActionArgs {
11
- /** Returns the request type of the current action. */
12
- requestType: string;
13
- /** Defines the type of the event. */
14
- event?: Event;
15
- /** Defines the cancel option for the action taking place. */
16
- cancel?: boolean;
17
- /** Returns the appropriate data based on the action. */
18
- data?: Record<string, any> | Record<string, any>[];
19
- /** Returns the clicked resource row index. */
20
- groupIndex?: number;
21
- /** Returns the appropriate added data based on the action. */
22
- addedRecords?: Record<string, any>[];
23
- /** Returns the appropriate changed data based on the action. */
24
- changedRecords?: Record<string, any>[];
25
- /** Returns the appropriate deleted data based on the action. */
26
- deletedRecords?: Record<string, any>[];
27
- /**
28
- * A Promise that, when provided, checks for overlapping events on the server.
29
- * If the promise resolves with overlapping events, the action (add/update) will be
30
- * canceled, and an alert will be displayed to the user.
31
- * If no overlapping events are found, the scheduler proceeds with the action.
32
- */
33
- promise?: Promise<boolean>;
34
- }
35
- /** @deprecated */
36
- export interface ToolbarActionArgs extends BaseEventArgs {
37
- /** Returns the request type of the current action. */
38
- requestType: string;
39
- /** Returns the toolbar items present in the Schedule header bar. */
40
- items?: ItemModel[];
41
- }
42
- /** An interface that holds options to control the cell click action. */
43
- export interface CellClickEventArgs extends BaseEventArgs {
44
- /** Returns the start time of the cell. */
45
- startTime: Date;
46
- /** Returns the end time of the cell. */
47
- endTime: Date;
48
- /** Returns true or false, based on whether the clicked cell is all-day or not. */
49
- isAllDay: boolean;
50
- /** Returns the single or collection of HTML element(s). */
51
- element?: HTMLElement | HTMLElement[];
52
- /** Defines the cancel option. */
53
- cancel?: boolean;
54
- /** Defines the type of the event. */
55
- event?: Event;
56
- /** Returns the group index of the cell. */
57
- groupIndex?: number;
58
- }
59
- /** An interface that holds options to control the actions on clicking the more event indicator. */
60
- export interface MoreEventsClickArgs extends BaseEventArgs {
61
- /** Returns the start time of the cell. */
62
- startTime: Date;
63
- /** Returns the end time of the cell. */
64
- endTime: Date;
65
- /** Returns the single or collection of HTML element(s). */
66
- element: Element;
67
- /** Defines the cancel option. */
68
- cancel: boolean;
69
- /** Defines the type of the event. */
70
- event: Event;
71
- /** Returns the group index of the cell. */
72
- groupIndex?: number;
73
- /** Defines the option to show/hide the popup. */
74
- isPopupOpen: boolean;
75
- /** Defines the option to navigate the particular view */
76
- viewName: View;
77
- }
78
- /** An interface that holds options to control the select action. */
79
- export interface SelectEventArgs extends BaseEventArgs {
80
- /** Returns the request type of the current action. */
81
- requestType: string;
82
- /** Defines the type of the event. */
83
- event?: Event;
84
- /** Returns the single or collection of HTML element(s). */
85
- element: HTMLElement | HTMLElement[];
86
- /** Determines whether to open the quick popup on multiple cell selection. */
87
- showQuickPopup?: boolean;
88
- /** Determines whether to select multiple row. */
89
- allowMultipleRow?: boolean;
90
- /** Return the appropriate cell or event data based on the action. */
91
- data?: Record<string, any> | Record<string, any>[];
92
- /** Returns the clicked resource row index. */
93
- groupIndex?: number;
94
- }
95
- /** An interface that holds options to control the event click action. */
96
- export interface EventClickArgs extends BaseEventArgs {
97
- /** Returns the date of the event. */
98
- date?: Date;
99
- /** Returns a single or collection of selected or clicked events. */
100
- event: Record<string, any> | Record<string, any>[];
101
- /** Returns the single or collection of HTML element(s). */
102
- element: HTMLElement | HTMLElement[];
103
- /** Defines the cancel option. */
104
- cancel?: boolean;
105
- }
106
- /** An interface that holds options to control the hover action. */
107
- export interface HoverEventArgs extends BaseEventArgs {
108
- /** Returns the mouse event. */
109
- event: MouseEvent;
110
- /** Returns the single or collection of HTML element(s). */
111
- element: HTMLElement;
112
- }
113
- /** An interface that holds options to control the events (appointments) rendering in Scheduler. */
114
- export interface EventRenderedArgs extends BaseEventArgs {
115
- /** Returns the event data. */
116
- data: Record<string, any>;
117
- /** Returns the event element which is currently being rendered on the UI. */
118
- element: HTMLElement;
119
- /** Defines the cancel option. */
120
- cancel: boolean;
121
- /** Returns the type of the event element which is currently being rendered on the Scheduler. */
122
- type?: string;
123
- }
124
- /** An interface that holds options to control the popup open action. */
125
- export interface PopupOpenEventArgs extends BaseEventArgs {
126
- /**
127
- * Returns the type of the popup which is currently being opted to open.
128
- * The available type values are as follows,
129
- * * `DeleteAlert`: Denotes the popup showing delete confirmation message.
130
- * * `EditEventInfo`: Denotes the quick popup on the events in responsive mode.
131
- * * `Editor`: Denotes the detailed editor window.
132
- * * `EventContainer`: Denotes the more indicator popup.
133
- * * `OverlapAlert`: Denotes the popup showing overlap events.
134
- * * `QuickInfo`: Denotes the quick popup.
135
- * * `RecurrenceAlert`: Denotes the popup showing recurrence alerts.
136
- * * `RecurrenceValidationAlert`: Denotes the popup showing recurrence validation alerts.
137
- * * `ValidationAlert`: Denotes the popup showing validation alerts.
138
- * * `ViewEventInfo`: Denotes the quick popup on the cells in responsive mode.
139
- */
140
- type: PopupType;
141
- /** Returns the cell or event data. */
142
- data?: Record<string, any>;
143
- /** Returns the target element on which the popup is getting opened. */
144
- target?: Element;
145
- /** Returns the popup wrapper element. */
146
- element: Element;
147
- /** Defines the cancel option. */
148
- cancel: boolean;
149
- /** Allows to specify the time duration to be used on editor window,
150
- * based on which the start and end time fields will display the time values. By default, it
151
- * will be processed based on the `interval` value within the `timeScale` property.
152
- */
153
- duration?: number;
154
- /**
155
- * Returns the collection of appointment data that overlaps with the active time range in the Scheduler.
156
- * The `overlapEvents` array includes only the appointments that conflict with the time range of the appointment being created or updated.
157
- */
158
- overlapEvents?: Record<string, any>[];
159
- }
160
- /** An interface that holds options to control the popup close action. */
161
- export interface PopupCloseEventArgs extends BaseEventArgs {
162
- /** Return the current interaction event. */
163
- event?: Event;
164
- /**
165
- * Returns the type of the popup which is currently being opted to open.
166
- * The available type values are as follows,
167
- * * `DeleteAlert`: Denotes the popup showing delete confirmation message.
168
- * * `EditEventInfo`: Denotes the quick popup on the events in responsive mode.
169
- * * `Editor`: Denotes the detailed editor window.
170
- * * `EventContainer`: Denotes the more indicator popup.
171
- * * `QuickInfo`: Denotes the quick popup.
172
- * * `RecurrenceAlert`: Denotes the popup showing recurrence alerts.
173
- * * `RecurrenceValidationAlert`: Denotes the popup showing recurrence validation alerts.
174
- * * `ValidationAlert`: Denotes the popup showing validation alerts.
175
- * * `ViewEventInfo`: Denotes the quick popup on the cells in responsive mode.
176
- */
177
- type: PopupType;
178
- /** Returns the cell or event data. */
179
- data?: Record<string, any>;
180
- /** Returns the target element on which the popup is getting opened. */
181
- target?: Element;
182
- /** Returns the popup wrapper element. */
183
- element: Element;
184
- /** Defines the cancel option. */
185
- cancel: boolean;
186
- }
187
- /** An interface that holds options to control the date and view navigations. */
188
- export interface NavigatingEventArgs extends BaseEventArgs {
189
- /** Returns the action type either as `date` or `view` due to which the navigation takes place. */
190
- action: string;
191
- /** Defines the cancel option. */
192
- cancel: boolean;
193
- /** Returns the date value before date navigation takes place. */
194
- previousDate?: Date;
195
- /** Returns the current date value after navigation takes place. */
196
- currentDate?: Date;
197
- /** Returns the view name before the view navigation takes place. */
198
- previousView?: string;
199
- /** Returns the active view name after the view navigation takes place. */
200
- currentView?: string;
201
- /** Returns the active view index after the view navigation takes place. */
202
- viewIndex?: number;
203
- }
204
- /** An interface that holds options to control the rendering of all cells (work, time, resource, header, and more). */
205
- export interface RenderCellEventArgs extends BaseEventArgs {
206
- /** Returns the type of the elements which is currently being rendered on the UI. */
207
- elementType: string;
208
- /** Returns the actual HTML element on which the required custom styling can be applied. */
209
- element: Element;
210
- /** Returns the date value of the cell that is currently rendering on UI. */
211
- date?: Date;
212
- /** Returns the group index of the cell. */
213
- groupIndex?: number;
214
- }
215
- /** An interface that holds options to control resize action on appointments. */
216
- export interface ResizeEventArgs extends BaseEventArgs {
217
- /** Returns the resize element. */
218
- element: HTMLElement;
219
- /** Returns the resize event data. */
220
- data: Record<string, any>;
221
- /** Returns the mouse event. */
222
- event: MouseEvent;
223
- /** Defines the cancel option. */
224
- cancel?: boolean;
225
- /** Returns the start time of the clone element. */
226
- startTime?: Date;
227
- /** Returns the end time of the clone element. */
228
- endTime?: Date;
229
- /** Returns the group index of the clone element. */
230
- groupIndex?: number;
231
- /** Allows to define the interval in minutes for resizing the appointments. */
232
- interval?: number;
233
- /** Allows to define the scroll related actions while resizing to the edges of scheduler. */
234
- scroll?: ScrollOptions;
235
- }
236
- /** An interface that holds options to control drag action on appointments. */
237
- export interface DragEventArgs extends BaseEventArgs {
238
- /** Returns the drag element. */
239
- element: HTMLElement;
240
- /** Returns the dragged event data. */
241
- data: Record<string, any>;
242
- /** Returns the multiple dragged events data */
243
- selectedData: Record<string, any>[];
244
- /** Returns the mouse event. */
245
- event: MouseEvent;
246
- /** Defines the cancel option. */
247
- cancel?: boolean;
248
- /** Returns the start time of the clone element. */
249
- startTime?: Date;
250
- /** Returns the end time of the clone element. */
251
- endTime?: Date;
252
- /** Returns the target element on which the event is dropped. */
253
- target?: HTMLElement;
254
- /** Returns the group index of the clone element. */
255
- groupIndex?: number;
256
- /** Defines the selectors to cancel the drop on selector target. */
257
- excludeSelectors?: string;
258
- /** Allows to define the interval in minutes for dragging the appointments. */
259
- interval?: number;
260
- /** Allows to define the scroll related actions while dragging to the edges of scheduler. */
261
- scroll?: ScrollOptions;
262
- /** Defines the date range navigation action while dragging. */
263
- navigation?: NavigateOptions;
264
- /** Allows to drag the events outside the currently rendered date range */
265
- dragWithinRange?: boolean;
266
- }
267
- /** An interface that holds options of virtual scroll action. */
268
- export interface ScrollEventArgs extends BaseEventArgs {
269
- /** Returns the group index of last resource which is currently being rendered. */
270
- endIndex: number;
271
- /** Returns the end date from the active view of scheduler. */
272
- endDate: Date;
273
- /** Returns the group index of first resource which is currently being rendered. */
274
- startIndex: number;
275
- /** Returns the start date from the active view of scheduler. */
276
- startDate: Date;
277
- /** Returns the resource data collection which is currently rendered. */
278
- resourceData: Record<string, any>[];
279
- /** Allows to define the event data collection that needs to be rendered on every virtual scroll action only when enableLazyLoading property is enabled. */
280
- eventData?: Record<string, any>[];
281
- }
282
- /** An interface that holds options to control the navigation, while performing drag action on appointments. */
283
- export interface NavigateOptions {
284
- /** Allows to enable or disable the auto navigation while performing drag action on appointments. */
285
- enable: boolean;
286
- /** Allows to define the time delay value while navigating. */
287
- timeDelay: number;
288
- }
289
- /** An interface that holds options to control the scrolling action while performing drag and resizing action on appointments. */
290
- export interface ScrollOptions {
291
- /** Allows to enable or disable the auto scrolling while performing drag and resizing action on appointments. */
292
- enable: boolean;
293
- /** Allows to define the scroll step value. */
294
- scrollBy: number;
295
- /** Allows to define the time delay value while scrolling. */
296
- timeDelay: number;
297
- }
298
- /** An interface that holds the properties for the before Excel expoprt event. */
299
- export interface ExcelExportEventArgs {
300
- /** Specifies the Worksheets that will be exported. */
301
- worksheets: Worksheets;
302
- /** Specifies whether to cancel the export operation. */
303
- cancel: boolean;
304
- }
305
- /** An interface that holds options for the before print event. */
306
- export interface BeforePrintEventArgs {
307
- /**
308
- * The HTML element that will be printed.
309
- * This element can be modified to customize the print output.
310
- */
311
- printElement?: HTMLElement;
312
- /**
313
- * Indicates whether to cancel the print operation.
314
- * Set to `true` to prevent the schedule from being printed.
315
- */
316
- cancel?: boolean;
317
- }
318
- /** An interface that holds export options. */
319
- export interface ExportOptions {
320
- /** The fileName denotes the name to be given for the exported file. */
321
- fileName?: string;
322
- /** The exportType allows you to set the format of an Excel file to be exported either as .xlsx or .csv. */
323
- exportType?: ExcelFormat;
324
- /** The custom or specific field collection of event dataSource to be exported can be provided through fields option. */
325
- fields?: string[];
326
- /** Specifies the collection of field name and its header text to export to excel. If this list is empty, the scheduler exports based on fields. If both fieldsInfo and fields are empty then the scheduler exported all the fields. */
327
- fieldsInfo?: ExportFieldInfo[];
328
- /** The custom data collection can be exported by passing them through the customData option. */
329
- customData?: Record<string, any>[];
330
- /** There also exists option to export each individual instances of the recurring events to an Excel file,
331
- * by setting true or false to the `includeOccurrences` option, denoting either to include or exclude
332
- * the occurrences as separate instances on an exported Excel file.
333
- */
334
- includeOccurrences?: boolean;
335
- /**
336
- * Defines the delimiter for csv file export.
337
- * By default, csv files are using comma(,) as separator. You can specify this property to change the delimiter in csv file.
338
- */
339
- separator?: string;
340
- }
341
- /** An interface that holds the options for the tooltip event in the Schedule component. */
342
- export interface TooltipOpenEventArgs {
343
- /**
344
- * Determines whether the tooltip should be canceled or not.
345
- */
346
- cancel?: boolean;
347
- /**
348
- * The data associated with the tooltip.
349
- */
350
- data?: Record<string, any>;
351
- /**
352
- * The target element that triggered the tooltip.
353
- */
354
- target?: HTMLElement;
355
- /**
356
- * The content to be displayed in the tooltip. Can be an HTMLElement.
357
- */
358
- content?: HTMLElement;
359
- }
360
- /** An interface that holds the field name and its header text to export to excel. */
361
- export interface ExportFieldInfo {
362
- /** Defines the header display text. */
363
- text: string;
364
- /** Defines the field name to export. */
365
- name: string;
366
- }
367
- /** An interface that holds the details of a resource. */
368
- export interface ResourceDetails {
369
- /** Returns the resource model data such as the field mapping options used within it. */
370
- resource: ResourcesModel;
371
- /** Returns the child resource data. */
372
- resourceData: Record<string, any>;
373
- /** Returns the respective resource fields data. */
374
- groupData?: Record<string, any>;
375
- /** It returns the child level resources in compact mode. */
376
- resourceChild?: ResourceDetails[];
377
- /** It returns the Id of current resource in compact mode. */
378
- resourceId?: string;
379
- /** It returns the Name of current resource in compact mode. */
380
- resourceName?: string;
381
- }
382
- /** An interface that represents time zone and display text for scheduler. */
383
- export interface TimezoneFields {
384
- /** Assigns the timezone display text. */
385
- Text: string;
386
- /** Assigns the [`IANA`](https://docs.actian.com/ingres/11.0/index.html#page/Ing_Install/IANA_World_Regions_and_Time_Zone_Names.htm) timezone value. */
387
- Value: string;
388
- }
389
- /** An interface that holds options of events once it bound to scheduler. */
390
- export interface DataBoundEventArgs extends BaseEventArgs {
391
- result: Record<string, any>[];
392
- count?: number;
393
- aggregates?: Record<string, any>;
394
- }
395
- /** An interface that holds options of events before it binds to scheduler. */
396
- export interface DataBindingEventArgs extends BaseEventArgs {
397
- result: Record<string, any>[];
398
- count?: number;
399
- aggregates?: Record<string, any>;
400
- }
401
- /** An interface that holds the custom sort comparer function. */
402
- export interface SortComparerFunction {
403
- (param: Record<string, any>[]): Record<string, any>[];
404
- }
405
- /** @private */
406
- export interface InlineClickArgs extends BaseEventArgs {
407
- data?: Record<string, any>;
408
- element: HTMLElement;
409
- groupIndex?: number;
410
- type: string;
411
- }
412
- /** @private */
413
- export interface TdData {
414
- date?: Date;
415
- renderDates?: Date[];
416
- groupOrder?: string[];
417
- groupIndex?: number;
418
- className?: string[];
419
- colSpan?: number;
420
- rowSpan?: number;
421
- type: string;
422
- resourceLevelIndex?: number;
423
- resource?: ResourcesModel;
424
- resourceData?: Record<string, any>;
425
- startHour?: Date;
426
- endHour?: Date;
427
- workDays?: number[];
428
- cssClass?: string;
429
- template?: NodeList | Element[];
430
- }
431
- /** @private */
432
- export interface TimeSlotData extends TdData {
433
- first: boolean;
434
- middle: boolean;
435
- last: boolean;
436
- }
437
- /** @private */
438
- export interface KeyEventArgs {
439
- element: HTMLTableElement;
440
- rowIndex: number;
441
- columnIndex: number;
442
- maxIndex: number;
443
- }
444
- /** @private */
445
- export interface CellTemplateArgs {
446
- date: Date;
447
- type: string;
448
- day?: string;
449
- groupIndex?: number;
450
- }
451
- /** @private */
452
- export interface DateRangeTemplateArgs {
453
- startDate: Date;
454
- endDate: Date;
455
- currentView: View;
456
- }
457
- /** @private */
458
- export interface CrudArgs extends ActionEventArgs {
459
- promise?: Promise<any>;
460
- editParams?: SaveChanges;
461
- }
462
- /** An interface that holds the options of pasted events data */
463
- export interface BeforePasteEventArgs {
464
- /** Returns the event data which is currently being pasted on the Scheduler. */
465
- data?: Record<string, any>[] | string;
466
- /** Defines the cancel option. */
467
- cancel: boolean;
468
- /** Returns the target element on which the cell is getting pasted. */
469
- target?: Element;
470
- }
471
- /** @private */
472
- export interface IRenderer {
473
- element: HTMLElement;
474
- renderDates: Date[];
475
- viewClass: string;
476
- isInverseTableSelect: boolean;
477
- isCurrentDate(date: Date): boolean;
478
- startDate(): Date;
479
- endDate(): Date;
480
- getStartDate?(): Date;
481
- getEndDate?(): Date;
482
- scrollToHour?(hour: string, scrollDate?: Date): void;
483
- scrollToDate?(scrollDate?: Date): void;
484
- highlightCurrentTime?(): void;
485
- getStartHour(): Date;
486
- getEndHour(): Date;
487
- getLabelText(view: string): string;
488
- getDateRangeText(date?: Date, dateCollection?: Date[]): string;
489
- getEndDateFromStartDate(date: Date): Date;
490
- addEventListener(): void;
491
- removeEventListener(): void;
492
- getRenderDates(workDays?: number[], selectedDate?: Date): Date[];
493
- getContentRows(): Element[];
494
- getEventRows(trCount: number): Element[];
495
- getDateSlots(renderDates: Date[], workDays: number[]): TdData[];
496
- getNextPreviousDate(type: NavigationDirection): Date;
497
- refreshHeader(): void;
498
- refreshResourceHeader(): void;
499
- renderLayout(type: string): void;
500
- renderResourceMobileLayout(): void;
501
- setPanel(panel: HTMLElement): void;
502
- getPanel(): HTMLElement;
503
- generateColumnLevels(): TdData[][];
504
- getColumnLevels(): TdData[][];
505
- createTableLayout(className?: string): Element;
506
- setResourceHeaderContent(tdElement: Element, tdData: TdData, className: string): void;
507
- destroy(): void;
508
- isTimelineView(): boolean;
509
- setColWidth(content: HTMLElement): void;
510
- resetColWidth(): void;
511
- getAdjustedDate?(date: Date): Date;
512
- viewIndex: number;
513
- colLevels: TdData[][];
514
- getGroupIndices(dataCollection?: TdData[]): number[];
515
- }
516
- /** @private */
517
- export interface EJ2Instance extends HTMLElement {
518
- ej2_instances: Record<string, any>[];
519
- }
520
- /** @private */
521
- export interface ScrollCss {
522
- padding?: string;
523
- border?: string;
524
- rtlPadding?: string;
525
- rtlBorder?: string;
526
- }
527
- /** @private */
528
- export interface NotifyEventArgs {
529
- module?: string;
530
- cssProperties?: ScrollCss;
531
- processedData?: Record<string, any>[];
532
- isPreventScrollUpdate?: boolean;
533
- scrollPosition?: Record<string, any>;
534
- }
535
- /** @private */
536
- export interface LayoutData {
537
- element: HTMLElement;
538
- selectedDate: Date;
539
- renderDates: Date[];
540
- colLevels: TdData[][];
541
- }
542
- /** @private */
543
- export interface EventFieldsMapping {
544
- id?: string;
545
- isBlock?: string;
546
- subject?: string;
547
- startTime?: string;
548
- endTime?: string;
549
- startTimezone?: string;
550
- endTimezone?: string;
551
- location?: string;
552
- description?: string;
553
- isAllDay?: string;
554
- recurrenceID?: string;
555
- recurrenceRule?: string;
556
- recurrenceException?: string;
557
- isReadonly?: string;
558
- followingID?: string;
559
- }
560
- /** @private */
561
- export interface ElementData {
562
- index: number;
563
- left: string;
564
- width: string;
565
- day: number;
566
- dayIndex: number;
567
- record: Record<string, any>;
568
- resource: number;
569
- }
570
- /** @private */
571
- export interface SaveChanges {
572
- addedRecords: Record<string, any>[];
573
- changedRecords: Record<string, any>[];
574
- deletedRecords: Record<string, any>[];
575
- }
576
- /** @private */
577
- export interface UIStateArgs {
578
- expand?: boolean;
579
- isInitial?: boolean;
580
- left?: number;
581
- top?: number;
582
- isGroupAdaptive?: boolean;
583
- isIgnoreOccurrence?: boolean;
584
- groupIndex?: number;
585
- action?: boolean;
586
- isBlock?: boolean;
587
- isCustomMonth?: boolean;
588
- isPreventTimezone?: boolean;
589
- isPreventEventRefresh?: boolean;
590
- scheduleHeight?: number;
591
- isTapHold?: boolean;
592
- isTouchScroll?: boolean;
593
- isTransformed?: boolean;
594
- isSwipeScroll?: boolean;
595
- }
596
- /**
597
- * @private
598
- * @deprecated
599
- */
600
- export interface TreeViewArgs {
601
- resourceChild?: TreeViewArgs[];
602
- resourceId?: string;
603
- resourceName?: string;
604
- }
605
- /** @private */
606
- export interface ResizeEdges {
607
- left: boolean;
608
- right: boolean;
609
- top: boolean;
610
- bottom: boolean;
611
- }
612
- /** @private */
613
- export interface ActionBaseArgs {
614
- X?: number;
615
- Y?: number;
616
- pageX?: number;
617
- pageY?: number;
618
- target?: EventTarget;
619
- scrollInterval?: number;
620
- start?: Date;
621
- end?: Date;
622
- isAllDay?: boolean;
623
- action?: string;
624
- navigationInterval?: number;
625
- index?: number;
626
- height?: number;
627
- width?: number;
628
- interval?: number;
629
- cellWidth?: number;
630
- cellHeight?: number;
631
- groupIndex?: number;
632
- actionIndex?: number;
633
- slotInterval?: number;
634
- clone?: HTMLElement;
635
- element?: HTMLElement;
636
- cloneElement?: HTMLElement[];
637
- originalElement?: HTMLElement[];
638
- event?: Record<string, any>;
639
- excludeSelectors?: string;
640
- scroll?: ScrollOptions;
641
- navigation?: NavigateOptions;
642
- }
643
- /** @private */
644
- export interface StateArgs {
645
- isRefresh: boolean;
646
- isResource: boolean;
647
- isView: boolean;
648
- isDate: boolean;
649
- isLayout: boolean;
650
- isDataManager: boolean;
651
- }
652
- /** @private */
653
- export interface ViewsData extends ViewsModel {
654
- cellHeaderTemplateName?: string;
655
- dateHeaderTemplateName?: string;
656
- cellTemplateName?: string;
657
- resourceHeaderTemplateName?: string;
658
- headerIndentTemplateName?: string;
659
- eventTemplateName?: string;
660
- dayHeaderTemplateName?: string;
661
- monthHeaderTemplateName?: string;
662
- dateRangeTemplateName?: string;
663
- }
664
- /** @private */
665
- export interface CrudAction {
666
- isCrudAction: boolean;
667
- sourceEvent: TdData[];
668
- targetEvent: TdData[];
669
- }
670
- /** @private */
671
- export interface CallbackFunction extends Function {
672
- bind<T, A0, A1, A2, A3, A extends any[], R>(this: (this: T, args0: A0, args1: A1, args2: A2, args3: A3, ...args: A[]) => R, thisArgs: T, args0: A0, args1: A1, args2: A2, args3: A3): (...args: A[]) => R;
673
- }