@progress/kendo-angular-dateinputs 13.0.0-develop.6 → 13.0.0-develop.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/calendar/horizontal-view-list.component.d.ts +1 -0
- package/calendar/models/keydown.interface.d.ts +8 -0
- package/calendar/multiview-calendar.component.d.ts +13 -1
- package/daterange/date-range-popup.component.d.ts +13 -0
- package/esm2020/calendar/calendar.component.mjs +1 -1
- package/esm2020/calendar/horizontal-view-list.component.mjs +13 -7
- package/esm2020/calendar/multiview-calendar.component.mjs +38 -4
- package/esm2020/daterange/date-range-input.mjs +0 -2
- package/esm2020/daterange/date-range-popup.component.mjs +45 -3
- package/esm2020/datetimepicker/datetimepicker.component.mjs +30 -30
- package/esm2020/package-metadata.mjs +2 -2
- package/esm2020/timepicker/timeselector.component.mjs +32 -32
- package/fesm2015/progress-kendo-angular-dateinputs.mjs +161 -80
- package/fesm2020/progress-kendo-angular-dateinputs.mjs +161 -80
- package/package.json +11 -11
|
@@ -36,8 +36,8 @@ const packageMetadata = {
|
|
|
36
36
|
name: '@progress/kendo-angular-dateinputs',
|
|
37
37
|
productName: 'Kendo UI for Angular',
|
|
38
38
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
39
|
-
publishDate:
|
|
40
|
-
version: '13.0.0-develop.
|
|
39
|
+
publishDate: 1685107115,
|
|
40
|
+
version: '13.0.0-develop.8',
|
|
41
41
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
42
42
|
};
|
|
43
43
|
|
|
@@ -1978,13 +1978,16 @@ class HorizontalViewListComponent {
|
|
|
1978
1978
|
return this.activeView === CalendarViewEnum.century;
|
|
1979
1979
|
}
|
|
1980
1980
|
get role() {
|
|
1981
|
-
return this.views
|
|
1981
|
+
return this.views >= 2 ? 'grid' : null;
|
|
1982
|
+
}
|
|
1983
|
+
get tabindex() {
|
|
1984
|
+
return this.views >= 2 ? '0' : null;
|
|
1982
1985
|
}
|
|
1983
1986
|
get getActiveDescendant() {
|
|
1984
1987
|
return this.views === 1 ? this.activeDescendant : null;
|
|
1985
1988
|
}
|
|
1986
1989
|
get getTabIndex() {
|
|
1987
|
-
return this.disabled || this.views
|
|
1990
|
+
return this.disabled || this.views >= 2 ? null : this.tabIndex;
|
|
1988
1991
|
}
|
|
1989
1992
|
ngOnChanges(changes) {
|
|
1990
1993
|
this.initService();
|
|
@@ -2009,7 +2012,7 @@ class HorizontalViewListComponent {
|
|
|
2009
2012
|
}
|
|
2010
2013
|
this.setAriaActivedescendant();
|
|
2011
2014
|
//set tabindex for MultiViewCalendar
|
|
2012
|
-
if (this.views
|
|
2015
|
+
if (this.views >= 2) {
|
|
2013
2016
|
this.renderer.setAttribute(this.element.nativeElement, 'tabindex', this.tabIndex.toString());
|
|
2014
2017
|
}
|
|
2015
2018
|
}
|
|
@@ -2156,16 +2159,16 @@ class HorizontalViewListComponent {
|
|
|
2156
2159
|
return Math.min(this.total - skip, this.views);
|
|
2157
2160
|
}
|
|
2158
2161
|
setAriaActivedescendant() {
|
|
2159
|
-
if (this.views
|
|
2162
|
+
if (this.views >= 2) {
|
|
2160
2163
|
this.renderer.setAttribute(this.element.nativeElement, attributeNames.ariaActiveDescendant, this.activeDescendant);
|
|
2161
2164
|
}
|
|
2162
2165
|
}
|
|
2163
2166
|
}
|
|
2164
2167
|
HorizontalViewListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: HorizontalViewListComponent, deps: [{ token: BusViewService }, { token: i1.IntlService }, { token: WeekNamesService }, { token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
|
|
2165
|
-
HorizontalViewListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: HorizontalViewListComponent, selector: "kendo-calendar-horizontal", inputs: { cellTemplateRef: "cellTemplateRef", weekNumberTemplateRef: "weekNumberTemplateRef", activeRangeEnd: "activeRangeEnd", activeView: "activeView", cellUID: "cellUID", focusedDate: "focusedDate", isActive: "isActive", min: "min", max: "max", selectionRange: "selectionRange", selectedDates: "selectedDates", views: "views", showViewHeader: "showViewHeader", animateNavigation: "animateNavigation", orientation: "orientation", activeDescendant: "activeDescendant", tabIndex: "tabIndex", disabled: "disabled", id: "id", weekNumber: "weekNumber" }, outputs: { cellClick: "cellClick", weekNumberCellClick: "weekNumberCellClick", cellEnter: "cellEnter", cellLeave: "cellLeave", activeDateChange: "activeDateChange", focusCalendar: "focusCalendar", blurCalendar: "blurCalendar", focusedCellChange: "focusedCellChange" }, host: { listeners: { "focus": "handleMultiViewCalendarFocus()", "blur": "handleMultiViewCalendarBlur($event)" }, properties: { "class.k-calendar-view": "this.getComponentClass", "class.k-align-items-start": "this.getComponentClass", "class.k-justify-content-center": "this.getComponentClass", "class.k-hstack": "this.horizontalHostClass", "class.k-vstack": "this.verticalHostClass", "class.k-calendar-monthview": "this.getComponentMonthClass", "class.k-calendar-yearview": "this.getComponentYearClass", "class.k-calendar-decadeview": "this.getComponentDecadeClass", "class.k-calendar-centuryview": "this.getComponentCenturyClass", "attr.role": "this.role" } }, usesOnChanges: true, ngImport: i0, template: `
|
|
2168
|
+
HorizontalViewListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: HorizontalViewListComponent, selector: "kendo-calendar-horizontal", inputs: { cellTemplateRef: "cellTemplateRef", weekNumberTemplateRef: "weekNumberTemplateRef", activeRangeEnd: "activeRangeEnd", activeView: "activeView", cellUID: "cellUID", focusedDate: "focusedDate", isActive: "isActive", min: "min", max: "max", selectionRange: "selectionRange", selectedDates: "selectedDates", views: "views", showViewHeader: "showViewHeader", animateNavigation: "animateNavigation", orientation: "orientation", activeDescendant: "activeDescendant", tabIndex: "tabIndex", disabled: "disabled", id: "id", weekNumber: "weekNumber" }, outputs: { cellClick: "cellClick", weekNumberCellClick: "weekNumberCellClick", cellEnter: "cellEnter", cellLeave: "cellLeave", activeDateChange: "activeDateChange", focusCalendar: "focusCalendar", blurCalendar: "blurCalendar", focusedCellChange: "focusedCellChange" }, host: { listeners: { "focus": "handleMultiViewCalendarFocus()", "blur": "handleMultiViewCalendarBlur($event)" }, properties: { "class.k-calendar-view": "this.getComponentClass", "class.k-align-items-start": "this.getComponentClass", "class.k-justify-content-center": "this.getComponentClass", "class.k-hstack": "this.horizontalHostClass", "class.k-vstack": "this.verticalHostClass", "class.k-calendar-monthview": "this.getComponentMonthClass", "class.k-calendar-yearview": "this.getComponentYearClass", "class.k-calendar-decadeview": "this.getComponentDecadeClass", "class.k-calendar-centuryview": "this.getComponentCenturyClass", "attr.role": "this.role", "attr.tabindex": "this.tabindex" } }, usesOnChanges: true, ngImport: i0, template: `
|
|
2166
2169
|
<ng-template #tableTemplate let-date="date" let-class="className">
|
|
2167
2170
|
<table
|
|
2168
|
-
[attr.role]="views
|
|
2171
|
+
[attr.role]="views >= 2 ? 'none' : 'grid'"
|
|
2169
2172
|
class="k-content k-calendar-table"
|
|
2170
2173
|
[ngClass]="class"
|
|
2171
2174
|
[attr.aria-labelledby]="id"
|
|
@@ -2252,7 +2255,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
2252
2255
|
template: `
|
|
2253
2256
|
<ng-template #tableTemplate let-date="date" let-class="className">
|
|
2254
2257
|
<table
|
|
2255
|
-
[attr.role]="views
|
|
2258
|
+
[attr.role]="views >= 2 ? 'none' : 'grid'"
|
|
2256
2259
|
class="k-content k-calendar-table"
|
|
2257
2260
|
[ngClass]="class"
|
|
2258
2261
|
[attr.aria-labelledby]="id"
|
|
@@ -2424,6 +2427,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
2424
2427
|
}], role: [{
|
|
2425
2428
|
type: HostBinding,
|
|
2426
2429
|
args: ['attr.role']
|
|
2430
|
+
}], tabindex: [{
|
|
2431
|
+
type: HostBinding,
|
|
2432
|
+
args: ['attr.tabindex']
|
|
2427
2433
|
}] } });
|
|
2428
2434
|
|
|
2429
2435
|
/**
|
|
@@ -3356,6 +3362,18 @@ class MultiViewCalendarComponent {
|
|
|
3356
3362
|
* @hidden
|
|
3357
3363
|
*/
|
|
3358
3364
|
this.focusCalendar = new EventEmitter();
|
|
3365
|
+
/**
|
|
3366
|
+
* @hidden
|
|
3367
|
+
*/
|
|
3368
|
+
this.onClosePopup = new EventEmitter();
|
|
3369
|
+
/**
|
|
3370
|
+
* @hidden
|
|
3371
|
+
*/
|
|
3372
|
+
this.onTabPress = new EventEmitter();
|
|
3373
|
+
/**
|
|
3374
|
+
* @hidden
|
|
3375
|
+
*/
|
|
3376
|
+
this.onShiftTabPress = new EventEmitter();
|
|
3359
3377
|
this.cellUID = guid();
|
|
3360
3378
|
this.isHovered = false;
|
|
3361
3379
|
this.isPrevDisabled = true;
|
|
@@ -3400,7 +3418,7 @@ class MultiViewCalendarComponent {
|
|
|
3400
3418
|
* @hidden
|
|
3401
3419
|
*/
|
|
3402
3420
|
get multiViewCalendarHeaderIdLabel() {
|
|
3403
|
-
return this.views
|
|
3421
|
+
return this.views >= 2 ? this.id + 'header-' : null;
|
|
3404
3422
|
}
|
|
3405
3423
|
/**
|
|
3406
3424
|
* @hidden
|
|
@@ -3578,7 +3596,7 @@ class MultiViewCalendarComponent {
|
|
|
3578
3596
|
return CalendarViewEnum[this.topView];
|
|
3579
3597
|
}
|
|
3580
3598
|
get widgetId() {
|
|
3581
|
-
return this.views
|
|
3599
|
+
return this.views >= 2 ? this.id : null;
|
|
3582
3600
|
}
|
|
3583
3601
|
get ariaDisabled() {
|
|
3584
3602
|
return this.disabled;
|
|
@@ -3648,6 +3666,11 @@ class MultiViewCalendarComponent {
|
|
|
3648
3666
|
const onArrowLeftAndControl = event.keyCode === Keys$1.ArrowLeft && ctrlKey;
|
|
3649
3667
|
const onTKeyPress = event.keyCode === Keys$1.KeyT;
|
|
3650
3668
|
const onEnterKeyPress = event.keyCode === Keys$1.Enter;
|
|
3669
|
+
const onArrowUpPress = event.keyCode === Keys$1.ArrowUp;
|
|
3670
|
+
const altKey = event.altKey;
|
|
3671
|
+
const escKey = event.keyCode === Keys$1.Escape;
|
|
3672
|
+
const tabKeyPress = event.keyCode === Keys$1.Tab;
|
|
3673
|
+
const shiftKeyPress = event.shiftKey;
|
|
3651
3674
|
if (onArrowRightAndControl) {
|
|
3652
3675
|
event.preventDefault();
|
|
3653
3676
|
this.navigateView(this.nextView);
|
|
@@ -3670,6 +3693,17 @@ class MultiViewCalendarComponent {
|
|
|
3670
3693
|
this.selectionService.lastClicked = this.focusedDate;
|
|
3671
3694
|
this.performSelection(this.focusedDate, event);
|
|
3672
3695
|
}
|
|
3696
|
+
if (this.views >= 2) {
|
|
3697
|
+
if ((escKey || (altKey && onArrowUpPress))) {
|
|
3698
|
+
this.onClosePopup.emit(event);
|
|
3699
|
+
}
|
|
3700
|
+
else if ((tabKeyPress && shiftKeyPress)) {
|
|
3701
|
+
this.onShiftTabPress.emit(event);
|
|
3702
|
+
}
|
|
3703
|
+
else if ((tabKeyPress && !shiftKeyPress)) {
|
|
3704
|
+
this.onTabPress.emit(event);
|
|
3705
|
+
}
|
|
3706
|
+
}
|
|
3673
3707
|
const candidate = dateInRange(this.navigator.move(this.focusedDate, this.navigator.action(event), this.activeViewEnum), this.min, this.max);
|
|
3674
3708
|
if (isEqual(this.focusedDate, candidate)) {
|
|
3675
3709
|
return;
|
|
@@ -3745,7 +3779,7 @@ class MultiViewCalendarComponent {
|
|
|
3745
3779
|
if (!this.element) {
|
|
3746
3780
|
return;
|
|
3747
3781
|
}
|
|
3748
|
-
const activeElement = this.views
|
|
3782
|
+
const activeElement = this.views >= 2 ? this.element.nativeElement.querySelector('.k-calendar-view') :
|
|
3749
3783
|
this.element.nativeElement.querySelector('.k-content.k-calendar-table');
|
|
3750
3784
|
activeElement.blur();
|
|
3751
3785
|
}
|
|
@@ -3955,7 +3989,7 @@ class MultiViewCalendarComponent {
|
|
|
3955
3989
|
}
|
|
3956
3990
|
}
|
|
3957
3991
|
MultiViewCalendarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: MultiViewCalendarComponent, deps: [{ token: BusViewService }, { token: i0.ElementRef }, { token: NavigationService }, { token: i0.Renderer2 }, { token: i0.ChangeDetectorRef }, { token: i0.NgZone }, { token: DisabledDatesService }, { token: SelectionService }], target: i0.ɵɵFactoryTarget.Component });
|
|
3958
|
-
MultiViewCalendarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: MultiViewCalendarComponent, selector: "kendo-multiviewcalendar", inputs: { id: "id", focusedDate: "focusedDate", min: "min", max: "max", rangeValidation: "rangeValidation", disabledDatesRangeValidation: "disabledDatesRangeValidation", selection: "selection", value: "value", disabled: "disabled", tabindex: "tabindex", tabIndex: "tabIndex", isActive: "isActive", disabledDates: "disabledDates", activeView: "activeView", bottomView: "bottomView", topView: "topView", showViewHeader: "showViewHeader", animateNavigation: "animateNavigation", weekNumber: "weekNumber", activeRangeEnd: "activeRangeEnd", selectionRange: "selectionRange", views: "views", orientation: "orientation", cellTemplateRef: ["cellTemplate", "cellTemplateRef"], monthCellTemplateRef: ["monthCellTemplate", "monthCellTemplateRef"], yearCellTemplateRef: ["yearCellTemplate", "yearCellTemplateRef"], decadeCellTemplateRef: ["decadeCellTemplate", "decadeCellTemplateRef"], centuryCellTemplateRef: ["centuryCellTemplate", "centuryCellTemplateRef"], weekNumberTemplateRef: ["weekNumberTemplate", "weekNumberTemplateRef"], headerTitleTemplateRef: ["headerTitleTemplate", "headerTitleTemplateRef"] }, outputs: { activeViewChange: "activeViewChange", navigate: "navigate", cellEnter: "cellEnter", cellLeave: "cellLeave", valueChange: "valueChange", blurEvent: "blur", focusEvent: "focus", focusCalendar: "focusCalendar" }, host: { listeners: { "mouseenter": "handleMouseEnter()", "mouseleave": "handleMouseLeave()", "mousedown": "handleMousedown($event)", "click": "handleClick()", "keydown": "keydown($event)" }, properties: { "attr.id": "this.widgetId", "attr.aria-disabled": "this.ariaDisabled", "class.k-disabled": "this.ariaDisabled" } }, providers: [
|
|
3992
|
+
MultiViewCalendarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: MultiViewCalendarComponent, selector: "kendo-multiviewcalendar", inputs: { id: "id", focusedDate: "focusedDate", min: "min", max: "max", rangeValidation: "rangeValidation", disabledDatesRangeValidation: "disabledDatesRangeValidation", selection: "selection", value: "value", disabled: "disabled", tabindex: "tabindex", tabIndex: "tabIndex", isActive: "isActive", disabledDates: "disabledDates", activeView: "activeView", bottomView: "bottomView", topView: "topView", showViewHeader: "showViewHeader", animateNavigation: "animateNavigation", weekNumber: "weekNumber", activeRangeEnd: "activeRangeEnd", selectionRange: "selectionRange", views: "views", orientation: "orientation", cellTemplateRef: ["cellTemplate", "cellTemplateRef"], monthCellTemplateRef: ["monthCellTemplate", "monthCellTemplateRef"], yearCellTemplateRef: ["yearCellTemplate", "yearCellTemplateRef"], decadeCellTemplateRef: ["decadeCellTemplate", "decadeCellTemplateRef"], centuryCellTemplateRef: ["centuryCellTemplate", "centuryCellTemplateRef"], weekNumberTemplateRef: ["weekNumberTemplate", "weekNumberTemplateRef"], headerTitleTemplateRef: ["headerTitleTemplate", "headerTitleTemplateRef"] }, outputs: { activeViewChange: "activeViewChange", navigate: "navigate", cellEnter: "cellEnter", cellLeave: "cellLeave", valueChange: "valueChange", blurEvent: "blur", focusEvent: "focus", focusCalendar: "focusCalendar", onClosePopup: "onClosePopup", onTabPress: "onTabPress", onShiftTabPress: "onShiftTabPress" }, host: { listeners: { "mouseenter": "handleMouseEnter()", "mouseleave": "handleMouseLeave()", "mousedown": "handleMousedown($event)", "click": "handleClick()", "keydown": "keydown($event)" }, properties: { "attr.id": "this.widgetId", "attr.aria-disabled": "this.ariaDisabled", "class.k-disabled": "this.ariaDisabled" } }, providers: [
|
|
3959
3993
|
BusViewService,
|
|
3960
3994
|
RANGE_CALENDAR_VALUE_ACCESSOR,
|
|
3961
3995
|
RANGE_CALENDAR_RANGE_VALIDATORS,
|
|
@@ -4179,6 +4213,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
4179
4213
|
args: ['focus']
|
|
4180
4214
|
}], focusCalendar: [{
|
|
4181
4215
|
type: Output
|
|
4216
|
+
}], onClosePopup: [{
|
|
4217
|
+
type: Output
|
|
4218
|
+
}], onTabPress: [{
|
|
4219
|
+
type: Output
|
|
4220
|
+
}], onShiftTabPress: [{
|
|
4221
|
+
type: Output
|
|
4182
4222
|
}], cellTemplate: [{
|
|
4183
4223
|
type: ContentChild,
|
|
4184
4224
|
args: [CellTemplateDirective, { static: false }]
|
|
@@ -6664,7 +6704,7 @@ CalendarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", vers
|
|
|
6664
6704
|
</kendo-multiviewcalendar-messages>
|
|
6665
6705
|
</kendo-multiviewcalendar>
|
|
6666
6706
|
</ng-container>
|
|
6667
|
-
`, isInline: true, components: [{ type: NavigationComponent, selector: "kendo-calendar-navigation", inputs: ["activeView", "min", "max", "focusedDate", "templateRef"], outputs: ["valueChange", "pageChange"] }, { type: ViewListComponent, selector: "kendo-calendar-viewlist", inputs: ["cellTemplateRef", "weekNumberTemplateRef", "headerTitleTemplateRef", "activeView", "cellUID", "focusedDate", "isActive", "min", "max", "selectedDates", "tabIndex", "disabled", "id", "weekNumber"], outputs: ["cellClick", "weekNumberCellClick", "activeDateChange", "todayButtonClick", "pageChange", "focusCalendar", "blurCalendar", "focusedCellChange"] }, { type: i8.ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }, { type: MultiViewCalendarComponent, selector: "kendo-multiviewcalendar", inputs: ["id", "focusedDate", "min", "max", "rangeValidation", "disabledDatesRangeValidation", "selection", "value", "disabled", "tabindex", "tabIndex", "isActive", "disabledDates", "activeView", "bottomView", "topView", "showViewHeader", "animateNavigation", "weekNumber", "activeRangeEnd", "selectionRange", "views", "orientation", "cellTemplate", "monthCellTemplate", "yearCellTemplate", "decadeCellTemplate", "centuryCellTemplate", "weekNumberTemplate", "headerTitleTemplate"], outputs: ["activeViewChange", "navigate", "cellEnter", "cellLeave", "valueChange", "blur", "focus", "focusCalendar"], exportAs: ["kendo-multiviewcalendar"] }, { type: MultiViewCalendarCustomMessagesComponent, selector: "kendo-multiviewcalendar-messages" }], directives: [{ type: CalendarLocalizedMessagesDirective, selector: "[kendoCalendarLocalizedMessages]" }, { type: i7.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
6707
|
+
`, isInline: true, components: [{ type: NavigationComponent, selector: "kendo-calendar-navigation", inputs: ["activeView", "min", "max", "focusedDate", "templateRef"], outputs: ["valueChange", "pageChange"] }, { type: ViewListComponent, selector: "kendo-calendar-viewlist", inputs: ["cellTemplateRef", "weekNumberTemplateRef", "headerTitleTemplateRef", "activeView", "cellUID", "focusedDate", "isActive", "min", "max", "selectedDates", "tabIndex", "disabled", "id", "weekNumber"], outputs: ["cellClick", "weekNumberCellClick", "activeDateChange", "todayButtonClick", "pageChange", "focusCalendar", "blurCalendar", "focusedCellChange"] }, { type: i8.ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }, { type: MultiViewCalendarComponent, selector: "kendo-multiviewcalendar", inputs: ["id", "focusedDate", "min", "max", "rangeValidation", "disabledDatesRangeValidation", "selection", "value", "disabled", "tabindex", "tabIndex", "isActive", "disabledDates", "activeView", "bottomView", "topView", "showViewHeader", "animateNavigation", "weekNumber", "activeRangeEnd", "selectionRange", "views", "orientation", "cellTemplate", "monthCellTemplate", "yearCellTemplate", "decadeCellTemplate", "centuryCellTemplate", "weekNumberTemplate", "headerTitleTemplate"], outputs: ["activeViewChange", "navigate", "cellEnter", "cellLeave", "valueChange", "blur", "focus", "focusCalendar", "onClosePopup", "onTabPress", "onShiftTabPress"], exportAs: ["kendo-multiviewcalendar"] }, { type: MultiViewCalendarCustomMessagesComponent, selector: "kendo-multiviewcalendar-messages" }], directives: [{ type: CalendarLocalizedMessagesDirective, selector: "[kendoCalendarLocalizedMessages]" }, { type: i7.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
6668
6708
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: CalendarComponent, decorators: [{
|
|
6669
6709
|
type: Component,
|
|
6670
6710
|
args: [{
|
|
@@ -11828,22 +11868,7 @@ TimeSelectorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
|
|
|
11828
11868
|
</div>
|
|
11829
11869
|
</ng-template>
|
|
11830
11870
|
</div>
|
|
11831
|
-
<div class="k-time-footer k-
|
|
11832
|
-
<button
|
|
11833
|
-
#cancel
|
|
11834
|
-
*ngIf="cancelButton"
|
|
11835
|
-
class="k-button k-time-cancel k-button-md k-rounded-md k-button-solid k-button-solid-base"
|
|
11836
|
-
type="button"
|
|
11837
|
-
[attr.title]="localization.get('cancelLabel')"
|
|
11838
|
-
[attr.aria-label]="localization.get('cancelLabel')"
|
|
11839
|
-
[kendoEventsOutsideAngular]="{
|
|
11840
|
-
click: handleReject,
|
|
11841
|
-
focus: handleFocus,
|
|
11842
|
-
blur: handleBlur
|
|
11843
|
-
}"
|
|
11844
|
-
[scope]="this"
|
|
11845
|
-
[disabled]="disabled"
|
|
11846
|
-
>{{localization.get('cancel')}}</button>
|
|
11871
|
+
<div class="k-time-footer k-actions k-actions-stretched k-actions-horizontal" *ngIf="setButton || cancelButton">
|
|
11847
11872
|
<button
|
|
11848
11873
|
#accept
|
|
11849
11874
|
*ngIf="setButton"
|
|
@@ -11860,6 +11885,21 @@ TimeSelectorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
|
|
|
11860
11885
|
[scope]="this"
|
|
11861
11886
|
[disabled]="disabled"
|
|
11862
11887
|
>{{localization.get('accept')}}</button>
|
|
11888
|
+
<button
|
|
11889
|
+
#cancel
|
|
11890
|
+
*ngIf="cancelButton"
|
|
11891
|
+
class="k-button k-time-cancel k-button-md k-rounded-md k-button-solid k-button-solid-base"
|
|
11892
|
+
type="button"
|
|
11893
|
+
[attr.title]="localization.get('cancelLabel')"
|
|
11894
|
+
[attr.aria-label]="localization.get('cancelLabel')"
|
|
11895
|
+
[kendoEventsOutsideAngular]="{
|
|
11896
|
+
click: handleReject,
|
|
11897
|
+
focus: handleFocus,
|
|
11898
|
+
blur: handleBlur
|
|
11899
|
+
}"
|
|
11900
|
+
[scope]="this"
|
|
11901
|
+
[disabled]="disabled"
|
|
11902
|
+
>{{localization.get('cancel')}}</button>
|
|
11863
11903
|
</div>
|
|
11864
11904
|
`, isInline: true, components: [{ type: TimeListComponent, selector: "kendo-timelist", inputs: ["min", "max", "part", "step", "disabled", "value", "isLast"], outputs: ["valueChange", "tabOutLastPart"] }], directives: [{ type: TimeSelectorLocalizedMessagesDirective, selector: "[kendoTimeSelectorLocalizedMessages]" }, { type: i7.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i8.EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }, { type: i7.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
11865
11905
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: TimeSelectorComponent, decorators: [{
|
|
@@ -11948,22 +11988,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
11948
11988
|
</div>
|
|
11949
11989
|
</ng-template>
|
|
11950
11990
|
</div>
|
|
11951
|
-
<div class="k-time-footer k-
|
|
11952
|
-
<button
|
|
11953
|
-
#cancel
|
|
11954
|
-
*ngIf="cancelButton"
|
|
11955
|
-
class="k-button k-time-cancel k-button-md k-rounded-md k-button-solid k-button-solid-base"
|
|
11956
|
-
type="button"
|
|
11957
|
-
[attr.title]="localization.get('cancelLabel')"
|
|
11958
|
-
[attr.aria-label]="localization.get('cancelLabel')"
|
|
11959
|
-
[kendoEventsOutsideAngular]="{
|
|
11960
|
-
click: handleReject,
|
|
11961
|
-
focus: handleFocus,
|
|
11962
|
-
blur: handleBlur
|
|
11963
|
-
}"
|
|
11964
|
-
[scope]="this"
|
|
11965
|
-
[disabled]="disabled"
|
|
11966
|
-
>{{localization.get('cancel')}}</button>
|
|
11991
|
+
<div class="k-time-footer k-actions k-actions-stretched k-actions-horizontal" *ngIf="setButton || cancelButton">
|
|
11967
11992
|
<button
|
|
11968
11993
|
#accept
|
|
11969
11994
|
*ngIf="setButton"
|
|
@@ -11980,6 +12005,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
11980
12005
|
[scope]="this"
|
|
11981
12006
|
[disabled]="disabled"
|
|
11982
12007
|
>{{localization.get('accept')}}</button>
|
|
12008
|
+
<button
|
|
12009
|
+
#cancel
|
|
12010
|
+
*ngIf="cancelButton"
|
|
12011
|
+
class="k-button k-time-cancel k-button-md k-rounded-md k-button-solid k-button-solid-base"
|
|
12012
|
+
type="button"
|
|
12013
|
+
[attr.title]="localization.get('cancelLabel')"
|
|
12014
|
+
[attr.aria-label]="localization.get('cancelLabel')"
|
|
12015
|
+
[kendoEventsOutsideAngular]="{
|
|
12016
|
+
click: handleReject,
|
|
12017
|
+
focus: handleFocus,
|
|
12018
|
+
blur: handleBlur
|
|
12019
|
+
}"
|
|
12020
|
+
[scope]="this"
|
|
12021
|
+
[disabled]="disabled"
|
|
12022
|
+
>{{localization.get('cancel')}}</button>
|
|
11983
12023
|
</div>
|
|
11984
12024
|
`
|
|
11985
12025
|
}]
|
|
@@ -15062,7 +15102,7 @@ DateTimePickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0"
|
|
|
15062
15102
|
</div>
|
|
15063
15103
|
<div
|
|
15064
15104
|
*ngIf="!isAdaptive"
|
|
15065
|
-
class="k-datetime-footer k-
|
|
15105
|
+
class="k-datetime-footer k-actions k-actions-stretched k-actions-horizontal"
|
|
15066
15106
|
[kendoEventsOutsideAngular]="{
|
|
15067
15107
|
focusin: handleFocus,
|
|
15068
15108
|
focusout: handleBlur
|
|
@@ -15070,34 +15110,34 @@ DateTimePickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0"
|
|
|
15070
15110
|
[scope]="this"
|
|
15071
15111
|
>
|
|
15072
15112
|
<button
|
|
15073
|
-
*ngIf="cancelButton"
|
|
15074
15113
|
type="button"
|
|
15075
|
-
class="k-button k-time-
|
|
15076
|
-
[ngClass]="popupButtonsClasses()"
|
|
15077
|
-
[attr.title]="localization.get('
|
|
15078
|
-
[attr.aria-label]="localization.get('
|
|
15114
|
+
class="k-button k-time-accept"
|
|
15115
|
+
[ngClass]="popupButtonsClasses('primary')"
|
|
15116
|
+
[attr.title]="localization.get('acceptLabel')"
|
|
15117
|
+
[attr.aria-label]="localization.get('acceptLabel')"
|
|
15118
|
+
[disabled]="!calendarValue"
|
|
15079
15119
|
[kendoEventsOutsideAngular]="{
|
|
15080
|
-
click:
|
|
15120
|
+
click: handleAccept,
|
|
15081
15121
|
'keydown.tab': handleTab
|
|
15082
15122
|
}"
|
|
15083
15123
|
[scope]="this"
|
|
15084
15124
|
>
|
|
15085
|
-
{{localization.get('
|
|
15125
|
+
{{localization.get('accept')}}
|
|
15086
15126
|
</button>
|
|
15087
15127
|
<button
|
|
15128
|
+
*ngIf="cancelButton"
|
|
15088
15129
|
type="button"
|
|
15089
|
-
class="k-button k-time-
|
|
15090
|
-
[ngClass]="popupButtonsClasses(
|
|
15091
|
-
[attr.title]="localization.get('
|
|
15092
|
-
[attr.aria-label]="localization.get('
|
|
15093
|
-
[disabled]="!calendarValue"
|
|
15130
|
+
class="k-button k-time-cancel"
|
|
15131
|
+
[ngClass]="popupButtonsClasses()"
|
|
15132
|
+
[attr.title]="localization.get('cancelLabel')"
|
|
15133
|
+
[attr.aria-label]="localization.get('cancelLabel')"
|
|
15094
15134
|
[kendoEventsOutsideAngular]="{
|
|
15095
|
-
click:
|
|
15135
|
+
click: handleCancel,
|
|
15096
15136
|
'keydown.tab': handleTab
|
|
15097
15137
|
}"
|
|
15098
15138
|
[scope]="this"
|
|
15099
15139
|
>
|
|
15100
|
-
{{localization.get('
|
|
15140
|
+
{{localization.get('cancel')}}
|
|
15101
15141
|
</button>
|
|
15102
15142
|
</div>
|
|
15103
15143
|
</div>
|
|
@@ -15424,7 +15464,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
15424
15464
|
</div>
|
|
15425
15465
|
<div
|
|
15426
15466
|
*ngIf="!isAdaptive"
|
|
15427
|
-
class="k-datetime-footer k-
|
|
15467
|
+
class="k-datetime-footer k-actions k-actions-stretched k-actions-horizontal"
|
|
15428
15468
|
[kendoEventsOutsideAngular]="{
|
|
15429
15469
|
focusin: handleFocus,
|
|
15430
15470
|
focusout: handleBlur
|
|
@@ -15432,34 +15472,34 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
15432
15472
|
[scope]="this"
|
|
15433
15473
|
>
|
|
15434
15474
|
<button
|
|
15435
|
-
*ngIf="cancelButton"
|
|
15436
15475
|
type="button"
|
|
15437
|
-
class="k-button k-time-
|
|
15438
|
-
[ngClass]="popupButtonsClasses()"
|
|
15439
|
-
[attr.title]="localization.get('
|
|
15440
|
-
[attr.aria-label]="localization.get('
|
|
15476
|
+
class="k-button k-time-accept"
|
|
15477
|
+
[ngClass]="popupButtonsClasses('primary')"
|
|
15478
|
+
[attr.title]="localization.get('acceptLabel')"
|
|
15479
|
+
[attr.aria-label]="localization.get('acceptLabel')"
|
|
15480
|
+
[disabled]="!calendarValue"
|
|
15441
15481
|
[kendoEventsOutsideAngular]="{
|
|
15442
|
-
click:
|
|
15482
|
+
click: handleAccept,
|
|
15443
15483
|
'keydown.tab': handleTab
|
|
15444
15484
|
}"
|
|
15445
15485
|
[scope]="this"
|
|
15446
15486
|
>
|
|
15447
|
-
{{localization.get('
|
|
15487
|
+
{{localization.get('accept')}}
|
|
15448
15488
|
</button>
|
|
15449
15489
|
<button
|
|
15490
|
+
*ngIf="cancelButton"
|
|
15450
15491
|
type="button"
|
|
15451
|
-
class="k-button k-time-
|
|
15452
|
-
[ngClass]="popupButtonsClasses(
|
|
15453
|
-
[attr.title]="localization.get('
|
|
15454
|
-
[attr.aria-label]="localization.get('
|
|
15455
|
-
[disabled]="!calendarValue"
|
|
15492
|
+
class="k-button k-time-cancel"
|
|
15493
|
+
[ngClass]="popupButtonsClasses()"
|
|
15494
|
+
[attr.title]="localization.get('cancelLabel')"
|
|
15495
|
+
[attr.aria-label]="localization.get('cancelLabel')"
|
|
15456
15496
|
[kendoEventsOutsideAngular]="{
|
|
15457
|
-
click:
|
|
15497
|
+
click: handleCancel,
|
|
15458
15498
|
'keydown.tab': handleTab
|
|
15459
15499
|
}"
|
|
15460
15500
|
[scope]="this"
|
|
15461
15501
|
>
|
|
15462
|
-
{{localization.get('
|
|
15502
|
+
{{localization.get('cancel')}}
|
|
15463
15503
|
</button>
|
|
15464
15504
|
</div>
|
|
15465
15505
|
</div>
|
|
@@ -16351,6 +16391,48 @@ class DateRangePopupComponent {
|
|
|
16351
16391
|
}
|
|
16352
16392
|
this.windowSize = windowSize();
|
|
16353
16393
|
}
|
|
16394
|
+
/**
|
|
16395
|
+
* @hidden
|
|
16396
|
+
*/
|
|
16397
|
+
closePopup(event) {
|
|
16398
|
+
event.preventDefault();
|
|
16399
|
+
event.stopPropagation();
|
|
16400
|
+
this.toggle(false);
|
|
16401
|
+
if (this.dateRangeService.activeRangeEnd === 'start' || !this.dateRangeService.activeRangeEnd) {
|
|
16402
|
+
this.dateRangeService.startInput$.value.focus();
|
|
16403
|
+
}
|
|
16404
|
+
else {
|
|
16405
|
+
this.dateRangeService.endInput$.value.focus();
|
|
16406
|
+
}
|
|
16407
|
+
;
|
|
16408
|
+
}
|
|
16409
|
+
/**
|
|
16410
|
+
* @hidden
|
|
16411
|
+
*/
|
|
16412
|
+
handleTab(event) {
|
|
16413
|
+
event.preventDefault();
|
|
16414
|
+
event.stopPropagation();
|
|
16415
|
+
if (this.dateRangeService.activeRangeEnd === 'start' || !this.dateRangeService.activeRangeEnd) {
|
|
16416
|
+
this.dateRangeService.setActiveRangeEnd('end');
|
|
16417
|
+
}
|
|
16418
|
+
else {
|
|
16419
|
+
this.dateRangeService.endInput$.value.focus();
|
|
16420
|
+
}
|
|
16421
|
+
}
|
|
16422
|
+
;
|
|
16423
|
+
/**
|
|
16424
|
+
* @hidden
|
|
16425
|
+
*/
|
|
16426
|
+
handleShiftTab(event) {
|
|
16427
|
+
event.preventDefault();
|
|
16428
|
+
event.stopPropagation();
|
|
16429
|
+
if (this.dateRangeService.activeRangeEnd === 'end') {
|
|
16430
|
+
this.dateRangeService.setActiveRangeEnd('start');
|
|
16431
|
+
}
|
|
16432
|
+
else {
|
|
16433
|
+
this.dateRangeService.startInput$.value.focus();
|
|
16434
|
+
}
|
|
16435
|
+
}
|
|
16354
16436
|
handleWindowBlur() {
|
|
16355
16437
|
if (!this.show || this.actionSheet.expanded) {
|
|
16356
16438
|
return;
|
|
@@ -16495,7 +16577,7 @@ DateRangePopupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0"
|
|
|
16495
16577
|
</ng-container>
|
|
16496
16578
|
<ng-container #container></ng-container>
|
|
16497
16579
|
<ng-template #defaultTemplate>
|
|
16498
|
-
<kendo-multiviewcalendar kendoDateRangeSelection></kendo-multiviewcalendar>
|
|
16580
|
+
<kendo-multiviewcalendar kendoDateRangeSelection (onClosePopup)="closePopup($event)" (onTabPress)="handleTab($event)" (onShiftTabPress)="handleShiftTab($event)"></kendo-multiviewcalendar>
|
|
16499
16581
|
</ng-template>
|
|
16500
16582
|
|
|
16501
16583
|
<kendo-actionsheet
|
|
@@ -16563,7 +16645,7 @@ DateRangePopupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0"
|
|
|
16563
16645
|
</div>
|
|
16564
16646
|
</ng-template>
|
|
16565
16647
|
</kendo-actionsheet>
|
|
16566
|
-
`, isInline: true, components: [{ type: MultiViewCalendarComponent, selector: "kendo-multiviewcalendar", inputs: ["id", "focusedDate", "min", "max", "rangeValidation", "disabledDatesRangeValidation", "selection", "value", "disabled", "tabindex", "tabIndex", "isActive", "disabledDates", "activeView", "bottomView", "topView", "showViewHeader", "animateNavigation", "weekNumber", "activeRangeEnd", "selectionRange", "views", "orientation", "cellTemplate", "monthCellTemplate", "yearCellTemplate", "decadeCellTemplate", "centuryCellTemplate", "weekNumberTemplate", "headerTitleTemplate"], outputs: ["activeViewChange", "navigate", "cellEnter", "cellLeave", "valueChange", "blur", "focus", "focusCalendar"], exportAs: ["kendo-multiviewcalendar"] }, { type: i9.ActionSheetComponent, selector: "kendo-actionsheet", inputs: ["title", "subtitle", "items", "cssClass", "animation", "expanded", "titleId"], outputs: ["expandedChange", "expand", "collapse", "itemClick", "overlayClick"], exportAs: ["kendoActionSheet"] }, { type: i8.ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }, { type: i10.Button, selector: "button[kendoButton], span[kendoButton], kendo-button", inputs: ["toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }], directives: [{ type: DateRangePopupLocalizedMessagesDirective, selector: "[kendoDateRangePopupLocalizedMessages]" }, { type: DateRangeSelectionDirective, selector: "[kendoDateRangeSelection]", inputs: ["autoCorrectOn", "selectionRange", "activeRangeEnd", "shouldSetRange"], outputs: ["activeRangeEndChange", "selectionRangeChange"] }, { type: i9.ActionSheetTemplateDirective, selector: "[kendoActionSheetTemplate]" }, { type: i7.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
16648
|
+
`, isInline: true, components: [{ type: MultiViewCalendarComponent, selector: "kendo-multiviewcalendar", inputs: ["id", "focusedDate", "min", "max", "rangeValidation", "disabledDatesRangeValidation", "selection", "value", "disabled", "tabindex", "tabIndex", "isActive", "disabledDates", "activeView", "bottomView", "topView", "showViewHeader", "animateNavigation", "weekNumber", "activeRangeEnd", "selectionRange", "views", "orientation", "cellTemplate", "monthCellTemplate", "yearCellTemplate", "decadeCellTemplate", "centuryCellTemplate", "weekNumberTemplate", "headerTitleTemplate"], outputs: ["activeViewChange", "navigate", "cellEnter", "cellLeave", "valueChange", "blur", "focus", "focusCalendar", "onClosePopup", "onTabPress", "onShiftTabPress"], exportAs: ["kendo-multiviewcalendar"] }, { type: i9.ActionSheetComponent, selector: "kendo-actionsheet", inputs: ["title", "subtitle", "items", "cssClass", "animation", "expanded", "titleId"], outputs: ["expandedChange", "expand", "collapse", "itemClick", "overlayClick"], exportAs: ["kendoActionSheet"] }, { type: i8.ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }, { type: i10.Button, selector: "button[kendoButton], span[kendoButton], kendo-button", inputs: ["toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }], directives: [{ type: DateRangePopupLocalizedMessagesDirective, selector: "[kendoDateRangePopupLocalizedMessages]" }, { type: DateRangeSelectionDirective, selector: "[kendoDateRangeSelection]", inputs: ["autoCorrectOn", "selectionRange", "activeRangeEnd", "shouldSetRange"], outputs: ["activeRangeEndChange", "selectionRangeChange"] }, { type: i9.ActionSheetTemplateDirective, selector: "[kendoActionSheetTemplate]" }, { type: i7.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
16567
16649
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: DateRangePopupComponent, decorators: [{
|
|
16568
16650
|
type: Component,
|
|
16569
16651
|
args: [{
|
|
@@ -16593,7 +16675,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
16593
16675
|
</ng-container>
|
|
16594
16676
|
<ng-container #container></ng-container>
|
|
16595
16677
|
<ng-template #defaultTemplate>
|
|
16596
|
-
<kendo-multiviewcalendar kendoDateRangeSelection></kendo-multiviewcalendar>
|
|
16678
|
+
<kendo-multiviewcalendar kendoDateRangeSelection (onClosePopup)="closePopup($event)" (onTabPress)="handleTab($event)" (onShiftTabPress)="handleShiftTab($event)"></kendo-multiviewcalendar>
|
|
16597
16679
|
</ng-template>
|
|
16598
16680
|
|
|
16599
16681
|
<kendo-actionsheet
|
|
@@ -16837,7 +16919,6 @@ class DateRangeInput {
|
|
|
16837
16919
|
}
|
|
16838
16920
|
[
|
|
16839
16921
|
this.input.onBlur.subscribe(() => this.deactivate()),
|
|
16840
|
-
this.input.onFocus.pipe(filter(() => !this.popupCalendarActivated)).subscribe(() => this.activate()),
|
|
16841
16922
|
this.input.valueUpdate.subscribe(value => this.updateRange(value, 'change')),
|
|
16842
16923
|
this.dateRangeService.activeRangeEnd$.subscribe(() => {
|
|
16843
16924
|
if (this.navigateCalendarOnFocus) {
|