@progress/kendo-angular-dateinputs 17.0.0-develop.20 → 17.0.0-develop.22
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 +1 -1
- 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 +276 -166
- 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 +299 -211
- 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/adaptive.module.mjs +7 -7
- 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 +237 -144
- 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 +30 -13
- 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 +386 -288
- 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}/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 +3644 -2450
- package/package.json +18 -24
- 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/esm2020/calendar/localization/calendar-messages.mjs +0 -29
- 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 -19331
- /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}/index.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
|
@@ -45,140 +45,158 @@ import * as i3 from "@progress/kendo-angular-l10n";
|
|
|
45
45
|
* ```
|
|
46
46
|
*/
|
|
47
47
|
export class DateRangePopupComponent {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
48
|
+
popupService;
|
|
49
|
+
dateRangeService;
|
|
50
|
+
zone;
|
|
51
|
+
renderer;
|
|
52
|
+
localization;
|
|
53
|
+
cdr;
|
|
54
|
+
rtl;
|
|
55
|
+
container;
|
|
56
|
+
actionSheet;
|
|
57
|
+
defaultTemplate;
|
|
58
|
+
contentTemplate;
|
|
59
|
+
dateRangeSelectionDirective;
|
|
60
|
+
viewCalendar;
|
|
61
|
+
contentCalendar;
|
|
62
|
+
/**
|
|
63
|
+
* @hidden
|
|
64
|
+
*
|
|
65
|
+
* Determines whether to display the MultiViewCalendar header.
|
|
66
|
+
*/
|
|
67
|
+
showCalendarHeader = true;
|
|
68
|
+
/**
|
|
69
|
+
* Sets or gets the `focusedDate` property of the MultiViewCalendar and
|
|
70
|
+
* defines the focused date of the component
|
|
71
|
+
* ([see example]({% slug dates_multiviewcalendar %}#toc-focused-dates)).
|
|
72
|
+
*
|
|
73
|
+
* > If the MultiViewCalendar is out of the min or max range, it normalizes the defined `focusedDate`.
|
|
74
|
+
*/
|
|
75
|
+
focusedDate;
|
|
76
|
+
/**
|
|
77
|
+
* Sets the dates of the MultiViewCalendar that will be disabled
|
|
78
|
+
* ([see example]({% slug disabled_dates_multiviewcalendar %})).
|
|
79
|
+
*/
|
|
80
|
+
disabledDates;
|
|
81
|
+
/**
|
|
82
|
+
* Defines the active view that the MultiViewCalendar initially renders
|
|
83
|
+
* ([see example]({% slug viewoptions_multiviewcalendar %})).
|
|
84
|
+
* By default, the active view is `month`.
|
|
85
|
+
*
|
|
86
|
+
* > You have to set `activeView` within the `topView`-`bottomView` range.
|
|
87
|
+
*/
|
|
88
|
+
activeView = CalendarViewEnum[CalendarViewEnum.month];
|
|
89
|
+
/**
|
|
90
|
+
* Defines the bottommost view, to which the user can navigate
|
|
91
|
+
* ([see example](slug:viewdepth_multiviewcalendar)).
|
|
92
|
+
*/
|
|
93
|
+
bottomView = CalendarViewEnum[CalendarViewEnum.month];
|
|
94
|
+
/**
|
|
95
|
+
* Defines the topmost view, to which the user can navigate.
|
|
96
|
+
*/
|
|
97
|
+
topView = CalendarViewEnum[CalendarViewEnum.century];
|
|
98
|
+
/**
|
|
99
|
+
* Sets or gets the `min` property of the MultiViewCalendar and
|
|
100
|
+
* defines the minimum allowed date value.
|
|
101
|
+
* By default, the `min` value is `1900-1-1`.
|
|
102
|
+
*/
|
|
103
|
+
min;
|
|
104
|
+
/**
|
|
105
|
+
* Sets or gets the `max` property of the MultiViewCalendar and
|
|
106
|
+
* defines the maximum allowed date value.
|
|
107
|
+
* By default, the `max` value is `2099-12-31`.
|
|
108
|
+
*/
|
|
109
|
+
max;
|
|
110
|
+
/**
|
|
111
|
+
* Allows reverse selection.
|
|
112
|
+
* If `allowReverse` is set to `true`, the component skips the validation of whether the start date is after the end date.
|
|
113
|
+
*
|
|
114
|
+
* @default false
|
|
115
|
+
*/
|
|
116
|
+
allowReverse = false;
|
|
117
|
+
/**
|
|
118
|
+
* Determines whether to enable animation when navigating to previous/next view.
|
|
119
|
+
* @default false
|
|
120
|
+
*/
|
|
121
|
+
animateNavigation = false;
|
|
122
|
+
/**
|
|
123
|
+
* Sets or gets the `disabled` property of the MultiViewCalendar and
|
|
124
|
+
* determines whether the component is active
|
|
125
|
+
* ([see example]({% slug disabled_multiviewcalendar %})).
|
|
126
|
+
*/
|
|
127
|
+
disabled = false;
|
|
128
|
+
/**
|
|
129
|
+
* Sets or gets the `views` property of the MultiViewCalendar and
|
|
130
|
+
* defines the number of rendered months.
|
|
131
|
+
*
|
|
132
|
+
* @default 2
|
|
133
|
+
*/
|
|
134
|
+
views = 2;
|
|
135
|
+
/**
|
|
136
|
+
* Determines whether to display a week number column in the `month` view
|
|
137
|
+
* ([see example]({% slug weeknumcolumn_multiviewcalendar %})).
|
|
138
|
+
*/
|
|
139
|
+
weekNumber = false;
|
|
140
|
+
/**
|
|
141
|
+
* Controls the popup animation.
|
|
142
|
+
* By default, the opening and closing animations are enabled.
|
|
143
|
+
* For more information about controlling the popup animations,
|
|
144
|
+
* refer to the article on [animations]({% slug animations_popup %}).
|
|
145
|
+
*/
|
|
146
|
+
animate = true;
|
|
147
|
+
/**
|
|
148
|
+
* Specifies the element that will be used as an anchor. The popup opens next to that element.
|
|
149
|
+
* For more information, refer to the section on
|
|
150
|
+
* [aligning to specific components]({% slug alignmentpositioning_popup %}#toc-aligning-to-components).
|
|
151
|
+
*/
|
|
152
|
+
anchor;
|
|
153
|
+
/**
|
|
154
|
+
* Specifies the anchor pivot point.
|
|
155
|
+
* For more information, refer to the section on
|
|
156
|
+
* [positioning]({% slug alignmentpositioning_popup %}#toc-positioning).
|
|
157
|
+
*/
|
|
158
|
+
anchorAlign;
|
|
159
|
+
/**
|
|
160
|
+
* Determines whether to display a header for every view (for example the month name).
|
|
161
|
+
*
|
|
162
|
+
* @default false
|
|
163
|
+
*/
|
|
164
|
+
showViewHeader = false;
|
|
165
|
+
/**
|
|
166
|
+
* Displays the days that fall out of the current month ([see example]({% slug viewoptions_multiviewcalendar %}#toc-displaying-other-month-days)).
|
|
167
|
+
* @default false
|
|
168
|
+
*/
|
|
169
|
+
showOtherMonthDays = false;
|
|
170
|
+
/**
|
|
171
|
+
* Controls the popup container. By default, the popup is appended to the root component.
|
|
172
|
+
*/
|
|
173
|
+
appendTo;
|
|
174
|
+
/**
|
|
175
|
+
* Configures the collision behavior of the popup.
|
|
176
|
+
* For more information, refer to the article on
|
|
177
|
+
* [viewport boundary detection]({% slug viewportboundarydetection_popup %}).
|
|
178
|
+
*/
|
|
179
|
+
collision = { horizontal: 'fit', vertical: 'flip' };
|
|
180
|
+
/**
|
|
181
|
+
* Specifies the pivot point of the popup.
|
|
182
|
+
* For more information, refer to the section on
|
|
183
|
+
* [positioning]({% slug alignmentpositioning_popup %}#toc-positioning).
|
|
184
|
+
*/
|
|
185
|
+
popupAlign;
|
|
186
|
+
/**
|
|
187
|
+
* Specifies the margin value that will be added to the popup dimensions in pixels
|
|
188
|
+
* and leaves a blank space between the popup and the anchor.
|
|
189
|
+
*/
|
|
190
|
+
margin;
|
|
191
|
+
/**
|
|
192
|
+
* Enables or disables the adaptive mode. By default the adaptive rendering is disabled.
|
|
193
|
+
*/
|
|
194
|
+
adaptiveMode = 'none';
|
|
195
|
+
/**
|
|
196
|
+
* Sets the title of the input element of the DateRangePopup and the title text rendered
|
|
197
|
+
* in the header of the popup(action sheet). Applicable only when [`AdaptiveMode` is set to `auto`](slug:api_dateinputs_adaptivemode).
|
|
198
|
+
*/
|
|
199
|
+
title = "";
|
|
182
200
|
/**
|
|
183
201
|
* Sets the subtitle text rendered in the header of the popup(action sheet).
|
|
184
202
|
* Applicable only when [`AdaptiveMode` is set to `auto`](slug:api_dateinputs_adaptivemode).
|
|
@@ -189,6 +207,48 @@ export class DateRangePopupComponent {
|
|
|
189
207
|
get subtitle() {
|
|
190
208
|
return this._subtitle;
|
|
191
209
|
}
|
|
210
|
+
_subtitle;
|
|
211
|
+
/**
|
|
212
|
+
* @hidden
|
|
213
|
+
*
|
|
214
|
+
* TODO: Make visible when the Infinite Calendar is fixed to set properly the size option.
|
|
215
|
+
* Sets the size of the component.
|
|
216
|
+
*
|
|
217
|
+
* The possible values are:
|
|
218
|
+
* * `small`
|
|
219
|
+
* * `medium` (Default)
|
|
220
|
+
* * `large`
|
|
221
|
+
* * `none`
|
|
222
|
+
*
|
|
223
|
+
*/
|
|
224
|
+
size;
|
|
225
|
+
/**
|
|
226
|
+
* Fires each time the popup is about to open
|
|
227
|
+
* ([see example](slug:popup_daterange#toc-events)).
|
|
228
|
+
* This event is preventable. If you cancel the event, the popup will remain closed.
|
|
229
|
+
*/
|
|
230
|
+
open = new EventEmitter();
|
|
231
|
+
/**
|
|
232
|
+
* Fires each time the popup is about to close
|
|
233
|
+
* ([see example](slug:popup_daterange#toc-events)).
|
|
234
|
+
* This event is preventable. If you cancel the event, the popup will remain open.
|
|
235
|
+
*/
|
|
236
|
+
close = new EventEmitter();
|
|
237
|
+
/**
|
|
238
|
+
* Fires each time the calendar element is blurred
|
|
239
|
+
* ([see example](slug:popup_daterange#toc-events)).
|
|
240
|
+
*/
|
|
241
|
+
onBlur = new EventEmitter();
|
|
242
|
+
/**
|
|
243
|
+
* Fires each time the calendar element is focused
|
|
244
|
+
* ([see example](slug:popup_daterange#toc-events)).
|
|
245
|
+
*/
|
|
246
|
+
onFocus = new EventEmitter();
|
|
247
|
+
/**
|
|
248
|
+
* Fires each time the popup is closed either on `ESC` keypress or on leaving the viewport
|
|
249
|
+
* ([see example](slug:popup_daterange#toc-events)).
|
|
250
|
+
*/
|
|
251
|
+
cancel = new EventEmitter();
|
|
192
252
|
/**
|
|
193
253
|
* The active calendar that is visible in the popup
|
|
194
254
|
*
|
|
@@ -224,6 +284,18 @@ export class DateRangePopupComponent {
|
|
|
224
284
|
get isAdaptive() {
|
|
225
285
|
return this.isAdaptiveModeEnabled && this.windowSize !== 'large';
|
|
226
286
|
}
|
|
287
|
+
/**
|
|
288
|
+
* @hidden
|
|
289
|
+
*/
|
|
290
|
+
popupRef;
|
|
291
|
+
/**
|
|
292
|
+
* @hidden
|
|
293
|
+
*/
|
|
294
|
+
popupUID = guid();
|
|
295
|
+
/**
|
|
296
|
+
* @hidden
|
|
297
|
+
*/
|
|
298
|
+
xIcon = xIcon;
|
|
227
299
|
/**
|
|
228
300
|
* Gets or sets the visibility state of the component.
|
|
229
301
|
*/
|
|
@@ -246,6 +318,27 @@ export class DateRangePopupComponent {
|
|
|
246
318
|
get show() {
|
|
247
319
|
return this._show;
|
|
248
320
|
}
|
|
321
|
+
activateSubscription;
|
|
322
|
+
blurSubscription;
|
|
323
|
+
focusSubscription;
|
|
324
|
+
calendarSubscriptions = new Subscription();
|
|
325
|
+
popupSubscriptions = new Subscription();
|
|
326
|
+
windowBlurSubscription;
|
|
327
|
+
localizationSubscriptions = new Subscription();
|
|
328
|
+
resolvedPromise = Promise.resolve();
|
|
329
|
+
_calendar;
|
|
330
|
+
_show;
|
|
331
|
+
_rangeSelection;
|
|
332
|
+
windowSize;
|
|
333
|
+
constructor(popupService, dateRangeService, zone, renderer, localization, cdr, rtl) {
|
|
334
|
+
this.popupService = popupService;
|
|
335
|
+
this.dateRangeService = dateRangeService;
|
|
336
|
+
this.zone = zone;
|
|
337
|
+
this.renderer = renderer;
|
|
338
|
+
this.localization = localization;
|
|
339
|
+
this.cdr = cdr;
|
|
340
|
+
this.rtl = rtl;
|
|
341
|
+
}
|
|
249
342
|
ngOnInit() {
|
|
250
343
|
this.dateRangeService.registerPopup(this);
|
|
251
344
|
if (this.localization) {
|
|
@@ -556,15 +649,14 @@ export class DateRangePopupComponent {
|
|
|
556
649
|
this.renderer.setStyle(animationContainer, 'bottom', '0px');
|
|
557
650
|
}
|
|
558
651
|
}
|
|
559
|
-
}
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
}
|
|
567
|
-
], queries: [{ propertyName: "contentTemplate", first: true, predicate: DateRangePopupTemplateDirective, descendants: true }, { propertyName: "contentCalendar", predicate: MultiViewCalendarComponent }], viewQueries: [{ propertyName: "container", first: true, predicate: ["container"], descendants: true, read: ViewContainerRef }, { propertyName: "actionSheet", first: true, predicate: ["actionSheet"], descendants: true }, { propertyName: "defaultTemplate", first: true, predicate: ["defaultTemplate"], descendants: true }, { propertyName: "dateRangeSelectionDirective", first: true, predicate: DateRangeSelectionDirective, descendants: true }, { propertyName: "viewCalendar", predicate: MultiViewCalendarComponent, descendants: true }], exportAs: ["kendo-daterange-popup"], ngImport: i0, template: `
|
|
652
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DateRangePopupComponent, deps: [{ token: i1.PopupService }, { token: i2.DateRangeService }, { token: i0.NgZone }, { token: i0.Renderer2 }, { token: i3.LocalizationService }, { token: i0.ChangeDetectorRef }, { token: RTL, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
653
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: DateRangePopupComponent, isStandalone: true, selector: "kendo-daterange-popup", inputs: { showCalendarHeader: "showCalendarHeader", focusedDate: "focusedDate", disabledDates: "disabledDates", activeView: "activeView", bottomView: "bottomView", topView: "topView", min: "min", max: "max", allowReverse: "allowReverse", animateNavigation: "animateNavigation", disabled: "disabled", views: "views", weekNumber: "weekNumber", animate: "animate", anchor: "anchor", anchorAlign: "anchorAlign", showViewHeader: "showViewHeader", showOtherMonthDays: "showOtherMonthDays", appendTo: "appendTo", collision: "collision", popupAlign: "popupAlign", margin: "margin", adaptiveMode: "adaptiveMode", title: "title", subtitle: "subtitle", size: "size" }, outputs: { open: "open", close: "close", onBlur: "blur", onFocus: "focus", cancel: "cancel" }, providers: [
|
|
654
|
+
LocalizationService,
|
|
655
|
+
{
|
|
656
|
+
provide: L10N_PREFIX,
|
|
657
|
+
useValue: 'kendo.daterangepopup'
|
|
658
|
+
}
|
|
659
|
+
], queries: [{ propertyName: "contentTemplate", first: true, predicate: DateRangePopupTemplateDirective, descendants: true }, { propertyName: "contentCalendar", predicate: MultiViewCalendarComponent }], viewQueries: [{ propertyName: "container", first: true, predicate: ["container"], descendants: true, read: ViewContainerRef }, { propertyName: "actionSheet", first: true, predicate: ["actionSheet"], descendants: true }, { propertyName: "defaultTemplate", first: true, predicate: ["defaultTemplate"], descendants: true }, { propertyName: "dateRangeSelectionDirective", first: true, predicate: DateRangeSelectionDirective, descendants: true }, { propertyName: "viewCalendar", predicate: MultiViewCalendarComponent, descendants: true }], exportAs: ["kendo-daterange-popup"], ngImport: i0, template: `
|
|
568
660
|
<ng-container kendoDateRangePopupLocalizedMessages
|
|
569
661
|
i18n-accept="kendo.daterangepopup.accept|The Accept button text in the timepicker component"
|
|
570
662
|
accept="Set"
|
|
@@ -694,7 +786,8 @@ DateRangePopupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0"
|
|
|
694
786
|
</ng-template>
|
|
695
787
|
</kendo-actionsheet>
|
|
696
788
|
`, isInline: true, dependencies: [{ kind: "directive", type: DateRangePopupLocalizedMessagesDirective, selector: "[kendoDateRangePopupLocalizedMessages]" }, { kind: "component", type: MultiViewCalendarComponent, selector: "kendo-multiviewcalendar", inputs: ["showOtherMonthDays", "showCalendarHeader", "size", "id", "focusedDate", "footer", "min", "max", "rangeValidation", "disabledDatesRangeValidation", "selection", "allowReverse", "value", "disabled", "tabindex", "tabIndex", "weekDaysFormat", "isActive", "disabledDates", "activeView", "bottomView", "topView", "showViewHeader", "animateNavigation", "weekNumber", "activeRangeEnd", "selectionRange", "views", "orientation", "cellTemplate", "monthCellTemplate", "yearCellTemplate", "decadeCellTemplate", "centuryCellTemplate", "weekNumberTemplate", "footerTemplate", "headerTitleTemplate", "headerTemplate"], outputs: ["activeViewChange", "navigate", "cellEnter", "cellLeave", "valueChange", "rangeSelectionChange", "blur", "focus", "focusCalendar", "onClosePopup", "onTabPress", "onShiftTabPress"], exportAs: ["kendo-multiviewcalendar"] }, { kind: "component", type: ActionSheetComponent, selector: "kendo-actionsheet", inputs: ["title", "subtitle", "items", "cssClass", "animation", "expanded", "titleId"], outputs: ["expandedChange", "expand", "collapse", "itemClick", "overlayClick"], exportAs: ["kendoActionSheet"] }, { kind: "directive", type: ActionSheetTemplateDirective, selector: "[kendoActionSheetTemplate]" }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }, { kind: "component", type: ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }] });
|
|
697
|
-
|
|
789
|
+
}
|
|
790
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DateRangePopupComponent, decorators: [{
|
|
698
791
|
type: Component,
|
|
699
792
|
args: [{
|
|
700
793
|
exportAs: 'kendo-daterange-popup',
|
|
@@ -18,39 +18,19 @@ import * as i2 from "./date-range.service";
|
|
|
18
18
|
* We recommend using the MultiViewCalendar [range selection]({% slug selection_multiviewcalendar %}#toc-range-selection).
|
|
19
19
|
*/
|
|
20
20
|
export class DateRangeSelectionDirective {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
this.autoCorrectOn = 'change';
|
|
35
|
-
/**
|
|
36
|
-
* @hidden
|
|
37
|
-
* When in adaptive mode range should not be set automatically on calendar value change but only on accept
|
|
38
|
-
*/
|
|
39
|
-
this.shouldSetRange = true;
|
|
40
|
-
/**
|
|
41
|
-
* Fires when the active range end is changed. For more information, refer to
|
|
42
|
-
* the section on [events](slug:events_multiviewcalendar).
|
|
43
|
-
*/
|
|
44
|
-
this.activeRangeEndChange = new EventEmitter();
|
|
45
|
-
/**
|
|
46
|
-
* Fires when the selection range is changed. For more information, refer to
|
|
47
|
-
* the section on [events](slug:events_multiviewcalendar).
|
|
48
|
-
*/
|
|
49
|
-
this.selectionRangeChange = new EventEmitter();
|
|
50
|
-
this.calendarSubscriptions = new Subscription();
|
|
51
|
-
this.dateRangeService = this.dateRangeService || new DateRangeService(renderer);
|
|
52
|
-
renderer.setAttribute(element.nativeElement, 'aria-multiselectable', 'true');
|
|
53
|
-
}
|
|
21
|
+
calendar;
|
|
22
|
+
cdr;
|
|
23
|
+
element;
|
|
24
|
+
dateRangeService;
|
|
25
|
+
/**
|
|
26
|
+
* Specifies the auto-correction behavior. If the start date is greater than the end date,
|
|
27
|
+
* the directive fixes the date range to a single date either on input change or on blur
|
|
28
|
+
* ([see example](slug:autocorrect_daterange#toc-calendar-selection-directive)).
|
|
29
|
+
*
|
|
30
|
+
* By default, the auto-correction is triggered on change.
|
|
31
|
+
* To disable this behavior, set the `autoCorrectOn` property to `none`.
|
|
32
|
+
*/
|
|
33
|
+
autoCorrectOn = 'change';
|
|
54
34
|
/**
|
|
55
35
|
* Gets or sets the selection range of the calendar. When a new range is set,
|
|
56
36
|
* the connected DateRangeService notifies all related parties.
|
|
@@ -88,9 +68,34 @@ export class DateRangeSelectionDirective {
|
|
|
88
68
|
this.calendar.activeRangeEnd = activeRange;
|
|
89
69
|
this.dateRangeService.setActiveRangeEnd(activeRange);
|
|
90
70
|
}
|
|
71
|
+
/**
|
|
72
|
+
* @hidden
|
|
73
|
+
* When in adaptive mode range should not be set automatically on calendar value change but only on accept
|
|
74
|
+
*/
|
|
75
|
+
shouldSetRange = true;
|
|
76
|
+
/**
|
|
77
|
+
* Fires when the active range end is changed. For more information, refer to
|
|
78
|
+
* the section on [events](slug:events_multiviewcalendar).
|
|
79
|
+
*/
|
|
80
|
+
activeRangeEndChange = new EventEmitter();
|
|
81
|
+
/**
|
|
82
|
+
* Fires when the selection range is changed. For more information, refer to
|
|
83
|
+
* the section on [events](slug:events_multiviewcalendar).
|
|
84
|
+
*/
|
|
85
|
+
selectionRangeChange = new EventEmitter();
|
|
91
86
|
get calendarRange() {
|
|
92
87
|
return this.selectionRange || EMPTY_SELECTIONRANGE;
|
|
93
88
|
}
|
|
89
|
+
calendarSubscriptions = new Subscription();
|
|
90
|
+
range;
|
|
91
|
+
constructor(calendar, cdr, element, renderer, dateRangeService) {
|
|
92
|
+
this.calendar = calendar;
|
|
93
|
+
this.cdr = cdr;
|
|
94
|
+
this.element = element;
|
|
95
|
+
this.dateRangeService = dateRangeService;
|
|
96
|
+
this.dateRangeService = this.dateRangeService || new DateRangeService(renderer);
|
|
97
|
+
renderer.setAttribute(element.nativeElement, 'aria-multiselectable', 'true');
|
|
98
|
+
}
|
|
94
99
|
ngOnInit() {
|
|
95
100
|
const calendar = this.calendar;
|
|
96
101
|
const dateRangeService = this.dateRangeService;
|
|
@@ -191,10 +196,10 @@ export class DateRangeSelectionDirective {
|
|
|
191
196
|
this.setSelectionRange(range);
|
|
192
197
|
this.selectionRangeChange.emit(range);
|
|
193
198
|
}
|
|
199
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DateRangeSelectionDirective, deps: [{ token: i1.MultiViewCalendarComponent }, { token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i2.DateRangeService, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
200
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: DateRangeSelectionDirective, isStandalone: true, selector: "[kendoDateRangeSelection]", inputs: { autoCorrectOn: "autoCorrectOn", selectionRange: "selectionRange", activeRangeEnd: "activeRangeEnd", shouldSetRange: "shouldSetRange" }, outputs: { activeRangeEndChange: "activeRangeEndChange", selectionRangeChange: "selectionRangeChange" }, ngImport: i0 });
|
|
194
201
|
}
|
|
195
|
-
|
|
196
|
-
DateRangeSelectionDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: DateRangeSelectionDirective, isStandalone: true, selector: "[kendoDateRangeSelection]", inputs: { autoCorrectOn: "autoCorrectOn", selectionRange: "selectionRange", activeRangeEnd: "activeRangeEnd", shouldSetRange: "shouldSetRange" }, outputs: { activeRangeEndChange: "activeRangeEndChange", selectionRangeChange: "selectionRangeChange" }, ngImport: i0 });
|
|
197
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DateRangeSelectionDirective, decorators: [{
|
|
202
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DateRangeSelectionDirective, decorators: [{
|
|
198
203
|
type: Directive,
|
|
199
204
|
args: [{
|
|
200
205
|
selector: '[kendoDateRangeSelection]',
|
|
@@ -19,37 +19,48 @@ import * as i2 from "../dateinput/dateinput.component";
|
|
|
19
19
|
* > You can use the DateRangeStartInputDirective only with a DateInput component.
|
|
20
20
|
*/
|
|
21
21
|
export class DateRangeStartInputDirective extends DateRangeInput {
|
|
22
|
+
rangeService;
|
|
23
|
+
dateInput;
|
|
24
|
+
renderer;
|
|
25
|
+
/**
|
|
26
|
+
* Specifies the auto-correction behavior. If the start date is greater than the end date,
|
|
27
|
+
* the directive fixes the date range to a single date either on input change or on blur
|
|
28
|
+
* ([see example](slug:autocorrect_daterange#toc-input-directives)).
|
|
29
|
+
*
|
|
30
|
+
* By default, the component does not perform any auto-correction.
|
|
31
|
+
*/
|
|
32
|
+
autoCorrectOn;
|
|
33
|
+
/**
|
|
34
|
+
* Specifies the navigation behavior of the calendar when the active end is changed on input focus.
|
|
35
|
+
* When enabled, the calendar navigates to the value of the focused input. Otherwise, the calendar
|
|
36
|
+
* displays the last picked date.
|
|
37
|
+
*
|
|
38
|
+
* By default, the automatic navigation behavior on input focus is disabled.
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* ```ts
|
|
42
|
+
* _@Component({
|
|
43
|
+
* selector: 'my-app',
|
|
44
|
+
* template: `
|
|
45
|
+
* <h5>Toggle input focus to see the calendar navigating between range ends.</h5>
|
|
46
|
+
* <kendo-daterange>
|
|
47
|
+
* <kendo-dateinput kendoDateRangeStartInput [navigateCalendarOnFocus]="true" [(value)]="start"></kendo-dateinput>
|
|
48
|
+
* <kendo-dateinput kendoDateRangeEndInput [navigateCalendarOnFocus]="true" [(value)]="end"></kendo-dateinput>
|
|
49
|
+
* </kendo-daterange>
|
|
50
|
+
* `
|
|
51
|
+
* })
|
|
52
|
+
* export class AppComponent {
|
|
53
|
+
* public start: Date = new Date(2018, 3, 10);
|
|
54
|
+
* public end: Date = new Date(2018, 10, 20);
|
|
55
|
+
* }
|
|
56
|
+
* ```
|
|
57
|
+
*/
|
|
58
|
+
navigateCalendarOnFocus = false;
|
|
22
59
|
constructor(rangeService, dateInput, element, renderer, zone) {
|
|
23
60
|
super('start', rangeService, dateInput, element, renderer, zone);
|
|
24
61
|
this.rangeService = rangeService;
|
|
25
62
|
this.dateInput = dateInput;
|
|
26
63
|
this.renderer = renderer;
|
|
27
|
-
/**
|
|
28
|
-
* Specifies the navigation behavior of the calendar when the active end is changed on input focus.
|
|
29
|
-
* When enabled, the calendar navigates to the value of the focused input. Otherwise, the calendar
|
|
30
|
-
* displays the last picked date.
|
|
31
|
-
*
|
|
32
|
-
* By default, the automatic navigation behavior on input focus is disabled.
|
|
33
|
-
*
|
|
34
|
-
* @example
|
|
35
|
-
* ```ts
|
|
36
|
-
* _@Component({
|
|
37
|
-
* selector: 'my-app',
|
|
38
|
-
* template: `
|
|
39
|
-
* <h5>Toggle input focus to see the calendar navigating between range ends.</h5>
|
|
40
|
-
* <kendo-daterange>
|
|
41
|
-
* <kendo-dateinput kendoDateRangeStartInput [navigateCalendarOnFocus]="true" [(value)]="start"></kendo-dateinput>
|
|
42
|
-
* <kendo-dateinput kendoDateRangeEndInput [navigateCalendarOnFocus]="true" [(value)]="end"></kendo-dateinput>
|
|
43
|
-
* </kendo-daterange>
|
|
44
|
-
* `
|
|
45
|
-
* })
|
|
46
|
-
* export class AppComponent {
|
|
47
|
-
* public start: Date = new Date(2018, 3, 10);
|
|
48
|
-
* public end: Date = new Date(2018, 10, 20);
|
|
49
|
-
* }
|
|
50
|
-
* ```
|
|
51
|
-
*/
|
|
52
|
-
this.navigateCalendarOnFocus = false;
|
|
53
64
|
}
|
|
54
65
|
ngOnInit() {
|
|
55
66
|
this.rangeService.registerStartInput(this.dateInput);
|
|
@@ -80,10 +91,10 @@ export class DateRangeStartInputDirective extends DateRangeInput {
|
|
|
80
91
|
this.dateInput.writeValue(cloneDate(start));
|
|
81
92
|
this.dateInput.notify();
|
|
82
93
|
}
|
|
94
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DateRangeStartInputDirective, deps: [{ token: i1.DateRangeService }, { token: i2.DateInputComponent }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive });
|
|
95
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: DateRangeStartInputDirective, isStandalone: true, selector: "[kendoDateRangeStartInput]", inputs: { autoCorrectOn: "autoCorrectOn", navigateCalendarOnFocus: "navigateCalendarOnFocus" }, usesInheritance: true, ngImport: i0 });
|
|
83
96
|
}
|
|
84
|
-
|
|
85
|
-
DateRangeStartInputDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: DateRangeStartInputDirective, isStandalone: true, selector: "[kendoDateRangeStartInput]", inputs: { autoCorrectOn: "autoCorrectOn", navigateCalendarOnFocus: "navigateCalendarOnFocus" }, usesInheritance: true, ngImport: i0 });
|
|
86
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DateRangeStartInputDirective, decorators: [{
|
|
97
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DateRangeStartInputDirective, decorators: [{
|
|
87
98
|
type: Directive,
|
|
88
99
|
args: [{
|
|
89
100
|
selector: '[kendoDateRangeStartInput]',
|