@progress/kendo-angular-dateinputs 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/calendar/calendar.component.d.ts +40 -56
- package/calendar/calendar.module.d.ts +10 -21
- package/calendar/calendars.module.d.ts +10 -21
- package/calendar/localization/calendar-custom-messages.component.d.ts +9 -1
- package/calendar/localization/multiview-calendar-custom-messages.component.d.ts +9 -1
- package/calendar/models/orientation.d.ts +10 -1
- package/calendar/models/selection-range-end.type.d.ts +11 -1
- package/calendar/models/selection-range.interface.d.ts +18 -3
- package/calendar/models/selection.d.ts +19 -4
- package/calendar/models/type.d.ts +7 -3
- package/calendar/models/view.type.d.ts +12 -1
- package/calendar/multiview-calendar.component.d.ts +49 -40
- package/calendar/multiview-calendar.module.d.ts +1 -0
- package/calendar/templates/cell-template.directive.d.ts +16 -19
- package/calendar/templates/century-cell-template.directive.d.ts +15 -19
- package/calendar/templates/decade-cell-template.directive.d.ts +15 -19
- package/calendar/templates/footer-template.directive.d.ts +16 -17
- package/calendar/templates/header-template.directive.d.ts +19 -18
- package/calendar/templates/header-title-template.directive.d.ts +15 -18
- package/calendar/templates/month-cell-template.directive.d.ts +15 -17
- package/calendar/templates/navigation-item-template.directive.d.ts +15 -18
- package/calendar/templates/weeknumber-cell-template.directive.d.ts +15 -17
- package/calendar/templates/year-cell-template.directive.d.ts +15 -20
- package/codemods/utils.js +0 -3
- package/dateinput/dateinput.component.d.ts +50 -119
- package/dateinput/dateinput.module.d.ts +15 -2
- package/dateinput/localization/dateinput-custom-messages.component.d.ts +18 -1
- package/dateinput/models/format-placeholder.model.d.ts +15 -20
- package/dateinput/models/format-settings.model.d.ts +14 -4
- package/dateinput/models/incremental-steps.model.d.ts +16 -1
- package/datepicker/datepicker.component.d.ts +68 -127
- package/datepicker/datepicker.module.d.ts +11 -2
- package/datepicker/localization/datepicker-custom-messages.component.d.ts +11 -1
- package/daterange/auto-correct-on.type.d.ts +2 -1
- package/daterange/date-range-end-input.directive.d.ts +25 -24
- package/daterange/date-range-popup-template.directive.d.ts +13 -2
- package/daterange/date-range-popup.component.d.ts +83 -73
- package/daterange/date-range-selection.directive.d.ts +10 -9
- package/daterange/date-range-start-input.directive.d.ts +29 -27
- package/daterange/date-range.component.d.ts +4 -6
- package/daterange/date-range.service.d.ts +27 -27
- package/datetimepicker/datetimepicker.component.d.ts +91 -79
- package/datetimepicker/datetimepicker.module.d.ts +16 -2
- package/datetimepicker/localization/datetimepicker-custom-messages.component.d.ts +10 -1
- package/esm2022/calendar/calendar.component.mjs +40 -56
- package/esm2022/calendar/calendar.module.mjs +10 -21
- package/esm2022/calendar/calendars.module.mjs +10 -21
- package/esm2022/calendar/localization/calendar-custom-messages.component.mjs +9 -1
- package/esm2022/calendar/localization/multiview-calendar-custom-messages.component.mjs +9 -1
- package/esm2022/calendar/models/selection-range.interface.mjs +2 -0
- package/esm2022/calendar/models/selection.mjs +11 -0
- package/esm2022/calendar/multiview-calendar.component.mjs +49 -40
- package/esm2022/calendar/multiview-calendar.module.mjs +1 -0
- package/esm2022/calendar/templates/cell-template.directive.mjs +16 -19
- package/esm2022/calendar/templates/century-cell-template.directive.mjs +15 -19
- package/esm2022/calendar/templates/decade-cell-template.directive.mjs +15 -19
- package/esm2022/calendar/templates/footer-template.directive.mjs +16 -17
- package/esm2022/calendar/templates/header-template.directive.mjs +19 -18
- package/esm2022/calendar/templates/header-title-template.directive.mjs +15 -18
- package/esm2022/calendar/templates/month-cell-template.directive.mjs +15 -17
- package/esm2022/calendar/templates/navigation-item-template.directive.mjs +15 -18
- package/esm2022/calendar/templates/weeknumber-cell-template.directive.mjs +15 -17
- package/esm2022/calendar/templates/year-cell-template.directive.mjs +15 -20
- package/esm2022/dateinput/dateinput.component.mjs +57 -126
- package/esm2022/dateinput/dateinput.module.mjs +15 -2
- package/esm2022/dateinput/localization/dateinput-custom-messages.component.mjs +18 -1
- package/esm2022/datepicker/datepicker.component.mjs +71 -130
- package/esm2022/datepicker/datepicker.module.mjs +11 -2
- package/esm2022/datepicker/localization/datepicker-custom-messages.component.mjs +11 -1
- package/esm2022/daterange/date-range-end-input.directive.mjs +25 -24
- package/esm2022/daterange/date-range-popup-template.directive.mjs +13 -2
- package/esm2022/daterange/date-range-popup.component.mjs +83 -73
- package/esm2022/daterange/date-range-selection.directive.mjs +10 -9
- package/esm2022/daterange/date-range-start-input.directive.mjs +29 -27
- package/esm2022/daterange/date-range.component.mjs +4 -6
- package/esm2022/daterange/date-range.service.mjs +27 -27
- package/esm2022/datetimepicker/datetimepicker.component.mjs +94 -82
- package/esm2022/datetimepicker/datetimepicker.module.mjs +16 -2
- package/esm2022/datetimepicker/localization/datetimepicker-custom-messages.component.mjs +10 -1
- package/esm2022/package-metadata.mjs +2 -2
- package/esm2022/timepicker/localization/messages.mjs +14 -14
- package/esm2022/timepicker/localization/timepicker-custom-messages.component.mjs +12 -1
- package/esm2022/timepicker/timepicker.component.mjs +57 -119
- package/esm2022/timepicker/timepicker.module.mjs +13 -2
- package/esm2022/timepicker/timeselector.component.mjs +24 -40
- package/fesm2022/progress-kendo-angular-dateinputs.mjs +913 -1015
- package/package.json +13 -12
- package/popup-settings.model.d.ts +3 -10
- package/timepicker/localization/messages.d.ts +14 -14
- package/timepicker/localization/timepicker-custom-messages.component.d.ts +12 -1
- package/timepicker/timepicker.component.d.ts +53 -115
- package/timepicker/timepicker.module.d.ts +13 -2
- package/timepicker/timeselector.component.d.ts +24 -40
|
@@ -61,140 +61,161 @@ export declare class DateRangePopupComponent implements OnInit, OnDestroy {
|
|
|
61
61
|
*/
|
|
62
62
|
showCalendarHeader: boolean;
|
|
63
63
|
/**
|
|
64
|
-
*
|
|
65
|
-
*
|
|
66
|
-
* ([see example]({% slug dates_multiviewcalendar %}#toc-focused-dates)).
|
|
64
|
+
* Specifies the focused date of the MultiViewCalendar component.
|
|
65
|
+
* Defines which date receives focus when the component loads ([see example]({% slug dates_multiviewcalendar %}#toc-focused-dates)).
|
|
67
66
|
*
|
|
68
|
-
*
|
|
67
|
+
* If the MultiViewCalendar is out of the min or max range, it normalizes the defined `focusedDate`.
|
|
69
68
|
*/
|
|
70
69
|
focusedDate: Date;
|
|
71
70
|
/**
|
|
72
|
-
*
|
|
73
|
-
* ([see example]({% slug disabled_dates_multiviewcalendar %})).
|
|
71
|
+
* Specifies the dates in the MultiViewCalendar that you want to disable ([see example]({% slug disabled_dates_multiviewcalendar %})).
|
|
74
72
|
*/
|
|
75
73
|
disabledDates: ((date: Date) => boolean) | Date[] | Day[];
|
|
76
74
|
/**
|
|
77
|
-
*
|
|
78
|
-
* ([see example]({% slug viewoptions_multiviewcalendar %})).
|
|
75
|
+
* Specifies the initial view that the MultiViewCalendar displays when it loads ([see example]({% slug viewoptions_multiviewcalendar %})).
|
|
79
76
|
* By default, the active view is `month`.
|
|
80
77
|
*
|
|
81
|
-
*
|
|
78
|
+
* You have to set `activeView` within the `topView`-`bottomView` range.
|
|
79
|
+
*
|
|
80
|
+
* @default 'month
|
|
82
81
|
*/
|
|
83
82
|
activeView: CalendarView;
|
|
84
83
|
/**
|
|
85
|
-
*
|
|
86
|
-
*
|
|
84
|
+
* Specifies the lowest view level that users can navigate to ([see example](slug:viewdepth_multiviewcalendar)).
|
|
85
|
+
*
|
|
86
|
+
* @default 'month'
|
|
87
87
|
*/
|
|
88
88
|
bottomView: CalendarView;
|
|
89
89
|
/**
|
|
90
|
-
*
|
|
90
|
+
* Specifies the highest view level that users can navigate to ([see example](slug:viewdepth_multiviewcalendar)).
|
|
91
|
+
*
|
|
92
|
+
* @default 'century'
|
|
91
93
|
*/
|
|
92
94
|
topView: CalendarView;
|
|
93
95
|
/**
|
|
94
|
-
*
|
|
95
|
-
*
|
|
96
|
-
*
|
|
96
|
+
* Specifies the minimum date that users can select ([see example]({% slug dates_multiviewcalendar %}#toc-focused-dates)).
|
|
97
|
+
*
|
|
98
|
+
* @default '1900-01-01'
|
|
97
99
|
*/
|
|
98
100
|
min: Date;
|
|
99
101
|
/**
|
|
100
|
-
*
|
|
101
|
-
*
|
|
102
|
-
*
|
|
102
|
+
* Specifies the maximum date that users can select ([see example]({% slug dates_multiviewcalendar %}#toc-focused-dates)).
|
|
103
|
+
*
|
|
104
|
+
* @default '2099-12-31'
|
|
103
105
|
*/
|
|
104
106
|
max: Date;
|
|
105
107
|
/**
|
|
106
|
-
*
|
|
107
|
-
*
|
|
108
|
+
* Determines whether users can select dates in reverse order.
|
|
109
|
+
* When you set `allowReverse` to `true`, the component does not validate if the start date comes after the end date.
|
|
108
110
|
*
|
|
109
111
|
* @default false
|
|
110
112
|
*/
|
|
111
113
|
allowReverse: boolean;
|
|
112
114
|
/**
|
|
113
|
-
* Determines whether to
|
|
115
|
+
* Determines whether to animate transitions when users navigate between views.
|
|
116
|
+
*
|
|
114
117
|
* @default false
|
|
115
118
|
*/
|
|
116
119
|
animateNavigation: boolean;
|
|
117
120
|
/**
|
|
118
|
-
*
|
|
119
|
-
*
|
|
120
|
-
*
|
|
121
|
+
* Determines whether the MultiViewCalendar is interactive ([see example]({% slug disabled_multiviewcalendar %})).
|
|
122
|
+
* When you set `disabled` to `true`, users cannot interact with the component.
|
|
123
|
+
*
|
|
124
|
+
* @default false
|
|
121
125
|
*/
|
|
122
126
|
disabled: boolean;
|
|
123
127
|
/**
|
|
124
|
-
*
|
|
125
|
-
* defines the number of rendered months.
|
|
128
|
+
* Specifies the number of calendar views to display side by side.
|
|
126
129
|
*
|
|
127
130
|
* @default 2
|
|
128
131
|
*/
|
|
129
132
|
views: number;
|
|
130
133
|
/**
|
|
131
|
-
* Determines whether to display
|
|
132
|
-
*
|
|
134
|
+
* Determines whether to display week numbers in the `month` view ([see example]({% slug weeknumcolumn_multiviewcalendar %})).
|
|
135
|
+
*
|
|
136
|
+
* @default false
|
|
133
137
|
*/
|
|
134
138
|
weekNumber: boolean;
|
|
135
139
|
/**
|
|
136
|
-
* Controls the popup
|
|
137
|
-
*
|
|
140
|
+
* Controls the popup animations.
|
|
141
|
+
* When you set `animate` to `true`, the popup displays opening and closing animations.
|
|
138
142
|
* For more information about controlling the popup animations,
|
|
139
143
|
* refer to the article on [animations]({% slug animations_popup %}).
|
|
144
|
+
*
|
|
145
|
+
* @default true
|
|
140
146
|
*/
|
|
141
147
|
animate: boolean | PopupAnimation;
|
|
142
148
|
/**
|
|
143
|
-
* Specifies the element that
|
|
149
|
+
* Specifies the element that serves as an anchor for the popup.
|
|
150
|
+
* The popup opens next to this element.
|
|
144
151
|
* For more information, refer to the section on
|
|
145
152
|
* [aligning to specific components]({% slug alignmentpositioning_popup %}#toc-aligning-to-components).
|
|
146
153
|
*/
|
|
147
154
|
anchor: ElementRef;
|
|
148
155
|
/**
|
|
149
|
-
* Specifies the anchor
|
|
156
|
+
* Specifies the alignment point for the anchor element.
|
|
150
157
|
* For more information, refer to the section on
|
|
151
158
|
* [positioning]({% slug alignmentpositioning_popup %}#toc-positioning).
|
|
152
159
|
*/
|
|
153
160
|
anchorAlign: Align;
|
|
154
161
|
/**
|
|
155
|
-
* Determines whether to display a header for
|
|
162
|
+
* Determines whether to display a header for each view ([see example]({% slug viewheader_multiviewcalendar %})).
|
|
163
|
+
* For example, displays the month name in the month view.
|
|
156
164
|
*
|
|
157
165
|
* @default false
|
|
158
166
|
*/
|
|
159
167
|
showViewHeader: boolean;
|
|
160
168
|
/**
|
|
161
|
-
*
|
|
169
|
+
* Determines whether to display days from adjacent months in the current month view ([see example]({% slug viewoptions_multiviewcalendar %}#toc-displaying-other-month-days)).
|
|
170
|
+
*
|
|
162
171
|
* @default false
|
|
163
172
|
*/
|
|
164
173
|
showOtherMonthDays: boolean;
|
|
165
174
|
/**
|
|
166
|
-
*
|
|
175
|
+
* Specifies where to render the popup container.
|
|
176
|
+
* By default, the popup renders in the root component.
|
|
177
|
+
*
|
|
178
|
+
* @default 'root'
|
|
167
179
|
*/
|
|
168
180
|
appendTo: 'root' | 'component' | ViewContainerRef;
|
|
169
181
|
/**
|
|
170
|
-
* Configures the
|
|
182
|
+
* Configures how the popup behaves when it encounters viewport boundaries.
|
|
171
183
|
* For more information, refer to the article on
|
|
172
184
|
* [viewport boundary detection]({% slug viewportboundarydetection_popup %}).
|
|
185
|
+
*
|
|
186
|
+
* @default { horizontal: 'fit', vertical: 'flip' }
|
|
173
187
|
*/
|
|
174
188
|
collision: Collision;
|
|
175
189
|
/**
|
|
176
|
-
* Specifies the
|
|
190
|
+
* Specifies the alignment point for the popup element.
|
|
177
191
|
* For more information, refer to the section on
|
|
178
192
|
* [positioning]({% slug alignmentpositioning_popup %}#toc-positioning).
|
|
179
193
|
*/
|
|
180
194
|
popupAlign: Align;
|
|
181
195
|
/**
|
|
182
|
-
* Specifies the margin
|
|
183
|
-
*
|
|
196
|
+
* Specifies the margin around the popup in pixels.
|
|
197
|
+
* Creates empty space between the popup and its anchor element.
|
|
184
198
|
*/
|
|
185
199
|
margin: Margin;
|
|
186
200
|
/**
|
|
187
|
-
*
|
|
201
|
+
* Determines whether the component uses adaptive rendering for different screen sizes.
|
|
202
|
+
* By default, adaptive rendering is disabled.
|
|
203
|
+
*
|
|
204
|
+
* @default 'none'
|
|
188
205
|
*/
|
|
189
206
|
adaptiveMode: AdaptiveMode;
|
|
190
207
|
/**
|
|
191
|
-
*
|
|
192
|
-
*
|
|
208
|
+
* Specifies the title text for the input element and the header of the action sheet.
|
|
209
|
+
* Applies only when [`AdaptiveMode` is set to `auto`](slug:api_dateinputs_adaptivemode).
|
|
210
|
+
*
|
|
211
|
+
* @default ""
|
|
193
212
|
*/
|
|
194
213
|
adaptiveTitle: string;
|
|
195
214
|
/**
|
|
196
|
-
*
|
|
197
|
-
*
|
|
215
|
+
* Specifies the subtitle text displayed in the header of the action sheet.
|
|
216
|
+
* Applies only when [`AdaptiveMode` is set to `auto`](slug:api_dateinputs_adaptivemode).
|
|
217
|
+
*
|
|
218
|
+
* @default ""
|
|
198
219
|
*/
|
|
199
220
|
adaptiveSubtitle: string;
|
|
200
221
|
/**
|
|
@@ -202,52 +223,41 @@ export declare class DateRangePopupComponent implements OnInit, OnDestroy {
|
|
|
202
223
|
*
|
|
203
224
|
* TODO: Make visible when the Infinite Calendar is fixed to set properly the size option.
|
|
204
225
|
* Sets the size of the component.
|
|
205
|
-
*
|
|
206
|
-
* The possible values are:
|
|
207
|
-
* * `small`
|
|
208
|
-
* * `medium` (Default)
|
|
209
|
-
* * `large`
|
|
210
|
-
* * `none`
|
|
211
|
-
*
|
|
226
|
+
* @default 'medium'
|
|
212
227
|
*/
|
|
213
228
|
size: DateInputSize;
|
|
214
229
|
/**
|
|
215
|
-
* Fires
|
|
216
|
-
*
|
|
217
|
-
* This event is preventable. If you cancel the event, the popup will remain closed.
|
|
230
|
+
* Fires when the popup is about to open ([see example](slug:popup_daterange#toc-events)).
|
|
231
|
+
* You can prevent this event to keep the popup closed.
|
|
218
232
|
*/
|
|
219
233
|
open: EventEmitter<PreventableEvent>;
|
|
220
234
|
/**
|
|
221
|
-
* Fires
|
|
222
|
-
*
|
|
223
|
-
* This event is preventable. If you cancel the event, the popup will remain open.
|
|
235
|
+
* Fires when the popup is about to close ([see example](slug:popup_daterange#toc-events)).
|
|
236
|
+
* You can prevent this event to keep the popup open.
|
|
224
237
|
*/
|
|
225
238
|
close: EventEmitter<PreventableEvent>;
|
|
226
239
|
/**
|
|
227
|
-
* Fires
|
|
228
|
-
* ([see example](slug:popup_daterange#toc-events)).
|
|
240
|
+
* Fires when the calendar element loses focus ([see example](slug:popup_daterange#toc-events)).
|
|
229
241
|
*/
|
|
230
242
|
onBlur: EventEmitter<null>;
|
|
231
243
|
/**
|
|
232
|
-
* Fires
|
|
233
|
-
* ([see example](slug:popup_daterange#toc-events)).
|
|
244
|
+
* Fires when the calendar element receives focus ([see example](slug:popup_daterange#toc-events)).
|
|
234
245
|
*/
|
|
235
246
|
onFocus: EventEmitter<null>;
|
|
236
247
|
/**
|
|
237
|
-
* Fires
|
|
238
|
-
* ([see example](slug:popup_daterange#toc-events)).
|
|
248
|
+
* Fires when the popup closes due to an `ESC` keypress or when it leaves the viewport ([see example](slug:popup_daterange#toc-events)).
|
|
239
249
|
*/
|
|
240
250
|
cancel: EventEmitter<null>;
|
|
241
251
|
/**
|
|
242
|
-
*
|
|
252
|
+
* Gets the active calendar that displays in the popup.
|
|
243
253
|
*
|
|
244
|
-
*
|
|
254
|
+
* When the popup is closed, the property returns `null`.
|
|
245
255
|
*/
|
|
246
256
|
get calendar(): MultiViewCalendarComponent;
|
|
247
257
|
set calendar(calendar: MultiViewCalendarComponent);
|
|
248
258
|
/**
|
|
249
259
|
* Gets the active state of the component.
|
|
250
|
-
*
|
|
260
|
+
* Returns `true` when the opened calendar is active.
|
|
251
261
|
*/
|
|
252
262
|
get isActive(): boolean;
|
|
253
263
|
/**
|
|
@@ -304,25 +314,25 @@ export declare class DateRangePopupComponent implements OnInit, OnDestroy {
|
|
|
304
314
|
*/
|
|
305
315
|
onRangeSelectionChange(rangeSelection: any): void;
|
|
306
316
|
/**
|
|
307
|
-
*
|
|
317
|
+
* Opens the popup component and focuses the calendar.
|
|
308
318
|
*/
|
|
309
319
|
activate(): void;
|
|
310
320
|
/**
|
|
311
|
-
*
|
|
321
|
+
* Focuses the calendar if it is available.
|
|
312
322
|
*/
|
|
313
323
|
focus(): void;
|
|
314
324
|
/**
|
|
315
|
-
* Checks if a focused element
|
|
325
|
+
* Checks if a focused element is inside the popup.
|
|
316
326
|
*
|
|
317
|
-
* @
|
|
327
|
+
* @returns {boolean} Returns `true` if the focused element is inside the popup.
|
|
318
328
|
*/
|
|
319
329
|
hasActiveContent(): boolean;
|
|
320
330
|
/**
|
|
321
|
-
* Toggles the visibility of the popup or
|
|
322
|
-
*
|
|
331
|
+
* Toggles the visibility of the popup or action sheet.
|
|
332
|
+
* When you use the `toggle` method to show or hide the popup or action sheet,
|
|
323
333
|
* the `open` and `close` events do not fire.
|
|
324
334
|
*
|
|
325
|
-
* @param show The state of the popup.
|
|
335
|
+
* @param {boolean} show The state of the popup.
|
|
326
336
|
*/
|
|
327
337
|
toggle(show?: boolean): void;
|
|
328
338
|
/**
|
|
@@ -10,9 +10,9 @@ import { SelectionRangeEnd } from '../calendar/models/selection-range-end.type';
|
|
|
10
10
|
import { AutoCorrectOn } from './auto-correct-on.type';
|
|
11
11
|
import * as i0 from "@angular/core";
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* Manages the MultiViewCalendar range selection.
|
|
14
14
|
* This directive will be `deprecated` in a future version.
|
|
15
|
-
*
|
|
15
|
+
* Use the MultiViewCalendar [range selection]({% slug selection_multiviewcalendar %}#toc-range-selection) instead.
|
|
16
16
|
*/
|
|
17
17
|
export declare class DateRangeSelectionDirective implements OnInit {
|
|
18
18
|
private calendar;
|
|
@@ -21,15 +21,17 @@ export declare class DateRangeSelectionDirective implements OnInit {
|
|
|
21
21
|
private dateRangeService;
|
|
22
22
|
/**
|
|
23
23
|
* Specifies the auto-correction behavior. If the start date is greater than the end date,
|
|
24
|
-
* the directive
|
|
24
|
+
* the directive corrects the date range to a single date either on input change or on blur
|
|
25
25
|
* ([see example](slug:autocorrect_daterange#toc-calendar-selection-directive)).
|
|
26
26
|
*
|
|
27
|
-
* By default, the auto-correction
|
|
27
|
+
* By default, the auto-correction triggers on change.
|
|
28
28
|
* To disable this behavior, set the `autoCorrectOn` property to `none`.
|
|
29
|
+
*
|
|
30
|
+
* @default 'change'
|
|
29
31
|
*/
|
|
30
32
|
autoCorrectOn: AutoCorrectOn;
|
|
31
33
|
/**
|
|
32
|
-
* Gets or sets the selection range of the calendar. When a new range
|
|
34
|
+
* Gets or sets the selection range of the calendar. When you set a new range,
|
|
33
35
|
* the connected DateRangeService notifies all related parties.
|
|
34
36
|
*/
|
|
35
37
|
get selectionRange(): SelectionRange;
|
|
@@ -39,8 +41,7 @@ export declare class DateRangeSelectionDirective implements OnInit {
|
|
|
39
41
|
* user interaction. When a new active end is set, the connected DateRangeService notifies all related parties.
|
|
40
42
|
*/
|
|
41
43
|
/**
|
|
42
|
-
* Specifies which end of the selection range
|
|
43
|
-
* interaction. When a new active end is set, the wired DateRangeService notifies all related components. For
|
|
44
|
+
* Specifies which end of the selection range is marked as active. The active end gets modified when you interact with the component. When you set a new active end, the wired DateRangeService notifies all related components. For
|
|
44
45
|
* example, the start and end DateInput components.
|
|
45
46
|
*
|
|
46
47
|
* > If the selection range is undefined, the value is ignored.
|
|
@@ -53,12 +54,12 @@ export declare class DateRangeSelectionDirective implements OnInit {
|
|
|
53
54
|
*/
|
|
54
55
|
shouldSetRange: boolean;
|
|
55
56
|
/**
|
|
56
|
-
* Fires when the active range end
|
|
57
|
+
* Fires when the active range end changes. For more information, refer to
|
|
57
58
|
* the section on [events](slug:events_multiviewcalendar).
|
|
58
59
|
*/
|
|
59
60
|
activeRangeEndChange: EventEmitter<SelectionRangeEnd>;
|
|
60
61
|
/**
|
|
61
|
-
* Fires when the selection range
|
|
62
|
+
* Fires when the selection range changes. For more information, refer to
|
|
62
63
|
* the section on [events](slug:events_multiviewcalendar).
|
|
63
64
|
*/
|
|
64
65
|
selectionRangeChange: EventEmitter<SelectionRange>;
|
|
@@ -10,46 +10,48 @@ import { DateRangeService } from './date-range.service';
|
|
|
10
10
|
import { SelectionRange } from '../calendar/models/selection-range.interface';
|
|
11
11
|
import * as i0 from "@angular/core";
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* Represents a directive that manages the start selection range for date range inputs.
|
|
14
14
|
*
|
|
15
|
-
*
|
|
15
|
+
* You can use the DateRangeStartInputDirective only with a DateInput component.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```typescript
|
|
19
|
+
* @Component({
|
|
20
|
+
* selector: 'my-app',
|
|
21
|
+
* template: `
|
|
22
|
+
* <kendo-daterange>
|
|
23
|
+
* <kendo-dateinput kendoDateRangeStartInput [(value)]="startDate"></kendo-dateinput>
|
|
24
|
+
* <kendo-dateinput kendoDateRangeEndInput [(value)]="endDate"></kendo-dateinput>
|
|
25
|
+
* </kendo-daterange>
|
|
26
|
+
* `
|
|
27
|
+
* })
|
|
28
|
+
* export class AppComponent {
|
|
29
|
+
* public startDate: Date = new Date();
|
|
30
|
+
* public endDate: Date = new Date();
|
|
31
|
+
* }
|
|
32
|
+
* ```
|
|
33
|
+
*
|
|
34
|
+
* @remarks
|
|
35
|
+
* Applied to: {@link DateInputComponent}
|
|
16
36
|
*/
|
|
17
37
|
export declare class DateRangeStartInputDirective extends DateRangeInput implements OnInit, OnDestroy {
|
|
18
38
|
private rangeService;
|
|
19
39
|
private dateInput;
|
|
20
40
|
renderer: Renderer2;
|
|
21
41
|
/**
|
|
22
|
-
* Specifies the
|
|
23
|
-
* the
|
|
24
|
-
* ([see example](slug:autocorrect_daterange#toc-input-directives)).
|
|
42
|
+
* Specifies when the component automatically corrects invalid date ranges.
|
|
43
|
+
* When the start date is greater than the end date, the component fixes the range to a single date either on input change or on blur ([see example](slug:autocorrect_daterange#toc-input-directives)).
|
|
25
44
|
*
|
|
26
45
|
* By default, the component does not perform any auto-correction.
|
|
46
|
+
*
|
|
27
47
|
*/
|
|
28
48
|
autoCorrectOn: AutoCorrectOn;
|
|
29
49
|
/**
|
|
30
|
-
*
|
|
31
|
-
* When
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
* By default, the automatic navigation behavior on input focus is disabled.
|
|
50
|
+
* Determines how the calendar navigates when you focus on the input.
|
|
51
|
+
* When you set `navigateCalendarOnFocus` to `true`, the calendar moves to the value of the focused input.
|
|
52
|
+
* When you set it to `false`, the calendar shows the last selected date.
|
|
35
53
|
*
|
|
36
|
-
* @
|
|
37
|
-
* ```ts
|
|
38
|
-
* _@Component({
|
|
39
|
-
* selector: 'my-app',
|
|
40
|
-
* template: `
|
|
41
|
-
* <h5>Toggle input focus to see the calendar navigating between range ends.</h5>
|
|
42
|
-
* <kendo-daterange>
|
|
43
|
-
* <kendo-dateinput kendoDateRangeStartInput [navigateCalendarOnFocus]="true" [(value)]="start"></kendo-dateinput>
|
|
44
|
-
* <kendo-dateinput kendoDateRangeEndInput [navigateCalendarOnFocus]="true" [(value)]="end"></kendo-dateinput>
|
|
45
|
-
* </kendo-daterange>
|
|
46
|
-
* `
|
|
47
|
-
* })
|
|
48
|
-
* export class AppComponent {
|
|
49
|
-
* public start: Date = new Date(2018, 3, 10);
|
|
50
|
-
* public end: Date = new Date(2018, 10, 20);
|
|
51
|
-
* }
|
|
52
|
-
* ```
|
|
54
|
+
* @default false
|
|
53
55
|
*/
|
|
54
56
|
navigateCalendarOnFocus: boolean;
|
|
55
57
|
constructor(rangeService: DateRangeService, dateInput: DateInputComponent, element: ElementRef, renderer: Renderer2, zone: NgZone);
|
|
@@ -24,6 +24,9 @@ import * as i0 from "@angular/core";
|
|
|
24
24
|
* public dateRange: any = { start: null, end: null };
|
|
25
25
|
* }
|
|
26
26
|
* ```
|
|
27
|
+
*
|
|
28
|
+
* @remarks
|
|
29
|
+
* Supported children components are: {@link DateRangePopupComponent}, {@link DateRangePopupCustomMessagesComponent}, {@link DateInputComponent}.
|
|
27
30
|
*/
|
|
28
31
|
export declare class DateRangeComponent implements AfterContentInit, OnDestroy {
|
|
29
32
|
private dateRangeService;
|
|
@@ -33,12 +36,7 @@ export declare class DateRangeComponent implements AfterContentInit, OnDestroy {
|
|
|
33
36
|
* TODO: Make visible when the Infinite Calendar is fixed to set properly the size option.
|
|
34
37
|
* Sets the size of the component.
|
|
35
38
|
*
|
|
36
|
-
*
|
|
37
|
-
* * `small`
|
|
38
|
-
* * `medium` (Default)
|
|
39
|
-
* * `large`
|
|
40
|
-
* * `none`
|
|
41
|
-
*
|
|
39
|
+
* @default 'medium'
|
|
42
40
|
*/
|
|
43
41
|
size: DateInputSize;
|
|
44
42
|
/**
|
|
@@ -10,35 +10,35 @@ import { SelectionRangeEnd } from '../calendar/models/selection-range-end.type';
|
|
|
10
10
|
import { SelectionRange } from '../calendar/models/selection-range.interface';
|
|
11
11
|
import * as i0 from "@angular/core";
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
14
|
-
* For example, the start and end
|
|
13
|
+
* Manages communication between components inside the DateRangeComponent.
|
|
14
|
+
* For example, handles interactions between the start and end DateInput components and the DateRangePopup component.
|
|
15
15
|
*/
|
|
16
16
|
export declare class DateRangeService {
|
|
17
17
|
private renderer?;
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* Notifies when the `activeRangeEnd` state changes.
|
|
20
20
|
*/
|
|
21
21
|
activeRangeEnd$: BehaviorSubject<SelectionRangeEnd>;
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* Notifies when the `focusedDate` changes.
|
|
24
24
|
*/
|
|
25
25
|
focusedDate$: BehaviorSubject<Date>;
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
28
|
-
* For example, when a new end `DateInput`
|
|
27
|
+
* Notifies when the end DateInput component changes.
|
|
28
|
+
* For example, when you attach a new end `DateInput` or detach the old one.
|
|
29
29
|
*/
|
|
30
30
|
endInput$: BehaviorSubject<DateInputComponent>;
|
|
31
31
|
/**
|
|
32
|
-
*
|
|
33
|
-
* For example, when a new start `DateInput`
|
|
32
|
+
* Notifies when the start DateInput component changes.
|
|
33
|
+
* For example, when you attach a new start `DateInput` or detach the old one.
|
|
34
34
|
*/
|
|
35
35
|
startInput$: BehaviorSubject<DateInputComponent>;
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
37
|
+
* Notifies when the `DateRangePopup` component changes.
|
|
38
38
|
*/
|
|
39
39
|
dateRangePopup$: BehaviorSubject<DateRangePopupComponent>;
|
|
40
40
|
/**
|
|
41
|
-
*
|
|
41
|
+
* Notifies when the selection range state changes.
|
|
42
42
|
*/
|
|
43
43
|
range$: BehaviorSubject<SelectionRange>;
|
|
44
44
|
/**
|
|
@@ -50,13 +50,13 @@ export declare class DateRangeService {
|
|
|
50
50
|
*/
|
|
51
51
|
get focusedDate(): Date;
|
|
52
52
|
/**
|
|
53
|
-
* Gets the
|
|
54
|
-
*
|
|
53
|
+
* Gets the minimum range value.
|
|
54
|
+
* Takes the `min` value from the start DateInput component or the `min` value of the calendar.
|
|
55
55
|
*/
|
|
56
56
|
get min(): Date;
|
|
57
57
|
/**
|
|
58
|
-
* Gets the
|
|
59
|
-
*
|
|
58
|
+
* Gets the maximum range value.
|
|
59
|
+
* Takes the `max` value from the end DateInput component or the `max` value of the calendar.
|
|
60
60
|
*/
|
|
61
61
|
get max(): Date;
|
|
62
62
|
/**
|
|
@@ -76,8 +76,8 @@ export declare class DateRangeService {
|
|
|
76
76
|
/** @hidden */
|
|
77
77
|
constructor(renderer?: Renderer2);
|
|
78
78
|
/**
|
|
79
|
-
*
|
|
80
|
-
*
|
|
79
|
+
* Opens the registered DateRangePopup component.
|
|
80
|
+
* Opens the popup and focuses the calendar.
|
|
81
81
|
*/
|
|
82
82
|
activatePopup(): void;
|
|
83
83
|
/**
|
|
@@ -97,39 +97,39 @@ export declare class DateRangeService {
|
|
|
97
97
|
*/
|
|
98
98
|
cancelPopup(): void;
|
|
99
99
|
/**
|
|
100
|
-
* Completes all observables to
|
|
101
|
-
*
|
|
100
|
+
* Completes all observables to prevent memory leaks.
|
|
101
|
+
* Call this method when you destroy a component that uses the service.
|
|
102
102
|
*/
|
|
103
103
|
destroy(): void;
|
|
104
104
|
/**
|
|
105
|
-
*
|
|
106
|
-
* For example,
|
|
105
|
+
* Checks if any component inside the DateRangeComponent is active.
|
|
106
|
+
* For example, detects an open popup or a focused DateInput component.
|
|
107
107
|
*
|
|
108
|
-
* @returns `true` if an active component is present.
|
|
108
|
+
* @returns {boolean} Returns `true` if an active component is present.
|
|
109
109
|
*/
|
|
110
110
|
hasActiveComponent(): boolean;
|
|
111
111
|
/**
|
|
112
|
-
* Registers a new start
|
|
112
|
+
* Registers a new start DateInput component and notifies all `startInput$` listeners.
|
|
113
113
|
*/
|
|
114
114
|
registerStartInput(startInput: DateInputComponent): void;
|
|
115
115
|
/**
|
|
116
|
-
* Registers a new end `DateInput` component
|
|
116
|
+
* Registers a new end `DateInput` component and notifies all `endInput$` listeners.
|
|
117
117
|
*/
|
|
118
118
|
registerEndInput(endInput: DateInputComponent): void;
|
|
119
119
|
/**
|
|
120
|
-
* Registers a new `DateRangePopup` component
|
|
120
|
+
* Registers a new `DateRangePopup` component and notifies all `dateRangePopup$` listeners.
|
|
121
121
|
*/
|
|
122
122
|
registerPopup(dateRangePopup: DateRangePopupComponent): void;
|
|
123
123
|
/**
|
|
124
|
-
* Updates the `activeRangeEnd` value
|
|
124
|
+
* Updates the `activeRangeEnd` value and notifies all `activeRangeEnd$` listeners.
|
|
125
125
|
*/
|
|
126
126
|
setActiveRangeEnd(activeRange: SelectionRangeEnd): void;
|
|
127
127
|
/**
|
|
128
|
-
* Updates the focused date
|
|
128
|
+
* Updates the focused date and notifies all `focusedDate$` listeners.
|
|
129
129
|
*/
|
|
130
130
|
setFocusedDate(value: Date): void;
|
|
131
131
|
/**
|
|
132
|
-
* Updates the selection range
|
|
132
|
+
* Updates the selection range and notifies all `range$` listeners.
|
|
133
133
|
*/
|
|
134
134
|
setRange(range?: SelectionRange): void;
|
|
135
135
|
static ɵfac: i0.ɵɵFactoryDeclaration<DateRangeService, [{ optional: true; }]>;
|