@progress/kendo-angular-dateinputs 17.0.0-develop.9 → 17.0.1-develop.1
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 +1 -1
- package/calendar/footer.component.d.ts +1 -1
- package/calendar/for.directive.d.ts +1 -1
- package/calendar/header.component.d.ts +1 -1
- package/calendar/horizontal-view-list.component.d.ts +1 -1
- package/calendar/localization/calendar-messages.d.ts +1 -1
- package/calendar/localization/multiview-calendar-messages.d.ts +1 -1
- package/calendar/models/orientation.d.ts +1 -1
- package/calendar/models/selection-range-end.type.d.ts +1 -1
- package/calendar/models/selection.d.ts +1 -1
- package/calendar/models/type.d.ts +1 -1
- package/calendar/models/view.type.d.ts +1 -1
- package/calendar/multiview-calendar.component.d.ts +1 -1
- package/calendar/navigation.component.d.ts +1 -1
- package/calendar/view-list.component.d.ts +1 -1
- package/calendar/view.component.d.ts +1 -1
- package/common/models/fillmode.d.ts +1 -1
- package/common/models/rounded.d.ts +1 -1
- package/common/models/size.d.ts +1 -1
- package/common/models/week-days-format.d.ts +1 -1
- package/dateinput/dateinput.component.d.ts +2 -2
- package/dateinput/localization/messages.d.ts +1 -1
- package/dateinput/models/format-placeholder.model.d.ts +1 -1
- package/datepicker/datepicker.component.d.ts +1 -1
- package/datepicker/localization/messages.d.ts +1 -1
- package/daterange/auto-correct-on.type.d.ts +1 -1
- package/daterange/date-range-end-input.directive.d.ts +1 -1
- package/daterange/date-range-popup.component.d.ts +86 -2
- package/daterange/date-range-selection.directive.d.ts +1 -1
- package/daterange/date-range-start-input.directive.d.ts +1 -1
- package/daterange/date-range.component.d.ts +1 -1
- package/daterange/localization/messages.d.ts +1 -1
- package/datetimepicker/datetimepicker.component.d.ts +1 -1
- package/datetimepicker/localization/messages.d.ts +1 -1
- package/datetimepicker/models/active-tab.type.d.ts +1 -1
- package/{esm2020 → esm2022}/calendar/calendar.component.mjs +277 -167
- package/{esm2020 → esm2022}/calendar/calendar.module.mjs +14 -14
- package/{esm2020 → esm2022}/calendar/calendars.module.mjs +14 -14
- package/{esm2020 → esm2022}/calendar/footer.component.mjs +10 -6
- package/{esm2020 → esm2022}/calendar/for.directive.mjs +13 -4
- package/{esm2020 → esm2022}/calendar/header.component.mjs +46 -29
- package/{esm2020 → esm2022}/calendar/horizontal-view-list.component.mjs +63 -40
- package/{esm2020 → esm2022}/calendar/localization/calendar-custom-messages.component.mjs +9 -8
- package/{esm2020 → esm2022}/calendar/localization/calendar-localized-messages.directive.mjs +9 -8
- package/{esm2020/calendar/localization/multiview-calendar-messages.mjs → esm2022/calendar/localization/calendar-messages.mjs} +21 -5
- package/{esm2020 → esm2022}/calendar/localization/multiview-calendar-custom-messages.component.mjs +9 -8
- package/{esm2020 → esm2022}/calendar/localization/multiview-calendar-localized-messages.directive.mjs +9 -8
- package/esm2022/calendar/localization/multiview-calendar-messages.mjs +45 -0
- package/{esm2020 → esm2022}/calendar/multiview-calendar.component.mjs +300 -212
- package/{esm2020 → esm2022}/calendar/multiview-calendar.module.mjs +11 -11
- package/{esm2020 → esm2022}/calendar/navigation.component.mjs +34 -15
- package/{esm2020 → esm2022}/calendar/services/bus-view.service.mjs +8 -6
- package/{esm2020 → esm2022}/calendar/services/century-view.service.mjs +15 -17
- package/{esm2020 → esm2022}/calendar/services/decade-view.service.mjs +15 -17
- package/{esm2020 → esm2022}/calendar/services/disabled-dates.service.mjs +12 -14
- package/{esm2020 → esm2022}/calendar/services/dom.service.mjs +21 -3
- package/{esm2020 → esm2022}/calendar/services/month-view.service.mjs +16 -15
- package/{esm2020 → esm2022}/calendar/services/navigation.service.mjs +4 -3
- package/{esm2020 → esm2022}/calendar/services/scroll-sync.service.mjs +11 -3
- package/{esm2020 → esm2022}/calendar/services/selection.service.mjs +5 -3
- package/{esm2020 → esm2022}/calendar/services/weeknames.service.mjs +4 -3
- package/{esm2020 → esm2022}/calendar/services/year-view.service.mjs +16 -15
- package/{esm2020 → esm2022}/calendar/templates/cell-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/calendar/templates/century-cell-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/calendar/templates/decade-cell-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/calendar/templates/footer-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/calendar/templates/header-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/calendar/templates/header-title-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/calendar/templates/month-cell-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/calendar/templates/navigation-item-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/calendar/templates/weeknumber-cell-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/calendar/templates/year-cell-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/calendar/view-list.component.mjs +68 -37
- package/{esm2020 → esm2022}/calendar/view.component.mjs +50 -24
- package/{esm2020 → esm2022}/common/picker.service.mjs +7 -6
- package/{esm2020 → esm2022}/dateinput/dateinput.component.mjs +282 -231
- package/{esm2020 → esm2022}/dateinput/dateinput.module.mjs +6 -6
- package/{esm2020 → esm2022}/dateinput/localization/dateinput-custom-messages.component.mjs +9 -8
- package/{esm2020 → esm2022}/dateinput/localization/dateinput-localized-messages.directive.mjs +9 -8
- package/{esm2020 → esm2022}/dateinput/localization/messages.mjs +15 -3
- package/{esm2020 → esm2022}/dateinputs.module.mjs +22 -22
- package/{esm2020 → esm2022}/datepicker/datepicker.component.mjs +403 -282
- package/{esm2020 → esm2022}/datepicker/datepicker.module.mjs +16 -16
- package/{esm2020 → esm2022}/datepicker/localization/datepicker-custom-messages.component.mjs +9 -8
- package/{esm2020 → esm2022}/datepicker/localization/datepicker-localized-messages.directive.mjs +9 -8
- package/esm2022/datepicker/localization/messages.mjs +57 -0
- package/{esm2020 → esm2022}/daterange/date-range-end-input.directive.mjs +38 -28
- package/{esm2020 → esm2022}/daterange/date-range-input.mjs +19 -13
- package/{esm2020 → esm2022}/daterange/date-range-popup-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/daterange/date-range-popup.component.mjs +324 -87
- package/{esm2020 → esm2022}/daterange/date-range-selection.directive.mjs +41 -36
- package/{esm2020 → esm2022}/daterange/date-range-start-input.directive.mjs +40 -29
- package/{esm2020 → esm2022}/daterange/date-range.component.mjs +31 -14
- package/{esm2020 → esm2022}/daterange/date-range.module.mjs +16 -16
- package/{esm2020 → esm2022}/daterange/date-range.service.mjs +34 -33
- package/{esm2020 → esm2022}/daterange/localization/daterange-popup-custom-messages.component.mjs +9 -8
- package/{esm2020 → esm2022}/daterange/localization/daterange-popup-localized-messages.directive.mjs +9 -8
- package/{esm2020 → esm2022}/daterange/localization/messages.mjs +19 -3
- package/{esm2020 → esm2022}/datetimepicker/datetimepicker.component.mjs +390 -292
- package/{esm2020 → esm2022}/datetimepicker/datetimepicker.module.mjs +22 -22
- package/{esm2020 → esm2022}/datetimepicker/localization/datetimepicker-custom-messages.component.mjs +9 -8
- package/{esm2020 → esm2022}/datetimepicker/localization/localized-messages.directive.mjs +9 -8
- package/esm2022/datetimepicker/localization/messages.mjs +147 -0
- package/{esm2020 → esm2022}/index.mjs +0 -1
- package/{esm2020 → esm2022}/package-metadata.mjs +2 -2
- package/{esm2020 → esm2022}/preventable-event.mjs +2 -3
- package/esm2022/timepicker/localization/messages.mjs +99 -0
- package/{esm2020 → esm2022}/timepicker/localization/timepicker-custom-messages.component.mjs +9 -8
- package/{esm2020 → esm2022}/timepicker/localization/timepicker-localized-messages.directive.mjs +9 -8
- package/{esm2020 → esm2022}/timepicker/localization/timeselector-custom-messages.component.mjs +9 -8
- package/{esm2020 → esm2022}/timepicker/localization/timeselector-localized-messages.directive.mjs +9 -8
- package/{esm2020 → esm2022}/timepicker/services/dayperiod.service.mjs +7 -3
- package/{esm2020 → esm2022}/timepicker/services/dom.service.mjs +7 -3
- package/{esm2020 → esm2022}/timepicker/services/hours.service.mjs +10 -5
- package/{esm2020 → esm2022}/timepicker/services/milliseconds.service.mjs +9 -4
- package/{esm2020 → esm2022}/timepicker/services/minutes.service.mjs +9 -4
- package/{esm2020 → esm2022}/timepicker/services/seconds.service.mjs +9 -4
- package/{esm2020 → esm2022}/timepicker/timelist.component.mjs +45 -27
- package/{esm2020 → esm2022}/timepicker/timepicker.component.mjs +301 -219
- package/{esm2020 → esm2022}/timepicker/timepicker.module.mjs +14 -14
- package/{esm2020 → esm2022}/timepicker/timeselector.component.mjs +96 -73
- package/{esm2020 → esm2022}/virtualization/services/row-height.service.mjs +5 -2
- package/{esm2020 → esm2022}/virtualization/services/scroller.service.mjs +14 -3
- package/{esm2020 → esm2022}/virtualization/virtualization.component.mjs +42 -28
- package/{fesm2020 → fesm2022}/progress-kendo-angular-dateinputs.mjs +3758 -2455
- package/index.d.ts +0 -1
- package/package.json +20 -26
- package/schematics/ngAdd/index.js +1 -1
- package/timepicker/localization/messages.d.ts +1 -1
- package/timepicker/timelist.component.d.ts +1 -1
- package/timepicker/timepicker.component.d.ts +2 -1
- package/timepicker/timeselector.component.d.ts +1 -1
- package/util.d.ts +1 -1
- package/virtualization/services/scroller.service.d.ts +2 -2
- package/virtualization/virtualization.component.d.ts +1 -1
- package/common/adaptive.module.d.ts +0 -18
- package/esm2020/calendar/localization/calendar-messages.mjs +0 -29
- package/esm2020/common/adaptive.module.mjs +0 -44
- package/esm2020/datepicker/localization/messages.mjs +0 -33
- package/esm2020/datetimepicker/localization/messages.mjs +0 -63
- package/esm2020/timepicker/localization/messages.mjs +0 -47
- package/fesm2015/progress-kendo-angular-dateinputs.mjs +0 -19188
- /package/{esm2020 → esm2022}/calendar/models/cell-context.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/calendar/models/keydown.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/calendar/models/navigation-action.enum.mjs +0 -0
- /package/{esm2020 → esm2022}/calendar/models/orientation.mjs +0 -0
- /package/{esm2020 → esm2022}/calendar/models/row-length-options.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/calendar/models/scrollable.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/calendar/models/selection-range-end.type.mjs +0 -0
- /package/{esm2020 → esm2022}/calendar/models/selection-range.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/calendar/models/selection.mjs +0 -0
- /package/{esm2020 → esm2022}/calendar/models/type.mjs +0 -0
- /package/{esm2020 → esm2022}/calendar/models/view-service.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/calendar/models/view.enum.mjs +0 -0
- /package/{esm2020 → esm2022}/calendar/models/view.type.mjs +0 -0
- /package/{esm2020 → esm2022}/common/dom-queries.mjs +0 -0
- /package/{esm2020 → esm2022}/common/models/fillmode.mjs +0 -0
- /package/{esm2020 → esm2022}/common/models/rounded.mjs +0 -0
- /package/{esm2020 → esm2022}/common/models/size.mjs +0 -0
- /package/{esm2020 → esm2022}/common/models/week-days-format.mjs +0 -0
- /package/{esm2020 → esm2022}/common/utils.mjs +0 -0
- /package/{esm2020 → esm2022}/dateinput/arrow.enum.mjs +0 -0
- /package/{esm2020 → esm2022}/dateinput/models/format-placeholder.model.mjs +0 -0
- /package/{esm2020 → esm2022}/dateinput/models/format-settings.model.mjs +0 -0
- /package/{esm2020 → esm2022}/dateinput/models/incremental-steps.model.mjs +0 -0
- /package/{esm2020 → esm2022}/daterange/auto-correct-on.type.mjs +0 -0
- /package/{esm2020 → esm2022}/datetimepicker/models/active-tab.type.mjs +0 -0
- /package/{esm2020 → esm2022}/defaults.mjs +0 -0
- /package/{esm2020 → esm2022}/directives.mjs +0 -0
- /package/{esm2020 → esm2022}/popup-settings.model.mjs +0 -0
- /package/{esm2020 → esm2022}/progress-kendo-angular-dateinputs.mjs +0 -0
- /package/{esm2020 → esm2022}/timepicker/models/incremental-steps.model.mjs +0 -0
- /package/{esm2020 → esm2022}/timepicker/models/list-item.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/timepicker/models/list-service-settings.mjs +0 -0
- /package/{esm2020 → esm2022}/timepicker/models/list-service.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/timepicker/models/time-part.default.mjs +0 -0
- /package/{esm2020 → esm2022}/timepicker/util.mjs +0 -0
- /package/{esm2020 → esm2022}/util.mjs +0 -0
- /package/{esm2020 → esm2022}/validators/disabled-date.validator.mjs +0 -0
- /package/{esm2020 → esm2022}/validators/disabled-dates-range.validator.mjs +0 -0
- /package/{esm2020 → esm2022}/validators/incomplete-date.validator.mjs +0 -0
- /package/{esm2020 → esm2022}/validators/max.validator.mjs +0 -0
- /package/{esm2020 → esm2022}/validators/min.validator.mjs +0 -0
- /package/{esm2020 → esm2022}/validators/time-range.validator.mjs +0 -0
- /package/{esm2020 → esm2022}/virtualization/models/scrollable.interface.mjs +0 -0
|
@@ -76,201 +76,25 @@ export const RANGE_CALENDAR_RANGE_VALIDATORS = {
|
|
|
76
76
|
* ```
|
|
77
77
|
*/
|
|
78
78
|
export class MultiViewCalendarComponent {
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
this.showCalendarHeader = true;
|
|
99
|
-
this._size = DEFAULT_SIZE;
|
|
100
|
-
/**
|
|
101
|
-
* Toggles the visibility of the footer.
|
|
102
|
-
* @default false
|
|
103
|
-
*/
|
|
104
|
-
this.footer = false;
|
|
105
|
-
/**
|
|
106
|
-
* Determines whether the built-in min or max validators are enforced when validating a form.
|
|
107
|
-
*/
|
|
108
|
-
this.rangeValidation = false;
|
|
109
|
-
/**
|
|
110
|
-
* Determines whether the built-in validator for disabled
|
|
111
|
-
* date ranges is enforced when validating a form
|
|
112
|
-
* ([see example](slug:disabled_dates_multiviewcalendar)).
|
|
113
|
-
*/
|
|
114
|
-
this.disabledDatesRangeValidation = false;
|
|
115
|
-
this._selection = 'single';
|
|
116
|
-
/**
|
|
117
|
-
* Allows reverse selection when using `range` selection.
|
|
118
|
-
* If `allowReverse` is set to `true`, the component skips the validation of whether the start date is after the end date.
|
|
119
|
-
*
|
|
120
|
-
* @default false
|
|
121
|
-
*/
|
|
122
|
-
this.allowReverse = false;
|
|
123
|
-
/**
|
|
124
|
-
* Sets or gets the `disabled` property of the Calendar and
|
|
125
|
-
* determines whether the component is active
|
|
126
|
-
* ([see example]({% slug disabled_multiviewcalendar %})).
|
|
127
|
-
* 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).
|
|
128
|
-
*/
|
|
129
|
-
this.disabled = false;
|
|
130
|
-
/**
|
|
131
|
-
* Sets or gets the `tabindex` property of the Calendar. Based on the
|
|
132
|
-
* [HTML `tabindex`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex) behavior,
|
|
133
|
-
* it determines whether the component is focusable.
|
|
134
|
-
*/
|
|
135
|
-
this.tabindex = 0;
|
|
136
|
-
/**
|
|
137
|
-
* Sets the format of the displayed Calendar week days' names.
|
|
138
|
-
* @default 'short'
|
|
139
|
-
*/
|
|
140
|
-
this.weekDaysFormat = "short";
|
|
141
|
-
/**
|
|
142
|
-
* @hidden
|
|
143
|
-
*/
|
|
144
|
-
this.isActive = false;
|
|
145
|
-
/**
|
|
146
|
-
* Defines the active view that the Calendar initially renders
|
|
147
|
-
* ([see example]({% slug viewoptions_multiviewcalendar %})).
|
|
148
|
-
* By default, the active view is `month`.
|
|
149
|
-
*
|
|
150
|
-
* > You have to set `activeView` within the `topView`-`bottomView` range.
|
|
151
|
-
*/
|
|
152
|
-
this.activeView = CalendarViewEnum[CalendarViewEnum.month];
|
|
153
|
-
/**
|
|
154
|
-
* Defines the bottommost view, to which the user can navigate
|
|
155
|
-
* ([see example](slug:viewdepth_multiviewcalendar)).
|
|
156
|
-
*/
|
|
157
|
-
this.bottomView = CalendarViewEnum[CalendarViewEnum.month];
|
|
158
|
-
/**
|
|
159
|
-
* Defines the topmost view, to which the user can navigate.
|
|
160
|
-
*/
|
|
161
|
-
this.topView = CalendarViewEnum[CalendarViewEnum.century];
|
|
162
|
-
/**
|
|
163
|
-
* Determines whether to display a header for every view (for example the month name).
|
|
164
|
-
*/
|
|
165
|
-
this.showViewHeader = false;
|
|
166
|
-
/**
|
|
167
|
-
* Determines whether to enable animation when navigating to previous/next view.
|
|
168
|
-
*
|
|
169
|
-
* > 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.
|
|
170
|
-
*
|
|
171
|
-
* @default false
|
|
172
|
-
*/
|
|
173
|
-
this.animateNavigation = false;
|
|
174
|
-
/**
|
|
175
|
-
* Determines whether to display a week number column in the `month` view
|
|
176
|
-
* ([see example]({% slug weeknumcolumn_multiviewcalendar %})).
|
|
177
|
-
*/
|
|
178
|
-
this.weekNumber = false;
|
|
179
|
-
/**
|
|
180
|
-
* Sets or gets the `views` property of the Calendar and
|
|
181
|
-
* defines the number of rendered months.
|
|
182
|
-
*/
|
|
183
|
-
this.views = 2;
|
|
184
|
-
/**
|
|
185
|
-
* Specifies the orientation of the MultiViewCalendar.
|
|
186
|
-
*
|
|
187
|
-
* The available values are:
|
|
188
|
-
* * `horizontal` (default)
|
|
189
|
-
* * `vertical`
|
|
190
|
-
*/
|
|
191
|
-
this.orientation = 'horizontal';
|
|
192
|
-
/**
|
|
193
|
-
* Fires when the active view is changed
|
|
194
|
-
* ([see example](slug:events_multiviewcalendar)).
|
|
195
|
-
*/
|
|
196
|
-
this.activeViewChange = new EventEmitter();
|
|
197
|
-
/**
|
|
198
|
-
* Fires when navigating in the currently active view
|
|
199
|
-
* ([see example](slug:events_multiviewcalendar)).
|
|
200
|
-
*/
|
|
201
|
-
this.navigate = new EventEmitter();
|
|
202
|
-
/**
|
|
203
|
-
* Fires when a view cell is entered
|
|
204
|
-
* ([see example](slug:events_multiviewcalendar)).
|
|
205
|
-
*/
|
|
206
|
-
this.cellEnter = new EventEmitter();
|
|
207
|
-
/**
|
|
208
|
-
* Fires when a view cell is leaved
|
|
209
|
-
* ([see example](slug:events_multiviewcalendar)).
|
|
210
|
-
*/
|
|
211
|
-
this.cellLeave = new EventEmitter();
|
|
212
|
-
/**
|
|
213
|
-
* Fires when the value is changed
|
|
214
|
-
* ([see example](slug:events_multiviewcalendar)).
|
|
215
|
-
*/
|
|
216
|
-
this.valueChange = new EventEmitter();
|
|
217
|
-
/**
|
|
218
|
-
* @hidden
|
|
219
|
-
* Fires when the range selection changes.
|
|
220
|
-
*/
|
|
221
|
-
this.rangeSelectionChange = new EventEmitter();
|
|
222
|
-
/**
|
|
223
|
-
* Fires each time the MultiViewCalendar gets blurred
|
|
224
|
-
* ([see example](slug:events_multiviewcalendar)).
|
|
225
|
-
*/
|
|
226
|
-
this.blurEvent = new EventEmitter();
|
|
227
|
-
/**
|
|
228
|
-
* Fires each time the MultiViewCalendar gets focused
|
|
229
|
-
* ([see example](slug:events_multiviewcalendar)).
|
|
230
|
-
*/
|
|
231
|
-
this.focusEvent = new EventEmitter();
|
|
232
|
-
/**
|
|
233
|
-
* @hidden
|
|
234
|
-
*/
|
|
235
|
-
this.focusCalendar = new EventEmitter();
|
|
236
|
-
/**
|
|
237
|
-
* @hidden
|
|
238
|
-
*/
|
|
239
|
-
this.onClosePopup = new EventEmitter();
|
|
240
|
-
/**
|
|
241
|
-
* @hidden
|
|
242
|
-
*/
|
|
243
|
-
this.onTabPress = new EventEmitter();
|
|
244
|
-
/**
|
|
245
|
-
* @hidden
|
|
246
|
-
*/
|
|
247
|
-
this.onShiftTabPress = new EventEmitter();
|
|
248
|
-
this.cellUID = guid();
|
|
249
|
-
this.isHovered = false;
|
|
250
|
-
this.isPrevDisabled = true;
|
|
251
|
-
this.isNextDisabled = true;
|
|
252
|
-
this.prevView = Action.PrevView;
|
|
253
|
-
this.nextView = Action.NextView;
|
|
254
|
-
this.selectedDates = [];
|
|
255
|
-
this.shouldHoverWhenNoStart = false;
|
|
256
|
-
this.canHover = false;
|
|
257
|
-
this.changes = {};
|
|
258
|
-
this.valueSetter = false;
|
|
259
|
-
this.selectionSetter = false;
|
|
260
|
-
this._min = new Date(MIN_DATE);
|
|
261
|
-
this._max = new Date(MAX_DATE);
|
|
262
|
-
this._focusedDate = getToday();
|
|
263
|
-
this._selectionRange = { start: null, end: null };
|
|
264
|
-
this.resolvedPromise = Promise.resolve();
|
|
265
|
-
this.onControlChange = noop;
|
|
266
|
-
this.onControlTouched = noop;
|
|
267
|
-
this.onValidatorChange = noop;
|
|
268
|
-
this.minValidateFn = noop;
|
|
269
|
-
this.maxValidateFn = noop;
|
|
270
|
-
this.disabledDatesRangeValidateFn = noop;
|
|
271
|
-
this.subscriptions = new Subscription();
|
|
272
|
-
this.id = `kendo-multiviewcalendarid-${this.bus.calendarId}-`;
|
|
273
|
-
}
|
|
79
|
+
bus;
|
|
80
|
+
element;
|
|
81
|
+
navigator;
|
|
82
|
+
renderer;
|
|
83
|
+
cdr;
|
|
84
|
+
zone;
|
|
85
|
+
disabledDatesService;
|
|
86
|
+
selectionService;
|
|
87
|
+
/**
|
|
88
|
+
* Displays the days that fall out of the current month ([see example]({% slug viewoptions_multiviewcalendar %}#toc-displaying-other-month-days)).
|
|
89
|
+
* @default true
|
|
90
|
+
*/
|
|
91
|
+
showOtherMonthDays = true;
|
|
92
|
+
/**
|
|
93
|
+
* @hidden
|
|
94
|
+
*
|
|
95
|
+
* Determines whether to display the calendar header.
|
|
96
|
+
*/
|
|
97
|
+
showCalendarHeader = true;
|
|
274
98
|
/**
|
|
275
99
|
* @hidden
|
|
276
100
|
*
|
|
@@ -295,6 +119,11 @@ export class MultiViewCalendarComponent {
|
|
|
295
119
|
get size() {
|
|
296
120
|
return this._size;
|
|
297
121
|
}
|
|
122
|
+
_size = DEFAULT_SIZE;
|
|
123
|
+
/**
|
|
124
|
+
* @hidden
|
|
125
|
+
*/
|
|
126
|
+
id;
|
|
298
127
|
/**
|
|
299
128
|
* Sets or gets the `focusedDate` property of the Calendar and
|
|
300
129
|
* defines the focused date of the component
|
|
@@ -308,6 +137,11 @@ export class MultiViewCalendarComponent {
|
|
|
308
137
|
get focusedDate() {
|
|
309
138
|
return this._focusedDate;
|
|
310
139
|
}
|
|
140
|
+
/**
|
|
141
|
+
* Toggles the visibility of the footer.
|
|
142
|
+
* @default false
|
|
143
|
+
*/
|
|
144
|
+
footer = false;
|
|
311
145
|
/**
|
|
312
146
|
* @hidden
|
|
313
147
|
*/
|
|
@@ -348,6 +182,16 @@ export class MultiViewCalendarComponent {
|
|
|
348
182
|
get max() {
|
|
349
183
|
return this._max;
|
|
350
184
|
}
|
|
185
|
+
/**
|
|
186
|
+
* Determines whether the built-in min or max validators are enforced when validating a form.
|
|
187
|
+
*/
|
|
188
|
+
rangeValidation = false;
|
|
189
|
+
/**
|
|
190
|
+
* Determines whether the built-in validator for disabled
|
|
191
|
+
* date ranges is enforced when validating a form
|
|
192
|
+
* ([see example](slug:disabled_dates_multiviewcalendar)).
|
|
193
|
+
*/
|
|
194
|
+
disabledDatesRangeValidation = false;
|
|
351
195
|
/**
|
|
352
196
|
* Sets the Calendar selection mode
|
|
353
197
|
* ([see example]({% slug selection_multiviewcalendar %})).
|
|
@@ -364,6 +208,14 @@ export class MultiViewCalendarComponent {
|
|
|
364
208
|
get selection() {
|
|
365
209
|
return this._selection;
|
|
366
210
|
}
|
|
211
|
+
_selection = 'single';
|
|
212
|
+
/**
|
|
213
|
+
* Allows reverse selection when using `range` selection.
|
|
214
|
+
* If `allowReverse` is set to `true`, the component skips the validation of whether the start date is after the end date.
|
|
215
|
+
*
|
|
216
|
+
* @default false
|
|
217
|
+
*/
|
|
218
|
+
allowReverse = false;
|
|
367
219
|
/**
|
|
368
220
|
* Sets or gets the `value` property of the Calendar and defines the selected value of the component.
|
|
369
221
|
*
|
|
@@ -378,6 +230,19 @@ export class MultiViewCalendarComponent {
|
|
|
378
230
|
get value() {
|
|
379
231
|
return this._value;
|
|
380
232
|
}
|
|
233
|
+
/**
|
|
234
|
+
* Sets or gets the `disabled` property of the Calendar and
|
|
235
|
+
* determines whether the component is active
|
|
236
|
+
* ([see example]({% slug disabled_multiviewcalendar %})).
|
|
237
|
+
* 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).
|
|
238
|
+
*/
|
|
239
|
+
disabled = false;
|
|
240
|
+
/**
|
|
241
|
+
* Sets or gets the `tabindex` property of the Calendar. Based on the
|
|
242
|
+
* [HTML `tabindex`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex) behavior,
|
|
243
|
+
* it determines whether the component is focusable.
|
|
244
|
+
*/
|
|
245
|
+
tabindex = 0;
|
|
381
246
|
/**
|
|
382
247
|
* @hidden
|
|
383
248
|
*/
|
|
@@ -387,6 +252,15 @@ export class MultiViewCalendarComponent {
|
|
|
387
252
|
get tabIndex() {
|
|
388
253
|
return this.tabindex;
|
|
389
254
|
}
|
|
255
|
+
/**
|
|
256
|
+
* Sets the format of the displayed Calendar week days' names.
|
|
257
|
+
* @default 'short'
|
|
258
|
+
*/
|
|
259
|
+
weekDaysFormat = "short";
|
|
260
|
+
/**
|
|
261
|
+
* @hidden
|
|
262
|
+
*/
|
|
263
|
+
isActive = false;
|
|
390
264
|
/**
|
|
391
265
|
* Sets the dates of the MultiViewCalendar that will be disabled
|
|
392
266
|
* ([see example]({% slug disabled_dates_multiviewcalendar %})).
|
|
@@ -394,6 +268,40 @@ export class MultiViewCalendarComponent {
|
|
|
394
268
|
set disabledDates(value) {
|
|
395
269
|
this.disabledDatesService.initialize(value);
|
|
396
270
|
}
|
|
271
|
+
/**
|
|
272
|
+
* Defines the active view that the Calendar initially renders
|
|
273
|
+
* ([see example]({% slug viewoptions_multiviewcalendar %})).
|
|
274
|
+
* By default, the active view is `month`.
|
|
275
|
+
*
|
|
276
|
+
* > You have to set `activeView` within the `topView`-`bottomView` range.
|
|
277
|
+
*/
|
|
278
|
+
activeView = CalendarViewEnum[CalendarViewEnum.month];
|
|
279
|
+
/**
|
|
280
|
+
* Defines the bottommost view, to which the user can navigate
|
|
281
|
+
* ([see example](slug:viewdepth_multiviewcalendar)).
|
|
282
|
+
*/
|
|
283
|
+
bottomView = CalendarViewEnum[CalendarViewEnum.month];
|
|
284
|
+
/**
|
|
285
|
+
* Defines the topmost view, to which the user can navigate.
|
|
286
|
+
*/
|
|
287
|
+
topView = CalendarViewEnum[CalendarViewEnum.century];
|
|
288
|
+
/**
|
|
289
|
+
* Determines whether to display a header for every view (for example the month name).
|
|
290
|
+
*/
|
|
291
|
+
showViewHeader = false;
|
|
292
|
+
/**
|
|
293
|
+
* Determines whether to enable animation when navigating to previous/next view.
|
|
294
|
+
*
|
|
295
|
+
* > 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.
|
|
296
|
+
*
|
|
297
|
+
* @default false
|
|
298
|
+
*/
|
|
299
|
+
animateNavigation = false;
|
|
300
|
+
/**
|
|
301
|
+
* Determines whether to display a week number column in the `month` view
|
|
302
|
+
* ([see example]({% slug weeknumcolumn_multiviewcalendar %})).
|
|
303
|
+
*/
|
|
304
|
+
weekNumber = false;
|
|
397
305
|
/**
|
|
398
306
|
* Specify, which end of the defined selection range should be marked as active.
|
|
399
307
|
*
|
|
@@ -421,6 +329,82 @@ export class MultiViewCalendarComponent {
|
|
|
421
329
|
get selectionRange() {
|
|
422
330
|
return this._selectionRange;
|
|
423
331
|
}
|
|
332
|
+
/**
|
|
333
|
+
* Sets or gets the `views` property of the Calendar and
|
|
334
|
+
* defines the number of rendered months.
|
|
335
|
+
*/
|
|
336
|
+
views = 2;
|
|
337
|
+
/**
|
|
338
|
+
* Specifies the orientation of the MultiViewCalendar.
|
|
339
|
+
*
|
|
340
|
+
* The available values are:
|
|
341
|
+
* * `horizontal` (default)
|
|
342
|
+
* * `vertical`
|
|
343
|
+
*/
|
|
344
|
+
orientation = 'horizontal';
|
|
345
|
+
/**
|
|
346
|
+
* Fires when the active view is changed
|
|
347
|
+
* ([see example](slug:events_multiviewcalendar)).
|
|
348
|
+
*/
|
|
349
|
+
activeViewChange = new EventEmitter();
|
|
350
|
+
/**
|
|
351
|
+
* Fires when navigating in the currently active view
|
|
352
|
+
* ([see example](slug:events_multiviewcalendar)).
|
|
353
|
+
*/
|
|
354
|
+
navigate = new EventEmitter();
|
|
355
|
+
/**
|
|
356
|
+
* Fires when a view cell is entered
|
|
357
|
+
* ([see example](slug:events_multiviewcalendar)).
|
|
358
|
+
*/
|
|
359
|
+
cellEnter = new EventEmitter();
|
|
360
|
+
/**
|
|
361
|
+
* Fires when a view cell is leaved
|
|
362
|
+
* ([see example](slug:events_multiviewcalendar)).
|
|
363
|
+
*/
|
|
364
|
+
cellLeave = new EventEmitter();
|
|
365
|
+
/**
|
|
366
|
+
* Fires when the value is changed
|
|
367
|
+
* ([see example](slug:events_multiviewcalendar)).
|
|
368
|
+
*/
|
|
369
|
+
valueChange = new EventEmitter();
|
|
370
|
+
/**
|
|
371
|
+
* @hidden
|
|
372
|
+
* Fires when the range selection changes.
|
|
373
|
+
*/
|
|
374
|
+
rangeSelectionChange = new EventEmitter();
|
|
375
|
+
/**
|
|
376
|
+
* Fires each time the MultiViewCalendar gets blurred
|
|
377
|
+
* ([see example](slug:events_multiviewcalendar)).
|
|
378
|
+
*/
|
|
379
|
+
blurEvent = new EventEmitter();
|
|
380
|
+
/**
|
|
381
|
+
* Fires each time the MultiViewCalendar gets focused
|
|
382
|
+
* ([see example](slug:events_multiviewcalendar)).
|
|
383
|
+
*/
|
|
384
|
+
focusEvent = new EventEmitter();
|
|
385
|
+
/**
|
|
386
|
+
* @hidden
|
|
387
|
+
*/
|
|
388
|
+
focusCalendar = new EventEmitter();
|
|
389
|
+
/**
|
|
390
|
+
* @hidden
|
|
391
|
+
*/
|
|
392
|
+
onClosePopup = new EventEmitter();
|
|
393
|
+
/**
|
|
394
|
+
* @hidden
|
|
395
|
+
*/
|
|
396
|
+
onTabPress = new EventEmitter();
|
|
397
|
+
/**
|
|
398
|
+
* @hidden
|
|
399
|
+
*/
|
|
400
|
+
onShiftTabPress = new EventEmitter();
|
|
401
|
+
/**
|
|
402
|
+
* @hidden
|
|
403
|
+
*
|
|
404
|
+
* Queries the template for a cell template declaration.
|
|
405
|
+
* Ignored if a `[cellTemplate]` value is explicitly provided.
|
|
406
|
+
*/
|
|
407
|
+
cellTemplate;
|
|
424
408
|
/**
|
|
425
409
|
* @hidden
|
|
426
410
|
*
|
|
@@ -433,6 +417,13 @@ export class MultiViewCalendarComponent {
|
|
|
433
417
|
get cellTemplateRef() {
|
|
434
418
|
return this._cellTemplateRef || this.cellTemplate;
|
|
435
419
|
}
|
|
420
|
+
/**
|
|
421
|
+
* @hidden
|
|
422
|
+
*
|
|
423
|
+
* Queries the template for a month cell template declaration.
|
|
424
|
+
* Ignored if a `[monthCellTemplate]` value is explicitly provided.
|
|
425
|
+
*/
|
|
426
|
+
monthCellTemplate;
|
|
436
427
|
/**
|
|
437
428
|
* @hidden
|
|
438
429
|
*
|
|
@@ -445,6 +436,13 @@ export class MultiViewCalendarComponent {
|
|
|
445
436
|
get monthCellTemplateRef() {
|
|
446
437
|
return this._monthCellTemplateRef || this.monthCellTemplate;
|
|
447
438
|
}
|
|
439
|
+
/**
|
|
440
|
+
* @hidden
|
|
441
|
+
*
|
|
442
|
+
* Queries the template for a year cell template declaration.
|
|
443
|
+
* Ignored if a `[yearCellTemplate]` value is explicitly provided.
|
|
444
|
+
*/
|
|
445
|
+
yearCellTemplate;
|
|
448
446
|
/**
|
|
449
447
|
* @hidden
|
|
450
448
|
*
|
|
@@ -457,6 +455,13 @@ export class MultiViewCalendarComponent {
|
|
|
457
455
|
get yearCellTemplateRef() {
|
|
458
456
|
return this._yearCellTemplateRef || this.yearCellTemplate;
|
|
459
457
|
}
|
|
458
|
+
/**
|
|
459
|
+
* @hidden
|
|
460
|
+
*
|
|
461
|
+
* Queries the template for a decade cell template declaration.
|
|
462
|
+
* Ignored if a `[decadeCellTemplate]` value is explicitly provided.
|
|
463
|
+
*/
|
|
464
|
+
decadeCellTemplate;
|
|
460
465
|
/**
|
|
461
466
|
* @hidden
|
|
462
467
|
*
|
|
@@ -469,6 +474,13 @@ export class MultiViewCalendarComponent {
|
|
|
469
474
|
get decadeCellTemplateRef() {
|
|
470
475
|
return this._decadeCellTemplateRef || this.decadeCellTemplate;
|
|
471
476
|
}
|
|
477
|
+
/**
|
|
478
|
+
* @hidden
|
|
479
|
+
*
|
|
480
|
+
* Queries the template for a century cell template declaration.
|
|
481
|
+
* Ignored if a `[centuryCellTemplate]` value is explicitly provided.
|
|
482
|
+
*/
|
|
483
|
+
centuryCellTemplate;
|
|
472
484
|
/**
|
|
473
485
|
* @hidden
|
|
474
486
|
*
|
|
@@ -481,6 +493,13 @@ export class MultiViewCalendarComponent {
|
|
|
481
493
|
get centuryCellTemplateRef() {
|
|
482
494
|
return this._centuryCellTemplateRef || this.centuryCellTemplate;
|
|
483
495
|
}
|
|
496
|
+
/**
|
|
497
|
+
* @hidden
|
|
498
|
+
*
|
|
499
|
+
* Queries the template for a week number cell template declaration.
|
|
500
|
+
* Ignored if a `[weekNumberTemplate]` value is explicitly provided.
|
|
501
|
+
*/
|
|
502
|
+
weekNumberTemplate;
|
|
484
503
|
/**
|
|
485
504
|
* @hidden
|
|
486
505
|
*
|
|
@@ -493,6 +512,25 @@ export class MultiViewCalendarComponent {
|
|
|
493
512
|
get weekNumberTemplateRef() {
|
|
494
513
|
return this._weekNumberTemplateRef || this.weekNumberTemplate;
|
|
495
514
|
}
|
|
515
|
+
/**
|
|
516
|
+
* @hidden
|
|
517
|
+
*
|
|
518
|
+
* Queries the template for a header title template declaration.
|
|
519
|
+
* Ignored if a `[headerTitleTemplate]` value is explicitly provided.
|
|
520
|
+
*/
|
|
521
|
+
headerTitleTemplate;
|
|
522
|
+
/**
|
|
523
|
+
* @hidden
|
|
524
|
+
*
|
|
525
|
+
* Queries the template for a header template declaration.
|
|
526
|
+
*/
|
|
527
|
+
headerTemplate;
|
|
528
|
+
/**
|
|
529
|
+
* @hidden
|
|
530
|
+
*
|
|
531
|
+
* Queries the template for a header template declaration.
|
|
532
|
+
*/
|
|
533
|
+
footerTemplate;
|
|
496
534
|
/**
|
|
497
535
|
* @hidden
|
|
498
536
|
*
|
|
@@ -529,6 +567,45 @@ export class MultiViewCalendarComponent {
|
|
|
529
567
|
get headerTemplateRef() {
|
|
530
568
|
return this._headerTemplateRef || this.headerTemplate;
|
|
531
569
|
}
|
|
570
|
+
headerElement;
|
|
571
|
+
viewList;
|
|
572
|
+
cellUID = guid();
|
|
573
|
+
isHovered = false;
|
|
574
|
+
activeDate;
|
|
575
|
+
isPrevDisabled = true;
|
|
576
|
+
isNextDisabled = true;
|
|
577
|
+
prevView = Action.PrevView;
|
|
578
|
+
nextView = Action.NextView;
|
|
579
|
+
selectedDates = [];
|
|
580
|
+
rangePivot;
|
|
581
|
+
shouldHoverWhenNoStart = false;
|
|
582
|
+
canHover = false;
|
|
583
|
+
changes = {};
|
|
584
|
+
valueSetter = false;
|
|
585
|
+
selectionSetter = false;
|
|
586
|
+
_min = new Date(MIN_DATE);
|
|
587
|
+
_max = new Date(MAX_DATE);
|
|
588
|
+
_focusedDate = getToday();
|
|
589
|
+
_value;
|
|
590
|
+
_selectionRange = { start: null, end: null };
|
|
591
|
+
_activeRangeEnd;
|
|
592
|
+
resolvedPromise = Promise.resolve();
|
|
593
|
+
onControlChange = noop;
|
|
594
|
+
onControlTouched = noop;
|
|
595
|
+
onValidatorChange = noop;
|
|
596
|
+
minValidateFn = noop;
|
|
597
|
+
maxValidateFn = noop;
|
|
598
|
+
disabledDatesRangeValidateFn = noop;
|
|
599
|
+
subscriptions = new Subscription();
|
|
600
|
+
_cellTemplateRef;
|
|
601
|
+
_monthCellTemplateRef;
|
|
602
|
+
_yearCellTemplateRef;
|
|
603
|
+
_decadeCellTemplateRef;
|
|
604
|
+
_centuryCellTemplateRef;
|
|
605
|
+
_weekNumberTemplateRef;
|
|
606
|
+
_headerTitleTemplateRef;
|
|
607
|
+
_headerTemplateRef;
|
|
608
|
+
_footerTemplateRef;
|
|
532
609
|
get activeViewEnum() {
|
|
533
610
|
const activeView = CalendarViewEnum[this.activeView];
|
|
534
611
|
return activeView < this.bottomViewEnum ? this.bottomViewEnum : activeView;
|
|
@@ -669,6 +746,17 @@ export class MultiViewCalendarComponent {
|
|
|
669
746
|
this.performSelection(this.focusedDate, event);
|
|
670
747
|
}
|
|
671
748
|
}
|
|
749
|
+
constructor(bus, element, navigator, renderer, cdr, zone, disabledDatesService, selectionService) {
|
|
750
|
+
this.bus = bus;
|
|
751
|
+
this.element = element;
|
|
752
|
+
this.navigator = navigator;
|
|
753
|
+
this.renderer = renderer;
|
|
754
|
+
this.cdr = cdr;
|
|
755
|
+
this.zone = zone;
|
|
756
|
+
this.disabledDatesService = disabledDatesService;
|
|
757
|
+
this.selectionService = selectionService;
|
|
758
|
+
this.id = `kendo-multiviewcalendarid-${this.bus.calendarId}-`;
|
|
759
|
+
}
|
|
672
760
|
ngOnInit() {
|
|
673
761
|
this.setClasses(this.element.nativeElement);
|
|
674
762
|
this.subscriptions.add(this.bus.viewChanged.subscribe(({ view }) => {
|
|
@@ -913,7 +1001,7 @@ export class MultiViewCalendarComponent {
|
|
|
913
1001
|
* @hidden
|
|
914
1002
|
*/
|
|
915
1003
|
handleCellClick({ date, modifiers }) {
|
|
916
|
-
if (this.selection === 'range' && this.activeViewEnum ===
|
|
1004
|
+
if (this.selection === 'range' && this.activeViewEnum === CalendarViewEnum[this.bottomView]) {
|
|
917
1005
|
this.performRangeSelection(date);
|
|
918
1006
|
}
|
|
919
1007
|
else {
|
|
@@ -1089,21 +1177,20 @@ export class MultiViewCalendarComponent {
|
|
|
1089
1177
|
focusedDate: date
|
|
1090
1178
|
});
|
|
1091
1179
|
}
|
|
1092
|
-
}
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
], queries: [{ propertyName: "cellTemplate", first: true, predicate: CellTemplateDirective, descendants: true }, { propertyName: "monthCellTemplate", first: true, predicate: MonthCellTemplateDirective, descendants: true }, { propertyName: "yearCellTemplate", first: true, predicate: YearCellTemplateDirective, descendants: true }, { propertyName: "decadeCellTemplate", first: true, predicate: DecadeCellTemplateDirective, descendants: true }, { propertyName: "centuryCellTemplate", first: true, predicate: CenturyCellTemplateDirective, descendants: true }, { propertyName: "weekNumberTemplate", first: true, predicate: WeekNumberCellTemplateDirective, descendants: true }, { propertyName: "headerTitleTemplate", first: true, predicate: HeaderTitleTemplateDirective, descendants: true }, { propertyName: "headerTemplate", first: true, predicate: HeaderTemplateDirective, descendants: true }, { propertyName: "footerTemplate", first: true, predicate: FooterTemplateDirective, descendants: true }], viewQueries: [{ propertyName: "headerElement", first: true, predicate: HeaderComponent, descendants: true, read: ElementRef }, { propertyName: "viewList", first: true, predicate: HorizontalViewListComponent, descendants: true }], exportAs: ["kendo-multiviewcalendar"], usesOnChanges: true, ngImport: i0, template: `
|
|
1180
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MultiViewCalendarComponent, deps: [{ token: i1.BusViewService }, { token: i0.ElementRef }, { token: i2.NavigationService }, { token: i0.Renderer2 }, { token: i0.ChangeDetectorRef }, { token: i0.NgZone }, { token: i3.DisabledDatesService }, { token: i4.SelectionService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1181
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: MultiViewCalendarComponent, isStandalone: true, selector: "kendo-multiviewcalendar", inputs: { showOtherMonthDays: "showOtherMonthDays", showCalendarHeader: "showCalendarHeader", size: "size", id: "id", focusedDate: "focusedDate", footer: "footer", min: "min", max: "max", rangeValidation: "rangeValidation", disabledDatesRangeValidation: "disabledDatesRangeValidation", selection: "selection", allowReverse: "allowReverse", value: "value", disabled: "disabled", tabindex: "tabindex", tabIndex: "tabIndex", weekDaysFormat: "weekDaysFormat", isActive: "isActive", disabledDates: "disabledDates", activeView: "activeView", bottomView: "bottomView", topView: "topView", showViewHeader: "showViewHeader", animateNavigation: "animateNavigation", weekNumber: "weekNumber", activeRangeEnd: "activeRangeEnd", selectionRange: "selectionRange", views: "views", orientation: "orientation", cellTemplateRef: ["cellTemplate", "cellTemplateRef"], monthCellTemplateRef: ["monthCellTemplate", "monthCellTemplateRef"], yearCellTemplateRef: ["yearCellTemplate", "yearCellTemplateRef"], decadeCellTemplateRef: ["decadeCellTemplate", "decadeCellTemplateRef"], centuryCellTemplateRef: ["centuryCellTemplate", "centuryCellTemplateRef"], weekNumberTemplateRef: ["weekNumberTemplate", "weekNumberTemplateRef"], footerTemplateRef: ["footerTemplate", "footerTemplateRef"], headerTitleTemplateRef: ["headerTitleTemplate", "headerTitleTemplateRef"], headerTemplateRef: ["headerTemplate", "headerTemplateRef"] }, outputs: { activeViewChange: "activeViewChange", navigate: "navigate", cellEnter: "cellEnter", cellLeave: "cellLeave", valueChange: "valueChange", rangeSelectionChange: "rangeSelectionChange", blurEvent: "blur", focusEvent: "focus", focusCalendar: "focusCalendar", onClosePopup: "onClosePopup", onTabPress: "onTabPress", onShiftTabPress: "onShiftTabPress" }, host: { listeners: { "mouseenter": "handleMouseEnter()", "mouseleave": "handleMouseLeave()", "mousedown": "handleMousedown($event)", "click": "handleClick()", "keydown": "keydown($event)" }, properties: { "attr.id": "this.widgetId", "attr.aria-disabled": "this.ariaDisabled", "class.k-disabled": "this.ariaDisabled" } }, providers: [
|
|
1182
|
+
BusViewService,
|
|
1183
|
+
RANGE_CALENDAR_VALUE_ACCESSOR,
|
|
1184
|
+
RANGE_CALENDAR_RANGE_VALIDATORS,
|
|
1185
|
+
LocalizationService,
|
|
1186
|
+
DisabledDatesService,
|
|
1187
|
+
{
|
|
1188
|
+
provide: L10N_PREFIX,
|
|
1189
|
+
useValue: 'kendo.multiviewcalendar'
|
|
1190
|
+
},
|
|
1191
|
+
NavigationService,
|
|
1192
|
+
SelectionService
|
|
1193
|
+
], queries: [{ propertyName: "cellTemplate", first: true, predicate: CellTemplateDirective, descendants: true }, { propertyName: "monthCellTemplate", first: true, predicate: MonthCellTemplateDirective, descendants: true }, { propertyName: "yearCellTemplate", first: true, predicate: YearCellTemplateDirective, descendants: true }, { propertyName: "decadeCellTemplate", first: true, predicate: DecadeCellTemplateDirective, descendants: true }, { propertyName: "centuryCellTemplate", first: true, predicate: CenturyCellTemplateDirective, descendants: true }, { propertyName: "weekNumberTemplate", first: true, predicate: WeekNumberCellTemplateDirective, descendants: true }, { propertyName: "headerTitleTemplate", first: true, predicate: HeaderTitleTemplateDirective, descendants: true }, { propertyName: "headerTemplate", first: true, predicate: HeaderTemplateDirective, descendants: true }, { propertyName: "footerTemplate", first: true, predicate: FooterTemplateDirective, descendants: true }], viewQueries: [{ propertyName: "headerElement", first: true, predicate: HeaderComponent, descendants: true, read: ElementRef }, { propertyName: "viewList", first: true, predicate: HorizontalViewListComponent, descendants: true }], exportAs: ["kendo-multiviewcalendar"], usesOnChanges: true, ngImport: i0, template: `
|
|
1107
1194
|
<ng-container kendoMultiViewCalendarLocalizedMessages
|
|
1108
1195
|
i18n-today="kendo.multiviewcalendar.today|The label for the today button in the calendar header"
|
|
1109
1196
|
today="Today"
|
|
@@ -1179,7 +1266,8 @@ MultiViewCalendarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0
|
|
|
1179
1266
|
[currentDate]="activeDate">
|
|
1180
1267
|
</kendo-calendar-footer>
|
|
1181
1268
|
`, isInline: true, dependencies: [{ kind: "directive", type: MultiViewCalendarLocalizedMessagesDirective, selector: "[kendoMultiViewCalendarLocalizedMessages]" }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: HeaderComponent, selector: "kendo-calendar-header", inputs: ["activeView", "currentDate", "min", "max", "rangeLength", "titleTemplateRef", "headerTemplateRef", "isPrevDisabled", "isNextDisabled", "showNavigationButtons", "orientation", "id", "size"], outputs: ["todayButtonClick", "prevButtonClick", "nextButtonClick"] }, { kind: "component", type: HorizontalViewListComponent, selector: "kendo-calendar-horizontal", inputs: ["showOtherMonthDays", "cellTemplateRef", "weekNumberTemplateRef", "allowReverse", "activeRangeEnd", "activeView", "cellUID", "focusedDate", "isActive", "min", "max", "selectionRange", "selectedDates", "views", "showViewHeader", "animateNavigation", "orientation", "activeDescendant", "tabIndex", "disabled", "id", "weekDaysFormat", "weekNumber"], outputs: ["cellClick", "weekNumberCellClick", "cellEnter", "cellLeave", "activeDateChange", "focusCalendar", "blurCalendar", "focusedCellChange"] }, { kind: "component", type: FooterComponent, selector: "kendo-calendar-footer", inputs: ["footerTemplateRef", "activeViewValue", "currentDate"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1182
|
-
|
|
1269
|
+
}
|
|
1270
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MultiViewCalendarComponent, decorators: [{
|
|
1183
1271
|
type: Component,
|
|
1184
1272
|
args: [{
|
|
1185
1273
|
changeDetection: ChangeDetectionStrategy.OnPush,
|