@progress/kendo-angular-dateinputs 19.1.2-develop.3 → 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
|
@@ -28,7 +28,7 @@ import * as i11 from "./templates/weeknumber-cell-template.directive";
|
|
|
28
28
|
import * as i12 from "./templates/year-cell-template.directive";
|
|
29
29
|
// IMPORTANT: NgModule export kept for backwards compatibility
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* Required for adding all Calendar features in NgModule-based Angular applications.
|
|
32
32
|
*
|
|
33
33
|
* The package exports:
|
|
34
34
|
* - `CellTemplateDirective`—The month cell template directive.
|
|
@@ -42,29 +42,18 @@ import * as i12 from "./templates/year-cell-template.directive";
|
|
|
42
42
|
*
|
|
43
43
|
* @example
|
|
44
44
|
*
|
|
45
|
-
* ```
|
|
46
|
-
* // Import the Calendar module
|
|
47
|
-
* import { CalendarModule } from '@progress/kendo-angular-dateinputs';
|
|
48
|
-
*
|
|
49
|
-
* // The browser platform with a compiler
|
|
50
|
-
* import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
|
51
|
-
*
|
|
45
|
+
* ```typescript
|
|
52
46
|
* import { NgModule } from '@angular/core';
|
|
47
|
+
* import { BrowserModule } from '@angular/platform-browser';
|
|
48
|
+
* import { CalendarModule } from '@progress/kendo-angular-dateinputs';
|
|
53
49
|
*
|
|
54
|
-
*
|
|
55
|
-
*
|
|
56
|
-
*
|
|
57
|
-
*
|
|
58
|
-
*
|
|
59
|
-
* declarations: [AppComponent], // declare app component
|
|
60
|
-
* imports: [BrowserModule, CalendarModule], // import Calendar module
|
|
61
|
-
* bootstrap: [AppComponent]
|
|
50
|
+
* @NgModule({
|
|
51
|
+
* imports: [
|
|
52
|
+
* BrowserModule,
|
|
53
|
+
* CalendarModule
|
|
54
|
+
* ]
|
|
62
55
|
* })
|
|
63
|
-
* export class AppModule {}
|
|
64
|
-
*
|
|
65
|
-
* // Compile and launch the module
|
|
66
|
-
* platformBrowserDynamic().bootstrapModule(AppModule);
|
|
67
|
-
*
|
|
56
|
+
* export class AppModule { }
|
|
68
57
|
* ```
|
|
69
58
|
*/
|
|
70
59
|
export class CalendarModule {
|
|
@@ -30,7 +30,7 @@ import * as i13 from "./localization/multiview-calendar-custom-messages.componen
|
|
|
30
30
|
import * as i14 from "./multiview-calendar.component";
|
|
31
31
|
// IMPORTANT: NgModule export kept for backwards compatibility
|
|
32
32
|
/**
|
|
33
|
-
*
|
|
33
|
+
* Required for adding all Calendars features in NgModule-based Angular applications.
|
|
34
34
|
*
|
|
35
35
|
* The package exports:
|
|
36
36
|
* - `CalendarModule`—The calendar module.
|
|
@@ -38,29 +38,18 @@ import * as i14 from "./multiview-calendar.component";
|
|
|
38
38
|
*
|
|
39
39
|
* @example
|
|
40
40
|
*
|
|
41
|
-
* ```
|
|
42
|
-
* // Import the Calendars module
|
|
43
|
-
* import { CalendarsModule } from '@progress/kendo-angular-dateinputs';
|
|
44
|
-
*
|
|
45
|
-
* // The browser platform with a compiler
|
|
46
|
-
* import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
|
47
|
-
*
|
|
41
|
+
* ```typescript
|
|
48
42
|
* import { NgModule } from '@angular/core';
|
|
43
|
+
* import { BrowserModule } from '@angular/platform-browser';
|
|
44
|
+
* import { CalendarsModule } from '@progress/kendo-angular-dateinputs';
|
|
49
45
|
*
|
|
50
|
-
*
|
|
51
|
-
*
|
|
52
|
-
*
|
|
53
|
-
*
|
|
54
|
-
*
|
|
55
|
-
* declarations: [AppComponent], // declare app component
|
|
56
|
-
* imports: [BrowserModule, CalendarsModule], // import the Calendars module
|
|
57
|
-
* bootstrap: [AppComponent]
|
|
46
|
+
* @NgModule({
|
|
47
|
+
* imports: [
|
|
48
|
+
* BrowserModule,
|
|
49
|
+
* CalendarsModule
|
|
50
|
+
* ]
|
|
58
51
|
* })
|
|
59
|
-
* export class AppModule {}
|
|
60
|
-
*
|
|
61
|
-
* // Compile and launch the module
|
|
62
|
-
* platformBrowserDynamic().bootstrapModule(AppModule);
|
|
63
|
-
*
|
|
52
|
+
* export class AppModule { }
|
|
64
53
|
* ```
|
|
65
54
|
*/
|
|
66
55
|
export class CalendarsModule {
|
|
@@ -8,7 +8,15 @@ import { CalendarMessages } from './calendar-messages';
|
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
import * as i1 from "@progress/kendo-angular-l10n";
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* A component that allows customization of Calendar localization messages.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```html
|
|
15
|
+
* <kendo-calendar-messages prevButtonTitle="Previous">
|
|
16
|
+
* </kendo-calendar-messages>
|
|
17
|
+
* ```
|
|
18
|
+
*
|
|
19
|
+
* For more information, see the [globalization documentation]({% slug globalization_dateinputs %}#toc-custom-messages).
|
|
12
20
|
*/
|
|
13
21
|
export class CalendarCustomMessagesComponent extends CalendarMessages {
|
|
14
22
|
service;
|
|
@@ -8,7 +8,15 @@ import { Messages } from './multiview-calendar-messages';
|
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
import * as i1 from "@progress/kendo-angular-l10n";
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* A component that allows customization of MultiView Calendar localization messages.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```html
|
|
15
|
+
* <kendo-multiviewcalendar-messages prevButtonTitle="Previous">
|
|
16
|
+
* </kendo-multiviewcalendar-messages>
|
|
17
|
+
* ```
|
|
18
|
+
*
|
|
19
|
+
* For more information, see the [globalization documentation]({% slug globalization_dateinputs %}#toc-custom-messages).
|
|
12
20
|
*/
|
|
13
21
|
export class MultiViewCalendarCustomMessagesComponent extends Messages {
|
|
14
22
|
service;
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
/**
|
|
6
|
+
* A constant representing an empty selection range with both start and end set to null.
|
|
7
|
+
*
|
|
6
8
|
* @hidden
|
|
7
9
|
*/
|
|
8
10
|
export const EMPTY_SELECTIONRANGE = { start: null, end: null };
|
|
@@ -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
|
+
* Handles range selection logic for Calendar components.
|
|
7
|
+
*
|
|
8
|
+
* This function manages the selection state when the Calendar is in range selection mode,
|
|
9
|
+
* determining which end of the range is active and updating the selection range accordingly.
|
|
10
|
+
*
|
|
11
|
+
* @param date - The date being selected
|
|
12
|
+
* @param selectionRange - The current selection range object
|
|
13
|
+
* @param activeRangeEnd - Which end of the range is currently active ('start' or 'end')
|
|
14
|
+
* @param allowReverse - Whether to allow reverse selection (end date before start date)
|
|
15
|
+
* @returns An object containing the updated activeRangeEnd and selectionRange
|
|
16
|
+
*
|
|
6
17
|
* @hidden
|
|
7
18
|
*/
|
|
8
19
|
export function handleRangeSelection(date, selectionRange, activeRangeEnd, allowReverse = false) {
|
|
@@ -63,16 +63,9 @@ export const RANGE_CALENDAR_RANGE_VALIDATORS = {
|
|
|
63
63
|
};
|
|
64
64
|
/**
|
|
65
65
|
* Represents the Kendo UI MultiViewCalendar component for Angular.
|
|
66
|
-
*
|
|
67
66
|
* @example
|
|
68
|
-
* ```
|
|
69
|
-
*
|
|
70
|
-
* selector: 'my-app',
|
|
71
|
-
* template: `
|
|
72
|
-
* <kendo-multiviewcalendar></kendo-multiviewcalendar>
|
|
73
|
-
* `
|
|
74
|
-
* })
|
|
75
|
-
* export class AppComponent { }
|
|
67
|
+
* ```html
|
|
68
|
+
* <kendo-multiviewcalendar> </kendo-multiviewcalendar>
|
|
76
69
|
* ```
|
|
77
70
|
*/
|
|
78
71
|
export class MultiViewCalendarComponent {
|
|
@@ -85,7 +78,8 @@ export class MultiViewCalendarComponent {
|
|
|
85
78
|
disabledDatesService;
|
|
86
79
|
selectionService;
|
|
87
80
|
/**
|
|
88
|
-
*
|
|
81
|
+
* Shows days that fall outside the current month ([see example]({% slug viewoptions_multiviewcalendar %}#toc-displaying-other-month-days)).
|
|
82
|
+
*
|
|
89
83
|
* @default true
|
|
90
84
|
*/
|
|
91
85
|
showOtherMonthDays = true;
|
|
@@ -125,11 +119,10 @@ export class MultiViewCalendarComponent {
|
|
|
125
119
|
*/
|
|
126
120
|
id;
|
|
127
121
|
/**
|
|
128
|
-
*
|
|
129
|
-
* defines the focused date of the component
|
|
122
|
+
* Specifies the focused date of the Calendar
|
|
130
123
|
* ([see example]({% slug dates_multiviewcalendar %}#toc-focused-dates)).
|
|
131
124
|
*
|
|
132
|
-
*
|
|
125
|
+
* If the Calendar is outside the `min` or `max` range, the component normalizes the defined `focusedDate`.
|
|
133
126
|
*/
|
|
134
127
|
set focusedDate(focusedDate) {
|
|
135
128
|
this._focusedDate = focusedDate || getToday();
|
|
@@ -139,6 +132,7 @@ export class MultiViewCalendarComponent {
|
|
|
139
132
|
}
|
|
140
133
|
/**
|
|
141
134
|
* Toggles the visibility of the footer.
|
|
135
|
+
*
|
|
142
136
|
* @default false
|
|
143
137
|
*/
|
|
144
138
|
footer = false;
|
|
@@ -161,9 +155,9 @@ export class MultiViewCalendarComponent {
|
|
|
161
155
|
return this.views === 1 ? this.id + 'header-' : null;
|
|
162
156
|
}
|
|
163
157
|
/**
|
|
164
|
-
*
|
|
165
|
-
*
|
|
166
|
-
*
|
|
158
|
+
* Specifies the minimum allowed date value
|
|
159
|
+
*
|
|
160
|
+
* @default 1970-01-01
|
|
167
161
|
*/
|
|
168
162
|
set min(min) {
|
|
169
163
|
this._min = min || new Date(MIN_DATE);
|
|
@@ -172,9 +166,9 @@ export class MultiViewCalendarComponent {
|
|
|
172
166
|
return this._min;
|
|
173
167
|
}
|
|
174
168
|
/**
|
|
175
|
-
*
|
|
176
|
-
*
|
|
177
|
-
*
|
|
169
|
+
* Specifies the maximum allowed date value
|
|
170
|
+
*
|
|
171
|
+
* @default 2099-12-31
|
|
178
172
|
*/
|
|
179
173
|
set max(max) {
|
|
180
174
|
this._max = max || new Date(MAX_DATE);
|
|
@@ -183,7 +177,7 @@ export class MultiViewCalendarComponent {
|
|
|
183
177
|
return this._max;
|
|
184
178
|
}
|
|
185
179
|
/**
|
|
186
|
-
* Determines whether the built-in min or max validators are enforced when validating a form.
|
|
180
|
+
* Determines whether the built-in `min` or `max` validators are enforced when validating a form.
|
|
187
181
|
*
|
|
188
182
|
* @default false
|
|
189
183
|
*/
|
|
@@ -192,16 +186,14 @@ export class MultiViewCalendarComponent {
|
|
|
192
186
|
* Determines whether the built-in validator for disabled
|
|
193
187
|
* date ranges is enforced when validating a form
|
|
194
188
|
* ([see example](slug:disabled_dates_multiviewcalendar)).
|
|
189
|
+
*
|
|
190
|
+
* @default false
|
|
195
191
|
*/
|
|
196
192
|
disabledDatesRangeValidation = false;
|
|
197
193
|
/**
|
|
198
194
|
* Sets the Calendar selection mode
|
|
199
195
|
* ([see example]({% slug selection_multiviewcalendar %})).
|
|
200
|
-
*
|
|
201
|
-
* The available values are:
|
|
202
|
-
* * `single` (default)
|
|
203
|
-
* * `multiple`
|
|
204
|
-
* * `range`
|
|
196
|
+
* @default 'single'
|
|
205
197
|
*/
|
|
206
198
|
set selection(_selection) {
|
|
207
199
|
this.selectionSetter = true;
|
|
@@ -233,16 +225,19 @@ export class MultiViewCalendarComponent {
|
|
|
233
225
|
return this._value;
|
|
234
226
|
}
|
|
235
227
|
/**
|
|
236
|
-
*
|
|
237
|
-
* determines whether the component is active
|
|
228
|
+
* Specifies whether the component is disabled
|
|
238
229
|
* ([see example]({% slug disabled_multiviewcalendar %})).
|
|
239
230
|
* To learn how to disable the component in reactive forms, refer to the article on [Forms Support](slug:formssupport_multiviewcalendar#toc-managing-the-multiviewcalendar-disabled-state-in-reactive-forms).
|
|
231
|
+
*
|
|
232
|
+
* @default false
|
|
240
233
|
*/
|
|
241
234
|
disabled = false;
|
|
242
235
|
/**
|
|
243
|
-
*
|
|
236
|
+
* Specifies the `tabindex` property of the Calendar. Based on the
|
|
244
237
|
* [HTML `tabindex`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex) behavior,
|
|
245
238
|
* it determines whether the component is focusable.
|
|
239
|
+
*
|
|
240
|
+
* @default 0
|
|
246
241
|
*/
|
|
247
242
|
tabindex = 0;
|
|
248
243
|
/**
|
|
@@ -255,7 +250,8 @@ export class MultiViewCalendarComponent {
|
|
|
255
250
|
return this.tabindex;
|
|
256
251
|
}
|
|
257
252
|
/**
|
|
258
|
-
*
|
|
253
|
+
* Specifies the format of the displayed week day names.
|
|
254
|
+
*
|
|
259
255
|
* @default 'short'
|
|
260
256
|
*/
|
|
261
257
|
weekDaysFormat = "short";
|
|
@@ -264,31 +260,37 @@ export class MultiViewCalendarComponent {
|
|
|
264
260
|
*/
|
|
265
261
|
isActive = false;
|
|
266
262
|
/**
|
|
267
|
-
*
|
|
263
|
+
* Specifies the dates of the MultiViewCalendar that will be disabled
|
|
268
264
|
* ([see example]({% slug disabled_dates_multiviewcalendar %})).
|
|
269
265
|
*/
|
|
270
266
|
set disabledDates(value) {
|
|
271
267
|
this.disabledDatesService.initialize(value);
|
|
272
268
|
}
|
|
273
269
|
/**
|
|
274
|
-
*
|
|
275
|
-
* ([see example]({% slug viewoptions_multiviewcalendar %})).
|
|
270
|
+
* Specifies the active view that the Calendar initially renders.
|
|
276
271
|
* By default, the active view is `month`.
|
|
277
272
|
*
|
|
278
273
|
* > You have to set `activeView` within the `topView`-`bottomView` range.
|
|
274
|
+
*
|
|
275
|
+
* @default month
|
|
279
276
|
*/
|
|
280
277
|
activeView = CalendarViewEnum[CalendarViewEnum.month];
|
|
281
278
|
/**
|
|
282
|
-
*
|
|
283
|
-
*
|
|
279
|
+
* Specifies the bottommost view to which you can navigate.
|
|
280
|
+
*
|
|
281
|
+
* @default month
|
|
284
282
|
*/
|
|
285
283
|
bottomView = CalendarViewEnum[CalendarViewEnum.month];
|
|
286
284
|
/**
|
|
287
|
-
*
|
|
285
|
+
* Specifies the topmost view to which you can navigate.
|
|
286
|
+
*
|
|
287
|
+
* @default century
|
|
288
288
|
*/
|
|
289
289
|
topView = CalendarViewEnum[CalendarViewEnum.century];
|
|
290
290
|
/**
|
|
291
|
-
* Determines whether to display a header for every view (for example the month name).
|
|
291
|
+
* Determines whether to display a header for every view (for example, the month name).
|
|
292
|
+
*
|
|
293
|
+
* @default false
|
|
292
294
|
*/
|
|
293
295
|
showViewHeader = false;
|
|
294
296
|
/**
|
|
@@ -300,12 +302,14 @@ export class MultiViewCalendarComponent {
|
|
|
300
302
|
*/
|
|
301
303
|
animateNavigation = false;
|
|
302
304
|
/**
|
|
303
|
-
*
|
|
305
|
+
* Specifies whether to display a week number column in the `month` view
|
|
304
306
|
* ([see example]({% slug weeknumcolumn_multiviewcalendar %})).
|
|
307
|
+
*
|
|
308
|
+
* @default false
|
|
305
309
|
*/
|
|
306
310
|
weekNumber = false;
|
|
307
311
|
/**
|
|
308
|
-
*
|
|
312
|
+
* Specifies which end of the defined selection range should be marked as active.
|
|
309
313
|
*
|
|
310
314
|
* > Value will be ignored if the selection range is undefined.
|
|
311
315
|
* > If range selection is used then the default value is 'start'.
|
|
@@ -317,7 +321,7 @@ export class MultiViewCalendarComponent {
|
|
|
317
321
|
return (this.selection === 'range' && !this._activeRangeEnd) ? 'start' : this._activeRangeEnd;
|
|
318
322
|
}
|
|
319
323
|
/**
|
|
320
|
-
*
|
|
324
|
+
* Specifies the `selectionRange` property and
|
|
321
325
|
* defines the selection range of the component
|
|
322
326
|
* ([see example](slug:selection_multiviewcalendar#toc-range-selection)).
|
|
323
327
|
* > We recommend using the `value` property as it now supports `range` selection.
|
|
@@ -332,8 +336,10 @@ export class MultiViewCalendarComponent {
|
|
|
332
336
|
return this._selectionRange;
|
|
333
337
|
}
|
|
334
338
|
/**
|
|
335
|
-
*
|
|
339
|
+
* Specifies the `views` property and
|
|
336
340
|
* defines the number of rendered months.
|
|
341
|
+
*
|
|
342
|
+
* @default 2
|
|
337
343
|
*/
|
|
338
344
|
views = 2;
|
|
339
345
|
/**
|
|
@@ -25,6 +25,7 @@ import * as i11 from "./templates/weeknumber-cell-template.directive";
|
|
|
25
25
|
import * as i12 from "./templates/year-cell-template.directive";
|
|
26
26
|
// IMPORTANT: NgModule export kept for backwards compatibility
|
|
27
27
|
/**
|
|
28
|
+
* Required for adding all MultiViewCalendar features in NgModule-based Angular applications.
|
|
28
29
|
* The package exports:
|
|
29
30
|
* - `CellTemplateDirective`—The month cell template directive.
|
|
30
31
|
* - `MonthCellTemplateDirective`—The month cell template directive.
|
|
@@ -5,30 +5,27 @@
|
|
|
5
5
|
import { Directive, TemplateRef } from '@angular/core';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
8
|
+
* A directive for customizing the cells in the Calendar component.
|
|
9
|
+
*
|
|
10
|
+
* This directive allows you to define a custom template for rendering the content of calendar cells
|
|
11
|
+
* in the month view. The template context provides access to the current date and cell context information.
|
|
12
|
+
*
|
|
13
|
+
* Template Context Variables:
|
|
14
|
+
* - `date` - The Date object representing the current cell's date
|
|
15
|
+
* - `cellContext` - Additional context information about the current cell
|
|
12
16
|
*
|
|
13
17
|
* For more examples, refer to the article on [templates]({% slug templates_calendar %}).
|
|
14
18
|
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
19
|
+
* `kendoCalendarCellTemplate` is equivalent to
|
|
20
|
+
* [`kendoCalendarMonthCellTemplate`]({% slug api_dateinputs_monthcelltemplatedirective %}).
|
|
17
21
|
*
|
|
18
22
|
* @example
|
|
19
|
-
* ```
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
* <ng-template kendoCalendarCellTemplate let-date>
|
|
26
|
-
* <span class="custom">{{date.getDate()}}</span>
|
|
27
|
-
* </ng-template>
|
|
28
|
-
* </kendo-calendar>
|
|
29
|
-
* `
|
|
30
|
-
* })
|
|
31
|
-
* export class AppComponent { }
|
|
23
|
+
* ```html
|
|
24
|
+
* <kendo-calendar>
|
|
25
|
+
* <ng-template kendoCalendarCellTemplate let-date let-cellContext="cellContext">
|
|
26
|
+
* <span class="custom">{{date.getDate()}}</span>
|
|
27
|
+
* </ng-template>
|
|
28
|
+
* </kendo-calendar>
|
|
32
29
|
* ```
|
|
33
30
|
*/
|
|
34
31
|
export class CellTemplateDirective {
|
|
@@ -5,29 +5,25 @@
|
|
|
5
5
|
import { Directive, TemplateRef } from '@angular/core';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* the
|
|
8
|
+
* A directive for customizing the century cells in the Calendar component.
|
|
9
|
+
*
|
|
10
|
+
* This directive allows you to define a custom template for rendering the content of century cells
|
|
11
|
+
* when the Calendar is in century view. The template context provides access to the current date
|
|
12
|
+
* and cell context information.
|
|
13
|
+
*
|
|
14
|
+
* Template Context Variables:
|
|
15
|
+
* - `date` - The Date object representing the current cell's date
|
|
16
|
+
* - `cellContext` - Additional context information about the current century cell
|
|
12
17
|
*
|
|
13
18
|
* For more examples, refer to the article on [templates]({% slug templates_calendar %}).
|
|
14
19
|
*
|
|
15
20
|
* @example
|
|
16
|
-
* ```
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
* <ng-template kendoCalendarCenturyCellTemplate let-context="cellContext">
|
|
23
|
-
* <span class="custom">{{context.formattedValue}}</span>
|
|
24
|
-
* </ng-template>
|
|
25
|
-
* </kendo-calendar>
|
|
26
|
-
* `
|
|
27
|
-
* })
|
|
28
|
-
* export class AppComponent {
|
|
29
|
-
* public activeView: CalendarView = 'century';
|
|
30
|
-
* }
|
|
21
|
+
* ```html
|
|
22
|
+
* <kendo-calendar [activeView]="activeView">
|
|
23
|
+
* <ng-template kendoCalendarCenturyCellTemplate let-context="cellContext">
|
|
24
|
+
* <span class="custom">{{context.formattedValue}}</span>
|
|
25
|
+
* </ng-template>
|
|
26
|
+
* </kendo-calendar>
|
|
31
27
|
* ```
|
|
32
28
|
*/
|
|
33
29
|
export class CenturyCellTemplateDirective {
|
|
@@ -5,29 +5,25 @@
|
|
|
5
5
|
import { Directive, TemplateRef } from '@angular/core';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* the
|
|
8
|
+
* A directive for customizing the decade cells in the Calendar component.
|
|
9
|
+
*
|
|
10
|
+
* This directive allows you to define a custom template for rendering the content of decade cells
|
|
11
|
+
* when the Calendar is in decade view. The template context provides access to the current date
|
|
12
|
+
* and cell context information.
|
|
13
|
+
*
|
|
14
|
+
* Template Context Variables:
|
|
15
|
+
* - `date` - The Date object representing the current cell's date
|
|
16
|
+
* - `cellContext` - Additional context information about the current decade cell
|
|
12
17
|
*
|
|
13
18
|
* For more examples, refer to the article on [templates]({% slug templates_calendar %}).
|
|
14
19
|
*
|
|
15
20
|
* @example
|
|
16
|
-
* ```
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
* <ng-template kendoCalendarDecadeCellTemplate let-context="cellContext">
|
|
23
|
-
* <span class="custom">{{context.formattedValue}}</span>
|
|
24
|
-
* </ng-template>
|
|
25
|
-
* </kendo-calendar>
|
|
26
|
-
* `
|
|
27
|
-
* })
|
|
28
|
-
* export class AppComponent {
|
|
29
|
-
* public activeView: CalendarView = 'decade';
|
|
30
|
-
* }
|
|
21
|
+
* ```html
|
|
22
|
+
* <kendo-calendar [activeView]="activeView">
|
|
23
|
+
* <ng-template kendoCalendarDecadeCellTemplate let-context="cellContext">
|
|
24
|
+
* <span class="custom">{{context.formattedValue}}</span>
|
|
25
|
+
* </ng-template>
|
|
26
|
+
* </kendo-calendar>
|
|
31
27
|
* ```
|
|
32
28
|
*/
|
|
33
29
|
export class DecadeCellTemplateDirective {
|
|
@@ -5,27 +5,26 @@
|
|
|
5
5
|
import { Directive, TemplateRef } from '@angular/core';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
8
|
+
* A directive for customizing the footer in the Calendar component.
|
|
9
|
+
*
|
|
10
|
+
* This directive allows you to define a custom template for rendering the footer content.
|
|
11
|
+
* The template context provides access to the current date and active view.
|
|
12
|
+
*
|
|
13
|
+
* Template Context Variables:
|
|
14
|
+
* - `date` - The Date object representing the current calendar context
|
|
15
|
+
* - `activeView` - The current active view of the Calendar
|
|
12
16
|
*
|
|
13
17
|
* For more examples, refer to the article on [templates]({% slug templates_calendar %}).
|
|
14
18
|
*
|
|
15
19
|
* @example
|
|
16
|
-
* ```
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
* </ng-template>
|
|
25
|
-
* </kendo-calendar>
|
|
26
|
-
* `
|
|
27
|
-
* })
|
|
28
|
-
* export class AppComponent { }
|
|
20
|
+
* ```html
|
|
21
|
+
* <kendo-calendar>
|
|
22
|
+
* <ng-template kendoCalendarFooterTemplate let-date let-activeView="activeView">
|
|
23
|
+
* <div class="custom">
|
|
24
|
+
* Today: {{date | date:'short'}} ({{activeView}} view)
|
|
25
|
+
* </div>
|
|
26
|
+
* </ng-template>
|
|
27
|
+
* </kendo-calendar>
|
|
29
28
|
* ```
|
|
30
29
|
*/
|
|
31
30
|
export class FooterTemplateDirective {
|
|
@@ -5,28 +5,29 @@
|
|
|
5
5
|
import { Directive, TemplateRef } from '@angular/core';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
* current active view
|
|
8
|
+
* A directive for customizing the entire header in the Calendar component.
|
|
9
|
+
*
|
|
10
|
+
* This directive allows you to define a custom template for rendering the complete header content,
|
|
11
|
+
* including navigation controls and title. The template context provides access to the title text,
|
|
12
|
+
* current date, and active view.
|
|
13
|
+
*
|
|
14
|
+
* Template Context Variables:
|
|
15
|
+
* - `title` - The formatted title text for the header
|
|
16
|
+
* - `date` - The Date object representing the current header context
|
|
17
|
+
* - `activeView` - The current active view of the Calendar
|
|
13
18
|
*
|
|
14
19
|
* For more examples, refer to the article on [templates]({% slug templates_calendar %}).
|
|
15
20
|
*
|
|
16
21
|
* @example
|
|
17
|
-
* ```
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
* </kendo-calendar>
|
|
27
|
-
* `
|
|
28
|
-
* })
|
|
29
|
-
* export class AppComponent { }
|
|
22
|
+
* ```html
|
|
23
|
+
* <kendo-calendar>
|
|
24
|
+
* <ng-template kendoCalendarHeaderTemplate let-title let-date="date">
|
|
25
|
+
* <div class="custom">
|
|
26
|
+
* <span>{{title}}</span>
|
|
27
|
+
* <small>{{date | date:'yyyy-MM-dd'}}</small>
|
|
28
|
+
* </div>
|
|
29
|
+
* </ng-template>
|
|
30
|
+
* </kendo-calendar>
|
|
30
31
|
* ```
|
|
31
32
|
*/
|
|
32
33
|
export class HeaderTemplateDirective {
|