@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.
Files changed (93) hide show
  1. package/calendar/calendar.component.d.ts +40 -56
  2. package/calendar/calendar.module.d.ts +10 -21
  3. package/calendar/calendars.module.d.ts +10 -21
  4. package/calendar/localization/calendar-custom-messages.component.d.ts +9 -1
  5. package/calendar/localization/multiview-calendar-custom-messages.component.d.ts +9 -1
  6. package/calendar/models/orientation.d.ts +10 -1
  7. package/calendar/models/selection-range-end.type.d.ts +11 -1
  8. package/calendar/models/selection-range.interface.d.ts +18 -3
  9. package/calendar/models/selection.d.ts +19 -4
  10. package/calendar/models/type.d.ts +7 -3
  11. package/calendar/models/view.type.d.ts +12 -1
  12. package/calendar/multiview-calendar.component.d.ts +49 -40
  13. package/calendar/multiview-calendar.module.d.ts +1 -0
  14. package/calendar/templates/cell-template.directive.d.ts +16 -19
  15. package/calendar/templates/century-cell-template.directive.d.ts +15 -19
  16. package/calendar/templates/decade-cell-template.directive.d.ts +15 -19
  17. package/calendar/templates/footer-template.directive.d.ts +16 -17
  18. package/calendar/templates/header-template.directive.d.ts +19 -18
  19. package/calendar/templates/header-title-template.directive.d.ts +15 -18
  20. package/calendar/templates/month-cell-template.directive.d.ts +15 -17
  21. package/calendar/templates/navigation-item-template.directive.d.ts +15 -18
  22. package/calendar/templates/weeknumber-cell-template.directive.d.ts +15 -17
  23. package/calendar/templates/year-cell-template.directive.d.ts +15 -20
  24. package/codemods/utils.js +0 -3
  25. package/dateinput/dateinput.component.d.ts +50 -119
  26. package/dateinput/dateinput.module.d.ts +15 -2
  27. package/dateinput/localization/dateinput-custom-messages.component.d.ts +18 -1
  28. package/dateinput/models/format-placeholder.model.d.ts +15 -20
  29. package/dateinput/models/format-settings.model.d.ts +14 -4
  30. package/dateinput/models/incremental-steps.model.d.ts +16 -1
  31. package/datepicker/datepicker.component.d.ts +68 -127
  32. package/datepicker/datepicker.module.d.ts +11 -2
  33. package/datepicker/localization/datepicker-custom-messages.component.d.ts +11 -1
  34. package/daterange/auto-correct-on.type.d.ts +2 -1
  35. package/daterange/date-range-end-input.directive.d.ts +25 -24
  36. package/daterange/date-range-popup-template.directive.d.ts +13 -2
  37. package/daterange/date-range-popup.component.d.ts +83 -73
  38. package/daterange/date-range-selection.directive.d.ts +10 -9
  39. package/daterange/date-range-start-input.directive.d.ts +29 -27
  40. package/daterange/date-range.component.d.ts +4 -6
  41. package/daterange/date-range.service.d.ts +27 -27
  42. package/datetimepicker/datetimepicker.component.d.ts +91 -79
  43. package/datetimepicker/datetimepicker.module.d.ts +16 -2
  44. package/datetimepicker/localization/datetimepicker-custom-messages.component.d.ts +10 -1
  45. package/esm2022/calendar/calendar.component.mjs +40 -56
  46. package/esm2022/calendar/calendar.module.mjs +10 -21
  47. package/esm2022/calendar/calendars.module.mjs +10 -21
  48. package/esm2022/calendar/localization/calendar-custom-messages.component.mjs +9 -1
  49. package/esm2022/calendar/localization/multiview-calendar-custom-messages.component.mjs +9 -1
  50. package/esm2022/calendar/models/selection-range.interface.mjs +2 -0
  51. package/esm2022/calendar/models/selection.mjs +11 -0
  52. package/esm2022/calendar/multiview-calendar.component.mjs +49 -40
  53. package/esm2022/calendar/multiview-calendar.module.mjs +1 -0
  54. package/esm2022/calendar/templates/cell-template.directive.mjs +16 -19
  55. package/esm2022/calendar/templates/century-cell-template.directive.mjs +15 -19
  56. package/esm2022/calendar/templates/decade-cell-template.directive.mjs +15 -19
  57. package/esm2022/calendar/templates/footer-template.directive.mjs +16 -17
  58. package/esm2022/calendar/templates/header-template.directive.mjs +19 -18
  59. package/esm2022/calendar/templates/header-title-template.directive.mjs +15 -18
  60. package/esm2022/calendar/templates/month-cell-template.directive.mjs +15 -17
  61. package/esm2022/calendar/templates/navigation-item-template.directive.mjs +15 -18
  62. package/esm2022/calendar/templates/weeknumber-cell-template.directive.mjs +15 -17
  63. package/esm2022/calendar/templates/year-cell-template.directive.mjs +15 -20
  64. package/esm2022/dateinput/dateinput.component.mjs +57 -126
  65. package/esm2022/dateinput/dateinput.module.mjs +15 -2
  66. package/esm2022/dateinput/localization/dateinput-custom-messages.component.mjs +18 -1
  67. package/esm2022/datepicker/datepicker.component.mjs +71 -130
  68. package/esm2022/datepicker/datepicker.module.mjs +11 -2
  69. package/esm2022/datepicker/localization/datepicker-custom-messages.component.mjs +11 -1
  70. package/esm2022/daterange/date-range-end-input.directive.mjs +25 -24
  71. package/esm2022/daterange/date-range-popup-template.directive.mjs +13 -2
  72. package/esm2022/daterange/date-range-popup.component.mjs +83 -73
  73. package/esm2022/daterange/date-range-selection.directive.mjs +10 -9
  74. package/esm2022/daterange/date-range-start-input.directive.mjs +29 -27
  75. package/esm2022/daterange/date-range.component.mjs +4 -6
  76. package/esm2022/daterange/date-range.service.mjs +27 -27
  77. package/esm2022/datetimepicker/datetimepicker.component.mjs +94 -82
  78. package/esm2022/datetimepicker/datetimepicker.module.mjs +16 -2
  79. package/esm2022/datetimepicker/localization/datetimepicker-custom-messages.component.mjs +10 -1
  80. package/esm2022/package-metadata.mjs +2 -2
  81. package/esm2022/timepicker/localization/messages.mjs +14 -14
  82. package/esm2022/timepicker/localization/timepicker-custom-messages.component.mjs +12 -1
  83. package/esm2022/timepicker/timepicker.component.mjs +57 -119
  84. package/esm2022/timepicker/timepicker.module.mjs +13 -2
  85. package/esm2022/timepicker/timeselector.component.mjs +24 -40
  86. package/fesm2022/progress-kendo-angular-dateinputs.mjs +913 -1015
  87. package/package.json +13 -12
  88. package/popup-settings.model.d.ts +3 -10
  89. package/timepicker/localization/messages.d.ts +14 -14
  90. package/timepicker/localization/timepicker-custom-messages.component.d.ts +12 -1
  91. package/timepicker/timepicker.component.d.ts +53 -115
  92. package/timepicker/timepicker.module.d.ts +13 -2
  93. package/timepicker/timeselector.component.d.ts +24 -40
