@progress/kendo-angular-dateinputs 5.3.1-dev.202201070925 → 6.0.1-dev.202201310951
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 +4 -2
- package/dist/es/calendar/header.component.js +1 -1
- package/dist/es/calendar/multiview-calendar.component.js +1 -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 +127 -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.js +4 -2
- package/dist/es2015/calendar/header.component.js +4 -4
- package/dist/es2015/calendar/multiview-calendar.component.js +1 -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 +152 -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 +759 -268
- package/dist/fesm5/index.js +603 -68
- package/dist/npm/calendar/calendar.component.js +4 -2
- package/dist/npm/calendar/header.component.js +1 -1
- package/dist/npm/calendar/multiview-calendar.component.js +1 -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 +126 -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 +7 -7
|
@@ -510,11 +510,13 @@ var CalendarComponent = /** @class */ (function () {
|
|
|
510
510
|
};
|
|
511
511
|
CalendarComponent.prototype.ngOnDestroy = function () {
|
|
512
512
|
this.scrollSyncService.destroy();
|
|
513
|
-
this.viewChangeSubscription.unsubscribe();
|
|
514
513
|
this.domEvents.forEach(function (unbindCallback) { return unbindCallback(); });
|
|
515
514
|
if (this.pickerService) {
|
|
516
515
|
this.pickerService.calendar = null;
|
|
517
516
|
}
|
|
517
|
+
if (this.viewChangeSubscription) {
|
|
518
|
+
this.viewChangeSubscription.unsubscribe();
|
|
519
|
+
}
|
|
518
520
|
if (this.pageChangeSubscription) {
|
|
519
521
|
this.pageChangeSubscription.unsubscribe();
|
|
520
522
|
}
|
|
@@ -1092,7 +1094,7 @@ var CalendarComponent = /** @class */ (function () {
|
|
|
1092
1094
|
], CalendarComponent.prototype, "calendarTabIndex", null);
|
|
1093
1095
|
tslib_1.__decorate([
|
|
1094
1096
|
HostBinding('attr.aria-disabled'),
|
|
1095
|
-
HostBinding('class.k-
|
|
1097
|
+
HostBinding('class.k-disabled'),
|
|
1096
1098
|
tslib_1.__metadata("design:type", Boolean),
|
|
1097
1099
|
tslib_1.__metadata("design:paramtypes", [])
|
|
1098
1100
|
], CalendarComponent.prototype, "ariaDisabled", null);
|
|
@@ -157,7 +157,7 @@ var HeaderComponent = /** @class */ (function () {
|
|
|
157
157
|
HeaderComponent = tslib_1.__decorate([
|
|
158
158
|
Component({
|
|
159
159
|
selector: 'kendo-calendar-header',
|
|
160
|
-
template: "\n <span class=\"k-button k-flat k-
|
|
160
|
+
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 "
|
|
161
161
|
}),
|
|
162
162
|
tslib_1.__metadata("design:paramtypes", [BusViewService,
|
|
163
163
|
ChangeDetectorRef,
|
|
@@ -993,7 +993,7 @@ var MultiViewCalendarComponent = /** @class */ (function () {
|
|
|
993
993
|
], MultiViewCalendarComponent.prototype, "calendarTabIndex", null);
|
|
994
994
|
tslib_1.__decorate([
|
|
995
995
|
HostBinding('attr.aria-disabled'),
|
|
996
|
-
HostBinding('class.k-
|
|
996
|
+
HostBinding('class.k-disabled'),
|
|
997
997
|
tslib_1.__metadata("design:type", Boolean),
|
|
998
998
|
tslib_1.__metadata("design:paramtypes", [])
|
|
999
999
|
], MultiViewCalendarComponent.prototype, "ariaDisabled", null);
|
|
@@ -17,7 +17,7 @@ var tr = containerFactory('tr');
|
|
|
17
17
|
var tbody = containerFactory('tbody');
|
|
18
18
|
var thead = containerFactory('thead');
|
|
19
19
|
var table = containerFactory('table');
|
|
20
|
-
var monthHeader = function () { return (div("\n <span class=\"k-button k-flat k-
|
|
20
|
+
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')); };
|
|
21
21
|
var ɵ0 = monthHeader;
|
|
22
22
|
var monthWeekHeader = function () { return (table([
|
|
23
23
|
thead([
|
|
@@ -122,7 +122,7 @@ var ViewComponent = /** @class */ (function () {
|
|
|
122
122
|
'k-state-selected': !context.isOtherMonth && (context.isSelected || isRangeStart || isRangeEnd),
|
|
123
123
|
'k-today': !context.isOtherMonth && context.isToday,
|
|
124
124
|
'k-weekend': context.isWeekend,
|
|
125
|
-
'k-
|
|
125
|
+
'k-disabled': context.isDisabled,
|
|
126
126
|
'k-other-month': context.isOtherMonth
|
|
127
127
|
});
|
|
128
128
|
};
|
|
@@ -0,0 +1,4 @@
|
|
|
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
|
+
*-------------------------------------------------------------------------------------------*/
|
|
@@ -0,0 +1,4 @@
|
|
|
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
|
+
*-------------------------------------------------------------------------------------------*/
|
|
@@ -0,0 +1,4 @@
|
|
|
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
|
+
*-------------------------------------------------------------------------------------------*/
|
|
@@ -16,7 +16,7 @@ import { packageMetadata } from '../package-metadata';
|
|
|
16
16
|
import { addMonths, cloneDate, createDate, getDate, isEqual, lastDayOfMonth } from '@progress/kendo-date-math';
|
|
17
17
|
import { isDocumentAvailable, hasObservers, KendoInput, Keys, guid } from '@progress/kendo-angular-common';
|
|
18
18
|
import { Arrow } from './arrow.enum';
|
|
19
|
-
import { approximateStringMatching, noop, isInRange, dateInRange, isValidRange, setTime, cropTwoDigitYear, setYears, msPaddingFromFormat, millisecondDigitsInFormat, millisecondStepFor } from '../util';
|
|
19
|
+
import { approximateStringMatching, noop, isInRange, dateInRange, isValidRange, setTime, cropTwoDigitYear, setYears, msPaddingFromFormat, millisecondDigitsInFormat, millisecondStepFor, getSizeClass, getRoundedClass, getFillModeClass } from '../util';
|
|
20
20
|
import { PickerService } from '../common/picker.service';
|
|
21
21
|
import { closest } from '../common/dom-queries';
|
|
22
22
|
import { requiresZoneOnBlur, isPresent } from '../common/utils';
|
|
@@ -453,11 +453,11 @@ var KendoDate = /** @class */ (function () {
|
|
|
453
453
|
* Represents the [Kendo UI DateInput component for Angular]({% slug overview_dateinput %}#toc-basic-usage).
|
|
454
454
|
*/
|
|
455
455
|
var DateInputComponent = /** @class */ (function () {
|
|
456
|
-
function DateInputComponent(cdr, intl, renderer,
|
|
456
|
+
function DateInputComponent(cdr, intl, renderer, wrapper, ngZone, injector, localization, pickerService) {
|
|
457
457
|
this.cdr = cdr;
|
|
458
458
|
this.intl = intl;
|
|
459
459
|
this.renderer = renderer;
|
|
460
|
-
this.
|
|
460
|
+
this.wrapper = wrapper;
|
|
461
461
|
this.ngZone = ngZone;
|
|
462
462
|
this.injector = injector;
|
|
463
463
|
this.localization = localization;
|
|
@@ -659,6 +659,9 @@ var DateInputComponent = /** @class */ (function () {
|
|
|
659
659
|
this.onControlChange = noop;
|
|
660
660
|
this.onControlTouched = noop;
|
|
661
661
|
this.onValidatorChange = noop;
|
|
662
|
+
this._size = 'medium';
|
|
663
|
+
this._rounded = 'medium';
|
|
664
|
+
this._fillMode = 'solid';
|
|
662
665
|
this.symbolsMap = this.dateSymbolMap();
|
|
663
666
|
this.updateFormatSections();
|
|
664
667
|
if (this.pickerService) {
|
|
@@ -699,6 +702,83 @@ var DateInputComponent = /** @class */ (function () {
|
|
|
699
702
|
enumerable: true,
|
|
700
703
|
configurable: true
|
|
701
704
|
});
|
|
705
|
+
Object.defineProperty(DateInputComponent.prototype, "size", {
|
|
706
|
+
get: function () {
|
|
707
|
+
return this._size;
|
|
708
|
+
},
|
|
709
|
+
/**
|
|
710
|
+
* Sets the size of the component.
|
|
711
|
+
*
|
|
712
|
+
* The possible values are:
|
|
713
|
+
* * `'small'`
|
|
714
|
+
* * `'medium'` (Default)
|
|
715
|
+
* * `'large'`
|
|
716
|
+
* * `null`
|
|
717
|
+
*
|
|
718
|
+
*/
|
|
719
|
+
set: function (size) {
|
|
720
|
+
this.renderer.removeClass(this.wrapper.nativeElement, getSizeClass('input', this.size));
|
|
721
|
+
if (size) {
|
|
722
|
+
this.renderer.addClass(this.wrapper.nativeElement, getSizeClass('input', size));
|
|
723
|
+
}
|
|
724
|
+
this._size = size;
|
|
725
|
+
},
|
|
726
|
+
enumerable: true,
|
|
727
|
+
configurable: true
|
|
728
|
+
});
|
|
729
|
+
Object.defineProperty(DateInputComponent.prototype, "rounded", {
|
|
730
|
+
get: function () {
|
|
731
|
+
return this._rounded;
|
|
732
|
+
},
|
|
733
|
+
/**
|
|
734
|
+
* Sets the border radius of the component.
|
|
735
|
+
*
|
|
736
|
+
* The possible values are:
|
|
737
|
+
* * `'small'`
|
|
738
|
+
* * `'medium'` (Default)
|
|
739
|
+
* * `'large'`
|
|
740
|
+
* * `'full'`
|
|
741
|
+
* * `null`
|
|
742
|
+
*
|
|
743
|
+
*/
|
|
744
|
+
set: function (rounded) {
|
|
745
|
+
this.renderer.removeClass(this.wrapper.nativeElement, getRoundedClass(this.rounded));
|
|
746
|
+
if (rounded) {
|
|
747
|
+
this.renderer.addClass(this.wrapper.nativeElement, getRoundedClass(rounded));
|
|
748
|
+
}
|
|
749
|
+
this._rounded = rounded;
|
|
750
|
+
},
|
|
751
|
+
enumerable: true,
|
|
752
|
+
configurable: true
|
|
753
|
+
});
|
|
754
|
+
Object.defineProperty(DateInputComponent.prototype, "fillMode", {
|
|
755
|
+
get: function () {
|
|
756
|
+
return this._fillMode;
|
|
757
|
+
},
|
|
758
|
+
/**
|
|
759
|
+
* Sets the fillMode of the component.
|
|
760
|
+
*
|
|
761
|
+
* The possible values are:
|
|
762
|
+
* * `'solid'` (Default)
|
|
763
|
+
* * `'flat'`
|
|
764
|
+
* * `'outline'`
|
|
765
|
+
* * `null`
|
|
766
|
+
*
|
|
767
|
+
*/
|
|
768
|
+
set: function (fillMode) {
|
|
769
|
+
this.renderer.removeClass(this.wrapper.nativeElement, getFillModeClass('input', this.fillMode));
|
|
770
|
+
if (fillMode) {
|
|
771
|
+
this.renderer.addClass(this.wrapper.nativeElement, getFillModeClass('input', fillMode));
|
|
772
|
+
if (this.spinners && this.spinup && this.spindown) {
|
|
773
|
+
this.setSpinnerFill(this.spinup.nativeElement, fillMode, this.fillMode);
|
|
774
|
+
this.setSpinnerFill(this.spindown.nativeElement, fillMode, this.fillMode);
|
|
775
|
+
}
|
|
776
|
+
}
|
|
777
|
+
this._fillMode = fillMode;
|
|
778
|
+
},
|
|
779
|
+
enumerable: true,
|
|
780
|
+
configurable: true
|
|
781
|
+
});
|
|
702
782
|
Object.defineProperty(DateInputComponent.prototype, "wrapperClass", {
|
|
703
783
|
get: function () {
|
|
704
784
|
return true;
|
|
@@ -733,16 +813,16 @@ var DateInputComponent = /** @class */ (function () {
|
|
|
733
813
|
},
|
|
734
814
|
set: function (value) {
|
|
735
815
|
this._active = value;
|
|
736
|
-
if (!this.
|
|
816
|
+
if (!this.wrapper) {
|
|
737
817
|
return;
|
|
738
818
|
}
|
|
739
819
|
if (!isPresent(this.pickerService)) {
|
|
740
|
-
var element = this.
|
|
820
|
+
var element = this.wrapper.nativeElement;
|
|
741
821
|
if (value) {
|
|
742
|
-
this.renderer.addClass(element, 'k-
|
|
822
|
+
this.renderer.addClass(element, 'k-focus');
|
|
743
823
|
}
|
|
744
824
|
else {
|
|
745
|
-
this.renderer.removeClass(element, 'k-
|
|
825
|
+
this.renderer.removeClass(element, 'k-focus');
|
|
746
826
|
}
|
|
747
827
|
}
|
|
748
828
|
},
|
|
@@ -791,7 +871,7 @@ var DateInputComponent = /** @class */ (function () {
|
|
|
791
871
|
*/
|
|
792
872
|
DateInputComponent.prototype.containsElement = function (element) {
|
|
793
873
|
var _this = this;
|
|
794
|
-
return Boolean(closest(element, function (node) { return node === _this.
|
|
874
|
+
return Boolean(closest(element, function (node) { return node === _this.wrapper.nativeElement; }));
|
|
795
875
|
};
|
|
796
876
|
/**
|
|
797
877
|
* @hidden
|
|
@@ -844,13 +924,16 @@ var DateInputComponent = /** @class */ (function () {
|
|
|
844
924
|
this.updateElementValue();
|
|
845
925
|
this.intlSubscription = this.intl.changes.subscribe(this.intlChange.bind(this));
|
|
846
926
|
this.ngControl = this.injector.get(NgControl, null);
|
|
847
|
-
if (this.
|
|
848
|
-
this.renderer.removeAttribute(this.
|
|
927
|
+
if (this.wrapper) {
|
|
928
|
+
this.renderer.removeAttribute(this.wrapper.nativeElement, 'tabindex');
|
|
849
929
|
this.ngZone.runOutsideAngular(function () {
|
|
850
930
|
_this.bindEvents();
|
|
851
931
|
});
|
|
852
932
|
}
|
|
853
933
|
};
|
|
934
|
+
DateInputComponent.prototype.ngAfterViewInit = function () {
|
|
935
|
+
this.setComponentClasses();
|
|
936
|
+
};
|
|
854
937
|
/**
|
|
855
938
|
* @hidden
|
|
856
939
|
*/
|
|
@@ -1204,7 +1287,7 @@ var DateInputComponent = /** @class */ (function () {
|
|
|
1204
1287
|
}
|
|
1205
1288
|
};
|
|
1206
1289
|
DateInputComponent.prototype.bindEvents = function () {
|
|
1207
|
-
var element = this.
|
|
1290
|
+
var element = this.wrapper.nativeElement;
|
|
1208
1291
|
var mousewheelHandler = this.handleMouseWheel.bind(this);
|
|
1209
1292
|
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)));
|
|
1210
1293
|
};
|
|
@@ -1336,6 +1419,29 @@ var DateInputComponent = /** @class */ (function () {
|
|
|
1336
1419
|
this.pickerService.dateCompletenessChange.emit();
|
|
1337
1420
|
}
|
|
1338
1421
|
};
|
|
1422
|
+
DateInputComponent.prototype.setSpinnerFill = function (spinner, fill, oldFill) {
|
|
1423
|
+
if (oldFill) {
|
|
1424
|
+
this.renderer.removeClass(spinner, "k-button-" + oldFill);
|
|
1425
|
+
this.renderer.removeClass(spinner, "k-button-" + oldFill + "-base");
|
|
1426
|
+
}
|
|
1427
|
+
this.renderer.addClass(spinner, "k-button-" + fill);
|
|
1428
|
+
this.renderer.addClass(spinner, "k-button-" + fill + "-base");
|
|
1429
|
+
};
|
|
1430
|
+
DateInputComponent.prototype.setComponentClasses = function () {
|
|
1431
|
+
if (this.size) {
|
|
1432
|
+
this.renderer.addClass(this.wrapper.nativeElement, getSizeClass('input', this.size));
|
|
1433
|
+
}
|
|
1434
|
+
if (this.rounded) {
|
|
1435
|
+
this.renderer.addClass(this.wrapper.nativeElement, getRoundedClass(this.rounded));
|
|
1436
|
+
}
|
|
1437
|
+
if (this.fillMode) {
|
|
1438
|
+
this.renderer.addClass(this.wrapper.nativeElement, getFillModeClass('input', this.fillMode));
|
|
1439
|
+
}
|
|
1440
|
+
if (this.spinners) {
|
|
1441
|
+
this.setSpinnerFill(this.spinup.nativeElement, this.fillMode);
|
|
1442
|
+
this.setSpinnerFill(this.spindown.nativeElement, this.fillMode);
|
|
1443
|
+
}
|
|
1444
|
+
};
|
|
1339
1445
|
var DateInputComponent_1;
|
|
1340
1446
|
tslib_1.__decorate([
|
|
1341
1447
|
Input(),
|
|
@@ -1427,6 +1533,21 @@ var DateInputComponent = /** @class */ (function () {
|
|
|
1427
1533
|
Input(),
|
|
1428
1534
|
tslib_1.__metadata("design:type", Boolean)
|
|
1429
1535
|
], DateInputComponent.prototype, "hasPopup", void 0);
|
|
1536
|
+
tslib_1.__decorate([
|
|
1537
|
+
Input(),
|
|
1538
|
+
tslib_1.__metadata("design:type", String),
|
|
1539
|
+
tslib_1.__metadata("design:paramtypes", [String])
|
|
1540
|
+
], DateInputComponent.prototype, "size", null);
|
|
1541
|
+
tslib_1.__decorate([
|
|
1542
|
+
Input(),
|
|
1543
|
+
tslib_1.__metadata("design:type", String),
|
|
1544
|
+
tslib_1.__metadata("design:paramtypes", [String])
|
|
1545
|
+
], DateInputComponent.prototype, "rounded", null);
|
|
1546
|
+
tslib_1.__decorate([
|
|
1547
|
+
Input(),
|
|
1548
|
+
tslib_1.__metadata("design:type", String),
|
|
1549
|
+
tslib_1.__metadata("design:paramtypes", [String])
|
|
1550
|
+
], DateInputComponent.prototype, "fillMode", null);
|
|
1430
1551
|
tslib_1.__decorate([
|
|
1431
1552
|
Output(),
|
|
1432
1553
|
tslib_1.__metadata("design:type", EventEmitter)
|
|
@@ -1448,20 +1569,24 @@ var DateInputComponent = /** @class */ (function () {
|
|
|
1448
1569
|
tslib_1.__metadata("design:type", ElementRef)
|
|
1449
1570
|
], DateInputComponent.prototype, "dateInput", void 0);
|
|
1450
1571
|
tslib_1.__decorate([
|
|
1451
|
-
|
|
1452
|
-
tslib_1.__metadata("design:type", ElementRef)
|
|
1453
|
-
], DateInputComponent.prototype, "wrap", void 0);
|
|
1454
|
-
tslib_1.__decorate([
|
|
1455
|
-
HostBinding('class.k-widget'),
|
|
1572
|
+
HostBinding('class.k-input'),
|
|
1456
1573
|
HostBinding('class.k-dateinput'),
|
|
1457
1574
|
tslib_1.__metadata("design:type", Boolean),
|
|
1458
1575
|
tslib_1.__metadata("design:paramtypes", [])
|
|
1459
1576
|
], DateInputComponent.prototype, "wrapperClass", null);
|
|
1460
1577
|
tslib_1.__decorate([
|
|
1461
|
-
HostBinding('class.k-
|
|
1578
|
+
HostBinding('class.k-disabled'),
|
|
1462
1579
|
tslib_1.__metadata("design:type", Boolean),
|
|
1463
1580
|
tslib_1.__metadata("design:paramtypes", [])
|
|
1464
1581
|
], DateInputComponent.prototype, "disabledClass", null);
|
|
1582
|
+
tslib_1.__decorate([
|
|
1583
|
+
ViewChild('spinup', { static: false }),
|
|
1584
|
+
tslib_1.__metadata("design:type", ElementRef)
|
|
1585
|
+
], DateInputComponent.prototype, "spinup", void 0);
|
|
1586
|
+
tslib_1.__decorate([
|
|
1587
|
+
ViewChild('spindown', { static: false }),
|
|
1588
|
+
tslib_1.__metadata("design:type", ElementRef)
|
|
1589
|
+
], DateInputComponent.prototype, "spindown", void 0);
|
|
1465
1590
|
DateInputComponent = DateInputComponent_1 = tslib_1.__decorate([
|
|
1466
1591
|
Component({
|
|
1467
1592
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
@@ -1474,7 +1599,7 @@ var DateInputComponent = /** @class */ (function () {
|
|
|
1474
1599
|
LocalizationService
|
|
1475
1600
|
],
|
|
1476
1601
|
selector: 'kendo-dateinput',
|
|
1477
|
-
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 <
|
|
1602
|
+
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 "
|
|
1478
1603
|
}),
|
|
1479
1604
|
tslib_1.__param(7, Optional()),
|
|
1480
1605
|
tslib_1.__metadata("design:paramtypes", [ChangeDetectorRef,
|
|
@@ -27,7 +27,7 @@ import { HeaderTitleTemplateDirective } from '../calendar/templates/header-title
|
|
|
27
27
|
import { NavigationItemTemplateDirective } from '../calendar/templates/navigation-item-template.directive';
|
|
28
28
|
import { PickerService } from '../common/picker.service';
|
|
29
29
|
import { DisabledDatesService } from '../calendar/services/disabled-dates.service';
|
|
30
|
-
import { noop, isValidRange, setTime, isWindowAvailable, isTabExitingCalendar } from '../util';
|
|
30
|
+
import { noop, isValidRange, setTime, isWindowAvailable, isTabExitingCalendar, getSizeClass, getRoundedClass, getFillModeClass } from '../util';
|
|
31
31
|
import { TOUCH_ENABLED } from '../touch-enabled';
|
|
32
32
|
import { requiresZoneOnBlur, currentFocusTarget } from '../common/utils';
|
|
33
33
|
import { fromEvent } from 'rxjs';
|
|
@@ -42,12 +42,12 @@ var TWO_DIGIT_YEAR_MAX = 68;
|
|
|
42
42
|
* Represents the [Kendo UI DatePicker component for Angular]({% slug overview_datepicker %}#toc-basic-usage).
|
|
43
43
|
*/
|
|
44
44
|
var DatePickerComponent = /** @class */ (function () {
|
|
45
|
-
function DatePickerComponent(zone, localization, cdr, popupService,
|
|
45
|
+
function DatePickerComponent(zone, localization, cdr, popupService, wrapper, renderer, injector, pickerService, disabledDatesService, touchEnabled) {
|
|
46
46
|
this.zone = zone;
|
|
47
47
|
this.localization = localization;
|
|
48
48
|
this.cdr = cdr;
|
|
49
49
|
this.popupService = popupService;
|
|
50
|
-
this.
|
|
50
|
+
this.wrapper = wrapper;
|
|
51
51
|
this.renderer = renderer;
|
|
52
52
|
this.injector = injector;
|
|
53
53
|
this.pickerService = pickerService;
|
|
@@ -273,6 +273,9 @@ var DatePickerComponent = /** @class */ (function () {
|
|
|
273
273
|
this.incompleteValidator = noop;
|
|
274
274
|
this.resolvedPromise = Promise.resolve(null);
|
|
275
275
|
this.domEvents = [];
|
|
276
|
+
this._size = 'medium';
|
|
277
|
+
this._rounded = 'medium';
|
|
278
|
+
this._fillMode = 'solid';
|
|
276
279
|
validatePackage(packageMetadata);
|
|
277
280
|
this.pickerSubscriptions = this.pickerService.onFocus.subscribe(this.handleFocus.bind(this));
|
|
278
281
|
this.pickerSubscriptions.add(this.pickerService.onBlur.subscribe(this.handleBlur.bind(this)));
|
|
@@ -423,6 +426,85 @@ var DatePickerComponent = /** @class */ (function () {
|
|
|
423
426
|
enumerable: true,
|
|
424
427
|
configurable: true
|
|
425
428
|
});
|
|
429
|
+
Object.defineProperty(DatePickerComponent.prototype, "size", {
|
|
430
|
+
get: function () {
|
|
431
|
+
return this._size;
|
|
432
|
+
},
|
|
433
|
+
/**
|
|
434
|
+
* Sets the size of the component.
|
|
435
|
+
*
|
|
436
|
+
* The possible values are:
|
|
437
|
+
* * `'small'`
|
|
438
|
+
* * `'medium'` (Default)
|
|
439
|
+
* * `'large'`
|
|
440
|
+
* * `null`
|
|
441
|
+
*
|
|
442
|
+
*/
|
|
443
|
+
set: function (size) {
|
|
444
|
+
this.renderer.removeClass(this.wrapper.nativeElement, getSizeClass('input', this.size));
|
|
445
|
+
this.renderer.removeClass(this.toggleButton.nativeElement, getSizeClass('input', this.size));
|
|
446
|
+
if (size) {
|
|
447
|
+
this.renderer.addClass(this.wrapper.nativeElement, getSizeClass('input', size));
|
|
448
|
+
this.renderer.addClass(this.toggleButton.nativeElement, getSizeClass('input', size));
|
|
449
|
+
}
|
|
450
|
+
this._size = size;
|
|
451
|
+
},
|
|
452
|
+
enumerable: true,
|
|
453
|
+
configurable: true
|
|
454
|
+
});
|
|
455
|
+
Object.defineProperty(DatePickerComponent.prototype, "rounded", {
|
|
456
|
+
get: function () {
|
|
457
|
+
return this._rounded;
|
|
458
|
+
},
|
|
459
|
+
/**
|
|
460
|
+
* Sets the border radius of the component.
|
|
461
|
+
*
|
|
462
|
+
* The possible values are:
|
|
463
|
+
* * `'small'`
|
|
464
|
+
* * `'medium'` (Default)
|
|
465
|
+
* * `'large'`
|
|
466
|
+
* * `'full'`
|
|
467
|
+
* * `null`
|
|
468
|
+
*
|
|
469
|
+
*/
|
|
470
|
+
set: function (rounded) {
|
|
471
|
+
this.renderer.removeClass(this.wrapper.nativeElement, getRoundedClass(this.rounded));
|
|
472
|
+
if (rounded) {
|
|
473
|
+
this.renderer.addClass(this.wrapper.nativeElement, getRoundedClass(rounded));
|
|
474
|
+
}
|
|
475
|
+
this._rounded = rounded;
|
|
476
|
+
},
|
|
477
|
+
enumerable: true,
|
|
478
|
+
configurable: true
|
|
479
|
+
});
|
|
480
|
+
Object.defineProperty(DatePickerComponent.prototype, "fillMode", {
|
|
481
|
+
get: function () {
|
|
482
|
+
return this._fillMode;
|
|
483
|
+
},
|
|
484
|
+
/**
|
|
485
|
+
* Sets the fillMode of the component.
|
|
486
|
+
*
|
|
487
|
+
* The possible values are:
|
|
488
|
+
* * `'solid'` (Default)
|
|
489
|
+
* * `'flat'`
|
|
490
|
+
* * `'outline'`
|
|
491
|
+
* * `null`
|
|
492
|
+
*
|
|
493
|
+
*/
|
|
494
|
+
set: function (fillMode) {
|
|
495
|
+
this.renderer.removeClass(this.wrapper.nativeElement, getFillModeClass('input', this.fillMode));
|
|
496
|
+
this.renderer.removeClass(this.toggleButton.nativeElement, getFillModeClass('button', this.fillMode));
|
|
497
|
+
this.renderer.removeClass(this.toggleButton.nativeElement, "k-button-" + this.fillMode + "-base");
|
|
498
|
+
if (fillMode) {
|
|
499
|
+
this.renderer.addClass(this.toggleButton.nativeElement, getFillModeClass('button', fillMode));
|
|
500
|
+
this.renderer.addClass(this.toggleButton.nativeElement, "k-button-" + fillMode + "-base");
|
|
501
|
+
this.renderer.addClass(this.wrapper.nativeElement, getFillModeClass('input', fillMode));
|
|
502
|
+
}
|
|
503
|
+
this._fillMode = fillMode;
|
|
504
|
+
},
|
|
505
|
+
enumerable: true,
|
|
506
|
+
configurable: true
|
|
507
|
+
});
|
|
426
508
|
Object.defineProperty(DatePickerComponent.prototype, "disabledClass", {
|
|
427
509
|
/**
|
|
428
510
|
* @hidden
|
|
@@ -454,10 +536,10 @@ var DatePickerComponent = /** @class */ (function () {
|
|
|
454
536
|
}
|
|
455
537
|
var element = this.wrapper.nativeElement;
|
|
456
538
|
if (value) {
|
|
457
|
-
this.renderer.addClass(element, 'k-
|
|
539
|
+
this.renderer.addClass(element, 'k-focus');
|
|
458
540
|
}
|
|
459
541
|
else {
|
|
460
|
-
this.renderer.removeClass(element, 'k-
|
|
542
|
+
this.renderer.removeClass(element, 'k-focus');
|
|
461
543
|
}
|
|
462
544
|
},
|
|
463
545
|
enumerable: true,
|
|
@@ -501,13 +583,16 @@ var DatePickerComponent = /** @class */ (function () {
|
|
|
501
583
|
.changes
|
|
502
584
|
.subscribe(function () { return _this.cdr.markForCheck(); });
|
|
503
585
|
this.control = this.injector.get(NgControl, null);
|
|
504
|
-
if (this.
|
|
505
|
-
this.renderer.removeAttribute(this.
|
|
586
|
+
if (this.wrapper) {
|
|
587
|
+
this.renderer.removeAttribute(this.wrapper.nativeElement, 'tabindex');
|
|
506
588
|
this.zone.runOutsideAngular(function () {
|
|
507
589
|
_this.bindEvents();
|
|
508
590
|
});
|
|
509
591
|
}
|
|
510
592
|
};
|
|
593
|
+
DatePickerComponent.prototype.ngAfterViewInit = function () {
|
|
594
|
+
this.setComponentClasses();
|
|
595
|
+
};
|
|
511
596
|
/**
|
|
512
597
|
* @hidden
|
|
513
598
|
*/
|
|
@@ -821,7 +906,7 @@ var DatePickerComponent = /** @class */ (function () {
|
|
|
821
906
|
}
|
|
822
907
|
};
|
|
823
908
|
DatePickerComponent.prototype.bindEvents = function () {
|
|
824
|
-
var element = this.
|
|
909
|
+
var element = this.wrapper.nativeElement;
|
|
825
910
|
this.domEvents.push(this.renderer.listen(element, 'keydown', this.handleKeydown.bind(this)));
|
|
826
911
|
if (isWindowAvailable()) {
|
|
827
912
|
this.windowBlurSubscription = fromEvent(window, 'blur').subscribe(this.handleWindowBlur.bind(this));
|
|
@@ -880,6 +965,20 @@ var DatePickerComponent = /** @class */ (function () {
|
|
|
880
965
|
this.cdr.markForCheck();
|
|
881
966
|
this.zone.run(function () { return _this.onValidatorChange(); });
|
|
882
967
|
};
|
|
968
|
+
DatePickerComponent.prototype.setComponentClasses = function () {
|
|
969
|
+
if (this.size) {
|
|
970
|
+
this.renderer.addClass(this.wrapper.nativeElement, getSizeClass('input', this.size));
|
|
971
|
+
this.renderer.addClass(this.toggleButton.nativeElement, getSizeClass('button', this.size));
|
|
972
|
+
}
|
|
973
|
+
if (this.rounded) {
|
|
974
|
+
this.renderer.addClass(this.wrapper.nativeElement, getRoundedClass(this.rounded));
|
|
975
|
+
}
|
|
976
|
+
if (this.fillMode) {
|
|
977
|
+
this.renderer.addClass(this.wrapper.nativeElement, getFillModeClass('input', this.fillMode));
|
|
978
|
+
this.renderer.addClass(this.toggleButton.nativeElement, getFillModeClass('button', this.fillMode));
|
|
979
|
+
this.renderer.addClass(this.toggleButton.nativeElement, "k-button-" + this.fillMode + "-base");
|
|
980
|
+
}
|
|
981
|
+
};
|
|
883
982
|
var DatePickerComponent_1;
|
|
884
983
|
tslib_1.__decorate([
|
|
885
984
|
ViewChild('container', { read: ViewContainerRef, static: true }),
|
|
@@ -890,9 +989,9 @@ var DatePickerComponent = /** @class */ (function () {
|
|
|
890
989
|
tslib_1.__metadata("design:type", TemplateRef)
|
|
891
990
|
], DatePickerComponent.prototype, "popupTemplate", void 0);
|
|
892
991
|
tslib_1.__decorate([
|
|
893
|
-
ViewChild('
|
|
992
|
+
ViewChild('toggleButton', { static: true }),
|
|
894
993
|
tslib_1.__metadata("design:type", ElementRef)
|
|
895
|
-
], DatePickerComponent.prototype, "
|
|
994
|
+
], DatePickerComponent.prototype, "toggleButton", void 0);
|
|
896
995
|
tslib_1.__decorate([
|
|
897
996
|
ContentChild(CellTemplateDirective, { static: false }),
|
|
898
997
|
tslib_1.__metadata("design:type", CellTemplateDirective)
|
|
@@ -1077,6 +1176,21 @@ var DatePickerComponent = /** @class */ (function () {
|
|
|
1077
1176
|
Input(),
|
|
1078
1177
|
tslib_1.__metadata("design:type", Boolean)
|
|
1079
1178
|
], DatePickerComponent.prototype, "weekNumber", void 0);
|
|
1179
|
+
tslib_1.__decorate([
|
|
1180
|
+
Input(),
|
|
1181
|
+
tslib_1.__metadata("design:type", String),
|
|
1182
|
+
tslib_1.__metadata("design:paramtypes", [String])
|
|
1183
|
+
], DatePickerComponent.prototype, "size", null);
|
|
1184
|
+
tslib_1.__decorate([
|
|
1185
|
+
Input(),
|
|
1186
|
+
tslib_1.__metadata("design:type", String),
|
|
1187
|
+
tslib_1.__metadata("design:paramtypes", [String])
|
|
1188
|
+
], DatePickerComponent.prototype, "rounded", null);
|
|
1189
|
+
tslib_1.__decorate([
|
|
1190
|
+
Input(),
|
|
1191
|
+
tslib_1.__metadata("design:type", String),
|
|
1192
|
+
tslib_1.__metadata("design:paramtypes", [String])
|
|
1193
|
+
], DatePickerComponent.prototype, "fillMode", null);
|
|
1080
1194
|
tslib_1.__decorate([
|
|
1081
1195
|
Output(),
|
|
1082
1196
|
tslib_1.__metadata("design:type", EventEmitter)
|
|
@@ -1098,12 +1212,12 @@ var DatePickerComponent = /** @class */ (function () {
|
|
|
1098
1212
|
tslib_1.__metadata("design:type", EventEmitter)
|
|
1099
1213
|
], DatePickerComponent.prototype, "close", void 0);
|
|
1100
1214
|
tslib_1.__decorate([
|
|
1101
|
-
HostBinding('class.k-widget'),
|
|
1102
1215
|
HostBinding('class.k-datepicker'),
|
|
1216
|
+
HostBinding('class.k-input'),
|
|
1103
1217
|
tslib_1.__metadata("design:type", Boolean)
|
|
1104
1218
|
], DatePickerComponent.prototype, "wrapperClasses", void 0);
|
|
1105
1219
|
tslib_1.__decorate([
|
|
1106
|
-
HostBinding('class.k-
|
|
1220
|
+
HostBinding('class.k-disabled'),
|
|
1107
1221
|
tslib_1.__metadata("design:type", Boolean),
|
|
1108
1222
|
tslib_1.__metadata("design:paramtypes", [])
|
|
1109
1223
|
], DatePickerComponent.prototype, "disabledClass", null);
|
|
@@ -1124,7 +1238,7 @@ var DatePickerComponent = /** @class */ (function () {
|
|
|
1124
1238
|
}
|
|
1125
1239
|
],
|
|
1126
1240
|
selector: 'kendo-datepicker',
|
|
1127
|
-
template: "\n <ng-container kendoDatePickerLocalizedMessages\n i18n-today=\"kendo.datepicker.today|The label for the today button in the calendar header\"\n today=\"Today\"\n\n i18n-toggle=\"kendo.datepicker.toggle|The title of the toggle button in the datepicker component\"\n toggle=\"Toggle calendar\"\n\n i18n-prevButtonTitle=\"kendo.datepicker.prevButtonTitle|The title of the previous button in the Classic calendar\"\n prevButtonTitle=\"Navigate to previous view\"\n\n i18n-nextButtonTitle=\"kendo.datepicker.nextButtonTitle|The title of the next button in the Classic calendar\"\n nextButtonTitle=\"Navigate to next view\"\n >\n </ng-container>\n <
|
|
1241
|
+
template: "\n <ng-container kendoDatePickerLocalizedMessages\n i18n-today=\"kendo.datepicker.today|The label for the today button in the calendar header\"\n today=\"Today\"\n\n i18n-toggle=\"kendo.datepicker.toggle|The title of the toggle button in the datepicker component\"\n toggle=\"Toggle calendar\"\n\n i18n-prevButtonTitle=\"kendo.datepicker.prevButtonTitle|The title of the previous button in the Classic calendar\"\n prevButtonTitle=\"Navigate to previous view\"\n\n i18n-nextButtonTitle=\"kendo.datepicker.nextButtonTitle|The title of the next button in the Classic calendar\"\n nextButtonTitle=\"Navigate to next view\"\n >\n </ng-container>\n <kendo-dateinput\n #input\n [role]=\"inputRole\"\n [focusableId]=\"focusableId\"\n [hasPopup]=\"true\"\n [isPopupOpen]=\"show\"\n [disabled]=\"disabled\"\n [readonly]=\"readonly || readOnlyInput\"\n [ariaReadOnly]=\"readonly\"\n [tabindex]=\"tabindex\"\n [title]=\"title\"\n [format]=\"format\"\n [twoDigitYearMax]=\"twoDigitYearMax\"\n [formatPlaceholder]=\"formatPlaceholder\"\n [placeholder]=\"placeholder\"\n [min]=\"min\"\n [max]=\"max\"\n [incompleteDateValidation]=\"incompleteDateValidation\"\n [fillMode]=\"null\"\n [rounded]=\"null\"\n [size]=\"null\"\n [value]=\"value\"\n (valueChange)=\"handleInputChange($event)\"\n ></kendo-dateinput>\n <button\n #toggleButton\n type=\"button\"\n class=\"k-input-button k-button k-icon-button\"\n [tabindex]=\"-1\"\n [attr.title]=\"localization.get('toggle')\"\n [attr.aria-label]=\"localization.get('toggle')\"\n [kendoEventsOutsideAngular]=\"{\n click: handleIconClick,\n mousedown: handleMousedown\n }\"\n [scope]=\"this\"\n >\n <span class=\"k-button-icon k-icon k-i-calendar\"></span>\n </button>\n <ng-container #container></ng-container>\n <ng-template #popupTemplate>\n <kendo-calendar\n #calendar\n [type]=\"calendarType\"\n [min]=\"min\"\n [max]=\"max\"\n [navigation]=\"navigation\"\n [animateNavigation]=\"animateCalendarNavigation\"\n [activeView]=\"activeView\"\n [bottomView]=\"bottomView\"\n [topView]=\"topView\"\n [weekNumber]=\"weekNumber\"\n [cellTemplate]=\"cellTemplate\"\n [monthCellTemplate]=\"monthCellTemplate\"\n [yearCellTemplate]=\"yearCellTemplate\"\n [decadeCellTemplate]=\"decadeCellTemplate\"\n [centuryCellTemplate]=\"centuryCellTemplate\"\n [weekNumberTemplate]=\"weekNumberTemplate\"\n [headerTitleTemplate]=\"headerTitleTemplate\"\n [navigationItemTemplate]=\"navigationItemTemplate\"\n [focusedDate]=\"focusedDate\"\n [value]=\"value\"\n (valueChange)=\"handleChange(mergeTime($event))\"\n [kendoEventsOutsideAngular]=\"{\n keydown: handleKeydown\n }\"\n [scope]=\"this\"\n [disabledDates]=\"disabledDates\"\n >\n <kendo-calendar-messages\n [today]=\"localization.get('today')\"\n [prevButtonTitle]=\"localization.get('prevButtonTitle')\"\n [nextButtonTitle]=\"localization.get('nextButtonTitle')\"\n >\n </kendo-calendar-messages>\n </kendo-calendar>\n <ng-template>\n "
|
|
1128
1242
|
}),
|
|
1129
1243
|
tslib_1.__param(9, Optional()), tslib_1.__param(9, Inject(TOUCH_ENABLED)),
|
|
1130
1244
|
tslib_1.__metadata("design:paramtypes", [NgZone,
|
|
@@ -123,7 +123,7 @@ var DateRangeInput = /** @class */ (function () {
|
|
|
123
123
|
var action = show ? 'addClass' : 'removeClass';
|
|
124
124
|
var nativeElement = this.element.nativeElement;
|
|
125
125
|
if (nativeElement && nativeElement.querySelector) {
|
|
126
|
-
this.renderer[action](nativeElement
|
|
126
|
+
this.renderer[action](nativeElement, 'k-focus');
|
|
127
127
|
}
|
|
128
128
|
};
|
|
129
129
|
return DateRangeInput;
|