@progress/kendo-angular-dateinputs 16.0.0-develop.19 → 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/dateinput/dateinput.component.d.ts +13 -1
- package/dateinput/localization/messages.d.ts +5 -1
- package/datepicker/datepicker.component.d.ts +7 -2
- package/datepicker/localization/messages.d.ts +5 -1
- package/datetimepicker/datetimepicker.component.d.ts +7 -1
- package/datetimepicker/localization/messages.d.ts +5 -1
- package/esm2020/dateinput/dateinput.component.mjs +63 -2
- package/esm2020/dateinput/localization/messages.mjs +3 -1
- package/esm2020/datepicker/datepicker.component.mjs +39 -14
- package/esm2020/datepicker/localization/messages.mjs +3 -1
- package/esm2020/datetimepicker/datetimepicker.component.mjs +37 -11
- package/esm2020/datetimepicker/localization/messages.mjs +3 -1
- package/esm2020/package-metadata.mjs +2 -2
- package/esm2020/timepicker/localization/messages.mjs +3 -1
- package/esm2020/timepicker/timepicker.component.mjs +39 -11
- package/fesm2015/progress-kendo-angular-dateinputs.mjs +220 -74
- package/fesm2020/progress-kendo-angular-dateinputs.mjs +219 -74
- package/package.json +9 -9
- package/timepicker/localization/messages.d.ts +5 -1
- package/timepicker/timepicker.component.d.ts +7 -1
|
@@ -44,15 +44,16 @@ import * as i4 from "@progress/kendo-angular-l10n";
|
|
|
44
44
|
import * as i5 from "../calendar/services/disabled-dates.service";
|
|
45
45
|
import * as i6 from "@angular/common";
|
|
46
46
|
import * as i7 from "../dateinput/dateinput.component";
|
|
47
|
-
import * as i8 from "../
|
|
48
|
-
import * as i9 from "../calendar/
|
|
49
|
-
import * as i10 from "../
|
|
50
|
-
import * as i11 from "../timepicker/timeselector.component";
|
|
51
|
-
import * as i12 from "
|
|
52
|
-
import * as i13 from "@progress/kendo-angular-
|
|
53
|
-
import * as i14 from "@progress/kendo-angular-
|
|
54
|
-
import * as i15 from "@progress/kendo-angular-
|
|
55
|
-
import * as i16 from "
|
|
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";
|
|
56
57
|
const timeFormatRegExp = new RegExp(`${TIME_PART.hour}|${TIME_PART.minute}|${TIME_PART.second}|${TIME_PART.dayperiod}|literal`);
|
|
57
58
|
const VALUE_DOC_LINK = 'https://www.telerik.com/kendo-angular-ui/components/dateinputs/datetimepicker/integration-with-json/';
|
|
58
59
|
const MIN_MAX_DOC_LINK = 'https://www.telerik.com/kendo-angular-ui/components/dateinputs/datetimepicker/date-time-limits/';
|
|
@@ -217,6 +218,12 @@ export class DateTimePickerComponent {
|
|
|
217
218
|
* @default false
|
|
218
219
|
*/
|
|
219
220
|
this.allowCaretMode = false;
|
|
221
|
+
/**
|
|
222
|
+
* If set to `true`, renders a clear button after the input text or DateTimePicker value has been changed.
|
|
223
|
+
* Clicking this button resets the value of the component to `null` and triggers the `valueChange` event.
|
|
224
|
+
* @default false
|
|
225
|
+
*/
|
|
226
|
+
this.clearButton = false;
|
|
220
227
|
/**
|
|
221
228
|
* When enabled, the DateTimePicker will autofill the rest of the date to the current date when the component loses focus.
|
|
222
229
|
*
|
|
@@ -1265,6 +1272,7 @@ export class DateTimePickerComponent {
|
|
|
1265
1272
|
if (isEqual(this.value, value)) {
|
|
1266
1273
|
return;
|
|
1267
1274
|
}
|
|
1275
|
+
this.dateInput.showClearButton = true;
|
|
1268
1276
|
this.value = cloneDate(value);
|
|
1269
1277
|
this.onControlChange(cloneDate(value));
|
|
1270
1278
|
this.valueChange.emit(cloneDate(value));
|
|
@@ -1334,7 +1342,7 @@ export class DateTimePickerComponent {
|
|
|
1334
1342
|
}
|
|
1335
1343
|
}
|
|
1336
1344
|
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: TOUCH_ENABLED }, { token: i4.LocalizationService }, { token: i5.DisabledDatesService }, { token: i0.Renderer2 }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
|
|
1337
|
-
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", 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" }, host: { properties: { "class.k-datetimepicker": "this.hostClasses", "class.k-input": "this.hostClasses", "class.k-disabled": "this.disabledClass", "class.k-readonly": "this.readonly" } }, providers: [
|
|
1345
|
+
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" }, host: { properties: { "class.k-datetimepicker": "this.hostClasses", "class.k-input": "this.hostClasses", "class.k-disabled": "this.disabledClass", "class.k-readonly": "this.readonly" } }, providers: [
|
|
1338
1346
|
PickerService,
|
|
1339
1347
|
LocalizationService,
|
|
1340
1348
|
DisabledDatesService,
|
|
@@ -1405,12 +1413,16 @@ DateTimePickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0"
|
|
|
1405
1413
|
|
|
1406
1414
|
i18n-dayperiod="kendo.datetimepicker.dayperiod|The label for the dayperiod part in the timepicker component"
|
|
1407
1415
|
dayperiod="Dayperiod"
|
|
1416
|
+
|
|
1417
|
+
i18n-clearTitle="kendo.datetimepicker.clearTitle|The title of the clear button"
|
|
1418
|
+
clearTitle="clear"
|
|
1408
1419
|
>
|
|
1409
1420
|
</ng-container>
|
|
1410
1421
|
|
|
1411
1422
|
<kendo-dateinput
|
|
1412
1423
|
[value]="value"
|
|
1413
1424
|
[format]="format"
|
|
1425
|
+
[clearButton]="clearButton"
|
|
1414
1426
|
[twoDigitYearMax]="twoDigitYearMax"
|
|
1415
1427
|
[min]="min"
|
|
1416
1428
|
[max]="max"
|
|
@@ -1446,6 +1458,10 @@ DateTimePickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0"
|
|
|
1446
1458
|
[size]="size"
|
|
1447
1459
|
(click)="handleDateInputClick()"
|
|
1448
1460
|
>
|
|
1461
|
+
<kendo-dateinput-messages
|
|
1462
|
+
[clearTitle]="localization.get('clearTitle')"
|
|
1463
|
+
>
|
|
1464
|
+
</kendo-dateinput-messages>
|
|
1449
1465
|
</kendo-dateinput>
|
|
1450
1466
|
<button
|
|
1451
1467
|
#toggleButton
|
|
@@ -1715,7 +1731,7 @@ DateTimePickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0"
|
|
|
1715
1731
|
</div>
|
|
1716
1732
|
</div>
|
|
1717
1733
|
</ng-template>
|
|
1718
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: i6.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { 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", "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.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:
|
|
1734
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i6.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { 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: "component", type: i9.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: i10.CalendarCustomMessagesComponent, selector: "kendo-calendar-messages" }, { kind: "component", type: i11.TimeSelectorCustomMessagesComponent, selector: "kendo-timeselector-messages" }, { kind: "component", type: i12.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: "directive", type: i13.EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }, { kind: "component", type: i14.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "component", type: i15.ActionSheetComponent, selector: "kendo-actionsheet", inputs: ["title", "subtitle", "items", "cssClass", "animation", "expanded", "titleId"], outputs: ["expandedChange", "expand", "collapse", "itemClick", "overlayClick"], exportAs: ["kendoActionSheet"] }, { kind: "directive", type: i15.ActionSheetTemplateDirective, selector: "[kendoActionSheetTemplate]" }, { kind: "component", type: i13.ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }, { kind: "component", type: i16.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: i17.LocalizedMessagesDirective, selector: "[kendoDateTimePickerLocalizedMessages]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1719
1735
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DateTimePickerComponent, decorators: [{
|
|
1720
1736
|
type: Component,
|
|
1721
1737
|
args: [{
|
|
@@ -1794,12 +1810,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1794
1810
|
|
|
1795
1811
|
i18n-dayperiod="kendo.datetimepicker.dayperiod|The label for the dayperiod part in the timepicker component"
|
|
1796
1812
|
dayperiod="Dayperiod"
|
|
1813
|
+
|
|
1814
|
+
i18n-clearTitle="kendo.datetimepicker.clearTitle|The title of the clear button"
|
|
1815
|
+
clearTitle="clear"
|
|
1797
1816
|
>
|
|
1798
1817
|
</ng-container>
|
|
1799
1818
|
|
|
1800
1819
|
<kendo-dateinput
|
|
1801
1820
|
[value]="value"
|
|
1802
1821
|
[format]="format"
|
|
1822
|
+
[clearButton]="clearButton"
|
|
1803
1823
|
[twoDigitYearMax]="twoDigitYearMax"
|
|
1804
1824
|
[min]="min"
|
|
1805
1825
|
[max]="max"
|
|
@@ -1835,6 +1855,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1835
1855
|
[size]="size"
|
|
1836
1856
|
(click)="handleDateInputClick()"
|
|
1837
1857
|
>
|
|
1858
|
+
<kendo-dateinput-messages
|
|
1859
|
+
[clearTitle]="localization.get('clearTitle')"
|
|
1860
|
+
>
|
|
1861
|
+
</kendo-dateinput-messages>
|
|
1838
1862
|
</kendo-dateinput>
|
|
1839
1863
|
<button
|
|
1840
1864
|
#toggleButton
|
|
@@ -2188,6 +2212,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
2188
2212
|
type: Input
|
|
2189
2213
|
}], allowCaretMode: [{
|
|
2190
2214
|
type: Input
|
|
2215
|
+
}], clearButton: [{
|
|
2216
|
+
type: Input
|
|
2191
2217
|
}], autoFill: [{
|
|
2192
2218
|
type: Input
|
|
2193
2219
|
}], adaptiveMode: [{
|
|
@@ -11,7 +11,7 @@ import * as i0 from "@angular/core";
|
|
|
11
11
|
export class DateTimePickerMessages extends ComponentMessages {
|
|
12
12
|
}
|
|
13
13
|
DateTimePickerMessages.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DateTimePickerMessages, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
14
|
-
DateTimePickerMessages.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: DateTimePickerMessages, selector: "kendo-datetimepicker-messages-base", inputs: { toggle: "toggle", dateTab: "dateTab", dateTabLabel: "dateTabLabel", timeTab: "timeTab", timeTabLabel: "timeTabLabel", accept: "accept", acceptLabel: "acceptLabel", cancel: "cancel", cancelLabel: "cancelLabel", today: "today", now: "now", nowLabel: "nowLabel", prevButtonTitle: "prevButtonTitle", nextButtonTitle: "nextButtonTitle", parentViewButtonTitle: "parentViewButtonTitle", hour: "hour", minute: "minute", second: "second", millisecond: "millisecond", dayperiod: "dayperiod" }, usesInheritance: true, ngImport: i0 });
|
|
14
|
+
DateTimePickerMessages.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: DateTimePickerMessages, selector: "kendo-datetimepicker-messages-base", inputs: { toggle: "toggle", dateTab: "dateTab", dateTabLabel: "dateTabLabel", timeTab: "timeTab", timeTabLabel: "timeTabLabel", accept: "accept", acceptLabel: "acceptLabel", cancel: "cancel", cancelLabel: "cancelLabel", today: "today", now: "now", nowLabel: "nowLabel", prevButtonTitle: "prevButtonTitle", nextButtonTitle: "nextButtonTitle", parentViewButtonTitle: "parentViewButtonTitle", hour: "hour", minute: "minute", second: "second", millisecond: "millisecond", dayperiod: "dayperiod", clearTitle: "clearTitle" }, usesInheritance: true, ngImport: i0 });
|
|
15
15
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DateTimePickerMessages, decorators: [{
|
|
16
16
|
type: Directive,
|
|
17
17
|
args: [{
|
|
@@ -58,4 +58,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
58
58
|
type: Input
|
|
59
59
|
}], dayperiod: [{
|
|
60
60
|
type: Input
|
|
61
|
+
}], clearTitle: [{
|
|
62
|
+
type: Input
|
|
61
63
|
}] } });
|
|
@@ -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:
|
|
13
|
-
version: '16.0.0-develop.
|
|
12
|
+
publishDate: 1715338566,
|
|
13
|
+
version: '16.0.0-develop.20',
|
|
14
14
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
15
15
|
};
|
|
@@ -11,7 +11,7 @@ import * as i0 from "@angular/core";
|
|
|
11
11
|
export class TimePickerMessages extends ComponentMessages {
|
|
12
12
|
}
|
|
13
13
|
TimePickerMessages.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TimePickerMessages, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
14
|
-
TimePickerMessages.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: TimePickerMessages, selector: "kendo-timepicker-messages-base", inputs: { accept: "accept", acceptLabel: "acceptLabel", cancel: "cancel", cancelLabel: "cancelLabel", now: "now", nowLabel: "nowLabel", toggle: "toggle", hour: "hour", minute: "minute", second: "second", millisecond: "millisecond", dayperiod: "dayperiod" }, usesInheritance: true, ngImport: i0 });
|
|
14
|
+
TimePickerMessages.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: TimePickerMessages, selector: "kendo-timepicker-messages-base", inputs: { accept: "accept", acceptLabel: "acceptLabel", cancel: "cancel", cancelLabel: "cancelLabel", now: "now", nowLabel: "nowLabel", toggle: "toggle", hour: "hour", minute: "minute", second: "second", millisecond: "millisecond", dayperiod: "dayperiod", clearTitle: "clearTitle" }, usesInheritance: true, ngImport: i0 });
|
|
15
15
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TimePickerMessages, decorators: [{
|
|
16
16
|
type: Directive,
|
|
17
17
|
args: [{
|
|
@@ -42,4 +42,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
42
42
|
type: Input
|
|
43
43
|
}], dayperiod: [{
|
|
44
44
|
type: Input
|
|
45
|
+
}], clearTitle: [{
|
|
46
|
+
type: Input
|
|
45
47
|
}] } });
|
|
@@ -32,13 +32,14 @@ import * as i4 from "../common/picker.service";
|
|
|
32
32
|
import * as i5 from "@progress/kendo-angular-intl";
|
|
33
33
|
import * as i6 from "@angular/common";
|
|
34
34
|
import * as i7 from "../dateinput/dateinput.component";
|
|
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 "@progress/kendo-angular-
|
|
39
|
-
import * as i12 from "
|
|
40
|
-
import * as i13 from "./localization/
|
|
41
|
-
import * as i14 from "./timeselector.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
|
+
import * as i13 from "./localization/timepicker-localized-messages.directive";
|
|
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 %})).
|
|
@@ -658,6 +665,7 @@ export class TimePickerComponent {
|
|
|
658
665
|
this.focusInput();
|
|
659
666
|
this.show = false;
|
|
660
667
|
}
|
|
668
|
+
this.dateInput.showClearButton = true;
|
|
661
669
|
this.onControlChange(cloneDate(value));
|
|
662
670
|
this.valueChange.emit(cloneDate(value));
|
|
663
671
|
});
|
|
@@ -961,7 +969,7 @@ export class TimePickerComponent {
|
|
|
961
969
|
}
|
|
962
970
|
}
|
|
963
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 });
|
|
964
|
-
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", 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: [
|
|
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: [
|
|
965
973
|
{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => TimePickerComponent), multi: true },
|
|
966
974
|
{ provide: NG_VALIDATORS, useExisting: forwardRef(() => TimePickerComponent), multi: true },
|
|
967
975
|
{ provide: KendoInput, useExisting: forwardRef(() => TimePickerComponent) },
|
|
@@ -1009,6 +1017,9 @@ TimePickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", ve
|
|
|
1009
1017
|
|
|
1010
1018
|
i18n-dayperiod="kendo.timepicker.dayperiod|The label for the dayperiod part in the timepicker component"
|
|
1011
1019
|
dayperiod="Dayperiod"
|
|
1020
|
+
|
|
1021
|
+
i18n-clearTitle="kendo.timepicker.clearTitle|The title of the clear button"
|
|
1022
|
+
clearTitle="clear"
|
|
1012
1023
|
>
|
|
1013
1024
|
</ng-container>
|
|
1014
1025
|
<kendo-dateinput
|
|
@@ -1017,6 +1028,7 @@ TimePickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", ve
|
|
|
1017
1028
|
hasPopup="dialog"
|
|
1018
1029
|
[isPopupOpen]="show"
|
|
1019
1030
|
[disabled]="disabled"
|
|
1031
|
+
[clearButton]="clearButton"
|
|
1020
1032
|
[readonly]="readonly || readOnlyInput"
|
|
1021
1033
|
[role]="'combobox'"
|
|
1022
1034
|
[ariaReadOnly]="readonly"
|
|
@@ -1043,7 +1055,12 @@ TimePickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", ve
|
|
|
1043
1055
|
[value]="value"
|
|
1044
1056
|
(valueChange)="handleInputChange($event)"
|
|
1045
1057
|
(click)="handleDateInputClick()"
|
|
1046
|
-
|
|
1058
|
+
>
|
|
1059
|
+
<kendo-dateinput-messages
|
|
1060
|
+
[clearTitle]="localization.get('clearTitle')"
|
|
1061
|
+
>
|
|
1062
|
+
</kendo-dateinput-messages>
|
|
1063
|
+
</kendo-dateinput>
|
|
1047
1064
|
<button
|
|
1048
1065
|
#toggleButton
|
|
1049
1066
|
type="button"
|
|
@@ -1168,7 +1185,7 @@ TimePickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", ve
|
|
|
1168
1185
|
</kendo-timeselector-messages>
|
|
1169
1186
|
</kendo-timeselector>
|
|
1170
1187
|
</ng-template>
|
|
1171
|
-
`, 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", "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: "
|
|
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 });
|
|
1172
1189
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TimePickerComponent, decorators: [{
|
|
1173
1190
|
type: Component,
|
|
1174
1191
|
args: [{
|
|
@@ -1224,6 +1241,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1224
1241
|
|
|
1225
1242
|
i18n-dayperiod="kendo.timepicker.dayperiod|The label for the dayperiod part in the timepicker component"
|
|
1226
1243
|
dayperiod="Dayperiod"
|
|
1244
|
+
|
|
1245
|
+
i18n-clearTitle="kendo.timepicker.clearTitle|The title of the clear button"
|
|
1246
|
+
clearTitle="clear"
|
|
1227
1247
|
>
|
|
1228
1248
|
</ng-container>
|
|
1229
1249
|
<kendo-dateinput
|
|
@@ -1232,6 +1252,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1232
1252
|
hasPopup="dialog"
|
|
1233
1253
|
[isPopupOpen]="show"
|
|
1234
1254
|
[disabled]="disabled"
|
|
1255
|
+
[clearButton]="clearButton"
|
|
1235
1256
|
[readonly]="readonly || readOnlyInput"
|
|
1236
1257
|
[role]="'combobox'"
|
|
1237
1258
|
[ariaReadOnly]="readonly"
|
|
@@ -1258,7 +1279,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1258
1279
|
[value]="value"
|
|
1259
1280
|
(valueChange)="handleInputChange($event)"
|
|
1260
1281
|
(click)="handleDateInputClick()"
|
|
1261
|
-
|
|
1282
|
+
>
|
|
1283
|
+
<kendo-dateinput-messages
|
|
1284
|
+
[clearTitle]="localization.get('clearTitle')"
|
|
1285
|
+
>
|
|
1286
|
+
</kendo-dateinput-messages>
|
|
1287
|
+
</kendo-dateinput>
|
|
1262
1288
|
<button
|
|
1263
1289
|
#toggleButton
|
|
1264
1290
|
type="button"
|
|
@@ -1413,6 +1439,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1413
1439
|
args: ['class.k-readonly']
|
|
1414
1440
|
}], readOnlyInput: [{
|
|
1415
1441
|
type: Input
|
|
1442
|
+
}], clearButton: [{
|
|
1443
|
+
type: Input
|
|
1416
1444
|
}], format: [{
|
|
1417
1445
|
type: Input
|
|
1418
1446
|
}], formatPlaceholder: [{
|