@@ -56,7 +56,26 @@ const VALUE_DOC_LINK = 'https://www.telerik.com/kendo-angular-ui/components/date
56
56
  const DEFAULT_FORMAT = 'd';
57
57
  const TWO_DIGIT_YEAR_MAX = 68;
58
58
  /**
59
- * Represents the [Kendo UI DatePicker component for Angular](slug:overview_datepicker).
59
+ * Represents the Kendo UI DatePicker component for Angular.
60
+ * Provides a user-friendly way to select dates with a calendar popup ([see example](slug:overview_datepicker)).
61
+ *
62
+ * @example
63
+ * ```ts
64
+ * @Component({
65
+ * selector: 'my-app',
66
+ * template: `
67
+ * <kendo-datepicker
68
+ * [value]="selectedDate"
69
+ * </kendo-datepicker>
70
+ * `
71
+ * })
72
+ * export class AppComponent {
73
+ * selectedDate = new Date();
74
+ * }
75
+ * ```
76
+ *
77
+ * @remarks
78
+ * Supported children components are: {@link DatePickerCustomMessagesComponent}.
60
79
  */
61
80
  export class DatePickerComponent extends MultiTabStop {
62
81
  zone;
@@ -92,13 +111,14 @@ export class DatePickerComponent extends MultiTabStop {
92
111
  this.cellTemplate = template;
93
112
  }
94
113
  /**
95
- * If set to `true`, renders a clear button after the input text or DatePicker value has been changed.
96
- * Clicking this button resets the value of the component to `null` and triggers the `valueChange` event.
114
+ * Renders a clear button when set to `true` after the input text or DatePicker value changes.
115
+ * Click this button to reset the component value to `null` and trigger the `valueChange` event.
97
116
  * @default false
98
117
  */
99
118
  clearButton = false;
100
119
  /**
101
- * Sets the HTML attributes of the inner focusable input element. Attributes which are essential for certain component functionalities cannot be changed.
120
+ * Specifies the HTML attributes of the inner focusable input element.
121
+ * You cannot change attributes that are essential for certain component functionalities.
102
122
  */
103
123
  inputAttributes;
104
124
  /**
@@ -182,7 +202,7 @@ export class DatePickerComponent extends MultiTabStop {
182
202
  this.footerTemplate = template;
183
203
  }
184
204
  /**
185
- * Toggles the visibility of the Calendar footer.
205
+ * Controls the visibility of the Calendar footer.
186
206
  * @default false
187
207
  */
188
208
  footer = false;
@@ -197,62 +217,53 @@ export class DatePickerComponent extends MultiTabStop {
197
217
  this.navigationItemTemplate = template;
198
218
  }
199
219
  /**
200
- * Sets the format of the displayed Calendar week days' names.
220
+ * Specifies the format of the displayed Calendar week days' names.
201
221
  * @default 'short'
202
222
  */
203
223
  weekDaysFormat = "short";
204
224
  /**
205
- * Displays the days that fall out of the current month in the Calendar ([see example]({% slug viewoptions_calendar %}#toc-displaying-other-month-days)).
206
- * The default values per Calendar type are:
207
- * - `infinite` - false
208
- * - `classic` - true
225
+ * Shows the days that fall outside the current month in the Calendar ([see example]({% slug viewoptions_calendar %}#toc-displaying-other-month-days)).
226
+ * The default value is `false` for infinite Calendar type and `true` for classic Calendar type.
209
227
  */
210
228
  showOtherMonthDays;
211
229
  /**
212
- * Defines the active view that the Calendar initially renders
213
- * ([see example]({% slug viewoptions_calendar %}#toc-active-view)).
214
- * By default, the active view is `month`.
230
+ * Specifies the active view that the Calendar initially renders ([see example]({% slug viewoptions_calendar %}#toc-active-view)).
215
231
  *
216
- * > You have to set `activeView` within the `topView`-`bottomView` range.
232
+ * You have to set `activeView` within the `topView`-`bottomView` range.
233
+ * @default 'month'
217
234
  */
218
235
  activeView = CalendarViewEnum[CalendarViewEnum.month];
219
236
  /**
220
- * Defines the bottommost Calendar view to which the user can navigate
221
- * ([see example](slug:datepicker_calendar_options#toc-view-selection-depth)).
237
+ * Specifies the bottommost Calendar view to which you can navigate ([see example](slug:datepicker_calendar_options#toc-view-selection-depth)).
238
+ * @default 'month'
222
239
  */
223
240
  bottomView = CalendarViewEnum[CalendarViewEnum.month];
224
241
  /**
225
- * Defines the topmost Calendar view to which the user can navigate
226
- * ([see example](slug:datepicker_calendar_options#toc-view-selection-depth)).
242
+ * Specifies the topmost Calendar view to which you can navigate ([see example](slug:datepicker_calendar_options#toc-view-selection-depth)).
243
+ * @default 'century'
227
244
  */
228
245
  topView = CalendarViewEnum[CalendarViewEnum.century];
229
246
  /**
230
247
  * Specifies the Calendar type.
231
- *
232
- * The possible values are:
233
- * - `infinite` (default)
234
- * - `classic`
235
- *
248
+ * @default 'infinite'
236
249
  */
237
250
  calendarType = 'infinite';
238
251
  /**
239
252
  * Determines whether to enable animation when navigating to previous/next Calendar view.
240
253
  * Applies to the [`classic`]({% slug api_dateinputs_datepickercomponent %}#toc-calendartype) Calendar only.
241
254
  *
242
- * > 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.
255
+ * 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.
243
256
  *
244
257
  * @default false
245
258
  */
246
259
  animateCalendarNavigation = false;
247
260
  /**
248
- * Sets or gets the `disabled` property of the DatePicker and determines whether the component is active
249
- * ([see example]({% slug disabled_datepicker %})).
261
+ * Specifies or gets the `disabled` property of the DatePicker and determines whether the component is active ([see example]({% slug disabled_datepicker %})).
250
262
  * 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).
251
263
  */
252
264
  disabled = false;
253
265
  /**
254
- * Sets the read-only state of the DatePicker
255
- * ([see example]({% slug readonly_datepicker %}#toc-read-only-datepicker)).
266
+ * Specifies the read-only state of the DatePicker ([see example]({% slug readonly_datepicker %}#toc-read-only-datepicker)).
256
267
  *
257
268
  * @default false
258
269
  */
@@ -261,20 +272,19 @@ export class DatePickerComponent extends MultiTabStop {
261
272
  * Sets the read-only state of the DatePicker input field
262
273
  * ([see example]({% slug readonly_datepicker %}#toc-read-only-input)).
263
274
  *
264
- * > Note that if you set the [`readonly`]({% slug api_dateinputs_datepickercomponent %}#toc-readonly) property value to `true`,
275
+ * If you set the [`readonly`]({% slug api_dateinputs_datepickercomponent %}#toc-readonly) property value to `true`,
265
276
  * the input will be rendered in a read-only state regardless of the `readOnlyInput` value.
266
277
  */
267
278
  readOnlyInput = false;
268
279
  /**
269
280
  * Configures the popup options of the DatePicker.
270
281
  *
271
- * The available options are:
272
- * - `animate: Boolean`&mdash;Controls the popup animation. By default, the open and close animations are enabled.
273
- * - `appendTo: 'root' | 'component' | ViewContainerRef`&mdash;Controls the popup container. By default, the popup will be appended to the root component.
274
- * - `popupClass: String`&mdash;Specifies a list of CSS classes that are used to style the popup.
282
+ * The available options are animate which controls the popup animation and by default, the open and close animations are enabled.
283
+ * The appendTo option controls the popup container and by default, the popup will be appended to the root component.
284
+ * The popupClass option specifies a list of CSS classes that are used to style the popup.
275
285
  */
276
286
  set popupSettings(settings) {
277
- this._popupSettings = Object.assign({}, { animate: true }, settings);
287
+ this._popupSettings = { animate: true, ...settings };
278
288
  }
279
289
  get popupSettings() {
280
290
  return this._popupSettings;
@@ -297,17 +307,18 @@ export class DatePickerComponent extends MultiTabStop {
297
307
  /**
298
308
  * Specifies the smallest valid date
299
309
  * ([see example]({% slug dateranges_datepicker %})).
300
- * By default, the `min` value is `1900-1-1`.
310
+ * @default 1900-1-1
301
311
  */
302
312
  min = cloneDate(MIN_DATE);
303
313
  /**
304
314
  * Specifies the biggest valid date
305
315
  * ([see example]({% slug dateranges_datepicker %})).
306
- * By default, the `max` value is `2099-12-31`.
316
+ * @default 2099-12-31
307
317
  */
308
318
  max = cloneDate(MAX_DATE);
309
319
  /**
310
320
  * Determines whether the built-in validation for incomplete dates is to be enforced when a form is being validated.
321
+ * @default false
311
322
  */
312
323
  incompleteDateValidation = false;
313
324
  /**
@@ -347,13 +358,13 @@ export class DatePickerComponent extends MultiTabStop {
347
358
  /**
348
359
  * Specifies the focused date of the Calendar component
349
360
  * ([see example](slug:datepicker_calendar_options#toc-focused-dates)).
361
+ * @default null
350
362
  */
351
363
  focusedDate = null;
352
364
  /**
353
365
  * Specifies the value of the DatePicker component.
354
366
  *
355
- * > The `value` has to be a valid
356
- * [JavaScript `Date`](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Date) instance or `null`.
367
+ * The `value` has to be a valid [JavaScript `Date`](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Date) instance or `null`.
357
368
  */
358
369
  set value(value) {
359
370
  this.verifyValue(value);
@@ -366,9 +377,8 @@ export class DatePickerComponent extends MultiTabStop {
366
377
  * Specifies the date format that is used to display the input value
367
378
  * ([see example]({% slug formats_datepicker %})).
368
379
  *
369
- * Format value options:
370
- * - `string` - Provide a `string` if a single format is going to be used regardless whether the input is focused or blurred.
371
- * - [`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.
380
+ * Format value options include string to provide a single format that is used regardless whether the input is focused or blurred.
381
+ * 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.
372
382
  */
373
383
  format = DEFAULT_FORMAT;
374
384
  /**
@@ -377,69 +387,25 @@ export class DatePickerComponent extends MultiTabStop {
377
387
  *
378
388
  * The default value is 68, indicating that typing any value less than 69
379
389
  * will be assumed to be 20xx, while 69 and larger will be assumed to be 19xx.
390
+ * @default 68
380
391
  */
381
392
  twoDigitYearMax = TWO_DIGIT_YEAR_MAX;
382
393
  /**
383
394
  * Defines the descriptions of the format sections in the input field.
384
395
  * ([more information and examples]({% slug placeholders_datepicker %})).
385
396
  *
386
- * @example
387
- * ```ts
388
- * _@Component({
389
- * selector: 'my-app',
390
- * template: `
391
- * <div class="row example-wrapper" [style.min-height.px]="450">
392
- * <div class="col-xs-12 col-md-6 example-col">
393
- * <p>Full-length format description:</p>
394
- * <kendo-datepicker formatPlaceholder="wide"></kendo-datepicker>
395
- * </div>
396
- *
397
- * <div class="col-xs-12 col-md-6 example-col">
398
- * <p>Narrow-length format description:</p>
399
- * <kendo-datepicker formatPlaceholder="narrow"></kendo-datepicker>
400
- * </div>
401
- *
402
- * <div class="col-xs-12 col-md-6 example-col">
403
- * <p>Short-length format description:</p>
404
- * <kendo-datepicker formatPlaceholder="short"></kendo-datepicker>
405
- * </div>
406
- *
407
- * <div class="col-xs-12 col-md-6 example-col">
408
- * <p>Display defined format:</p>
409
- * <kendo-datepicker format="MM/dd/yyyy" formatPlaceholder="formatPattern"></kendo-datepicker>
410
- * </div>
411
- *
412
- * <div class="col-xs-12 col-md-6 example-col">
413
- * <p>Custom defined format descriptions</p>
414
- * <kendo-datepicker format="MM/dd/yyyy"
415
- * [formatPlaceholder]="{ year: 'y', month: 'M', day: 'd' }"
416
- * ></kendo-datepicker>
417
- * </div>
418
- * </div>
419
- * `
420
- * })
421
- * export class AppComponent { }
422
- * ```
423
397
  */
424
398
  formatPlaceholder;
425
399
  /**
426
400
  * Specifies the hint the DatePicker displays when its value is `null`.
427
401
  * ([more information and exaples]({% slug placeholders_datepicker %})).
428
- *
429
- * @example
430
- * ```ts
431
- * _@Component({
432
- * selector: 'my-app',
433
- * template: `
434
- * <kendo-datepicker placeholder="Enter birth date..."></kendo-datepicker>
435
- * `
436
- * })
437
- * export class AppComponent { }
438
- * ```
402
+ * @default null
439
403
  */
440
404
  placeholder = null;
441
405
  /**
442
- * Sets or gets the `tabindex` property of the DatePicker.
406
+ * Sets the `tabindex` of the DatePicker.
407
+ * This property is used to set the order in which the DatePicker will receive focus when navigating through the page using the Tab key.
408
+ * @default 0
443
409
  */
444
410
  tabindex = 0;
445
411
  /**
@@ -465,11 +431,13 @@ export class DatePickerComponent extends MultiTabStop {
465
431
  /**
466
432
  * Sets the title of the input element of the DatePicker and the title text rendered
467
433
  * in the header of the popup(action sheet). Applicable only when [`AdaptiveMode` is set to `auto`](slug:api_dateinputs_adaptivemode).
434
+ * @default ""
468
435
  */
469
436
  adaptiveTitle = "";
470
437
  /**
471
438
  * Sets the subtitle text rendered in the header of the popup(action sheet).
472
439
  * Applicable only when [`AdaptiveMode` is set to `auto`](slug:api_dateinputs_adaptivemode).
440
+ * @default ""
473
441
  */
474
442
  adaptiveSubtitle = "";
475
443
  /**
@@ -482,27 +450,23 @@ export class DatePickerComponent extends MultiTabStop {
482
450
  * Determines whether the built-in validator for disabled
483
451
  * date ranges is enforced when validating a form
484
452
  * ([see example]( slug:disabled_dates_datepicker#toc-using-a-function)).
453
+ * @default true
485
454
  */
486
455
  disabledDatesValidation = true;
487
456
  /**
488
457
  * Determines whether to display a week number column in the `month` view of the Calendar
489
458
  * ([see example](slug:datepicker_calendar_options#toc-week-number-column)).
459
+ * @default false
490
460
  */
491
461
  weekNumber = false;
492
462
  /**
493
463
  * Sets the size of the component.
494
- *
495
- * The possible values are:
496
- * * `small`
497
- * * `medium` (Default)
498
- * * `large`
499
- * * `none`
500
- *
464
+ * @default 'medium'
501
465
  */
502
466
  set size(size) {
503
467
  this.renderer.removeClass(this.wrapper.nativeElement, getSizeClass('input', this.size));
504
468
  this.renderer.removeClass(this.toggleButton.nativeElement, getSizeClass('button', this.size));
505
- const newSize = size ? size : DEFAULT_SIZE;
469
+ const newSize = size || DEFAULT_SIZE;
506
470
  if (newSize !== 'none') {
507
471
  this.renderer.addClass(this.wrapper.nativeElement, getSizeClass('input', newSize));
508
472
  this.renderer.addClass(this.toggleButton.nativeElement, getSizeClass('button', newSize));
@@ -513,19 +477,12 @@ export class DatePickerComponent extends MultiTabStop {
513
477
  return this._size;
514
478
  }
515
479
  /**
516
- * Sets the border radius of the component.
517
- *
518
- * The possible values are:
519
- * * `small`
520
- * * `medium` (Default)
521
- * * `large`
522
- * * `full`
523
- * * `none`
524
- *
480
+ * Specifies the border radius of the component.
481
+ * @default 'medium'
525
482
  */
526
483
  set rounded(rounded) {
527
484
  this.renderer.removeClass(this.wrapper.nativeElement, getRoundedClass(this.rounded));
528
- const newRounded = rounded ? rounded : DEFAULT_ROUNDED;
485
+ const newRounded = rounded || DEFAULT_ROUNDED;
529
486
  if (newRounded !== 'none') {
530
487
  this.renderer.addClass(this.wrapper.nativeElement, getRoundedClass(newRounded));
531
488
  }
@@ -535,14 +492,8 @@ export class DatePickerComponent extends MultiTabStop {
535
492
  return this._rounded;
536
493
  }
537
494
  /**
538
- * Sets the fillMode of the component.
539
- *
540
- * The possible values are:
541
- * * `solid` (Default)
542
- * * `flat`
543
- * * `outline`
544
- * * `none`
545
- *
495
+ * Specifies the fillMode of the component.
496
+ * @default 'solid'
546
497
  */
547
498
  set fillMode(fillMode) {
548
499
  this.renderer.removeClass(this.wrapper.nativeElement, getFillModeClass('input', this.fillMode));
@@ -560,7 +511,9 @@ export class DatePickerComponent extends MultiTabStop {
560
511
  return this._fillMode;
561
512
  }
562
513
  /**
563
- * Enables or disables the adaptive mode. By default the adaptive rendering is disabled.
514
+ * 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.
515
+ *
516
+ * @default 'none'
564
517
  */
565
518
  adaptiveMode = 'none';
566
519
  /**
@@ -833,18 +786,6 @@ export class DatePickerComponent extends MultiTabStop {
833
786
  }
834
787
  /**
835
788
  * Focuses the DatePicker component.
836
- *
837
- * @example
838
- * ```ts
839
- * _@Component({
840
- * selector: 'my-app',
841
- * template: `
842
- * <button (click)="datepicker.focus()">Focus date picker</button>
843
- * <kendo-datepicker #datepicker></kendo-datepicker>
844
- * `
845
- * })
846
- * export class AppComponent { }
847
- * ```
848
789
  */
849
790
  focus() {
850
791
  this.dateInput.focus();
@@ -860,7 +801,7 @@ export class DatePickerComponent extends MultiTabStop {
860
801
  * If you use the `toggle` method to show or hide the popup or actionSheet,
861
802
  * the `open` and `close` events do not fire.
862
803
  *
863
- * @param show - The state of the popup.
804
+ * @param show The state of the popup.
864
805
  */
865
806
  toggle(show) {
866
807
  if (this.disabled || this.readonly) {
@@ -30,8 +30,17 @@ import * as i12 from "../calendar/templates/year-cell-template.directive";
30
30
  import * as i13 from "@progress/kendo-angular-common";
31
31
  // IMPORTANT: NgModule export kept for backwards compatibility
32
32
  /**
33
- * Represents the [NgModule](link:site.data.urls.angular['ngmoduleapi'])
34
- * definition for the DatePicker component.
33
+ * Required for adding all DatePicker features in [NgModule-based](link:site.data.urls.angular['ngmoduleapi']) Angular applications.
34
+ *
35
+ * @example
36
+ * ```typescript
37
+ * import { DatePickerModule } from '@progress/kendo-angular-dateinputs';
38
+ *
39
+ * @NgModule({
40
+ * imports: [DatePickerModule]
41
+ * })
42
+ * export class AppModule { }
43
+ * ```
35
44
  */
36
45
  export class DatePickerModule {
37
46
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DatePickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
@@ -8,7 +8,17 @@ import { DatePickerMessages } from './messages';
8
8
  import * as i0 from "@angular/core";
9
9
  import * as i1 from "@progress/kendo-angular-l10n";
10
10
  /**
11
- * Custom component messages override default component messages ([see example]({% slug globalization_dateinputs %}#toc-custom-messages)).
11
+ * Allows you to override the default localization messages of the DatePicker component ([see example]({% slug globalization_dateinputs %}#toc-custom-messages)).
12
+ *
13
+ * @example
14
+ * ```html
15
+ * <kendo-datepicker>
16
+ * <kendo-datepicker-messages
17
+ * today="Today"
18
+ * toggle="Open calendar">
19
+ * </kendo-datepicker-messages>
20
+ * </kendo-datepicker>
21
+ * ```
12
22
  */
13
23
  export class DatePickerCustomMessagesComponent extends DatePickerMessages {
14
24
  service;
@@ -14,44 +14,45 @@ import * as i0 from "@angular/core";
14
14
  import * as i1 from "./date-range.service";
15
15
  import * as i2 from "../dateinput/dateinput.component";
16
16
  /**
17
- * A directive which manages the end range selection.
17
+ * Manages the end date selection in a date range.
18
18
  *
19
- * > You can use the DateRangeEndInputDirective only with a DateInput component.
19
+ * You can use the `DateRangeEndInputDirective` only with a DateInput component.
20
+ *
21
+ * @example
22
+ * ```typescript
23
+ * @Component({
24
+ * selector: 'my-app',
25
+ * template: `
26
+ * <kendo-daterange>
27
+ * <kendo-dateinput kendoDateRangeStartInput [(value)]="startDate"></kendo-dateinput>
28
+ * <kendo-dateinput kendoDateRangeEndInput [(value)]="endDate"></kendo-dateinput>
29
+ * </kendo-daterange>
30
+ * `
31
+ * })
32
+ * export class AppComponent {
33
+ * public startDate: Date = new Date();
34
+ * public endDate: Date = new Date();
35
+ * }
36
+ * ```
37
+ *
38
+ * @remarks
39
+ * Applied to: {@link DateInputComponent}
20
40
  */
21
41
  export class DateRangeEndInputDirective extends DateRangeInput {
22
42
  rangeService;
23
43
  dateInput;
24
44
  /**
25
- * Specifies the auto-correction behavior. If the start date is greater than the end date, the
26
- * directive fixes the date range to a single date either on input change or on blur
27
- * ([see example](slug:autocorrect_daterange#toc-input-directives)).
45
+ * 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)).
28
46
  *
29
47
  * By default, the component does not perform any auto-correction.
48
+ *
30
49
  */
31
50
  autoCorrectOn;
32
51
  /**
33
52
  * Specifies the navigation behavior of the calendar when the active end is changed on input focus. When enabled,
34
53
  * the calendar navigates to the value of the focused input. Otherwise, the calendar displays the last picked date.
35
54
  *
36
- * By default, the automatic navigation behavior on input focus is disabled.
37
- *
38
- * @example
39
- * ```ts
40
- * _@Component({
41
- * selector: 'my-app',
42
- * template: `
43
- * <h5>Toggle input focus to see the calendar navigating between range ends.</h5>
44
- * <kendo-daterange>
45
- * <kendo-dateinput kendoDateRangeStartInput [navigateCalendarOnFocus]="true" [(value)]="start"></kendo-dateinput>
46
- * <kendo-dateinput kendoDateRangeEndInput [navigateCalendarOnFocus]="true" [(value)]="end"></kendo-dateinput>
47
- * </kendo-daterange>
48
- * `
49
- * })
50
- * export class AppComponent {
51
- * public start: Date = new Date(2018, 3, 10);
52
- * public end: Date = new Date(2018, 10, 20);
53
- * }
54
- * ```
55
+ * @default false
55
56
  */
56
57
  navigateCalendarOnFocus = false;
57
58
  constructor(rangeService, dateInput, element, renderer, zone) {
@@ -5,8 +5,19 @@
5
5
  import { Directive, TemplateRef } from '@angular/core';
6
6
  import * as i0 from "@angular/core";
7
7
  /**
8
- * A directive which renders the content of the DateRange Popup. To define the cell template, nest an
9
- * `<ng-template>` tag with the `kendoRangePopupTemplate` directive inside the component tag.
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 class DateRangePopupTemplateDirective {
12
23
  templateRef;