@progress/kendo-angular-dateinputs 6.0.2 → 6.0.3

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.
@@ -341,81 +341,129 @@ var CalendarComponent = /** @class */ (function () {
341
341
  configurable: true
342
342
  });
343
343
  Object.defineProperty(CalendarComponent.prototype, "cellTemplateRef", {
344
+ get: function () {
345
+ return this._cellTemplateRef || this.cellTemplate;
346
+ },
344
347
  /**
345
348
  * @hidden
349
+ *
350
+ * Defines the template for each cell.
351
+ * Takes precedence over nested templates in the KendoCalendar tag.
346
352
  */
347
353
  set: function (template) {
348
- this.cellTemplate = template;
354
+ this._cellTemplateRef = template;
349
355
  },
350
356
  enumerable: true,
351
357
  configurable: true
352
358
  });
353
359
  Object.defineProperty(CalendarComponent.prototype, "monthCellTemplateRef", {
360
+ get: function () {
361
+ return this._monthCellTemplateRef || this.monthCellTemplate;
362
+ },
354
363
  /**
355
364
  * @hidden
365
+ *
366
+ * Defines the template for each month cell.
367
+ * Takes precedence over nested templates in the KendoCalendar tag.
356
368
  */
357
369
  set: function (template) {
358
- this.monthCellTemplate = template;
370
+ this._monthCellTemplateRef = template;
359
371
  },
360
372
  enumerable: true,
361
373
  configurable: true
362
374
  });
363
375
  Object.defineProperty(CalendarComponent.prototype, "yearCellTemplateRef", {
376
+ get: function () {
377
+ return this._yearCellTemplateRef || this.yearCellTemplate;
378
+ },
364
379
  /**
365
380
  * @hidden
381
+ *
382
+ * Defines the template for each year cell.
383
+ * Takes precedence over nested templates in the KendoCalendar tag.
366
384
  */
367
385
  set: function (template) {
368
- this.yearCellTemplate = template;
386
+ this._yearCellTemplateRef = template;
369
387
  },
370
388
  enumerable: true,
371
389
  configurable: true
372
390
  });
373
391
  Object.defineProperty(CalendarComponent.prototype, "decadeCellTemplateRef", {
392
+ get: function () {
393
+ return this._decadeCellTemplateRef || this.decadeCellTemplate;
394
+ },
374
395
  /**
375
396
  * @hidden
397
+ *
398
+ * Defines the template for each decade cell.
399
+ * Takes precedence over nested templates in the KendoCalendar tag.
376
400
  */
377
401
  set: function (template) {
378
- this.decadeCellTemplate = template;
402
+ this._decadeCellTemplateRef = template;
379
403
  },
380
404
  enumerable: true,
381
405
  configurable: true
382
406
  });
383
407
  Object.defineProperty(CalendarComponent.prototype, "centuryCellTemplateRef", {
408
+ get: function () {
409
+ return this._centuryCellTemplateRef || this.centuryCellTemplate;
410
+ },
384
411
  /**
385
412
  * @hidden
413
+ *
414
+ * Defines the template for each century cell.
415
+ * Takes precedence over nested templates in the KendoCalendar tag.
386
416
  */
387
417
  set: function (template) {
388
- this.centuryCellTemplate = template;
418
+ this._centuryCellTemplateRef = template;
389
419
  },
390
420
  enumerable: true,
391
421
  configurable: true
392
422
  });
393
423
  Object.defineProperty(CalendarComponent.prototype, "weekNumberTemplateRef", {
424
+ get: function () {
425
+ return this._weekNumberTemplateRef || this.weekNumberTemplate;
426
+ },
394
427
  /**
395
428
  * @hidden
429
+ *
430
+ * Defines the template for the week cell.
431
+ * Takes precedence over nested templates in the KendoCalendar tag.
396
432
  */
397
433
  set: function (template) {
398
- this.weekNumberTemplate = template;
434
+ this._weekNumberTemplateRef = template;
399
435
  },
400
436
  enumerable: true,
401
437
  configurable: true
402
438
  });
403
439
  Object.defineProperty(CalendarComponent.prototype, "headerTitleTemplateRef", {
440
+ get: function () {
441
+ return this._headerTitleTemplateRef || this.headerTitleTemplate;
442
+ },
404
443
  /**
405
444
  * @hidden
445
+ *
446
+ * Defines the template for the header title.
447
+ * Takes precedence over nested templates in the KendoCalendar tag.
406
448
  */
407
449
  set: function (template) {
408
- this.headerTitleTemplate = template;
450
+ this._headerTitleTemplateRef = template;
409
451
  },
410
452
  enumerable: true,
411
453
  configurable: true
412
454
  });
