@progress/kendo-angular-dateinputs 16.0.0-develop.13 → 16.0.0-develop.15
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/header.component.d.ts +3 -2
- package/calendar/multiview-calendar.component.d.ts +18 -1
- package/calendar/view-list.component.d.ts +3 -1
- package/daterange/date-range-popup.component.d.ts +16 -1
- package/daterange/date-range.component.d.ts +16 -1
- package/datetimepicker/datetimepicker.component.d.ts +5 -0
- package/esm2020/calendar/calendar.component.mjs +16 -13
- package/esm2020/calendar/header.component.mjs +39 -21
- package/esm2020/calendar/horizontal-view-list.component.mjs +2 -2
- package/esm2020/calendar/multiview-calendar.component.mjs +38 -7
- package/esm2020/calendar/services/dom.service.mjs +2 -2
- package/esm2020/calendar/view-list.component.mjs +6 -2
- package/esm2020/common/utils.mjs +1 -1
- package/esm2020/datepicker/datepicker.component.mjs +2 -2
- package/esm2020/daterange/date-range-popup.component.mjs +6 -2
- package/esm2020/daterange/date-range.component.mjs +8 -6
- package/esm2020/datetimepicker/datetimepicker.component.mjs +16 -4
- package/esm2020/package-metadata.mjs +2 -2
- package/esm2020/timepicker/timepicker.component.mjs +1 -1
- package/esm2020/timepicker/timeselector.component.mjs +22 -7
- package/fesm2015/progress-kendo-angular-dateinputs.mjs +161 -71
- package/fesm2020/progress-kendo-angular-dateinputs.mjs +159 -70
- package/package.json +8 -8
- package/timepicker/timeselector.component.d.ts +2 -1
|
@@ -11,6 +11,7 @@ import { CalendarOrientation } from './models/orientation';
|
|
|
11
11
|
import { BusViewService } from './services/bus-view.service';
|
|
12
12
|
import { DisabledDatesService } from './services/disabled-dates.service';
|
|
13
13
|
import { SVGIcon } from '@progress/kendo-svg-icons';
|
|
14
|
+
import { DateInputSize } from '../common/models/size';
|
|
14
15
|
import * as i0 from "@angular/core";
|
|
15
16
|
/**
|
|
16
17
|
* @hidden
|
|
@@ -49,11 +50,11 @@ export declare class HeaderComponent implements OnChanges, OnInit, OnDestroy {
|
|
|
49
50
|
showNavigationButtons: boolean;
|
|
50
51
|
orientation: CalendarOrientation;
|
|
51
52
|
id: string;
|
|
53
|
+
size: DateInputSize;
|
|
52
54
|
todayButtonClick: EventEmitter<Date>;
|
|
53
55
|
prevButtonClick: EventEmitter<any>;
|
|
54
56
|
nextButtonClick: EventEmitter<any>;
|
|
55
57
|
getComponentClass: boolean;
|
|
56
|
-
get horizontalHostClass(): boolean;
|
|
57
58
|
get verticalHostClass(): boolean;
|
|
58
59
|
private subscriptions;
|
|
59
60
|
constructor(bus: BusViewService, cdr: ChangeDetectorRef, localization: LocalizationService, intl: IntlService, disabledDatesService: DisabledDatesService);
|
|
@@ -68,5 +69,5 @@ export declare class HeaderComponent implements OnChanges, OnInit, OnDestroy {
|
|
|
68
69
|
private getTitle;
|
|
69
70
|
private setTodayAvailability;
|
|
70
71
|
static ɵfac: i0.ɵɵFactoryDeclaration<HeaderComponent, never>;
|
|
71
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<HeaderComponent, "kendo-calendar-header", never, { "activeView": "activeView"; "currentDate": "currentDate"; "min": "min"; "max": "max"; "rangeLength": "rangeLength"; "titleTemplateRef": "titleTemplateRef"; "headerTemplateRef": "headerTemplateRef"; "isPrevDisabled": "isPrevDisabled"; "isNextDisabled": "isNextDisabled"; "showNavigationButtons": "showNavigationButtons"; "orientation": "orientation"; "id": "id"; }, { "todayButtonClick": "todayButtonClick"; "prevButtonClick": "prevButtonClick"; "nextButtonClick": "nextButtonClick"; }, never, never, false, never>;
|
|
72
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HeaderComponent, "kendo-calendar-header", never, { "activeView": "activeView"; "currentDate": "currentDate"; "min": "min"; "max": "max"; "rangeLength": "rangeLength"; "titleTemplateRef": "titleTemplateRef"; "headerTemplateRef": "headerTemplateRef"; "isPrevDisabled": "isPrevDisabled"; "isNextDisabled": "isNextDisabled"; "showNavigationButtons": "showNavigationButtons"; "orientation": "orientation"; "id": "id"; "size": "size"; }, { "todayButtonClick": "todayButtonClick"; "prevButtonClick": "prevButtonClick"; "nextButtonClick": "nextButtonClick"; }, never, never, false, never>;
|
|
72
73
|
}
|
|
@@ -28,6 +28,7 @@ import { NavigationService } from './services/navigation.service';
|
|
|
28
28
|
import { HeaderTemplateDirective } from './templates/header-template.directive';
|
|
29
29
|
import { FooterTemplateDirective } from './templates/footer-template.directivе';
|
|
30
30
|
import { WeekDaysFormat } from '../common/models/week-days-format';
|
|
31
|
+
import { DateInputSize } from '../common/models/size';
|
|
31
32
|
import * as i0 from "@angular/core";
|
|
32
33
|
/**
|
|
33
34
|
* @hidden
|
|
@@ -71,6 +72,22 @@ export declare class MultiViewCalendarComponent implements AfterViewInit, Contro
|
|
|
71
72
|
* Determines whether to display the calendar header.
|
|
72
73
|
*/
|
|
73
74
|
showCalendarHeader: boolean;
|
|
75
|
+
/**
|
|
76
|
+
* @hidden
|
|
77
|
+
*
|
|
78
|
+
* TODO: Make visible when the Infinite Calendar is fixed to set properly the size option.
|
|
79
|
+
* Sets the size of the component.
|
|
80
|
+
*
|
|
81
|
+
* The possible values are:
|
|
82
|
+
* * `small`
|
|
83
|
+
* * `medium` (Default)
|
|
84
|
+
* * `large`
|
|
85
|
+
* * `none`
|
|
86
|
+
*
|
|
87
|
+
*/
|
|
88
|
+
set size(size: DateInputSize);
|
|
89
|
+
get size(): DateInputSize;
|
|
90
|
+
private _size;
|
|
74
91
|
/**
|
|
75
92
|
* @hidden
|
|
76
93
|
*/
|
|
@@ -624,5 +641,5 @@ export declare class MultiViewCalendarComponent implements AfterViewInit, Contro
|
|
|
624
641
|
private performRangeSelection;
|
|
625
642
|
private performSelection;
|
|
626
643
|
static ɵfac: i0.ɵɵFactoryDeclaration<MultiViewCalendarComponent, never>;
|
|
627
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MultiViewCalendarComponent, "kendo-multiviewcalendar", ["kendo-multiviewcalendar"], { "showOtherMonthDays": "showOtherMonthDays"; "showCalendarHeader": "showCalendarHeader"; "id": "id"; "focusedDate": "focusedDate"; "footer": "footer"; "min": "min"; "max": "max"; "rangeValidation": "rangeValidation"; "disabledDatesRangeValidation": "disabledDatesRangeValidation"; "selection": "selection"; "allowReverse": "allowReverse"; "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"; "monthCellTemplateRef": "monthCellTemplate"; "yearCellTemplateRef": "yearCellTemplate"; "decadeCellTemplateRef": "decadeCellTemplate"; "centuryCellTemplateRef": "centuryCellTemplate"; "weekNumberTemplateRef": "weekNumberTemplate"; "footerTemplateRef": "footerTemplate"; "headerTitleTemplateRef": "headerTitleTemplate"; "headerTemplateRef": "headerTemplate"; }, { "activeViewChange": "activeViewChange"; "navigate": "navigate"; "cellEnter": "cellEnter"; "cellLeave": "cellLeave"; "valueChange": "valueChange"; "rangeSelectionChange": "rangeSelectionChange"; "blurEvent": "blur"; "focusEvent": "focus"; "focusCalendar": "focusCalendar"; "onClosePopup": "onClosePopup"; "onTabPress": "onTabPress"; "onShiftTabPress": "onShiftTabPress"; }, ["cellTemplate", "monthCellTemplate", "yearCellTemplate", "decadeCellTemplate", "centuryCellTemplate", "weekNumberTemplate", "headerTitleTemplate", "headerTemplate", "footerTemplate"], never, false, never>;
|
|
644
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MultiViewCalendarComponent, "kendo-multiviewcalendar", ["kendo-multiviewcalendar"], { "showOtherMonthDays": "showOtherMonthDays"; "showCalendarHeader": "showCalendarHeader"; "size": "size"; "id": "id"; "focusedDate": "focusedDate"; "footer": "footer"; "min": "min"; "max": "max"; "rangeValidation": "rangeValidation"; "disabledDatesRangeValidation": "disabledDatesRangeValidation"; "selection": "selection"; "allowReverse": "allowReverse"; "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"; "monthCellTemplateRef": "monthCellTemplate"; "yearCellTemplateRef": "yearCellTemplate"; "decadeCellTemplateRef": "decadeCellTemplate"; "centuryCellTemplateRef": "centuryCellTemplate"; "weekNumberTemplateRef": "weekNumberTemplate"; "footerTemplateRef": "footerTemplate"; "headerTitleTemplateRef": "headerTitleTemplate"; "headerTemplateRef": "headerTemplate"; }, { "activeViewChange": "activeViewChange"; "navigate": "navigate"; "cellEnter": "cellEnter"; "cellLeave": "cellLeave"; "valueChange": "valueChange"; "rangeSelectionChange": "rangeSelectionChange"; "blurEvent": "blur"; "focusEvent": "focus"; "focusCalendar": "focusCalendar"; "onClosePopup": "onClosePopup"; "onTabPress": "onTabPress"; "onShiftTabPress": "onShiftTabPress"; }, ["cellTemplate", "monthCellTemplate", "yearCellTemplate", "decadeCellTemplate", "centuryCellTemplate", "weekNumberTemplate", "headerTitleTemplate", "headerTemplate", "footerTemplate"], never, false, never>;
|
|
628
645
|
}
|
|
@@ -15,6 +15,7 @@ import { WeekDaysFormat } from '../common/models/week-days-format';
|
|
|
15
15
|
import { CalendarView } from './models/view.type';
|
|
16
16
|
import { SelectionRangeEnd } from './models/selection-range-end.type';
|
|
17
17
|
import { SelectionRange } from './models/selection-range.interface';
|
|
18
|
+
import { DateInputSize } from '../common/models/size';
|
|
18
19
|
import * as i0 from "@angular/core";
|
|
19
20
|
/**
|
|
20
21
|
* @hidden
|
|
@@ -46,6 +47,7 @@ export declare class ViewListComponent implements OnChanges, OnDestroy, AfterVie
|
|
|
46
47
|
weekDaysFormat: WeekDaysFormat;
|
|
47
48
|
activeRangeEnd: SelectionRangeEnd;
|
|
48
49
|
selectionRange: SelectionRange;
|
|
50
|
+
size: DateInputSize;
|
|
49
51
|
get weekNumber(): boolean;
|
|
50
52
|
set weekNumber(showWeekNumbers: boolean);
|
|
51
53
|
cellEnter: EventEmitter<Date>;
|
|
@@ -102,5 +104,5 @@ export declare class ViewListComponent implements OnChanges, OnDestroy, AfterVie
|
|
|
102
104
|
private getWeekNames;
|
|
103
105
|
private intlChange;
|
|
104
106
|
static ɵfac: i0.ɵɵFactoryDeclaration<ViewListComponent, never>;
|
|
105
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ViewListComponent, "kendo-calendar-viewlist", never, { "allowReverse": "allowReverse"; "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"; "activeRangeEnd": "activeRangeEnd"; "selectionRange": "selectionRange"; "weekNumber": "weekNumber"; }, { "cellEnter": "cellEnter"; "cellClick": "cellClick"; "weekNumberCellClick": "weekNumberCellClick"; "activeDateChange": "activeDateChange"; "todayButtonClick": "todayButtonClick"; "pageChange": "pageChange"; "focusCalendar": "focusCalendar"; "blurCalendar": "blurCalendar"; "focusedCellChange": "focusedCellChange"; }, never, never, false, never>;
|
|
107
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ViewListComponent, "kendo-calendar-viewlist", never, { "allowReverse": "allowReverse"; "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"; "activeRangeEnd": "activeRangeEnd"; "selectionRange": "selectionRange"; "size": "size"; "weekNumber": "weekNumber"; }, { "cellEnter": "cellEnter"; "cellClick": "cellClick"; "weekNumberCellClick": "weekNumberCellClick"; "activeDateChange": "activeDateChange"; "todayButtonClick": "todayButtonClick"; "pageChange": "pageChange"; "focusCalendar": "focusCalendar"; "blurCalendar": "blurCalendar"; "focusedCellChange": "focusedCellChange"; }, never, never, false, never>;
|
|
106
108
|
}
|
|
@@ -14,6 +14,7 @@ import { SVGIcon } from '@progress/kendo-svg-icons';
|
|
|
14
14
|
import { DateRangeSelectionDirective } from './date-range-selection.directive';
|
|
15
15
|
import { ActionSheetComponent } from '@progress/kendo-angular-navigation';
|
|
16
16
|
import { KeyDown } from '../calendar/models/keydown.interface';
|
|
17
|
+
import { DateInputSize } from '../common/models/size';
|
|
17
18
|
import * as i0 from "@angular/core";
|
|
18
19
|
/**
|
|
19
20
|
* Represents the Kendo UI DateRangePopup component for Angular.
|
|
@@ -112,6 +113,20 @@ export declare class DateRangePopupComponent implements OnInit, OnDestroy {
|
|
|
112
113
|
set subtitle(subtitle: string);
|
|
113
114
|
get subtitle(): string;
|
|
114
115
|
private _subtitle;
|
|
116
|
+
/**
|
|
117
|
+
* @hidden
|
|
118
|
+
*
|
|
119
|
+
* TODO: Make visible when the Infinite Calendar is fixed to set properly the size option.
|
|
120
|
+
* Sets the size of the component.
|
|
121
|
+
*
|
|
122
|
+
* The possible values are:
|
|
123
|
+
* * `small`
|
|
124
|
+
* * `medium` (Default)
|
|
125
|
+
* * `large`
|
|
126
|
+
* * `none`
|
|
127
|
+
*
|
|
128
|
+
*/
|
|
129
|
+
size: DateInputSize;
|
|
115
130
|
/**
|
|
116
131
|
* Fires each time the popup is about to open
|
|
117
132
|
* ([see example](slug:popup_daterange#toc-events)).
|
|
@@ -257,5 +272,5 @@ export declare class DateRangePopupComponent implements OnInit, OnDestroy {
|
|
|
257
272
|
private toggleActionSheet;
|
|
258
273
|
private updateActionSheetAdaptiveAppearance;
|
|
259
274
|
static ɵfac: i0.ɵɵFactoryDeclaration<DateRangePopupComponent, [null, null, null, null, null, null, { optional: true; }]>;
|
|
260
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DateRangePopupComponent, "kendo-daterange-popup", ["kendo-daterange-popup"], { "allowReverse": "allowReverse"; "animate": "animate"; "anchor": "anchor"; "anchorAlign": "anchorAlign"; "appendTo": "appendTo"; "collision": "collision"; "popupAlign": "popupAlign"; "margin": "margin"; "adaptiveMode": "adaptiveMode"; "title": "title"; "subtitle": "subtitle"; }, { "open": "open"; "close": "close"; "onBlur": "blur"; "onFocus": "focus"; "cancel": "cancel"; }, ["contentTemplate", "contentCalendar"], never, false, never>;
|
|
275
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DateRangePopupComponent, "kendo-daterange-popup", ["kendo-daterange-popup"], { "allowReverse": "allowReverse"; "animate": "animate"; "anchor": "anchor"; "anchorAlign": "anchorAlign"; "appendTo": "appendTo"; "collision": "collision"; "popupAlign": "popupAlign"; "margin": "margin"; "adaptiveMode": "adaptiveMode"; "title": "title"; "subtitle": "subtitle"; "size": "size"; }, { "open": "open"; "close": "close"; "onBlur": "blur"; "onFocus": "focus"; "cancel": "cancel"; }, ["contentTemplate", "contentCalendar"], never, false, never>;
|
|
261
276
|
}
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { AfterContentInit, OnDestroy } from '@angular/core';
|
|
6
6
|
import { DateRangeService } from './date-range.service';
|
|
7
|
+
import { DateInputSize } from '../common/models/size';
|
|
7
8
|
import * as i0 from "@angular/core";
|
|
8
9
|
/**
|
|
9
10
|
* Represents the Kendo UI DateRange component for Angular.
|
|
@@ -26,6 +27,20 @@ import * as i0 from "@angular/core";
|
|
|
26
27
|
*/
|
|
27
28
|
export declare class DateRangeComponent implements AfterContentInit, OnDestroy {
|
|
28
29
|
private dateRangeService;
|
|
30
|
+
/**
|
|
31
|
+
* @hidden
|
|
32
|
+
*
|
|
33
|
+
* TODO: Make visible when the Infinite Calendar is fixed to set properly the size option.
|
|
34
|
+
* Sets the size of the component.
|
|
35
|
+
*
|
|
36
|
+
* The possible values are:
|
|
37
|
+
* * `small`
|
|
38
|
+
* * `medium` (Default)
|
|
39
|
+
* * `large`
|
|
40
|
+
* * `none`
|
|
41
|
+
*
|
|
42
|
+
*/
|
|
43
|
+
size: DateInputSize;
|
|
29
44
|
/**
|
|
30
45
|
* @hidden
|
|
31
46
|
*/
|
|
@@ -42,5 +57,5 @@ export declare class DateRangeComponent implements AfterContentInit, OnDestroy {
|
|
|
42
57
|
ngAfterContentInit(): void;
|
|
43
58
|
ngOnDestroy(): void;
|
|
44
59
|
static ɵfac: i0.ɵɵFactoryDeclaration<DateRangeComponent, never>;
|
|
45
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DateRangeComponent, "kendo-daterange", never, {}, {}, ["contentPopup"], ["*"], false, never>;
|
|
60
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DateRangeComponent, "kendo-daterange", never, { "size": "size"; }, {}, ["contentPopup"], ["*"], false, never>;
|
|
46
61
|
}
|
|
@@ -514,6 +514,7 @@ export declare class DateTimePickerComponent implements OnInit, OnChanges, After
|
|
|
514
514
|
private get acceptButton();
|
|
515
515
|
private get cancelButtonElement();
|
|
516
516
|
private get dateTabButton();
|
|
517
|
+
private get timeTabButton();
|
|
517
518
|
/**
|
|
518
519
|
* @hidden
|
|
519
520
|
*/
|
|
@@ -622,6 +623,10 @@ export declare class DateTimePickerComponent implements OnInit, OnChanges, After
|
|
|
622
623
|
* @hidden
|
|
623
624
|
*/
|
|
624
625
|
onTabOutLastPart(): void;
|
|
626
|
+
/**
|
|
627
|
+
* @hidden
|
|
628
|
+
*/
|
|
629
|
+
onTabOutNow(): void;
|
|
625
630
|
/**
|
|
626
631
|
* @hidden
|
|
627
632
|
*/
|
|
@@ -242,7 +242,6 @@ export class CalendarComponent {
|
|
|
242
242
|
this.canHover = false;
|
|
243
243
|
validatePackage(packageMetadata);
|
|
244
244
|
this.id = `kendo-calendarid-${this.bus.calendarId}`;
|
|
245
|
-
this.setClasses(element.nativeElement);
|
|
246
245
|
if (this.pickerService) {
|
|
247
246
|
this.pickerService.calendar = this;
|
|
248
247
|
}
|
|
@@ -387,7 +386,9 @@ export class CalendarComponent {
|
|
|
387
386
|
*/
|
|
388
387
|
set type(type) {
|
|
389
388
|
this.renderer.removeClass(this.element.nativeElement, `k-calendar-${this.type}`);
|
|
390
|
-
|
|
389
|
+
if (type === 'infinite') {
|
|
390
|
+
this.renderer.addClass(this.element.nativeElement, `k-calendar-${type}`);
|
|
391
|
+
}
|
|
391
392
|
this._type = type;
|
|
392
393
|
}
|
|
393
394
|
get type() {
|
|
@@ -526,13 +527,7 @@ export class CalendarComponent {
|
|
|
526
527
|
*
|
|
527
528
|
*/
|
|
528
529
|
set size(size) {
|
|
529
|
-
|
|
530
|
-
this.renderer.removeClass(element.nativeElement, getSizeClass('calendar', this.size));
|
|
531
|
-
const newSize = size ? size : DEFAULT_SIZE;
|
|
532
|
-
if (newSize !== 'none') {
|
|
533
|
-
this.renderer.addClass(element.nativeElement, getSizeClass('calendar', newSize));
|
|
534
|
-
}
|
|
535
|
-
this._size = newSize;
|
|
530
|
+
this._size = size;
|
|
536
531
|
}
|
|
537
532
|
get size() {
|
|
538
533
|
return this._size;
|
|
@@ -567,6 +562,7 @@ export class CalendarComponent {
|
|
|
567
562
|
return this.type === 'classic' ? undefined : this.disabled;
|
|
568
563
|
}
|
|
569
564
|
ngOnInit() {
|
|
565
|
+
this.setClasses(this.element.nativeElement);
|
|
570
566
|
if (this.type === 'infinite') {
|
|
571
567
|
this.dom.calculateHeights(this.element.nativeElement);
|
|
572
568
|
this.scrollSyncService.configure(this.activeViewEnum);
|
|
@@ -610,6 +606,7 @@ export class CalendarComponent {
|
|
|
610
606
|
this.setAriaActivedescendant();
|
|
611
607
|
if (this.size !== 'none') {
|
|
612
608
|
const element = this.type === 'infinite' ? this.element : this.multiViewCalendar.element;
|
|
609
|
+
this.renderer.removeClass(element.nativeElement, getSizeClass('calendar', this.size));
|
|
613
610
|
this.renderer.addClass(element.nativeElement, getSizeClass('calendar', this.size));
|
|
614
611
|
}
|
|
615
612
|
}
|
|
@@ -957,9 +954,11 @@ export class CalendarComponent {
|
|
|
957
954
|
}
|
|
958
955
|
}
|
|
959
956
|
setClasses(element) {
|
|
960
|
-
this.renderer.
|
|
961
|
-
this.
|
|
962
|
-
|
|
957
|
+
this.renderer.removeClass(element, `k-calendar-${this.type}`);
|
|
958
|
+
if (this.type === 'infinite') {
|
|
959
|
+
this.renderer.addClass(element, 'k-calendar');
|
|
960
|
+
this.renderer.addClass(element, `k-calendar-${this.type}`);
|
|
961
|
+
}
|
|
963
962
|
}
|
|
964
963
|
verifyChanges() {
|
|
965
964
|
if (!isDevMode()) {
|
|
@@ -1229,6 +1228,7 @@ CalendarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", vers
|
|
|
1229
1228
|
[showOtherMonthDays]="showOtherMonthDays"
|
|
1230
1229
|
[activeRangeEnd]="activeRangeEnd"
|
|
1231
1230
|
[selectionRange]="selectionRange"
|
|
1231
|
+
[size]="size"
|
|
1232
1232
|
[isActive]="isActive"
|
|
1233
1233
|
[id]="headerId"
|
|
1234
1234
|
[weekDaysFormat]="weekDaysFormat"
|
|
@@ -1267,6 +1267,7 @@ CalendarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", vers
|
|
|
1267
1267
|
[views]="1"
|
|
1268
1268
|
[min]="min"
|
|
1269
1269
|
[max]="max"
|
|
1270
|
+
[size]="size"
|
|
1270
1271
|
[id]="id"
|
|
1271
1272
|
[activeRangeEnd]="activeRangeEnd"
|
|
1272
1273
|
[selectionRange]="selectionRange"
|
|
@@ -1312,7 +1313,7 @@ CalendarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", vers
|
|
|
1312
1313
|
</kendo-multiviewcalendar-messages>
|
|
1313
1314
|
</kendo-multiviewcalendar>
|
|
1314
1315
|
</ng-container>
|
|
1315
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: i9.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i10.MultiViewCalendarCustomMessagesComponent, selector: "kendo-multiviewcalendar-messages" }, { kind: "component", type: i11.MultiViewCalendarComponent, selector: "kendo-multiviewcalendar", inputs: ["showOtherMonthDays", "showCalendarHeader", "id", "focusedDate", "footer", "min", "max", "rangeValidation", "disabledDatesRangeValidation", "selection", "allowReverse", "value", "disabled", "tabindex", "tabIndex", "weekDaysFormat", "isActive", "disabledDates", "activeView", "bottomView", "topView", "showViewHeader", "animateNavigation", "weekNumber", "activeRangeEnd", "selectionRange", "views", "orientation", "cellTemplate", "monthCellTemplate", "yearCellTemplate", "decadeCellTemplate", "centuryCellTemplate", "weekNumberTemplate", "footerTemplate", "headerTitleTemplate", "headerTemplate"], outputs: ["activeViewChange", "navigate", "cellEnter", "cellLeave", "valueChange", "rangeSelectionChange", "blur", "focus", "focusCalendar", "onClosePopup", "onTabPress", "onShiftTabPress"], exportAs: ["kendo-multiviewcalendar"] }, { kind: "component", type: i12.ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }, { kind: "component", type: i13.NavigationComponent, selector: "kendo-calendar-navigation", inputs: ["activeView", "min", "max", "focusedDate", "templateRef"], outputs: ["valueChange", "pageChange"] }, { kind: "directive", type: i14.CalendarLocalizedMessagesDirective, selector: "[kendoCalendarLocalizedMessages]" }, { kind: "component", type: i15.ViewListComponent, selector: "kendo-calendar-viewlist", inputs: ["allowReverse", "cellTemplateRef", "weekNumberTemplateRef", "headerTitleTemplateRef", "headerTemplateRef", "footerTemplateRef", "showOtherMonthDays", "activeView", "cellUID", "focusedDate", "isActive", "min", "max", "selectedDates", "tabIndex", "disabled", "id", "showFooter", "weekDaysFormat", "activeRangeEnd", "selectionRange", "weekNumber"], outputs: ["cellEnter", "cellClick", "weekNumberCellClick", "activeDateChange", "todayButtonClick", "pageChange", "focusCalendar", "blurCalendar", "focusedCellChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1316
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i9.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i10.MultiViewCalendarCustomMessagesComponent, selector: "kendo-multiviewcalendar-messages" }, { kind: "component", type: i11.MultiViewCalendarComponent, selector: "kendo-multiviewcalendar", inputs: ["showOtherMonthDays", "showCalendarHeader", "size", "id", "focusedDate", "footer", "min", "max", "rangeValidation", "disabledDatesRangeValidation", "selection", "allowReverse", "value", "disabled", "tabindex", "tabIndex", "weekDaysFormat", "isActive", "disabledDates", "activeView", "bottomView", "topView", "showViewHeader", "animateNavigation", "weekNumber", "activeRangeEnd", "selectionRange", "views", "orientation", "cellTemplate", "monthCellTemplate", "yearCellTemplate", "decadeCellTemplate", "centuryCellTemplate", "weekNumberTemplate", "footerTemplate", "headerTitleTemplate", "headerTemplate"], outputs: ["activeViewChange", "navigate", "cellEnter", "cellLeave", "valueChange", "rangeSelectionChange", "blur", "focus", "focusCalendar", "onClosePopup", "onTabPress", "onShiftTabPress"], exportAs: ["kendo-multiviewcalendar"] }, { kind: "component", type: i12.ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }, { kind: "component", type: i13.NavigationComponent, selector: "kendo-calendar-navigation", inputs: ["activeView", "min", "max", "focusedDate", "templateRef"], outputs: ["valueChange", "pageChange"] }, { kind: "directive", type: i14.CalendarLocalizedMessagesDirective, selector: "[kendoCalendarLocalizedMessages]" }, { kind: "component", type: i15.ViewListComponent, selector: "kendo-calendar-viewlist", inputs: ["allowReverse", "cellTemplateRef", "weekNumberTemplateRef", "headerTitleTemplateRef", "headerTemplateRef", "footerTemplateRef", "showOtherMonthDays", "activeView", "cellUID", "focusedDate", "isActive", "min", "max", "selectedDates", "tabIndex", "disabled", "id", "showFooter", "weekDaysFormat", "activeRangeEnd", "selectionRange", "size", "weekNumber"], outputs: ["cellEnter", "cellClick", "weekNumberCellClick", "activeDateChange", "todayButtonClick", "pageChange", "focusCalendar", "blurCalendar", "focusedCellChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1316
1317
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: CalendarComponent, decorators: [{
|
|
1317
1318
|
type: Component,
|
|
1318
1319
|
args: [{
|
|
@@ -1367,6 +1368,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
|
|
|
1367
1368
|
[showOtherMonthDays]="showOtherMonthDays"
|
|
1368
1369
|
[activeRangeEnd]="activeRangeEnd"
|
|
1369
1370
|
[selectionRange]="selectionRange"
|
|
1371
|
+
[size]="size"
|
|
1370
1372
|
[isActive]="isActive"
|
|
1371
1373
|
[id]="headerId"
|
|
1372
1374
|
[weekDaysFormat]="weekDaysFormat"
|
|
@@ -1405,6 +1407,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
|
|
|
1405
1407
|
[views]="1"
|
|
1406
1408
|
[min]="min"
|
|
1407
1409
|
[max]="max"
|
|
1410
|
+
[size]="size"
|
|
1408
1411
|
[id]="id"
|
|
1409
1412
|
[activeRangeEnd]="activeRangeEnd"
|
|
1410
1413
|
[selectionRange]="selectionRange"
|
|
@@ -54,9 +54,6 @@ export class HeaderComponent {
|
|
|
54
54
|
this.getComponentClass = true;
|
|
55
55
|
this.subscriptions = new Subscription();
|
|
56
56
|
}
|
|
57
|
-
get horizontalHostClass() {
|
|
58
|
-
return this.orientation === 'horizontal';
|
|
59
|
-
}
|
|
60
57
|
get verticalHostClass() {
|
|
61
58
|
return this.orientation === 'vertical';
|
|
62
59
|
}
|
|
@@ -131,18 +128,23 @@ export class HeaderComponent {
|
|
|
131
128
|
}
|
|
132
129
|
}
|
|
133
130
|
HeaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: HeaderComponent, deps: [{ token: i1.BusViewService }, { token: i0.ChangeDetectorRef }, { token: i2.LocalizationService }, { token: i3.IntlService }, { token: i4.DisabledDatesService }], target: i0.ɵɵFactoryTarget.Component });
|
|
134
|
-
HeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: HeaderComponent, selector: "kendo-calendar-header", inputs: { activeView: "activeView", currentDate: "currentDate", min: "min", max: "max", rangeLength: "rangeLength", titleTemplateRef: "titleTemplateRef", headerTemplateRef: "headerTemplateRef", isPrevDisabled: "isPrevDisabled", isNextDisabled: "isNextDisabled", showNavigationButtons: "showNavigationButtons", orientation: "orientation", id: "id" }, outputs: { todayButtonClick: "todayButtonClick", prevButtonClick: "prevButtonClick", nextButtonClick: "nextButtonClick" }, host: { properties: { "class.k-calendar-header": "this.getComponentClass", "class.k-
|
|
131
|
+
HeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: HeaderComponent, selector: "kendo-calendar-header", inputs: { activeView: "activeView", currentDate: "currentDate", min: "min", max: "max", rangeLength: "rangeLength", titleTemplateRef: "titleTemplateRef", headerTemplateRef: "headerTemplateRef", isPrevDisabled: "isPrevDisabled", isNextDisabled: "isNextDisabled", showNavigationButtons: "showNavigationButtons", orientation: "orientation", id: "id", size: "size" }, outputs: { todayButtonClick: "todayButtonClick", prevButtonClick: "prevButtonClick", nextButtonClick: "nextButtonClick" }, host: { properties: { "class.k-calendar-header": "this.getComponentClass", "class.k-vstack": "this.verticalHostClass" } }, usesOnChanges: true, ngImport: i0, template: `
|
|
135
132
|
<ng-template *ngIf="headerTemplateRef; else defaultRendering"
|
|
136
133
|
[ngTemplateOutlet]="headerTemplateRef"
|
|
137
134
|
[ngTemplateOutletContext]="{ title: title, activeView: activeViewValue, date: currentDate }">
|
|
138
135
|
</ng-template>
|
|
139
136
|
<ng-template #defaultRendering>
|
|
140
|
-
<
|
|
137
|
+
<button
|
|
138
|
+
kendoButton
|
|
139
|
+
class="k-calendar-title"
|
|
141
140
|
role="button"
|
|
142
141
|
[id]="id"
|
|
142
|
+
type="button"
|
|
143
|
+
fillMode="flat"
|
|
144
|
+
[size]="size"
|
|
145
|
+
themeColor="primary"
|
|
143
146
|
tabindex="-1"
|
|
144
|
-
[
|
|
145
|
-
[attr.aria-disabled]="isDisabled()"
|
|
147
|
+
[disabled]="!navigate"
|
|
146
148
|
[kendoEventsOutsideAngular]="{
|
|
147
149
|
click: handleNavigation
|
|
148
150
|
}"
|
|
@@ -154,13 +156,14 @@ HeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", versio
|
|
|
154
156
|
[ngTemplateOutlet]="titleTemplateRef"
|
|
155
157
|
[ngTemplateOutletContext]="{ $implicit: title, activeView: activeViewValue, date: currentDate }"
|
|
156
158
|
></ng-template>
|
|
157
|
-
</
|
|
159
|
+
</button>
|
|
158
160
|
<span class="k-spacer"></span>
|
|
159
161
|
<span class="k-calendar-nav k-hstack">
|
|
160
162
|
<button
|
|
161
163
|
*ngIf="showNavigationButtons"
|
|
162
164
|
kendoButton
|
|
163
165
|
fillMode="flat"
|
|
166
|
+
[size]="size"
|
|
164
167
|
[svgIcon]="chevronLeftIcon"
|
|
165
168
|
icon="chevron-left"
|
|
166
169
|
tabindex="-1"
|
|
@@ -173,9 +176,14 @@ HeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", versio
|
|
|
173
176
|
>
|
|
174
177
|
</button>
|
|
175
178
|
<button
|
|
176
|
-
|
|
179
|
+
kendoButton
|
|
180
|
+
class="k-calendar-nav-today"
|
|
177
181
|
tabindex="-1"
|
|
178
|
-
|
|
182
|
+
themeColor="primary"
|
|
183
|
+
fillMode="flat"
|
|
184
|
+
role="link"
|
|
185
|
+
[size]="size"
|
|
186
|
+
[disabled]="!todayAvailable"
|
|
179
187
|
[kendoEventsOutsideAngular]="{
|
|
180
188
|
click: handleTodayClick
|
|
181
189
|
}"
|
|
@@ -201,7 +209,7 @@ HeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", versio
|
|
|
201
209
|
</button>
|
|
202
210
|
</span>
|
|
203
211
|
</ng-template>
|
|
204
|
-
|
|
212
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i5.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i6.EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }, { kind: "component", type: i7.ButtonComponent, selector: "button[kendoButton], span[kendoButton], kendo-button", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }] });
|
|
205
213
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: HeaderComponent, decorators: [{
|
|
206
214
|
type: Component,
|
|
207
215
|
args: [{
|
|
@@ -212,12 +220,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
|
|
|
212
220
|
[ngTemplateOutletContext]="{ title: title, activeView: activeViewValue, date: currentDate }">
|
|
213
221
|
</ng-template>
|
|
214
222
|
<ng-template #defaultRendering>
|
|
215
|
-
<
|
|
223
|
+
<button
|
|
224
|
+
kendoButton
|
|
225
|
+
class="k-calendar-title"
|
|
216
226
|
role="button"
|
|
217
227
|
[id]="id"
|
|
228
|
+
type="button"
|
|
229
|
+
fillMode="flat"
|
|
230
|
+
[size]="size"
|
|
231
|
+
themeColor="primary"
|
|
218
232
|
tabindex="-1"
|
|
219
|
-
[
|
|
220
|
-
[attr.aria-disabled]="isDisabled()"
|
|
233
|
+
[disabled]="!navigate"
|
|
221
234
|
[kendoEventsOutsideAngular]="{
|
|
222
235
|
click: handleNavigation
|
|
223
236
|
}"
|
|
@@ -229,13 +242,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
|
|
|
229
242
|
[ngTemplateOutlet]="titleTemplateRef"
|
|
230
243
|
[ngTemplateOutletContext]="{ $implicit: title, activeView: activeViewValue, date: currentDate }"
|
|
231
244
|
></ng-template>
|
|
232
|
-
</
|
|
245
|
+
</button>
|
|
233
246
|
<span class="k-spacer"></span>
|
|
234
247
|
<span class="k-calendar-nav k-hstack">
|
|
235
248
|
<button
|
|
236
249
|
*ngIf="showNavigationButtons"
|
|
237
250
|
kendoButton
|
|
238
251
|
fillMode="flat"
|
|
252
|
+
[size]="size"
|
|
239
253
|
[svgIcon]="chevronLeftIcon"
|
|
240
254
|
icon="chevron-left"
|
|
241
255
|
tabindex="-1"
|
|
@@ -248,9 +262,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
|
|
|
248
262
|
>
|
|
249
263
|
</button>
|
|
250
264
|
<button
|
|
251
|
-
|
|
265
|
+
kendoButton
|
|
266
|
+
class="k-calendar-nav-today"
|
|
252
267
|
tabindex="-1"
|
|
253
|
-
|
|
268
|
+
themeColor="primary"
|
|
269
|
+
fillMode="flat"
|
|
270
|
+
role="link"
|
|
271
|
+
[size]="size"
|
|
272
|
+
[disabled]="!todayAvailable"
|
|
254
273
|
[kendoEventsOutsideAngular]="{
|
|
255
274
|
click: handleTodayClick
|
|
256
275
|
}"
|
|
@@ -276,7 +295,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
|
|
|
276
295
|
</button>
|
|
277
296
|
</span>
|
|
278
297
|
</ng-template>
|
|
279
|
-
|
|
298
|
+
`
|
|
280
299
|
}]
|
|
281
300
|
}], ctorParameters: function () { return [{ type: i1.BusViewService }, { type: i0.ChangeDetectorRef }, { type: i2.LocalizationService }, { type: i3.IntlService }, { type: i4.DisabledDatesService }]; }, propDecorators: { activeView: [{
|
|
282
301
|
type: Input
|
|
@@ -302,6 +321,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
|
|
|
302
321
|
type: Input
|
|
303
322
|
}], id: [{
|
|
304
323
|
type: Input
|
|
324
|
+
}], size: [{
|
|
325
|
+
type: Input
|
|
305
326
|
}], todayButtonClick: [{
|
|
306
327
|
type: Output
|
|
307
328
|
}], prevButtonClick: [{
|
|
@@ -311,9 +332,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
|
|
|
311
332
|
}], getComponentClass: [{
|
|
312
333
|
type: HostBinding,
|
|
313
334
|
args: ["class.k-calendar-header"]
|
|
314
|
-
}], horizontalHostClass: [{
|
|
315
|
-
type: HostBinding,
|
|
316
|
-
args: ["class.k-hstack"]
|
|
317
335
|
}], verticalHostClass: [{
|
|
318
336
|
type: HostBinding,
|
|
319
337
|
args: ["class.k-vstack"]
|
|
@@ -285,7 +285,7 @@ HorizontalViewListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.
|
|
|
285
285
|
<ng-template #tableTemplate let-date="date" let-class="className">
|
|
286
286
|
<table
|
|
287
287
|
[attr.role]="views >= 2 ? 'none' : 'grid'"
|
|
288
|
-
class="k-
|
|
288
|
+
class="k-calendar-table"
|
|
289
289
|
[ngClass]="class"
|
|
290
290
|
[attr.aria-labelledby]="id"
|
|
291
291
|
[attr.aria-activedescendant]="getActiveDescendant"
|
|
@@ -374,7 +374,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
|
|
|
374
374
|
<ng-template #tableTemplate let-date="date" let-class="className">
|
|
375
375
|
<table
|
|
376
376
|
[attr.role]="views >= 2 ? 'none' : 'grid'"
|
|
377
|
-
class="k-
|
|
377
|
+
class="k-calendar-table"
|
|
378
378
|
[ngClass]="class"
|
|
379
379
|
[attr.aria-labelledby]="id"
|
|
380
380
|
[attr.aria-activedescendant]="getActiveDescendant"
|
|
@@ -26,7 +26,7 @@ import { minValidator } from '../validators/min.validator';
|
|
|
26
26
|
import { maxValidator } from '../validators/max.validator';
|
|
27
27
|
import { disabledDatesRangeValidator } from '../validators/disabled-dates-range.validator';
|
|
28
28
|
import { MIN_DATE, MAX_DATE } from '../defaults';
|
|
29
|
-
import { areDatesEqual, dateInRange, getToday, hasExistingValue, last, noop } from '../util';
|
|
29
|
+
import { DEFAULT_SIZE, areDatesEqual, dateInRange, getSizeClass, getToday, hasExistingValue, last, noop } from '../util';
|
|
30
30
|
import { Subscription } from 'rxjs';
|
|
31
31
|
import { isArrowWithShiftPressed, isNullOrDate, isPresent } from '../common/utils';
|
|
32
32
|
import { NavigationService } from './services/navigation.service';
|
|
@@ -98,6 +98,7 @@ export class MultiViewCalendarComponent {
|
|
|
98
98
|
* Determines whether to display the calendar header.
|
|
99
99
|
*/
|
|
100
100
|
this.showCalendarHeader = true;
|
|
101
|
+
this._size = DEFAULT_SIZE;
|
|
101
102
|
/**
|
|
102
103
|
* Toggles the visibility of the footer.
|
|
103
104
|
* @default false
|
|
@@ -270,9 +271,32 @@ export class MultiViewCalendarComponent {
|
|
|
270
271
|
this.maxValidateFn = noop;
|
|
271
272
|
this.disabledDatesRangeValidateFn = noop;
|
|
272
273
|
this.subscriptions = new Subscription();
|
|
273
|
-
this.setClasses(element.nativeElement);
|
|
274
274
|
this.id = `kendo-multiviewcalendarid-${this.bus.calendarId}-`;
|
|
275
275
|
}
|
|
276
|
+
/**
|
|
277
|
+
* @hidden
|
|
278
|
+
*
|
|
279
|
+
* TODO: Make visible when the Infinite Calendar is fixed to set properly the size option.
|
|
280
|
+
* Sets the size of the component.
|
|
281
|
+
*
|
|
282
|
+
* The possible values are:
|
|
283
|
+
* * `small`
|
|
284
|
+
* * `medium` (Default)
|
|
285
|
+
* * `large`
|
|
286
|
+
* * `none`
|
|
287
|
+
*
|
|
288
|
+
*/
|
|
289
|
+
set size(size) {
|
|
290
|
+
const newSize = size ? size : DEFAULT_SIZE;
|
|
291
|
+
this.renderer.removeClass(this.element.nativeElement, getSizeClass('calendar', this.size));
|
|
292
|
+
if (newSize !== 'none') {
|
|
293
|
+
this.renderer.addClass(this.element.nativeElement, getSizeClass('calendar', newSize));
|
|
294
|
+
}
|
|
295
|
+
this._size = newSize;
|
|
296
|
+
}
|
|
297
|
+
get size() {
|
|
298
|
+
return this._size;
|
|
299
|
+
}
|
|
276
300
|
/**
|
|
277
301
|
* Sets or gets the `focusedDate` property of the Calendar and
|
|
278
302
|
* defines the focused date of the component
|
|
@@ -648,6 +672,7 @@ export class MultiViewCalendarComponent {
|
|
|
648
672
|
}
|
|
649
673
|
}
|
|
650
674
|
ngOnInit() {
|
|
675
|
+
this.setClasses(this.element.nativeElement);
|
|
651
676
|
this.subscriptions.add(this.bus.viewChanged.subscribe(({ view }) => {
|
|
652
677
|
this.activeView = CalendarViewEnum[view];
|
|
653
678
|
this.activeViewChange.emit(this.activeView);
|
|
@@ -717,7 +742,7 @@ export class MultiViewCalendarComponent {
|
|
|
717
742
|
return;
|
|
718
743
|
}
|
|
719
744
|
const activeElement = this.views >= 2 ? this.element.nativeElement.querySelector('.k-calendar-view') :
|
|
720
|
-
this.element.nativeElement.querySelector('.k-
|
|
745
|
+
this.element.nativeElement.querySelector('.k-calendar-table');
|
|
721
746
|
activeElement.blur();
|
|
722
747
|
}
|
|
723
748
|
/**
|
|
@@ -924,9 +949,11 @@ export class MultiViewCalendarComponent {
|
|
|
924
949
|
});
|
|
925
950
|
}
|
|
926
951
|
setClasses(element) {
|
|
927
|
-
this.renderer.addClass(element, 'k-widget');
|
|
928
952
|
this.renderer.addClass(element, 'k-calendar');
|
|
929
|
-
this.renderer.addClass(element, '
|
|
953
|
+
this.renderer.addClass(element, getSizeClass('calendar', this.size));
|
|
954
|
+
if (this.views >= 2) {
|
|
955
|
+
this.renderer.addClass(element, 'k-calendar-range');
|
|
956
|
+
}
|
|
930
957
|
}
|
|
931
958
|
verifyChanges() {
|
|
932
959
|
if (!isDevMode()) {
|
|
@@ -1055,7 +1082,7 @@ export class MultiViewCalendarComponent {
|
|
|
1055
1082
|
}
|
|
1056
1083
|
}
|
|
1057
1084
|
MultiViewCalendarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", 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 });
|
|
1058
|
-
MultiViewCalendarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", 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", allowReverse: "allowReverse", 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", rangeSelectionChange: "rangeSelectionChange", 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: [
|
|
1085
|
+
MultiViewCalendarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: MultiViewCalendarComponent, selector: "kendo-multiviewcalendar", inputs: { showOtherMonthDays: "showOtherMonthDays", showCalendarHeader: "showCalendarHeader", size: "size", id: "id", focusedDate: "focusedDate", footer: "footer", min: "min", max: "max", rangeValidation: "rangeValidation", disabledDatesRangeValidation: "disabledDatesRangeValidation", selection: "selection", allowReverse: "allowReverse", 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", rangeSelectionChange: "rangeSelectionChange", 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: [
|
|
1059
1086
|
BusViewService,
|
|
1060
1087
|
RANGE_CALENDAR_VALUE_ACCESSOR,
|
|
1061
1088
|
RANGE_CALENDAR_RANGE_VALIDATORS,
|
|
@@ -1086,6 +1113,7 @@ MultiViewCalendarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0
|
|
|
1086
1113
|
*ngIf="showCalendarHeader"
|
|
1087
1114
|
[activeView]="activeViewEnum"
|
|
1088
1115
|
[currentDate]="activeDate"
|
|
1116
|
+
[size]="size"
|
|
1089
1117
|
[min]="min"
|
|
1090
1118
|
[max]="max"
|
|
1091
1119
|
[id]="headerId"
|
|
@@ -1141,7 +1169,7 @@ MultiViewCalendarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0
|
|
|
1141
1169
|
[activeViewValue]="activeView"
|
|
1142
1170
|
[currentDate]="activeDate">
|
|
1143
1171
|
</kendo-calendar-footer>
|
|
1144
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i6.HeaderComponent, selector: "kendo-calendar-header", inputs: ["activeView", "currentDate", "min", "max", "rangeLength", "titleTemplateRef", "headerTemplateRef", "isPrevDisabled", "isNextDisabled", "showNavigationButtons", "orientation", "id"], outputs: ["todayButtonClick", "prevButtonClick", "nextButtonClick"] }, { kind: "component", type: i7.FooterComponent, selector: "kendo-calendar-footer", inputs: ["footerTemplateRef", "activeViewValue", "currentDate"] }, { kind: "component", type: i8.HorizontalViewListComponent, selector: "kendo-calendar-horizontal", inputs: ["showOtherMonthDays", "cellTemplateRef", "weekNumberTemplateRef", "allowReverse", "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"] }, { kind: "directive", type: i9.MultiViewCalendarLocalizedMessagesDirective, selector: "[kendoMultiViewCalendarLocalizedMessages]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1172
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i6.HeaderComponent, selector: "kendo-calendar-header", inputs: ["activeView", "currentDate", "min", "max", "rangeLength", "titleTemplateRef", "headerTemplateRef", "isPrevDisabled", "isNextDisabled", "showNavigationButtons", "orientation", "id", "size"], outputs: ["todayButtonClick", "prevButtonClick", "nextButtonClick"] }, { kind: "component", type: i7.FooterComponent, selector: "kendo-calendar-footer", inputs: ["footerTemplateRef", "activeViewValue", "currentDate"] }, { kind: "component", type: i8.HorizontalViewListComponent, selector: "kendo-calendar-horizontal", inputs: ["showOtherMonthDays", "cellTemplateRef", "weekNumberTemplateRef", "allowReverse", "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"] }, { kind: "directive", type: i9.MultiViewCalendarLocalizedMessagesDirective, selector: "[kendoMultiViewCalendarLocalizedMessages]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1145
1173
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: MultiViewCalendarComponent, decorators: [{
|
|
1146
1174
|
type: Component,
|
|
1147
1175
|
args: [{
|
|
@@ -1180,6 +1208,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
|
|
|
1180
1208
|
*ngIf="showCalendarHeader"
|
|
1181
1209
|
[activeView]="activeViewEnum"
|
|
1182
1210
|
[currentDate]="activeDate"
|
|
1211
|
+
[size]="size"
|
|
1183
1212
|
[min]="min"
|
|
1184
1213
|
[max]="max"
|
|
1185
1214
|
[id]="headerId"
|
|
@@ -1241,6 +1270,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
|
|
|
1241
1270
|
type: Input
|
|
1242
1271
|
}], showCalendarHeader: [{
|
|
1243
1272
|
type: Input
|
|
1273
|
+
}], size: [{
|
|
1274
|
+
type: Input
|
|
1244
1275
|
}], id: [{
|
|
1245
1276
|
type: Input
|
|
1246
1277
|
}], focusedDate: [{
|