@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.
Files changed (91) hide show
  1. package/calendar/calendar.component.d.ts +37 -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 +46 -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/dateinput/dateinput.component.d.ts +43 -119
  25. package/dateinput/dateinput.module.d.ts +15 -2
  26. package/dateinput/localization/dateinput-custom-messages.component.d.ts +18 -1
  27. package/dateinput/models/format-placeholder.model.d.ts +15 -20
  28. package/dateinput/models/format-settings.model.d.ts +14 -4
  29. package/dateinput/models/incremental-steps.model.d.ts +16 -1
  30. package/datepicker/datepicker.component.d.ts +65 -127
  31. package/datepicker/datepicker.module.d.ts +11 -2
  32. package/datepicker/localization/datepicker-custom-messages.component.d.ts +11 -1
  33. package/daterange/auto-correct-on.type.d.ts +2 -1
  34. package/daterange/date-range-end-input.directive.d.ts +22 -24
  35. package/daterange/date-range-popup-template.directive.d.ts +13 -2
  36. package/daterange/date-range-popup.component.d.ts +83 -73
  37. package/daterange/date-range-selection.directive.d.ts +10 -9
  38. package/daterange/date-range-start-input.directive.d.ts +26 -27
  39. package/daterange/date-range.component.d.ts +1 -6
  40. package/daterange/date-range.service.d.ts +27 -27
  41. package/datetimepicker/datetimepicker.component.d.ts +88 -79
  42. package/datetimepicker/datetimepicker.module.d.ts +16 -2
  43. package/datetimepicker/localization/datetimepicker-custom-messages.component.d.ts +10 -1
  44. package/esm2022/calendar/calendar.component.mjs +37 -56
  45. package/esm2022/calendar/calendar.module.mjs +10 -21
  46. package/esm2022/calendar/calendars.module.mjs +10 -21
  47. package/esm2022/calendar/localization/calendar-custom-messages.component.mjs +9 -1
  48. package/esm2022/calendar/localization/multiview-calendar-custom-messages.component.mjs +9 -1
  49. package/esm2022/calendar/models/selection-range.interface.mjs +2 -0
  50. package/esm2022/calendar/models/selection.mjs +11 -0
  51. package/esm2022/calendar/multiview-calendar.component.mjs +46 -40
  52. package/esm2022/calendar/multiview-calendar.module.mjs +1 -0
  53. package/esm2022/calendar/templates/cell-template.directive.mjs +16 -19
  54. package/esm2022/calendar/templates/century-cell-template.directive.mjs +15 -19
  55. package/esm2022/calendar/templates/decade-cell-template.directive.mjs +15 -19
  56. package/esm2022/calendar/templates/footer-template.directive.mjs +16 -17
  57. package/esm2022/calendar/templates/header-template.directive.mjs +19 -18
  58. package/esm2022/calendar/templates/header-title-template.directive.mjs +15 -18
  59. package/esm2022/calendar/templates/month-cell-template.directive.mjs +15 -17
  60. package/esm2022/calendar/templates/navigation-item-template.directive.mjs +15 -18
  61. package/esm2022/calendar/templates/weeknumber-cell-template.directive.mjs +15 -17
  62. package/esm2022/calendar/templates/year-cell-template.directive.mjs +15 -20
  63. package/esm2022/dateinput/dateinput.component.mjs +44 -120
  64. package/esm2022/dateinput/dateinput.module.mjs +15 -2
  65. package/esm2022/dateinput/localization/dateinput-custom-messages.component.mjs +18 -1
  66. package/esm2022/datepicker/datepicker.component.mjs +65 -127
  67. package/esm2022/datepicker/datepicker.module.mjs +11 -2
  68. package/esm2022/datepicker/localization/datepicker-custom-messages.component.mjs +11 -1
  69. package/esm2022/daterange/date-range-end-input.directive.mjs +22 -24
  70. package/esm2022/daterange/date-range-popup-template.directive.mjs +13 -2
  71. package/esm2022/daterange/date-range-popup.component.mjs +83 -73
  72. package/esm2022/daterange/date-range-selection.directive.mjs +10 -9
  73. package/esm2022/daterange/date-range-start-input.directive.mjs +26 -27
  74. package/esm2022/daterange/date-range.component.mjs +1 -6
  75. package/esm2022/daterange/date-range.service.mjs +27 -27
  76. package/esm2022/datetimepicker/datetimepicker.component.mjs +88 -79
  77. package/esm2022/datetimepicker/datetimepicker.module.mjs +16 -2
  78. package/esm2022/datetimepicker/localization/datetimepicker-custom-messages.component.mjs +10 -1
  79. package/esm2022/package-metadata.mjs +2 -2
  80. package/esm2022/timepicker/localization/messages.mjs +14 -14
  81. package/esm2022/timepicker/localization/timepicker-custom-messages.component.mjs +12 -1
  82. package/esm2022/timepicker/timepicker.component.mjs +54 -119
  83. package/esm2022/timepicker/timepicker.module.mjs +13 -2
  84. package/esm2022/timepicker/timeselector.component.mjs +24 -40
  85. package/fesm2022/progress-kendo-angular-dateinputs.mjs +870 -1003
  86. package/package.json +13 -12
  87. package/timepicker/localization/messages.d.ts +14 -14
  88. package/timepicker/localization/timepicker-custom-messages.component.d.ts +12 -1
  89. package/timepicker/timepicker.component.d.ts +50 -115
  90. package/timepicker/timepicker.module.d.ts +13 -2
  91. package/timepicker/timeselector.component.d.ts +24 -40
