@progress/kendo-angular-dateinputs 21.1.1-develop.2 → 21.2.0-develop.10

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.
Files changed (32) hide show
  1. package/codemods/utils.js +805 -394
  2. package/codemods/v19/datepicker-subtitle.js +9 -12
  3. package/codemods/v19/datepicker-title.js +9 -12
  4. package/codemods/v19/daterange-popup-subtitle.js +9 -12
  5. package/codemods/v19/daterange-popup-title.js +9 -12
  6. package/codemods/v19/datetimepicker-subtitle.js +9 -12
  7. package/codemods/v19/datetimepicker-title.js +9 -12
  8. package/codemods/v19/timepicker-subtitle.js +9 -12
  9. package/codemods/v19/timepicker-title.js +9 -12
  10. package/esm2022/calendar/calendar.component.mjs +224 -223
  11. package/esm2022/calendar/footer.component.mjs +31 -29
  12. package/esm2022/calendar/header.component.mjs +157 -145
  13. package/esm2022/calendar/horizontal-view-list.component.mjs +139 -123
  14. package/esm2022/calendar/multiview-calendar.component.mjs +112 -109
  15. package/esm2022/calendar/navigation.component.mjs +55 -49
  16. package/esm2022/calendar/services/navigation.service.mjs +2 -2
  17. package/esm2022/calendar/view-list.component.mjs +148 -135
  18. package/esm2022/calendar/view.component.mjs +107 -89
  19. package/esm2022/common/utils.mjs +2 -2
  20. package/esm2022/dateinput/dateinput.component.mjs +142 -137
  21. package/esm2022/datepicker/datepicker.component.mjs +317 -305
  22. package/esm2022/daterange/date-range-input.mjs +2 -2
  23. package/esm2022/daterange/date-range-popup.component.mjs +266 -255
  24. package/esm2022/daterange/date-range.component.mjs +12 -9
  25. package/esm2022/datetimepicker/datetimepicker.component.mjs +679 -659
  26. package/esm2022/package-metadata.mjs +2 -2
  27. package/esm2022/timepicker/timelist.component.mjs +57 -53
  28. package/esm2022/timepicker/timepicker.component.mjs +381 -369
  29. package/esm2022/timepicker/timeselector.component.mjs +140 -125
  30. package/fesm2022/progress-kendo-angular-dateinputs.mjs +2956 -2796
  31. package/package.json +12 -13
  32. package/codemods/template-transformer/index.js +0 -96
