@progress/kendo-angular-dateinputs 16.0.0-develop.2 → 16.0.0-develop.21
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 +42 -8
- package/calendar/footer.component.d.ts +1 -1
- package/calendar/for.directive.d.ts +1 -1
- package/calendar/header.component.d.ts +3 -2
- package/calendar/horizontal-view-list.component.d.ts +4 -3
- package/calendar/localization/calendar-custom-messages.component.d.ts +1 -1
- package/calendar/localization/calendar-localized-messages.directive.d.ts +1 -1
- package/calendar/localization/calendar-messages.d.ts +1 -1
- package/calendar/localization/multiview-calendar-custom-messages.component.d.ts +1 -1
- package/calendar/localization/multiview-calendar-localized-messages.directive.d.ts +1 -1
- package/calendar/localization/multiview-calendar-messages.d.ts +1 -1
- package/calendar/models/cell-context.interface.d.ts +4 -0
- package/calendar/models/selection-range.interface.d.ts +2 -2
- package/calendar/models/selection.d.ts +11 -1
- package/calendar/multiview-calendar.component.d.ts +57 -8
- package/calendar/navigation.component.d.ts +1 -1
- package/calendar/templates/cell-template.directive.d.ts +1 -1
- package/calendar/templates/century-cell-template.directive.d.ts +1 -1
- package/calendar/templates/decade-cell-template.directive.d.ts +1 -1
- package/calendar/templates/footer-template.directiv/320/265.d.ts +1 -1
- package/calendar/templates/header-template.directive.d.ts +1 -1
- package/calendar/templates/header-title-template.directive.d.ts +1 -1
- package/calendar/templates/month-cell-template.directive.d.ts +1 -1
- package/calendar/templates/navigation-item-template.directive.d.ts +1 -1
- package/calendar/templates/weeknumber-cell-template.directive.d.ts +1 -1
- package/calendar/templates/year-cell-template.directive.d.ts +1 -1
- package/calendar/view-list.component.d.ts +9 -1
- package/calendar/view.component.d.ts +2 -1
- package/common/utils.d.ts +4 -0
- package/dateinput/dateinput.component.d.ts +13 -1
- package/dateinput/localization/dateinput-custom-messages.component.d.ts +1 -1
- package/dateinput/localization/dateinput-localized-messages.directive.d.ts +1 -1
- package/dateinput/localization/messages.d.ts +5 -1
- package/datepicker/datepicker.component.d.ts +7 -2
- package/datepicker/localization/datepicker-custom-messages.component.d.ts +1 -1
- package/datepicker/localization/datepicker-localized-messages.directive.d.ts +1 -1
- package/datepicker/localization/messages.d.ts +5 -1
- package/daterange/date-range-end-input.directive.d.ts +1 -1
- package/daterange/date-range-input.d.ts +1 -1
- package/daterange/date-range-popup-template.directive.d.ts +1 -1
- package/daterange/date-range-popup.component.d.ts +30 -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 +16 -1
- package/daterange/localization/daterange-popup-custom-messages.component.d.ts +1 -1
- package/daterange/localization/daterange-popup-localized-messages.directive.d.ts +1 -1
- package/daterange/localization/messages.d.ts +1 -1
- package/datetimepicker/datetimepicker.component.d.ts +12 -1
- package/datetimepicker/localization/datetimepicker-custom-messages.component.d.ts +1 -1
- package/datetimepicker/localization/localized-messages.directive.d.ts +1 -1
- package/datetimepicker/localization/messages.d.ts +5 -1
- package/esm2020/calendar/calendar-common.module.mjs +4 -4
- package/esm2020/calendar/calendar.component.mjs +256 -66
- package/esm2020/calendar/calendar.module.mjs +12 -14
- package/esm2020/calendar/calendars.module.mjs +5 -7
- package/esm2020/calendar/footer.component.mjs +6 -6
- package/esm2020/calendar/for.directive.mjs +3 -3
- package/esm2020/calendar/header.component.mjs +44 -26
- package/esm2020/calendar/horizontal-view-list.component.mjs +16 -12
- package/esm2020/calendar/localization/calendar-custom-messages.component.mjs +3 -3
- package/esm2020/calendar/localization/calendar-localized-messages.directive.mjs +3 -3
- package/esm2020/calendar/localization/calendar-messages.mjs +3 -3
- package/esm2020/calendar/localization/multiview-calendar-custom-messages.component.mjs +3 -3
- package/esm2020/calendar/localization/multiview-calendar-localized-messages.directive.mjs +3 -3
- package/esm2020/calendar/localization/multiview-calendar-messages.mjs +3 -3
- package/esm2020/calendar/models/selection.mjs +34 -1
- package/esm2020/calendar/multiview-calendar.component.mjs +268 -56
- package/esm2020/calendar/multiview-calendar.module.mjs +10 -12
- package/esm2020/calendar/navigation.component.mjs +8 -8
- package/esm2020/calendar/services/bus-view.service.mjs +3 -3
- package/esm2020/calendar/services/century-view.service.mjs +29 -8
- package/esm2020/calendar/services/decade-view.service.mjs +29 -8
- package/esm2020/calendar/services/disabled-dates.service.mjs +3 -3
- package/esm2020/calendar/services/dom.service.mjs +5 -5
- package/esm2020/calendar/services/month-view.service.mjs +29 -8
- package/esm2020/calendar/services/navigation.service.mjs +3 -3
- package/esm2020/calendar/services/scroll-sync.service.mjs +3 -3
- package/esm2020/calendar/services/selection.service.mjs +3 -3
- package/esm2020/calendar/services/weeknames.service.mjs +3 -3
- package/esm2020/calendar/services/year-view.service.mjs +29 -8
- package/esm2020/calendar/templates/cell-template.directive.mjs +3 -3
- package/esm2020/calendar/templates/century-cell-template.directive.mjs +3 -3
- package/esm2020/calendar/templates/decade-cell-template.directive.mjs +3 -3
- package/esm2020/calendar/templates/footer-template.directiv/320/265.mjs +3 -3
- package/esm2020/calendar/templates/header-template.directive.mjs +3 -3
- package/esm2020/calendar/templates/header-title-template.directive.mjs +3 -3
- package/esm2020/calendar/templates/month-cell-template.directive.mjs +3 -3
- package/esm2020/calendar/templates/navigation-item-template.directive.mjs +3 -3
- package/esm2020/calendar/templates/weeknumber-cell-template.directive.mjs +3 -3
- package/esm2020/calendar/templates/year-cell-template.directive.mjs +3 -3
- package/esm2020/calendar/templates.module.mjs +4 -4
- package/esm2020/calendar/view-list.component.mjs +31 -10
- package/esm2020/calendar/view.component.mjs +9 -6
- package/esm2020/common/adaptive.module.mjs +4 -4
- package/esm2020/common/utils.mjs +5 -1
- package/esm2020/dateinput/dateinput.component.mjs +70 -13
- package/esm2020/dateinput/dateinput.module.mjs +4 -4
- package/esm2020/dateinput/localization/dateinput-custom-messages.component.mjs +3 -3
- package/esm2020/dateinput/localization/dateinput-localized-messages.directive.mjs +3 -3
- package/esm2020/dateinput/localization/messages.mjs +5 -3
- package/esm2020/dateinputs.module.mjs +4 -4
- package/esm2020/datepicker/datepicker.component.mjs +45 -23
- package/esm2020/datepicker/datepicker.module.mjs +12 -14
- package/esm2020/datepicker/localization/datepicker-custom-messages.component.mjs +3 -3
- package/esm2020/datepicker/localization/datepicker-localized-messages.directive.mjs +3 -3
- package/esm2020/datepicker/localization/messages.mjs +5 -3
- package/esm2020/daterange/date-range-end-input.directive.mjs +3 -3
- package/esm2020/daterange/date-range-input.mjs +3 -3
- package/esm2020/daterange/date-range-popup-template.directive.mjs +3 -3
- package/esm2020/daterange/date-range-popup.component.mjs +75 -21
- package/esm2020/daterange/date-range-selection.directive.mjs +3 -3
- package/esm2020/daterange/date-range-start-input.directive.mjs +3 -3
- package/esm2020/daterange/date-range.component.mjs +12 -10
- package/esm2020/daterange/date-range.module.mjs +4 -4
- package/esm2020/daterange/date-range.service.mjs +3 -4
- package/esm2020/daterange/localization/daterange-popup-custom-messages.component.mjs +3 -3
- package/esm2020/daterange/localization/daterange-popup-localized-messages.directive.mjs +3 -3
- package/esm2020/daterange/localization/messages.mjs +3 -3
- package/esm2020/datetimepicker/datetimepicker.component.mjs +56 -23
- package/esm2020/datetimepicker/datetimepicker.module.mjs +14 -16
- package/esm2020/datetimepicker/localization/datetimepicker-custom-messages.component.mjs +3 -3
- package/esm2020/datetimepicker/localization/localized-messages.directive.mjs +3 -3
- package/esm2020/datetimepicker/localization/messages.mjs +5 -3
- package/esm2020/package-metadata.mjs +2 -2
- package/esm2020/timepicker/localization/messages.mjs +5 -3
- package/esm2020/timepicker/localization/timepicker-custom-messages.component.mjs +3 -3
- package/esm2020/timepicker/localization/timepicker-localized-messages.directive.mjs +3 -3
- package/esm2020/timepicker/localization/timeselector-custom-messages.component.mjs +3 -3
- package/esm2020/timepicker/localization/timeselector-localized-messages.directive.mjs +3 -3
- package/esm2020/timepicker/services/dayperiod.service.mjs +3 -3
- package/esm2020/timepicker/services/dom.service.mjs +3 -3
- package/esm2020/timepicker/services/hours.service.mjs +3 -3
- package/esm2020/timepicker/services/milliseconds.service.mjs +3 -3
- package/esm2020/timepicker/services/minutes.service.mjs +3 -3
- package/esm2020/timepicker/services/seconds.service.mjs +3 -3
- package/esm2020/timepicker/timelist.component.mjs +6 -6
- package/esm2020/timepicker/timepicker.component.mjs +42 -17
- package/esm2020/timepicker/timepicker.module.mjs +4 -4
- package/esm2020/timepicker/timeselector.component.mjs +29 -14
- package/esm2020/virtualization/virtualization.component.mjs +4 -4
- package/esm2020/virtualization/virtualization.module.mjs +4 -4
- package/fesm2015/progress-kendo-angular-dateinputs.mjs +1547 -763
- package/fesm2020/progress-kendo-angular-dateinputs.mjs +1538 -766
- package/package.json +17 -20
- package/timepicker/localization/messages.d.ts +5 -1
- package/timepicker/localization/timepicker-custom-messages.component.d.ts +1 -1
- package/timepicker/localization/timepicker-localized-messages.directive.d.ts +1 -1
- package/timepicker/localization/timeselector-custom-messages.component.d.ts +1 -1
- package/timepicker/localization/timeselector-localized-messages.directive.d.ts +1 -1
- package/timepicker/timelist.component.d.ts +1 -1
- package/timepicker/timepicker.component.d.ts +7 -1
- package/timepicker/timeselector.component.d.ts +2 -1
- package/virtualization/virtualization.component.d.ts +1 -1
- package/progress-kendo-angular-dateinputs.d.ts +0 -9
|
@@ -40,15 +40,16 @@ import * as i1 from "@progress/kendo-angular-l10n";
|
|
|
40
40
|
import * as i2 from "@progress/kendo-angular-popup";
|
|
41
41
|
import * as i3 from "../common/picker.service";
|
|
42
42
|
import * as i4 from "../calendar/services/disabled-dates.service";
|
|
43
|
-
import * as i5 from "
|
|
44
|
-
import * as i6 from "
|
|
45
|
-
import * as i7 from "
|
|
46
|
-
import * as i8 from "
|
|
47
|
-
import * as i9 from "
|
|
48
|
-
import * as i10 from "
|
|
49
|
-
import * as i11 from "
|
|
50
|
-
import * as i12 from "
|
|
51
|
-
import * as i13 from "@angular
|
|
43
|
+
import * as i5 from "@angular/common";
|
|
44
|
+
import * as i6 from "../dateinput/dateinput.component";
|
|
45
|
+
import * as i7 from "../dateinput/localization/dateinput-custom-messages.component";
|
|
46
|
+
import * as i8 from "../calendar/calendar.component";
|
|
47
|
+
import * as i9 from "../calendar/localization/calendar-custom-messages.component";
|
|
48
|
+
import * as i10 from "@progress/kendo-angular-common";
|
|
49
|
+
import * as i11 from "@progress/kendo-angular-icons";
|
|
50
|
+
import * as i12 from "@progress/kendo-angular-navigation";
|
|
51
|
+
import * as i13 from "@progress/kendo-angular-buttons";
|
|
52
|
+
import * as i14 from "./localization/datepicker-localized-messages.directive";
|
|
52
53
|
const MIN_DOC_LINK = 'http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/DatePickerComponent/#toc-min';
|
|
53
54
|
const MAX_DOC_LINK = 'http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/DatePickerComponent/#toc-max';
|
|
54
55
|
const VALUE_DOC_LINK = 'http://www.telerik.com/kendo-angular-ui/components/dateinputs/datepicker/#toc-using-with-json';
|
|
@@ -73,6 +74,12 @@ export class DatePickerComponent {
|
|
|
73
74
|
* @hidden
|
|
74
75
|
*/
|
|
75
76
|
this.calendarIcon = calendarIcon;
|
|
77
|
+
/**
|
|
78
|
+
* If set to `true`, renders a clear button after the input text or DatePicker value has been changed.
|
|
79
|
+
* Clicking this button resets the value of the component to `null` and triggers the `valueChange` event.
|
|
80
|
+
* @default false
|
|
81
|
+
*/
|
|
82
|
+
this.clearButton = false;
|
|
76
83
|
/**
|
|
77
84
|
* Toggles the visibility of the Calendar footer.
|
|
78
85
|
* @default false
|
|
@@ -399,7 +406,6 @@ export class DatePickerComponent {
|
|
|
399
406
|
set navigation(state) {
|
|
400
407
|
this._navigation = state;
|
|
401
408
|
}
|
|
402
|
-
;
|
|
403
409
|
get navigation() {
|
|
404
410
|
if (this.isAdaptive) {
|
|
405
411
|
return;
|
|
@@ -528,7 +534,6 @@ export class DatePickerComponent {
|
|
|
528
534
|
get popupUID() {
|
|
529
535
|
return this.calendar?.popupId;
|
|
530
536
|
}
|
|
531
|
-
;
|
|
532
537
|
get isActive() {
|
|
533
538
|
return this._active;
|
|
534
539
|
}
|
|
@@ -572,9 +577,6 @@ export class DatePickerComponent {
|
|
|
572
577
|
this.toggleCalendar(show);
|
|
573
578
|
}
|
|
574
579
|
}
|
|
575
|
-
get inputElement() {
|
|
576
|
-
return this.wrapper.nativeElement.querySelector('input');
|
|
577
|
-
}
|
|
578
580
|
/**
|
|
579
581
|
* @hidden
|
|
580
582
|
*/
|
|
@@ -779,6 +781,7 @@ export class DatePickerComponent {
|
|
|
779
781
|
*/
|
|
780
782
|
handleChange(value) {
|
|
781
783
|
this.cdr.markForCheck();
|
|
784
|
+
this.dateInput.showClearButton = true;
|
|
782
785
|
this.value = value;
|
|
783
786
|
if (this.show) {
|
|
784
787
|
this.focusInput();
|
|
@@ -837,7 +840,6 @@ export class DatePickerComponent {
|
|
|
837
840
|
if (!this.isOpen || this.windowSize === windowSize()) {
|
|
838
841
|
return;
|
|
839
842
|
}
|
|
840
|
-
;
|
|
841
843
|
if (this.actionSheet.expanded) {
|
|
842
844
|
this.toggleActionSheet(false);
|
|
843
845
|
}
|
|
@@ -1076,8 +1078,8 @@ export class DatePickerComponent {
|
|
|
1076
1078
|
}
|
|
1077
1079
|
}
|
|
1078
1080
|
}
|
|
1079
|
-
DatePickerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1080
|
-
DatePickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
1081
|
+
DatePickerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DatePickerComponent, deps: [{ token: i0.NgZone }, { token: i1.LocalizationService }, { token: i0.ChangeDetectorRef }, { token: i2.PopupService }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.Injector }, { token: i3.PickerService }, { token: i4.DisabledDatesService }, { token: TOUCH_ENABLED, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
1082
|
+
DatePickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: DatePickerComponent, selector: "kendo-datepicker", inputs: { focusableId: "focusableId", cellTemplateRef: ["cellTemplate", "cellTemplateRef"], clearButton: "clearButton", inputAttributes: "inputAttributes", monthCellTemplateRef: ["monthCellTemplate", "monthCellTemplateRef"], yearCellTemplateRef: ["yearCellTemplate", "yearCellTemplateRef"], decadeCellTemplateRef: ["decadeCellTemplate", "decadeCellTemplateRef"], centuryCellTemplateRef: ["centuryCellTemplate", "centuryCellTemplateRef"], weekNumberTemplateRef: ["weekNumberTemplate", "weekNumberTemplateRef"], headerTitleTemplateRef: ["headerTitleTemplate", "headerTitleTemplateRef"], headerTemplateRef: ["headerTemplate", "headerTemplateRef"], footerTemplateRef: ["footerTemplate", "footerTemplateRef"], footer: "footer", navigationItemTemplateRef: ["navigationItemTemplate", "navigationItemTemplateRef"], weekDaysFormat: "weekDaysFormat", showOtherMonthDays: "showOtherMonthDays", activeView: "activeView", bottomView: "bottomView", topView: "topView", calendarType: "calendarType", animateCalendarNavigation: "animateCalendarNavigation", disabled: "disabled", readonly: "readonly", readOnlyInput: "readOnlyInput", popupSettings: "popupSettings", navigation: "navigation", min: "min", max: "max", incompleteDateValidation: "incompleteDateValidation", autoCorrectParts: "autoCorrectParts", autoSwitchParts: "autoSwitchParts", autoSwitchKeys: "autoSwitchKeys", enableMouseWheel: "enableMouseWheel", allowCaretMode: "allowCaretMode", autoFill: "autoFill", focusedDate: "focusedDate", value: "value", format: "format", twoDigitYearMax: "twoDigitYearMax", formatPlaceholder: "formatPlaceholder", placeholder: "placeholder", tabindex: "tabindex", tabIndex: "tabIndex", disabledDates: "disabledDates", title: "title", subtitle: "subtitle", rangeValidation: "rangeValidation", disabledDatesValidation: "disabledDatesValidation", weekNumber: "weekNumber", size: "size", rounded: "rounded", fillMode: "fillMode", adaptiveMode: "adaptiveMode" }, outputs: { valueChange: "valueChange", onFocus: "focus", onBlur: "blur", open: "open", close: "close" }, host: { properties: { "class.k-readonly": "this.readonly", "class.k-datepicker": "this.wrapperClasses", "class.k-input": "this.wrapperClasses", "class.k-disabled": "this.disabledClass" } }, providers: [
|
|
1081
1083
|
{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => DatePickerComponent), multi: true },
|
|
1082
1084
|
{ provide: NG_VALIDATORS, useExisting: forwardRef(() => DatePickerComponent), multi: true },
|
|
1083
1085
|
{ provide: KendoInput, useExisting: forwardRef(() => DatePickerComponent) },
|
|
@@ -1104,6 +1106,9 @@ DatePickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ve
|
|
|
1104
1106
|
|
|
1105
1107
|
i18n-parentViewButtonTitle="kendo.datepicker.parentViewButtonTitle|The title of the parent view button in the calendar header"
|
|
1106
1108
|
parentViewButtonTitle="Navigate to parent view"
|
|
1109
|
+
|
|
1110
|
+
i18n-clearTitle="kendo.datepicker.clearTitle|The title of the clear button"
|
|
1111
|
+
clearTitle="clear"
|
|
1107
1112
|
>
|
|
1108
1113
|
</ng-container>
|
|
1109
1114
|
<kendo-dateinput
|
|
@@ -1112,6 +1117,7 @@ DatePickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ve
|
|
|
1112
1117
|
pickerType="datepicker"
|
|
1113
1118
|
hasPopup="grid"
|
|
1114
1119
|
[isPopupOpen]="show"
|
|
1120
|
+
[clearButton]="clearButton"
|
|
1115
1121
|
[disabled]="disabled"
|
|
1116
1122
|
[readonly]="readonly || readOnlyInput"
|
|
1117
1123
|
[ariaReadOnly]="readonly"
|
|
@@ -1139,7 +1145,12 @@ DatePickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ve
|
|
|
1139
1145
|
[value]="value"
|
|
1140
1146
|
(valueChange)="handleInputChange($event)"
|
|
1141
1147
|
(click)="handleDateInputClick()"
|
|
1142
|
-
|
|
1148
|
+
>
|
|
1149
|
+
<kendo-dateinput-messages
|
|
1150
|
+
[clearTitle]="localization.get('clearTitle')"
|
|
1151
|
+
>
|
|
1152
|
+
</kendo-dateinput-messages>
|
|
1153
|
+
</kendo-dateinput>
|
|
1143
1154
|
<button
|
|
1144
1155
|
#toggleButton
|
|
1145
1156
|
type="button"
|
|
@@ -1211,8 +1222,8 @@ DatePickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ve
|
|
|
1211
1222
|
<ng-template #calendarTemplate>
|
|
1212
1223
|
<kendo-calendar
|
|
1213
1224
|
#calendar
|
|
1214
|
-
[size]="isAdaptive ? 'large' : 'medium'"
|
|
1215
1225
|
[type]="calendarType"
|
|
1226
|
+
[size]="isAdaptive ? 'large' : size"
|
|
1216
1227
|
[min]="min"
|
|
1217
1228
|
[max]="max"
|
|
1218
1229
|
[weekDaysFormat]="weekDaysFormat"
|
|
@@ -1252,8 +1263,8 @@ DatePickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ve
|
|
|
1252
1263
|
</kendo-calendar-messages>
|
|
1253
1264
|
</kendo-calendar>
|
|
1254
1265
|
</ng-template>
|
|
1255
|
-
`, isInline: true,
|
|
1256
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1266
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i5.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i6.DateInputComponent, selector: "kendo-dateinput", inputs: ["focusableId", "pickerType", "clearButton", "disabled", "readonly", "title", "tabindex", "role", "ariaReadOnly", "tabIndex", "isRequired", "format", "formatPlaceholder", "placeholder", "steps", "max", "min", "rangeValidation", "autoCorrectParts", "autoSwitchParts", "autoSwitchKeys", "allowCaretMode", "autoFill", "incompleteDateValidation", "twoDigitYearMax", "enableMouseWheel", "value", "spinners", "isPopupOpen", "hasPopup", "size", "rounded", "fillMode", "inputAttributes"], outputs: ["valueChange", "valueUpdate", "focus", "blur"], exportAs: ["kendo-dateinput"] }, { kind: "component", type: i7.DateInputCustomMessagesComponent, selector: "kendo-dateinput-messages" }, { kind: "component", type: i8.CalendarComponent, selector: "kendo-calendar", inputs: ["showOtherMonthDays", "id", "focusedDate", "min", "max", "rangeValidation", "weekDaysFormat", "footer", "selection", "allowReverse", "value", "disabled", "tabindex", "tabIndex", "disabledDates", "navigation", "activeView", "bottomView", "topView", "type", "animateNavigation", "weekNumber", "cellTemplate", "monthCellTemplate", "yearCellTemplate", "decadeCellTemplate", "centuryCellTemplate", "weekNumberTemplate", "headerTitleTemplate", "headerTemplate", "footerTemplate", "navigationItemTemplate", "size", "activeRangeEnd"], outputs: ["activeViewChange", "navigate", "activeViewDateChange", "blur", "focus", "valueChange"], exportAs: ["kendo-calendar"] }, { kind: "component", type: i9.CalendarCustomMessagesComponent, selector: "kendo-calendar-messages" }, { kind: "directive", type: i10.EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }, { kind: "component", type: i11.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "component", type: i12.ActionSheetComponent, selector: "kendo-actionsheet", inputs: ["title", "subtitle", "items", "cssClass", "animation", "expanded", "titleId"], outputs: ["expandedChange", "expand", "collapse", "itemClick", "overlayClick"], exportAs: ["kendoActionSheet"] }, { kind: "directive", type: i12.ActionSheetTemplateDirective, selector: "[kendoActionSheetTemplate]" }, { kind: "component", type: i10.ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }, { kind: "component", type: i13.ButtonComponent, selector: "button[kendoButton], span[kendoButton], kendo-button", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { kind: "directive", type: i14.DatePickerLocalizedMessagesDirective, selector: "[kendoDatePickerLocalizedMessages]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1267
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DatePickerComponent, decorators: [{
|
|
1257
1268
|
type: Component,
|
|
1258
1269
|
args: [{
|
|
1259
1270
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
@@ -1287,6 +1298,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
1287
1298
|
|
|
1288
1299
|
i18n-parentViewButtonTitle="kendo.datepicker.parentViewButtonTitle|The title of the parent view button in the calendar header"
|
|
1289
1300
|
parentViewButtonTitle="Navigate to parent view"
|
|
1301
|
+
|
|
1302
|
+
i18n-clearTitle="kendo.datepicker.clearTitle|The title of the clear button"
|
|
1303
|
+
clearTitle="clear"
|
|
1290
1304
|
>
|
|
1291
1305
|
</ng-container>
|
|
1292
1306
|
<kendo-dateinput
|
|
@@ -1295,6 +1309,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
1295
1309
|
pickerType="datepicker"
|
|
1296
1310
|
hasPopup="grid"
|
|
1297
1311
|
[isPopupOpen]="show"
|
|
1312
|
+
[clearButton]="clearButton"
|
|
1298
1313
|
[disabled]="disabled"
|
|
1299
1314
|
[readonly]="readonly || readOnlyInput"
|
|
1300
1315
|
[ariaReadOnly]="readonly"
|
|
@@ -1322,7 +1337,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
1322
1337
|
[value]="value"
|
|
1323
1338
|
(valueChange)="handleInputChange($event)"
|
|
1324
1339
|
(click)="handleDateInputClick()"
|
|
1325
|
-
|
|
1340
|
+
>
|
|
1341
|
+
<kendo-dateinput-messages
|
|
1342
|
+
[clearTitle]="localization.get('clearTitle')"
|
|
1343
|
+
>
|
|
1344
|
+
</kendo-dateinput-messages>
|
|
1345
|
+
</kendo-dateinput>
|
|
1326
1346
|
<button
|
|
1327
1347
|
#toggleButton
|
|
1328
1348
|
type="button"
|
|
@@ -1394,8 +1414,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
1394
1414
|
<ng-template #calendarTemplate>
|
|
1395
1415
|
<kendo-calendar
|
|
1396
1416
|
#calendar
|
|
1397
|
-
[size]="isAdaptive ? 'large' : 'medium'"
|
|
1398
1417
|
[type]="calendarType"
|
|
1418
|
+
[size]="isAdaptive ? 'large' : size"
|
|
1399
1419
|
[min]="min"
|
|
1400
1420
|
[max]="max"
|
|
1401
1421
|
[weekDaysFormat]="weekDaysFormat"
|
|
@@ -1462,6 +1482,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
1462
1482
|
}], cellTemplateRef: [{
|
|
1463
1483
|
type: Input,
|
|
1464
1484
|
args: ['cellTemplate']
|
|
1485
|
+
}], clearButton: [{
|
|
1486
|
+
type: Input
|
|
1465
1487
|
}], inputAttributes: [{
|
|
1466
1488
|
type: Input
|
|
1467
1489
|
}], monthCellTemplate: [{
|
|
@@ -24,8 +24,8 @@ import * as i0 from "@angular/core";
|
|
|
24
24
|
*/
|
|
25
25
|
export class DatePickerModule {
|
|
26
26
|
}
|
|
27
|
-
DatePickerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
28
|
-
DatePickerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "
|
|
27
|
+
DatePickerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DatePickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
28
|
+
DatePickerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: DatePickerModule, declarations: [DatePickerComponent,
|
|
29
29
|
DatePickerCustomMessagesComponent,
|
|
30
30
|
DatePickerLocalizedMessagesDirective], imports: [CommonModule,
|
|
31
31
|
DateInputModule,
|
|
@@ -40,19 +40,17 @@ DatePickerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", versio
|
|
|
40
40
|
DatePickerLocalizedMessagesDirective,
|
|
41
41
|
TemplatesModule,
|
|
42
42
|
ToggleButtonTabStopModule] });
|
|
43
|
-
DatePickerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
AdaptiveModule
|
|
53
|
-
], TemplatesModule,
|
|
43
|
+
DatePickerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DatePickerModule, providers: [{ provide: TOUCH_ENABLED, useValue: touchEnabled }], imports: [CommonModule,
|
|
44
|
+
DateInputModule,
|
|
45
|
+
CalendarModule,
|
|
46
|
+
IntlModule,
|
|
47
|
+
PopupModule,
|
|
48
|
+
TemplatesModule,
|
|
49
|
+
EventsModule,
|
|
50
|
+
IconsModule,
|
|
51
|
+
AdaptiveModule, TemplatesModule,
|
|
54
52
|
ToggleButtonTabStopModule] });
|
|
55
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
53
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DatePickerModule, decorators: [{
|
|
56
54
|
type: NgModule,
|
|
57
55
|
args: [{
|
|
58
56
|
declarations: [
|
|
@@ -19,14 +19,14 @@ export class DatePickerCustomMessagesComponent extends DatePickerMessages {
|
|
|
19
19
|
return true;
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
|
-
DatePickerCustomMessagesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
23
|
-
DatePickerCustomMessagesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
22
|
+
DatePickerCustomMessagesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DatePickerCustomMessagesComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
23
|
+
DatePickerCustomMessagesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: DatePickerCustomMessagesComponent, selector: "kendo-datepicker-messages", providers: [
|
|
24
24
|
{
|
|
25
25
|
provide: DatePickerMessages,
|
|
26
26
|
useExisting: forwardRef(() => DatePickerCustomMessagesComponent)
|
|
27
27
|
}
|
|
28
28
|
], usesInheritance: true, ngImport: i0, template: ``, isInline: true });
|
|
29
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
29
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DatePickerCustomMessagesComponent, decorators: [{
|
|
30
30
|
type: Component,
|
|
31
31
|
args: [{
|
|
32
32
|
providers: [
|
|
@@ -16,14 +16,14 @@ export class DatePickerLocalizedMessagesDirective extends DatePickerMessages {
|
|
|
16
16
|
this.service = service;
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
|
-
DatePickerLocalizedMessagesDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
20
|
-
DatePickerLocalizedMessagesDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "
|
|
19
|
+
DatePickerLocalizedMessagesDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DatePickerLocalizedMessagesDirective, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
20
|
+
DatePickerLocalizedMessagesDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: DatePickerLocalizedMessagesDirective, selector: "[kendoDatePickerLocalizedMessages]", providers: [
|
|
21
21
|
{
|
|
22
22
|
provide: DatePickerMessages,
|
|
23
23
|
useExisting: forwardRef(() => DatePickerLocalizedMessagesDirective)
|
|
24
24
|
}
|
|
25
25
|
], usesInheritance: true, ngImport: i0 });
|
|
26
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
26
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DatePickerLocalizedMessagesDirective, decorators: [{
|
|
27
27
|
type: Directive,
|
|
28
28
|
args: [{
|
|
29
29
|
providers: [
|
|
@@ -10,9 +10,9 @@ import * as i0 from "@angular/core";
|
|
|
10
10
|
*/
|
|
11
11
|
export class DatePickerMessages extends ComponentMessages {
|
|
12
12
|
}
|
|
13
|
-
DatePickerMessages.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
14
|
-
DatePickerMessages.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "
|
|
15
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
13
|
+
DatePickerMessages.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DatePickerMessages, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
14
|
+
DatePickerMessages.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: DatePickerMessages, selector: "kendo-datepicker-messages-base", inputs: { today: "today", toggle: "toggle", prevButtonTitle: "prevButtonTitle", nextButtonTitle: "nextButtonTitle", parentViewButtonTitle: "parentViewButtonTitle", clearTitle: "clearTitle" }, usesInheritance: true, ngImport: i0 });
|
|
15
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DatePickerMessages, decorators: [{
|
|
16
16
|
type: Directive,
|
|
17
17
|
args: [{
|
|
18
18
|
// eslint-disable-next-line
|
|
@@ -28,4 +28,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
28
28
|
type: Input
|
|
29
29
|
}], parentViewButtonTitle: [{
|
|
30
30
|
type: Input
|
|
31
|
+
}], clearTitle: [{
|
|
32
|
+
type: Input
|
|
31
33
|
}] } });
|
|
@@ -79,9 +79,9 @@ export class DateRangeEndInputDirective extends DateRangeInput {
|
|
|
79
79
|
this.dateInput.notify();
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
|
-
DateRangeEndInputDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
83
|
-
DateRangeEndInputDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "
|
|
84
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
82
|
+
DateRangeEndInputDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DateRangeEndInputDirective, deps: [{ token: i1.DateRangeService }, { token: i2.DateInputComponent }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive });
|
|
83
|
+
DateRangeEndInputDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: DateRangeEndInputDirective, selector: "[kendoDateRangeEndInput]", inputs: { autoCorrectOn: "autoCorrectOn", navigateCalendarOnFocus: "navigateCalendarOnFocus" }, usesInheritance: true, ngImport: i0 });
|
|
84
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DateRangeEndInputDirective, decorators: [{
|
|
85
85
|
type: Directive,
|
|
86
86
|
args: [{
|
|
87
87
|
selector: '[kendoDateRangeEndInput]'
|
|
@@ -121,9 +121,9 @@ export class DateRangeInput {
|
|
|
121
121
|
}
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
|
-
DateRangeInput.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
125
|
-
DateRangeInput.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "
|
|
126
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
124
|
+
DateRangeInput.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DateRangeInput, deps: "invalid", target: i0.ɵɵFactoryTarget.Directive });
|
|
125
|
+
DateRangeInput.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: DateRangeInput, ngImport: i0 });
|
|
126
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DateRangeInput, decorators: [{
|
|
127
127
|
type: Directive,
|
|
128
128
|
args: [{}]
|
|
129
129
|
}], ctorParameters: function () { return [{ type: undefined }, { type: i1.DateRangeService }, { type: i2.DateInputComponent }, { type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.NgZone }]; } });
|
|
@@ -13,9 +13,9 @@ export class DateRangePopupTemplateDirective {
|
|
|
13
13
|
this.templateRef = templateRef;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
|
-
DateRangePopupTemplateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
17
|
-
DateRangePopupTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "
|
|
18
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
16
|
+
DateRangePopupTemplateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DateRangePopupTemplateDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
17
|
+
DateRangePopupTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: DateRangePopupTemplateDirective, selector: "[kendoDateRangePopupTemplate]", ngImport: i0 });
|
|
18
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DateRangePopupTemplateDirective, decorators: [{
|
|
19
19
|
type: Directive,
|
|
20
20
|
args: [{
|
|
21
21
|
selector: '[kendoDateRangePopupTemplate]'
|
|
@@ -21,13 +21,12 @@ import * as i0 from "@angular/core";
|
|
|
21
21
|
import * as i1 from "@progress/kendo-angular-popup";
|
|
22
22
|
import * as i2 from "./date-range.service";
|
|
23
23
|
import * as i3 from "@progress/kendo-angular-l10n";
|
|
24
|
-
import * as i4 from "
|
|
25
|
-
import * as i5 from "
|
|
26
|
-
import * as i6 from "@progress/kendo-angular-
|
|
27
|
-
import * as i7 from "@progress/kendo-angular-
|
|
28
|
-
import * as i8 from "
|
|
29
|
-
import * as i9 from "./
|
|
30
|
-
import * as i10 from "@angular/common";
|
|
24
|
+
import * as i4 from "@angular/common";
|
|
25
|
+
import * as i5 from "../calendar/multiview-calendar.component";
|
|
26
|
+
import * as i6 from "@progress/kendo-angular-navigation";
|
|
27
|
+
import * as i7 from "@progress/kendo-angular-common";
|
|
28
|
+
import * as i8 from "@progress/kendo-angular-buttons";
|
|
29
|
+
import * as i9 from "./localization/daterange-popup-localized-messages.directive";
|
|
31
30
|
/**
|
|
32
31
|
* Represents the Kendo UI DateRangePopup component for Angular.
|
|
33
32
|
*
|
|
@@ -56,6 +55,13 @@ export class DateRangePopupComponent {
|
|
|
56
55
|
this.localization = localization;
|
|
57
56
|
this.cdr = cdr;
|
|
58
57
|
this.rtl = rtl;
|
|
58
|
+
/**
|
|
59
|
+
* Allows reverse selection when using `range` selection.
|
|
60
|
+
* If `allowReverse` is set to `true`, the component skips the validation of whether the start date is after the end date.
|
|
61
|
+
*
|
|
62
|
+
* @default false
|
|
63
|
+
*/
|
|
64
|
+
this.allowReverse = false;
|
|
59
65
|
/**
|
|
60
66
|
* Controls the popup animation.
|
|
61
67
|
* By default, the opening and closing animations are enabled.
|
|
@@ -204,6 +210,14 @@ export class DateRangePopupComponent {
|
|
|
204
210
|
this.actionSheet.titleId = changes.first?.headerId;
|
|
205
211
|
this.cdr.detectChanges();
|
|
206
212
|
}));
|
|
213
|
+
this.calendarSubscriptions.add(this.dateRangeService.startInput$?.value?.valueChange.subscribe((res) => {
|
|
214
|
+
if (!res && this.dateRangeService.selectionRange.end) {
|
|
215
|
+
this.calendar.shouldHoverWhenNoStart = true;
|
|
216
|
+
}
|
|
217
|
+
else {
|
|
218
|
+
this.calendar.shouldHoverWhenNoStart = false;
|
|
219
|
+
}
|
|
220
|
+
}));
|
|
207
221
|
if (isWindowAvailable()) {
|
|
208
222
|
this.zone.runOutsideAngular(() => this.windowBlurSubscription = fromEvent(window, 'blur').subscribe(this.handleWindowBlur.bind(this)));
|
|
209
223
|
}
|
|
@@ -227,6 +241,19 @@ export class DateRangePopupComponent {
|
|
|
227
241
|
this.windowBlurSubscription.unsubscribe();
|
|
228
242
|
}
|
|
229
243
|
}
|
|
244
|
+
/**
|
|
245
|
+
* @hidden
|
|
246
|
+
*
|
|
247
|
+
*/
|
|
248
|
+
onRangeSelectionChange(rangeSelection) {
|
|
249
|
+
this.dateRangeService.setActiveRangeEnd(rangeSelection.activeRangeEnd);
|
|
250
|
+
if (!this.isAdaptive) {
|
|
251
|
+
this.dateRangeService.setRange(rangeSelection.selectionRange);
|
|
252
|
+
}
|
|
253
|
+
else {
|
|
254
|
+
this._rangeSelection = rangeSelection.selectionRange;
|
|
255
|
+
}
|
|
256
|
+
}
|
|
230
257
|
/**
|
|
231
258
|
* Opens the popup component and focuses the calendar.
|
|
232
259
|
*/
|
|
@@ -294,7 +321,7 @@ export class DateRangePopupComponent {
|
|
|
294
321
|
* @hidden
|
|
295
322
|
*/
|
|
296
323
|
handleAccept() {
|
|
297
|
-
this.
|
|
324
|
+
this.dateRangeService.setRange(this._rangeSelection);
|
|
298
325
|
this.show = false;
|
|
299
326
|
}
|
|
300
327
|
/**
|
|
@@ -304,7 +331,6 @@ export class DateRangePopupComponent {
|
|
|
304
331
|
if (!this.show || this.windowSize === windowSize()) {
|
|
305
332
|
return;
|
|
306
333
|
}
|
|
307
|
-
;
|
|
308
334
|
if (this.actionSheet.expanded) {
|
|
309
335
|
this.toggleActionSheet(false);
|
|
310
336
|
}
|
|
@@ -326,7 +352,6 @@ export class DateRangePopupComponent {
|
|
|
326
352
|
else {
|
|
327
353
|
this.dateRangeService.endInput$.value.focus();
|
|
328
354
|
}
|
|
329
|
-
;
|
|
330
355
|
}
|
|
331
356
|
/**
|
|
332
357
|
* @hidden
|
|
@@ -341,7 +366,6 @@ export class DateRangePopupComponent {
|
|
|
341
366
|
this.dateRangeService.endInput$.value.focus();
|
|
342
367
|
}
|
|
343
368
|
}
|
|
344
|
-
;
|
|
345
369
|
/**
|
|
346
370
|
* @hidden
|
|
347
371
|
*/
|
|
@@ -476,8 +500,8 @@ export class DateRangePopupComponent {
|
|
|
476
500
|
}
|
|
477
501
|
}
|
|
478
502
|
}
|
|
479
|
-
DateRangePopupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
480
|
-
DateRangePopupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
503
|
+
DateRangePopupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", 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 });
|
|
504
|
+
DateRangePopupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: DateRangePopupComponent, selector: "kendo-daterange-popup", inputs: { allowReverse: "allowReverse", animate: "animate", anchor: "anchor", anchorAlign: "anchorAlign", 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: [
|
|
481
505
|
LocalizationService,
|
|
482
506
|
{
|
|
483
507
|
provide: L10N_PREFIX,
|
|
@@ -500,7 +524,16 @@ DateRangePopupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0"
|
|
|
500
524
|
</ng-container>
|
|
501
525
|
<ng-container #container></ng-container>
|
|
502
526
|
<ng-template #defaultTemplate>
|
|
503
|
-
<kendo-multiviewcalendar
|
|
527
|
+
<kendo-multiviewcalendar
|
|
528
|
+
[allowReverse]="allowReverse"
|
|
529
|
+
selection="range"
|
|
530
|
+
[size]="size"
|
|
531
|
+
[value]="dateRangeService.selectionRange"
|
|
532
|
+
(onClosePopup)="closePopup($event)"
|
|
533
|
+
(onTabPress)="handleTab($event)"
|
|
534
|
+
(onShiftTabPress)="handleShiftTab($event)"
|
|
535
|
+
(rangeSelectionChange)="onRangeSelectionChange($event)"
|
|
536
|
+
></kendo-multiviewcalendar>
|
|
504
537
|
</ng-template>
|
|
505
538
|
|
|
506
539
|
<kendo-actionsheet
|
|
@@ -541,8 +574,12 @@ DateRangePopupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0"
|
|
|
541
574
|
<kendo-multiviewcalendar
|
|
542
575
|
class="k-calendar-lg"
|
|
543
576
|
orientation="vertical"
|
|
544
|
-
|
|
545
|
-
[
|
|
577
|
+
[allowReverse]="allowReverse"
|
|
578
|
+
[focusedDate]="dateRangeService.focusedDate"
|
|
579
|
+
[value]="dateRangeService.selectionRange"
|
|
580
|
+
selection="range"
|
|
581
|
+
(rangeSelectionChange)="onRangeSelectionChange($event)"
|
|
582
|
+
>
|
|
546
583
|
</kendo-multiviewcalendar>
|
|
547
584
|
</div>
|
|
548
585
|
</div>
|
|
@@ -570,8 +607,8 @@ DateRangePopupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0"
|
|
|
570
607
|
</div>
|
|
571
608
|
</ng-template>
|
|
572
609
|
</kendo-actionsheet>
|
|
573
|
-
`, isInline: true,
|
|
574
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
610
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i5.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: i6.ActionSheetComponent, selector: "kendo-actionsheet", inputs: ["title", "subtitle", "items", "cssClass", "animation", "expanded", "titleId"], outputs: ["expandedChange", "expand", "collapse", "itemClick", "overlayClick"], exportAs: ["kendoActionSheet"] }, { kind: "directive", type: i6.ActionSheetTemplateDirective, selector: "[kendoActionSheetTemplate]" }, { kind: "component", type: i7.ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }, { kind: "component", type: i8.ButtonComponent, selector: "button[kendoButton], span[kendoButton], kendo-button", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { kind: "directive", type: i9.DateRangePopupLocalizedMessagesDirective, selector: "[kendoDateRangePopupLocalizedMessages]" }] });
|
|
611
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DateRangePopupComponent, decorators: [{
|
|
575
612
|
type: Component,
|
|
576
613
|
args: [{
|
|
577
614
|
exportAs: 'kendo-daterange-popup',
|
|
@@ -600,7 +637,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
600
637
|
</ng-container>
|
|
601
638
|
<ng-container #container></ng-container>
|
|
602
639
|
<ng-template #defaultTemplate>
|
|
603
|
-
<kendo-multiviewcalendar
|
|
640
|
+
<kendo-multiviewcalendar
|
|
641
|
+
[allowReverse]="allowReverse"
|
|
642
|
+
selection="range"
|
|
643
|
+
[size]="size"
|
|
644
|
+
[value]="dateRangeService.selectionRange"
|
|
645
|
+
(onClosePopup)="closePopup($event)"
|
|
646
|
+
(onTabPress)="handleTab($event)"
|
|
647
|
+
(onShiftTabPress)="handleShiftTab($event)"
|
|
648
|
+
(rangeSelectionChange)="onRangeSelectionChange($event)"
|
|
649
|
+
></kendo-multiviewcalendar>
|
|
604
650
|
</ng-template>
|
|
605
651
|
|
|
606
652
|
<kendo-actionsheet
|
|
@@ -641,8 +687,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
641
687
|
<kendo-multiviewcalendar
|
|
642
688
|
class="k-calendar-lg"
|
|
643
689
|
orientation="vertical"
|
|
644
|
-
|
|
645
|
-
[
|
|
690
|
+
[allowReverse]="allowReverse"
|
|
691
|
+
[focusedDate]="dateRangeService.focusedDate"
|
|
692
|
+
[value]="dateRangeService.selectionRange"
|
|
693
|
+
selection="range"
|
|
694
|
+
(rangeSelectionChange)="onRangeSelectionChange($event)"
|
|
695
|
+
>
|
|
646
696
|
</kendo-multiviewcalendar>
|
|
647
697
|
</div>
|
|
648
698
|
</div>
|
|
@@ -698,6 +748,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
698
748
|
}], contentCalendar: [{
|
|
699
749
|
type: ContentChildren,
|
|
700
750
|
args: [MultiViewCalendarComponent]
|
|
751
|
+
}], allowReverse: [{
|
|
752
|
+
type: Input
|
|
701
753
|
}], animate: [{
|
|
702
754
|
type: Input
|
|
703
755
|
}], anchor: [{
|
|
@@ -718,6 +770,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
718
770
|
type: Input
|
|
719
771
|
}], subtitle: [{
|
|
720
772
|
type: Input
|
|
773
|
+
}], size: [{
|
|
774
|
+
type: Input
|
|
721
775
|
}], open: [{
|
|
722
776
|
type: Output
|
|
723
777
|
}], close: [{
|
|
@@ -190,9 +190,9 @@ export class DateRangeSelectionDirective {
|
|
|
190
190
|
this.selectionRangeChange.emit(range);
|
|
191
191
|
}
|
|
192
192
|
}
|
|
193
|
-
DateRangeSelectionDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
194
|
-
DateRangeSelectionDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "
|
|
195
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
193
|
+
DateRangeSelectionDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", 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 });
|
|
194
|
+
DateRangeSelectionDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: DateRangeSelectionDirective, selector: "[kendoDateRangeSelection]", inputs: { autoCorrectOn: "autoCorrectOn", selectionRange: "selectionRange", activeRangeEnd: "activeRangeEnd", shouldSetRange: "shouldSetRange" }, outputs: { activeRangeEndChange: "activeRangeEndChange", selectionRangeChange: "selectionRangeChange" }, ngImport: i0 });
|
|
195
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DateRangeSelectionDirective, decorators: [{
|
|
196
196
|
type: Directive,
|
|
197
197
|
args: [{
|
|
198
198
|
selector: '[kendoDateRangeSelection]'
|