@progress/kendo-angular-dateinputs 6.0.3-dev.202203091007 → 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.
@@ -9,7 +9,7 @@ export const packageMetadata = {
9
9
  name: '@progress/kendo-angular-dateinputs',
10
10
  productName: 'Kendo UI for Angular',
11
11
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
12
- publishDate: 1646820275,
12
+ publishDate: 1647332140,
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
  };
@@ -23,7 +23,7 @@ const packageMetadata = {
23
23
  name: '@progress/kendo-angular-dateinputs',
24
24
  productName: 'Kendo UI for Angular',
25
25
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
26
- publishDate: 1646820275,
26
+ publishDate: 1647332140,
27
27
  version: '',
28
28
  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'
29
29
  };
@@ -2626,45 +2626,87 @@ let MultiViewCalendarComponent = class MultiViewCalendarComponent {
2626
2626
  }
2627
2627
  /**
2628
2628
  * @hidden
2629
+ *
2630
+ * Defines the template for each cell.
2631
+ * Takes precedence over nested templates in the KendoMultiViewCalendar tag.
2629
2632
  */
2630
2633
  set cellTemplateRef(template) {
2631
- this.cellTemplate = template;
2634
+ this._cellTemplateRef = template;
2635
+ }
2636
+ get cellTemplateRef() {
2637
+ return this._cellTemplateRef || this.cellTemplate;
2632
2638
  }
2633
2639
  /**
2634
2640
  * @hidden
2641
+ *
2642
+ * Defines the template for each month cell.
2643
+ * Takes precedence over nested templates in the KendoMultiViewCalendar tag.
2635
2644
  */
2636
2645
  set monthCellTemplateRef(template) {
2637
- this.monthCellTemplate = template;
2646
+ this._monthCellTemplateRef = template;
2647
+ }
2648
+ get monthCellTemplateRef() {
2649
+ return this._monthCellTemplateRef || this.monthCellTemplate;
2638
2650
  }
2639
2651
  /**
2640
2652
  * @hidden
2653
+ *
2654
+ * Defines the template for each year cell.
2655
+ * Takes precedence over nested templates in the KendoMultiViewCalendar tag.
2641
2656
  */
2642
2657
  set yearCellTemplateRef(template) {
2643
- this.yearCellTemplate = template;
2658
+ this._yearCellTemplateRef = template;
2659
+ }
2660
+ get yearCellTemplateRef() {
2661
+ return this._yearCellTemplateRef || this.yearCellTemplate;
2644
2662
  }
2645
2663
  /**
2646
2664
  * @hidden
2665
+ *
2666
+ * Defines the template for each decade cell.
2667
+ * Takes precedence over nested templates in the KendoMultiViewCalendar tag.
2647
2668
  */
2648
2669
  set decadeCellTemplateRef(template) {
2649
- this.decadeCellTemplate = template;
2670
+ this._decadeCellTemplateRef = template;
2671
+ }
2672
+ get decadeCellTemplateRef() {
2673
+ return this._decadeCellTemplateRef || this.decadeCellTemplate;
2650
2674
  }
2651
2675
  /**
2652
2676
  * @hidden
2677
+ *
2678
+ * Defines the template for each century cell.
2679
+ * Takes precedence over nested templates in the KendoMultiViewCalendar tag.
2653
2680
  */
2654
2681
  set centuryCellTemplateRef(template) {
2655
- this.centuryCellTemplate = template;
2682
+ this._centuryCellTemplateRef = template;
2683
+ }
2684
+ get centuryCellTemplateRef() {
2685
+ return this._centuryCellTemplateRef || this.centuryCellTemplate;
2656
2686
  }
2657
2687
  /**
2658
2688
  * @hidden
2689
+ *
2690
+ * Defines the template for the week cell.
2691
+ * Takes precedence over nested templates in the KendoMultiViewCalendar tag.
2659
2692
  */
2660
2693
  set weekNumberTemplateRef(template) {
2661
- this.weekNumberTemplate = template;
2694
+ this._weekNumberTemplateRef = template;
2695
+ }
2696
+ get weekNumberTemplateRef() {
2697
+ return this._weekNumberTemplateRef || this.weekNumberTemplate;
2662
2698
  }
