@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
|
@@ -12,19 +12,19 @@ import { SchedulerQuickCreateFormStateChangeEvent } from '../components/Schedule
|
|
|
12
12
|
import { SchedulerViewSlotProps } from './SchedulerViewSlot';
|
|
13
13
|
import { h, PropType, VNodeChild } from 'vue';
|
|
14
14
|
/**
|
|
15
|
-
* Represents the props of the Kendo UI for Vue [SchedulerEditSlot](
|
|
15
|
+
* Represents the props of the Kendo UI for Vue [SchedulerEditSlot](slug:api_scheduler_schedulereditslotprops) component.
|
|
16
16
|
*/
|
|
17
17
|
export interface SchedulerEditSlotProps extends SchedulerViewSlotProps {
|
|
18
18
|
/**
|
|
19
19
|
* Overrides the default component responsible for view-specific functionality.
|
|
20
20
|
*
|
|
21
|
-
* The default Component is: [SchedulerViewSlot](
|
|
21
|
+
* The default Component is: [SchedulerViewSlot](slug:api_scheduler_schedulerviewslotprops).
|
|
22
22
|
*/
|
|
23
23
|
viewSlot?: any;
|
|
24
24
|
/**
|
|
25
25
|
* Overrides the default component responsible for visualizing the `formItem`.
|
|
26
26
|
*
|
|
27
|
-
* The default Component is: [SchedulerForm](
|
|
27
|
+
* The default Component is: [SchedulerForm](slug:api_scheduler_schedulerformprops).
|
|
28
28
|
*/
|
|
29
29
|
form?: any;
|
|
30
30
|
/**
|
package/slots/SchedulerSlot.d.ts
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
import { Slot, SchedulerSlotMouseEvent, SchedulerSlotKeyboardEvent, SchedulerSlotFocusEvent, EditableProp } from '../models/main';
|
|
9
9
|
import { PropType } from 'vue';
|
|
10
10
|
/**
|
|
11
|
-
* Represents the props of the Kendo UI for Vue [SchedulerSlot](
|
|
11
|
+
* Represents the props of the Kendo UI for Vue [SchedulerSlot](slug:api_scheduler_schedulerslotprops) component.
|
|
12
12
|
*/
|
|
13
13
|
export interface SchedulerSlotProps extends Slot {
|
|
14
14
|
/** @hidden */
|
|
@@ -28,83 +28,90 @@ export interface SchedulerSlotProps extends Slot {
|
|
|
28
28
|
/** @hidden */
|
|
29
29
|
className?: string;
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* Sets the `id` of the wrapping element of the SchedulerSlot.
|
|
32
32
|
*/
|
|
33
33
|
id?: string;
|
|
34
34
|
/**
|
|
35
|
-
*
|
|
35
|
+
* Sets the `tabIndex` attribute of the wrapping element of the SchedulerSlot.
|
|
36
36
|
*
|
|
37
|
-
*
|
|
37
|
+
* When you set it to `null`, the SchedulerSlot does not apply a `tabIndex` to the element.
|
|
38
|
+
*
|
|
39
|
+
* @remarks
|
|
40
|
+
* This property is related to accessibility.
|
|
38
41
|
*/
|
|
39
42
|
tabIndex?: number;
|
|
40
43
|
/**
|
|
41
|
-
* Overrides the `editable` prop of the
|
|
44
|
+
* Overrides the `editable` prop of the Scheduler and the active view.
|
|
42
45
|
*/
|
|
43
46
|
editable?: EditableProp | boolean;
|
|
44
47
|
/**
|
|
45
|
-
* Specifies if the `day` of the SchedulerSlot(in the current timezone) is between the `workDayStart` and `workDayEnd` of the active view.
|
|
48
|
+
* Specifies if the `day` of the SchedulerSlot (in the current timezone) is between the `workDayStart` and `workDayEnd` of the active view.
|
|
49
|
+
*
|
|
50
|
+
* @default true
|
|
46
51
|
*/
|
|
47
52
|
isWorkDay?: boolean;
|
|
48
53
|
/**
|
|
49
|
-
* Specifies if the `time` of the SchedulerSlot(in the current timezone) is between the `workDayStart` and `workDayEnd` of the active view.
|
|
54
|
+
* Specifies if the `time` of the SchedulerSlot (in the current timezone) is between the `workDayStart` and `workDayEnd` of the active view.
|
|
55
|
+
*
|
|
56
|
+
* @default true
|
|
50
57
|
*/
|
|
51
58
|
isWorkHour?: boolean;
|
|
52
59
|
/**
|
|
53
|
-
* Sets the selected state of the SchedulerSlot.
|
|
60
|
+
* Sets the selected state of the SchedulerSlot. When `selected` is `true`, the SchedulerSlot adds the `k-selected` class by default.
|
|
54
61
|
*/
|
|
55
62
|
selected?: boolean;
|
|
56
63
|
/**
|
|
57
|
-
* Sets the `row`
|
|
58
|
-
*
|
|
64
|
+
* Sets the `row` of the SchedulerSlot in the active view.
|
|
65
|
+
* The SchedulerSlot uses this property for keyboard navigation between slots.
|
|
59
66
|
*/
|
|
60
67
|
row: number;
|
|
61
68
|
/**
|
|
62
|
-
* Sets the `col`
|
|
63
|
-
*
|
|
69
|
+
* Sets the `col` of the SchedulerSlot in the active view.
|
|
70
|
+
* The SchedulerSlot uses this property for keyboard navigation between slots.
|
|
64
71
|
*/
|
|
65
72
|
col: number;
|
|
66
73
|
/**
|
|
67
|
-
*
|
|
74
|
+
* Fires each time the element, or any of its child elements, receives focus.
|
|
68
75
|
*/
|
|
69
76
|
onFocus?: (event: SchedulerSlotFocusEvent) => void;
|
|
70
77
|
/**
|
|
71
|
-
*
|
|
78
|
+
* Fires each time the element, or any of its child elements, loses focus.
|
|
72
79
|
*/
|
|
73
80
|
onBlur?: (event: SchedulerSlotFocusEvent) => void;
|
|
74
81
|
/**
|
|
75
|
-
*
|
|
82
|
+
* Fires each time you click the element or any of its child elements.
|
|
76
83
|
*/
|
|
77
84
|
onClick?: (event: SchedulerSlotMouseEvent) => void;
|
|
78
85
|
/**
|
|
79
|
-
*
|
|
86
|
+
* Fires each time the element, or any of its child elements, receives a `mouseenter` event.
|
|
80
87
|
*/
|
|
81
88
|
onMouseEnter?: (event: SchedulerSlotMouseEvent) => void;
|
|
82
89
|
/**
|
|
83
|
-
*
|
|
90
|
+
* Fires each time the element, or any of its child elements, receives a `mouseleave` event.
|
|
84
91
|
*/
|
|
85
92
|
onMouseLeave?: (event: SchedulerSlotMouseEvent) => void;
|
|
86
93
|
/**
|
|
87
|
-
*
|
|
94
|
+
* Fires each time the element, or any of its child elements, receives a `mouseover` event.
|
|
88
95
|
*/
|
|
89
96
|
onMouseOver?: (event: SchedulerSlotMouseEvent) => void;
|
|
90
97
|
/**
|
|
91
|
-
*
|
|
98
|
+
* Fires each time the element, or any of its child elements, receives a `mouseout` event.
|
|
92
99
|
*/
|
|
93
100
|
onMouseOut?: (event: SchedulerSlotMouseEvent) => void;
|
|
94
101
|
/**
|
|
95
|
-
*
|
|
102
|
+
* Fires each time you double-click the element or any of its child elements.
|
|
96
103
|
*/
|
|
97
104
|
onDoubleClick?: (event: SchedulerSlotMouseEvent) => void;
|
|
98
105
|
/**
|
|
99
|
-
*
|
|
106
|
+
* Fires each time a `keydown` event reaches the wrapping element.
|
|
100
107
|
*/
|
|
101
108
|
onKeyDown?: (event: SchedulerSlotKeyboardEvent) => void;
|
|
102
109
|
/**
|
|
103
|
-
*
|
|
110
|
+
* Fires each time a `keypress` event reaches the wrapping element.
|
|
104
111
|
*/
|
|
105
112
|
onKeyPress?: (event: SchedulerSlotKeyboardEvent) => void;
|
|
106
113
|
/**
|
|
107
|
-
*
|
|
114
|
+
* Fires each time a `keyup` event reaches the wrapping element.
|
|
108
115
|
*/
|
|
109
116
|
onKeyUp?: (event: SchedulerSlotKeyboardEvent) => void;
|
|
110
117
|
}
|
|
@@ -114,7 +121,13 @@ export interface SchedulerSlotHandle {
|
|
|
114
121
|
props: SchedulerSlotProps;
|
|
115
122
|
}
|
|
116
123
|
/**
|
|
117
|
-
*
|
|
124
|
+
* Represents the Kendo UI for Vue SchedulerSlot component.
|
|
125
|
+
* Use it in a custom slot template to change how the Scheduler shows a single time slot ([see example](slug:scheduler_custom_slot)).
|
|
126
|
+
*
|
|
127
|
+
* @example
|
|
128
|
+
* ```vue
|
|
129
|
+
* <SchedulerSlot v-bind="props" :selected="true" />
|
|
130
|
+
* ```
|
|
118
131
|
*/
|
|
119
132
|
declare const SchedulerSlot: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
120
133
|
refTo: PropType<any>;
|
|
@@ -8,26 +8,26 @@
|
|
|
8
8
|
import { SchedulerSlotProps } from './SchedulerSlot';
|
|
9
9
|
import { PropType } from 'vue';
|
|
10
10
|
/**
|
|
11
|
-
* Represents the extended `expandable` configuration of a
|
|
11
|
+
* Represents the extended `expandable` configuration of a SchedulerSlot.
|
|
12
12
|
*
|
|
13
|
-
*
|
|
13
|
+
* When you set `offsetTop` or `offsetBottom`, the slot adds extra space to the space that its `items` take.
|
|
14
14
|
*/
|
|
15
15
|
export type SchedulerSlotExpandableConfig = {
|
|
16
16
|
offsetTop?: number;
|
|
17
17
|
offsetBottom?: number;
|
|
18
18
|
};
|
|
19
19
|
/**
|
|
20
|
-
* Represents the props of the Kendo UI for Vue [SchedulerViewSlot](
|
|
20
|
+
* Represents the props of the Kendo UI for Vue [SchedulerViewSlot](slug:api_scheduler_schedulerviewslotprops) component.
|
|
21
21
|
*/
|
|
22
22
|
export interface SchedulerViewSlotProps extends SchedulerSlotProps {
|
|
23
23
|
/**
|
|
24
|
-
* Overrides the default component
|
|
24
|
+
* Overrides the default component that handles the view-specific features of the slot. Set it to a component or to the name of a slot template.
|
|
25
25
|
*
|
|
26
|
-
* The default
|
|
26
|
+
* The default component is: [SchedulerSlot](slug:api_scheduler_schedulerslotprops).
|
|
27
27
|
*/
|
|
28
28
|
slotRender?: any;
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
30
|
+
* When you set it to `false`, the slot keeps its size and does not expand to fit the `items` inside it.
|
|
31
31
|
*/
|
|
32
32
|
expandable?: boolean | SchedulerSlotExpandableConfig;
|
|
33
33
|
}
|
|
@@ -36,7 +36,13 @@ export interface SchedulerViewSlotHandle {
|
|
|
36
36
|
props: SchedulerViewSlotProps;
|
|
37
37
|
}
|
|
38
38
|
/**
|
|
39
|
-
*
|
|
39
|
+
* Represents the Kendo UI for Vue SchedulerViewSlot component.
|
|
40
|
+
* Use it in a custom view slot template to change the view-specific layout of a Scheduler slot, such as its height ([see example](slug:adaptive_slot_height_scheduler)).
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* ```vue
|
|
44
|
+
* <SchedulerViewSlot v-bind="props" :expandable="false" />
|
|
45
|
+
* ```
|
|
40
46
|
*/
|
|
41
47
|
declare const SchedulerViewSlot: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
42
48
|
role: PropType<string>;
|
|
@@ -13,19 +13,19 @@ import { SchedulerOccurrenceDialogStateChangeEvent } from '../components/Schedul
|
|
|
13
13
|
import { SchedulerFormStateChangeEvent } from '../components/SchedulerForm';
|
|
14
14
|
import { PropType } from 'vue';
|
|
15
15
|
/**
|
|
16
|
-
* Represents the props of the Kendo UI for Vue [SchedulerEditTask](
|
|
16
|
+
* Represents the props of the Kendo UI for Vue [SchedulerEditTask](slug:api_scheduler_scheduleredittaskprops) component.
|
|
17
17
|
*/
|
|
18
18
|
export interface SchedulerEditTaskProps extends SchedulerViewTaskProps {
|
|
19
19
|
/**
|
|
20
20
|
* Overrides the default component responsible for positioning the task inside the view.
|
|
21
21
|
*
|
|
22
|
-
* The default Component is: [SchedulerViewTask](
|
|
22
|
+
* The default Component is: [SchedulerViewTask](slug:api_scheduler_schedulerviewtaskprops).
|
|
23
23
|
*/
|
|
24
24
|
viewTask?: any;
|
|
25
25
|
/**
|
|
26
26
|
* Overrides the default component responsible for visualizing the `removeItem` and confirming the `remove` action.
|
|
27
27
|
*
|
|
28
|
-
* The default Component is: [SchedulerRemoveDialog](
|
|
28
|
+
* The default Component is: [SchedulerRemoveDialog](slug:api_scheduler_schedulerremovedialogprops).
|
|
29
29
|
*/
|
|
30
30
|
removeDialog?: any;
|
|
31
31
|
/**
|
|
@@ -59,7 +59,7 @@ export interface SchedulerEditTaskProps extends SchedulerViewTaskProps {
|
|
|
59
59
|
/**
|
|
60
60
|
* Overrides the default component responsible for the selection between `occurrence` and `series` delete.
|
|
61
61
|
*
|
|
62
|
-
* The default Component is: [SchedulerOccurrenceDialog](
|
|
62
|
+
* The default Component is: [SchedulerOccurrenceDialog](slug:api_scheduler_scheduleroccurrencedialogprops).
|
|
63
63
|
*/
|
|
64
64
|
occurrenceDialog?: any;
|
|
65
65
|
/**
|
|
@@ -9,13 +9,13 @@ import { PropType } from 'vue';
|
|
|
9
9
|
import { SchedulerTaskProps } from './SchedulerTask';
|
|
10
10
|
import { SchedulerTaskMouseEvent } from '../models/main';
|
|
11
11
|
/**
|
|
12
|
-
* Represents the props of the Kendo UI for Vue [SchedulerViewTask](
|
|
12
|
+
* Represents the props of the Kendo UI for Vue [SchedulerViewTask](slug:api_scheduler_schedulerviewtaskprops) component.
|
|
13
13
|
*/
|
|
14
14
|
export interface SchedulerViewTaskProps extends SchedulerTaskProps {
|
|
15
15
|
/**
|
|
16
16
|
* Overrides the default component responsible for visualizing a single task.
|
|
17
17
|
*
|
|
18
|
-
* The default Component is: [SchedulerTask](
|
|
18
|
+
* The default Component is: [SchedulerTask](slug:api_scheduler_schedulertaskprops).
|
|
19
19
|
*/
|
|
20
20
|
task?: any;
|
|
21
21
|
/** @hidden */
|
|
@@ -9,7 +9,7 @@ import { SchedulerViewProps, DateRange, SchedulerViewDateRangeArgs, EditableProp
|
|
|
9
9
|
import { DataAction } from '../../Scheduler';
|
|
10
10
|
import { PropType } from 'vue';
|
|
11
11
|
/**
|
|
12
|
-
* Represents the properties of the Kendo UI for Vue [AgendaView](
|
|
12
|
+
* Represents the properties of the Kendo UI for Vue [AgendaView](slug:api_scheduler_agendaviewprops) Component.
|
|
13
13
|
*/
|
|
14
14
|
export interface AgendaViewProps extends SchedulerViewProps {
|
|
15
15
|
/**
|
package/views/day/DayView.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ import { Day } from '@progress/kendo-date-math';
|
|
|
10
10
|
import { DataAction } from '../../Scheduler';
|
|
11
11
|
import { PropType } from 'vue';
|
|
12
12
|
/**
|
|
13
|
-
* Represents the properties of the [DayView](
|
|
13
|
+
* Represents the properties of the [DayView](slug:api_scheduler_dayviewprops) Component.
|
|
14
14
|
*/
|
|
15
15
|
export interface DayViewProps extends MultiDayViewProps {
|
|
16
16
|
}
|
|
@@ -133,6 +133,9 @@ export interface MultiDayViewProps extends SchedulerViewProps {
|
|
|
133
133
|
* Overrides the `resizeHint` of the event.
|
|
134
134
|
*/
|
|
135
135
|
resizeHint?: any;
|
|
136
|
+
/**
|
|
137
|
+
* Overrides the `form` prop of the Scheduler for the specified view only.
|
|
138
|
+
*/
|
|
136
139
|
form?: any;
|
|
137
140
|
/**
|
|
138
141
|
* If set to `false` the "current time" marker of the scheduler would not be displayed.
|
|
@@ -8,6 +8,9 @@
|
|
|
8
8
|
import { DataItem, DateRange, SchedulerViewProps, Item, Slot, SchedulerViewDateRangeArgs } from '../../models/main';
|
|
9
9
|
import { DataAction } from '../../Scheduler';
|
|
10
10
|
import { PropType } from 'vue';
|
|
11
|
+
/**
|
|
12
|
+
* Represents the props of the Kendo UI for Vue SchedulerMonthView component.
|
|
13
|
+
*/
|
|
11
14
|
export interface MonthViewProps extends SchedulerViewProps {
|
|
12
15
|
/**
|
|
13
16
|
* Sets the maximum number of `items` to be rendered in a single `slot`, before adding the `show-more` button.
|
|
@@ -67,6 +70,9 @@ export interface MonthViewProps extends SchedulerViewProps {
|
|
|
67
70
|
* Represents component based on the DateHeaderCellProps.
|
|
68
71
|
*/
|
|
69
72
|
dateHeaderCell?: any;
|
|
73
|
+
/**
|
|
74
|
+
* Overrides the `form` prop of the Scheduler for the specified view only.
|
|
75
|
+
*/
|
|
70
76
|
form?: any;
|
|
71
77
|
}
|
|
72
78
|
/** @hidden */
|
|
@@ -129,6 +129,9 @@ export interface MultiDayTimelineViewProps extends SchedulerViewProps {
|
|
|
129
129
|
* Overrides the `editSlot` prop of the Scheduler for the specified view only.
|
|
130
130
|
*/
|
|
131
131
|
editSlot?: any;
|
|
132
|
+
/**
|
|
133
|
+
* Overrides the `form` prop of the Scheduler for the specified view only.
|
|
134
|
+
*/
|
|
132
135
|
form?: any;
|
|
133
136
|
/**
|
|
134
137
|
* If set to `false` the "current time" marker of the scheduler would not be displayed.
|
|
@@ -10,7 +10,7 @@ import { Day } from '@progress/kendo-date-math';
|
|
|
10
10
|
import { DataAction } from '../../Scheduler';
|
|
11
11
|
import { PropType } from 'vue';
|
|
12
12
|
/**
|
|
13
|
-
* Represents the properties of the Kendo UI for Vue [TimelineView](
|
|
13
|
+
* Represents the properties of the Kendo UI for Vue [TimelineView](slug:api_scheduler_timelineviewprops) Component.
|
|
14
14
|
*/
|
|
15
15
|
export interface TimelineViewProps extends MultiDayTimelineViewProps {
|
|
16
16
|
}
|
package/views/week/WeekView.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ import { SchedulerViewDateRangeArgs, DateRange } from '../../models/main';
|
|
|
11
11
|
import { DataAction } from '../../Scheduler';
|
|
12
12
|
import { PropType } from 'vue';
|
|
13
13
|
/**
|
|
14
|
-
* Represents the properties of the Kendo UI for Vue [WeekView](
|
|
14
|
+
* Represents the properties of the Kendo UI for Vue [WeekView](slug:api_scheduler_weekviewprops) Component.
|
|
15
15
|
*/
|
|
16
16
|
export interface WeekViewProps extends MultiDayViewProps {
|
|
17
17
|
/**
|
|
@@ -10,6 +10,9 @@ import { Day } from '@progress/kendo-date-math';
|
|
|
10
10
|
import { DateRange, SchedulerViewDateRangeArgs } from '../../models/main';
|
|
11
11
|
import { DataAction } from '../../Scheduler';
|
|
12
12
|
import { PropType } from 'vue';
|
|
13
|
+
/**
|
|
14
|
+
* Represents the props of the Kendo UI for Vue SchedulerWorkWeekView component.
|
|
15
|
+
*/
|
|
13
16
|
export interface WorkWeekViewProps extends WeekViewProps {
|
|
14
17
|
}
|
|
15
18
|
/** @hidden */
|