@progress/kendo-angular-scheduler 19.1.2-develop.3 → 19.1.2-develop.5
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/data-binding.directive.d.ts +12 -3
- package/directives.d.ts +42 -2
- package/editing/edit-dialog-template.directive.d.ts +15 -2
- package/editing/recurrence/recurrence-editor.component.d.ts +29 -10
- package/editing/timezone-editor.component.d.ts +13 -3
- package/editing-directives/base-edit.service.d.ts +8 -11
- package/editing-directives/edit-service.interface.d.ts +22 -24
- package/editing-directives/reactive-editing.directive.d.ts +15 -2
- package/esm2022/data-binding.directive.mjs +12 -3
- package/esm2022/directives.mjs +42 -2
- package/esm2022/editing/edit-dialog-template.directive.mjs +15 -2
- package/esm2022/editing/recurrence/recurrence-editor.component.mjs +29 -10
- package/esm2022/editing/timezone-editor.component.mjs +13 -3
- package/esm2022/editing-directives/base-edit.service.mjs +8 -11
- package/esm2022/editing-directives/reactive-editing.directive.mjs +15 -2
- package/esm2022/events/add-event.mjs +3 -3
- package/esm2022/events/cancel-event.mjs +2 -2
- package/esm2022/events/create-event.mjs +6 -6
- package/esm2022/events/date-change-event.mjs +4 -4
- package/esm2022/events/drag-end-event.mjs +8 -8
- package/esm2022/events/drag-event.mjs +8 -8
- package/esm2022/events/drag-start-event.mjs +4 -4
- package/esm2022/events/edit-event.mjs +4 -4
- package/esm2022/events/event-click-event.mjs +5 -5
- package/esm2022/events/event-keydown-event.mjs +4 -4
- package/esm2022/events/navigate-event.mjs +3 -3
- package/esm2022/events/remove-event.mjs +4 -4
- package/esm2022/events/resize-end-event.mjs +6 -6
- package/esm2022/events/resize-event.mjs +8 -8
- package/esm2022/events/resize-start-event.mjs +4 -4
- package/esm2022/events/save-event.mjs +3 -3
- package/esm2022/events/slot-click-event.mjs +7 -7
- package/esm2022/events/slot-drag-end-event.mjs +1 -1
- package/esm2022/events/slot-drag-event.mjs +7 -7
- package/esm2022/events/slot-drag-start-event.mjs +8 -7
- package/esm2022/localization/custom-messages.component.mjs +14 -1
- package/esm2022/localization/messages.mjs +98 -98
- package/esm2022/package-metadata.mjs +2 -2
- package/esm2022/pdf/pdf-command.directive.mjs +11 -11
- package/esm2022/pdf/pdf-export-event.mjs +1 -1
- package/esm2022/pdf/pdf.component.mjs +19 -8
- package/esm2022/pdf/pdf.module.mjs +7 -8
- package/esm2022/scheduler.component.mjs +62 -62
- package/esm2022/scheduler.module.mjs +6 -7
- package/esm2022/toolbar/navigation.component.mjs +16 -7
- package/esm2022/toolbar/toolbar-template.directive.mjs +18 -10
- package/esm2022/toolbar/toolbar.service.mjs +3 -4
- package/esm2022/toolbar/view-selector.component.mjs +14 -8
- package/esm2022/types/crud-operation.enum.mjs +3 -3
- package/esm2022/types/edit-mode.enum.mjs +2 -2
- package/esm2022/types/scheduler-view.mjs +1 -1
- package/esm2022/views/agenda/agenda-view.component.mjs +15 -11
- package/esm2022/views/common/slot-selectable.directive.mjs +16 -4
- package/esm2022/views/month/month-view.component.mjs +17 -16
- package/esm2022/views/month/multi-week-view.component.mjs +20 -18
- package/esm2022/views/multi-day/day-view.component.mjs +12 -7
- package/esm2022/views/multi-day/multi-day-view.component.mjs +16 -11
- package/esm2022/views/multi-day/week-view.component.mjs +14 -11
- package/esm2022/views/multi-day/work-week-view.component.mjs +8 -1
- package/esm2022/views/scheduler-view.directive.mjs +13 -3
- package/esm2022/views/templates/agenda-date-template.directive.mjs +13 -3
- package/esm2022/views/templates/agenda-time-template.directive.mjs +13 -3
- package/esm2022/views/templates/all-day-event-template.directive.mjs +13 -3
- package/esm2022/views/templates/all-day-slot-template.directive.mjs +13 -3
- package/esm2022/views/templates/date-header-template.directive.mjs +14 -4
- package/esm2022/views/templates/event-template.directive.mjs +13 -3
- package/esm2022/views/templates/group-header-template.directive.mjs +14 -4
- package/esm2022/views/templates/major-time-header-template.directive.mjs +13 -3
- package/esm2022/views/templates/minor-time-header-template.directive.mjs +13 -3
- package/esm2022/views/templates/month-day-slot-template.directive.mjs +13 -3
- package/esm2022/views/templates/multi-week-day-slot-template.directive.mjs +12 -3
- package/esm2022/views/templates/time-slot-template.directive.mjs +14 -4
- package/esm2022/views/timeline/timeline-month-view.component.mjs +16 -11
- package/esm2022/views/timeline/timeline-view.component.mjs +16 -11
- package/esm2022/views/timeline/timeline-week-view.component.mjs +18 -14
- package/esm2022/views/view-context.service.mjs +6 -6
- package/esm2022/views/view-state.service.mjs +9 -9
- package/esm2022/views/year/year-view.component.mjs +12 -7
- package/events/add-event.d.ts +3 -3
- package/events/cancel-event.d.ts +2 -2
- package/events/create-event.d.ts +6 -6
- package/events/date-change-event.d.ts +4 -4
- package/events/drag-end-event.d.ts +8 -8
- package/events/drag-event.d.ts +8 -8
- package/events/drag-start-event.d.ts +4 -4
- package/events/edit-event.d.ts +4 -4
- package/events/event-click-event.d.ts +5 -5
- package/events/event-keydown-event.d.ts +4 -4
- package/events/navigate-event.d.ts +3 -3
- package/events/remove-event.d.ts +4 -4
- package/events/resize-end-event.d.ts +6 -6
- package/events/resize-event.d.ts +8 -8
- package/events/resize-start-event.d.ts +4 -4
- package/events/save-event.d.ts +3 -3
- package/events/slot-click-event.d.ts +7 -7
- package/events/slot-drag-end-event.d.ts +1 -1
- package/events/slot-drag-event.d.ts +7 -7
- package/events/slot-drag-start-event.d.ts +8 -7
- package/fesm2022/progress-kendo-angular-scheduler.mjs +876 -543
- package/localization/custom-messages.component.d.ts +14 -1
- package/localization/messages.d.ts +98 -98
- package/navigation/focus-position.interface.d.ts +2 -3
- package/package.json +15 -15
- package/pdf/pdf-command.directive.d.ts +11 -11
- package/pdf/pdf-export-event.d.ts +1 -1
- package/pdf/pdf.component.d.ts +19 -8
- package/pdf/pdf.module.d.ts +7 -8
- package/scheduler.component.d.ts +62 -62
- package/scheduler.module.d.ts +6 -7
- package/schematics/ngAdd/index.js +3 -3
- package/toolbar/navigation.component.d.ts +16 -7
- package/toolbar/toolbar-template.directive.d.ts +18 -10
- package/toolbar/toolbar.service.d.ts +3 -4
- package/toolbar/view-selector.component.d.ts +14 -8
- package/types/actions.d.ts +51 -45
- package/types/create-form-group-args.interface.d.ts +1 -1
- package/types/crud-operation.enum.d.ts +3 -3
- package/types/current-time-settings.interface.d.ts +10 -8
- package/types/date-range.interface.d.ts +7 -11
- package/types/datepicker-options.interface.d.ts +33 -38
- package/types/edit-event-args.interface.d.ts +3 -4
- package/types/edit-mode.enum.d.ts +2 -2
- package/types/editable-settings.interface.d.ts +6 -6
- package/types/event-style-args.interface.d.ts +4 -4
- package/types/group.interface.d.ts +2 -2
- package/types/numeric-options.interface.d.ts +20 -16
- package/types/ongoing-events-settings.interface.d.ts +8 -6
- package/types/resource.interface.d.ts +8 -8
- package/types/scheduler-event.d.ts +13 -15
- package/types/scheduler-model-fields.interface.d.ts +34 -23
- package/types/scheduler-slot.interface.d.ts +7 -7
- package/types/scheduler-view.d.ts +3 -5
- package/types/slot-class-args.interface.d.ts +6 -6
- package/types/view-item.interface.d.ts +1 -1
- package/views/agenda/agenda-view.component.d.ts +15 -11
- package/views/common/slot-selectable.directive.d.ts +16 -4
- package/views/month/month-view.component.d.ts +17 -16
- package/views/month/multi-week-view.component.d.ts +20 -18
- package/views/multi-day/day-view.component.d.ts +12 -7
- package/views/multi-day/multi-day-view.component.d.ts +16 -11
- package/views/multi-day/week-view.component.d.ts +14 -11
- package/views/multi-day/work-week-view.component.d.ts +8 -1
- package/views/scheduler-view.directive.d.ts +13 -3
- package/views/templates/agenda-date-template.directive.d.ts +13 -3
- package/views/templates/agenda-time-template.directive.d.ts +13 -3
- package/views/templates/all-day-event-template.directive.d.ts +13 -3
- package/views/templates/all-day-slot-template.directive.d.ts +13 -3
- package/views/templates/date-header-template.directive.d.ts +14 -4
- package/views/templates/event-template.directive.d.ts +13 -3
- package/views/templates/group-header-template.directive.d.ts +14 -4
- package/views/templates/major-time-header-template.directive.d.ts +13 -3
- package/views/templates/minor-time-header-template.directive.d.ts +13 -3
- package/views/templates/month-day-slot-template.directive.d.ts +13 -3
- package/views/templates/multi-week-day-slot-template.directive.d.ts +12 -3
- package/views/templates/time-slot-template.directive.d.ts +14 -4
- package/views/timeline/timeline-month-view.component.d.ts +16 -11
- package/views/timeline/timeline-view.component.d.ts +16 -11
- package/views/timeline/timeline-week-view.component.d.ts +18 -14
- package/views/view-context.service.d.ts +6 -6
- package/views/view-state.service.d.ts +9 -9
- package/views/year/year-view.component.d.ts +12 -7
package/types/actions.d.ts
CHANGED
|
@@ -4,13 +4,14 @@
|
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { SchedulerView } from './scheduler-view';
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
8
|
-
* ([more information and examples](
|
|
7
|
+
* Represents an action that switches the current view to the next period
|
|
8
|
+
* ([more information and examples](slug:toolbar_scheduler)).
|
|
9
9
|
*
|
|
10
|
-
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```typescript
|
|
11
12
|
* const action = {
|
|
12
|
-
*
|
|
13
|
-
* }
|
|
13
|
+
* type: 'next'
|
|
14
|
+
* };
|
|
14
15
|
* ```
|
|
15
16
|
*/
|
|
16
17
|
export interface Next {
|
|
@@ -18,13 +19,14 @@ export interface Next {
|
|
|
18
19
|
type: 'next';
|
|
19
20
|
}
|
|
20
21
|
/**
|
|
21
|
-
*
|
|
22
|
-
* ([more information](
|
|
22
|
+
* Represents an action that switches the current view to the previous period
|
|
23
|
+
* ([more information](slug:api_scheduler_navigationaction)).
|
|
23
24
|
*
|
|
24
|
-
*
|
|
25
|
+
* @example
|
|
26
|
+
* ```typescript
|
|
25
27
|
* const action = {
|
|
26
|
-
*
|
|
27
|
-
* }
|
|
28
|
+
* type: 'prev'
|
|
29
|
+
* };
|
|
28
30
|
* ```
|
|
29
31
|
*/
|
|
30
32
|
export interface Prev {
|
|
@@ -32,13 +34,14 @@ export interface Prev {
|
|
|
32
34
|
type: 'prev';
|
|
33
35
|
}
|
|
34
36
|
/**
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
+
* Represents an action that switches the current view to today's date
|
|
38
|
+
* [more information](slug:api_scheduler_navigationaction).
|
|
37
39
|
*
|
|
38
|
-
*
|
|
40
|
+
* @example
|
|
41
|
+
* ```typescript
|
|
39
42
|
* const action = {
|
|
40
|
-
*
|
|
41
|
-
* }
|
|
43
|
+
* type: 'today'
|
|
44
|
+
* };
|
|
42
45
|
* ```
|
|
43
46
|
*/
|
|
44
47
|
export interface Today {
|
|
@@ -46,107 +49,110 @@ export interface Today {
|
|
|
46
49
|
type: 'today';
|
|
47
50
|
}
|
|
48
51
|
/**
|
|
49
|
-
*
|
|
50
|
-
* ([more information](
|
|
52
|
+
* Represents an action that switches the current view to a specific date
|
|
53
|
+
* ([more information](slug:api_scheduler_navigationaction)).
|
|
51
54
|
*
|
|
52
|
-
*
|
|
55
|
+
* @example
|
|
56
|
+
* ```typescript
|
|
53
57
|
* const action = {
|
|
54
|
-
*
|
|
55
|
-
*
|
|
56
|
-
* }
|
|
58
|
+
* type: 'select-date',
|
|
59
|
+
* date: new Date('2018-10-22')
|
|
60
|
+
* };
|
|
57
61
|
* ```
|
|
58
62
|
*/
|
|
59
63
|
export interface SelectDate {
|
|
60
64
|
/** @hidden */
|
|
61
65
|
type: 'select-date';
|
|
62
66
|
/**
|
|
63
|
-
*
|
|
67
|
+
* Defines the date selected by the Scheduler.
|
|
64
68
|
*/
|
|
65
69
|
date: Date;
|
|
66
70
|
}
|
|
67
71
|
/**
|
|
68
|
-
*
|
|
69
|
-
* ([more information and examples](
|
|
72
|
+
* Represents an action that changes the selected view to a specific instance
|
|
73
|
+
* ([more information and examples](slug:toolbar_scheduler)).
|
|
70
74
|
*
|
|
71
|
-
*
|
|
75
|
+
* @example
|
|
76
|
+
* ```typescript
|
|
72
77
|
* const action = {
|
|
73
|
-
*
|
|
74
|
-
*
|
|
75
|
-
* }
|
|
78
|
+
* type: 'view-change',
|
|
79
|
+
* view: schedulerView
|
|
80
|
+
* };
|
|
76
81
|
* ```
|
|
77
82
|
*/
|
|
78
83
|
export interface ViewChange {
|
|
79
84
|
/** @hidden */
|
|
80
85
|
type: 'view-change';
|
|
81
86
|
/**
|
|
82
|
-
*
|
|
87
|
+
* Defines the next view entry to display.
|
|
83
88
|
*/
|
|
84
89
|
view: SchedulerView;
|
|
85
90
|
}
|
|
86
91
|
/**
|
|
87
|
-
*
|
|
92
|
+
* Represents an action that displays the details for a specific date.
|
|
88
93
|
*
|
|
89
|
-
*
|
|
94
|
+
* @example
|
|
95
|
+
* ```typescript
|
|
90
96
|
* const action = {
|
|
91
|
-
*
|
|
92
|
-
*
|
|
93
|
-
*
|
|
94
|
-
* }
|
|
97
|
+
* type: 'show-date',
|
|
98
|
+
* view: schedulerView,
|
|
99
|
+
* date: new Date()
|
|
100
|
+
* };
|
|
95
101
|
* ```
|
|
96
102
|
*/
|
|
97
103
|
export interface ShowDate {
|
|
98
104
|
/** @hidden */
|
|
99
105
|
type: 'show-date';
|
|
100
106
|
/**
|
|
101
|
-
*
|
|
107
|
+
* Defines the view in which the date displays.
|
|
102
108
|
*/
|
|
103
109
|
view: SchedulerView;
|
|
104
110
|
/**
|
|
105
|
-
*
|
|
111
|
+
* Defines the new selected date.
|
|
106
112
|
*/
|
|
107
113
|
date: Date;
|
|
108
114
|
}
|
|
109
115
|
/**
|
|
110
|
-
*
|
|
116
|
+
* Represents an action that scrolls the view to a specific time.
|
|
111
117
|
*/
|
|
112
118
|
export interface ScrollTime {
|
|
113
119
|
/** @hidden */
|
|
114
120
|
type: 'scroll-time';
|
|
115
121
|
/**
|
|
116
|
-
*
|
|
122
|
+
* Defines the time to which the view scrolls.
|
|
117
123
|
*/
|
|
118
124
|
time: string | Date;
|
|
119
125
|
}
|
|
120
126
|
/**
|
|
121
|
-
*
|
|
127
|
+
* Represents an action that focuses the previous event.
|
|
122
128
|
*/
|
|
123
129
|
export interface FocusPrev {
|
|
124
130
|
/** @hidden */
|
|
125
131
|
type: 'focus-prev';
|
|
126
132
|
}
|
|
127
133
|
/**
|
|
128
|
-
*
|
|
134
|
+
* Represents an action that focuses the next event.
|
|
129
135
|
*/
|
|
130
136
|
export interface FocusNext {
|
|
131
137
|
/** @hidden */
|
|
132
138
|
type: 'focus-next';
|
|
133
139
|
}
|
|
134
140
|
/**
|
|
135
|
-
*
|
|
141
|
+
* Represents an action that toggles the **Show Business Hours** option.
|
|
136
142
|
*/
|
|
137
143
|
export interface ToggleBusinessHours {
|
|
138
144
|
/** @hidden */
|
|
139
145
|
type: 'toggle-business-hours';
|
|
140
146
|
}
|
|
141
147
|
/**
|
|
142
|
-
*
|
|
148
|
+
* Represents an action that focuses the first toolbar tool.
|
|
143
149
|
*/
|
|
144
150
|
export interface FocusToolbar {
|
|
145
151
|
/** @hidden */
|
|
146
152
|
type: 'focus-toolbar';
|
|
147
153
|
}
|
|
148
154
|
/**
|
|
149
|
-
*
|
|
150
|
-
* ([more information and examples](
|
|
155
|
+
* Represents a discriminated union of supported navigation actions
|
|
156
|
+
* ([more information and examples](slug:toolbar_scheduler)).
|
|
151
157
|
*/
|
|
152
158
|
export type NavigationAction = Next | Prev | SelectDate | Today | ViewChange | ShowDate | ScrollTime | FocusPrev | FocusNext | ToggleBusinessHours | FocusToolbar;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import { EditEventBase } from '../events/edit-event-base';
|
|
6
6
|
import { EditMode } from './edit-mode.enum';
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Defines the argument for the `createFormGroup` function.
|
|
9
9
|
*/
|
|
10
10
|
export interface CreateFormGroupArgs extends EditEventBase {
|
|
11
11
|
/**
|
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Represents the selected CRUD operation when the user edits or removes recurring events.
|
|
7
7
|
*/
|
|
8
8
|
export declare enum CrudOperation {
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Indicates that the selected recurring event is edited.
|
|
11
11
|
*/
|
|
12
12
|
Edit = 0,
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* Indicates that the selected recurring event is removed.
|
|
15
15
|
*/
|
|
16
16
|
Remove = 1
|
|
17
17
|
}
|
|
@@ -3,23 +3,25 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Represents the current time marker settings.
|
|
7
7
|
*/
|
|
8
8
|
export interface CurrentTimeSettings {
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
11
|
-
*
|
|
10
|
+
* Sets the update interval in milliseconds for the current time marker.
|
|
11
|
+
*
|
|
12
|
+
* @default 60000
|
|
12
13
|
*/
|
|
13
14
|
updateInterval?: number;
|
|
14
15
|
/**
|
|
15
|
-
* Specifies if the local timezone
|
|
16
|
-
*
|
|
17
|
-
*
|
|
16
|
+
* Specifies if the local timezone is used. If `false`, the Scheduler uses its own timezone.
|
|
17
|
+
*
|
|
18
|
+
* @default true
|
|
18
19
|
*/
|
|
19
20
|
localTimezone?: boolean;
|
|
20
21
|
/**
|
|
21
|
-
* Specifies if the current time marker
|
|
22
|
-
*
|
|
22
|
+
* Specifies if the current time marker is displayed.
|
|
23
|
+
*
|
|
24
|
+
* @default true
|
|
23
25
|
*/
|
|
24
26
|
enabled?: boolean;
|
|
25
27
|
}
|
|
@@ -3,30 +3,26 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Describes the date range of a Scheduler view.
|
|
7
7
|
*
|
|
8
|
-
* The interval includes the start date and all dates
|
|
9
|
-
*
|
|
10
|
-
* Depending on the size of the component, in its navigation bar
|
|
11
|
-
* the Scheduler will display either the `text` or `shortText` field.
|
|
8
|
+
* The interval includes the `start` date and all dates up to but not including the `end` date.
|
|
9
|
+
* The Scheduler displays either the `text` or `shortText` field in its navigation bar, depending on the component size.
|
|
12
10
|
*/
|
|
13
11
|
export interface DateRange {
|
|
14
12
|
/**
|
|
15
|
-
*
|
|
13
|
+
* Represents the start date of the range (inclusive).
|
|
16
14
|
*/
|
|
17
15
|
start: Date;
|
|
18
16
|
/**
|
|
19
|
-
*
|
|
17
|
+
* Represents the end date of the range (exclusive).
|
|
20
18
|
*/
|
|
21
19
|
end: Date;
|
|
22
20
|
/**
|
|
23
|
-
*
|
|
24
|
-
* `Monday, June 10, 2018 - Monday, June 17, 2018`.
|
|
21
|
+
* Defines the textual representation of the date range, for example, `Monday, June 10, 2025 - Monday, June 17, 2025`.
|
|
25
22
|
*/
|
|
26
23
|
text: string;
|
|
27
24
|
/**
|
|
28
|
-
*
|
|
29
|
-
* `6/10/2018 - 6/17/2019`.
|
|
25
|
+
* Defines the short textual representation of the date range, for example, `6/10/2025 - 6/17/2026`.
|
|
30
26
|
*/
|
|
31
27
|
shortText: string;
|
|
32
28
|
}
|
|
@@ -5,74 +5,73 @@
|
|
|
5
5
|
import { CalendarView, DateInputFormatPlaceholder, PopupSettings } from '@progress/kendo-angular-dateinputs';
|
|
6
6
|
import { Day } from '@progress/kendo-date-math';
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Represents the available configuration options for the DatePicker component used in the recurrence editor.
|
|
9
9
|
*/
|
|
10
10
|
export interface DatePickerOptions {
|
|
11
11
|
/**
|
|
12
|
-
* Defines the active view that the Calendar initially renders
|
|
13
|
-
* ([
|
|
14
|
-
*
|
|
12
|
+
* Defines the active view that the Calendar initially renders
|
|
13
|
+
* ([see example](slug:viewoptions_calendar#toc-active-view).
|
|
14
|
+
* Always set the `activeView` within the range defined by `topView` and `bottomView`.
|
|
15
15
|
*
|
|
16
|
-
*
|
|
16
|
+
* @default 'month'
|
|
17
17
|
*/
|
|
18
18
|
activeView?: CalendarView;
|
|
19
19
|
/**
|
|
20
|
-
* Defines the bottommost Calendar view to which the user can navigate
|
|
21
|
-
* ([
|
|
20
|
+
* Defines the bottommost Calendar view to which the user can navigate
|
|
21
|
+
* ([see example](slug:datepicker_calendar_options#toc-view-selection-depth)).
|
|
22
22
|
*/
|
|
23
23
|
bottomView?: CalendarView;
|
|
24
24
|
/**
|
|
25
25
|
* Determines whether the built-in validator for disabled
|
|
26
|
-
* date ranges is enforced when validating a form
|
|
27
|
-
* ([see example](
|
|
26
|
+
* date ranges is enforced when validating a form
|
|
27
|
+
* ([see example](slug:disabled_dates_datepicker#toc-using-a-function)).
|
|
28
28
|
*/
|
|
29
29
|
disabledDatesValidation?: boolean;
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* Sets the focused date of the Calendar component
|
|
32
32
|
* ([see example](slug:datepicker_calendar_options#toc-focused-dates)).
|
|
33
33
|
*/
|
|
34
34
|
focusedDate?: Date;
|
|
35
35
|
/**
|
|
36
|
-
*
|
|
37
|
-
* ([see example](
|
|
36
|
+
* Sets the date format used to display the input value
|
|
37
|
+
* ([see example](slug:formats_datepicker)).
|
|
38
38
|
*/
|
|
39
39
|
format?: string;
|
|
40
40
|
/**
|
|
41
|
-
* Defines the descriptions of the format sections in the input field
|
|
42
|
-
* ([
|
|
41
|
+
* Defines the descriptions of the format sections in the input field
|
|
42
|
+
* ([more information and examples](slug:placeholders_datepicker)).
|
|
43
43
|
*/
|
|
44
44
|
formatPlaceHolder?: DateInputFormatPlaceholder;
|
|
45
45
|
/**
|
|
46
|
-
*
|
|
47
|
-
* ([
|
|
46
|
+
* Sets the largest valid date
|
|
47
|
+
* ([see example](slug:dateranges_datepicker)).
|
|
48
48
|
*/
|
|
49
49
|
max?: Date;
|
|
50
50
|
/**
|
|
51
|
-
*
|
|
52
|
-
* ([
|
|
51
|
+
* Sets the smallest valid date
|
|
52
|
+
* ([see example](slug:dateranges_datepicker)).
|
|
53
53
|
*/
|
|
54
54
|
min?: Date;
|
|
55
55
|
/**
|
|
56
|
-
* Sets or gets the `navigation` property of the Calendar
|
|
57
|
-
*
|
|
58
|
-
* ([See example]({% slug sidebar_datepicker %})).
|
|
56
|
+
* Sets or gets the `navigation` property of the Calendar and determines if the navigation side-bar is displayed
|
|
57
|
+
* ([see example](slug:sidebar_datepicker)).
|
|
59
58
|
*/
|
|
60
59
|
navigation?: boolean;
|
|
61
60
|
/**
|
|
62
|
-
* Specifies the hint the DatePicker displays when its value is `null
|
|
63
|
-
* ([
|
|
61
|
+
* Specifies the hint the DatePicker displays when its value is `null`
|
|
62
|
+
* ([more information and examples](slug:placeholders_datepicker)).
|
|
64
63
|
*/
|
|
65
64
|
placeholder?: string;
|
|
66
65
|
/**
|
|
67
|
-
* Sets the read-only state of the DatePicker input field
|
|
68
|
-
* ([
|
|
66
|
+
* Sets the read-only state of the DatePicker input field
|
|
67
|
+
* ([see example](slug:readonly_datepicker#read-only-input)).
|
|
69
68
|
*
|
|
70
|
-
* If [`readonly`](
|
|
69
|
+
* If [`readonly`](slug:api_dateinputs_datepickercomponent#readonly) is `true`, the input appears in a read-only state, regardless of the `readOnlyInput` value.
|
|
71
70
|
*/
|
|
72
71
|
readOnlyInput?: boolean;
|
|
73
72
|
/**
|
|
74
|
-
* Sets the read-only state of the DatePicker
|
|
75
|
-
* ([
|
|
73
|
+
* Sets the read-only state of the DatePicker
|
|
74
|
+
* ([see example](slug:readonly_datepicker#toc-read-only-datepicker)).
|
|
76
75
|
*/
|
|
77
76
|
readonly?: boolean;
|
|
78
77
|
/**
|
|
@@ -80,26 +79,22 @@ export interface DatePickerOptions {
|
|
|
80
79
|
*/
|
|
81
80
|
title?: string;
|
|
82
81
|
/**
|
|
83
|
-
* Defines the topmost Calendar view to which the user can navigate
|
|
84
|
-
* ([
|
|
82
|
+
* Defines the topmost Calendar view to which the user can navigate
|
|
83
|
+
* ([see example](slug:viewdepth_calendar)).
|
|
85
84
|
*/
|
|
86
85
|
topView?: CalendarView;
|
|
87
86
|
/**
|
|
88
|
-
* Determines
|
|
89
|
-
* ([
|
|
87
|
+
* Determines if the week number column is displayed in the `month` view of the Calendar
|
|
88
|
+
* ([see example](slug:datepicker_calendar_options#toc-week-number-column)).
|
|
90
89
|
*/
|
|
91
90
|
weekNumber?: boolean;
|
|
92
91
|
/**
|
|
93
|
-
* Sets the dates of the DatePicker that
|
|
94
|
-
* ([
|
|
92
|
+
* Sets the dates of the DatePicker that are disabled
|
|
93
|
+
* ([see example](slug:disabled_dates_datepicker)).
|
|
95
94
|
*/
|
|
96
95
|
disabledDates?: ((date: Date) => boolean) | Date[] | Day[];
|
|
97
96
|
/**
|
|
98
97
|
* Configures the popup options of the DatePicker.
|
|
99
|
-
*
|
|
100
|
-
* The available options are:
|
|
101
|
-
* - `animate: Boolean`—Controls the popup animation. By default, the open and close animations are enabled.
|
|
102
|
-
* - `popupClass: String`—Specifies a list of CSS classes that are used to style the popup.
|
|
103
98
|
*/
|
|
104
99
|
popupSettings?: PopupSettings;
|
|
105
100
|
}
|
|
@@ -5,16 +5,15 @@
|
|
|
5
5
|
import { FormGroup } from '@angular/forms';
|
|
6
6
|
import { EditMode } from '../types';
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Defines the options for the [`editEvent`](slug:api_scheduler_schedulercomponent#editevent) method of the Scheduler.
|
|
9
9
|
*/
|
|
10
10
|
export interface EditEventArgs {
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
13
|
-
* that describes the edit form.
|
|
12
|
+
* Provides the [`FormGroup`](https://angular.io/docs/ts/latest/api/forms/index/FormGroup-class.html) that describes the edit form.
|
|
14
13
|
*/
|
|
15
14
|
group?: FormGroup;
|
|
16
15
|
/**
|
|
17
|
-
*
|
|
16
|
+
* Specifies the selected edit mode of the event.
|
|
18
17
|
*/
|
|
19
18
|
mode?: EditMode;
|
|
20
19
|
}
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
7
|
-
* For non-recurring events,
|
|
6
|
+
* Represents the selected edit mode when you update or remove events.
|
|
7
|
+
* For non-recurring events, use `Event`.
|
|
8
8
|
*/
|
|
9
9
|
export declare enum EditMode {
|
|
10
10
|
/**
|
|
@@ -3,27 +3,27 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Represents the editable settings of the Scheduler.
|
|
7
7
|
*/
|
|
8
8
|
export interface EditableSettings {
|
|
9
9
|
/**
|
|
10
|
-
* Specifies if the
|
|
10
|
+
* Specifies if the user can remove events using a **Remove** icon.
|
|
11
11
|
*/
|
|
12
12
|
remove: boolean;
|
|
13
13
|
/**
|
|
14
|
-
* Specifies if the
|
|
14
|
+
* Specifies if the user can drag events.
|
|
15
15
|
*/
|
|
16
16
|
drag: boolean;
|
|
17
17
|
/**
|
|
18
|
-
* Specifies if the
|
|
18
|
+
* Specifies if the user can resize events.
|
|
19
19
|
*/
|
|
20
20
|
resize: boolean;
|
|
21
21
|
/**
|
|
22
|
-
* Specifies if
|
|
22
|
+
* Specifies if the user can add new events on [`slotDblClick`](slug:api_scheduler_schedulercomponent#toc-slotdblclick) when using the editing directives.
|
|
23
23
|
*/
|
|
24
24
|
add: boolean;
|
|
25
25
|
/**
|
|
26
|
-
* Specifies if the
|
|
26
|
+
* Specifies if the user can edit events on [`eventDblClick`](slug:api_scheduler_schedulercomponent#toc-eventdblclick) when using the editing directives.
|
|
27
27
|
*/
|
|
28
28
|
edit: boolean;
|
|
29
29
|
}
|
|
@@ -3,19 +3,19 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Represents the arguments for the `eventStyles` and `eventClass` functions.
|
|
7
7
|
*/
|
|
8
8
|
export interface EventStyleArgs {
|
|
9
9
|
/**
|
|
10
|
-
* Specifies if the event is an all-day event.
|
|
10
|
+
* Specifies if the event is an all-day event. Applies to **Day** and **Week** views.
|
|
11
11
|
*/
|
|
12
12
|
isAllDay?: boolean;
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* Provides the event resources.
|
|
15
15
|
*/
|
|
16
16
|
resources?: any[];
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
18
|
+
* Provides the event.
|
|
19
19
|
*/
|
|
20
20
|
event?: any;
|
|
21
21
|
}
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Represents an interface that describes the Scheduler groups.
|
|
7
7
|
*/
|
|
8
8
|
export interface Group {
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Defines the array of resource names to group.
|
|
11
11
|
*/
|
|
12
12
|
resources: string[];
|
|
13
13
|
/**
|
|
@@ -4,40 +4,43 @@
|
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { NumberFormatOptions } from '@progress/kendo-angular-intl';
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Represents the available configuration options for the NumericTextBox components used in the recurrence editor.
|
|
8
8
|
*/
|
|
9
9
|
export interface NumericTextBoxOptions {
|
|
10
10
|
/**
|
|
11
|
-
* Specifies
|
|
12
|
-
*
|
|
11
|
+
* Specifies if the value is auto-corrected based on the minimum and maximum values
|
|
12
|
+
* [see example](slug:precision_numerictextbox).
|
|
13
13
|
*/
|
|
14
14
|
autoCorrect?: boolean;
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
17
|
-
*
|
|
16
|
+
* Sets the greatest valid value
|
|
17
|
+
* [see example](slug:precision_numerictextbox#toc-value-ranges).
|
|
18
18
|
*/
|
|
19
19
|
max?: number;
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
22
|
-
*
|
|
21
|
+
* Sets the smallest valid value
|
|
22
|
+
* [see example](slug:precision_numerictextbox#toc-value-ranges).
|
|
23
23
|
*/
|
|
24
24
|
min?: number;
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
26
|
+
* Specifies if the NumericTextBox is in a read-only state
|
|
27
|
+
* [see example](slug:readonly_numerictextbox).
|
|
27
28
|
*/
|
|
28
29
|
readonly?: boolean;
|
|
29
30
|
/**
|
|
30
|
-
*
|
|
31
|
+
* Specifies if the whole value is selected when the NumericTextBox is clicked.
|
|
32
|
+
*
|
|
33
|
+
* @default true
|
|
31
34
|
*/
|
|
32
35
|
selectOnFocus?: boolean;
|
|
33
36
|
/**
|
|
34
|
-
* Specifies
|
|
35
|
-
*
|
|
37
|
+
* Specifies if the **Up** and **Down** spin buttons are rendered
|
|
38
|
+
* [see example](slug:spinbuttons_numerictextbox).
|
|
36
39
|
*/
|
|
37
40
|
spinners?: boolean;
|
|
38
41
|
/**
|
|
39
|
-
*
|
|
40
|
-
*
|
|
42
|
+
* Sets the value used to increment or decrement the component value
|
|
43
|
+
* [see example](slug:predefinedsteps_numerictextbox).
|
|
41
44
|
*/
|
|
42
45
|
step?: number;
|
|
43
46
|
/**
|
|
@@ -45,9 +48,10 @@ export interface NumericTextBoxOptions {
|
|
|
45
48
|
*/
|
|
46
49
|
title?: string;
|
|
47
50
|
/**
|
|
48
|
-
*
|
|
49
|
-
*
|
|
50
|
-
*
|
|
51
|
+
* Sets the number format used when the NumericTextBox is not focused
|
|
52
|
+
* [see example](slug:formats_numerictextbox).
|
|
53
|
+
*
|
|
54
|
+
* If `format` is `null` or `undefined`, the default format is used.
|
|
51
55
|
*/
|
|
52
56
|
format: string | NumberFormatOptions | null | undefined;
|
|
53
57
|
}
|
|
@@ -3,21 +3,23 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Represents the settings for highlighting ongoing events.
|
|
7
7
|
*/
|
|
8
8
|
export interface OngoingEventsSettings {
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
11
|
-
*
|
|
10
|
+
* Sets the update interval in milliseconds for the ongoing events highlight.
|
|
11
|
+
*
|
|
12
|
+
* @default 60000
|
|
12
13
|
*/
|
|
13
14
|
updateInterval?: number;
|
|
14
15
|
/**
|
|
15
|
-
* Specifies if
|
|
16
|
-
*
|
|
16
|
+
* Specifies if ongoing events are highlighted.
|
|
17
|
+
*
|
|
18
|
+
* @default true
|
|
17
19
|
*/
|
|
18
20
|
enabled?: boolean;
|
|
19
21
|
/**
|
|
20
|
-
*
|
|
22
|
+
* Sets a custom CSS class for ongoing events.
|
|
21
23
|
*/
|
|
22
24
|
cssClass?: string;
|
|
23
25
|
}
|