@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
|
@@ -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
|
-
* ```
|
|
55
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
110
|
-
* defines the minimum allowed date value
|
|
98
|
+
* Specifies the minimum allowed date value
|
|
111
99
|
* ([see example]({% slug dateranges_calendar %})).
|
|
112
|
-
*
|
|
100
|
+
*
|
|
101
|
+
* @default 1900-1-1
|
|
113
102
|
*/
|
|
114
103
|
set min(min: Date);
|
|
115
104
|
get min(): Date;
|
|
116
105
|
/**
|
|
117
|
-
*
|
|
118
|
-
* defines the maximum allowed date value
|
|
106
|
+
* Specifies the maximum allowed date value
|
|
119
107
|
* ([see example]({% slug dateranges_calendar %})).
|
|
120
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
190
|
+
* You have to set `activeView` within the `topView`-`bottomView` range.
|
|
201
191
|
*
|
|
202
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
19
|
+
* Required for adding all Calendar features in NgModule-based Angular applications.
|
|
20
20
|
*
|
|
21
21
|
* The package exports:
|
|
22
22
|
* - `CellTemplateDirective`—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
|
-
* ```
|
|
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
|
-
*
|
|
43
|
-
*
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
*
|
|
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
|
-
*
|
|
21
|
+
* Required for adding all Calendars features in NgModule-based Angular applications.
|
|
22
22
|
*
|
|
23
23
|
* The package exports:
|
|
24
24
|
* - `CalendarModule`—The calendar module.
|
|
@@ -26,29 +26,18 @@ import * as i14 from "./multiview-calendar.component";
|
|
|
26
26
|
*
|
|
27
27
|
* @example
|
|
28
28
|
*
|
|
29
|
-
* ```
|
|
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
|
-
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
|
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
|
|
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
|
-
*
|
|
8
|
+
* Defines the Calendar selection mode behavior.
|
|
9
9
|
*
|
|
10
10
|
* The available values are:
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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';
|