413
455
  Object.defineProperty(CalendarComponent.prototype, "navigationItemTemplateRef", {
456
+ get: function () {
457
+ return this._navigationItemTemplateRef || this.navigationItemTemplate;
458
+ },
414
459
  /**
415
460
  * @hidden
461
+ *
462
+ * Defines the template for the navigation item.
463
+ * Takes precedence over nested templates in the KendoCalendar tag.
416
464
  */
417
465
  set: function (template) {
418
- this.navigationItemTemplate = template;
466
+ this._navigationItemTemplateRef = template;
419
467
  },
420
468
  enumerable: true,
421
469
  configurable: true
@@ -682,13 +730,13 @@ var CalendarComponent = /** @class */ (function () {
682
730
  CalendarComponent.prototype.activeCellTemplate = function () {
683
731
  switch (this.activeViewEnum) {
684
732
  case CalendarViewEnum.month:
685
- return this.monthCellTemplate || this.cellTemplate;
733
+ return this.monthCellTemplateRef || this.cellTemplateRef;
686
734
  case CalendarViewEnum.year:
687
- return this.yearCellTemplate;
735
+ return this.yearCellTemplateRef;
688
736
  case CalendarViewEnum.decade:
689
- return this.decadeCellTemplate;
737
+ return this.decadeCellTemplateRef;
690
738
  case CalendarViewEnum.century:
691
- return this.centuryCellTemplate;
739
+ return this.centuryCellTemplateRef;
692
740
  default:
693
741
  return null;
694
742
  }
@@ -999,7 +1047,7 @@ var CalendarComponent = /** @class */ (function () {
999
1047
  tslib_1.__metadata("design:type", EventEmitter)
1000
1048
  ], CalendarComponent.prototype, "valueChange", void 0);
1001
1049
  tslib_1.__decorate([
1002
- ContentChild(CellTemplateDirective, { static: true }),
1050
+ ContentChild(CellTemplateDirective, { static: false }),
1003
1051
  tslib_1.__metadata("design:type", CellTemplateDirective)
1004
1052
  ], CalendarComponent.prototype, "cellTemplate", void 0);
1005
1053
  tslib_1.__decorate([
@@ -1008,7 +1056,7 @@ var CalendarComponent = /** @class */ (function () {
1008
1056
  tslib_1.__metadata("design:paramtypes", [CellTemplateDirective])
1009
1057
  ], CalendarComponent.prototype, "cellTemplateRef", null);
1010
1058
  tslib_1.__decorate([
1011
- ContentChild(MonthCellTemplateDirective, { static: true }),
1059
+ ContentChild(MonthCellTemplateDirective, { static: false }),
1012
1060
  tslib_1.__metadata("design:type", MonthCellTemplateDirective)
1013
1061
  ], CalendarComponent.prototype, "monthCellTemplate", void 0);
1014
1062
  tslib_1.__decorate([
@@ -1017,7 +1065,7 @@ var CalendarComponent = /** @class */ (function () {
1017
1065
  tslib_1.__metadata("design:paramtypes", [MonthCellTemplateDirective])
1018
1066
  ], CalendarComponent.prototype, "monthCellTemplateRef", null);
1019
1067
  tslib_1.__decorate([
1020
- ContentChild(YearCellTemplateDirective, { static: true }),
1068
+ ContentChild(YearCellTemplateDirective, { static: false }),
1021
1069
  tslib_1.__metadata("design:type", YearCellTemplateDirective)
1022
1070
  ], CalendarComponent.prototype, "yearCellTemplate", void 0);
1023
1071
  tslib_1.__decorate([
@@ -1026,7 +1074,7 @@ var CalendarComponent = /** @class */ (function () {
1026
1074
  tslib_1.__metadata("design:paramtypes", [YearCellTemplateDirective])
1027
1075
  ], CalendarComponent.prototype, "yearCellTemplateRef", null);
1028
1076
  tslib_1.__decorate([
1029
- ContentChild(DecadeCellTemplateDirective, { static: true }),
1077
+ ContentChild(DecadeCellTemplateDirective, { static: false }),
1030
1078
  tslib_1.__metadata("design:type", DecadeCellTemplateDirective)
1031
1079
  ], CalendarComponent.prototype, "decadeCellTemplate", void 0);
1032
1080
  tslib_1.__decorate([
@@ -1035,7 +1083,7 @@ var CalendarComponent = /** @class */ (function () {
1035
1083
  tslib_1.__metadata("design:paramtypes", [DecadeCellTemplateDirective])
1036
1084
  ], CalendarComponent.prototype, "decadeCellTemplateRef", null);
1037
1085
  tslib_1.__decorate([
1038
- ContentChild(CenturyCellTemplateDirective, { static: true }),
1086
+ ContentChild(CenturyCellTemplateDirective, { static: false }),
1039
1087
  tslib_1.__metadata("design:type", CenturyCellTemplateDirective)
1040
1088
  ], CalendarComponent.prototype, "centuryCellTemplate", void 0);
1041
1089
  tslib_1.__decorate([
@@ -1044,7 +1092,7 @@ var CalendarComponent = /** @class */ (function () {
1044
1092
  tslib_1.__metadata("design:paramtypes", [CenturyCellTemplateDirective])
1045
1093
  ], CalendarComponent.prototype, "centuryCellTemplateRef", null);
1046
1094
  tslib_1.__decorate([
1047
- ContentChild(WeekNumberCellTemplateDirective, { static: true }),
1095
+ ContentChild(WeekNumberCellTemplateDirective, { static: false }),
1048
1096
  tslib_1.__metadata("design:type", WeekNumberCellTemplateDirective)
1049
1097
  ], CalendarComponent.prototype, "weekNumberTemplate", void 0);
1050
1098
  tslib_1.__decorate([
@@ -1053,7 +1101,7 @@ var CalendarComponent = /** @class */ (function () {
1053
1101
  tslib_1.__metadata("design:paramtypes", [WeekNumberCellTemplateDirective])
1054
1102
  ], CalendarComponent.prototype, "weekNumberTemplateRef", null);
1055
1103
  tslib_1.__decorate([
1056
- ContentChild(HeaderTitleTemplateDirective, { static: true }),
1104
+ ContentChild(HeaderTitleTemplateDirective, { static: false }),
1057
1105
  tslib_1.__metadata("design:type", HeaderTitleTemplateDirective)
1058
1106
  ], CalendarComponent.prototype, "headerTitleTemplate", void 0);
1059
1107
  tslib_1.__decorate([
@@ -1062,7 +1110,7 @@ var CalendarComponent = /** @class */ (function () {
1062
1110
  tslib_1.__metadata("design:paramtypes", [HeaderTitleTemplateDirective])
1063
1111
  ], CalendarComponent.prototype, "headerTitleTemplateRef", null);
1064
1112
  tslib_1.__decorate([
1065
- ContentChild(NavigationItemTemplateDirective, { static: true }),
1113
+ ContentChild(NavigationItemTemplateDirective, { static: false }),
1066
1114
  tslib_1.__metadata("design:type", NavigationItemTemplateDirective)
1067
1115
  ], CalendarComponent.prototype, "navigationItemTemplate", void 0);
1068
1116
  tslib_1.__decorate([
@@ -1118,7 +1166,7 @@ var CalendarComponent = /** @class */ (function () {
1118
1166
  SelectionService
1119
1167
  ],
1120
1168
  selector: 'kendo-calendar',
1121
- template: "\n <ng-container kendoCalendarLocalizedMessages\n i18n-today=\"kendo.calendar.today|The label for the today button in the calendar header\"\n today=\"Today\"\n\n i18n-prevButtonTitle=\"kendo.calendar.prevButtonTitle|The title of the previous button in the Classic calendar\"\n prevButtonTitle=\"Navigate to previous view\"\n\n i18n-nextButtonTitle=\"kendo.calendar.nextButtonTitle|The title of the next button in the Classic calendar\"\n nextButtonTitle=\"Navigate to next view\"\n >\n </ng-container>\n <ng-container *ngIf=\"type === 'infinite'\">\n <kendo-calendar-navigation\n *ngIf=\"navigation\"\n [activeView]=\"activeViewEnum\"\n [focusedDate]=\"focusedDate\"\n [min]=\"min\"\n [max]=\"max\"\n [templateRef]=\"navigationItemTemplate?.templateRef\"\n (valueChange)=\"handleNavigation($event)\"\n (pageChange)=\"onPageChange()\"\n >\n </kendo-calendar-navigation>\n <kendo-calendar-viewlist\n [activeView]=\"activeViewEnum\"\n [isActive]=\"isActive\"\n [cellTemplateRef]=\"activeCellTemplate()?.templateRef\"\n [headerTitleTemplateRef]=\"headerTitleTemplate?.templateRef\"\n [weekNumberTemplateRef]=\"weekNumberTemplate?.templateRef\"\n [cellUID]=\"cellUID\"\n [min]=\"min\"\n [max]=\"max\"\n [focusedDate]=\"focusedDate\"\n [weekNumber]=\"weekNumber\"\n [selectedDates]=\"selectedDates\"\n (todayButtonClick)=\"handleDateChange({\n selectedDates: [$event],\n focusedDate: $event\n })\"\n (cellClick)=\"handleCellClick($event)\"\n (weekNumberCellClick)=\"handleWeekNumberClick($event)\"\n (activeDateChange)=\"handleActiveDateChange($event)\"\n (pageChange)=\"onPageChange()\"\n >\n </kendo-calendar-viewlist>\n <kendo-resize-sensor (resize)=\"onResize()\"></kendo-resize-sensor>\n </ng-container>\n <ng-container *ngIf=\"type === 'classic'\">\n <kendo-multiviewcalendar\n #multiviewcalendar\n [views]=\"1\"\n [min]=\"min\"\n [max]=\"max\"\n [isActive]=\"isActive\"\n [activeView]=\"activeView\"\n [bottomView]=\"bottomView\"\n [topView]=\"topView\"\n [weekNumber]=\"weekNumber\"\n [animateNavigation]=\"animateNavigation\"\n [cellTemplate]=\"activeCellTemplate()\"\n [monthCellTemplate]=\"monthCellTemplate\"\n [yearCellTemplate]=\"yearCellTemplate\"\n [decadeCellTemplate]=\"decadeCellTemplate\"\n [centuryCellTemplate]=\"centuryCellTemplate\"\n [headerTitleTemplate]=\"headerTitleTemplate\"\n [weekNumberTemplate]=\"weekNumberTemplate\"\n [focusedDate]=\"focusedDate\"\n [selection]=\"selection\"\n [value]=\"value\"\n [disabledDates]=\"disabledDates\"\n (activeViewChange)=\"handleActiveViewChange($event)\"\n (navigate)=\"handleNavigate($event)\"\n (valueChange)=\"handleMultiViewCalendarValueChange($event, multiviewcalendar.focusedDate)\"\n (focus)=\"handleFocus()\"\n (blur)=\"handleBlur($event)\"\n >\n <kendo-multiviewcalendar-messages\n [today]=\"localization.get('today')\"\n [prevButtonTitle]=\"localization.get('prevButtonTitle')\"\n [nextButtonTitle]=\"localization.get('nextButtonTitle')\"\n >\n </kendo-multiviewcalendar-messages>\n </kendo-multiviewcalendar>\n </ng-container>\n "
1169
+ template: "\n <ng-container kendoCalendarLocalizedMessages\n i18n-today=\"kendo.calendar.today|The label for the today button in the calendar header\"\n today=\"Today\"\n\n i18n-prevButtonTitle=\"kendo.calendar.prevButtonTitle|The title of the previous button in the Classic calendar\"\n prevButtonTitle=\"Navigate to previous view\"\n\n i18n-nextButtonTitle=\"kendo.calendar.nextButtonTitle|The title of the next button in the Classic calendar\"\n nextButtonTitle=\"Navigate to next view\"\n >\n </ng-container>\n <ng-container *ngIf=\"type === 'infinite'\">\n <kendo-calendar-navigation\n *ngIf=\"navigation\"\n [activeView]=\"activeViewEnum\"\n [focusedDate]=\"focusedDate\"\n [min]=\"min\"\n [max]=\"max\"\n [templateRef]=\"navigationItemTemplateRef?.templateRef\"\n (valueChange)=\"handleNavigation($event)\"\n (pageChange)=\"onPageChange()\"\n >\n </kendo-calendar-navigation>\n <kendo-calendar-viewlist\n [activeView]=\"activeViewEnum\"\n [isActive]=\"isActive\"\n [cellTemplateRef]=\"activeCellTemplate()?.templateRef\"\n [headerTitleTemplateRef]=\"headerTitleTemplateRef?.templateRef\"\n [weekNumberTemplateRef]=\"weekNumberTemplateRef?.templateRef\"\n [cellUID]=\"cellUID\"\n [min]=\"min\"\n [max]=\"max\"\n [focusedDate]=\"focusedDate\"\n [weekNumber]=\"weekNumber\"\n [selectedDates]=\"selectedDates\"\n (todayButtonClick)=\"handleDateChange({\n selectedDates: [$event],\n focusedDate: $event\n })\"\n (cellClick)=\"handleCellClick($event)\"\n (weekNumberCellClick)=\"handleWeekNumberClick($event)\"\n (activeDateChange)=\"handleActiveDateChange($event)\"\n (pageChange)=\"onPageChange()\"\n >\n </kendo-calendar-viewlist>\n <kendo-resize-sensor (resize)=\"onResize()\"></kendo-resize-sensor>\n </ng-container>\n <ng-container *ngIf=\"type === 'classic'\">\n <kendo-multiviewcalendar\n #multiviewcalendar\n [views]=\"1\"\n [min]=\"min\"\n [max]=\"max\"\n [isActive]=\"isActive\"\n [activeView]=\"activeView\"\n [bottomView]=\"bottomView\"\n [topView]=\"topView\"\n [weekNumber]=\"weekNumber\"\n [animateNavigation]=\"animateNavigation\"\n [cellTemplate]=\"activeCellTemplate()\"\n [monthCellTemplate]=\"monthCellTemplateRef\"\n [yearCellTemplate]=\"yearCellTemplateRef\"\n [decadeCellTemplate]=\"decadeCellTemplateRef\"\n [centuryCellTemplate]=\"centuryCellTemplateRef\"\n [headerTitleTemplate]=\"headerTitleTemplateRef\"\n [weekNumberTemplate]=\"weekNumberTemplateRef\"\n [focusedDate]=\"focusedDate\"\n [selection]=\"selection\"\n [value]=\"value\"\n [disabledDates]=\"disabledDates\"\n (activeViewChange)=\"handleActiveViewChange($event)\"\n (navigate)=\"handleNavigate($event)\"\n (valueChange)=\"handleMultiViewCalendarValueChange($event, multiviewcalendar.focusedDate)\"\n (focus)=\"handleFocus()\"\n (blur)=\"handleBlur($event)\"\n >\n <kendo-multiviewcalendar-messages\n [today]=\"localization.get('today')\"\n [prevButtonTitle]=\"localization.get('prevButtonTitle')\"\n [nextButtonTitle]=\"localization.get('nextButtonTitle')\"\n >\n </kendo-multiviewcalendar-messages>\n </kendo-multiviewcalendar>\n </ng-container>\n "
1122
1170
  }),
1123
1171
  tslib_1.__param(12, Optional()),
1124
1172
  tslib_1.__metadata("design:paramtypes", [BusViewService,
@@ -325,71 +325,113 @@ var MultiViewCalendarComponent = /** @class */ (function () {
325
325
  configurable: true
326
326
  });
327
327
  Object.defineProperty(MultiViewCalendarComponent.prototype, "cellTemplateRef", {
328
+ get: function () {
329
+ return this._cellTemplateRef || this.cellTemplate;
330
+ },
328
331
  /**
329
332
  * @hidden
333
+ *
334
+ * Defines the template for each cell.
335
+ * Takes precedence over nested templates in the KendoMultiViewCalendar tag.
330
336
  */
331
337
  set: function (template) {
332
- this.cellTemplate = template;
338
+ this._cellTemplateRef = template;
333
339
  },
334
340
  enumerable: true,
335
341
  configurable: true
336
342
  });
337
343
  Object.defineProperty(MultiViewCalendarComponent.prototype, "monthCellTemplateRef", {
344
+ get: function () {
345
+ return this._monthCellTemplateRef || this.monthCellTemplate;
346
+ },
338
347
  /**
339
348
  * @hidden
349
+ *
350
+ * Defines the template for each month cell.
351
+ * Takes precedence over nested templates in the KendoMultiViewCalendar tag.
340
352
  */
341
353
  set: function (template) {
342
- this.monthCellTemplate = template;
354
+ this._monthCellTemplateRef = template;
343
355
  },
344
356
  enumerable: true,
345
357
  configurable: true
346
358
  });
347
359
  Object.defineProperty(MultiViewCalendarComponent.prototype, "yearCellTemplateRef", {
360
+ get: function () {
361
+ return this._yearCellTemplateRef || this.yearCellTemplate;
362
+ },
348
363
  /**
349
364
  * @hidden
365
+ *
366
+ * Defines the template for each year cell.
367
+ * Takes precedence over nested templates in the KendoMultiViewCalendar tag.
350
368
  */
351
369
  set: function (template) {
352
- this.yearCellTemplate = template;
370
+ this._yearCellTemplateRef = template;
353
371
  },
354
372
  enumerable: true,
355
373
  configurable: true
356
374
  });
357
375
  Object.defineProperty(MultiViewCalendarComponent.prototype, "decadeCellTemplateRef", {
376
+ get: function () {
377
+ return this._decadeCellTemplateRef || this.decadeCellTemplate;
378
+ },
358
379
  /**
359
380
  * @hidden
381
+ *
382
+ * Defines the template for each decade cell.
383
+ * Takes precedence over nested templates in the KendoMultiViewCalendar tag.
360
384
  */
361
385
  set: function (template) {
362
- this.decadeCellTemplate = template;
386
+ this._decadeCellTemplateRef = template;
363
387
  },
364
388
  enumerable: true,
365
389
  configurable: true
366
390
  });
367
391
  Object.defineProperty(MultiViewCalendarComponent.prototype, "centuryCellTemplateRef", {
392
+ get: function () {
393
+ return this._centuryCellTemplateRef || this.centuryCellTemplate;
394
+ },
368
395
  /**
369
396
  * @hidden
397
+ *
398
+ * Defines the template for each century cell.
399
+ * Takes precedence over nested templates in the KendoMultiViewCalendar tag.
370
400
  */
371
401
  set: function (template) {
372
- this.centuryCellTemplate = template;
402
+ this._centuryCellTemplateRef = template;
373
403
  },
374
404
  enumerable: true,
375
405
  configurable: true
376
406
  });
377
407
  Object.defineProperty(MultiViewCalendarComponent.prototype, "weekNumberTemplateRef", {
408
+ get: function () {
409
+ return this._weekNumberTemplateRef || this.weekNumberTemplate;
410
+ },
378
411
  /**
379
412
  * @hidden
413
+ *
414
+ * Defines the template for the week cell.
415
+ * Takes precedence over nested templates in the KendoMultiViewCalendar tag.
380
416
  */
381
417
  set: function (template) {
382
- this.weekNumberTemplate = template;
418
+ this._weekNumberTemplateRef = template;
383
419
  },
384
420
  enumerable: true,
385
421
  configurable: true
386
422
  });
387
423
  Object.defineProperty(MultiViewCalendarComponent.prototype, "headerTitleTemplateRef", {
424
+ get: function () {
425
+ return this._headerTitleTemplateRef || this.headerTitleTemplate;
426
+ },
388
427
  /**
389
428
  * @hidden
429
+ *
430
+ * Defines the template for the header title.
431
+ * Takes precedence over nested templates in the KendoMultiViewCalendar tag.
390
432
  */
391
433
  set: function (template) {
392
- this.headerTitleTemplate = template;
434
+ this._headerTitleTemplateRef = template;
393
435
  },
394
436
  enumerable: true,
395
437
  configurable: true
@@ -672,13 +714,13 @@ var MultiViewCalendarComponent = /** @class */ (function () {
672
714
  MultiViewCalendarComponent.prototype.activeCellTemplate = function () {
673
715
  switch (this.activeViewEnum) {
674
716
  case CalendarViewEnum.month:
675
- return this.monthCellTemplate || this.cellTemplate;
717
+ return this.monthCellTemplateRef || this.cellTemplateRef;
676
718
  case CalendarViewEnum.year:
677
- return this.yearCellTemplate;
719
+ return this.yearCellTemplateRef;
678
720
  case CalendarViewEnum.decade:
679
- return this.decadeCellTemplate;
721
+ return this.decadeCellTemplateRef;
680
722
  case CalendarViewEnum.century:
681
- return this.centuryCellTemplate;
723
+ return this.centuryCellTemplateRef;
682
724
  default:
683
725
  return null;
684
726
  }
@@ -911,7 +953,7 @@ var MultiViewCalendarComponent = /** @class */ (function () {
911
953
  tslib_1.__metadata("design:type", EventEmitter)
912
954
  ], MultiViewCalendarComponent.prototype, "blurEvent", void 0);
913
955
  tslib_1.__decorate([
914
- ContentChild(CellTemplateDirective, { static: true }),
956
+ ContentChild(CellTemplateDirective, { static: false }),
915
957
  tslib_1.__metadata("design:type", CellTemplateDirective)
916
958
  ], MultiViewCalendarComponent.prototype, "cellTemplate", void 0);
917
959
  tslib_1.__decorate([
@@ -920,7 +962,7 @@ var MultiViewCalendarComponent = /** @class */ (function () {
920
962
  tslib_1.__metadata("design:paramtypes", [CellTemplateDirective])
921
963
  ], MultiViewCalendarComponent.prototype, "cellTemplateRef", null);
922
964
  tslib_1.__decorate([
923
- ContentChild(MonthCellTemplateDirective, { static: true }),
965
+ ContentChild(MonthCellTemplateDirective, { static: false }),
924
966
  tslib_1.__metadata("design:type", MonthCellTemplateDirective)
925
967
  ], MultiViewCalendarComponent.prototype, "monthCellTemplate", void 0);
926
968
  tslib_1.__decorate([
@@ -929,7 +971,7 @@ var MultiViewCalendarComponent = /** @class */ (function () {
929
971
  tslib_1.__metadata("design:paramtypes", [MonthCellTemplateDirective])
930
972
  ], MultiViewCalendarComponent.prototype, "monthCellTemplateRef", null);
931
973
  tslib_1.__decorate([
932
- ContentChild(YearCellTemplateDirective, { static: true }),
974
+ ContentChild(YearCellTemplateDirective, { static: false }),
933
975
  tslib_1.__metadata("design:type", YearCellTemplateDirective)
934
976
  ], MultiViewCalendarComponent.prototype, "yearCellTemplate", void 0);
935
977
  tslib_1.__decorate([
@@ -938,7 +980,7 @@ var MultiViewCalendarComponent = /** @class */ (function () {
938
980
  tslib_1.__metadata("design:paramtypes", [YearCellTemplateDirective])
939
981
  ], MultiViewCalendarComponent.prototype, "yearCellTemplateRef", null);
940
982
  tslib_1.__decorate([
941
- ContentChild(DecadeCellTemplateDirective, { static: true }),
983
+ ContentChild(DecadeCellTemplateDirective, { static: false }),
942
984
  tslib_1.__metadata("design:type", DecadeCellTemplateDirective)
943
985
  ], MultiViewCalendarComponent.prototype, "decadeCellTemplate", void 0);
944
986
  tslib_1.__decorate([
@@ -947,7 +989,7 @@ var MultiViewCalendarComponent = /** @class */ (function () {
947
989
  tslib_1.__metadata("design:paramtypes", [DecadeCellTemplateDirective])
948
990
  ], MultiViewCalendarComponent.prototype, "decadeCellTemplateRef", null);
949
991
  tslib_1.__decorate([
950
- ContentChild(CenturyCellTemplateDirective, { static: true }),
992
+ ContentChild(CenturyCellTemplateDirective, { static: false }),
951
993
  tslib_1.__metadata("design:type", CenturyCellTemplateDirective)
952
994
  ], MultiViewCalendarComponent.prototype, "centuryCellTemplate", void 0);
953
995
  tslib_1.__decorate([
@@ -956,7 +998,7 @@ var MultiViewCalendarComponent = /** @class */ (function () {
956
998
  tslib_1.__metadata("design:paramtypes", [CenturyCellTemplateDirective])
957
999
  ], MultiViewCalendarComponent.prototype, "centuryCellTemplateRef", null);
958
1000
  tslib_1.__decorate([
959
- ContentChild(WeekNumberCellTemplateDirective, { static: true }),
1001
+ ContentChild(WeekNumberCellTemplateDirective, { static: false }),
960
1002
  tslib_1.__metadata("design:type", WeekNumberCellTemplateDirective)
961
1003
  ], MultiViewCalendarComponent.prototype, "weekNumberTemplate", void 0);
962
1004
  tslib_1.__decorate([
@@ -965,7 +1007,7 @@ var MultiViewCalendarComponent = /** @class */ (function () {
965
1007
  tslib_1.__metadata("design:paramtypes", [WeekNumberCellTemplateDirective])
966
1008
  ], MultiViewCalendarComponent.prototype, "weekNumberTemplateRef", null);
967
1009
  tslib_1.__decorate([
968
- ContentChild(HeaderTitleTemplateDirective, { static: true }),
1010
+ ContentChild(HeaderTitleTemplateDirective, { static: false }),
969
1011
  tslib_1.__metadata("design:type", HeaderTitleTemplateDirective)
970
1012
  ], MultiViewCalendarComponent.prototype, "headerTitleTemplate", void 0);
971
1013
  tslib_1.__decorate([
@@ -1062,7 +1104,7 @@ var MultiViewCalendarComponent = /** @class */ (function () {
1062
1104
  SelectionService
1063
1105
  ],
1064
1106
  selector: 'kendo-multiviewcalendar',
1065
- template: "\n <ng-container kendoMultiViewCalendarLocalizedMessages\n i18n-today=\"kendo.multiviewcalendar.today|The label for the today button in the calendar header\"\n today=\"Today\"\n\n i18n-prevButtonTitle=\"kendo.multiviewcalendar.prevButtonTitle|The label for the previous button in the Multiview calendar\"\n prevButtonTitle=\"Navigate to previous view\"\n\n i18n-nextButtonTitle=\"kendo.multiviewcalendar.nextButtonTitle|The label for the next button in the Multiview calendar\"\n nextButtonTitle=\"Navigate to next view\"\n >\n </ng-container>\n <kendo-calendar-header\n [activeView]=\"activeViewEnum\"\n [currentDate]=\"activeDate\"\n [min]=\"min\"\n [max]=\"max\"\n [rangeLength]=\"views\"\n [templateRef]=\"headerTitleTemplate?.templateRef\"\n [isPrevDisabled]=\"isPrevDisabled\"\n [isNextDisabled]=\"isNextDisabled\"\n [showNavigationButtons]=\"true\"\n (todayButtonClick)=\"handleTodayButtonClick({ selectedDates: [$event], focusedDate: $event })\"\n (prevButtonClick)=\"navigateView(prevView)\"\n (nextButtonClick)=\"navigateView(nextView)\"\n [kendoEventsOutsideAngular]=\"{\n focusin: handleHeaderFocus\n }\"\n [scope]=\"this\"\n >\n </kendo-calendar-header>\n <kendo-calendar-horizontal\n [activeView]=\"activeViewEnum\"\n [isActive]=\"isActive || (isHovered && !isHeaderActive)\"\n [cellTemplateRef]=\"activeCellTemplate()?.templateRef\"\n [weekNumberTemplateRef]=\"weekNumberTemplate?.templateRef\"\n [cellUID]=\"cellUID\"\n [views]=\"views\"\n [min]=\"min\"\n [max]=\"max\"\n [focusedDate]=\"focusedDate\"\n [animateNavigation]=\"animateNavigation\"\n [showViewHeader]=\"showViewHeader\"\n [weekNumber]=\"weekNumber\"\n [activeRangeEnd]=\"activeRangeEnd\"\n [selectionRange]=\"selectionRange\"\n [selectedDates]=\"selectedDates\"\n (valueChange)=\"handleDateChange($event)\"\n (cellClick)=\"handleCellClick($event)\"\n (weekNumberCellClick)=\"handleWeekNumberClick($event)\"\n (cellEnter)=\"emitCellEvent(cellEnter, $event)\"\n (cellLeave)=\"emitCellEvent(cellLeave, $event)\"\n (activeDateChange)=\"setActiveDate($event)\"\n >\n </kendo-calendar-horizontal>\n "
1107
+ template: "\n <ng-container kendoMultiViewCalendarLocalizedMessages\n i18n-today=\"kendo.multiviewcalendar.today|The label for the today button in the calendar header\"\n today=\"Today\"\n\n i18n-prevButtonTitle=\"kendo.multiviewcalendar.prevButtonTitle|The label for the previous button in the Multiview calendar\"\n prevButtonTitle=\"Navigate to previous view\"\n\n i18n-nextButtonTitle=\"kendo.multiviewcalendar.nextButtonTitle|The label for the next button in the Multiview calendar\"\n nextButtonTitle=\"Navigate to next view\"\n >\n </ng-container>\n <kendo-calendar-header\n [activeView]=\"activeViewEnum\"\n [currentDate]=\"activeDate\"\n [min]=\"min\"\n [max]=\"max\"\n [rangeLength]=\"views\"\n [templateRef]=\"headerTitleTemplateRef?.templateRef\"\n [isPrevDisabled]=\"isPrevDisabled\"\n [isNextDisabled]=\"isNextDisabled\"\n [showNavigationButtons]=\"true\"\n (todayButtonClick)=\"handleTodayButtonClick({ selectedDates: [$event], focusedDate: $event })\"\n (prevButtonClick)=\"navigateView(prevView)\"\n (nextButtonClick)=\"navigateView(nextView)\"\n [kendoEventsOutsideAngular]=\"{\n focusin: handleHeaderFocus\n }\"\n [scope]=\"this\"\n >\n </kendo-calendar-header>\n <kendo-calendar-horizontal\n [activeView]=\"activeViewEnum\"\n [isActive]=\"isActive || (isHovered && !isHeaderActive)\"\n [cellTemplateRef]=\"activeCellTemplate()?.templateRef\"\n [weekNumberTemplateRef]=\"weekNumberTemplateRef?.templateRef\"\n [cellUID]=\"cellUID\"\n [views]=\"views\"\n [min]=\"min\"\n [max]=\"max\"\n [focusedDate]=\"focusedDate\"\n [animateNavigation]=\"animateNavigation\"\n [showViewHeader]=\"showViewHeader\"\n [weekNumber]=\"weekNumber\"\n [activeRangeEnd]=\"activeRangeEnd\"\n [selectionRange]=\"selectionRange\"\n [selectedDates]=\"selectedDates\"\n (valueChange)=\"handleDateChange($event)\"\n (cellClick)=\"handleCellClick($event)\"\n (weekNumberCellClick)=\"handleWeekNumberClick($event)\"\n (cellEnter)=\"emitCellEvent(cellEnter, $event)\"\n (cellLeave)=\"emitCellEvent(cellLeave, $event)\"\n (activeDateChange)=\"setActiveDate($event)\"\n >\n </kendo-calendar-horizontal>\n "
1066
1108
  }),
1067
1109
  tslib_1.__param(8, Optional()),
1068
1110
  tslib_1.__metadata("design:paramtypes", [BusViewService,
@@ -9,7 +9,7 @@ export var packageMetadata = {
9
9
  name: '@progress/kendo-angular-dateinputs',
10
10
  productName: 'Kendo UI for Angular',
11
11
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
12
- publishDate: 1646217089,
12
+ publishDate: 1647358649,
13
13
  version: '',
14
14
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
15
15
  };
@@ -210,66 +210,114 @@ export declare class CalendarComponent implements ControlValueAccessor, OnChange
210
210
  valueChange: EventEmitter<any>;
211
211
  /**
212
212
  * @hidden
213
+ *
214
+ * Queries the template for a cell template declaration.
215
+ * Ignored if a `[cellTemplate]` value is explicitly provided.
213
216
  */
214
217
  cellTemplate: CellTemplateDirective;
215
218
  /**
216
219
  * @hidden
220
+ *
221
+ * Defines the template for each cell.
222
+ * Takes precedence over nested templates in the KendoCalendar tag.
217
223
  */
218
224
  cellTemplateRef: CellTemplateDirective;
219
225
  /**
220
226
  * @hidden
227
+ *
228
+ * Queries the template for a month cell template declaration.
229
+ * Ignored if a `[monthCellTemplate]` value is explicitly provided.
221
230
  */
222
231
  monthCellTemplate: MonthCellTemplateDirective;
223
232
  /**
224
233
  * @hidden
234
+ *
235
+ * Defines the template for each month cell.
236
+ * Takes precedence over nested templates in the KendoCalendar tag.
225
237
  */
226
238
  monthCellTemplateRef: MonthCellTemplateDirective;
227
239
  /**
228
240
  * @hidden
241
+ *
242
+ * Queries the template for a year cell template declaration.
243
+ * Ignored if a `[yearCellTemplate]` value is explicitly provided.
229
244
  */
230
245
  yearCellTemplate: YearCellTemplateDirective;
231
246
  /**
232
247
  * @hidden
248
+ *
249
+ * Defines the template for each year cell.
250
+ * Takes precedence over nested templates in the KendoCalendar tag.
233
251
  */
234
252
  yearCellTemplateRef: YearCellTemplateDirective;
235
253
  /**
236
254
  * @hidden
255
+ *
256
+ * Queries the template for a decade cell template declaration.
257
+ * Ignored if a `[decadeCellTemplate]` value is explicitly provided.
237
258
  */
238
259
  decadeCellTemplate: DecadeCellTemplateDirective;
239
260
  /**
240
261
  * @hidden
262
+ *
263
+ * Defines the template for each decade cell.
264
+ * Takes precedence over nested templates in the KendoCalendar tag.
241
265
  */
242
266
  decadeCellTemplateRef: DecadeCellTemplateDirective;
243
267
  /**
244
268
  * @hidden
269
+ *
270
+ * Queries the template for a century cell template declaration.
271
+ * Ignored if a `[centuryCellTemplate]` value is explicitly provided.
245
272
  */
246
273
  centuryCellTemplate: CenturyCellTemplateDirective;
247
274
  /**
248
275
  * @hidden
276
+ *
277
+ * Defines the template for each century cell.
278
+ * Takes precedence over nested templates in the KendoCalendar tag.
249
279
  */
250
280
  centuryCellTemplateRef: CenturyCellTemplateDirective;
251
281
  /**
252
282
  * @hidden
283
+ *
284
+ * Queries the template for a week number cell template declaration.
285
+ * Ignored if a `[weekNumberTemplate]` value is explicitly provided.
253
286
  */
254
287
  weekNumberTemplate: WeekNumberCellTemplateDirective;
255
288
  /**
256
289
  * @hidden
290
+ *
291
+ * Defines the template for the week cell.
292
+ * Takes precedence over nested templates in the KendoCalendar tag.
257
293
  */
258
294
  weekNumberTemplateRef: WeekNumberCellTemplateDirective;
259
295
  /**
260
296
  * @hidden
297
+ *
298
+ * Queries the template for a header title template declaration.
299
+ * Ignored if a `[headerTitleTemplate]` value is explicitly provided.
261
300
  */
262
301
  headerTitleTemplate: HeaderTitleTemplateDirective;
263
302
  /**
264
303
  * @hidden
304
+ *
305
+ * Defines the template for the header title.
306
+ * Takes precedence over nested templates in the KendoCalendar tag.
265
307
  */
266
308
  headerTitleTemplateRef: HeaderTitleTemplateDirective;
267
309
  /**
268
310
  * @hidden
311
+ *
312
+ * Queries the template for a navigation item template declaration.
313
+ * Ignored if a `[navigationItemTemplate]` value is explicitly provided.
269
314
  */
270
315
  navigationItemTemplate: NavigationItemTemplateDirective;
271
316
  /**
272
317
  * @hidden
318
+ *
319
+ * Defines the template for the navigation item.
320
+ * Takes precedence over nested templates in the KendoCalendar tag.
273
321
  */
274
322
  navigationItemTemplateRef: NavigationItemTemplateDirective;
275
323
  navigationView: NavigationComponent;
@@ -292,6 +340,14 @@ export declare class CalendarComponent implements ControlValueAccessor, OnChange
292
340
  private syncNavigation;
293
341
  private viewChangeSubscription;
294
342
  private _type;
343
+ private _cellTemplateRef;
344
+ private _monthCellTemplateRef;
345
+ private _yearCellTemplateRef;
346
+ private _decadeCellTemplateRef;
347
+ private _centuryCellTemplateRef;
348
+ private _weekNumberTemplateRef;
349
+ private _headerTitleTemplateRef;
350
+ private _navigationItemTemplateRef;
295
351
  readonly activeViewEnum: CalendarViewEnum;
296
352
  readonly bottomViewEnum: CalendarViewEnum;
297
353
  readonly topViewEnum: CalendarViewEnum;