@progress/kendo-angular-dateinputs 11.0.0-develop.92 → 11.0.0-develop.94
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-common.module.d.ts +2 -1
- package/calendar/header.component.d.ts +9 -0
- package/dateinput/dateinput.component.d.ts +9 -0
- package/dateinput/dateinput.module.d.ts +2 -1
- package/datepicker/datepicker.component.d.ts +5 -0
- package/datepicker/datepicker.module.d.ts +2 -1
- package/datetimepicker/datetimepicker.component.d.ts +9 -0
- package/datetimepicker/datetimepicker.module.d.ts +2 -1
- package/esm2020/calendar/calendar-common.module.mjs +4 -3
- package/esm2020/calendar/header.component.mjs +33 -11
- package/esm2020/dateinput/dateinput.component.mjs +46 -12
- package/esm2020/dateinput/dateinput.module.mjs +4 -3
- package/esm2020/datepicker/datepicker.component.mjs +23 -7
- package/esm2020/datepicker/datepicker.module.mjs +7 -3
- package/esm2020/datetimepicker/datetimepicker.component.mjs +46 -20
- package/esm2020/datetimepicker/datetimepicker.module.mjs +7 -3
- package/esm2020/package-metadata.mjs +1 -1
- package/esm2020/timepicker/timepicker.component.mjs +23 -7
- package/esm2020/timepicker/timepicker.module.mjs +5 -2
- package/fesm2015/progress-kendo-angular-dateinputs.mjs +177 -60
- package/fesm2020/progress-kendo-angular-dateinputs.mjs +177 -60
- package/package.json +9 -7
- package/schematics/ngAdd/index.js +4 -2
- package/timepicker/timepicker.component.d.ts +5 -0
- package/timepicker/timepicker.module.d.ts +2 -1
|
@@ -32,6 +32,7 @@ import { CenturyCellTemplateDirective } from '../calendar/templates/century-cell
|
|
|
32
32
|
import { WeekNumberCellTemplateDirective } from '../calendar/templates/weeknumber-cell-template.directive';
|
|
33
33
|
import { HeaderTitleTemplateDirective } from '../calendar/templates/header-title-template.directive';
|
|
34
34
|
import { incompleteDateValidator } from '../validators/incomplete-date.validator';
|
|
35
|
+
import { calendarIcon, clockIcon } from '@progress/kendo-svg-icons';
|
|
35
36
|
import * as i0 from "@angular/core";
|
|
36
37
|
import * as i1 from "@progress/kendo-angular-popup";
|
|
37
38
|
import * as i2 from "@progress/kendo-angular-intl";
|
|
@@ -39,13 +40,14 @@ import * as i3 from "../common/picker.service";
|
|
|
39
40
|
import * as i4 from "@progress/kendo-angular-l10n";
|
|
40
41
|
import * as i5 from "../calendar/services/disabled-dates.service";
|
|
41
42
|
import * as i6 from "../dateinput/dateinput.component";
|
|
42
|
-
import * as i7 from "
|
|
43
|
-
import * as i8 from "../calendar/
|
|
44
|
-
import * as i9 from "../
|
|
45
|
-
import * as i10 from "../timepicker/
|
|
46
|
-
import * as i11 from "
|
|
47
|
-
import * as i12 from "
|
|
48
|
-
import * as i13 from "@angular
|
|
43
|
+
import * as i7 from "@progress/kendo-angular-icons";
|
|
44
|
+
import * as i8 from "../calendar/calendar.component";
|
|
45
|
+
import * as i9 from "../calendar/localization/calendar-custom-messages.component";
|
|
46
|
+
import * as i10 from "../timepicker/timeselector.component";
|
|
47
|
+
import * as i11 from "../timepicker/localization/timeselector-custom-messages.component";
|
|
48
|
+
import * as i12 from "./localization/localized-messages.directive";
|
|
49
|
+
import * as i13 from "@progress/kendo-angular-common";
|
|
50
|
+
import * as i14 from "@angular/common";
|
|
49
51
|
const timeFormatRegExp = new RegExp(`${TIME_PART.hour}|${TIME_PART.minute}|${TIME_PART.second}|${TIME_PART.dayperiod}|literal`);
|
|
50
52
|
const VALUE_DOC_LINK = 'https://www.telerik.com/kendo-angular-ui/components/dateinputs/datetimepicker/integration-with-json/';
|
|
51
53
|
const MIN_MAX_DOC_LINK = 'https://www.telerik.com/kendo-angular-ui/components/dateinputs/datetimepicker/date-time-limits/';
|
|
@@ -68,6 +70,14 @@ export class DateTimePickerComponent {
|
|
|
68
70
|
this.localization = localization;
|
|
69
71
|
this.disabledDatesService = disabledDatesService;
|
|
70
72
|
this.renderer = renderer;
|
|
73
|
+
/**
|
|
74
|
+
* @hidden
|
|
75
|
+
*/
|
|
76
|
+
this.calendarIcon = calendarIcon;
|
|
77
|
+
/**
|
|
78
|
+
* @hidden
|
|
79
|
+
*/
|
|
80
|
+
this.clockIcon = clockIcon;
|
|
71
81
|
/**
|
|
72
82
|
* @hidden
|
|
73
83
|
*/
|
|
@@ -1123,12 +1133,20 @@ DateTimePickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0"
|
|
|
1123
1133
|
}"
|
|
1124
1134
|
[scope]="this"
|
|
1125
1135
|
>
|
|
1126
|
-
<
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1136
|
+
<kendo-icon-wrapper
|
|
1137
|
+
*ngIf="activeTab === 'date'"
|
|
1138
|
+
name="calendar"
|
|
1139
|
+
class="k-button-icon"
|
|
1140
|
+
[svgIcon]="calendarIcon"
|
|
1141
|
+
>
|
|
1142
|
+
</kendo-icon-wrapper>
|
|
1143
|
+
<kendo-icon-wrapper
|
|
1144
|
+
*ngIf="activeTab === 'time'"
|
|
1145
|
+
name="clock"
|
|
1146
|
+
class="k-button-icon"
|
|
1147
|
+
[svgIcon]="clockIcon"
|
|
1148
|
+
>
|
|
1149
|
+
</kendo-icon-wrapper>
|
|
1132
1150
|
</button>
|
|
1133
1151
|
|
|
1134
1152
|
<ng-container #container></ng-container>
|
|
@@ -1278,7 +1296,7 @@ DateTimePickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0"
|
|
|
1278
1296
|
</div>
|
|
1279
1297
|
</div>
|
|
1280
1298
|
</ng-template>
|
|
1281
|
-
`, isInline: true, components: [{ type: i6.DateInputComponent, selector: "kendo-dateinput", inputs: ["focusableId", "pickerType", "disabled", "readonly", "title", "tabindex", "role", "ariaReadOnly", "tabIndex", "format", "formatPlaceholder", "placeholder", "steps", "max", "min", "rangeValidation", "autoCorrect", "incompleteDateValidation", "twoDigitYearMax", "value", "spinners", "isPopupOpen", "hasPopup", "size", "rounded", "fillMode"], outputs: ["valueChange", "valueUpdate", "focus", "blur"], exportAs: ["kendo-dateinput"] }, { type: i7.CalendarComponent, selector: "kendo-calendar", inputs: ["id", "focusedDate", "min", "max", "rangeValidation", "selection", "value", "disabled", "tabindex", "tabIndex", "disabledDates", "navigation", "activeView", "bottomView", "topView", "type", "animateNavigation", "weekNumber", "cellTemplate", "monthCellTemplate", "yearCellTemplate", "decadeCellTemplate", "centuryCellTemplate", "weekNumberTemplate", "headerTitleTemplate", "navigationItemTemplate"], outputs: ["activeViewChange", "navigate", "activeViewDateChange", "blur", "focus", "valueChange"], exportAs: ["kendo-calendar"] }, { type:
|
|
1299
|
+
`, isInline: true, components: [{ type: i6.DateInputComponent, selector: "kendo-dateinput", inputs: ["focusableId", "pickerType", "disabled", "readonly", "title", "tabindex", "role", "ariaReadOnly", "tabIndex", "format", "formatPlaceholder", "placeholder", "steps", "max", "min", "rangeValidation", "autoCorrect", "incompleteDateValidation", "twoDigitYearMax", "value", "spinners", "isPopupOpen", "hasPopup", "size", "rounded", "fillMode"], outputs: ["valueChange", "valueUpdate", "focus", "blur"], exportAs: ["kendo-dateinput"] }, { type: i7.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass"], exportAs: ["kendoIconWrapper"] }, { type: i8.CalendarComponent, selector: "kendo-calendar", inputs: ["id", "focusedDate", "min", "max", "rangeValidation", "selection", "value", "disabled", "tabindex", "tabIndex", "disabledDates", "navigation", "activeView", "bottomView", "topView", "type", "animateNavigation", "weekNumber", "cellTemplate", "monthCellTemplate", "yearCellTemplate", "decadeCellTemplate", "centuryCellTemplate", "weekNumberTemplate", "headerTitleTemplate", "navigationItemTemplate"], outputs: ["activeViewChange", "navigate", "activeViewDateChange", "blur", "focus", "valueChange"], exportAs: ["kendo-calendar"] }, { type: i9.CalendarCustomMessagesComponent, selector: "kendo-calendar-messages" }, { type: i10.TimeSelectorComponent, selector: "kendo-timeselector", inputs: ["format", "min", "max", "cancelButton", "setButton", "nowButton", "disabled", "steps", "value"], outputs: ["valueChange", "valueReject"], exportAs: ["kendo-timeselector"] }, { type: i11.TimeSelectorCustomMessagesComponent, selector: "kendo-timeselector-messages" }], directives: [{ type: i12.LocalizedMessagesDirective, selector: "[kendoDateTimePickerLocalizedMessages]" }, { type: i13.EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }, { type: i14.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i14.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1282
1300
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DateTimePickerComponent, decorators: [{
|
|
1283
1301
|
type: Component,
|
|
1284
1302
|
args: [{
|
|
@@ -1385,12 +1403,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
1385
1403
|
}"
|
|
1386
1404
|
[scope]="this"
|
|
1387
1405
|
>
|
|
1388
|
-
<
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1406
|
+
<kendo-icon-wrapper
|
|
1407
|
+
*ngIf="activeTab === 'date'"
|
|
1408
|
+
name="calendar"
|
|
1409
|
+
class="k-button-icon"
|
|
1410
|
+
[svgIcon]="calendarIcon"
|
|
1411
|
+
>
|
|
1412
|
+
</kendo-icon-wrapper>
|
|
1413
|
+
<kendo-icon-wrapper
|
|
1414
|
+
*ngIf="activeTab === 'time'"
|
|
1415
|
+
name="clock"
|
|
1416
|
+
class="k-button-icon"
|
|
1417
|
+
[svgIcon]="clockIcon"
|
|
1418
|
+
>
|
|
1419
|
+
</kendo-icon-wrapper>
|
|
1394
1420
|
</button>
|
|
1395
1421
|
|
|
1396
1422
|
<ng-container #container></ng-container>
|
|
@@ -16,6 +16,7 @@ import { TOUCH_ENABLED } from '../touch-enabled';
|
|
|
16
16
|
import { DateTimePickerComponent } from './datetimepicker.component';
|
|
17
17
|
import { DateTimePickerCustomMessagesComponent } from './localization/datetimepicker-custom-messages.component';
|
|
18
18
|
import { LocalizedMessagesDirective } from './localization/localized-messages.directive';
|
|
19
|
+
import { IconsModule } from '@progress/kendo-angular-icons';
|
|
19
20
|
import * as i0 from "@angular/core";
|
|
20
21
|
const COMPONENT_DIRECTIVES = [
|
|
21
22
|
DateTimePickerComponent,
|
|
@@ -38,7 +39,8 @@ DateTimePickerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", ve
|
|
|
38
39
|
TimePickerModule,
|
|
39
40
|
PopupModule,
|
|
40
41
|
EventsModule,
|
|
41
|
-
TemplatesModule
|
|
42
|
+
TemplatesModule,
|
|
43
|
+
IconsModule], exports: [DateTimePickerComponent,
|
|
42
44
|
DateTimePickerCustomMessagesComponent,
|
|
43
45
|
LocalizedMessagesDirective, TemplatesModule] });
|
|
44
46
|
DateTimePickerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DateTimePickerModule, providers: [
|
|
@@ -51,7 +53,8 @@ DateTimePickerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", ve
|
|
|
51
53
|
TimePickerModule,
|
|
52
54
|
PopupModule,
|
|
53
55
|
EventsModule,
|
|
54
|
-
TemplatesModule
|
|
56
|
+
TemplatesModule,
|
|
57
|
+
IconsModule
|
|
55
58
|
], TemplatesModule] });
|
|
56
59
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DateTimePickerModule, decorators: [{
|
|
57
60
|
type: NgModule,
|
|
@@ -71,7 +74,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
71
74
|
TimePickerModule,
|
|
72
75
|
PopupModule,
|
|
73
76
|
EventsModule,
|
|
74
|
-
TemplatesModule
|
|
77
|
+
TemplatesModule,
|
|
78
|
+
IconsModule
|
|
75
79
|
],
|
|
76
80
|
providers: [
|
|
77
81
|
{ provide: TOUCH_ENABLED, useValue: touchEnabled }
|
|
@@ -9,7 +9,7 @@ export const packageMetadata = {
|
|
|
9
9
|
name: '@progress/kendo-angular-dateinputs',
|
|
10
10
|
productName: 'Kendo UI for Angular',
|
|
11
11
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
12
|
-
publishDate:
|
|
12
|
+
publishDate: 1673372503,
|
|
13
13
|
version: '',
|
|
14
14
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
15
15
|
};
|
|
@@ -22,6 +22,7 @@ import { TOUCH_ENABLED } from '../touch-enabled';
|
|
|
22
22
|
import { fromEvent } from 'rxjs';
|
|
23
23
|
import { incompleteDateValidator } from '../validators/incomplete-date.validator';
|
|
24
24
|
import { BusViewService } from '../calendar/services/bus-view.service';
|
|
25
|
+
import { clockIcon } from '@progress/kendo-svg-icons';
|
|
25
26
|
import * as i0 from "@angular/core";
|
|
26
27
|
import * as i1 from "../calendar/services/bus-view.service";
|
|
27
28
|
import * as i2 from "@progress/kendo-angular-l10n";
|
|
@@ -29,10 +30,11 @@ import * as i3 from "@progress/kendo-angular-popup";
|
|
|
29
30
|
import * as i4 from "../common/picker.service";
|
|
30
31
|
import * as i5 from "@progress/kendo-angular-intl";
|
|
31
32
|
import * as i6 from "../dateinput/dateinput.component";
|
|
32
|
-
import * as i7 from "
|
|
33
|
-
import * as i8 from "./
|
|
34
|
-
import * as i9 from "./localization/
|
|
35
|
-
import * as i10 from "
|
|
33
|
+
import * as i7 from "@progress/kendo-angular-icons";
|
|
34
|
+
import * as i8 from "./timeselector.component";
|
|
35
|
+
import * as i9 from "./localization/timeselector-custom-messages.component";
|
|
36
|
+
import * as i10 from "./localization/timepicker-localized-messages.directive";
|
|
37
|
+
import * as i11 from "@progress/kendo-angular-common";
|
|
36
38
|
const VALUE_DOC_LINK = 'https://www.telerik.com/kendo-angular-ui/components/dateinputs/timepicker/#toc-integration-with-json';
|
|
37
39
|
const INTL_DATE_FORMAT = 'https://github.com/telerik/kendo-intl/blob/master/docs/date-formatting/index.md';
|
|
38
40
|
const formatRegExp = new RegExp(`${TIME_PART.hour}|${TIME_PART.minute}|${TIME_PART.second}|${TIME_PART.millisecond}|${TIME_PART.dayperiod}|literal`);
|
|
@@ -52,6 +54,10 @@ export class TimePickerComponent {
|
|
|
52
54
|
this.pickerService = pickerService;
|
|
53
55
|
this.intl = intl;
|
|
54
56
|
this.touchEnabled = touchEnabled;
|
|
57
|
+
/**
|
|
58
|
+
* @hidden
|
|
59
|
+
*/
|
|
60
|
+
this.clockIcon = clockIcon;
|
|
55
61
|
/**
|
|
56
62
|
* Sets or gets the `disabled` property of the TimePicker and
|
|
57
63
|
* determines whether the component is active
|
|
@@ -896,7 +902,12 @@ TimePickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ve
|
|
|
896
902
|
}"
|
|
897
903
|
[scope]="this"
|
|
898
904
|
>
|
|
899
|
-
<
|
|
905
|
+
<kendo-icon-wrapper
|
|
906
|
+
name="clock"
|
|
907
|
+
class="k-button-icon"
|
|
908
|
+
[svgIcon]="clockIcon"
|
|
909
|
+
>
|
|
910
|
+
</kendo-icon-wrapper>
|
|
900
911
|
</button>
|
|
901
912
|
<ng-template #popupTemplate>
|
|
902
913
|
<kendo-timeselector
|
|
@@ -933,7 +944,7 @@ TimePickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ve
|
|
|
933
944
|
</kendo-timeselector>
|
|
934
945
|
</ng-template>
|
|
935
946
|
<ng-container #container></ng-container>
|
|
936
|
-
`, isInline: true, components: [{ type: i6.DateInputComponent, selector: "kendo-dateinput", inputs: ["focusableId", "pickerType", "disabled", "readonly", "title", "tabindex", "role", "ariaReadOnly", "tabIndex", "format", "formatPlaceholder", "placeholder", "steps", "max", "min", "rangeValidation", "autoCorrect", "incompleteDateValidation", "twoDigitYearMax", "value", "spinners", "isPopupOpen", "hasPopup", "size", "rounded", "fillMode"], outputs: ["valueChange", "valueUpdate", "focus", "blur"], exportAs: ["kendo-dateinput"] }, { type: i7.TimeSelectorComponent, selector: "kendo-timeselector", inputs: ["format", "min", "max", "cancelButton", "setButton", "nowButton", "disabled", "steps", "value"], outputs: ["valueChange", "valueReject"], exportAs: ["kendo-timeselector"] }, { type:
|
|
947
|
+
`, isInline: true, components: [{ type: i6.DateInputComponent, selector: "kendo-dateinput", inputs: ["focusableId", "pickerType", "disabled", "readonly", "title", "tabindex", "role", "ariaReadOnly", "tabIndex", "format", "formatPlaceholder", "placeholder", "steps", "max", "min", "rangeValidation", "autoCorrect", "incompleteDateValidation", "twoDigitYearMax", "value", "spinners", "isPopupOpen", "hasPopup", "size", "rounded", "fillMode"], outputs: ["valueChange", "valueUpdate", "focus", "blur"], exportAs: ["kendo-dateinput"] }, { type: i7.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass"], exportAs: ["kendoIconWrapper"] }, { type: i8.TimeSelectorComponent, selector: "kendo-timeselector", inputs: ["format", "min", "max", "cancelButton", "setButton", "nowButton", "disabled", "steps", "value"], outputs: ["valueChange", "valueReject"], exportAs: ["kendo-timeselector"] }, { type: i9.TimeSelectorCustomMessagesComponent, selector: "kendo-timeselector-messages" }], directives: [{ type: i10.TimePickerLocalizedMessagesDirective, selector: "[kendoTimePickerLocalizedMessages]" }, { type: i11.EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
937
948
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TimePickerComponent, decorators: [{
|
|
938
949
|
type: Component,
|
|
939
950
|
args: [{
|
|
@@ -1029,7 +1040,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
1029
1040
|
}"
|
|
1030
1041
|
[scope]="this"
|
|
1031
1042
|
>
|
|
1032
|
-
<
|
|
1043
|
+
<kendo-icon-wrapper
|
|
1044
|
+
name="clock"
|
|
1045
|
+
class="k-button-icon"
|
|
1046
|
+
[svgIcon]="clockIcon"
|
|
1047
|
+
>
|
|
1048
|
+
</kendo-icon-wrapper>
|
|
1033
1049
|
</button>
|
|
1034
1050
|
<ng-template #popupTemplate>
|
|
1035
1051
|
<kendo-timeselector
|
|
@@ -24,6 +24,7 @@ import { TimeSelectorCustomMessagesComponent } from './localization/timeselector
|
|
|
24
24
|
import { touchEnabled } from '@progress/kendo-common';
|
|
25
25
|
import { TOUCH_ENABLED } from '../touch-enabled';
|
|
26
26
|
import { EventsModule } from '@progress/kendo-angular-common';
|
|
27
|
+
import { IconsModule } from '@progress/kendo-angular-icons';
|
|
27
28
|
import * as i0 from "@angular/core";
|
|
28
29
|
const COMPONENT_DIRECTIVES = [
|
|
29
30
|
TimePickerLocalizedMessagesDirective,
|
|
@@ -39,7 +40,8 @@ const COMPONENT_MODULES = [
|
|
|
39
40
|
IntlModule,
|
|
40
41
|
PopupModule,
|
|
41
42
|
VirtualizationModule,
|
|
42
|
-
EventsModule
|
|
43
|
+
EventsModule,
|
|
44
|
+
IconsModule
|
|
43
45
|
];
|
|
44
46
|
const providers = [
|
|
45
47
|
TimePickerDOMService,
|
|
@@ -70,7 +72,8 @@ TimePickerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", versio
|
|
|
70
72
|
IntlModule,
|
|
71
73
|
PopupModule,
|
|
72
74
|
VirtualizationModule,
|
|
73
|
-
EventsModule
|
|
75
|
+
EventsModule,
|
|
76
|
+
IconsModule], exports: [TimePickerLocalizedMessagesDirective,
|
|
74
77
|
TimeListComponent,
|
|
75
78
|
TimePickerCustomMessagesComponent,
|
|
76
79
|
TimePickerComponent,
|