@@ -49,16 +49,9 @@ 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
  * ```
63
56
  */
64
57
  export declare class CalendarComponent implements ControlValueAccessor, OnChanges, DoCheck, OnDestroy, AfterViewChecked, AfterViewInit, Validator {
@@ -76,10 +69,7 @@ export declare class CalendarComponent implements ControlValueAccessor, OnChange
76
69
  private selectionService;
77
70
  private pickerService?;
78
71
  /**
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
72
+ * 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
73
  */
84
74
  set showOtherMonthDays(_showOtherMonthDays: boolean);
85
75
  get showOtherMonthDays(): boolean;
@@ -93,11 +83,10 @@ export declare class CalendarComponent implements ControlValueAccessor, OnChange
93
83
  */
94
84
  get popupId(): string;
95
85
  /**
96
- * Sets or gets the `focusedDate` property of the Calendar and
97
- * defines the focused date of the component
86
+ * Specifies the focused date of the Calendar
98
87
  * ([see example]({% slug dates_calendar %}#toc-focused-dates)).
99
88
  *
100
- * > If the Calendar is out of the min or max range, it normalizes the defined `focusedDate`.
89
+ * If the Calendar is outside the `min` or `max` range, the component normalizes the defined `focusedDate`.
101
90
  */
102
91
  set focusedDate(focusedDate: Date);
103
92
  get focusedDate(): Date;
@@ -106,45 +95,43 @@ export declare class CalendarComponent implements ControlValueAccessor, OnChange
106
95
  */
107
96
  get headerId(): string;
108
97
  /**
109
- * Sets or gets the `min` property of the Calendar and
110
- * defines the minimum allowed date value
98
+ * Specifies the minimum allowed date value
111
99
  * ([see example]({% slug dateranges_calendar %})).
112
- * By default, the `min` value is `1900-1-1`.
100
+ *
101
+ * @default 1900-1-1
113
102
  */
114
103
  set min(min: Date);
115
104
  get min(): Date;
116
105
  /**
117
- * Sets or gets the `max` property of the Calendar and
118
- * defines the maximum allowed date value
106
+ * Specifies the maximum allowed date value
119
107
  * ([see example]({% slug dateranges_calendar %})).
120
- * By default, the `max` value is `2099-12-31`.
108
+ *
109
+ * @default 2099-12-31
121
110
  */
122
111
  set max(max: Date);
123
112
  get max(): Date;
124
113
  /**
125
- * Determines whether the built-in min or max validators are enforced when validating a form.
114
+ * Determines whether the built-in `min` or `max` validators are enforced when validating a form.
126
115
  *
127
116
  * @default false
128
117
  */
129
118
  rangeValidation: boolean;
130
119
  /**
131
- * Sets the format of the displayed Calendar week days' names.
120
+ * Specifies the format of the displayed week day names.
121
+ *
132
122
  * @default 'short'
133
123
  */
134
124
  weekDaysFormat?: WeekDaysFormat;
135
125
  /**
136
126
  * Toggles the visibility of the footer.
127
+ *
137
128
  * @default false
138
129
  */
139
130
  footer: boolean;
140
131
  /**
141
132
  * Sets the Calendar selection mode
142
133
  * ([see example]({% slug selection_calendar %})).
143
- *
144
- * The available values are:
145
- * * `single` (default)
146
- * * `multiple`
147
- * * `range`
134
+ * @default 'single'
148
135
  */
149
136
  set selection(_selection: CalendarSelection);
150
137
  get selection(): CalendarSelection;
@@ -159,7 +146,7 @@ export declare class CalendarComponent implements ControlValueAccessor, OnChange
159
146
  /**
160
147
  * Sets or gets the `value` property of the Calendar and defines the selected value of the component.
161
148
  *
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.
149
+ * 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
150
  */
164
151
  set value(candidate: Date | Date[] | SelectionRange | null);
165
152
  get value(): Date | Date[] | SelectionRange | null;
@@ -171,9 +158,11 @@ export declare class CalendarComponent implements ControlValueAccessor, OnChange
171
158
  */
172
159
  disabled: boolean;
173
160
  /**
174
- * Sets or gets the `tabindex` property of the Calendar. Based on the
161
+ * Specifies the `tabindex` property of the Calendar. Based on the
175
162
  * [HTML `tabindex`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex) behavior,
176
163
  * it determines whether the component is focusable.
164
+ *
165
+ * @default 0
177
166
  */
178
167
  tabindex: number;
179
168
  /**
@@ -182,43 +171,45 @@ export declare class CalendarComponent implements ControlValueAccessor, OnChange
182
171
  set tabIndex(tabIndex: number);
183
172
  get tabIndex(): number;
184
173
  /**
185
- * Sets the dates of the Calendar that will be disabled
174
+ * Specifies the dates of the Calendar that will be disabled
186
175
  * ([see example]({% slug disabled_dates_calendar %})).
187
176
  */
188
177
  set disabledDates(value: ((date: Date) => boolean) | Date[] | Day[]);
189
178
  get disabledDates(): ((date: Date) => boolean) | Date[] | Day[];
190
179
  /**
191
- * Sets or gets the `navigation` property of the Calendar
192
- * and determines whether the navigation side-bar will be displayed
180
+ * Determines whether the navigation side-bar will be displayed
193
181
  * ([see example]({% slug sidebar_calendar %})).
194
182
  * Applies to the [`infinite`]({% slug api_dateinputs_calendarcomponent %}#toc-type) Calendar only.
183
+ *
184
+ * @default true
195
185
  */
196
186
  navigation: boolean;
197
187
  /**
198
188
  * Defines the active view that the Calendar initially renders
199
189
  * ([see example]({% slug viewoptions_calendar %})).
200
- * By default, the active view is `month`.
190
+ * You have to set `activeView` within the `topView`-`bottomView` range.
201
191
  *
202
- * > You have to set `activeView` within the `topView`-`bottomView` range.
192
+ * @default 'month'
203
193
  */
204
194
  activeView: CalendarView;
205
195
  /**
206
196
  * Defines the bottommost view to which the user can navigate
207
197
  * ([see example](slug:viewdepth_calendar)).
198
+ *
199
+ * @default 'month'
208
200
  */
209
201
  bottomView: CalendarView;
210
202
  /**
211
203
  * Defines the topmost view to which the user can navigate
212
204
  * ([see example](slug:viewdepth_calendar)).
205
+ *
206
+ * @default 'century'
213
207
  */
214
208
  topView: CalendarView;
215
209
  /**
216
210
  * Specifies the Calendar type.
217
211
  *
218
- * The possible values are:
219
- * - `infinite` (default)
220
- * - `classic`
221
- *
212
+ * @default 'infinite'
222
213
  */
223
214
  set type(type: CalendarType);
224
215
  get type(): CalendarType;
@@ -226,7 +217,7 @@ export declare class CalendarComponent implements ControlValueAccessor, OnChange
226
217
  * Determines whether to enable animation when navigating to previous/next view.
227
218
  * Applies to the [`classic`]({% slug api_dateinputs_calendarcomponent %}#toc-type) Calendar only.
228
219
  *
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.
220
+ * 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
221
  *
231
222
  * @default false
232
223
  */
@@ -234,6 +225,8 @@ export declare class CalendarComponent implements ControlValueAccessor, OnChange
234
225
  /**
235
226
  * Determines whether to display a week number column in the `month` view
236
227
  * ([see example]({% slug weeknumcolumn_calendar %})).
228
+ *
229
+ * @default false
237
230
  */
238
231
  weekNumber: boolean;
239
232
  /**
@@ -440,10 +433,10 @@ export declare class CalendarComponent implements ControlValueAccessor, OnChange
440
433
  get size(): DateInputSize;
441
434
  private _size;
442
435
  /**
443
- * Specify, which end of the defined selection range should be marked as active.
436
+ * Specifies which end of the defined selection range should be marked as active.
437
+ * Value will be ignored if the selection range is undefined. If range selection is used then the default value is 'start'.
444
438
  *
445
- * > Value will be ignored if the selection range is undefined.
446
- * > If range selection is used then the default value is 'start'.
439
+ * @default 'start'
447
440
  */
448
441
  set activeRangeEnd(_activeRangeEnd: SelectionRangeEnd);
449
442
  get activeRangeEnd(): SelectionRangeEnd;
@@ -513,18 +506,6 @@ export declare class CalendarComponent implements ControlValueAccessor, OnChange
513
506
  onResize(): void;
514
507
  /**
515
508
  * 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
509
  */
529
510
  focus(): void;
530
511
  /**
@@ -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';