@progress/kendo-angular-dateinputs 19.1.2-develop.2 → 19.1.2-develop.4
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 +37 -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 +46 -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/dateinput/dateinput.component.d.ts +43 -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 +65 -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 +22 -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 +26 -27
- package/daterange/date-range.component.d.ts +1 -6
- package/daterange/date-range.service.d.ts +27 -27
- package/datetimepicker/datetimepicker.component.d.ts +88 -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 +37 -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 +46 -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 +44 -120
- 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 +65 -127
- 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 +22 -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 +26 -27
- package/esm2022/daterange/date-range.component.mjs +1 -6
- package/esm2022/daterange/date-range.service.mjs +27 -27
- package/esm2022/datetimepicker/datetimepicker.component.mjs +88 -79
- 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 +54 -119
- package/esm2022/timepicker/timepicker.module.mjs +13 -2
- package/esm2022/timepicker/timeselector.component.mjs +24 -40
- package/fesm2022/progress-kendo-angular-dateinputs.mjs +870 -1003
- package/package.json +13 -12
- 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 +50 -115
- package/timepicker/timepicker.module.d.ts +13 -2
- package/timepicker/timeselector.component.d.ts +24 -40
|
@@ -37,7 +37,23 @@ import { WeekDaysFormat } from '../common/models/week-days-format';
|
|
|
37
37
|
import { AdaptiveSize, AdaptiveService } from '@progress/kendo-angular-utils';
|
|
38
38
|
import * as i0 from "@angular/core";
|
|
39
39
|
/**
|
|
40
|
-
* Represents the
|
|
40
|
+
* Represents the Kendo UI DatePicker component for Angular.
|
|
41
|
+
* Provides a user-friendly way to select dates with a calendar popup ([see example](slug:overview_datepicker)).
|
|
42
|
+
*
|
|
43
|
+
* @example
|
|
44
|
+
* ```ts
|
|
45
|
+
* @Component({
|
|
46
|
+
* selector: 'my-app',
|
|
47
|
+
* template: `
|
|
48
|
+
* <kendo-datepicker
|
|
49
|
+
* [value]="selectedDate"
|
|
50
|
+
* </kendo-datepicker>
|
|
51
|
+
* `
|
|
52
|
+
* })
|
|
53
|
+
* export class AppComponent {
|
|
54
|
+
* selectedDate = new Date();
|
|
55
|
+
* }
|
|
56
|
+
* ```
|
|
41
57
|
*/
|
|
42
58
|
export declare class DatePickerComponent extends MultiTabStop implements ControlValueAccessor, OnInit, AfterViewInit, OnChanges, OnDestroy, Validator {
|
|
43
59
|
zone: NgZone;
|
|
@@ -71,13 +87,14 @@ export declare class DatePickerComponent extends MultiTabStop implements Control
|
|
|
71
87
|
*/
|
|
72
88
|
set cellTemplateRef(template: CellTemplateDirective);
|
|
73
89
|
/**
|
|
74
|
-
*
|
|
75
|
-
*
|
|
90
|
+
* Renders a clear button when set to `true` after the input text or DatePicker value changes.
|
|
91
|
+
* Click this button to reset the component value to `null` and trigger the `valueChange` event.
|
|
76
92
|
* @default false
|
|
77
93
|
*/
|
|
78
94
|
clearButton: boolean;
|
|
79
95
|
/**
|
|
80
|
-
*
|
|
96
|
+
* Specifies the HTML attributes of the inner focusable input element.
|
|
97
|
+
* You cannot change attributes that are essential for certain component functionalities.
|
|
81
98
|
*/
|
|
82
99
|
inputAttributes: {
|
|
83
100
|
[key: string]: string;
|
|
@@ -147,7 +164,7 @@ export declare class DatePickerComponent extends MultiTabStop implements Control
|
|
|
147
164
|
*/
|
|
148
165
|
set footerTemplateRef(template: FooterTemplateDirective);
|
|
149
166
|
/**
|
|
150
|
-
*
|
|
167
|
+
* Controls the visibility of the Calendar footer.
|
|
151
168
|
* @default false
|
|
152
169
|
*/
|
|
153
170
|
footer: boolean;
|
|
@@ -160,62 +177,53 @@ export declare class DatePickerComponent extends MultiTabStop implements Control
|
|
|
160
177
|
*/
|
|
161
178
|
set navigationItemTemplateRef(template: NavigationItemTemplateDirective);
|
|
162
179
|
/**
|
|
163
|
-
*
|
|
180
|
+
* Specifies the format of the displayed Calendar week days' names.
|
|
164
181
|
* @default 'short'
|
|
165
182
|
*/
|
|
166
183
|
weekDaysFormat?: WeekDaysFormat;
|
|
167
184
|
/**
|
|
168
|
-
*
|
|
169
|
-
* The default
|
|
170
|
-
* - `infinite` - false
|
|
171
|
-
* - `classic` - true
|
|
185
|
+
* Shows the days that fall outside the current month in the Calendar ([see example]({% slug viewoptions_calendar %}#toc-displaying-other-month-days)).
|
|
186
|
+
* The default value is `false` for infinite Calendar type and `true` for classic Calendar type.
|
|
172
187
|
*/
|
|
173
188
|
showOtherMonthDays: boolean;
|
|
174
189
|
/**
|
|
175
|
-
*
|
|
176
|
-
* ([see example]({% slug viewoptions_calendar %}#toc-active-view)).
|
|
177
|
-
* By default, the active view is `month`.
|
|
190
|
+
* Specifies the active view that the Calendar initially renders ([see example]({% slug viewoptions_calendar %}#toc-active-view)).
|
|
178
191
|
*
|
|
179
|
-
*
|
|
192
|
+
* You have to set `activeView` within the `topView`-`bottomView` range.
|
|
193
|
+
* @default 'month'
|
|
180
194
|
*/
|
|
181
195
|
activeView: CalendarView;
|
|
182
196
|
/**
|
|
183
|
-
*
|
|
184
|
-
*
|
|
197
|
+
* Specifies the bottommost Calendar view to which you can navigate ([see example](slug:datepicker_calendar_options#toc-view-selection-depth)).
|
|
198
|
+
* @default 'month'
|
|
185
199
|
*/
|
|
186
200
|
bottomView: CalendarView;
|
|
187
201
|
/**
|
|
188
|
-
*
|
|
189
|
-
*
|
|
202
|
+
* Specifies the topmost Calendar view to which you can navigate ([see example](slug:datepicker_calendar_options#toc-view-selection-depth)).
|
|
203
|
+
* @default 'century'
|
|
190
204
|
*/
|
|
191
205
|
topView: CalendarView;
|
|
192
206
|
/**
|
|
193
207
|
* Specifies the Calendar type.
|
|
194
|
-
*
|
|
195
|
-
* The possible values are:
|
|
196
|
-
* - `infinite` (default)
|
|
197
|
-
* - `classic`
|
|
198
|
-
*
|
|
208
|
+
* @default 'infinite'
|
|
199
209
|
*/
|
|
200
210
|
calendarType: CalendarType;
|
|
201
211
|
/**
|
|
202
212
|
* Determines whether to enable animation when navigating to previous/next Calendar view.
|
|
203
213
|
* Applies to the [`classic`]({% slug api_dateinputs_datepickercomponent %}#toc-calendartype) Calendar only.
|
|
204
214
|
*
|
|
205
|
-
*
|
|
215
|
+
* This feature uses the [Web Animations API](https://developer.mozilla.org/en-US/docs/Web/API/Web_Animations_API). In order to run the animation in browsers that do not support it, you need the `web-animations-js` polyfill.
|
|
206
216
|
*
|
|
207
217
|
* @default false
|
|
208
218
|
*/
|
|
209
219
|
animateCalendarNavigation: boolean;
|
|
210
220
|
/**
|
|
211
|
-
*
|
|
212
|
-
* ([see example]({% slug disabled_datepicker %})).
|
|
221
|
+
* Specifies or gets the `disabled` property of the DatePicker and determines whether the component is active ([see example]({% slug disabled_datepicker %})).
|
|
213
222
|
* To learn how to disable the component in reactive forms, refer to the article on [Forms Support](slug:formssupport_datepicker#toc-managing-the-datepicker-disabled-state-in-reactive-forms).
|
|
214
223
|
*/
|
|
215
224
|
disabled: boolean;
|
|
216
225
|
/**
|
|
217
|
-
*
|
|
218
|
-
* ([see example]({% slug readonly_datepicker %}#toc-read-only-datepicker)).
|
|
226
|
+
* Specifies the read-only state of the DatePicker ([see example]({% slug readonly_datepicker %}#toc-read-only-datepicker)).
|
|
219
227
|
*
|
|
220
228
|
* @default false
|
|
221
229
|
*/
|
|
@@ -224,17 +232,16 @@ export declare class DatePickerComponent extends MultiTabStop implements Control
|
|
|
224
232
|
* Sets the read-only state of the DatePicker input field
|
|
225
233
|
* ([see example]({% slug readonly_datepicker %}#toc-read-only-input)).
|
|
226
234
|
*
|
|
227
|
-
*
|
|
235
|
+
* If you set the [`readonly`]({% slug api_dateinputs_datepickercomponent %}#toc-readonly) property value to `true`,
|
|
228
236
|
* the input will be rendered in a read-only state regardless of the `readOnlyInput` value.
|
|
229
237
|
*/
|
|
230
238
|
readOnlyInput: boolean;
|
|
231
239
|
/**
|
|
232
240
|
* Configures the popup options of the DatePicker.
|
|
233
241
|
*
|
|
234
|
-
* The available options are
|
|
235
|
-
*
|
|
236
|
-
*
|
|
237
|
-
* - `popupClass: String`—Specifies a list of CSS classes that are used to style the popup.
|
|
242
|
+
* The available options are animate which controls the popup animation and by default, the open and close animations are enabled.
|
|
243
|
+
* The appendTo option controls the popup container and by default, the popup will be appended to the root component.
|
|
244
|
+
* The popupClass option specifies a list of CSS classes that are used to style the popup.
|
|
238
245
|
*/
|
|
239
246
|
set popupSettings(settings: PopupSettings);
|
|
240
247
|
get popupSettings(): PopupSettings;
|
|
@@ -249,17 +256,18 @@ export declare class DatePickerComponent extends MultiTabStop implements Control
|
|
|
249
256
|
/**
|
|
250
257
|
* Specifies the smallest valid date
|
|
251
258
|
* ([see example]({% slug dateranges_datepicker %})).
|
|
252
|
-
*
|
|
259
|
+
* @default 1900-1-1
|
|
253
260
|
*/
|
|
254
261
|
min: Date;
|
|
255
262
|
/**
|
|
256
263
|
* Specifies the biggest valid date
|
|
257
264
|
* ([see example]({% slug dateranges_datepicker %})).
|
|
258
|
-
*
|
|
265
|
+
* @default 2099-12-31
|
|
259
266
|
*/
|
|
260
267
|
max: Date;
|
|
261
268
|
/**
|
|
262
269
|
* Determines whether the built-in validation for incomplete dates is to be enforced when a form is being validated.
|
|
270
|
+
* @default false
|
|
263
271
|
*/
|
|
264
272
|
incompleteDateValidation: boolean;
|
|
265
273
|
/**
|
|
@@ -299,13 +307,13 @@ export declare class DatePickerComponent extends MultiTabStop implements Control
|
|
|
299
307
|
/**
|
|
300
308
|
* Specifies the focused date of the Calendar component
|
|
301
309
|
* ([see example](slug:datepicker_calendar_options#toc-focused-dates)).
|
|
310
|
+
* @default null
|
|
302
311
|
*/
|
|
303
312
|
focusedDate: Date;
|
|
304
313
|
/**
|
|
305
314
|
* Specifies the value of the DatePicker component.
|
|
306
315
|
*
|
|
307
|
-
*
|
|
308
|
-
* [JavaScript `Date`](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Date) instance or `null`.
|
|
316
|
+
* The `value` has to be a valid [JavaScript `Date`](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Date) instance or `null`.
|
|
309
317
|
*/
|
|
310
318
|
set value(value: Date | null);
|
|
311
319
|
get value(): Date | null;
|
|
@@ -313,9 +321,8 @@ export declare class DatePickerComponent extends MultiTabStop implements Control
|
|
|
313
321
|
* Specifies the date format that is used to display the input value
|
|
314
322
|
* ([see example]({% slug formats_datepicker %})).
|
|
315
323
|
*
|
|
316
|
-
* Format value options
|
|
317
|
-
*
|
|
318
|
-
* - [`FormatSettings`]({% slug api_dateinputs_formatsettings %}) - To display different formats when the component is focused or blurred, provide a settings object with specified `inputFormat` and `displayFormat` values.
|
|
324
|
+
* Format value options include string to provide a single format that is used regardless whether the input is focused or blurred.
|
|
325
|
+
* FormatSettings can be used to display different formats when the component is focused or blurred by providing a settings object with specified inputFormat and displayFormat values.
|
|
319
326
|
*/
|
|
320
327
|
format: string | FormatSettings;
|
|
321
328
|
/**
|
|
@@ -324,69 +331,25 @@ export declare class DatePickerComponent extends MultiTabStop implements Control
|
|
|
324
331
|
*
|
|
325
332
|
* The default value is 68, indicating that typing any value less than 69
|
|
326
333
|
* will be assumed to be 20xx, while 69 and larger will be assumed to be 19xx.
|
|
334
|
+
* @default 68
|
|
327
335
|
*/
|
|
328
336
|
twoDigitYearMax: number;
|
|
329
337
|
/**
|
|
330
338
|
* Defines the descriptions of the format sections in the input field.
|
|
331
339
|
* ([more information and examples]({% slug placeholders_datepicker %})).
|
|
332
340
|
*
|
|
333
|
-
* @example
|
|
334
|
-
* ```ts
|
|
335
|
-
* _@Component({
|
|
336
|
-
* selector: 'my-app',
|
|
337
|
-
* template: `
|
|
338
|
-
* <div class="row example-wrapper" [style.min-height.px]="450">
|
|
339
|
-
* <div class="col-xs-12 col-md-6 example-col">
|
|
340
|
-
* <p>Full-length format description:</p>
|
|
341
|
-
* <kendo-datepicker formatPlaceholder="wide"></kendo-datepicker>
|
|
342
|
-
* </div>
|
|
343
|
-
*
|
|
344
|
-
* <div class="col-xs-12 col-md-6 example-col">
|
|
345
|
-
* <p>Narrow-length format description:</p>
|
|
346
|
-
* <kendo-datepicker formatPlaceholder="narrow"></kendo-datepicker>
|
|
347
|
-
* </div>
|
|
348
|
-
*
|
|
349
|
-
* <div class="col-xs-12 col-md-6 example-col">
|
|
350
|
-
* <p>Short-length format description:</p>
|
|
351
|
-
* <kendo-datepicker formatPlaceholder="short"></kendo-datepicker>
|
|
352
|
-
* </div>
|
|
353
|
-
*
|
|
354
|
-
* <div class="col-xs-12 col-md-6 example-col">
|
|
355
|
-
* <p>Display defined format:</p>
|
|
356
|
-
* <kendo-datepicker format="MM/dd/yyyy" formatPlaceholder="formatPattern"></kendo-datepicker>
|
|
357
|
-
* </div>
|
|
358
|
-
*
|
|
359
|
-
* <div class="col-xs-12 col-md-6 example-col">
|
|
360
|
-
* <p>Custom defined format descriptions</p>
|
|
361
|
-
* <kendo-datepicker format="MM/dd/yyyy"
|
|
362
|
-
* [formatPlaceholder]="{ year: 'y', month: 'M', day: 'd' }"
|
|
363
|
-
* ></kendo-datepicker>
|
|
364
|
-
* </div>
|
|
365
|
-
* </div>
|
|
366
|
-
* `
|
|
367
|
-
* })
|
|
368
|
-
* export class AppComponent { }
|
|
369
|
-
* ```
|
|
370
341
|
*/
|
|
371
342
|
formatPlaceholder: DateInputFormatPlaceholder;
|
|
372
343
|
/**
|
|
373
344
|
* Specifies the hint the DatePicker displays when its value is `null`.
|
|
374
345
|
* ([more information and exaples]({% slug placeholders_datepicker %})).
|
|
375
|
-
*
|
|
376
|
-
* @example
|
|
377
|
-
* ```ts
|
|
378
|
-
* _@Component({
|
|
379
|
-
* selector: 'my-app',
|
|
380
|
-
* template: `
|
|
381
|
-
* <kendo-datepicker placeholder="Enter birth date..."></kendo-datepicker>
|
|
382
|
-
* `
|
|
383
|
-
* })
|
|
384
|
-
* export class AppComponent { }
|
|
385
|
-
* ```
|
|
346
|
+
* @default null
|
|
386
347
|
*/
|
|
387
348
|
placeholder: string;
|
|
388
349
|
/**
|
|
389
|
-
* Sets
|
|
350
|
+
* Sets the `tabindex` of the DatePicker.
|
|
351
|
+
* This property is used to set the order in which the DatePicker will receive focus when navigating through the page using the Tab key.
|
|
352
|
+
* @default 0
|
|
390
353
|
*/
|
|
391
354
|
tabindex: number;
|
|
392
355
|
/**
|
|
@@ -403,11 +366,13 @@ export declare class DatePickerComponent extends MultiTabStop implements Control
|
|
|
403
366
|
/**
|
|
404
367
|
* Sets the title of the input element of the DatePicker and the title text rendered
|
|
405
368
|
* in the header of the popup(action sheet). Applicable only when [`AdaptiveMode` is set to `auto`](slug:api_dateinputs_adaptivemode).
|
|
369
|
+
* @default ""
|
|
406
370
|
*/
|
|
407
371
|
adaptiveTitle: string;
|
|
408
372
|
/**
|
|
409
373
|
* Sets the subtitle text rendered in the header of the popup(action sheet).
|
|
410
374
|
* Applicable only when [`AdaptiveMode` is set to `auto`](slug:api_dateinputs_adaptivemode).
|
|
375
|
+
* @default ""
|
|
411
376
|
*/
|
|
412
377
|
adaptiveSubtitle: string;
|
|
413
378
|
/**
|
|
@@ -420,52 +385,37 @@ export declare class DatePickerComponent extends MultiTabStop implements Control
|
|
|
420
385
|
* Determines whether the built-in validator for disabled
|
|
421
386
|
* date ranges is enforced when validating a form
|
|
422
387
|
* ([see example]( slug:disabled_dates_datepicker#toc-using-a-function)).
|
|
388
|
+
* @default true
|
|
423
389
|
*/
|
|
424
390
|
disabledDatesValidation: boolean;
|
|
425
391
|
/**
|
|
426
392
|
* Determines whether to display a week number column in the `month` view of the Calendar
|
|
427
393
|
* ([see example](slug:datepicker_calendar_options#toc-week-number-column)).
|
|
394
|
+
* @default false
|
|
428
395
|
*/
|
|
429
396
|
weekNumber: boolean;
|
|
430
397
|
/**
|
|
431
398
|
* Sets the size of the component.
|
|
432
|
-
*
|
|
433
|
-
* The possible values are:
|
|
434
|
-
* * `small`
|
|
435
|
-
* * `medium` (Default)
|
|
436
|
-
* * `large`
|
|
437
|
-
* * `none`
|
|
438
|
-
*
|
|
399
|
+
* @default 'medium'
|
|
439
400
|
*/
|
|
440
401
|
set size(size: DateInputSize);
|
|
441
402
|
get size(): DateInputSize;
|
|
442
403
|
/**
|
|
443
|
-
*
|
|
444
|
-
*
|
|
445
|
-
* The possible values are:
|
|
446
|
-
* * `small`
|
|
447
|
-
* * `medium` (Default)
|
|
448
|
-
* * `large`
|
|
449
|
-
* * `full`
|
|
450
|
-
* * `none`
|
|
451
|
-
*
|
|
404
|
+
* Specifies the border radius of the component.
|
|
405
|
+
* @default 'medium'
|
|
452
406
|
*/
|
|
453
407
|
set rounded(rounded: DateInputRounded);
|
|
454
408
|
get rounded(): DateInputRounded;
|
|
455
409
|
/**
|
|
456
|
-
*
|
|
457
|
-
*
|
|
458
|
-
* The possible values are:
|
|
459
|
-
* * `solid` (Default)
|
|
460
|
-
* * `flat`
|
|
461
|
-
* * `outline`
|
|
462
|
-
* * `none`
|
|
463
|
-
*
|
|
410
|
+
* Specifies the fillMode of the component.
|
|
411
|
+
* @default 'solid'
|
|
464
412
|
*/
|
|
465
413
|
set fillMode(fillMode: DateInputFillMode);
|
|
466
414
|
get fillMode(): DateInputFillMode;
|
|
467
415
|
/**
|
|
468
|
-
*
|
|
416
|
+
* Specifies whether to enable adaptive rendering. When enabled, the DatePicker automatically switches between a calendar popup on larger screens and an ActionSheet on mobile devices.
|
|
417
|
+
*
|
|
418
|
+
* @default 'none'
|
|
469
419
|
*/
|
|
470
420
|
adaptiveMode: AdaptiveMode;
|
|
471
421
|
/**
|
|
@@ -607,18 +557,6 @@ export declare class DatePickerComponent extends MultiTabStop implements Control
|
|
|
607
557
|
handleActionSheetClick(e: PointerEvent): void;
|
|
608
558
|
/**
|
|
609
559
|
* Focuses the DatePicker component.
|
|
610
|
-
*
|
|
611
|
-
* @example
|
|
612
|
-
* ```ts
|
|
613
|
-
* _@Component({
|
|
614
|
-
* selector: 'my-app',
|
|
615
|
-
* template: `
|
|
616
|
-
* <button (click)="datepicker.focus()">Focus date picker</button>
|
|
617
|
-
* <kendo-datepicker #datepicker></kendo-datepicker>
|
|
618
|
-
* `
|
|
619
|
-
* })
|
|
620
|
-
* export class AppComponent { }
|
|
621
|
-
* ```
|
|
622
560
|
*/
|
|
623
561
|
focus(): void;
|
|
624
562
|
/**
|
|
@@ -630,7 +568,7 @@ export declare class DatePickerComponent extends MultiTabStop implements Control
|
|
|
630
568
|
* If you use the `toggle` method to show or hide the popup or actionSheet,
|
|
631
569
|
* the `open` and `close` events do not fire.
|
|
632
570
|
*
|
|
633
|
-
* @param show
|
|
571
|
+
* @param show The state of the popup.
|
|
634
572
|
*/
|
|
635
573
|
toggle(show?: boolean): void;
|
|
636
574
|
/**
|
|
@@ -17,8 +17,17 @@ import * as i11 from "../calendar/templates/weeknumber-cell-template.directive";
|
|
|
17
17
|
import * as i12 from "../calendar/templates/year-cell-template.directive";
|
|
18
18
|
import * as i13 from "@progress/kendo-angular-common";
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
21
|
-
*
|
|
20
|
+
* Required for adding all DatePicker features in [NgModule-based](link:site.data.urls.angular['ngmoduleapi']) Angular applications.
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* ```typescript
|
|
24
|
+
* import { DatePickerModule } from '@progress/kendo-angular-dateinputs';
|
|
25
|
+
*
|
|
26
|
+
* @NgModule({
|
|
27
|
+
* imports: [DatePickerModule]
|
|
28
|
+
* })
|
|
29
|
+
* export class AppModule { }
|
|
30
|
+
* ```
|
|
22
31
|
*/
|
|
23
32
|
export declare class DatePickerModule {
|
|
24
33
|
static ɵfac: i0.ɵɵFactoryDeclaration<DatePickerModule, never>;
|
|
@@ -6,7 +6,17 @@ import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
|
6
6
|
import { DatePickerMessages } from './messages';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Allows you to override the default localization messages of the DatePicker component ([see example]({% slug globalization_dateinputs %}#toc-custom-messages)).
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```html
|
|
13
|
+
* <kendo-datepicker>
|
|
14
|
+
* <kendo-datepicker-messages
|
|
15
|
+
* today="Today"
|
|
16
|
+
* toggle="Open calendar">
|
|
17
|
+
* </kendo-datepicker-messages>
|
|
18
|
+
* </kendo-datepicker>
|
|
19
|
+
* ```
|
|
10
20
|
*/
|
|
11
21
|
export declare class DatePickerCustomMessagesComponent extends DatePickerMessages {
|
|
12
22
|
protected service: LocalizationService;
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Defines the auto-correction options for date range inputs.
|
|
7
|
+
* Use `blur` to correct on focus loss, `change` to correct on value change, or `none` to disable auto-correction.
|
|
7
8
|
*/
|
|
8
9
|
export type AutoCorrectOn = 'blur' | 'change' | 'none';
|
|
@@ -10,44 +10,42 @@ 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
|
+
* Manages the end date selection in a date range.
|
|
14
14
|
*
|
|
15
|
-
*
|
|
15
|
+
* You can use the `DateRangeEndInputDirective` 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
|
+
* ```
|
|
16
33
|
*/
|
|
17
34
|
export declare class DateRangeEndInputDirective extends DateRangeInput implements OnInit, OnDestroy {
|
|
18
35
|
private rangeService;
|
|
19
36
|
private dateInput;
|
|
20
37
|
/**
|
|
21
|
-
* Specifies the auto-correction behavior. If the start date is greater than the end date, the
|
|
22
|
-
* directive fixes the date range to a single date either on input change or on blur
|
|
23
|
-
* ([see example](slug:autocorrect_daterange#toc-input-directives)).
|
|
38
|
+
* Specifies the auto-correction behavior. If the start date is greater than the end date, the directive fixes the date range to a single date either on input change or on blur ([see example](slug:autocorrect_daterange#toc-input-directives)).
|
|
24
39
|
*
|
|
25
40
|
* By default, the component does not perform any auto-correction.
|
|
41
|
+
*
|
|
26
42
|
*/
|
|
27
43
|
autoCorrectOn: AutoCorrectOn;
|
|
28
44
|
/**
|
|
29
45
|
* Specifies the navigation behavior of the calendar when the active end is changed on input focus. When enabled,
|
|
30
46
|
* the calendar navigates to the value of the focused input. Otherwise, the calendar displays the last picked date.
|
|
31
47
|
*
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
* @example
|
|
35
|
-
* ```ts
|
|
36
|
-
* _@Component({
|
|
37
|
-
* selector: 'my-app',
|
|
38
|
-
* template: `
|
|
39
|
-
* <h5>Toggle input focus to see the calendar navigating between range ends.</h5>
|
|
40
|
-
* <kendo-daterange>
|
|
41
|
-
* <kendo-dateinput kendoDateRangeStartInput [navigateCalendarOnFocus]="true" [(value)]="start"></kendo-dateinput>
|
|
42
|
-
* <kendo-dateinput kendoDateRangeEndInput [navigateCalendarOnFocus]="true" [(value)]="end"></kendo-dateinput>
|
|
43
|
-
* </kendo-daterange>
|
|
44
|
-
* `
|
|
45
|
-
* })
|
|
46
|
-
* export class AppComponent {
|
|
47
|
-
* public start: Date = new Date(2018, 3, 10);
|
|
48
|
-
* public end: Date = new Date(2018, 10, 20);
|
|
49
|
-
* }
|
|
50
|
-
* ```
|
|
48
|
+
* @default false
|
|
51
49
|
*/
|
|
52
50
|
navigateCalendarOnFocus: boolean;
|
|
53
51
|
constructor(rangeService: DateRangeService, dateInput: DateInputComponent, element: ElementRef, renderer: Renderer2, zone: NgZone);
|
|
@@ -5,8 +5,19 @@
|
|
|
5
5
|
import { TemplateRef } from '@angular/core';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
9
|
-
* `<ng-template>` tag with the `
|
|
8
|
+
* Renders the content of the DateRange Popup.
|
|
9
|
+
* To define the popup template, nest an `<ng-template>` tag with the `kendoDateRangePopupTemplate` directive inside the component tag.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```html
|
|
13
|
+
* <kendo-daterange>
|
|
14
|
+
* <ng-template kendoDateRangePopupTemplate>
|
|
15
|
+
* <div class="custom-popup-content">
|
|
16
|
+
* Custom content for the DateRange Popup
|
|
17
|
+
* </div>
|
|
18
|
+
* </ng-template>
|
|
19
|
+
* </kendo-daterange>
|
|
20
|
+
* ```
|
|
10
21
|
*/
|
|
11
22
|
export declare class DateRangePopupTemplateDirective {
|
|
12
23
|
templateRef: TemplateRef<any>;
|