@progress/kendo-angular-dateinputs 7.1.3-dev.202210211241 → 7.1.3-dev.202210260703

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.
@@ -31,7 +31,11 @@ export declare class DateInputComponent implements OnInit, AfterViewInit, Contro
31
31
  /**
32
32
  * @hidden
33
33
  */
34
- focusableId: string;
34
+ get focusableId(): string;
35
+ /**
36
+ * @hidden
37
+ */
38
+ pickerType: string;
35
39
  /**
36
40
  * Sets or gets the `disabled` property of the DateInput and
37
41
  * determines whether the component is active
@@ -496,5 +500,5 @@ export declare class DateInputComponent implements OnInit, AfterViewInit, Contro
496
500
  private setSpinnerFill;
497
501
  private setComponentClasses;
498
502
  static ɵfac: i0.ɵɵFactoryDeclaration<DateInputComponent, [null, null, null, null, null, null, null, { optional: true; }]>;
499
- static ɵcmp: i0.ɵɵComponentDeclaration<DateInputComponent, "kendo-dateinput", ["kendo-dateinput"], { "focusableId": "focusableId"; "disabled": "disabled"; "readonly": "readonly"; "title": "title"; "tabindex": "tabindex"; "role": "role"; "ariaReadOnly": "ariaReadOnly"; "tabIndex": "tabIndex"; "format": "format"; "formatPlaceholder": "formatPlaceholder"; "placeholder": "placeholder"; "steps": "steps"; "max": "max"; "min": "min"; "rangeValidation": "rangeValidation"; "autoCorrect": "autoCorrect"; "incompleteDateValidation": "incompleteDateValidation"; "twoDigitYearMax": "twoDigitYearMax"; "value": "value"; "spinners": "spinners"; "isPopupOpen": "isPopupOpen"; "hasPopup": "hasPopup"; "size": "size"; "rounded": "rounded"; "fillMode": "fillMode"; }, { "valueChange": "valueChange"; "valueUpdate": "valueUpdate"; "onFocus": "focus"; "onBlur": "blur"; }, never, never>;
503
+ static ɵcmp: i0.ɵɵComponentDeclaration<DateInputComponent, "kendo-dateinput", ["kendo-dateinput"], { "pickerType": "pickerType"; "disabled": "disabled"; "readonly": "readonly"; "title": "title"; "tabindex": "tabindex"; "role": "role"; "ariaReadOnly": "ariaReadOnly"; "tabIndex": "tabIndex"; "format": "format"; "formatPlaceholder": "formatPlaceholder"; "placeholder": "placeholder"; "steps": "steps"; "max": "max"; "min": "min"; "rangeValidation": "rangeValidation"; "autoCorrect": "autoCorrect"; "incompleteDateValidation": "incompleteDateValidation"; "twoDigitYearMax": "twoDigitYearMax"; "value": "value"; "spinners": "spinners"; "isPopupOpen": "isPopupOpen"; "hasPopup": "hasPopup"; "size": "size"; "rounded": "rounded"; "fillMode": "fillMode"; }, { "valueChange": "valueChange"; "valueUpdate": "valueUpdate"; "onFocus": "focus"; "onBlur": "blur"; }, never, never>;
500
504
  }
@@ -109,10 +109,6 @@ export declare class DatePickerComponent implements ControlValueAccessor, OnInit
109
109
  * @hidden
110
110
  */
111
111
  set navigationItemTemplateRef(template: NavigationItemTemplateDirective);
112
- /**
113
- * @hidden
114
- */
115
- focusableId: string;
116
112
  /**
117
113
  * Defines the active view that the Calendar initially renders
118
114
  * ([see example]({% slug calendar_type_datepicker %}#toc-active-view)).
@@ -581,5 +577,5 @@ export declare class DatePickerComponent implements ControlValueAccessor, OnInit
581
577
  private handleDateCompletenessChange;
582
578
  private setComponentClasses;
583
579
  static ɵfac: i0.ɵɵFactoryDeclaration<DatePickerComponent, [null, null, null, null, null, null, null, null, null, { optional: true; }]>;
584
- static ɵcmp: i0.ɵɵComponentDeclaration<DatePickerComponent, "kendo-datepicker", ["kendo-datepicker"], { "cellTemplateRef": "cellTemplate"; "monthCellTemplateRef": "monthCellTemplate"; "yearCellTemplateRef": "yearCellTemplate"; "decadeCellTemplateRef": "decadeCellTemplate"; "centuryCellTemplateRef": "centuryCellTemplate"; "weekNumberTemplateRef": "weekNumberTemplate"; "headerTitleTemplateRef": "headerTitleTemplate"; "navigationItemTemplateRef": "navigationItemTemplate"; "focusableId": "focusableId"; "activeView": "activeView"; "bottomView": "bottomView"; "topView": "topView"; "calendarType": "calendarType"; "animateCalendarNavigation": "animateCalendarNavigation"; "disabled": "disabled"; "readonly": "readonly"; "readOnlyInput": "readOnlyInput"; "popupSettings": "popupSettings"; "navigation": "navigation"; "min": "min"; "max": "max"; "incompleteDateValidation": "incompleteDateValidation"; "focusedDate": "focusedDate"; "value": "value"; "format": "format"; "twoDigitYearMax": "twoDigitYearMax"; "formatPlaceholder": "formatPlaceholder"; "placeholder": "placeholder"; "tabindex": "tabindex"; "tabIndex": "tabIndex"; "disabledDates": "disabledDates"; "title": "title"; "rangeValidation": "rangeValidation"; "disabledDatesValidation": "disabledDatesValidation"; "weekNumber": "weekNumber"; "size": "size"; "rounded": "rounded"; "fillMode": "fillMode"; }, { "valueChange": "valueChange"; "onFocus": "focus"; "onBlur": "blur"; "open": "open"; "close": "close"; }, ["cellTemplate", "monthCellTemplate", "yearCellTemplate", "decadeCellTemplate", "centuryCellTemplate", "weekNumberTemplate", "headerTitleTemplate", "navigationItemTemplate"], never>;
580
+ static ɵcmp: i0.ɵɵComponentDeclaration<DatePickerComponent, "kendo-datepicker", ["kendo-datepicker"], { "cellTemplateRef": "cellTemplate"; "monthCellTemplateRef": "monthCellTemplate"; "yearCellTemplateRef": "yearCellTemplate"; "decadeCellTemplateRef": "decadeCellTemplate"; "centuryCellTemplateRef": "centuryCellTemplate"; "weekNumberTemplateRef": "weekNumberTemplate"; "headerTitleTemplateRef": "headerTitleTemplate"; "navigationItemTemplateRef": "navigationItemTemplate"; "activeView": "activeView"; "bottomView": "bottomView"; "topView": "topView"; "calendarType": "calendarType"; "animateCalendarNavigation": "animateCalendarNavigation"; "disabled": "disabled"; "readonly": "readonly"; "readOnlyInput": "readOnlyInput"; "popupSettings": "popupSettings"; "navigation": "navigation"; "min": "min"; "max": "max"; "incompleteDateValidation": "incompleteDateValidation"; "focusedDate": "focusedDate"; "value": "value"; "format": "format"; "twoDigitYearMax": "twoDigitYearMax"; "formatPlaceholder": "formatPlaceholder"; "placeholder": "placeholder"; "tabindex": "tabindex"; "tabIndex": "tabIndex"; "disabledDates": "disabledDates"; "title": "title"; "rangeValidation": "rangeValidation"; "disabledDatesValidation": "disabledDatesValidation"; "weekNumber": "weekNumber"; "size": "size"; "rounded": "rounded"; "fillMode": "fillMode"; }, { "valueChange": "valueChange"; "onFocus": "focus"; "onBlur": "blur"; "open": "open"; "close": "close"; }, ["cellTemplate", "monthCellTemplate", "yearCellTemplate", "decadeCellTemplate", "centuryCellTemplate", "weekNumberTemplate", "headerTitleTemplate", "navigationItemTemplate"], never>;
585
581
  }
@@ -122,10 +122,6 @@ export declare class DateTimePickerComponent implements OnInit, OnChanges, After
122
122
  */
