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

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.
@@ -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";
@@ -925,7 +924,12 @@ export class MultiViewCalendarComponent {
925
924
  this.emitNavigate(todayDate);
926
925
  this.updateButtonState();
927
926
  }
928
- this.handleDateChange(args);
927
+ if (this.selection === 'range' && isBottomView) {
928
+ this.performRangeSelection(todayDate);
929
+ }
930
+ else {
931
+ this.handleDateChange(args);
932
+ }
929
933
  }
930
934
  /**
931
935
  * @hidden
@@ -1198,7 +1202,7 @@ export class MultiViewCalendarComponent {
1198
1202
  });
1199
1203
  }
1200
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 });
1201
- 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: [
1202
1206
  BusViewService,
1203
1207
  RANGE_CALENDAR_VALUE_ACCESSOR,
1204
1208
  RANGE_CALENDAR_RANGE_VALIDATORS,
@@ -1212,21 +1216,21 @@ export class MultiViewCalendarComponent {
1212
1216
  SelectionService
1213
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: `
1214
1218
  <ng-container kendoMultiViewCalendarLocalizedMessages
1215
- i18n-today="kendo.multiviewcalendar.today|The label for the today button in the calendar header"
1216
- today="Today"
1217
-
1218
- i18n-prevButtonTitle="kendo.multiviewcalendar.prevButtonTitle|The label for the previous button in the Multiview calendar"
1219
- prevButtonTitle="Navigate to previous view"
1220
-
1221
- i18n-nextButtonTitle="kendo.multiviewcalendar.nextButtonTitle|The label for the next button in the Multiview calendar"
1222
- nextButtonTitle="Navigate to next view"
1223
-
1224
- i18n-parentViewButtonTitle="kendo.multiviewcalendar.parentViewButtonTitle|The title of the parent view button in the Multiview calendar header"
1225
- parentViewButtonTitle="Navigate to parent view"
1226
- >
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
+ >
1227
1231
  </ng-container>
1228
- <kendo-calendar-header
1229
- *ngIf="showCalendarHeader"
1232
+ @if (showCalendarHeader) {
1233
+ <kendo-calendar-header
1230
1234
  [activeView]="activeViewEnum"
1231
1235
  [currentDate]="activeDate"
1232
1236
  [size]="size"
@@ -1243,49 +1247,51 @@ export class MultiViewCalendarComponent {
1243
1247
  (todayButtonClick)="handleTodayButtonClick({ selectedDates: [$event], focusedDate: $event })"
1244
1248
  (prevButtonClick)="navigateView(prevView)"
1245
1249
  (nextButtonClick)="navigateView(nextView)"
1246
- >
1247
- </kendo-calendar-header>
1250
+ >
1251
+ </kendo-calendar-header>
1252
+ }
1248
1253
  <kendo-calendar-horizontal
1249
- [showOtherMonthDays]="showOtherMonthDays"
1250
- [allowReverse]="allowReverse"
1251
- [id]="calendarHeaderIdLabel"
1252
- [attr.aria-labelledby]="multiViewCalendarHeaderIdLabel"
1253
- [activeView]="activeViewEnum"
1254
- [activeDescendant]="ariaActivedescendant"
1255
- [isActive]="isActive || isHovered"
1256
- [cellTemplateRef]="activeCellTemplate()?.templateRef"
1257
- [weekNumberTemplateRef]="weekNumberTemplateRef?.templateRef"
1258
- [cellUID]="cellUID"
1259
- [weekDaysFormat]="weekDaysFormat"
1260
- [views]="views"
1261
- [min]="min"
1262
- [max]="max"
1263
- [focusedDate]="focusedDate"
1264
- [animateNavigation]="animateNavigation"
1265
- [showViewHeader]="showViewHeader"
1266
- [weekNumber]="weekNumber"
1267
- [activeRangeEnd]="activeRangeEnd"
1268
- [selectionRange]="selectionRange"
1269
- [selectedDates]="selectedDates"
1270
- [orientation]="orientation"
1271
- [tabIndex]="tabIndex"
1272
- [disabled]="disabled"
1273
- (cellClick)="handleCellClick($event)"
1274
- (weekNumberCellClick)="handleWeekNumberClick($event)"
1275
- (cellEnter)="onCellEnter(cellEnter, $event)"
1276
- (cellLeave)="emitCellEvent(cellLeave, $event)"
1277
- (activeDateChange)="setActiveDate($event)"
1278
- (focusCalendar)="handleFocus()"
1279
- (blurCalendar)="handleFocusout($event)"
1280
- >
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
+ >
1281
1286
  </kendo-calendar-horizontal>
1282
- <kendo-calendar-footer
1283
- *ngIf="footer"
1287
+ @if (footer) {
1288
+ <kendo-calendar-footer
1284
1289
  [footerTemplateRef]="footerTemplateRef?.templateRef"
1285
1290
  [activeViewValue]="activeView"
1286
1291
  [currentDate]="activeDate">
1287
- </kendo-calendar-footer>
1288
- `, 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 });
1289
1295
  }
1290
1296
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: MultiViewCalendarComponent, decorators: [{
1291
1297
  type: Component,
@@ -1308,21 +1314,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
1308
1314
  selector: 'kendo-multiviewcalendar',
1309
1315
  template: `
1310
1316
  <ng-container kendoMultiViewCalendarLocalizedMessages
1311
- i18n-today="kendo.multiviewcalendar.today|The label for the today button in the calendar header"
1312
- today="Today"
1313
-
1314
- i18n-prevButtonTitle="kendo.multiviewcalendar.prevButtonTitle|The label for the previous button in the Multiview calendar"
1315
- prevButtonTitle="Navigate to previous view"
1316
-
1317
- i18n-nextButtonTitle="kendo.multiviewcalendar.nextButtonTitle|The label for the next button in the Multiview calendar"
1318
- nextButtonTitle="Navigate to next view"
1319
-
1320
- i18n-parentViewButtonTitle="kendo.multiviewcalendar.parentViewButtonTitle|The title of the parent view button in the Multiview calendar header"
1321
- parentViewButtonTitle="Navigate to parent view"
1322
- >
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
+ >
1323
1329
  </ng-container>
1324
- <kendo-calendar-header
1325
- *ngIf="showCalendarHeader"
1330
+ @if (showCalendarHeader) {
1331
+ <kendo-calendar-header
1326
1332
  [activeView]="activeViewEnum"
1327
1333
  [currentDate]="activeDate"
1328
1334
  [size]="size"
@@ -1339,51 +1345,53 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
1339
1345
  (todayButtonClick)="handleTodayButtonClick({ selectedDates: [$event], focusedDate: $event })"
1340
1346
  (prevButtonClick)="navigateView(prevView)"
1341
1347
  (nextButtonClick)="navigateView(nextView)"
1342
- >
1343
- </kendo-calendar-header>
1348
+ >
1349
+ </kendo-calendar-header>
1350
+ }
1344
1351
  <kendo-calendar-horizontal
1345
- [showOtherMonthDays]="showOtherMonthDays"
1346
- [allowReverse]="allowReverse"
1347
- [id]="calendarHeaderIdLabel"
1348
- [attr.aria-labelledby]="multiViewCalendarHeaderIdLabel"
1349
- [activeView]="activeViewEnum"
1350
- [activeDescendant]="ariaActivedescendant"
1351
- [isActive]="isActive || isHovered"
1352
- [cellTemplateRef]="activeCellTemplate()?.templateRef"
1353
- [weekNumberTemplateRef]="weekNumberTemplateRef?.templateRef"
1354
- [cellUID]="cellUID"
1355
- [weekDaysFormat]="weekDaysFormat"
1356
- [views]="views"
1357
- [min]="min"
1358
- [max]="max"
1359
- [focusedDate]="focusedDate"
1360
- [animateNavigation]="animateNavigation"
1361
- [showViewHeader]="showViewHeader"
1362
- [weekNumber]="weekNumber"
1363
- [activeRangeEnd]="activeRangeEnd"
1364
- [selectionRange]="selectionRange"
1365
- [selectedDates]="selectedDates"
1366
- [orientation]="orientation"
1367
- [tabIndex]="tabIndex"
1368
- [disabled]="disabled"
1369
- (cellClick)="handleCellClick($event)"
1370
- (weekNumberCellClick)="handleWeekNumberClick($event)"
1371
- (cellEnter)="onCellEnter(cellEnter, $event)"
1372
- (cellLeave)="emitCellEvent(cellLeave, $event)"
1373
- (activeDateChange)="setActiveDate($event)"
1374
- (focusCalendar)="handleFocus()"
1375
- (blurCalendar)="handleFocusout($event)"
1376
- >
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
+ >
1377
1384
  </kendo-calendar-horizontal>
1378
- <kendo-calendar-footer
1379
- *ngIf="footer"
1385
+ @if (footer) {
1386
+ <kendo-calendar-footer
1380
1387
  [footerTemplateRef]="footerTemplateRef?.templateRef"
1381
1388
  [activeViewValue]="activeView"
1382
1389
  [currentDate]="activeDate">
1383
- </kendo-calendar-footer>
1384
- `,
1390
+ </kendo-calendar-footer>
1391
+ }
1392
+ `,
1385
1393
  standalone: true,
1386
- imports: [MultiViewCalendarLocalizedMessagesDirective, NgIf, HeaderComponent, HorizontalViewListComponent, FooterComponent]
1394
+ imports: [MultiViewCalendarLocalizedMessagesDirective, HeaderComponent, HorizontalViewListComponent, FooterComponent]
1387
1395
  }]
1388
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: [{
1389
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