@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
|
@@ -8,7 +8,7 @@ import { NG_VALUE_ACCESSOR, NG_VALIDATORS, NgControl } from '@angular/forms';
|
|
|
8
8
|
import * as i1$1 from '@progress/kendo-angular-l10n';
|
|
9
9
|
import { ComponentMessages, LocalizationService, L10N_PREFIX, RTL } from '@progress/kendo-angular-l10n';
|
|
10
10
|
import { cloneDate, MS_PER_HOUR, MS_PER_MINUTE, addDays, getDate, isEqual, addDecades, addCenturies, firstDecadeOfCentury, lastDecadeOfCentury, firstYearOfDecade, createDate, lastYearOfDecade, lastMonthOfYear, lastDayOfMonth, durationInCenturies, addYears, durationInDecades, addWeeks, addMonths, firstDayOfMonth, dayOfWeek, durationInMonths, firstMonthOfYear, durationInYears, weekInYear } from '@progress/kendo-date-math';
|
|
11
|
-
import * as
|
|
11
|
+
import * as i1$2 from '@progress/kendo-angular-common';
|
|
12
12
|
import { isDocumentAvailable, guid, Keys as Keys$1, hasObservers, isObject, KendoInput, isObjectPresent, removeHTMLAttributes, parseAttributes, isControlRequired, setHTMLAttributes, EventsModule, ResizeSensorModule, ToggleButtonTabStopModule } from '@progress/kendo-angular-common';
|
|
13
13
|
export { ToggleButtonTabStopDirective } from '@progress/kendo-angular-common';
|
|
14
14
|
import { validatePackage } from '@progress/kendo-licensing';
|
|
@@ -17,16 +17,16 @@ import { localeData, IntlModule } from '@progress/kendo-angular-intl';
|
|
|
17
17
|
import * as i4 from '@angular/common';
|
|
18
18
|
import { CommonModule } from '@angular/common';
|
|
19
19
|
import { Subject, Subscription, ReplaySubject, Observable, combineLatest, of, interval, animationFrameScheduler, fromEvent, EMPTY, from, BehaviorSubject, merge } from 'rxjs';
|
|
20
|
-
import { chevronRightIcon, chevronLeftIcon, caretAltUpIcon, caretAltDownIcon, calendarIcon,
|
|
20
|
+
import { chevronRightIcon, chevronLeftIcon, caretAltUpIcon, xIcon, caretAltDownIcon, calendarIcon, clockIcon } from '@progress/kendo-svg-icons';
|
|
21
21
|
import * as i7 from '@progress/kendo-angular-buttons';
|
|
22
22
|
import { ButtonModule } from '@progress/kendo-angular-buttons';
|
|
23
23
|
import { map, scan, takeWhile, debounceTime, tap, filter } from 'rxjs/operators';
|
|
24
24
|
import { DateInput } from '@progress/kendo-dateinputs-common';
|
|
25
25
|
import * as i6 from '@progress/kendo-angular-icons';
|
|
26
26
|
import { IconsModule } from '@progress/kendo-angular-icons';
|
|
27
|
-
import * as i1$
|
|
27
|
+
import * as i1$3 from '@progress/kendo-angular-popup';
|
|
28
28
|
import { PopupModule } from '@progress/kendo-angular-popup';
|
|
29
|
-
import * as
|
|
29
|
+
import * as i12 from '@progress/kendo-angular-navigation';
|
|
30
30
|
import { NavigationModule } from '@progress/kendo-angular-navigation';
|
|
31
31
|
import { touchEnabled } from '@progress/kendo-common';
|
|
32
32
|
import { TextBoxModule } from '@progress/kendo-angular-inputs';
|
|
@@ -38,8 +38,8 @@ const packageMetadata = {
|
|
|
38
38
|
name: '@progress/kendo-angular-dateinputs',
|
|
39
39
|
productName: 'Kendo UI for Angular',
|
|
40
40
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
41
|
-
publishDate:
|
|
42
|
-
version: '16.0.0-develop.
|
|
41
|
+
publishDate: 1715338566,
|
|
42
|
+
version: '16.0.0-develop.20',
|
|
43
43
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
44
44
|
};
|
|
45
45
|
|
|
@@ -2758,7 +2758,7 @@ HeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", versio
|
|
|
2758
2758
|
</button>
|
|
2759
2759
|
</span>
|
|
2760
2760
|
</ng-template>
|
|
2761
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i4.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type:
|
|
2761
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i4.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1$2.EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }, { kind: "component", type: i7.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"] }] });
|
|
2762
2762
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: HeaderComponent, decorators: [{
|
|
2763
2763
|
type: Component,
|
|
2764
2764
|
args: [{
|
|
@@ -5321,7 +5321,7 @@ class VirtualizationComponent {
|
|
|
5321
5321
|
return indexOffset < this.containerScrollPosition ? ScrollDirection.Backward : ScrollDirection.Forward;
|
|
5322
5322
|
}
|
|
5323
5323
|
}
|
|
5324
|
-
VirtualizationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: VirtualizationComponent, deps: [{ token: SCROLLER_FACTORY_TOKEN }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.NgZone }, { token:
|
|
5324
|
+
VirtualizationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: VirtualizationComponent, deps: [{ token: SCROLLER_FACTORY_TOKEN }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.NgZone }, { token: i1$2.ScrollbarWidthService }], target: i0.ɵɵFactoryTarget.Component });
|
|
5325
5325
|
VirtualizationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: VirtualizationComponent, selector: "kendo-virtualization", inputs: { direction: "direction", itemHeight: "itemHeight", itemWidth: "itemWidth", topOffset: "topOffset", bottomOffset: "bottomOffset", maxScrollDifference: "maxScrollDifference", scrollOffsetSize: "scrollOffsetSize", scrollDuration: "scrollDuration", skip: "skip", take: "take", total: "total" }, outputs: { activeIndexChange: "activeIndexChange", pageChange: "pageChange", scrollChange: "scrollChange" }, host: { properties: { "class.k-flex": "this.wrapperClasses", "class.k-content": "this.wrapperClasses", "class.k-scrollable": "this.wrapperClasses", "class.k-scrollable-horizontal": "this.horizontalClass" } }, providers: [{
|
|
5326
5326
|
provide: SCROLLER_FACTORY_TOKEN,
|
|
5327
5327
|
useValue: DEFAULT_SCROLLER_FACTORY
|
|
@@ -5354,7 +5354,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
5354
5354
|
return [{ type: undefined, decorators: [{
|
|
5355
5355
|
type: Inject,
|
|
5356
5356
|
args: [SCROLLER_FACTORY_TOKEN]
|
|
5357
|
-
}] }, { type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.NgZone }, { type:
|
|
5357
|
+
}] }, { type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.NgZone }, { type: i1$2.ScrollbarWidthService }];
|
|
5358
5358
|
}, propDecorators: { direction: [{
|
|
5359
5359
|
type: Input
|
|
5360
5360
|
}], itemHeight: [{
|
|
@@ -5686,7 +5686,7 @@ NavigationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", ve
|
|
|
5686
5686
|
</li>
|
|
5687
5687
|
</ul>
|
|
5688
5688
|
</kendo-virtualization>
|
|
5689
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i4.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: KForOf, selector: "[kFor][kForOf]", inputs: ["kForOf", "kForTrackBy", "kForTemplate"] }, { kind: "component", type: VirtualizationComponent, selector: "kendo-virtualization", inputs: ["direction", "itemHeight", "itemWidth", "topOffset", "bottomOffset", "maxScrollDifference", "scrollOffsetSize", "scrollDuration", "skip", "take", "total"], outputs: ["activeIndexChange", "pageChange", "scrollChange"] }, { kind: "directive", type:
|
|
5689
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i4.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: KForOf, selector: "[kFor][kForOf]", inputs: ["kForOf", "kForTrackBy", "kForTemplate"] }, { kind: "component", type: VirtualizationComponent, selector: "kendo-virtualization", inputs: ["direction", "itemHeight", "itemWidth", "topOffset", "bottomOffset", "maxScrollDifference", "scrollOffsetSize", "scrollDuration", "skip", "take", "total"], outputs: ["activeIndexChange", "pageChange", "scrollChange"] }, { kind: "directive", type: i1$2.EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
5690
5690
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: NavigationComponent, decorators: [{
|
|
5691
5691
|
type: Component,
|
|
5692
5692
|
args: [{
|
|
@@ -7648,7 +7648,7 @@ CalendarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", vers
|
|
|
7648
7648
|
</kendo-multiviewcalendar-messages>
|
|
7649
7649
|
</kendo-multiviewcalendar>
|
|
7650
7650
|
</ng-container>
|
|
7651
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: MultiViewCalendarCustomMessagesComponent, selector: "kendo-multiviewcalendar-messages" }, { kind: "component", type: MultiViewCalendarComponent, selector: "kendo-multiviewcalendar", inputs: ["showOtherMonthDays", "showCalendarHeader", "size", "id", "focusedDate", "footer", "min", "max", "rangeValidation", "disabledDatesRangeValidation", "selection", "allowReverse", "value", "disabled", "tabindex", "tabIndex", "weekDaysFormat", "isActive", "disabledDates", "activeView", "bottomView", "topView", "showViewHeader", "animateNavigation", "weekNumber", "activeRangeEnd", "selectionRange", "views", "orientation", "cellTemplate", "monthCellTemplate", "yearCellTemplate", "decadeCellTemplate", "centuryCellTemplate", "weekNumberTemplate", "footerTemplate", "headerTitleTemplate", "headerTemplate"], outputs: ["activeViewChange", "navigate", "cellEnter", "cellLeave", "valueChange", "rangeSelectionChange", "blur", "focus", "focusCalendar", "onClosePopup", "onTabPress", "onShiftTabPress"], exportAs: ["kendo-multiviewcalendar"] }, { kind: "component", type:
|
|
7651
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: MultiViewCalendarCustomMessagesComponent, selector: "kendo-multiviewcalendar-messages" }, { kind: "component", type: MultiViewCalendarComponent, selector: "kendo-multiviewcalendar", inputs: ["showOtherMonthDays", "showCalendarHeader", "size", "id", "focusedDate", "footer", "min", "max", "rangeValidation", "disabledDatesRangeValidation", "selection", "allowReverse", "value", "disabled", "tabindex", "tabIndex", "weekDaysFormat", "isActive", "disabledDates", "activeView", "bottomView", "topView", "showViewHeader", "animateNavigation", "weekNumber", "activeRangeEnd", "selectionRange", "views", "orientation", "cellTemplate", "monthCellTemplate", "yearCellTemplate", "decadeCellTemplate", "centuryCellTemplate", "weekNumberTemplate", "footerTemplate", "headerTitleTemplate", "headerTemplate"], outputs: ["activeViewChange", "navigate", "cellEnter", "cellLeave", "valueChange", "rangeSelectionChange", "blur", "focus", "focusCalendar", "onClosePopup", "onTabPress", "onShiftTabPress"], exportAs: ["kendo-multiviewcalendar"] }, { kind: "component", type: i1$2.ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }, { kind: "component", type: NavigationComponent, selector: "kendo-calendar-navigation", inputs: ["activeView", "min", "max", "focusedDate", "templateRef"], outputs: ["valueChange", "pageChange"] }, { kind: "directive", type: CalendarLocalizedMessagesDirective, selector: "[kendoCalendarLocalizedMessages]" }, { kind: "component", type: ViewListComponent, selector: "kendo-calendar-viewlist", inputs: ["allowReverse", "cellTemplateRef", "weekNumberTemplateRef", "headerTitleTemplateRef", "headerTemplateRef", "footerTemplateRef", "showOtherMonthDays", "activeView", "cellUID", "focusedDate", "isActive", "min", "max", "selectedDates", "tabIndex", "disabled", "id", "showFooter", "weekDaysFormat", "activeRangeEnd", "selectionRange", "size", "weekNumber"], outputs: ["cellEnter", "cellClick", "weekNumberCellClick", "activeDateChange", "todayButtonClick", "pageChange", "focusCalendar", "blurCalendar", "focusedCellChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
7652
7652
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CalendarComponent, decorators: [{
|
|
7653
7653
|
type: Component,
|
|
7654
7654
|
args: [{
|
|
@@ -7969,7 +7969,7 @@ var Arrow;
|
|
|
7969
7969
|
class DateInputMessages extends ComponentMessages {
|
|
7970
7970
|
}
|
|
7971
7971
|
DateInputMessages.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DateInputMessages, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
7972
|
-
DateInputMessages.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: DateInputMessages, selector: "kendo-dateinput-messages-base", inputs: { decrement: "decrement", increment: "increment" }, usesInheritance: true, ngImport: i0 });
|
|
7972
|
+
DateInputMessages.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: DateInputMessages, selector: "kendo-dateinput-messages-base", inputs: { decrement: "decrement", increment: "increment", clearTitle: "clearTitle" }, usesInheritance: true, ngImport: i0 });
|
|
7973
7973
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DateInputMessages, decorators: [{
|
|
7974
7974
|
type: Directive,
|
|
7975
7975
|
args: [{
|
|
@@ -7980,6 +7980,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
7980
7980
|
type: Input
|
|
7981
7981
|
}], increment: [{
|
|
7982
7982
|
type: Input
|
|
7983
|
+
}], clearTitle: [{
|
|
7984
|
+
type: Input
|
|
7983
7985
|
}] } });
|
|
7984
7986
|
|
|
7985
7987
|
/**
|
|
@@ -8065,10 +8067,20 @@ class DateInputComponent {
|
|
|
8065
8067
|
* @hidden
|
|
8066
8068
|
*/
|
|
8067
8069
|
this.caretAltUpIcon = caretAltUpIcon;
|
|
8070
|
+
/**
|
|
8071
|
+
* @hidden
|
|
8072
|
+
*/
|
|
8073
|
+
this.xIcon = xIcon;
|
|
8068
8074
|
/**
|
|
8069
8075
|
* @hidden
|
|
8070
8076
|
*/
|
|
8071
8077
|
this.caretAltDownIcon = caretAltDownIcon;
|
|
8078
|
+
/**
|
|
8079
|
+
* If set to `true`, renders a clear button after the input text or DateInput value has been changed.
|
|
8080
|
+
* Clicking this button resets the value of the component to `null` and triggers the `valueChange` event.
|
|
8081
|
+
* @default false
|
|
8082
|
+
*/
|
|
8083
|
+
this.clearButton = false;
|
|
8072
8084
|
/**
|
|
8073
8085
|
* Sets or gets the `disabled` property of the DateInput and
|
|
8074
8086
|
* determines whether the component is active
|
|
@@ -8241,6 +8253,7 @@ class DateInputComponent {
|
|
|
8241
8253
|
this.formatSections = { date: false, time: false };
|
|
8242
8254
|
this.hasMousedown = false;
|
|
8243
8255
|
this.focusedPriorToMousedown = false;
|
|
8256
|
+
this.showClearButton = false;
|
|
8244
8257
|
/**
|
|
8245
8258
|
* @hidden
|
|
8246
8259
|
*/
|
|
@@ -8681,6 +8694,13 @@ class DateInputComponent {
|
|
|
8681
8694
|
(_b = this.kendoDateObject) === null || _b === void 0 ? void 0 : _b.setValue(this.value);
|
|
8682
8695
|
(_c = this.kendoDate) === null || _c === void 0 ? void 0 : _c.refreshElementValue();
|
|
8683
8696
|
}
|
|
8697
|
+
resetInput() {
|
|
8698
|
+
var _a, _b, _c;
|
|
8699
|
+
(_a = this.kendoDateObject) === null || _a === void 0 ? void 0 : _a.setValue(null);
|
|
8700
|
+
(_b = this.kendoDate) === null || _b === void 0 ? void 0 : _b.refreshElementValue();
|
|
8701
|
+
(_c = this.control) === null || _c === void 0 ? void 0 : _c.setValue(null);
|
|
8702
|
+
this.showClearButton = false;
|
|
8703
|
+
}
|
|
8684
8704
|
/**
|
|
8685
8705
|
* @hidden
|
|
8686
8706
|
*/
|
|
@@ -8696,6 +8716,7 @@ class DateInputComponent {
|
|
|
8696
8716
|
*/
|
|
8697
8717
|
notify() {
|
|
8698
8718
|
this.ngZone.run(() => {
|
|
8719
|
+
this.showClearButton = true;
|
|
8699
8720
|
this.onControlChange(cloneDate(this.value));
|
|
8700
8721
|
this.valueChange.emit(cloneDate(this.value));
|
|
8701
8722
|
});
|
|
@@ -8743,6 +8764,7 @@ class DateInputComponent {
|
|
|
8743
8764
|
* @hidden
|
|
8744
8765
|
*/
|
|
8745
8766
|
handleButtonClick(offset) {
|
|
8767
|
+
this.showClearButton = true;
|
|
8746
8768
|
this.arrowDirection = Arrow.None;
|
|
8747
8769
|
this.kendoDate.focus();
|
|
8748
8770
|
this.kendoDate.modifyDateSegmentValue(offset);
|
|
@@ -8765,6 +8787,10 @@ class DateInputComponent {
|
|
|
8765
8787
|
}
|
|
8766
8788
|
onWidgetInputEnd() {
|
|
8767
8789
|
this.updateIncompleteValidationStatus();
|
|
8790
|
+
if (this.clearButton) {
|
|
8791
|
+
this.showClearButton = true;
|
|
8792
|
+
this.cdr.markForCheck();
|
|
8793
|
+
}
|
|
8768
8794
|
}
|
|
8769
8795
|
onWidgetFocus({ event: FocuseEvent }) {
|
|
8770
8796
|
this.isActive = true;
|
|
@@ -8851,7 +8877,7 @@ class DateInputComponent {
|
|
|
8851
8877
|
}
|
|
8852
8878
|
}
|
|
8853
8879
|
DateInputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DateInputComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1.IntlService }, { token: i0.Renderer2 }, { token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.Injector }, { token: i1$1.LocalizationService }, { token: PickerService, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
8854
|
-
DateInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: DateInputComponent, selector: "kendo-dateinput", inputs: { focusableId: "focusableId", pickerType: "pickerType", disabled: "disabled", readonly: "readonly", title: "title", tabindex: "tabindex", role: "role", ariaReadOnly: "ariaReadOnly", tabIndex: "tabIndex", isRequired: "isRequired", format: "format", formatPlaceholder: "formatPlaceholder", placeholder: "placeholder", steps: "steps", max: "max", min: "min", rangeValidation: "rangeValidation", autoCorrectParts: "autoCorrectParts", autoSwitchParts: "autoSwitchParts", autoSwitchKeys: "autoSwitchKeys", allowCaretMode: "allowCaretMode", autoFill: "autoFill", incompleteDateValidation: "incompleteDateValidation", twoDigitYearMax: "twoDigitYearMax", enableMouseWheel: "enableMouseWheel", value: "value", spinners: "spinners", isPopupOpen: "isPopupOpen", hasPopup: "hasPopup", size: "size", rounded: "rounded", fillMode: "fillMode", inputAttributes: "inputAttributes" }, outputs: { valueChange: "valueChange", valueUpdate: "valueUpdate", onFocus: "focus", onBlur: "blur" }, host: { properties: { "class.k-readonly": "this.readonly", "class.k-input": "this.wrapperClass", "class.k-dateinput": "this.wrapperClass", "class.k-disabled": "this.disabledClass" } }, providers: [
|
|
8880
|
+
DateInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: DateInputComponent, selector: "kendo-dateinput", inputs: { focusableId: "focusableId", pickerType: "pickerType", clearButton: "clearButton", disabled: "disabled", readonly: "readonly", title: "title", tabindex: "tabindex", role: "role", ariaReadOnly: "ariaReadOnly", tabIndex: "tabIndex", isRequired: "isRequired", format: "format", formatPlaceholder: "formatPlaceholder", placeholder: "placeholder", steps: "steps", max: "max", min: "min", rangeValidation: "rangeValidation", autoCorrectParts: "autoCorrectParts", autoSwitchParts: "autoSwitchParts", autoSwitchKeys: "autoSwitchKeys", allowCaretMode: "allowCaretMode", autoFill: "autoFill", incompleteDateValidation: "incompleteDateValidation", twoDigitYearMax: "twoDigitYearMax", enableMouseWheel: "enableMouseWheel", value: "value", spinners: "spinners", isPopupOpen: "isPopupOpen", hasPopup: "hasPopup", size: "size", rounded: "rounded", fillMode: "fillMode", inputAttributes: "inputAttributes" }, outputs: { valueChange: "valueChange", valueUpdate: "valueUpdate", onFocus: "focus", onBlur: "blur" }, host: { properties: { "class.k-readonly": "this.readonly", "class.k-input": "this.wrapperClass", "class.k-dateinput": "this.wrapperClass", "class.k-disabled": "this.disabledClass" } }, providers: [
|
|
8855
8881
|
{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => DateInputComponent), multi: true },
|
|
8856
8882
|
{ provide: NG_VALIDATORS, useExisting: forwardRef(() => DateInputComponent), multi: true },
|
|
8857
8883
|
{ provide: L10N_PREFIX, useValue: 'kendo.dateinput' },
|
|
@@ -8864,6 +8890,9 @@ DateInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", ver
|
|
|
8864
8890
|
|
|
8865
8891
|
i18n-decrement="kendo.dateinput.decrement|The label for the **Decrement** button in the DateInput"
|
|
8866
8892
|
decrement="Decrease value"
|
|
8893
|
+
|
|
8894
|
+
i18n-clearTitle="kendo.dateinput.clearTitle|The title of the clear button"
|
|
8895
|
+
clearTitle="clear"
|
|
8867
8896
|
>
|
|
8868
8897
|
</ng-container>
|
|
8869
8898
|
<input #dateInput
|
|
@@ -8889,6 +8918,21 @@ DateInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", ver
|
|
|
8889
8918
|
}"
|
|
8890
8919
|
[scope]="this"
|
|
8891
8920
|
/>
|
|
8921
|
+
<span
|
|
8922
|
+
*ngIf="clearButton && showClearButton"
|
|
8923
|
+
class="k-clear-value"
|
|
8924
|
+
[attr.title]="localization.get('clearTitle')"
|
|
8925
|
+
role="button"
|
|
8926
|
+
tabindex="-1"
|
|
8927
|
+
(click)="resetInput()"
|
|
8928
|
+
(mousedown)="$event.preventDefault()"
|
|
8929
|
+
>
|
|
8930
|
+
<kendo-icon-wrapper
|
|
8931
|
+
name="x"
|
|
8932
|
+
[svgIcon]="xIcon"
|
|
8933
|
+
>
|
|
8934
|
+
</kendo-icon-wrapper>
|
|
8935
|
+
</span>
|
|
8892
8936
|
<span *ngIf="spinners" class="k-input-spinner k-spin-button" (mousedown)="$event.preventDefault()">
|
|
8893
8937
|
<button
|
|
8894
8938
|
#spinup
|
|
@@ -8927,7 +8971,7 @@ DateInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", ver
|
|
|
8927
8971
|
</kendo-icon-wrapper>
|
|
8928
8972
|
</button>
|
|
8929
8973
|
</span>
|
|
8930
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type:
|
|
8974
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$2.EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }, { kind: "component", type: i6.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "directive", type: DateInputLocalizedMessagesDirective, selector: "[kendoDateInputLocalizedMessages]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
8931
8975
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DateInputComponent, decorators: [{
|
|
8932
8976
|
type: Component,
|
|
8933
8977
|
args: [{
|
|
@@ -8948,6 +8992,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
8948
8992
|
|
|
8949
8993
|
i18n-decrement="kendo.dateinput.decrement|The label for the **Decrement** button in the DateInput"
|
|
8950
8994
|
decrement="Decrease value"
|
|
8995
|
+
|
|
8996
|
+
i18n-clearTitle="kendo.dateinput.clearTitle|The title of the clear button"
|
|
8997
|
+
clearTitle="clear"
|
|
8951
8998
|
>
|
|
8952
8999
|
</ng-container>
|
|
8953
9000
|
<input #dateInput
|
|
@@ -8973,6 +9020,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
8973
9020
|
}"
|
|
8974
9021
|
[scope]="this"
|
|
8975
9022
|
/>
|
|
9023
|
+
<span
|
|
9024
|
+
*ngIf="clearButton && showClearButton"
|
|
9025
|
+
class="k-clear-value"
|
|
9026
|
+
[attr.title]="localization.get('clearTitle')"
|
|
9027
|
+
role="button"
|
|
9028
|
+
tabindex="-1"
|
|
9029
|
+
(click)="resetInput()"
|
|
9030
|
+
(mousedown)="$event.preventDefault()"
|
|
9031
|
+
>
|
|
9032
|
+
<kendo-icon-wrapper
|
|
9033
|
+
name="x"
|
|
9034
|
+
[svgIcon]="xIcon"
|
|
9035
|
+
>
|
|
9036
|
+
</kendo-icon-wrapper>
|
|
9037
|
+
</span>
|
|
8976
9038
|
<span *ngIf="spinners" class="k-input-spinner k-spin-button" (mousedown)="$event.preventDefault()">
|
|
8977
9039
|
<button
|
|
8978
9040
|
#spinup
|
|
@@ -9021,6 +9083,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
9021
9083
|
type: Input
|
|
9022
9084
|
}], pickerType: [{
|
|
9023
9085
|
type: Input
|
|
9086
|
+
}], clearButton: [{
|
|
9087
|
+
type: Input
|
|
9024
9088
|
}], disabled: [{
|
|
9025
9089
|
type: Input
|
|
9026
9090
|
}], readonly: [{
|
|
@@ -9161,6 +9225,39 @@ const disabledDatesValidator = (isDateDisabled) => {
|
|
|
9161
9225
|
};
|
|
9162
9226
|
};
|
|
9163
9227
|
|
|
9228
|
+
/**
|
|
9229
|
+
* Custom component messages override default component messages ([see example]({% slug globalization_dateinputs %}#toc-custom-messages)).
|
|
9230
|
+
*/
|
|
9231
|
+
class DateInputCustomMessagesComponent extends DateInputMessages {
|
|
9232
|
+
constructor(service) {
|
|
9233
|
+
super();
|
|
9234
|
+
this.service = service;
|
|
9235
|
+
}
|
|
9236
|
+
get override() {
|
|
9237
|
+
return true;
|
|
9238
|
+
}
|
|
9239
|
+
}
|
|
9240
|
+
DateInputCustomMessagesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DateInputCustomMessagesComponent, deps: [{ token: i1$1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
9241
|
+
DateInputCustomMessagesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: DateInputCustomMessagesComponent, selector: "kendo-dateinput-messages", providers: [
|
|
9242
|
+
{
|
|
9243
|
+
provide: DateInputMessages,
|
|
9244
|
+
useExisting: forwardRef(() => DateInputCustomMessagesComponent)
|
|
9245
|
+
}
|
|
9246
|
+
], usesInheritance: true, ngImport: i0, template: ``, isInline: true });
|
|
9247
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DateInputCustomMessagesComponent, decorators: [{
|
|
9248
|
+
type: Component,
|
|
9249
|
+
args: [{
|
|
9250
|
+
providers: [
|
|
9251
|
+
{
|
|
9252
|
+
provide: DateInputMessages,
|
|
9253
|
+
useExisting: forwardRef(() => DateInputCustomMessagesComponent)
|
|
9254
|
+
}
|
|
9255
|
+
],
|
|
9256
|
+
selector: 'kendo-dateinput-messages',
|
|
9257
|
+
template: ``
|
|
9258
|
+
}]
|
|
9259
|
+
}], ctorParameters: function () { return [{ type: i1$1.LocalizationService }]; } });
|
|
9260
|
+
|
|
9164
9261
|
/**
|
|
9165
9262
|
* Custom component messages override default component messages ([see example]({% slug globalization_dateinputs %}#toc-custom-messages)).
|
|
9166
9263
|
*/
|
|
@@ -9200,7 +9297,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
9200
9297
|
class DatePickerMessages extends ComponentMessages {
|
|
9201
9298
|
}
|
|
9202
9299
|
DatePickerMessages.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DatePickerMessages, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
9203
|
-
DatePickerMessages.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: DatePickerMessages, selector: "kendo-datepicker-messages-base", inputs: { today: "today", toggle: "toggle", prevButtonTitle: "prevButtonTitle", nextButtonTitle: "nextButtonTitle", parentViewButtonTitle: "parentViewButtonTitle" }, usesInheritance: true, ngImport: i0 });
|
|
9300
|
+
DatePickerMessages.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: DatePickerMessages, selector: "kendo-datepicker-messages-base", inputs: { today: "today", toggle: "toggle", prevButtonTitle: "prevButtonTitle", nextButtonTitle: "nextButtonTitle", parentViewButtonTitle: "parentViewButtonTitle", clearTitle: "clearTitle" }, usesInheritance: true, ngImport: i0 });
|
|
9204
9301
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DatePickerMessages, decorators: [{
|
|
9205
9302
|
type: Directive,
|
|
9206
9303
|
args: [{
|
|
@@ -9217,6 +9314,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
9217
9314
|
type: Input
|
|
9218
9315
|
}], parentViewButtonTitle: [{
|
|
9219
9316
|
type: Input
|
|
9317
|
+
}], clearTitle: [{
|
|
9318
|
+
type: Input
|
|
9220
9319
|
}] } });
|
|
9221
9320
|
|
|
9222
9321
|
/**
|
|
@@ -9272,6 +9371,12 @@ class DatePickerComponent {
|
|
|
9272
9371
|
* @hidden
|
|
9273
9372
|
*/
|
|
9274
9373
|
this.calendarIcon = calendarIcon;
|
|
9374
|
+
/**
|
|
9375
|
+
* If set to `true`, renders a clear button after the input text or DatePicker value has been changed.
|
|
9376
|
+
* Clicking this button resets the value of the component to `null` and triggers the `valueChange` event.
|
|
9377
|
+
* @default false
|
|
9378
|
+
*/
|
|
9379
|
+
this.clearButton = false;
|
|
9275
9380
|
/**
|
|
9276
9381
|
* Toggles the visibility of the Calendar footer.
|
|
9277
9382
|
* @default false
|
|
@@ -9770,9 +9875,6 @@ class DatePickerComponent {
|
|
|
9770
9875
|
this.toggleCalendar(show);
|
|
9771
9876
|
}
|
|
9772
9877
|
}
|
|
9773
|
-
get inputElement() {
|
|
9774
|
-
return this.wrapper.nativeElement.querySelector('input');
|
|
9775
|
-
}
|
|
9776
9878
|
/**
|
|
9777
9879
|
* @hidden
|
|
9778
9880
|
*/
|
|
@@ -9979,6 +10081,7 @@ class DatePickerComponent {
|
|
|
9979
10081
|
*/
|
|
9980
10082
|
handleChange(value) {
|
|
9981
10083
|
this.cdr.markForCheck();
|
|
10084
|
+
this.dateInput.showClearButton = true;
|
|
9982
10085
|
this.value = value;
|
|
9983
10086
|
if (this.show) {
|
|
9984
10087
|
this.focusInput();
|
|
@@ -10277,8 +10380,8 @@ class DatePickerComponent {
|
|
|
10277
10380
|
}
|
|
10278
10381
|
}
|
|
10279
10382
|
}
|
|
10280
|
-
DatePickerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DatePickerComponent, deps: [{ token: i0.NgZone }, { token: i1$1.LocalizationService }, { token: i0.ChangeDetectorRef }, { token: i1$
|
|
10281
|
-
DatePickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: DatePickerComponent, selector: "kendo-datepicker", inputs: { focusableId: "focusableId", cellTemplateRef: ["cellTemplate", "cellTemplateRef"], inputAttributes: "inputAttributes", monthCellTemplateRef: ["monthCellTemplate", "monthCellTemplateRef"], yearCellTemplateRef: ["yearCellTemplate", "yearCellTemplateRef"], decadeCellTemplateRef: ["decadeCellTemplate", "decadeCellTemplateRef"], centuryCellTemplateRef: ["centuryCellTemplate", "centuryCellTemplateRef"], weekNumberTemplateRef: ["weekNumberTemplate", "weekNumberTemplateRef"], headerTitleTemplateRef: ["headerTitleTemplate", "headerTitleTemplateRef"], headerTemplateRef: ["headerTemplate", "headerTemplateRef"], footerTemplateRef: ["footerTemplate", "footerTemplateRef"], footer: "footer", navigationItemTemplateRef: ["navigationItemTemplate", "navigationItemTemplateRef"], weekDaysFormat: "weekDaysFormat", showOtherMonthDays: "showOtherMonthDays", activeView: "activeView", bottomView: "bottomView", topView: "topView", calendarType: "calendarType", animateCalendarNavigation: "animateCalendarNavigation", disabled: "disabled", readonly: "readonly", readOnlyInput: "readOnlyInput", popupSettings: "popupSettings", navigation: "navigation", min: "min", max: "max", incompleteDateValidation: "incompleteDateValidation", autoCorrectParts: "autoCorrectParts", autoSwitchParts: "autoSwitchParts", autoSwitchKeys: "autoSwitchKeys", enableMouseWheel: "enableMouseWheel", allowCaretMode: "allowCaretMode", autoFill: "autoFill", focusedDate: "focusedDate", value: "value", format: "format", twoDigitYearMax: "twoDigitYearMax", formatPlaceholder: "formatPlaceholder", placeholder: "placeholder", tabindex: "tabindex", tabIndex: "tabIndex", disabledDates: "disabledDates", title: "title", subtitle: "subtitle", rangeValidation: "rangeValidation", disabledDatesValidation: "disabledDatesValidation", weekNumber: "weekNumber", size: "size", rounded: "rounded", fillMode: "fillMode", adaptiveMode: "adaptiveMode" }, outputs: { valueChange: "valueChange", onFocus: "focus", onBlur: "blur", open: "open", close: "close" }, host: { properties: { "class.k-readonly": "this.readonly", "class.k-datepicker": "this.wrapperClasses", "class.k-input": "this.wrapperClasses", "class.k-disabled": "this.disabledClass" } }, providers: [
|
|
10383
|
+
DatePickerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DatePickerComponent, deps: [{ token: i0.NgZone }, { token: i1$1.LocalizationService }, { token: i0.ChangeDetectorRef }, { token: i1$3.PopupService }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.Injector }, { token: PickerService }, { token: DisabledDatesService }, { token: TOUCH_ENABLED, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
10384
|
+
DatePickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: DatePickerComponent, selector: "kendo-datepicker", inputs: { focusableId: "focusableId", cellTemplateRef: ["cellTemplate", "cellTemplateRef"], clearButton: "clearButton", inputAttributes: "inputAttributes", monthCellTemplateRef: ["monthCellTemplate", "monthCellTemplateRef"], yearCellTemplateRef: ["yearCellTemplate", "yearCellTemplateRef"], decadeCellTemplateRef: ["decadeCellTemplate", "decadeCellTemplateRef"], centuryCellTemplateRef: ["centuryCellTemplate", "centuryCellTemplateRef"], weekNumberTemplateRef: ["weekNumberTemplate", "weekNumberTemplateRef"], headerTitleTemplateRef: ["headerTitleTemplate", "headerTitleTemplateRef"], headerTemplateRef: ["headerTemplate", "headerTemplateRef"], footerTemplateRef: ["footerTemplate", "footerTemplateRef"], footer: "footer", navigationItemTemplateRef: ["navigationItemTemplate", "navigationItemTemplateRef"], weekDaysFormat: "weekDaysFormat", showOtherMonthDays: "showOtherMonthDays", activeView: "activeView", bottomView: "bottomView", topView: "topView", calendarType: "calendarType", animateCalendarNavigation: "animateCalendarNavigation", disabled: "disabled", readonly: "readonly", readOnlyInput: "readOnlyInput", popupSettings: "popupSettings", navigation: "navigation", min: "min", max: "max", incompleteDateValidation: "incompleteDateValidation", autoCorrectParts: "autoCorrectParts", autoSwitchParts: "autoSwitchParts", autoSwitchKeys: "autoSwitchKeys", enableMouseWheel: "enableMouseWheel", allowCaretMode: "allowCaretMode", autoFill: "autoFill", focusedDate: "focusedDate", value: "value", format: "format", twoDigitYearMax: "twoDigitYearMax", formatPlaceholder: "formatPlaceholder", placeholder: "placeholder", tabindex: "tabindex", tabIndex: "tabIndex", disabledDates: "disabledDates", title: "title", subtitle: "subtitle", rangeValidation: "rangeValidation", disabledDatesValidation: "disabledDatesValidation", weekNumber: "weekNumber", size: "size", rounded: "rounded", fillMode: "fillMode", adaptiveMode: "adaptiveMode" }, outputs: { valueChange: "valueChange", onFocus: "focus", onBlur: "blur", open: "open", close: "close" }, host: { properties: { "class.k-readonly": "this.readonly", "class.k-datepicker": "this.wrapperClasses", "class.k-input": "this.wrapperClasses", "class.k-disabled": "this.disabledClass" } }, providers: [
|
|
10282
10385
|
{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => DatePickerComponent), multi: true },
|
|
10283
10386
|
{ provide: NG_VALIDATORS, useExisting: forwardRef(() => DatePickerComponent), multi: true },
|
|
10284
10387
|
{ provide: KendoInput, useExisting: forwardRef(() => DatePickerComponent) },
|
|
@@ -10305,6 +10408,9 @@ DatePickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", ve
|
|
|
10305
10408
|
|
|
10306
10409
|
i18n-parentViewButtonTitle="kendo.datepicker.parentViewButtonTitle|The title of the parent view button in the calendar header"
|
|
10307
10410
|
parentViewButtonTitle="Navigate to parent view"
|
|
10411
|
+
|
|
10412
|
+
i18n-clearTitle="kendo.datepicker.clearTitle|The title of the clear button"
|
|
10413
|
+
clearTitle="clear"
|
|
10308
10414
|
>
|
|
10309
10415
|
</ng-container>
|
|
10310
10416
|
<kendo-dateinput
|
|
@@ -10313,6 +10419,7 @@ DatePickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", ve
|
|
|
10313
10419
|
pickerType="datepicker"
|
|
10314
10420
|
hasPopup="grid"
|
|
10315
10421
|
[isPopupOpen]="show"
|
|
10422
|
+
[clearButton]="clearButton"
|
|
10316
10423
|
[disabled]="disabled"
|
|
10317
10424
|
[readonly]="readonly || readOnlyInput"
|
|
10318
10425
|
[ariaReadOnly]="readonly"
|
|
@@ -10340,7 +10447,12 @@ DatePickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", ve
|
|
|
10340
10447
|
[value]="value"
|
|
10341
10448
|
(valueChange)="handleInputChange($event)"
|
|
10342
10449
|
(click)="handleDateInputClick()"
|
|
10343
|
-
|
|
10450
|
+
>
|
|
10451
|
+
<kendo-dateinput-messages
|
|
10452
|
+
[clearTitle]="localization.get('clearTitle')"
|
|
10453
|
+
>
|
|
10454
|
+
</kendo-dateinput-messages>
|
|
10455
|
+
</kendo-dateinput>
|
|
10344
10456
|
<button
|
|
10345
10457
|
#toggleButton
|
|
10346
10458
|
type="button"
|
|
@@ -10453,7 +10565,7 @@ DatePickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", ve
|
|
|
10453
10565
|
</kendo-calendar-messages>
|
|
10454
10566
|
</kendo-calendar>
|
|
10455
10567
|
</ng-template>
|
|
10456
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i4.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: 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: 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: "directive", type:
|
|
10568
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i4.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { 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: "component", type: DateInputCustomMessagesComponent, selector: "kendo-dateinput-messages" }, { 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: "directive", type: i1$2.EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }, { kind: "component", type: i6.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "component", type: i12.ActionSheetComponent, selector: "kendo-actionsheet", inputs: ["title", "subtitle", "items", "cssClass", "animation", "expanded", "titleId"], outputs: ["expandedChange", "expand", "collapse", "itemClick", "overlayClick"], exportAs: ["kendoActionSheet"] }, { kind: "directive", type: i12.ActionSheetTemplateDirective, selector: "[kendoActionSheetTemplate]" }, { kind: "component", type: i1$2.ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }, { kind: "component", type: i7.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: DatePickerLocalizedMessagesDirective, selector: "[kendoDatePickerLocalizedMessages]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
10457
10569
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DatePickerComponent, decorators: [{
|
|
10458
10570
|
type: Component,
|
|
10459
10571
|
args: [{
|
|
@@ -10488,6 +10600,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
10488
10600
|
|
|
10489
10601
|
i18n-parentViewButtonTitle="kendo.datepicker.parentViewButtonTitle|The title of the parent view button in the calendar header"
|
|
10490
10602
|
parentViewButtonTitle="Navigate to parent view"
|
|
10603
|
+
|
|
10604
|
+
i18n-clearTitle="kendo.datepicker.clearTitle|The title of the clear button"
|
|
10605
|
+
clearTitle="clear"
|
|
10491
10606
|
>
|
|
10492
10607
|
</ng-container>
|
|
10493
10608
|
<kendo-dateinput
|
|
@@ -10496,6 +10611,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
10496
10611
|
pickerType="datepicker"
|
|
10497
10612
|
hasPopup="grid"
|
|
10498
10613
|
[isPopupOpen]="show"
|
|
10614
|
+
[clearButton]="clearButton"
|
|
10499
10615
|
[disabled]="disabled"
|
|
10500
10616
|
[readonly]="readonly || readOnlyInput"
|
|
10501
10617
|
[ariaReadOnly]="readonly"
|
|
@@ -10523,7 +10639,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
10523
10639
|
[value]="value"
|
|
10524
10640
|
(valueChange)="handleInputChange($event)"
|
|
10525
10641
|
(click)="handleDateInputClick()"
|
|
10526
|
-
|
|
10642
|
+
>
|
|
10643
|
+
<kendo-dateinput-messages
|
|
10644
|
+
[clearTitle]="localization.get('clearTitle')"
|
|
10645
|
+
>
|
|
10646
|
+
</kendo-dateinput-messages>
|
|
10647
|
+
</kendo-dateinput>
|
|
10527
10648
|
<button
|
|
10528
10649
|
#toggleButton
|
|
10529
10650
|
type="button"
|
|
@@ -10639,7 +10760,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
10639
10760
|
`
|
|
10640
10761
|
}]
|
|
10641
10762
|
}], ctorParameters: function () {
|
|
10642
|
-
return [{ type: i0.NgZone }, { type: i1$1.LocalizationService }, { type: i0.ChangeDetectorRef }, { type: i1$
|
|
10763
|
+
return [{ type: i0.NgZone }, { type: i1$1.LocalizationService }, { type: i0.ChangeDetectorRef }, { type: i1$3.PopupService }, { type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.Injector }, { type: PickerService }, { type: DisabledDatesService }, { type: undefined, decorators: [{
|
|
10643
10764
|
type: Optional
|
|
10644
10765
|
}, {
|
|
10645
10766
|
type: Inject,
|
|
@@ -10665,6 +10786,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
10665
10786
|
}], cellTemplateRef: [{
|
|
10666
10787
|
type: Input,
|
|
10667
10788
|
args: ['cellTemplate']
|
|
10789
|
+
}], clearButton: [{
|
|
10790
|
+
type: Input
|
|
10668
10791
|
}], inputAttributes: [{
|
|
10669
10792
|
type: Input
|
|
10670
10793
|
}], monthCellTemplate: [{
|
|
@@ -10863,7 +10986,7 @@ const timeRangeValidator = (min, max) => {
|
|
|
10863
10986
|
class TimePickerMessages extends ComponentMessages {
|
|
10864
10987
|
}
|
|
10865
10988
|
TimePickerMessages.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TimePickerMessages, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
10866
|
-
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 });
|
|
10989
|
+
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 });
|
|
10867
10990
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TimePickerMessages, decorators: [{
|
|
10868
10991
|
type: Directive,
|
|
10869
10992
|
args: [{
|
|
@@ -10894,6 +11017,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
10894
11017
|
type: Input
|
|
10895
11018
|
}], dayperiod: [{
|
|
10896
11019
|
type: Input
|
|
11020
|
+
}], clearTitle: [{
|
|
11021
|
+
type: Input
|
|
10897
11022
|
}] } });
|
|
10898
11023
|
|
|
10899
11024
|
/**
|
|
@@ -11861,7 +11986,7 @@ TimeListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", vers
|
|
|
11861
11986
|
</li>
|
|
11862
11987
|
</ul>
|
|
11863
11988
|
</kendo-virtualization>
|
|
11864
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: VirtualizationComponent, selector: "kendo-virtualization", inputs: ["direction", "itemHeight", "itemWidth", "topOffset", "bottomOffset", "maxScrollDifference", "scrollOffsetSize", "scrollDuration", "skip", "take", "total"], outputs: ["activeIndexChange", "pageChange", "scrollChange"] }, { kind: "directive", type:
|
|
11989
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: VirtualizationComponent, selector: "kendo-virtualization", inputs: ["direction", "itemHeight", "itemWidth", "topOffset", "bottomOffset", "maxScrollDifference", "scrollOffsetSize", "scrollDuration", "skip", "take", "total"], outputs: ["activeIndexChange", "pageChange", "scrollChange"] }, { kind: "directive", type: i1$2.EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }] });
|
|
11865
11990
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TimeListComponent, decorators: [{
|
|
11866
11991
|
type: Component,
|
|
11867
11992
|
args: [{
|
|
@@ -12534,7 +12659,7 @@ TimeSelectorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0",
|
|
|
12534
12659
|
[disabled]="disabled"
|
|
12535
12660
|
>{{localization.get('cancel')}}</button>
|
|
12536
12661
|
</div>
|
|
12537
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type:
|
|
12662
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$2.EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }, { kind: "component", type: TimeListComponent, selector: "kendo-timelist", inputs: ["min", "max", "part", "step", "disabled", "value", "isLast"], outputs: ["valueChange", "tabOutLastPart"] }, { kind: "directive", type: TimeSelectorLocalizedMessagesDirective, selector: "[kendoTimeSelectorLocalizedMessages]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
12538
12663
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TimeSelectorComponent, decorators: [{
|
|
12539
12664
|
type: Component,
|
|
12540
12665
|
args: [{
|
|
@@ -12758,6 +12883,12 @@ class TimePickerComponent {
|
|
|
12758
12883
|
* the input will be rendered in a read-only state regardless of the `readOnlyInput` value.
|
|
12759
12884
|
*/
|
|
12760
12885
|
this.readOnlyInput = false;
|
|
12886
|
+
/**
|
|
12887
|
+
* If set to `true`, renders a clear button after the input text or TimePicker value has been changed.
|
|
12888
|
+
* Clicking this button resets the value of the component to `null` and triggers the `valueChange` event.
|
|
12889
|
+
* @default false
|
|
12890
|
+
*/
|
|
12891
|
+
this.clearButton = false;
|
|
12761
12892
|
/**
|
|
12762
12893
|
* Specifies the time format that is used to display the input value
|
|
12763
12894
|
* ([see example]({% slug formats_timepicker %})).
|
|
@@ -13332,6 +13463,7 @@ class TimePickerComponent {
|
|
|
13332
13463
|
this.focusInput();
|
|
13333
13464
|
this.show = false;
|
|
13334
13465
|
}
|
|
13466
|
+
this.dateInput.showClearButton = true;
|
|
13335
13467
|
this.onControlChange(cloneDate(value));
|
|
13336
13468
|
this.valueChange.emit(cloneDate(value));
|
|
13337
13469
|
});
|
|
@@ -13636,8 +13768,8 @@ class TimePickerComponent {
|
|
|
13636
13768
|
}
|
|
13637
13769
|
}
|
|
13638
13770
|
}
|
|
13639
|
-
TimePickerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TimePickerComponent, deps: [{ token: BusViewService }, { token: i0.NgZone }, { token: i1$1.LocalizationService }, { token: i0.ChangeDetectorRef }, { token: i1$
|
|
13640
|
-
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: [
|
|
13771
|
+
TimePickerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TimePickerComponent, deps: [{ token: BusViewService }, { token: i0.NgZone }, { token: i1$1.LocalizationService }, { token: i0.ChangeDetectorRef }, { token: i1$3.PopupService }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.Injector }, { token: PickerService }, { token: i1.IntlService }, { token: TOUCH_ENABLED, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
13772
|
+
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: [
|
|
13641
13773
|
{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => TimePickerComponent), multi: true },
|
|
13642
13774
|
{ provide: NG_VALIDATORS, useExisting: forwardRef(() => TimePickerComponent), multi: true },
|
|
13643
13775
|
{ provide: KendoInput, useExisting: forwardRef(() => TimePickerComponent) },
|
|
@@ -13685,6 +13817,9 @@ TimePickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", ve
|
|
|
13685
13817
|
|
|
13686
13818
|
i18n-dayperiod="kendo.timepicker.dayperiod|The label for the dayperiod part in the timepicker component"
|
|
13687
13819
|
dayperiod="Dayperiod"
|
|
13820
|
+
|
|
13821
|
+
i18n-clearTitle="kendo.timepicker.clearTitle|The title of the clear button"
|
|
13822
|
+
clearTitle="clear"
|
|
13688
13823
|
>
|
|
13689
13824
|
</ng-container>
|
|
13690
13825
|
<kendo-dateinput
|
|
@@ -13693,6 +13828,7 @@ TimePickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", ve
|
|
|
13693
13828
|
hasPopup="dialog"
|
|
13694
13829
|
[isPopupOpen]="show"
|
|
13695
13830
|
[disabled]="disabled"
|
|
13831
|
+
[clearButton]="clearButton"
|
|
13696
13832
|
[readonly]="readonly || readOnlyInput"
|
|
13697
13833
|
[role]="'combobox'"
|
|
13698
13834
|
[ariaReadOnly]="readonly"
|
|
@@ -13719,7 +13855,12 @@ TimePickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", ve
|
|
|
13719
13855
|
[value]="value"
|
|
13720
13856
|
(valueChange)="handleInputChange($event)"
|
|
13721
13857
|
(click)="handleDateInputClick()"
|
|
13722
|
-
|
|
13858
|
+
>
|
|
13859
|
+
<kendo-dateinput-messages
|
|
13860
|
+
[clearTitle]="localization.get('clearTitle')"
|
|
13861
|
+
>
|
|
13862
|
+
</kendo-dateinput-messages>
|
|
13863
|
+
</kendo-dateinput>
|
|
13723
13864
|
<button
|
|
13724
13865
|
#toggleButton
|
|
13725
13866
|
type="button"
|
|
@@ -13844,7 +13985,7 @@ TimePickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", ve
|
|
|
13844
13985
|
</kendo-timeselector-messages>
|
|
13845
13986
|
</kendo-timeselector>
|
|
13846
13987
|
</ng-template>
|
|
13847
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i4.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: 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: "directive", type:
|
|
13988
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i4.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { 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: "component", type: DateInputCustomMessagesComponent, selector: "kendo-dateinput-messages" }, { kind: "directive", type: i1$2.EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }, { kind: "component", type: i6.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "component", type: i12.ActionSheetComponent, selector: "kendo-actionsheet", inputs: ["title", "subtitle", "items", "cssClass", "animation", "expanded", "titleId"], outputs: ["expandedChange", "expand", "collapse", "itemClick", "overlayClick"], exportAs: ["kendoActionSheet"] }, { kind: "directive", type: i12.ActionSheetTemplateDirective, selector: "[kendoActionSheetTemplate]" }, { kind: "component", type: i1$2.ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }, { kind: "component", type: i7.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: TimePickerLocalizedMessagesDirective, selector: "[kendoTimePickerLocalizedMessages]" }, { kind: "component", type: TimeSelectorCustomMessagesComponent, selector: "kendo-timeselector-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"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
13848
13989
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TimePickerComponent, decorators: [{
|
|
13849
13990
|
type: Component,
|
|
13850
13991
|
args: [{
|
|
@@ -13900,6 +14041,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
13900
14041
|
|
|
13901
14042
|
i18n-dayperiod="kendo.timepicker.dayperiod|The label for the dayperiod part in the timepicker component"
|
|
13902
14043
|
dayperiod="Dayperiod"
|
|
14044
|
+
|
|
14045
|
+
i18n-clearTitle="kendo.timepicker.clearTitle|The title of the clear button"
|
|
14046
|
+
clearTitle="clear"
|
|
13903
14047
|
>
|
|
13904
14048
|
</ng-container>
|
|
13905
14049
|
<kendo-dateinput
|
|
@@ -13908,6 +14052,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
13908
14052
|
hasPopup="dialog"
|
|
13909
14053
|
[isPopupOpen]="show"
|
|
13910
14054
|
[disabled]="disabled"
|
|
14055
|
+
[clearButton]="clearButton"
|
|
13911
14056
|
[readonly]="readonly || readOnlyInput"
|
|
13912
14057
|
[role]="'combobox'"
|
|
13913
14058
|
[ariaReadOnly]="readonly"
|
|
@@ -13934,7 +14079,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
13934
14079
|
[value]="value"
|
|
13935
14080
|
(valueChange)="handleInputChange($event)"
|
|
13936
14081
|
(click)="handleDateInputClick()"
|
|
13937
|
-
|
|
14082
|
+
>
|
|
14083
|
+
<kendo-dateinput-messages
|
|
14084
|
+
[clearTitle]="localization.get('clearTitle')"
|
|
14085
|
+
>
|
|
14086
|
+
</kendo-dateinput-messages>
|
|
14087
|
+
</kendo-dateinput>
|
|
13938
14088
|
<button
|
|
13939
14089
|
#toggleButton
|
|
13940
14090
|
type="button"
|
|
@@ -14062,7 +14212,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
14062
14212
|
`
|
|
14063
14213
|
}]
|
|
14064
14214
|
}], ctorParameters: function () {
|
|
14065
|
-
return [{ type: BusViewService }, { type: i0.NgZone }, { type: i1$1.LocalizationService }, { type: i0.ChangeDetectorRef }, { type: i1$
|
|
14215
|
+
return [{ type: BusViewService }, { type: i0.NgZone }, { type: i1$1.LocalizationService }, { type: i0.ChangeDetectorRef }, { type: i1$3.PopupService }, { type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.Injector }, { type: PickerService }, { type: i1.IntlService }, { type: undefined, decorators: [{
|
|
14066
14216
|
type: Optional
|
|
14067
14217
|
}, {
|
|
14068
14218
|
type: Inject,
|
|
@@ -14091,6 +14241,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
14091
14241
|
args: ['class.k-readonly']
|
|
14092
14242
|
}], readOnlyInput: [{
|
|
14093
14243
|
type: Input
|
|
14244
|
+
}], clearButton: [{
|
|
14245
|
+
type: Input
|
|
14094
14246
|
}], format: [{
|
|
14095
14247
|
type: Input
|
|
14096
14248
|
}], formatPlaceholder: [{
|
|
@@ -14172,7 +14324,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
14172
14324
|
class DateTimePickerMessages extends ComponentMessages {
|
|
14173
14325
|
}
|
|
14174
14326
|
DateTimePickerMessages.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DateTimePickerMessages, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
14175
|
-
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 });
|
|
14327
|
+
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 });
|
|
14176
14328
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DateTimePickerMessages, decorators: [{
|
|
14177
14329
|
type: Directive,
|
|
14178
14330
|
args: [{
|
|
@@ -14219,6 +14371,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
14219
14371
|
type: Input
|
|
14220
14372
|
}], dayperiod: [{
|
|
14221
14373
|
type: Input
|
|
14374
|
+
}], clearTitle: [{
|
|
14375
|
+
type: Input
|
|
14222
14376
|
}] } });
|
|
14223
14377
|
|
|
14224
14378
|
/**
|
|
@@ -14414,6 +14568,12 @@ class DateTimePickerComponent {
|
|
|
14414
14568
|
* @default false
|
|
14415
14569
|
*/
|
|
14416
14570
|
this.allowCaretMode = false;
|
|
14571
|
+
/**
|
|
14572
|
+
* If set to `true`, renders a clear button after the input text or DateTimePicker value has been changed.
|
|
14573
|
+
* Clicking this button resets the value of the component to `null` and triggers the `valueChange` event.
|
|
14574
|
+
* @default false
|
|
14575
|
+
*/
|
|
14576
|
+
this.clearButton = false;
|
|
14417
14577
|
/**
|
|
14418
14578
|
* When enabled, the DateTimePicker will autofill the rest of the date to the current date when the component loses focus.
|
|
14419
14579
|
*
|
|
@@ -15474,6 +15634,7 @@ class DateTimePickerComponent {
|
|
|
15474
15634
|
if (isEqual(this.value, value)) {
|
|
15475
15635
|
return;
|
|
15476
15636
|
}
|
|
15637
|
+
this.dateInput.showClearButton = true;
|
|
15477
15638
|
this.value = cloneDate(value);
|
|
15478
15639
|
this.onControlChange(cloneDate(value));
|
|
15479
15640
|
this.valueChange.emit(cloneDate(value));
|
|
@@ -15542,8 +15703,8 @@ class DateTimePickerComponent {
|
|
|
15542
15703
|
}
|
|
15543
15704
|
}
|
|
15544
15705
|
}
|
|
15545
|
-
DateTimePickerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DateTimePickerComponent, deps: [{ token: i1$
|
|
15546
|
-
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: [
|
|
15706
|
+
DateTimePickerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DateTimePickerComponent, deps: [{ token: i1$3.PopupService }, { token: i1.IntlService }, { token: i0.ChangeDetectorRef }, { token: PickerService }, { token: i0.NgZone }, { token: i0.ElementRef }, { token: TOUCH_ENABLED }, { token: i1$1.LocalizationService }, { token: DisabledDatesService }, { token: i0.Renderer2 }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
|
|
15707
|
+
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: [
|
|
15547
15708
|
PickerService,
|
|
15548
15709
|
LocalizationService,
|
|
15549
15710
|
DisabledDatesService,
|
|
@@ -15614,12 +15775,16 @@ DateTimePickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0"
|
|
|
15614
15775
|
|
|
15615
15776
|
i18n-dayperiod="kendo.datetimepicker.dayperiod|The label for the dayperiod part in the timepicker component"
|
|
15616
15777
|
dayperiod="Dayperiod"
|
|
15778
|
+
|
|
15779
|
+
i18n-clearTitle="kendo.datetimepicker.clearTitle|The title of the clear button"
|
|
15780
|
+
clearTitle="clear"
|
|
15617
15781
|
>
|
|
15618
15782
|
</ng-container>
|
|
15619
15783
|
|
|
15620
15784
|
<kendo-dateinput
|
|
15621
15785
|
[value]="value"
|
|
15622
15786
|
[format]="format"
|
|
15787
|
+
[clearButton]="clearButton"
|
|
15623
15788
|
[twoDigitYearMax]="twoDigitYearMax"
|
|
15624
15789
|
[min]="min"
|
|
15625
15790
|
[max]="max"
|
|
@@ -15655,6 +15820,10 @@ DateTimePickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0"
|
|
|
15655
15820
|
[size]="size"
|
|
15656
15821
|
(click)="handleDateInputClick()"
|
|
15657
15822
|
>
|
|
15823
|
+
<kendo-dateinput-messages
|
|
15824
|
+
[clearTitle]="localization.get('clearTitle')"
|
|
15825
|
+
>
|
|
15826
|
+
</kendo-dateinput-messages>
|
|
15658
15827
|
</kendo-dateinput>
|
|
15659
15828
|
<button
|
|
15660
15829
|
#toggleButton
|
|
@@ -15924,7 +16093,7 @@ DateTimePickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0"
|
|
|
15924
16093
|
</div>
|
|
15925
16094
|
</div>
|
|
15926
16095
|
</ng-template>
|
|
15927
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i4.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: 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: 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: TimeSelectorCustomMessagesComponent, selector: "kendo-timeselector-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: "directive", type:
|
|
16096
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i4.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { 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: "component", type: DateInputCustomMessagesComponent, selector: "kendo-dateinput-messages" }, { 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: TimeSelectorCustomMessagesComponent, selector: "kendo-timeselector-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: "directive", type: i1$2.EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }, { kind: "component", type: i6.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "component", type: i12.ActionSheetComponent, selector: "kendo-actionsheet", inputs: ["title", "subtitle", "items", "cssClass", "animation", "expanded", "titleId"], outputs: ["expandedChange", "expand", "collapse", "itemClick", "overlayClick"], exportAs: ["kendoActionSheet"] }, { kind: "directive", type: i12.ActionSheetTemplateDirective, selector: "[kendoActionSheetTemplate]" }, { kind: "component", type: i1$2.ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }, { kind: "component", type: i7.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: LocalizedMessagesDirective, selector: "[kendoDateTimePickerLocalizedMessages]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
15928
16097
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DateTimePickerComponent, decorators: [{
|
|
15929
16098
|
type: Component,
|
|
15930
16099
|
args: [{
|
|
@@ -16003,12 +16172,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
16003
16172
|
|
|
16004
16173
|
i18n-dayperiod="kendo.datetimepicker.dayperiod|The label for the dayperiod part in the timepicker component"
|
|
16005
16174
|
dayperiod="Dayperiod"
|
|
16175
|
+
|
|
16176
|
+
i18n-clearTitle="kendo.datetimepicker.clearTitle|The title of the clear button"
|
|
16177
|
+
clearTitle="clear"
|
|
16006
16178
|
>
|
|
16007
16179
|
</ng-container>
|
|
16008
16180
|
|
|
16009
16181
|
<kendo-dateinput
|
|
16010
16182
|
[value]="value"
|
|
16011
16183
|
[format]="format"
|
|
16184
|
+
[clearButton]="clearButton"
|
|
16012
16185
|
[twoDigitYearMax]="twoDigitYearMax"
|
|
16013
16186
|
[min]="min"
|
|
16014
16187
|
[max]="max"
|
|
@@ -16044,6 +16217,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
16044
16217
|
[size]="size"
|
|
16045
16218
|
(click)="handleDateInputClick()"
|
|
16046
16219
|
>
|
|
16220
|
+
<kendo-dateinput-messages
|
|
16221
|
+
[clearTitle]="localization.get('clearTitle')"
|
|
16222
|
+
>
|
|
16223
|
+
</kendo-dateinput-messages>
|
|
16047
16224
|
</kendo-dateinput>
|
|
16048
16225
|
<button
|
|
16049
16226
|
#toggleButton
|
|
@@ -16316,7 +16493,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
16316
16493
|
`
|
|
16317
16494
|
}]
|
|
16318
16495
|
}], ctorParameters: function () {
|
|
16319
|
-
return [{ type: i1$
|
|
16496
|
+
return [{ type: i1$3.PopupService }, { type: i1.IntlService }, { type: i0.ChangeDetectorRef }, { type: PickerService }, { type: i0.NgZone }, { type: i0.ElementRef }, { type: undefined, decorators: [{
|
|
16320
16497
|
type: Inject,
|
|
16321
16498
|
args: [TOUCH_ENABLED]
|
|
16322
16499
|
}] }, { type: i1$1.LocalizationService }, { type: DisabledDatesService }, { type: i0.Renderer2 }, { type: i0.Injector }];
|
|
@@ -16399,6 +16576,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
16399
16576
|
type: Input
|
|
16400
16577
|
}], allowCaretMode: [{
|
|
16401
16578
|
type: Input
|
|
16579
|
+
}], clearButton: [{
|
|
16580
|
+
type: Input
|
|
16402
16581
|
}], autoFill: [{
|
|
16403
16582
|
type: Input
|
|
16404
16583
|
}], adaptiveMode: [{
|
|
@@ -17437,7 +17616,7 @@ class DateRangePopupComponent {
|
|
|
17437
17616
|
}
|
|
17438
17617
|
}
|
|
17439
17618
|
}
|
|
17440
|
-
DateRangePopupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DateRangePopupComponent, deps: [{ token: i1$
|
|
17619
|
+
DateRangePopupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DateRangePopupComponent, deps: [{ token: i1$3.PopupService }, { token: DateRangeService }, { token: i0.NgZone }, { token: i0.Renderer2 }, { token: i1$1.LocalizationService }, { token: i0.ChangeDetectorRef }, { token: RTL, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
17441
17620
|
DateRangePopupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: DateRangePopupComponent, selector: "kendo-daterange-popup", inputs: { allowReverse: "allowReverse", animate: "animate", anchor: "anchor", anchorAlign: "anchorAlign", appendTo: "appendTo", collision: "collision", popupAlign: "popupAlign", margin: "margin", adaptiveMode: "adaptiveMode", title: "title", subtitle: "subtitle", size: "size" }, outputs: { open: "open", close: "close", onBlur: "blur", onFocus: "focus", cancel: "cancel" }, providers: [
|
|
17442
17621
|
LocalizationService,
|
|
17443
17622
|
{
|
|
@@ -17544,7 +17723,7 @@ DateRangePopupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0"
|
|
|
17544
17723
|
</div>
|
|
17545
17724
|
</ng-template>
|
|
17546
17725
|
</kendo-actionsheet>
|
|
17547
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: MultiViewCalendarComponent, selector: "kendo-multiviewcalendar", inputs: ["showOtherMonthDays", "showCalendarHeader", "size", "id", "focusedDate", "footer", "min", "max", "rangeValidation", "disabledDatesRangeValidation", "selection", "allowReverse", "value", "disabled", "tabindex", "tabIndex", "weekDaysFormat", "isActive", "disabledDates", "activeView", "bottomView", "topView", "showViewHeader", "animateNavigation", "weekNumber", "activeRangeEnd", "selectionRange", "views", "orientation", "cellTemplate", "monthCellTemplate", "yearCellTemplate", "decadeCellTemplate", "centuryCellTemplate", "weekNumberTemplate", "footerTemplate", "headerTitleTemplate", "headerTemplate"], outputs: ["activeViewChange", "navigate", "cellEnter", "cellLeave", "valueChange", "rangeSelectionChange", "blur", "focus", "focusCalendar", "onClosePopup", "onTabPress", "onShiftTabPress"], exportAs: ["kendo-multiviewcalendar"] }, { kind: "component", type:
|
|
17726
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: MultiViewCalendarComponent, selector: "kendo-multiviewcalendar", inputs: ["showOtherMonthDays", "showCalendarHeader", "size", "id", "focusedDate", "footer", "min", "max", "rangeValidation", "disabledDatesRangeValidation", "selection", "allowReverse", "value", "disabled", "tabindex", "tabIndex", "weekDaysFormat", "isActive", "disabledDates", "activeView", "bottomView", "topView", "showViewHeader", "animateNavigation", "weekNumber", "activeRangeEnd", "selectionRange", "views", "orientation", "cellTemplate", "monthCellTemplate", "yearCellTemplate", "decadeCellTemplate", "centuryCellTemplate", "weekNumberTemplate", "footerTemplate", "headerTitleTemplate", "headerTemplate"], outputs: ["activeViewChange", "navigate", "cellEnter", "cellLeave", "valueChange", "rangeSelectionChange", "blur", "focus", "focusCalendar", "onClosePopup", "onTabPress", "onShiftTabPress"], exportAs: ["kendo-multiviewcalendar"] }, { kind: "component", type: i12.ActionSheetComponent, selector: "kendo-actionsheet", inputs: ["title", "subtitle", "items", "cssClass", "animation", "expanded", "titleId"], outputs: ["expandedChange", "expand", "collapse", "itemClick", "overlayClick"], exportAs: ["kendoActionSheet"] }, { kind: "directive", type: i12.ActionSheetTemplateDirective, selector: "[kendoActionSheetTemplate]" }, { kind: "component", type: i1$2.ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }, { kind: "component", type: i7.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: DateRangePopupLocalizedMessagesDirective, selector: "[kendoDateRangePopupLocalizedMessages]" }] });
|
|
17548
17727
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DateRangePopupComponent, decorators: [{
|
|
17549
17728
|
type: Component,
|
|
17550
17729
|
args: [{
|
|
@@ -17660,7 +17839,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
17660
17839
|
`
|
|
17661
17840
|
}]
|
|
17662
17841
|
}], ctorParameters: function () {
|
|
17663
|
-
return [{ type: i1$
|
|
17842
|
+
return [{ type: i1$3.PopupService }, { type: DateRangeService }, { type: i0.NgZone }, { type: i0.Renderer2 }, { type: i1$1.LocalizationService }, { type: i0.ChangeDetectorRef }, { type: undefined, decorators: [{
|
|
17664
17843
|
type: Optional
|
|
17665
17844
|
}, {
|
|
17666
17845
|
type: Inject,
|
|
@@ -18492,39 +18671,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
18492
18671
|
}]
|
|
18493
18672
|
}] });
|
|
18494
18673
|
|
|
18495
|
-
/**
|
|
18496
|
-
* Custom component messages override default component messages ([see example]({% slug globalization_dateinputs %}#toc-custom-messages)).
|
|
18497
|
-
*/
|
|
18498
|
-
class DateInputCustomMessagesComponent extends DateInputMessages {
|
|
18499
|
-
constructor(service) {
|
|
18500
|
-
super();
|
|
18501
|
-
this.service = service;
|
|
18502
|
-
}
|
|
18503
|
-
get override() {
|
|
18504
|
-
return true;
|
|
18505
|
-
}
|
|
18506
|
-
}
|
|
18507
|
-
DateInputCustomMessagesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DateInputCustomMessagesComponent, deps: [{ token: i1$1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
18508
|
-
DateInputCustomMessagesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: DateInputCustomMessagesComponent, selector: "kendo-dateinput-messages", providers: [
|
|
18509
|
-
{
|
|
18510
|
-
provide: DateInputMessages,
|
|
18511
|
-
useExisting: forwardRef(() => DateInputCustomMessagesComponent)
|
|
18512
|
-
}
|
|
18513
|
-
], usesInheritance: true, ngImport: i0, template: ``, isInline: true });
|
|
18514
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DateInputCustomMessagesComponent, decorators: [{
|
|
18515
|
-
type: Component,
|
|
18516
|
-
args: [{
|
|
18517
|
-
providers: [
|
|
18518
|
-
{
|
|
18519
|
-
provide: DateInputMessages,
|
|
18520
|
-
useExisting: forwardRef(() => DateInputCustomMessagesComponent)
|
|
18521
|
-
}
|
|
18522
|
-
],
|
|
18523
|
-
selector: 'kendo-dateinput-messages',
|
|
18524
|
-
template: ``
|
|
18525
|
-
}]
|
|
18526
|
-
}], ctorParameters: function () { return [{ type: i1$1.LocalizationService }]; } });
|
|
18527
|
-
|
|
18528
18674
|
/**
|
|
18529
18675
|
* Represents the [NgModule](link:site.data.urls.angular['ngmoduleapi'])
|
|
18530
18676
|
* definition for the DateInput component.
|