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

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.
@@ -15,7 +15,6 @@ import { HeaderComponent } from './header.component';
15
15
  import { FooterComponent } from './footer.component';
16
16
  import { ViewComponent } from './view.component';
17
17
  import { KForOf } from './for.directive';
18
- import { NgIf, NgFor } from '@angular/common';
19
18
  import * as i0 from "@angular/core";
20
19
  import * as i1 from "./services/bus-view.service";
21
20
  import * as i2 from "@progress/kendo-angular-intl";
@@ -225,84 +224,91 @@ export class ViewListComponent {
225
224
  }
226
225
  }
227
226
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ViewListComponent, deps: [{ token: i1.BusViewService }, { token: i0.ChangeDetectorRef }, { token: i2.IntlService }, { token: i3.CalendarDOMService }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
228
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: ViewListComponent, isStandalone: true, selector: "kendo-calendar-viewlist", inputs: { allowReverse: "allowReverse", cellTemplateRef: "cellTemplateRef", weekNumberTemplateRef: "weekNumberTemplateRef", headerTitleTemplateRef: "headerTitleTemplateRef", headerTemplateRef: "headerTemplateRef", footerTemplateRef: "footerTemplateRef", showOtherMonthDays: "showOtherMonthDays", activeView: "activeView", cellUID: "cellUID", focusedDate: "focusedDate", isActive: "isActive", min: "min", max: "max", selectedDates: "selectedDates", tabIndex: "tabIndex", disabled: "disabled", id: "id", showFooter: "showFooter", weekDaysFormat: "weekDaysFormat", activeRangeEnd: "activeRangeEnd", selectionRange: "selectionRange", size: "size", weekNumber: "weekNumber" }, outputs: { cellEnter: "cellEnter", cellClick: "cellClick", weekNumberCellClick: "weekNumberCellClick", activeDateChange: "activeDateChange", todayButtonClick: "todayButtonClick", pageChange: "pageChange", focusCalendar: "focusCalendar", blurCalendar: "blurCalendar", focusedCellChange: "focusedCellChange" }, host: { properties: { "class.k-vstack": "this.getComponentClass", "class.k-calendar-view": "this.getComponentClass", "class.k-calendar-monthview": "this.getComponentMonthClass", "class.k-calendar-yearview": "this.getComponentYearClass", "class.k-calendar-decadeview": "this.getComponentDecadeClass", "class.k-calendar-centuryview": "this.getComponentCenturyClass" } }, viewQueries: [{ propertyName: "virtualization", first: true, predicate: VirtualizationComponent, descendants: true }, { propertyName: "headerComponent", first: true, predicate: HeaderComponent, descendants: true }, { propertyName: "list", first: true, predicate: ["list"], descendants: true, static: true }], usesOnChanges: true, ngImport: i0, template: `
227
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: ViewListComponent, isStandalone: true, selector: "kendo-calendar-viewlist", inputs: { allowReverse: "allowReverse", cellTemplateRef: "cellTemplateRef", weekNumberTemplateRef: "weekNumberTemplateRef", headerTitleTemplateRef: "headerTitleTemplateRef", headerTemplateRef: "headerTemplateRef", footerTemplateRef: "footerTemplateRef", showOtherMonthDays: "showOtherMonthDays", activeView: "activeView", cellUID: "cellUID", focusedDate: "focusedDate", isActive: "isActive", min: "min", max: "max", selectedDates: "selectedDates", tabIndex: "tabIndex", disabled: "disabled", id: "id", showFooter: "showFooter", weekDaysFormat: "weekDaysFormat", activeRangeEnd: "activeRangeEnd", selectionRange: "selectionRange", size: "size", weekNumber: "weekNumber" }, outputs: { cellEnter: "cellEnter", cellClick: "cellClick", weekNumberCellClick: "weekNumberCellClick", activeDateChange: "activeDateChange", todayButtonClick: "todayButtonClick", pageChange: "pageChange", focusCalendar: "focusCalendar", blurCalendar: "blurCalendar", focusedCellChange: "focusedCellChange" }, host: { properties: { "class.k-vstack": "this.getComponentClass", "class.k-calendar-view": "this.getComponentClass", "class.k-calendar-monthview": "this.getComponentMonthClass", "class.k-calendar-yearview": "this.getComponentYearClass", "class.k-calendar-decadeview": "this.getComponentDecadeClass", "class.k-calendar-centuryview": "this.getComponentCenturyClass" } }, viewQueries: [{ propertyName: "virtualization", first: true, predicate: VirtualizationComponent, descendants: true }, { propertyName: "headerComponent", first: true, predicate: HeaderComponent, descendants: true }, { propertyName: "list", first: true, predicate: ["list"], descendants: true, static: true }], usesOnChanges: true, ngImport: i0, template: `
229
228
  <kendo-calendar-header
230
- [currentDate]="activeDate"
231
- [size]="size"
232
- [min]="min"
233
- [max]="max"
234
- [id]="id"
235
- [activeView]="activeView"
236
- [titleTemplateRef]="headerTitleTemplateRef"
237
- [headerTemplateRef]="headerTemplateRef"
238
- (todayButtonClick)="todayButtonClick.emit($event)"
239
- >
229
+ [currentDate]="activeDate"
230
+ [size]="size"
231
+ [min]="min"
232
+ [max]="max"
233
+ [id]="id"
234
+ [activeView]="activeView"
235
+ [titleTemplateRef]="headerTitleTemplateRef"
236
+ [headerTemplateRef]="headerTemplateRef"
237
+ (todayButtonClick)="todayButtonClick.emit($event)"
238
+ >
240
239
  </kendo-calendar-header>
241
- <table class="k-calendar-weekdays k-calendar-table" [style.table-layout]="'auto'" *ngIf="isMonthView()">
240
+ @if (isMonthView()) {
241
+ <table class="k-calendar-weekdays k-calendar-table" [style.table-layout]="'auto'">
242
242
  <thead class="k-calendar-thead">
243
- <tr class="k-calendar-tr">
244
- <th class="k-calendar-th" *ngFor="let name of weekNames; let i = index;" scope="col" [attr.aria-label]="wideWeekNames[i]" role="columnheader">{{name}}</th>
245
- </tr>
243
+ <tr class="k-calendar-tr">
244
+ @for (name of weekNames; track $index; let i = $index) {
245
+ <th class="k-calendar-th" scope="col" [attr.aria-label]="wideWeekNames[i]" role="columnheader">{{name}}</th>
246
+ }
247
+ </tr>
246
248
  </thead>
247
- </table>
249
+ </table>
250
+ }
248
251
  <kendo-virtualization
249
- [tabindex]="-1"
250
- [skip]="skip"
251
- [take]="take"
252
- [total]="total"
253
- [itemHeight]="viewHeight"
254
- [topOffset]="viewOffset"
255
- [bottomOffset]="bottomOffset"
256
- [scrollOffsetSize]="viewOffset"
257
- [maxScrollDifference]="viewHeight"
258
- (pageChange)="onPageChange($event)"
259
- (scrollChange)="scrollChange($event)"
260
- (activeIndexChange)="setActiveDate($event)"
261
- >
262
- <table
263
- #list
264
- role="grid"
265
- class="k-calendar-table"
266
- [attr.tabindex]="getTabIndex()"
267
- [attr.aria-labelledby]="id"
268
- (focus)="focusCalendar.emit()"
269
- (blur)="blurCalendar.emit($event)"
252
+ [tabindex]="-1"
253
+ [skip]="skip"
254
+ [take]="take"
255
+ [total]="total"
256
+ [itemHeight]="viewHeight"
257
+ [topOffset]="viewOffset"
258
+ [bottomOffset]="bottomOffset"
259
+ [scrollOffsetSize]="viewOffset"
260
+ [maxScrollDifference]="viewHeight"
261
+ (pageChange)="onPageChange($event)"
262
+ (scrollChange)="scrollChange($event)"
263
+ (activeIndexChange)="setActiveDate($event)"
264
+ >
265
+ <table
266
+ #list
267
+ role="grid"
268
+ class="k-calendar-table"
269
+ [attr.tabindex]="getTabIndex()"
270
+ [attr.aria-labelledby]="id"
271
+ (focus)="focusCalendar.emit()"
272
+ (blur)="blurCalendar.emit($event)"
270
273
  >
271
- <colgroup><col *ngFor="let _ of cols" /></colgroup>
274
+ <colgroup>@for (_ of cols; track $index) {
275
+ <col />
276
+ }</colgroup>
272
277
 
273
- <tbody class="k-calendar-tbody"
274
- *kFor="let date of dates"
275
- kendoCalendarView
276
- [allowReverse]="allowReverse"
277
- [activeRangeEnd]="activeRangeEnd"
278
- [selectionRange]="selectionRange"
279
- [showOtherMonthDays]="showOtherMonthDays"
280
- [headerTitle]="headerTitle"
281
- role="rowgroup"
282
- [activeView]="activeView"
283
- [isActive]="isActive"
284
- [min]="min" [max]="max"
285
- [cellUID]="cellUID"
286
- [focusedDate]="focusedDate"
287
- [selectedDates]="selectedDates"
288
- [weekNumber]="weekNumber"
289
- [templateRef]="cellTemplateRef"
290
- [weekNumberTemplateRef]="weekNumberTemplateRef"
291
- [viewDate]="date"
292
- (cellClick)="cellClick.emit($event)"
293
- (weekNumberCellClick)="weekNumberCellClick.emit($event)"
294
- (focusedCellId)="focusedCellChange.emit($event)"
295
- (cellEnter)="cellEnter.emit($event)"
296
- ></tbody>
297
- </table>
278
+ <tbody class="k-calendar-tbody"
279
+ *kFor="let date of dates"
280
+ kendoCalendarView
281
+ [allowReverse]="allowReverse"
282
+ [activeRangeEnd]="activeRangeEnd"
283
+ [selectionRange]="selectionRange"
284
+ [showOtherMonthDays]="showOtherMonthDays"
285
+ [headerTitle]="headerTitle"
286
+ role="rowgroup"
287
+ [activeView]="activeView"
288
+ [isActive]="isActive"
289
+ [min]="min" [max]="max"
290
+ [cellUID]="cellUID"
291
+ [focusedDate]="focusedDate"
292
+ [selectedDates]="selectedDates"
293
+ [weekNumber]="weekNumber"
294
+ [templateRef]="cellTemplateRef"
295
+ [weekNumberTemplateRef]="weekNumberTemplateRef"
296
+ [viewDate]="date"
297
+ (cellClick)="cellClick.emit($event)"
298
+ (weekNumberCellClick)="weekNumberCellClick.emit($event)"
299
+ (focusedCellId)="focusedCellChange.emit($event)"
300
+ (cellEnter)="cellEnter.emit($event)"
301
+ ></tbody>
302
+ </table>
298
303
  </kendo-virtualization>
299
- <kendo-calendar-footer
300
- *ngIf="showFooter"
304
+ @if (showFooter) {
305
+ <kendo-calendar-footer
301
306
  [footerTemplateRef]="footerTemplateRef"
302
307
  [activeViewValue]="activeViewValue"
303
308
  [currentDate]="activeDate">
304
- </kendo-calendar-footer>
305
- `, isInline: true, dependencies: [{ 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: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { 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: KForOf, selector: "[kFor][kForOf]", inputs: ["kForOf", "kForTrackBy", "kForTemplate"] }, { kind: "component", type: ViewComponent, selector: "[kendoCalendarView]", inputs: ["allowReverse", "showOtherMonthDays", "direction", "isActive", "activeView", "cellUID", "focusedDate", "viewDate", "activeRangeEnd", "selectionRange", "min", "max", "selectedDates", "weekNumber", "viewIndex", "templateRef", "weekNumberTemplateRef", "headerTitle"], outputs: ["cellClick", "weekNumberCellClick", "cellEnter", "cellLeave", "focusedCellId"] }, { kind: "component", type: FooterComponent, selector: "kendo-calendar-footer", inputs: ["footerTemplateRef", "activeViewValue", "currentDate"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
309
+ </kendo-calendar-footer>
310
+ }
311
+ `, isInline: true, dependencies: [{ 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: VirtualizationComponent, selector: "kendo-virtualization", inputs: ["direction", "itemHeight", "itemWidth", "topOffset", "bottomOffset", "maxScrollDifference", "scrollOffsetSize", "scrollDuration", "skip", "take", "total"], outputs: ["activeIndexChange", "pageChange", "scrollChange"] }, { kind: "directive", type: KForOf, selector: "[kFor][kForOf]", inputs: ["kForOf", "kForTrackBy", "kForTemplate"] }, { kind: "component", type: ViewComponent, selector: "[kendoCalendarView]", inputs: ["allowReverse", "showOtherMonthDays", "direction", "isActive", "activeView", "cellUID", "focusedDate", "viewDate", "activeRangeEnd", "selectionRange", "min", "max", "selectedDates", "weekNumber", "viewIndex", "templateRef", "weekNumberTemplateRef", "headerTitle"], outputs: ["cellClick", "weekNumberCellClick", "cellEnter", "cellLeave", "focusedCellId"] }, { kind: "component", type: FooterComponent, selector: "kendo-calendar-footer", inputs: ["footerTemplateRef", "activeViewValue", "currentDate"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
306
312
  }
307
313
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ViewListComponent, decorators: [{
308
314
  type: Component,
@@ -311,84 +317,91 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
311
317
  selector: 'kendo-calendar-viewlist',
312
318
  template: `
313
319
  <kendo-calendar-header
314
- [currentDate]="activeDate"
315
- [size]="size"
316
- [min]="min"
317
- [max]="max"
318
- [id]="id"
319
- [activeView]="activeView"
320
- [titleTemplateRef]="headerTitleTemplateRef"
321
- [headerTemplateRef]="headerTemplateRef"
322
- (todayButtonClick)="todayButtonClick.emit($event)"
323
- >
320
+ [currentDate]="activeDate"
321
+ [size]="size"
322
+ [min]="min"
323
+ [max]="max"
324
+ [id]="id"
325
+ [activeView]="activeView"
326
+ [titleTemplateRef]="headerTitleTemplateRef"
327
+ [headerTemplateRef]="headerTemplateRef"
328
+ (todayButtonClick)="todayButtonClick.emit($event)"
329
+ >
324
330
  </kendo-calendar-header>
325
- <table class="k-calendar-weekdays k-calendar-table" [style.table-layout]="'auto'" *ngIf="isMonthView()">
331
+ @if (isMonthView()) {
332
+ <table class="k-calendar-weekdays k-calendar-table" [style.table-layout]="'auto'">
326
333
  <thead class="k-calendar-thead">
327
- <tr class="k-calendar-tr">
328
- <th class="k-calendar-th" *ngFor="let name of weekNames; let i = index;" scope="col" [attr.aria-label]="wideWeekNames[i]" role="columnheader">{{name}}</th>
329
- </tr>
334
+ <tr class="k-calendar-tr">
335
+ @for (name of weekNames; track $index; let i = $index) {
336
+ <th class="k-calendar-th" scope="col" [attr.aria-label]="wideWeekNames[i]" role="columnheader">{{name}}</th>
337
+ }
338
+ </tr>
330
339
  </thead>
331
- </table>
340
+ </table>
341
+ }
332
342
  <kendo-virtualization
333
- [tabindex]="-1"
334
- [skip]="skip"
335
- [take]="take"
336
- [total]="total"
337
- [itemHeight]="viewHeight"
338
- [topOffset]="viewOffset"
339
- [bottomOffset]="bottomOffset"
340
- [scrollOffsetSize]="viewOffset"
341
- [maxScrollDifference]="viewHeight"
342
- (pageChange)="onPageChange($event)"
343
- (scrollChange)="scrollChange($event)"
344
- (activeIndexChange)="setActiveDate($event)"
345
- >
346
- <table
347
- #list
348
- role="grid"
349
- class="k-calendar-table"
350
- [attr.tabindex]="getTabIndex()"
351
- [attr.aria-labelledby]="id"
352
- (focus)="focusCalendar.emit()"
353
- (blur)="blurCalendar.emit($event)"
343
+ [tabindex]="-1"
344
+ [skip]="skip"
345
+ [take]="take"
346
+ [total]="total"
347
+ [itemHeight]="viewHeight"
348
+ [topOffset]="viewOffset"
349
+ [bottomOffset]="bottomOffset"
350
+ [scrollOffsetSize]="viewOffset"
351
+ [maxScrollDifference]="viewHeight"
352
+ (pageChange)="onPageChange($event)"
353
+ (scrollChange)="scrollChange($event)"
354
+ (activeIndexChange)="setActiveDate($event)"
355
+ >
356
+ <table
357
+ #list
358
+ role="grid"
359
+ class="k-calendar-table"
360
+ [attr.tabindex]="getTabIndex()"
361
+ [attr.aria-labelledby]="id"
362
+ (focus)="focusCalendar.emit()"
363
+ (blur)="blurCalendar.emit($event)"
354
364
  >
355
- <colgroup><col *ngFor="let _ of cols" /></colgroup>
365
+ <colgroup>@for (_ of cols; track $index) {
366
+ <col />
367
+ }</colgroup>
356
368
 
357
- <tbody class="k-calendar-tbody"
358
- *kFor="let date of dates"
359
- kendoCalendarView
360
- [allowReverse]="allowReverse"
361
- [activeRangeEnd]="activeRangeEnd"
362
- [selectionRange]="selectionRange"
363
- [showOtherMonthDays]="showOtherMonthDays"
364
- [headerTitle]="headerTitle"
365
- role="rowgroup"
366
- [activeView]="activeView"
367
- [isActive]="isActive"
368
- [min]="min" [max]="max"
369
- [cellUID]="cellUID"
370
- [focusedDate]="focusedDate"
371
- [selectedDates]="selectedDates"
372
- [weekNumber]="weekNumber"
373
- [templateRef]="cellTemplateRef"
374
- [weekNumberTemplateRef]="weekNumberTemplateRef"
375
- [viewDate]="date"
376
- (cellClick)="cellClick.emit($event)"
377
- (weekNumberCellClick)="weekNumberCellClick.emit($event)"
378
- (focusedCellId)="focusedCellChange.emit($event)"
379
- (cellEnter)="cellEnter.emit($event)"
380
- ></tbody>
381
- </table>
369
+ <tbody class="k-calendar-tbody"
370
+ *kFor="let date of dates"
371
+ kendoCalendarView
372
+ [allowReverse]="allowReverse"
373
+ [activeRangeEnd]="activeRangeEnd"
374
+ [selectionRange]="selectionRange"
375
+ [showOtherMonthDays]="showOtherMonthDays"
376
+ [headerTitle]="headerTitle"
377
+ role="rowgroup"
378
+ [activeView]="activeView"
379
+ [isActive]="isActive"
380
+ [min]="min" [max]="max"
381
+ [cellUID]="cellUID"
382
+ [focusedDate]="focusedDate"
383
+ [selectedDates]="selectedDates"
384
+ [weekNumber]="weekNumber"
385
+ [templateRef]="cellTemplateRef"
386
+ [weekNumberTemplateRef]="weekNumberTemplateRef"
387
+ [viewDate]="date"
388
+ (cellClick)="cellClick.emit($event)"
389
+ (weekNumberCellClick)="weekNumberCellClick.emit($event)"
390
+ (focusedCellId)="focusedCellChange.emit($event)"
391
+ (cellEnter)="cellEnter.emit($event)"
392
+ ></tbody>
393
+ </table>
382
394
  </kendo-virtualization>
383
- <kendo-calendar-footer
384
- *ngIf="showFooter"
395
+ @if (showFooter) {
396
+ <kendo-calendar-footer
385
397
  [footerTemplateRef]="footerTemplateRef"
386
398
  [activeViewValue]="activeViewValue"
387
399
  [currentDate]="activeDate">
388
- </kendo-calendar-footer>
389
- `,
400
+ </kendo-calendar-footer>
401
+ }
402
+ `,
390
403
  standalone: true,
391
- imports: [HeaderComponent, NgIf, NgFor, VirtualizationComponent, KForOf, ViewComponent, FooterComponent]
404
+ imports: [HeaderComponent, VirtualizationComponent, KForOf, ViewComponent, FooterComponent]
392
405
  }]
393
406
  }], ctorParameters: () => [{ type: i1.BusViewService }, { type: i0.ChangeDetectorRef }, { type: i2.IntlService }, { type: i3.CalendarDOMService }, { type: i0.Renderer2 }], propDecorators: { allowReverse: [{
394
407
  type: Input
@@ -13,7 +13,7 @@ import { getToday, last, setTime, stringifyClassObject } from '../util';
13
13
  import { closestInScope } from '../common/dom-queries';
14
14
  import { isPresent } from '../common/utils';
15
15
  import { KForOf } from './for.directive';
16
- import { NgIf, NgTemplateOutlet, NgClass } from '@angular/common';
16
+ import { NgTemplateOutlet, NgClass } from '@angular/common';
17
17
  import * as i0 from "@angular/core";
18
18
  import * as i1 from "./services/bus-view.service";
19
19
  import * as i2 from "@progress/kendo-angular-intl";
@@ -260,54 +260,63 @@ export class ViewComponent {
260
260
  return this.data[rowIndex][cellIndex];
261
261
  }
262
262
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ViewComponent, deps: [{ token: i1.BusViewService }, { token: i2.IntlService }, { token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.Renderer2 }, { token: i3.DisabledDatesService }], target: i0.ɵɵFactoryTarget.Component });
263
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: ViewComponent, isStandalone: true, selector: "[kendoCalendarView]", inputs: { allowReverse: "allowReverse", showOtherMonthDays: "showOtherMonthDays", direction: "direction", isActive: "isActive", activeView: "activeView", cellUID: "cellUID", focusedDate: "focusedDate", viewDate: "viewDate", activeRangeEnd: "activeRangeEnd", selectionRange: "selectionRange", min: "min", max: "max", selectedDates: "selectedDates", weekNumber: "weekNumber", viewIndex: "viewIndex", templateRef: "templateRef", weekNumberTemplateRef: "weekNumberTemplateRef", headerTitle: "headerTitle" }, outputs: { cellClick: "cellClick", weekNumberCellClick: "weekNumberCellClick", cellEnter: "cellEnter", cellLeave: "cellLeave", focusedCellId: "focusedCellId" }, usesOnChanges: true, ngImport: i0, template: `
264
- <ng-template #emptyCell><td class="k-empty k-calendar-td" role="gridcell">&nbsp;</td></ng-template>
265
- <tr *ngIf="!isHorizontal()" class="k-calendar-tr" role="row" [attr.aria-hidden]="ariaHidden"><th class="k-calendar-caption" scope="col" [colSpan]="colSpan">{{title}}</th></tr>
266
- <tr *kFor="let row of data; let rowIndex = index" class="k-calendar-tr" role="row">
267
- <ng-template [ngIf]="weekNumber">
268
- <td
269
- class="k-alt k-calendar-td"
270
- role="gridcell"
271
- *ngIf="firstDate(row); else emptyCell"
272
- (click)="handleWeekNumberClick(row)"
273
- >
274
- <ng-template [ngIf]="!weekNumberTemplateRef">
275
- {{getWeekNumber(firstDate(row))}}
276
- </ng-template>
277
- <ng-template
278
- [ngIf]="weekNumberTemplateRef"
279
- [ngTemplateOutlet]="weekNumberTemplateRef"
263
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: ViewComponent, isStandalone: true, selector: "[kendoCalendarView]", inputs: { allowReverse: "allowReverse", showOtherMonthDays: "showOtherMonthDays", direction: "direction", isActive: "isActive", activeView: "activeView", cellUID: "cellUID", focusedDate: "focusedDate", viewDate: "viewDate", activeRangeEnd: "activeRangeEnd", selectionRange: "selectionRange", min: "min", max: "max", selectedDates: "selectedDates", weekNumber: "weekNumber", viewIndex: "viewIndex", templateRef: "templateRef", weekNumberTemplateRef: "weekNumberTemplateRef", headerTitle: "headerTitle" }, outputs: { cellClick: "cellClick", weekNumberCellClick: "weekNumberCellClick", cellEnter: "cellEnter", cellLeave: "cellLeave", focusedCellId: "focusedCellId" }, usesOnChanges: true, ngImport: i0, template: `
264
+ @if (!isHorizontal()) {
265
+ <tr class="k-calendar-tr" role="row" [attr.aria-hidden]="ariaHidden"><th class="k-calendar-caption" scope="col" [colSpan]="colSpan">{{title}}</th></tr>
266
+ }
267
+ <tr *kFor="let row of data; let rowIndex = index" class="k-calendar-tr" role="row">
268
+ @if (weekNumber) {
269
+ @if (firstDate(row)) {
270
+ <td
271
+ class="k-alt k-calendar-td"
272
+ role="gridcell"
273
+ (click)="handleWeekNumberClick(row)"
274
+ >
275
+ @if (!weekNumberTemplateRef) {
276
+ {{getWeekNumber(firstDate(row))}}
277
+ }
278
+ @if (weekNumberTemplateRef) {
279
+ <ng-template
280
+ [ngTemplateOutlet]="weekNumberTemplateRef"
280
281
  [ngTemplateOutletContext]="{
281
282
  $implicit: firstDate(row),
282
283
  cellContext: getWeekNumberContext(row)
283
284
  }"
284
- ></ng-template>
285
- </td>
286
- </ng-template>
287
- <ng-container *kFor="let cell of row; let cellIndex = index">
288
- <td class="k-calendar-td"
289
- *ngIf="shouldRenderCellContent(cell); else emptyCell"
290
- role="gridcell"
291
- [attr.id]="cell.id"
292
- [attr.data-cell-index]="tableCellIndex(rowIndex, cellIndex)"
293
- [attr.aria-selected]="cell.isSelected || cell.isRangeStart || cell.isRangeMid || cell.isRangeEnd"
294
- [attr.aria-disabled]="cell.isDisabled"
295
- [attr.aria-label]="getMonthLabel(cell.value)"
296
- [ngClass]="getStyles(cell)"
297
- [title]="cell.title"
298
- >
299
- <span class="k-link">
300
- <ng-template [ngIf]="!templateRef">{{cell.formattedValue}}</ng-template>
301
- <ng-template
302
- *ngIf="templateRef"
303
- [ngTemplateOutlet]="templateRef"
304
- [ngTemplateOutletContext]="{ $implicit: cell.value, cellContext: cell }"
305
- ></ng-template>
306
- </span>
307
- </td>
308
- </ng-container>
309
- </tr>
310
- `, isInline: true, dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: KForOf, selector: "[kFor][kForOf]", inputs: ["kForOf", "kForTrackBy", "kForTemplate"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
285
+ ></ng-template>
286
+ }
287
+ </td>
288
+ } @else {
289
+ <td class="k-empty k-calendar-td" role="gridcell">&nbsp;</td>
290
+ }
291
+ }
292
+ <ng-container *kFor="let cell of row; let cellIndex = index">
293
+ @if (shouldRenderCellContent(cell)) {
294
+ <td class="k-calendar-td"
295
+ role="gridcell"
296
+ [attr.id]="cell.id"
297
+ [attr.data-cell-index]="tableCellIndex(rowIndex, cellIndex)"
298
+ [attr.aria-selected]="cell.isSelected || cell.isRangeStart || cell.isRangeMid || cell.isRangeEnd"
299
+ [attr.aria-disabled]="cell.isDisabled"
300
+ [attr.aria-label]="getMonthLabel(cell.value)"
301
+ [ngClass]="getStyles(cell)"
302
+ [title]="cell.title"
303
+ >
304
+ <span class="k-link">
305
+ @if (!templateRef) {{{cell.formattedValue}}}
306
+ @if (templateRef) {
307
+ <ng-template
308
+ [ngTemplateOutlet]="templateRef"
309
+ [ngTemplateOutletContext]="{ $implicit: cell.value, cellContext: cell }"
310
+ ></ng-template>
311
+ }
312
+ </span>
313
+ </td>
314
+ } @else {
315
+ <td class="k-empty k-calendar-td" role="gridcell">&nbsp;</td>
316
+ }
317
+ </ng-container>
318
+ </tr>
319
+ `, isInline: true, dependencies: [{ kind: "directive", type: KForOf, selector: "[kFor][kForOf]", inputs: ["kForOf", "kForTrackBy", "kForTemplate"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
311
320
  }
312
321
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ViewComponent, decorators: [{
313
322
  type: Component,
@@ -315,55 +324,64 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
315
324
  // eslint-disable-next-line
316
325
  selector: '[kendoCalendarView]',
317
326
  template: `
318
- <ng-template #emptyCell><td class="k-empty k-calendar-td" role="gridcell">&nbsp;</td></ng-template>
319
- <tr *ngIf="!isHorizontal()" class="k-calendar-tr" role="row" [attr.aria-hidden]="ariaHidden"><th class="k-calendar-caption" scope="col" [colSpan]="colSpan">{{title}}</th></tr>
320
- <tr *kFor="let row of data; let rowIndex = index" class="k-calendar-tr" role="row">
321
- <ng-template [ngIf]="weekNumber">
322
- <td
323
- class="k-alt k-calendar-td"
324
- role="gridcell"
325
- *ngIf="firstDate(row); else emptyCell"
326
- (click)="handleWeekNumberClick(row)"
327
- >
328
- <ng-template [ngIf]="!weekNumberTemplateRef">
329
- {{getWeekNumber(firstDate(row))}}
330
- </ng-template>
331
- <ng-template
332
- [ngIf]="weekNumberTemplateRef"
333
- [ngTemplateOutlet]="weekNumberTemplateRef"
327
+ @if (!isHorizontal()) {
328
+ <tr class="k-calendar-tr" role="row" [attr.aria-hidden]="ariaHidden"><th class="k-calendar-caption" scope="col" [colSpan]="colSpan">{{title}}</th></tr>
329
+ }
330
+ <tr *kFor="let row of data; let rowIndex = index" class="k-calendar-tr" role="row">
331
+ @if (weekNumber) {
332
+ @if (firstDate(row)) {
333
+ <td
334
+ class="k-alt k-calendar-td"
335
+ role="gridcell"
336
+ (click)="handleWeekNumberClick(row)"
337
+ >
338
+ @if (!weekNumberTemplateRef) {
339
+ {{getWeekNumber(firstDate(row))}}
340
+ }
341
+ @if (weekNumberTemplateRef) {
342
+ <ng-template
343
+ [ngTemplateOutlet]="weekNumberTemplateRef"
334
344
  [ngTemplateOutletContext]="{
335
345
  $implicit: firstDate(row),
336
346
  cellContext: getWeekNumberContext(row)
337
347
  }"
338
- ></ng-template>
339
- </td>
340
- </ng-template>
341
- <ng-container *kFor="let cell of row; let cellIndex = index">
342
- <td class="k-calendar-td"
343
- *ngIf="shouldRenderCellContent(cell); else emptyCell"
344
- role="gridcell"
345
- [attr.id]="cell.id"
346
- [attr.data-cell-index]="tableCellIndex(rowIndex, cellIndex)"
347
- [attr.aria-selected]="cell.isSelected || cell.isRangeStart || cell.isRangeMid || cell.isRangeEnd"
348
- [attr.aria-disabled]="cell.isDisabled"
349
- [attr.aria-label]="getMonthLabel(cell.value)"
350
- [ngClass]="getStyles(cell)"
351
- [title]="cell.title"
352
- >
353
- <span class="k-link">
354
- <ng-template [ngIf]="!templateRef">{{cell.formattedValue}}</ng-template>
355
- <ng-template
356
- *ngIf="templateRef"
357
- [ngTemplateOutlet]="templateRef"
358
- [ngTemplateOutletContext]="{ $implicit: cell.value, cellContext: cell }"
359
- ></ng-template>
360
- </span>
361
- </td>
362
- </ng-container>
363
- </tr>
364
- `,
348
+ ></ng-template>
349
+ }
350
+ </td>
351
+ } @else {
352
+ <td class="k-empty k-calendar-td" role="gridcell">&nbsp;</td>
353
+ }
354
+ }
355
+ <ng-container *kFor="let cell of row; let cellIndex = index">
356
+ @if (shouldRenderCellContent(cell)) {
357
+ <td class="k-calendar-td"
358
+ role="gridcell"
359
+ [attr.id]="cell.id"
360
+ [attr.data-cell-index]="tableCellIndex(rowIndex, cellIndex)"
361
+ [attr.aria-selected]="cell.isSelected || cell.isRangeStart || cell.isRangeMid || cell.isRangeEnd"
362
+ [attr.aria-disabled]="cell.isDisabled"
363
+ [attr.aria-label]="getMonthLabel(cell.value)"
364
+ [ngClass]="getStyles(cell)"
365
+ [title]="cell.title"
366
+ >
367
+ <span class="k-link">
368
+ @if (!templateRef) {{{cell.formattedValue}}}
369
+ @if (templateRef) {
370
+ <ng-template
371
+ [ngTemplateOutlet]="templateRef"
372
+ [ngTemplateOutletContext]="{ $implicit: cell.value, cellContext: cell }"
373
+ ></ng-template>
374
+ }
375
+ </span>
376
+ </td>
377
+ } @else {
378
+ <td class="k-empty k-calendar-td" role="gridcell">&nbsp;</td>
379
+ }
380
+ </ng-container>
381
+ </tr>
382
+ `,
365
383
  standalone: true,
366
- imports: [NgIf, KForOf, NgTemplateOutlet, NgClass]
384
+ imports: [KForOf, NgTemplateOutlet, NgClass]
367
385
  }]
368
386
  }], ctorParameters: () => [{ type: i1.BusViewService }, { type: i2.IntlService }, { type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }, { type: i0.Renderer2 }, { type: i3.DisabledDatesService }], propDecorators: { allowReverse: [{
369
387
  type: Input