@@ -6,7 +6,7 @@ import { Component, ChangeDetectorRef, ChangeDetectionStrategy, ContentChild, Ev
6
6
  import { NG_VALUE_ACCESSOR, NG_VALIDATORS } from '@angular/forms';
7
7
  import { L10N_PREFIX, LocalizationService } from '@progress/kendo-angular-l10n';
8
8
  import { cloneDate, isEqual } from '@progress/kendo-date-math';
9
- import { hasObservers, guid, Keys, isObject, normalizeNumpadKeys } from '@progress/kendo-angular-common';
9
+ import { hasObservers, guid, Keys, isObject, normalizeKeys } from '@progress/kendo-angular-common';
10
10
  import { HorizontalViewListComponent } from './horizontal-view-list.component';
11
11
  import { HeaderComponent } from './header.component';
12
12
  import { BusViewService } from './services/bus-view.service';
@@ -33,7 +33,6 @@ import { NavigationService } from './services/navigation.service';
33
33
  import { HeaderTemplateDirective } from './templates/header-template.directive';
34
34
  import { FooterTemplateDirective } from './templates/footer-template.directive';
35
35
  import { FooterComponent } from './footer.component';
36
- import { NgIf } from '@angular/common';
37
36
  import { MultiViewCalendarLocalizedMessagesDirective } from './localization/multiview-calendar-localized-messages.directive';
38
37
  import * as i0 from "@angular/core";
39
38
  import * as i1 from "./services/bus-view.service";
@@ -693,7 +692,7 @@ export class MultiViewCalendarComponent {
693
692
  * @hidden
694
693
  */
695
694
  keydown(event) {
696
- const code = normalizeNumpadKeys(event);
695
+ const code = normalizeKeys(event);
697
696
  const arrowUpOrDownKeyPressed = [Keys.ArrowUp, Keys.ArrowDown].indexOf(code) !== -1;
698
697
  const ctrlKey = event.ctrlKey || event.metaKey;
699
698
  const onArrowRightAndControl = code === Keys.ArrowRight && ctrlKey;
@@ -1203,7 +1202,7 @@ export class MultiViewCalendarComponent {
1203
1202
  });
1204
1203
  }
1205
1204
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: MultiViewCalendarComponent, deps: [{ token: i1.BusViewService }, { token: i0.ElementRef }, { token: i2.NavigationService }, { token: i0.Renderer2 }, { token: i0.ChangeDetectorRef }, { token: i0.NgZone }, { token: i3.DisabledDatesService }, { token: i4.SelectionService }], target: i0.ɵɵFactoryTarget.Component });
1206
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: MultiViewCalendarComponent, isStandalone: true, selector: "kendo-multiviewcalendar", inputs: { showOtherMonthDays: "showOtherMonthDays", showCalendarHeader: "showCalendarHeader", size: "size", id: "id", focusedDate: "focusedDate", footer: "footer", min: "min", max: "max", rangeValidation: "rangeValidation", disabledDatesRangeValidation: "disabledDatesRangeValidation", selection: "selection", allowReverse: "allowReverse", value: "value", disabled: "disabled", tabindex: "tabindex", tabIndex: "tabIndex", weekDaysFormat: "weekDaysFormat", isActive: "isActive", disabledDates: "disabledDates", activeView: "activeView", bottomView: "bottomView", topView: "topView", showViewHeader: "showViewHeader", animateNavigation: "animateNavigation", weekNumber: "weekNumber", activeRangeEnd: "activeRangeEnd", selectionRange: "selectionRange", views: "views", orientation: "orientation", cellTemplateRef: ["cellTemplate", "cellTemplateRef"], monthCellTemplateRef: ["monthCellTemplate", "monthCellTemplateRef"], yearCellTemplateRef: ["yearCellTemplate", "yearCellTemplateRef"], decadeCellTemplateRef: ["decadeCellTemplate", "decadeCellTemplateRef"], centuryCellTemplateRef: ["centuryCellTemplate", "centuryCellTemplateRef"], weekNumberTemplateRef: ["weekNumberTemplate", "weekNumberTemplateRef"], footerTemplateRef: ["footerTemplate", "footerTemplateRef"], headerTitleTemplateRef: ["headerTitleTemplate", "headerTitleTemplateRef"], headerTemplateRef: ["headerTemplate", "headerTemplateRef"] }, outputs: { activeViewChange: "activeViewChange", navigate: "navigate", cellEnter: "cellEnter", cellLeave: "cellLeave", valueChange: "valueChange", rangeSelectionChange: "rangeSelectionChange", blurEvent: "blur", focusEvent: "focus", focusCalendar: "focusCalendar", onClosePopup: "onClosePopup", onTabPress: "onTabPress", onShiftTabPress: "onShiftTabPress" }, host: { listeners: { "mouseenter": "handleMouseEnter()", "mouseleave": "handleMouseLeave()", "mousedown": "handleMousedown($event)", "click": "handleClick()", "keydown": "keydown($event)" }, properties: { "attr.id": "this.widgetId", "attr.aria-disabled": "this.ariaDisabled", "class.k-disabled": "this.ariaDisabled" } }, providers: [
1205
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: MultiViewCalendarComponent, isStandalone: true, selector: "kendo-multiviewcalendar", inputs: { showOtherMonthDays: "showOtherMonthDays", showCalendarHeader: "showCalendarHeader", size: "size", id: "id", focusedDate: "focusedDate", footer: "footer", min: "min", max: "max", rangeValidation: "rangeValidation", disabledDatesRangeValidation: "disabledDatesRangeValidation", selection: "selection", allowReverse: "allowReverse", value: "value", disabled: "disabled", tabindex: "tabindex", tabIndex: "tabIndex", weekDaysFormat: "weekDaysFormat", isActive: "isActive", disabledDates: "disabledDates", activeView: "activeView", bottomView: "bottomView", topView: "topView", showViewHeader: "showViewHeader", animateNavigation: "animateNavigation", weekNumber: "weekNumber", activeRangeEnd: "activeRangeEnd", selectionRange: "selectionRange", views: "views", orientation: "orientation", cellTemplateRef: ["cellTemplate", "cellTemplateRef"], monthCellTemplateRef: ["monthCellTemplate", "monthCellTemplateRef"], yearCellTemplateRef: ["yearCellTemplate", "yearCellTemplateRef"], decadeCellTemplateRef: ["decadeCellTemplate", "decadeCellTemplateRef"], centuryCellTemplateRef: ["centuryCellTemplate", "centuryCellTemplateRef"], weekNumberTemplateRef: ["weekNumberTemplate", "weekNumberTemplateRef"], footerTemplateRef: ["footerTemplate", "footerTemplateRef"], headerTitleTemplateRef: ["headerTitleTemplate", "headerTitleTemplateRef"], headerTemplateRef: ["headerTemplate", "headerTemplateRef"] }, outputs: { activeViewChange: "activeViewChange", navigate: "navigate", cellEnter: "cellEnter", cellLeave: "cellLeave", valueChange: "valueChange", rangeSelectionChange: "rangeSelectionChange", blurEvent: "blur", focusEvent: "focus", focusCalendar: "focusCalendar", onClosePopup: "onClosePopup", onTabPress: "onTabPress", onShiftTabPress: "onShiftTabPress" }, host: { listeners: { "mouseenter": "handleMouseEnter()", "mouseleave": "handleMouseLeave()", "mousedown": "handleMousedown($event)", "click": "handleClick()", "keydown": "keydown($event)" }, properties: { "attr.id": "this.widgetId", "attr.aria-disabled": "this.ariaDisabled", "class.k-disabled": "this.ariaDisabled" } }, providers: [
1207
1206
  BusViewService,
1208
1207
  RANGE_CALENDAR_VALUE_ACCESSOR,
1209
1208
  RANGE_CALENDAR_RANGE_VALIDATORS,
@@ -1217,21 +1216,21 @@ export class MultiViewCalendarComponent {
1217
1216
  SelectionService
1218
1217
  ], queries: [{ propertyName: "cellTemplate", first: true, predicate: CellTemplateDirective, descendants: true }, { propertyName: "monthCellTemplate", first: true, predicate: MonthCellTemplateDirective, descendants: true }, { propertyName: "yearCellTemplate", first: true, predicate: YearCellTemplateDirective, descendants: true }, { propertyName: "decadeCellTemplate", first: true, predicate: DecadeCellTemplateDirective, descendants: true }, { propertyName: "centuryCellTemplate", first: true, predicate: CenturyCellTemplateDirective, descendants: true }, { propertyName: "weekNumberTemplate", first: true, predicate: WeekNumberCellTemplateDirective, descendants: true }, { propertyName: "headerTitleTemplate", first: true, predicate: HeaderTitleTemplateDirective, descendants: true }, { propertyName: "headerTemplate", first: true, predicate: HeaderTemplateDirective, descendants: true }, { propertyName: "footerTemplate", first: true, predicate: FooterTemplateDirective, descendants: true }], viewQueries: [{ propertyName: "headerElement", first: true, predicate: HeaderComponent, descendants: true, read: ElementRef }, { propertyName: "viewList", first: true, predicate: HorizontalViewListComponent, descendants: true }], exportAs: ["kendo-multiviewcalendar"], usesOnChanges: true, ngImport: i0, template: `
1219
1218
  <ng-container kendoMultiViewCalendarLocalizedMessages
1220
- i18n-today="kendo.multiviewcalendar.today|The label for the today button in the calendar header"
1221
- today="Today"
1222
-
1223
- i18n-prevButtonTitle="kendo.multiviewcalendar.prevButtonTitle|The label for the previous button in the Multiview calendar"
1224
- prevButtonTitle="Navigate to previous view"
1225
-
1226
- i18n-nextButtonTitle="kendo.multiviewcalendar.nextButtonTitle|The label for the next button in the Multiview calendar"
1227
- nextButtonTitle="Navigate to next view"
1228
-
1229
- i18n-parentViewButtonTitle="kendo.multiviewcalendar.parentViewButtonTitle|The title of the parent view button in the Multiview calendar header"
1230
- parentViewButtonTitle="Navigate to parent view"
1231
- >
1219
+ i18n-today="kendo.multiviewcalendar.today|The label for the today button in the calendar header"
1220
+ today="Today"
1221
+
1222
+ i18n-prevButtonTitle="kendo.multiviewcalendar.prevButtonTitle|The label for the previous button in the Multiview calendar"
1223
+ prevButtonTitle="Navigate to previous view"
1224
+
1225
+ i18n-nextButtonTitle="kendo.multiviewcalendar.nextButtonTitle|The label for the next button in the Multiview calendar"
1226
+ nextButtonTitle="Navigate to next view"
1227
+
1228
+ i18n-parentViewButtonTitle="kendo.multiviewcalendar.parentViewButtonTitle|The title of the parent view button in the Multiview calendar header"
1229
+ parentViewButtonTitle="Navigate to parent view"
1230
+ >
1232
1231
  </ng-container>
1233
- <kendo-calendar-header
1234
- *ngIf="showCalendarHeader"
1232
+ @if (showCalendarHeader) {
1233
+ <kendo-calendar-header
1235
1234
  [activeView]="activeViewEnum"
1236
1235
  [currentDate]="activeDate"
1237
1236
  [size]="size"
@@ -1248,49 +1247,51 @@ export class MultiViewCalendarComponent {
1248
1247
  (todayButtonClick)="handleTodayButtonClick({ selectedDates: [$event], focusedDate: $event })"
1249
1248
  (prevButtonClick)="navigateView(prevView)"
1250
1249
  (nextButtonClick)="navigateView(nextView)"
1251
- >
1252
- </kendo-calendar-header>
1250
+ >
1251
+ </kendo-calendar-header>
1252
+ }
1253
1253
  <kendo-calendar-horizontal
1254
- [showOtherMonthDays]="showOtherMonthDays"
1255
- [allowReverse]="allowReverse"
1256
- [id]="calendarHeaderIdLabel"
1257
- [attr.aria-labelledby]="multiViewCalendarHeaderIdLabel"
1258
- [activeView]="activeViewEnum"
1259
- [activeDescendant]="ariaActivedescendant"
1260
- [isActive]="isActive || isHovered"
1261
- [cellTemplateRef]="activeCellTemplate()?.templateRef"
1262
- [weekNumberTemplateRef]="weekNumberTemplateRef?.templateRef"
1263
- [cellUID]="cellUID"
1264
- [weekDaysFormat]="weekDaysFormat"
1265
- [views]="views"
1266
- [min]="min"
1267
- [max]="max"
1268
- [focusedDate]="focusedDate"
1269
- [animateNavigation]="animateNavigation"
1270
- [showViewHeader]="showViewHeader"
1271
- [weekNumber]="weekNumber"
1272
- [activeRangeEnd]="activeRangeEnd"
1273
- [selectionRange]="selectionRange"
1274
- [selectedDates]="selectedDates"
1275
- [orientation]="orientation"
1276
- [tabIndex]="tabIndex"
1277
- [disabled]="disabled"
1278
- (cellClick)="handleCellClick($event)"
1279
- (weekNumberCellClick)="handleWeekNumberClick($event)"
1280
- (cellEnter)="onCellEnter(cellEnter, $event)"
1281
- (cellLeave)="emitCellEvent(cellLeave, $event)"
1282
- (activeDateChange)="setActiveDate($event)"
1283
- (focusCalendar)="handleFocus()"
1284
- (blurCalendar)="handleFocusout($event)"
1285
- >
1254
+ [showOtherMonthDays]="showOtherMonthDays"
1255
+ [allowReverse]="allowReverse"
1256
+ [id]="calendarHeaderIdLabel"
1257
+ [attr.aria-labelledby]="multiViewCalendarHeaderIdLabel"
1258
+ [activeView]="activeViewEnum"
1259
+ [activeDescendant]="ariaActivedescendant"
1260
+ [isActive]="isActive || isHovered"
1261
+ [cellTemplateRef]="activeCellTemplate()?.templateRef"
1262
+ [weekNumberTemplateRef]="weekNumberTemplateRef?.templateRef"
1263
+ [cellUID]="cellUID"
1264
+ [weekDaysFormat]="weekDaysFormat"
1265
+ [views]="views"
1266
+ [min]="min"
1267
+ [max]="max"
1268
+ [focusedDate]="focusedDate"
1269
+ [animateNavigation]="animateNavigation"
1270
+ [showViewHeader]="showViewHeader"
1271
+ [weekNumber]="weekNumber"
1272
+ [activeRangeEnd]="activeRangeEnd"
1273
+ [selectionRange]="selectionRange"
1274
+ [selectedDates]="selectedDates"
1275
+ [orientation]="orientation"
1276
+ [tabIndex]="tabIndex"
1277
+ [disabled]="disabled"
1278
+ (cellClick)="handleCellClick($event)"
1279
+ (weekNumberCellClick)="handleWeekNumberClick($event)"
1280
+ (cellEnter)="onCellEnter(cellEnter, $event)"
1281
+ (cellLeave)="emitCellEvent(cellLeave, $event)"
1282
+ (activeDateChange)="setActiveDate($event)"
1283
+ (focusCalendar)="handleFocus()"
1284
+ (blurCalendar)="handleFocusout($event)"
1285
+ >
1286
1286
  </kendo-calendar-horizontal>
1287
- <kendo-calendar-footer
1288
- *ngIf="footer"
1287
+ @if (footer) {
1288
+ <kendo-calendar-footer
1289
1289
  [footerTemplateRef]="footerTemplateRef?.templateRef"
1290
1290
  [activeViewValue]="activeView"
1291
1291
  [currentDate]="activeDate">
1292
- </kendo-calendar-footer>
1293
- `, isInline: true, dependencies: [{ kind: "directive", type: MultiViewCalendarLocalizedMessagesDirective, selector: "[kendoMultiViewCalendarLocalizedMessages]" }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: HeaderComponent, selector: "kendo-calendar-header", inputs: ["activeView", "currentDate", "min", "max", "rangeLength", "titleTemplateRef", "headerTemplateRef", "isPrevDisabled", "isNextDisabled", "showNavigationButtons", "orientation", "id", "size"], outputs: ["todayButtonClick", "prevButtonClick", "nextButtonClick"] }, { kind: "component", type: HorizontalViewListComponent, selector: "kendo-calendar-horizontal", inputs: ["showOtherMonthDays", "cellTemplateRef", "weekNumberTemplateRef", "allowReverse", "activeRangeEnd", "activeView", "cellUID", "focusedDate", "isActive", "min", "max", "selectionRange", "selectedDates", "views", "showViewHeader", "animateNavigation", "orientation", "activeDescendant", "tabIndex", "disabled", "id", "weekDaysFormat", "weekNumber"], outputs: ["cellClick", "weekNumberCellClick", "cellEnter", "cellLeave", "activeDateChange", "focusCalendar", "blurCalendar", "focusedCellChange"] }, { kind: "component", type: FooterComponent, selector: "kendo-calendar-footer", inputs: ["footerTemplateRef", "activeViewValue", "currentDate"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1292
+ </kendo-calendar-footer>
1293
+ }
1294
+ `, isInline: true, dependencies: [{ kind: "directive", type: MultiViewCalendarLocalizedMessagesDirective, selector: "[kendoMultiViewCalendarLocalizedMessages]" }, { kind: "component", type: HeaderComponent, selector: "kendo-calendar-header", inputs: ["activeView", "currentDate", "min", "max", "rangeLength", "titleTemplateRef", "headerTemplateRef", "isPrevDisabled", "isNextDisabled", "showNavigationButtons", "orientation", "id", "size"], outputs: ["todayButtonClick", "prevButtonClick", "nextButtonClick"] }, { kind: "component", type: HorizontalViewListComponent, selector: "kendo-calendar-horizontal", inputs: ["showOtherMonthDays", "cellTemplateRef", "weekNumberTemplateRef", "allowReverse", "activeRangeEnd", "activeView", "cellUID", "focusedDate", "isActive", "min", "max", "selectionRange", "selectedDates", "views", "showViewHeader", "animateNavigation", "orientation", "activeDescendant", "tabIndex", "disabled", "id", "weekDaysFormat", "weekNumber"], outputs: ["cellClick", "weekNumberCellClick", "cellEnter", "cellLeave", "activeDateChange", "focusCalendar", "blurCalendar", "focusedCellChange"] }, { kind: "component", type: FooterComponent, selector: "kendo-calendar-footer", inputs: ["footerTemplateRef", "activeViewValue", "currentDate"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1294
1295
  }
1295
1296
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: MultiViewCalendarComponent, decorators: [{
1296
1297
  type: Component,
@@ -1313,21 +1314,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
1313
1314
  selector: 'kendo-multiviewcalendar',
1314
1315
  template: `
1315
1316
  <ng-container kendoMultiViewCalendarLocalizedMessages
1316
- i18n-today="kendo.multiviewcalendar.today|The label for the today button in the calendar header"
1317
- today="Today"
1318
-
1319
- i18n-prevButtonTitle="kendo.multiviewcalendar.prevButtonTitle|The label for the previous button in the Multiview calendar"
1320
- prevButtonTitle="Navigate to previous view"
1321
-
1322
- i18n-nextButtonTitle="kendo.multiviewcalendar.nextButtonTitle|The label for the next button in the Multiview calendar"
1323
- nextButtonTitle="Navigate to next view"
1324
-
1325
- i18n-parentViewButtonTitle="kendo.multiviewcalendar.parentViewButtonTitle|The title of the parent view button in the Multiview calendar header"
1326
- parentViewButtonTitle="Navigate to parent view"
1327
- >
1317
+ i18n-today="kendo.multiviewcalendar.today|The label for the today button in the calendar header"
1318
+ today="Today"
1319
+
1320
+ i18n-prevButtonTitle="kendo.multiviewcalendar.prevButtonTitle|The label for the previous button in the Multiview calendar"
1321
+ prevButtonTitle="Navigate to previous view"
1322
+
1323
+ i18n-nextButtonTitle="kendo.multiviewcalendar.nextButtonTitle|The label for the next button in the Multiview calendar"
1324
+ nextButtonTitle="Navigate to next view"
1325
+
1326
+ i18n-parentViewButtonTitle="kendo.multiviewcalendar.parentViewButtonTitle|The title of the parent view button in the Multiview calendar header"
1327
+ parentViewButtonTitle="Navigate to parent view"
1328
+ >
1328
1329
  </ng-container>
1329
- <kendo-calendar-header
1330
- *ngIf="showCalendarHeader"
1330
+ @if (showCalendarHeader) {
1331
+ <kendo-calendar-header
1331
1332
  [activeView]="activeViewEnum"
1332
1333
  [currentDate]="activeDate"
1333
1334
  [size]="size"
@@ -1344,51 +1345,53 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
1344
1345
  (todayButtonClick)="handleTodayButtonClick({ selectedDates: [$event], focusedDate: $event })"
1345
1346
  (prevButtonClick)="navigateView(prevView)"
1346
1347
  (nextButtonClick)="navigateView(nextView)"
1347
- >
1348
- </kendo-calendar-header>
1348
+ >
1349
+ </kendo-calendar-header>
1350
+ }
1349
1351
  <kendo-calendar-horizontal
1350
- [showOtherMonthDays]="showOtherMonthDays"
1351
- [allowReverse]="allowReverse"
1352
- [id]="calendarHeaderIdLabel"
1353
- [attr.aria-labelledby]="multiViewCalendarHeaderIdLabel"
1354
- [activeView]="activeViewEnum"
1355
- [activeDescendant]="ariaActivedescendant"
1356
- [isActive]="isActive || isHovered"
1357
- [cellTemplateRef]="activeCellTemplate()?.templateRef"
1358
- [weekNumberTemplateRef]="weekNumberTemplateRef?.templateRef"
1359
- [cellUID]="cellUID"
1360
- [weekDaysFormat]="weekDaysFormat"
1361
- [views]="views"
1362
- [min]="min"
1363
- [max]="max"
1364
- [focusedDate]="focusedDate"
1365
- [animateNavigation]="animateNavigation"
1366
- [showViewHeader]="showViewHeader"
1367
- [weekNumber]="weekNumber"
1368
- [activeRangeEnd]="activeRangeEnd"
1369
- [selectionRange]="selectionRange"
1370
- [selectedDates]="selectedDates"
1371
- [orientation]="orientation"
1372
- [tabIndex]="tabIndex"
1373
- [disabled]="disabled"
1374
- (cellClick)="handleCellClick($event)"
1375
- (weekNumberCellClick)="handleWeekNumberClick($event)"
1376
- (cellEnter)="onCellEnter(cellEnter, $event)"
1377
- (cellLeave)="emitCellEvent(cellLeave, $event)"
1378
- (activeDateChange)="setActiveDate($event)"
1379
- (focusCalendar)="handleFocus()"
1380
- (blurCalendar)="handleFocusout($event)"
1381
- >
1352
+ [showOtherMonthDays]="showOtherMonthDays"
1353
+ [allowReverse]="allowReverse"
1354
+ [id]="calendarHeaderIdLabel"
1355
+ [attr.aria-labelledby]="multiViewCalendarHeaderIdLabel"
1356
+ [activeView]="activeViewEnum"
1357
+ [activeDescendant]="ariaActivedescendant"
1358
+ [isActive]="isActive || isHovered"
1359
+ [cellTemplateRef]="activeCellTemplate()?.templateRef"
1360
+ [weekNumberTemplateRef]="weekNumberTemplateRef?.templateRef"
1361
+ [cellUID]="cellUID"
1362
+ [weekDaysFormat]="weekDaysFormat"
1363
+ [views]="views"
1364
+ [min]="min"
1365
+ [max]="max"
1366
+ [focusedDate]="focusedDate"
1367
+ [animateNavigation]="animateNavigation"
1368
+ [showViewHeader]="showViewHeader"
1369
+ [weekNumber]="weekNumber"
1370
+ [activeRangeEnd]="activeRangeEnd"
1371
+ [selectionRange]="selectionRange"
1372
+ [selectedDates]="selectedDates"
1373
+ [orientation]="orientation"
1374
+ [tabIndex]="tabIndex"
1375
+ [disabled]="disabled"
1376
+ (cellClick)="handleCellClick($event)"
1377
+ (weekNumberCellClick)="handleWeekNumberClick($event)"
1378
+ (cellEnter)="onCellEnter(cellEnter, $event)"
1379
+ (cellLeave)="emitCellEvent(cellLeave, $event)"
1380
+ (activeDateChange)="setActiveDate($event)"
1381
+ (focusCalendar)="handleFocus()"
1382
+ (blurCalendar)="handleFocusout($event)"
1383
+ >
1382
1384
  </kendo-calendar-horizontal>
1383
- <kendo-calendar-footer
1384
- *ngIf="footer"
1385
+ @if (footer) {
1386
+ <kendo-calendar-footer
1385
1387
  [footerTemplateRef]="footerTemplateRef?.templateRef"
1386
1388
  [activeViewValue]="activeView"
1387
1389
  [currentDate]="activeDate">
1388
- </kendo-calendar-footer>
1389
- `,
1390
+ </kendo-calendar-footer>
1391
+ }
1392
+ `,
1390
1393
  standalone: true,
1391
- imports: [MultiViewCalendarLocalizedMessagesDirective, NgIf, HeaderComponent, HorizontalViewListComponent, FooterComponent]
1394
+ imports: [MultiViewCalendarLocalizedMessagesDirective, HeaderComponent, HorizontalViewListComponent, FooterComponent]
1392
1395
  }]
1393
1396
  }], ctorParameters: () => [{ type: i1.BusViewService }, { type: i0.ElementRef }, { type: i2.NavigationService }, { type: i0.Renderer2 }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }, { type: i3.DisabledDatesService }, { type: i4.SelectionService }], propDecorators: { showOtherMonthDays: [{
1394
1397
  type: Input
@@ -13,7 +13,7 @@ import { MIN_DATE, MAX_DATE } from '../defaults';
13
13
  import { cloneDate } from '@progress/kendo-date-math';
14
14
  import { dateInRange } from '../util';
15
15
  import { closestInScope } from '../common/dom-queries';
16
- import { NgIf, NgTemplateOutlet } from '@angular/common';
16
+ import { NgTemplateOutlet } from '@angular/common';
17
17
  import { KForOf } from './for.directive';
18
18
  import { EventsOutsideAngularDirective } from '@progress/kendo-angular-common';
19
19
  import * as i0 from "@angular/core";
@@ -135,33 +135,36 @@ export class NavigationComponent {
135
135
  }
136
136
  }
137
137
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: NavigationComponent, deps: [{ token: i1.BusViewService }, { token: i2.CalendarDOMService }, { token: i3.IntlService }, { token: i0.ChangeDetectorRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
138
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: NavigationComponent, isStandalone: true, selector: "kendo-calendar-navigation", inputs: { activeView: "activeView", min: "min", max: "max", focusedDate: "focusedDate", templateRef: "templateRef" }, outputs: { valueChange: "valueChange", pageChange: "pageChange" }, host: { properties: { "class.k-calendar-navigation": "this.getComponentClass" } }, viewQueries: [{ propertyName: "virtualization", first: true, predicate: VirtualizationComponent, descendants: true }, { propertyName: "list", first: true, predicate: ["list"], descendants: true, static: true }], usesOnChanges: true, ngImport: i0, template: `
138
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: NavigationComponent, isStandalone: true, selector: "kendo-calendar-navigation", inputs: { activeView: "activeView", min: "min", max: "max", focusedDate: "focusedDate", templateRef: "templateRef" }, outputs: { valueChange: "valueChange", pageChange: "pageChange" }, host: { properties: { "class.k-calendar-navigation": "this.getComponentClass" } }, viewQueries: [{ propertyName: "virtualization", first: true, predicate: VirtualizationComponent, descendants: true }, { propertyName: "list", first: true, predicate: ["list"], descendants: true, static: true }], usesOnChanges: true, ngImport: i0, template: `
139
139
  <span class="k-calendar-navigation-highlight"></span>
140
140
  <kendo-virtualization
141
- [skip]="skip"
142
- [take]="take"
143
- [total]="total"
144
- [itemHeight]="itemHeight"
145
- [topOffset]="topOffset"
146
- [bottomOffset]="bottomOffset"
147
- [maxScrollDifference]="maxViewHeight"
148
- (pageChange)="onPageChange($event)"
149
- (scrollChange)="scrollChange($event)"
150
- >
151
- <ul #list class="k-reset" [kendoEventsOutsideAngular]="{ click: handleDateChange }" [scope]="this">
152
- <li *kFor="let date of dates; let index=index" [attr.data-date-index]="index">
153
- <span [class.k-calendar-navigation-marker]="service.isRangeStart(date)">
154
- <ng-template [ngIf]="!templateRef">{{service.navigationTitle(date)}}</ng-template>
155
- <ng-template
156
- [ngIf]="templateRef"
157
- [ngTemplateOutlet]="templateRef"
158
- [ngTemplateOutletContext]="{ $implicit: service.navigationTitle(date), activeView: activeViewValue, date: date }"
159
- ></ng-template>
160
- </span>
161
- </li>
162
- </ul>
141
+ [skip]="skip"
142
+ [take]="take"
143
+ [total]="total"
144
+ [itemHeight]="itemHeight"
145
+ [topOffset]="topOffset"
146
+ [bottomOffset]="bottomOffset"
147
+ [maxScrollDifference]="maxViewHeight"
148
+ (pageChange)="onPageChange($event)"
149
+ (scrollChange)="scrollChange($event)"
150
+ >
151
+ <ul #list class="k-reset" [kendoEventsOutsideAngular]="{ click: handleDateChange }" [scope]="this">
152
+ <li *kFor="let date of dates; let index=index" [attr.data-date-index]="index">
153
+ <span [class.k-calendar-navigation-marker]="service.isRangeStart(date)">
154
+ @if (!templateRef) {
155
+ {{service.navigationTitle(date)}}
156
+ }
157
+ @if (templateRef) {
158
+ <ng-template
159
+ [ngTemplateOutlet]="templateRef"
160
+ [ngTemplateOutletContext]="{ $implicit: service.navigationTitle(date), activeView: activeViewValue, date: date }"
161
+ ></ng-template>
162
+ }
163
+ </span>
164
+ </li>
165
+ </ul>
163
166
  </kendo-virtualization>
164
- `, isInline: true, dependencies: [{ kind: "component", type: VirtualizationComponent, selector: "kendo-virtualization", inputs: ["direction", "itemHeight", "itemWidth", "topOffset", "bottomOffset", "maxScrollDifference", "scrollOffsetSize", "scrollDuration", "skip", "take", "total"], outputs: ["activeIndexChange", "pageChange", "scrollChange"] }, { kind: "directive", type: EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }, { kind: "directive", type: KForOf, selector: "[kFor][kForOf]", inputs: ["kForOf", "kForTrackBy", "kForTemplate"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
167
+ `, isInline: true, dependencies: [{ kind: "component", type: VirtualizationComponent, selector: "kendo-virtualization", inputs: ["direction", "itemHeight", "itemWidth", "topOffset", "bottomOffset", "maxScrollDifference", "scrollOffsetSize", "scrollDuration", "skip", "take", "total"], outputs: ["activeIndexChange", "pageChange", "scrollChange"] }, { kind: "directive", type: EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }, { kind: "directive", type: KForOf, selector: "[kFor][kForOf]", inputs: ["kForOf", "kForTrackBy", "kForTemplate"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
165
168
  }
166
169
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: NavigationComponent, decorators: [{
167
170
  type: Component,
@@ -171,32 +174,35 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
171
174
  template: `
172
175
  <span class="k-calendar-navigation-highlight"></span>
173
176
  <kendo-virtualization
174
- [skip]="skip"
175
- [take]="take"
176
- [total]="total"
177
- [itemHeight]="itemHeight"
178
- [topOffset]="topOffset"
179
- [bottomOffset]="bottomOffset"
180
- [maxScrollDifference]="maxViewHeight"
181
- (pageChange)="onPageChange($event)"
182
- (scrollChange)="scrollChange($event)"
183
- >
184
- <ul #list class="k-reset" [kendoEventsOutsideAngular]="{ click: handleDateChange }" [scope]="this">
185
- <li *kFor="let date of dates; let index=index" [attr.data-date-index]="index">
186
- <span [class.k-calendar-navigation-marker]="service.isRangeStart(date)">
187
- <ng-template [ngIf]="!templateRef">{{service.navigationTitle(date)}}</ng-template>
188
- <ng-template
189
- [ngIf]="templateRef"
190
- [ngTemplateOutlet]="templateRef"
191
- [ngTemplateOutletContext]="{ $implicit: service.navigationTitle(date), activeView: activeViewValue, date: date }"
192
- ></ng-template>
193
- </span>
194
- </li>
195
- </ul>
177
+ [skip]="skip"
178
+ [take]="take"
179
+ [total]="total"
180
+ [itemHeight]="itemHeight"
181
+ [topOffset]="topOffset"
182
+ [bottomOffset]="bottomOffset"
183
+ [maxScrollDifference]="maxViewHeight"
184
+ (pageChange)="onPageChange($event)"
185
+ (scrollChange)="scrollChange($event)"
186
+ >
187
+ <ul #list class="k-reset" [kendoEventsOutsideAngular]="{ click: handleDateChange }" [scope]="this">
188
+ <li *kFor="let date of dates; let index=index" [attr.data-date-index]="index">
189
+ <span [class.k-calendar-navigation-marker]="service.isRangeStart(date)">
190
+ @if (!templateRef) {
191
+ {{service.navigationTitle(date)}}
192
+ }
193
+ @if (templateRef) {
194
+ <ng-template
195
+ [ngTemplateOutlet]="templateRef"
196
+ [ngTemplateOutletContext]="{ $implicit: service.navigationTitle(date), activeView: activeViewValue, date: date }"
197
+ ></ng-template>
198
+ }
199
+ </span>
200
+ </li>
201
+ </ul>
196
202
  </kendo-virtualization>
197
- `,
203
+ `,
198
204
  standalone: true,
199
- imports: [VirtualizationComponent, EventsOutsideAngularDirective, KForOf, NgIf, NgTemplateOutlet]
205
+ imports: [VirtualizationComponent, EventsOutsideAngularDirective, KForOf, NgTemplateOutlet]
200
206
  }]
201
207
  }], ctorParameters: () => [{ type: i1.BusViewService }, { type: i2.CalendarDOMService }, { type: i3.IntlService }, { type: i0.ChangeDetectorRef }, { type: i0.Renderer2 }], propDecorators: { activeView: [{
202
208
  type: Input
@@ -5,7 +5,7 @@
5
5
  import { Injectable } from '@angular/core';
6
6
  import { Action } from '../models/navigation-action.enum';
7
7
  import { BusViewService } from '../services/bus-view.service';
8
- import { normalizeNumpadKeys } from '@progress/kendo-angular-common';
8
+ import { normalizeKeys } from '@progress/kendo-angular-common';
9
9
  import * as i0 from "@angular/core";
10
10
  import * as i1 from "../services/bus-view.service";
11
11
  const KEY_TO_ACTION = {
@@ -30,7 +30,7 @@ export class NavigationService {
30
30
  }
31
31
  action(event) {
32
32
  // on some keyboards arrow keys, PageUp/Down, and Home/End are mapped to Numpad keys
33
- const code = normalizeNumpadKeys(event);
33
+ const code = normalizeKeys(event);
34
34
  const action = `${event.ctrlKey || event.metaKey ? 'meta+' : ''}${code}`;
35
35
  return KEY_TO_ACTION[action];
36
36
  }