123
123
  set popupSettings(settings: PopupSettings);
124
124
  get popupSettings(): PopupSettings;
125
- /**
126
- * @hidden
127
- */
128
- focusableId: string;
129
125
  /**
130
126
  * Sets the title of the input element of the DateTimePicker.
131
127
  */
@@ -567,5 +563,5 @@ export declare class DateTimePickerComponent implements OnInit, OnChanges, After
567
563
  private handleDateCompletenessChange;
568
564
  private setComponentClasses;
569
565
  static ɵfac: i0.ɵɵFactoryDeclaration<DateTimePickerComponent, never>;
570
- static ɵcmp: i0.ɵɵComponentDeclaration<DateTimePickerComponent, "kendo-datetimepicker", ["kendo-datetimepicker"], { "value": "value"; "format": "format"; "twoDigitYearMax": "twoDigitYearMax"; "tabindex": "tabindex"; "disabledDates": "disabledDates"; "popupSettings": "popupSettings"; "focusableId": "focusableId"; "title": "title"; "disabled": "disabled"; "readonly": "readonly"; "readOnlyInput": "readOnlyInput"; "cancelButton": "cancelButton"; "formatPlaceholder": "formatPlaceholder"; "placeholder": "placeholder"; "steps": "steps"; "focusedDate": "focusedDate"; "calendarType": "calendarType"; "animateCalendarNavigation": "animateCalendarNavigation"; "weekNumber": "weekNumber"; "min": "min"; "max": "max"; "rangeValidation": "rangeValidation"; "disabledDatesValidation": "disabledDatesValidation"; "incompleteDateValidation": "incompleteDateValidation"; "defaultTab": "defaultTab"; "size": "size"; "rounded": "rounded"; "fillMode": "fillMode"; }, { "valueChange": "valueChange"; "open": "open"; "close": "close"; "onFocus": "focus"; "onBlur": "blur"; }, ["cellTemplate", "monthCellTemplate", "yearCellTemplate", "decadeCellTemplate", "centuryCellTemplate", "weekNumberTemplate", "headerTitleTemplate"], never>;
566
+ static ɵcmp: i0.ɵɵComponentDeclaration<DateTimePickerComponent, "kendo-datetimepicker", ["kendo-datetimepicker"], { "value": "value"; "format": "format"; "twoDigitYearMax": "twoDigitYearMax"; "tabindex": "tabindex"; "disabledDates": "disabledDates"; "popupSettings": "popupSettings"; "title": "title"; "disabled": "disabled"; "readonly": "readonly"; "readOnlyInput": "readOnlyInput"; "cancelButton": "cancelButton"; "formatPlaceholder": "formatPlaceholder"; "placeholder": "placeholder"; "steps": "steps"; "focusedDate": "focusedDate"; "calendarType": "calendarType"; "animateCalendarNavigation": "animateCalendarNavigation"; "weekNumber": "weekNumber"; "min": "min"; "max": "max"; "rangeValidation": "rangeValidation"; "disabledDatesValidation": "disabledDatesValidation"; "incompleteDateValidation": "incompleteDateValidation"; "defaultTab": "defaultTab"; "size": "size"; "rounded": "rounded"; "fillMode": "fillMode"; }, { "valueChange": "valueChange"; "open": "open"; "close": "close"; "onFocus": "focus"; "onBlur": "blur"; }, ["cellTemplate", "monthCellTemplate", "yearCellTemplate", "decadeCellTemplate", "centuryCellTemplate", "weekNumberTemplate", "headerTitleTemplate"], never>;
571
567
  }
