@progress/kendo-angular-dateinputs 6.0.2-dev.202202251356 → 6.0.3-dev.202203150818

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.
@@ -344,81 +344,129 @@ var CalendarComponent = /** @class */ (function () {
344
344
  configurable: true
345
345
  });
346
346
  Object.defineProperty(CalendarComponent.prototype, "cellTemplateRef", {
347
+ get: function () {
348
+ return this._cellTemplateRef || this.cellTemplate;
349
+ },
347
350
  /**
348
351
  * @hidden
352
+ *
353
+ * Defines the template for each cell.
354
+ * Takes precedence over nested templates in the KendoCalendar tag.
349
355
  */
350
356
  set: function (template) {
351
- this.cellTemplate = template;
357
+ this._cellTemplateRef = template;
352
358
  },
353
359
  enumerable: true,
354
360
  configurable: true
355
361
  });
356
362
  Object.defineProperty(CalendarComponent.prototype, "monthCellTemplateRef", {
363
+ get: function () {
364
+ return this._monthCellTemplateRef || this.monthCellTemplate;
365
+ },
357
366
  /**
358
367
  * @hidden
368
+ *
369
+ * Defines the template for each month cell.
370
+ * Takes precedence over nested templates in the KendoCalendar tag.
359
371
  */
360
372
  set: function (template) {
361
- this.monthCellTemplate = template;
373
+ this._monthCellTemplateRef = template;
362
374
  },
363
375
  enumerable: true,
364
376
  configurable: true
365
377
  });
366
378
  Object.defineProperty(CalendarComponent.prototype, "yearCellTemplateRef", {
379
+ get: function () {
380
+ return this._yearCellTemplateRef || this.yearCellTemplate;
381
+ },
367
382
  /**
368
383
  * @hidden
384
+ *
385
+ * Defines the template for each year cell.
386
+ * Takes precedence over nested templates in the KendoCalendar tag.
369
387
  */
370
388
  set: function (template) {
371
- this.yearCellTemplate = template;
389
+ this._yearCellTemplateRef = template;
372
390
  },
373
391
  enumerable: true,
374
392
  configurable: true
375
393
  });
376
394
  Object.defineProperty(CalendarComponent.prototype, "decadeCellTemplateRef", {
395
+ get: function () {
396
+ return this._decadeCellTemplateRef || this.decadeCellTemplate;
397
+ },
377
398
  /**
378
399
  * @hidden
400
+ *
401
+ * Defines the template for each decade cell.
402
+ * Takes precedence over nested templates in the KendoCalendar tag.
379
403
  */
380
404
  set: function (template) {
381
- this.decadeCellTemplate = template;
405
+ this._decadeCellTemplateRef = template;
382
406
  },
383
407
  enumerable: true,
384
408
  configurable: true
385
409
  });
386
410
  Object.defineProperty(CalendarComponent.prototype, "centuryCellTemplateRef", {
411
+ get: function () {
412
+ return this._centuryCellTemplateRef || this.centuryCellTemplate;
413
+ },
387
414
  /**
388
415
  * @hidden
416
+ *
417
+ * Defines the template for each century cell.
418
+ * Takes precedence over nested templates in the KendoCalendar tag.
389
419
  */
390
420
  set: function (template) {
391
- this.centuryCellTemplate = template;
421
+ this._centuryCellTemplateRef = template;
392
422
  },
393
423
  enumerable: true,
394
424
  configurable: true
395
425
  });
396
426
  Object.defineProperty(CalendarComponent.prototype, "weekNumberTemplateRef", {
427
+ get: function () {
428
+ return this._weekNumberTemplateRef || this.weekNumberTemplate;
429
+ },
397
430
  /**
398
431
  * @hidden
432
+ *
433
+ * Defines the template for the week cell.
434
+ * Takes precedence over nested templates in the KendoCalendar tag.
399
435
  */
400
436
  set: function (template) {
401
- this.weekNumberTemplate = template;
437
+ this._weekNumberTemplateRef = template;
402
438
  },
403
439
  enumerable: true,
404
440
  configurable: true
405
441
  });
