@progress/kendo-angular-dateinputs 21.4.1 → 22.0.0-develop.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/calendar/localization/calendar-messages.d.ts +1 -1
- package/calendar/localization/multiview-calendar-messages.d.ts +1 -1
- package/dateinput/localization/messages.d.ts +1 -1
- package/datepicker/localization/messages.d.ts +1 -1
- package/daterange/date-range-input.d.ts +1 -1
- package/daterange/localization/messages.d.ts +1 -1
- package/datetimepicker/localization/messages.d.ts +1 -1
- package/fesm2022/progress-kendo-angular-dateinputs.mjs +262 -262
- package/package.json +15 -23
- package/timepicker/localization/messages.d.ts +1 -1
- package/esm2022/calendar/calendar.component.mjs +0 -1711
- package/esm2022/calendar/calendar.module.mjs +0 -91
- package/esm2022/calendar/calendars.module.mjs +0 -87
- package/esm2022/calendar/footer.component.mjs +0 -77
- package/esm2022/calendar/for.directive.mjs +0 -116
- package/esm2022/calendar/header.component.mjs +0 -367
- package/esm2022/calendar/horizontal-view-list.component.mjs +0 -580
- package/esm2022/calendar/localization/calendar-custom-messages.component.mjs +0 -51
- package/esm2022/calendar/localization/calendar-localized-messages.directive.mjs +0 -39
- package/esm2022/calendar/localization/calendar-messages.mjs +0 -45
- package/esm2022/calendar/localization/multiview-calendar-custom-messages.component.mjs +0 -51
- package/esm2022/calendar/localization/multiview-calendar-localized-messages.directive.mjs +0 -39
- package/esm2022/calendar/localization/multiview-calendar-messages.mjs +0 -45
- package/esm2022/calendar/models/cell-context.interface.mjs +0 -5
- package/esm2022/calendar/models/navigation-action.enum.mjs +0 -20
- package/esm2022/calendar/models/orientation.mjs +0 -5
- package/esm2022/calendar/models/row-length-options.interface.mjs +0 -5
- package/esm2022/calendar/models/scrollable.interface.mjs +0 -5
- package/esm2022/calendar/models/selection-range-end.type.mjs +0 -5
- package/esm2022/calendar/models/selection-range.interface.mjs +0 -10
- package/esm2022/calendar/models/selection.mjs +0 -50
- package/esm2022/calendar/models/type.mjs +0 -5
- package/esm2022/calendar/models/view-service.interface.mjs +0 -5
- package/esm2022/calendar/models/view.enum.mjs +0 -16
- package/esm2022/calendar/models/view.type.mjs +0 -5
- package/esm2022/calendar/multiview-calendar.component.mjs +0 -1564
- package/esm2022/calendar/multiview-calendar.module.mjs +0 -89
- package/esm2022/calendar/navigation.component.mjs +0 -230
- package/esm2022/calendar/services/bus-view.service.mjs +0 -83
- package/esm2022/calendar/services/century-view.service.mjs +0 -219
- package/esm2022/calendar/services/decade-view.service.mjs +0 -217
- package/esm2022/calendar/services/disabled-dates.service.mjs +0 -66
- package/esm2022/calendar/services/dom.service.mjs +0 -203
- package/esm2022/calendar/services/month-view.service.mjs +0 -223
- package/esm2022/calendar/services/navigation.service.mjs +0 -60
- package/esm2022/calendar/services/scroll-sync.service.mjs +0 -89
- package/esm2022/calendar/services/selection.service.mjs +0 -62
- package/esm2022/calendar/services/weeknames.service.mjs +0 -33
- package/esm2022/calendar/services/year-view.service.mjs +0 -204
- package/esm2022/calendar/templates/cell-template.directive.mjs +0 -45
- package/esm2022/calendar/templates/century-cell-template.directive.mjs +0 -43
- package/esm2022/calendar/templates/decade-cell-template.directive.mjs +0 -43
- package/esm2022/calendar/templates/footer-template.directive.mjs +0 -44
- package/esm2022/calendar/templates/header-template.directive.mjs +0 -47
- package/esm2022/calendar/templates/header-title-template.directive.mjs +0 -43
- package/esm2022/calendar/templates/month-cell-template.directive.mjs +0 -43
- package/esm2022/calendar/templates/navigation-item-template.directive.mjs +0 -43
- package/esm2022/calendar/templates/weeknumber-cell-template.directive.mjs +0 -43
- package/esm2022/calendar/templates/year-cell-template.directive.mjs +0 -43
- package/esm2022/calendar/view-list.component.mjs +0 -497
- package/esm2022/calendar/view.component.mjs +0 -432
- package/esm2022/common/dom-queries.mjs +0 -24
- package/esm2022/common/models/fillmode.mjs +0 -5
- package/esm2022/common/models/rounded.mjs +0 -5
- package/esm2022/common/models/size.mjs +0 -5
- package/esm2022/common/models/week-days-format.mjs +0 -5
- package/esm2022/common/picker.service.mjs +0 -17
- package/esm2022/common/utils.mjs +0 -70
- package/esm2022/dateinput/arrow.enum.mjs +0 -13
- package/esm2022/dateinput/dateinput.component.mjs +0 -1196
- package/esm2022/dateinput/dateinput.module.mjs +0 -45
- package/esm2022/dateinput/localization/dateinput-custom-messages.component.mjs +0 -60
- package/esm2022/dateinput/localization/dateinput-localized-messages.directive.mjs +0 -39
- package/esm2022/dateinput/localization/messages.mjs +0 -39
- package/esm2022/dateinput/models/format-placeholder.model.mjs +0 -5
- package/esm2022/dateinput/models/format-settings.model.mjs +0 -5
- package/esm2022/dateinput/models/incremental-steps.model.mjs +0 -5
- package/esm2022/dateinputs.module.mjs +0 -136
- package/esm2022/datepicker/datepicker.component.mjs +0 -1758
- package/esm2022/datepicker/datepicker.module.mjs +0 -83
- package/esm2022/datepicker/localization/datepicker-custom-messages.component.mjs +0 -53
- package/esm2022/datepicker/localization/datepicker-localized-messages.directive.mjs +0 -39
- package/esm2022/datepicker/localization/messages.mjs +0 -63
- package/esm2022/daterange/auto-correct-on.type.mjs +0 -5
- package/esm2022/daterange/date-range-end-input.directive.mjs +0 -105
- package/esm2022/daterange/date-range-input.mjs +0 -138
- package/esm2022/daterange/date-range-popup-template.directive.mjs +0 -36
- package/esm2022/daterange/date-range-popup.component.mjs +0 -1051
- package/esm2022/daterange/date-range-selection.directive.mjs +0 -223
- package/esm2022/daterange/date-range-start-input.directive.mjs +0 -109
- package/esm2022/daterange/date-range.component.mjs +0 -116
- package/esm2022/daterange/date-range.module.mjs +0 -103
- package/esm2022/daterange/date-range.service.mjs +0 -225
- package/esm2022/daterange/localization/daterange-popup-custom-messages.component.mjs +0 -43
- package/esm2022/daterange/localization/daterange-popup-localized-messages.directive.mjs +0 -39
- package/esm2022/daterange/localization/messages.mjs +0 -51
- package/esm2022/datetimepicker/datetimepicker.component.mjs +0 -2505
- package/esm2022/datetimepicker/datetimepicker.module.mjs +0 -106
- package/esm2022/datetimepicker/localization/datetimepicker-custom-messages.component.mjs +0 -52
- package/esm2022/datetimepicker/localization/localized-messages.directive.mjs +0 -39
- package/esm2022/datetimepicker/localization/messages.mjs +0 -153
- package/esm2022/datetimepicker/models/active-tab.type.mjs +0 -5
- package/esm2022/defaults.mjs +0 -24
- package/esm2022/directives.mjs +0 -146
- package/esm2022/index.mjs +0 -78
- package/esm2022/package-metadata.mjs +0 -16
- package/esm2022/popup-settings.model.mjs +0 -5
- package/esm2022/preventable-event.mjs +0 -27
- package/esm2022/progress-kendo-angular-dateinputs.mjs +0 -8
- package/esm2022/timepicker/localization/messages.mjs +0 -105
- package/esm2022/timepicker/localization/timepicker-custom-messages.component.mjs +0 -54
- package/esm2022/timepicker/localization/timepicker-localized-messages.directive.mjs +0 -39
- package/esm2022/timepicker/localization/timeselector-custom-messages.component.mjs +0 -45
- package/esm2022/timepicker/localization/timeselector-localized-messages.directive.mjs +0 -39
- package/esm2022/timepicker/models/incremental-steps.model.mjs +0 -5
- package/esm2022/timepicker/models/list-item.interface.mjs +0 -5
- package/esm2022/timepicker/models/list-service-settings.mjs +0 -5
- package/esm2022/timepicker/models/list-service.interface.mjs +0 -5
- package/esm2022/timepicker/models/time-part.default.mjs +0 -14
- package/esm2022/timepicker/services/dayperiod.service.mjs +0 -131
- package/esm2022/timepicker/services/dom.service.mjs +0 -126
- package/esm2022/timepicker/services/hours.service.mjs +0 -130
- package/esm2022/timepicker/services/milliseconds.service.mjs +0 -131
- package/esm2022/timepicker/services/minutes.service.mjs +0 -128
- package/esm2022/timepicker/services/seconds.service.mjs +0 -128
- package/esm2022/timepicker/timelist.component.mjs +0 -388
- package/esm2022/timepicker/timepicker.component.mjs +0 -1598
- package/esm2022/timepicker/timepicker.module.mjs +0 -71
- package/esm2022/timepicker/timeselector.component.mjs +0 -728
- package/esm2022/timepicker/util.mjs +0 -70
- package/esm2022/util.mjs +0 -406
- package/esm2022/validators/disabled-date.validator.mjs +0 -18
- package/esm2022/validators/disabled-dates-range.validator.mjs +0 -26
- package/esm2022/validators/incomplete-date.validator.mjs +0 -18
- package/esm2022/validators/max.validator.mjs +0 -21
- package/esm2022/validators/min.validator.mjs +0 -21
- package/esm2022/validators/time-range.validator.mjs +0 -23
- package/esm2022/virtualization/models/scrollable.interface.mjs +0 -5
- package/esm2022/virtualization/services/row-height.service.mjs +0 -73
- package/esm2022/virtualization/services/scroller.service.mjs +0 -109
- package/esm2022/virtualization/virtualization.component.mjs +0 -324
|
@@ -1,367 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { Component, ChangeDetectorRef, EventEmitter, HostBinding, Input, Output, TemplateRef } from '@angular/core';
|
|
6
|
-
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
7
|
-
import { IntlService } from '@progress/kendo-angular-intl';
|
|
8
|
-
import { getDate } from '@progress/kendo-date-math';
|
|
9
|
-
import { CalendarViewEnum } from './models/view.enum';
|
|
10
|
-
import { MIN_DATE, MAX_DATE } from '../defaults';
|
|
11
|
-
import { dateInRange, getToday, isInRange } from '../util';
|
|
12
|
-
import { BusViewService } from './services/bus-view.service';
|
|
13
|
-
import { DisabledDatesService } from './services/disabled-dates.service';
|
|
14
|
-
import { Subscription } from 'rxjs';
|
|
15
|
-
import { chevronLeftIcon, chevronRightIcon } from '@progress/kendo-svg-icons';
|
|
16
|
-
import { EventsOutsideAngularDirective } from '@progress/kendo-angular-common';
|
|
17
|
-
import { ButtonComponent } from '@progress/kendo-angular-buttons';
|
|
18
|
-
import { NgTemplateOutlet } from '@angular/common';
|
|
19
|
-
import * as i0 from "@angular/core";
|
|
20
|
-
import * as i1 from "./services/bus-view.service";
|
|
21
|
-
import * as i2 from "@progress/kendo-angular-l10n";
|
|
22
|
-
import * as i3 from "@progress/kendo-angular-intl";
|
|
23
|
-
import * as i4 from "./services/disabled-dates.service";
|
|
24
|
-
/**
|
|
25
|
-
* @hidden
|
|
26
|
-
*/
|
|
27
|
-
export class HeaderComponent {
|
|
28
|
-
bus;
|
|
29
|
-
cdr;
|
|
30
|
-
localization;
|
|
31
|
-
intl;
|
|
32
|
-
disabledDatesService;
|
|
33
|
-
/**
|
|
34
|
-
* @hidden
|
|
35
|
-
*/
|
|
36
|
-
chevronRightIcon = chevronRightIcon;
|
|
37
|
-
/**
|
|
38
|
-
* @hidden
|
|
39
|
-
*/
|
|
40
|
-
chevronLeftIcon = chevronLeftIcon;
|
|
41
|
-
navigate = true;
|
|
42
|
-
todayAvailable = true;
|
|
43
|
-
activeViewValue;
|
|
44
|
-
todayMessage;
|
|
45
|
-
title;
|
|
46
|
-
prevButtonTitle;
|
|
47
|
-
nextButtonTitle;
|
|
48
|
-
parentViewButtonTitle;
|
|
49
|
-
activeView;
|
|
50
|
-
currentDate;
|
|
51
|
-
min = new Date(MIN_DATE);
|
|
52
|
-
max = new Date(MAX_DATE);
|
|
53
|
-
rangeLength = 1;
|
|
54
|
-
titleTemplateRef;
|
|
55
|
-
headerTemplateRef;
|
|
56
|
-
isPrevDisabled = true;
|
|
57
|
-
isNextDisabled = true;
|
|
58
|
-
showNavigationButtons = false;
|
|
59
|
-
orientation = 'horizontal';
|
|
60
|
-
id;
|
|
61
|
-
size;
|
|
62
|
-
todayButtonClick = new EventEmitter();
|
|
63
|
-
prevButtonClick = new EventEmitter();
|
|
64
|
-
nextButtonClick = new EventEmitter();
|
|
65
|
-
getComponentClass = true;
|
|
66
|
-
get verticalHostClass() {
|
|
67
|
-
return this.orientation === 'vertical';
|
|
68
|
-
}
|
|
69
|
-
subscriptions = new Subscription();
|
|
70
|
-
constructor(bus, cdr, localization, intl, disabledDatesService) {
|
|
71
|
-
this.bus = bus;
|
|
72
|
-
this.cdr = cdr;
|
|
73
|
-
this.localization = localization;
|
|
74
|
-
this.intl = intl;
|
|
75
|
-
this.disabledDatesService = disabledDatesService;
|
|
76
|
-
}
|
|
77
|
-
ngOnInit() {
|
|
78
|
-
this.subscriptions.add(this.intl.changes.subscribe(this.intlChange.bind(this)));
|
|
79
|
-
this.subscriptions.add(this.localization.changes.subscribe(this.l10nChange.bind(this)));
|
|
80
|
-
this.subscriptions.add(this.disabledDatesService.changes.subscribe(this.setTodayAvailability.bind(this)));
|
|
81
|
-
}
|
|
82
|
-
ngOnChanges() {
|
|
83
|
-
const service = this.bus.service(this.activeView);
|
|
84
|
-
if (!service) {
|
|
85
|
-
return;
|
|
86
|
-
}
|
|
87
|
-
this.activeViewValue = CalendarViewEnum[this.activeView];
|
|
88
|
-
this.todayMessage = this.localization.get('today');
|
|
89
|
-
this.parentViewButtonTitle = this.localization.get('parentViewButtonTitle');
|
|
90
|
-
this.setTodayAvailability();
|
|
91
|
-
this.navigate = this.bus.canMoveUp(this.activeView);
|
|
92
|
-
this.title = this.getTitle();
|
|
93
|
-
}
|
|
94
|
-
ngOnDestroy() {
|
|
95
|
-
this.subscriptions.unsubscribe();
|
|
96
|
-
}
|
|
97
|
-
handleTodayClick() {
|
|
98
|
-
if (!this.todayAvailable) {
|
|
99
|
-
return;
|
|
100
|
-
}
|
|
101
|
-
this.bus.moveToBottom(this.activeView);
|
|
102
|
-
this.todayButtonClick.emit(dateInRange(getToday(), this.min, this.max));
|
|
103
|
-
}
|
|
104
|
-
handleNavigation() {
|
|
105
|
-
if (!this.navigate) {
|
|
106
|
-
return;
|
|
107
|
-
}
|
|
108
|
-
this.bus.moveUp(this.activeView);
|
|
109
|
-
}
|
|
110
|
-
isDisabled() {
|
|
111
|
-
return this.navigate ? null : '';
|
|
112
|
-
}
|
|
113
|
-
intlChange() {
|
|
114
|
-
if (this.currentDate && this.bus.service(this.activeView)) {
|
|
115
|
-
this.title = this.getTitle();
|
|
116
|
-
this.cdr.markForCheck();
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
l10nChange() {
|
|
120
|
-
this.prevButtonTitle = this.localization.get('prevButtonTitle');
|
|
121
|
-
this.nextButtonTitle = this.localization.get('nextButtonTitle');
|
|
122
|
-
this.parentViewButtonTitle = this.localization.get('parentViewButtonTitle');
|
|
123
|
-
this.todayMessage = this.localization.get('today');
|
|
124
|
-
this.cdr.markForCheck();
|
|
125
|
-
}
|
|
126
|
-
getTitle() {
|
|
127
|
-
if (!this.currentDate) {
|
|
128
|
-
return '';
|
|
129
|
-
}
|
|
130
|
-
const service = this.bus.service(this.activeView);
|
|
131
|
-
const take = this.rangeLength - 1;
|
|
132
|
-
const title = service.title(this.currentDate);
|
|
133
|
-
const nextDate = service.addToDate(this.currentDate, take);
|
|
134
|
-
if (take < 1 || !service.isInRange(nextDate, this.min, this.max)) {
|
|
135
|
-
return title;
|
|
136
|
-
}
|
|
137
|
-
return `${title} - ${service.title(nextDate)}`;
|
|
138
|
-
}
|
|
139
|
-
setTodayAvailability() {
|
|
140
|
-
const today = getToday();
|
|
141
|
-
const isTodayInRange = isInRange(today, getDate(this.min), getDate(this.max));
|
|
142
|
-
const isDisabled = this.disabledDatesService.isDateDisabled(today);
|
|
143
|
-
this.todayAvailable = isTodayInRange && !isDisabled;
|
|
144
|
-
this.cdr.markForCheck();
|
|
145
|
-
}
|
|
146
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: HeaderComponent, deps: [{ token: i1.BusViewService }, { token: i0.ChangeDetectorRef }, { token: i2.LocalizationService }, { token: i3.IntlService }, { token: i4.DisabledDatesService }], target: i0.ɵɵFactoryTarget.Component });
|
|
147
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: HeaderComponent, isStandalone: true, 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: `
|
|
148
|
-
@if (headerTemplateRef) {
|
|
149
|
-
<ng-template
|
|
150
|
-
[ngTemplateOutlet]="headerTemplateRef"
|
|
151
|
-
[ngTemplateOutletContext]="{ title: title, activeView: activeViewValue, date: currentDate }">
|
|
152
|
-
</ng-template>
|
|
153
|
-
} @else {
|
|
154
|
-
<button
|
|
155
|
-
kendoButton
|
|
156
|
-
class="k-calendar-title"
|
|
157
|
-
role="button"
|
|
158
|
-
[id]="id"
|
|
159
|
-
type="button"
|
|
160
|
-
fillMode="flat"
|
|
161
|
-
[size]="size"
|
|
162
|
-
themeColor="primary"
|
|
163
|
-
tabindex="-1"
|
|
164
|
-
[disabled]="!navigate"
|
|
165
|
-
[kendoEventsOutsideAngular]="{
|
|
166
|
-
click: handleNavigation
|
|
167
|
-
}"
|
|
168
|
-
[title]="parentViewButtonTitle"
|
|
169
|
-
[scope]="this">
|
|
170
|
-
@if (!titleTemplateRef) {
|
|
171
|
-
{{title}}
|
|
172
|
-
}
|
|
173
|
-
@if (titleTemplateRef) {
|
|
174
|
-
<ng-template
|
|
175
|
-
[ngTemplateOutlet]="titleTemplateRef"
|
|
176
|
-
[ngTemplateOutletContext]="{ $implicit: title, activeView: activeViewValue, date: currentDate }"
|
|
177
|
-
></ng-template>
|
|
178
|
-
}
|
|
179
|
-
</button>
|
|
180
|
-
<span class="k-spacer"></span>
|
|
181
|
-
<span class="k-calendar-nav">
|
|
182
|
-
@if (showNavigationButtons) {
|
|
183
|
-
<button
|
|
184
|
-
kendoButton
|
|
185
|
-
fillMode="flat"
|
|
186
|
-
[size]="size"
|
|
187
|
-
[svgIcon]="chevronLeftIcon"
|
|
188
|
-
icon="chevron-left"
|
|
189
|
-
tabindex="-1"
|
|
190
|
-
type="button"
|
|
191
|
-
class="k-calendar-nav-prev"
|
|
192
|
-
[attr.aria-disabled]="isPrevDisabled"
|
|
193
|
-
[disabled]="isPrevDisabled"
|
|
194
|
-
[title]="prevButtonTitle"
|
|
195
|
-
(click)="prevButtonClick.emit()"
|
|
196
|
-
>
|
|
197
|
-
</button>
|
|
198
|
-
}
|
|
199
|
-
<button
|
|
200
|
-
kendoButton
|
|
201
|
-
class="k-calendar-nav-today"
|
|
202
|
-
fillMode="flat"
|
|
203
|
-
role="link"
|
|
204
|
-
[size]="size"
|
|
205
|
-
[disabled]="!todayAvailable"
|
|
206
|
-
[kendoEventsOutsideAngular]="{
|
|
207
|
-
click: handleTodayClick
|
|
208
|
-
}"
|
|
209
|
-
[scope]="this"
|
|
210
|
-
type="button"
|
|
211
|
-
>
|
|
212
|
-
{{ todayMessage }}
|
|
213
|
-
</button>
|
|
214
|
-
@if (showNavigationButtons) {
|
|
215
|
-
<button
|
|
216
|
-
kendoButton
|
|
217
|
-
fillMode="flat"
|
|
218
|
-
[size]="size"
|
|
219
|
-
[svgIcon]="chevronRightIcon"
|
|
220
|
-
icon="chevron-right"
|
|
221
|
-
class="k-calendar-nav-next"
|
|
222
|
-
tabindex="-1"
|
|
223
|
-
type="button"
|
|
224
|
-
[attr.aria-disabled]="isNextDisabled"
|
|
225
|
-
[disabled]="isNextDisabled"
|
|
226
|
-
[title]="nextButtonTitle"
|
|
227
|
-
(click)="nextButtonClick.emit()"
|
|
228
|
-
>
|
|
229
|
-
</button>
|
|
230
|
-
}
|
|
231
|
-
</span>
|
|
232
|
-
}
|
|
233
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { kind: "directive", type: EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }] });
|
|
234
|
-
}
|
|
235
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: HeaderComponent, decorators: [{
|
|
236
|
-
type: Component,
|
|
237
|
-
args: [{
|
|
238
|
-
selector: 'kendo-calendar-header',
|
|
239
|
-
template: `
|
|
240
|
-
@if (headerTemplateRef) {
|
|
241
|
-
<ng-template
|
|
242
|
-
[ngTemplateOutlet]="headerTemplateRef"
|
|
243
|
-
[ngTemplateOutletContext]="{ title: title, activeView: activeViewValue, date: currentDate }">
|
|
244
|
-
</ng-template>
|
|
245
|
-
} @else {
|
|
246
|
-
<button
|
|
247
|
-
kendoButton
|
|
248
|
-
class="k-calendar-title"
|
|
249
|
-
role="button"
|
|
250
|
-
[id]="id"
|
|
251
|
-
type="button"
|
|
252
|
-
fillMode="flat"
|
|
253
|
-
[size]="size"
|
|
254
|
-
themeColor="primary"
|
|
255
|
-
tabindex="-1"
|
|
256
|
-
[disabled]="!navigate"
|
|
257
|
-
[kendoEventsOutsideAngular]="{
|
|
258
|
-
click: handleNavigation
|
|
259
|
-
}"
|
|
260
|
-
[title]="parentViewButtonTitle"
|
|
261
|
-
[scope]="this">
|
|
262
|
-
@if (!titleTemplateRef) {
|
|
263
|
-
{{title}}
|
|
264
|
-
}
|
|
265
|
-
@if (titleTemplateRef) {
|
|
266
|
-
<ng-template
|
|
267
|
-
[ngTemplateOutlet]="titleTemplateRef"
|
|
268
|
-
[ngTemplateOutletContext]="{ $implicit: title, activeView: activeViewValue, date: currentDate }"
|
|
269
|
-
></ng-template>
|
|
270
|
-
}
|
|
271
|
-
</button>
|
|
272
|
-
<span class="k-spacer"></span>
|
|
273
|
-
<span class="k-calendar-nav">
|
|
274
|
-
@if (showNavigationButtons) {
|
|
275
|
-
<button
|
|
276
|
-
kendoButton
|
|
277
|
-
fillMode="flat"
|
|
278
|
-
[size]="size"
|
|
279
|
-
[svgIcon]="chevronLeftIcon"
|
|
280
|
-
icon="chevron-left"
|
|
281
|
-
tabindex="-1"
|
|
282
|
-
type="button"
|
|
283
|
-
class="k-calendar-nav-prev"
|
|
284
|
-
[attr.aria-disabled]="isPrevDisabled"
|
|
285
|
-
[disabled]="isPrevDisabled"
|
|
286
|
-
[title]="prevButtonTitle"
|
|
287
|
-
(click)="prevButtonClick.emit()"
|
|
288
|
-
>
|
|
289
|
-
</button>
|
|
290
|
-
}
|
|
291
|
-
<button
|
|
292
|
-
kendoButton
|
|
293
|
-
class="k-calendar-nav-today"
|
|
294
|
-
fillMode="flat"
|
|
295
|
-
role="link"
|
|
296
|
-
[size]="size"
|
|
297
|
-
[disabled]="!todayAvailable"
|
|
298
|
-
[kendoEventsOutsideAngular]="{
|
|
299
|
-
click: handleTodayClick
|
|
300
|
-
}"
|
|
301
|
-
[scope]="this"
|
|
302
|
-
type="button"
|
|
303
|
-
>
|
|
304
|
-
{{ todayMessage }}
|
|
305
|
-
</button>
|
|
306
|
-
@if (showNavigationButtons) {
|
|
307
|
-
<button
|
|
308
|
-
kendoButton
|
|
309
|
-
fillMode="flat"
|
|
310
|
-
[size]="size"
|
|
311
|
-
[svgIcon]="chevronRightIcon"
|
|
312
|
-
icon="chevron-right"
|
|
313
|
-
class="k-calendar-nav-next"
|
|
314
|
-
tabindex="-1"
|
|
315
|
-
type="button"
|
|
316
|
-
[attr.aria-disabled]="isNextDisabled"
|
|
317
|
-
[disabled]="isNextDisabled"
|
|
318
|
-
[title]="nextButtonTitle"
|
|
319
|
-
(click)="nextButtonClick.emit()"
|
|
320
|
-
>
|
|
321
|
-
</button>
|
|
322
|
-
}
|
|
323
|
-
</span>
|
|
324
|
-
}
|
|
325
|
-
`,
|
|
326
|
-
standalone: true,
|
|
327
|
-
imports: [NgTemplateOutlet, ButtonComponent, EventsOutsideAngularDirective]
|
|
328
|
-
}]
|
|
329
|
-
}], ctorParameters: () => [{ type: i1.BusViewService }, { type: i0.ChangeDetectorRef }, { type: i2.LocalizationService }, { type: i3.IntlService }, { type: i4.DisabledDatesService }], propDecorators: { activeView: [{
|
|
330
|
-
type: Input
|
|
331
|
-
}], currentDate: [{
|
|
332
|
-
type: Input
|
|
333
|
-
}], min: [{
|
|
334
|
-
type: Input
|
|
335
|
-
}], max: [{
|
|
336
|
-
type: Input
|
|
337
|
-
}], rangeLength: [{
|
|
338
|
-
type: Input
|
|
339
|
-
}], titleTemplateRef: [{
|
|
340
|
-
type: Input
|
|
341
|
-
}], headerTemplateRef: [{
|
|
342
|
-
type: Input
|
|
343
|
-
}], isPrevDisabled: [{
|
|
344
|
-
type: Input
|
|
345
|
-
}], isNextDisabled: [{
|
|
346
|
-
type: Input
|
|
347
|
-
}], showNavigationButtons: [{
|
|
348
|
-
type: Input
|
|
349
|
-
}], orientation: [{
|
|
350
|
-
type: Input
|
|
351
|
-
}], id: [{
|
|
352
|
-
type: Input
|
|
353
|
-
}], size: [{
|
|
354
|
-
type: Input
|
|
355
|
-
}], todayButtonClick: [{
|
|
356
|
-
type: Output
|
|
357
|
-
}], prevButtonClick: [{
|
|
358
|
-
type: Output
|
|
359
|
-
}], nextButtonClick: [{
|
|
360
|
-
type: Output
|
|
361
|
-
}], getComponentClass: [{
|
|
362
|
-
type: HostBinding,
|
|
363
|
-
args: ["class.k-calendar-header"]
|
|
364
|
-
}], verticalHostClass: [{
|
|
365
|
-
type: HostBinding,
|
|
366
|
-
args: ["class.k-vstack"]
|
|
367
|
-
}] } });
|