@progress/kendo-angular-dateinputs 16.5.0 → 16.6.0-develop.10
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/NOTICE.txt +12 -19
- package/calendar/calendar.component.d.ts +1 -1
- package/calendar/calendar.module.d.ts +13 -13
- package/calendar/calendars.module.d.ts +15 -3
- package/calendar/footer.component.d.ts +1 -1
- package/calendar/for.directive.d.ts +1 -1
- package/calendar/header.component.d.ts +1 -1
- package/calendar/horizontal-view-list.component.d.ts +1 -1
- package/calendar/localization/calendar-custom-messages.component.d.ts +1 -1
- package/calendar/localization/calendar-localized-messages.directive.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/multiview-calendar.component.d.ts +1 -1
- package/calendar/multiview-calendar.module.d.ts +13 -11
- 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.directive.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 +1 -1
- package/calendar/view.component.d.ts +1 -1
- package/common/adaptive.module.d.ts +5 -4
- package/dateinput/dateinput.component.d.ts +2 -5
- package/dateinput/dateinput.module.d.ts +3 -8
- package/dateinput/localization/dateinput-custom-messages.component.d.ts +1 -1
- package/dateinput/localization/dateinput-localized-messages.directive.d.ts +1 -1
- package/dateinputs.module.d.ts +30 -7
- package/datepicker/datepicker.component.d.ts +4 -8
- package/datepicker/datepicker.module.d.ts +13 -13
- package/datepicker/localization/datepicker-custom-messages.component.d.ts +1 -1
- package/datepicker/localization/datepicker-localized-messages.directive.d.ts +1 -1
- package/daterange/date-range-end-input.directive.d.ts +1 -1
- package/daterange/date-range-popup-template.directive.d.ts +1 -1
- package/daterange/date-range-popup.component.d.ts +1 -1
- package/daterange/date-range-selection.directive.d.ts +1 -1
- package/daterange/date-range-start-input.directive.d.ts +1 -1
- package/daterange/date-range.component.d.ts +1 -1
- package/daterange/date-range.module.d.ts +10 -15
- 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/datetimepicker/datetimepicker.component.d.ts +3 -7
- package/datetimepicker/datetimepicker.module.d.ts +13 -14
- package/datetimepicker/localization/datetimepicker-custom-messages.component.d.ts +1 -1
- package/datetimepicker/localization/localized-messages.directive.d.ts +1 -1
- package/directives.d.ts +65 -0
- package/esm2020/calendar/calendar.component.mjs +9 -11
- package/esm2020/calendar/calendar.module.mjs +34 -69
- package/esm2020/calendar/calendars.module.mjs +52 -15
- package/esm2020/calendar/footer.component.mjs +7 -5
- package/esm2020/calendar/for.directive.mjs +5 -2
- package/esm2020/calendar/header.component.mjs +8 -6
- package/esm2020/calendar/horizontal-view-list.component.mjs +8 -6
- package/esm2020/calendar/localization/calendar-custom-messages.component.mjs +3 -2
- package/esm2020/calendar/localization/calendar-localized-messages.directive.mjs +3 -2
- package/esm2020/calendar/localization/multiview-calendar-custom-messages.component.mjs +3 -2
- package/esm2020/calendar/localization/multiview-calendar-localized-messages.directive.mjs +3 -2
- package/esm2020/calendar/multiview-calendar.component.mjs +8 -8
- package/esm2020/calendar/multiview-calendar.module.mjs +23 -55
- package/esm2020/calendar/navigation.component.mjs +8 -7
- package/esm2020/calendar/services/century-view.service.mjs +5 -2
- package/esm2020/calendar/services/decade-view.service.mjs +5 -2
- package/esm2020/calendar/services/dom.service.mjs +5 -2
- package/esm2020/calendar/services/month-view.service.mjs +5 -2
- package/esm2020/calendar/services/navigation.service.mjs +5 -2
- package/esm2020/calendar/services/weeknames.service.mjs +5 -2
- package/esm2020/calendar/services/year-view.service.mjs +5 -2
- package/esm2020/calendar/templates/cell-template.directive.mjs +3 -2
- package/esm2020/calendar/templates/century-cell-template.directive.mjs +3 -2
- package/esm2020/calendar/templates/decade-cell-template.directive.mjs +3 -2
- package/esm2020/calendar/templates/footer-template.directive.mjs +3 -2
- package/esm2020/calendar/templates/header-template.directive.mjs +3 -2
- package/esm2020/calendar/templates/header-title-template.directive.mjs +3 -2
- package/esm2020/calendar/templates/month-cell-template.directive.mjs +3 -2
- package/esm2020/calendar/templates/navigation-item-template.directive.mjs +3 -2
- package/esm2020/calendar/templates/weeknumber-cell-template.directive.mjs +3 -2
- package/esm2020/calendar/templates/year-cell-template.directive.mjs +3 -2
- package/esm2020/calendar/view-list.component.mjs +9 -9
- package/esm2020/calendar/view.component.mjs +7 -5
- package/esm2020/common/adaptive.module.mjs +25 -17
- package/esm2020/dateinput/dateinput.component.mjs +11 -13
- package/esm2020/dateinput/dateinput.module.mjs +14 -24
- package/esm2020/dateinput/localization/dateinput-custom-messages.component.mjs +3 -2
- package/esm2020/dateinput/localization/dateinput-localized-messages.directive.mjs +3 -2
- package/esm2020/dateinputs.module.mjs +90 -33
- package/esm2020/datepicker/datepicker.component.mjs +23 -32
- package/esm2020/datepicker/datepicker.module.mjs +55 -63
- package/esm2020/datepicker/localization/datepicker-custom-messages.component.mjs +3 -2
- package/esm2020/datepicker/localization/datepicker-localized-messages.directive.mjs +3 -2
- package/esm2020/daterange/date-range-end-input.directive.mjs +3 -2
- package/esm2020/daterange/date-range-popup-template.directive.mjs +3 -2
- package/esm2020/daterange/date-range-popup.component.mjs +10 -11
- package/esm2020/daterange/date-range-selection.directive.mjs +3 -2
- package/esm2020/daterange/date-range-start-input.directive.mjs +3 -2
- package/esm2020/daterange/date-range.component.mjs +6 -5
- package/esm2020/daterange/date-range.module.mjs +51 -54
- package/esm2020/daterange/localization/daterange-popup-custom-messages.component.mjs +3 -2
- package/esm2020/daterange/localization/daterange-popup-localized-messages.directive.mjs +3 -2
- package/esm2020/datetimepicker/datetimepicker.component.mjs +24 -31
- package/esm2020/datetimepicker/datetimepicker.module.mjs +70 -68
- package/esm2020/datetimepicker/localization/datetimepicker-custom-messages.component.mjs +3 -2
- package/esm2020/datetimepicker/localization/localized-messages.directive.mjs +3 -2
- package/esm2020/directives.mjs +142 -0
- package/esm2020/index.mjs +14 -2
- package/esm2020/package-metadata.mjs +2 -2
- package/esm2020/timepicker/localization/timepicker-custom-messages.component.mjs +3 -2
- package/esm2020/timepicker/localization/timepicker-localized-messages.directive.mjs +3 -2
- package/esm2020/timepicker/localization/timeselector-custom-messages.component.mjs +3 -2
- package/esm2020/timepicker/localization/timeselector-localized-messages.directive.mjs +3 -2
- package/esm2020/timepicker/services/dayperiod.service.mjs +5 -2
- package/esm2020/timepicker/services/dom.service.mjs +5 -2
- package/esm2020/timepicker/services/hours.service.mjs +5 -2
- package/esm2020/timepicker/services/milliseconds.service.mjs +5 -2
- package/esm2020/timepicker/services/minutes.service.mjs +5 -2
- package/esm2020/timepicker/services/seconds.service.mjs +5 -2
- package/esm2020/timepicker/timelist.component.mjs +7 -7
- package/esm2020/timepicker/timepicker.component.mjs +22 -41
- package/esm2020/timepicker/timepicker.module.mjs +34 -75
- package/esm2020/timepicker/timeselector.component.mjs +8 -8
- package/esm2020/virtualization/virtualization.component.mjs +6 -4
- package/fesm2015/progress-kendo-angular-dateinputs.mjs +1229 -1310
- package/fesm2020/progress-kendo-angular-dateinputs.mjs +975 -1050
- package/index.d.ts +14 -2
- package/package.json +10 -10
- 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 +3 -13
- package/timepicker/timepicker.module.d.ts +3 -16
- package/timepicker/timeselector.component.d.ts +1 -1
- package/virtualization/virtualization.component.d.ts +1 -1
- package/calendar/calendar-common.module.d.ts +0 -27
- package/calendar/templates.module.d.ts +0 -35
- package/esm2020/calendar/calendar-common.module.mjs +0 -52
- package/esm2020/calendar/templates.module.mjs +0 -83
- package/esm2020/touch-enabled.mjs +0 -9
- package/esm2020/virtualization/virtualization.module.mjs +0 -30
- package/touch-enabled.d.ts +0 -9
- package/virtualization/virtualization.module.d.ts +0 -18
|
@@ -3,38 +3,27 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { NgModule } from '@angular/core';
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import { EventsModule } from '@progress/kendo-angular-common';
|
|
17
|
-
import { AdaptiveModule } from '../common/adaptive.module';
|
|
18
|
-
import { DateRangePopupCustomMessagesComponent } from './localization/daterange-popup-custom-messages.component';
|
|
19
|
-
import { DateRangePopupLocalizedMessagesDirective } from './localization/daterange-popup-localized-messages.directive';
|
|
6
|
+
import { KENDO_DATERANGE } from '../directives';
|
|
7
|
+
import { PopupService } from '@progress/kendo-angular-popup';
|
|
8
|
+
import { CenturyViewService } from '../calendar/services/century-view.service';
|
|
9
|
+
import { DecadeViewService } from '../calendar/services/decade-view.service';
|
|
10
|
+
import { MonthViewService } from '../calendar/services/month-view.service';
|
|
11
|
+
import { NavigationService } from '../calendar/services/navigation.service';
|
|
12
|
+
import { WeekNamesService } from '../calendar/services/weeknames.service';
|
|
13
|
+
import { YearViewService } from '../calendar/services/year-view.service';
|
|
14
|
+
import { IconsService } from '@progress/kendo-angular-icons';
|
|
15
|
+
import { ResizeBatchService } from '@progress/kendo-angular-common';
|
|
20
16
|
import * as i0 from "@angular/core";
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
const COMPONENT_MODULES = [
|
|
32
|
-
MultiViewCalendarModule,
|
|
33
|
-
DateInputModule,
|
|
34
|
-
PopupModule,
|
|
35
|
-
EventsModule,
|
|
36
|
-
AdaptiveModule
|
|
37
|
-
];
|
|
17
|
+
import * as i1 from "./localization/daterange-popup-custom-messages.component";
|
|
18
|
+
import * as i2 from "../dateinput/localization/dateinput-custom-messages.component";
|
|
19
|
+
import * as i3 from "../dateinput/dateinput.component";
|
|
20
|
+
import * as i4 from "./date-range-end-input.directive";
|
|
21
|
+
import * as i5 from "./date-range-popup-template.directive";
|
|
22
|
+
import * as i6 from "./date-range.component";
|
|
23
|
+
import * as i7 from "./date-range-popup.component";
|
|
24
|
+
import * as i8 from "./date-range-selection.directive";
|
|
25
|
+
import * as i9 from "./date-range-start-input.directive";
|
|
26
|
+
// IMPORTANT: NgModule export kept for backwards compatibility
|
|
38
27
|
/**
|
|
39
28
|
* The exported package module.
|
|
40
29
|
*
|
|
@@ -76,31 +65,39 @@ const COMPONENT_MODULES = [
|
|
|
76
65
|
export class DateRangeModule {
|
|
77
66
|
}
|
|
78
67
|
DateRangeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DateRangeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
79
|
-
DateRangeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: DateRangeModule,
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
DateRangeStartInputDirective,
|
|
95
|
-
DateRangeEndInputDirective,
|
|
96
|
-
DateRangePopupCustomMessagesComponent,
|
|
97
|
-
DateRangePopupLocalizedMessagesDirective] });
|
|
98
|
-
DateRangeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DateRangeModule, imports: [CommonModule, COMPONENT_MODULES] });
|
|
68
|
+
DateRangeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: DateRangeModule, imports: [i1.DateRangePopupCustomMessagesComponent, i2.DateInputCustomMessagesComponent, i3.DateInputComponent, i4.DateRangeEndInputDirective, i5.DateRangePopupTemplateDirective, i6.DateRangeComponent, i7.DateRangePopupComponent, i8.DateRangeSelectionDirective, i9.DateRangeStartInputDirective], exports: [i1.DateRangePopupCustomMessagesComponent, i2.DateInputCustomMessagesComponent, i3.DateInputComponent, i4.DateRangeEndInputDirective, i5.DateRangePopupTemplateDirective, i6.DateRangeComponent, i7.DateRangePopupComponent, i8.DateRangeSelectionDirective, i9.DateRangeStartInputDirective] });
|
|
69
|
+
DateRangeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DateRangeModule, providers: [
|
|
70
|
+
// MultiViewCalendarModule providers
|
|
71
|
+
PopupService,
|
|
72
|
+
NavigationService,
|
|
73
|
+
CenturyViewService,
|
|
74
|
+
DecadeViewService,
|
|
75
|
+
MonthViewService,
|
|
76
|
+
YearViewService,
|
|
77
|
+
WeekNamesService,
|
|
78
|
+
// DateInputModule providers
|
|
79
|
+
IconsService,
|
|
80
|
+
// AdaptiveModule providers
|
|
81
|
+
ResizeBatchService
|
|
82
|
+
], imports: [i1.DateRangePopupCustomMessagesComponent, i2.DateInputCustomMessagesComponent, i3.DateInputComponent, i6.DateRangeComponent, i7.DateRangePopupComponent] });
|
|
99
83
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DateRangeModule, decorators: [{
|
|
100
84
|
type: NgModule,
|
|
101
85
|
args: [{
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
86
|
+
exports: [...KENDO_DATERANGE],
|
|
87
|
+
imports: [...KENDO_DATERANGE],
|
|
88
|
+
providers: [
|
|
89
|
+
// MultiViewCalendarModule providers
|
|
90
|
+
PopupService,
|
|
91
|
+
NavigationService,
|
|
92
|
+
CenturyViewService,
|
|
93
|
+
DecadeViewService,
|
|
94
|
+
MonthViewService,
|
|
95
|
+
YearViewService,
|
|
96
|
+
WeekNamesService,
|
|
97
|
+
// DateInputModule providers
|
|
98
|
+
IconsService,
|
|
99
|
+
// AdaptiveModule providers
|
|
100
|
+
ResizeBatchService
|
|
101
|
+
]
|
|
105
102
|
}]
|
|
106
103
|
}] });
|
|
@@ -20,7 +20,7 @@ export class DateRangePopupCustomMessagesComponent extends DateRangePopupMessage
|
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
DateRangePopupCustomMessagesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DateRangePopupCustomMessagesComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
23
|
-
DateRangePopupCustomMessagesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: DateRangePopupCustomMessagesComponent, selector: "kendo-daterange-popup-messages", providers: [
|
|
23
|
+
DateRangePopupCustomMessagesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: DateRangePopupCustomMessagesComponent, isStandalone: true, selector: "kendo-daterange-popup-messages", providers: [
|
|
24
24
|
{
|
|
25
25
|
provide: DateRangePopupMessages,
|
|
26
26
|
useExisting: forwardRef(() => DateRangePopupCustomMessagesComponent)
|
|
@@ -36,6 +36,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
36
36
|
}
|
|
37
37
|
],
|
|
38
38
|
selector: 'kendo-daterange-popup-messages',
|
|
39
|
-
template:
|
|
39
|
+
template: ``,
|
|
40
|
+
standalone: true
|
|
40
41
|
}]
|
|
41
42
|
}], ctorParameters: function () { return [{ type: i1.LocalizationService }]; } });
|
|
@@ -17,7 +17,7 @@ export class DateRangePopupLocalizedMessagesDirective extends DateRangePopupMess
|
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
DateRangePopupLocalizedMessagesDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DateRangePopupLocalizedMessagesDirective, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
20
|
-
DateRangePopupLocalizedMessagesDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: DateRangePopupLocalizedMessagesDirective, selector: "[kendoDateRangePopupLocalizedMessages]", providers: [
|
|
20
|
+
DateRangePopupLocalizedMessagesDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: DateRangePopupLocalizedMessagesDirective, isStandalone: true, selector: "[kendoDateRangePopupLocalizedMessages]", providers: [
|
|
21
21
|
{
|
|
22
22
|
provide: DateRangePopupMessages,
|
|
23
23
|
useExisting: forwardRef(() => DateRangePopupLocalizedMessagesDirective)
|
|
@@ -32,6 +32,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
32
32
|
useExisting: forwardRef(() => DateRangePopupLocalizedMessagesDirective)
|
|
33
33
|
}
|
|
34
34
|
],
|
|
35
|
-
selector: '[kendoDateRangePopupLocalizedMessages]'
|
|
35
|
+
selector: '[kendoDateRangePopupLocalizedMessages]',
|
|
36
|
+
standalone: true
|
|
36
37
|
}]
|
|
37
38
|
}], ctorParameters: function () { return [{ type: i1.LocalizationService }]; } });
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { Component, HostBinding, ViewChild, ElementRef, Input, isDevMode, TemplateRef, ChangeDetectorRef, Output, EventEmitter, NgZone, ViewContainerRef, forwardRef, ContentChild,
|
|
5
|
+
import { Component, HostBinding, ViewChild, ElementRef, Input, isDevMode, TemplateRef, ChangeDetectorRef, Output, EventEmitter, NgZone, ViewContainerRef, forwardRef, ContentChild, ChangeDetectionStrategy, Renderer2, Injector, } from '@angular/core';
|
|
6
6
|
import { NG_VALUE_ACCESSOR, NG_VALIDATORS, NgControl } from '@angular/forms';
|
|
7
7
|
import { Subscription, fromEvent } from 'rxjs';
|
|
8
8
|
import { tap } from 'rxjs/operators';
|
|
9
9
|
import { cloneDate, isEqual, getDate } from '@progress/kendo-date-math';
|
|
10
10
|
import { PopupService } from '@progress/kendo-angular-popup';
|
|
11
11
|
import { IntlService } from '@progress/kendo-angular-intl';
|
|
12
|
-
import { hasObservers, isControlRequired, isDocumentAvailable, KendoInput, Keys, MultiTabStop } from '@progress/kendo-angular-common';
|
|
12
|
+
import { hasObservers, isControlRequired, isDocumentAvailable, KendoInput, Keys, MultiTabStop, ResizeSensorComponent, EventsOutsideAngularDirective } from '@progress/kendo-angular-common';
|
|
13
13
|
import { LocalizationService, L10N_PREFIX } from '@progress/kendo-angular-l10n';
|
|
14
14
|
import { validatePackage } from '@progress/kendo-licensing';
|
|
15
15
|
import { packageMetadata } from '../package-metadata';
|
|
@@ -17,13 +17,15 @@ import { PickerService } from '../common/picker.service';
|
|
|
17
17
|
import { DisabledDatesService } from '../calendar/services/disabled-dates.service';
|
|
18
18
|
import { attributeNames, isPresent, isTruthy } from '../common/utils';
|
|
19
19
|
import { mergeDateAndTime, noop, lastMillisecondOfDate, isInRange, isValidRange, isWindowAvailable, getFillModeClass, getRoundedClass, getSizeClass, DEFAULT_FILL_MODE, DEFAULT_ROUNDED, DEFAULT_SIZE, windowSize } from '../util';
|
|
20
|
+
import { CalendarComponent } from '../calendar/calendar.component';
|
|
21
|
+
import { TimeSelectorComponent } from '../timepicker/timeselector.component';
|
|
22
|
+
import { DateInputComponent } from '../dateinput/dateinput.component';
|
|
20
23
|
import { PreventableEvent } from '../preventable-event';
|
|
21
24
|
import { minValidator } from '../validators/min.validator';
|
|
22
25
|
import { maxValidator } from '../validators/max.validator';
|
|
23
26
|
import { disabledDatesValidator } from '../validators/disabled-date.validator';
|
|
24
27
|
import { TIME_PART } from '../timepicker/models/time-part.default';
|
|
25
28
|
import { MIN_DATE, MAX_DATE, MIN_TIME, MAX_TIME } from '../defaults';
|
|
26
|
-
import { TOUCH_ENABLED } from '../touch-enabled';
|
|
27
29
|
import { CellTemplateDirective } from '../calendar/templates/cell-template.directive';
|
|
28
30
|
import { MonthCellTemplateDirective } from '../calendar/templates/month-cell-template.directive';
|
|
29
31
|
import { YearCellTemplateDirective } from '../calendar/templates/year-cell-template.directive';
|
|
@@ -33,27 +35,23 @@ import { WeekNumberCellTemplateDirective } from '../calendar/templates/weeknumbe
|
|
|
33
35
|
import { HeaderTitleTemplateDirective } from '../calendar/templates/header-title-template.directive';
|
|
34
36
|
import { incompleteDateValidator } from '../validators/incomplete-date.validator';
|
|
35
37
|
import { calendarIcon, clockIcon, xIcon } from '@progress/kendo-svg-icons';
|
|
36
|
-
import { ActionSheetComponent } from '@progress/kendo-angular-navigation';
|
|
38
|
+
import { ActionSheetComponent, ActionSheetTemplateDirective } from '@progress/kendo-angular-navigation';
|
|
37
39
|
import { HeaderTemplateDirective } from '../calendar/templates/header-template.directive';
|
|
38
40
|
import { FooterTemplateDirective } from '../calendar/templates/footer-template.directive';
|
|
41
|
+
import { TimeSelectorCustomMessagesComponent } from '../timepicker/localization/timeselector-custom-messages.component';
|
|
42
|
+
import { CalendarCustomMessagesComponent } from '../calendar/localization/calendar-custom-messages.component';
|
|
43
|
+
import { ButtonComponent } from '@progress/kendo-angular-buttons';
|
|
44
|
+
import { IconWrapperComponent } from '@progress/kendo-angular-icons';
|
|
45
|
+
import { NgIf, NgTemplateOutlet, NgClass } from '@angular/common';
|
|
46
|
+
import { DateInputCustomMessagesComponent } from '../dateinput/localization/dateinput-custom-messages.component';
|
|
47
|
+
import { LocalizedMessagesDirective } from './localization/localized-messages.directive';
|
|
48
|
+
import { touchEnabled } from '@progress/kendo-common';
|
|
39
49
|
import * as i0 from "@angular/core";
|
|
40
50
|
import * as i1 from "@progress/kendo-angular-popup";
|
|
41
51
|
import * as i2 from "@progress/kendo-angular-intl";
|
|
42
52
|
import * as i3 from "../common/picker.service";
|
|
43
53
|
import * as i4 from "@progress/kendo-angular-l10n";
|
|
44
54
|
import * as i5 from "../calendar/services/disabled-dates.service";
|
|
45
|
-
import * as i6 from "@angular/common";
|
|
46
|
-
import * as i7 from "../dateinput/dateinput.component";
|
|
47
|
-
import * as i8 from "../dateinput/localization/dateinput-custom-messages.component";
|
|
48
|
-
import * as i9 from "../calendar/calendar.component";
|
|
49
|
-
import * as i10 from "../calendar/localization/calendar-custom-messages.component";
|
|
50
|
-
import * as i11 from "../timepicker/localization/timeselector-custom-messages.component";
|
|
51
|
-
import * as i12 from "../timepicker/timeselector.component";
|
|
52
|
-
import * as i13 from "@progress/kendo-angular-common";
|
|
53
|
-
import * as i14 from "@progress/kendo-angular-icons";
|
|
54
|
-
import * as i15 from "@progress/kendo-angular-navigation";
|
|
55
|
-
import * as i16 from "@progress/kendo-angular-buttons";
|
|
56
|
-
import * as i17 from "./localization/localized-messages.directive";
|
|
57
55
|
const timeFormatRegExp = new RegExp(`${TIME_PART.hour}|${TIME_PART.minute}|${TIME_PART.second}|${TIME_PART.dayperiod}|literal`);
|
|
58
56
|
const VALUE_DOC_LINK = 'https://www.telerik.com/kendo-angular-ui/components/dateinputs/datetimepicker/integration-with-json/';
|
|
59
57
|
const MIN_MAX_DOC_LINK = 'https://www.telerik.com/kendo-angular-ui/components/dateinputs/datetimepicker/date-time-limits/';
|
|
@@ -69,7 +67,7 @@ const TIME_TAB_BUTTON_SELECTOR = '.k-button.k-group-end';
|
|
|
69
67
|
* Represents the [Kendo UI DateTimePicker component for Angular]({% slug overview_datetimepicker %}).
|
|
70
68
|
*/
|
|
71
69
|
export class DateTimePickerComponent extends MultiTabStop {
|
|
72
|
-
constructor(popupService, intl, cdr, pickerService, ngZone, wrapper,
|
|
70
|
+
constructor(popupService, intl, cdr, pickerService, ngZone, wrapper, localization, disabledDatesService, renderer, injector) {
|
|
73
71
|
super();
|
|
74
72
|
this.popupService = popupService;
|
|
75
73
|
this.intl = intl;
|
|
@@ -77,7 +75,6 @@ export class DateTimePickerComponent extends MultiTabStop {
|
|
|
77
75
|
this.pickerService = pickerService;
|
|
78
76
|
this.ngZone = ngZone;
|
|
79
77
|
this.wrapper = wrapper;
|
|
80
|
-
this.touchEnabled = touchEnabled;
|
|
81
78
|
this.localization = localization;
|
|
82
79
|
this.disabledDatesService = disabledDatesService;
|
|
83
80
|
this.renderer = renderer;
|
|
@@ -182,10 +179,7 @@ export class DateTimePickerComponent extends MultiTabStop {
|
|
|
182
179
|
*/
|
|
183
180
|
this.incompleteDateValidation = false;
|
|
184
181
|
/**
|
|
185
|
-
*
|
|
186
|
-
*
|
|
187
|
-
* Determines whether to auto correct invalid segments automatically.
|
|
188
|
-
* TODO: To be fixed in common package before enabling: https://github.com/telerik/kendo-dateinputs-common/issues/24
|
|
182
|
+
* Determines whether to autocorrect invalid segments automatically.
|
|
189
183
|
*
|
|
190
184
|
* @default true
|
|
191
185
|
*/
|
|
@@ -1213,7 +1207,7 @@ export class DateTimePickerComponent extends MultiTabStop {
|
|
|
1213
1207
|
if (this.isOpen) {
|
|
1214
1208
|
this.activeTabComponent.focus();
|
|
1215
1209
|
}
|
|
1216
|
-
else if (!
|
|
1210
|
+
else if (!touchEnabled) {
|
|
1217
1211
|
this.dateInput.focus();
|
|
1218
1212
|
}
|
|
1219
1213
|
else if (!this.dateInput.isActive) {
|
|
@@ -1338,8 +1332,8 @@ export class DateTimePickerComponent extends MultiTabStop {
|
|
|
1338
1332
|
}
|
|
1339
1333
|
}
|
|
1340
1334
|
}
|
|
1341
|
-
DateTimePickerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DateTimePickerComponent, deps: [{ token: i1.PopupService }, { token: i2.IntlService }, { token: i0.ChangeDetectorRef }, { token: i3.PickerService }, { token: i0.NgZone }, { token: i0.ElementRef }, { token:
|
|
1342
|
-
DateTimePickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: DateTimePickerComponent, selector: "kendo-datetimepicker", inputs: { focusableId: "focusableId", weekDaysFormat: "weekDaysFormat", showOtherMonthDays: "showOtherMonthDays", value: "value", format: "format", twoDigitYearMax: "twoDigitYearMax", tabindex: "tabindex", disabledDates: "disabledDates", popupSettings: "popupSettings", title: "title", subtitle: "subtitle", disabled: "disabled", readonly: "readonly", readOnlyInput: "readOnlyInput", cancelButton: "cancelButton", formatPlaceholder: "formatPlaceholder", placeholder: "placeholder", steps: "steps", focusedDate: "focusedDate", calendarType: "calendarType", animateCalendarNavigation: "animateCalendarNavigation", weekNumber: "weekNumber", min: "min", max: "max", rangeValidation: "rangeValidation", disabledDatesValidation: "disabledDatesValidation", incompleteDateValidation: "incompleteDateValidation", autoCorrectParts: "autoCorrectParts", autoSwitchParts: "autoSwitchParts", autoSwitchKeys: "autoSwitchKeys", enableMouseWheel: "enableMouseWheel", allowCaretMode: "allowCaretMode", clearButton: "clearButton", autoFill: "autoFill", adaptiveMode: "adaptiveMode", inputAttributes: "inputAttributes", defaultTab: "defaultTab", size: "size", rounded: "rounded", fillMode: "fillMode", headerTemplateRef: ["headerTemplate", "headerTemplateRef"], footerTemplateRef: ["footerTemplate", "footerTemplateRef"], footer: "footer" }, outputs: { valueChange: "valueChange", open: "open", close: "close", onFocus: "focus", onBlur: "blur", escape: "escape" }, host: { properties: { "class.k-datetimepicker": "this.hostClasses", "class.k-input": "this.hostClasses", "class.k-disabled": "this.disabledClass", "class.k-readonly": "this.readonly" } }, providers: [
|
|
1335
|
+
DateTimePickerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DateTimePickerComponent, deps: [{ token: i1.PopupService }, { token: i2.IntlService }, { token: i0.ChangeDetectorRef }, { token: i3.PickerService }, { token: i0.NgZone }, { token: i0.ElementRef }, { token: i4.LocalizationService }, { token: i5.DisabledDatesService }, { token: i0.Renderer2 }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
|
|
1336
|
+
DateTimePickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: DateTimePickerComponent, isStandalone: true, selector: "kendo-datetimepicker", inputs: { focusableId: "focusableId", weekDaysFormat: "weekDaysFormat", showOtherMonthDays: "showOtherMonthDays", value: "value", format: "format", twoDigitYearMax: "twoDigitYearMax", tabindex: "tabindex", disabledDates: "disabledDates", popupSettings: "popupSettings", title: "title", subtitle: "subtitle", disabled: "disabled", readonly: "readonly", readOnlyInput: "readOnlyInput", cancelButton: "cancelButton", formatPlaceholder: "formatPlaceholder", placeholder: "placeholder", steps: "steps", focusedDate: "focusedDate", calendarType: "calendarType", animateCalendarNavigation: "animateCalendarNavigation", weekNumber: "weekNumber", min: "min", max: "max", rangeValidation: "rangeValidation", disabledDatesValidation: "disabledDatesValidation", incompleteDateValidation: "incompleteDateValidation", autoCorrectParts: "autoCorrectParts", autoSwitchParts: "autoSwitchParts", autoSwitchKeys: "autoSwitchKeys", enableMouseWheel: "enableMouseWheel", allowCaretMode: "allowCaretMode", clearButton: "clearButton", autoFill: "autoFill", adaptiveMode: "adaptiveMode", inputAttributes: "inputAttributes", defaultTab: "defaultTab", size: "size", rounded: "rounded", fillMode: "fillMode", headerTemplateRef: ["headerTemplate", "headerTemplateRef"], footerTemplateRef: ["footerTemplate", "footerTemplateRef"], footer: "footer" }, outputs: { valueChange: "valueChange", open: "open", close: "close", onFocus: "focus", onBlur: "blur", escape: "escape" }, host: { properties: { "class.k-datetimepicker": "this.hostClasses", "class.k-input": "this.hostClasses", "class.k-disabled": "this.disabledClass", "class.k-readonly": "this.readonly" } }, providers: [
|
|
1343
1337
|
PickerService,
|
|
1344
1338
|
LocalizationService,
|
|
1345
1339
|
DisabledDatesService,
|
|
@@ -1734,7 +1728,7 @@ DateTimePickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0"
|
|
|
1734
1728
|
</div>
|
|
1735
1729
|
</div>
|
|
1736
1730
|
</ng-template>
|
|
1737
|
-
`, isInline: true, dependencies: [{ kind: "directive", type:
|
|
1731
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: LocalizedMessagesDirective, selector: "[kendoDateTimePickerLocalizedMessages]" }, { kind: "component", type: 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: "directive", type: EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }, { kind: "component", type: DateInputCustomMessagesComponent, selector: "kendo-dateinput-messages" }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }, { kind: "component", type: ActionSheetComponent, selector: "kendo-actionsheet", inputs: ["title", "subtitle", "items", "cssClass", "animation", "expanded", "titleId"], outputs: ["expandedChange", "expand", "collapse", "itemClick", "overlayClick"], exportAs: ["kendoActionSheet"] }, { kind: "directive", type: ActionSheetTemplateDirective, selector: "[kendoActionSheetTemplate]" }, { kind: "component", type: 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: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: 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: CalendarCustomMessagesComponent, selector: "kendo-calendar-messages" }, { kind: "component", type: TimeSelectorComponent, selector: "kendo-timeselector", inputs: ["format", "min", "max", "cancelButton", "setButton", "nowButton", "disabled", "isAdaptiveEnabled", "isDateTimePicker", "steps", "value"], outputs: ["valueChange", "valueReject", "tabOutLastPart", "tabOutNow"], exportAs: ["kendo-timeselector"] }, { kind: "component", type: TimeSelectorCustomMessagesComponent, selector: "kendo-timeselector-messages" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1738
1732
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DateTimePickerComponent, decorators: [{
|
|
1739
1733
|
type: Component,
|
|
1740
1734
|
args: [{
|
|
@@ -2137,12 +2131,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
2137
2131
|
</div>
|
|
2138
2132
|
</div>
|
|
2139
2133
|
</ng-template>
|
|
2140
|
-
|
|
2134
|
+
`,
|
|
2135
|
+
standalone: true,
|
|
2136
|
+
imports: [LocalizedMessagesDirective, DateInputComponent, EventsOutsideAngularDirective, DateInputCustomMessagesComponent, NgIf, IconWrapperComponent, NgTemplateOutlet, ResizeSensorComponent, ActionSheetComponent, ActionSheetTemplateDirective, ButtonComponent, NgClass, CalendarComponent, CalendarCustomMessagesComponent, TimeSelectorComponent, TimeSelectorCustomMessagesComponent]
|
|
2141
2137
|
}]
|
|
2142
|
-
}], ctorParameters: function () { return [{ type: i1.PopupService }, { type: i2.IntlService }, { type: i0.ChangeDetectorRef }, { type: i3.PickerService }, { type: i0.NgZone }, { type: i0.ElementRef }, { type:
|
|
2143
|
-
type: Inject,
|
|
2144
|
-
args: [TOUCH_ENABLED]
|
|
2145
|
-
}] }, { type: i4.LocalizationService }, { type: i5.DisabledDatesService }, { type: i0.Renderer2 }, { type: i0.Injector }]; }, propDecorators: { hostClasses: [{
|
|
2138
|
+
}], ctorParameters: function () { return [{ type: i1.PopupService }, { type: i2.IntlService }, { type: i0.ChangeDetectorRef }, { type: i3.PickerService }, { type: i0.NgZone }, { type: i0.ElementRef }, { type: i4.LocalizationService }, { type: i5.DisabledDatesService }, { type: i0.Renderer2 }, { type: i0.Injector }]; }, propDecorators: { hostClasses: [{
|
|
2146
2139
|
type: HostBinding,
|
|
2147
2140
|
args: ['class.k-datetimepicker']
|
|
2148
2141
|
}, {
|
|
@@ -3,27 +3,37 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { NgModule } from '@angular/core';
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
6
|
+
import { KENDO_DATETIMEPICKER } from '../directives';
|
|
7
|
+
import { IconsService } from '@progress/kendo-angular-icons';
|
|
8
|
+
import { ResizeBatchService } from '@progress/kendo-angular-common';
|
|
9
|
+
import { PopupService } from '@progress/kendo-angular-popup';
|
|
10
|
+
import { CenturyViewService } from '../calendar/services/century-view.service';
|
|
11
|
+
import { DecadeViewService } from '../calendar/services/decade-view.service';
|
|
12
|
+
import { CalendarDOMService } from '../calendar/services/dom.service';
|
|
13
|
+
import { MonthViewService } from '../calendar/services/month-view.service';
|
|
14
|
+
import { NavigationService } from '../calendar/services/navigation.service';
|
|
15
|
+
import { WeekNamesService } from '../calendar/services/weeknames.service';
|
|
16
|
+
import { YearViewService } from '../calendar/services/year-view.service';
|
|
17
|
+
import { DayPeriodService } from '../timepicker/services/dayperiod.service';
|
|
18
|
+
import { TimePickerDOMService } from '../timepicker/services/dom.service';
|
|
19
|
+
import { HoursService } from '../timepicker/services/hours.service';
|
|
20
|
+
import { MillisecondsService } from '../timepicker/services/milliseconds.service';
|
|
21
|
+
import { MinutesService } from '../timepicker/services/minutes.service';
|
|
22
|
+
import { SecondsService } from '../timepicker/services/seconds.service';
|
|
21
23
|
import * as i0 from "@angular/core";
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
import * as i1 from "./localization/datetimepicker-custom-messages.component";
|
|
25
|
+
import * as i2 from "./datetimepicker.component";
|
|
26
|
+
import * as i3 from "../calendar/templates/cell-template.directive";
|
|
27
|
+
import * as i4 from "../calendar/templates/century-cell-template.directive";
|
|
28
|
+
import * as i5 from "../calendar/templates/decade-cell-template.directive";
|
|
29
|
+
import * as i6 from "../calendar/templates/footer-template.directive";
|
|
30
|
+
import * as i7 from "../calendar/templates/header-template.directive";
|
|
31
|
+
import * as i8 from "../calendar/templates/header-title-template.directive";
|
|
32
|
+
import * as i9 from "../calendar/templates/month-cell-template.directive";
|
|
33
|
+
import * as i10 from "../calendar/templates/navigation-item-template.directive";
|
|
34
|
+
import * as i11 from "../calendar/templates/weeknumber-cell-template.directive";
|
|
35
|
+
import * as i12 from "../calendar/templates/year-cell-template.directive";
|
|
36
|
+
// IMPORTANT: NgModule export kept for backwards compatibility
|
|
27
37
|
/**
|
|
28
38
|
* Represents the [NgModule](link:site.data.urls.angular['ngmoduleapi'])
|
|
29
39
|
* definition for the DateTimePicker component.
|
|
@@ -31,59 +41,51 @@ const COMPONENT_DIRECTIVES = [
|
|
|
31
41
|
export class DateTimePickerModule {
|
|
32
42
|
}
|
|
33
43
|
DateTimePickerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DateTimePickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
34
|
-
DateTimePickerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: DateTimePickerModule,
|
|
35
|
-
DateTimePickerCustomMessagesComponent,
|
|
36
|
-
LocalizedMessagesDirective], imports: [CommonModule,
|
|
37
|
-
IntlModule,
|
|
38
|
-
DateInputModule,
|
|
39
|
-
CalendarModule,
|
|
40
|
-
TimePickerModule,
|
|
41
|
-
PopupModule,
|
|
42
|
-
EventsModule,
|
|
43
|
-
TemplatesModule,
|
|
44
|
-
IconsModule,
|
|
45
|
-
AdaptiveModule], exports: [DateTimePickerComponent,
|
|
46
|
-
DateTimePickerCustomMessagesComponent,
|
|
47
|
-
LocalizedMessagesDirective, TemplatesModule,
|
|
48
|
-
ToggleButtonTabStopModule] });
|
|
44
|
+
DateTimePickerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: DateTimePickerModule, imports: [i1.DateTimePickerCustomMessagesComponent, i2.DateTimePickerComponent, i3.CellTemplateDirective, i4.CenturyCellTemplateDirective, i5.DecadeCellTemplateDirective, i6.FooterTemplateDirective, i7.HeaderTemplateDirective, i8.HeaderTitleTemplateDirective, i9.MonthCellTemplateDirective, i10.NavigationItemTemplateDirective, i11.WeekNumberCellTemplateDirective, i12.YearCellTemplateDirective], exports: [i1.DateTimePickerCustomMessagesComponent, i2.DateTimePickerComponent, i3.CellTemplateDirective, i4.CenturyCellTemplateDirective, i5.DecadeCellTemplateDirective, i6.FooterTemplateDirective, i7.HeaderTemplateDirective, i8.HeaderTitleTemplateDirective, i9.MonthCellTemplateDirective, i10.NavigationItemTemplateDirective, i11.WeekNumberCellTemplateDirective, i12.YearCellTemplateDirective] });
|
|
49
45
|
DateTimePickerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DateTimePickerModule, providers: [
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
46
|
+
// CalendarModule providers
|
|
47
|
+
IconsService,
|
|
48
|
+
ResizeBatchService,
|
|
49
|
+
CalendarDOMService,
|
|
50
|
+
CenturyViewService,
|
|
51
|
+
DecadeViewService,
|
|
52
|
+
MonthViewService,
|
|
53
|
+
YearViewService,
|
|
54
|
+
WeekNamesService,
|
|
55
|
+
PopupService,
|
|
56
|
+
NavigationService,
|
|
57
|
+
// TimePickerModule providers
|
|
58
|
+
TimePickerDOMService,
|
|
59
|
+
HoursService,
|
|
60
|
+
MinutesService,
|
|
61
|
+
SecondsService,
|
|
62
|
+
MillisecondsService,
|
|
63
|
+
DayPeriodService,
|
|
64
|
+
], imports: [i1.DateTimePickerCustomMessagesComponent, i2.DateTimePickerComponent] });
|
|
62
65
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DateTimePickerModule, decorators: [{
|
|
63
66
|
type: NgModule,
|
|
64
67
|
args: [{
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
],
|
|
68
|
-
exports: [
|
|
69
|
-
...COMPONENT_DIRECTIVES,
|
|
70
|
-
TemplatesModule,
|
|
71
|
-
ToggleButtonTabStopModule
|
|
72
|
-
],
|
|
73
|
-
imports: [
|
|
74
|
-
CommonModule,
|
|
75
|
-
IntlModule,
|
|
76
|
-
DateInputModule,
|
|
77
|
-
CalendarModule,
|
|
78
|
-
TimePickerModule,
|
|
79
|
-
PopupModule,
|
|
80
|
-
EventsModule,
|
|
81
|
-
TemplatesModule,
|
|
82
|
-
IconsModule,
|
|
83
|
-
AdaptiveModule
|
|
84
|
-
],
|
|
68
|
+
exports: [...KENDO_DATETIMEPICKER],
|
|
69
|
+
imports: [...KENDO_DATETIMEPICKER],
|
|
85
70
|
providers: [
|
|
86
|
-
|
|
71
|
+
// CalendarModule providers
|
|
72
|
+
IconsService,
|
|
73
|
+
ResizeBatchService,
|
|
74
|
+
CalendarDOMService,
|
|
75
|
+
CenturyViewService,
|
|
76
|
+
DecadeViewService,
|
|
77
|
+
MonthViewService,
|
|
78
|
+
YearViewService,
|
|
79
|
+
WeekNamesService,
|
|
80
|
+
PopupService,
|
|
81
|
+
NavigationService,
|
|
82
|
+
// TimePickerModule providers
|
|
83
|
+
TimePickerDOMService,
|
|
84
|
+
HoursService,
|
|
85
|
+
MinutesService,
|
|
86
|
+
SecondsService,
|
|
87
|
+
MillisecondsService,
|
|
88
|
+
DayPeriodService,
|
|
87
89
|
]
|
|
88
90
|
}]
|
|
89
91
|
}] });
|
|
@@ -20,7 +20,7 @@ export class DateTimePickerCustomMessagesComponent extends DateTimePickerMessage
|
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
DateTimePickerCustomMessagesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DateTimePickerCustomMessagesComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
23
|
-
DateTimePickerCustomMessagesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: DateTimePickerCustomMessagesComponent, selector: "kendo-datetimepicker-messages", providers: [
|
|
23
|
+
DateTimePickerCustomMessagesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: DateTimePickerCustomMessagesComponent, isStandalone: true, selector: "kendo-datetimepicker-messages", providers: [
|
|
24
24
|
{
|
|
25
25
|
provide: DateTimePickerMessages,
|
|
26
26
|
useExisting: forwardRef(() => DateTimePickerCustomMessagesComponent)
|
|
@@ -36,6 +36,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
36
36
|
}
|
|
37
37
|
],
|
|
38
38
|
selector: 'kendo-datetimepicker-messages',
|
|
39
|
-
template:
|
|
39
|
+
template: ``,
|
|
40
|
+
standalone: true
|
|
40
41
|
}]
|
|
41
42
|
}], ctorParameters: function () { return [{ type: i1.LocalizationService }]; } });
|
|
@@ -17,7 +17,7 @@ export class LocalizedMessagesDirective extends DateTimePickerMessages {
|
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
LocalizedMessagesDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: LocalizedMessagesDirective, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
20
|
-
LocalizedMessagesDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: LocalizedMessagesDirective, selector: "[kendoDateTimePickerLocalizedMessages]", providers: [
|
|
20
|
+
LocalizedMessagesDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: LocalizedMessagesDirective, isStandalone: true, selector: "[kendoDateTimePickerLocalizedMessages]", providers: [
|
|
21
21
|
{
|
|
22
22
|
provide: DateTimePickerMessages,
|
|
23
23
|
useExisting: forwardRef(() => LocalizedMessagesDirective)
|
|
@@ -32,6 +32,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
32
32
|
useExisting: forwardRef(() => LocalizedMessagesDirective)
|
|
33
33
|
}
|
|
34
34
|
],
|
|
35
|
-
selector: '[kendoDateTimePickerLocalizedMessages]'
|
|
35
|
+
selector: '[kendoDateTimePickerLocalizedMessages]',
|
|
36
|
+
standalone: true
|
|
36
37
|
}]
|
|
37
38
|
}], ctorParameters: function () { return [{ type: i1.LocalizationService }]; } });
|