@progress/kendo-angular-dateinputs 19.0.0-develop.1 → 19.0.0-develop.11
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/datepicker/datepicker.component.d.ts +9 -9
- package/datepicker/localization/messages.d.ts +5 -1
- package/daterange/date-range-popup.component.d.ts +13 -13
- package/daterange/localization/messages.d.ts +5 -1
- package/datetimepicker/datetimepicker.component.d.ts +13 -14
- package/datetimepicker/localization/messages.d.ts +5 -1
- package/esm2022/datepicker/datepicker.component.mjs +54 -57
- package/esm2022/datepicker/localization/messages.mjs +7 -1
- package/esm2022/daterange/date-range-input.mjs +3 -2
- package/esm2022/daterange/date-range-popup.component.mjs +63 -67
- package/esm2022/daterange/date-range.component.mjs +1 -1
- package/esm2022/daterange/localization/messages.mjs +7 -1
- package/esm2022/datetimepicker/datetimepicker.component.mjs +93 -104
- package/esm2022/datetimepicker/localization/messages.mjs +7 -1
- package/esm2022/package-metadata.mjs +2 -2
- package/esm2022/timepicker/localization/messages.mjs +7 -1
- package/esm2022/timepicker/timepicker.component.mjs +53 -59
- package/fesm2022/progress-kendo-angular-dateinputs.mjs +290 -289
- package/package.json +11 -11
- package/timepicker/localization/messages.d.ts +5 -1
- package/timepicker/timepicker.component.d.ts +10 -9
|
@@ -16,7 +16,7 @@ import * as i1 from '@progress/kendo-angular-intl';
|
|
|
16
16
|
import { localeData } from '@progress/kendo-angular-intl';
|
|
17
17
|
import { Subject, Subscription, ReplaySubject, Observable, combineLatest, of, interval, animationFrameScheduler, fromEvent, EMPTY, from, BehaviorSubject, merge } from 'rxjs';
|
|
18
18
|
import { NgIf, NgTemplateOutlet, NgClass, NgFor, NgStyle } from '@angular/common';
|
|
19
|
-
import { chevronRightIcon, chevronLeftIcon, caretAltUpIcon, xIcon, caretAltDownIcon, calendarIcon, clockIcon } from '@progress/kendo-svg-icons';
|
|
19
|
+
import { chevronRightIcon, chevronLeftIcon, caretAltUpIcon, xIcon, caretAltDownIcon, calendarIcon, checkIcon, clockIcon } from '@progress/kendo-svg-icons';
|
|
20
20
|
import { ButtonComponent } from '@progress/kendo-angular-buttons';
|
|
21
21
|
import { map, scan, takeWhile, debounceTime, tap, filter } from 'rxjs/operators';
|
|
22
22
|
import { DateInput } from '@progress/kendo-dateinputs-common';
|
|
@@ -36,8 +36,8 @@ const packageMetadata = {
|
|
|
36
36
|
productName: 'Kendo UI for Angular',
|
|
37
37
|
productCode: 'KENDOUIANGULAR',
|
|
38
38
|
productCodes: ['KENDOUIANGULAR'],
|
|
39
|
-
publishDate:
|
|
40
|
-
version: '19.0.0-develop.
|
|
39
|
+
publishDate: 1746798448,
|
|
40
|
+
version: '19.0.0-develop.11',
|
|
41
41
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
42
42
|
};
|
|
43
43
|
|
|
@@ -9829,8 +9829,12 @@ class DatePickerMessages extends ComponentMessages {
|
|
|
9829
9829
|
* The title of the **Clear** button of the DatePicker.
|
|
9830
9830
|
*/
|
|
9831
9831
|
clearTitle;
|
|
9832
|
+
/**
|
|
9833
|
+
* The title of the Close button of the ActionSheet that is rendered instead of the Popup when using small screen devices in adaptive mode.
|
|
9834
|
+
*/
|
|
9835
|
+
adaptiveCloseButtonTitle;
|
|
9832
9836
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DatePickerMessages, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
9833
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: DatePickerMessages, selector: "kendo-datepicker-messages-base", inputs: { today: "today", toggle: "toggle", prevButtonTitle: "prevButtonTitle", nextButtonTitle: "nextButtonTitle", parentViewButtonTitle: "parentViewButtonTitle", clearTitle: "clearTitle" }, usesInheritance: true, ngImport: i0 });
|
|
9837
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: DatePickerMessages, selector: "kendo-datepicker-messages-base", inputs: { today: "today", toggle: "toggle", prevButtonTitle: "prevButtonTitle", nextButtonTitle: "nextButtonTitle", parentViewButtonTitle: "parentViewButtonTitle", clearTitle: "clearTitle", adaptiveCloseButtonTitle: "adaptiveCloseButtonTitle" }, usesInheritance: true, ngImport: i0 });
|
|
9834
9838
|
}
|
|
9835
9839
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DatePickerMessages, decorators: [{
|
|
9836
9840
|
type: Directive,
|
|
@@ -9850,6 +9854,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
9850
9854
|
type: Input
|
|
9851
9855
|
}], clearTitle: [{
|
|
9852
9856
|
type: Input
|
|
9857
|
+
}], adaptiveCloseButtonTitle: [{
|
|
9858
|
+
type: Input
|
|
9853
9859
|
}] } });
|
|
9854
9860
|
|
|
9855
9861
|
/**
|
|
@@ -10299,18 +10305,12 @@ class DatePickerComponent extends MultiTabStop {
|
|
|
10299
10305
|
* Sets the title of the input element of the DatePicker and the title text rendered
|
|
10300
10306
|
* in the header of the popup(action sheet). Applicable only when [`AdaptiveMode` is set to `auto`](slug:api_dateinputs_adaptivemode).
|
|
10301
10307
|
*/
|
|
10302
|
-
|
|
10308
|
+
adaptiveTitle = "";
|
|
10303
10309
|
/**
|
|
10304
10310
|
* Sets the subtitle text rendered in the header of the popup(action sheet).
|
|
10305
10311
|
* Applicable only when [`AdaptiveMode` is set to `auto`](slug:api_dateinputs_adaptivemode).
|
|
10306
10312
|
*/
|
|
10307
|
-
|
|
10308
|
-
this._subtitle = subtitle;
|
|
10309
|
-
}
|
|
10310
|
-
get subtitle() {
|
|
10311
|
-
return this._subtitle || this.placeholder;
|
|
10312
|
-
}
|
|
10313
|
-
_subtitle;
|
|
10313
|
+
adaptiveSubtitle = "";
|
|
10314
10314
|
/**
|
|
10315
10315
|
* Determines whether the built-in min or max validators are enforced when validating a form.
|
|
10316
10316
|
*
|
|
@@ -10493,7 +10493,11 @@ class DatePickerComponent extends MultiTabStop {
|
|
|
10493
10493
|
/**
|
|
10494
10494
|
* @hidden
|
|
10495
10495
|
*/
|
|
10496
|
-
|
|
10496
|
+
checkIcon = checkIcon;
|
|
10497
|
+
/**
|
|
10498
|
+
* @hidden
|
|
10499
|
+
*/
|
|
10500
|
+
windowSize;
|
|
10497
10501
|
/**
|
|
10498
10502
|
* @hidden
|
|
10499
10503
|
*/
|
|
@@ -10523,7 +10527,6 @@ class DatePickerComponent extends MultiTabStop {
|
|
|
10523
10527
|
_size = DEFAULT_SIZE;
|
|
10524
10528
|
_rounded = DEFAULT_ROUNDED;
|
|
10525
10529
|
_fillMode = DEFAULT_FILL_MODE;
|
|
10526
|
-
windowSize;
|
|
10527
10530
|
constructor(zone, localization, cdr, popupService, wrapper, renderer, injector, pickerService, disabledDatesService, adaptiveService) {
|
|
10528
10531
|
super();
|
|
10529
10532
|
this.zone = zone;
|
|
@@ -10570,11 +10573,6 @@ class DatePickerComponent extends MultiTabStop {
|
|
|
10570
10573
|
ngAfterViewInit() {
|
|
10571
10574
|
this.setComponentClasses();
|
|
10572
10575
|
this.windowSize = this.adaptiveService.size;
|
|
10573
|
-
if (this.actionSheet && isDocumentAvailable()) {
|
|
10574
|
-
// The following syntax is used as it does not violate CSP compliance
|
|
10575
|
-
this.actionSheet.element.nativeElement.style.setProperty('--kendo-actionsheet-height', '60vh');
|
|
10576
|
-
this.actionSheet.element.nativeElement.style.setProperty('--kendo-actionsheet-max-height', 'none');
|
|
10577
|
-
}
|
|
10578
10576
|
}
|
|
10579
10577
|
/**
|
|
10580
10578
|
* @hidden
|
|
@@ -10906,7 +10904,6 @@ class DatePickerComponent extends MultiTabStop {
|
|
|
10906
10904
|
}
|
|
10907
10905
|
if (show && !this.isOpen) {
|
|
10908
10906
|
this.actionSheet.toggle();
|
|
10909
|
-
this.updateActionSheetAdaptiveAppearance();
|
|
10910
10907
|
this.setAriaActiveDescendant();
|
|
10911
10908
|
this.actionSheet.element.nativeElement.setAttribute('id', this.popupUID);
|
|
10912
10909
|
this.renderer.setAttribute(this.dateInput?.inputElement, attributeNames.ariaControls, this.popupUID);
|
|
@@ -10917,29 +10914,11 @@ class DatePickerComponent extends MultiTabStop {
|
|
|
10917
10914
|
if (this.dateInput) {
|
|
10918
10915
|
this.renderer.removeAttribute(this.dateInput.inputElement, attributeNames.ariaActiveDescendant);
|
|
10919
10916
|
this.renderer.removeAttribute(this.dateInput.inputElement, attributeNames.ariaControls);
|
|
10917
|
+
this.dateInput.focus();
|
|
10920
10918
|
}
|
|
10921
10919
|
}
|
|
10922
10920
|
this._show = show;
|
|
10923
10921
|
}
|
|
10924
|
-
updateActionSheetAdaptiveAppearance() {
|
|
10925
|
-
let element;
|
|
10926
|
-
let animationContainer;
|
|
10927
|
-
if (this.actionSheet) {
|
|
10928
|
-
element = this.actionSheet['element'].nativeElement.querySelector('.k-actionsheet');
|
|
10929
|
-
animationContainer = this.actionSheet['element'].nativeElement.querySelector('.k-child-animation-container');
|
|
10930
|
-
if (this.windowSize === 'medium') {
|
|
10931
|
-
this.renderer.removeClass(element, 'k-actionsheet-fullscreen');
|
|
10932
|
-
this.renderer.removeStyle(animationContainer, 'height');
|
|
10933
|
-
}
|
|
10934
|
-
else if (this.windowSize === 'small') {
|
|
10935
|
-
this.renderer.addClass(element, 'k-actionsheet-fullscreen');
|
|
10936
|
-
this.renderer.setStyle(animationContainer, 'height', '100%');
|
|
10937
|
-
}
|
|
10938
|
-
this.renderer.addClass(element, 'k-adaptive-actionsheet');
|
|
10939
|
-
this.renderer.addClass(element, 'k-actionsheet-bottom');
|
|
10940
|
-
this.renderer.setStyle(animationContainer, 'bottom', '0px');
|
|
10941
|
-
}
|
|
10942
|
-
}
|
|
10943
10922
|
setAriaActiveDescendant() {
|
|
10944
10923
|
const focusedCellChangeEvent = this.calendar.type === 'infinite' ?
|
|
10945
10924
|
this.calendar.monthView.focusedCellChange :
|
|
@@ -11061,7 +11040,7 @@ class DatePickerComponent extends MultiTabStop {
|
|
|
11061
11040
|
}
|
|
11062
11041
|
}
|
|
11063
11042
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DatePickerComponent, deps: [{ token: i0.NgZone }, { token: i1$1.LocalizationService }, { token: i0.ChangeDetectorRef }, { token: i1$2.PopupService }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.Injector }, { token: PickerService }, { token: DisabledDatesService }, { token: i6.AdaptiveService }], target: i0.ɵɵFactoryTarget.Component });
|
|
11064
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: DatePickerComponent, isStandalone: true, 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",
|
|
11043
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: DatePickerComponent, isStandalone: true, 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", adaptiveTitle: "adaptiveTitle", adaptiveSubtitle: "adaptiveSubtitle", 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", escape: "escape" }, host: { properties: { "class.k-readonly": "this.readonly", "class.k-datepicker": "this.wrapperClasses", "class.k-input": "this.wrapperClasses", "class.k-disabled": "this.disabledClass" } }, providers: [
|
|
11065
11044
|
{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => DatePickerComponent), multi: true },
|
|
11066
11045
|
{ provide: NG_VALIDATORS, useExisting: forwardRef(() => DatePickerComponent), multi: true },
|
|
11067
11046
|
{ provide: KendoInput, useExisting: forwardRef(() => DatePickerComponent) },
|
|
@@ -11092,6 +11071,9 @@ class DatePickerComponent extends MultiTabStop {
|
|
|
11092
11071
|
|
|
11093
11072
|
i18n-clearTitle="kendo.datepicker.clearTitle|The title of the clear button"
|
|
11094
11073
|
clearTitle="clear"
|
|
11074
|
+
|
|
11075
|
+
i18n-adaptiveCloseButtonTitle="kendo.datepicker.adaptiveCloseButtonTitle|The title of the Close button of the ActionSheet that is rendered instead of the Popup when using small screen devices in adaptive mode"
|
|
11076
|
+
adaptiveCloseButtonTitle="Close"
|
|
11095
11077
|
>
|
|
11096
11078
|
</ng-container>
|
|
11097
11079
|
<kendo-dateinput
|
|
@@ -11106,7 +11088,7 @@ class DatePickerComponent extends MultiTabStop {
|
|
|
11106
11088
|
[ariaReadOnly]="readonly"
|
|
11107
11089
|
[tabindex]="tabindex"
|
|
11108
11090
|
[isRequired]="isControlRequired"
|
|
11109
|
-
[title]="
|
|
11091
|
+
[title]="adaptiveTitle"
|
|
11110
11092
|
[focusableId]="focusableId"
|
|
11111
11093
|
[format]="format"
|
|
11112
11094
|
[twoDigitYearMax]="twoDigitYearMax"
|
|
@@ -11172,21 +11154,30 @@ class DatePickerComponent extends MultiTabStop {
|
|
|
11172
11154
|
[scope]="this"
|
|
11173
11155
|
(collapse)="handleActionSheetCollapse()"
|
|
11174
11156
|
[titleId]="calendar?.headerId"
|
|
11157
|
+
[cssClass]="{
|
|
11158
|
+
'k-adaptive-actionsheet': true,
|
|
11159
|
+
'k-actionsheet-fullscreen': windowSize === 'small',
|
|
11160
|
+
'k-actionsheet-bottom': windowSize === 'medium'
|
|
11161
|
+
}"
|
|
11162
|
+
[cssStyle]="{
|
|
11163
|
+
height: windowSize === 'small' ? '100vh' : '60vh'
|
|
11164
|
+
}"
|
|
11175
11165
|
>
|
|
11176
11166
|
<ng-template kendoActionSheetTemplate>
|
|
11177
11167
|
<div class="k-actionsheet-titlebar">
|
|
11178
|
-
<div class="k-actionsheet-titlebar-group
|
|
11168
|
+
<div class="k-actionsheet-titlebar-group">
|
|
11179
11169
|
<div class="k-actionsheet-title">
|
|
11180
|
-
<div class="k-text-center">{{
|
|
11181
|
-
<div class="k-actionsheet-subtitle k-text-center">{{
|
|
11170
|
+
<div class="k-text-center" *ngIf="adaptiveTitle">{{ adaptiveTitle }}</div>
|
|
11171
|
+
<div class="k-actionsheet-subtitle k-text-center" *ngIf="adaptiveSubtitle">{{ adaptiveSubtitle }}</div>
|
|
11182
11172
|
</div>
|
|
11183
11173
|
<div class="k-actionsheet-actions">
|
|
11184
11174
|
<button
|
|
11185
11175
|
kendoButton
|
|
11186
11176
|
type="button"
|
|
11187
|
-
icon="
|
|
11188
|
-
|
|
11189
|
-
[
|
|
11177
|
+
icon="check"
|
|
11178
|
+
themeColor="primary"
|
|
11179
|
+
[attr.title]="localization.get('adaptiveCloseButtonTitle')"
|
|
11180
|
+
[svgIcon]="checkIcon"
|
|
11190
11181
|
fillMode="flat"
|
|
11191
11182
|
[tabIndex]="-1"
|
|
11192
11183
|
aria-hidden="true"
|
|
@@ -11197,7 +11188,7 @@ class DatePickerComponent extends MultiTabStop {
|
|
|
11197
11188
|
</div>
|
|
11198
11189
|
</div>
|
|
11199
11190
|
</div>
|
|
11200
|
-
<div class="k-actionsheet-content
|
|
11191
|
+
<div class="k-actionsheet-content">
|
|
11201
11192
|
<ng-container *ngTemplateOutlet="calendarTemplate"></ng-container>
|
|
11202
11193
|
</div>
|
|
11203
11194
|
</ng-template>
|
|
@@ -11247,7 +11238,7 @@ class DatePickerComponent extends MultiTabStop {
|
|
|
11247
11238
|
</kendo-calendar-messages>
|
|
11248
11239
|
</kendo-calendar>
|
|
11249
11240
|
</ng-template>
|
|
11250
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: DatePickerLocalizedMessagesDirective, selector: "[kendoDatePickerLocalizedMessages]" }, { 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: EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }, { kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }, { kind: "component", type: ActionSheetComponent, selector: "kendo-actionsheet", inputs: ["title", "subtitle", "items", "cssClass", "animation", "expanded", "titleId"], outputs: ["expandedChange", "expand", "collapse", "itemClick", "overlayClick"], exportAs: ["kendoActionSheet"] }, { kind: "directive", type: ActionSheetTemplateDirective, selector: "[kendoActionSheetTemplate]" }, { kind: "component", type: ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { 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" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
11241
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: DatePickerLocalizedMessagesDirective, selector: "[kendoDatePickerLocalizedMessages]" }, { 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: EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }, { kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }, { kind: "component", type: ActionSheetComponent, selector: "kendo-actionsheet", inputs: ["actions", "actionsLayout", "overlayClickClose", "title", "subtitle", "items", "cssClass", "cssStyle", "animation", "expanded", "titleId", "initialFocus"], outputs: ["expandedChange", "action", "expand", "collapse", "itemClick", "overlayClick"], exportAs: ["kendoActionSheet"] }, { kind: "directive", type: ActionSheetTemplateDirective, selector: "[kendoActionSheetTemplate]" }, { kind: "component", type: ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { 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" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
11251
11242
|
}
|
|
11252
11243
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DatePickerComponent, decorators: [{
|
|
11253
11244
|
type: Component,
|
|
@@ -11287,6 +11278,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
11287
11278
|
|
|
11288
11279
|
i18n-clearTitle="kendo.datepicker.clearTitle|The title of the clear button"
|
|
11289
11280
|
clearTitle="clear"
|
|
11281
|
+
|
|
11282
|
+
i18n-adaptiveCloseButtonTitle="kendo.datepicker.adaptiveCloseButtonTitle|The title of the Close button of the ActionSheet that is rendered instead of the Popup when using small screen devices in adaptive mode"
|
|
11283
|
+
adaptiveCloseButtonTitle="Close"
|
|
11290
11284
|
>
|
|
11291
11285
|
</ng-container>
|
|
11292
11286
|
<kendo-dateinput
|
|
@@ -11301,7 +11295,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
11301
11295
|
[ariaReadOnly]="readonly"
|
|
11302
11296
|
[tabindex]="tabindex"
|
|
11303
11297
|
[isRequired]="isControlRequired"
|
|
11304
|
-
[title]="
|
|
11298
|
+
[title]="adaptiveTitle"
|
|
11305
11299
|
[focusableId]="focusableId"
|
|
11306
11300
|
[format]="format"
|
|
11307
11301
|
[twoDigitYearMax]="twoDigitYearMax"
|
|
@@ -11367,21 +11361,30 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
11367
11361
|
[scope]="this"
|
|
11368
11362
|
(collapse)="handleActionSheetCollapse()"
|
|
11369
11363
|
[titleId]="calendar?.headerId"
|
|
11364
|
+
[cssClass]="{
|
|
11365
|
+
'k-adaptive-actionsheet': true,
|
|
11366
|
+
'k-actionsheet-fullscreen': windowSize === 'small',
|
|
11367
|
+
'k-actionsheet-bottom': windowSize === 'medium'
|
|
11368
|
+
}"
|
|
11369
|
+
[cssStyle]="{
|
|
11370
|
+
height: windowSize === 'small' ? '100vh' : '60vh'
|
|
11371
|
+
}"
|
|
11370
11372
|
>
|
|
11371
11373
|
<ng-template kendoActionSheetTemplate>
|
|
11372
11374
|
<div class="k-actionsheet-titlebar">
|
|
11373
|
-
<div class="k-actionsheet-titlebar-group
|
|
11375
|
+
<div class="k-actionsheet-titlebar-group">
|
|
11374
11376
|
<div class="k-actionsheet-title">
|
|
11375
|
-
<div class="k-text-center">{{
|
|
11376
|
-
<div class="k-actionsheet-subtitle k-text-center">{{
|
|
11377
|
+
<div class="k-text-center" *ngIf="adaptiveTitle">{{ adaptiveTitle }}</div>
|
|
11378
|
+
<div class="k-actionsheet-subtitle k-text-center" *ngIf="adaptiveSubtitle">{{ adaptiveSubtitle }}</div>
|
|
11377
11379
|
</div>
|
|
11378
11380
|
<div class="k-actionsheet-actions">
|
|
11379
11381
|
<button
|
|
11380
11382
|
kendoButton
|
|
11381
11383
|
type="button"
|
|
11382
|
-
icon="
|
|
11383
|
-
|
|
11384
|
-
[
|
|
11384
|
+
icon="check"
|
|
11385
|
+
themeColor="primary"
|
|
11386
|
+
[attr.title]="localization.get('adaptiveCloseButtonTitle')"
|
|
11387
|
+
[svgIcon]="checkIcon"
|
|
11385
11388
|
fillMode="flat"
|
|
11386
11389
|
[tabIndex]="-1"
|
|
11387
11390
|
aria-hidden="true"
|
|
@@ -11392,7 +11395,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
11392
11395
|
</div>
|
|
11393
11396
|
</div>
|
|
11394
11397
|
</div>
|
|
11395
|
-
<div class="k-actionsheet-content
|
|
11398
|
+
<div class="k-actionsheet-content">
|
|
11396
11399
|
<ng-container *ngTemplateOutlet="calendarTemplate"></ng-container>
|
|
11397
11400
|
</div>
|
|
11398
11401
|
</ng-template>
|
|
@@ -11589,9 +11592,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
11589
11592
|
type: Input
|
|
11590
11593
|
}], disabledDates: [{
|
|
11591
11594
|
type: Input
|
|
11592
|
-
}],
|
|
11595
|
+
}], adaptiveTitle: [{
|
|
11593
11596
|
type: Input
|
|
11594
|
-
}],
|
|
11597
|
+
}], adaptiveSubtitle: [{
|
|
11595
11598
|
type: Input
|
|
11596
11599
|
}], rangeValidation: [{
|
|
11597
11600
|
type: Input
|
|
@@ -12811,8 +12814,12 @@ class TimePickerMessages extends ComponentMessages {
|
|
|
12811
12814
|
* The title of the **Clear** button of the TimePicker.
|
|
12812
12815
|
*/
|
|
12813
12816
|
clearTitle;
|
|
12817
|
+
/**
|
|
12818
|
+
* The title of the Close button of the ActionSheet that is rendered instead of the Popup when using small screen devices in adaptive mode.
|
|
12819
|
+
*/
|
|
12820
|
+
adaptiveCloseButtonTitle;
|
|
12814
12821
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TimePickerMessages, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
12815
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", 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 });
|
|
12822
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", 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", adaptiveCloseButtonTitle: "adaptiveCloseButtonTitle" }, usesInheritance: true, ngImport: i0 });
|
|
12816
12823
|
}
|
|
12817
12824
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TimePickerMessages, decorators: [{
|
|
12818
12825
|
type: Directive,
|
|
@@ -12846,6 +12853,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
12846
12853
|
type: Input
|
|
12847
12854
|
}], clearTitle: [{
|
|
12848
12855
|
type: Input
|
|
12856
|
+
}], adaptiveCloseButtonTitle: [{
|
|
12857
|
+
type: Input
|
|
12849
12858
|
}] } });
|
|
12850
12859
|
|
|
12851
12860
|
/**
|
|
@@ -13911,18 +13920,13 @@ class TimePickerComponent extends MultiTabStop {
|
|
|
13911
13920
|
* Sets the title of the input element of the TimePicker and the title text rendered
|
|
13912
13921
|
* in the header of the popup(action sheet). Applicable only when [`AdaptiveMode` is set to `auto`](slug:api_dateinputs_adaptivemode).
|
|
13913
13922
|
*/
|
|
13914
|
-
|
|
13923
|
+
adaptiveTitle = '';
|
|
13915
13924
|
/**
|
|
13916
13925
|
* Sets the subtitle text rendered in the header of the popup(action sheet).
|
|
13917
13926
|
* Applicable only when [`AdaptiveMode` is set to `auto`](slug:api_dateinputs_adaptivemode).
|
|
13927
|
+
* By default, subtitle is not rendered.
|
|
13918
13928
|
*/
|
|
13919
|
-
|
|
13920
|
-
this._subtitle = subtitle;
|
|
13921
|
-
}
|
|
13922
|
-
get subtitle() {
|
|
13923
|
-
return this._subtitle || this.placeholder;
|
|
13924
|
-
}
|
|
13925
|
-
_subtitle;
|
|
13929
|
+
adaptiveSubtitle;
|
|
13926
13930
|
/**
|
|
13927
13931
|
* Determines whether the built-in min or max validators are enforced when a form is being validated.
|
|
13928
13932
|
*
|
|
@@ -14067,7 +14071,7 @@ class TimePickerComponent extends MultiTabStop {
|
|
|
14067
14071
|
/**
|
|
14068
14072
|
* @hidden
|
|
14069
14073
|
*/
|
|
14070
|
-
|
|
14074
|
+
checkIcon = checkIcon;
|
|
14071
14075
|
get isActive() {
|
|
14072
14076
|
return this._active;
|
|
14073
14077
|
}
|
|
@@ -14123,6 +14127,10 @@ class TimePickerComponent extends MultiTabStop {
|
|
|
14123
14127
|
get isControlRequired() {
|
|
14124
14128
|
return isControlRequired(this.control);
|
|
14125
14129
|
}
|
|
14130
|
+
/**
|
|
14131
|
+
* @hidden
|
|
14132
|
+
*/
|
|
14133
|
+
windowSize;
|
|
14126
14134
|
get adaptiveAcceptButton() {
|
|
14127
14135
|
return this.actionSheet.element.nativeElement.querySelector(ACCEPT_BUTTON_SELECTOR$1);
|
|
14128
14136
|
}
|
|
@@ -14153,7 +14161,6 @@ class TimePickerComponent extends MultiTabStop {
|
|
|
14153
14161
|
_size = DEFAULT_SIZE;
|
|
14154
14162
|
_rounded = DEFAULT_ROUNDED;
|
|
14155
14163
|
_fillMode = DEFAULT_FILL_MODE;
|
|
14156
|
-
windowSize;
|
|
14157
14164
|
constructor(bus, zone, localization, cdr, popupService, wrapper, renderer, injector, pickerService, intl, adaptiveService) {
|
|
14158
14165
|
super();
|
|
14159
14166
|
this.bus = bus;
|
|
@@ -14200,11 +14207,6 @@ class TimePickerComponent extends MultiTabStop {
|
|
|
14200
14207
|
ngAfterViewInit() {
|
|
14201
14208
|
this.setComponentClasses();
|
|
14202
14209
|
this.windowSize = this.adaptiveService.size;
|
|
14203
|
-
if (this.actionSheet && isDocumentAvailable()) {
|
|
14204
|
-
// The following syntax is used as it does not violate CSP compliance
|
|
14205
|
-
this.actionSheet.element.nativeElement.style.setProperty('--kendo-actionsheet-height', '60vh');
|
|
14206
|
-
this.actionSheet.element.nativeElement.style.setProperty('--kendo-actionsheet-max-height', 'none');
|
|
14207
|
-
}
|
|
14208
14210
|
}
|
|
14209
14211
|
/**
|
|
14210
14212
|
* @hidden
|
|
@@ -14551,7 +14553,6 @@ class TimePickerComponent extends MultiTabStop {
|
|
|
14551
14553
|
}
|
|
14552
14554
|
if (show && !this.isOpen) {
|
|
14553
14555
|
this.actionSheet.toggle();
|
|
14554
|
-
this.updateActionSheetAdaptiveAppearance();
|
|
14555
14556
|
this.renderer.setAttribute(this.actionSheet.element.nativeElement, 'id', this.popupUID);
|
|
14556
14557
|
this.renderer.setAttribute(this.dateInput?.inputElement, attributeNames.ariaControls, this.popupUID);
|
|
14557
14558
|
}
|
|
@@ -14562,6 +14563,7 @@ class TimePickerComponent extends MultiTabStop {
|
|
|
14562
14563
|
this.renderer.removeAttribute(this.dateInput.inputElement, attributeNames.ariaControls);
|
|
14563
14564
|
}
|
|
14564
14565
|
this.actionSheet.toggle();
|
|
14566
|
+
this.dateInput.focus();
|
|
14565
14567
|
}
|
|
14566
14568
|
this._show = show;
|
|
14567
14569
|
}
|
|
@@ -14596,25 +14598,6 @@ class TimePickerComponent extends MultiTabStop {
|
|
|
14596
14598
|
}
|
|
14597
14599
|
}
|
|
14598
14600
|
}
|
|
14599
|
-
updateActionSheetAdaptiveAppearance() {
|
|
14600
|
-
let element;
|
|
14601
|
-
let animationContainer;
|
|
14602
|
-
if (this.actionSheet) {
|
|
14603
|
-
element = this.actionSheet['element'].nativeElement.querySelector('.k-actionsheet');
|
|
14604
|
-
animationContainer = this.actionSheet['element'].nativeElement.querySelector('.k-child-animation-container');
|
|
14605
|
-
if (this.windowSize === 'medium') {
|
|
14606
|
-
this.renderer.removeClass(element, 'k-actionsheet-fullscreen');
|
|
14607
|
-
this.renderer.removeStyle(animationContainer, 'height');
|
|
14608
|
-
}
|
|
14609
|
-
else if (this.windowSize === 'small') {
|
|
14610
|
-
this.renderer.addClass(element, 'k-actionsheet-fullscreen');
|
|
14611
|
-
this.renderer.setStyle(animationContainer, 'height', '100%');
|
|
14612
|
-
}
|
|
14613
|
-
this.renderer.addClass(element, 'k-adaptive-actionsheet');
|
|
14614
|
-
this.renderer.addClass(element, 'k-actionsheet-bottom');
|
|
14615
|
-
this.renderer.setStyle(animationContainer, 'bottom', '0px');
|
|
14616
|
-
}
|
|
14617
|
-
}
|
|
14618
14601
|
focusInput() {
|
|
14619
14602
|
if (touchEnabled) {
|
|
14620
14603
|
return;
|
|
@@ -14725,7 +14708,7 @@ class TimePickerComponent extends MultiTabStop {
|
|
|
14725
14708
|
}
|
|
14726
14709
|
}
|
|
14727
14710
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TimePickerComponent, deps: [{ token: BusViewService }, { token: i0.NgZone }, { token: i1$1.LocalizationService }, { token: i0.ChangeDetectorRef }, { token: i1$2.PopupService }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.Injector }, { token: PickerService }, { token: i1.IntlService }, { token: i6.AdaptiveService }], target: i0.ɵɵFactoryTarget.Component });
|
|
14728
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TimePickerComponent, isStandalone: true, 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", autoSwitchParts: "autoSwitchParts", autoSwitchKeys: "autoSwitchKeys", enableMouseWheel: "enableMouseWheel", allowCaretMode: "allowCaretMode", cancelButton: "cancelButton", nowButton: "nowButton", steps: "steps", popupSettings: "popupSettings", tabindex: "tabindex", tabIndex: "tabIndex",
|
|
14711
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TimePickerComponent, isStandalone: true, 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", autoSwitchParts: "autoSwitchParts", autoSwitchKeys: "autoSwitchKeys", enableMouseWheel: "enableMouseWheel", allowCaretMode: "allowCaretMode", cancelButton: "cancelButton", nowButton: "nowButton", steps: "steps", popupSettings: "popupSettings", tabindex: "tabindex", tabIndex: "tabIndex", adaptiveTitle: "adaptiveTitle", adaptiveSubtitle: "adaptiveSubtitle", 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", escape: "escape" }, host: { properties: { "class.k-readonly": "this.readonly", "class.k-timepicker": "this.wrapperClasses", "class.k-input": "this.wrapperClasses", "class.k-disabled": "this.disabledClass" } }, providers: [
|
|
14729
14712
|
{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => TimePickerComponent), multi: true },
|
|
14730
14713
|
{ provide: NG_VALIDATORS, useExisting: forwardRef(() => TimePickerComponent), multi: true },
|
|
14731
14714
|
{ provide: KendoInput, useExisting: forwardRef(() => TimePickerComponent) },
|
|
@@ -14777,6 +14760,9 @@ class TimePickerComponent extends MultiTabStop {
|
|
|
14777
14760
|
|
|
14778
14761
|
i18n-clearTitle="kendo.timepicker.clearTitle|The title of the clear button"
|
|
14779
14762
|
clearTitle="clear"
|
|
14763
|
+
|
|
14764
|
+
i18n-adaptiveCloseButtonTitle="kendo.timepicker.adaptiveCloseButtonTitle|The title of the Close button of the ActionSheet that is rendered instead of the Popup when using small screen devices in adaptive mode"
|
|
14765
|
+
adaptiveCloseButtonTitle="Close"
|
|
14780
14766
|
>
|
|
14781
14767
|
</ng-container>
|
|
14782
14768
|
<kendo-dateinput
|
|
@@ -14806,7 +14792,7 @@ class TimePickerComponent extends MultiTabStop {
|
|
|
14806
14792
|
[steps]="steps"
|
|
14807
14793
|
[tabindex]="!show ? tabindex : -1"
|
|
14808
14794
|
[isRequired]="isControlRequired"
|
|
14809
|
-
[title]="
|
|
14795
|
+
[title]="adaptiveTitle"
|
|
14810
14796
|
[inputAttributes]="inputAttributes"
|
|
14811
14797
|
[value]="value"
|
|
14812
14798
|
(valueChange)="handleInputChange($event)"
|
|
@@ -14849,32 +14835,39 @@ class TimePickerComponent extends MultiTabStop {
|
|
|
14849
14835
|
(overlayClick)="show=false"
|
|
14850
14836
|
(collapse)="handleActionSheetCollapse()"
|
|
14851
14837
|
[titleId]="focusableId"
|
|
14838
|
+
[cssClass]="{
|
|
14839
|
+
'k-adaptive-actionsheet': true,
|
|
14840
|
+
'k-actionsheet-fullscreen': windowSize === 'small',
|
|
14841
|
+
'k-actionsheet-bottom': windowSize === 'medium'
|
|
14842
|
+
}"
|
|
14843
|
+
[cssStyle]="{
|
|
14844
|
+
height: windowSize === 'small' ? '100vh' : '60vh'
|
|
14845
|
+
}"
|
|
14852
14846
|
>
|
|
14853
14847
|
<ng-template kendoActionSheetTemplate>
|
|
14854
14848
|
<div class="k-actionsheet-titlebar">
|
|
14855
|
-
<div class="k-actionsheet-titlebar-group
|
|
14849
|
+
<div class="k-actionsheet-titlebar-group">
|
|
14856
14850
|
<div class="k-actionsheet-title">
|
|
14857
|
-
<div class="k-text-center">{{
|
|
14858
|
-
<div class="k-actionsheet-subtitle k-text-center">{{
|
|
14851
|
+
<div class="k-text-center" *ngIf="adaptiveTitle">{{ adaptiveTitle }}</div>
|
|
14852
|
+
<div class="k-actionsheet-subtitle k-text-center" *ngIf="adaptiveSubtitle">{{ adaptiveSubtitle }}</div>
|
|
14859
14853
|
</div>
|
|
14860
14854
|
<div class="k-actionsheet-actions">
|
|
14861
14855
|
<button
|
|
14862
14856
|
kendoButton
|
|
14863
14857
|
type="button"
|
|
14864
|
-
icon="
|
|
14865
|
-
[attr.title]="localization.get('
|
|
14866
|
-
[svgIcon]="
|
|
14858
|
+
icon="check"
|
|
14859
|
+
[attr.title]="localization.get('adaptiveCloseButtonTitle')"
|
|
14860
|
+
[svgIcon]="checkIcon"
|
|
14867
14861
|
fillMode="flat"
|
|
14868
14862
|
size="large"
|
|
14869
14863
|
[tabIndex]="-1"
|
|
14870
14864
|
aria-hidden="true"
|
|
14871
|
-
innerCssClass="k-button-icon"
|
|
14872
14865
|
(click)="show = false">
|
|
14873
14866
|
</button>
|
|
14874
14867
|
</div>
|
|
14875
14868
|
</div>
|
|
14876
14869
|
</div>
|
|
14877
|
-
<div class="k-actionsheet-content
|
|
14870
|
+
<div class="k-actionsheet-content">
|
|
14878
14871
|
<ng-container *ngTemplateOutlet="timeSelectorTemplate"></ng-container>
|
|
14879
14872
|
</div>
|
|
14880
14873
|
<div class="k-actions k-actions-stretched k-actions-horizontal k-actionsheet-footer">
|
|
@@ -14944,7 +14937,7 @@ class TimePickerComponent extends MultiTabStop {
|
|
|
14944
14937
|
</kendo-timeselector-messages>
|
|
14945
14938
|
</kendo-timeselector>
|
|
14946
14939
|
</ng-template>
|
|
14947
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: TimePickerLocalizedMessagesDirective, selector: "[kendoTimePickerLocalizedMessages]" }, { 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: EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }, { kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }, { kind: "component", type: ActionSheetComponent, selector: "kendo-actionsheet", inputs: ["title", "subtitle", "items", "cssClass", "animation", "expanded", "titleId"], outputs: ["expandedChange", "expand", "collapse", "itemClick", "overlayClick"], exportAs: ["kendoActionSheet"] }, { kind: "directive", type: ActionSheetTemplateDirective, selector: "[kendoActionSheetTemplate]" }, { kind: "component", type: ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { kind: "component", type: TimeSelectorComponent, selector: "kendo-timeselector", inputs: ["format", "min", "max", "cancelButton", "setButton", "nowButton", "disabled", "isAdaptiveEnabled", "isDateTimePicker", "steps", "value"], outputs: ["valueChange", "valueReject", "tabOutLastPart", "tabOutFirstPart", "tabOutNow"], exportAs: ["kendo-timeselector"] }, { kind: "component", type: TimeSelectorCustomMessagesComponent, selector: "kendo-timeselector-messages" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
14940
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: TimePickerLocalizedMessagesDirective, selector: "[kendoTimePickerLocalizedMessages]" }, { 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: EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }, { kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }, { kind: "component", type: ActionSheetComponent, selector: "kendo-actionsheet", inputs: ["actions", "actionsLayout", "overlayClickClose", "title", "subtitle", "items", "cssClass", "cssStyle", "animation", "expanded", "titleId", "initialFocus"], outputs: ["expandedChange", "action", "expand", "collapse", "itemClick", "overlayClick"], exportAs: ["kendoActionSheet"] }, { kind: "directive", type: ActionSheetTemplateDirective, selector: "[kendoActionSheetTemplate]" }, { kind: "component", type: ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { kind: "component", type: TimeSelectorComponent, selector: "kendo-timeselector", inputs: ["format", "min", "max", "cancelButton", "setButton", "nowButton", "disabled", "isAdaptiveEnabled", "isDateTimePicker", "steps", "value"], outputs: ["valueChange", "valueReject", "tabOutLastPart", "tabOutFirstPart", "tabOutNow"], exportAs: ["kendo-timeselector"] }, { kind: "component", type: TimeSelectorCustomMessagesComponent, selector: "kendo-timeselector-messages" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
14948
14941
|
}
|
|
14949
14942
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TimePickerComponent, decorators: [{
|
|
14950
14943
|
type: Component,
|
|
@@ -15005,6 +14998,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
15005
14998
|
|
|
15006
14999
|
i18n-clearTitle="kendo.timepicker.clearTitle|The title of the clear button"
|
|
15007
15000
|
clearTitle="clear"
|
|
15001
|
+
|
|
15002
|
+
i18n-adaptiveCloseButtonTitle="kendo.timepicker.adaptiveCloseButtonTitle|The title of the Close button of the ActionSheet that is rendered instead of the Popup when using small screen devices in adaptive mode"
|
|
15003
|
+
adaptiveCloseButtonTitle="Close"
|
|
15008
15004
|
>
|
|
15009
15005
|
</ng-container>
|
|
15010
15006
|
<kendo-dateinput
|
|
@@ -15034,7 +15030,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
15034
15030
|
[steps]="steps"
|
|
15035
15031
|
[tabindex]="!show ? tabindex : -1"
|
|
15036
15032
|
[isRequired]="isControlRequired"
|
|
15037
|
-
[title]="
|
|
15033
|
+
[title]="adaptiveTitle"
|
|
15038
15034
|
[inputAttributes]="inputAttributes"
|
|
15039
15035
|
[value]="value"
|
|
15040
15036
|
(valueChange)="handleInputChange($event)"
|
|
@@ -15077,32 +15073,39 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
15077
15073
|
(overlayClick)="show=false"
|
|
15078
15074
|
(collapse)="handleActionSheetCollapse()"
|
|
15079
15075
|
[titleId]="focusableId"
|
|
15076
|
+
[cssClass]="{
|
|
15077
|
+
'k-adaptive-actionsheet': true,
|
|
15078
|
+
'k-actionsheet-fullscreen': windowSize === 'small',
|
|
15079
|
+
'k-actionsheet-bottom': windowSize === 'medium'
|
|
15080
|
+
}"
|
|
15081
|
+
[cssStyle]="{
|
|
15082
|
+
height: windowSize === 'small' ? '100vh' : '60vh'
|
|
15083
|
+
}"
|
|
15080
15084
|
>
|
|
15081
15085
|
<ng-template kendoActionSheetTemplate>
|
|
15082
15086
|
<div class="k-actionsheet-titlebar">
|
|
15083
|
-
<div class="k-actionsheet-titlebar-group
|
|
15087
|
+
<div class="k-actionsheet-titlebar-group">
|
|
15084
15088
|
<div class="k-actionsheet-title">
|
|
15085
|
-
<div class="k-text-center">{{
|
|
15086
|
-
<div class="k-actionsheet-subtitle k-text-center">{{
|
|
15089
|
+
<div class="k-text-center" *ngIf="adaptiveTitle">{{ adaptiveTitle }}</div>
|
|
15090
|
+
<div class="k-actionsheet-subtitle k-text-center" *ngIf="adaptiveSubtitle">{{ adaptiveSubtitle }}</div>
|
|
15087
15091
|
</div>
|
|
15088
15092
|
<div class="k-actionsheet-actions">
|
|
15089
15093
|
<button
|
|
15090
15094
|
kendoButton
|
|
15091
15095
|
type="button"
|
|
15092
|
-
icon="
|
|
15093
|
-
[attr.title]="localization.get('
|
|
15094
|
-
[svgIcon]="
|
|
15096
|
+
icon="check"
|
|
15097
|
+
[attr.title]="localization.get('adaptiveCloseButtonTitle')"
|
|
15098
|
+
[svgIcon]="checkIcon"
|
|
15095
15099
|
fillMode="flat"
|
|
15096
15100
|
size="large"
|
|
15097
15101
|
[tabIndex]="-1"
|
|
15098
15102
|
aria-hidden="true"
|
|
15099
|
-
innerCssClass="k-button-icon"
|
|
15100
15103
|
(click)="show = false">
|
|
15101
15104
|
</button>
|
|
15102
15105
|
</div>
|
|
15103
15106
|
</div>
|
|
15104
15107
|
</div>
|
|
15105
|
-
<div class="k-actionsheet-content
|
|
15108
|
+
<div class="k-actionsheet-content">
|
|
15106
15109
|
<ng-container *ngTemplateOutlet="timeSelectorTemplate"></ng-container>
|
|
15107
15110
|
</div>
|
|
15108
15111
|
<div class="k-actions k-actions-stretched k-actions-horizontal k-actionsheet-footer">
|
|
@@ -15233,9 +15236,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
15233
15236
|
type: Input
|
|
15234
15237
|
}], tabIndex: [{
|
|
15235
15238
|
type: Input
|
|
15236
|
-
}],
|
|
15239
|
+
}], adaptiveTitle: [{
|
|
15237
15240
|
type: Input
|
|
15238
|
-
}],
|
|
15241
|
+
}], adaptiveSubtitle: [{
|
|
15239
15242
|
type: Input
|
|
15240
15243
|
}], rangeValidation: [{
|
|
15241
15244
|
type: Input
|
|
@@ -15364,8 +15367,12 @@ class DateTimePickerMessages extends ComponentMessages {
|
|
|
15364
15367
|
* The title of the **Clear** button of the DateTimePicker.
|
|
15365
15368
|
*/
|
|
15366
15369
|
clearTitle;
|
|
15370
|
+
/**
|
|
15371
|
+
* The title of the Close button of the ActionSheet that is rendered instead of the Popup when using small screen devices in adaptive mode.
|
|
15372
|
+
*/
|
|
15373
|
+
adaptiveCloseButtonTitle;
|
|
15367
15374
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DateTimePickerMessages, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
15368
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", 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 });
|
|
15375
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", 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", adaptiveCloseButtonTitle: "adaptiveCloseButtonTitle" }, usesInheritance: true, ngImport: i0 });
|
|
15369
15376
|
}
|
|
15370
15377
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DateTimePickerMessages, decorators: [{
|
|
15371
15378
|
type: Directive,
|
|
@@ -15415,6 +15422,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
15415
15422
|
type: Input
|
|
15416
15423
|
}], clearTitle: [{
|
|
15417
15424
|
type: Input
|
|
15425
|
+
}], adaptiveCloseButtonTitle: [{
|
|
15426
|
+
type: Input
|
|
15418
15427
|
}] } });
|
|
15419
15428
|
|
|
15420
15429
|
/**
|
|
@@ -15612,18 +15621,12 @@ class DateTimePickerComponent extends MultiTabStop {
|
|
|
15612
15621
|
* Sets the title of the input element of the DateTimePicker and the title text rendered
|
|
15613
15622
|
* in the header of the popup(action sheet). Applicable only when [`AdaptiveMode` is set to `auto`](slug:api_dateinputs_adaptivemode).
|
|
15614
15623
|
*/
|
|
15615
|
-
|
|
15624
|
+
adaptiveTitle = '';
|
|
15616
15625
|
/**
|
|
15617
15626
|
* Sets the subtitle text rendered in the header of the popup(action sheet).
|
|
15618
15627
|
* Applicable only when [`AdaptiveMode` is set to `auto`](slug:api_dateinputs_adaptivemode).
|
|
15619
15628
|
*/
|
|
15620
|
-
|
|
15621
|
-
this._subtitle = subtitle;
|
|
15622
|
-
}
|
|
15623
|
-
get subtitle() {
|
|
15624
|
-
return this._subtitle || this.placeholder;
|
|
15625
|
-
}
|
|
15626
|
-
_subtitle;
|
|
15629
|
+
adaptiveSubtitle = '';
|
|
15627
15630
|
/**
|
|
15628
15631
|
* Sets or gets the `disabled` property of the DateTimePicker and determines whether the component is active
|
|
15629
15632
|
* ([see example]({% slug disabled_datetimepicker %})).
|
|
@@ -15821,7 +15824,7 @@ class DateTimePickerComponent extends MultiTabStop {
|
|
|
15821
15824
|
* Indicates whether the component is currently open. That is when the popup or actionSheet is open.
|
|
15822
15825
|
*/
|
|
15823
15826
|
get isOpen() {
|
|
15824
|
-
return
|
|
15827
|
+
return this.actionSheet?.expanded || isPresent(this.popupRef);
|
|
15825
15828
|
}
|
|
15826
15829
|
/**
|
|
15827
15830
|
* Indicates whether the component or its popup content is focused.
|
|
@@ -16013,7 +16016,11 @@ class DateTimePickerComponent extends MultiTabStop {
|
|
|
16013
16016
|
/**
|
|
16014
16017
|
* @hidden
|
|
16015
16018
|
*/
|
|
16016
|
-
|
|
16019
|
+
checkIcon = checkIcon;
|
|
16020
|
+
/**
|
|
16021
|
+
* @hidden
|
|
16022
|
+
*/
|
|
16023
|
+
windowSize;
|
|
16017
16024
|
/**
|
|
16018
16025
|
* @hidden
|
|
16019
16026
|
*/
|
|
@@ -16164,7 +16171,6 @@ class DateTimePickerComponent extends MultiTabStop {
|
|
|
16164
16171
|
_size = DEFAULT_SIZE;
|
|
16165
16172
|
_rounded = DEFAULT_ROUNDED;
|
|
16166
16173
|
_fillMode = DEFAULT_FILL_MODE;
|
|
16167
|
-
windowSize;
|
|
16168
16174
|
constructor(popupService, intl, cdr, pickerService, ngZone, wrapper, localization, disabledDatesService, renderer, injector, adaptiveService) {
|
|
16169
16175
|
super();
|
|
16170
16176
|
this.popupService = popupService;
|
|
@@ -16203,11 +16209,6 @@ class DateTimePickerComponent extends MultiTabStop {
|
|
|
16203
16209
|
ngAfterViewInit() {
|
|
16204
16210
|
this.setComponentClasses();
|
|
16205
16211
|
this.windowSize = this.adaptiveService.size;
|
|
16206
|
-
if (this.actionSheet && isDocumentAvailable()) {
|
|
16207
|
-
// The following syntax is used as it does not violate CSP compliance
|
|
16208
|
-
this.actionSheet.element.nativeElement.style.setProperty('--kendo-actionsheet-height', '60vh');
|
|
16209
|
-
this.actionSheet.element.nativeElement.style.setProperty('--kendo-actionsheet-max-height', 'none');
|
|
16210
|
-
}
|
|
16211
16212
|
}
|
|
16212
16213
|
ngOnChanges(changes) {
|
|
16213
16214
|
if (isPresent(changes['min']) || isPresent(changes['max'])) {
|
|
@@ -16602,14 +16603,6 @@ class DateTimePickerComponent extends MultiTabStop {
|
|
|
16602
16603
|
// Reset tabs after actionsheet is collapsed, otherwise the tab change can be seen during the animation
|
|
16603
16604
|
this.resetActiveTab();
|
|
16604
16605
|
}
|
|
16605
|
-
/**
|
|
16606
|
-
* @hidden
|
|
16607
|
-
*/
|
|
16608
|
-
popupButtonsClasses(type) {
|
|
16609
|
-
const buttonType = type ? type : 'base';
|
|
16610
|
-
const sizeClass = `${this.isAdaptive ? getSizeClass('button', 'large') : this.size ? getSizeClass('button', this.size) : ''}`;
|
|
16611
|
-
return `${sizeClass} ${this.rounded ? getRoundedClass(this.rounded) : ''} ${this.fillMode ? 'k-button-' + this.fillMode + ' ' + 'k-button-' + this.fillMode + '-' + buttonType : ''}`;
|
|
16612
|
-
}
|
|
16613
16606
|
/**
|
|
16614
16607
|
* @hidden
|
|
16615
16608
|
*
|
|
@@ -16618,50 +16611,35 @@ class DateTimePickerComponent extends MultiTabStop {
|
|
|
16618
16611
|
preventMouseDown(event) {
|
|
16619
16612
|
event.preventDefault();
|
|
16620
16613
|
}
|
|
16621
|
-
|
|
16622
|
-
|
|
16623
|
-
|
|
16624
|
-
this.openPopup();
|
|
16625
|
-
return;
|
|
16626
|
-
}
|
|
16627
|
-
this.closePopup();
|
|
16628
|
-
this.resetActiveTab();
|
|
16629
|
-
}
|
|
16614
|
+
/**
|
|
16615
|
+
* @hidden
|
|
16616
|
+
*/
|
|
16630
16617
|
toggleActionSheet(show) {
|
|
16631
16618
|
if (isPresent(show) && show && !this.isOpen) {
|
|
16632
16619
|
this.actionSheet.toggle();
|
|
16633
|
-
this.updateActionSheetAdaptiveAppearance();
|
|
16634
16620
|
this.renderer.setAttribute(this.actionSheet.element.nativeElement, 'id', this.popupUID);
|
|
16635
16621
|
this.renderer.setAttribute(this.dateInput?.inputElement, attributeNames.ariaControls, this.popupUID);
|
|
16636
16622
|
this.setAriaActiveDescendant();
|
|
16637
16623
|
}
|
|
16638
16624
|
else if (isPresent(show) && !show && this.isOpen) {
|
|
16625
|
+
this.handleBlur();
|
|
16639
16626
|
this.actionSheet.toggle();
|
|
16640
16627
|
this.ariaActiveDescendantSubscription.unsubscribe();
|
|
16641
16628
|
if (this.dateInput) {
|
|
16642
16629
|
this.renderer.removeAttribute(this.dateInput.inputElement, attributeNames.ariaActiveDescendant);
|
|
16643
16630
|
this.renderer.removeAttribute(this.dateInput.inputElement, attributeNames.ariaControls);
|
|
16631
|
+
this.dateInput.focus();
|
|
16644
16632
|
}
|
|
16645
16633
|
}
|
|
16646
16634
|
}
|
|
16647
|
-
|
|
16648
|
-
|
|
16649
|
-
|
|
16650
|
-
|
|
16651
|
-
|
|
16652
|
-
animationContainer = this.actionSheet['element'].nativeElement.querySelector('.k-child-animation-container');
|
|
16653
|
-
if (this.windowSize === 'medium') {
|
|
16654
|
-
this.renderer.removeClass(element, 'k-actionsheet-fullscreen');
|
|
16655
|
-
this.renderer.removeStyle(animationContainer, 'height');
|
|
16656
|
-
}
|
|
16657
|
-
else if (this.windowSize === 'small') {
|
|
16658
|
-
this.renderer.addClass(element, 'k-actionsheet-fullscreen');
|
|
16659
|
-
this.renderer.setStyle(animationContainer, 'height', '100%');
|
|
16660
|
-
}
|
|
16661
|
-
this.renderer.addClass(element, 'k-adaptive-actionsheet');
|
|
16662
|
-
this.renderer.addClass(element, 'k-actionsheet-bottom');
|
|
16663
|
-
this.renderer.setStyle(animationContainer, 'bottom', '0px');
|
|
16635
|
+
_togglePopup(show) {
|
|
16636
|
+
const shouldOpen = isPresent(show) ? show : !this.isOpen;
|
|
16637
|
+
if (shouldOpen) {
|
|
16638
|
+
this.openPopup();
|
|
16639
|
+
return;
|
|
16664
16640
|
}
|
|
16641
|
+
this.closePopup();
|
|
16642
|
+
this.resetActiveTab();
|
|
16665
16643
|
}
|
|
16666
16644
|
/**
|
|
16667
16645
|
* Changes the tab and the calendar or clock icon to the designated default.
|
|
@@ -16892,7 +16870,7 @@ class DateTimePickerComponent extends MultiTabStop {
|
|
|
16892
16870
|
}
|
|
16893
16871
|
}
|
|
16894
16872
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DateTimePickerComponent, deps: [{ token: i1$2.PopupService }, { token: i1.IntlService }, { token: i0.ChangeDetectorRef }, { token: PickerService }, { token: i0.NgZone }, { token: i0.ElementRef }, { token: i1$1.LocalizationService }, { token: DisabledDatesService }, { token: i0.Renderer2 }, { token: i0.Injector }, { token: i6.AdaptiveService }], target: i0.ɵɵFactoryTarget.Component });
|
|
16895
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: DateTimePickerComponent, isStandalone: true, selector: "kendo-datetimepicker", inputs: { focusableId: "focusableId", weekDaysFormat: "weekDaysFormat", showOtherMonthDays: "showOtherMonthDays", value: "value", format: "format", twoDigitYearMax: "twoDigitYearMax", tabindex: "tabindex", disabledDates: "disabledDates", popupSettings: "popupSettings",
|
|
16873
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: DateTimePickerComponent, isStandalone: true, selector: "kendo-datetimepicker", inputs: { focusableId: "focusableId", weekDaysFormat: "weekDaysFormat", showOtherMonthDays: "showOtherMonthDays", value: "value", format: "format", twoDigitYearMax: "twoDigitYearMax", tabindex: "tabindex", disabledDates: "disabledDates", popupSettings: "popupSettings", adaptiveTitle: "adaptiveTitle", adaptiveSubtitle: "adaptiveSubtitle", disabled: "disabled", readonly: "readonly", readOnlyInput: "readOnlyInput", cancelButton: "cancelButton", formatPlaceholder: "formatPlaceholder", placeholder: "placeholder", steps: "steps", focusedDate: "focusedDate", calendarType: "calendarType", animateCalendarNavigation: "animateCalendarNavigation", weekNumber: "weekNumber", min: "min", max: "max", rangeValidation: "rangeValidation", disabledDatesValidation: "disabledDatesValidation", incompleteDateValidation: "incompleteDateValidation", autoCorrectParts: "autoCorrectParts", autoSwitchParts: "autoSwitchParts", autoSwitchKeys: "autoSwitchKeys", enableMouseWheel: "enableMouseWheel", allowCaretMode: "allowCaretMode", clearButton: "clearButton", autoFill: "autoFill", adaptiveMode: "adaptiveMode", inputAttributes: "inputAttributes", defaultTab: "defaultTab", size: "size", rounded: "rounded", fillMode: "fillMode", headerTemplateRef: ["headerTemplate", "headerTemplateRef"], footerTemplateRef: ["footerTemplate", "footerTemplateRef"], footer: "footer" }, outputs: { valueChange: "valueChange", open: "open", close: "close", onFocus: "focus", onBlur: "blur", escape: "escape" }, host: { properties: { "class.k-datetimepicker": "this.hostClasses", "class.k-input": "this.hostClasses", "class.k-disabled": "this.disabledClass", "class.k-readonly": "this.readonly" } }, providers: [
|
|
16896
16874
|
PickerService,
|
|
16897
16875
|
LocalizationService,
|
|
16898
16876
|
DisabledDatesService,
|
|
@@ -16967,6 +16945,9 @@ class DateTimePickerComponent extends MultiTabStop {
|
|
|
16967
16945
|
|
|
16968
16946
|
i18n-clearTitle="kendo.datetimepicker.clearTitle|The title of the clear button"
|
|
16969
16947
|
clearTitle="clear"
|
|
16948
|
+
|
|
16949
|
+
i18n-adaptiveCloseButtonTitle="kendo.datetimepicker.adaptiveCloseButtonTitle|The title of the Close button of the ActionSheet that is rendered instead of the Popup when using small screen devices in adaptive mode"
|
|
16950
|
+
adaptiveCloseButtonTitle="Close"
|
|
16970
16951
|
>
|
|
16971
16952
|
</ng-container>
|
|
16972
16953
|
|
|
@@ -16994,7 +16975,7 @@ class DateTimePickerComponent extends MultiTabStop {
|
|
|
16994
16975
|
[steps]="steps"
|
|
16995
16976
|
[tabindex]="tabindex"
|
|
16996
16977
|
[isRequired]="isControlRequired"
|
|
16997
|
-
[title]="
|
|
16978
|
+
[title]="adaptiveTitle"
|
|
16998
16979
|
pickerType="datetimepicker"
|
|
16999
16980
|
hasPopup="dialog"
|
|
17000
16981
|
[inputAttributes]="inputAttributes"
|
|
@@ -17054,35 +17035,44 @@ class DateTimePickerComponent extends MultiTabStop {
|
|
|
17054
17035
|
|
|
17055
17036
|
<kendo-actionsheet
|
|
17056
17037
|
#actionSheet
|
|
17057
|
-
(overlayClick)="
|
|
17038
|
+
(overlayClick)="toggleActionSheet(false)"
|
|
17058
17039
|
(collapse)="handleActionSheetCollapse()"
|
|
17059
17040
|
[titleId]="calendar?.headerId"
|
|
17041
|
+
[cssClass]="{
|
|
17042
|
+
'k-adaptive-actionsheet': true,
|
|
17043
|
+
'k-actionsheet-fullscreen': windowSize === 'small',
|
|
17044
|
+
'k-actionsheet-bottom': windowSize === 'medium'
|
|
17045
|
+
}"
|
|
17046
|
+
[cssStyle]="{
|
|
17047
|
+
height: windowSize === 'small' ? '100vh' : '60vh'
|
|
17048
|
+
}"
|
|
17060
17049
|
>
|
|
17061
17050
|
<ng-template kendoActionSheetTemplate>
|
|
17062
17051
|
<div class="k-actionsheet-titlebar">
|
|
17063
|
-
<div class="k-actionsheet-titlebar-group
|
|
17052
|
+
<div class="k-actionsheet-titlebar-group">
|
|
17064
17053
|
<div class="k-actionsheet-title">
|
|
17065
|
-
<div class="k-text-center">{{
|
|
17066
|
-
<div class="k-actionsheet-subtitle k-text-center">{{
|
|
17054
|
+
<div class="k-text-center" *ngIf="adaptiveTitle">{{ adaptiveTitle }}</div>
|
|
17055
|
+
<div class="k-actionsheet-subtitle k-text-center" *ngIf="adaptiveSubtitle">{{ adaptiveSubtitle }}</div>
|
|
17067
17056
|
</div>
|
|
17068
17057
|
<div class="k-actionsheet-actions">
|
|
17069
17058
|
<button
|
|
17070
17059
|
kendoButton
|
|
17071
17060
|
type="button"
|
|
17072
|
-
icon="
|
|
17073
|
-
[attr.title]="localization.get('
|
|
17074
|
-
[svgIcon]="
|
|
17061
|
+
icon="check"
|
|
17062
|
+
[attr.title]="localization.get('adaptiveCloseButtonTitle')"
|
|
17063
|
+
[svgIcon]="checkIcon"
|
|
17075
17064
|
fillMode="flat"
|
|
17065
|
+
themeColor="primary"
|
|
17076
17066
|
[tabIndex]="-1"
|
|
17077
17067
|
aria-hidden="true"
|
|
17078
17068
|
size="large"
|
|
17079
17069
|
innerCssClass="k-button-icon"
|
|
17080
|
-
(click)="
|
|
17070
|
+
(click)="toggleActionSheet(false)">
|
|
17081
17071
|
</button>
|
|
17082
17072
|
</div>
|
|
17083
17073
|
</div>
|
|
17084
17074
|
</div>
|
|
17085
|
-
<div class="k-actionsheet-content
|
|
17075
|
+
<div class="k-actionsheet-content">
|
|
17086
17076
|
<ng-container *ngTemplateOutlet="dateTimeTemplate"></ng-container>
|
|
17087
17077
|
</div>
|
|
17088
17078
|
<div class="k-actions k-actions-stretched k-actions-horizontal k-actionsheet-footer">
|
|
@@ -17135,10 +17125,10 @@ class DateTimePickerComponent extends MultiTabStop {
|
|
|
17135
17125
|
[scope]="this"
|
|
17136
17126
|
>
|
|
17137
17127
|
<div class="k-button-group k-button-group-solid k-button-group-stretched" role="group">
|
|
17138
|
-
<button
|
|
17128
|
+
<button kendoButton
|
|
17139
17129
|
type="button"
|
|
17140
|
-
class="k-
|
|
17141
|
-
[
|
|
17130
|
+
class="k-group-start"
|
|
17131
|
+
[size]="isAdaptive ? 'large' : size"
|
|
17142
17132
|
[class.k-selected]="activeTab === 'date'"
|
|
17143
17133
|
[attr.aria-pressed]="activeTab === 'date' ? 'true' : 'false'"
|
|
17144
17134
|
[attr.title]="localization.get('dateTabLabel')"
|
|
@@ -17151,10 +17141,10 @@ class DateTimePickerComponent extends MultiTabStop {
|
|
|
17151
17141
|
>
|
|
17152
17142
|
{{localization.get('dateTab')}}
|
|
17153
17143
|
</button>
|
|
17154
|
-
<button
|
|
17144
|
+
<button kendoButton
|
|
17155
17145
|
type="button"
|
|
17156
|
-
class="k-
|
|
17157
|
-
[
|
|
17146
|
+
class="k-group-end"
|
|
17147
|
+
[size]="isAdaptive ? 'large' : size"
|
|
17158
17148
|
[class.k-selected]="activeTab === 'time'"
|
|
17159
17149
|
[attr.aria-pressed]="activeTab === 'time' ? 'true' : 'false'"
|
|
17160
17150
|
[attr.title]="localization.get('timeTabLabel')"
|
|
@@ -17164,7 +17154,6 @@ class DateTimePickerComponent extends MultiTabStop {
|
|
|
17164
17154
|
'keydown.tab': handleTab
|
|
17165
17155
|
}"
|
|
17166
17156
|
[scope]="this"
|
|
17167
|
-
|
|
17168
17157
|
>
|
|
17169
17158
|
{{localization.get('timeTab')}}
|
|
17170
17159
|
</button>
|
|
@@ -17258,10 +17247,10 @@ class DateTimePickerComponent extends MultiTabStop {
|
|
|
17258
17247
|
}"
|
|
17259
17248
|
[scope]="this"
|
|
17260
17249
|
>
|
|
17261
|
-
<button
|
|
17250
|
+
<button kendoButton
|
|
17262
17251
|
type="button"
|
|
17263
|
-
class="k-
|
|
17264
|
-
|
|
17252
|
+
class="k-time-accept"
|
|
17253
|
+
themeColor="primary"
|
|
17265
17254
|
[attr.title]="localization.get('acceptLabel')"
|
|
17266
17255
|
[attr.aria-label]="localization.get('acceptLabel')"
|
|
17267
17256
|
[disabled]="!calendarValue"
|
|
@@ -17275,11 +17264,10 @@ class DateTimePickerComponent extends MultiTabStop {
|
|
|
17275
17264
|
{{localization.get('accept')}}
|
|
17276
17265
|
</button>
|
|
17277
17266
|
|
|
17278
|
-
<button
|
|
17267
|
+
<button kendoButton
|
|
17279
17268
|
*ngIf="cancelButton"
|
|
17280
17269
|
type="button"
|
|
17281
|
-
class="k-
|
|
17282
|
-
[ngClass]="popupButtonsClasses()"
|
|
17270
|
+
class="k-time-cancel"
|
|
17283
17271
|
[attr.title]="localization.get('cancelLabel')"
|
|
17284
17272
|
[attr.aria-label]="localization.get('cancelLabel')"
|
|
17285
17273
|
[kendoEventsOutsideAngular]="{
|
|
@@ -17294,7 +17282,7 @@ class DateTimePickerComponent extends MultiTabStop {
|
|
|
17294
17282
|
</div>
|
|
17295
17283
|
</div>
|
|
17296
17284
|
</ng-template>
|
|
17297
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: LocalizedMessagesDirective, selector: "[kendoDateTimePickerLocalizedMessages]" }, { kind: "component", type: DateInputComponent, selector: "kendo-dateinput", inputs: ["focusableId", "pickerType", "clearButton", "disabled", "readonly", "title", "tabindex", "role", "ariaReadOnly", "tabIndex", "isRequired", "format", "formatPlaceholder", "placeholder", "steps", "max", "min", "rangeValidation", "autoCorrectParts", "autoSwitchParts", "autoSwitchKeys", "allowCaretMode", "autoFill", "incompleteDateValidation", "twoDigitYearMax", "enableMouseWheel", "value", "spinners", "isPopupOpen", "hasPopup", "size", "rounded", "fillMode", "inputAttributes"], outputs: ["valueChange", "valueUpdate", "focus", "blur"], exportAs: ["kendo-dateinput"] }, { kind: "directive", type: EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }, { kind: "component", type: DateInputCustomMessagesComponent, selector: "kendo-dateinput-messages" }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }, { kind: "component", type: ActionSheetComponent, selector: "kendo-actionsheet", inputs: ["title", "subtitle", "items", "cssClass", "animation", "expanded", "titleId"], outputs: ["expandedChange", "expand", "collapse", "itemClick", "overlayClick"], exportAs: ["kendoActionSheet"] }, { kind: "directive", type: ActionSheetTemplateDirective, selector: "[kendoActionSheetTemplate]" }, { kind: "component", type: ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: CalendarComponent, selector: "kendo-calendar", inputs: ["showOtherMonthDays", "id", "focusedDate", "min", "max", "rangeValidation", "weekDaysFormat", "footer", "selection", "allowReverse", "value", "disabled", "tabindex", "tabIndex", "disabledDates", "navigation", "activeView", "bottomView", "topView", "type", "animateNavigation", "weekNumber", "cellTemplate", "monthCellTemplate", "yearCellTemplate", "decadeCellTemplate", "centuryCellTemplate", "weekNumberTemplate", "headerTitleTemplate", "headerTemplate", "footerTemplate", "navigationItemTemplate", "size", "activeRangeEnd"], outputs: ["activeViewChange", "navigate", "activeViewDateChange", "blur", "focus", "valueChange"], exportAs: ["kendo-calendar"] }, { kind: "component", type: CalendarCustomMessagesComponent, selector: "kendo-calendar-messages" }, { kind: "component", type: TimeSelectorComponent, selector: "kendo-timeselector", inputs: ["format", "min", "max", "cancelButton", "setButton", "nowButton", "disabled", "isAdaptiveEnabled", "isDateTimePicker", "steps", "value"], outputs: ["valueChange", "valueReject", "tabOutLastPart", "tabOutFirstPart", "tabOutNow"], exportAs: ["kendo-timeselector"] }, { kind: "component", type: TimeSelectorCustomMessagesComponent, selector: "kendo-timeselector-messages" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
17285
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: LocalizedMessagesDirective, selector: "[kendoDateTimePickerLocalizedMessages]" }, { kind: "component", type: DateInputComponent, selector: "kendo-dateinput", inputs: ["focusableId", "pickerType", "clearButton", "disabled", "readonly", "title", "tabindex", "role", "ariaReadOnly", "tabIndex", "isRequired", "format", "formatPlaceholder", "placeholder", "steps", "max", "min", "rangeValidation", "autoCorrectParts", "autoSwitchParts", "autoSwitchKeys", "allowCaretMode", "autoFill", "incompleteDateValidation", "twoDigitYearMax", "enableMouseWheel", "value", "spinners", "isPopupOpen", "hasPopup", "size", "rounded", "fillMode", "inputAttributes"], outputs: ["valueChange", "valueUpdate", "focus", "blur"], exportAs: ["kendo-dateinput"] }, { kind: "directive", type: EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }, { kind: "component", type: DateInputCustomMessagesComponent, selector: "kendo-dateinput-messages" }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }, { kind: "component", type: ActionSheetComponent, selector: "kendo-actionsheet", inputs: ["actions", "actionsLayout", "overlayClickClose", "title", "subtitle", "items", "cssClass", "cssStyle", "animation", "expanded", "titleId", "initialFocus"], outputs: ["expandedChange", "action", "expand", "collapse", "itemClick", "overlayClick"], exportAs: ["kendoActionSheet"] }, { kind: "directive", type: ActionSheetTemplateDirective, selector: "[kendoActionSheetTemplate]" }, { kind: "component", type: ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: CalendarComponent, selector: "kendo-calendar", inputs: ["showOtherMonthDays", "id", "focusedDate", "min", "max", "rangeValidation", "weekDaysFormat", "footer", "selection", "allowReverse", "value", "disabled", "tabindex", "tabIndex", "disabledDates", "navigation", "activeView", "bottomView", "topView", "type", "animateNavigation", "weekNumber", "cellTemplate", "monthCellTemplate", "yearCellTemplate", "decadeCellTemplate", "centuryCellTemplate", "weekNumberTemplate", "headerTitleTemplate", "headerTemplate", "footerTemplate", "navigationItemTemplate", "size", "activeRangeEnd"], outputs: ["activeViewChange", "navigate", "activeViewDateChange", "blur", "focus", "valueChange"], exportAs: ["kendo-calendar"] }, { kind: "component", type: CalendarCustomMessagesComponent, selector: "kendo-calendar-messages" }, { kind: "component", type: TimeSelectorComponent, selector: "kendo-timeselector", inputs: ["format", "min", "max", "cancelButton", "setButton", "nowButton", "disabled", "isAdaptiveEnabled", "isDateTimePicker", "steps", "value"], outputs: ["valueChange", "valueReject", "tabOutLastPart", "tabOutFirstPart", "tabOutNow"], exportAs: ["kendo-timeselector"] }, { kind: "component", type: TimeSelectorCustomMessagesComponent, selector: "kendo-timeselector-messages" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
17298
17286
|
}
|
|
17299
17287
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DateTimePickerComponent, decorators: [{
|
|
17300
17288
|
type: Component,
|
|
@@ -17378,6 +17366,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
17378
17366
|
|
|
17379
17367
|
i18n-clearTitle="kendo.datetimepicker.clearTitle|The title of the clear button"
|
|
17380
17368
|
clearTitle="clear"
|
|
17369
|
+
|
|
17370
|
+
i18n-adaptiveCloseButtonTitle="kendo.datetimepicker.adaptiveCloseButtonTitle|The title of the Close button of the ActionSheet that is rendered instead of the Popup when using small screen devices in adaptive mode"
|
|
17371
|
+
adaptiveCloseButtonTitle="Close"
|
|
17381
17372
|
>
|
|
17382
17373
|
</ng-container>
|
|
17383
17374
|
|
|
@@ -17405,7 +17396,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
17405
17396
|
[steps]="steps"
|
|
17406
17397
|
[tabindex]="tabindex"
|
|
17407
17398
|
[isRequired]="isControlRequired"
|
|
17408
|
-
[title]="
|
|
17399
|
+
[title]="adaptiveTitle"
|
|
17409
17400
|
pickerType="datetimepicker"
|
|
17410
17401
|
hasPopup="dialog"
|
|
17411
17402
|
[inputAttributes]="inputAttributes"
|
|
@@ -17465,35 +17456,44 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
17465
17456
|
|
|
17466
17457
|
<kendo-actionsheet
|
|
17467
17458
|
#actionSheet
|
|
17468
|
-
(overlayClick)="
|
|
17459
|
+
(overlayClick)="toggleActionSheet(false)"
|
|
17469
17460
|
(collapse)="handleActionSheetCollapse()"
|
|
17470
17461
|
[titleId]="calendar?.headerId"
|
|
17462
|
+
[cssClass]="{
|
|
17463
|
+
'k-adaptive-actionsheet': true,
|
|
17464
|
+
'k-actionsheet-fullscreen': windowSize === 'small',
|
|
17465
|
+
'k-actionsheet-bottom': windowSize === 'medium'
|
|
17466
|
+
}"
|
|
17467
|
+
[cssStyle]="{
|
|
17468
|
+
height: windowSize === 'small' ? '100vh' : '60vh'
|
|
17469
|
+
}"
|
|
17471
17470
|
>
|
|
17472
17471
|
<ng-template kendoActionSheetTemplate>
|
|
17473
17472
|
<div class="k-actionsheet-titlebar">
|
|
17474
|
-
<div class="k-actionsheet-titlebar-group
|
|
17473
|
+
<div class="k-actionsheet-titlebar-group">
|
|
17475
17474
|
<div class="k-actionsheet-title">
|
|
17476
|
-
<div class="k-text-center">{{
|
|
17477
|
-
<div class="k-actionsheet-subtitle k-text-center">{{
|
|
17475
|
+
<div class="k-text-center" *ngIf="adaptiveTitle">{{ adaptiveTitle }}</div>
|
|
17476
|
+
<div class="k-actionsheet-subtitle k-text-center" *ngIf="adaptiveSubtitle">{{ adaptiveSubtitle }}</div>
|
|
17478
17477
|
</div>
|
|
17479
17478
|
<div class="k-actionsheet-actions">
|
|
17480
17479
|
<button
|
|
17481
17480
|
kendoButton
|
|
17482
17481
|
type="button"
|
|
17483
|
-
icon="
|
|
17484
|
-
[attr.title]="localization.get('
|
|
17485
|
-
[svgIcon]="
|
|
17482
|
+
icon="check"
|
|
17483
|
+
[attr.title]="localization.get('adaptiveCloseButtonTitle')"
|
|
17484
|
+
[svgIcon]="checkIcon"
|
|
17486
17485
|
fillMode="flat"
|
|
17486
|
+
themeColor="primary"
|
|
17487
17487
|
[tabIndex]="-1"
|
|
17488
17488
|
aria-hidden="true"
|
|
17489
17489
|
size="large"
|
|
17490
17490
|
innerCssClass="k-button-icon"
|
|
17491
|
-
(click)="
|
|
17491
|
+
(click)="toggleActionSheet(false)">
|
|
17492
17492
|
</button>
|
|
17493
17493
|
</div>
|
|
17494
17494
|
</div>
|
|
17495
17495
|
</div>
|
|
17496
|
-
<div class="k-actionsheet-content
|
|
17496
|
+
<div class="k-actionsheet-content">
|
|
17497
17497
|
<ng-container *ngTemplateOutlet="dateTimeTemplate"></ng-container>
|
|
17498
17498
|
</div>
|
|
17499
17499
|
<div class="k-actions k-actions-stretched k-actions-horizontal k-actionsheet-footer">
|
|
@@ -17546,10 +17546,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
17546
17546
|
[scope]="this"
|
|
17547
17547
|
>
|
|
17548
17548
|
<div class="k-button-group k-button-group-solid k-button-group-stretched" role="group">
|
|
17549
|
-
<button
|
|
17549
|
+
<button kendoButton
|
|
17550
17550
|
type="button"
|
|
17551
|
-
class="k-
|
|
17552
|
-
[
|
|
17551
|
+
class="k-group-start"
|
|
17552
|
+
[size]="isAdaptive ? 'large' : size"
|
|
17553
17553
|
[class.k-selected]="activeTab === 'date'"
|
|
17554
17554
|
[attr.aria-pressed]="activeTab === 'date' ? 'true' : 'false'"
|
|
17555
17555
|
[attr.title]="localization.get('dateTabLabel')"
|
|
@@ -17562,10 +17562,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
17562
17562
|
>
|
|
17563
17563
|
{{localization.get('dateTab')}}
|
|
17564
17564
|
</button>
|
|
17565
|
-
<button
|
|
17565
|
+
<button kendoButton
|
|
17566
17566
|
type="button"
|
|
17567
|
-
class="k-
|
|
17568
|
-
[
|
|
17567
|
+
class="k-group-end"
|
|
17568
|
+
[size]="isAdaptive ? 'large' : size"
|
|
17569
17569
|
[class.k-selected]="activeTab === 'time'"
|
|
17570
17570
|
[attr.aria-pressed]="activeTab === 'time' ? 'true' : 'false'"
|
|
17571
17571
|
[attr.title]="localization.get('timeTabLabel')"
|
|
@@ -17575,7 +17575,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
17575
17575
|
'keydown.tab': handleTab
|
|
17576
17576
|
}"
|
|
17577
17577
|
[scope]="this"
|
|
17578
|
-
|
|
17579
17578
|
>
|
|
17580
17579
|
{{localization.get('timeTab')}}
|
|
17581
17580
|
</button>
|
|
@@ -17669,10 +17668,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
17669
17668
|
}"
|
|
17670
17669
|
[scope]="this"
|
|
17671
17670
|
>
|
|
17672
|
-
<button
|
|
17671
|
+
<button kendoButton
|
|
17673
17672
|
type="button"
|
|
17674
|
-
class="k-
|
|
17675
|
-
|
|
17673
|
+
class="k-time-accept"
|
|
17674
|
+
themeColor="primary"
|
|
17676
17675
|
[attr.title]="localization.get('acceptLabel')"
|
|
17677
17676
|
[attr.aria-label]="localization.get('acceptLabel')"
|
|
17678
17677
|
[disabled]="!calendarValue"
|
|
@@ -17686,11 +17685,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
17686
17685
|
{{localization.get('accept')}}
|
|
17687
17686
|
</button>
|
|
17688
17687
|
|
|
17689
|
-
<button
|
|
17688
|
+
<button kendoButton
|
|
17690
17689
|
*ngIf="cancelButton"
|
|
17691
17690
|
type="button"
|
|
17692
|
-
class="k-
|
|
17693
|
-
[ngClass]="popupButtonsClasses()"
|
|
17691
|
+
class="k-time-cancel"
|
|
17694
17692
|
[attr.title]="localization.get('cancelLabel')"
|
|
17695
17693
|
[attr.aria-label]="localization.get('cancelLabel')"
|
|
17696
17694
|
[kendoEventsOutsideAngular]="{
|
|
@@ -17739,9 +17737,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
17739
17737
|
type: Input
|
|
17740
17738
|
}], popupSettings: [{
|
|
17741
17739
|
type: Input
|
|
17742
|
-
}],
|
|
17740
|
+
}], adaptiveTitle: [{
|
|
17743
17741
|
type: Input
|
|
17744
|
-
}],
|
|
17742
|
+
}], adaptiveSubtitle: [{
|
|
17745
17743
|
type: Input
|
|
17746
17744
|
}], disabled: [{
|
|
17747
17745
|
type: Input
|
|
@@ -18354,8 +18352,12 @@ class DateRangePopupMessages extends ComponentMessages {
|
|
|
18354
18352
|
* The label of the **Cancel** button in the popup footer of the DateRange Popup.
|
|
18355
18353
|
*/
|
|
18356
18354
|
cancelLabel;
|
|
18355
|
+
/**
|
|
18356
|
+
* The title of the Close button of the ActionSheet that is rendered instead of the Popup when using small screen devices in adaptive mode.
|
|
18357
|
+
*/
|
|
18358
|
+
adaptiveCloseButtonTitle;
|
|
18357
18359
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DateRangePopupMessages, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
18358
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: DateRangePopupMessages, selector: "kendo-daterangepopup-messages-base", inputs: { accept: "accept", acceptLabel: "acceptLabel", cancel: "cancel", cancelLabel: "cancelLabel" }, usesInheritance: true, ngImport: i0 });
|
|
18360
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: DateRangePopupMessages, selector: "kendo-daterangepopup-messages-base", inputs: { accept: "accept", acceptLabel: "acceptLabel", cancel: "cancel", cancelLabel: "cancelLabel", adaptiveCloseButtonTitle: "adaptiveCloseButtonTitle" }, usesInheritance: true, ngImport: i0 });
|
|
18359
18361
|
}
|
|
18360
18362
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DateRangePopupMessages, decorators: [{
|
|
18361
18363
|
type: Directive,
|
|
@@ -18371,6 +18373,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
18371
18373
|
type: Input
|
|
18372
18374
|
}], cancelLabel: [{
|
|
18373
18375
|
type: Input
|
|
18376
|
+
}], adaptiveCloseButtonTitle: [{
|
|
18377
|
+
type: Input
|
|
18374
18378
|
}] } });
|
|
18375
18379
|
|
|
18376
18380
|
/**
|
|
@@ -18576,18 +18580,12 @@ class DateRangePopupComponent {
|
|
|
18576
18580
|
* Sets the title of the input element of the DateRangePopup and the title text rendered
|
|
18577
18581
|
* in the header of the popup(action sheet). Applicable only when [`AdaptiveMode` is set to `auto`](slug:api_dateinputs_adaptivemode).
|
|
18578
18582
|
*/
|
|
18579
|
-
|
|
18583
|
+
adaptiveTitle = "";
|
|
18580
18584
|
/**
|
|
18581
18585
|
* Sets the subtitle text rendered in the header of the popup(action sheet).
|
|
18582
18586
|
* Applicable only when [`AdaptiveMode` is set to `auto`](slug:api_dateinputs_adaptivemode).
|
|
18583
18587
|
*/
|
|
18584
|
-
|
|
18585
|
-
this._subtitle = subtitle;
|
|
18586
|
-
}
|
|
18587
|
-
get subtitle() {
|
|
18588
|
-
return this._subtitle;
|
|
18589
|
-
}
|
|
18590
|
-
_subtitle;
|
|
18588
|
+
adaptiveSubtitle = "";
|
|
18591
18589
|
/**
|
|
18592
18590
|
* @hidden
|
|
18593
18591
|
*
|
|
@@ -18675,7 +18673,11 @@ class DateRangePopupComponent {
|
|
|
18675
18673
|
/**
|
|
18676
18674
|
* @hidden
|
|
18677
18675
|
*/
|
|
18678
|
-
|
|
18676
|
+
checkIcon = checkIcon;
|
|
18677
|
+
/**
|
|
18678
|
+
* @hidden
|
|
18679
|
+
*/
|
|
18680
|
+
windowSize;
|
|
18679
18681
|
/**
|
|
18680
18682
|
* Gets or sets the visibility state of the component.
|
|
18681
18683
|
*/
|
|
@@ -18698,6 +18700,13 @@ class DateRangePopupComponent {
|
|
|
18698
18700
|
get show() {
|
|
18699
18701
|
return this._show;
|
|
18700
18702
|
}
|
|
18703
|
+
/**
|
|
18704
|
+
* @hidden
|
|
18705
|
+
*/
|
|
18706
|
+
handleAccept() {
|
|
18707
|
+
this.dateRangeService.setRange(this._rangeSelection);
|
|
18708
|
+
this.show = false;
|
|
18709
|
+
}
|
|
18701
18710
|
activateSubscription;
|
|
18702
18711
|
blurSubscription;
|
|
18703
18712
|
focusSubscription;
|
|
@@ -18709,7 +18718,6 @@ class DateRangePopupComponent {
|
|
|
18709
18718
|
_calendar;
|
|
18710
18719
|
_show;
|
|
18711
18720
|
_rangeSelection;
|
|
18712
|
-
windowSize;
|
|
18713
18721
|
constructor(popupService, dateRangeService, zone, renderer, localization, cdr, rtl, adaptiveService) {
|
|
18714
18722
|
this.popupService = popupService;
|
|
18715
18723
|
this.dateRangeService = dateRangeService;
|
|
@@ -18752,11 +18760,6 @@ class DateRangePopupComponent {
|
|
|
18752
18760
|
if (isWindowAvailable()) {
|
|
18753
18761
|
this.zone.runOutsideAngular(() => this.windowBlurSubscription = fromEvent(window, 'blur').subscribe(this.handleWindowBlur.bind(this)));
|
|
18754
18762
|
}
|
|
18755
|
-
if (this.actionSheet && isDocumentAvailable()) {
|
|
18756
|
-
// The following syntax is used as it does not violate CSP compliance
|
|
18757
|
-
this.actionSheet.element.nativeElement.style.setProperty('--kendo-actionsheet-height', '60vh');
|
|
18758
|
-
this.actionSheet.element.nativeElement.style.setProperty('--kendo-actionsheet-max-height', 'none');
|
|
18759
|
-
}
|
|
18760
18763
|
}
|
|
18761
18764
|
ngOnDestroy() {
|
|
18762
18765
|
this.destroyPopup();
|
|
@@ -18844,13 +18847,6 @@ class DateRangePopupComponent {
|
|
|
18844
18847
|
this.show = false;
|
|
18845
18848
|
this.cancel.emit();
|
|
18846
18849
|
}
|
|
18847
|
-
/**
|
|
18848
|
-
* @hidden
|
|
18849
|
-
*/
|
|
18850
|
-
handleAccept() {
|
|
18851
|
-
this.dateRangeService.setRange(this._rangeSelection);
|
|
18852
|
-
this.show = false;
|
|
18853
|
-
}
|
|
18854
18850
|
/**
|
|
18855
18851
|
* @hidden
|
|
18856
18852
|
*/
|
|
@@ -19000,7 +18996,6 @@ class DateRangePopupComponent {
|
|
|
19000
18996
|
}
|
|
19001
18997
|
if (show && !this.actionSheet.expanded) {
|
|
19002
18998
|
this.actionSheet.toggle();
|
|
19003
|
-
this.updateActionSheetAdaptiveAppearance();
|
|
19004
18999
|
this.renderer.setAttribute(this.actionSheet.element.nativeElement, 'id', this.popupUID);
|
|
19005
19000
|
}
|
|
19006
19001
|
else if (!show && this.actionSheet.expanded) {
|
|
@@ -19008,32 +19003,13 @@ class DateRangePopupComponent {
|
|
|
19008
19003
|
}
|
|
19009
19004
|
this._show = show;
|
|
19010
19005
|
}
|
|
19011
|
-
updateActionSheetAdaptiveAppearance() {
|
|
19012
|
-
let element;
|
|
19013
|
-
let animationContainer;
|
|
19014
|
-
if (this.actionSheet) {
|
|
19015
|
-
element = this.actionSheet['element'].nativeElement.querySelector('.k-actionsheet');
|
|
19016
|
-
animationContainer = this.actionSheet['element'].nativeElement.querySelector('.k-child-animation-container');
|
|
19017
|
-
if (this.windowSize === 'medium') {
|
|
19018
|
-
this.renderer.removeClass(element, 'k-actionsheet-fullscreen');
|
|
19019
|
-
this.renderer.removeStyle(animationContainer, 'height');
|
|
19020
|
-
}
|
|
19021
|
-
else if (this.windowSize === 'small') {
|
|
19022
|
-
this.renderer.addClass(element, 'k-actionsheet-fullscreen');
|
|
19023
|
-
this.renderer.setStyle(animationContainer, 'height', '100%');
|
|
19024
|
-
}
|
|
19025
|
-
this.renderer.addClass(element, 'k-adaptive-actionsheet');
|
|
19026
|
-
this.renderer.addClass(element, 'k-actionsheet-bottom');
|
|
19027
|
-
this.renderer.setStyle(animationContainer, 'bottom', '0px');
|
|
19028
|
-
}
|
|
19029
|
-
}
|
|
19030
19006
|
addCalendarSubscription = (calendar) => {
|
|
19031
19007
|
this.calendarSubscriptions.add(calendar.viewList.focusedCellChange.subscribe((id) => {
|
|
19032
19008
|
this.dateRangeService.setActiveDescendent(id);
|
|
19033
19009
|
}));
|
|
19034
19010
|
};
|
|
19035
19011
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DateRangePopupComponent, deps: [{ token: i1$2.PopupService }, { token: DateRangeService }, { token: i0.NgZone }, { token: i0.Renderer2 }, { token: i1$1.LocalizationService }, { token: i0.ChangeDetectorRef }, { token: RTL, optional: true }, { token: i6.AdaptiveService }], target: i0.ɵɵFactoryTarget.Component });
|
|
19036
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: DateRangePopupComponent, isStandalone: true, selector: "kendo-daterange-popup", inputs: { showCalendarHeader: "showCalendarHeader", focusedDate: "focusedDate", disabledDates: "disabledDates", activeView: "activeView", bottomView: "bottomView", topView: "topView", min: "min", max: "max", allowReverse: "allowReverse", animateNavigation: "animateNavigation", disabled: "disabled", views: "views", weekNumber: "weekNumber", animate: "animate", anchor: "anchor", anchorAlign: "anchorAlign", showViewHeader: "showViewHeader", showOtherMonthDays: "showOtherMonthDays", appendTo: "appendTo", collision: "collision", popupAlign: "popupAlign", margin: "margin", adaptiveMode: "adaptiveMode",
|
|
19012
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: DateRangePopupComponent, isStandalone: true, selector: "kendo-daterange-popup", inputs: { showCalendarHeader: "showCalendarHeader", focusedDate: "focusedDate", disabledDates: "disabledDates", activeView: "activeView", bottomView: "bottomView", topView: "topView", min: "min", max: "max", allowReverse: "allowReverse", animateNavigation: "animateNavigation", disabled: "disabled", views: "views", weekNumber: "weekNumber", animate: "animate", anchor: "anchor", anchorAlign: "anchorAlign", showViewHeader: "showViewHeader", showOtherMonthDays: "showOtherMonthDays", appendTo: "appendTo", collision: "collision", popupAlign: "popupAlign", margin: "margin", adaptiveMode: "adaptiveMode", adaptiveTitle: "adaptiveTitle", adaptiveSubtitle: "adaptiveSubtitle", size: "size" }, outputs: { open: "open", close: "close", onBlur: "blur", onFocus: "focus", cancel: "cancel" }, providers: [
|
|
19037
19013
|
LocalizationService,
|
|
19038
19014
|
{
|
|
19039
19015
|
provide: L10N_PREFIX,
|
|
@@ -19052,6 +19028,9 @@ class DateRangePopupComponent {
|
|
|
19052
19028
|
|
|
19053
19029
|
i18n-cancelLabel="kendo.daterangepopup.cancelLabel|The label for the Cancel button in the timepicker component"
|
|
19054
19030
|
cancelLabel="Cancel changes"
|
|
19031
|
+
|
|
19032
|
+
i18n-adaptiveCloseButtonTitle="kendo.daterangepopup.adaptiveCloseButtonTitle|The title of the Close button of the ActionSheet that is rendered instead of the Popup when using small screen devices in adaptive mode"
|
|
19033
|
+
adaptiveCloseButtonTitle="Close"
|
|
19055
19034
|
>
|
|
19056
19035
|
</ng-container>
|
|
19057
19036
|
<ng-container #container></ng-container>
|
|
@@ -19085,8 +19064,16 @@ class DateRangePopupComponent {
|
|
|
19085
19064
|
|
|
19086
19065
|
<kendo-actionsheet
|
|
19087
19066
|
#actionSheet
|
|
19088
|
-
(overlayClick)="
|
|
19067
|
+
(overlayClick)="handleAccept()"
|
|
19089
19068
|
(collapse)="onBlur.emit()"
|
|
19069
|
+
[cssClass]="{
|
|
19070
|
+
'k-adaptive-actionsheet': true,
|
|
19071
|
+
'k-actionsheet-fullscreen': windowSize === 'small',
|
|
19072
|
+
'k-actionsheet-bottom': windowSize === 'medium'
|
|
19073
|
+
}"
|
|
19074
|
+
[cssStyle]="{
|
|
19075
|
+
height: windowSize === 'small' ? '100vh' : '60vh'
|
|
19076
|
+
}"
|
|
19090
19077
|
>
|
|
19091
19078
|
<ng-template kendoActionSheetTemplate>
|
|
19092
19079
|
<!-- Resize sensor needs to be inside the template because the date-range-popup
|
|
@@ -19094,29 +19081,30 @@ class DateRangePopupComponent {
|
|
|
19094
19081
|
Note: The popup in non-adaptive mode closes on window blur -->
|
|
19095
19082
|
<kendo-resize-sensor *ngIf="isAdaptiveModeEnabled" (resize)="onResize()"></kendo-resize-sensor>
|
|
19096
19083
|
<div class="k-actionsheet-titlebar">
|
|
19097
|
-
<div class="k-actionsheet-titlebar-group
|
|
19084
|
+
<div class="k-actionsheet-titlebar-group">
|
|
19098
19085
|
<div class="k-actionsheet-title">
|
|
19099
|
-
<div class="k-text-center">{{
|
|
19100
|
-
<div class="k-actionsheet-subtitle k-text-center">{{
|
|
19086
|
+
<div class="k-text-center" *ngIf="adaptiveTitle">{{ adaptiveTitle }}</div>
|
|
19087
|
+
<div class="k-actionsheet-subtitle k-text-center" *ngIf="adaptiveSubtitle">{{ adaptiveSubtitle }}</div>
|
|
19101
19088
|
</div>
|
|
19102
19089
|
<div class="k-actionsheet-actions">
|
|
19103
19090
|
<button
|
|
19104
19091
|
kendoButton
|
|
19105
19092
|
type="button"
|
|
19106
|
-
icon="
|
|
19107
|
-
[attr.title]="localization.get('
|
|
19108
|
-
[svgIcon]="
|
|
19093
|
+
icon="check"
|
|
19094
|
+
[attr.title]="localization.get('adaptiveCloseButtonTitle')"
|
|
19095
|
+
[svgIcon]="checkIcon"
|
|
19109
19096
|
fillMode="flat"
|
|
19097
|
+
themeColor="primary"
|
|
19110
19098
|
[tabIndex]="-1"
|
|
19111
19099
|
aria-hidden="true"
|
|
19112
19100
|
size="large"
|
|
19113
19101
|
innerCssClass="k-button-icon"
|
|
19114
|
-
(click)="
|
|
19102
|
+
(click)="handleAccept()">
|
|
19115
19103
|
</button>
|
|
19116
19104
|
</div>
|
|
19117
19105
|
</div>
|
|
19118
19106
|
</div>
|
|
19119
|
-
<div class="k-actionsheet-content
|
|
19107
|
+
<div class="k-actionsheet-content">
|
|
19120
19108
|
<div class="k-scrollable-wrap">
|
|
19121
19109
|
<kendo-multiviewcalendar
|
|
19122
19110
|
size="large"
|
|
@@ -19140,7 +19128,7 @@ class DateRangePopupComponent {
|
|
|
19140
19128
|
[value]="dateRangeService.selectionRange"
|
|
19141
19129
|
selection="range"
|
|
19142
19130
|
(rangeSelectionChange)="onRangeSelectionChange($event)"
|
|
19143
|
-
|
|
19131
|
+
>
|
|
19144
19132
|
</kendo-multiviewcalendar>
|
|
19145
19133
|
</div>
|
|
19146
19134
|
</div>
|
|
@@ -19168,7 +19156,7 @@ class DateRangePopupComponent {
|
|
|
19168
19156
|
</div>
|
|
19169
19157
|
</ng-template>
|
|
19170
19158
|
</kendo-actionsheet>
|
|
19171
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: DateRangePopupLocalizedMessagesDirective, selector: "[kendoDateRangePopupLocalizedMessages]" }, { 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: ActionSheetComponent, selector: "kendo-actionsheet", inputs: ["title", "subtitle", "items", "cssClass", "animation", "expanded", "titleId"], outputs: ["expandedChange", "expand", "collapse", "itemClick", "overlayClick"], exportAs: ["kendoActionSheet"] }, { kind: "directive", type: ActionSheetTemplateDirective, selector: "[kendoActionSheetTemplate]" }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }, { kind: "component", type: ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }] });
|
|
19159
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: DateRangePopupLocalizedMessagesDirective, selector: "[kendoDateRangePopupLocalizedMessages]" }, { 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: ActionSheetComponent, selector: "kendo-actionsheet", inputs: ["actions", "actionsLayout", "overlayClickClose", "title", "subtitle", "items", "cssClass", "cssStyle", "animation", "expanded", "titleId", "initialFocus"], outputs: ["expandedChange", "action", "expand", "collapse", "itemClick", "overlayClick"], exportAs: ["kendoActionSheet"] }, { kind: "directive", type: ActionSheetTemplateDirective, selector: "[kendoActionSheetTemplate]" }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }, { kind: "component", type: ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }] });
|
|
19172
19160
|
}
|
|
19173
19161
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DateRangePopupComponent, decorators: [{
|
|
19174
19162
|
type: Component,
|
|
@@ -19195,6 +19183,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
19195
19183
|
|
|
19196
19184
|
i18n-cancelLabel="kendo.daterangepopup.cancelLabel|The label for the Cancel button in the timepicker component"
|
|
19197
19185
|
cancelLabel="Cancel changes"
|
|
19186
|
+
|
|
19187
|
+
i18n-adaptiveCloseButtonTitle="kendo.daterangepopup.adaptiveCloseButtonTitle|The title of the Close button of the ActionSheet that is rendered instead of the Popup when using small screen devices in adaptive mode"
|
|
19188
|
+
adaptiveCloseButtonTitle="Close"
|
|
19198
19189
|
>
|
|
19199
19190
|
</ng-container>
|
|
19200
19191
|
<ng-container #container></ng-container>
|
|
@@ -19228,8 +19219,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
19228
19219
|
|
|
19229
19220
|
<kendo-actionsheet
|
|
19230
19221
|
#actionSheet
|
|
19231
|
-
(overlayClick)="
|
|
19222
|
+
(overlayClick)="handleAccept()"
|
|
19232
19223
|
(collapse)="onBlur.emit()"
|
|
19224
|
+
[cssClass]="{
|
|
19225
|
+
'k-adaptive-actionsheet': true,
|
|
19226
|
+
'k-actionsheet-fullscreen': windowSize === 'small',
|
|
19227
|
+
'k-actionsheet-bottom': windowSize === 'medium'
|
|
19228
|
+
}"
|
|
19229
|
+
[cssStyle]="{
|
|
19230
|
+
height: windowSize === 'small' ? '100vh' : '60vh'
|
|
19231
|
+
}"
|
|
19233
19232
|
>
|
|
19234
19233
|
<ng-template kendoActionSheetTemplate>
|
|
19235
19234
|
<!-- Resize sensor needs to be inside the template because the date-range-popup
|
|
@@ -19237,29 +19236,30 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
19237
19236
|
Note: The popup in non-adaptive mode closes on window blur -->
|
|
19238
19237
|
<kendo-resize-sensor *ngIf="isAdaptiveModeEnabled" (resize)="onResize()"></kendo-resize-sensor>
|
|
19239
19238
|
<div class="k-actionsheet-titlebar">
|
|
19240
|
-
<div class="k-actionsheet-titlebar-group
|
|
19239
|
+
<div class="k-actionsheet-titlebar-group">
|
|
19241
19240
|
<div class="k-actionsheet-title">
|
|
19242
|
-
<div class="k-text-center">{{
|
|
19243
|
-
<div class="k-actionsheet-subtitle k-text-center">{{
|
|
19241
|
+
<div class="k-text-center" *ngIf="adaptiveTitle">{{ adaptiveTitle }}</div>
|
|
19242
|
+
<div class="k-actionsheet-subtitle k-text-center" *ngIf="adaptiveSubtitle">{{ adaptiveSubtitle }}</div>
|
|
19244
19243
|
</div>
|
|
19245
19244
|
<div class="k-actionsheet-actions">
|
|
19246
19245
|
<button
|
|
19247
19246
|
kendoButton
|
|
19248
19247
|
type="button"
|
|
19249
|
-
icon="
|
|
19250
|
-
[attr.title]="localization.get('
|
|
19251
|
-
[svgIcon]="
|
|
19248
|
+
icon="check"
|
|
19249
|
+
[attr.title]="localization.get('adaptiveCloseButtonTitle')"
|
|
19250
|
+
[svgIcon]="checkIcon"
|
|
19252
19251
|
fillMode="flat"
|
|
19252
|
+
themeColor="primary"
|
|
19253
19253
|
[tabIndex]="-1"
|
|
19254
19254
|
aria-hidden="true"
|
|
19255
19255
|
size="large"
|
|
19256
19256
|
innerCssClass="k-button-icon"
|
|
19257
|
-
(click)="
|
|
19257
|
+
(click)="handleAccept()">
|
|
19258
19258
|
</button>
|
|
19259
19259
|
</div>
|
|
19260
19260
|
</div>
|
|
19261
19261
|
</div>
|
|
19262
|
-
<div class="k-actionsheet-content
|
|
19262
|
+
<div class="k-actionsheet-content">
|
|
19263
19263
|
<div class="k-scrollable-wrap">
|
|
19264
19264
|
<kendo-multiviewcalendar
|
|
19265
19265
|
size="large"
|
|
@@ -19283,7 +19283,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
19283
19283
|
[value]="dateRangeService.selectionRange"
|
|
19284
19284
|
selection="range"
|
|
19285
19285
|
(rangeSelectionChange)="onRangeSelectionChange($event)"
|
|
19286
|
-
|
|
19286
|
+
>
|
|
19287
19287
|
</kendo-multiviewcalendar>
|
|
19288
19288
|
</div>
|
|
19289
19289
|
</div>
|
|
@@ -19387,9 +19387,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
19387
19387
|
type: Input
|
|
19388
19388
|
}], adaptiveMode: [{
|
|
19389
19389
|
type: Input
|
|
19390
|
-
}],
|
|
19390
|
+
}], adaptiveTitle: [{
|
|
19391
19391
|
type: Input
|
|
19392
|
-
}],
|
|
19392
|
+
}], adaptiveSubtitle: [{
|
|
19393
19393
|
type: Input
|
|
19394
19394
|
}], size: [{
|
|
19395
19395
|
type: Input
|
|
@@ -19482,7 +19482,7 @@ class DateRangeComponent {
|
|
|
19482
19482
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: DateRangeComponent, isStandalone: true, selector: "kendo-daterange", inputs: { size: "size" }, host: { listeners: { "keydown": "keydown($event)" }, properties: { "class.k-daterangepicker": "this.wrapperClass" } }, providers: [DateRangeService], queries: [{ propertyName: "contentPopup", predicate: DateRangePopupComponent }], ngImport: i0, template: `
|
|
19483
19483
|
<ng-content></ng-content>
|
|
19484
19484
|
<kendo-daterange-popup *ngIf="showDefault" [size]="size"></kendo-daterange-popup>
|
|
19485
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: DateRangePopupComponent, selector: "kendo-daterange-popup", inputs: ["showCalendarHeader", "focusedDate", "disabledDates", "activeView", "bottomView", "topView", "min", "max", "allowReverse", "animateNavigation", "disabled", "views", "weekNumber", "animate", "anchor", "anchorAlign", "showViewHeader", "showOtherMonthDays", "appendTo", "collision", "popupAlign", "margin", "adaptiveMode", "
|
|
19485
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: DateRangePopupComponent, selector: "kendo-daterange-popup", inputs: ["showCalendarHeader", "focusedDate", "disabledDates", "activeView", "bottomView", "topView", "min", "max", "allowReverse", "animateNavigation", "disabled", "views", "weekNumber", "animate", "anchor", "anchorAlign", "showViewHeader", "showOtherMonthDays", "appendTo", "collision", "popupAlign", "margin", "adaptiveMode", "adaptiveTitle", "adaptiveSubtitle", "size"], outputs: ["open", "close", "blur", "focus", "cancel"], exportAs: ["kendo-daterange-popup"] }] });
|
|
19486
19486
|
}
|
|
19487
19487
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DateRangeComponent, decorators: [{
|
|
19488
19488
|
type: Component,
|
|
@@ -19573,8 +19573,9 @@ class DateRangeInput {
|
|
|
19573
19573
|
[
|
|
19574
19574
|
popup.cancel.subscribe(() => this.isActiveEnd && this.input.focus()),
|
|
19575
19575
|
popup.onFocus.subscribe(() => this.toggleActiveClass(this.isActiveEnd)),
|
|
19576
|
-
popup.onBlur.subscribe(() => this.deactivate())
|
|
19577
|
-
|
|
19576
|
+
popup.onBlur.subscribe(() => this.deactivate()),
|
|
19577
|
+
popup.close?.subscribe(() => this.isActiveEnd && this.input.focus())
|
|
19578
|
+
].forEach(s => this.popupSubscriptions.add(s));
|
|
19578
19579
|
}
|
|
19579
19580
|
unsubscribePopup() {
|
|
19580
19581
|
this.popupSubscriptions.unsubscribe();
|