@progress/kendo-angular-dateinputs 5.3.1-dev.202112011809 → 6.0.0-dev.202201181611
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/LICENSE.md +1 -1
- package/NOTICE.txt +119 -79
- package/README.md +1 -1
- package/dist/cdn/js/kendo-angular-dateinputs.js +2 -2
- package/dist/cdn/main.js +1 -1
- package/dist/es/calendar/calendar.component.js +14 -2
- package/dist/es/calendar/header.component.js +1 -1
- package/dist/es/calendar/multiview-calendar.component.js +28 -12
- package/dist/es/calendar/multiview-calendar.module.js +9 -1
- package/dist/es/calendar/services/dom.service.js +1 -1
- package/dist/es/calendar/view.component.js +1 -1
- package/dist/es/common/models/fillmode.js +4 -0
- package/dist/es/common/models/rounded.js +4 -0
- package/dist/es/common/models/size.js +4 -0
- package/dist/es/dateinput/dateinput.component.js +143 -18
- package/dist/es/datepicker/datepicker.component.js +130 -13
- package/dist/es/daterange/date-range-input.js +1 -1
- package/dist/es/datetimepicker/datetimepicker.component.js +147 -11
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/timepicker/services/dom.service.js +12 -8
- package/dist/es/timepicker/timelist.component.js +3 -2
- package/dist/es/timepicker/timepicker.component.js +130 -13
- package/dist/es/timepicker/timeselector.component.js +2 -2
- package/dist/es/util.js +37 -0
- package/dist/es2015/calendar/calendar.component.d.ts +7 -0
- package/dist/es2015/calendar/calendar.component.js +14 -2
- package/dist/es2015/calendar/header.component.js +4 -4
- package/dist/es2015/calendar/multiview-calendar.component.d.ts +8 -2
- package/dist/es2015/calendar/multiview-calendar.component.js +31 -11
- package/dist/es2015/calendar/multiview-calendar.module.js +9 -1
- package/dist/es2015/calendar/services/dom.service.js +1 -1
- package/dist/es2015/calendar/view.component.js +1 -1
- package/dist/es2015/common/models/fillmode.d.ts +14 -0
- package/dist/es2015/common/models/fillmode.js +4 -0
- package/dist/es2015/common/models/rounded.d.ts +15 -0
- package/dist/es2015/common/models/rounded.js +4 -0
- package/dist/es2015/common/models/size.d.ts +14 -0
- package/dist/es2015/common/models/size.js +4 -0
- package/dist/es2015/dateinput/dateinput.component.d.ts +49 -8
- package/dist/es2015/dateinput/dateinput.component.js +183 -68
- package/dist/es2015/datepicker/datepicker.component.d.ts +47 -5
- package/dist/es2015/datepicker/datepicker.component.js +155 -49
- package/dist/es2015/daterange/date-range-input.js +1 -1
- package/dist/es2015/datetimepicker/datetimepicker.component.d.ts +56 -6
- package/dist/es2015/datetimepicker/datetimepicker.component.js +186 -63
- package/dist/es2015/index.metadata.json +1 -1
- package/dist/es2015/package-metadata.js +1 -1
- package/dist/es2015/timepicker/services/dom.service.d.ts +1 -0
- package/dist/es2015/timepicker/services/dom.service.js +12 -8
- package/dist/es2015/timepicker/timelist.component.js +3 -2
- package/dist/es2015/timepicker/timepicker.component.d.ts +50 -5
- package/dist/es2015/timepicker/timepicker.component.js +174 -69
- package/dist/es2015/timepicker/timeselector.component.js +7 -5
- package/dist/es2015/util.d.ts +18 -0
- package/dist/es2015/util.js +37 -0
- package/dist/fesm2015/index.js +821 -290
- package/dist/fesm5/index.js +663 -92
- package/dist/npm/calendar/calendar.component.js +14 -2
- package/dist/npm/calendar/header.component.js +1 -1
- package/dist/npm/calendar/multiview-calendar.component.js +27 -11
- package/dist/npm/calendar/multiview-calendar.module.js +9 -1
- package/dist/npm/calendar/services/dom.service.js +1 -1
- package/dist/npm/calendar/view.component.js +1 -1
- package/dist/npm/common/models/fillmode.js +6 -0
- package/dist/npm/common/models/rounded.js +6 -0
- package/dist/npm/common/models/size.js +6 -0
- package/dist/npm/dateinput/dateinput.component.js +142 -17
- package/dist/npm/datepicker/datepicker.component.js +129 -12
- package/dist/npm/daterange/date-range-input.js +1 -1
- package/dist/npm/datetimepicker/datetimepicker.component.js +146 -10
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/timepicker/services/dom.service.js +15 -10
- package/dist/npm/timepicker/timelist.component.js +3 -2
- package/dist/npm/timepicker/timepicker.component.js +129 -12
- package/dist/npm/timepicker/timeselector.component.js +2 -2
- package/dist/npm/util.js +37 -0
- package/dist/systemjs/kendo-angular-dateinputs.js +1 -1
- package/package.json +2 -2
|
@@ -694,6 +694,14 @@ var CalendarComponent = /** @class */ (function () {
|
|
|
694
694
|
return null;
|
|
695
695
|
}
|
|
696
696
|
};
|
|
697
|
+
/**
|
|
698
|
+
* @hidden
|
|
699
|
+
*/
|
|
700
|
+
CalendarComponent.prototype.handleNavigate = function (event) {
|
|
701
|
+
this.focusedDate = event.focusedDate;
|
|
702
|
+
this.activeView = event.activeView;
|
|
703
|
+
this.emitNavigate(this.focusedDate);
|
|
704
|
+
};
|
|
697
705
|
/**
|
|
698
706
|
* @hidden
|
|
699
707
|
*/
|
|
@@ -835,6 +843,10 @@ var CalendarComponent = /** @class */ (function () {
|
|
|
835
843
|
}
|
|
836
844
|
};
|
|
837
845
|
CalendarComponent.prototype.handleKeydown = function (args) {
|
|
846
|
+
var headerActive = this.type === 'classic' && this.multiViewCalendar.isHeaderActive;
|
|
847
|
+
if (headerActive) {
|
|
848
|
+
return;
|
|
849
|
+
}
|
|
838
850
|
// reserve the alt + arrow key commands for the picker
|
|
839
851
|
var arrowKeyPressed = [kendo_angular_common_1.Keys.ArrowUp, kendo_angular_common_1.Keys.ArrowRight, kendo_angular_common_1.Keys.ArrowDown, kendo_angular_common_1.Keys.ArrowLeft].indexOf(args.keyCode) !== -1;
|
|
840
852
|
if (utils_1.isPresent(this.pickerService) && arrowKeyPressed && args.altKey) {
|
|
@@ -1083,7 +1095,7 @@ var CalendarComponent = /** @class */ (function () {
|
|
|
1083
1095
|
], CalendarComponent.prototype, "calendarTabIndex", null);
|
|
1084
1096
|
tslib_1.__decorate([
|
|
1085
1097
|
core_1.HostBinding('attr.aria-disabled'),
|
|
1086
|
-
core_1.HostBinding('class.k-
|
|
1098
|
+
core_1.HostBinding('class.k-disabled'),
|
|
1087
1099
|
tslib_1.__metadata("design:type", Boolean),
|
|
1088
1100
|
tslib_1.__metadata("design:paramtypes", [])
|
|
1089
1101
|
], CalendarComponent.prototype, "ariaDisabled", null);
|
|
@@ -1107,7 +1119,7 @@ var CalendarComponent = /** @class */ (function () {
|
|
|
1107
1119
|
selection_service_1.SelectionService
|
|
1108
1120
|
],
|
|
1109
1121
|
selector: 'kendo-calendar',
|
|
1110
|
-
template: "\n <ng-container kendoCalendarLocalizedMessages\n i18n-today=\"kendo.calendar.today|The label for the today button in the calendar header\"\n today=\"Today\"\n\n i18n-prevButtonTitle=\"kendo.calendar.prevButtonTitle|The title of the previous button in the Classic calendar\"\n prevButtonTitle=\"Navigate to previous view\"\n\n i18n-nextButtonTitle=\"kendo.calendar.nextButtonTitle|The title of the next button in the Classic calendar\"\n nextButtonTitle=\"Navigate to next view\"\n >\n </ng-container>\n <ng-container *ngIf=\"type === 'infinite'\">\n <kendo-calendar-navigation\n *ngIf=\"navigation\"\n [activeView]=\"activeViewEnum\"\n [focusedDate]=\"focusedDate\"\n [min]=\"min\"\n [max]=\"max\"\n [templateRef]=\"navigationItemTemplate?.templateRef\"\n (valueChange)=\"handleNavigation($event)\"\n (pageChange)=\"onPageChange()\"\n >\n </kendo-calendar-navigation>\n <kendo-calendar-viewlist\n [activeView]=\"activeViewEnum\"\n [isActive]=\"isActive\"\n [cellTemplateRef]=\"activeCellTemplate()?.templateRef\"\n [headerTitleTemplateRef]=\"headerTitleTemplate?.templateRef\"\n [weekNumberTemplateRef]=\"weekNumberTemplate?.templateRef\"\n [cellUID]=\"cellUID\"\n [min]=\"min\"\n [max]=\"max\"\n [focusedDate]=\"focusedDate\"\n [weekNumber]=\"weekNumber\"\n [selectedDates]=\"selectedDates\"\n (todayButtonClick)=\"handleDateChange({\n selectedDates: [$event],\n focusedDate: $event\n })\"\n (cellClick)=\"handleCellClick($event)\"\n (weekNumberCellClick)=\"handleWeekNumberClick($event)\"\n (activeDateChange)=\"handleActiveDateChange($event)\"\n (pageChange)=\"onPageChange()\"\n >\n </kendo-calendar-viewlist>\n <kendo-resize-sensor (resize)=\"onResize()\"></kendo-resize-sensor>\n </ng-container>\n <ng-container *ngIf=\"type === 'classic'\">\n <kendo-multiviewcalendar\n #multiviewcalendar\n [views]=\"1\"\n [min]=\"min\"\n [max]=\"max\"\n [isActive]=\"isActive\"\n [activeView]=\"activeView\"\n [bottomView]=\"bottomView\"\n [topView]=\"topView\"\n [weekNumber]=\"weekNumber\"\n [animateNavigation]=\"animateNavigation\"\n [cellTemplate]=\"activeCellTemplate()\"\n [monthCellTemplate]=\"monthCellTemplate\"\n [yearCellTemplate]=\"yearCellTemplate\"\n [decadeCellTemplate]=\"decadeCellTemplate\"\n [centuryCellTemplate]=\"centuryCellTemplate\"\n [headerTitleTemplate]=\"headerTitleTemplate\"\n [weekNumberTemplate]=\"weekNumberTemplate\"\n [focusedDate]=\"focusedDate\"\n [selection]=\"selection\"\n [value]=\"value\"\n [disabledDates]=\"disabledDates\"\n (activeViewChange)=\"handleActiveViewChange($event)\"\n (navigate)=\"
|
|
1122
|
+
template: "\n <ng-container kendoCalendarLocalizedMessages\n i18n-today=\"kendo.calendar.today|The label for the today button in the calendar header\"\n today=\"Today\"\n\n i18n-prevButtonTitle=\"kendo.calendar.prevButtonTitle|The title of the previous button in the Classic calendar\"\n prevButtonTitle=\"Navigate to previous view\"\n\n i18n-nextButtonTitle=\"kendo.calendar.nextButtonTitle|The title of the next button in the Classic calendar\"\n nextButtonTitle=\"Navigate to next view\"\n >\n </ng-container>\n <ng-container *ngIf=\"type === 'infinite'\">\n <kendo-calendar-navigation\n *ngIf=\"navigation\"\n [activeView]=\"activeViewEnum\"\n [focusedDate]=\"focusedDate\"\n [min]=\"min\"\n [max]=\"max\"\n [templateRef]=\"navigationItemTemplate?.templateRef\"\n (valueChange)=\"handleNavigation($event)\"\n (pageChange)=\"onPageChange()\"\n >\n </kendo-calendar-navigation>\n <kendo-calendar-viewlist\n [activeView]=\"activeViewEnum\"\n [isActive]=\"isActive\"\n [cellTemplateRef]=\"activeCellTemplate()?.templateRef\"\n [headerTitleTemplateRef]=\"headerTitleTemplate?.templateRef\"\n [weekNumberTemplateRef]=\"weekNumberTemplate?.templateRef\"\n [cellUID]=\"cellUID\"\n [min]=\"min\"\n [max]=\"max\"\n [focusedDate]=\"focusedDate\"\n [weekNumber]=\"weekNumber\"\n [selectedDates]=\"selectedDates\"\n (todayButtonClick)=\"handleDateChange({\n selectedDates: [$event],\n focusedDate: $event\n })\"\n (cellClick)=\"handleCellClick($event)\"\n (weekNumberCellClick)=\"handleWeekNumberClick($event)\"\n (activeDateChange)=\"handleActiveDateChange($event)\"\n (pageChange)=\"onPageChange()\"\n >\n </kendo-calendar-viewlist>\n <kendo-resize-sensor (resize)=\"onResize()\"></kendo-resize-sensor>\n </ng-container>\n <ng-container *ngIf=\"type === 'classic'\">\n <kendo-multiviewcalendar\n #multiviewcalendar\n [views]=\"1\"\n [min]=\"min\"\n [max]=\"max\"\n [isActive]=\"isActive\"\n [activeView]=\"activeView\"\n [bottomView]=\"bottomView\"\n [topView]=\"topView\"\n [weekNumber]=\"weekNumber\"\n [animateNavigation]=\"animateNavigation\"\n [cellTemplate]=\"activeCellTemplate()\"\n [monthCellTemplate]=\"monthCellTemplate\"\n [yearCellTemplate]=\"yearCellTemplate\"\n [decadeCellTemplate]=\"decadeCellTemplate\"\n [centuryCellTemplate]=\"centuryCellTemplate\"\n [headerTitleTemplate]=\"headerTitleTemplate\"\n [weekNumberTemplate]=\"weekNumberTemplate\"\n [focusedDate]=\"focusedDate\"\n [selection]=\"selection\"\n [value]=\"value\"\n [disabledDates]=\"disabledDates\"\n (activeViewChange)=\"handleActiveViewChange($event)\"\n (navigate)=\"handleNavigate($event)\"\n (valueChange)=\"handleMultiViewCalendarValueChange($event, multiviewcalendar.focusedDate)\"\n (focus)=\"handleFocus()\"\n (blur)=\"handleBlur($event)\"\n >\n <kendo-multiviewcalendar-messages\n [today]=\"localization.get('today')\"\n [prevButtonTitle]=\"localization.get('prevButtonTitle')\"\n [nextButtonTitle]=\"localization.get('nextButtonTitle')\"\n >\n </kendo-multiviewcalendar-messages>\n </kendo-multiviewcalendar>\n </ng-container>\n "
|
|
1111
1123
|
}),
|
|
1112
1124
|
tslib_1.__param(12, core_1.Optional()),
|
|
1113
1125
|
tslib_1.__metadata("design:paramtypes", [bus_view_service_1.BusViewService,
|
|
@@ -159,7 +159,7 @@ var HeaderComponent = /** @class */ (function () {
|
|
|
159
159
|
HeaderComponent = tslib_1.__decorate([
|
|
160
160
|
core_1.Component({
|
|
161
161
|
selector: 'kendo-calendar-header',
|
|
162
|
-
template: "\n <span class=\"k-button k-flat k-
|
|
162
|
+
template: "\n <span class=\"k-button k-button-md k-rounded-md k-button-flat k-button-flat-base k-calendar-title\" [class.k-disabled]=\"!navigate\"\n [kendoEventsOutsideAngular]=\"{\n click: handleNavigation\n }\"\n [scope]=\"this\">\n <ng-template [ngIf]=\"!templateRef\">{{title}}</ng-template>\n <ng-template\n [ngIf]=\"templateRef\"\n [ngTemplateOutlet]=\"templateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: title, activeView: activeViewValue, date: currentDate }\"\n ></ng-template>\n </span>\n <span class=\"k-spacer\"></span>\n <span class=\"k-calendar-nav k-hstack\">\n <button\n *ngIf=\"showNavigationButtons\"\n class=\"k-button k-button-md k-rounded-md k-button-flat k-button-flat-base k-icon-button k-prev-view\"\n type=\"button\"\n [attr.aria-disabled]=\"isPrevDisabled\"\n [disabled]=\"isPrevDisabled\"\n [title]=\"prevButtonTitle\"\n (click)=\"prevButtonClick.emit()\"\n >\n <span class=\"k-icon k-i-arrow-60-left\"></span>\n </button>\n <span\n class=\"k-today k-nav-today\"\n [class.k-disabled]=\"!todayAvailable\"\n [kendoEventsOutsideAngular]=\"{\n click: handleTodayClick\n }\"\n [scope]=\"this\"\n >\n {{ todayMessage }}\n </span>\n <button\n *ngIf=\"showNavigationButtons\"\n class=\"k-button k-button-md k-rounded-md k-button-flat k-button-flat-base k-icon-button k-next-view\"\n type=\"button\"\n [attr.aria-disabled]=\"isNextDisabled\"\n [disabled]=\"isNextDisabled\"\n [title]=\"nextButtonTitle\"\n (click)=\"nextButtonClick.emit()\"\n >\n <span class=\"k-icon k-i-arrow-60-right\"></span>\n </button>\n </span>\n "
|
|
163
163
|
}),
|
|
164
164
|
tslib_1.__metadata("design:paramtypes", [bus_view_service_1.BusViewService,
|
|
165
165
|
core_1.ChangeDetectorRef,
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
"use strict";
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
7
|
var tslib_1 = require("tslib");
|
|
8
|
-
/* tslint:disable:no-forward-ref */
|
|
9
8
|
var core_1 = require("@angular/core");
|
|
10
9
|
var forms_1 = require("@angular/forms");
|
|
11
10
|
var kendo_angular_l10n_1 = require("@progress/kendo-angular-l10n");
|
|
@@ -33,6 +32,7 @@ var defaults_1 = require("../defaults");
|
|
|
33
32
|
var util_1 = require("../util");
|
|
34
33
|
var rxjs_1 = require("rxjs");
|
|
35
34
|
var utils_1 = require("../common/utils");
|
|
35
|
+
var picker_service_1 = require("../common/picker.service");
|
|
36
36
|
var BOTTOM_VIEW_DOC_LINK = 'http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-bottomview';
|
|
37
37
|
var TOP_VIEW_DOC_LINK = 'http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-topview';
|
|
38
38
|
var MIN_DOC_LINK = 'http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-min';
|
|
@@ -69,7 +69,7 @@ exports.RANGE_CALENDAR_RANGE_VALIDATORS = {
|
|
|
69
69
|
* ```
|
|
70
70
|
*/
|
|
71
71
|
var MultiViewCalendarComponent = /** @class */ (function () {
|
|
72
|
-
function MultiViewCalendarComponent(bus, element, navigator, renderer, cdr, zone, disabledDatesService, selectionService) {
|
|
72
|
+
function MultiViewCalendarComponent(bus, element, navigator, renderer, cdr, zone, disabledDatesService, selectionService, pickerService) {
|
|
73
73
|
this.bus = bus;
|
|
74
74
|
this.element = element;
|
|
75
75
|
this.navigator = navigator;
|
|
@@ -78,6 +78,7 @@ var MultiViewCalendarComponent = /** @class */ (function () {
|
|
|
78
78
|
this.zone = zone;
|
|
79
79
|
this.disabledDatesService = disabledDatesService;
|
|
80
80
|
this.selectionService = selectionService;
|
|
81
|
+
this.pickerService = pickerService;
|
|
81
82
|
/**
|
|
82
83
|
* @hidden
|
|
83
84
|
*/
|
|
@@ -448,21 +449,22 @@ var MultiViewCalendarComponent = /** @class */ (function () {
|
|
|
448
449
|
/**
|
|
449
450
|
* @hidden
|
|
450
451
|
*/
|
|
451
|
-
MultiViewCalendarComponent.prototype.
|
|
452
|
-
var
|
|
453
|
-
if (!this.element.nativeElement.contains(
|
|
452
|
+
MultiViewCalendarComponent.prototype.handleFocusout = function (event) {
|
|
453
|
+
var relatedTarget = event.relatedTarget;
|
|
454
|
+
if (!this.element.nativeElement.contains(relatedTarget)) {
|
|
454
455
|
this.blurEvent.emit(event);
|
|
455
456
|
this.onControlTouched();
|
|
456
457
|
}
|
|
457
458
|
this.isActive = false;
|
|
458
459
|
this.isHovered = false; //ensure that hovered is also not active
|
|
459
|
-
this.isHeaderActive = this.headerElement.nativeElement.contains(
|
|
460
|
+
this.isHeaderActive = this.headerElement.nativeElement.contains(relatedTarget);
|
|
460
461
|
};
|
|
461
462
|
/**
|
|
462
463
|
* @hidden
|
|
463
464
|
*/
|
|
464
465
|
MultiViewCalendarComponent.prototype.handleFocus = function () {
|
|
465
466
|
this.isActive = true;
|
|
467
|
+
this.isHeaderActive = false;
|
|
466
468
|
};
|
|
467
469
|
/**
|
|
468
470
|
* @hidden
|
|
@@ -495,7 +497,13 @@ var MultiViewCalendarComponent = /** @class */ (function () {
|
|
|
495
497
|
* @hidden
|
|
496
498
|
*/
|
|
497
499
|
MultiViewCalendarComponent.prototype.keydown = function (event) {
|
|
500
|
+
if (this.isHeaderActive) {
|
|
501
|
+
return;
|
|
502
|
+
}
|
|
498
503
|
if (event.keyCode === kendo_angular_common_1.Keys.Enter) {
|
|
504
|
+
if (utils_1.isPresent(this.pickerService)) {
|
|
505
|
+
event.preventDefault(); // Don't submit form from Datepicker popup
|
|
506
|
+
}
|
|
499
507
|
this.performSelection(this.focusedDate, event);
|
|
500
508
|
}
|
|
501
509
|
var candidate = util_1.dateInRange(this.navigator.move(this.focusedDate, this.navigator.action(event), this.activeViewEnum), this.min, this.max);
|
|
@@ -572,6 +580,12 @@ var MultiViewCalendarComponent = /** @class */ (function () {
|
|
|
572
580
|
}
|
|
573
581
|
this.element.nativeElement.blur();
|
|
574
582
|
};
|
|
583
|
+
/**
|
|
584
|
+
* @hidden
|
|
585
|
+
*/
|
|
586
|
+
MultiViewCalendarComponent.prototype.handleHeaderFocus = function () {
|
|
587
|
+
this.isHeaderActive = true;
|
|
588
|
+
};
|
|
575
589
|
/**
|
|
576
590
|
* @hidden
|
|
577
591
|
*/
|
|
@@ -981,7 +995,7 @@ var MultiViewCalendarComponent = /** @class */ (function () {
|
|
|
981
995
|
], MultiViewCalendarComponent.prototype, "calendarTabIndex", null);
|
|
982
996
|
tslib_1.__decorate([
|
|
983
997
|
core_1.HostBinding('attr.aria-disabled'),
|
|
984
|
-
core_1.HostBinding('class.k-
|
|
998
|
+
core_1.HostBinding('class.k-disabled'),
|
|
985
999
|
tslib_1.__metadata("design:type", Boolean),
|
|
986
1000
|
tslib_1.__metadata("design:paramtypes", [])
|
|
987
1001
|
], MultiViewCalendarComponent.prototype, "ariaDisabled", null);
|
|
@@ -993,9 +1007,9 @@ var MultiViewCalendarComponent = /** @class */ (function () {
|
|
|
993
1007
|
tslib_1.__decorate([
|
|
994
1008
|
core_1.HostListener('focusout', ['$event']),
|
|
995
1009
|
tslib_1.__metadata("design:type", Function),
|
|
996
|
-
tslib_1.__metadata("design:paramtypes", [
|
|
1010
|
+
tslib_1.__metadata("design:paramtypes", [Object]),
|
|
997
1011
|
tslib_1.__metadata("design:returntype", void 0)
|
|
998
|
-
], MultiViewCalendarComponent.prototype, "
|
|
1012
|
+
], MultiViewCalendarComponent.prototype, "handleFocusout", null);
|
|
999
1013
|
tslib_1.__decorate([
|
|
1000
1014
|
core_1.HostListener("focus"),
|
|
1001
1015
|
tslib_1.__metadata("design:type", Function),
|
|
@@ -1050,8 +1064,9 @@ var MultiViewCalendarComponent = /** @class */ (function () {
|
|
|
1050
1064
|
selection_service_1.SelectionService
|
|
1051
1065
|
],
|
|
1052
1066
|
selector: 'kendo-multiviewcalendar',
|
|
1053
|
-
template: "\n <ng-container kendoMultiViewCalendarLocalizedMessages\n i18n-today=\"kendo.multiviewcalendar.today|The label for the today button in the calendar header\"\n today=\"Today\"\n\n i18n-prevButtonTitle=\"kendo.multiviewcalendar.prevButtonTitle|The label for the previous button in the Multiview calendar\"\n prevButtonTitle=\"Navigate to previous view\"\n\n i18n-nextButtonTitle=\"kendo.multiviewcalendar.nextButtonTitle|The label for the next button in the Multiview calendar\"\n nextButtonTitle=\"Navigate to next view\"\n >\n </ng-container>\n <kendo-calendar-header\n [activeView]=\"activeViewEnum\"\n [currentDate]=\"activeDate\"\n [min]=\"min\"\n [max]=\"max\"\n [rangeLength]=\"views\"\n [templateRef]=\"headerTitleTemplate?.templateRef\"\n [isPrevDisabled]=\"isPrevDisabled\"\n [isNextDisabled]=\"isNextDisabled\"\n [showNavigationButtons]=\"true\"\n (todayButtonClick)=\"handleTodayButtonClick({ selectedDates: [$event], focusedDate: $event })\"\n (prevButtonClick)=\"navigateView(prevView)\"\n (nextButtonClick)=\"navigateView(nextView)\"\n >\n </kendo-calendar-header>\n <kendo-calendar-horizontal\n [activeView]=\"activeViewEnum\"\n [isActive]=\"isActive || (isHovered && !isHeaderActive)\"\n [cellTemplateRef]=\"activeCellTemplate()?.templateRef\"\n [weekNumberTemplateRef]=\"weekNumberTemplate?.templateRef\"\n [cellUID]=\"cellUID\"\n [views]=\"views\"\n [min]=\"min\"\n [max]=\"max\"\n [focusedDate]=\"focusedDate\"\n [animateNavigation]=\"animateNavigation\"\n [showViewHeader]=\"showViewHeader\"\n [weekNumber]=\"weekNumber\"\n [activeRangeEnd]=\"activeRangeEnd\"\n [selectionRange]=\"selectionRange\"\n [selectedDates]=\"selectedDates\"\n (valueChange)=\"handleDateChange($event)\"\n (cellClick)=\"handleCellClick($event)\"\n (weekNumberCellClick)=\"handleWeekNumberClick($event)\"\n (cellEnter)=\"emitCellEvent(cellEnter, $event)\"\n (cellLeave)=\"emitCellEvent(cellLeave, $event)\"\n (activeDateChange)=\"setActiveDate($event)\"\n >\n </kendo-calendar-horizontal>\n "
|
|
1067
|
+
template: "\n <ng-container kendoMultiViewCalendarLocalizedMessages\n i18n-today=\"kendo.multiviewcalendar.today|The label for the today button in the calendar header\"\n today=\"Today\"\n\n i18n-prevButtonTitle=\"kendo.multiviewcalendar.prevButtonTitle|The label for the previous button in the Multiview calendar\"\n prevButtonTitle=\"Navigate to previous view\"\n\n i18n-nextButtonTitle=\"kendo.multiviewcalendar.nextButtonTitle|The label for the next button in the Multiview calendar\"\n nextButtonTitle=\"Navigate to next view\"\n >\n </ng-container>\n <kendo-calendar-header\n [activeView]=\"activeViewEnum\"\n [currentDate]=\"activeDate\"\n [min]=\"min\"\n [max]=\"max\"\n [rangeLength]=\"views\"\n [templateRef]=\"headerTitleTemplate?.templateRef\"\n [isPrevDisabled]=\"isPrevDisabled\"\n [isNextDisabled]=\"isNextDisabled\"\n [showNavigationButtons]=\"true\"\n (todayButtonClick)=\"handleTodayButtonClick({ selectedDates: [$event], focusedDate: $event })\"\n (prevButtonClick)=\"navigateView(prevView)\"\n (nextButtonClick)=\"navigateView(nextView)\"\n [kendoEventsOutsideAngular]=\"{\n focusin: handleHeaderFocus\n }\"\n [scope]=\"this\"\n >\n </kendo-calendar-header>\n <kendo-calendar-horizontal\n [activeView]=\"activeViewEnum\"\n [isActive]=\"isActive || (isHovered && !isHeaderActive)\"\n [cellTemplateRef]=\"activeCellTemplate()?.templateRef\"\n [weekNumberTemplateRef]=\"weekNumberTemplate?.templateRef\"\n [cellUID]=\"cellUID\"\n [views]=\"views\"\n [min]=\"min\"\n [max]=\"max\"\n [focusedDate]=\"focusedDate\"\n [animateNavigation]=\"animateNavigation\"\n [showViewHeader]=\"showViewHeader\"\n [weekNumber]=\"weekNumber\"\n [activeRangeEnd]=\"activeRangeEnd\"\n [selectionRange]=\"selectionRange\"\n [selectedDates]=\"selectedDates\"\n (valueChange)=\"handleDateChange($event)\"\n (cellClick)=\"handleCellClick($event)\"\n (weekNumberCellClick)=\"handleWeekNumberClick($event)\"\n (cellEnter)=\"emitCellEvent(cellEnter, $event)\"\n (cellLeave)=\"emitCellEvent(cellLeave, $event)\"\n (activeDateChange)=\"setActiveDate($event)\"\n >\n </kendo-calendar-horizontal>\n "
|
|
1054
1068
|
}),
|
|
1069
|
+
tslib_1.__param(8, core_1.Optional()),
|
|
1055
1070
|
tslib_1.__metadata("design:paramtypes", [bus_view_service_1.BusViewService,
|
|
1056
1071
|
core_1.ElementRef,
|
|
1057
1072
|
navigation_service_1.NavigationService,
|
|
@@ -1059,7 +1074,8 @@ var MultiViewCalendarComponent = /** @class */ (function () {
|
|
|
1059
1074
|
core_1.ChangeDetectorRef,
|
|
1060
1075
|
core_1.NgZone,
|
|
1061
1076
|
disabled_dates_service_1.DisabledDatesService,
|
|
1062
|
-
selection_service_1.SelectionService
|
|
1077
|
+
selection_service_1.SelectionService,
|
|
1078
|
+
picker_service_1.PickerService])
|
|
1063
1079
|
], MultiViewCalendarComponent);
|
|
1064
1080
|
return MultiViewCalendarComponent;
|
|
1065
1081
|
}());
|
|
@@ -9,6 +9,7 @@ var core_1 = require("@angular/core");
|
|
|
9
9
|
var common_1 = require("@angular/common");
|
|
10
10
|
var kendo_angular_intl_1 = require("@progress/kendo-angular-intl");
|
|
11
11
|
var kendo_angular_popup_1 = require("@progress/kendo-angular-popup");
|
|
12
|
+
var kendo_angular_common_1 = require("@progress/kendo-angular-common");
|
|
12
13
|
var calendar_common_module_1 = require("./calendar-common.module");
|
|
13
14
|
var templates_module_1 = require("./templates.module");
|
|
14
15
|
var horizontal_view_list_component_1 = require("./horizontal-view-list.component");
|
|
@@ -75,7 +76,14 @@ var MultiViewCalendarModule = /** @class */ (function () {
|
|
|
75
76
|
calendar_common_module_1.CalendarCommonModule,
|
|
76
77
|
templates_module_1.TemplatesModule
|
|
77
78
|
],
|
|
78
|
-
imports: [
|
|
79
|
+
imports: [
|
|
80
|
+
common_1.CommonModule,
|
|
81
|
+
calendar_common_module_1.CalendarCommonModule,
|
|
82
|
+
kendo_angular_intl_1.IntlModule,
|
|
83
|
+
templates_module_1.TemplatesModule,
|
|
84
|
+
kendo_angular_popup_1.PopupModule,
|
|
85
|
+
kendo_angular_common_1.EventsModule
|
|
86
|
+
],
|
|
79
87
|
providers: [
|
|
80
88
|
navigation_service_1.NavigationService,
|
|
81
89
|
century_view_service_1.CenturyViewService,
|
|
@@ -19,7 +19,7 @@ var tr = util_1.domContainerFactory('tr');
|
|
|
19
19
|
var tbody = util_1.domContainerFactory('tbody');
|
|
20
20
|
var thead = util_1.domContainerFactory('thead');
|
|
21
21
|
var table = util_1.domContainerFactory('table');
|
|
22
|
-
var monthHeader = function () { return (div("\n <span class=\"k-button k-flat k-
|
|
22
|
+
var monthHeader = function () { return (div("\n <span class=\"k-button k-button-md k-rounded-md k-button-flat k-button-flat-base k-calendar-title\">March 2017</span>\n <span class=\"k-spacer\"></span>\n <span class=\"k-calendar-nav k-hstack\">\n <span class=\"k-today k-nav-today\">TODAY</span>\n </span>\n ", 'k-calendar-header k-hstack')); };
|
|
23
23
|
var ɵ0 = monthHeader;
|
|
24
24
|
exports.ɵ0 = ɵ0;
|
|
25
25
|
var monthWeekHeader = function () { return (table([
|
|
@@ -124,7 +124,7 @@ var ViewComponent = /** @class */ (function () {
|
|
|
124
124
|
'k-state-selected': !context.isOtherMonth && (context.isSelected || isRangeStart || isRangeEnd),
|
|
125
125
|
'k-today': !context.isOtherMonth && context.isToday,
|
|
126
126
|
'k-weekend': context.isWeekend,
|
|
127
|
-
'k-
|
|
127
|
+
'k-disabled': context.isDisabled,
|
|
128
128
|
'k-other-month': context.isOtherMonth
|
|
129
129
|
});
|
|
130
130
|
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
"use strict";
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
"use strict";
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
"use strict";
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -457,11 +457,11 @@ var KendoDate = /** @class */ (function () {
|
|
|
457
457
|
* Represents the [Kendo UI DateInput component for Angular]({% slug overview_dateinput %}#toc-basic-usage).
|
|
458
458
|
*/
|
|
459
459
|
var DateInputComponent = /** @class */ (function () {
|
|
460
|
-
function DateInputComponent(cdr, intl, renderer,
|
|
460
|
+
function DateInputComponent(cdr, intl, renderer, wrapper, ngZone, injector, localization, pickerService) {
|
|
461
461
|
this.cdr = cdr;
|
|
462
462
|
this.intl = intl;
|
|
463
463
|
this.renderer = renderer;
|
|
464
|
-
this.
|
|
464
|
+
this.wrapper = wrapper;
|
|
465
465
|
this.ngZone = ngZone;
|
|
466
466
|
this.injector = injector;
|
|
467
467
|
this.localization = localization;
|
|
@@ -663,6 +663,9 @@ var DateInputComponent = /** @class */ (function () {
|
|
|
663
663
|
this.onControlChange = util_1.noop;
|
|
664
664
|
this.onControlTouched = util_1.noop;
|
|
665
665
|
this.onValidatorChange = util_1.noop;
|
|
666
|
+
this._size = 'medium';
|
|
667
|
+
this._rounded = 'medium';
|
|
668
|
+
this._fillMode = 'solid';
|
|
666
669
|
this.symbolsMap = this.dateSymbolMap();
|
|
667
670
|
this.updateFormatSections();
|
|
668
671
|
if (this.pickerService) {
|
|
@@ -703,6 +706,83 @@ var DateInputComponent = /** @class */ (function () {
|
|
|
703
706
|
enumerable: true,
|
|
704
707
|
configurable: true
|
|
705
708
|
});
|
|
709
|
+
Object.defineProperty(DateInputComponent.prototype, "size", {
|
|
710
|
+
get: function () {
|
|
711
|
+
return this._size;
|
|
712
|
+
},
|
|
713
|
+
/**
|
|
714
|
+
* Sets the size of the component.
|
|
715
|
+
*
|
|
716
|
+
* The possible values are:
|
|
717
|
+
* * `'small'`
|
|
718
|
+
* * `'medium'` (Default)
|
|
719
|
+
* * `'large'`
|
|
720
|
+
* * `null`
|
|
721
|
+
*
|
|
722
|
+
*/
|
|
723
|
+
set: function (size) {
|
|
724
|
+
this.renderer.removeClass(this.wrapper.nativeElement, util_1.getSizeClass('input', this.size));
|
|
725
|
+
if (size) {
|
|
726
|
+
this.renderer.addClass(this.wrapper.nativeElement, util_1.getSizeClass('input', size));
|
|
727
|
+
}
|
|
728
|
+
this._size = size;
|
|
729
|
+
},
|
|
730
|
+
enumerable: true,
|
|
731
|
+
configurable: true
|
|
732
|
+
});
|
|
733
|
+
Object.defineProperty(DateInputComponent.prototype, "rounded", {
|
|
734
|
+
get: function () {
|
|
735
|
+
return this._rounded;
|
|
736
|
+
},
|
|
737
|
+
/**
|
|
738
|
+
* Sets the border radius of the component.
|
|
739
|
+
*
|
|
740
|
+
* The possible values are:
|
|
741
|
+
* * `'small'`
|
|
742
|
+
* * `'medium'` (Default)
|
|
743
|
+
* * `'large'`
|
|
744
|
+
* * `'full'`
|
|
745
|
+
* * `null`
|
|
746
|
+
*
|
|
747
|
+
*/
|
|
748
|
+
set: function (rounded) {
|
|
749
|
+
this.renderer.removeClass(this.wrapper.nativeElement, util_1.getRoundedClass(this.rounded));
|
|
750
|
+
if (rounded) {
|
|
751
|
+
this.renderer.addClass(this.wrapper.nativeElement, util_1.getRoundedClass(rounded));
|
|
752
|
+
}
|
|
753
|
+
this._rounded = rounded;
|
|
754
|
+
},
|
|
755
|
+
enumerable: true,
|
|
756
|
+
configurable: true
|
|
757
|
+
});
|
|
758
|
+
Object.defineProperty(DateInputComponent.prototype, "fillMode", {
|
|
759
|
+
get: function () {
|
|
760
|
+
return this._fillMode;
|
|
761
|
+
},
|
|
762
|
+
/**
|
|
763
|
+
* Sets the fillMode of the component.
|
|
764
|
+
*
|
|
765
|
+
* The possible values are:
|
|
766
|
+
* * `'solid'` (Default)
|
|
767
|
+
* * `'flat'`
|
|
768
|
+
* * `'outline'`
|
|
769
|
+
* * `null`
|
|
770
|
+
*
|
|
771
|
+
*/
|
|
772
|
+
set: function (fillMode) {
|
|
773
|
+
this.renderer.removeClass(this.wrapper.nativeElement, util_1.getFillModeClass('input', this.fillMode));
|
|
774
|
+
if (fillMode) {
|
|
775
|
+
this.renderer.addClass(this.wrapper.nativeElement, util_1.getFillModeClass('input', fillMode));
|
|
776
|
+
if (this.spinners && this.spinup && this.spindown) {
|
|
777
|
+
this.setSpinnerFill(this.spinup.nativeElement, fillMode, this.fillMode);
|
|
778
|
+
this.setSpinnerFill(this.spindown.nativeElement, fillMode, this.fillMode);
|
|
779
|
+
}
|
|
780
|
+
}
|
|
781
|
+
this._fillMode = fillMode;
|
|
782
|
+
},
|
|
783
|
+
enumerable: true,
|
|
784
|
+
configurable: true
|
|
785
|
+
});
|
|
706
786
|
Object.defineProperty(DateInputComponent.prototype, "wrapperClass", {
|
|
707
787
|
get: function () {
|
|
708
788
|
return true;
|
|
@@ -737,16 +817,16 @@ var DateInputComponent = /** @class */ (function () {
|
|
|
737
817
|
},
|
|
738
818
|
set: function (value) {
|
|
739
819
|
this._active = value;
|
|
740
|
-
if (!this.
|
|
820
|
+
if (!this.wrapper) {
|
|
741
821
|
return;
|
|
742
822
|
}
|
|
743
823
|
if (!utils_1.isPresent(this.pickerService)) {
|
|
744
|
-
var element = this.
|
|
824
|
+
var element = this.wrapper.nativeElement;
|
|
745
825
|
if (value) {
|
|
746
|
-
this.renderer.addClass(element, 'k-
|
|
826
|
+
this.renderer.addClass(element, 'k-focus');
|
|
747
827
|
}
|
|
748
828
|
else {
|
|
749
|
-
this.renderer.removeClass(element, 'k-
|
|
829
|
+
this.renderer.removeClass(element, 'k-focus');
|
|
750
830
|
}
|
|
751
831
|
}
|
|
752
832
|
},
|
|
@@ -795,7 +875,7 @@ var DateInputComponent = /** @class */ (function () {
|
|
|
795
875
|
*/
|
|
796
876
|
DateInputComponent.prototype.containsElement = function (element) {
|
|
797
877
|
var _this = this;
|
|
798
|
-
return Boolean(dom_queries_1.closest(element, function (node) { return node === _this.
|
|
878
|
+
return Boolean(dom_queries_1.closest(element, function (node) { return node === _this.wrapper.nativeElement; }));
|
|
799
879
|
};
|
|
800
880
|
/**
|
|
801
881
|
* @hidden
|
|
@@ -848,13 +928,16 @@ var DateInputComponent = /** @class */ (function () {
|
|
|
848
928
|
this.updateElementValue();
|
|
849
929
|
this.intlSubscription = this.intl.changes.subscribe(this.intlChange.bind(this));
|
|
850
930
|
this.ngControl = this.injector.get(forms_1.NgControl, null);
|
|
851
|
-
if (this.
|
|
852
|
-
this.renderer.removeAttribute(this.
|
|
931
|
+
if (this.wrapper) {
|
|
932
|
+
this.renderer.removeAttribute(this.wrapper.nativeElement, 'tabindex');
|
|
853
933
|
this.ngZone.runOutsideAngular(function () {
|
|
854
934
|
_this.bindEvents();
|
|
855
935
|
});
|
|
856
936
|
}
|
|
857
937
|
};
|
|
938
|
+
DateInputComponent.prototype.ngAfterViewInit = function () {
|
|
939
|
+
this.setComponentClasses();
|
|
940
|
+
};
|
|
858
941
|
/**
|
|
859
942
|
* @hidden
|
|
860
943
|
*/
|
|
@@ -1208,7 +1291,7 @@ var DateInputComponent = /** @class */ (function () {
|
|
|
1208
1291
|
}
|
|
1209
1292
|
};
|
|
1210
1293
|
DateInputComponent.prototype.bindEvents = function () {
|
|
1211
|
-
var element = this.
|
|
1294
|
+
var element = this.wrapper.nativeElement;
|
|
1212
1295
|
var mousewheelHandler = this.handleMouseWheel.bind(this);
|
|
1213
1296
|
this.domEvents.push(this.renderer.listen(element, 'DOMMouseScroll', mousewheelHandler), this.renderer.listen(element, 'mousewheel', mousewheelHandler), this.renderer.listen(element, 'keydown', this.handleKeydown.bind(this)), this.renderer.listen(element, 'paste', this.handlePaste.bind(this)), this.renderer.listen(element, 'input', this.handleInput.bind(this)));
|
|
1214
1297
|
};
|
|
@@ -1340,6 +1423,29 @@ var DateInputComponent = /** @class */ (function () {
|
|
|
1340
1423
|
this.pickerService.dateCompletenessChange.emit();
|
|
1341
1424
|
}
|
|
1342
1425
|
};
|
|
1426
|
+
DateInputComponent.prototype.setSpinnerFill = function (spinner, fill, oldFill) {
|
|
1427
|
+
if (oldFill) {
|
|
1428
|
+
this.renderer.removeClass(spinner, "k-button-" + oldFill);
|
|
1429
|
+
this.renderer.removeClass(spinner, "k-button-" + oldFill + "-base");
|
|
1430
|
+
}
|
|
1431
|
+
this.renderer.addClass(spinner, "k-button-" + fill);
|
|
1432
|
+
this.renderer.addClass(spinner, "k-button-" + fill + "-base");
|
|
1433
|
+
};
|
|
1434
|
+
DateInputComponent.prototype.setComponentClasses = function () {
|
|
1435
|
+
if (this.size) {
|
|
1436
|
+
this.renderer.addClass(this.wrapper.nativeElement, util_1.getSizeClass('input', this.size));
|
|
1437
|
+
}
|
|
1438
|
+
if (this.rounded) {
|
|
1439
|
+
this.renderer.addClass(this.wrapper.nativeElement, util_1.getRoundedClass(this.rounded));
|
|
1440
|
+
}
|
|
1441
|
+
if (this.fillMode) {
|
|
1442
|
+
this.renderer.addClass(this.wrapper.nativeElement, util_1.getFillModeClass('input', this.fillMode));
|
|
1443
|
+
}
|
|
1444
|
+
if (this.spinners) {
|
|
1445
|
+
this.setSpinnerFill(this.spinup.nativeElement, this.fillMode);
|
|
1446
|
+
this.setSpinnerFill(this.spindown.nativeElement, this.fillMode);
|
|
1447
|
+
}
|
|
1448
|
+
};
|
|
1343
1449
|
var DateInputComponent_1;
|
|
1344
1450
|
tslib_1.__decorate([
|
|
1345
1451
|
core_1.Input(),
|
|
@@ -1431,6 +1537,21 @@ var DateInputComponent = /** @class */ (function () {
|
|
|
1431
1537
|
core_1.Input(),
|
|
1432
1538
|
tslib_1.__metadata("design:type", Boolean)
|
|
1433
1539
|
], DateInputComponent.prototype, "hasPopup", void 0);
|
|
1540
|
+
tslib_1.__decorate([
|
|
1541
|
+
core_1.Input(),
|
|
1542
|
+
tslib_1.__metadata("design:type", String),
|
|
1543
|
+
tslib_1.__metadata("design:paramtypes", [String])
|
|
1544
|
+
], DateInputComponent.prototype, "size", null);
|
|
1545
|
+
tslib_1.__decorate([
|
|
1546
|
+
core_1.Input(),
|
|
1547
|
+
tslib_1.__metadata("design:type", String),
|
|
1548
|
+
tslib_1.__metadata("design:paramtypes", [String])
|
|
1549
|
+
], DateInputComponent.prototype, "rounded", null);
|
|
1550
|
+
tslib_1.__decorate([
|
|
1551
|
+
core_1.Input(),
|
|
1552
|
+
tslib_1.__metadata("design:type", String),
|
|
1553
|
+
tslib_1.__metadata("design:paramtypes", [String])
|
|
1554
|
+
], DateInputComponent.prototype, "fillMode", null);
|
|
1434
1555
|
tslib_1.__decorate([
|
|
1435
1556
|
core_1.Output(),
|
|
1436
1557
|
tslib_1.__metadata("design:type", core_1.EventEmitter)
|
|
@@ -1452,20 +1573,24 @@ var DateInputComponent = /** @class */ (function () {
|
|
|
1452
1573
|
tslib_1.__metadata("design:type", core_1.ElementRef)
|
|
1453
1574
|
], DateInputComponent.prototype, "dateInput", void 0);
|
|
1454
1575
|
tslib_1.__decorate([
|
|
1455
|
-
core_1.
|
|
1456
|
-
tslib_1.__metadata("design:type", core_1.ElementRef)
|
|
1457
|
-
], DateInputComponent.prototype, "wrap", void 0);
|
|
1458
|
-
tslib_1.__decorate([
|
|
1459
|
-
core_1.HostBinding('class.k-widget'),
|
|
1576
|
+
core_1.HostBinding('class.k-input'),
|
|
1460
1577
|
core_1.HostBinding('class.k-dateinput'),
|
|
1461
1578
|
tslib_1.__metadata("design:type", Boolean),
|
|
1462
1579
|
tslib_1.__metadata("design:paramtypes", [])
|
|
1463
1580
|
], DateInputComponent.prototype, "wrapperClass", null);
|
|
1464
1581
|
tslib_1.__decorate([
|
|
1465
|
-
core_1.HostBinding('class.k-
|
|
1582
|
+
core_1.HostBinding('class.k-disabled'),
|
|
1466
1583
|
tslib_1.__metadata("design:type", Boolean),
|
|
1467
1584
|
tslib_1.__metadata("design:paramtypes", [])
|
|
1468
1585
|
], DateInputComponent.prototype, "disabledClass", null);
|
|
1586
|
+
tslib_1.__decorate([
|
|
1587
|
+
core_1.ViewChild('spinup', { static: false }),
|
|
1588
|
+
tslib_1.__metadata("design:type", core_1.ElementRef)
|
|
1589
|
+
], DateInputComponent.prototype, "spinup", void 0);
|
|
1590
|
+
tslib_1.__decorate([
|
|
1591
|
+
core_1.ViewChild('spindown', { static: false }),
|
|
1592
|
+
tslib_1.__metadata("design:type", core_1.ElementRef)
|
|
1593
|
+
], DateInputComponent.prototype, "spindown", void 0);
|
|
1469
1594
|
DateInputComponent = DateInputComponent_1 = tslib_1.__decorate([
|
|
1470
1595
|
core_1.Component({
|
|
1471
1596
|
changeDetection: core_1.ChangeDetectionStrategy.OnPush,
|
|
@@ -1478,7 +1603,7 @@ var DateInputComponent = /** @class */ (function () {
|
|
|
1478
1603
|
kendo_angular_l10n_1.LocalizationService
|
|
1479
1604
|
],
|
|
1480
1605
|
selector: 'kendo-dateinput',
|
|
1481
|
-
template: "\n <ng-container kendoDateInputLocalizedMessages\n i18n-increment=\"kendo.dateinput.increment|The label for the **Increment** button in the DateInput\"\n increment=\"Increase value\"\n\n i18n-decrement=\"kendo.dateinput.decrement|The label for the **Decrement** button in the DateInput\"\n decrement=\"Decrease value\"\n >\n </ng-container>\n <
|
|
1606
|
+
template: "\n <ng-container kendoDateInputLocalizedMessages\n i18n-increment=\"kendo.dateinput.increment|The label for the **Increment** button in the DateInput\"\n increment=\"Increase value\"\n\n i18n-decrement=\"kendo.dateinput.decrement|The label for the **Decrement** button in the DateInput\"\n decrement=\"Decrease value\"\n >\n </ng-container>\n <input\n #dateInput\n autocomplete=\"off\"\n autocorrect=\"off\"\n autocapitalize=\"off\"\n spellcheck=\"false\"\n class=\"k-input-inner\"\n [attr.role]=\"role\"\n [attr.aria-readonly]=\"ariaReadOnly\"\n [id]=\"focusableId\"\n [title]=\"title\"\n [tabindex]=\"tabindex\"\n [disabled]=\"disabled\"\n [readonly]=\"readonly\"\n [placeholder]=\"placeholder\"\n [attr.aria-expanded]=\"isPopupOpen\"\n [attr.aria-haspopup]=\"hasPopup\"\n [kendoEventsOutsideAngular]=\"{\n click: handleClick,\n focus: handleFocus,\n mousedown: handleMousedown,\n touchstart: handleMousedown,\n dragstart: handleDragAndDrop,\n drop: handleDragAndDrop,\n blur: handleBlur\n }\"\n [scope]=\"this\"\n />\n <span *ngIf=\"spinners\" class=\"k-input-spinner k-spin-button\" (mousedown)=\"$event.preventDefault()\">\n <button\n #spinup\n tabindex=\"-1\"\n class=\"k-spinner-increase k-button k-icon-button\"\n [class.k-active]=\"arrowDirection === arrow.Up\"\n (mousedown)=\"arrowDirection = arrow.Up\"\n (mouseleave)=\"arrowDirection = arrow.None\"\n (click)=\"handleButtonClick(1)\"\n [title]=\"localization.get('increment')\"\n [attr.aria-label]=\"localization.get('increment')\">\n <span class=\"k-button-icon k-icon k-i-arrow-n\"></span>\n </button>\n <button\n #spindown\n tabindex=\"-1\"\n class=\"k-spinner-decrease k-button k-icon-button\"\n (click)=\"handleButtonClick(-1)\"\n [class.k-active]=\"arrowDirection === arrow.Down\"\n (mousedown)=\"arrowDirection = arrow.Down\"\n (mouseleave)=\"arrowDirection = arrow.None\"\n [title]=\"localization.get('decrement')\"\n [attr.aria-label]=\"localization.get('decrement')\">\n <span class=\"k-button-icon k-icon k-i-arrow-s\"></span>\n </button>\n </span>\n "
|
|
1482
1607
|
}),
|
|
1483
1608
|
tslib_1.__param(7, core_1.Optional()),
|
|
1484
1609
|
tslib_1.__metadata("design:paramtypes", [core_1.ChangeDetectorRef,
|