@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
@@ -49,17 +49,13 @@ export declare const CALENDAR_RANGE_VALIDATORS: any;
49
49
  export declare const KENDO_INPUT_PROVIDER: any;
50
50
  /**
51
51
  * Represents the [Kendo UI Calendar component for Angular](slug:overview_calendar).
52
- *
53
52
  * @example
54
- * ```ts
55
- * _@Component({
56
- * selector: 'my-app',
57
- * template: `
58
- * <kendo-calendar></kendo-calendar>
59
- * `
60
- * })
61
- * export class AppComponent { }
53
+ * ```html
54
+ * <kendo-calendar></kendo-calendar>
62
55
  * ```
56
+ *
57
+ * @remarks
58
+ * Supported children components are: {@link CalendarCustomMessagesComponent}.
63
59
  */
64
60
  export declare class CalendarComponent implements ControlValueAccessor, OnChanges, DoCheck, OnDestroy, AfterViewChecked, AfterViewInit, Validator {
65
61
  private bus;
@@ -76,10 +72,7 @@ export declare class CalendarComponent implements ControlValueAccessor, OnChange
76
72
  private selectionService;
77
73
  private pickerService?;
78
74
  /**
79
- * Displays the days that fall out of the current month ([see example]({% slug viewoptions_calendar %}#toc-displaying-other-month-days)).
80
- * The default values per Calendar type are:
81
- * - `infinite` - false
82
- * - `classic` - true
75
+ * Shows days that fall outside the current month and the default values per Calendar type are false for infinite and true for classic ([see example]({% slug viewoptions_calendar %}#toc-displaying-other-month-days)).
83
76
  */
84
77
  set showOtherMonthDays(_showOtherMonthDays: boolean);
85
78
  get showOtherMonthDays(): boolean;
@@ -93,11 +86,10 @@ export declare class CalendarComponent implements ControlValueAccessor, OnChange
93
86
  */
94
87
  get popupId(): string;
95
88
  /**
96
- * Sets or gets the `focusedDate` property of the Calendar and
97
- * defines the focused date of the component
89
+ * Specifies the focused date of the Calendar
98
90
  * ([see example]({% slug dates_calendar %}#toc-focused-dates)).
99
91
  *
100
- * > If the Calendar is out of the min or max range, it normalizes the defined `focusedDate`.
92
+ * If the Calendar is outside the `min` or `max` range, the component normalizes the defined `focusedDate`.
101
93
  */
102
94
  set focusedDate(focusedDate: Date);
103
95
  get focusedDate(): Date;
@@ -106,45 +98,43 @@ export declare class CalendarComponent implements ControlValueAccessor, OnChange
106
98
  */
107
99
  get headerId(): string;
108
100
  /**
109
- * Sets or gets the `min` property of the Calendar and
110
- * defines the minimum allowed date value
101
+ * Specifies the minimum allowed date value
111
102
  * ([see example]({% slug dateranges_calendar %})).
112
- * By default, the `min` value is `1900-1-1`.
103
+ *
104
+ * @default 1900-1-1
113
105
  */
114
106
  set min(min: Date);
115
107
  get min(): Date;
116
108
  /**
117
- * Sets or gets the `max` property of the Calendar and
118
- * defines the maximum allowed date value
109
+ * Specifies the maximum allowed date value
119
110
  * ([see example]({% slug dateranges_calendar %})).
120
- * By default, the `max` value is `2099-12-31`.
111
+ *
112
+ * @default 2099-12-31
121
113
  */
122
114
  set max(max: Date);
123
115
  get max(): Date;
124
116
  /**
125
- * Determines whether the built-in min or max validators are enforced when validating a form.
117
+ * Determines whether the built-in `min` or `max` validators are enforced when validating a form.
126
118
  *
127
119
  * @default false
128
120
  */
129
121
  rangeValidation: boolean;
130
122
  /**
131
- * Sets the format of the displayed Calendar week days' names.
123
+ * Specifies the format of the displayed week day names.
124
+ *
132
125
  * @default 'short'
133
126
  */
134
127
  weekDaysFormat?: WeekDaysFormat;
135
128
  /**
136
129
  * Toggles the visibility of the footer.
130
+ *
137
131
  * @default false
138
132
  */
139
133
  footer: boolean;
140
134
  /**
141
135
  * Sets the Calendar selection mode
142
136
  * ([see example]({% slug selection_calendar %})).
143
- *
144
- * The available values are:
145
- * * `single` (default)
146
- * * `multiple`
147
- * * `range`
137
+ * @default 'single'
148
138
  */
149
139
  set selection(_selection: CalendarSelection);
150
140
  get selection(): CalendarSelection;
@@ -159,7 +149,7 @@ export declare class CalendarComponent implements ControlValueAccessor, OnChange
159
149
  /**
160
150
  * Sets or gets the `value` property of the Calendar and defines the selected value of the component.
161
151
  *
162
- * > The `value` has to be a valid [JavaScript `Date`](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Date) instance when in `single` selection mode, an array of valid JavaScript Date instances when in `multiple` selection mode, or an object of type `SelectionRange` when in `range` selection mode.
152
+ * The `value` has to be a valid [JavaScript `Date`](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Date) instance when in `single` selection mode, an array of valid JavaScript Date instances when in `multiple` selection mode, or an object of type `SelectionRange` when in `range` selection mode.
163
153
  */
164
154
  set value(candidate: Date | Date[] | SelectionRange | null);
165
155
  get value(): Date | Date[] | SelectionRange | null;
@@ -171,9 +161,11 @@ export declare class CalendarComponent implements ControlValueAccessor, OnChange
171
161
  */
172
162
  disabled: boolean;
173
163
  /**
174
- * Sets or gets the `tabindex` property of the Calendar. Based on the
164
+ * Specifies the `tabindex` property of the Calendar. Based on the
175
165
  * [HTML `tabindex`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex) behavior,
176
166
  * it determines whether the component is focusable.
167
+ *
168
+ * @default 0
177
169
  */
178
170
  tabindex: number;
179
171
  /**
@@ -182,43 +174,45 @@ export declare class CalendarComponent implements ControlValueAccessor, OnChange
182
174
  set tabIndex(tabIndex: number);
183
175
  get tabIndex(): number;
184
176
  /**
185
- * Sets the dates of the Calendar that will be disabled
177
+ * Specifies the dates of the Calendar that will be disabled
186
178
  * ([see example]({% slug disabled_dates_calendar %})).
187
179
  */
188
180
  set disabledDates(value: ((date: Date) => boolean) | Date[] | Day[]);
189
181
  get disabledDates(): ((date: Date) => boolean) | Date[] | Day[];
190
182
  /**
191
- * Sets or gets the `navigation` property of the Calendar
192
- * and determines whether the navigation side-bar will be displayed
183
+ * Determines whether the navigation side-bar will be displayed
193
184
  * ([see example]({% slug sidebar_calendar %})).
194
185
  * Applies to the [`infinite`]({% slug api_dateinputs_calendarcomponent %}#toc-type) Calendar only.
186
+ *
187
+ * @default true
195
188
  */
196
189
  navigation: boolean;
197
190
  /**
198
191
  * Defines the active view that the Calendar initially renders
199
192
  * ([see example]({% slug viewoptions_calendar %})).
200
- * By default, the active view is `month`.
193
+ * You have to set `activeView` within the `topView`-`bottomView` range.
201
194
  *
202
- * > You have to set `activeView` within the `topView`-`bottomView` range.
195
+ * @default 'month'
203
196
  */
204
197
  activeView: CalendarView;
205
198
  /**
206
199
  * Defines the bottommost view to which the user can navigate
207
200
  * ([see example](slug:viewdepth_calendar)).
201
+ *
202
+ * @default 'month'
208
203
  */
209
204
  bottomView: CalendarView;
210
205
  /**
211
206
  * Defines the topmost view to which the user can navigate
212
207
  * ([see example](slug:viewdepth_calendar)).
208
+ *
209
+ * @default 'century'
213
210
  */
214
211
  topView: CalendarView;
215
212
  /**
216
213
  * Specifies the Calendar type.
217
214
  *
218
- * The possible values are:
219
- * - `infinite` (default)
220
- * - `classic`
221
- *
215
+ * @default 'infinite'
222
216
  */
223
217
  set type(type: CalendarType);
224
218
  get type(): CalendarType;
@@ -226,7 +220,7 @@ export declare class CalendarComponent implements ControlValueAccessor, OnChange
226
220
  * Determines whether to enable animation when navigating to previous/next view.
227
221
  * Applies to the [`classic`]({% slug api_dateinputs_calendarcomponent %}#toc-type) Calendar only.
228
222
  *
229
- * > 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.
223
+ * 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.
230
224
  *
231
225
  * @default false
232
226
  */
@@ -234,6 +228,8 @@ export declare class CalendarComponent implements ControlValueAccessor, OnChange
234
228
  /**
235
229
  * Determines whether to display a week number column in the `month` view
236
230
  * ([see example]({% slug weeknumcolumn_calendar %})).
231
+ *
232
+ * @default false
237
233
  */
238
234
  weekNumber: boolean;
239
235
  /**
@@ -440,10 +436,10 @@ export declare class CalendarComponent implements ControlValueAccessor, OnChange
440
436
  get size(): DateInputSize;
441
437
  private _size;
442
438
  /**
443
- * Specify, which end of the defined selection range should be marked as active.
439
+ * Specifies which end of the defined selection range should be marked as active.
440
+ * Value will be ignored if the selection range is undefined. If range selection is used then the default value is 'start'.
444
441
  *
445
- * > Value will be ignored if the selection range is undefined.
446
- * > If range selection is used then the default value is 'start'.
442
+ * @default 'start'
447
443
  */
448
444
  set activeRangeEnd(_activeRangeEnd: SelectionRangeEnd);
449
445
  get activeRangeEnd(): SelectionRangeEnd;
@@ -513,18 +509,6 @@ export declare class CalendarComponent implements ControlValueAccessor, OnChange
513
509
  onResize(): void;
514
510
  /**
515
511
  * Focuses the Calendar by making the table.k-calendar-table element active.
516
- *
517
- * @example
518
- * ```ts
519
- * _@Component({
520
- * selector: 'my-app',
521
- * template: `
522
- * <button (click)="calendar.focus()">Focus calendar</button>
523
- * <kendo-calendar #calendar></kendo-calendar>
524
- * `
525
- * })
526
- * export class AppComponent { }
527
- * ```
528
512
  */
529
513
  focus(): void;
530
514
  /**
@@ -16,7 +16,7 @@ import * as i10 from "./templates/navigation-item-template.directive";
16
16
  import * as i11 from "./templates/weeknumber-cell-template.directive";
17
17
  import * as i12 from "./templates/year-cell-template.directive";
18
18
  /**
19
- * The exported package module.
19
+ * Required for adding all Calendar features in NgModule-based Angular applications.
20
20
  *
21
21
  * The package exports:
22
22
  * - `CellTemplateDirective`&mdash;The month cell template directive.
@@ -30,29 +30,18 @@ import * as i12 from "./templates/year-cell-template.directive";
30
30
  *
31
31
  * @example
32
32
  *
33
- * ```ts-no-run
34
- * // Import the Calendar module
35
- * import { CalendarModule } from '@progress/kendo-angular-dateinputs';
36
- *
37
- * // The browser platform with a compiler
38
- * import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
39
- *
33
+ * ```typescript
40
34
  * import { NgModule } from '@angular/core';
35
+ * import { BrowserModule } from '@angular/platform-browser';
36
+ * import { CalendarModule } from '@progress/kendo-angular-dateinputs';
41
37
  *
42
- * // Import the app component
43
- * import { AppComponent } from './app.component';
44
- *
45
- * // Define the app module
46
- * _@NgModule({
47
- * declarations: [AppComponent], // declare app component
48
- * imports: [BrowserModule, CalendarModule], // import Calendar module
49
- * bootstrap: [AppComponent]
38
+ * @NgModule({
39
+ * imports: [
40
+ * BrowserModule,
41
+ * CalendarModule
42
+ * ]
50
43
  * })
51
- * export class AppModule {}
52
- *
53
- * // Compile and launch the module
54
- * platformBrowserDynamic().bootstrapModule(AppModule);
55
- *
44
+ * export class AppModule { }
56
45
  * ```
57
46
  */
58
47
  export declare class CalendarModule {
@@ -18,7 +18,7 @@ import * as i12 from "./templates/year-cell-template.directive";
18
18
  import * as i13 from "./localization/multiview-calendar-custom-messages.component";
19
19
  import * as i14 from "./multiview-calendar.component";
20
20
  /**
21
- * The exported package module.
21
+ * Required for adding all Calendars features in NgModule-based Angular applications.
22
22
  *
23
23
  * The package exports:
24
24
  * - `CalendarModule`&mdash;The calendar module.
@@ -26,29 +26,18 @@ import * as i14 from "./multiview-calendar.component";
26
26
  *
27
27
  * @example
28
28
  *
29
- * ```ts-no-run
30
- * // Import the Calendars module
31
- * import { CalendarsModule } from '@progress/kendo-angular-dateinputs';
32
- *
33
- * // The browser platform with a compiler
34
- * import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
35
- *
29
+ * ```typescript
36
30
  * import { NgModule } from '@angular/core';
31
+ * import { BrowserModule } from '@angular/platform-browser';
32
+ * import { CalendarsModule } from '@progress/kendo-angular-dateinputs';
37
33
  *
38
- * // Import the app component
39
- * import { AppComponent } from './app.component';
40
- *
41
- * // Define the app module
42
- * _@NgModule({
43
- * declarations: [AppComponent], // declare app component
44
- * imports: [BrowserModule, CalendarsModule], // import the Calendars module
45
- * bootstrap: [AppComponent]
34
+ * @NgModule({
35
+ * imports: [
36
+ * BrowserModule,
37
+ * CalendarsModule
38
+ * ]
46
39
  * })
47
- * export class AppModule {}
48
- *
49
- * // Compile and launch the module
50
- * platformBrowserDynamic().bootstrapModule(AppModule);
51
- *
40
+ * export class AppModule { }
52
41
  * ```
53
42
  */
54
43
  export declare class CalendarsModule {
@@ -6,7 +6,15 @@ import { LocalizationService } from '@progress/kendo-angular-l10n';
6
6
  import { CalendarMessages } from './calendar-messages';
7
7
  import * as i0 from "@angular/core";
8
8
  /**
9
- * Custom component messages override default component messages ([see example]({% slug globalization_dateinputs %}#toc-custom-messages)).
9
+ * A component that allows customization of Calendar localization messages.
10
+ *
11
+ * @example
12
+ * ```html
13
+ * <kendo-calendar-messages prevButtonTitle="Previous">
14
+ * </kendo-calendar-messages>
15
+ * ```
16
+ *
17
+ * For more information, see the [globalization documentation]({% slug globalization_dateinputs %}#toc-custom-messages).
10
18
  */
11
19
  export declare class CalendarCustomMessagesComponent extends CalendarMessages {
12
20
  protected service: LocalizationService;
@@ -6,7 +6,15 @@ import { LocalizationService } from '@progress/kendo-angular-l10n';
6
6
  import { Messages } from './multiview-calendar-messages';
7
7
  import * as i0 from "@angular/core";
8
8
  /**
9
- * Custom component messages override default component messages ([see example]({% slug globalization_dateinputs %}#toc-custom-messages)).
9
+ * A component that allows customization of MultiView Calendar localization messages.
10
+ *
11
+ * @example
12
+ * ```html
13
+ * <kendo-multiviewcalendar-messages prevButtonTitle="Previous">
14
+ * </kendo-multiviewcalendar-messages>
15
+ * ```
16
+ *
17
+ * For more information, see the [globalization documentation]({% slug globalization_dateinputs %}#toc-custom-messages).
10
18
  */
11
19
  export declare class MultiViewCalendarCustomMessagesComponent extends Messages {
12
20
  protected service: LocalizationService;
@@ -3,6 +3,15 @@
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  /**
6
- * Specifies the Calendar orientation.
6
+ * Defines the Calendar layout orientation for multi-view calendars.
7
+ *
8
+ * The possible values are:
9
+ * - `horizontal` - Displays multiple calendar views side by side
10
+ * - `vertical` - Displays multiple calendar views stacked vertically
11
+ *
12
+ * @example
13
+ * ```typescript
14
+ * const orientation: CalendarOrientation = 'vertical';
15
+ * ```
7
16
  */
8
17
  export type CalendarOrientation = 'horizontal' | 'vertical';
@@ -3,6 +3,16 @@
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  /**
6
- * The literal type that defines which selection range end is active.
6
+ * Defines which end of a selection range is currently active for user interaction.
7
+ *
8
+ * The possible values are:
9
+ * - `start` - The start date of the range is active for selection
10
+ * - `end` - The end date of the range is active for selection
11
+ * - `null` - No range end is currently active
12
+ *
13
+ * @example
14
+ * ```typescript
15
+ * const activeEnd: SelectionRangeEnd = 'start';
16
+ * ```
7
17
  */
8
18
  export type SelectionRangeEnd = 'start' | 'end' | null;
@@ -3,19 +3,34 @@
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  /**
6
- * The type that defines the Calendar selection range.
6
+ * Defines the structure for a Calendar date selection range.
7
+ *
8
+ * This interface represents a date range with a start and end date,
9
+ * commonly used in range selection scenarios.
10
+ *
11
+ * @example
12
+ * ```typescript
13
+ * const range: SelectionRange = {
14
+ * start: new Date(2023, 0, 1),
15
+ * end: new Date(2023, 0, 31)
16
+ * };
17
+ * ```
7
18
  */
8
19
  export interface SelectionRange {
9
20
  /**
10
- * The beginning of the selection range.
21
+ * The starting date of the selection range.
22
+ * Can be null when no start date has been selected.
11
23
  */
12
24
  start: Date | null;
13
25
  /**
14
- * The end of the selection range.
26
+ * The ending date of the selection range.
27
+ * Can be null when no end date has been selected or only start date is set.
15
28
  */
16
29
  end: Date | null;
17
30
  }
18
31
  /**
32
+ * A constant representing an empty selection range with both start and end set to null.
33
+ *
19
34
  * @hidden
20
35
  */
21
36
  export declare const EMPTY_SELECTIONRANGE: SelectionRange;
@@ -5,16 +5,31 @@
5
5
  import { SelectionRangeEnd } from "./selection-range-end.type";
6
6
  import { SelectionRange } from "./selection-range.interface";
7
7
  /**
8
- * Sets the Calendar selection mode.
8
+ * Defines the Calendar selection mode behavior.
9
9
  *
10
10
  * The available values are:
11
- * * `single` (default)
12
- * * `multiple`
13
- * * `range`
11
+ * - `single` (default) - Allows selection of a single date
12
+ * - `multiple` - Allows selection of multiple individual dates
13
+ * - `range` - Allows selection of a date range with start and end dates
14
14
  *
15
+ * @example
16
+ * ```typescript
17
+ * const selectionMode: CalendarSelection = 'range';
18
+ * ```
15
19
  */
16
20
  export type CalendarSelection = 'single' | 'multiple' | 'range';
17
21
  /**
22
+ * Handles range selection logic for Calendar components.
23
+ *
24
+ * This function manages the selection state when the Calendar is in range selection mode,
25
+ * determining which end of the range is active and updating the selection range accordingly.
26
+ *
27
+ * @param date - The date being selected
28
+ * @param selectionRange - The current selection range object
29
+ * @param activeRangeEnd - Which end of the range is currently active ('start' or 'end')
30
+ * @param allowReverse - Whether to allow reverse selection (end date before start date)
31
+ * @returns An object containing the updated activeRangeEnd and selectionRange
32
+ *
18
33
  * @hidden
19
34
  */
20
35
  export declare function handleRangeSelection(date: Date, selectionRange: SelectionRange, activeRangeEnd: SelectionRangeEnd, allowReverse?: boolean): {
@@ -3,11 +3,15 @@
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  /**
6
- * Specifies the Calendar type.
6
+ * Defines the Calendar rendering and navigation behavior type.
7
7
  *
8
8
  * The possible values are:
9
- * - `infinite` (default)
10
- * - `classic`
9
+ * - `infinite` (default) - Provides infinite scrolling navigation through dates
10
+ * - `classic` - Uses traditional button-based navigation with previous/next controls
11
11
  *
12
+ * @example
13
+ * ```typescript
14
+ * const calendarType: CalendarType = 'classic';
15
+ * ```
12
16
  */
13
17
  export type CalendarType = 'infinite' | 'classic';
@@ -3,6 +3,17 @@
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  /**
6
- * The literal type that defines all possible Calendar views.
6
+ * Defines the available Calendar view types for navigation and display.
7
+ *
8
+ * The possible values are:
9
+ * - `month` - Displays days within a month
10
+ * - `year` - Displays months within a year
11
+ * - `decade` - Displays years within a decade
12
+ * - `century` - Displays decades within a century
13
+ *
14
+ * @example
15
+ * ```typescript
16
+ * const view: CalendarView = 'month';
17
+ * ```
7
18
  */
8
19
  export type CalendarView = 'month' | 'year' | 'decade' | 'century';