@progress/kendo-angular-dateinputs 15.3.1-develop.1 → 15.4.0-develop.1
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/calendar/calendar-common.module.d.ts +7 -5
- package/calendar/calendar.component.d.ts +45 -1
- package/calendar/footer.component.d.ts +22 -0
- package/calendar/header.component.d.ts +3 -2
- package/calendar/horizontal-view-list.component.d.ts +3 -1
- package/calendar/multiview-calendar.component.d.ts +44 -1
- package/calendar/services/weeknames.service.d.ts +2 -1
- package/calendar/templates/footer-template.directiv/320/265.d.ts +36 -0
- package/calendar/templates/header-template.directive.d.ts +37 -0
- package/calendar/templates.module.d.ts +3 -1
- package/calendar/view-list.component.d.ts +8 -1
- package/common/models/week-days-format.d.ts +10 -0
- package/datepicker/datepicker.component.d.ts +30 -1
- package/datetimepicker/datetimepicker.component.d.ts +30 -1
- package/esm2020/calendar/calendar-common.module.mjs +6 -0
- package/esm2020/calendar/calendar.component.mjs +70 -3
- package/esm2020/calendar/footer.component.mjs +69 -0
- package/esm2020/calendar/header.component.mjs +139 -125
- package/esm2020/calendar/horizontal-view-list.component.mjs +6 -3
- package/esm2020/calendar/multiview-calendar.component.mjs +76 -7
- package/esm2020/calendar/templates/footer-template.directiv/320/265.mjs +43 -0
- package/esm2020/calendar/templates/header-template.directive.mjs +44 -0
- package/esm2020/calendar/templates.module.mjs +14 -4
- package/esm2020/calendar/view-list.component.mjs +37 -9
- package/esm2020/calendar/view.component.mjs +3 -8
- package/esm2020/common/models/week-days-format.mjs +5 -0
- package/esm2020/datepicker/datepicker.component.mjs +51 -3
- package/esm2020/daterange/date-range-popup.component.mjs +1 -1
- package/esm2020/datetimepicker/datetimepicker.component.mjs +51 -3
- package/esm2020/index.mjs +3 -0
- package/esm2020/package-metadata.mjs +2 -2
- package/fesm2015/progress-kendo-angular-dateinputs.mjs +584 -172
- package/fesm2020/progress-kendo-angular-dateinputs.mjs +584 -172
- package/index.d.ts +4 -0
- package/package.json +11 -11
|
@@ -29,6 +29,8 @@ import { areDatesEqual, dateInRange, getToday, hasExistingValue, last, noop } fr
|
|
|
29
29
|
import { Subscription } from 'rxjs';
|
|
30
30
|
import { isArrowWithShiftPressed, isPresent } from '../common/utils';
|
|
31
31
|
import { NavigationService } from './services/navigation.service';
|
|
32
|
+
import { HeaderTemplateDirective } from './templates/header-template.directive';
|
|
33
|
+
import { FooterTemplateDirective } from './templates/footer-template.directivе';
|
|
32
34
|
import * as i0 from "@angular/core";
|
|
33
35
|
import * as i1 from "./services/bus-view.service";
|
|
34
36
|
import * as i2 from "./services/navigation.service";
|
|
@@ -36,8 +38,9 @@ import * as i3 from "./services/disabled-dates.service";
|
|
|
36
38
|
import * as i4 from "./services/selection.service";
|
|
37
39
|
import * as i5 from "./header.component";
|
|
38
40
|
import * as i6 from "./horizontal-view-list.component";
|
|
39
|
-
import * as i7 from "./
|
|
40
|
-
import * as i8 from "
|
|
41
|
+
import * as i7 from "./footer.component";
|
|
42
|
+
import * as i8 from "./localization/multiview-calendar-localized-messages.directive";
|
|
43
|
+
import * as i9 from "@angular/common";
|
|
41
44
|
const BOTTOM_VIEW_DOC_LINK = 'http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-bottomview';
|
|
42
45
|
const TOP_VIEW_DOC_LINK = 'http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-topview';
|
|
43
46
|
const MIN_DOC_LINK = 'http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-min';
|
|
@@ -94,6 +97,11 @@ export class MultiViewCalendarComponent {
|
|
|
94
97
|
* Determines whether to display the calendar header.
|
|
95
98
|
*/
|
|
96
99
|
this.showCalendarHeader = true;
|
|
100
|
+
/**
|
|
101
|
+
* Toggles the visibility of the footer.
|
|
102
|
+
* @default false
|
|
103
|
+
*/
|
|
104
|
+
this.footer = false;
|
|
97
105
|
/**
|
|
98
106
|
* Determines whether the built-in min or max validators are enforced when validating a form.
|
|
99
107
|
*/
|
|
@@ -126,6 +134,11 @@ export class MultiViewCalendarComponent {
|
|
|
126
134
|
* it determines whether the component is focusable.
|
|
127
135
|
*/
|
|
128
136
|
this.tabindex = 0;
|
|
137
|
+
/**
|
|
138
|
+
* Sets the format of the displayed Calendar week days' names.
|
|
139
|
+
* @default 'short'
|
|
140
|
+
*/
|
|
141
|
+
this.weekDaysFormat = "short";
|
|
129
142
|
/**
|
|
130
143
|
* @hidden
|
|
131
144
|
*/
|
|
@@ -427,6 +440,18 @@ export class MultiViewCalendarComponent {
|
|
|
427
440
|
get weekNumberTemplateRef() {
|
|
428
441
|
return this._weekNumberTemplateRef || this.weekNumberTemplate;
|
|
429
442
|
}
|
|
443
|
+
/**
|
|
444
|
+
* @hidden
|
|
445
|
+
*
|
|
446
|
+
* Defines the template for the Calendar footer.
|
|
447
|
+
* Takes precedence over nested templates in the KendoMultiViewCalendar tag.
|
|
448
|
+
*/
|
|
449
|
+
set footerTemplateRef(template) {
|
|
450
|
+
this._footerTemplateRef = template;
|
|
451
|
+
}
|
|
452
|
+
get footerTemplateRef() {
|
|
453
|
+
return this._footerTemplateRef || this.footerTemplate;
|
|
454
|
+
}
|
|
430
455
|
/**
|
|
431
456
|
* @hidden
|
|
432
457
|
*
|
|
@@ -439,6 +464,18 @@ export class MultiViewCalendarComponent {
|
|
|
439
464
|
get headerTitleTemplateRef() {
|
|
440
465
|
return this._headerTitleTemplateRef || this.headerTitleTemplate;
|
|
441
466
|
}
|
|
467
|
+
/**
|
|
468
|
+
* @hidden
|
|
469
|
+
*
|
|
470
|
+
* Defines the template for the Calendar header.
|
|
471
|
+
* Takes precedence over nested templates in the KendoMultiViewCalendar tag.
|
|
472
|
+
*/
|
|
473
|
+
set headerTemplateRef(template) {
|
|
474
|
+
this._headerTemplateRef = template;
|
|
475
|
+
}
|
|
476
|
+
get headerTemplateRef() {
|
|
477
|
+
return this._headerTemplateRef || this.headerTemplate;
|
|
478
|
+
}
|
|
442
479
|
get activeViewEnum() {
|
|
443
480
|
const activeView = CalendarViewEnum[this.activeView];
|
|
444
481
|
return activeView < this.bottomViewEnum ? this.bottomViewEnum : activeView;
|
|
@@ -843,7 +880,7 @@ export class MultiViewCalendarComponent {
|
|
|
843
880
|
}
|
|
844
881
|
}
|
|
845
882
|
MultiViewCalendarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: MultiViewCalendarComponent, deps: [{ token: i1.BusViewService }, { token: i0.ElementRef }, { token: i2.NavigationService }, { token: i0.Renderer2 }, { token: i0.ChangeDetectorRef }, { token: i0.NgZone }, { token: i3.DisabledDatesService }, { token: i4.SelectionService }], target: i0.ɵɵFactoryTarget.Component });
|
|
846
|
-
MultiViewCalendarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: MultiViewCalendarComponent, selector: "kendo-multiviewcalendar", inputs: { showOtherMonthDays: "showOtherMonthDays", showCalendarHeader: "showCalendarHeader", id: "id", focusedDate: "focusedDate", min: "min", max: "max", rangeValidation: "rangeValidation", disabledDatesRangeValidation: "disabledDatesRangeValidation", selection: "selection", value: "value", disabled: "disabled", tabindex: "tabindex", tabIndex: "tabIndex", isActive: "isActive", disabledDates: "disabledDates", activeView: "activeView", bottomView: "bottomView", topView: "topView", showViewHeader: "showViewHeader", animateNavigation: "animateNavigation", weekNumber: "weekNumber", activeRangeEnd: "activeRangeEnd", selectionRange: "selectionRange", views: "views", orientation: "orientation", cellTemplateRef: ["cellTemplate", "cellTemplateRef"], monthCellTemplateRef: ["monthCellTemplate", "monthCellTemplateRef"], yearCellTemplateRef: ["yearCellTemplate", "yearCellTemplateRef"], decadeCellTemplateRef: ["decadeCellTemplate", "decadeCellTemplateRef"], centuryCellTemplateRef: ["centuryCellTemplate", "centuryCellTemplateRef"], weekNumberTemplateRef: ["weekNumberTemplate", "weekNumberTemplateRef"], headerTitleTemplateRef: ["headerTitleTemplate", "headerTitleTemplateRef"] }, outputs: { activeViewChange: "activeViewChange", navigate: "navigate", cellEnter: "cellEnter", cellLeave: "cellLeave", valueChange: "valueChange", blurEvent: "blur", focusEvent: "focus", focusCalendar: "focusCalendar", onClosePopup: "onClosePopup", onTabPress: "onTabPress", onShiftTabPress: "onShiftTabPress" }, host: { listeners: { "mouseenter": "handleMouseEnter()", "mouseleave": "handleMouseLeave()", "mousedown": "handleMousedown($event)", "click": "handleClick()", "keydown": "keydown($event)" }, properties: { "attr.id": "this.widgetId", "attr.aria-disabled": "this.ariaDisabled", "class.k-disabled": "this.ariaDisabled" } }, providers: [
|
|
883
|
+
MultiViewCalendarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: MultiViewCalendarComponent, selector: "kendo-multiviewcalendar", inputs: { showOtherMonthDays: "showOtherMonthDays", showCalendarHeader: "showCalendarHeader", id: "id", focusedDate: "focusedDate", footer: "footer", min: "min", max: "max", rangeValidation: "rangeValidation", disabledDatesRangeValidation: "disabledDatesRangeValidation", selection: "selection", value: "value", disabled: "disabled", tabindex: "tabindex", tabIndex: "tabIndex", weekDaysFormat: "weekDaysFormat", isActive: "isActive", disabledDates: "disabledDates", activeView: "activeView", bottomView: "bottomView", topView: "topView", showViewHeader: "showViewHeader", animateNavigation: "animateNavigation", weekNumber: "weekNumber", activeRangeEnd: "activeRangeEnd", selectionRange: "selectionRange", views: "views", orientation: "orientation", cellTemplateRef: ["cellTemplate", "cellTemplateRef"], monthCellTemplateRef: ["monthCellTemplate", "monthCellTemplateRef"], yearCellTemplateRef: ["yearCellTemplate", "yearCellTemplateRef"], decadeCellTemplateRef: ["decadeCellTemplate", "decadeCellTemplateRef"], centuryCellTemplateRef: ["centuryCellTemplate", "centuryCellTemplateRef"], weekNumberTemplateRef: ["weekNumberTemplate", "weekNumberTemplateRef"], footerTemplateRef: ["footerTemplate", "footerTemplateRef"], headerTitleTemplateRef: ["headerTitleTemplate", "headerTitleTemplateRef"], headerTemplateRef: ["headerTemplate", "headerTemplateRef"] }, outputs: { activeViewChange: "activeViewChange", navigate: "navigate", cellEnter: "cellEnter", cellLeave: "cellLeave", valueChange: "valueChange", blurEvent: "blur", focusEvent: "focus", focusCalendar: "focusCalendar", onClosePopup: "onClosePopup", onTabPress: "onTabPress", onShiftTabPress: "onShiftTabPress" }, host: { listeners: { "mouseenter": "handleMouseEnter()", "mouseleave": "handleMouseLeave()", "mousedown": "handleMousedown($event)", "click": "handleClick()", "keydown": "keydown($event)" }, properties: { "attr.id": "this.widgetId", "attr.aria-disabled": "this.ariaDisabled", "class.k-disabled": "this.ariaDisabled" } }, providers: [
|
|
847
884
|
BusViewService,
|
|
848
885
|
RANGE_CALENDAR_VALUE_ACCESSOR,
|
|
849
886
|
RANGE_CALENDAR_RANGE_VALIDATORS,
|
|
@@ -855,7 +892,7 @@ MultiViewCalendarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0
|
|
|
855
892
|
},
|
|
856
893
|
NavigationService,
|
|
857
894
|
SelectionService
|
|
858
|
-
], queries: [{ propertyName: "cellTemplate", first: true, predicate: CellTemplateDirective, descendants: true }, { propertyName: "monthCellTemplate", first: true, predicate: MonthCellTemplateDirective, descendants: true }, { propertyName: "yearCellTemplate", first: true, predicate: YearCellTemplateDirective, descendants: true }, { propertyName: "decadeCellTemplate", first: true, predicate: DecadeCellTemplateDirective, descendants: true }, { propertyName: "centuryCellTemplate", first: true, predicate: CenturyCellTemplateDirective, descendants: true }, { propertyName: "weekNumberTemplate", first: true, predicate: WeekNumberCellTemplateDirective, descendants: true }, { propertyName: "headerTitleTemplate", first: true, predicate: HeaderTitleTemplateDirective, descendants: true }], viewQueries: [{ propertyName: "headerElement", first: true, predicate: HeaderComponent, descendants: true, read: ElementRef }, { propertyName: "viewList", first: true, predicate: HorizontalViewListComponent, descendants: true }], exportAs: ["kendo-multiviewcalendar"], usesOnChanges: true, ngImport: i0, template: `
|
|
895
|
+
], queries: [{ propertyName: "cellTemplate", first: true, predicate: CellTemplateDirective, descendants: true }, { propertyName: "monthCellTemplate", first: true, predicate: MonthCellTemplateDirective, descendants: true }, { propertyName: "yearCellTemplate", first: true, predicate: YearCellTemplateDirective, descendants: true }, { propertyName: "decadeCellTemplate", first: true, predicate: DecadeCellTemplateDirective, descendants: true }, { propertyName: "centuryCellTemplate", first: true, predicate: CenturyCellTemplateDirective, descendants: true }, { propertyName: "weekNumberTemplate", first: true, predicate: WeekNumberCellTemplateDirective, descendants: true }, { propertyName: "headerTitleTemplate", first: true, predicate: HeaderTitleTemplateDirective, descendants: true }, { propertyName: "headerTemplate", first: true, predicate: HeaderTemplateDirective, descendants: true }, { propertyName: "footerTemplate", first: true, predicate: FooterTemplateDirective, descendants: true }], viewQueries: [{ propertyName: "headerElement", first: true, predicate: HeaderComponent, descendants: true, read: ElementRef }, { propertyName: "viewList", first: true, predicate: HorizontalViewListComponent, descendants: true }], exportAs: ["kendo-multiviewcalendar"], usesOnChanges: true, ngImport: i0, template: `
|
|
859
896
|
<ng-container kendoMultiViewCalendarLocalizedMessages
|
|
860
897
|
i18n-today="kendo.multiviewcalendar.today|The label for the today button in the calendar header"
|
|
861
898
|
today="Today"
|
|
@@ -878,7 +915,8 @@ MultiViewCalendarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0
|
|
|
878
915
|
[max]="max"
|
|
879
916
|
[id]="headerId"
|
|
880
917
|
[rangeLength]="views"
|
|
881
|
-
[
|
|
918
|
+
[titleTemplateRef]="headerTitleTemplateRef?.templateRef"
|
|
919
|
+
[headerTemplateRef]="headerTemplateRef?.templateRef"
|
|
882
920
|
[isPrevDisabled]="isPrevDisabled"
|
|
883
921
|
[isNextDisabled]="isNextDisabled"
|
|
884
922
|
[showNavigationButtons]="true"
|
|
@@ -898,6 +936,7 @@ MultiViewCalendarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0
|
|
|
898
936
|
[cellTemplateRef]="activeCellTemplate()?.templateRef"
|
|
899
937
|
[weekNumberTemplateRef]="weekNumberTemplateRef?.templateRef"
|
|
900
938
|
[cellUID]="cellUID"
|
|
939
|
+
[weekDaysFormat]="weekDaysFormat"
|
|
901
940
|
[views]="views"
|
|
902
941
|
[min]="min"
|
|
903
942
|
[max]="max"
|
|
@@ -920,7 +959,13 @@ MultiViewCalendarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0
|
|
|
920
959
|
(blurCalendar)="handleFocusout($event)"
|
|
921
960
|
>
|
|
922
961
|
</kendo-calendar-horizontal>
|
|
923
|
-
|
|
962
|
+
<kendo-calendar-footer
|
|
963
|
+
*ngIf="footer"
|
|
964
|
+
[footerTemplateRef]="footerTemplateRef?.templateRef"
|
|
965
|
+
[activeViewValue]="activeView"
|
|
966
|
+
[currentDate]="activeDate">
|
|
967
|
+
</kendo-calendar-footer>
|
|
968
|
+
`, isInline: true, components: [{ type: i5.HeaderComponent, selector: "kendo-calendar-header", inputs: ["activeView", "currentDate", "min", "max", "rangeLength", "titleTemplateRef", "headerTemplateRef", "isPrevDisabled", "isNextDisabled", "showNavigationButtons", "orientation", "id"], outputs: ["todayButtonClick", "prevButtonClick", "nextButtonClick"] }, { type: i6.HorizontalViewListComponent, selector: "kendo-calendar-horizontal", inputs: ["showOtherMonthDays", "cellTemplateRef", "weekNumberTemplateRef", "activeRangeEnd", "activeView", "cellUID", "focusedDate", "isActive", "min", "max", "selectionRange", "selectedDates", "views", "showViewHeader", "animateNavigation", "orientation", "activeDescendant", "tabIndex", "disabled", "id", "weekDaysFormat", "weekNumber"], outputs: ["cellClick", "weekNumberCellClick", "cellEnter", "cellLeave", "activeDateChange", "focusCalendar", "blurCalendar", "focusedCellChange"] }, { type: i7.FooterComponent, selector: "kendo-calendar-footer", inputs: ["footerTemplateRef", "activeViewValue", "currentDate"] }], directives: [{ type: i8.MultiViewCalendarLocalizedMessagesDirective, selector: "[kendoMultiViewCalendarLocalizedMessages]" }, { type: i9.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
924
969
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: MultiViewCalendarComponent, decorators: [{
|
|
925
970
|
type: Component,
|
|
926
971
|
args: [{
|
|
@@ -963,7 +1008,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
963
1008
|
[max]="max"
|
|
964
1009
|
[id]="headerId"
|
|
965
1010
|
[rangeLength]="views"
|
|
966
|
-
[
|
|
1011
|
+
[titleTemplateRef]="headerTitleTemplateRef?.templateRef"
|
|
1012
|
+
[headerTemplateRef]="headerTemplateRef?.templateRef"
|
|
967
1013
|
[isPrevDisabled]="isPrevDisabled"
|
|
968
1014
|
[isNextDisabled]="isNextDisabled"
|
|
969
1015
|
[showNavigationButtons]="true"
|
|
@@ -983,6 +1029,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
983
1029
|
[cellTemplateRef]="activeCellTemplate()?.templateRef"
|
|
984
1030
|
[weekNumberTemplateRef]="weekNumberTemplateRef?.templateRef"
|
|
985
1031
|
[cellUID]="cellUID"
|
|
1032
|
+
[weekDaysFormat]="weekDaysFormat"
|
|
986
1033
|
[views]="views"
|
|
987
1034
|
[min]="min"
|
|
988
1035
|
[max]="max"
|
|
@@ -1005,6 +1052,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
1005
1052
|
(blurCalendar)="handleFocusout($event)"
|
|
1006
1053
|
>
|
|
1007
1054
|
</kendo-calendar-horizontal>
|
|
1055
|
+
<kendo-calendar-footer
|
|
1056
|
+
*ngIf="footer"
|
|
1057
|
+
[footerTemplateRef]="footerTemplateRef?.templateRef"
|
|
1058
|
+
[activeViewValue]="activeView"
|
|
1059
|
+
[currentDate]="activeDate">
|
|
1060
|
+
</kendo-calendar-footer>
|
|
1008
1061
|
`
|
|
1009
1062
|
}]
|
|
1010
1063
|
}], ctorParameters: function () { return [{ type: i1.BusViewService }, { type: i0.ElementRef }, { type: i2.NavigationService }, { type: i0.Renderer2 }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }, { type: i3.DisabledDatesService }, { type: i4.SelectionService }]; }, propDecorators: { showOtherMonthDays: [{
|
|
@@ -1015,6 +1068,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
1015
1068
|
type: Input
|
|
1016
1069
|
}], focusedDate: [{
|
|
1017
1070
|
type: Input
|
|
1071
|
+
}], footer: [{
|
|
1072
|
+
type: Input
|
|
1018
1073
|
}], min: [{
|
|
1019
1074
|
type: Input
|
|
1020
1075
|
}], max: [{
|
|
@@ -1033,6 +1088,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
1033
1088
|
type: Input
|
|
1034
1089
|
}], tabIndex: [{
|
|
1035
1090
|
type: Input
|
|
1091
|
+
}], weekDaysFormat: [{
|
|
1092
|
+
type: Input
|
|
1036
1093
|
}], isActive: [{
|
|
1037
1094
|
type: Input
|
|
1038
1095
|
}], disabledDates: [{
|
|
@@ -1120,9 +1177,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
1120
1177
|
}], headerTitleTemplate: [{
|
|
1121
1178
|
type: ContentChild,
|
|
1122
1179
|
args: [HeaderTitleTemplateDirective, { static: false }]
|
|
1180
|
+
}], headerTemplate: [{
|
|
1181
|
+
type: ContentChild,
|
|
1182
|
+
args: [HeaderTemplateDirective]
|
|
1183
|
+
}], footerTemplate: [{
|
|
1184
|
+
type: ContentChild,
|
|
1185
|
+
args: [FooterTemplateDirective]
|
|
1186
|
+
}], footerTemplateRef: [{
|
|
1187
|
+
type: Input,
|
|
1188
|
+
args: ['footerTemplate']
|
|
1123
1189
|
}], headerTitleTemplateRef: [{
|
|
1124
1190
|
type: Input,
|
|
1125
1191
|
args: ['headerTitleTemplate']
|
|
1192
|
+
}], headerTemplateRef: [{
|
|
1193
|
+
type: Input,
|
|
1194
|
+
args: ['headerTemplate']
|
|
1126
1195
|
}], headerElement: [{
|
|
1127
1196
|
type: ViewChild,
|
|
1128
1197
|
args: [HeaderComponent, { static: false, read: ElementRef }]
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { Directive, TemplateRef } from '@angular/core';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
/**
|
|
8
|
+
* Used for rendering the footer of the Calendar. To define the footer template, nest an `<ng-template>` tag
|
|
9
|
+
* with the `kendoCalendarFooterTemplate` directive inside the component tag. The template context is set to the
|
|
10
|
+
* current component. To get a reference to the current `date` use the `let-date` directive. To get a reference to the
|
|
11
|
+
* current active view use the `let-activeView` directive.
|
|
12
|
+
*
|
|
13
|
+
* For more examples, refer to the article on [templates]({% slug templates_calendar %}).
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```ts
|
|
17
|
+
* _@Component({
|
|
18
|
+
* selector: 'my-app',
|
|
19
|
+
* styles: ['.custom { color: red; }'],
|
|
20
|
+
* template: `
|
|
21
|
+
* <kendo-calendar>
|
|
22
|
+
* <ng-template kendoCalendarFooterTemplate let-date>
|
|
23
|
+
* <span class="custom">{{date}}</span>
|
|
24
|
+
* </ng-template>
|
|
25
|
+
* </kendo-calendar>
|
|
26
|
+
* `
|
|
27
|
+
* })
|
|
28
|
+
* export class AppComponent { }
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
export class FooterTemplateDirective {
|
|
32
|
+
constructor(templateRef) {
|
|
33
|
+
this.templateRef = templateRef;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
FooterTemplateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: FooterTemplateDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
37
|
+
FooterTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.12", type: FooterTemplateDirective, selector: "[kendoCalendarFooterTemplate]", ngImport: i0 });
|
|
38
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: FooterTemplateDirective, decorators: [{
|
|
39
|
+
type: Directive,
|
|
40
|
+
args: [{
|
|
41
|
+
selector: '[kendoCalendarFooterTemplate]'
|
|
42
|
+
}]
|
|
43
|
+
}], ctorParameters: function () { return [{ type: i0.TemplateRef }]; } });
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { Directive, TemplateRef } from '@angular/core';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
/**
|
|
8
|
+
* Used for rendering the header of the Calendar. To define the header template, nest an `<ng-template>` tag
|
|
9
|
+
* with the `kendoCalendarHeaderTemplate` directive inside the component tag. The template context is set to the
|
|
10
|
+
* current component. To get a reference to the current title, use the `let-title` directive. To provide more details about
|
|
11
|
+
* the current title, get a reference to the current `date` by using the `let-date` directive or get a reference to the
|
|
12
|
+
* current active view by using the `let-activeView` directive.
|
|
13
|
+
*
|
|
14
|
+
* For more examples, refer to the article on [templates]({% slug templates_calendar %}).
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```ts
|
|
18
|
+
* _@Component({
|
|
19
|
+
* selector: 'my-app',
|
|
20
|
+
* styles: ['.custom { color: red; }'],
|
|
21
|
+
* template: `
|
|
22
|
+
* <kendo-calendar>
|
|
23
|
+
* <ng-template kendoCalendarHeaderTemplate let-title>
|
|
24
|
+
* <span class="custom">{{title}}</span>
|
|
25
|
+
* </ng-template>
|
|
26
|
+
* </kendo-calendar>
|
|
27
|
+
* `
|
|
28
|
+
* })
|
|
29
|
+
* export class AppComponent { }
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
export class HeaderTemplateDirective {
|
|
33
|
+
constructor(templateRef) {
|
|
34
|
+
this.templateRef = templateRef;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
HeaderTemplateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: HeaderTemplateDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
38
|
+
HeaderTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.12", type: HeaderTemplateDirective, selector: "[kendoCalendarHeaderTemplate]", ngImport: i0 });
|
|
39
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: HeaderTemplateDirective, decorators: [{
|
|
40
|
+
type: Directive,
|
|
41
|
+
args: [{
|
|
42
|
+
selector: '[kendoCalendarHeaderTemplate]'
|
|
43
|
+
}]
|
|
44
|
+
}], ctorParameters: function () { return [{ type: i0.TemplateRef }]; } });
|
|
@@ -11,6 +11,8 @@ import { CenturyCellTemplateDirective } from './templates/century-cell-template.
|
|
|
11
11
|
import { WeekNumberCellTemplateDirective } from './templates/weeknumber-cell-template.directive';
|
|
12
12
|
import { HeaderTitleTemplateDirective } from './templates/header-title-template.directive';
|
|
13
13
|
import { NavigationItemTemplateDirective } from './templates/navigation-item-template.directive';
|
|
14
|
+
import { HeaderTemplateDirective } from './templates/header-template.directive';
|
|
15
|
+
import { FooterTemplateDirective } from './templates/footer-template.directivе';
|
|
14
16
|
import * as i0 from "@angular/core";
|
|
15
17
|
/**
|
|
16
18
|
* @hidden
|
|
@@ -37,14 +39,18 @@ TemplatesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version
|
|
|
37
39
|
CenturyCellTemplateDirective,
|
|
38
40
|
WeekNumberCellTemplateDirective,
|
|
39
41
|
HeaderTitleTemplateDirective,
|
|
40
|
-
NavigationItemTemplateDirective
|
|
42
|
+
NavigationItemTemplateDirective,
|
|
43
|
+
HeaderTemplateDirective,
|
|
44
|
+
FooterTemplateDirective], exports: [CellTemplateDirective,
|
|
41
45
|
MonthCellTemplateDirective,
|
|
42
46
|
YearCellTemplateDirective,
|
|
43
47
|
DecadeCellTemplateDirective,
|
|
44
48
|
CenturyCellTemplateDirective,
|
|
45
49
|
WeekNumberCellTemplateDirective,
|
|
46
50
|
HeaderTitleTemplateDirective,
|
|
47
|
-
NavigationItemTemplateDirective
|
|
51
|
+
NavigationItemTemplateDirective,
|
|
52
|
+
HeaderTemplateDirective,
|
|
53
|
+
FooterTemplateDirective] });
|
|
48
54
|
TemplatesModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: TemplatesModule });
|
|
49
55
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: TemplatesModule, decorators: [{
|
|
50
56
|
type: NgModule,
|
|
@@ -57,7 +63,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
57
63
|
CenturyCellTemplateDirective,
|
|
58
64
|
WeekNumberCellTemplateDirective,
|
|
59
65
|
HeaderTitleTemplateDirective,
|
|
60
|
-
NavigationItemTemplateDirective
|
|
66
|
+
NavigationItemTemplateDirective,
|
|
67
|
+
HeaderTemplateDirective,
|
|
68
|
+
FooterTemplateDirective
|
|
61
69
|
],
|
|
62
70
|
exports: [
|
|
63
71
|
CellTemplateDirective,
|
|
@@ -67,7 +75,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
67
75
|
CenturyCellTemplateDirective,
|
|
68
76
|
WeekNumberCellTemplateDirective,
|
|
69
77
|
HeaderTitleTemplateDirective,
|
|
70
|
-
NavigationItemTemplateDirective
|
|
78
|
+
NavigationItemTemplateDirective,
|
|
79
|
+
HeaderTemplateDirective,
|
|
80
|
+
FooterTemplateDirective
|
|
71
81
|
]
|
|
72
82
|
}]
|
|
73
83
|
}] });
|
|
@@ -19,8 +19,9 @@ import * as i3 from "./services/dom.service";
|
|
|
19
19
|
import * as i4 from "./header.component";
|
|
20
20
|
import * as i5 from "../virtualization/virtualization.component";
|
|
21
21
|
import * as i6 from "./view.component";
|
|
22
|
-
import * as i7 from "
|
|
23
|
-
import * as i8 from "
|
|
22
|
+
import * as i7 from "./footer.component";
|
|
23
|
+
import * as i8 from "@angular/common";
|
|
24
|
+
import * as i9 from "./for.directive";
|
|
24
25
|
const VIEWS_COUNT = 5;
|
|
25
26
|
const isEqualMonthYear = (date1, date2) => (date1 && date2 &&
|
|
26
27
|
date1.getFullYear() === date2.getFullYear() &&
|
|
@@ -41,6 +42,8 @@ export class ViewListComponent {
|
|
|
41
42
|
this.selectedDates = [];
|
|
42
43
|
this.tabIndex = 0;
|
|
43
44
|
this.disabled = false;
|
|
45
|
+
this.showFooter = false;
|
|
46
|
+
this.weekDaysFormat = 'short';
|
|
44
47
|
this.cellClick = new EventEmitter();
|
|
45
48
|
this.weekNumberCellClick = new EventEmitter();
|
|
46
49
|
this.activeDateChange = new EventEmitter();
|
|
@@ -80,8 +83,11 @@ export class ViewListComponent {
|
|
|
80
83
|
get getComponentCenturyClass() {
|
|
81
84
|
return this.activeView === CalendarViewEnum.century;
|
|
82
85
|
}
|
|
86
|
+
get activeViewValue() {
|
|
87
|
+
return CalendarViewEnum[this.activeView];
|
|
88
|
+
}
|
|
83
89
|
ngOnInit() {
|
|
84
|
-
this.weekNames = this.getWeekNames(
|
|
90
|
+
this.weekNames = this.getWeekNames(this.weekDaysFormat);
|
|
85
91
|
this.wideWeekNames = this.getWeekNames('wide');
|
|
86
92
|
this.bottomOffset = this.getBottomOffset();
|
|
87
93
|
this.viewOffset = -1 * this.dom.headerHeight;
|
|
@@ -94,7 +100,7 @@ export class ViewListComponent {
|
|
|
94
100
|
return;
|
|
95
101
|
}
|
|
96
102
|
this.cols = new Array(this.service.rowLength({ prependCell: this.weekNumber })).fill('');
|
|
97
|
-
this.weekNames = hasChange(changes, 'weekNumber') && this.weekNumber ? this.getWeekNames(
|
|
103
|
+
this.weekNames = hasChange(changes, 'weekNumber') && this.weekNumber ? this.getWeekNames(this.weekDaysFormat) : this.weekNames;
|
|
98
104
|
this.wideWeekNames = hasChange(changes, 'weekNumber') && this.weekNumber ? this.getWeekNames('wide') : this.weekNames;
|
|
99
105
|
const activeViewChanged = hasChange(changes, 'activeView');
|
|
100
106
|
const focusedDate = this.focusedDate;
|
|
@@ -179,7 +185,7 @@ export class ViewListComponent {
|
|
|
179
185
|
return this.weekNumber ? [''].concat(weekNames) : weekNames;
|
|
180
186
|
}
|
|
181
187
|
intlChange() {
|
|
182
|
-
this.weekNames = this.getWeekNames(
|
|
188
|
+
this.weekNames = this.getWeekNames(this.weekDaysFormat);
|
|
183
189
|
this.wideWeekNames = this.getWeekNames('wide');
|
|
184
190
|
if (this.isMonthView()) {
|
|
185
191
|
this.cdr.markForCheck();
|
|
@@ -187,14 +193,15 @@ export class ViewListComponent {
|
|
|
187
193
|
}
|
|
188
194
|
}
|
|
189
195
|
ViewListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ViewListComponent, deps: [{ token: i1.BusViewService }, { token: i0.ChangeDetectorRef }, { token: i2.IntlService }, { token: i3.CalendarDOMService }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
|
|
190
|
-
ViewListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: ViewListComponent, selector: "kendo-calendar-viewlist", inputs: { cellTemplateRef: "cellTemplateRef", weekNumberTemplateRef: "weekNumberTemplateRef", headerTitleTemplateRef: "headerTitleTemplateRef", showOtherMonthDays: "showOtherMonthDays", activeView: "activeView", cellUID: "cellUID", focusedDate: "focusedDate", isActive: "isActive", min: "min", max: "max", selectedDates: "selectedDates", tabIndex: "tabIndex", disabled: "disabled", id: "id", weekNumber: "weekNumber" }, outputs: { cellClick: "cellClick", weekNumberCellClick: "weekNumberCellClick", activeDateChange: "activeDateChange", todayButtonClick: "todayButtonClick", pageChange: "pageChange", focusCalendar: "focusCalendar", blurCalendar: "blurCalendar", focusedCellChange: "focusedCellChange" }, host: { properties: { "class.k-vstack": "this.getComponentClass", "class.k-calendar-view": "this.getComponentClass", "class.k-calendar-monthview": "this.getComponentMonthClass", "class.k-calendar-yearview": "this.getComponentYearClass", "class.k-calendar-decadeview": "this.getComponentDecadeClass", "class.k-calendar-centuryview": "this.getComponentCenturyClass" } }, viewQueries: [{ propertyName: "virtualization", first: true, predicate: VirtualizationComponent, descendants: true }, { propertyName: "headerComponent", first: true, predicate: HeaderComponent, descendants: true }, { propertyName: "list", first: true, predicate: ["list"], descendants: true, static: true }], usesOnChanges: true, ngImport: i0, template: `
|
|
196
|
+
ViewListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: ViewListComponent, selector: "kendo-calendar-viewlist", inputs: { cellTemplateRef: "cellTemplateRef", weekNumberTemplateRef: "weekNumberTemplateRef", headerTitleTemplateRef: "headerTitleTemplateRef", headerTemplateRef: "headerTemplateRef", footerTemplateRef: "footerTemplateRef", showOtherMonthDays: "showOtherMonthDays", activeView: "activeView", cellUID: "cellUID", focusedDate: "focusedDate", isActive: "isActive", min: "min", max: "max", selectedDates: "selectedDates", tabIndex: "tabIndex", disabled: "disabled", id: "id", showFooter: "showFooter", weekDaysFormat: "weekDaysFormat", weekNumber: "weekNumber" }, outputs: { cellClick: "cellClick", weekNumberCellClick: "weekNumberCellClick", activeDateChange: "activeDateChange", todayButtonClick: "todayButtonClick", pageChange: "pageChange", focusCalendar: "focusCalendar", blurCalendar: "blurCalendar", focusedCellChange: "focusedCellChange" }, host: { properties: { "class.k-vstack": "this.getComponentClass", "class.k-calendar-view": "this.getComponentClass", "class.k-calendar-monthview": "this.getComponentMonthClass", "class.k-calendar-yearview": "this.getComponentYearClass", "class.k-calendar-decadeview": "this.getComponentDecadeClass", "class.k-calendar-centuryview": "this.getComponentCenturyClass" } }, viewQueries: [{ propertyName: "virtualization", first: true, predicate: VirtualizationComponent, descendants: true }, { propertyName: "headerComponent", first: true, predicate: HeaderComponent, descendants: true }, { propertyName: "list", first: true, predicate: ["list"], descendants: true, static: true }], usesOnChanges: true, ngImport: i0, template: `
|
|
191
197
|
<kendo-calendar-header
|
|
192
198
|
[currentDate]="activeDate"
|
|
193
199
|
[min]="min"
|
|
194
200
|
[max]="max"
|
|
195
201
|
[id]="id"
|
|
196
202
|
[activeView]="activeView"
|
|
197
|
-
[
|
|
203
|
+
[titleTemplateRef]="headerTitleTemplateRef"
|
|
204
|
+
[headerTemplateRef]="headerTemplateRef"
|
|
198
205
|
(todayButtonClick)="todayButtonClick.emit($event)"
|
|
199
206
|
>
|
|
200
207
|
</kendo-calendar-header>
|
|
@@ -252,7 +259,13 @@ ViewListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", vers
|
|
|
252
259
|
></tbody>
|
|
253
260
|
</table>
|
|
254
261
|
</kendo-virtualization>
|
|
255
|
-
|
|
262
|
+
<kendo-calendar-footer
|
|
263
|
+
*ngIf="showFooter"
|
|
264
|
+
[footerTemplateRef]="footerTemplateRef"
|
|
265
|
+
[activeViewValue]="activeViewValue"
|
|
266
|
+
[currentDate]="activeDate">
|
|
267
|
+
</kendo-calendar-footer>
|
|
268
|
+
`, isInline: true, components: [{ type: i4.HeaderComponent, selector: "kendo-calendar-header", inputs: ["activeView", "currentDate", "min", "max", "rangeLength", "titleTemplateRef", "headerTemplateRef", "isPrevDisabled", "isNextDisabled", "showNavigationButtons", "orientation", "id"], outputs: ["todayButtonClick", "prevButtonClick", "nextButtonClick"] }, { type: i5.VirtualizationComponent, selector: "kendo-virtualization", inputs: ["direction", "itemHeight", "itemWidth", "topOffset", "bottomOffset", "maxScrollDifference", "scrollOffsetSize", "scrollDuration", "skip", "take", "total"], outputs: ["activeIndexChange", "pageChange", "scrollChange"] }, { type: i6.ViewComponent, selector: "[kendoCalendarView]", inputs: ["showOtherMonthDays", "direction", "isActive", "activeView", "cellUID", "focusedDate", "viewDate", "activeRangeEnd", "selectionRange", "min", "max", "selectedDates", "weekNumber", "viewIndex", "templateRef", "weekNumberTemplateRef", "headerTitle"], outputs: ["cellClick", "weekNumberCellClick", "cellEnter", "cellLeave", "focusedCellId"] }, { type: i7.FooterComponent, selector: "kendo-calendar-footer", inputs: ["footerTemplateRef", "activeViewValue", "currentDate"] }], directives: [{ type: i8.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i8.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i9.KForOf, selector: "[kFor][kForOf]", inputs: ["kForOf", "kForTrackBy", "kForTemplate"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
256
269
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ViewListComponent, decorators: [{
|
|
257
270
|
type: Component,
|
|
258
271
|
args: [{
|
|
@@ -265,7 +278,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
265
278
|
[max]="max"
|
|
266
279
|
[id]="id"
|
|
267
280
|
[activeView]="activeView"
|
|
268
|
-
[
|
|
281
|
+
[titleTemplateRef]="headerTitleTemplateRef"
|
|
282
|
+
[headerTemplateRef]="headerTemplateRef"
|
|
269
283
|
(todayButtonClick)="todayButtonClick.emit($event)"
|
|
270
284
|
>
|
|
271
285
|
</kendo-calendar-header>
|
|
@@ -323,6 +337,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
323
337
|
></tbody>
|
|
324
338
|
</table>
|
|
325
339
|
</kendo-virtualization>
|
|
340
|
+
<kendo-calendar-footer
|
|
341
|
+
*ngIf="showFooter"
|
|
342
|
+
[footerTemplateRef]="footerTemplateRef"
|
|
343
|
+
[activeViewValue]="activeViewValue"
|
|
344
|
+
[currentDate]="activeDate">
|
|
345
|
+
</kendo-calendar-footer>
|
|
326
346
|
`
|
|
327
347
|
}]
|
|
328
348
|
}], ctorParameters: function () { return [{ type: i1.BusViewService }, { type: i0.ChangeDetectorRef }, { type: i2.IntlService }, { type: i3.CalendarDOMService }, { type: i0.Renderer2 }]; }, propDecorators: { cellTemplateRef: [{
|
|
@@ -331,6 +351,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
331
351
|
type: Input
|
|
332
352
|
}], headerTitleTemplateRef: [{
|
|
333
353
|
type: Input
|
|
354
|
+
}], headerTemplateRef: [{
|
|
355
|
+
type: Input
|
|
356
|
+
}], footerTemplateRef: [{
|
|
357
|
+
type: Input
|
|
334
358
|
}], showOtherMonthDays: [{
|
|
335
359
|
type: Input
|
|
336
360
|
}], activeView: [{
|
|
@@ -353,6 +377,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
353
377
|
type: Input
|
|
354
378
|
}], id: [{
|
|
355
379
|
type: Input
|
|
380
|
+
}], showFooter: [{
|
|
381
|
+
type: Input
|
|
382
|
+
}], weekDaysFormat: [{
|
|
383
|
+
type: Input
|
|
356
384
|
}], weekNumber: [{
|
|
357
385
|
type: Input
|
|
358
386
|
}], cellClick: [{
|
|
@@ -18,7 +18,6 @@ import * as i2 from "@progress/kendo-angular-intl";
|
|
|
18
18
|
import * as i3 from "./services/disabled-dates.service";
|
|
19
19
|
import * as i4 from "@angular/common";
|
|
20
20
|
import * as i5 from "./for.directive";
|
|
21
|
-
import * as i6 from "@progress/kendo-angular-common";
|
|
22
21
|
/**
|
|
23
22
|
* @hidden
|
|
24
23
|
*/
|
|
@@ -244,9 +243,7 @@ ViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version:
|
|
|
244
243
|
class="k-alt k-calendar-td"
|
|
245
244
|
role="gridcell"
|
|
246
245
|
*ngIf="firstDate(row); else emptyCell"
|
|
247
|
-
|
|
248
|
-
click: handleWeekNumberClick.bind(this, row)
|
|
249
|
-
}"
|
|
246
|
+
(click)="handleWeekNumberClick(row)"
|
|
250
247
|
>
|
|
251
248
|
<ng-template [ngIf]="!weekNumberTemplateRef">
|
|
252
249
|
{{getWeekNumber(firstDate(row))}}
|
|
@@ -284,7 +281,7 @@ ViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version:
|
|
|
284
281
|
</td>
|
|
285
282
|
</ng-container>
|
|
286
283
|
</tr>
|
|
287
|
-
`, isInline: true, directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i5.KForOf, selector: "[kFor][kForOf]", inputs: ["kForOf", "kForTrackBy", "kForTemplate"] }, { type:
|
|
284
|
+
`, isInline: true, directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i5.KForOf, selector: "[kFor][kForOf]", inputs: ["kForOf", "kForTrackBy", "kForTemplate"] }, { type: i4.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
288
285
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ViewComponent, decorators: [{
|
|
289
286
|
type: Component,
|
|
290
287
|
args: [{
|
|
@@ -299,9 +296,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
299
296
|
class="k-alt k-calendar-td"
|
|
300
297
|
role="gridcell"
|
|
301
298
|
*ngIf="firstDate(row); else emptyCell"
|
|
302
|
-
|
|
303
|
-
click: handleWeekNumberClick.bind(this, row)
|
|
304
|
-
}"
|
|
299
|
+
(click)="handleWeekNumberClick(row)"
|
|
305
300
|
>
|
|
306
301
|
<ng-template [ngIf]="!weekNumberTemplateRef">
|
|
307
302
|
{{getWeekNumber(firstDate(row))}}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
export {};
|