@progress/kendo-angular-dateinputs 21.4.1 → 22.0.0

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.
Files changed (141) hide show
  1. package/calendar/localization/calendar-messages.d.ts +1 -1
  2. package/calendar/localization/multiview-calendar-messages.d.ts +1 -1
  3. package/dateinput/localization/messages.d.ts +1 -1
  4. package/datepicker/localization/messages.d.ts +1 -1
  5. package/daterange/date-range-input.d.ts +1 -1
  6. package/daterange/localization/messages.d.ts +1 -1
  7. package/datetimepicker/localization/messages.d.ts +1 -1
  8. package/fesm2022/progress-kendo-angular-dateinputs.mjs +262 -262
  9. package/package.json +15 -23
  10. package/timepicker/localization/messages.d.ts +1 -1
  11. package/esm2022/calendar/calendar.component.mjs +0 -1711
  12. package/esm2022/calendar/calendar.module.mjs +0 -91
  13. package/esm2022/calendar/calendars.module.mjs +0 -87
  14. package/esm2022/calendar/footer.component.mjs +0 -77
  15. package/esm2022/calendar/for.directive.mjs +0 -116
  16. package/esm2022/calendar/header.component.mjs +0 -367
  17. package/esm2022/calendar/horizontal-view-list.component.mjs +0 -580
  18. package/esm2022/calendar/localization/calendar-custom-messages.component.mjs +0 -51
  19. package/esm2022/calendar/localization/calendar-localized-messages.directive.mjs +0 -39
  20. package/esm2022/calendar/localization/calendar-messages.mjs +0 -45
  21. package/esm2022/calendar/localization/multiview-calendar-custom-messages.component.mjs +0 -51
  22. package/esm2022/calendar/localization/multiview-calendar-localized-messages.directive.mjs +0 -39
  23. package/esm2022/calendar/localization/multiview-calendar-messages.mjs +0 -45
  24. package/esm2022/calendar/models/cell-context.interface.mjs +0 -5
  25. package/esm2022/calendar/models/navigation-action.enum.mjs +0 -20
  26. package/esm2022/calendar/models/orientation.mjs +0 -5
  27. package/esm2022/calendar/models/row-length-options.interface.mjs +0 -5
  28. package/esm2022/calendar/models/scrollable.interface.mjs +0 -5
  29. package/esm2022/calendar/models/selection-range-end.type.mjs +0 -5
  30. package/esm2022/calendar/models/selection-range.interface.mjs +0 -10
  31. package/esm2022/calendar/models/selection.mjs +0 -50
  32. package/esm2022/calendar/models/type.mjs +0 -5
  33. package/esm2022/calendar/models/view-service.interface.mjs +0 -5
  34. package/esm2022/calendar/models/view.enum.mjs +0 -16
  35. package/esm2022/calendar/models/view.type.mjs +0 -5
  36. package/esm2022/calendar/multiview-calendar.component.mjs +0 -1564
  37. package/esm2022/calendar/multiview-calendar.module.mjs +0 -89
  38. package/esm2022/calendar/navigation.component.mjs +0 -230
  39. package/esm2022/calendar/services/bus-view.service.mjs +0 -83
  40. package/esm2022/calendar/services/century-view.service.mjs +0 -219
  41. package/esm2022/calendar/services/decade-view.service.mjs +0 -217
  42. package/esm2022/calendar/services/disabled-dates.service.mjs +0 -66
  43. package/esm2022/calendar/services/dom.service.mjs +0 -203
  44. package/esm2022/calendar/services/month-view.service.mjs +0 -223
  45. package/esm2022/calendar/services/navigation.service.mjs +0 -60
  46. package/esm2022/calendar/services/scroll-sync.service.mjs +0 -89
  47. package/esm2022/calendar/services/selection.service.mjs +0 -62
  48. package/esm2022/calendar/services/weeknames.service.mjs +0 -33
  49. package/esm2022/calendar/services/year-view.service.mjs +0 -204
  50. package/esm2022/calendar/templates/cell-template.directive.mjs +0 -45
  51. package/esm2022/calendar/templates/century-cell-template.directive.mjs +0 -43
  52. package/esm2022/calendar/templates/decade-cell-template.directive.mjs +0 -43
  53. package/esm2022/calendar/templates/footer-template.directive.mjs +0 -44
  54. package/esm2022/calendar/templates/header-template.directive.mjs +0 -47
  55. package/esm2022/calendar/templates/header-title-template.directive.mjs +0 -43
  56. package/esm2022/calendar/templates/month-cell-template.directive.mjs +0 -43
  57. package/esm2022/calendar/templates/navigation-item-template.directive.mjs +0 -43
  58. package/esm2022/calendar/templates/weeknumber-cell-template.directive.mjs +0 -43
  59. package/esm2022/calendar/templates/year-cell-template.directive.mjs +0 -43
  60. package/esm2022/calendar/view-list.component.mjs +0 -497
  61. package/esm2022/calendar/view.component.mjs +0 -432
  62. package/esm2022/common/dom-queries.mjs +0 -24
  63. package/esm2022/common/models/fillmode.mjs +0 -5
  64. package/esm2022/common/models/rounded.mjs +0 -5
  65. package/esm2022/common/models/size.mjs +0 -5
  66. package/esm2022/common/models/week-days-format.mjs +0 -5
  67. package/esm2022/common/picker.service.mjs +0 -17
  68. package/esm2022/common/utils.mjs +0 -70
  69. package/esm2022/dateinput/arrow.enum.mjs +0 -13
  70. package/esm2022/dateinput/dateinput.component.mjs +0 -1196
  71. package/esm2022/dateinput/dateinput.module.mjs +0 -45
  72. package/esm2022/dateinput/localization/dateinput-custom-messages.component.mjs +0 -60
  73. package/esm2022/dateinput/localization/dateinput-localized-messages.directive.mjs +0 -39
  74. package/esm2022/dateinput/localization/messages.mjs +0 -39
  75. package/esm2022/dateinput/models/format-placeholder.model.mjs +0 -5
  76. package/esm2022/dateinput/models/format-settings.model.mjs +0 -5
  77. package/esm2022/dateinput/models/incremental-steps.model.mjs +0 -5
  78. package/esm2022/dateinputs.module.mjs +0 -136
  79. package/esm2022/datepicker/datepicker.component.mjs +0 -1758
  80. package/esm2022/datepicker/datepicker.module.mjs +0 -83
  81. package/esm2022/datepicker/localization/datepicker-custom-messages.component.mjs +0 -53
  82. package/esm2022/datepicker/localization/datepicker-localized-messages.directive.mjs +0 -39
  83. package/esm2022/datepicker/localization/messages.mjs +0 -63
  84. package/esm2022/daterange/auto-correct-on.type.mjs +0 -5
  85. package/esm2022/daterange/date-range-end-input.directive.mjs +0 -105
  86. package/esm2022/daterange/date-range-input.mjs +0 -138
  87. package/esm2022/daterange/date-range-popup-template.directive.mjs +0 -36
  88. package/esm2022/daterange/date-range-popup.component.mjs +0 -1051
  89. package/esm2022/daterange/date-range-selection.directive.mjs +0 -223
  90. package/esm2022/daterange/date-range-start-input.directive.mjs +0 -109
  91. package/esm2022/daterange/date-range.component.mjs +0 -116
  92. package/esm2022/daterange/date-range.module.mjs +0 -103
  93. package/esm2022/daterange/date-range.service.mjs +0 -225
  94. package/esm2022/daterange/localization/daterange-popup-custom-messages.component.mjs +0 -43
  95. package/esm2022/daterange/localization/daterange-popup-localized-messages.directive.mjs +0 -39
  96. package/esm2022/daterange/localization/messages.mjs +0 -51
  97. package/esm2022/datetimepicker/datetimepicker.component.mjs +0 -2505
  98. package/esm2022/datetimepicker/datetimepicker.module.mjs +0 -106
  99. package/esm2022/datetimepicker/localization/datetimepicker-custom-messages.component.mjs +0 -52
  100. package/esm2022/datetimepicker/localization/localized-messages.directive.mjs +0 -39
  101. package/esm2022/datetimepicker/localization/messages.mjs +0 -153
  102. package/esm2022/datetimepicker/models/active-tab.type.mjs +0 -5
  103. package/esm2022/defaults.mjs +0 -24
  104. package/esm2022/directives.mjs +0 -146
  105. package/esm2022/index.mjs +0 -78
  106. package/esm2022/package-metadata.mjs +0 -16
  107. package/esm2022/popup-settings.model.mjs +0 -5
  108. package/esm2022/preventable-event.mjs +0 -27
  109. package/esm2022/progress-kendo-angular-dateinputs.mjs +0 -8
  110. package/esm2022/timepicker/localization/messages.mjs +0 -105
  111. package/esm2022/timepicker/localization/timepicker-custom-messages.component.mjs +0 -54
  112. package/esm2022/timepicker/localization/timepicker-localized-messages.directive.mjs +0 -39
  113. package/esm2022/timepicker/localization/timeselector-custom-messages.component.mjs +0 -45
  114. package/esm2022/timepicker/localization/timeselector-localized-messages.directive.mjs +0 -39
  115. package/esm2022/timepicker/models/incremental-steps.model.mjs +0 -5
  116. package/esm2022/timepicker/models/list-item.interface.mjs +0 -5
  117. package/esm2022/timepicker/models/list-service-settings.mjs +0 -5
  118. package/esm2022/timepicker/models/list-service.interface.mjs +0 -5
  119. package/esm2022/timepicker/models/time-part.default.mjs +0 -14
  120. package/esm2022/timepicker/services/dayperiod.service.mjs +0 -131
  121. package/esm2022/timepicker/services/dom.service.mjs +0 -126
  122. package/esm2022/timepicker/services/hours.service.mjs +0 -130
  123. package/esm2022/timepicker/services/milliseconds.service.mjs +0 -131
  124. package/esm2022/timepicker/services/minutes.service.mjs +0 -128
  125. package/esm2022/timepicker/services/seconds.service.mjs +0 -128
  126. package/esm2022/timepicker/timelist.component.mjs +0 -388
  127. package/esm2022/timepicker/timepicker.component.mjs +0 -1598
  128. package/esm2022/timepicker/timepicker.module.mjs +0 -71
  129. package/esm2022/timepicker/timeselector.component.mjs +0 -728
  130. package/esm2022/timepicker/util.mjs +0 -70
  131. package/esm2022/util.mjs +0 -406
  132. package/esm2022/validators/disabled-date.validator.mjs +0 -18
  133. package/esm2022/validators/disabled-dates-range.validator.mjs +0 -26
  134. package/esm2022/validators/incomplete-date.validator.mjs +0 -18
  135. package/esm2022/validators/max.validator.mjs +0 -21
  136. package/esm2022/validators/min.validator.mjs +0 -21
  137. package/esm2022/validators/time-range.validator.mjs +0 -23
  138. package/esm2022/virtualization/models/scrollable.interface.mjs +0 -5
  139. package/esm2022/virtualization/services/row-height.service.mjs +0 -73
  140. package/esm2022/virtualization/services/scroller.service.mjs +0 -109
  141. package/esm2022/virtualization/virtualization.component.mjs +0 -324
