@progress/kendo-angular-dateinputs 16.0.0-develop.2 → 16.0.0-develop.20
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.component.d.ts +42 -8
- package/calendar/footer.component.d.ts +1 -1
- package/calendar/for.directive.d.ts +1 -1
- package/calendar/header.component.d.ts +3 -2
- package/calendar/horizontal-view-list.component.d.ts +4 -3
- package/calendar/localization/calendar-custom-messages.component.d.ts +1 -1
- package/calendar/localization/calendar-localized-messages.directive.d.ts +1 -1
- package/calendar/localization/calendar-messages.d.ts +1 -1
- package/calendar/localization/multiview-calendar-custom-messages.component.d.ts +1 -1
- package/calendar/localization/multiview-calendar-localized-messages.directive.d.ts +1 -1
- package/calendar/localization/multiview-calendar-messages.d.ts +1 -1
- package/calendar/models/cell-context.interface.d.ts +4 -0
- package/calendar/models/selection-range.interface.d.ts +2 -2
- package/calendar/models/selection.d.ts +11 -1
- package/calendar/multiview-calendar.component.d.ts +57 -8
- package/calendar/navigation.component.d.ts +1 -1
- package/calendar/templates/cell-template.directive.d.ts +1 -1
- package/calendar/templates/century-cell-template.directive.d.ts +1 -1
- package/calendar/templates/decade-cell-template.directive.d.ts +1 -1
- package/calendar/templates/footer-template.directiv/320/265.d.ts +1 -1
- package/calendar/templates/header-template.directive.d.ts +1 -1
- package/calendar/templates/header-title-template.directive.d.ts +1 -1
- package/calendar/templates/month-cell-template.directive.d.ts +1 -1
- package/calendar/templates/navigation-item-template.directive.d.ts +1 -1
- package/calendar/templates/weeknumber-cell-template.directive.d.ts +1 -1
- package/calendar/templates/year-cell-template.directive.d.ts +1 -1
- package/calendar/view-list.component.d.ts +9 -1
- package/calendar/view.component.d.ts +2 -1
- package/common/utils.d.ts +4 -0
- package/dateinput/dateinput.component.d.ts +13 -1
- package/dateinput/localization/dateinput-custom-messages.component.d.ts +1 -1
- package/dateinput/localization/dateinput-localized-messages.directive.d.ts +1 -1
- package/dateinput/localization/messages.d.ts +5 -1
- package/datepicker/datepicker.component.d.ts +7 -2
- package/datepicker/localization/datepicker-custom-messages.component.d.ts +1 -1
- package/datepicker/localization/datepicker-localized-messages.directive.d.ts +1 -1
- package/datepicker/localization/messages.d.ts +5 -1
- package/daterange/date-range-end-input.directive.d.ts +1 -1
- package/daterange/date-range-input.d.ts +1 -1
- package/daterange/date-range-popup-template.directive.d.ts +1 -1
- package/daterange/date-range-popup.component.d.ts +30 -2
- package/daterange/date-range-selection.directive.d.ts +1 -1
- package/daterange/date-range-start-input.directive.d.ts +1 -1
- package/daterange/date-range.component.d.ts +16 -1
- package/daterange/localization/daterange-popup-custom-messages.component.d.ts +1 -1
- package/daterange/localization/daterange-popup-localized-messages.directive.d.ts +1 -1
- package/daterange/localization/messages.d.ts +1 -1
- package/datetimepicker/datetimepicker.component.d.ts +12 -1
- package/datetimepicker/localization/datetimepicker-custom-messages.component.d.ts +1 -1
- package/datetimepicker/localization/localized-messages.directive.d.ts +1 -1
- package/datetimepicker/localization/messages.d.ts +5 -1
- package/esm2020/calendar/calendar-common.module.mjs +4 -4
- package/esm2020/calendar/calendar.component.mjs +256 -66
- package/esm2020/calendar/calendar.module.mjs +12 -14
- package/esm2020/calendar/calendars.module.mjs +5 -7
- package/esm2020/calendar/footer.component.mjs +6 -6
- package/esm2020/calendar/for.directive.mjs +3 -3
- package/esm2020/calendar/header.component.mjs +44 -26
- package/esm2020/calendar/horizontal-view-list.component.mjs +16 -12
- package/esm2020/calendar/localization/calendar-custom-messages.component.mjs +3 -3
- package/esm2020/calendar/localization/calendar-localized-messages.directive.mjs +3 -3
- package/esm2020/calendar/localization/calendar-messages.mjs +3 -3
- package/esm2020/calendar/localization/multiview-calendar-custom-messages.component.mjs +3 -3
- package/esm2020/calendar/localization/multiview-calendar-localized-messages.directive.mjs +3 -3
- package/esm2020/calendar/localization/multiview-calendar-messages.mjs +3 -3
- package/esm2020/calendar/models/selection.mjs +34 -1
- package/esm2020/calendar/multiview-calendar.component.mjs +268 -56
- package/esm2020/calendar/multiview-calendar.module.mjs +10 -12
- package/esm2020/calendar/navigation.component.mjs +8 -8
- package/esm2020/calendar/services/bus-view.service.mjs +3 -3
- package/esm2020/calendar/services/century-view.service.mjs +29 -8
- package/esm2020/calendar/services/decade-view.service.mjs +29 -8
- package/esm2020/calendar/services/disabled-dates.service.mjs +3 -3
- package/esm2020/calendar/services/dom.service.mjs +5 -5
- package/esm2020/calendar/services/month-view.service.mjs +29 -8
- package/esm2020/calendar/services/navigation.service.mjs +3 -3
- package/esm2020/calendar/services/scroll-sync.service.mjs +3 -3
- package/esm2020/calendar/services/selection.service.mjs +3 -3
- package/esm2020/calendar/services/weeknames.service.mjs +3 -3
- package/esm2020/calendar/services/year-view.service.mjs +29 -8
- package/esm2020/calendar/templates/cell-template.directive.mjs +3 -3
- package/esm2020/calendar/templates/century-cell-template.directive.mjs +3 -3
- package/esm2020/calendar/templates/decade-cell-template.directive.mjs +3 -3
- package/esm2020/calendar/templates/footer-template.directiv/320/265.mjs +3 -3
- package/esm2020/calendar/templates/header-template.directive.mjs +3 -3
- package/esm2020/calendar/templates/header-title-template.directive.mjs +3 -3
- package/esm2020/calendar/templates/month-cell-template.directive.mjs +3 -3
- package/esm2020/calendar/templates/navigation-item-template.directive.mjs +3 -3
- package/esm2020/calendar/templates/weeknumber-cell-template.directive.mjs +3 -3
- package/esm2020/calendar/templates/year-cell-template.directive.mjs +3 -3
- package/esm2020/calendar/templates.module.mjs +4 -4
- package/esm2020/calendar/view-list.component.mjs +31 -10
- package/esm2020/calendar/view.component.mjs +9 -6
- package/esm2020/common/adaptive.module.mjs +4 -4
- package/esm2020/common/utils.mjs +5 -1
- package/esm2020/dateinput/dateinput.component.mjs +70 -13
- package/esm2020/dateinput/dateinput.module.mjs +4 -4
- package/esm2020/dateinput/localization/dateinput-custom-messages.component.mjs +3 -3
- package/esm2020/dateinput/localization/dateinput-localized-messages.directive.mjs +3 -3
- package/esm2020/dateinput/localization/messages.mjs +5 -3
- package/esm2020/dateinputs.module.mjs +4 -4
- package/esm2020/datepicker/datepicker.component.mjs +45 -23
- package/esm2020/datepicker/datepicker.module.mjs +12 -14
- package/esm2020/datepicker/localization/datepicker-custom-messages.component.mjs +3 -3
- package/esm2020/datepicker/localization/datepicker-localized-messages.directive.mjs +3 -3
- package/esm2020/datepicker/localization/messages.mjs +5 -3
- package/esm2020/daterange/date-range-end-input.directive.mjs +3 -3
- package/esm2020/daterange/date-range-input.mjs +3 -3
- package/esm2020/daterange/date-range-popup-template.directive.mjs +3 -3
- package/esm2020/daterange/date-range-popup.component.mjs +75 -21
- package/esm2020/daterange/date-range-selection.directive.mjs +3 -3
- package/esm2020/daterange/date-range-start-input.directive.mjs +3 -3
- package/esm2020/daterange/date-range.component.mjs +12 -10
- package/esm2020/daterange/date-range.module.mjs +4 -4
- package/esm2020/daterange/date-range.service.mjs +3 -4
- package/esm2020/daterange/localization/daterange-popup-custom-messages.component.mjs +3 -3
- package/esm2020/daterange/localization/daterange-popup-localized-messages.directive.mjs +3 -3
- package/esm2020/daterange/localization/messages.mjs +3 -3
- package/esm2020/datetimepicker/datetimepicker.component.mjs +56 -23
- package/esm2020/datetimepicker/datetimepicker.module.mjs +14 -16
- package/esm2020/datetimepicker/localization/datetimepicker-custom-messages.component.mjs +3 -3
- package/esm2020/datetimepicker/localization/localized-messages.directive.mjs +3 -3
- package/esm2020/datetimepicker/localization/messages.mjs +5 -3
- package/esm2020/package-metadata.mjs +2 -2
- package/esm2020/timepicker/localization/messages.mjs +5 -3
- package/esm2020/timepicker/localization/timepicker-custom-messages.component.mjs +3 -3
- package/esm2020/timepicker/localization/timepicker-localized-messages.directive.mjs +3 -3
- package/esm2020/timepicker/localization/timeselector-custom-messages.component.mjs +3 -3
- package/esm2020/timepicker/localization/timeselector-localized-messages.directive.mjs +3 -3
- package/esm2020/timepicker/services/dayperiod.service.mjs +3 -3
- package/esm2020/timepicker/services/dom.service.mjs +3 -3
- package/esm2020/timepicker/services/hours.service.mjs +3 -3
- package/esm2020/timepicker/services/milliseconds.service.mjs +3 -3
- package/esm2020/timepicker/services/minutes.service.mjs +3 -3
- package/esm2020/timepicker/services/seconds.service.mjs +3 -3
- package/esm2020/timepicker/timelist.component.mjs +6 -6
- package/esm2020/timepicker/timepicker.component.mjs +42 -17
- package/esm2020/timepicker/timepicker.module.mjs +4 -4
- package/esm2020/timepicker/timeselector.component.mjs +29 -14
- package/esm2020/virtualization/virtualization.component.mjs +4 -4
- package/esm2020/virtualization/virtualization.module.mjs +4 -4
- package/fesm2015/progress-kendo-angular-dateinputs.mjs +1547 -763
- package/fesm2020/progress-kendo-angular-dateinputs.mjs +1538 -766
- package/package.json +17 -20
- package/timepicker/localization/messages.d.ts +5 -1
- package/timepicker/localization/timepicker-custom-messages.component.d.ts +1 -1
- package/timepicker/localization/timepicker-localized-messages.directive.d.ts +1 -1
- package/timepicker/localization/timeselector-custom-messages.component.d.ts +1 -1
- package/timepicker/localization/timeselector-localized-messages.directive.d.ts +1 -1
- package/timepicker/timelist.component.d.ts +1 -1
- package/timepicker/timepicker.component.d.ts +7 -1
- package/timepicker/timeselector.component.d.ts +2 -1
- package/virtualization/virtualization.component.d.ts +1 -1
- package/progress-kendo-angular-dateinputs.d.ts +0 -9
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { ChangeDetectorRef, EventEmitter, ElementRef, Renderer2, AfterViewChecked, OnChanges, OnDestroy, NgZone, Injector, AfterViewInit } from '@angular/core';
|
|
5
|
+
import { ChangeDetectorRef, EventEmitter, ElementRef, Renderer2, AfterViewChecked, OnChanges, OnDestroy, NgZone, Injector, AfterViewInit, DoCheck } from '@angular/core';
|
|
6
6
|
import { AbstractControl, ControlValueAccessor, Validator } from '@angular/forms';
|
|
7
7
|
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
8
8
|
import { Day } from '@progress/kendo-date-math';
|
|
@@ -32,6 +32,8 @@ import { DateInputSize } from '../common/models/size';
|
|
|
32
32
|
import { HeaderTemplateDirective } from './templates/header-template.directive';
|
|
33
33
|
import { FooterTemplateDirective } from './templates/footer-template.directivе';
|
|
34
34
|
import { WeekDaysFormat } from '../common/models/week-days-format';
|
|
35
|
+
import { SelectionRangeEnd } from './models/selection-range-end.type';
|
|
36
|
+
import { SelectionRange } from './models/selection-range.interface';
|
|
35
37
|
import * as i0 from "@angular/core";
|
|
36
38
|
/**
|
|
37
39
|
* @hidden
|
|
@@ -59,7 +61,7 @@ export declare const KENDO_INPUT_PROVIDER: any;
|
|
|
59
61
|
* export class AppComponent { }
|
|
60
62
|
* ```
|
|
61
63
|
*/
|
|
62
|
-
export declare class CalendarComponent implements ControlValueAccessor, OnChanges, OnDestroy, AfterViewChecked, AfterViewInit, Validator {
|
|
64
|
+
export declare class CalendarComponent implements ControlValueAccessor, OnChanges, DoCheck, OnDestroy, AfterViewChecked, AfterViewInit, Validator {
|
|
63
65
|
private bus;
|
|
64
66
|
dom: CalendarDOMService;
|
|
65
67
|
private element;
|
|
@@ -140,17 +142,28 @@ export declare class CalendarComponent implements ControlValueAccessor, OnChange
|
|
|
140
142
|
* The available values are:
|
|
141
143
|
* * `single` (default)
|
|
142
144
|
* * `multiple`
|
|
145
|
+
* * `range`
|
|
143
146
|
*/
|
|
144
|
-
selection: CalendarSelection;
|
|
147
|
+
set selection(_selection: CalendarSelection);
|
|
148
|
+
get selection(): CalendarSelection;
|
|
149
|
+
private _selection;
|
|
150
|
+
/**
|
|
151
|
+
* Allows reverse selection when using `range` selection.
|
|
152
|
+
* If `allowReverse` is set to `true`, the component skips the validation of whether the start date is after the end date.
|
|
153
|
+
*
|
|
154
|
+
* @default false
|
|
155
|
+
*/
|
|
156
|
+
allowReverse: boolean;
|
|
145
157
|
/**
|
|
146
158
|
* Sets or gets the `value` property of the Calendar and defines the selected value of the component.
|
|
147
159
|
*
|
|
148
160
|
* > The `value` has to be a valid
|
|
149
161
|
* [JavaScript `Date`](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Date)
|
|
150
|
-
* instance when in `single` selection mode
|
|
162
|
+
* instance when in `single` selection mode, an array of valid JavaScript Date instances when in `multiple` selection mode, or
|
|
163
|
+
* an object of type `SelectionRange` when in `range` selection mode.
|
|
151
164
|
*/
|
|
152
|
-
|
|
153
|
-
|
|
165
|
+
set value(candidate: Date | Date[] | SelectionRange | null);
|
|
166
|
+
get value(): Date | Date[] | SelectionRange | null;
|
|
154
167
|
/**
|
|
155
168
|
* Sets or gets the `disabled` property of the Calendar and
|
|
156
169
|
* determines whether the component is active
|
|
@@ -423,11 +436,21 @@ export declare class CalendarComponent implements ControlValueAccessor, OnChange
|
|
|
423
436
|
set size(size: DateInputSize);
|
|
424
437
|
get size(): DateInputSize;
|
|
425
438
|
private _size;
|
|
439
|
+
/**
|
|
440
|
+
* Specify, which end of the defined selection range should be marked as active.
|
|
441
|
+
*
|
|
442
|
+
* > Value will be ignored if the selection range is undefined.
|
|
443
|
+
* > If range selection is used then the default value is 'start'.
|
|
444
|
+
*/
|
|
445
|
+
set activeRangeEnd(_activeRangeEnd: SelectionRangeEnd);
|
|
446
|
+
get activeRangeEnd(): SelectionRangeEnd;
|
|
447
|
+
private _activeRangeEnd;
|
|
426
448
|
navigationView: NavigationComponent;
|
|
427
449
|
monthView: ViewListComponent;
|
|
428
450
|
multiViewCalendar: MultiViewCalendarComponent;
|
|
429
451
|
isActive: boolean;
|
|
430
452
|
cellUID: string;
|
|
453
|
+
selectionRange: SelectionRange;
|
|
431
454
|
selectedDates: Date[];
|
|
432
455
|
rangePivot: Date;
|
|
433
456
|
private _disabledDates;
|
|
@@ -440,6 +463,9 @@ export declare class CalendarComponent implements ControlValueAccessor, OnChange
|
|
|
440
463
|
private onValidatorChange;
|
|
441
464
|
private minValidateFn;
|
|
442
465
|
private maxValidateFn;
|
|
466
|
+
private changes;
|
|
467
|
+
private valueSetter;
|
|
468
|
+
private selectionSetter;
|
|
443
469
|
private syncNavigation;
|
|
444
470
|
private viewChangeSubscription;
|
|
445
471
|
private _type;
|
|
@@ -466,12 +492,18 @@ export declare class CalendarComponent implements ControlValueAccessor, OnChange
|
|
|
466
492
|
private localizationChangeSubscription;
|
|
467
493
|
private activeViewDate;
|
|
468
494
|
private currentlyFocusedElement;
|
|
495
|
+
private canHover;
|
|
469
496
|
constructor(bus: BusViewService, dom: CalendarDOMService, element: ElementRef, navigator: NavigationService, renderer: Renderer2, cdr: ChangeDetectorRef, ngZone: NgZone, injector: Injector, scrollSyncService: ScrollSyncService, disabledDatesService: DisabledDatesService, localization: LocalizationService, selectionService: SelectionService, pickerService?: PickerService);
|
|
470
497
|
ngOnInit(): void;
|
|
471
498
|
ngOnChanges(changes: any): void;
|
|
499
|
+
ngDoCheck(): void;
|
|
472
500
|
ngAfterViewInit(): void;
|
|
473
501
|
ngAfterViewChecked(): void;
|
|
474
502
|
ngOnDestroy(): void;
|
|
503
|
+
/**
|
|
504
|
+
* @hidden
|
|
505
|
+
*/
|
|
506
|
+
onCellEnter(date: Date): void;
|
|
475
507
|
/**
|
|
476
508
|
* @hidden
|
|
477
509
|
*/
|
|
@@ -511,7 +543,7 @@ export declare class CalendarComponent implements ControlValueAccessor, OnChange
|
|
|
511
543
|
/**
|
|
512
544
|
* @hidden
|
|
513
545
|
*/
|
|
514
|
-
handleMultiViewCalendarValueChange(
|
|
546
|
+
handleMultiViewCalendarValueChange(value: Date | Date[] | SelectionRange, focusedDate: Date): void;
|
|
515
547
|
/**
|
|
516
548
|
* @hidden
|
|
517
549
|
*/
|
|
@@ -605,7 +637,9 @@ export declare class CalendarComponent implements ControlValueAccessor, OnChange
|
|
|
605
637
|
private emitSameDate;
|
|
606
638
|
private setAriaActivedescendant;
|
|
607
639
|
private parseSelectionToValue;
|
|
640
|
+
private setValue;
|
|
641
|
+
private performRangeSelection;
|
|
608
642
|
private performSelection;
|
|
609
643
|
static ɵfac: i0.ɵɵFactoryDeclaration<CalendarComponent, [null, null, null, null, null, null, null, null, null, null, null, null, { optional: true; }]>;
|
|
610
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CalendarComponent, "kendo-calendar", ["kendo-calendar"], { "showOtherMonthDays": "showOtherMonthDays"; "id": "id"; "focusedDate": "focusedDate"; "min": "min"; "max": "max"; "rangeValidation": "rangeValidation"; "weekDaysFormat": "weekDaysFormat"; "footer": "footer"; "selection": "selection"; "value": "value"; "disabled": "disabled"; "tabindex": "tabindex"; "tabIndex": "tabIndex"; "disabledDates": "disabledDates"; "navigation": "navigation"; "activeView": "activeView"; "bottomView": "bottomView"; "topView": "topView"; "type": "type"; "animateNavigation": "animateNavigation"; "weekNumber": "weekNumber"; "cellTemplateRef": "cellTemplate"; "monthCellTemplateRef": "monthCellTemplate"; "yearCellTemplateRef": "yearCellTemplate"; "decadeCellTemplateRef": "decadeCellTemplate"; "centuryCellTemplateRef": "centuryCellTemplate"; "weekNumberTemplateRef": "weekNumberTemplate"; "headerTitleTemplateRef": "headerTitleTemplate"; "headerTemplateRef": "headerTemplate"; "footerTemplateRef": "footerTemplate"; "navigationItemTemplateRef": "navigationItemTemplate"; "size": "size"; }, { "activeViewChange": "activeViewChange"; "navigate": "navigate"; "activeViewDateChange": "activeViewDateChange"; "onBlur": "blur"; "onFocus": "focus"; "valueChange": "valueChange"; }, ["cellTemplate", "monthCellTemplate", "yearCellTemplate", "decadeCellTemplate", "centuryCellTemplate", "weekNumberTemplate", "headerTitleTemplate", "headerTemplate", "footerTemplate", "navigationItemTemplate"], never>;
|
|
644
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CalendarComponent, "kendo-calendar", ["kendo-calendar"], { "showOtherMonthDays": "showOtherMonthDays"; "id": "id"; "focusedDate": "focusedDate"; "min": "min"; "max": "max"; "rangeValidation": "rangeValidation"; "weekDaysFormat": "weekDaysFormat"; "footer": "footer"; "selection": "selection"; "allowReverse": "allowReverse"; "value": "value"; "disabled": "disabled"; "tabindex": "tabindex"; "tabIndex": "tabIndex"; "disabledDates": "disabledDates"; "navigation": "navigation"; "activeView": "activeView"; "bottomView": "bottomView"; "topView": "topView"; "type": "type"; "animateNavigation": "animateNavigation"; "weekNumber": "weekNumber"; "cellTemplateRef": "cellTemplate"; "monthCellTemplateRef": "monthCellTemplate"; "yearCellTemplateRef": "yearCellTemplate"; "decadeCellTemplateRef": "decadeCellTemplate"; "centuryCellTemplateRef": "centuryCellTemplate"; "weekNumberTemplateRef": "weekNumberTemplate"; "headerTitleTemplateRef": "headerTitleTemplate"; "headerTemplateRef": "headerTemplate"; "footerTemplateRef": "footerTemplate"; "navigationItemTemplateRef": "navigationItemTemplate"; "size": "size"; "activeRangeEnd": "activeRangeEnd"; }, { "activeViewChange": "activeViewChange"; "navigate": "navigate"; "activeViewDateChange": "activeViewDateChange"; "onBlur": "blur"; "onFocus": "focus"; "valueChange": "valueChange"; }, ["cellTemplate", "monthCellTemplate", "yearCellTemplate", "decadeCellTemplate", "centuryCellTemplate", "weekNumberTemplate", "headerTitleTemplate", "headerTemplate", "footerTemplate", "navigationItemTemplate"], never, false, never>;
|
|
611
645
|
}
|
|
@@ -18,5 +18,5 @@ export declare class FooterComponent {
|
|
|
18
18
|
getToday: () => Date;
|
|
19
19
|
constructor(intl: IntlService);
|
|
20
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<FooterComponent, never>;
|
|
21
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FooterComponent, "kendo-calendar-footer", never, { "footerTemplateRef": "footerTemplateRef"; "activeViewValue": "activeViewValue"; "currentDate": "currentDate"; }, {}, never, never>;
|
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FooterComponent, "kendo-calendar-footer", never, { "footerTemplateRef": "footerTemplateRef"; "activeViewValue": "activeViewValue"; "currentDate": "currentDate"; }, {}, never, never, false, never>;
|
|
22
22
|
}
|
|
@@ -34,7 +34,7 @@ export declare class KForOf<T> implements DoCheck, OnChanges {
|
|
|
34
34
|
ngDoCheck(): void;
|
|
35
35
|
private _applyChanges;
|
|
36
36
|
static ɵfac: i0.ɵɵFactoryDeclaration<KForOf<any>, never>;
|
|
37
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<KForOf<any>, "[kFor][kForOf]", never, { "kForOf": "kForOf"; "kForTrackBy": "kForTrackBy"; "kForTemplate": "kForTemplate"; }, {}, never>;
|
|
37
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<KForOf<any>, "[kFor][kForOf]", never, { "kForOf": "kForOf"; "kForTrackBy": "kForTrackBy"; "kForTemplate": "kForTemplate"; }, {}, never, never, false, never>;
|
|
38
38
|
}
|
|
39
39
|
/**
|
|
40
40
|
* @hidden
|
|
@@ -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>;
|
|
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
|
}
|
|
@@ -24,14 +24,15 @@ export declare class HorizontalViewListComponent implements OnChanges, AfterView
|
|
|
24
24
|
private cdr;
|
|
25
25
|
private element;
|
|
26
26
|
private renderer;
|
|
27
|
+
handleMultiViewCalendarFocus(): void;
|
|
28
|
+
handleMultiViewCalendarBlur(event: any): void;
|
|
27
29
|
/**
|
|
28
30
|
* Needed for the MultiViewCalendar used in the Scheduler Year view
|
|
29
31
|
*/
|
|
30
32
|
showOtherMonthDays: boolean;
|
|
31
|
-
handleMultiViewCalendarFocus(): void;
|
|
32
|
-
handleMultiViewCalendarBlur(event: any): void;
|
|
33
33
|
cellTemplateRef: TemplateRef<any>;
|
|
34
34
|
weekNumberTemplateRef: TemplateRef<any>;
|
|
35
|
+
allowReverse: boolean;
|
|
35
36
|
activeRangeEnd: SelectionRangeEnd;
|
|
36
37
|
activeView: CalendarViewEnum;
|
|
37
38
|
cellUID: string;
|
|
@@ -106,5 +107,5 @@ export declare class HorizontalViewListComponent implements OnChanges, AfterView
|
|
|
106
107
|
private getTake;
|
|
107
108
|
private setAriaActivedescendant;
|
|
108
109
|
static ɵfac: i0.ɵɵFactoryDeclaration<HorizontalViewListComponent, never>;
|
|
109
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<HorizontalViewListComponent, "kendo-calendar-horizontal", never, { "showOtherMonthDays": "showOtherMonthDays"; "cellTemplateRef": "cellTemplateRef"; "weekNumberTemplateRef": "weekNumberTemplateRef"; "activeRangeEnd": "activeRangeEnd"; "activeView": "activeView"; "cellUID": "cellUID"; "focusedDate": "focusedDate"; "isActive": "isActive"; "min": "min"; "max": "max"; "selectionRange": "selectionRange"; "selectedDates": "selectedDates"; "views": "views"; "showViewHeader": "showViewHeader"; "animateNavigation": "animateNavigation"; "orientation": "orientation"; "activeDescendant": "activeDescendant"; "tabIndex": "tabIndex"; "disabled": "disabled"; "id": "id"; "weekDaysFormat": "weekDaysFormat"; "weekNumber": "weekNumber"; }, { "cellClick": "cellClick"; "weekNumberCellClick": "weekNumberCellClick"; "cellEnter": "cellEnter"; "cellLeave": "cellLeave"; "activeDateChange": "activeDateChange"; "focusCalendar": "focusCalendar"; "blurCalendar": "blurCalendar"; "focusedCellChange": "focusedCellChange"; }, never, never>;
|
|
110
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HorizontalViewListComponent, "kendo-calendar-horizontal", never, { "showOtherMonthDays": "showOtherMonthDays"; "cellTemplateRef": "cellTemplateRef"; "weekNumberTemplateRef": "weekNumberTemplateRef"; "allowReverse": "allowReverse"; "activeRangeEnd": "activeRangeEnd"; "activeView": "activeView"; "cellUID": "cellUID"; "focusedDate": "focusedDate"; "isActive": "isActive"; "min": "min"; "max": "max"; "selectionRange": "selectionRange"; "selectedDates": "selectedDates"; "views": "views"; "showViewHeader": "showViewHeader"; "animateNavigation": "animateNavigation"; "orientation": "orientation"; "activeDescendant": "activeDescendant"; "tabIndex": "tabIndex"; "disabled": "disabled"; "id": "id"; "weekDaysFormat": "weekDaysFormat"; "weekNumber": "weekNumber"; }, { "cellClick": "cellClick"; "weekNumberCellClick": "weekNumberCellClick"; "cellEnter": "cellEnter"; "cellLeave": "cellLeave"; "activeDateChange": "activeDateChange"; "focusCalendar": "focusCalendar"; "blurCalendar": "blurCalendar"; "focusedCellChange": "focusedCellChange"; }, never, never, false, never>;
|
|
110
111
|
}
|
|
@@ -13,5 +13,5 @@ export declare class CalendarCustomMessagesComponent extends CalendarMessages {
|
|
|
13
13
|
constructor(service: LocalizationService);
|
|
14
14
|
protected get override(): boolean;
|
|
15
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<CalendarCustomMessagesComponent, never>;
|
|
16
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CalendarCustomMessagesComponent, "kendo-calendar-messages", never, {}, {}, never, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CalendarCustomMessagesComponent, "kendo-calendar-messages", never, {}, {}, never, never, false, never>;
|
|
17
17
|
}
|
|
@@ -12,5 +12,5 @@ export declare class CalendarLocalizedMessagesDirective extends CalendarMessages
|
|
|
12
12
|
protected service: LocalizationService;
|
|
13
13
|
constructor(service: LocalizationService);
|
|
14
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<CalendarLocalizedMessagesDirective, never>;
|
|
15
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CalendarLocalizedMessagesDirective, "[kendoCalendarLocalizedMessages]", never, {}, {}, never>;
|
|
15
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CalendarLocalizedMessagesDirective, "[kendoCalendarLocalizedMessages]", never, {}, {}, never, never, false, never>;
|
|
16
16
|
}
|
|
@@ -25,5 +25,5 @@ export declare class CalendarMessages extends ComponentMessages {
|
|
|
25
25
|
*/
|
|
26
26
|
parentViewButtonTitle: string;
|
|
27
27
|
static ɵfac: i0.ɵɵFactoryDeclaration<CalendarMessages, never>;
|
|
28
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CalendarMessages, "kendo-calendar-messages-base", never, { "today": "today"; "prevButtonTitle": "prevButtonTitle"; "nextButtonTitle": "nextButtonTitle"; "parentViewButtonTitle": "parentViewButtonTitle"; }, {}, never>;
|
|
28
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CalendarMessages, "kendo-calendar-messages-base", never, { "today": "today"; "prevButtonTitle": "prevButtonTitle"; "nextButtonTitle": "nextButtonTitle"; "parentViewButtonTitle": "parentViewButtonTitle"; }, {}, never, never, false, never>;
|
|
29
29
|
}
|
|
@@ -13,5 +13,5 @@ export declare class MultiViewCalendarCustomMessagesComponent extends Messages {
|
|
|
13
13
|
constructor(service: LocalizationService);
|
|
14
14
|
protected get override(): boolean;
|
|
15
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<MultiViewCalendarCustomMessagesComponent, never>;
|
|
16
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MultiViewCalendarCustomMessagesComponent, "kendo-multiviewcalendar-messages", never, {}, {}, never, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MultiViewCalendarCustomMessagesComponent, "kendo-multiviewcalendar-messages", never, {}, {}, never, never, false, never>;
|
|
17
17
|
}
|
|
@@ -12,5 +12,5 @@ export declare class MultiViewCalendarLocalizedMessagesDirective extends Message
|
|
|
12
12
|
protected service: LocalizationService;
|
|
13
13
|
constructor(service: LocalizationService);
|
|
14
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<MultiViewCalendarLocalizedMessagesDirective, never>;
|
|
15
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MultiViewCalendarLocalizedMessagesDirective, "[kendoMultiViewCalendarLocalizedMessages]", never, {}, {}, never>;
|
|
15
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MultiViewCalendarLocalizedMessagesDirective, "[kendoMultiViewCalendarLocalizedMessages]", never, {}, {}, never, never, false, never>;
|
|
16
16
|
}
|
|
@@ -25,5 +25,5 @@ export declare class Messages extends ComponentMessages {
|
|
|
25
25
|
*/
|
|
26
26
|
parentViewButtonTitle: string;
|
|
27
27
|
static ɵfac: i0.ɵɵFactoryDeclaration<Messages, never>;
|
|
28
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<Messages, "kendo-multiview-calendar-messages-base", never, { "today": "today"; "prevButtonTitle": "prevButtonTitle"; "nextButtonTitle": "nextButtonTitle"; "parentViewButtonTitle": "parentViewButtonTitle"; }, {}, never>;
|
|
28
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<Messages, "kendo-multiview-calendar-messages-base", never, { "today": "today"; "prevButtonTitle": "prevButtonTitle"; "nextButtonTitle": "nextButtonTitle"; "parentViewButtonTitle": "parentViewButtonTitle"; }, {}, never, never, false, never>;
|
|
29
29
|
}
|
|
@@ -2,12 +2,22 @@
|
|
|
2
2
|
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { SelectionRangeEnd } from "./selection-range-end.type";
|
|
6
|
+
import { SelectionRange } from "./selection-range.interface";
|
|
5
7
|
/**
|
|
6
8
|
* Sets the Calendar selection mode.
|
|
7
9
|
*
|
|
8
10
|
* The available values are:
|
|
9
11
|
* * `single` (default)
|
|
10
12
|
* * `multiple`
|
|
13
|
+
* * `range`
|
|
11
14
|
*
|
|
12
15
|
*/
|
|
13
|
-
export declare type CalendarSelection = 'single' | 'multiple';
|
|
16
|
+
export declare type CalendarSelection = 'single' | 'multiple' | 'range';
|
|
17
|
+
/**
|
|
18
|
+
* @hidden
|
|
19
|
+
*/
|
|
20
|
+
export declare function handleRangeSelection(date: Date, selectionRange: SelectionRange, activeRangeEnd: SelectionRangeEnd, allowReverse?: boolean): {
|
|
21
|
+
activeRangeEnd: SelectionRangeEnd;
|
|
22
|
+
selectionRange: SelectionRange;
|
|
23
|
+
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { ChangeDetectorRef, EventEmitter, ElementRef, Renderer2, AfterViewInit, OnChanges, OnDestroy, NgZone } from '@angular/core';
|
|
5
|
+
import { ChangeDetectorRef, EventEmitter, ElementRef, Renderer2, AfterViewInit, OnChanges, OnDestroy, NgZone, DoCheck } from '@angular/core';
|
|
6
6
|
import { AbstractControl, ControlValueAccessor, Validator } from '@angular/forms';
|
|
7
7
|
import { Day } from '@progress/kendo-date-math';
|
|
8
8
|
import { HorizontalViewListComponent } from './horizontal-view-list.component';
|
|
@@ -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
|
|
@@ -51,7 +52,7 @@ export declare const RANGE_CALENDAR_RANGE_VALIDATORS: any;
|
|
|
51
52
|
* export class AppComponent { }
|
|
52
53
|
* ```
|
|
53
54
|
*/
|
|
54
|
-
export declare class MultiViewCalendarComponent implements AfterViewInit, ControlValueAccessor, OnChanges, OnDestroy, Validator {
|
|
55
|
+
export declare class MultiViewCalendarComponent implements AfterViewInit, ControlValueAccessor, OnChanges, DoCheck, OnDestroy, Validator {
|
|
55
56
|
bus: BusViewService;
|
|
56
57
|
element: ElementRef;
|
|
57
58
|
private navigator;
|
|
@@ -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
|
*/
|
|
@@ -132,17 +149,28 @@ export declare class MultiViewCalendarComponent implements AfterViewInit, Contro
|
|
|
132
149
|
* The available values are:
|
|
133
150
|
* * `single` (default)
|
|
134
151
|
* * `multiple`
|
|
152
|
+
* * `range`
|
|
153
|
+
*/
|
|
154
|
+
set selection(_selection: CalendarSelection);
|
|
155
|
+
get selection(): CalendarSelection;
|
|
156
|
+
private _selection;
|
|
157
|
+
/**
|
|
158
|
+
* Allows reverse selection when using `range` selection.
|
|
159
|
+
* If `allowReverse` is set to `true`, the component skips the validation of whether the start date is after the end date.
|
|
160
|
+
*
|
|
161
|
+
* @default false
|
|
135
162
|
*/
|
|
136
|
-
|
|
163
|
+
allowReverse: boolean;
|
|
137
164
|
/**
|
|
138
165
|
* Sets or gets the `value` property of the Calendar and defines the selected value of the component.
|
|
139
166
|
*
|
|
140
167
|
* > The `value` has to be a valid
|
|
141
168
|
* [JavaScript `Date`](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Date)
|
|
142
|
-
* instance when in `single` selection mode
|
|
169
|
+
* instance when in `single` selection mode, an array of valid JavaScript Date instances when in `multiple` selection mode, or
|
|
170
|
+
* an object of type `SelectionRange` when in `range` selection mode.
|
|
143
171
|
*/
|
|
144
|
-
|
|
145
|
-
|
|
172
|
+
set value(candidate: Date | Date[] | SelectionRange | null);
|
|
173
|
+
get value(): Date | Date[] | SelectionRange | null;
|
|
146
174
|
/**
|
|
147
175
|
* Sets or gets the `disabled` property of the Calendar and
|
|
148
176
|
* determines whether the component is active
|
|
@@ -213,12 +241,15 @@ export declare class MultiViewCalendarComponent implements AfterViewInit, Contro
|
|
|
213
241
|
* Specify, which end of the defined selection range should be marked as active.
|
|
214
242
|
*
|
|
215
243
|
* > Value will be ignored if the selection range is undefined.
|
|
244
|
+
* > If range selection is used then the default value is 'start'.
|
|
216
245
|
*/
|
|
217
|
-
activeRangeEnd: SelectionRangeEnd;
|
|
246
|
+
set activeRangeEnd(_activeRangeEnd: SelectionRangeEnd);
|
|
247
|
+
get activeRangeEnd(): SelectionRangeEnd;
|
|
218
248
|
/**
|
|
219
249
|
* Sets or gets the `selectionRange` property of the Calendar and
|
|
220
250
|
* defines the selection range of the component
|
|
221
251
|
* ([see example]({% slug dates_multiviewcalendar %}#toc-selection-range)).
|
|
252
|
+
* > We recommend using the `value` property as it now supports `range` selection.
|
|
222
253
|
*/
|
|
223
254
|
set selectionRange(range: SelectionRange);
|
|
224
255
|
get selectionRange(): SelectionRange;
|
|
@@ -263,6 +294,11 @@ export declare class MultiViewCalendarComponent implements AfterViewInit, Contro
|
|
|
263
294
|
* ([see example](slug:events_multiviewcalendar)).
|
|
264
295
|
*/
|
|
265
296
|
valueChange: EventEmitter<any>;
|
|
297
|
+
/**
|
|
298
|
+
* @hidden
|
|
299
|
+
* Fires when the range selection changes.
|
|
300
|
+
*/
|
|
301
|
+
rangeSelectionChange: EventEmitter<any>;
|
|
266
302
|
/**
|
|
267
303
|
* Fires each time the MultiViewCalendar gets blurred
|
|
268
304
|
* ([see example](slug:events_multiviewcalendar)).
|
|
@@ -433,11 +469,17 @@ export declare class MultiViewCalendarComponent implements AfterViewInit, Contro
|
|
|
433
469
|
nextView: Action;
|
|
434
470
|
selectedDates: Date[];
|
|
435
471
|
rangePivot: Date;
|
|
472
|
+
shouldHoverWhenNoStart: boolean;
|
|
473
|
+
private canHover;
|
|
474
|
+
private changes;
|
|
475
|
+
private valueSetter;
|
|
476
|
+
private selectionSetter;
|
|
436
477
|
private _min;
|
|
437
478
|
private _max;
|
|
438
479
|
private _focusedDate;
|
|
439
480
|
private _value;
|
|
440
481
|
private _selectionRange;
|
|
482
|
+
private _activeRangeEnd;
|
|
441
483
|
private resolvedPromise;
|
|
442
484
|
private onControlChange;
|
|
443
485
|
private onControlTouched;
|
|
@@ -495,6 +537,7 @@ export declare class MultiViewCalendarComponent implements AfterViewInit, Contro
|
|
|
495
537
|
constructor(bus: BusViewService, element: ElementRef, navigator: NavigationService, renderer: Renderer2, cdr: ChangeDetectorRef, zone: NgZone, disabledDatesService: DisabledDatesService, selectionService: SelectionService);
|
|
496
538
|
ngOnInit(): void;
|
|
497
539
|
ngOnChanges(changes: any): void;
|
|
540
|
+
ngDoCheck(): void;
|
|
498
541
|
ngOnDestroy(): void;
|
|
499
542
|
ngAfterViewInit(): void;
|
|
500
543
|
/**
|
|
@@ -524,6 +567,10 @@ export declare class MultiViewCalendarComponent implements AfterViewInit, Contro
|
|
|
524
567
|
selectedDates: Date[];
|
|
525
568
|
focusedDate: Date;
|
|
526
569
|
}): void;
|
|
570
|
+
/**
|
|
571
|
+
* @hidden
|
|
572
|
+
*/
|
|
573
|
+
onCellEnter(cellEnter: any, date: Date): void;
|
|
527
574
|
/**
|
|
528
575
|
* @hidden
|
|
529
576
|
*/
|
|
@@ -590,7 +637,9 @@ export declare class MultiViewCalendarComponent implements AfterViewInit, Contro
|
|
|
590
637
|
private verifyValue;
|
|
591
638
|
private updateButtonState;
|
|
592
639
|
private parseSelectionToValue;
|
|
640
|
+
private setValue;
|
|
641
|
+
private performRangeSelection;
|
|
593
642
|
private performSelection;
|
|
594
643
|
static ɵfac: i0.ɵɵFactoryDeclaration<MultiViewCalendarComponent, never>;
|
|
595
|
-
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"; "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"; "blurEvent": "blur"; "focusEvent": "focus"; "focusCalendar": "focusCalendar"; "onClosePopup": "onClosePopup"; "onTabPress": "onTabPress"; "onShiftTabPress": "onShiftTabPress"; }, ["cellTemplate", "monthCellTemplate", "yearCellTemplate", "decadeCellTemplate", "centuryCellTemplate", "weekNumberTemplate", "headerTitleTemplate", "headerTemplate", "footerTemplate"], 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>;
|
|
596
645
|
}
|
|
@@ -56,5 +56,5 @@ export declare class NavigationComponent implements OnChanges, OnDestroy, AfterV
|
|
|
56
56
|
private getTake;
|
|
57
57
|
private intlChange;
|
|
58
58
|
static ɵfac: i0.ɵɵFactoryDeclaration<NavigationComponent, never>;
|
|
59
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NavigationComponent, "kendo-calendar-navigation", never, { "activeView": "activeView"; "min": "min"; "max": "max"; "focusedDate": "focusedDate"; "templateRef": "templateRef"; }, { "valueChange": "valueChange"; "pageChange": "pageChange"; }, never, never>;
|
|
59
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NavigationComponent, "kendo-calendar-navigation", never, { "activeView": "activeView"; "min": "min"; "max": "max"; "focusedDate": "focusedDate"; "templateRef": "templateRef"; }, { "valueChange": "valueChange"; "pageChange": "pageChange"; }, never, never, false, never>;
|
|
60
60
|
}
|
|
@@ -35,5 +35,5 @@ export declare class CellTemplateDirective {
|
|
|
35
35
|
templateRef: TemplateRef<any>;
|
|
36
36
|
constructor(templateRef: TemplateRef<any>);
|
|
37
37
|
static ɵfac: i0.ɵɵFactoryDeclaration<CellTemplateDirective, never>;
|
|
38
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CellTemplateDirective, "[kendoCalendarCellTemplate]", never, {}, {}, never>;
|
|
38
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CellTemplateDirective, "[kendoCalendarCellTemplate]", never, {}, {}, never, never, false, never>;
|
|
39
39
|
}
|
|
@@ -34,5 +34,5 @@ export declare class CenturyCellTemplateDirective {
|
|
|
34
34
|
templateRef: TemplateRef<any>;
|
|
35
35
|
constructor(templateRef: TemplateRef<any>);
|
|
36
36
|
static ɵfac: i0.ɵɵFactoryDeclaration<CenturyCellTemplateDirective, never>;
|
|
37
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CenturyCellTemplateDirective, "[kendoCalendarCenturyCellTemplate]", never, {}, {}, never>;
|
|
37
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CenturyCellTemplateDirective, "[kendoCalendarCenturyCellTemplate]", never, {}, {}, never, never, false, never>;
|
|
38
38
|
}
|
|
@@ -34,5 +34,5 @@ export declare class DecadeCellTemplateDirective {
|
|
|
34
34
|
templateRef: TemplateRef<any>;
|
|
35
35
|
constructor(templateRef: TemplateRef<any>);
|
|
36
36
|
static ɵfac: i0.ɵɵFactoryDeclaration<DecadeCellTemplateDirective, never>;
|
|
37
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<DecadeCellTemplateDirective, "[kendoCalendarDecadeCellTemplate]", never, {}, {}, never>;
|
|
37
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DecadeCellTemplateDirective, "[kendoCalendarDecadeCellTemplate]", never, {}, {}, never, never, false, never>;
|
|
38
38
|
}
|
|
@@ -32,5 +32,5 @@ export declare class FooterTemplateDirective {
|
|
|
32
32
|
templateRef: TemplateRef<any>;
|
|
33
33
|
constructor(templateRef: TemplateRef<any>);
|
|
34
34
|
static ɵfac: i0.ɵɵFactoryDeclaration<FooterTemplateDirective, never>;
|
|
35
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<FooterTemplateDirective, "[kendoCalendarFooterTemplate]", never, {}, {}, never>;
|
|
35
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FooterTemplateDirective, "[kendoCalendarFooterTemplate]", never, {}, {}, never, never, false, never>;
|
|
36
36
|
}
|
|
@@ -33,5 +33,5 @@ export declare class HeaderTemplateDirective {
|
|
|
33
33
|
templateRef: TemplateRef<any>;
|
|
34
34
|
constructor(templateRef: TemplateRef<any>);
|
|
35
35
|
static ɵfac: i0.ɵɵFactoryDeclaration<HeaderTemplateDirective, never>;
|
|
36
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<HeaderTemplateDirective, "[kendoCalendarHeaderTemplate]", never, {}, {}, never>;
|
|
36
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<HeaderTemplateDirective, "[kendoCalendarHeaderTemplate]", never, {}, {}, never, never, false, never>;
|
|
37
37
|
}
|
|
@@ -33,5 +33,5 @@ export declare class HeaderTitleTemplateDirective {
|
|
|
33
33
|
templateRef: TemplateRef<any>;
|
|
34
34
|
constructor(templateRef: TemplateRef<any>);
|
|
35
35
|
static ɵfac: i0.ɵɵFactoryDeclaration<HeaderTitleTemplateDirective, never>;
|
|
36
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<HeaderTitleTemplateDirective, "[kendoCalendarHeaderTitleTemplate]", never, {}, {}, never>;
|
|
36
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<HeaderTitleTemplateDirective, "[kendoCalendarHeaderTitleTemplate]", never, {}, {}, never, never, false, never>;
|
|
37
37
|
}
|
|
@@ -32,5 +32,5 @@ export declare class MonthCellTemplateDirective {
|
|
|
32
32
|
templateRef: TemplateRef<any>;
|
|
33
33
|
constructor(templateRef: TemplateRef<any>);
|
|
34
34
|
static ɵfac: i0.ɵɵFactoryDeclaration<MonthCellTemplateDirective, never>;
|
|
35
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MonthCellTemplateDirective, "[kendoCalendarMonthCellTemplate]", never, {}, {}, never>;
|
|
35
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MonthCellTemplateDirective, "[kendoCalendarMonthCellTemplate]", never, {}, {}, never, never, false, never>;
|
|
36
36
|
}
|
|
@@ -33,5 +33,5 @@ export declare class NavigationItemTemplateDirective {
|
|
|
33
33
|
templateRef: TemplateRef<any>;
|
|
34
34
|
constructor(templateRef: TemplateRef<any>);
|
|
35
35
|
static ɵfac: i0.ɵɵFactoryDeclaration<NavigationItemTemplateDirective, never>;
|
|
36
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<NavigationItemTemplateDirective, "[kendoCalendarNavigationItemTemplate]", never, {}, {}, never>;
|
|
36
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NavigationItemTemplateDirective, "[kendoCalendarNavigationItemTemplate]", never, {}, {}, never, never, false, never>;
|
|
37
37
|
}
|
|
@@ -32,5 +32,5 @@ export declare class WeekNumberCellTemplateDirective {
|
|
|
32
32
|
templateRef: TemplateRef<any>;
|
|
33
33
|
constructor(templateRef: TemplateRef<any>);
|
|
34
34
|
static ɵfac: i0.ɵɵFactoryDeclaration<WeekNumberCellTemplateDirective, never>;
|
|
35
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<WeekNumberCellTemplateDirective, "[kendoCalendarWeekNumberCellTemplate]", never, {}, {}, never>;
|
|
35
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<WeekNumberCellTemplateDirective, "[kendoCalendarWeekNumberCellTemplate]", never, {}, {}, never, never, false, never>;
|
|
36
36
|
}
|
|
@@ -35,5 +35,5 @@ export declare class YearCellTemplateDirective {
|
|
|
35
35
|
templateRef: TemplateRef<any>;
|
|
36
36
|
constructor(templateRef: TemplateRef<any>);
|
|
37
37
|
static ɵfac: i0.ɵɵFactoryDeclaration<YearCellTemplateDirective, never>;
|
|
38
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<YearCellTemplateDirective, "[kendoCalendarYearCellTemplate]", never, {}, {}, never>;
|
|
38
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<YearCellTemplateDirective, "[kendoCalendarYearCellTemplate]", never, {}, {}, never, never, false, never>;
|
|
39
39
|
}
|
|
@@ -13,6 +13,9 @@ import { CalendarViewEnum } from './models/view.enum';
|
|
|
13
13
|
import { HeaderComponent } from './header.component';
|
|
14
14
|
import { WeekDaysFormat } from '../common/models/week-days-format';
|
|
15
15
|
import { CalendarView } from './models/view.type';
|
|
16
|
+
import { SelectionRangeEnd } from './models/selection-range-end.type';
|
|
17
|
+
import { SelectionRange } from './models/selection-range.interface';
|
|
18
|
+
import { DateInputSize } from '../common/models/size';
|
|
16
19
|
import * as i0 from "@angular/core";
|
|
17
20
|
/**
|
|
18
21
|
* @hidden
|
|
@@ -23,6 +26,7 @@ export declare class ViewListComponent implements OnChanges, OnDestroy, AfterVie
|
|
|
23
26
|
private intl;
|
|
24
27
|
private dom;
|
|
25
28
|
private renderer;
|
|
29
|
+
allowReverse: boolean;
|
|
26
30
|
cellTemplateRef: TemplateRef<any>;
|
|
27
31
|
weekNumberTemplateRef: TemplateRef<any>;
|
|
28
32
|
headerTitleTemplateRef: TemplateRef<any>;
|
|
@@ -41,8 +45,12 @@ export declare class ViewListComponent implements OnChanges, OnDestroy, AfterVie
|
|
|
41
45
|
id: string;
|
|
42
46
|
showFooter: boolean;
|
|
43
47
|
weekDaysFormat: WeekDaysFormat;
|
|
48
|
+
activeRangeEnd: SelectionRangeEnd;
|
|
49
|
+
selectionRange: SelectionRange;
|
|
50
|
+
size: DateInputSize;
|
|
44
51
|
get weekNumber(): boolean;
|
|
45
52
|
set weekNumber(showWeekNumbers: boolean);
|
|
53
|
+
cellEnter: EventEmitter<Date>;
|
|
46
54
|
cellClick: EventEmitter<any>;
|
|
47
55
|
weekNumberCellClick: EventEmitter<Date[]>;
|
|
48
56
|
activeDateChange: EventEmitter<Date>;
|
|
@@ -96,5 +104,5 @@ export declare class ViewListComponent implements OnChanges, OnDestroy, AfterVie
|
|
|
96
104
|
private getWeekNames;
|
|
97
105
|
private intlChange;
|
|
98
106
|
static ɵfac: i0.ɵɵFactoryDeclaration<ViewListComponent, never>;
|
|
99
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ViewListComponent, "kendo-calendar-viewlist", never, { "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"; }, { "cellClick": "cellClick"; "weekNumberCellClick": "weekNumberCellClick"; "activeDateChange": "activeDateChange"; "todayButtonClick": "todayButtonClick"; "pageChange": "pageChange"; "focusCalendar": "focusCalendar"; "blurCalendar": "blurCalendar"; "focusedCellChange": "focusedCellChange"; }, never, 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>;
|
|
100
108
|
}
|