@progress/kendo-angular-dateinputs 21.1.1-develop.2 → 21.2.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/esm2022/calendar/calendar.component.mjs +222 -221
- package/esm2022/calendar/footer.component.mjs +31 -29
- package/esm2022/calendar/header.component.mjs +157 -145
- package/esm2022/calendar/horizontal-view-list.component.mjs +139 -123
- package/esm2022/calendar/multiview-calendar.component.mjs +110 -107
- package/esm2022/calendar/navigation.component.mjs +55 -49
- package/esm2022/calendar/view-list.component.mjs +148 -135
- package/esm2022/calendar/view.component.mjs +107 -89
- package/esm2022/dateinput/dateinput.component.mjs +142 -137
- package/esm2022/datepicker/datepicker.component.mjs +315 -303
- package/esm2022/daterange/date-range-popup.component.mjs +264 -253
- package/esm2022/daterange/date-range.component.mjs +10 -7
- package/esm2022/datetimepicker/datetimepicker.component.mjs +677 -657
- package/esm2022/package-metadata.mjs +2 -2
- package/esm2022/timepicker/timelist.component.mjs +55 -51
- package/esm2022/timepicker/timepicker.component.mjs +379 -367
- package/esm2022/timepicker/timeselector.component.mjs +138 -123
- package/fesm2022/progress-kendo-angular-dateinputs.mjs +2943 -2783
- package/package.json +11 -11
|
@@ -15,7 +15,6 @@ import { HeaderComponent } from './header.component';
|
|
|
15
15
|
import { FooterComponent } from './footer.component';
|
|
16
16
|
import { ViewComponent } from './view.component';
|
|
17
17
|
import { KForOf } from './for.directive';
|
|
18
|
-
import { NgIf, NgFor } from '@angular/common';
|
|
19
18
|
import * as i0 from "@angular/core";
|
|
20
19
|
import * as i1 from "./services/bus-view.service";
|
|
21
20
|
import * as i2 from "@progress/kendo-angular-intl";
|
|
@@ -225,84 +224,91 @@ export class ViewListComponent {
|
|
|
225
224
|
}
|
|
226
225
|
}
|
|
227
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 });
|
|
228
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
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: `
|
|
229
228
|
<kendo-calendar-header
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
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
|
+
>
|
|
240
239
|
</kendo-calendar-header>
|
|
241
|
-
|
|
240
|
+
@if (isMonthView()) {
|
|
241
|
+
<table class="k-calendar-weekdays k-calendar-table" [style.table-layout]="'auto'">
|
|
242
242
|
<thead class="k-calendar-thead">
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
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>
|
|
246
248
|
</thead>
|
|
247
|
-
|
|
249
|
+
</table>
|
|
250
|
+
}
|
|
248
251
|
<kendo-virtualization
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
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)"
|
|
270
273
|
>
|
|
271
|
-
|
|
274
|
+
<colgroup>@for (_ of cols; track $index) {
|
|
275
|
+
<col />
|
|
276
|
+
}</colgroup>
|
|
272
277
|
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
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>
|
|
298
303
|
</kendo-virtualization>
|
|
299
|
-
|
|
300
|
-
|
|
304
|
+
@if (showFooter) {
|
|
305
|
+
<kendo-calendar-footer
|
|
301
306
|
[footerTemplateRef]="footerTemplateRef"
|
|
302
307
|
[activeViewValue]="activeViewValue"
|
|
303
308
|
[currentDate]="activeDate">
|
|
304
|
-
|
|
305
|
-
|
|
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 });
|
|
306
312
|
}
|
|
307
313
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ViewListComponent, decorators: [{
|
|
308
314
|
type: Component,
|
|
@@ -311,84 +317,91 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
311
317
|
selector: 'kendo-calendar-viewlist',
|
|
312
318
|
template: `
|
|
313
319
|
<kendo-calendar-header
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
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
|
+
>
|
|
324
330
|
</kendo-calendar-header>
|
|
325
|
-
|
|
331
|
+
@if (isMonthView()) {
|
|
332
|
+
<table class="k-calendar-weekdays k-calendar-table" [style.table-layout]="'auto'">
|
|
326
333
|
<thead class="k-calendar-thead">
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
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>
|
|
330
339
|
</thead>
|
|
331
|
-
|
|
340
|
+
</table>
|
|
341
|
+
}
|
|
332
342
|
<kendo-virtualization
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
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)"
|
|
354
364
|
>
|
|
355
|
-
|
|
365
|
+
<colgroup>@for (_ of cols; track $index) {
|
|
366
|
+
<col />
|
|
367
|
+
}</colgroup>
|
|
356
368
|
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
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>
|
|
382
394
|
</kendo-virtualization>
|
|
383
|
-
|
|
384
|
-
|
|
395
|
+
@if (showFooter) {
|
|
396
|
+
<kendo-calendar-footer
|
|
385
397
|
[footerTemplateRef]="footerTemplateRef"
|
|
386
398
|
[activeViewValue]="activeViewValue"
|
|
387
399
|
[currentDate]="activeDate">
|
|
388
|
-
|
|
389
|
-
|
|
400
|
+
</kendo-calendar-footer>
|
|
401
|
+
}
|
|
402
|
+
`,
|
|
390
403
|
standalone: true,
|
|
391
|
-
imports: [HeaderComponent,
|
|
404
|
+
imports: [HeaderComponent, VirtualizationComponent, KForOf, ViewComponent, FooterComponent]
|
|
392
405
|
}]
|
|
393
406
|
}], ctorParameters: () => [{ type: i1.BusViewService }, { type: i0.ChangeDetectorRef }, { type: i2.IntlService }, { type: i3.CalendarDOMService }, { type: i0.Renderer2 }], propDecorators: { allowReverse: [{
|
|
394
407
|
type: Input
|
|
@@ -13,7 +13,7 @@ import { getToday, last, setTime, stringifyClassObject } from '../util';
|
|
|
13
13
|
import { closestInScope } from '../common/dom-queries';
|
|
14
14
|
import { isPresent } from '../common/utils';
|
|
15
15
|
import { KForOf } from './for.directive';
|
|
16
|
-
import {
|
|
16
|
+
import { NgTemplateOutlet, NgClass } from '@angular/common';
|
|
17
17
|
import * as i0 from "@angular/core";
|
|
18
18
|
import * as i1 from "./services/bus-view.service";
|
|
19
19
|
import * as i2 from "@progress/kendo-angular-intl";
|
|
@@ -260,54 +260,63 @@ export class ViewComponent {
|
|
|
260
260
|
return this.data[rowIndex][cellIndex];
|
|
261
261
|
}
|
|
262
262
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ViewComponent, deps: [{ token: i1.BusViewService }, { token: i2.IntlService }, { token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.Renderer2 }, { token: i3.DisabledDatesService }], target: i0.ɵɵFactoryTarget.Component });
|
|
263
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
263
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: ViewComponent, isStandalone: true, selector: "[kendoCalendarView]", inputs: { allowReverse: "allowReverse", showOtherMonthDays: "showOtherMonthDays", direction: "direction", isActive: "isActive", activeView: "activeView", cellUID: "cellUID", focusedDate: "focusedDate", viewDate: "viewDate", activeRangeEnd: "activeRangeEnd", selectionRange: "selectionRange", min: "min", max: "max", selectedDates: "selectedDates", weekNumber: "weekNumber", viewIndex: "viewIndex", templateRef: "templateRef", weekNumberTemplateRef: "weekNumberTemplateRef", headerTitle: "headerTitle" }, outputs: { cellClick: "cellClick", weekNumberCellClick: "weekNumberCellClick", cellEnter: "cellEnter", cellLeave: "cellLeave", focusedCellId: "focusedCellId" }, usesOnChanges: true, ngImport: i0, template: `
|
|
264
|
+
@if (!isHorizontal()) {
|
|
265
|
+
<tr class="k-calendar-tr" role="row" [attr.aria-hidden]="ariaHidden"><th class="k-calendar-caption" scope="col" [colSpan]="colSpan">{{title}}</th></tr>
|
|
266
|
+
}
|
|
267
|
+
<tr *kFor="let row of data; let rowIndex = index" class="k-calendar-tr" role="row">
|
|
268
|
+
@if (weekNumber) {
|
|
269
|
+
@if (firstDate(row)) {
|
|
270
|
+
<td
|
|
271
|
+
class="k-alt k-calendar-td"
|
|
272
|
+
role="gridcell"
|
|
273
|
+
(click)="handleWeekNumberClick(row)"
|
|
274
|
+
>
|
|
275
|
+
@if (!weekNumberTemplateRef) {
|
|
276
|
+
{{getWeekNumber(firstDate(row))}}
|
|
277
|
+
}
|
|
278
|
+
@if (weekNumberTemplateRef) {
|
|
279
|
+
<ng-template
|
|
280
|
+
[ngTemplateOutlet]="weekNumberTemplateRef"
|
|
280
281
|
[ngTemplateOutletContext]="{
|
|
281
282
|
$implicit: firstDate(row),
|
|
282
283
|
cellContext: getWeekNumberContext(row)
|
|
283
284
|
}"
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
285
|
+
></ng-template>
|
|
286
|
+
}
|
|
287
|
+
</td>
|
|
288
|
+
} @else {
|
|
289
|
+
<td class="k-empty k-calendar-td" role="gridcell"> </td>
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
<ng-container *kFor="let cell of row; let cellIndex = index">
|
|
293
|
+
@if (shouldRenderCellContent(cell)) {
|
|
294
|
+
<td class="k-calendar-td"
|
|
295
|
+
role="gridcell"
|
|
296
|
+
[attr.id]="cell.id"
|
|
297
|
+
[attr.data-cell-index]="tableCellIndex(rowIndex, cellIndex)"
|
|
298
|
+
[attr.aria-selected]="cell.isSelected || cell.isRangeStart || cell.isRangeMid || cell.isRangeEnd"
|
|
299
|
+
[attr.aria-disabled]="cell.isDisabled"
|
|
300
|
+
[attr.aria-label]="getMonthLabel(cell.value)"
|
|
301
|
+
[ngClass]="getStyles(cell)"
|
|
302
|
+
[title]="cell.title"
|
|
303
|
+
>
|
|
304
|
+
<span class="k-link">
|
|
305
|
+
@if (!templateRef) {{{cell.formattedValue}}}
|
|
306
|
+
@if (templateRef) {
|
|
307
|
+
<ng-template
|
|
308
|
+
[ngTemplateOutlet]="templateRef"
|
|
309
|
+
[ngTemplateOutletContext]="{ $implicit: cell.value, cellContext: cell }"
|
|
310
|
+
></ng-template>
|
|
311
|
+
}
|
|
312
|
+
</span>
|
|
313
|
+
</td>
|
|
314
|
+
} @else {
|
|
315
|
+
<td class="k-empty k-calendar-td" role="gridcell"> </td>
|
|
316
|
+
}
|
|
317
|
+
</ng-container>
|
|
318
|
+
</tr>
|
|
319
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: KForOf, selector: "[kFor][kForOf]", inputs: ["kForOf", "kForTrackBy", "kForTemplate"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
311
320
|
}
|
|
312
321
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ViewComponent, decorators: [{
|
|
313
322
|
type: Component,
|
|
@@ -315,55 +324,64 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
315
324
|
// eslint-disable-next-line
|
|
316
325
|
selector: '[kendoCalendarView]',
|
|
317
326
|
template: `
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
327
|
+
@if (!isHorizontal()) {
|
|
328
|
+
<tr class="k-calendar-tr" role="row" [attr.aria-hidden]="ariaHidden"><th class="k-calendar-caption" scope="col" [colSpan]="colSpan">{{title}}</th></tr>
|
|
329
|
+
}
|
|
330
|
+
<tr *kFor="let row of data; let rowIndex = index" class="k-calendar-tr" role="row">
|
|
331
|
+
@if (weekNumber) {
|
|
332
|
+
@if (firstDate(row)) {
|
|
333
|
+
<td
|
|
334
|
+
class="k-alt k-calendar-td"
|
|
335
|
+
role="gridcell"
|
|
336
|
+
(click)="handleWeekNumberClick(row)"
|
|
337
|
+
>
|
|
338
|
+
@if (!weekNumberTemplateRef) {
|
|
339
|
+
{{getWeekNumber(firstDate(row))}}
|
|
340
|
+
}
|
|
341
|
+
@if (weekNumberTemplateRef) {
|
|
342
|
+
<ng-template
|
|
343
|
+
[ngTemplateOutlet]="weekNumberTemplateRef"
|
|
334
344
|
[ngTemplateOutletContext]="{
|
|
335
345
|
$implicit: firstDate(row),
|
|
336
346
|
cellContext: getWeekNumberContext(row)
|
|
337
347
|
}"
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
348
|
+
></ng-template>
|
|
349
|
+
}
|
|
350
|
+
</td>
|
|
351
|
+
} @else {
|
|
352
|
+
<td class="k-empty k-calendar-td" role="gridcell"> </td>
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
<ng-container *kFor="let cell of row; let cellIndex = index">
|
|
356
|
+
@if (shouldRenderCellContent(cell)) {
|
|
357
|
+
<td class="k-calendar-td"
|
|
358
|
+
role="gridcell"
|
|
359
|
+
[attr.id]="cell.id"
|
|
360
|
+
[attr.data-cell-index]="tableCellIndex(rowIndex, cellIndex)"
|
|
361
|
+
[attr.aria-selected]="cell.isSelected || cell.isRangeStart || cell.isRangeMid || cell.isRangeEnd"
|
|
362
|
+
[attr.aria-disabled]="cell.isDisabled"
|
|
363
|
+
[attr.aria-label]="getMonthLabel(cell.value)"
|
|
364
|
+
[ngClass]="getStyles(cell)"
|
|
365
|
+
[title]="cell.title"
|
|
366
|
+
>
|
|
367
|
+
<span class="k-link">
|
|
368
|
+
@if (!templateRef) {{{cell.formattedValue}}}
|
|
369
|
+
@if (templateRef) {
|
|
370
|
+
<ng-template
|
|
371
|
+
[ngTemplateOutlet]="templateRef"
|
|
372
|
+
[ngTemplateOutletContext]="{ $implicit: cell.value, cellContext: cell }"
|
|
373
|
+
></ng-template>
|
|
374
|
+
}
|
|
375
|
+
</span>
|
|
376
|
+
</td>
|
|
377
|
+
} @else {
|
|
378
|
+
<td class="k-empty k-calendar-td" role="gridcell"> </td>
|
|
379
|
+
}
|
|
380
|
+
</ng-container>
|
|
381
|
+
</tr>
|
|
382
|
+
`,
|
|
365
383
|
standalone: true,
|
|
366
|
-
imports: [
|
|
384
|
+
imports: [KForOf, NgTemplateOutlet, NgClass]
|
|
367
385
|
}]
|
|
368
386
|
}], ctorParameters: () => [{ type: i1.BusViewService }, { type: i2.IntlService }, { type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }, { type: i0.Renderer2 }, { type: i3.DisabledDatesService }], propDecorators: { allowReverse: [{
|
|
369
387
|
type: Input
|