@progress/kendo-vue-scheduler 11.0.0 → 11.1.0-develop.1
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/Scheduler.d.ts +210 -116
- package/components/DateHeaderCell.d.ts +1 -1
- package/components/SchedulerActionButtons.d.ts +16 -1
- package/components/SchedulerForm.d.ts +1 -1
- package/components/SchedulerOccurrenceDialog.d.ts +1 -1
- package/components/SchedulerRemoveDialog.d.ts +1 -1
- package/components/footer/SchedulerFooter.d.ts +3 -0
- package/components/header/SchedulerHeader.d.ts +1 -1
- package/constants/main.d.ts +1 -1
- package/dist/cdn/js/kendo-vue-scheduler.js +1 -1
- package/editors/SchedulerFormEditor.d.ts +174 -132
- package/items/SchedulerEditItem.d.ts +16 -16
- package/items/SchedulerItem.d.ts +63 -51
- package/items/SchedulerItemContent.d.ts +1 -1
- package/items/SchedulerViewItem.d.ts +10 -4
- package/models/DataItem.d.ts +3 -3
- package/models/Fields.d.ts +1 -1
- package/models/Group.d.ts +1 -1
- package/models/Item.d.ts +14 -14
- package/models/Occurrence.d.ts +1 -1
- package/models/SchedulerView.d.ts +3 -3
- package/models/Slot.d.ts +10 -10
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +2 -2
- package/package.json +14 -14
- package/slots/SchedulerEditSlot.d.ts +3 -3
- package/slots/SchedulerSlot.d.ts +37 -24
- package/slots/SchedulerViewSlot.d.ts +13 -7
- package/tasks/SchedulerEditTask.d.ts +4 -4
- package/tasks/SchedulerViewTask.d.ts +2 -2
- package/views/agenda/AgendaView.d.ts +1 -1
- package/views/day/DayView.d.ts +1 -1
- package/views/day/MultiDayView.d.ts +3 -0
- package/views/month/MonthView.d.ts +6 -0
- package/views/time/MultiDayTimelineView.d.ts +3 -0
- package/views/time/TimelineView.d.ts +1 -1
- package/views/week/WeekView.d.ts +1 -1
- package/views/week/WorkWeekView.d.ts +3 -0
package/Scheduler.d.ts
CHANGED
|
@@ -13,143 +13,176 @@ import { DATA_ACTION } from './constants/main';
|
|
|
13
13
|
import { SchedulerFormStateChangeEvent } from './components/SchedulerForm';
|
|
14
14
|
import { SchedulerQuickCreateFormProps } from './components/SchedulerQuickCreateForm';
|
|
15
15
|
/**
|
|
16
|
-
* Represents the props of the [Kendo UI for Vue Scheduler component](
|
|
16
|
+
* Represents the props of the [Kendo UI for Vue Scheduler component](slug:overview_scheduler).
|
|
17
17
|
*/
|
|
18
18
|
export interface SchedulerProps {
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* Sets the `id` attribute of the wrapping element of the Scheduler.
|
|
21
21
|
*/
|
|
22
22
|
id?: string;
|
|
23
23
|
/**
|
|
24
|
-
*
|
|
24
|
+
* Sets the `tabIndex` attribute of the wrapping element of the Scheduler.
|
|
25
|
+
*
|
|
26
|
+
* @default -1
|
|
27
|
+
*
|
|
28
|
+
* @remarks
|
|
29
|
+
* This property is related to accessibility.
|
|
25
30
|
*/
|
|
26
31
|
tabIndex?: number;
|
|
27
32
|
/**
|
|
28
|
-
*
|
|
33
|
+
* Sets the `role` attribute of the wrapping element of the Scheduler.
|
|
34
|
+
* When you do not set it, the Scheduler uses the `application` role.
|
|
35
|
+
*
|
|
36
|
+
* For more information, refer to the [Scheduler Accessibility Compliance](slug:accessibility_scheduler) article.
|
|
29
37
|
*
|
|
30
|
-
*
|
|
38
|
+
* @remarks
|
|
39
|
+
* This property is related to accessibility.
|
|
31
40
|
*/
|
|
32
41
|
role?: string;
|
|
33
42
|
/**
|
|
34
|
-
*
|
|
43
|
+
* Sets the `aria-labelledby` attribute of the Scheduler.
|
|
44
|
+
* Pass the `id` of the element that labels the Scheduler.
|
|
35
45
|
*
|
|
36
|
-
* For more information, refer to the [Scheduler Accessibility Compliance](
|
|
46
|
+
* For more information, refer to the [Scheduler Accessibility Compliance](slug:accessibility_scheduler) article.
|
|
47
|
+
*
|
|
48
|
+
* @remarks
|
|
49
|
+
* This property is related to accessibility.
|
|
37
50
|
*/
|
|
38
51
|
ariaLabelledby?: string;
|
|
39
52
|
/**
|
|
40
|
-
*
|
|
53
|
+
* Sets the `aria-label` attribute of the Scheduler.
|
|
54
|
+
*
|
|
55
|
+
* For more information, refer to the [Scheduler Accessibility Compliance](slug:accessibility_scheduler) article.
|
|
41
56
|
*
|
|
42
|
-
*
|
|
57
|
+
* @remarks
|
|
58
|
+
* This property is related to accessibility.
|
|
43
59
|
*/
|
|
44
60
|
ariaLabel?: string;
|
|
45
61
|
/**
|
|
46
|
-
*
|
|
62
|
+
* Sets a CSS class on the wrapping element of the Scheduler.
|
|
47
63
|
*/
|
|
48
64
|
className?: string;
|
|
49
65
|
/**
|
|
50
|
-
* Overrides the default item.
|
|
66
|
+
* Overrides the default item. Set it to a component or to the name of a slot template.
|
|
67
|
+
* The `item` property of a specific view overrides this property.
|
|
51
68
|
*
|
|
52
|
-
* The default component is: [SchedulerItem](
|
|
69
|
+
* The default component is: [SchedulerItem](slug:api_scheduler_scheduleritemprops).
|
|
53
70
|
*
|
|
54
|
-
* For more information on
|
|
71
|
+
* For more information on how to customize the Scheduler items, refer to the [Item Customization](slug:scheduler_custom_event) article.
|
|
55
72
|
*/
|
|
56
73
|
item?: any;
|
|
57
74
|
/**
|
|
58
|
-
* Overrides the default
|
|
75
|
+
* Overrides the default view item. Set it to a component or to the name of a slot template.
|
|
76
|
+
* The `viewItem` property of a specific view overrides this property.
|
|
59
77
|
*
|
|
60
|
-
* The default component is: [SchedulerViewItem](
|
|
78
|
+
* The default component is: [SchedulerViewItem](slug:api_scheduler_schedulerviewitemprops).
|
|
61
79
|
*
|
|
62
|
-
* For more information on
|
|
80
|
+
* For more information on how to customize the Scheduler items, refer to the [Item Customization](slug:scheduler_custom_event) article.
|
|
63
81
|
*/
|
|
64
82
|
viewItem?: any;
|
|
65
83
|
/**
|
|
66
|
-
* Overrides the default
|
|
84
|
+
* Overrides the default edit item. Set it to a component or to the name of a slot template.
|
|
85
|
+
* The `editItem` property of a specific view overrides this property.
|
|
67
86
|
*
|
|
68
|
-
* The default component is: [SchedulerEditItem](
|
|
87
|
+
* The default component is: [SchedulerEditItem](slug:api_scheduler_scheduleredititemprops).
|
|
69
88
|
*
|
|
70
|
-
* For more information on
|
|
89
|
+
* For more information on how to customize the Scheduler items, refer to the [Item Customization](slug:scheduler_custom_event) article.
|
|
71
90
|
*/
|
|
72
91
|
editItem?: any;
|
|
73
92
|
/**
|
|
74
|
-
* Overrides the default task.
|
|
75
|
-
*
|
|
93
|
+
* Overrides the default task. Set it to a component or to the name of a slot template.
|
|
94
|
+
* The `task` property of a specific view overrides this property.
|
|
95
|
+
* Only the [AgendaView](slug:agenda_view_scheduler) uses the `task`.
|
|
76
96
|
*
|
|
77
|
-
* The default component is: [SchedulerTask](
|
|
97
|
+
* The default component is: [SchedulerTask](slug:api_scheduler_schedulertaskprops).
|
|
78
98
|
*
|
|
79
|
-
* For more information on
|
|
99
|
+
* For more information on how to customize the Scheduler tasks, refer to the [Task Customization](slug:overview_agenda_view_scheduler) article.
|
|
80
100
|
*/
|
|
81
101
|
task?: any;
|
|
82
102
|
/**
|
|
103
|
+
* Overrides the default date header cell. Set it to a component or to the name of a slot template.
|
|
104
|
+
* The template receives the `DateHeaderCellProps`.
|
|
83
105
|
*
|
|
84
|
-
*
|
|
106
|
+
* @remarks
|
|
107
|
+
* Slot props: {@link DateHeaderCellProps}.
|
|
85
108
|
*/
|
|
86
109
|
dateHeaderCell?: any;
|
|
87
110
|
/**
|
|
111
|
+
* Overrides the default time header cell. Set it to a component or to the name of a slot template.
|
|
112
|
+
* The template receives the `TimeHeaderCellProps`.
|
|
88
113
|
*
|
|
89
|
-
*
|
|
114
|
+
* @remarks
|
|
115
|
+
* Slot props: {@link TimeHeaderCellProps}.
|
|
90
116
|
*/
|
|
91
117
|
timeHeaderCell?: any;
|
|
92
118
|
/**
|
|
93
|
-
* Overrides the default
|
|
94
|
-
*
|
|
119
|
+
* Overrides the default view task. Set it to a component or to the name of a slot template.
|
|
120
|
+
* The `viewTask` property of a specific view overrides this property.
|
|
121
|
+
* Only the [AgendaView](slug:agenda_view_scheduler) uses the `viewTask`.
|
|
95
122
|
*
|
|
96
|
-
* The default component is: [SchedulerViewTask](
|
|
123
|
+
* The default component is: [SchedulerViewTask](slug:api_scheduler_schedulerviewtaskprops).
|
|
97
124
|
*
|
|
98
|
-
* For more information on
|
|
125
|
+
* For more information on how to customize the Scheduler tasks, refer to the [Task Customization](slug:overview_agenda_view_scheduler) article.
|
|
99
126
|
*/
|
|
100
127
|
viewTask?: any;
|
|
101
128
|
/**
|
|
102
|
-
* Overrides the default
|
|
103
|
-
*
|
|
129
|
+
* Overrides the default edit task. Set it to a component or to the name of a slot template.
|
|
130
|
+
* The `editTask` property of a specific view overrides this property.
|
|
131
|
+
* Only the [AgendaView](slug:agenda_view_scheduler) uses the `editTask`.
|
|
104
132
|
*
|
|
105
|
-
* The default component is: [SchedulerEditTask](
|
|
133
|
+
* The default component is: [SchedulerEditTask](slug:api_scheduler_scheduleredittaskprops).
|
|
106
134
|
*
|
|
107
|
-
* For more information on
|
|
135
|
+
* For more information on how to customize the Scheduler tasks, refer to the [Task Customization](slug:overview_agenda_view_scheduler) article.
|
|
108
136
|
*/
|
|
109
137
|
editTask?: any;
|
|
110
138
|
/**
|
|
111
|
-
* Overrides the default header
|
|
139
|
+
* Overrides the default header of the Scheduler. Set it to a component or to the name of a slot template.
|
|
112
140
|
*
|
|
113
|
-
* The default component is: [SchedulerHeader](
|
|
141
|
+
* The default component is: [SchedulerHeader](slug:api_scheduler_schedulerheaderprops).
|
|
114
142
|
*
|
|
115
|
-
* For more information on
|
|
143
|
+
* For more information on how to customize the Scheduler header, refer to the [Header Customization](slug:overview_header_footer_scheduler) article.
|
|
116
144
|
*/
|
|
117
145
|
header?: any;
|
|
118
146
|
/**
|
|
119
|
-
* Overrides the default footer
|
|
147
|
+
* Overrides the default footer of the Scheduler. Set it to a component or to the name of a slot template.
|
|
120
148
|
*
|
|
121
|
-
* The default component is: [
|
|
149
|
+
* The default component is: [SchedulerFooter](slug:api_scheduler_schedulerfooterprops).
|
|
122
150
|
*
|
|
123
|
-
* For more information on
|
|
151
|
+
* For more information on how to customize the Scheduler footer, refer to the [Footer Customization](slug:overview_header_footer_scheduler) article.
|
|
124
152
|
*/
|
|
125
153
|
footer?: any;
|
|
126
154
|
/**
|
|
127
155
|
* Enables the adaptive (mobile) rendering of the Scheduler.
|
|
128
|
-
* When set to `true`, the Scheduler
|
|
156
|
+
* When you set it to `true`, the Scheduler uses mobile-specific classes and layout on small screens (below 1024px).
|
|
157
|
+
*
|
|
158
|
+
* @default true
|
|
129
159
|
*/
|
|
130
160
|
adaptive?: boolean;
|
|
131
161
|
/**
|
|
132
|
-
* Overrides the default slot
|
|
162
|
+
* Overrides the default slot. Set it to a component or to the name of a slot template.
|
|
163
|
+
* The `slot` property of a specific view overrides this property.
|
|
133
164
|
*
|
|
134
|
-
* The default component is: [SchedulerSlot](
|
|
165
|
+
* The default component is: [SchedulerSlot](slug:api_scheduler_schedulerslotprops).
|
|
135
166
|
*
|
|
136
|
-
* For more information on
|
|
167
|
+
* For more information on how to customize the Scheduler slots, refer to the [Slot Customization](slug:scheduler_custom_slot) article.
|
|
137
168
|
*/
|
|
138
169
|
slotRender?: any;
|
|
139
170
|
/**
|
|
140
|
-
* Overrides the default
|
|
171
|
+
* Overrides the default view slot. Set it to a component or to the name of a slot template.
|
|
172
|
+
* The `viewSlot` property of a specific view overrides this property.
|
|
141
173
|
*
|
|
142
|
-
* The default component is: [SchedulerViewSlot](
|
|
174
|
+
* The default component is: [SchedulerViewSlot](slug:api_scheduler_schedulerviewslotprops).
|
|
143
175
|
*
|
|
144
|
-
* For more information on
|
|
176
|
+
* For more information on how to customize the Scheduler slots, refer to the [Slot Customization](slug:scheduler_custom_slot) article.
|
|
145
177
|
*/
|
|
146
178
|
viewSlot?: any;
|
|
147
179
|
/**
|
|
148
|
-
* Overrides the default
|
|
180
|
+
* Overrides the default edit slot. Set it to a component or to the name of a slot template.
|
|
181
|
+
* The `editSlot` property of a specific view overrides this property.
|
|
149
182
|
*
|
|
150
|
-
* The default component is: [SchedulerEditSlot](
|
|
183
|
+
* The default component is: [SchedulerEditSlot](slug:api_scheduler_schedulereditslotprops).
|
|
151
184
|
*
|
|
152
|
-
* For more information on
|
|
185
|
+
* For more information on how to customize the Scheduler slots, refer to the [Slot Customization](slug:scheduler_custom_slot) article.
|
|
153
186
|
*/
|
|
154
187
|
editSlot?: any;
|
|
155
188
|
/** @hidden */
|
|
@@ -171,19 +204,28 @@ export interface SchedulerProps {
|
|
|
171
204
|
/** @hidden */
|
|
172
205
|
formProps?: any;
|
|
173
206
|
/**
|
|
174
|
-
* Sets the
|
|
207
|
+
* Sets the views that the Scheduler shows.
|
|
208
|
+
*
|
|
209
|
+
* @default []
|
|
210
|
+
*
|
|
211
|
+
* @remarks
|
|
212
|
+
* Built-in view names: `day` ({@link DayViewProps}), `week` ({@link WeekViewProps}), `workweek` ({@link WorkWeekViewProps}), `month` ({@link MonthViewProps}), `agenda` ({@link AgendaViewProps}), `timeline` ({@link TimelineViewProps}). Any other name renders the Day view.
|
|
175
213
|
*/
|
|
176
214
|
views?: SchedulerViewProps[];
|
|
177
215
|
/**
|
|
178
|
-
* Sets the
|
|
216
|
+
* Sets the selected view. The Scheduler matches the value with the `name` property of each view.
|
|
179
217
|
*/
|
|
180
218
|
view?: string;
|
|
181
219
|
/**
|
|
182
|
-
* Sets the data of the Scheduler
|
|
220
|
+
* Sets the data of the Scheduler. The Scheduler parses the data and shows it as Scheduler items.
|
|
221
|
+
*
|
|
222
|
+
* @default []
|
|
183
223
|
*/
|
|
184
224
|
dataItems?: DataItem[];
|
|
185
225
|
/**
|
|
186
|
-
*
|
|
226
|
+
* Specifies if you can edit the Scheduler. Set it to a `boolean` or to an object that enables different types of editing.
|
|
227
|
+
*
|
|
228
|
+
* @default false
|
|
187
229
|
*/
|
|
188
230
|
editable?: EditableProp | boolean;
|
|
189
231
|
/**
|
|
@@ -207,9 +249,9 @@ export interface SchedulerProps {
|
|
|
207
249
|
/**
|
|
208
250
|
* Sets the initially selected view.
|
|
209
251
|
*
|
|
210
|
-
* For more information refer to the [Scheduler Views](
|
|
252
|
+
* For more information, refer to the [Scheduler Views](slug:views_scheduler) article.
|
|
211
253
|
*
|
|
212
|
-
*
|
|
254
|
+
* The available values are:
|
|
213
255
|
* * `day`
|
|
214
256
|
* * `week`
|
|
215
257
|
* * `month`
|
|
@@ -218,68 +260,75 @@ export interface SchedulerProps {
|
|
|
218
260
|
*/
|
|
219
261
|
defaultView?: string;
|
|
220
262
|
/**
|
|
221
|
-
* Sets the
|
|
263
|
+
* Sets the selected `Date`. The Scheduler passes the selected date to the selected view, which turns it into a range.
|
|
222
264
|
*/
|
|
223
265
|
date?: Date;
|
|
224
266
|
/**
|
|
225
|
-
* Sets
|
|
267
|
+
* Sets the initially selected `Date`. Use `defaultDate` to set the first date that the Scheduler shows, while the Scheduler stays in uncontrolled mode.
|
|
268
|
+
*
|
|
269
|
+
* @default new Date()
|
|
226
270
|
*/
|
|
227
271
|
defaultDate?: Date;
|
|
228
272
|
/**
|
|
229
|
-
*
|
|
273
|
+
* Sets a function that returns a custom validator for the edit form.
|
|
274
|
+
*
|
|
275
|
+
* @default () => ({})
|
|
230
276
|
*/
|
|
231
277
|
validator?: Function;
|
|
232
278
|
/**
|
|
233
|
-
*
|
|
279
|
+
* Sets a function that returns custom initial values for the fields of the edit form.
|
|
280
|
+
*
|
|
281
|
+
* @default (i: any) => i
|
|
234
282
|
*/
|
|
235
283
|
modifyInitialFormValues?: Function;
|
|
236
284
|
/**
|
|
237
|
-
*
|
|
285
|
+
* Forces the right-to-left (`rtl`) mode. For more information, refer to [RTL Support](slug:globalization_scheduler#toc-right-to-left-support).
|
|
238
286
|
*/
|
|
239
287
|
rtl?: boolean;
|
|
240
288
|
/**
|
|
241
289
|
* Sets the `height` of the Scheduler.
|
|
290
|
+
*
|
|
291
|
+
* @default 600
|
|
242
292
|
*/
|
|
243
293
|
height?: number | string;
|
|
244
294
|
/**
|
|
245
|
-
*
|
|
295
|
+
* Sets the id of the timezone that the Scheduler shows.
|
|
246
296
|
* For example, `Europe/Sofia`.
|
|
247
297
|
*
|
|
248
298
|
* Defaults to `Etc/UTC`.
|
|
249
299
|
*/
|
|
250
300
|
timezone?: string;
|
|
251
301
|
/**
|
|
252
|
-
*
|
|
302
|
+
* Sets the groups of the Scheduler.
|
|
253
303
|
*/
|
|
254
304
|
group?: SchedulerGroup;
|
|
255
305
|
/**
|
|
256
|
-
*
|
|
306
|
+
* Sets the resources of the Scheduler.
|
|
257
307
|
*/
|
|
258
308
|
resources?: SchedulerResource[];
|
|
259
309
|
/**
|
|
260
|
-
*
|
|
261
|
-
* ([see example](
|
|
310
|
+
* Sets the names of the model fields from which the Scheduler reads its data
|
|
311
|
+
* ([see example](slug:data_binding_scheduler)).
|
|
262
312
|
*/
|
|
263
313
|
modelFields?: SchedulerModelFields;
|
|
264
314
|
/**
|
|
265
|
-
*
|
|
315
|
+
* Fires when you select a new `date`.
|
|
266
316
|
*/
|
|
267
317
|
onDateChange?: (args: SchedulerDateChangeEvent) => void;
|
|
268
318
|
/**
|
|
269
|
-
*
|
|
319
|
+
* Fires when you select a new `view` ([see example](slug:views_scheduler#toc-controlling-the-selected-view)).
|
|
270
320
|
*/
|
|
271
321
|
onViewChange?: (args: SchedulerViewChangeEvent) => void;
|
|
272
322
|
/**
|
|
273
|
-
*
|
|
274
|
-
* To enable editing set the `editable` property to `true` or an [`EditableProp`](
|
|
323
|
+
* Fires each time you edit the data.
|
|
324
|
+
* To enable editing, set the `editable` property to `true` or to an [`EditableProp`](slug:api_scheduler_editableprop) object.
|
|
275
325
|
*
|
|
276
|
-
* For more information refer to the [Scheduler Editing](
|
|
326
|
+
* For more information, refer to the [Scheduler Editing](slug:editing_scheduler) article.
|
|
277
327
|
*/
|
|
278
328
|
onDataChange?: (event: SchedulerDataChangeEvent) => void;
|
|
279
329
|
}
|
|
280
330
|
/**
|
|
281
|
-
*
|
|
282
|
-
*
|
|
331
|
+
* Represents an action that the Scheduler can dispatch.
|
|
283
332
|
*/
|
|
284
333
|
export interface DataAction {
|
|
285
334
|
/**
|
|
@@ -290,11 +339,11 @@ export interface DataAction {
|
|
|
290
339
|
*/
|
|
291
340
|
type: DATA_ACTION;
|
|
292
341
|
/**
|
|
293
|
-
* Specifies if the
|
|
342
|
+
* Specifies if the Scheduler applies the action to the whole series of a recurring item. If the item does not recur, set `series` to `false`.
|
|
294
343
|
*/
|
|
295
344
|
series: boolean;
|
|
296
345
|
/**
|
|
297
|
-
*
|
|
346
|
+
* The `dataItem` that you edit.
|
|
298
347
|
*/
|
|
299
348
|
dataItem: DataItem;
|
|
300
349
|
}
|
|
@@ -304,20 +353,31 @@ export interface DateChangeEvent {
|
|
|
304
353
|
event: any;
|
|
305
354
|
}
|
|
306
355
|
/**
|
|
307
|
-
*
|
|
308
|
-
* The value is a JavaScript `Date` object.
|
|
356
|
+
* Represents the arguments of the event that fires each time the user changes the selected `date`.
|
|
309
357
|
*/
|
|
310
358
|
export interface SchedulerDateChangeEvent {
|
|
359
|
+
/**
|
|
360
|
+
* The new selected date as a JavaScript `Date` object.
|
|
361
|
+
*/
|
|
311
362
|
value: Date;
|
|
312
363
|
}
|
|
313
364
|
/**
|
|
314
|
-
*
|
|
365
|
+
* Represents the arguments of the event that fires each time the user changes the `data`.
|
|
315
366
|
*
|
|
316
|
-
* For more information, refer to the [Scheduler Data Binding](
|
|
367
|
+
* For more information, refer to the [Scheduler Data Binding](slug:data_binding_scheduler) article.
|
|
317
368
|
*/
|
|
318
369
|
export interface SchedulerDataChangeEvent {
|
|
370
|
+
/**
|
|
371
|
+
* The data items that the user creates.
|
|
372
|
+
*/
|
|
319
373
|
created: DataItem[];
|
|
374
|
+
/**
|
|
375
|
+
* The data items that the user updates.
|
|
376
|
+
*/
|
|
320
377
|
updated: DataItem[];
|
|
378
|
+
/**
|
|
379
|
+
* The data items that the user deletes.
|
|
380
|
+
*/
|
|
321
381
|
deleted: DataItem[];
|
|
322
382
|
}
|
|
323
383
|
/** @hidden */
|
|
@@ -326,14 +386,28 @@ export interface ActiveViewNameChangeEvent {
|
|
|
326
386
|
target: any;
|
|
327
387
|
}
|
|
328
388
|
/**
|
|
329
|
-
*
|
|
389
|
+
* Represents the arguments of the event that fires each time the user changes the active `view`.
|
|
330
390
|
*
|
|
331
|
-
* For more information, refer to the [Scheduler Views](
|
|
391
|
+
* For more information, refer to the [Scheduler Views](slug:views_scheduler) article.
|
|
332
392
|
*/
|
|
333
393
|
export interface SchedulerViewChangeEvent {
|
|
394
|
+
/**
|
|
395
|
+
* The `name` of the new active view.
|
|
396
|
+
*/
|
|
334
397
|
value: string;
|
|
335
398
|
}
|
|
336
|
-
/**
|
|
399
|
+
/**
|
|
400
|
+
* Represents the [Kendo UI for Vue Scheduler component](slug:overview_scheduler).
|
|
401
|
+
* Use the Scheduler to show, create, and edit events in day, week, month, agenda, and timeline views.
|
|
402
|
+
*
|
|
403
|
+
* @example
|
|
404
|
+
* ```vue
|
|
405
|
+
* <Scheduler :data-items="events" :views="views" :default-date="displayDate" :editable="true" />
|
|
406
|
+
* ```
|
|
407
|
+
*
|
|
408
|
+
* @remarks
|
|
409
|
+
* Supported children components are: {@link SchedulerItem}, {@link SchedulerViewItem}, {@link SchedulerSlot}, {@link SchedulerViewSlot}, {@link SchedulerFormEditor}.
|
|
410
|
+
*/
|
|
337
411
|
declare const Scheduler: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
338
412
|
dataItems: {
|
|
339
413
|
type: PropType<any[]>;
|
|
@@ -750,7 +824,15 @@ declare const Scheduler: import('vue').DefineComponent<import('vue').ExtractProp
|
|
|
750
824
|
dateRange: {
|
|
751
825
|
type: PropType<DateRange | ((args: import('./models/SchedulerView').SchedulerViewDateRangeArgs) => DateRange)>;
|
|
752
826
|
default: () => ({ intl, date, numberOfDays, timezone }: import('./models/SchedulerView').SchedulerViewDateRangeArgs) => DateRange;
|
|
753
|
-
};
|
|
827
|
+
}; /**
|
|
828
|
+
* Sets the `role` attribute of the wrapping element of the Scheduler.
|
|
829
|
+
* When you do not set it, the Scheduler uses the `application` role.
|
|
830
|
+
*
|
|
831
|
+
* For more information, refer to the [Scheduler Accessibility Compliance](slug:accessibility_scheduler) article.
|
|
832
|
+
*
|
|
833
|
+
* @remarks
|
|
834
|
+
* This property is related to accessibility.
|
|
835
|
+
*/
|
|
754
836
|
selectedDateFormat: {
|
|
755
837
|
type: PropType<string>;
|
|
756
838
|
default: string;
|
|
@@ -762,11 +844,7 @@ declare const Scheduler: import('vue').DefineComponent<import('vue').ExtractProp
|
|
|
762
844
|
slotDuration: {
|
|
763
845
|
type: PropType<number>;
|
|
764
846
|
default: number;
|
|
765
|
-
};
|
|
766
|
-
* The `aria-label` attribute to be applied to the Scheduler component.
|
|
767
|
-
*
|
|
768
|
-
* For more information, refer to the [Scheduler Accessibility Compliance]({% slug accessibility_scheduler %}) article
|
|
769
|
-
*/
|
|
847
|
+
};
|
|
770
848
|
slotDivisions: {
|
|
771
849
|
type: PropType<number>;
|
|
772
850
|
default: number;
|
|
@@ -800,7 +878,15 @@ declare const Scheduler: import('vue').DefineComponent<import('vue').ExtractProp
|
|
|
800
878
|
dateRange: {
|
|
801
879
|
type: PropType<DateRange | ((args: import('./models/SchedulerView').SchedulerViewDateRangeArgs) => DateRange)>;
|
|
802
880
|
default: () => ({ intl, date, numberOfDays, timezone }: import('./models/SchedulerView').SchedulerViewDateRangeArgs) => DateRange;
|
|
803
|
-
};
|
|
881
|
+
}; /**
|
|
882
|
+
* Sets the `role` attribute of the wrapping element of the Scheduler.
|
|
883
|
+
* When you do not set it, the Scheduler uses the `application` role.
|
|
884
|
+
*
|
|
885
|
+
* For more information, refer to the [Scheduler Accessibility Compliance](slug:accessibility_scheduler) article.
|
|
886
|
+
*
|
|
887
|
+
* @remarks
|
|
888
|
+
* This property is related to accessibility.
|
|
889
|
+
*/
|
|
804
890
|
selectedDateFormat: {
|
|
805
891
|
type: PropType<string>;
|
|
806
892
|
default: string;
|
|
@@ -812,11 +898,7 @@ declare const Scheduler: import('vue').DefineComponent<import('vue').ExtractProp
|
|
|
812
898
|
slotDuration: {
|
|
813
899
|
type: PropType<number>;
|
|
814
900
|
default: number;
|
|
815
|
-
};
|
|
816
|
-
* The `aria-label` attribute to be applied to the Scheduler component.
|
|
817
|
-
*
|
|
818
|
-
* For more information, refer to the [Scheduler Accessibility Compliance]({% slug accessibility_scheduler %}) article
|
|
819
|
-
*/
|
|
901
|
+
};
|
|
820
902
|
slotDivisions: {
|
|
821
903
|
type: PropType<number>;
|
|
822
904
|
default: number;
|
|
@@ -936,9 +1018,7 @@ declare const Scheduler: import('vue').DefineComponent<import('vue').ExtractProp
|
|
|
936
1018
|
timeHeaderCell: PropType<any>;
|
|
937
1019
|
slotRender: PropType<any>;
|
|
938
1020
|
viewSlot: PropType<any>;
|
|
939
|
-
resizeHint: PropType<any>;
|
|
940
|
-
* Specifies the `tabIndex` attribute of the wrapping element of the Scheduler.
|
|
941
|
-
*/
|
|
1021
|
+
resizeHint: PropType<any>;
|
|
942
1022
|
item: PropType<any>;
|
|
943
1023
|
viewItem: PropType<any>;
|
|
944
1024
|
editable: PropType<boolean | EditableProp>;
|
|
@@ -1036,9 +1116,7 @@ declare const Scheduler: import('vue').DefineComponent<import('vue').ExtractProp
|
|
|
1036
1116
|
timeHeaderCell: PropType<any>;
|
|
1037
1117
|
slotRender: PropType<any>;
|
|
1038
1118
|
viewSlot: PropType<any>;
|
|
1039
|
-
resizeHint: PropType<any>;
|
|
1040
|
-
* Specifies the `tabIndex` attribute of the wrapping element of the Scheduler.
|
|
1041
|
-
*/
|
|
1119
|
+
resizeHint: PropType<any>;
|
|
1042
1120
|
item: PropType<any>;
|
|
1043
1121
|
viewItem: PropType<any>;
|
|
1044
1122
|
editable: PropType<boolean | EditableProp>;
|
|
@@ -1148,18 +1226,9 @@ declare const Scheduler: import('vue').DefineComponent<import('vue').ExtractProp
|
|
|
1148
1226
|
type: PropType<boolean>;
|
|
1149
1227
|
default: boolean;
|
|
1150
1228
|
};
|
|
1151
|
-
/**
|
|
1152
|
-
* Represents the props of the [Kendo UI for Vue Scheduler component]({% slug overview_scheduler %}).
|
|
1153
|
-
*/
|
|
1154
1229
|
format: PropType<string>;
|
|
1155
1230
|
}>, {}, {}, {}, {
|
|
1156
|
-
handleDataAction(action: DataAction): void;
|
|
1157
|
-
* Overrides the default viewItem. Specifying the `viewItem` property of a specific view will override this property.
|
|
1158
|
-
*
|
|
1159
|
-
* The default component is: [SchedulerViewItem]({% slug api_scheduler_schedulerviewitemprops %})
|
|
1160
|
-
*
|
|
1161
|
-
* For more information on customizing the scheduler items, refer to the [Item Customization]({% slug scheduler_custom_event %}) article.
|
|
1162
|
-
*/
|
|
1231
|
+
handleDataAction(action: DataAction): void;
|
|
1163
1232
|
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
1164
1233
|
dataaction: any;
|
|
1165
1234
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
@@ -1244,9 +1313,6 @@ declare const Scheduler: import('vue').DefineComponent<import('vue').ExtractProp
|
|
|
1244
1313
|
type: PropType<boolean>;
|
|
1245
1314
|
default: boolean;
|
|
1246
1315
|
};
|
|
1247
|
-
/**
|
|
1248
|
-
* Represents the props of the [Kendo UI for Vue Scheduler component]({% slug overview_scheduler %}).
|
|
1249
|
-
*/
|
|
1250
1316
|
format: PropType<string>;
|
|
1251
1317
|
}>> & Readonly<{
|
|
1252
1318
|
onDataaction?: (...args: any) => any;
|
|
@@ -1442,7 +1508,14 @@ declare const Scheduler: import('vue').DefineComponent<import('vue').ExtractProp
|
|
|
1442
1508
|
slotRender: PropType<any>;
|
|
1443
1509
|
viewSlot: PropType<any>;
|
|
1444
1510
|
resizeHint: PropType<any>;
|
|
1445
|
-
item: PropType<any>;
|
|
1511
|
+
item: PropType<any>; /**
|
|
1512
|
+
* Overrides the default view item. Set it to a component or to the name of a slot template.
|
|
1513
|
+
* The `viewItem` property of a specific view overrides this property.
|
|
1514
|
+
*
|
|
1515
|
+
* The default component is: [SchedulerViewItem](slug:api_scheduler_schedulerviewitemprops).
|
|
1516
|
+
*
|
|
1517
|
+
* For more information on how to customize the Scheduler items, refer to the [Item Customization](slug:scheduler_custom_event) article.
|
|
1518
|
+
*/
|
|
1446
1519
|
viewItem: PropType<any>;
|
|
1447
1520
|
editable: {
|
|
1448
1521
|
type: PropType<boolean>;
|
|
@@ -1452,14 +1525,28 @@ declare const Scheduler: import('vue').DefineComponent<import('vue').ExtractProp
|
|
|
1452
1525
|
popoverEditItem: import('vue').ShallowRef<import('./models/Item').Item, import('./models/Item').Item>;
|
|
1453
1526
|
popoverFormItem: import('vue').ShallowRef<any, any>;
|
|
1454
1527
|
popoverShowOccurrenceDialog: import('vue').Ref<boolean, boolean>;
|
|
1455
|
-
handlePopoverItemDoubleClick: (item: import('./models/Item').Item) => boolean;
|
|
1528
|
+
handlePopoverItemDoubleClick: (item: import('./models/Item').Item) => boolean; /**
|
|
1529
|
+
* Overrides the default date header cell. Set it to a component or to the name of a slot template.
|
|
1530
|
+
* The template receives the `DateHeaderCellProps`.
|
|
1531
|
+
*
|
|
1532
|
+
* @remarks
|
|
1533
|
+
* Slot props: {@link DateHeaderCellProps}.
|
|
1534
|
+
*/
|
|
1456
1535
|
handlePopoverFormItemChange: (formItem: any) => void;
|
|
1457
1536
|
handlePopoverShowOccurrenceDialogChange: (show: boolean) => void;
|
|
1458
1537
|
}, {
|
|
1459
1538
|
hasMounted: boolean;
|
|
1460
1539
|
rowSyncFrame: number;
|
|
1461
1540
|
rowSyncQueued: boolean;
|
|
1462
|
-
currentDragItem: any;
|
|
1541
|
+
currentDragItem: any; /**
|
|
1542
|
+
* Overrides the default view task. Set it to a component or to the name of a slot template.
|
|
1543
|
+
* The `viewTask` property of a specific view overrides this property.
|
|
1544
|
+
* Only the [AgendaView](slug:agenda_view_scheduler) uses the `viewTask`.
|
|
1545
|
+
*
|
|
1546
|
+
* The default component is: [SchedulerViewTask](slug:api_scheduler_schedulerviewtaskprops).
|
|
1547
|
+
*
|
|
1548
|
+
* For more information on how to customize the Scheduler tasks, refer to the [Task Customization](slug:overview_agenda_view_scheduler) article.
|
|
1549
|
+
*/
|
|
1463
1550
|
currentResizeItem: any;
|
|
1464
1551
|
popoverShow: boolean;
|
|
1465
1552
|
popoverAnchor: HTMLElement;
|
|
@@ -1528,7 +1615,14 @@ declare const Scheduler: import('vue').DefineComponent<import('vue').ExtractProp
|
|
|
1528
1615
|
slotRender: PropType<any>;
|
|
1529
1616
|
viewSlot: PropType<any>;
|
|
1530
1617
|
resizeHint: PropType<any>;
|
|
1531
|
-
item: PropType<any>;
|
|
1618
|
+
item: PropType<any>; /**
|
|
1619
|
+
* Overrides the default view item. Set it to a component or to the name of a slot template.
|
|
1620
|
+
* The `viewItem` property of a specific view overrides this property.
|
|
1621
|
+
*
|
|
1622
|
+
* The default component is: [SchedulerViewItem](slug:api_scheduler_schedulerviewitemprops).
|
|
1623
|
+
*
|
|
1624
|
+
* For more information on how to customize the Scheduler items, refer to the [Item Customization](slug:scheduler_custom_event) article.
|
|
1625
|
+
*/
|
|
1532
1626
|
viewItem: PropType<any>;
|
|
1533
1627
|
editable: {
|
|
1534
1628
|
type: PropType<boolean>;
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
import { DateFormatOptions } from '@progress/kendo-vue-intl';
|
|
9
9
|
import { PropType } from 'vue';
|
|
10
10
|
/**
|
|
11
|
-
* Represents the properties of [DateHeaderCell](
|
|
11
|
+
* Represents the properties of [DateHeaderCell](slug:api_scheduler_dateheadercellprops) component.
|
|
12
12
|
*/
|
|
13
13
|
export interface DateHeaderCellProps {
|
|
14
14
|
/** @hidden */
|