@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.
- package/dist/cdn/js/kendo-angular-dateinputs.js +2 -2
- package/dist/cdn/main.js +1 -1
- package/dist/es/calendar/calendar.component.js +69 -21
- package/dist/es/calendar/multiview-calendar.component.js +61 -19
- package/dist/es/package-metadata.js +1 -1
- package/dist/es2015/calendar/calendar.component.d.ts +56 -0
- package/dist/es2015/calendar/calendar.component.js +77 -29
- package/dist/es2015/calendar/multiview-calendar.component.d.ts +49 -0
- package/dist/es2015/calendar/multiview-calendar.component.js +62 -20
- package/dist/es2015/index.metadata.json +1 -1
- package/dist/es2015/package-metadata.js +1 -1
- package/dist/fesm2015/index.js +140 -50
- package/dist/fesm5/index.js +131 -41
- package/dist/npm/calendar/calendar.component.js +69 -21
- package/dist/npm/calendar/multiview-calendar.component.js +61 -19
- package/dist/npm/package-metadata.js +1 -1
- package/dist/systemjs/kendo-angular-dateinputs.js +1 -1
- package/package.json +2 -2
package/dist/fesm5/index.js
CHANGED
|
@@ -23,7 +23,7 @@ var packageMetadata = {
|
|
|
23
23
|
name: '@progress/kendo-angular-dateinputs',
|
|
24
24
|
productName: 'Kendo UI for Angular',
|
|
25
25
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
26
|
-
publishDate:
|
|
26
|
+
publishDate: 1647358649,
|
|
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
|
};
|
|
@@ -2587,71 +2587,113 @@ var MultiViewCalendarComponent = /** @class */ (function () {
|
|
|
2587
2587
|
configurable: true
|
|
2588
2588
|
});
|
|
2589
2589
|
Object.defineProperty(MultiViewCalendarComponent.prototype, "cellTemplateRef", {
|
|
2590
|
+
get: function () {
|
|
2591
|
+
return this._cellTemplateRef || this.cellTemplate;
|
|
2592
|
+
},
|
|
2590
2593
|
/**
|
|
2591
2594
|
* @hidden
|
|
2595
|
+
*
|
|
2596
|
+
* Defines the template for each cell.
|
|
2597
|
+
* Takes precedence over nested templates in the KendoMultiViewCalendar tag.
|
|
2592
2598
|
*/
|
|
2593
2599
|
set: function (template) {
|
|
2594
|
-
this.
|
|
2600
|
+
this._cellTemplateRef = template;
|
|
2595
2601
|
},
|
|
2596
2602
|
enumerable: true,
|
|
2597
2603
|
configurable: true
|
|
2598
2604
|
});
|
|
2599
2605
|
Object.defineProperty(MultiViewCalendarComponent.prototype, "monthCellTemplateRef", {
|
|
2606
|
+
get: function () {
|
|
2607
|
+
return this._monthCellTemplateRef || this.monthCellTemplate;
|
|
2608
|
+
},
|
|
2600
2609
|
/**
|
|
2601
2610
|
* @hidden
|
|
2611
|
+
*
|
|
2612
|
+
* Defines the template for each month cell.
|
|
2613
|
+
* Takes precedence over nested templates in the KendoMultiViewCalendar tag.
|
|
2602
2614
|
*/
|
|
2603
2615
|
set: function (template) {
|
|
2604
|
-
this.
|
|
2616
|
+
this._monthCellTemplateRef = template;
|
|
2605
2617
|
},
|
|
2606
2618
|
enumerable: true,
|
|
2607
2619
|
configurable: true
|
|
2608
2620
|
});
|
|
2609
2621
|
Object.defineProperty(MultiViewCalendarComponent.prototype, "yearCellTemplateRef", {
|
|
2622
|
+
get: function () {
|
|
2623
|
+
return this._yearCellTemplateRef || this.yearCellTemplate;
|
|
2624
|
+
},
|
|
2610
2625
|
/**
|
|
2611
2626
|
* @hidden
|
|
2627
|
+
*
|
|
2628
|
+
* Defines the template for each year cell.
|
|
2629
|
+
* Takes precedence over nested templates in the KendoMultiViewCalendar tag.
|
|
2612
2630
|
*/
|
|
2613
2631
|
set: function (template) {
|
|
2614
|
-
this.
|
|
2632
|
+
this._yearCellTemplateRef = template;
|
|
2615
2633
|
},
|
|
2616
2634
|
enumerable: true,
|
|
2617
2635
|
configurable: true
|
|
2618
2636
|
});
|
|
2619
2637
|
Object.defineProperty(MultiViewCalendarComponent.prototype, "decadeCellTemplateRef", {
|
|
2638
|
+
get: function () {
|
|
2639
|
+
return this._decadeCellTemplateRef || this.decadeCellTemplate;
|
|
2640
|
+
},
|
|
2620
2641
|
/**
|
|
2621
2642
|
* @hidden
|
|
2643
|
+
*
|
|
2644
|
+
* Defines the template for each decade cell.
|
|
2645
|
+
* Takes precedence over nested templates in the KendoMultiViewCalendar tag.
|
|
2622
2646
|
*/
|
|
2623
2647
|
set: function (template) {
|
|
2624
|
-
this.
|
|
2648
|
+
this._decadeCellTemplateRef = template;
|
|
2625
2649
|
},
|
|
2626
2650
|
enumerable: true,
|
|
2627
2651
|
configurable: true
|
|
2628
2652
|
});
|
|
2629
2653
|
Object.defineProperty(MultiViewCalendarComponent.prototype, "centuryCellTemplateRef", {
|
|
2654
|
+
get: function () {
|
|
2655
|
+
return this._centuryCellTemplateRef || this.centuryCellTemplate;
|
|
2656
|
+
},
|
|
2630
2657
|
/**
|
|
2631
2658
|
* @hidden
|
|
2659
|
+
*
|
|
2660
|
+
* Defines the template for each century cell.
|
|
2661
|
+
* Takes precedence over nested templates in the KendoMultiViewCalendar tag.
|
|
2632
2662
|
*/
|
|
2633
2663
|
set: function (template) {
|
|
2634
|
-
this.
|
|
2664
|
+
this._centuryCellTemplateRef = template;
|
|
2635
2665
|
},
|
|
2636
2666
|
enumerable: true,
|
|
2637
2667
|
configurable: true
|
|
2638
2668
|
});
|
|
2639
2669
|
Object.defineProperty(MultiViewCalendarComponent.prototype, "weekNumberTemplateRef", {
|
|
2670
|
+
get: function () {
|
|
2671
|
+
return this._weekNumberTemplateRef || this.weekNumberTemplate;
|
|
2672
|
+
},
|
|
2640
2673
|
/**
|
|
2641
2674
|
* @hidden
|
|
2675
|
+
*
|
|
2676
|
+
* Defines the template for the week cell.
|
|
2677
|
+
* Takes precedence over nested templates in the KendoMultiViewCalendar tag.
|
|
2642
2678
|
*/
|
|
2643
2679
|
set: function (template) {
|
|
2644
|
-
this.
|
|
2680
|
+
this._weekNumberTemplateRef = template;
|
|
2645
2681
|
},
|
|
2646
2682
|
enumerable: true,
|
|
2647
2683
|
configurable: true
|
|
2648
2684
|
});
|
|
2649
2685
|
Object.defineProperty(MultiViewCalendarComponent.prototype, "headerTitleTemplateRef", {
|
|
2686
|
+
get: function () {
|
|
2687
|
+
return this._headerTitleTemplateRef || this.headerTitleTemplate;
|
|
2688
|
+
},
|
|
2650
2689
|
/**
|
|
2651
2690
|
* @hidden
|
|
2691
|
+
*
|
|
2692
|
+
* Defines the template for the header title.
|
|
2693
|
+
* Takes precedence over nested templates in the KendoMultiViewCalendar tag.
|
|
2652
2694
|
*/
|
|
2653
2695
|
set: function (template) {
|
|
2654
|
-
this.
|
|
2696
|
+
this._headerTitleTemplateRef = template;
|
|
2655
2697
|
},
|
|
2656
2698
|
enumerable: true,
|
|
2657
2699
|
configurable: true
|
|
@@ -2934,13 +2976,13 @@ var MultiViewCalendarComponent = /** @class */ (function () {
|
|
|
2934
2976
|
MultiViewCalendarComponent.prototype.activeCellTemplate = function () {
|
|
2935
2977
|
switch (this.activeViewEnum) {
|
|
2936
2978
|
case CalendarViewEnum.month:
|
|
2937
|
-
return this.
|
|
2979
|
+
return this.monthCellTemplateRef || this.cellTemplateRef;
|
|
2938
2980
|
case CalendarViewEnum.year:
|
|
2939
|
-
return this.
|
|
2981
|
+
return this.yearCellTemplateRef;
|
|
2940
2982
|
case CalendarViewEnum.decade:
|
|
2941
|
-
return this.
|
|
2983
|
+
return this.decadeCellTemplateRef;
|
|
2942
2984
|
case CalendarViewEnum.century:
|
|
2943
|
-
return this.
|
|
2985
|
+
return this.centuryCellTemplateRef;
|
|
2944
2986
|
default:
|
|
2945
2987
|
return null;
|
|
2946
2988
|
}
|
|
@@ -3173,7 +3215,7 @@ var MultiViewCalendarComponent = /** @class */ (function () {
|
|
|
3173
3215
|
__metadata("design:type", EventEmitter)
|
|
3174
3216
|
], MultiViewCalendarComponent.prototype, "blurEvent", void 0);
|
|
3175
3217
|
__decorate([
|
|
3176
|
-
ContentChild(CellTemplateDirective, { static:
|
|
3218
|
+
ContentChild(CellTemplateDirective, { static: false }),
|
|
3177
3219
|
__metadata("design:type", CellTemplateDirective)
|
|
3178
3220
|
], MultiViewCalendarComponent.prototype, "cellTemplate", void 0);
|
|
3179
3221
|
__decorate([
|
|
@@ -3182,7 +3224,7 @@ var MultiViewCalendarComponent = /** @class */ (function () {
|
|
|
3182
3224
|
__metadata("design:paramtypes", [CellTemplateDirective])
|
|
3183
3225
|
], MultiViewCalendarComponent.prototype, "cellTemplateRef", null);
|
|
3184
3226
|
__decorate([
|
|
3185
|
-
ContentChild(MonthCellTemplateDirective, { static:
|
|
3227
|
+
ContentChild(MonthCellTemplateDirective, { static: false }),
|
|
3186
3228
|
__metadata("design:type", MonthCellTemplateDirective)
|
|
3187
3229
|
], MultiViewCalendarComponent.prototype, "monthCellTemplate", void 0);
|
|
3188
3230
|
__decorate([
|
|
@@ -3191,7 +3233,7 @@ var MultiViewCalendarComponent = /** @class */ (function () {
|
|
|
3191
3233
|
__metadata("design:paramtypes", [MonthCellTemplateDirective])
|
|
3192
3234
|
], MultiViewCalendarComponent.prototype, "monthCellTemplateRef", null);
|
|
3193
3235
|
__decorate([
|
|
3194
|
-
ContentChild(YearCellTemplateDirective, { static:
|
|
3236
|
+
ContentChild(YearCellTemplateDirective, { static: false }),
|
|
3195
3237
|
__metadata("design:type", YearCellTemplateDirective)
|
|
3196
3238
|
], MultiViewCalendarComponent.prototype, "yearCellTemplate", void 0);
|
|
3197
3239
|
__decorate([
|
|
@@ -3200,7 +3242,7 @@ var MultiViewCalendarComponent = /** @class */ (function () {
|
|
|
3200
3242
|
__metadata("design:paramtypes", [YearCellTemplateDirective])
|
|
3201
3243
|
], MultiViewCalendarComponent.prototype, "yearCellTemplateRef", null);
|
|
3202
3244
|
__decorate([
|
|
3203
|
-
ContentChild(DecadeCellTemplateDirective, { static:
|
|
3245
|
+
ContentChild(DecadeCellTemplateDirective, { static: false }),
|
|
3204
3246
|
__metadata("design:type", DecadeCellTemplateDirective)
|
|
3205
3247
|
], MultiViewCalendarComponent.prototype, "decadeCellTemplate", void 0);
|
|
3206
3248
|
__decorate([
|
|
@@ -3209,7 +3251,7 @@ var MultiViewCalendarComponent = /** @class */ (function () {
|
|
|
3209
3251
|
__metadata("design:paramtypes", [DecadeCellTemplateDirective])
|
|
3210
3252
|
], MultiViewCalendarComponent.prototype, "decadeCellTemplateRef", null);
|
|
3211
3253
|
__decorate([
|
|
3212
|
-
ContentChild(CenturyCellTemplateDirective, { static:
|
|
3254
|
+
ContentChild(CenturyCellTemplateDirective, { static: false }),
|
|
3213
3255
|
__metadata("design:type", CenturyCellTemplateDirective)
|
|
3214
3256
|
], MultiViewCalendarComponent.prototype, "centuryCellTemplate", void 0);
|
|
3215
3257
|
__decorate([
|
|
@@ -3218,7 +3260,7 @@ var MultiViewCalendarComponent = /** @class */ (function () {
|
|
|
3218
3260
|
__metadata("design:paramtypes", [CenturyCellTemplateDirective])
|
|
3219
3261
|
], MultiViewCalendarComponent.prototype, "centuryCellTemplateRef", null);
|
|
3220
3262
|
__decorate([
|
|
3221
|
-
ContentChild(WeekNumberCellTemplateDirective, { static:
|
|
3263
|
+
ContentChild(WeekNumberCellTemplateDirective, { static: false }),
|
|
3222
3264
|
__metadata("design:type", WeekNumberCellTemplateDirective)
|
|
3223
3265
|
], MultiViewCalendarComponent.prototype, "weekNumberTemplate", void 0);
|
|
3224
3266
|
__decorate([
|
|
@@ -3227,7 +3269,7 @@ var MultiViewCalendarComponent = /** @class */ (function () {
|
|
|
3227
3269
|
__metadata("design:paramtypes", [WeekNumberCellTemplateDirective])
|
|
3228
3270
|
], MultiViewCalendarComponent.prototype, "weekNumberTemplateRef", null);
|
|
3229
3271
|
__decorate([
|
|
3230
|
-
ContentChild(HeaderTitleTemplateDirective, { static:
|
|
3272
|
+
ContentChild(HeaderTitleTemplateDirective, { static: false }),
|
|
3231
3273
|
__metadata("design:type", HeaderTitleTemplateDirective)
|
|
3232
3274
|
], MultiViewCalendarComponent.prototype, "headerTitleTemplate", void 0);
|
|
3233
3275
|
__decorate([
|
|
@@ -3324,7 +3366,7 @@ var MultiViewCalendarComponent = /** @class */ (function () {
|
|
|
3324
3366
|
SelectionService
|
|
3325
3367
|
],
|
|
3326
3368
|
selector: 'kendo-multiviewcalendar',
|
|
3327
|
-
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]=\"
|
|
3369
|
+
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 "
|
|
3328
3370
|
}),
|
|
3329
3371
|
__param(8, Optional()),
|
|
3330
3372
|
__metadata("design:paramtypes", [BusViewService,
|
|
@@ -4885,81 +4927,129 @@ var CalendarComponent = /** @class */ (function () {
|
|
|
4885
4927
|
configurable: true
|
|
4886
4928
|
});
|
|
4887
4929
|
Object.defineProperty(CalendarComponent.prototype, "cellTemplateRef", {
|
|
4930
|
+
get: function () {
|
|
4931
|
+
return this._cellTemplateRef || this.cellTemplate;
|
|
4932
|
+
},
|
|
4888
4933
|
/**
|
|
4889
4934
|
* @hidden
|
|
4935
|
+
*
|
|
4936
|
+
* Defines the template for each cell.
|
|
4937
|
+
* Takes precedence over nested templates in the KendoCalendar tag.
|
|
4890
4938
|
*/
|
|
4891
4939
|
set: function (template) {
|
|
4892
|
-
this.
|
|
4940
|
+
this._cellTemplateRef = template;
|
|
4893
4941
|
},
|
|
4894
4942
|
enumerable: true,
|
|
4895
4943
|
configurable: true
|
|
4896
4944
|
});
|
|
4897
4945
|
Object.defineProperty(CalendarComponent.prototype, "monthCellTemplateRef", {
|
|
4946
|
+
get: function () {
|
|
4947
|
+
return this._monthCellTemplateRef || this.monthCellTemplate;
|
|
4948
|
+
},
|
|
4898
4949
|
/**
|
|
4899
4950
|
* @hidden
|
|
4951
|
+
*
|
|
4952
|
+
* Defines the template for each month cell.
|
|
4953
|
+
* Takes precedence over nested templates in the KendoCalendar tag.
|
|
4900
4954
|
*/
|
|
4901
4955
|
set: function (template) {
|
|
4902
|
-
this.
|
|
4956
|
+
this._monthCellTemplateRef = template;
|
|
4903
4957
|
},
|
|
4904
4958
|
enumerable: true,
|
|
4905
4959
|
configurable: true
|
|
4906
4960
|
});
|
|
4907
4961
|
Object.defineProperty(CalendarComponent.prototype, "yearCellTemplateRef", {
|
|
4962
|
+
get: function () {
|
|
4963
|
+
return this._yearCellTemplateRef || this.yearCellTemplate;
|
|
4964
|
+
},
|
|
4908
4965
|
/**
|
|
4909
4966
|
* @hidden
|
|
4967
|
+
*
|
|
4968
|
+
* Defines the template for each year cell.
|
|
4969
|
+
* Takes precedence over nested templates in the KendoCalendar tag.
|
|
4910
4970
|
*/
|
|
4911
4971
|
set: function (template) {
|
|
4912
|
-
this.
|
|
4972
|
+
this._yearCellTemplateRef = template;
|
|
4913
4973
|
},
|
|
4914
4974
|
enumerable: true,
|
|
4915
4975
|
configurable: true
|
|
4916
4976
|
});
|
|
4917
4977
|
Object.defineProperty(CalendarComponent.prototype, "decadeCellTemplateRef", {
|
|
4978
|
+
get: function () {
|
|
4979
|
+
return this._decadeCellTemplateRef || this.decadeCellTemplate;
|
|
4980
|
+
},
|
|
4918
4981
|
/**
|
|
4919
4982
|
* @hidden
|
|
4983
|
+
*
|
|
4984
|
+
* Defines the template for each decade cell.
|
|
4985
|
+
* Takes precedence over nested templates in the KendoCalendar tag.
|
|
4920
4986
|
*/
|
|
4921
4987
|
set: function (template) {
|
|
4922
|
-
this.
|
|
4988
|
+
this._decadeCellTemplateRef = template;
|
|
4923
4989
|
},
|
|
4924
4990
|
enumerable: true,
|
|
4925
4991
|
configurable: true
|
|
4926
4992
|
});
|
|
4927
4993
|
Object.defineProperty(CalendarComponent.prototype, "centuryCellTemplateRef", {
|
|
4994
|
+
get: function () {
|
|
4995
|
+
return this._centuryCellTemplateRef || this.centuryCellTemplate;
|
|
4996
|
+
},
|
|
4928
4997
|
/**
|
|
4929
4998
|
* @hidden
|
|
4999
|
+
*
|
|
5000
|
+
* Defines the template for each century cell.
|
|
5001
|
+
* Takes precedence over nested templates in the KendoCalendar tag.
|
|
4930
5002
|
*/
|
|
4931
5003
|
set: function (template) {
|
|
4932
|
-
this.
|
|
5004
|
+
this._centuryCellTemplateRef = template;
|
|
4933
5005
|
},
|
|
4934
5006
|
enumerable: true,
|
|
4935
5007
|
configurable: true
|
|
4936
5008
|
});
|
|
4937
5009
|
Object.defineProperty(CalendarComponent.prototype, "weekNumberTemplateRef", {
|
|
5010
|
+
get: function () {
|
|
5011
|
+
return this._weekNumberTemplateRef || this.weekNumberTemplate;
|
|
5012
|
+
},
|
|
4938
5013
|
/**
|
|
4939
5014
|
* @hidden
|
|
5015
|
+
*
|
|
5016
|
+
* Defines the template for the week cell.
|
|
5017
|
+
* Takes precedence over nested templates in the KendoCalendar tag.
|
|
4940
5018
|
*/
|
|
4941
5019
|
set: function (template) {
|
|
4942
|
-
this.
|
|
5020
|
+
this._weekNumberTemplateRef = template;
|
|
4943
5021
|
},
|
|
4944
5022
|
enumerable: true,
|
|
4945
5023
|
configurable: true
|
|
4946
5024
|
});
|
|
4947
5025
|
Object.defineProperty(CalendarComponent.prototype, "headerTitleTemplateRef", {
|
|
5026
|
+
get: function () {
|
|
5027
|
+
return this._headerTitleTemplateRef || this.headerTitleTemplate;
|
|
5028
|
+
},
|
|
4948
5029
|
/**
|
|
4949
5030
|
* @hidden
|
|
5031
|
+
*
|
|
5032
|
+
* Defines the template for the header title.
|
|
5033
|
+
* Takes precedence over nested templates in the KendoCalendar tag.
|
|
4950
5034
|
*/
|
|
4951
5035
|
set: function (template) {
|
|
4952
|
-
this.
|
|
5036
|
+
this._headerTitleTemplateRef = template;
|
|
4953
5037
|
},
|
|
4954
5038
|
enumerable: true,
|
|
4955
5039
|
configurable: true
|
|
4956
5040
|
});
|
|
4957
5041
|
Object.defineProperty(CalendarComponent.prototype, "navigationItemTemplateRef", {
|
|
5042
|
+
get: function () {
|
|
5043
|
+
return this._navigationItemTemplateRef || this.navigationItemTemplate;
|
|
5044
|
+
},
|
|
4958
5045
|
/**
|
|
4959
5046
|
* @hidden
|
|
5047
|
+
*
|
|
5048
|
+
* Defines the template for the navigation item.
|
|
5049
|
+
* Takes precedence over nested templates in the KendoCalendar tag.
|
|
4960
5050
|
*/
|
|
4961
5051
|
set: function (template) {
|
|
4962
|
-
this.
|
|
5052
|
+
this._navigationItemTemplateRef = template;
|
|
4963
5053
|
},
|
|
4964
5054
|
enumerable: true,
|
|
4965
5055
|
configurable: true
|
|
@@ -5226,13 +5316,13 @@ var CalendarComponent = /** @class */ (function () {
|
|
|
5226
5316
|
CalendarComponent.prototype.activeCellTemplate = function () {
|
|
5227
5317
|
switch (this.activeViewEnum) {
|
|
5228
5318
|
case CalendarViewEnum.month:
|
|
5229
|
-
return this.
|
|
5319
|
+
return this.monthCellTemplateRef || this.cellTemplateRef;
|
|
5230
5320
|
case CalendarViewEnum.year:
|
|
5231
|
-
return this.
|
|
5321
|
+
return this.yearCellTemplateRef;
|
|
5232
5322
|
case CalendarViewEnum.decade:
|
|
5233
|
-
return this.
|
|
5323
|
+
return this.decadeCellTemplateRef;
|
|
5234
5324
|
case CalendarViewEnum.century:
|
|
5235
|
-
return this.
|
|
5325
|
+
return this.centuryCellTemplateRef;
|
|
5236
5326
|
default:
|
|
5237
5327
|
return null;
|
|
5238
5328
|
}
|
|
@@ -5543,7 +5633,7 @@ var CalendarComponent = /** @class */ (function () {
|
|
|
5543
5633
|
__metadata("design:type", EventEmitter)
|
|
5544
5634
|
], CalendarComponent.prototype, "valueChange", void 0);
|
|
5545
5635
|
__decorate([
|
|
5546
|
-
ContentChild(CellTemplateDirective, { static:
|
|
5636
|
+
ContentChild(CellTemplateDirective, { static: false }),
|
|
5547
5637
|
__metadata("design:type", CellTemplateDirective)
|
|
5548
5638
|
], CalendarComponent.prototype, "cellTemplate", void 0);
|
|
5549
5639
|
__decorate([
|
|
@@ -5552,7 +5642,7 @@ var CalendarComponent = /** @class */ (function () {
|
|
|
5552
5642
|
__metadata("design:paramtypes", [CellTemplateDirective])
|
|
5553
5643
|
], CalendarComponent.prototype, "cellTemplateRef", null);
|
|
5554
5644
|
__decorate([
|
|
5555
|
-
ContentChild(MonthCellTemplateDirective, { static:
|
|
5645
|
+
ContentChild(MonthCellTemplateDirective, { static: false }),
|
|
5556
5646
|
__metadata("design:type", MonthCellTemplateDirective)
|
|
5557
5647
|
], CalendarComponent.prototype, "monthCellTemplate", void 0);
|
|
5558
5648
|
__decorate([
|
|
@@ -5561,7 +5651,7 @@ var CalendarComponent = /** @class */ (function () {
|
|
|
5561
5651
|
__metadata("design:paramtypes", [MonthCellTemplateDirective])
|
|
5562
5652
|
], CalendarComponent.prototype, "monthCellTemplateRef", null);
|
|
5563
5653
|
__decorate([
|
|
5564
|
-
ContentChild(YearCellTemplateDirective, { static:
|
|
5654
|
+
ContentChild(YearCellTemplateDirective, { static: false }),
|
|
5565
5655
|
__metadata("design:type", YearCellTemplateDirective)
|
|
5566
5656
|
], CalendarComponent.prototype, "yearCellTemplate", void 0);
|
|
5567
5657
|
__decorate([
|
|
@@ -5570,7 +5660,7 @@ var CalendarComponent = /** @class */ (function () {
|
|
|
5570
5660
|
__metadata("design:paramtypes", [YearCellTemplateDirective])
|
|
5571
5661
|
], CalendarComponent.prototype, "yearCellTemplateRef", null);
|
|
5572
5662
|
__decorate([
|
|
5573
|
-
ContentChild(DecadeCellTemplateDirective, { static:
|
|
5663
|
+
ContentChild(DecadeCellTemplateDirective, { static: false }),
|
|
5574
5664
|
__metadata("design:type", DecadeCellTemplateDirective)
|
|
5575
5665
|
], CalendarComponent.prototype, "decadeCellTemplate", void 0);
|
|
5576
5666
|
__decorate([
|
|
@@ -5579,7 +5669,7 @@ var CalendarComponent = /** @class */ (function () {
|
|
|
5579
5669
|
__metadata("design:paramtypes", [DecadeCellTemplateDirective])
|
|
5580
5670
|
], CalendarComponent.prototype, "decadeCellTemplateRef", null);
|
|
5581
5671
|
__decorate([
|
|
5582
|
-
ContentChild(CenturyCellTemplateDirective, { static:
|
|
5672
|
+
ContentChild(CenturyCellTemplateDirective, { static: false }),
|
|
5583
5673
|
__metadata("design:type", CenturyCellTemplateDirective)
|
|
5584
5674
|
], CalendarComponent.prototype, "centuryCellTemplate", void 0);
|
|
5585
5675
|
__decorate([
|
|
@@ -5588,7 +5678,7 @@ var CalendarComponent = /** @class */ (function () {
|
|
|
5588
5678
|
__metadata("design:paramtypes", [CenturyCellTemplateDirective])
|
|
5589
5679
|
], CalendarComponent.prototype, "centuryCellTemplateRef", null);
|
|
5590
5680
|
__decorate([
|
|
5591
|
-
ContentChild(WeekNumberCellTemplateDirective, { static:
|
|
5681
|
+
ContentChild(WeekNumberCellTemplateDirective, { static: false }),
|
|
5592
5682
|
__metadata("design:type", WeekNumberCellTemplateDirective)
|
|
5593
5683
|
], CalendarComponent.prototype, "weekNumberTemplate", void 0);
|
|
5594
5684
|
__decorate([
|
|
@@ -5597,7 +5687,7 @@ var CalendarComponent = /** @class */ (function () {
|
|
|
5597
5687
|
__metadata("design:paramtypes", [WeekNumberCellTemplateDirective])
|
|
5598
5688
|
], CalendarComponent.prototype, "weekNumberTemplateRef", null);
|
|
5599
5689
|
__decorate([
|
|
5600
|
-
ContentChild(HeaderTitleTemplateDirective, { static:
|
|
5690
|
+
ContentChild(HeaderTitleTemplateDirective, { static: false }),
|
|
5601
5691
|
__metadata("design:type", HeaderTitleTemplateDirective)
|
|
5602
5692
|
], CalendarComponent.prototype, "headerTitleTemplate", void 0);
|
|
5603
5693
|
__decorate([
|
|
@@ -5606,7 +5696,7 @@ var CalendarComponent = /** @class */ (function () {
|
|
|
5606
5696
|
__metadata("design:paramtypes", [HeaderTitleTemplateDirective])
|
|
5607
5697
|
], CalendarComponent.prototype, "headerTitleTemplateRef", null);
|
|
5608
5698
|
__decorate([
|
|
5609
|
-
ContentChild(NavigationItemTemplateDirective, { static:
|
|
5699
|
+
ContentChild(NavigationItemTemplateDirective, { static: false }),
|
|
5610
5700
|
__metadata("design:type", NavigationItemTemplateDirective)
|
|
5611
5701
|
], CalendarComponent.prototype, "navigationItemTemplate", void 0);
|
|
5612
5702
|
__decorate([
|
|
@@ -5662,7 +5752,7 @@ var CalendarComponent = /** @class */ (function () {
|
|
|
5662
5752
|
SelectionService
|
|
5663
5753
|
],
|
|
5664
5754
|
selector: 'kendo-calendar',
|
|
5665
|
-
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]=\"
|
|
5755
|
+
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 "
|
|
5666
5756
|
}),
|
|
5667
5757
|
__param(12, Optional()),
|
|
5668
5758
|
__metadata("design:paramtypes", [BusViewService,
|