2663
2699
  /**
2664
2700
  * @hidden
2701
+ *
2702
+ * Defines the template for the header title.
2703
+ * Takes precedence over nested templates in the KendoMultiViewCalendar tag.
2665
2704
  */
2666
2705
  set headerTitleTemplateRef(template) {
2667
- this.headerTitleTemplate = template;
2706
+ this._headerTitleTemplateRef = template;
2707
+ }
2708
+ get headerTitleTemplateRef() {
2709
+ return this._headerTitleTemplateRef || this.headerTitleTemplate;
2668
2710
  }
2669
2711
  get activeViewEnum() {
2670
2712
  const activeView = CalendarViewEnum[this.activeView];
@@ -2913,13 +2955,13 @@ let MultiViewCalendarComponent = class MultiViewCalendarComponent {
2913
2955
  activeCellTemplate() {
2914
2956
  switch (this.activeViewEnum) {
2915
2957
  case CalendarViewEnum.month:
2916
- return this.monthCellTemplate || this.cellTemplate;
2958
+ return this.monthCellTemplateRef || this.cellTemplateRef;
2917
2959
  case CalendarViewEnum.year:
2918
- return this.yearCellTemplate;
2960
+ return this.yearCellTemplateRef;
2919
2961
  case CalendarViewEnum.decade:
2920
- return this.decadeCellTemplate;
2962
+ return this.decadeCellTemplateRef;
2921
2963
  case CalendarViewEnum.century:
2922
- return this.centuryCellTemplate;
2964
+ return this.centuryCellTemplateRef;
2923
2965
  default:
2924
2966
  return null;
2925
2967
  }
@@ -3150,7 +3192,7 @@ __decorate([
3150
3192
  __metadata("design:type", EventEmitter)
3151
3193
  ], MultiViewCalendarComponent.prototype, "blurEvent", void 0);
3152
3194
  __decorate([
3153
- ContentChild(CellTemplateDirective, { static: true }),
3195
+ ContentChild(CellTemplateDirective, { static: false }),
3154
3196
  __metadata("design:type", CellTemplateDirective)
3155
3197
  ], MultiViewCalendarComponent.prototype, "cellTemplate", void 0);
3156
3198
  __decorate([
@@ -3159,7 +3201,7 @@ __decorate([
3159
3201
  __metadata("design:paramtypes", [CellTemplateDirective])
3160
3202
  ], MultiViewCalendarComponent.prototype, "cellTemplateRef", null);
3161
3203
  __decorate([
3162
- ContentChild(MonthCellTemplateDirective, { static: true }),
3204
+ ContentChild(MonthCellTemplateDirective, { static: false }),
3163
3205
  __metadata("design:type", MonthCellTemplateDirective)
3164
3206
  ], MultiViewCalendarComponent.prototype, "monthCellTemplate", void 0);
3165
3207
  __decorate([
@@ -3168,7 +3210,7 @@ __decorate([
3168
3210
  __metadata("design:paramtypes", [MonthCellTemplateDirective])
3169
3211
  ], MultiViewCalendarComponent.prototype, "monthCellTemplateRef", null);
3170
3212
  __decorate([
3171
- ContentChild(YearCellTemplateDirective, { static: true }),
3213
+ ContentChild(YearCellTemplateDirective, { static: false }),
3172
3214
  __metadata("design:type", YearCellTemplateDirective)
3173
3215
  ], MultiViewCalendarComponent.prototype, "yearCellTemplate", void 0);
3174
3216
  __decorate([
@@ -3177,7 +3219,7 @@ __decorate([
3177
3219
  __metadata("design:paramtypes", [YearCellTemplateDirective])
3178
3220
  ], MultiViewCalendarComponent.prototype, "yearCellTemplateRef", null);
3179
3221
  __decorate([
3180
- ContentChild(DecadeCellTemplateDirective, { static: true }),
3222
+ ContentChild(DecadeCellTemplateDirective, { static: false }),
3181
3223
  __metadata("design:type", DecadeCellTemplateDirective)
3182
3224
  ], MultiViewCalendarComponent.prototype, "decadeCellTemplate", void 0);
3183
3225
  __decorate([
@@ -3186,7 +3228,7 @@ __decorate([
3186
3228
  __metadata("design:paramtypes", [DecadeCellTemplateDirective])
3187
3229
  ], MultiViewCalendarComponent.prototype, "decadeCellTemplateRef", null);
3188
3230
  __decorate([
3189
- ContentChild(CenturyCellTemplateDirective, { static: true }),
3231
+ ContentChild(CenturyCellTemplateDirective, { static: false }),
3190
3232
  __metadata("design:type", CenturyCellTemplateDirective)
3191
3233
  ], MultiViewCalendarComponent.prototype, "centuryCellTemplate", void 0);
3192
3234
  __decorate([
@@ -3195,7 +3237,7 @@ __decorate([
3195
3237
  __metadata("design:paramtypes", [CenturyCellTemplateDirective])
3196
3238
  ], MultiViewCalendarComponent.prototype, "centuryCellTemplateRef", null);
3197
3239
  __decorate([
3198
- ContentChild(WeekNumberCellTemplateDirective, { static: true }),
3240
+ ContentChild(WeekNumberCellTemplateDirective, { static: false }),
3199
3241
  __metadata("design:type", WeekNumberCellTemplateDirective)
3200
3242
  ], MultiViewCalendarComponent.prototype, "weekNumberTemplate", void 0);
3201
3243
  __decorate([
@@ -3204,7 +3246,7 @@ __decorate([
3204
3246
  __metadata("design:paramtypes", [WeekNumberCellTemplateDirective])
3205
3247
  ], MultiViewCalendarComponent.prototype, "weekNumberTemplateRef", null);
3206
3248
  __decorate([
3207
- ContentChild(HeaderTitleTemplateDirective, { static: true }),
3249
+ ContentChild(HeaderTitleTemplateDirective, { static: false }),
3208
3250
  __metadata("design:type", HeaderTitleTemplateDirective)
3209
3251
  ], MultiViewCalendarComponent.prototype, "headerTitleTemplate", void 0);
3210
3252
  __decorate([
@@ -3319,7 +3361,7 @@ MultiViewCalendarComponent = __decorate([
3319
3361
  [min]="min"
3320
3362
  [max]="max"
3321
3363
  [rangeLength]="views"
3322
- [templateRef]="headerTitleTemplate?.templateRef"
3364
+ [templateRef]="headerTitleTemplateRef?.templateRef"
3323
3365
  [isPrevDisabled]="isPrevDisabled"
3324
3366
  [isNextDisabled]="isNextDisabled"
3325
3367
  [showNavigationButtons]="true"
@@ -3336,7 +3378,7 @@ MultiViewCalendarComponent = __decorate([
3336
3378
  [activeView]="activeViewEnum"
3337
3379
  [isActive]="isActive || (isHovered && !isHeaderActive)"
3338
3380
  [cellTemplateRef]="activeCellTemplate()?.templateRef"
3339
- [weekNumberTemplateRef]="weekNumberTemplate?.templateRef"
3381
+ [weekNumberTemplateRef]="weekNumberTemplateRef?.templateRef"
3340
3382
  [cellUID]="cellUID"
3341
3383
  [views]="views"
3342
3384
  [min]="min"
@@ -4910,51 +4952,99 @@ let CalendarComponent = class CalendarComponent {
4910
4952
  }
4911
4953
  /**
4912
4954
  * @hidden
4955
+ *
4956
+ * Defines the template for each cell.
4957
+ * Takes precedence over nested templates in the KendoCalendar tag.
4913
4958
  */
4914
4959
  set cellTemplateRef(template) {
4915
- this.cellTemplate = template;
4960
+ this._cellTemplateRef = template;
4961
+ }
4962
+ get cellTemplateRef() {
4963
+ return this._cellTemplateRef || this.cellTemplate;
4916
4964
  }
4917
4965
  /**
4918
4966
  * @hidden
4967
+ *
4968
+ * Defines the template for each month cell.
4969
+ * Takes precedence over nested templates in the KendoCalendar tag.
4919
4970
  */
4920
4971
  set monthCellTemplateRef(template) {
4921
- this.monthCellTemplate = template;
4972
+ this._monthCellTemplateRef = template;
4973
+ }
4974
+ get monthCellTemplateRef() {
4975
+ return this._monthCellTemplateRef || this.monthCellTemplate;
4922
4976
  }
4923
4977
  /**
4924
4978
  * @hidden
4979
+ *
4980
+ * Defines the template for each year cell.
4981
+ * Takes precedence over nested templates in the KendoCalendar tag.
4925
4982
  */
4926
4983
  set yearCellTemplateRef(template) {
4927
- this.yearCellTemplate = template;
4984
+ this._yearCellTemplateRef = template;
4985
+ }
4986
+ get yearCellTemplateRef() {
4987
+ return this._yearCellTemplateRef || this.yearCellTemplate;
4928
4988
  }
4929
4989
  /**
4930
4990
  * @hidden
4991
+ *
4992
+ * Defines the template for each decade cell.
4993
+ * Takes precedence over nested templates in the KendoCalendar tag.
4931
4994
  */
4932
4995
  set decadeCellTemplateRef(template) {
4933
- this.decadeCellTemplate = template;
4996
+ this._decadeCellTemplateRef = template;
4997
+ }
4998
+ get decadeCellTemplateRef() {
4999
+ return this._decadeCellTemplateRef || this.decadeCellTemplate;
4934
5000
  }
4935
5001
  /**
4936
5002
  * @hidden
5003
+ *
5004
+ * Defines the template for each century cell.
5005
+ * Takes precedence over nested templates in the KendoCalendar tag.
4937
5006
  */
4938
5007
  set centuryCellTemplateRef(template) {
4939
- this.centuryCellTemplate = template;
5008
+ this._centuryCellTemplateRef = template;
5009
+ }
5010
+ get centuryCellTemplateRef() {
5011
+ return this._centuryCellTemplateRef || this.centuryCellTemplate;
4940
5012
  }
4941
5013
  /**
4942
5014
  * @hidden
5015
+ *
5016
+ * Defines the template for the week cell.
5017
+ * Takes precedence over nested templates in the KendoCalendar tag.
4943
5018
  */
4944
5019
  set weekNumberTemplateRef(template) {
4945
- this.weekNumberTemplate = template;
5020
+ this._weekNumberTemplateRef = template;
5021
+ }
5022
+ get weekNumberTemplateRef() {
5023
+ return this._weekNumberTemplateRef || this.weekNumberTemplate;
4946
5024
  }
4947
5025
  /**
4948
5026
  * @hidden
5027
+ *
5028
+ * Defines the template for the header title.
5029
+ * Takes precedence over nested templates in the KendoCalendar tag.
4949
5030
  */
4950
5031
  set headerTitleTemplateRef(template) {
4951
- this.headerTitleTemplate = template;
5032
+ this._headerTitleTemplateRef = template;
5033
+ }
5034
+ get headerTitleTemplateRef() {
5035
+ return this._headerTitleTemplateRef || this.headerTitleTemplate;
4952
5036
  }
4953
5037
  /**
4954
5038
  * @hidden
5039
+ *
5040
+ * Defines the template for the navigation item.
5041
+ * Takes precedence over nested templates in the KendoCalendar tag.
4955
5042
  */
4956
5043
  set navigationItemTemplateRef(template) {
4957
- this.navigationItemTemplate = template;
5044
+ this._navigationItemTemplateRef = template;
5045
+ }
5046
+ get navigationItemTemplateRef() {
5047
+ return this._navigationItemTemplateRef || this.navigationItemTemplate;
4958
5048
  }
4959
5049
  get activeViewEnum() {
4960
5050
  const activeView = CalendarViewEnum[this.activeView];
@@ -5187,13 +5277,13 @@ let CalendarComponent = class CalendarComponent {
5187
5277
  activeCellTemplate() {
5188
5278
  switch (this.activeViewEnum) {
5189
5279
  case CalendarViewEnum.month:
5190
- return this.monthCellTemplate || this.cellTemplate;
5280
+ return this.monthCellTemplateRef || this.cellTemplateRef;
5191
5281
  case CalendarViewEnum.year:
5192
- return this.yearCellTemplate;
5282
+ return this.yearCellTemplateRef;
5193
5283
  case CalendarViewEnum.decade:
5194
- return this.decadeCellTemplate;
5284
+ return this.decadeCellTemplateRef;
5195
5285
  case CalendarViewEnum.century:
5196
- return this.centuryCellTemplate;
5286
+ return this.centuryCellTemplateRef;
5197
5287
  default:
5198
5288
  return null;
5199
5289
  }
@@ -5502,7 +5592,7 @@ __decorate([
5502
5592
  __metadata("design:type", EventEmitter)
5503
5593
  ], CalendarComponent.prototype, "valueChange", void 0);
5504
5594
  __decorate([
5505
- ContentChild(CellTemplateDirective, { static: true }),
5595
+ ContentChild(CellTemplateDirective, { static: false }),
5506
5596
  __metadata("design:type", CellTemplateDirective)
5507
5597
  ], CalendarComponent.prototype, "cellTemplate", void 0);
5508
5598
  __decorate([
@@ -5511,7 +5601,7 @@ __decorate([
5511
5601
  __metadata("design:paramtypes", [CellTemplateDirective])
5512
5602
  ], CalendarComponent.prototype, "cellTemplateRef", null);
5513
5603
  __decorate([
5514
- ContentChild(MonthCellTemplateDirective, { static: true }),
5604
+ ContentChild(MonthCellTemplateDirective, { static: false }),
5515
5605
  __metadata("design:type", MonthCellTemplateDirective)
5516
5606
  ], CalendarComponent.prototype, "monthCellTemplate", void 0);
5517
5607
  __decorate([
@@ -5520,7 +5610,7 @@ __decorate([
5520
5610
  __metadata("design:paramtypes", [MonthCellTemplateDirective])
5521
5611
  ], CalendarComponent.prototype, "monthCellTemplateRef", null);
5522
5612
  __decorate([
5523
- ContentChild(YearCellTemplateDirective, { static: true }),
5613
+ ContentChild(YearCellTemplateDirective, { static: false }),
5524
5614
  __metadata("design:type", YearCellTemplateDirective)
5525
5615
  ], CalendarComponent.prototype, "yearCellTemplate", void 0);
5526
5616
  __decorate([
@@ -5529,7 +5619,7 @@ __decorate([
5529
5619
  __metadata("design:paramtypes", [YearCellTemplateDirective])
5530
5620
  ], CalendarComponent.prototype, "yearCellTemplateRef", null);
5531
5621
  __decorate([
5532
- ContentChild(DecadeCellTemplateDirective, { static: true }),
5622
+ ContentChild(DecadeCellTemplateDirective, { static: false }),
5533
5623
  __metadata("design:type", DecadeCellTemplateDirective)
5534
5624
  ], CalendarComponent.prototype, "decadeCellTemplate", void 0);
5535
5625
  __decorate([
@@ -5538,7 +5628,7 @@ __decorate([
5538
5628
  __metadata("design:paramtypes", [DecadeCellTemplateDirective])
5539
5629
  ], CalendarComponent.prototype, "decadeCellTemplateRef", null);
5540
5630
  __decorate([
5541
- ContentChild(CenturyCellTemplateDirective, { static: true }),
5631
+ ContentChild(CenturyCellTemplateDirective, { static: false }),
5542
5632
  __metadata("design:type", CenturyCellTemplateDirective)
5543
5633
  ], CalendarComponent.prototype, "centuryCellTemplate", void 0);
5544
5634
  __decorate([
@@ -5547,7 +5637,7 @@ __decorate([
5547
5637
  __metadata("design:paramtypes", [CenturyCellTemplateDirective])
5548
5638
  ], CalendarComponent.prototype, "centuryCellTemplateRef", null);
5549
5639
  __decorate([
5550
- ContentChild(WeekNumberCellTemplateDirective, { static: true }),
5640
+ ContentChild(WeekNumberCellTemplateDirective, { static: false }),
5551
5641
  __metadata("design:type", WeekNumberCellTemplateDirective)
5552
5642
  ], CalendarComponent.prototype, "weekNumberTemplate", void 0);
5553
5643
  __decorate([
@@ -5556,7 +5646,7 @@ __decorate([
5556
5646
  __metadata("design:paramtypes", [WeekNumberCellTemplateDirective])
5557
5647
  ], CalendarComponent.prototype, "weekNumberTemplateRef", null);
5558
5648
  __decorate([
5559
- ContentChild(HeaderTitleTemplateDirective, { static: true }),
5649
+ ContentChild(HeaderTitleTemplateDirective, { static: false }),
5560
5650
  __metadata("design:type", HeaderTitleTemplateDirective)
5561
5651
  ], CalendarComponent.prototype, "headerTitleTemplate", void 0);
5562
5652
  __decorate([
@@ -5565,7 +5655,7 @@ __decorate([
5565
5655
  __metadata("design:paramtypes", [HeaderTitleTemplateDirective])
5566
5656
  ], CalendarComponent.prototype, "headerTitleTemplateRef", null);
5567
5657
  __decorate([
5568
- ContentChild(NavigationItemTemplateDirective, { static: true }),
5658
+ ContentChild(NavigationItemTemplateDirective, { static: false }),
5569
5659
  __metadata("design:type", NavigationItemTemplateDirective)
5570
5660
  ], CalendarComponent.prototype, "navigationItemTemplate", void 0);
5571
5661
  __decorate([
@@ -5640,7 +5730,7 @@ CalendarComponent = __decorate([
5640
5730
  [focusedDate]="focusedDate"
5641
5731
  [min]="min"
5642
5732
  [max]="max"
5643
- [templateRef]="navigationItemTemplate?.templateRef"
5733
+ [templateRef]="navigationItemTemplateRef?.templateRef"
5644
5734
  (valueChange)="handleNavigation($event)"
5645
5735
  (pageChange)="onPageChange()"
5646
5736
  >
@@ -5649,8 +5739,8 @@ CalendarComponent = __decorate([
5649
5739
  [activeView]="activeViewEnum"
5650
5740
  [isActive]="isActive"
5651
5741
  [cellTemplateRef]="activeCellTemplate()?.templateRef"
5652
- [headerTitleTemplateRef]="headerTitleTemplate?.templateRef"
5653
- [weekNumberTemplateRef]="weekNumberTemplate?.templateRef"
5742
+ [headerTitleTemplateRef]="headerTitleTemplateRef?.templateRef"
5743
+ [weekNumberTemplateRef]="weekNumberTemplateRef?.templateRef"
5654
5744
  [cellUID]="cellUID"
5655
5745
  [min]="min"
5656
5746
  [max]="max"
@@ -5682,12 +5772,12 @@ CalendarComponent = __decorate([
5682
5772
  [weekNumber]="weekNumber"
5683
5773
  [animateNavigation]="animateNavigation"
5684
5774
  [cellTemplate]="activeCellTemplate()"
5685
- [monthCellTemplate]="monthCellTemplate"
5686
- [yearCellTemplate]="yearCellTemplate"
5687
- [decadeCellTemplate]="decadeCellTemplate"
5688
- [centuryCellTemplate]="centuryCellTemplate"
5689
- [headerTitleTemplate]="headerTitleTemplate"
5690
- [weekNumberTemplate]="weekNumberTemplate"
5775
+ [monthCellTemplate]="monthCellTemplateRef"
5776
+ [yearCellTemplate]="yearCellTemplateRef"
5777
+ [decadeCellTemplate]="decadeCellTemplateRef"
5778
+ [centuryCellTemplate]="centuryCellTemplateRef"
5779
+ [headerTitleTemplate]="headerTitleTemplateRef"
5780
+ [weekNumberTemplate]="weekNumberTemplateRef"
5691
5781
  [focusedDate]="focusedDate"
5692
5782
  [selection]="selection"
5693
5783
  [value]="value"