@@ -209,7 +209,7 @@ export class CalendarComponent {
209
209
  this.resolvedPromise = Promise.resolve(null);
210
210
  this.destroyed = false;
211
211
  validatePackage(packageMetadata);
212
- this.id = `kendo-calendarid-${this.bus.calendarId}-`;
212
+ this.id = `kendo-calendarid-${this.bus.calendarId}`;
213
213
  this.setClasses(element.nativeElement);
214
214
  if (this.pickerService) {
215
215
  this.pickerService.calendar = this;
@@ -238,7 +238,7 @@ export class CalendarComponent {
238
238
  * @hidden
239
239
  */
240
240
  get headerId() {
241
- return this.id + 'header-';
241
+ return this.id + '-header';
242
242
  }
243
243
  get focusedDate() {
244
244
  return this._focusedDate;
@@ -771,7 +771,6 @@ export class CalendarComponent {
771
771
  setClasses(element) {
772
772
  this.renderer.addClass(element, 'k-widget');
773
773
  this.renderer.addClass(element, 'k-calendar');
774
- this.renderer.addClass(element, 'k-calendar-md');
775
774
  this.renderer.addClass(element, `k-calendar-${this.type}`);
776
775
  }
777
776
  verifyChanges() {
@@ -825,11 +824,15 @@ export class CalendarComponent {
825
824
  handleKeydown(args) {
826
825
  if (this.type === 'infinite') {
827
826
  // reserve the alt + arrow key commands for the picker
827
+ const ctrlKey = args.ctrlKey || args.metaKey;
828
828
  const arrowKeyPressed = [Keys.ArrowUp, Keys.ArrowRight, Keys.ArrowDown, Keys.ArrowLeft].indexOf(args.keyCode) !== -1;
829
829
  const reserveKeyCommandsForPicker = isPresent(this.pickerService) && arrowKeyPressed && args.altKey;
830
830
  if (reserveKeyCommandsForPicker) {
831
831
  return;
832
832
  }
833
+ if (ctrlKey && arrowKeyPressed) {
834
+ args.preventDefault();
835
+ }
833
836
  // Prevent form from submitting on enter if used in datepicker (infinite view)
834
837
  const preventSubmitInDatePicker = isPresent(this.pickerService) && args.keyCode === Keys.Enter;
835
838
  if (preventSubmitInDatePicker) {
@@ -480,8 +480,10 @@ export class MultiViewCalendarComponent {
480
480
  * @hidden
481
481
  */
482
482
  keydown(event) {
483
- const onArrowRightAndControl = event.keyCode === Keys.ArrowRight && (event.ctrlKey || event.metaKey);
484
- const onArrowLeftAndControl = event.keyCode === Keys.ArrowLeft && (event.ctrlKey || event.metaKey);
483
+ const arrowUpOrDownKeyPressed = [Keys.ArrowUp, Keys.ArrowDown].indexOf(event.keyCode) !== -1;
484
+ const ctrlKey = event.ctrlKey || event.metaKey;
485
+ const onArrowRightAndControl = event.keyCode === Keys.ArrowRight && ctrlKey;
486
+ const onArrowLeftAndControl = event.keyCode === Keys.ArrowLeft && ctrlKey;
485
487
  const onTKeyPress = event.keyCode === Keys.KeyT;
486
488
  const onEnterKeyPress = event.keyCode === Keys.Enter;
487
489
  if (onArrowRightAndControl) {
@@ -494,6 +496,9 @@ export class MultiViewCalendarComponent {
494
496
  this.navigateView(this.prevView);
495
497
  return;
496
498
  }
499
+ else if (ctrlKey && arrowUpOrDownKeyPressed) {
500
+ event.preventDefault();
501
+ }
497
502
  else if (onTKeyPress) {
498
503
  this.focusedDate = getToday();
499
504
  this.bus.moveToBottom(this.activeViewEnum);
@@ -732,7 +737,6 @@ export class MultiViewCalendarComponent {
732
737
  setClasses(element) {
733
738
  this.renderer.addClass(element, 'k-widget');
734
739
  this.renderer.addClass(element, 'k-calendar');
735
- this.renderer.addClass(element, 'k-calendar-md');
736
740
  this.renderer.addClass(element, 'k-calendar-range');
737
741
  }
738
742
  verifyChanges() {
@@ -63,7 +63,7 @@ export const attributeNames = {
63
63
  ariaControls: 'aria-controls',
64
64
  ariaExpanded: 'aria-expanded',
65
65
  ariaHasPopup: 'aria-haspopup',
66
- valueNow: 'valuenow',
67
- valuetext: 'valuetext',
66
+ valueNow: 'aria-valuenow',
67
+ valuetext: 'aria-valuetext',
68
68
  ariaInvalid: 'aria-invalid'
69
69
  };
@@ -11,7 +11,7 @@ import { L10N_PREFIX, LocalizationService } from '@progress/kendo-angular-l10n';
11
11
  import { validatePackage } from '@progress/kendo-licensing';
12
12
  import { packageMetadata } from '../package-metadata';
13
13
  import { addMonths, cloneDate, createDate, getDate, isEqual, lastDayOfMonth } from '@progress/kendo-date-math';
14
- import { isDocumentAvailable, hasObservers, KendoInput, Keys, guid } from '@progress/kendo-angular-common';
14
+ import { isDocumentAvailable, hasObservers, KendoInput, Keys } from '@progress/kendo-angular-common';
15
15
  import { Arrow } from './arrow.enum';
16
16
  import { approximateStringMatching, noop, isInRange, dateInRange, isValidRange, setTime, cropTwoDigitYear, setYears, msPaddingFromFormat, millisecondDigitsInFormat, millisecondStepFor, getSizeClass, getRoundedClass, getFillModeClass, DEFAULT_FILL_MODE, DEFAULT_ROUNDED, DEFAULT_SIZE } from '../util';
17
17
  import { closest } from '../common/dom-queries';
@@ -24,6 +24,7 @@ import * as i3 from "../common/picker.service";
24
24
  import * as i4 from "./localization/dateinput-localized-messages.directive";
25
25
  import * as i5 from "@progress/kendo-angular-common";
26
26
  import * as i6 from "@angular/common";
27
+ let nextId = 0;
27
28
  const MIN_DOC_LINK = 'http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/DateInputComponent/#toc-min';
28
29
  const MAX_DOC_LINK = 'http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/DateInputComponent/#toc-max';
29
30
  const VALUE_DOC_LINK = 'http://www.telerik.com/kendo-angular-ui/components/dateinputs/dateinput/#toc-using-with-json';
@@ -74,6 +75,7 @@ class KendoDate {
74
75
  validatePackage(packageMetadata);
75
76
  this.monthNames = this.allFormatedMonths();
76
77
  this.dayPeriods = this.allDayPeriods();
78
+ nextId++;
77
79
  if (!value) {
78
80
  this.value = getDate(new Date());
79
81
  const sampleFormat = this.dateFormatString(this.value, this.format).symbols;
@@ -460,10 +462,6 @@ export class DateInputComponent {
460
462
  this.injector = injector;
461
463
  this.localization = localization;
462
464
  this.pickerService = pickerService;
463
- /**
464
- * @hidden
465
- */
466
- this.focusableId = `k-${guid()}`;
467
465
  /**
468
466
  * Sets or gets the `disabled` property of the DateInput and
469
467
  * determines whether the component is active
@@ -564,10 +562,6 @@ export class DateInputComponent {
564
562
  * [spinner buttons]({% slug spinbuttons_dateinput %}).
565
563
  */
566
564
  this.spinners = false;
567
- /**
568
- * @hidden
569
- */
570
- this.isPopupOpen = false;
571
565
  /**
572
566
  * @hidden
573
567
  */
@@ -670,6 +664,17 @@ export class DateInputComponent {
670
664
  this.ariaReadOnly = null;
671
665
  }
672
666
  }
667
+ /**
668
+ * @hidden
669
+ */
670
+ get focusableId() {
671
+ if (this.pickerType) {
672
+ return `${this.pickerType}-${nextId}`;
673
+ }
674
+ else {
675
+ return `dateinput-${nextId}`;
676
+ }
677
+ }
673
678
  /**
674
679
  * @hidden
675
680
  */
@@ -1415,7 +1420,7 @@ export class DateInputComponent {
1415
1420
  }
1416
1421
  }
1417
1422
  DateInputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DateInputComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1.IntlService }, { token: i0.Renderer2 }, { token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.Injector }, { token: i2.LocalizationService }, { token: i3.PickerService, optional: true }], target: i0.ɵɵFactoryTarget.Component });
1418
- DateInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: DateInputComponent, selector: "kendo-dateinput", inputs: { focusableId: "focusableId", disabled: "disabled", readonly: "readonly", title: "title", tabindex: "tabindex", role: "role", ariaReadOnly: "ariaReadOnly", tabIndex: "tabIndex", format: "format", formatPlaceholder: "formatPlaceholder", placeholder: "placeholder", steps: "steps", max: "max", min: "min", rangeValidation: "rangeValidation", autoCorrect: "autoCorrect", incompleteDateValidation: "incompleteDateValidation", twoDigitYearMax: "twoDigitYearMax", value: "value", spinners: "spinners", isPopupOpen: "isPopupOpen", hasPopup: "hasPopup", size: "size", rounded: "rounded", fillMode: "fillMode" }, outputs: { valueChange: "valueChange", valueUpdate: "valueUpdate", onFocus: "focus", onBlur: "blur" }, host: { properties: { "class.k-input": "this.wrapperClass", "class.k-dateinput": "this.wrapperClass", "class.k-disabled": "this.disabledClass" } }, providers: [
1423
+ DateInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: DateInputComponent, selector: "kendo-dateinput", inputs: { pickerType: "pickerType", disabled: "disabled", readonly: "readonly", title: "title", tabindex: "tabindex", role: "role", ariaReadOnly: "ariaReadOnly", tabIndex: "tabIndex", format: "format", formatPlaceholder: "formatPlaceholder", placeholder: "placeholder", steps: "steps", max: "max", min: "min", rangeValidation: "rangeValidation", autoCorrect: "autoCorrect", incompleteDateValidation: "incompleteDateValidation", twoDigitYearMax: "twoDigitYearMax", value: "value", spinners: "spinners", isPopupOpen: "isPopupOpen", hasPopup: "hasPopup", size: "size", rounded: "rounded", fillMode: "fillMode" }, outputs: { valueChange: "valueChange", valueUpdate: "valueUpdate", onFocus: "focus", onBlur: "blur" }, host: { properties: { "class.k-input": "this.wrapperClass", "class.k-dateinput": "this.wrapperClass", "class.k-disabled": "this.disabledClass" } }, providers: [
1419
1424
  { provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => DateInputComponent), multi: true },
1420
1425
  { provide: NG_VALIDATORS, useExisting: forwardRef(() => DateInputComponent), multi: true },
1421
1426
  { provide: L10N_PREFIX, useValue: 'kendo.dateinput' },
@@ -1565,7 +1570,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
1565
1570
  }]
1566
1571
  }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i1.IntlService }, { type: i0.Renderer2 }, { type: i0.ElementRef }, { type: i0.NgZone }, { type: i0.Injector }, { type: i2.LocalizationService }, { type: i3.PickerService, decorators: [{
1567
1572
  type: Optional
1568
- }] }]; }, propDecorators: { focusableId: [{
1573
+ }] }]; }, propDecorators: { pickerType: [{
1569
1574
  type: Input
1570
1575
  }], disabled: [{
1571
1576
  type: Input
@@ -50,7 +50,6 @@ const TWO_DIGIT_YEAR_MAX = 68;
50
50
  */
51
51
  export class DatePickerComponent {
52
52
  constructor(zone, localization, cdr, popupService, wrapper, renderer, injector, pickerService, disabledDatesService, touchEnabled) {
53
- var _a;
54
53
  this.zone = zone;
55
54
  this.localization = localization;
56
55
  this.cdr = cdr;
@@ -61,10 +60,6 @@ export class DatePickerComponent {
61
60
  this.pickerService = pickerService;
62
61
  this.disabledDatesService = disabledDatesService;
63
62
  this.touchEnabled = touchEnabled;
64
- /**
65
- * @hidden
66
- */
67
- this.focusableId = `k-datepicker-${(_a = this.calendar) === null || _a === void 0 ? void 0 : _a.id}-`;
68
63
  /**
69
64
  * Defines the active view that the Calendar initially renders
70
65
  * ([see example]({% slug calendar_type_datepicker %}#toc-active-view)).
@@ -898,7 +893,7 @@ export class DatePickerComponent {
898
893
  }
899
894
  }
900
895
  DatePickerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DatePickerComponent, deps: [{ token: i0.NgZone }, { token: i1.LocalizationService }, { token: i0.ChangeDetectorRef }, { token: i2.PopupService }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.Injector }, { token: i3.PickerService }, { token: i4.DisabledDatesService }, { token: TOUCH_ENABLED, optional: true }], target: i0.ɵɵFactoryTarget.Component });
901
- DatePickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: DatePickerComponent, selector: "kendo-datepicker", inputs: { cellTemplateRef: ["cellTemplate", "cellTemplateRef"], monthCellTemplateRef: ["monthCellTemplate", "monthCellTemplateRef"], yearCellTemplateRef: ["yearCellTemplate", "yearCellTemplateRef"], decadeCellTemplateRef: ["decadeCellTemplate", "decadeCellTemplateRef"], centuryCellTemplateRef: ["centuryCellTemplate", "centuryCellTemplateRef"], weekNumberTemplateRef: ["weekNumberTemplate", "weekNumberTemplateRef"], headerTitleTemplateRef: ["headerTitleTemplate", "headerTitleTemplateRef"], navigationItemTemplateRef: ["navigationItemTemplate", "navigationItemTemplateRef"], focusableId: "focusableId", activeView: "activeView", bottomView: "bottomView", topView: "topView", calendarType: "calendarType", animateCalendarNavigation: "animateCalendarNavigation", disabled: "disabled", readonly: "readonly", readOnlyInput: "readOnlyInput", popupSettings: "popupSettings", navigation: "navigation", min: "min", max: "max", incompleteDateValidation: "incompleteDateValidation", focusedDate: "focusedDate", value: "value", format: "format", twoDigitYearMax: "twoDigitYearMax", formatPlaceholder: "formatPlaceholder", placeholder: "placeholder", tabindex: "tabindex", tabIndex: "tabIndex", disabledDates: "disabledDates", title: "title", rangeValidation: "rangeValidation", disabledDatesValidation: "disabledDatesValidation", weekNumber: "weekNumber", size: "size", rounded: "rounded", fillMode: "fillMode" }, outputs: { valueChange: "valueChange", onFocus: "focus", onBlur: "blur", open: "open", close: "close" }, host: { properties: { "class.k-datepicker": "this.wrapperClasses", "class.k-input": "this.wrapperClasses", "class.k-disabled": "this.disabledClass" } }, providers: [
896
+ DatePickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: DatePickerComponent, selector: "kendo-datepicker", inputs: { cellTemplateRef: ["cellTemplate", "cellTemplateRef"], monthCellTemplateRef: ["monthCellTemplate", "monthCellTemplateRef"], yearCellTemplateRef: ["yearCellTemplate", "yearCellTemplateRef"], decadeCellTemplateRef: ["decadeCellTemplate", "decadeCellTemplateRef"], centuryCellTemplateRef: ["centuryCellTemplate", "centuryCellTemplateRef"], weekNumberTemplateRef: ["weekNumberTemplate", "weekNumberTemplateRef"], headerTitleTemplateRef: ["headerTitleTemplate", "headerTitleTemplateRef"], navigationItemTemplateRef: ["navigationItemTemplate", "navigationItemTemplateRef"], activeView: "activeView", bottomView: "bottomView", topView: "topView", calendarType: "calendarType", animateCalendarNavigation: "animateCalendarNavigation", disabled: "disabled", readonly: "readonly", readOnlyInput: "readOnlyInput", popupSettings: "popupSettings", navigation: "navigation", min: "min", max: "max", incompleteDateValidation: "incompleteDateValidation", focusedDate: "focusedDate", value: "value", format: "format", twoDigitYearMax: "twoDigitYearMax", formatPlaceholder: "formatPlaceholder", placeholder: "placeholder", tabindex: "tabindex", tabIndex: "tabIndex", disabledDates: "disabledDates", title: "title", rangeValidation: "rangeValidation", disabledDatesValidation: "disabledDatesValidation", weekNumber: "weekNumber", size: "size", rounded: "rounded", fillMode: "fillMode" }, outputs: { valueChange: "valueChange", onFocus: "focus", onBlur: "blur", open: "open", close: "close" }, host: { properties: { "class.k-datepicker": "this.wrapperClasses", "class.k-input": "this.wrapperClasses", "class.k-disabled": "this.disabledClass" } }, providers: [
902
897
  { provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => DatePickerComponent), multi: true },
903
898
  { provide: NG_VALIDATORS, useExisting: forwardRef(() => DatePickerComponent), multi: true },
904
899
  { provide: KendoInput, useExisting: forwardRef(() => DatePickerComponent) },
@@ -927,7 +922,7 @@ DatePickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ve
927
922
  <kendo-dateinput
928
923
  #input
929
924
  [role]="'combobox'"
930
- [focusableId]="focusableId"
925
+ pickerType="datepicker"
931
926
  [hasPopup]="true"
932
927
  [isPopupOpen]="show"
933
928
  [disabled]="disabled"
@@ -1001,7 +996,7 @@ DatePickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ve
1001
996
  </kendo-calendar-messages>
1002
997
  </kendo-calendar>
1003
998
  <ng-template>
1004
- `, isInline: true, components: [{ type: i5.DateInputComponent, selector: "kendo-dateinput", inputs: ["focusableId", "disabled", "readonly", "title", "tabindex", "role", "ariaReadOnly", "tabIndex", "format", "formatPlaceholder", "placeholder", "steps", "max", "min", "rangeValidation", "autoCorrect", "incompleteDateValidation", "twoDigitYearMax", "value", "spinners", "isPopupOpen", "hasPopup", "size", "rounded", "fillMode"], outputs: ["valueChange", "valueUpdate", "focus", "blur"], exportAs: ["kendo-dateinput"] }, { type: i6.CalendarComponent, selector: "kendo-calendar", inputs: ["id", "focusedDate", "min", "max", "rangeValidation", "selection", "value", "disabled", "tabindex", "tabIndex", "disabledDates", "navigation", "activeView", "bottomView", "topView", "type", "animateNavigation", "weekNumber", "cellTemplate", "monthCellTemplate", "yearCellTemplate", "decadeCellTemplate", "centuryCellTemplate", "weekNumberTemplate", "headerTitleTemplate", "navigationItemTemplate"], outputs: ["activeViewChange", "navigate", "activeViewDateChange", "valueChange"], exportAs: ["kendo-calendar"] }, { type: i7.CalendarCustomMessagesComponent, selector: "kendo-calendar-messages" }], directives: [{ type: i8.DatePickerLocalizedMessagesDirective, selector: "[kendoDatePickerLocalizedMessages]" }, { type: i9.EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
999
+ `, isInline: true, components: [{ type: i5.DateInputComponent, selector: "kendo-dateinput", inputs: ["pickerType", "disabled", "readonly", "title", "tabindex", "role", "ariaReadOnly", "tabIndex", "format", "formatPlaceholder", "placeholder", "steps", "max", "min", "rangeValidation", "autoCorrect", "incompleteDateValidation", "twoDigitYearMax", "value", "spinners", "isPopupOpen", "hasPopup", "size", "rounded", "fillMode"], outputs: ["valueChange", "valueUpdate", "focus", "blur"], exportAs: ["kendo-dateinput"] }, { type: i6.CalendarComponent, selector: "kendo-calendar", inputs: ["id", "focusedDate", "min", "max", "rangeValidation", "selection", "value", "disabled", "tabindex", "tabIndex", "disabledDates", "navigation", "activeView", "bottomView", "topView", "type", "animateNavigation", "weekNumber", "cellTemplate", "monthCellTemplate", "yearCellTemplate", "decadeCellTemplate", "centuryCellTemplate", "weekNumberTemplate", "headerTitleTemplate", "navigationItemTemplate"], outputs: ["activeViewChange", "navigate", "activeViewDateChange", "valueChange"], exportAs: ["kendo-calendar"] }, { type: i7.CalendarCustomMessagesComponent, selector: "kendo-calendar-messages" }], directives: [{ type: i8.DatePickerLocalizedMessagesDirective, selector: "[kendoDatePickerLocalizedMessages]" }, { type: i9.EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1005
1000
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DatePickerComponent, decorators: [{
1006
1001
  type: Component,
1007
1002
  args: [{
@@ -1038,7 +1033,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
1038
1033
  <kendo-dateinput
1039
1034
  #input
1040
1035
  [role]="'combobox'"
1041
- [focusableId]="focusableId"
1036
+ pickerType="datepicker"
1042
1037
  [hasPopup]="true"
1043
1038
  [isPopupOpen]="show"
1044
1039
  [disabled]="disabled"
@@ -1176,8 +1171,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
1176
1171
  }], navigationItemTemplateRef: [{
1177
1172
  type: Input,
1178
1173
  args: ['navigationItemTemplate']
1179
- }], focusableId: [{
1180
- type: Input
1181
1174
  }], activeView: [{
1182
1175
  type: Input
1183
1176
  }], bottomView: [{
@@ -54,6 +54,7 @@ export class DateRangeEndInputDirective extends DateRangeInput {
54
54
  ngAfterViewInit() {
55
55
  const inputElement = this.dateInput.inputElement;
56
56
  this.renderer.removeAttribute(inputElement, attributeNames.ariaExpanded);
57
+ this.dateInput.pickerType = 'daterangeend';
57
58
  }
58
59
  ngOnDestroy() {
59
60
  super.destroy();
@@ -57,6 +57,8 @@ export class DateRangeStartInputDirective extends DateRangeInput {
57
57
  const inputElement = this.dateInput.inputElement;
58
58
  this.renderer.setAttribute(inputElement, 'role', 'combobox');
59
59
  this.renderer.setAttribute(inputElement, attributeNames.ariaHasPopup, 'true');
60
+ this.dateInput.pickerType = 'daterangestart';
61
+ this.renderer.setAttribute(inputElement, attributeNames.ariaExpanded, 'false');
60
62
  }
61
63
  ngOnDestroy() {
62
64
  super.destroy();
@@ -56,7 +56,6 @@ const TWO_DIGIT_YEAR_MAX = 68;
56
56
  */
57
57
  export class DateTimePickerComponent {
58
58
  constructor(popupService, intl, cdr, pickerService, ngZone, wrapper, touchEnabled, localization, disabledDatesService, renderer) {
59
- var _a;
60
59
  this.popupService = popupService;
61
60
  this.intl = intl;
62
61
  this.cdr = cdr;
@@ -79,10 +78,6 @@ export class DateTimePickerComponent {
79
78
  * will be assumed to be 20xx, while 69 and larger will be assumed to be 19xx.
80
79
  */
81
80
  this.twoDigitYearMax = TWO_DIGIT_YEAR_MAX;
82
- /**
83
- * @hidden
84
- */
85
- this.focusableId = `k-datetimepicker-${(_a = this.calendar) === null || _a === void 0 ? void 0 : _a.id}-`;
86
81
  /**
87
82
  * Sets the title of the input element of the DateTimePicker.
88
83
  */
@@ -1028,7 +1023,7 @@ export class DateTimePickerComponent {
1028
1023
  }
1029
1024
  }
1030
1025
  DateTimePickerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DateTimePickerComponent, deps: [{ token: i1.PopupService }, { token: i2.IntlService }, { token: i0.ChangeDetectorRef }, { token: i3.PickerService }, { token: i0.NgZone }, { token: i0.ElementRef }, { token: TOUCH_ENABLED }, { token: i4.LocalizationService }, { token: i5.DisabledDatesService }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
1031
- DateTimePickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: DateTimePickerComponent, selector: "kendo-datetimepicker", inputs: { value: "value", format: "format", twoDigitYearMax: "twoDigitYearMax", tabindex: "tabindex", disabledDates: "disabledDates", popupSettings: "popupSettings", focusableId: "focusableId", title: "title", disabled: "disabled", readonly: "readonly", readOnlyInput: "readOnlyInput", cancelButton: "cancelButton", formatPlaceholder: "formatPlaceholder", placeholder: "placeholder", steps: "steps", focusedDate: "focusedDate", calendarType: "calendarType", animateCalendarNavigation: "animateCalendarNavigation", weekNumber: "weekNumber", min: "min", max: "max", rangeValidation: "rangeValidation", disabledDatesValidation: "disabledDatesValidation", incompleteDateValidation: "incompleteDateValidation", defaultTab: "defaultTab", size: "size", rounded: "rounded", fillMode: "fillMode" }, outputs: { valueChange: "valueChange", open: "open", close: "close", onFocus: "focus", onBlur: "blur" }, host: { properties: { "class.k-datetimepicker": "this.hostClasses", "class.k-input": "this.hostClasses", "class.k-disabled": "this.disabledClass" } }, providers: [
1026
+ DateTimePickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: DateTimePickerComponent, selector: "kendo-datetimepicker", inputs: { value: "value", format: "format", twoDigitYearMax: "twoDigitYearMax", tabindex: "tabindex", disabledDates: "disabledDates", popupSettings: "popupSettings", title: "title", disabled: "disabled", readonly: "readonly", readOnlyInput: "readOnlyInput", cancelButton: "cancelButton", formatPlaceholder: "formatPlaceholder", placeholder: "placeholder", steps: "steps", focusedDate: "focusedDate", calendarType: "calendarType", animateCalendarNavigation: "animateCalendarNavigation", weekNumber: "weekNumber", min: "min", max: "max", rangeValidation: "rangeValidation", disabledDatesValidation: "disabledDatesValidation", incompleteDateValidation: "incompleteDateValidation", defaultTab: "defaultTab", size: "size", rounded: "rounded", fillMode: "fillMode" }, outputs: { valueChange: "valueChange", open: "open", close: "close", onFocus: "focus", onBlur: "blur" }, host: { properties: { "class.k-datetimepicker": "this.hostClasses", "class.k-input": "this.hostClasses", "class.k-disabled": "this.disabledClass" } }, providers: [
1032
1027
  PickerService,
1033
1028
  LocalizationService,
1034
1029
  DisabledDatesService,
@@ -1100,7 +1095,7 @@ DateTimePickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0"
1100
1095
  [steps]="steps"
1101
1096
  [tabindex]="tabindex"
1102
1097
  [title]="title"
1103
- [focusableId]="focusableId"
1098
+ pickerType="datetimepicker"
1104
1099
  [hasPopup]="true"
1105
1100
  [isPopupOpen]="isOpen"
1106
1101
  (valueChange)="handleInputValueChange($event)"
@@ -1279,7 +1274,7 @@ DateTimePickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0"
1279
1274
  </div>
1280
1275
  </div>
1281
1276
  </ng-template>
1282
- `, isInline: true, components: [{ type: i6.DateInputComponent, selector: "kendo-dateinput", inputs: ["focusableId", "disabled", "readonly", "title", "tabindex", "role", "ariaReadOnly", "tabIndex", "format", "formatPlaceholder", "placeholder", "steps", "max", "min", "rangeValidation", "autoCorrect", "incompleteDateValidation", "twoDigitYearMax", "value", "spinners", "isPopupOpen", "hasPopup", "size", "rounded", "fillMode"], outputs: ["valueChange", "valueUpdate", "focus", "blur"], exportAs: ["kendo-dateinput"] }, { type: i7.CalendarComponent, selector: "kendo-calendar", inputs: ["id", "focusedDate", "min", "max", "rangeValidation", "selection", "value", "disabled", "tabindex", "tabIndex", "disabledDates", "navigation", "activeView", "bottomView", "topView", "type", "animateNavigation", "weekNumber", "cellTemplate", "monthCellTemplate", "yearCellTemplate", "decadeCellTemplate", "centuryCellTemplate", "weekNumberTemplate", "headerTitleTemplate", "navigationItemTemplate"], outputs: ["activeViewChange", "navigate", "activeViewDateChange", "valueChange"], exportAs: ["kendo-calendar"] }, { type: i8.CalendarCustomMessagesComponent, selector: "kendo-calendar-messages" }, { type: i9.TimeSelectorComponent, selector: "kendo-timeselector", inputs: ["format", "min", "max", "cancelButton", "setButton", "nowButton", "disabled", "steps", "value"], outputs: ["valueChange", "valueReject"], exportAs: ["kendo-timeselector"] }, { type: i10.TimeSelectorCustomMessagesComponent, selector: "kendo-timeselector-messages" }], directives: [{ type: i11.LocalizedMessagesDirective, selector: "[kendoDateTimePickerLocalizedMessages]" }, { type: i12.EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }, { type: i13.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i13.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1277
+ `, isInline: true, components: [{ type: i6.DateInputComponent, selector: "kendo-dateinput", inputs: ["pickerType", "disabled", "readonly", "title", "tabindex", "role", "ariaReadOnly", "tabIndex", "format", "formatPlaceholder", "placeholder", "steps", "max", "min", "rangeValidation", "autoCorrect", "incompleteDateValidation", "twoDigitYearMax", "value", "spinners", "isPopupOpen", "hasPopup", "size", "rounded", "fillMode"], outputs: ["valueChange", "valueUpdate", "focus", "blur"], exportAs: ["kendo-dateinput"] }, { type: i7.CalendarComponent, selector: "kendo-calendar", inputs: ["id", "focusedDate", "min", "max", "rangeValidation", "selection", "value", "disabled", "tabindex", "tabIndex", "disabledDates", "navigation", "activeView", "bottomView", "topView", "type", "animateNavigation", "weekNumber", "cellTemplate", "monthCellTemplate", "yearCellTemplate", "decadeCellTemplate", "centuryCellTemplate", "weekNumberTemplate", "headerTitleTemplate", "navigationItemTemplate"], outputs: ["activeViewChange", "navigate", "activeViewDateChange", "valueChange"], exportAs: ["kendo-calendar"] }, { type: i8.CalendarCustomMessagesComponent, selector: "kendo-calendar-messages" }, { type: i9.TimeSelectorComponent, selector: "kendo-timeselector", inputs: ["format", "min", "max", "cancelButton", "setButton", "nowButton", "disabled", "steps", "value"], outputs: ["valueChange", "valueReject"], exportAs: ["kendo-timeselector"] }, { type: i10.TimeSelectorCustomMessagesComponent, selector: "kendo-timeselector-messages" }], directives: [{ type: i11.LocalizedMessagesDirective, selector: "[kendoDateTimePickerLocalizedMessages]" }, { type: i12.EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }, { type: i13.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i13.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1283
1278
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DateTimePickerComponent, decorators: [{
1284
1279
  type: Component,
1285
1280
  args: [{
@@ -1359,7 +1354,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
1359
1354
  [steps]="steps"
1360
1355
  [tabindex]="tabindex"
1361
1356
  [title]="title"
1362
- [focusableId]="focusableId"
1357
+ pickerType="datetimepicker"
1363
1358
  [hasPopup]="true"
1364
1359
  [isPopupOpen]="isOpen"
1365
1360
  (valueChange)="handleInputValueChange($event)"
@@ -1567,8 +1562,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
1567
1562
  type: Input
1568
1563
  }], popupSettings: [{
1569
1564
  type: Input
1570
- }], focusableId: [{
1571
- type: Input
1572
1565
  }], title: [{
1573
1566
  type: Input
1574
1567
  }], disabled: [{
@@ -9,7 +9,7 @@ export const packageMetadata = {
9
9
  name: '@progress/kendo-angular-dateinputs',
10
10
  productName: 'Kendo UI for Angular',
11
11
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
12
- publishDate: 1666356015,
12
+ publishDate: 1666767725,
13
13
  version: '',
14
14
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
15
15
  };
@@ -50,10 +50,6 @@ export class TimePickerComponent {
50
50
  this.pickerService = pickerService;
51
51
  this.intl = intl;
52
52
  this.touchEnabled = touchEnabled;
53
- /**
54
- * @hidden
55
- */
56
- this.focusableId = `k-timepicker-${this.bus.calendarId}-`;
57
53
  /**
58
54
  * Sets or gets the `disabled` property of the TimePicker and
59
55
  * determines whether the component is active
@@ -478,9 +474,11 @@ export class TimePickerComponent {
478
474
  }
479
475
  if (altKey) {
480
476
  if (keyCode === Keys.ArrowUp) {
477
+ event.preventDefault();
481
478
  this.show = false;
482
479
  }
483
480
  if (keyCode === Keys.ArrowDown && !this.show) {
481
+ event.preventDefault();
484
482
  this.show = true;
485
483
  }
486
484
  }
@@ -804,7 +802,7 @@ export class TimePickerComponent {
804
802
  }
805
803
  }
806
804
  TimePickerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TimePickerComponent, deps: [{ token: i1.BusViewService }, { token: i0.NgZone }, { token: i2.LocalizationService }, { token: i0.ChangeDetectorRef }, { token: i3.PopupService }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.Injector }, { token: i4.PickerService }, { token: i5.IntlService }, { token: TOUCH_ENABLED, optional: true }], target: i0.ɵɵFactoryTarget.Component });
807
- TimePickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: TimePickerComponent, selector: "kendo-timepicker", inputs: { focusableId: "focusableId", disabled: "disabled", readonly: "readonly", readOnlyInput: "readOnlyInput", format: "format", formatPlaceholder: "formatPlaceholder", placeholder: "placeholder", min: "min", max: "max", incompleteDateValidation: "incompleteDateValidation", cancelButton: "cancelButton", nowButton: "nowButton", steps: "steps", popupSettings: "popupSettings", tabindex: "tabindex", tabIndex: "tabIndex", title: "title", rangeValidation: "rangeValidation", value: "value", size: "size", rounded: "rounded", fillMode: "fillMode" }, outputs: { valueChange: "valueChange", onFocus: "focus", onBlur: "blur", open: "open", close: "close" }, host: { properties: { "class.k-timepicker": "this.wrapperClasses", "class.k-input": "this.wrapperClasses", "class.k-disabled": "this.disabledClass" } }, providers: [
805
+ TimePickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: TimePickerComponent, selector: "kendo-timepicker", inputs: { disabled: "disabled", readonly: "readonly", readOnlyInput: "readOnlyInput", format: "format", formatPlaceholder: "formatPlaceholder", placeholder: "placeholder", min: "min", max: "max", incompleteDateValidation: "incompleteDateValidation", cancelButton: "cancelButton", nowButton: "nowButton", steps: "steps", popupSettings: "popupSettings", tabindex: "tabindex", tabIndex: "tabIndex", title: "title", rangeValidation: "rangeValidation", value: "value", size: "size", rounded: "rounded", fillMode: "fillMode" }, outputs: { valueChange: "valueChange", onFocus: "focus", onBlur: "blur", open: "open", close: "close" }, host: { properties: { "class.k-timepicker": "this.wrapperClasses", "class.k-input": "this.wrapperClasses", "class.k-disabled": "this.disabledClass" } }, providers: [
808
806
  { provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => TimePickerComponent), multi: true },
809
807
  { provide: NG_VALIDATORS, useExisting: forwardRef(() => TimePickerComponent), multi: true },
810
808
  { provide: KendoInput, useExisting: forwardRef(() => TimePickerComponent) },
@@ -856,7 +854,7 @@ TimePickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ve
856
854
  </ng-container>
857
855
  <kendo-dateinput
858
856
  #input
859
- [focusableId]="focusableId"
857
+ pickerType="timepicker"
860
858
  [hasPopup]="true"
861
859
  [isPopupOpen]="show"
862
860
  [disabled]="disabled"
@@ -928,7 +926,7 @@ TimePickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ve
928
926
  </kendo-timeselector>
929
927
  </ng-template>
930
928
  <ng-container #container></ng-container>
931
- `, isInline: true, components: [{ type: i6.DateInputComponent, selector: "kendo-dateinput", inputs: ["focusableId", "disabled", "readonly", "title", "tabindex", "role", "ariaReadOnly", "tabIndex", "format", "formatPlaceholder", "placeholder", "steps", "max", "min", "rangeValidation", "autoCorrect", "incompleteDateValidation", "twoDigitYearMax", "value", "spinners", "isPopupOpen", "hasPopup", "size", "rounded", "fillMode"], outputs: ["valueChange", "valueUpdate", "focus", "blur"], exportAs: ["kendo-dateinput"] }, { type: i7.TimeSelectorComponent, selector: "kendo-timeselector", inputs: ["format", "min", "max", "cancelButton", "setButton", "nowButton", "disabled", "steps", "value"], outputs: ["valueChange", "valueReject"], exportAs: ["kendo-timeselector"] }, { type: i8.TimeSelectorCustomMessagesComponent, selector: "kendo-timeselector-messages" }], directives: [{ type: i9.TimePickerLocalizedMessagesDirective, selector: "[kendoTimePickerLocalizedMessages]" }, { type: i10.EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
929
+ `, isInline: true, components: [{ type: i6.DateInputComponent, selector: "kendo-dateinput", inputs: ["pickerType", "disabled", "readonly", "title", "tabindex", "role", "ariaReadOnly", "tabIndex", "format", "formatPlaceholder", "placeholder", "steps", "max", "min", "rangeValidation", "autoCorrect", "incompleteDateValidation", "twoDigitYearMax", "value", "spinners", "isPopupOpen", "hasPopup", "size", "rounded", "fillMode"], outputs: ["valueChange", "valueUpdate", "focus", "blur"], exportAs: ["kendo-dateinput"] }, { type: i7.TimeSelectorComponent, selector: "kendo-timeselector", inputs: ["format", "min", "max", "cancelButton", "setButton", "nowButton", "disabled", "steps", "value"], outputs: ["valueChange", "valueReject"], exportAs: ["kendo-timeselector"] }, { type: i8.TimeSelectorCustomMessagesComponent, selector: "kendo-timeselector-messages" }], directives: [{ type: i9.TimePickerLocalizedMessagesDirective, selector: "[kendoTimePickerLocalizedMessages]" }, { type: i10.EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
932
930
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TimePickerComponent, decorators: [{
933
931
  type: Component,
934
932
  args: [{
@@ -988,7 +986,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
988
986
  </ng-container>
989
987
  <kendo-dateinput
990
988
  #input
991
- [focusableId]="focusableId"
989
+ pickerType="timepicker"
992
990
  [hasPopup]="true"
993
991
  [isPopupOpen]="show"
994
992
  [disabled]="disabled"
@@ -1076,8 +1074,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
1076
1074
  }], toggleButton: [{
1077
1075
  type: ViewChild,
1078
1076
  args: ['toggleButton', { static: true }]
1079
- }], focusableId: [{
1080
- type: Input
1081
1077
  }], disabled: [{
1082
1078
  type: Input
1083
1079
  }], readonly: [{
@@ -10,7 +10,8 @@ import { isDocumentAvailable } from '@progress/kendo-angular-common';
10
10
  import { Subject, fromEvent, interval, EMPTY, of, combineLatest, animationFrameScheduler as animationFrame } from 'rxjs';
11
11
  import { map, scan, takeWhile } from 'rxjs/operators';
12
12
  import * as i0 from "@angular/core";
13
- import * as i1 from "@angular/common";
13
+ import * as i1 from "@progress/kendo-angular-common";
14
+ import * as i2 from "@angular/common";
14
15
  /**
15
16
  * @hidden
16
17
  */
@@ -49,10 +50,11 @@ const differenceToScroll = (scrollTop, staticOffset, maxScrollDifference) => {
49
50
  * @hidden
50
51
  */
51
52
  export class VirtualizationComponent {
52
- constructor(scrollerFactory, container, renderer, zone) {
53
+ constructor(scrollerFactory, container, renderer, zone, scrollBarWidthService) {
53
54
  this.container = container;
54
55
  this.renderer = renderer;
55
56
  this.zone = zone;
57
+ this.scrollBarWidthService = scrollBarWidthService;
56
58
  this.direction = 'vertical';
57
59
  this.itemHeight = 1;
58
60
  this.itemWidth = 1;
@@ -231,7 +233,7 @@ export class VirtualizationComponent {
231
233
  return indexOffset < this.containerScrollPosition ? ScrollDirection.Backward : ScrollDirection.Forward;
232
234
  }
233
235
  }
234
- VirtualizationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: VirtualizationComponent, deps: [{ token: SCROLLER_FACTORY_TOKEN }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
236
+ VirtualizationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: VirtualizationComponent, deps: [{ token: SCROLLER_FACTORY_TOKEN }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.NgZone }, { token: i1.ScrollbarWidthService }], target: i0.ɵɵFactoryTarget.Component });
235
237
  VirtualizationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: VirtualizationComponent, selector: "kendo-virtualization", inputs: { direction: "direction", itemHeight: "itemHeight", itemWidth: "itemWidth", topOffset: "topOffset", bottomOffset: "bottomOffset", maxScrollDifference: "maxScrollDifference", scrollOffsetSize: "scrollOffsetSize", scrollDuration: "scrollDuration", skip: "skip", take: "take", total: "total" }, outputs: { activeIndexChange: "activeIndexChange", pageChange: "pageChange", scrollChange: "scrollChange" }, host: { properties: { "class.k-flex": "this.wrapperClasses", "class.k-content": "this.wrapperClasses", "class.k-scrollable": "this.wrapperClasses", "class.k-scrollable-horizontal": "this.horizontalClass" } }, providers: [{
236
238
  provide: SCROLLER_FACTORY_TOKEN,
237
239
  useValue: DEFAULT_SCROLLER_FACTORY
@@ -242,7 +244,7 @@ VirtualizationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0"
242
244
  [class.k-scrollable-horizontal-placeholder]="direction === 'horizontal'"
243
245
  [ngStyle]="totalVertexLength"
244
246
  ></div>
245
- `, isInline: true, directives: [{ type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] });
247
+ `, isInline: true, directives: [{ type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] });
246
248
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: VirtualizationComponent, decorators: [{
247
249
  type: Component,
248
250
  args: [{
@@ -263,7 +265,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
263
265
  }], ctorParameters: function () { return [{ type: undefined, decorators: [{
264
266
  type: Inject,
265
267
  args: [SCROLLER_FACTORY_TOKEN]
266
- }] }, { type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.NgZone }]; }, propDecorators: { direction: [{
268
+ }] }, { type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.NgZone }, { type: i1.ScrollbarWidthService }]; }, propDecorators: { direction: [{
267
269
  type: Input
268
270
  }], itemHeight: [{
269
271
  type: Input