@progress/kendo-angular-scheduler 21.4.1-develop.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/editing/recurrence/localization/messages.d.ts +1 -1
- package/editing/resource-editor-base.d.ts +1 -1
- package/editing-directives/editing-directive-base.d.ts +1 -1
- package/fesm2022/progress-kendo-angular-scheduler.mjs +313 -313
- package/localization/messages.d.ts +1 -1
- package/package.json +20 -28
- package/schematics/ngAdd/index.js +3 -3
- package/views/common/base-view.d.ts +1 -1
- package/views/common/configuration-view-base.d.ts +1 -1
- package/views/day-time/day-time-view-base.d.ts +1 -1
- package/views/day-time/day-time-view.component.d.ts +1 -1
- package/views/multi-day/multi-day-view-base.d.ts +1 -1
- package/views/timeline/timeline-base.d.ts +1 -1
- package/views/view-items/base-slot.directive.d.ts +1 -1
- package/views/view-items/base-view-item.d.ts +1 -1
- package/esm2022/common/constants.mjs +0 -8
- package/esm2022/common/default-model-fields.mjs +0 -20
- package/esm2022/common/dom-queries.mjs +0 -107
- package/esm2022/common/modifiers.mjs +0 -31
- package/esm2022/common/util.mjs +0 -227
- package/esm2022/data-binding.directive.mjs +0 -162
- package/esm2022/directives.mjs +0 -136
- package/esm2022/editing/date-time-picker.component.mjs +0 -190
- package/esm2022/editing/dialogs.service.mjs +0 -96
- package/esm2022/editing/edit-dialog-template.directive.mjs +0 -53
- package/esm2022/editing/edit-dialog.component.mjs +0 -679
- package/esm2022/editing/edit.service.mjs +0 -107
- package/esm2022/editing/local-data-changes.service.mjs +0 -18
- package/esm2022/editing/recurrence/end-rule-radio-button.directive.mjs +0 -77
- package/esm2022/editing/recurrence/localization/custom-messages.component.mjs +0 -44
- package/esm2022/editing/recurrence/localization/localized-messages.directive.mjs +0 -39
- package/esm2022/editing/recurrence/localization/messages.mjs +0 -239
- package/esm2022/editing/recurrence/localization/recurrence-localization.service.mjs +0 -47
- package/esm2022/editing/recurrence/recurrence-editor.component.mjs +0 -497
- package/esm2022/editing/recurrence/recurrence-end-rule-editor.component.mjs +0 -334
- package/esm2022/editing/recurrence/recurrence-frequency-editor.component.mjs +0 -105
- package/esm2022/editing/recurrence/recurrence-interval-editor.component.mjs +0 -169
- package/esm2022/editing/recurrence/recurrence-monthly-yearly-editor.component.mjs +0 -468
- package/esm2022/editing/recurrence/recurrence-weekday-rule-editor.component.mjs +0 -138
- package/esm2022/editing/recurrence/recurrence.service.mjs +0 -254
- package/esm2022/editing/recurrence/repeat-on-radio-button.directive.mjs +0 -81
- package/esm2022/editing/resource-editor-base.mjs +0 -59
- package/esm2022/editing/resource-multiple-editor.component.mjs +0 -101
- package/esm2022/editing/resource-single-editor.component.mjs +0 -82
- package/esm2022/editing/timezone-editor.component.mjs +0 -193
- package/esm2022/editing-directives/base-edit.service.mjs +0 -320
- package/esm2022/editing-directives/edit-service.interface.mjs +0 -5
- package/esm2022/editing-directives/editing-directive-base.mjs +0 -242
- package/esm2022/editing-directives/local-edit.service.mjs +0 -122
- package/esm2022/editing-directives/reactive-editing.directive.mjs +0 -132
- package/esm2022/editing-directives/utils.mjs +0 -107
- package/esm2022/events/add-event.mjs +0 -26
- package/esm2022/events/cancel-event.mjs +0 -14
- package/esm2022/events/create-event.mjs +0 -40
- package/esm2022/events/date-change-event.mjs +0 -29
- package/esm2022/events/drag-end-event.mjs +0 -46
- package/esm2022/events/drag-event.mjs +0 -54
- package/esm2022/events/drag-start-event.mjs +0 -30
- package/esm2022/events/edit-event-base.mjs +0 -32
- package/esm2022/events/edit-event.mjs +0 -30
- package/esm2022/events/event-click-event.mjs +0 -32
- package/esm2022/events/event-keydown-event.mjs +0 -28
- package/esm2022/events/more-events-click.mjs +0 -24
- package/esm2022/events/navigate-event.mjs +0 -26
- package/esm2022/events/preventable-event.mjs +0 -28
- package/esm2022/events/remove-event.mjs +0 -30
- package/esm2022/events/resize-end-event.mjs +0 -38
- package/esm2022/events/resize-event.mjs +0 -46
- package/esm2022/events/resize-start-event.mjs +0 -30
- package/esm2022/events/save-event.mjs +0 -18
- package/esm2022/events/slot-click-event.mjs +0 -44
- package/esm2022/events/slot-drag-end-event.mjs +0 -10
- package/esm2022/events/slot-drag-event.mjs +0 -40
- package/esm2022/events/slot-drag-start-event.mjs +0 -44
- package/esm2022/events/view-event-map.mjs +0 -35
- package/esm2022/events.mjs +0 -27
- package/esm2022/index.mjs +0 -83
- package/esm2022/loading.component.mjs +0 -52
- package/esm2022/localization/custom-messages.component.mjs +0 -56
- package/esm2022/localization/localized-messages.directive.mjs +0 -39
- package/esm2022/localization/messages.mjs +0 -614
- package/esm2022/localization/scheduler-localization.service.mjs +0 -31
- package/esm2022/navigation/focus-position.interface.mjs +0 -5
- package/esm2022/navigation/focus.service.mjs +0 -202
- package/esm2022/navigation/focusable-element.interface.mjs +0 -5
- package/esm2022/navigation/focusable.directive.mjs +0 -98
- package/esm2022/navigation/shortcuts.directive.mjs +0 -239
- package/esm2022/navigation.mjs +0 -6
- package/esm2022/package-metadata.mjs +0 -16
- package/esm2022/pdf/pdf-command.directive.mjs +0 -96
- package/esm2022/pdf/pdf-export-event.mjs +0 -10
- package/esm2022/pdf/pdf.component.mjs +0 -241
- package/esm2022/pdf/pdf.module.mjs +0 -42
- package/esm2022/pdf/pdf.service.mjs +0 -36
- package/esm2022/progress-kendo-angular-scheduler.mjs +0 -8
- package/esm2022/scheduler.component.mjs +0 -1981
- package/esm2022/scheduler.module.mjs +0 -138
- package/esm2022/toolbar/navigation.component.mjs +0 -391
- package/esm2022/toolbar/toolbar-context.mjs +0 -5
- package/esm2022/toolbar/toolbar-template.directive.mjs +0 -50
- package/esm2022/toolbar/toolbar.component.mjs +0 -168
- package/esm2022/toolbar/toolbar.service.mjs +0 -46
- package/esm2022/toolbar/view-selector.component.mjs +0 -181
- package/esm2022/types/actions.mjs +0 -5
- package/esm2022/types/create-form-group-args.interface.mjs +0 -5
- package/esm2022/types/crud-operation.enum.mjs +0 -18
- package/esm2022/types/current-time-settings.interface.mjs +0 -5
- package/esm2022/types/date-range.interface.mjs +0 -5
- package/esm2022/types/datepicker-options.interface.mjs +0 -5
- package/esm2022/types/edit-event-args.interface.mjs +0 -5
- package/esm2022/types/edit-mode.enum.mjs +0 -23
- package/esm2022/types/editable-settings.interface.mjs +0 -5
- package/esm2022/types/event-style-args.interface.mjs +0 -5
- package/esm2022/types/focusable-container.mjs +0 -5
- package/esm2022/types/group.interface.mjs +0 -5
- package/esm2022/types/numeric-options.interface.mjs +0 -5
- package/esm2022/types/ongoing-events-settings.interface.mjs +0 -5
- package/esm2022/types/resource.interface.mjs +0 -5
- package/esm2022/types/scheduler-event.mjs +0 -5
- package/esm2022/types/scheduler-model-fields.interface.mjs +0 -5
- package/esm2022/types/scheduler-slot.interface.mjs +0 -5
- package/esm2022/types/scheduler-view.mjs +0 -9
- package/esm2022/types/slot-class-args.interface.mjs +0 -5
- package/esm2022/types/slot-selection.mjs +0 -35
- package/esm2022/types/view-item.interface.mjs +0 -5
- package/esm2022/types.mjs +0 -12
- package/esm2022/views/agenda/agenda-header-item.component.mjs +0 -85
- package/esm2022/views/agenda/agenda-header.component.mjs +0 -75
- package/esm2022/views/agenda/agenda-task-item.component.mjs +0 -137
- package/esm2022/views/agenda/agenda-view-internal.component.mjs +0 -424
- package/esm2022/views/agenda/agenda-view-list.component.mjs +0 -256
- package/esm2022/views/agenda/agenda-view.component.mjs +0 -130
- package/esm2022/views/agenda/tasks.collection.mjs +0 -96
- package/esm2022/views/agenda/utils.mjs +0 -176
- package/esm2022/views/common/base-view.mjs +0 -1099
- package/esm2022/views/common/configuration-view-base.mjs +0 -164
- package/esm2022/views/common/dom-events.service.mjs +0 -22
- package/esm2022/views/common/hint-container.component.mjs +0 -41
- package/esm2022/views/common/repeat.pipe.mjs +0 -36
- package/esm2022/views/common/resize-hint.component.mjs +0 -97
- package/esm2022/views/common/resource-iterator.pipe.mjs +0 -49
- package/esm2022/views/common/scheduler-task.mjs +0 -5
- package/esm2022/views/common/slot-selectable.directive.mjs +0 -137
- package/esm2022/views/common/view-footer.component.mjs +0 -103
- package/esm2022/views/common/work-hours-footer.directive.mjs +0 -45
- package/esm2022/views/constants.mjs +0 -31
- package/esm2022/views/day-time/day-time-slot.service.mjs +0 -633
- package/esm2022/views/day-time/day-time-view-base.mjs +0 -244
- package/esm2022/views/day-time/day-time-view-item.component.mjs +0 -216
- package/esm2022/views/day-time/day-time-view.component.mjs +0 -437
- package/esm2022/views/day-time/event-slot.directive.mjs +0 -138
- package/esm2022/views/day-time/utils.mjs +0 -32
- package/esm2022/views/month/month-slot.component.mjs +0 -166
- package/esm2022/views/month/month-slot.service.mjs +0 -404
- package/esm2022/views/month/month-view-item.component.mjs +0 -161
- package/esm2022/views/month/month-view-renderer.component.mjs +0 -683
- package/esm2022/views/month/month-view.component.mjs +0 -203
- package/esm2022/views/month/multi-week-view.component.mjs +0 -202
- package/esm2022/views/month/utils.mjs +0 -107
- package/esm2022/views/multi-day/day-view.component.mjs +0 -186
- package/esm2022/views/multi-day/multi-day-view-base.mjs +0 -55
- package/esm2022/views/multi-day/multi-day-view-renderer.component.mjs +0 -1002
- package/esm2022/views/multi-day/multi-day-view.component.mjs +0 -197
- package/esm2022/views/multi-day/utils.mjs +0 -63
- package/esm2022/views/multi-day/week-view.component.mjs +0 -189
- package/esm2022/views/multi-day/work-week-view.component.mjs +0 -172
- package/esm2022/views/scheduler-view.directive.mjs +0 -65
- package/esm2022/views/templates/agenda-date-template.directive.mjs +0 -41
- package/esm2022/views/templates/agenda-time-template.directive.mjs +0 -46
- package/esm2022/views/templates/all-day-event-template.directive.mjs +0 -42
- package/esm2022/views/templates/all-day-slot-template.directive.mjs +0 -42
- package/esm2022/views/templates/date-header-template.directive.mjs +0 -42
- package/esm2022/views/templates/event-template.directive.mjs +0 -42
- package/esm2022/views/templates/group-header-template.directive.mjs +0 -42
- package/esm2022/views/templates/major-time-header-template.directive.mjs +0 -41
- package/esm2022/views/templates/minor-time-header-template.directive.mjs +0 -41
- package/esm2022/views/templates/month-day-slot-template.directive.mjs +0 -42
- package/esm2022/views/templates/multi-week-day-slot-template.directive.mjs +0 -42
- package/esm2022/views/templates/time-slot-template.directive.mjs +0 -43
- package/esm2022/views/templates.mjs +0 -16
- package/esm2022/views/timeline/timeline-base.mjs +0 -39
- package/esm2022/views/timeline/timeline-month-view.component.mjs +0 -211
- package/esm2022/views/timeline/timeline-multi-day-view.component.mjs +0 -649
- package/esm2022/views/timeline/timeline-view.component.mjs +0 -189
- package/esm2022/views/timeline/timeline-week-view.component.mjs +0 -181
- package/esm2022/views/timeline/utils.mjs +0 -60
- package/esm2022/views/utils.mjs +0 -373
- package/esm2022/views/view-context.service.mjs +0 -111
- package/esm2022/views/view-items/base-slot.directive.mjs +0 -104
- package/esm2022/views/view-items/base-slot.service.mjs +0 -82
- package/esm2022/views/view-items/base-view-item.mjs +0 -194
- package/esm2022/views/view-items/item-map.mjs +0 -38
- package/esm2022/views/view-items/types.mjs +0 -5
- package/esm2022/views/view-state.service.mjs +0 -144
- package/esm2022/views/year/utils.mjs +0 -60
- package/esm2022/views/year/year-view-internal.component.mjs +0 -471
- package/esm2022/views/year/year-view.component.mjs +0 -136
|
@@ -1,138 +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 { NgModule } from '@angular/core';
|
|
6
|
-
import { KENDO_SCHEDULER } from './directives';
|
|
7
|
-
import { ResizeBatchService } from '@progress/kendo-angular-common';
|
|
8
|
-
import { DialogContainerService, DialogService, WindowContainerService, WindowService, } from '@progress/kendo-angular-dialog';
|
|
9
|
-
import { CalendarDOMService, CenturyViewService, DayPeriodService, DecadeViewService, HoursService, MillisecondsService, MinutesService, MonthViewService, NavigationService, SecondsService, TimePickerDOMService, YearViewService, } from '@progress/kendo-angular-dateinputs';
|
|
10
|
-
import { IconsService } from '@progress/kendo-angular-icons';
|
|
11
|
-
import { PopupService } from '@progress/kendo-angular-popup';
|
|
12
|
-
import { ViewContextService } from './views/view-context.service';
|
|
13
|
-
import { ViewStateService } from './views/view-state.service';
|
|
14
|
-
import { EditService } from './editing/edit.service';
|
|
15
|
-
import { ToolbarService } from './toolbar/toolbar.service';
|
|
16
|
-
import * as i0 from "@angular/core";
|
|
17
|
-
import * as i1 from "./scheduler.component";
|
|
18
|
-
import * as i2 from "./localization/custom-messages.component";
|
|
19
|
-
import * as i3 from "./views/scheduler-view.directive";
|
|
20
|
-
import * as i4 from "./data-binding.directive";
|
|
21
|
-
import * as i5 from "./views/common/slot-selectable.directive";
|
|
22
|
-
import * as i6 from "./pdf/pdf.component";
|
|
23
|
-
import * as i7 from "./pdf/pdf-command.directive";
|
|
24
|
-
import * as i8 from "./navigation/shortcuts.directive";
|
|
25
|
-
import * as i9 from "./views/agenda/agenda-view.component";
|
|
26
|
-
import * as i10 from "./views/multi-day/day-view.component";
|
|
27
|
-
import * as i11 from "./views/month/month-view.component";
|
|
28
|
-
import * as i12 from "./views/multi-day/multi-day-view.component";
|
|
29
|
-
import * as i13 from "./views/month/multi-week-view.component";
|
|
30
|
-
import * as i14 from "./views/timeline/timeline-month-view.component";
|
|
31
|
-
import * as i15 from "./views/timeline/timeline-view.component";
|
|
32
|
-
import * as i16 from "./views/timeline/timeline-week-view.component";
|
|
33
|
-
import * as i17 from "./views/multi-day/week-view.component";
|
|
34
|
-
import * as i18 from "./views/multi-day/work-week-view.component";
|
|
35
|
-
import * as i19 from "./views/year/year-view.component";
|
|
36
|
-
import * as i20 from "./editing-directives/reactive-editing.directive";
|
|
37
|
-
import * as i21 from "./editing/recurrence/recurrence-editor.component";
|
|
38
|
-
import * as i22 from "./editing/timezone-editor.component";
|
|
39
|
-
import * as i23 from "./toolbar/navigation.component";
|
|
40
|
-
import * as i24 from "./toolbar/toolbar-template.directive";
|
|
41
|
-
import * as i25 from "./toolbar/view-selector.component";
|
|
42
|
-
import * as i26 from "./views/templates/agenda-date-template.directive";
|
|
43
|
-
import * as i27 from "./views/templates/agenda-time-template.directive";
|
|
44
|
-
import * as i28 from "./views/templates/all-day-event-template.directive";
|
|
45
|
-
import * as i29 from "./views/templates/all-day-slot-template.directive";
|
|
46
|
-
import * as i30 from "./views/templates/date-header-template.directive";
|
|
47
|
-
import * as i31 from "./views/templates/event-template.directive";
|
|
48
|
-
import * as i32 from "./editing/edit-dialog-template.directive";
|
|
49
|
-
import * as i33 from "./views/templates/group-header-template.directive";
|
|
50
|
-
import * as i34 from "./views/templates/major-time-header-template.directive";
|
|
51
|
-
import * as i35 from "./views/templates/minor-time-header-template.directive";
|
|
52
|
-
import * as i36 from "./views/templates/month-day-slot-template.directive";
|
|
53
|
-
import * as i37 from "./views/templates/multi-week-day-slot-template.directive";
|
|
54
|
-
import * as i38 from "./views/templates/time-slot-template.directive";
|
|
55
|
-
// IMPORTANT: NgModule export kept for backwards compatibility
|
|
56
|
-
/**
|
|
57
|
-
* Represents the [`NgModule`](link:site.data.urls.angular['ngmoduleapi']) definition for the Scheduler component.
|
|
58
|
-
*
|
|
59
|
-
* @example
|
|
60
|
-
* ```ts
|
|
61
|
-
* import { NgModule } from '@angular/core';
|
|
62
|
-
* import { BrowserModule } from '@angular/platform-browser';
|
|
63
|
-
* import { SchedulerModule } from '@progress/kendo-angular-scheduler';
|
|
64
|
-
* import { AppComponent } from './app.component';
|
|
65
|
-
*
|
|
66
|
-
* @NgModule({
|
|
67
|
-
* declarations: [AppComponent],
|
|
68
|
-
* imports: [BrowserModule, SchedulerModule],
|
|
69
|
-
* bootstrap: [AppComponent]
|
|
70
|
-
* })
|
|
71
|
-
* export class AppModule {}
|
|
72
|
-
* ```
|
|
73
|
-
*/
|
|
74
|
-
export class SchedulerModule {
|
|
75
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SchedulerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
76
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.14", ngImport: i0, type: SchedulerModule, imports: [i1.SchedulerComponent, i2.SchedulerCustomMessagesComponent, i3.SchedulerViewDirective, i4.DataBindingDirective, i5.SlotSelectableDirective, i6.PDFComponent, i7.PDFCommandDirective, i8.ShortcutsDirective, i9.AgendaViewComponent, i10.DayViewComponent, i11.MonthViewComponent, i12.MultiDayViewComponent, i13.MultiWeekViewComponent, i14.TimelineMonthViewComponent, i15.TimelineViewComponent, i16.TimelineWeekViewComponent, i17.WeekViewComponent, i18.WorkWeekViewComponent, i19.YearViewComponent, i20.ReactiveEditingDirective, i21.RecurrenceEditorComponent, i22.TimeZoneEditorComponent, i23.ToolbarNavigationComponent, i24.ToolbarTemplateDirective, i25.ToolbarViewSelectorComponent, i26.AgendaDateTemplateDirective, i27.AgendaTimeTemplateDirective, i28.AllDayEventTemplateDirective, i29.AllDaySlotTemplateDirective, i30.DateHeaderTemplateDirective, i31.EventTemplateDirective, i32.EditDialogTemplateDirective, i33.GroupHeaderTemplateDirective, i34.MajorTimeHeaderTemplateDirective, i35.MinorTimeHeaderTemplateDirective, i36.MonthDaySlotTemplateDirective, i37.MultiWeekDaySlotTemplateDirective, i38.TimeSlotTemplateDirective], exports: [i1.SchedulerComponent, i2.SchedulerCustomMessagesComponent, i3.SchedulerViewDirective, i4.DataBindingDirective, i5.SlotSelectableDirective, i6.PDFComponent, i7.PDFCommandDirective, i8.ShortcutsDirective, i9.AgendaViewComponent, i10.DayViewComponent, i11.MonthViewComponent, i12.MultiDayViewComponent, i13.MultiWeekViewComponent, i14.TimelineMonthViewComponent, i15.TimelineViewComponent, i16.TimelineWeekViewComponent, i17.WeekViewComponent, i18.WorkWeekViewComponent, i19.YearViewComponent, i20.ReactiveEditingDirective, i21.RecurrenceEditorComponent, i22.TimeZoneEditorComponent, i23.ToolbarNavigationComponent, i24.ToolbarTemplateDirective, i25.ToolbarViewSelectorComponent, i26.AgendaDateTemplateDirective, i27.AgendaTimeTemplateDirective, i28.AllDayEventTemplateDirective, i29.AllDaySlotTemplateDirective, i30.DateHeaderTemplateDirective, i31.EventTemplateDirective, i32.EditDialogTemplateDirective, i33.GroupHeaderTemplateDirective, i34.MajorTimeHeaderTemplateDirective, i35.MinorTimeHeaderTemplateDirective, i36.MonthDaySlotTemplateDirective, i37.MultiWeekDaySlotTemplateDirective, i38.TimeSlotTemplateDirective] });
|
|
77
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SchedulerModule, providers: [
|
|
78
|
-
ToolbarService,
|
|
79
|
-
ViewContextService,
|
|
80
|
-
ViewStateService,
|
|
81
|
-
EditService,
|
|
82
|
-
IconsService,
|
|
83
|
-
PopupService,
|
|
84
|
-
ResizeBatchService,
|
|
85
|
-
// DateInputsModule providers
|
|
86
|
-
CalendarDOMService,
|
|
87
|
-
CenturyViewService,
|
|
88
|
-
DecadeViewService,
|
|
89
|
-
MonthViewService,
|
|
90
|
-
YearViewService,
|
|
91
|
-
NavigationService,
|
|
92
|
-
TimePickerDOMService,
|
|
93
|
-
HoursService,
|
|
94
|
-
MinutesService,
|
|
95
|
-
SecondsService,
|
|
96
|
-
MillisecondsService,
|
|
97
|
-
DayPeriodService,
|
|
98
|
-
// DropDownsModule providers
|
|
99
|
-
DialogContainerService,
|
|
100
|
-
DialogService,
|
|
101
|
-
WindowService,
|
|
102
|
-
WindowContainerService,
|
|
103
|
-
], imports: [i1.SchedulerComponent, i7.PDFCommandDirective, i9.AgendaViewComponent, i10.DayViewComponent, i11.MonthViewComponent, i12.MultiDayViewComponent, i13.MultiWeekViewComponent, i14.TimelineMonthViewComponent, i15.TimelineViewComponent, i16.TimelineWeekViewComponent, i17.WeekViewComponent, i18.WorkWeekViewComponent, i19.YearViewComponent, i21.RecurrenceEditorComponent, i22.TimeZoneEditorComponent, i23.ToolbarNavigationComponent, i25.ToolbarViewSelectorComponent] });
|
|
104
|
-
}
|
|
105
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SchedulerModule, decorators: [{
|
|
106
|
-
type: NgModule,
|
|
107
|
-
args: [{
|
|
108
|
-
imports: [...KENDO_SCHEDULER],
|
|
109
|
-
exports: [...KENDO_SCHEDULER],
|
|
110
|
-
providers: [
|
|
111
|
-
ToolbarService,
|
|
112
|
-
ViewContextService,
|
|
113
|
-
ViewStateService,
|
|
114
|
-
EditService,
|
|
115
|
-
IconsService,
|
|
116
|
-
PopupService,
|
|
117
|
-
ResizeBatchService,
|
|
118
|
-
// DateInputsModule providers
|
|
119
|
-
CalendarDOMService,
|
|
120
|
-
CenturyViewService,
|
|
121
|
-
DecadeViewService,
|
|
122
|
-
MonthViewService,
|
|
123
|
-
YearViewService,
|
|
124
|
-
NavigationService,
|
|
125
|
-
TimePickerDOMService,
|
|
126
|
-
HoursService,
|
|
127
|
-
MinutesService,
|
|
128
|
-
SecondsService,
|
|
129
|
-
MillisecondsService,
|
|
130
|
-
DayPeriodService,
|
|
131
|
-
// DropDownsModule providers
|
|
132
|
-
DialogContainerService,
|
|
133
|
-
DialogService,
|
|
134
|
-
WindowService,
|
|
135
|
-
WindowContainerService,
|
|
136
|
-
],
|
|
137
|
-
}]
|
|
138
|
-
}] });
|
|
@@ -1,391 +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 { ChangeDetectionStrategy, Component, HostBinding, Input, ChangeDetectorRef, ViewChild } from '@angular/core';
|
|
6
|
-
import { PopupService } from '@progress/kendo-angular-popup';
|
|
7
|
-
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
8
|
-
import { ToolbarService } from './toolbar.service';
|
|
9
|
-
import { CalendarComponent, CalendarCustomMessagesComponent } from '@progress/kendo-angular-dateinputs';
|
|
10
|
-
import { ViewContextService } from '../views/view-context.service';
|
|
11
|
-
import { isDocumentAvailable } from '@progress/kendo-angular-common';
|
|
12
|
-
import { caretAltRightIcon, caretAltLeftIcon, calendarIcon } from '@progress/kendo-svg-icons';
|
|
13
|
-
import { AsyncPipe } from '@angular/common';
|
|
14
|
-
import { FocusableDirective } from '../navigation/focusable.directive';
|
|
15
|
-
import { ButtonComponent } from '@progress/kendo-angular-buttons';
|
|
16
|
-
import * as i0 from "@angular/core";
|
|
17
|
-
import * as i1 from "@progress/kendo-angular-popup";
|
|
18
|
-
import * as i2 from "./toolbar.service";
|
|
19
|
-
import * as i3 from "@progress/kendo-angular-l10n";
|
|
20
|
-
import * as i4 from "../views/view-context.service";
|
|
21
|
-
const iconsMap = { caretAltLeftIcon, caretAltRightIcon, calendarIcon };
|
|
22
|
-
/**
|
|
23
|
-
* A toolbar component that contains controls for date navigation
|
|
24
|
-
* ([see example](slug:toolbar_scheduler#toc-including-the-built-in-components)).
|
|
25
|
-
*
|
|
26
|
-
* To render the **Previous**, **Today**, **Next**, and **Date picker** buttons, include this component in the [toolbar template](slug:api_scheduler_toolbartemplatedirective).
|
|
27
|
-
*
|
|
28
|
-
* @example
|
|
29
|
-
* ```html
|
|
30
|
-
* <kendo-scheduler>
|
|
31
|
-
* <ng-template kendoSchedulerToolbarTemplate>
|
|
32
|
-
* <span class="custom-toolbar">
|
|
33
|
-
* <div kendoSchedulerToolbarNavigation></div>
|
|
34
|
-
* </span>
|
|
35
|
-
* </ng-template>
|
|
36
|
-
* </kendo-scheduler>
|
|
37
|
-
* ```
|
|
38
|
-
*/
|
|
39
|
-
export class ToolbarNavigationComponent {
|
|
40
|
-
popupService;
|
|
41
|
-
toolbarService;
|
|
42
|
-
localization;
|
|
43
|
-
cd;
|
|
44
|
-
viewContext;
|
|
45
|
-
set calendar(calendar) {
|
|
46
|
-
if (calendar) {
|
|
47
|
-
calendar.focus();
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
hostClass = true;
|
|
51
|
-
/**
|
|
52
|
-
* @hidden
|
|
53
|
-
*/
|
|
54
|
-
min;
|
|
55
|
-
/**
|
|
56
|
-
* @hidden
|
|
57
|
-
*/
|
|
58
|
-
max;
|
|
59
|
-
/**
|
|
60
|
-
* @hidden
|
|
61
|
-
*/
|
|
62
|
-
get todayText() {
|
|
63
|
-
return this.localization.get('today');
|
|
64
|
-
}
|
|
65
|
-
/**
|
|
66
|
-
* Sets the [`activeView`](slug:api_dateinputs_calendarcomponent#toc-activeview) of the Calendar in the navigation component.
|
|
67
|
-
*
|
|
68
|
-
* @default month
|
|
69
|
-
*/
|
|
70
|
-
activeView = 'month';
|
|
71
|
-
/**
|
|
72
|
-
* Sets the [`bottomView`](slug:api_dateinputs_calendarcomponent#toc-bottomview) of the Calendar in the navigation component.
|
|
73
|
-
*
|
|
74
|
-
* @default month
|
|
75
|
-
*/
|
|
76
|
-
bottomView = 'month';
|
|
77
|
-
/**
|
|
78
|
-
* @hidden
|
|
79
|
-
*/
|
|
80
|
-
get calendarTodayText() {
|
|
81
|
-
return this.localization.get('calendarToday');
|
|
82
|
-
}
|
|
83
|
-
/**
|
|
84
|
-
* @hidden
|
|
85
|
-
*/
|
|
86
|
-
get nextText() {
|
|
87
|
-
return this.localization.get('nextTitle');
|
|
88
|
-
}
|
|
89
|
-
/**
|
|
90
|
-
* @hidden
|
|
91
|
-
*/
|
|
92
|
-
get previousText() {
|
|
93
|
-
return this.localization.get('previousTitle');
|
|
94
|
-
}
|
|
95
|
-
/**
|
|
96
|
-
* @hidden
|
|
97
|
-
*/
|
|
98
|
-
get ctx() {
|
|
99
|
-
return this.toolbarService.context;
|
|
100
|
-
}
|
|
101
|
-
/**
|
|
102
|
-
* @hidden
|
|
103
|
-
*/
|
|
104
|
-
dateRangeText = { short: '', long: '', current: '' };
|
|
105
|
-
/**
|
|
106
|
-
* @hidden
|
|
107
|
-
*/
|
|
108
|
-
svgIcon(name) {
|
|
109
|
-
return iconsMap[name];
|
|
110
|
-
}
|
|
111
|
-
popupRef;
|
|
112
|
-
subs;
|
|
113
|
-
isMouseDown = false;
|
|
114
|
-
constructor(popupService, toolbarService, localization, cd, viewContext) {
|
|
115
|
-
this.popupService = popupService;
|
|
116
|
-
this.toolbarService = toolbarService;
|
|
117
|
-
this.localization = localization;
|
|
118
|
-
this.cd = cd;
|
|
119
|
-
this.viewContext = viewContext;
|
|
120
|
-
this.subs = this.localization.changes.subscribe(() => {
|
|
121
|
-
cd.markForCheck();
|
|
122
|
-
});
|
|
123
|
-
}
|
|
124
|
-
/**
|
|
125
|
-
* @hidden
|
|
126
|
-
*/
|
|
127
|
-
onBlur() {
|
|
128
|
-
if (!this.isMouseDown) {
|
|
129
|
-
this.closePopup();
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
/**
|
|
133
|
-
* @hidden
|
|
134
|
-
*/
|
|
135
|
-
onMouseDown() {
|
|
136
|
-
this.isMouseDown = true;
|
|
137
|
-
}
|
|
138
|
-
ngOnInit() {
|
|
139
|
-
if (!isDocumentAvailable()) {
|
|
140
|
-
return;
|
|
141
|
-
}
|
|
142
|
-
this.subs.add(this.ctx.dateRange.subscribe(res => {
|
|
143
|
-
this.dateRangeText.short = res?.shortText;
|
|
144
|
-
this.dateRangeText.long = res?.text;
|
|
145
|
-
this.setDateRangeText();
|
|
146
|
-
}));
|
|
147
|
-
this.subs.add(this.viewContext.resize.subscribe(() => {
|
|
148
|
-
this.setDateRangeText();
|
|
149
|
-
}));
|
|
150
|
-
}
|
|
151
|
-
ngOnDestroy() {
|
|
152
|
-
this.subs.unsubscribe();
|
|
153
|
-
this.closePopup();
|
|
154
|
-
}
|
|
155
|
-
/**
|
|
156
|
-
* @hidden
|
|
157
|
-
*/
|
|
158
|
-
toggleSelectedDate(anchor, template) {
|
|
159
|
-
if (this.popupRef) {
|
|
160
|
-
this.closePopup();
|
|
161
|
-
}
|
|
162
|
-
else {
|
|
163
|
-
const popupSettings = {
|
|
164
|
-
anchor: anchor,
|
|
165
|
-
content: template
|
|
166
|
-
};
|
|
167
|
-
if (this.localization.rtl) {
|
|
168
|
-
popupSettings.popupClass = 'k-rtl';
|
|
169
|
-
}
|
|
170
|
-
this.popupRef = this.popupService.open(popupSettings);
|
|
171
|
-
}
|
|
172
|
-
this.isMouseDown = false;
|
|
173
|
-
return false;
|
|
174
|
-
}
|
|
175
|
-
/**
|
|
176
|
-
* @hidden
|
|
177
|
-
*/
|
|
178
|
-
selectDate(value) {
|
|
179
|
-
this.closePopup();
|
|
180
|
-
this.toolbarService.navigate({
|
|
181
|
-
type: 'select-date',
|
|
182
|
-
date: value
|
|
183
|
-
});
|
|
184
|
-
}
|
|
185
|
-
/**
|
|
186
|
-
* @hidden
|
|
187
|
-
*/
|
|
188
|
-
prevClick() {
|
|
189
|
-
this.toolbarService.navigate({
|
|
190
|
-
type: 'prev'
|
|
191
|
-
});
|
|
192
|
-
return false;
|
|
193
|
-
}
|
|
194
|
-
/**
|
|
195
|
-
* @hidden
|
|
196
|
-
*/
|
|
197
|
-
nextClick() {
|
|
198
|
-
this.toolbarService.navigate({
|
|
199
|
-
type: 'next'
|
|
200
|
-
});
|
|
201
|
-
return false;
|
|
202
|
-
}
|
|
203
|
-
/**
|
|
204
|
-
* @hidden
|
|
205
|
-
*/
|
|
206
|
-
todayClick() {
|
|
207
|
-
this.toolbarService.navigate({
|
|
208
|
-
type: 'today'
|
|
209
|
-
});
|
|
210
|
-
return false;
|
|
211
|
-
}
|
|
212
|
-
closePopup() {
|
|
213
|
-
if (this.popupRef) {
|
|
214
|
-
this.popupRef.close();
|
|
215
|
-
this.popupRef = null;
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
setDateRangeText() {
|
|
219
|
-
const isDesktop = window.matchMedia('(min-width: 1024px)').matches;
|
|
220
|
-
this.dateRangeText.current = isDesktop ? this.dateRangeText.long : this.dateRangeText.short;
|
|
221
|
-
this.cd.detectChanges();
|
|
222
|
-
}
|
|
223
|
-
get arrowIcons() {
|
|
224
|
-
return !this.localization.rtl ? ['caret-alt-left', 'caret-alt-right'] : ['caret-alt-right', 'caret-alt-left'];
|
|
225
|
-
}
|
|
226
|
-
get arrowSVGIcons() {
|
|
227
|
-
return !this.localization.rtl ? ['caretAltLeftIcon', 'caretAltRightIcon'] : ['caretAltRightIcon', 'caretAltLeftIcon'];
|
|
228
|
-
}
|
|
229
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ToolbarNavigationComponent, deps: [{ token: i1.PopupService }, { token: i2.ToolbarService }, { token: i3.LocalizationService }, { token: i0.ChangeDetectorRef }, { token: i4.ViewContextService }], target: i0.ɵɵFactoryTarget.Component });
|
|
230
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: ToolbarNavigationComponent, isStandalone: true, selector: "[kendoSchedulerToolbarNavigation]", inputs: { min: "min", max: "max", activeView: "activeView", bottomView: "bottomView" }, host: { properties: { "class.k-toolbar-group": "this.hostClass" } }, providers: [
|
|
231
|
-
PopupService
|
|
232
|
-
], viewQueries: [{ propertyName: "calendar", first: true, predicate: ["calendar"], descendants: true }], ngImport: i0, template: `
|
|
233
|
-
<span class="k-scheduler-navigation k-button-group k-button-group-solid" role="group">
|
|
234
|
-
<button kendoButton
|
|
235
|
-
(click)="todayClick()"
|
|
236
|
-
class="k-nav-today"
|
|
237
|
-
[attr.title]="todayText"
|
|
238
|
-
[kendoSchedulerFocusIndex]="0"
|
|
239
|
-
containerType="toolbar">
|
|
240
|
-
{{todayText}}
|
|
241
|
-
</button>
|
|
242
|
-
<button kendoButton
|
|
243
|
-
(click)="prevClick()"
|
|
244
|
-
class="k-nav-prev"
|
|
245
|
-
[icon]="arrowIcons[0]"
|
|
246
|
-
[svgIcon]="svgIcon(arrowSVGIcons[0])"
|
|
247
|
-
[attr.title]="previousText"
|
|
248
|
-
[attr.aria-label]="previousText"
|
|
249
|
-
[kendoSchedulerFocusIndex]="0"
|
|
250
|
-
containerType="toolbar">
|
|
251
|
-
</button>
|
|
252
|
-
<button kendoButton
|
|
253
|
-
(click)="nextClick()"
|
|
254
|
-
type="button"
|
|
255
|
-
class="k-nav-next"
|
|
256
|
-
[icon]="arrowIcons[1]"
|
|
257
|
-
[svgIcon]="svgIcon(arrowSVGIcons[1])"
|
|
258
|
-
[attr.title]="nextText"
|
|
259
|
-
[attr.aria-label]="nextText"
|
|
260
|
-
[kendoSchedulerFocusIndex]="0"
|
|
261
|
-
containerType="toolbar">
|
|
262
|
-
</button>
|
|
263
|
-
</span>
|
|
264
|
-
|
|
265
|
-
<button
|
|
266
|
-
#anchor
|
|
267
|
-
kendoButton
|
|
268
|
-
type="button"
|
|
269
|
-
icon="calendar"
|
|
270
|
-
[svgIcon]="svgIcon('calendarIcon')"
|
|
271
|
-
fillMode="flat"
|
|
272
|
-
(mousedown)="onMouseDown()"
|
|
273
|
-
(mouseup)="toggleSelectedDate({ nativeElement: anchor.element }, template)"
|
|
274
|
-
(keydown.enter)="toggleSelectedDate({ nativeElement: anchor.element }, template)"
|
|
275
|
-
(keydown.alt.arrowdown)="toggleSelectedDate({ nativeElement: anchor.element }, template)"
|
|
276
|
-
role="button"
|
|
277
|
-
class="k-nav-current"
|
|
278
|
-
[attr.aria-live]="'polite'"
|
|
279
|
-
[kendoSchedulerFocusIndex]="0"
|
|
280
|
-
containerType="toolbar">
|
|
281
|
-
<span>{{ dateRangeText?.current }}</span>
|
|
282
|
-
</button>
|
|
283
|
-
|
|
284
|
-
<ng-template #template>
|
|
285
|
-
<kendo-calendar
|
|
286
|
-
#calendar
|
|
287
|
-
(blur)="onBlur()"
|
|
288
|
-
[activeView]="activeView"
|
|
289
|
-
[bottomView]="bottomView"
|
|
290
|
-
(keydown.escape)="toggleSelectedDate({ nativeElement: anchor }, template); anchor.focus();"
|
|
291
|
-
(valueChange)="selectDate($event)"
|
|
292
|
-
[value]="ctx.selectedDate | async" [min]="min" [max]="max">
|
|
293
|
-
<kendo-calendar-messages [today]="calendarTodayText">
|
|
294
|
-
</kendo-calendar-messages>
|
|
295
|
-
</kendo-calendar>
|
|
296
|
-
</ng-template>
|
|
297
|
-
`, isInline: true, dependencies: [{ 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: FocusableDirective, selector: "[kendoSchedulerFocusIndex]", inputs: ["kendoSchedulerFocusIndex", "containerType"] }, { kind: "component", type: CalendarComponent, selector: "kendo-calendar", inputs: ["showOtherMonthDays", "id", "focusedDate", "min", "max", "rangeValidation", "weekDaysFormat", "footer", "selection", "allowReverse", "value", "disabled", "tabindex", "tabIndex", "disabledDates", "navigation", "activeView", "bottomView", "topView", "type", "animateNavigation", "weekNumber", "cellTemplate", "monthCellTemplate", "yearCellTemplate", "decadeCellTemplate", "centuryCellTemplate", "weekNumberTemplate", "headerTitleTemplate", "headerTemplate", "footerTemplate", "navigationItemTemplate", "size", "activeRangeEnd"], outputs: ["closePopup", "activeViewChange", "navigate", "activeViewDateChange", "blur", "focus", "valueChange"], exportAs: ["kendo-calendar"] }, { kind: "component", type: CalendarCustomMessagesComponent, selector: "kendo-calendar-messages" }, { kind: "pipe", type: AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
298
|
-
}
|
|
299
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ToolbarNavigationComponent, decorators: [{
|
|
300
|
-
type: Component,
|
|
301
|
-
args: [{
|
|
302
|
-
// eslint-disable-next-line @angular-eslint/component-selector
|
|
303
|
-
selector: '[kendoSchedulerToolbarNavigation]',
|
|
304
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
305
|
-
providers: [
|
|
306
|
-
PopupService
|
|
307
|
-
],
|
|
308
|
-
template: `
|
|
309
|
-
<span class="k-scheduler-navigation k-button-group k-button-group-solid" role="group">
|
|
310
|
-
<button kendoButton
|
|
311
|
-
(click)="todayClick()"
|
|
312
|
-
class="k-nav-today"
|
|
313
|
-
[attr.title]="todayText"
|
|
314
|
-
[kendoSchedulerFocusIndex]="0"
|
|
315
|
-
containerType="toolbar">
|
|
316
|
-
{{todayText}}
|
|
317
|
-
</button>
|
|
318
|
-
<button kendoButton
|
|
319
|
-
(click)="prevClick()"
|
|
320
|
-
class="k-nav-prev"
|
|
321
|
-
[icon]="arrowIcons[0]"
|
|
322
|
-
[svgIcon]="svgIcon(arrowSVGIcons[0])"
|
|
323
|
-
[attr.title]="previousText"
|
|
324
|
-
[attr.aria-label]="previousText"
|
|
325
|
-
[kendoSchedulerFocusIndex]="0"
|
|
326
|
-
containerType="toolbar">
|
|
327
|
-
</button>
|
|
328
|
-
<button kendoButton
|
|
329
|
-
(click)="nextClick()"
|
|
330
|
-
type="button"
|
|
331
|
-
class="k-nav-next"
|
|
332
|
-
[icon]="arrowIcons[1]"
|
|
333
|
-
[svgIcon]="svgIcon(arrowSVGIcons[1])"
|
|
334
|
-
[attr.title]="nextText"
|
|
335
|
-
[attr.aria-label]="nextText"
|
|
336
|
-
[kendoSchedulerFocusIndex]="0"
|
|
337
|
-
containerType="toolbar">
|
|
338
|
-
</button>
|
|
339
|
-
</span>
|
|
340
|
-
|
|
341
|
-
<button
|
|
342
|
-
#anchor
|
|
343
|
-
kendoButton
|
|
344
|
-
type="button"
|
|
345
|
-
icon="calendar"
|
|
346
|
-
[svgIcon]="svgIcon('calendarIcon')"
|
|
347
|
-
fillMode="flat"
|
|
348
|
-
(mousedown)="onMouseDown()"
|
|
349
|
-
(mouseup)="toggleSelectedDate({ nativeElement: anchor.element }, template)"
|
|
350
|
-
(keydown.enter)="toggleSelectedDate({ nativeElement: anchor.element }, template)"
|
|
351
|
-
(keydown.alt.arrowdown)="toggleSelectedDate({ nativeElement: anchor.element }, template)"
|
|
352
|
-
role="button"
|
|
353
|
-
class="k-nav-current"
|
|
354
|
-
[attr.aria-live]="'polite'"
|
|
355
|
-
[kendoSchedulerFocusIndex]="0"
|
|
356
|
-
containerType="toolbar">
|
|
357
|
-
<span>{{ dateRangeText?.current }}</span>
|
|
358
|
-
</button>
|
|
359
|
-
|
|
360
|
-
<ng-template #template>
|
|
361
|
-
<kendo-calendar
|
|
362
|
-
#calendar
|
|
363
|
-
(blur)="onBlur()"
|
|
364
|
-
[activeView]="activeView"
|
|
365
|
-
[bottomView]="bottomView"
|
|
366
|
-
(keydown.escape)="toggleSelectedDate({ nativeElement: anchor }, template); anchor.focus();"
|
|
367
|
-
(valueChange)="selectDate($event)"
|
|
368
|
-
[value]="ctx.selectedDate | async" [min]="min" [max]="max">
|
|
369
|
-
<kendo-calendar-messages [today]="calendarTodayText">
|
|
370
|
-
</kendo-calendar-messages>
|
|
371
|
-
</kendo-calendar>
|
|
372
|
-
</ng-template>
|
|
373
|
-
`,
|
|
374
|
-
standalone: true,
|
|
375
|
-
imports: [ButtonComponent, FocusableDirective, CalendarComponent, CalendarCustomMessagesComponent, AsyncPipe]
|
|
376
|
-
}]
|
|
377
|
-
}], ctorParameters: () => [{ type: i1.PopupService }, { type: i2.ToolbarService }, { type: i3.LocalizationService }, { type: i0.ChangeDetectorRef }, { type: i4.ViewContextService }], propDecorators: { calendar: [{
|
|
378
|
-
type: ViewChild,
|
|
379
|
-
args: ['calendar', { static: false }]
|
|
380
|
-
}], hostClass: [{
|
|
381
|
-
type: HostBinding,
|
|
382
|
-
args: ['class.k-toolbar-group']
|
|
383
|
-
}], min: [{
|
|
384
|
-
type: Input
|
|
385
|
-
}], max: [{
|
|
386
|
-
type: Input
|
|
387
|
-
}], activeView: [{
|
|
388
|
-
type: Input
|
|
389
|
-
}], bottomView: [{
|
|
390
|
-
type: Input
|
|
391
|
-
}] } });
|
|
@@ -1,5 +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
|
-
export {};
|
|
@@ -1,50 +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 { Directive, Optional, TemplateRef } from '@angular/core';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
/**
|
|
8
|
-
* Represents the toolbar template of the Scheduler. To define a toolbar template, nest an `<ng-template kendoSchedulerToolbarTemplate>` tag inside the `<kendo-scheduler>`. For more information and examples, see [customizing the toolbar](slug:toolbar_scheduler) article.
|
|
9
|
-
*
|
|
10
|
-
* The template context provides the following variables:
|
|
11
|
-
* * `selectedDate`—The currently selected date.
|
|
12
|
-
* * `dateRange`—The currently selected [`DateRange`](slug:api_scheduler_daterange).
|
|
13
|
-
* * `views`—An array of [`SchedulerView`](slug:api_scheduler_schedulerview) instances with the available views.
|
|
14
|
-
* * `selectedView`—The currently selected [`SchedulerView`](slug:api_scheduler_schedulerview).
|
|
15
|
-
*
|
|
16
|
-
* You can declare either of the following built-in navigation components in the toolbar template:
|
|
17
|
-
* * `kendoSchedulerToolbarNavigation`—Renders navigation buttons, a calendar, and a date-range label.
|
|
18
|
-
* * `kendoSchedulerToolbarViewSelector`—Renders the buttons for selecting the view.
|
|
19
|
-
*
|
|
20
|
-
* To emit navigation events, components inside the toolbar can inject the [`ToolbarService`](slug:api_scheduler_toolbarservice).
|
|
21
|
-
*
|
|
22
|
-
* @example
|
|
23
|
-
* ```html
|
|
24
|
-
* <kendo-scheduler>
|
|
25
|
-
* <ng-template kendoSchedulerToolbarTemplate let-selectedDate="selectedDate">
|
|
26
|
-
* <div class="custom-toolbar">
|
|
27
|
-
* <span>Selected Date: {{ selectedDate | date: 'longDate' }}</span>
|
|
28
|
-
* <button kendoButton (click)="navigateToToday()">Today</button>
|
|
29
|
-
* </div>
|
|
30
|
-
* </ng-template>
|
|
31
|
-
* </kendo-scheduler>
|
|
32
|
-
* ```
|
|
33
|
-
*/
|
|
34
|
-
export class ToolbarTemplateDirective {
|
|
35
|
-
templateRef;
|
|
36
|
-
constructor(templateRef) {
|
|
37
|
-
this.templateRef = templateRef;
|
|
38
|
-
}
|
|
39
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ToolbarTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
40
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: ToolbarTemplateDirective, isStandalone: true, selector: "[kendoSchedulerToolbarTemplate]", ngImport: i0 });
|
|
41
|
-
}
|
|
42
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ToolbarTemplateDirective, decorators: [{
|
|
43
|
-
type: Directive,
|
|
44
|
-
args: [{
|
|
45
|
-
selector: '[kendoSchedulerToolbarTemplate]',
|
|
46
|
-
standalone: true
|
|
47
|
-
}]
|
|
48
|
-
}], ctorParameters: () => [{ type: i0.TemplateRef, decorators: [{
|
|
49
|
-
type: Optional
|
|
50
|
-
}] }] });
|