@@ -1,497 +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, ChangeDetectionStrategy, ChangeDetectorRef, ElementRef, EventEmitter, HostBinding, Input, Output, Renderer2, TemplateRef, ViewChild } from '@angular/core';
6
- import { cloneDate } from '@progress/kendo-date-math';
7
- import { IntlService } from '@progress/kendo-angular-intl';
8
- import { VirtualizationComponent } from '../virtualization/virtualization.component';
9
- import { BusViewService } from './services/bus-view.service';
10
- import { CalendarDOMService } from './services/dom.service';
11
- import { CalendarViewEnum } from './models/view.enum';
12
- import { MIN_DATE, MAX_DATE } from '../defaults';
13
- import { dateInRange, hasChange, shiftWeekNames } from '../util';
14
- import { HeaderComponent } from './header.component';
15
- import { FooterComponent } from './footer.component';
16
- import { ViewComponent } from './view.component';
17
- import { KForOf } from './for.directive';
18
- import * as i0 from "@angular/core";
19
- import * as i1 from "./services/bus-view.service";
20
- import * as i2 from "@progress/kendo-angular-intl";
21
- import * as i3 from "./services/dom.service";
22
- const VIEWS_COUNT = 5;
23
- const isEqualMonthYear = (date1, date2) => (date1 && date2 &&
24
- date1.getFullYear() === date2.getFullYear() &&
25
- date1.getMonth() === date2.getMonth());
26
- /**
27
- * @hidden
28
- */
29
- export class ViewListComponent {
30
- bus;
31
- cdr;
32
- intl;
33
- dom;
34
- renderer;
35
- allowReverse;
36
- cellTemplateRef;
37
- weekNumberTemplateRef;
38
- headerTitleTemplateRef;
39
- headerTemplateRef;
40
- footerTemplateRef;
41
- showOtherMonthDays;
42
- activeView;
43
- cellUID;
44
- focusedDate;
45
- isActive = true;
46
- min = new Date(MIN_DATE);
47
- max = new Date(MAX_DATE);
48
- selectedDates = [];
49
- tabIndex = 0;
50
- disabled = false;
51
- id;
52
- showFooter = false;
53
- weekDaysFormat = 'short';
54
- activeRangeEnd;
55
- selectionRange;
56
- size;
57
- get weekNumber() {
58
- return this.showWeekNumbers && this.isMonthView();
59
- }
60
- set weekNumber(showWeekNumbers) {
61
- this.showWeekNumbers = showWeekNumbers;
62
- }
63
- cellEnter = new EventEmitter();
64
- cellClick = new EventEmitter();
65
- weekNumberCellClick = new EventEmitter();
66
- activeDateChange = new EventEmitter();
67
- todayButtonClick = new EventEmitter();
68
- pageChange = new EventEmitter();
69
- focusCalendar = new EventEmitter();
70
- blurCalendar = new EventEmitter();
71
- focusedCellChange = new EventEmitter();
72
- virtualization;
73
- headerComponent;
74
- get headerTitle() {
75
- return this.headerComponent?.title;
76
- }
77
- list;
78
- getComponentClass = true;
79
- get getComponentMonthClass() {
80
- return this.activeView === CalendarViewEnum.month;
81
- }
82
- get getComponentYearClass() {
83
- return this.activeView === CalendarViewEnum.year;
84
- }
85
- get getComponentDecadeClass() {
86
- return this.activeView === CalendarViewEnum.decade;
87
- }
88
- get getComponentCenturyClass() {
89
- return this.activeView === CalendarViewEnum.century;
90
- }
91
- get activeViewValue() {
92
- return CalendarViewEnum[this.activeView];
93
- }
94
- service;
95
- activeDate;
96
- dates = [];
97
- cols = [];
98
- weekNames = [];
99
- wideWeekNames = [];
100
- take = VIEWS_COUNT;
101
- skip;
102
- total;
103
- bottomOffset;
104
- viewHeight;
105
- viewOffset;
106
- animateToIndex = true;
107
- indexToScroll = -1;
108
- showWeekNumbers;
109
- minViewsToRender = 1;
110
- intlSubscription;
111
- constructor(bus, cdr, intl, dom, renderer) {
112
- this.bus = bus;
113
- this.cdr = cdr;
114
- this.intl = intl;
115
- this.dom = dom;
116
- this.renderer = renderer;
117
- }
118
- ngOnInit() {
119
- this.weekNames = this.getWeekNames(this.weekDaysFormat);
120
- this.wideWeekNames = this.getWeekNames('wide');
121
- this.bottomOffset = this.getBottomOffset();
122
- this.viewOffset = -1 * this.dom.headerHeight;
123
- this.viewHeight = this.dom.viewHeight(this.activeView);
124
- this.intlSubscription = this.intl.changes.subscribe(this.intlChange.bind(this));
125
- }
126
- ngOnChanges(changes) {
127
- this.service = this.bus.service(this.activeView);
128
- if (!this.service) {
129
- return;
130
- }
131
- this.cols = new Array(this.service.rowLength({ prependCell: this.weekNumber })).fill('');
132
- this.weekNames = hasChange(changes, 'weekNumber') && this.weekNumber ? this.getWeekNames(this.weekDaysFormat) : this.weekNames;
133
- if (hasChange(changes, 'weekDaysFormat') && !hasChange(changes, 'weekNumber')) {
134
- this.weekNames = this.getWeekNames(this.weekDaysFormat);
135
- }
136
- this.wideWeekNames = hasChange(changes, 'weekNumber') && this.weekNumber ? this.getWeekNames('wide') : this.weekNames;
137
- const activeViewChanged = hasChange(changes, 'activeView');
138
- const focusedDate = this.focusedDate;
139
- const viewDate = dateInRange(this.service.viewDate(focusedDate, this.max, this.minViewsToRender), this.min, this.max);
140
- const total = this.service.total(this.min, this.max);
141
- const totalChanged = this.total && this.total !== total;
142
- const generateDates = totalChanged || !this.service.isInArray(focusedDate, this.dates);
143
- this.skip = this.service.skip(viewDate, this.min);
144
- this.total = total;
145
- this.animateToIndex = !activeViewChanged;
146
- this.bottomOffset = this.getBottomOffset();
147
- this.viewHeight = this.dom.viewHeight(this.activeView);
148
- if (generateDates) {
149
- this.dates = this.service.datesList(viewDate, this.getTake(this.skip));
150
- }
151
- if (!isEqualMonthYear(this.activeDate, focusedDate)) {
152
- this.activeDate = cloneDate(focusedDate);
153
- }
154
- const updateIndex = hasChange(changes, 'focusedDate') || activeViewChanged;
155
- if (generateDates || updateIndex || this.virtualization.isIndexVisible(this.skip)) {
156
- this.indexToScroll = this.service.skip(focusedDate, this.min);
157
- }
158
- }
159
- ngOnDestroy() {
160
- if (this.intlSubscription) {
161
- this.intlSubscription.unsubscribe();
162
- }
163
- }
164
- ngAfterViewInit() {
165
- if (this.indexToScroll === -1) {
166
- return;
167
- }
168
- this.virtualization.scrollToIndex(this.indexToScroll);
169
- this.indexToScroll = -1;
170
- }
171
- ngAfterViewChecked() {
172
- if (this.indexToScroll === -1) {
173
- return;
174
- }
175
- this.virtualization[this.animateToIndex ? 'animateToIndex' : 'scrollToIndex'](this.indexToScroll);
176
- this.animateToIndex = true;
177
- this.indexToScroll = -1;
178
- }
179
- onPageChange({ skip }) {
180
- this.dates = this.service.datesList(this.service.addToDate(this.min, skip), this.getTake(skip));
181
- this.pageChange.emit();
182
- }
183
- scrollChange({ offset }) {
184
- const el = this.list.nativeElement;
185
- const translate = `translateY(${offset}px)`;
186
- this.renderer.setStyle(el, 'transform', translate);
187
- this.renderer.setStyle(el, '-ms-transform', translate);
188
- }
189
- setActiveDate(index) {
190
- const candidate = this.service.addToDate(this.min, index);
191
- this.activeDate = candidate;
192
- this.activeDateChange.emit(candidate);
193
- this.cdr.detectChanges();
194
- }
195
- isMonthView() {
196
- return this.activeView === CalendarViewEnum.month;
197
- }
198
- isScrolled() {
199
- return this.virtualization.isListScrolled(this.service.skip(this.focusedDate, this.min));
200
- }
201
- getTabIndex() {
202
- return this.disabled ? null : this.tabIndex;
203
- }
204
- getBottomOffset() {
205
- return this.getScrollableHeight() - this.dom.viewHeight(this.activeView);
206
- }
207
- getScrollableHeight() {
208
- return this.activeView === CalendarViewEnum.month ?
209
- this.dom.scrollableContentHeight :
210
- this.dom.scrollableYearContentHeight;
211
- }
212
- getTake(skip) {
213
- return Math.min(this.total - skip, this.take);
214
- }
215
- getWeekNames(nameType) {
216
- const weekNames = shiftWeekNames(this.intl.dateFormatNames({ nameType: nameType, type: 'days' }), this.intl.firstDay());
217
- return this.weekNumber ? [''].concat(weekNames) : weekNames;
218
- }
219
- intlChange() {
220
- this.weekNames = this.getWeekNames(this.weekDaysFormat);
221
- this.wideWeekNames = this.getWeekNames('wide');
222
- if (this.isMonthView()) {
223
- this.cdr.markForCheck();
224
- }
225
- }
226
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ViewListComponent, deps: [{ token: i1.BusViewService }, { token: i0.ChangeDetectorRef }, { token: i2.IntlService }, { token: i3.CalendarDOMService }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
227
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: ViewListComponent, isStandalone: true, selector: "kendo-calendar-viewlist", inputs: { 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" }, outputs: { cellEnter: "cellEnter", cellClick: "cellClick", weekNumberCellClick: "weekNumberCellClick", activeDateChange: "activeDateChange", todayButtonClick: "todayButtonClick", pageChange: "pageChange", focusCalendar: "focusCalendar", blurCalendar: "blurCalendar", focusedCellChange: "focusedCellChange" }, host: { properties: { "class.k-vstack": "this.getComponentClass", "class.k-calendar-view": "this.getComponentClass", "class.k-calendar-monthview": "this.getComponentMonthClass", "class.k-calendar-yearview": "this.getComponentYearClass", "class.k-calendar-decadeview": "this.getComponentDecadeClass", "class.k-calendar-centuryview": "this.getComponentCenturyClass" } }, viewQueries: [{ propertyName: "virtualization", first: true, predicate: VirtualizationComponent, descendants: true }, { propertyName: "headerComponent", first: true, predicate: HeaderComponent, descendants: true }, { propertyName: "list", first: true, predicate: ["list"], descendants: true, static: true }], usesOnChanges: true, ngImport: i0, template: `
228
- <kendo-calendar-header
229
- [currentDate]="activeDate"
230
- [size]="size"
231
- [min]="min"
232
- [max]="max"
233
- [id]="id"
234
- [activeView]="activeView"
235
- [titleTemplateRef]="headerTitleTemplateRef"
236
- [headerTemplateRef]="headerTemplateRef"
237
- (todayButtonClick)="todayButtonClick.emit($event)"
238
- >
239
- </kendo-calendar-header>
240
- @if (isMonthView()) {
241
- <table class="k-calendar-weekdays k-calendar-table" [style.table-layout]="'auto'">
242
- <thead class="k-calendar-thead">
243
- <tr class="k-calendar-tr">
244
- @for (name of weekNames; track $index; let i = $index) {
245
- <th class="k-calendar-th" scope="col" [attr.aria-label]="wideWeekNames[i]" role="columnheader">{{name}}</th>
246
- }
247
- </tr>
248
- </thead>
249
- </table>
250
- }
251
- <kendo-virtualization
252
- [tabindex]="-1"
253
- [skip]="skip"
254
- [take]="take"
255
- [total]="total"
256
- [itemHeight]="viewHeight"
257
- [topOffset]="viewOffset"
258
- [bottomOffset]="bottomOffset"
259
- [scrollOffsetSize]="viewOffset"
260
- [maxScrollDifference]="viewHeight"
261
- (pageChange)="onPageChange($event)"
262
- (scrollChange)="scrollChange($event)"
263
- (activeIndexChange)="setActiveDate($event)"
264
- >
265
- <table
266
- #list
267
- role="grid"
268
- class="k-calendar-table"
269
- [attr.tabindex]="getTabIndex()"
270
- [attr.aria-labelledby]="id"
271
- (focus)="focusCalendar.emit()"
272
- (blur)="blurCalendar.emit($event)"
273
- >
274
- <colgroup>@for (_ of cols; track $index) {
275
- <col />
276
- }</colgroup>
277
-
278
- <tbody class="k-calendar-tbody"
279
- *kFor="let date of dates"
280
- kendoCalendarView
281
- [allowReverse]="allowReverse"
282
- [activeRangeEnd]="activeRangeEnd"
283
- [selectionRange]="selectionRange"
284
- [showOtherMonthDays]="showOtherMonthDays"
285
- [headerTitle]="headerTitle"
286
- role="rowgroup"
287
- [activeView]="activeView"
288
- [isActive]="isActive"
289
- [min]="min" [max]="max"
290
- [cellUID]="cellUID"
291
- [focusedDate]="focusedDate"
292
- [selectedDates]="selectedDates"
293
- [weekNumber]="weekNumber"
294
- [templateRef]="cellTemplateRef"
295
- [weekNumberTemplateRef]="weekNumberTemplateRef"
296
- [viewDate]="date"
297
- (cellClick)="cellClick.emit($event)"
298
- (weekNumberCellClick)="weekNumberCellClick.emit($event)"
299
- (focusedCellId)="focusedCellChange.emit($event)"
300
- (cellEnter)="cellEnter.emit($event)"
301
- ></tbody>
302
- </table>
303
- </kendo-virtualization>
304
- @if (showFooter) {
305
- <kendo-calendar-footer
306
- [footerTemplateRef]="footerTemplateRef"
307
- [activeViewValue]="activeViewValue"
308
- [currentDate]="activeDate">
309
- </kendo-calendar-footer>
310
- }
311
- `, isInline: true, dependencies: [{ kind: "component", type: 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: VirtualizationComponent, selector: "kendo-virtualization", inputs: ["direction", "itemHeight", "itemWidth", "topOffset", "bottomOffset", "maxScrollDifference", "scrollOffsetSize", "scrollDuration", "skip", "take", "total"], outputs: ["activeIndexChange", "pageChange", "scrollChange"] }, { kind: "directive", type: KForOf, selector: "[kFor][kForOf]", inputs: ["kForOf", "kForTrackBy", "kForTemplate"] }, { kind: "component", type: ViewComponent, selector: "[kendoCalendarView]", inputs: ["allowReverse", "showOtherMonthDays", "direction", "isActive", "activeView", "cellUID", "focusedDate", "viewDate", "activeRangeEnd", "selectionRange", "min", "max", "selectedDates", "weekNumber", "viewIndex", "templateRef", "weekNumberTemplateRef", "headerTitle"], outputs: ["cellClick", "weekNumberCellClick", "cellEnter", "cellLeave", "focusedCellId"] }, { kind: "component", type: FooterComponent, selector: "kendo-calendar-footer", inputs: ["footerTemplateRef", "activeViewValue", "currentDate"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
312
- }
313
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ViewListComponent, decorators: [{
314
- type: Component,
315
- args: [{
316
- changeDetection: ChangeDetectionStrategy.OnPush,
317
- selector: 'kendo-calendar-viewlist',
318
- template: `
319
- <kendo-calendar-header
320
- [currentDate]="activeDate"
321
- [size]="size"
322
- [min]="min"
323
- [max]="max"
324
- [id]="id"
325
- [activeView]="activeView"
326
- [titleTemplateRef]="headerTitleTemplateRef"
327
- [headerTemplateRef]="headerTemplateRef"
328
- (todayButtonClick)="todayButtonClick.emit($event)"
329
- >
330
- </kendo-calendar-header>
331
- @if (isMonthView()) {
332
- <table class="k-calendar-weekdays k-calendar-table" [style.table-layout]="'auto'">
333
- <thead class="k-calendar-thead">
334
- <tr class="k-calendar-tr">
335
- @for (name of weekNames; track $index; let i = $index) {
336
- <th class="k-calendar-th" scope="col" [attr.aria-label]="wideWeekNames[i]" role="columnheader">{{name}}</th>
337
- }
338
- </tr>
339
- </thead>
340
- </table>
341
- }
342
- <kendo-virtualization
343
- [tabindex]="-1"
344
- [skip]="skip"
345
- [take]="take"
346
- [total]="total"
347
- [itemHeight]="viewHeight"
348
- [topOffset]="viewOffset"
349
- [bottomOffset]="bottomOffset"
350
- [scrollOffsetSize]="viewOffset"
351
- [maxScrollDifference]="viewHeight"
352
- (pageChange)="onPageChange($event)"
353
- (scrollChange)="scrollChange($event)"
354
- (activeIndexChange)="setActiveDate($event)"
355
- >
356
- <table
357
- #list
358
- role="grid"
359
- class="k-calendar-table"
360
- [attr.tabindex]="getTabIndex()"
361
- [attr.aria-labelledby]="id"
362
- (focus)="focusCalendar.emit()"
363
- (blur)="blurCalendar.emit($event)"
364
- >
365
- <colgroup>@for (_ of cols; track $index) {
366
- <col />
367
- }</colgroup>
368
-
369
- <tbody class="k-calendar-tbody"
370
- *kFor="let date of dates"
371
- kendoCalendarView
372
- [allowReverse]="allowReverse"
373
- [activeRangeEnd]="activeRangeEnd"
374
- [selectionRange]="selectionRange"
375
- [showOtherMonthDays]="showOtherMonthDays"
376
- [headerTitle]="headerTitle"
377
- role="rowgroup"
378
- [activeView]="activeView"
379
- [isActive]="isActive"
380
- [min]="min" [max]="max"
381
- [cellUID]="cellUID"
382
- [focusedDate]="focusedDate"
383
- [selectedDates]="selectedDates"
384
- [weekNumber]="weekNumber"
385
- [templateRef]="cellTemplateRef"
386
- [weekNumberTemplateRef]="weekNumberTemplateRef"
387
- [viewDate]="date"
388
- (cellClick)="cellClick.emit($event)"
389
- (weekNumberCellClick)="weekNumberCellClick.emit($event)"
390
- (focusedCellId)="focusedCellChange.emit($event)"
391
- (cellEnter)="cellEnter.emit($event)"
392
- ></tbody>
393
- </table>
394
- </kendo-virtualization>
395
- @if (showFooter) {
396
- <kendo-calendar-footer
397
- [footerTemplateRef]="footerTemplateRef"
398
- [activeViewValue]="activeViewValue"
399
- [currentDate]="activeDate">
400
- </kendo-calendar-footer>
401
- }
402
- `,
403
- standalone: true,
404
- imports: [HeaderComponent, VirtualizationComponent, KForOf, ViewComponent, FooterComponent]
405
- }]
406
- }], ctorParameters: () => [{ type: i1.BusViewService }, { type: i0.ChangeDetectorRef }, { type: i2.IntlService }, { type: i3.CalendarDOMService }, { type: i0.Renderer2 }], propDecorators: { allowReverse: [{
407
- type: Input
408
- }], cellTemplateRef: [{
409
- type: Input
410
- }], weekNumberTemplateRef: [{
411
- type: Input
412
- }], headerTitleTemplateRef: [{
413
- type: Input
414
- }], headerTemplateRef: [{
415
- type: Input
416
- }], footerTemplateRef: [{
417
- type: Input
418
- }], showOtherMonthDays: [{
419
- type: Input
420
- }], activeView: [{
421
- type: Input
422
- }], cellUID: [{
423
- type: Input
424
- }], focusedDate: [{
425
- type: Input
426
- }], isActive: [{
427
- type: Input
428
- }], min: [{
429
- type: Input
430
- }], max: [{
431
- type: Input
432
- }], selectedDates: [{
433
- type: Input
434
- }], tabIndex: [{
435
- type: Input
436
- }], disabled: [{
437
- type: Input
438
- }], id: [{
439
- type: Input
440
- }], showFooter: [{
441
- type: Input
442
- }], weekDaysFormat: [{
443
- type: Input
444
- }], activeRangeEnd: [{
445
- type: Input
446
- }], selectionRange: [{
447
- type: Input
448
- }], size: [{
449
- type: Input
450
- }], weekNumber: [{
451
- type: Input
452
- }], cellEnter: [{
453
- type: Output
454
- }], cellClick: [{
455
- type: Output
456
- }], weekNumberCellClick: [{
457
- type: Output
458
- }], activeDateChange: [{
459
- type: Output
460
- }], todayButtonClick: [{
461
- type: Output
462
- }], pageChange: [{
463
- type: Output
464
- }], focusCalendar: [{
465
- type: Output
466
- }], blurCalendar: [{
467
- type: Output
468
- }], focusedCellChange: [{
469
- type: Output
470
- }], virtualization: [{
471
- type: ViewChild,
472
- args: [VirtualizationComponent, { static: false }]
473
- }], headerComponent: [{
474
- type: ViewChild,
475
- args: [HeaderComponent, { static: false }]
476
- }], list: [{
477
- type: ViewChild,
478
- args: ['list', { static: true }]
479
- }], getComponentClass: [{
480
- type: HostBinding,
481
- args: ["class.k-vstack"]
482
- }, {
483
- type: HostBinding,
484
- args: ["class.k-calendar-view"]
485
- }], getComponentMonthClass: [{
486
- type: HostBinding,
487
- args: ["class.k-calendar-monthview"]
488
- }], getComponentYearClass: [{
489
- type: HostBinding,
490
- args: ["class.k-calendar-yearview"]
491
- }], getComponentDecadeClass: [{
492
- type: HostBinding,
493
- args: ["class.k-calendar-decadeview"]
494
- }], getComponentCenturyClass: [{
495
- type: HostBinding,
496
- args: ["class.k-calendar-centuryview"]
497
- }] } });