406
442
  Object.defineProperty(CalendarComponent.prototype, "headerTitleTemplateRef", {
443
+ get: function () {
444
+ return this._headerTitleTemplateRef || this.headerTitleTemplate;
445
+ },
407
446
  /**
408
447
  * @hidden
448
+ *
449
+ * Defines the template for the header title.
450
+ * Takes precedence over nested templates in the KendoCalendar tag.
409
451
  */
410
452
  set: function (template) {
411
- this.headerTitleTemplate = template;
453
+ this._headerTitleTemplateRef = template;
412
454
  },
413
455
  enumerable: true,
414
456
  configurable: true
415
457
  });
416
458
  Object.defineProperty(CalendarComponent.prototype, "navigationItemTemplateRef", {
459
+ get: function () {
460
+ return this._navigationItemTemplateRef || this.navigationItemTemplate;
461
+ },
417
462
  /**
418
463
  * @hidden
464
+ *
465
+ * Defines the template for the navigation item.
466
+ * Takes precedence over nested templates in the KendoCalendar tag.
419
467
  */
420
468
  set: function (template) {
421
- this.navigationItemTemplate = template;
469
+ this._navigationItemTemplateRef = template;
422
470
  },
423
471
  enumerable: true,
424
472
  configurable: true
@@ -685,13 +733,13 @@ var CalendarComponent = /** @class */ (function () {
685
733
  CalendarComponent.prototype.activeCellTemplate = function () {
686
734
  switch (this.activeViewEnum) {
687
735
  case view_enum_1.CalendarViewEnum.month:
688
- return this.monthCellTemplate || this.cellTemplate;
736
+ return this.monthCellTemplateRef || this.cellTemplateRef;
689
737
  case view_enum_1.CalendarViewEnum.year:
690
- return this.yearCellTemplate;
738
+ return this.yearCellTemplateRef;
691
739
  case view_enum_1.CalendarViewEnum.decade:
692
- return this.decadeCellTemplate;
740
+ return this.decadeCellTemplateRef;
693
741
  case view_enum_1.CalendarViewEnum.century:
694
- return this.centuryCellTemplate;
742
+ return this.centuryCellTemplateRef;
695
743
  default:
696
744
  return null;
697
745
  }
@@ -1002,7 +1050,7 @@ var CalendarComponent = /** @class */ (function () {
1002
1050
  tslib_1.__metadata("design:type", core_1.EventEmitter)
1003
1051
  ], CalendarComponent.prototype, "valueChange", void 0);
1004
1052
  tslib_1.__decorate([
1005
- core_1.ContentChild(cell_template_directive_1.CellTemplateDirective, { static: true }),
1053
+ core_1.ContentChild(cell_template_directive_1.CellTemplateDirective, { static: false }),
1006
1054
  tslib_1.__metadata("design:type", cell_template_directive_1.CellTemplateDirective)
1007
1055
  ], CalendarComponent.prototype, "cellTemplate", void 0);
1008
1056
  tslib_1.__decorate([
@@ -1011,7 +1059,7 @@ var CalendarComponent = /** @class */ (function () {
1011
1059
  tslib_1.__metadata("design:paramtypes", [cell_template_directive_1.CellTemplateDirective])
1012
1060
  ], CalendarComponent.prototype, "cellTemplateRef", null);
1013
1061
  tslib_1.__decorate([
1014
- core_1.ContentChild(month_cell_template_directive_1.MonthCellTemplateDirective, { static: true }),
1062
+ core_1.ContentChild(month_cell_template_directive_1.MonthCellTemplateDirective, { static: false }),
1015
1063
  tslib_1.__metadata("design:type", month_cell_template_directive_1.MonthCellTemplateDirective)
1016
1064
  ], CalendarComponent.prototype, "monthCellTemplate", void 0);
1017
1065
  tslib_1.__decorate([
@@ -1020,7 +1068,7 @@ var CalendarComponent = /** @class */ (function () {
1020
1068
  tslib_1.__metadata("design:paramtypes", [month_cell_template_directive_1.MonthCellTemplateDirective])
1021
1069
  ], CalendarComponent.prototype, "monthCellTemplateRef", null);
1022
1070
  tslib_1.__decorate([
1023
- core_1.ContentChild(year_cell_template_directive_1.YearCellTemplateDirective, { static: true }),
1071
+ core_1.ContentChild(year_cell_template_directive_1.YearCellTemplateDirective, { static: false }),
1024
1072
  tslib_1.__metadata("design:type", year_cell_template_directive_1.YearCellTemplateDirective)
1025
1073
  ], CalendarComponent.prototype, "yearCellTemplate", void 0);
1026
1074
  tslib_1.__decorate([
@@ -1029,7 +1077,7 @@ var CalendarComponent = /** @class */ (function () {
1029
1077
  tslib_1.__metadata("design:paramtypes", [year_cell_template_directive_1.YearCellTemplateDirective])
1030
1078
  ], CalendarComponent.prototype, "yearCellTemplateRef", null);
1031
1079
  tslib_1.__decorate([
1032
- core_1.ContentChild(decade_cell_template_directive_1.DecadeCellTemplateDirective, { static: true }),
1080
+ core_1.ContentChild(decade_cell_template_directive_1.DecadeCellTemplateDirective, { static: false }),
1033
1081
  tslib_1.__metadata("design:type", decade_cell_template_directive_1.DecadeCellTemplateDirective)
1034
1082
  ], CalendarComponent.prototype, "decadeCellTemplate", void 0);
1035
1083
  tslib_1.__decorate([
@@ -1038,7 +1086,7 @@ var CalendarComponent = /** @class */ (function () {
1038
1086
  tslib_1.__metadata("design:paramtypes", [decade_cell_template_directive_1.DecadeCellTemplateDirective])
1039
1087
  ], CalendarComponent.prototype, "decadeCellTemplateRef", null);
1040
1088
  tslib_1.__decorate([
1041
- core_1.ContentChild(century_cell_template_directive_1.CenturyCellTemplateDirective, { static: true }),
1089
+ core_1.ContentChild(century_cell_template_directive_1.CenturyCellTemplateDirective, { static: false }),
1042
1090
  tslib_1.__metadata("design:type", century_cell_template_directive_1.CenturyCellTemplateDirective)
1043
1091
  ], CalendarComponent.prototype, "centuryCellTemplate", void 0);
1044
1092
  tslib_1.__decorate([
@@ -1047,7 +1095,7 @@ var CalendarComponent = /** @class */ (function () {
1047
1095
  tslib_1.__metadata("design:paramtypes", [century_cell_template_directive_1.CenturyCellTemplateDirective])
1048
1096
  ], CalendarComponent.prototype, "centuryCellTemplateRef", null);
1049
1097
  tslib_1.__decorate([
1050
- core_1.ContentChild(weeknumber_cell_template_directive_1.WeekNumberCellTemplateDirective, { static: true }),
1098
+ core_1.ContentChild(weeknumber_cell_template_directive_1.WeekNumberCellTemplateDirective, { static: false }),
1051
1099
  tslib_1.__metadata("design:type", weeknumber_cell_template_directive_1.WeekNumberCellTemplateDirective)
1052
1100
  ], CalendarComponent.prototype, "weekNumberTemplate", void 0);
1053
1101
  tslib_1.__decorate([
@@ -1056,7 +1104,7 @@ var CalendarComponent = /** @class */ (function () {
1056
1104
  tslib_1.__metadata("design:paramtypes", [weeknumber_cell_template_directive_1.WeekNumberCellTemplateDirective])
1057
1105
  ], CalendarComponent.prototype, "weekNumberTemplateRef", null);
1058
1106
  tslib_1.__decorate([
1059
- core_1.ContentChild(header_title_template_directive_1.HeaderTitleTemplateDirective, { static: true }),
1107
+ core_1.ContentChild(header_title_template_directive_1.HeaderTitleTemplateDirective, { static: false }),
1060
1108
  tslib_1.__metadata("design:type", header_title_template_directive_1.HeaderTitleTemplateDirective)
1061
1109
  ], CalendarComponent.prototype, "headerTitleTemplate", void 0);
1062
1110
  tslib_1.__decorate([
@@ -1065,7 +1113,7 @@ var CalendarComponent = /** @class */ (function () {
1065
1113
  tslib_1.__metadata("design:paramtypes", [header_title_template_directive_1.HeaderTitleTemplateDirective])
1066
1114
  ], CalendarComponent.prototype, "headerTitleTemplateRef", null);
1067
1115
  tslib_1.__decorate([
1068
- core_1.ContentChild(navigation_item_template_directive_1.NavigationItemTemplateDirective, { static: true }),
1116
+ core_1.ContentChild(navigation_item_template_directive_1.NavigationItemTemplateDirective, { static: false }),
1069
1117
  tslib_1.__metadata("design:type", navigation_item_template_directive_1.NavigationItemTemplateDirective)
1070
1118
  ], CalendarComponent.prototype, "navigationItemTemplate", void 0);
1071
1119
  tslib_1.__decorate([
@@ -1121,7 +1169,7 @@ var CalendarComponent = /** @class */ (function () {
1121
1169
  selection_service_1.SelectionService
1122
1170
  ],
1123
1171
  selector: 'kendo-calendar',
1124
- 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 "
1172
+ 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 "
1125
1173
  }),
1126
1174
  tslib_1.__param(12, core_1.Optional()),
1127
1175
  tslib_1.__metadata("design:paramtypes", [bus_view_service_1.BusViewService,
@@ -327,71 +327,113 @@ var MultiViewCalendarComponent = /** @class */ (function () {
327
327
  configurable: true
328
328
  });
329
329
  Object.defineProperty(MultiViewCalendarComponent.prototype, "cellTemplateRef", {
330
+ get: function () {
331
+ return this._cellTemplateRef || this.cellTemplate;
332
+ },
330
333
  /**
331
334
  * @hidden
335
+ *
336
+ * Defines the template for each cell.
337
+ * Takes precedence over nested templates in the KendoMultiViewCalendar tag.
332
338
  */
333
339
  set: function (template) {
334
- this.cellTemplate = template;
340
+ this._cellTemplateRef = template;
335
341
  },
336
342
  enumerable: true,
337
343
  configurable: true
338
344
  });
339
345
  Object.defineProperty(MultiViewCalendarComponent.prototype, "monthCellTemplateRef", {
346
+ get: function () {
347
+ return this._monthCellTemplateRef || this.monthCellTemplate;
348
+ },
340
349
  /**
341
350
  * @hidden
351
+ *
352
+ * Defines the template for each month cell.
353
+ * Takes precedence over nested templates in the KendoMultiViewCalendar tag.
342
354
  */
343
355
  set: function (template) {
344
- this.monthCellTemplate = template;
356
+ this._monthCellTemplateRef = template;
345
357
  },
346
358
  enumerable: true,
347
359
  configurable: true
348
360
  });
349
361
  Object.defineProperty(MultiViewCalendarComponent.prototype, "yearCellTemplateRef", {
362
+ get: function () {
363
+ return this._yearCellTemplateRef || this.yearCellTemplate;
364
+ },
350
365
  /**
351
366
  * @hidden
367
+ *
368
+ * Defines the template for each year cell.
369
+ * Takes precedence over nested templates in the KendoMultiViewCalendar tag.
352
370
  */
353
371
  set: function (template) {
354
- this.yearCellTemplate = template;
372
+ this._yearCellTemplateRef = template;
355
373
  },
356
374
  enumerable: true,
357
375
  configurable: true
358
376
  });
359
377
  Object.defineProperty(MultiViewCalendarComponent.prototype, "decadeCellTemplateRef", {
378
+ get: function () {
379
+ return this._decadeCellTemplateRef || this.decadeCellTemplate;
380
+ },
360
381
  /**
361
382
  * @hidden
383
+ *
384
+ * Defines the template for each decade cell.
385
+ * Takes precedence over nested templates in the KendoMultiViewCalendar tag.
362
386
  */
363
387
  set: function (template) {
364
- this.decadeCellTemplate = template;
388
+ this._decadeCellTemplateRef = template;
365
389
  },
366
390
  enumerable: true,
367
391
  configurable: true
368
392
  });
369
393
  Object.defineProperty(MultiViewCalendarComponent.prototype, "centuryCellTemplateRef", {
394
+ get: function () {
395
+ return this._centuryCellTemplateRef || this.centuryCellTemplate;
396
+ },
370
397
  /**
371
398
  * @hidden
399
+ *
400
+ * Defines the template for each century cell.
401
+ * Takes precedence over nested templates in the KendoMultiViewCalendar tag.
372
402
  */
373
403
  set: function (template) {
374
- this.centuryCellTemplate = template;
404
+ this._centuryCellTemplateRef = template;
375
405
  },
376
406
  enumerable: true,
377
407
  configurable: true
378
408
  });
379
409
  Object.defineProperty(MultiViewCalendarComponent.prototype, "weekNumberTemplateRef", {
410
+ get: function () {
411
+ return this._weekNumberTemplateRef || this.weekNumberTemplate;
412
+ },
380
413
  /**
381
414
  * @hidden
415
+ *
416
+ * Defines the template for the week cell.
417
+ * Takes precedence over nested templates in the KendoMultiViewCalendar tag.
382
418
  */
383
419
  set: function (template) {
384
- this.weekNumberTemplate = template;
420
+ this._weekNumberTemplateRef = template;
385
421
  },
386
422
  enumerable: true,
387
423
  configurable: true
388
424
  });
389
425
  Object.defineProperty(MultiViewCalendarComponent.prototype, "headerTitleTemplateRef", {
426
+ get: function () {
427
+ return this._headerTitleTemplateRef || this.headerTitleTemplate;
428
+ },
390
429
  /**
391
430
  * @hidden
431
+ *
432
+ * Defines the template for the header title.
433
+ * Takes precedence over nested templates in the KendoMultiViewCalendar tag.
392
434
  */
393
435
  set: function (template) {
394
- this.headerTitleTemplate = template;
436
+ this._headerTitleTemplateRef = template;
395
437
  },
396
438
  enumerable: true,
397
439
  configurable: true
@@ -674,13 +716,13 @@ var MultiViewCalendarComponent = /** @class */ (function () {
674
716
  MultiViewCalendarComponent.prototype.activeCellTemplate = function () {
675
717
  switch (this.activeViewEnum) {
676
718
  case view_enum_1.CalendarViewEnum.month:
677
- return this.monthCellTemplate || this.cellTemplate;
719
+ return this.monthCellTemplateRef || this.cellTemplateRef;
678
720
  case view_enum_1.CalendarViewEnum.year:
679
- return this.yearCellTemplate;
721
+ return this.yearCellTemplateRef;
680
722
  case view_enum_1.CalendarViewEnum.decade:
681
- return this.decadeCellTemplate;
723
+ return this.decadeCellTemplateRef;
682
724
  case view_enum_1.CalendarViewEnum.century:
683
- return this.centuryCellTemplate;
725
+ return this.centuryCellTemplateRef;
684
726
  default:
685
727
  return null;
686
728
  }
@@ -913,7 +955,7 @@ var MultiViewCalendarComponent = /** @class */ (function () {
913
955
  tslib_1.__metadata("design:type", core_1.EventEmitter)
914
956
  ], MultiViewCalendarComponent.prototype, "blurEvent", void 0);
915
957
  tslib_1.__decorate([
916
- core_1.ContentChild(cell_template_directive_1.CellTemplateDirective, { static: true }),
958
+ core_1.ContentChild(cell_template_directive_1.CellTemplateDirective, { static: false }),
917
959
  tslib_1.__metadata("design:type", cell_template_directive_1.CellTemplateDirective)
918
960
  ], MultiViewCalendarComponent.prototype, "cellTemplate", void 0);
919
961
  tslib_1.__decorate([
@@ -922,7 +964,7 @@ var MultiViewCalendarComponent = /** @class */ (function () {
922
964
  tslib_1.__metadata("design:paramtypes", [cell_template_directive_1.CellTemplateDirective])
923
965
  ], MultiViewCalendarComponent.prototype, "cellTemplateRef", null);
924
966
  tslib_1.__decorate([
925
- core_1.ContentChild(month_cell_template_directive_1.MonthCellTemplateDirective, { static: true }),
967
+ core_1.ContentChild(month_cell_template_directive_1.MonthCellTemplateDirective, { static: false }),
926
968
  tslib_1.__metadata("design:type", month_cell_template_directive_1.MonthCellTemplateDirective)
927
969
  ], MultiViewCalendarComponent.prototype, "monthCellTemplate", void 0);
928
970
  tslib_1.__decorate([
@@ -931,7 +973,7 @@ var MultiViewCalendarComponent = /** @class */ (function () {
931
973
  tslib_1.__metadata("design:paramtypes", [month_cell_template_directive_1.MonthCellTemplateDirective])
932
974
  ], MultiViewCalendarComponent.prototype, "monthCellTemplateRef", null);
933
975
  tslib_1.__decorate([
934
- core_1.ContentChild(year_cell_template_directive_1.YearCellTemplateDirective, { static: true }),
976
+ core_1.ContentChild(year_cell_template_directive_1.YearCellTemplateDirective, { static: false }),
935
977
  tslib_1.__metadata("design:type", year_cell_template_directive_1.YearCellTemplateDirective)
936
978
  ], MultiViewCalendarComponent.prototype, "yearCellTemplate", void 0);
937
979
  tslib_1.__decorate([
@@ -940,7 +982,7 @@ var MultiViewCalendarComponent = /** @class */ (function () {
940
982
  tslib_1.__metadata("design:paramtypes", [year_cell_template_directive_1.YearCellTemplateDirective])
941
983
  ], MultiViewCalendarComponent.prototype, "yearCellTemplateRef", null);
942
984
  tslib_1.__decorate([
943
- core_1.ContentChild(decade_cell_template_directive_1.DecadeCellTemplateDirective, { static: true }),
985
+ core_1.ContentChild(decade_cell_template_directive_1.DecadeCellTemplateDirective, { static: false }),
944
986
  tslib_1.__metadata("design:type", decade_cell_template_directive_1.DecadeCellTemplateDirective)
945
987
  ], MultiViewCalendarComponent.prototype, "decadeCellTemplate", void 0);
946
988
  tslib_1.__decorate([
@@ -949,7 +991,7 @@ var MultiViewCalendarComponent = /** @class */ (function () {
949
991
  tslib_1.__metadata("design:paramtypes", [decade_cell_template_directive_1.DecadeCellTemplateDirective])
950
992
  ], MultiViewCalendarComponent.prototype, "decadeCellTemplateRef", null);
951
993
  tslib_1.__decorate([
952
- core_1.ContentChild(century_cell_template_directive_1.CenturyCellTemplateDirective, { static: true }),
994
+ core_1.ContentChild(century_cell_template_directive_1.CenturyCellTemplateDirective, { static: false }),
953
995
  tslib_1.__metadata("design:type", century_cell_template_directive_1.CenturyCellTemplateDirective)
954
996
  ], MultiViewCalendarComponent.prototype, "centuryCellTemplate", void 0);
955
997
  tslib_1.__decorate([
@@ -958,7 +1000,7 @@ var MultiViewCalendarComponent = /** @class */ (function () {
958
1000
  tslib_1.__metadata("design:paramtypes", [century_cell_template_directive_1.CenturyCellTemplateDirective])
959
1001
  ], MultiViewCalendarComponent.prototype, "centuryCellTemplateRef", null);
960
1002
  tslib_1.__decorate([
961
- core_1.ContentChild(weeknumber_cell_template_directive_1.WeekNumberCellTemplateDirective, { static: true }),
1003
+ core_1.ContentChild(weeknumber_cell_template_directive_1.WeekNumberCellTemplateDirective, { static: false }),
962
1004
  tslib_1.__metadata("design:type", weeknumber_cell_template_directive_1.WeekNumberCellTemplateDirective)
963
1005
  ], MultiViewCalendarComponent.prototype, "weekNumberTemplate", void 0);
964
1006
  tslib_1.__decorate([
@@ -967,7 +1009,7 @@ var MultiViewCalendarComponent = /** @class */ (function () {
967
1009
  tslib_1.__metadata("design:paramtypes", [weeknumber_cell_template_directive_1.WeekNumberCellTemplateDirective])
968
1010
  ], MultiViewCalendarComponent.prototype, "weekNumberTemplateRef", null);
969
1011
  tslib_1.__decorate([
970
- core_1.ContentChild(header_title_template_directive_1.HeaderTitleTemplateDirective, { static: true }),
1012
+ core_1.ContentChild(header_title_template_directive_1.HeaderTitleTemplateDirective, { static: false }),
971
1013
  tslib_1.__metadata("design:type", header_title_template_directive_1.HeaderTitleTemplateDirective)
972
1014
  ], MultiViewCalendarComponent.prototype, "headerTitleTemplate", void 0);
973
1015
  tslib_1.__decorate([
@@ -1064,7 +1106,7 @@ var MultiViewCalendarComponent = /** @class */ (function () {
1064
1106
  selection_service_1.SelectionService
1065
1107
  ],
1066
1108
  selector: 'kendo-multiviewcalendar',
1067
- 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 "
1109
+ 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 "
1068
1110
  }),
1069
1111
  tslib_1.__param(8, core_1.Optional()),
1070
1112
  tslib_1.__metadata("design:paramtypes", [bus_view_service_1.BusViewService,
@@ -11,7 +11,7 @@ exports.packageMetadata = {
11
11
  name: '@progress/kendo-angular-dateinputs',
12
12
  productName: 'Kendo UI for Angular',
13
13
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
14
- publishDate: 1645797218,
14
+ publishDate: 1647332140,
15
15
  version: '',
16
16
  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'
17
17
  };