@progress/kendo-angular-dateinputs 21.1.1-develop.2 → 21.2.0-develop.2
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
|
@@ -33,7 +33,6 @@ import { NavigationService } from './services/navigation.service';
|
|
|
33
33
|
import { HeaderTemplateDirective } from './templates/header-template.directive';
|
|
34
34
|
import { FooterTemplateDirective } from './templates/footer-template.directive';
|
|
35
35
|
import { FooterComponent } from './footer.component';
|
|
36
|
-
import { NgIf } from '@angular/common';
|
|
37
36
|
import { MultiViewCalendarLocalizedMessagesDirective } from './localization/multiview-calendar-localized-messages.directive';
|
|
38
37
|
import * as i0 from "@angular/core";
|
|
39
38
|
import * as i1 from "./services/bus-view.service";
|
|
@@ -1203,7 +1202,7 @@ export class MultiViewCalendarComponent {
|
|
|
1203
1202
|
});
|
|
1204
1203
|
}
|
|
1205
1204
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: MultiViewCalendarComponent, deps: [{ token: i1.BusViewService }, { token: i0.ElementRef }, { token: i2.NavigationService }, { token: i0.Renderer2 }, { token: i0.ChangeDetectorRef }, { token: i0.NgZone }, { token: i3.DisabledDatesService }, { token: i4.SelectionService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1206
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
1205
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: MultiViewCalendarComponent, isStandalone: true, selector: "kendo-multiviewcalendar", inputs: { showOtherMonthDays: "showOtherMonthDays", showCalendarHeader: "showCalendarHeader", size: "size", id: "id", focusedDate: "focusedDate", footer: "footer", min: "min", max: "max", rangeValidation: "rangeValidation", disabledDatesRangeValidation: "disabledDatesRangeValidation", selection: "selection", allowReverse: "allowReverse", value: "value", disabled: "disabled", tabindex: "tabindex", tabIndex: "tabIndex", weekDaysFormat: "weekDaysFormat", isActive: "isActive", disabledDates: "disabledDates", activeView: "activeView", bottomView: "bottomView", topView: "topView", showViewHeader: "showViewHeader", animateNavigation: "animateNavigation", weekNumber: "weekNumber", activeRangeEnd: "activeRangeEnd", selectionRange: "selectionRange", views: "views", orientation: "orientation", cellTemplateRef: ["cellTemplate", "cellTemplateRef"], monthCellTemplateRef: ["monthCellTemplate", "monthCellTemplateRef"], yearCellTemplateRef: ["yearCellTemplate", "yearCellTemplateRef"], decadeCellTemplateRef: ["decadeCellTemplate", "decadeCellTemplateRef"], centuryCellTemplateRef: ["centuryCellTemplate", "centuryCellTemplateRef"], weekNumberTemplateRef: ["weekNumberTemplate", "weekNumberTemplateRef"], footerTemplateRef: ["footerTemplate", "footerTemplateRef"], headerTitleTemplateRef: ["headerTitleTemplate", "headerTitleTemplateRef"], headerTemplateRef: ["headerTemplate", "headerTemplateRef"] }, outputs: { activeViewChange: "activeViewChange", navigate: "navigate", cellEnter: "cellEnter", cellLeave: "cellLeave", valueChange: "valueChange", rangeSelectionChange: "rangeSelectionChange", blurEvent: "blur", focusEvent: "focus", focusCalendar: "focusCalendar", onClosePopup: "onClosePopup", onTabPress: "onTabPress", onShiftTabPress: "onShiftTabPress" }, host: { listeners: { "mouseenter": "handleMouseEnter()", "mouseleave": "handleMouseLeave()", "mousedown": "handleMousedown($event)", "click": "handleClick()", "keydown": "keydown($event)" }, properties: { "attr.id": "this.widgetId", "attr.aria-disabled": "this.ariaDisabled", "class.k-disabled": "this.ariaDisabled" } }, providers: [
|
|
1207
1206
|
BusViewService,
|
|
1208
1207
|
RANGE_CALENDAR_VALUE_ACCESSOR,
|
|
1209
1208
|
RANGE_CALENDAR_RANGE_VALIDATORS,
|
|
@@ -1217,21 +1216,21 @@ export class MultiViewCalendarComponent {
|
|
|
1217
1216
|
SelectionService
|
|
1218
1217
|
], queries: [{ propertyName: "cellTemplate", first: true, predicate: CellTemplateDirective, descendants: true }, { propertyName: "monthCellTemplate", first: true, predicate: MonthCellTemplateDirective, descendants: true }, { propertyName: "yearCellTemplate", first: true, predicate: YearCellTemplateDirective, descendants: true }, { propertyName: "decadeCellTemplate", first: true, predicate: DecadeCellTemplateDirective, descendants: true }, { propertyName: "centuryCellTemplate", first: true, predicate: CenturyCellTemplateDirective, descendants: true }, { propertyName: "weekNumberTemplate", first: true, predicate: WeekNumberCellTemplateDirective, descendants: true }, { propertyName: "headerTitleTemplate", first: true, predicate: HeaderTitleTemplateDirective, descendants: true }, { propertyName: "headerTemplate", first: true, predicate: HeaderTemplateDirective, descendants: true }, { propertyName: "footerTemplate", first: true, predicate: FooterTemplateDirective, descendants: true }], viewQueries: [{ propertyName: "headerElement", first: true, predicate: HeaderComponent, descendants: true, read: ElementRef }, { propertyName: "viewList", first: true, predicate: HorizontalViewListComponent, descendants: true }], exportAs: ["kendo-multiviewcalendar"], usesOnChanges: true, ngImport: i0, template: `
|
|
1219
1218
|
<ng-container kendoMultiViewCalendarLocalizedMessages
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1219
|
+
i18n-today="kendo.multiviewcalendar.today|The label for the today button in the calendar header"
|
|
1220
|
+
today="Today"
|
|
1221
|
+
|
|
1222
|
+
i18n-prevButtonTitle="kendo.multiviewcalendar.prevButtonTitle|The label for the previous button in the Multiview calendar"
|
|
1223
|
+
prevButtonTitle="Navigate to previous view"
|
|
1224
|
+
|
|
1225
|
+
i18n-nextButtonTitle="kendo.multiviewcalendar.nextButtonTitle|The label for the next button in the Multiview calendar"
|
|
1226
|
+
nextButtonTitle="Navigate to next view"
|
|
1227
|
+
|
|
1228
|
+
i18n-parentViewButtonTitle="kendo.multiviewcalendar.parentViewButtonTitle|The title of the parent view button in the Multiview calendar header"
|
|
1229
|
+
parentViewButtonTitle="Navigate to parent view"
|
|
1230
|
+
>
|
|
1232
1231
|
</ng-container>
|
|
1233
|
-
|
|
1234
|
-
|
|
1232
|
+
@if (showCalendarHeader) {
|
|
1233
|
+
<kendo-calendar-header
|
|
1235
1234
|
[activeView]="activeViewEnum"
|
|
1236
1235
|
[currentDate]="activeDate"
|
|
1237
1236
|
[size]="size"
|
|
@@ -1248,49 +1247,51 @@ export class MultiViewCalendarComponent {
|
|
|
1248
1247
|
(todayButtonClick)="handleTodayButtonClick({ selectedDates: [$event], focusedDate: $event })"
|
|
1249
1248
|
(prevButtonClick)="navigateView(prevView)"
|
|
1250
1249
|
(nextButtonClick)="navigateView(nextView)"
|
|
1251
|
-
|
|
1252
|
-
|
|
1250
|
+
>
|
|
1251
|
+
</kendo-calendar-header>
|
|
1252
|
+
}
|
|
1253
1253
|
<kendo-calendar-horizontal
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1254
|
+
[showOtherMonthDays]="showOtherMonthDays"
|
|
1255
|
+
[allowReverse]="allowReverse"
|
|
1256
|
+
[id]="calendarHeaderIdLabel"
|
|
1257
|
+
[attr.aria-labelledby]="multiViewCalendarHeaderIdLabel"
|
|
1258
|
+
[activeView]="activeViewEnum"
|
|
1259
|
+
[activeDescendant]="ariaActivedescendant"
|
|
1260
|
+
[isActive]="isActive || isHovered"
|
|
1261
|
+
[cellTemplateRef]="activeCellTemplate()?.templateRef"
|
|
1262
|
+
[weekNumberTemplateRef]="weekNumberTemplateRef?.templateRef"
|
|
1263
|
+
[cellUID]="cellUID"
|
|
1264
|
+
[weekDaysFormat]="weekDaysFormat"
|
|
1265
|
+
[views]="views"
|
|
1266
|
+
[min]="min"
|
|
1267
|
+
[max]="max"
|
|
1268
|
+
[focusedDate]="focusedDate"
|
|
1269
|
+
[animateNavigation]="animateNavigation"
|
|
1270
|
+
[showViewHeader]="showViewHeader"
|
|
1271
|
+
[weekNumber]="weekNumber"
|
|
1272
|
+
[activeRangeEnd]="activeRangeEnd"
|
|
1273
|
+
[selectionRange]="selectionRange"
|
|
1274
|
+
[selectedDates]="selectedDates"
|
|
1275
|
+
[orientation]="orientation"
|
|
1276
|
+
[tabIndex]="tabIndex"
|
|
1277
|
+
[disabled]="disabled"
|
|
1278
|
+
(cellClick)="handleCellClick($event)"
|
|
1279
|
+
(weekNumberCellClick)="handleWeekNumberClick($event)"
|
|
1280
|
+
(cellEnter)="onCellEnter(cellEnter, $event)"
|
|
1281
|
+
(cellLeave)="emitCellEvent(cellLeave, $event)"
|
|
1282
|
+
(activeDateChange)="setActiveDate($event)"
|
|
1283
|
+
(focusCalendar)="handleFocus()"
|
|
1284
|
+
(blurCalendar)="handleFocusout($event)"
|
|
1285
|
+
>
|
|
1286
1286
|
</kendo-calendar-horizontal>
|
|
1287
|
-
|
|
1288
|
-
|
|
1287
|
+
@if (footer) {
|
|
1288
|
+
<kendo-calendar-footer
|
|
1289
1289
|
[footerTemplateRef]="footerTemplateRef?.templateRef"
|
|
1290
1290
|
[activeViewValue]="activeView"
|
|
1291
1291
|
[currentDate]="activeDate">
|
|
1292
|
-
|
|
1293
|
-
|
|
1292
|
+
</kendo-calendar-footer>
|
|
1293
|
+
}
|
|
1294
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: MultiViewCalendarLocalizedMessagesDirective, selector: "[kendoMultiViewCalendarLocalizedMessages]" }, { 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: HorizontalViewListComponent, selector: "kendo-calendar-horizontal", inputs: ["showOtherMonthDays", "cellTemplateRef", "weekNumberTemplateRef", "allowReverse", "activeRangeEnd", "activeView", "cellUID", "focusedDate", "isActive", "min", "max", "selectionRange", "selectedDates", "views", "showViewHeader", "animateNavigation", "orientation", "activeDescendant", "tabIndex", "disabled", "id", "weekDaysFormat", "weekNumber"], outputs: ["cellClick", "weekNumberCellClick", "cellEnter", "cellLeave", "activeDateChange", "focusCalendar", "blurCalendar", "focusedCellChange"] }, { kind: "component", type: FooterComponent, selector: "kendo-calendar-footer", inputs: ["footerTemplateRef", "activeViewValue", "currentDate"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1294
1295
|
}
|
|
1295
1296
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: MultiViewCalendarComponent, decorators: [{
|
|
1296
1297
|
type: Component,
|
|
@@ -1313,21 +1314,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
1313
1314
|
selector: 'kendo-multiviewcalendar',
|
|
1314
1315
|
template: `
|
|
1315
1316
|
<ng-container kendoMultiViewCalendarLocalizedMessages
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1317
|
+
i18n-today="kendo.multiviewcalendar.today|The label for the today button in the calendar header"
|
|
1318
|
+
today="Today"
|
|
1319
|
+
|
|
1320
|
+
i18n-prevButtonTitle="kendo.multiviewcalendar.prevButtonTitle|The label for the previous button in the Multiview calendar"
|
|
1321
|
+
prevButtonTitle="Navigate to previous view"
|
|
1322
|
+
|
|
1323
|
+
i18n-nextButtonTitle="kendo.multiviewcalendar.nextButtonTitle|The label for the next button in the Multiview calendar"
|
|
1324
|
+
nextButtonTitle="Navigate to next view"
|
|
1325
|
+
|
|
1326
|
+
i18n-parentViewButtonTitle="kendo.multiviewcalendar.parentViewButtonTitle|The title of the parent view button in the Multiview calendar header"
|
|
1327
|
+
parentViewButtonTitle="Navigate to parent view"
|
|
1328
|
+
>
|
|
1328
1329
|
</ng-container>
|
|
1329
|
-
|
|
1330
|
-
|
|
1330
|
+
@if (showCalendarHeader) {
|
|
1331
|
+
<kendo-calendar-header
|
|
1331
1332
|
[activeView]="activeViewEnum"
|
|
1332
1333
|
[currentDate]="activeDate"
|
|
1333
1334
|
[size]="size"
|
|
@@ -1344,51 +1345,53 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
1344
1345
|
(todayButtonClick)="handleTodayButtonClick({ selectedDates: [$event], focusedDate: $event })"
|
|
1345
1346
|
(prevButtonClick)="navigateView(prevView)"
|
|
1346
1347
|
(nextButtonClick)="navigateView(nextView)"
|
|
1347
|
-
|
|
1348
|
-
|
|
1348
|
+
>
|
|
1349
|
+
</kendo-calendar-header>
|
|
1350
|
+
}
|
|
1349
1351
|
<kendo-calendar-horizontal
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1352
|
+
[showOtherMonthDays]="showOtherMonthDays"
|
|
1353
|
+
[allowReverse]="allowReverse"
|
|
1354
|
+
[id]="calendarHeaderIdLabel"
|
|
1355
|
+
[attr.aria-labelledby]="multiViewCalendarHeaderIdLabel"
|
|
1356
|
+
[activeView]="activeViewEnum"
|
|
1357
|
+
[activeDescendant]="ariaActivedescendant"
|
|
1358
|
+
[isActive]="isActive || isHovered"
|
|
1359
|
+
[cellTemplateRef]="activeCellTemplate()?.templateRef"
|
|
1360
|
+
[weekNumberTemplateRef]="weekNumberTemplateRef?.templateRef"
|
|
1361
|
+
[cellUID]="cellUID"
|
|
1362
|
+
[weekDaysFormat]="weekDaysFormat"
|
|
1363
|
+
[views]="views"
|
|
1364
|
+
[min]="min"
|
|
1365
|
+
[max]="max"
|
|
1366
|
+
[focusedDate]="focusedDate"
|
|
1367
|
+
[animateNavigation]="animateNavigation"
|
|
1368
|
+
[showViewHeader]="showViewHeader"
|
|
1369
|
+
[weekNumber]="weekNumber"
|
|
1370
|
+
[activeRangeEnd]="activeRangeEnd"
|
|
1371
|
+
[selectionRange]="selectionRange"
|
|
1372
|
+
[selectedDates]="selectedDates"
|
|
1373
|
+
[orientation]="orientation"
|
|
1374
|
+
[tabIndex]="tabIndex"
|
|
1375
|
+
[disabled]="disabled"
|
|
1376
|
+
(cellClick)="handleCellClick($event)"
|
|
1377
|
+
(weekNumberCellClick)="handleWeekNumberClick($event)"
|
|
1378
|
+
(cellEnter)="onCellEnter(cellEnter, $event)"
|
|
1379
|
+
(cellLeave)="emitCellEvent(cellLeave, $event)"
|
|
1380
|
+
(activeDateChange)="setActiveDate($event)"
|
|
1381
|
+
(focusCalendar)="handleFocus()"
|
|
1382
|
+
(blurCalendar)="handleFocusout($event)"
|
|
1383
|
+
>
|
|
1382
1384
|
</kendo-calendar-horizontal>
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
+
@if (footer) {
|
|
1386
|
+
<kendo-calendar-footer
|
|
1385
1387
|
[footerTemplateRef]="footerTemplateRef?.templateRef"
|
|
1386
1388
|
[activeViewValue]="activeView"
|
|
1387
1389
|
[currentDate]="activeDate">
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
+
</kendo-calendar-footer>
|
|
1391
|
+
}
|
|
1392
|
+
`,
|
|
1390
1393
|
standalone: true,
|
|
1391
|
-
imports: [MultiViewCalendarLocalizedMessagesDirective,
|
|
1394
|
+
imports: [MultiViewCalendarLocalizedMessagesDirective, HeaderComponent, HorizontalViewListComponent, FooterComponent]
|
|
1392
1395
|
}]
|
|
1393
1396
|
}], ctorParameters: () => [{ type: i1.BusViewService }, { type: i0.ElementRef }, { type: i2.NavigationService }, { type: i0.Renderer2 }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }, { type: i3.DisabledDatesService }, { type: i4.SelectionService }], propDecorators: { showOtherMonthDays: [{
|
|
1394
1397
|
type: Input
|
|
@@ -13,7 +13,7 @@ import { MIN_DATE, MAX_DATE } from '../defaults';
|
|
|
13
13
|
import { cloneDate } from '@progress/kendo-date-math';
|
|
14
14
|
import { dateInRange } from '../util';
|
|
15
15
|
import { closestInScope } from '../common/dom-queries';
|
|
16
|
-
import {
|
|
16
|
+
import { NgTemplateOutlet } from '@angular/common';
|
|
17
17
|
import { KForOf } from './for.directive';
|
|
18
18
|
import { EventsOutsideAngularDirective } from '@progress/kendo-angular-common';
|
|
19
19
|
import * as i0 from "@angular/core";
|
|
@@ -135,33 +135,36 @@ export class NavigationComponent {
|
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
137
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: NavigationComponent, deps: [{ token: i1.BusViewService }, { token: i2.CalendarDOMService }, { token: i3.IntlService }, { token: i0.ChangeDetectorRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
|
|
138
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
138
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: NavigationComponent, isStandalone: true, selector: "kendo-calendar-navigation", inputs: { activeView: "activeView", min: "min", max: "max", focusedDate: "focusedDate", templateRef: "templateRef" }, outputs: { valueChange: "valueChange", pageChange: "pageChange" }, host: { properties: { "class.k-calendar-navigation": "this.getComponentClass" } }, viewQueries: [{ propertyName: "virtualization", first: true, predicate: VirtualizationComponent, descendants: true }, { propertyName: "list", first: true, predicate: ["list"], descendants: true, static: true }], usesOnChanges: true, ngImport: i0, template: `
|
|
139
139
|
<span class="k-calendar-navigation-highlight"></span>
|
|
140
140
|
<kendo-virtualization
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
141
|
+
[skip]="skip"
|
|
142
|
+
[take]="take"
|
|
143
|
+
[total]="total"
|
|
144
|
+
[itemHeight]="itemHeight"
|
|
145
|
+
[topOffset]="topOffset"
|
|
146
|
+
[bottomOffset]="bottomOffset"
|
|
147
|
+
[maxScrollDifference]="maxViewHeight"
|
|
148
|
+
(pageChange)="onPageChange($event)"
|
|
149
|
+
(scrollChange)="scrollChange($event)"
|
|
150
|
+
>
|
|
151
|
+
<ul #list class="k-reset" [kendoEventsOutsideAngular]="{ click: handleDateChange }" [scope]="this">
|
|
152
|
+
<li *kFor="let date of dates; let index=index" [attr.data-date-index]="index">
|
|
153
|
+
<span [class.k-calendar-navigation-marker]="service.isRangeStart(date)">
|
|
154
|
+
@if (!templateRef) {
|
|
155
|
+
{{service.navigationTitle(date)}}
|
|
156
|
+
}
|
|
157
|
+
@if (templateRef) {
|
|
158
|
+
<ng-template
|
|
159
|
+
[ngTemplateOutlet]="templateRef"
|
|
160
|
+
[ngTemplateOutletContext]="{ $implicit: service.navigationTitle(date), activeView: activeViewValue, date: date }"
|
|
161
|
+
></ng-template>
|
|
162
|
+
}
|
|
163
|
+
</span>
|
|
164
|
+
</li>
|
|
165
|
+
</ul>
|
|
163
166
|
</kendo-virtualization>
|
|
164
|
-
|
|
167
|
+
`, isInline: true, dependencies: [{ 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: EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }, { kind: "directive", type: KForOf, selector: "[kFor][kForOf]", inputs: ["kForOf", "kForTrackBy", "kForTemplate"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
165
168
|
}
|
|
166
169
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: NavigationComponent, decorators: [{
|
|
167
170
|
type: Component,
|
|
@@ -171,32 +174,35 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
171
174
|
template: `
|
|
172
175
|
<span class="k-calendar-navigation-highlight"></span>
|
|
173
176
|
<kendo-virtualization
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
177
|
+
[skip]="skip"
|
|
178
|
+
[take]="take"
|
|
179
|
+
[total]="total"
|
|
180
|
+
[itemHeight]="itemHeight"
|
|
181
|
+
[topOffset]="topOffset"
|
|
182
|
+
[bottomOffset]="bottomOffset"
|
|
183
|
+
[maxScrollDifference]="maxViewHeight"
|
|
184
|
+
(pageChange)="onPageChange($event)"
|
|
185
|
+
(scrollChange)="scrollChange($event)"
|
|
186
|
+
>
|
|
187
|
+
<ul #list class="k-reset" [kendoEventsOutsideAngular]="{ click: handleDateChange }" [scope]="this">
|
|
188
|
+
<li *kFor="let date of dates; let index=index" [attr.data-date-index]="index">
|
|
189
|
+
<span [class.k-calendar-navigation-marker]="service.isRangeStart(date)">
|
|
190
|
+
@if (!templateRef) {
|
|
191
|
+
{{service.navigationTitle(date)}}
|
|
192
|
+
}
|
|
193
|
+
@if (templateRef) {
|
|
194
|
+
<ng-template
|
|
195
|
+
[ngTemplateOutlet]="templateRef"
|
|
196
|
+
[ngTemplateOutletContext]="{ $implicit: service.navigationTitle(date), activeView: activeViewValue, date: date }"
|
|
197
|
+
></ng-template>
|
|
198
|
+
}
|
|
199
|
+
</span>
|
|
200
|
+
</li>
|
|
201
|
+
</ul>
|
|
196
202
|
</kendo-virtualization>
|
|
197
|
-
|
|
203
|
+
`,
|
|
198
204
|
standalone: true,
|
|
199
|
-
imports: [VirtualizationComponent, EventsOutsideAngularDirective, KForOf,
|
|
205
|
+
imports: [VirtualizationComponent, EventsOutsideAngularDirective, KForOf, NgTemplateOutlet]
|
|
200
206
|
}]
|
|
201
207
|
}], ctorParameters: () => [{ type: i1.BusViewService }, { type: i2.CalendarDOMService }, { type: i3.IntlService }, { type: i0.ChangeDetectorRef }, { type: i0.Renderer2 }], propDecorators: { activeView: [{
|
|
202
208
|
type: Input
|