@progress/kendo-angular-dateinputs 16.0.0-develop.2 → 16.0.0-develop.20
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
|
@@ -16,14 +16,14 @@ export class TimePickerLocalizedMessagesDirective extends TimePickerMessages {
|
|
|
16
16
|
this.service = service;
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
|
-
TimePickerLocalizedMessagesDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
20
|
-
TimePickerLocalizedMessagesDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "
|
|
19
|
+
TimePickerLocalizedMessagesDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TimePickerLocalizedMessagesDirective, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
20
|
+
TimePickerLocalizedMessagesDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: TimePickerLocalizedMessagesDirective, selector: "[kendoTimePickerLocalizedMessages]", providers: [
|
|
21
21
|
{
|
|
22
22
|
provide: TimePickerMessages,
|
|
23
23
|
useExisting: forwardRef(() => TimePickerLocalizedMessagesDirective)
|
|
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: TimePickerLocalizedMessagesDirective, decorators: [{
|
|
27
27
|
type: Directive,
|
|
28
28
|
args: [{
|
|
29
29
|
providers: [
|
|
@@ -21,14 +21,14 @@ export class TimeSelectorCustomMessagesComponent extends TimePickerMessages {
|
|
|
21
21
|
return true;
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
|
-
TimeSelectorCustomMessagesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
25
|
-
TimeSelectorCustomMessagesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
24
|
+
TimeSelectorCustomMessagesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TimeSelectorCustomMessagesComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
25
|
+
TimeSelectorCustomMessagesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: TimeSelectorCustomMessagesComponent, selector: "kendo-timeselector-messages", providers: [
|
|
26
26
|
{
|
|
27
27
|
provide: TimePickerMessages,
|
|
28
28
|
useExisting: forwardRef(() => TimeSelectorCustomMessagesComponent)
|
|
29
29
|
}
|
|
30
30
|
], usesInheritance: true, ngImport: i0, template: ``, isInline: true });
|
|
31
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
31
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TimeSelectorCustomMessagesComponent, decorators: [{
|
|
32
32
|
type: Component,
|
|
33
33
|
args: [{
|
|
34
34
|
providers: [
|
|
@@ -16,14 +16,14 @@ export class TimeSelectorLocalizedMessagesDirective extends TimePickerMessages {
|
|
|
16
16
|
this.service = service;
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
|
-
TimeSelectorLocalizedMessagesDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
20
|
-
TimeSelectorLocalizedMessagesDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "
|
|
19
|
+
TimeSelectorLocalizedMessagesDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TimeSelectorLocalizedMessagesDirective, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
20
|
+
TimeSelectorLocalizedMessagesDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: TimeSelectorLocalizedMessagesDirective, selector: "[kendoTimeSelectorLocalizedMessages]", providers: [
|
|
21
21
|
{
|
|
22
22
|
provide: TimePickerMessages,
|
|
23
23
|
useExisting: forwardRef(() => TimeSelectorLocalizedMessagesDirective)
|
|
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: TimeSelectorLocalizedMessagesDirective, decorators: [{
|
|
27
27
|
type: Directive,
|
|
28
28
|
args: [{
|
|
29
29
|
providers: [
|
|
@@ -117,8 +117,8 @@ export class DayPeriodService {
|
|
|
117
117
|
];
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
|
-
DayPeriodService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
121
|
-
DayPeriodService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
122
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
120
|
+
DayPeriodService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DayPeriodService, deps: [{ token: i1.IntlService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
121
|
+
DayPeriodService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DayPeriodService });
|
|
122
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DayPeriodService, decorators: [{
|
|
123
123
|
type: Injectable
|
|
124
124
|
}], ctorParameters: function () { return [{ type: i1.IntlService }]; } });
|
|
@@ -75,8 +75,8 @@ export class TimePickerDOMService {
|
|
|
75
75
|
return (element.nativeElement || element) === document.activeElement;
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
|
-
TimePickerDOMService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
79
|
-
TimePickerDOMService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
80
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
78
|
+
TimePickerDOMService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TimePickerDOMService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
79
|
+
TimePickerDOMService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TimePickerDOMService });
|
|
80
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TimePickerDOMService, decorators: [{
|
|
81
81
|
type: Injectable
|
|
82
82
|
}] });
|
|
@@ -115,8 +115,8 @@ export class HoursService {
|
|
|
115
115
|
return [min.getHours(), max.getHours()];
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
|
-
HoursService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
119
|
-
HoursService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
120
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
118
|
+
HoursService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: HoursService, deps: [{ token: i1.IntlService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
119
|
+
HoursService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: HoursService });
|
|
120
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: HoursService, decorators: [{
|
|
121
121
|
type: Injectable
|
|
122
122
|
}], ctorParameters: function () { return [{ type: i1.IntlService }]; } });
|
|
@@ -116,8 +116,8 @@ export class MillisecondsService {
|
|
|
116
116
|
return [min.getMilliseconds(), max.getMilliseconds()];
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
|
-
MillisecondsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
120
|
-
MillisecondsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
121
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
119
|
+
MillisecondsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MillisecondsService, deps: [{ token: i1.IntlService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
120
|
+
MillisecondsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MillisecondsService });
|
|
121
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MillisecondsService, decorators: [{
|
|
122
122
|
type: Injectable
|
|
123
123
|
}], ctorParameters: function () { return [{ type: i1.IntlService }]; } });
|
|
@@ -113,8 +113,8 @@ export class MinutesService {
|
|
|
113
113
|
return [min.getMinutes(), max.getMinutes()];
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
|
-
MinutesService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
117
|
-
MinutesService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
118
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
116
|
+
MinutesService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MinutesService, deps: [{ token: i1.IntlService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
117
|
+
MinutesService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MinutesService });
|
|
118
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MinutesService, decorators: [{
|
|
119
119
|
type: Injectable
|
|
120
120
|
}], ctorParameters: function () { return [{ type: i1.IntlService }]; } });
|
|
@@ -113,8 +113,8 @@ export class SecondsService {
|
|
|
113
113
|
return [min.getSeconds(), max.getSeconds()];
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
|
-
SecondsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
117
|
-
SecondsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
118
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
116
|
+
SecondsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SecondsService, deps: [{ token: i1.IntlService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
117
|
+
SecondsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SecondsService });
|
|
118
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SecondsService, decorators: [{
|
|
119
119
|
type: Injectable
|
|
120
120
|
}], ctorParameters: function () { return [{ type: i1.IntlService }]; } });
|
|
@@ -21,8 +21,8 @@ import { Keys } from '@progress/kendo-angular-common';
|
|
|
21
21
|
import * as i0 from "@angular/core";
|
|
22
22
|
import * as i1 from "./services/dom.service";
|
|
23
23
|
import * as i2 from "@progress/kendo-angular-l10n";
|
|
24
|
-
import * as i3 from "
|
|
25
|
-
import * as i4 from "
|
|
24
|
+
import * as i3 from "@angular/common";
|
|
25
|
+
import * as i4 from "../virtualization/virtualization.component";
|
|
26
26
|
import * as i5 from "@progress/kendo-angular-common";
|
|
27
27
|
const SNAP_THRESHOLD = 0.05; //% of the item height
|
|
28
28
|
const SCROLL_THRESHOLD = 2; //< 2px threshold
|
|
@@ -257,8 +257,8 @@ export class TimeListComponent {
|
|
|
257
257
|
this.domEvents.push(this.renderer.listen(element, 'mouseover', () => !this.isActive && this.focus()), this.renderer.listen(element, 'click', () => this.focus()), this.renderer.listen(element, 'blur', () => this.isActive = false), this.renderer.listen(element, 'focus', () => this.isActive = true), this.renderer.listen(element, 'keydown', this.handleKeyDown.bind(this)));
|
|
258
258
|
}
|
|
259
259
|
}
|
|
260
|
-
TimeListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
261
|
-
TimeListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
260
|
+
TimeListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TimeListComponent, deps: [{ token: i0.ElementRef }, { token: i0.Injector }, { token: i1.TimePickerDOMService }, { token: i0.Renderer2 }, { token: i0.NgZone }, { token: i2.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
261
|
+
TimeListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: TimeListComponent, selector: "kendo-timelist", inputs: { min: "min", max: "max", part: "part", step: "step", disabled: "disabled", value: "value", isLast: "isLast" }, outputs: { valueChange: "valueChange", tabOutLastPart: "tabOutLastPart" }, host: { properties: { "attr.role": "this.roleAttribute", "attr.aria-label": "this.ariaLabel", "attr.tabindex": "this.tabIndex", "class.k-time-list": "this.componentClass" } }, viewQueries: [{ propertyName: "virtualization", first: true, predicate: VirtualizationComponent, descendants: true, static: true }], usesOnChanges: true, ngImport: i0, template: `
|
|
262
262
|
<kendo-virtualization
|
|
263
263
|
[skip]="skip"
|
|
264
264
|
[take]="total"
|
|
@@ -286,8 +286,8 @@ TimeListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", vers
|
|
|
286
286
|
</li>
|
|
287
287
|
</ul>
|
|
288
288
|
</kendo-virtualization>
|
|
289
|
-
`, isInline: true,
|
|
290
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
289
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i3.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: i4.VirtualizationComponent, selector: "kendo-virtualization", inputs: ["direction", "itemHeight", "itemWidth", "topOffset", "bottomOffset", "maxScrollDifference", "scrollOffsetSize", "scrollDuration", "skip", "take", "total"], outputs: ["activeIndexChange", "pageChange", "scrollChange"] }, { kind: "directive", type: i5.EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }] });
|
|
290
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TimeListComponent, decorators: [{
|
|
291
291
|
type: Component,
|
|
292
292
|
args: [{
|
|
293
293
|
selector: 'kendo-timelist',
|
|
@@ -30,15 +30,16 @@ import * as i2 from "@progress/kendo-angular-l10n";
|
|
|
30
30
|
import * as i3 from "@progress/kendo-angular-popup";
|
|
31
31
|
import * as i4 from "../common/picker.service";
|
|
32
32
|
import * as i5 from "@progress/kendo-angular-intl";
|
|
33
|
-
import * as i6 from "
|
|
34
|
-
import * as i7 from "
|
|
35
|
-
import * as i8 from "
|
|
36
|
-
import * as i9 from "@progress/kendo-angular-
|
|
37
|
-
import * as i10 from "@progress/kendo-angular-
|
|
38
|
-
import * as i11 from "
|
|
39
|
-
import * as i12 from "
|
|
33
|
+
import * as i6 from "@angular/common";
|
|
34
|
+
import * as i7 from "../dateinput/dateinput.component";
|
|
35
|
+
import * as i8 from "../dateinput/localization/dateinput-custom-messages.component";
|
|
36
|
+
import * as i9 from "@progress/kendo-angular-common";
|
|
37
|
+
import * as i10 from "@progress/kendo-angular-icons";
|
|
38
|
+
import * as i11 from "@progress/kendo-angular-navigation";
|
|
39
|
+
import * as i12 from "@progress/kendo-angular-buttons";
|
|
40
40
|
import * as i13 from "./localization/timepicker-localized-messages.directive";
|
|
41
|
-
import * as i14 from "
|
|
41
|
+
import * as i14 from "./localization/timeselector-custom-messages.component";
|
|
42
|
+
import * as i15 from "./timeselector.component";
|
|
42
43
|
const VALUE_DOC_LINK = 'https://www.telerik.com/kendo-angular-ui/components/dateinputs/timepicker/#toc-integration-with-json';
|
|
43
44
|
const INTL_DATE_FORMAT = 'https://github.com/telerik/kendo-intl/blob/master/docs/date-formatting/index.md';
|
|
44
45
|
const formatRegExp = new RegExp(`${TIME_PART.hour}|${TIME_PART.minute}|${TIME_PART.second}|${TIME_PART.millisecond}|${TIME_PART.dayperiod}|literal`);
|
|
@@ -85,6 +86,12 @@ export class TimePickerComponent {
|
|
|
85
86
|
* the input will be rendered in a read-only state regardless of the `readOnlyInput` value.
|
|
86
87
|
*/
|
|
87
88
|
this.readOnlyInput = false;
|
|
89
|
+
/**
|
|
90
|
+
* If set to `true`, renders a clear button after the input text or TimePicker value has been changed.
|
|
91
|
+
* Clicking this button resets the value of the component to `null` and triggers the `valueChange` event.
|
|
92
|
+
* @default false
|
|
93
|
+
*/
|
|
94
|
+
this.clearButton = false;
|
|
88
95
|
/**
|
|
89
96
|
* Specifies the time format that is used to display the input value
|
|
90
97
|
* ([see example]({% slug formats_timepicker %})).
|
|
@@ -397,7 +404,6 @@ export class TimePickerComponent {
|
|
|
397
404
|
get popupUID() {
|
|
398
405
|
return `k-timepicker-popup-${this.bus.calendarId}-`;
|
|
399
406
|
}
|
|
400
|
-
;
|
|
401
407
|
get isActive() {
|
|
402
408
|
return this._active;
|
|
403
409
|
}
|
|
@@ -456,7 +462,6 @@ export class TimePickerComponent {
|
|
|
456
462
|
get adaptiveAcceptButton() {
|
|
457
463
|
return this.actionSheet.element.nativeElement.querySelector(ACCEPT_BUTTON_SELECTOR);
|
|
458
464
|
}
|
|
459
|
-
;
|
|
460
465
|
get inputElement() {
|
|
461
466
|
return this.wrapper.nativeElement.querySelector('input');
|
|
462
467
|
}
|
|
@@ -660,6 +665,7 @@ export class TimePickerComponent {
|
|
|
660
665
|
this.focusInput();
|
|
661
666
|
this.show = false;
|
|
662
667
|
}
|
|
668
|
+
this.dateInput.showClearButton = true;
|
|
663
669
|
this.onControlChange(cloneDate(value));
|
|
664
670
|
this.valueChange.emit(cloneDate(value));
|
|
665
671
|
});
|
|
@@ -759,7 +765,6 @@ export class TimePickerComponent {
|
|
|
759
765
|
if (!this.isOpen || this.windowSize === windowSize()) {
|
|
760
766
|
return;
|
|
761
767
|
}
|
|
762
|
-
;
|
|
763
768
|
if (this.actionSheet.expanded) {
|
|
764
769
|
this.toggleActionSheet(false);
|
|
765
770
|
}
|
|
@@ -963,8 +968,8 @@ export class TimePickerComponent {
|
|
|
963
968
|
}
|
|
964
969
|
}
|
|
965
970
|
}
|
|
966
|
-
TimePickerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
967
|
-
TimePickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
971
|
+
TimePickerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TimePickerComponent, deps: [{ token: i1.BusViewService }, { token: i0.NgZone }, { token: i2.LocalizationService }, { token: i0.ChangeDetectorRef }, { token: i3.PopupService }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.Injector }, { token: i4.PickerService }, { token: i5.IntlService }, { token: TOUCH_ENABLED, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
972
|
+
TimePickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: TimePickerComponent, selector: "kendo-timepicker", inputs: { focusableId: "focusableId", disabled: "disabled", readonly: "readonly", readOnlyInput: "readOnlyInput", clearButton: "clearButton", format: "format", formatPlaceholder: "formatPlaceholder", placeholder: "placeholder", min: "min", max: "max", incompleteDateValidation: "incompleteDateValidation", autoCorrectParts: "autoCorrectParts", autoSwitchParts: "autoSwitchParts", autoSwitchKeys: "autoSwitchKeys", enableMouseWheel: "enableMouseWheel", allowCaretMode: "allowCaretMode", cancelButton: "cancelButton", nowButton: "nowButton", steps: "steps", popupSettings: "popupSettings", tabindex: "tabindex", tabIndex: "tabIndex", title: "title", subtitle: "subtitle", rangeValidation: "rangeValidation", adaptiveMode: "adaptiveMode", value: "value", size: "size", rounded: "rounded", fillMode: "fillMode", inputAttributes: "inputAttributes" }, outputs: { valueChange: "valueChange", onFocus: "focus", onBlur: "blur", open: "open", close: "close" }, host: { properties: { "class.k-readonly": "this.readonly", "class.k-timepicker": "this.wrapperClasses", "class.k-input": "this.wrapperClasses", "class.k-disabled": "this.disabledClass" } }, providers: [
|
|
968
973
|
{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => TimePickerComponent), multi: true },
|
|
969
974
|
{ provide: NG_VALIDATORS, useExisting: forwardRef(() => TimePickerComponent), multi: true },
|
|
970
975
|
{ provide: KendoInput, useExisting: forwardRef(() => TimePickerComponent) },
|
|
@@ -1012,6 +1017,9 @@ TimePickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ve
|
|
|
1012
1017
|
|
|
1013
1018
|
i18n-dayperiod="kendo.timepicker.dayperiod|The label for the dayperiod part in the timepicker component"
|
|
1014
1019
|
dayperiod="Dayperiod"
|
|
1020
|
+
|
|
1021
|
+
i18n-clearTitle="kendo.timepicker.clearTitle|The title of the clear button"
|
|
1022
|
+
clearTitle="clear"
|
|
1015
1023
|
>
|
|
1016
1024
|
</ng-container>
|
|
1017
1025
|
<kendo-dateinput
|
|
@@ -1020,6 +1028,7 @@ TimePickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ve
|
|
|
1020
1028
|
hasPopup="dialog"
|
|
1021
1029
|
[isPopupOpen]="show"
|
|
1022
1030
|
[disabled]="disabled"
|
|
1031
|
+
[clearButton]="clearButton"
|
|
1023
1032
|
[readonly]="readonly || readOnlyInput"
|
|
1024
1033
|
[role]="'combobox'"
|
|
1025
1034
|
[ariaReadOnly]="readonly"
|
|
@@ -1046,7 +1055,12 @@ TimePickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ve
|
|
|
1046
1055
|
[value]="value"
|
|
1047
1056
|
(valueChange)="handleInputChange($event)"
|
|
1048
1057
|
(click)="handleDateInputClick()"
|
|
1049
|
-
|
|
1058
|
+
>
|
|
1059
|
+
<kendo-dateinput-messages
|
|
1060
|
+
[clearTitle]="localization.get('clearTitle')"
|
|
1061
|
+
>
|
|
1062
|
+
</kendo-dateinput-messages>
|
|
1063
|
+
</kendo-dateinput>
|
|
1050
1064
|
<button
|
|
1051
1065
|
#toggleButton
|
|
1052
1066
|
type="button"
|
|
@@ -1171,8 +1185,8 @@ TimePickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ve
|
|
|
1171
1185
|
</kendo-timeselector-messages>
|
|
1172
1186
|
</kendo-timeselector>
|
|
1173
1187
|
</ng-template>
|
|
1174
|
-
`, isInline: true,
|
|
1175
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1188
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i6.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i7.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: i8.DateInputCustomMessagesComponent, selector: "kendo-dateinput-messages" }, { kind: "directive", type: i9.EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }, { kind: "component", type: i10.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "component", type: i11.ActionSheetComponent, selector: "kendo-actionsheet", inputs: ["title", "subtitle", "items", "cssClass", "animation", "expanded", "titleId"], outputs: ["expandedChange", "expand", "collapse", "itemClick", "overlayClick"], exportAs: ["kendoActionSheet"] }, { kind: "directive", type: i11.ActionSheetTemplateDirective, selector: "[kendoActionSheetTemplate]" }, { kind: "component", type: i9.ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }, { kind: "component", type: i12.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: i13.TimePickerLocalizedMessagesDirective, selector: "[kendoTimePickerLocalizedMessages]" }, { kind: "component", type: i14.TimeSelectorCustomMessagesComponent, selector: "kendo-timeselector-messages" }, { kind: "component", type: i15.TimeSelectorComponent, selector: "kendo-timeselector", inputs: ["format", "min", "max", "cancelButton", "setButton", "nowButton", "disabled", "isAdaptiveEnabled", "isDateTimePicker", "steps", "value"], outputs: ["valueChange", "valueReject", "tabOutLastPart", "tabOutNow"], exportAs: ["kendo-timeselector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1189
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TimePickerComponent, decorators: [{
|
|
1176
1190
|
type: Component,
|
|
1177
1191
|
args: [{
|
|
1178
1192
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
@@ -1227,6 +1241,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
1227
1241
|
|
|
1228
1242
|
i18n-dayperiod="kendo.timepicker.dayperiod|The label for the dayperiod part in the timepicker component"
|
|
1229
1243
|
dayperiod="Dayperiod"
|
|
1244
|
+
|
|
1245
|
+
i18n-clearTitle="kendo.timepicker.clearTitle|The title of the clear button"
|
|
1246
|
+
clearTitle="clear"
|
|
1230
1247
|
>
|
|
1231
1248
|
</ng-container>
|
|
1232
1249
|
<kendo-dateinput
|
|
@@ -1235,6 +1252,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
1235
1252
|
hasPopup="dialog"
|
|
1236
1253
|
[isPopupOpen]="show"
|
|
1237
1254
|
[disabled]="disabled"
|
|
1255
|
+
[clearButton]="clearButton"
|
|
1238
1256
|
[readonly]="readonly || readOnlyInput"
|
|
1239
1257
|
[role]="'combobox'"
|
|
1240
1258
|
[ariaReadOnly]="readonly"
|
|
@@ -1261,7 +1279,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
1261
1279
|
[value]="value"
|
|
1262
1280
|
(valueChange)="handleInputChange($event)"
|
|
1263
1281
|
(click)="handleDateInputClick()"
|
|
1264
|
-
|
|
1282
|
+
>
|
|
1283
|
+
<kendo-dateinput-messages
|
|
1284
|
+
[clearTitle]="localization.get('clearTitle')"
|
|
1285
|
+
>
|
|
1286
|
+
</kendo-dateinput-messages>
|
|
1287
|
+
</kendo-dateinput>
|
|
1265
1288
|
<button
|
|
1266
1289
|
#toggleButton
|
|
1267
1290
|
type="button"
|
|
@@ -1416,6 +1439,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
1416
1439
|
args: ['class.k-readonly']
|
|
1417
1440
|
}], readOnlyInput: [{
|
|
1418
1441
|
type: Input
|
|
1442
|
+
}], clearButton: [{
|
|
1443
|
+
type: Input
|
|
1419
1444
|
}], format: [{
|
|
1420
1445
|
type: Input
|
|
1421
1446
|
}], formatPlaceholder: [{
|
|
@@ -64,8 +64,8 @@ const providers = [
|
|
|
64
64
|
*/
|
|
65
65
|
export class TimePickerModule {
|
|
66
66
|
}
|
|
67
|
-
TimePickerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
68
|
-
TimePickerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "
|
|
67
|
+
TimePickerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TimePickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
68
|
+
TimePickerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: TimePickerModule, declarations: [TimePickerLocalizedMessagesDirective,
|
|
69
69
|
TimeListComponent,
|
|
70
70
|
TimePickerCustomMessagesComponent,
|
|
71
71
|
TimePickerComponent,
|
|
@@ -85,8 +85,8 @@ TimePickerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", versio
|
|
|
85
85
|
TimeSelectorLocalizedMessagesDirective,
|
|
86
86
|
TimeSelectorCustomMessagesComponent,
|
|
87
87
|
TimeSelectorComponent] });
|
|
88
|
-
TimePickerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
89
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
88
|
+
TimePickerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TimePickerModule, providers: providers, imports: [CommonModule, COMPONENT_MODULES] });
|
|
89
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TimePickerModule, decorators: [{
|
|
90
90
|
type: NgModule,
|
|
91
91
|
args: [{
|
|
92
92
|
declarations: [COMPONENT_DIRECTIVES],
|
|
@@ -21,10 +21,10 @@ import * as i1 from "@progress/kendo-angular-l10n";
|
|
|
21
21
|
import * as i2 from "@progress/kendo-angular-intl";
|
|
22
22
|
import * as i3 from "./services/dom.service";
|
|
23
23
|
import * as i4 from "../common/picker.service";
|
|
24
|
-
import * as i5 from "
|
|
25
|
-
import * as i6 from "
|
|
26
|
-
import * as i7 from "
|
|
27
|
-
import * as i8 from "
|
|
24
|
+
import * as i5 from "@angular/common";
|
|
25
|
+
import * as i6 from "@progress/kendo-angular-common";
|
|
26
|
+
import * as i7 from "./timelist.component";
|
|
27
|
+
import * as i8 from "./localization/timeselector-localized-messages.directive";
|
|
28
28
|
const listReducer = (state, list, idx, all) => {
|
|
29
29
|
if (state.length || !list.isActive) {
|
|
30
30
|
return state;
|
|
@@ -97,6 +97,7 @@ export class TimeSelectorComponent {
|
|
|
97
97
|
*/
|
|
98
98
|
this.valueReject = new EventEmitter();
|
|
99
99
|
this.tabOutLastPart = new EventEmitter();
|
|
100
|
+
this.tabOutNow = new EventEmitter();
|
|
100
101
|
this.isActive = false;
|
|
101
102
|
this.showNowButton = true;
|
|
102
103
|
this._activeListIndex = -1;
|
|
@@ -192,7 +193,7 @@ export class TimeSelectorComponent {
|
|
|
192
193
|
if (keyCode === Keys.Tab && shiftKey) {
|
|
193
194
|
event.preventDefault();
|
|
194
195
|
this.renderer.removeClass(this.timeListWrappers.first.nativeElement, 'k-focus');
|
|
195
|
-
this.
|
|
196
|
+
this.now ? this.now.nativeElement.focus() : this.cancel.nativeElement.focus();
|
|
196
197
|
}
|
|
197
198
|
}));
|
|
198
199
|
this.subscriptions.add(fromEvent(this.timeListWrappers.last.nativeElement, 'keydown').subscribe((event) => {
|
|
@@ -311,13 +312,23 @@ export class TimeSelectorComponent {
|
|
|
311
312
|
*/
|
|
312
313
|
handleTabOut(event) {
|
|
313
314
|
const { keyCode, shiftKey } = event;
|
|
314
|
-
if (keyCode === Keys.Tab &&
|
|
315
|
+
if (event.target === this.now?.nativeElement && keyCode === Keys.Tab && shiftKey) {
|
|
316
|
+
event.preventDefault();
|
|
317
|
+
if (this.isDateTimePicker) {
|
|
318
|
+
this.tabOutNow.emit();
|
|
319
|
+
}
|
|
320
|
+
else {
|
|
321
|
+
this.cancel ? this.cancel.nativeElement.focus() : this.accept.nativeElement.focus();
|
|
322
|
+
}
|
|
323
|
+
return;
|
|
324
|
+
}
|
|
325
|
+
if (keyCode === Keys.Tab && !shiftKey && event.target !== this.now?.nativeElement) {
|
|
315
326
|
event.preventDefault();
|
|
316
327
|
if (document.activeElement === this.accept.nativeElement) {
|
|
317
|
-
this.cancel ? this.cancel.nativeElement.focus() : this.
|
|
328
|
+
this.cancel ? this.cancel.nativeElement.focus() : this.now?.nativeElement.focus();
|
|
318
329
|
}
|
|
319
330
|
else {
|
|
320
|
-
this.timeLists.first.focus();
|
|
331
|
+
this.now ? this.now.nativeElement.focus() : this.timeLists.first.focus();
|
|
321
332
|
}
|
|
322
333
|
}
|
|
323
334
|
}
|
|
@@ -407,8 +418,8 @@ export class TimeSelectorComponent {
|
|
|
407
418
|
return listIdx;
|
|
408
419
|
}
|
|
409
420
|
}
|
|
410
|
-
TimeSelectorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
411
|
-
TimeSelectorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
421
|
+
TimeSelectorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TimeSelectorComponent, deps: [{ token: i1.LocalizationService }, { token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i2.IntlService }, { token: i3.TimePickerDOMService }, { token: i0.NgZone }, { token: i0.Renderer2 }, { token: i4.PickerService, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
422
|
+
TimeSelectorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: TimeSelectorComponent, selector: "kendo-timeselector", inputs: { format: "format", min: "min", max: "max", cancelButton: "cancelButton", setButton: "setButton", nowButton: "nowButton", disabled: "disabled", isAdaptiveEnabled: "isAdaptiveEnabled", isDateTimePicker: "isDateTimePicker", steps: "steps", value: "value" }, outputs: { valueChange: "valueChange", valueReject: "valueReject", tabOutLastPart: "tabOutLastPart", tabOutNow: "tabOutNow" }, host: { properties: { "class.k-disabled": "this.disabledClass" } }, providers: [
|
|
412
423
|
LocalizationService,
|
|
413
424
|
{
|
|
414
425
|
provide: L10N_PREFIX,
|
|
@@ -449,7 +460,8 @@ TimeSelectorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
|
|
|
449
460
|
[kendoEventsOutsideAngular]="{
|
|
450
461
|
click: handleNow,
|
|
451
462
|
focus: handleFocus,
|
|
452
|
-
blur: handleBlur
|
|
463
|
+
blur: handleBlur,
|
|
464
|
+
keydown: handleTabOut
|
|
453
465
|
}"
|
|
454
466
|
[scope]="this"
|
|
455
467
|
[disabled]="disabled"
|
|
@@ -521,8 +533,8 @@ TimeSelectorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
|
|
|
521
533
|
[disabled]="disabled"
|
|
522
534
|
>{{localization.get('cancel')}}</button>
|
|
523
535
|
</div>
|
|
524
|
-
`, isInline: true,
|
|
525
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
536
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i5.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i6.EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }, { kind: "component", type: i7.TimeListComponent, selector: "kendo-timelist", inputs: ["min", "max", "part", "step", "disabled", "value", "isLast"], outputs: ["valueChange", "tabOutLastPart"] }, { kind: "directive", type: i8.TimeSelectorLocalizedMessagesDirective, selector: "[kendoTimeSelectorLocalizedMessages]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
537
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TimeSelectorComponent, decorators: [{
|
|
526
538
|
type: Component,
|
|
527
539
|
args: [{
|
|
528
540
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
@@ -570,7 +582,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
570
582
|
[kendoEventsOutsideAngular]="{
|
|
571
583
|
click: handleNow,
|
|
572
584
|
focus: handleFocus,
|
|
573
|
-
blur: handleBlur
|
|
585
|
+
blur: handleBlur,
|
|
586
|
+
keydown: handleTabOut
|
|
574
587
|
}"
|
|
575
588
|
[scope]="this"
|
|
576
589
|
[disabled]="disabled"
|
|
@@ -692,4 +705,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
692
705
|
type: Output
|
|
693
706
|
}], tabOutLastPart: [{
|
|
694
707
|
type: Output
|
|
708
|
+
}], tabOutNow: [{
|
|
709
|
+
type: Output
|
|
695
710
|
}] } });
|
|
@@ -233,8 +233,8 @@ export class VirtualizationComponent {
|
|
|
233
233
|
return indexOffset < this.containerScrollPosition ? ScrollDirection.Backward : ScrollDirection.Forward;
|
|
234
234
|
}
|
|
235
235
|
}
|
|
236
|
-
VirtualizationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
237
|
-
VirtualizationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
236
|
+
VirtualizationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: VirtualizationComponent, deps: [{ token: SCROLLER_FACTORY_TOKEN }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.NgZone }, { token: i1.ScrollbarWidthService }], target: i0.ɵɵFactoryTarget.Component });
|
|
237
|
+
VirtualizationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: VirtualizationComponent, selector: "kendo-virtualization", inputs: { direction: "direction", itemHeight: "itemHeight", itemWidth: "itemWidth", topOffset: "topOffset", bottomOffset: "bottomOffset", maxScrollDifference: "maxScrollDifference", scrollOffsetSize: "scrollOffsetSize", scrollDuration: "scrollDuration", skip: "skip", take: "take", total: "total" }, outputs: { activeIndexChange: "activeIndexChange", pageChange: "pageChange", scrollChange: "scrollChange" }, host: { properties: { "class.k-flex": "this.wrapperClasses", "class.k-content": "this.wrapperClasses", "class.k-scrollable": "this.wrapperClasses", "class.k-scrollable-horizontal": "this.horizontalClass" } }, providers: [{
|
|
238
238
|
provide: SCROLLER_FACTORY_TOKEN,
|
|
239
239
|
useValue: DEFAULT_SCROLLER_FACTORY
|
|
240
240
|
}], usesOnChanges: true, ngImport: i0, template: `
|
|
@@ -244,8 +244,8 @@ VirtualizationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0"
|
|
|
244
244
|
[class.k-scrollable-horizontal-placeholder]="direction === 'horizontal'"
|
|
245
245
|
[ngStyle]="totalVertexLength"
|
|
246
246
|
></div>
|
|
247
|
-
`, isInline: true,
|
|
248
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
247
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] });
|
|
248
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: VirtualizationComponent, decorators: [{
|
|
249
249
|
type: Component,
|
|
250
250
|
args: [{
|
|
251
251
|
providers: [{
|
|
@@ -17,10 +17,10 @@ const COMPONENT_DIRECTIVES = [
|
|
|
17
17
|
*/
|
|
18
18
|
export class VirtualizationModule {
|
|
19
19
|
}
|
|
20
|
-
VirtualizationModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
21
|
-
VirtualizationModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "
|
|
22
|
-
VirtualizationModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
23
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
20
|
+
VirtualizationModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: VirtualizationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
21
|
+
VirtualizationModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: VirtualizationModule, declarations: [VirtualizationComponent], imports: [CommonModule], exports: [VirtualizationComponent] });
|
|
22
|
+
VirtualizationModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: VirtualizationModule, imports: [CommonModule] });
|
|
23
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: VirtualizationModule, decorators: [{
|
|
24
24
|
type: NgModule,
|
|
25
25
|
args: [{
|
|
26
26
|
declarations: [COMPONENT_DIRECTIVES],
|