@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
|
@@ -20,6 +20,7 @@ import { ActionSheetComponent, ActionSheetTemplateDirective } from '@progress/ke
|
|
|
20
20
|
import { ButtonComponent } from '@progress/kendo-angular-buttons';
|
|
21
21
|
import { NgIf } from '@angular/common';
|
|
22
22
|
import { DateRangePopupLocalizedMessagesDirective } from './localization/daterange-popup-localized-messages.directive';
|
|
23
|
+
import { CalendarViewEnum } from '../calendar/models/view.enum';
|
|
23
24
|
import * as i0 from "@angular/core";
|
|
24
25
|
import * as i1 from "@progress/kendo-angular-popup";
|
|
25
26
|
import * as i2 from "./date-range.service";
|
|
@@ -44,83 +45,158 @@ import * as i3 from "@progress/kendo-angular-l10n";
|
|
|
44
45
|
* ```
|
|
45
46
|
*/
|
|
46
47
|
export class DateRangePopupComponent {
|
|
47
|
-
|
|
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
|
-
|
|
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 = "";
|
|
124
200
|
/**
|
|
125
201
|
* Sets the subtitle text rendered in the header of the popup(action sheet).
|
|
126
202
|
* Applicable only when [`AdaptiveMode` is set to `auto`](slug:api_dateinputs_adaptivemode).
|
|
@@ -131,6 +207,48 @@ export class DateRangePopupComponent {
|
|
|
131
207
|
get subtitle() {
|
|
132
208
|
return this._subtitle;
|
|
133
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();
|
|
134
252
|
/**
|
|
135
253
|
* The active calendar that is visible in the popup
|
|
136
254
|
*
|
|
@@ -166,6 +284,18 @@ export class DateRangePopupComponent {
|
|
|
166
284
|
get isAdaptive() {
|
|
167
285
|
return this.isAdaptiveModeEnabled && this.windowSize !== 'large';
|
|
168
286
|
}
|
|
287
|
+
/**
|
|
288
|
+
* @hidden
|
|
289
|
+
*/
|
|
290
|
+
popupRef;
|
|
291
|
+
/**
|
|
292
|
+
* @hidden
|
|
293
|
+
*/
|
|
294
|
+
popupUID = guid();
|
|
295
|
+
/**
|
|
296
|
+
* @hidden
|
|
297
|
+
*/
|
|
298
|
+
xIcon = xIcon;
|
|
169
299
|
/**
|
|
170
300
|
* Gets or sets the visibility state of the component.
|
|
171
301
|
*/
|
|
@@ -188,6 +318,27 @@ export class DateRangePopupComponent {
|
|
|
188
318
|
get show() {
|
|
189
319
|
return this._show;
|
|
190
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
|
+
}
|
|
191
342
|
ngOnInit() {
|
|
192
343
|
this.dateRangeService.registerPopup(this);
|
|
193
344
|
if (this.localization) {
|
|
@@ -498,15 +649,14 @@ export class DateRangePopupComponent {
|
|
|
498
649
|
this.renderer.setStyle(animationContainer, 'bottom', '0px');
|
|
499
650
|
}
|
|
500
651
|
}
|
|
501
|
-
}
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
}
|
|
509
|
-
], 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: `
|
|
510
660
|
<ng-container kendoDateRangePopupLocalizedMessages
|
|
511
661
|
i18n-accept="kendo.daterangepopup.accept|The Accept button text in the timepicker component"
|
|
512
662
|
accept="Set"
|
|
@@ -524,7 +674,22 @@ DateRangePopupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0"
|
|
|
524
674
|
<ng-container #container></ng-container>
|
|
525
675
|
<ng-template #defaultTemplate>
|
|
526
676
|
<kendo-multiviewcalendar
|
|
677
|
+
[activeView]="activeView"
|
|
678
|
+
[bottomView]="bottomView"
|
|
679
|
+
[animateNavigation]="animateNavigation"
|
|
680
|
+
[disabled]="disabled"
|
|
681
|
+
orientation="horizontal"
|
|
682
|
+
[views]="views"
|
|
683
|
+
[weekNumber]="weekNumber"
|
|
684
|
+
[topView]="topView"
|
|
685
|
+
[disabledDates]="disabledDates"
|
|
686
|
+
[min]="min"
|
|
687
|
+
[max]="max"
|
|
688
|
+
[showCalendarHeader]="showCalendarHeader"
|
|
689
|
+
[focusedDate]="focusedDate"
|
|
527
690
|
[allowReverse]="allowReverse"
|
|
691
|
+
[showViewHeader]="showViewHeader"
|
|
692
|
+
[showOtherMonthDays]="showOtherMonthDays"
|
|
528
693
|
selection="range"
|
|
529
694
|
[size]="size"
|
|
530
695
|
[value]="dateRangeService.selectionRange"
|
|
@@ -572,8 +737,22 @@ DateRangePopupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0"
|
|
|
572
737
|
<div class="k-scrollable-wrap">
|
|
573
738
|
<kendo-multiviewcalendar
|
|
574
739
|
size="large"
|
|
740
|
+
[animateNavigation]="animateNavigation"
|
|
741
|
+
[disabled]="disabled"
|
|
575
742
|
orientation="vertical"
|
|
743
|
+
[views]="views"
|
|
744
|
+
[weekNumber]="weekNumber"
|
|
745
|
+
[disabledDates]="disabledDates"
|
|
746
|
+
[activeView]="activeView"
|
|
747
|
+
[bottomView]="bottomView"
|
|
748
|
+
[topView]="topView"
|
|
749
|
+
[min]="min"
|
|
750
|
+
[max]="max"
|
|
751
|
+
[showCalendarHeader]="showCalendarHeader"
|
|
752
|
+
[focusedDate]="focusedDate"
|
|
576
753
|
[allowReverse]="allowReverse"
|
|
754
|
+
[showViewHeader]="showViewHeader"
|
|
755
|
+
[showOtherMonthDays]="showOtherMonthDays"
|
|
577
756
|
[focusedDate]="dateRangeService.focusedDate"
|
|
578
757
|
[value]="dateRangeService.selectionRange"
|
|
579
758
|
selection="range"
|
|
@@ -607,7 +786,8 @@ DateRangePopupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0"
|
|
|
607
786
|
</ng-template>
|
|
608
787
|
</kendo-actionsheet>
|
|
609
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"] }] });
|
|
610
|
-
|
|
789
|
+
}
|
|
790
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DateRangePopupComponent, decorators: [{
|
|
611
791
|
type: Component,
|
|
612
792
|
args: [{
|
|
613
793
|
exportAs: 'kendo-daterange-popup',
|
|
@@ -637,7 +817,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
637
817
|
<ng-container #container></ng-container>
|
|
638
818
|
<ng-template #defaultTemplate>
|
|
639
819
|
<kendo-multiviewcalendar
|
|
820
|
+
[activeView]="activeView"
|
|
821
|
+
[bottomView]="bottomView"
|
|
822
|
+
[animateNavigation]="animateNavigation"
|
|
823
|
+
[disabled]="disabled"
|
|
824
|
+
orientation="horizontal"
|
|
825
|
+
[views]="views"
|
|
826
|
+
[weekNumber]="weekNumber"
|
|
827
|
+
[topView]="topView"
|
|
828
|
+
[disabledDates]="disabledDates"
|
|
829
|
+
[min]="min"
|
|
830
|
+
[max]="max"
|
|
831
|
+
[showCalendarHeader]="showCalendarHeader"
|
|
832
|
+
[focusedDate]="focusedDate"
|
|
640
833
|
[allowReverse]="allowReverse"
|
|
834
|
+
[showViewHeader]="showViewHeader"
|
|
835
|
+
[showOtherMonthDays]="showOtherMonthDays"
|
|
641
836
|
selection="range"
|
|
642
837
|
[size]="size"
|
|
643
838
|
[value]="dateRangeService.selectionRange"
|
|
@@ -685,8 +880,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
685
880
|
<div class="k-scrollable-wrap">
|
|
686
881
|
<kendo-multiviewcalendar
|
|
687
882
|
size="large"
|
|
883
|
+
[animateNavigation]="animateNavigation"
|
|
884
|
+
[disabled]="disabled"
|
|
688
885
|
orientation="vertical"
|
|
886
|
+
[views]="views"
|
|
887
|
+
[weekNumber]="weekNumber"
|
|
888
|
+
[disabledDates]="disabledDates"
|
|
889
|
+
[activeView]="activeView"
|
|
890
|
+
[bottomView]="bottomView"
|
|
891
|
+
[topView]="topView"
|
|
892
|
+
[min]="min"
|
|
893
|
+
[max]="max"
|
|
894
|
+
[showCalendarHeader]="showCalendarHeader"
|
|
895
|
+
[focusedDate]="focusedDate"
|
|
689
896
|
[allowReverse]="allowReverse"
|
|
897
|
+
[showViewHeader]="showViewHeader"
|
|
898
|
+
[showOtherMonthDays]="showOtherMonthDays"
|
|
690
899
|
[focusedDate]="dateRangeService.focusedDate"
|
|
691
900
|
[value]="dateRangeService.selectionRange"
|
|
692
901
|
selection="range"
|
|
@@ -749,14 +958,42 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
749
958
|
}], contentCalendar: [{
|
|
750
959
|
type: ContentChildren,
|
|
751
960
|
args: [MultiViewCalendarComponent]
|
|
961
|
+
}], showCalendarHeader: [{
|
|
962
|
+
type: Input
|
|
963
|
+
}], focusedDate: [{
|
|
964
|
+
type: Input
|
|
965
|
+
}], disabledDates: [{
|
|
966
|
+
type: Input
|
|
967
|
+
}], activeView: [{
|
|
968
|
+
type: Input
|
|
969
|
+
}], bottomView: [{
|
|
970
|
+
type: Input
|
|
971
|
+
}], topView: [{
|
|
972
|
+
type: Input
|
|
973
|
+
}], min: [{
|
|
974
|
+
type: Input
|
|
975
|
+
}], max: [{
|
|
976
|
+
type: Input
|
|
752
977
|
}], allowReverse: [{
|
|
753
978
|
type: Input
|
|
979
|
+
}], animateNavigation: [{
|
|
980
|
+
type: Input
|
|
981
|
+
}], disabled: [{
|
|
982
|
+
type: Input
|
|
983
|
+
}], views: [{
|
|
984
|
+
type: Input
|
|
985
|
+
}], weekNumber: [{
|
|
986
|
+
type: Input
|
|
754
987
|
}], animate: [{
|
|
755
988
|
type: Input
|
|
756
989
|
}], anchor: [{
|
|
757
990
|
type: Input
|
|
758
991
|
}], anchorAlign: [{
|
|
759
992
|
type: Input
|
|
993
|
+
}], showViewHeader: [{
|
|
994
|
+
type: Input
|
|
995
|
+
}], showOtherMonthDays: [{
|
|
996
|
+
type: Input
|
|
760
997
|
}], appendTo: [{
|
|
761
998
|
type: Input
|
|
762
999
|
}], collision: [{
|
|
@@ -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]',
|