@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.
Files changed (197) hide show
  1. package/editing/recurrence/localization/messages.d.ts +1 -1
  2. package/editing/resource-editor-base.d.ts +1 -1
  3. package/editing-directives/editing-directive-base.d.ts +1 -1
  4. package/fesm2022/progress-kendo-angular-scheduler.mjs +313 -313
  5. package/localization/messages.d.ts +1 -1
  6. package/package.json +20 -28
  7. package/schematics/ngAdd/index.js +3 -3
  8. package/views/common/base-view.d.ts +1 -1
  9. package/views/common/configuration-view-base.d.ts +1 -1
  10. package/views/day-time/day-time-view-base.d.ts +1 -1
  11. package/views/day-time/day-time-view.component.d.ts +1 -1
  12. package/views/multi-day/multi-day-view-base.d.ts +1 -1
  13. package/views/timeline/timeline-base.d.ts +1 -1
  14. package/views/view-items/base-slot.directive.d.ts +1 -1
  15. package/views/view-items/base-view-item.d.ts +1 -1
  16. package/esm2022/common/constants.mjs +0 -8
  17. package/esm2022/common/default-model-fields.mjs +0 -20
  18. package/esm2022/common/dom-queries.mjs +0 -107
  19. package/esm2022/common/modifiers.mjs +0 -31
  20. package/esm2022/common/util.mjs +0 -227
  21. package/esm2022/data-binding.directive.mjs +0 -162
  22. package/esm2022/directives.mjs +0 -136
  23. package/esm2022/editing/date-time-picker.component.mjs +0 -190
  24. package/esm2022/editing/dialogs.service.mjs +0 -96
  25. package/esm2022/editing/edit-dialog-template.directive.mjs +0 -53
  26. package/esm2022/editing/edit-dialog.component.mjs +0 -679
  27. package/esm2022/editing/edit.service.mjs +0 -107
  28. package/esm2022/editing/local-data-changes.service.mjs +0 -18
  29. package/esm2022/editing/recurrence/end-rule-radio-button.directive.mjs +0 -77
  30. package/esm2022/editing/recurrence/localization/custom-messages.component.mjs +0 -44
  31. package/esm2022/editing/recurrence/localization/localized-messages.directive.mjs +0 -39
  32. package/esm2022/editing/recurrence/localization/messages.mjs +0 -239
  33. package/esm2022/editing/recurrence/localization/recurrence-localization.service.mjs +0 -47
  34. package/esm2022/editing/recurrence/recurrence-editor.component.mjs +0 -497
  35. package/esm2022/editing/recurrence/recurrence-end-rule-editor.component.mjs +0 -334
  36. package/esm2022/editing/recurrence/recurrence-frequency-editor.component.mjs +0 -105
  37. package/esm2022/editing/recurrence/recurrence-interval-editor.component.mjs +0 -169
  38. package/esm2022/editing/recurrence/recurrence-monthly-yearly-editor.component.mjs +0 -468
  39. package/esm2022/editing/recurrence/recurrence-weekday-rule-editor.component.mjs +0 -138
  40. package/esm2022/editing/recurrence/recurrence.service.mjs +0 -254
  41. package/esm2022/editing/recurrence/repeat-on-radio-button.directive.mjs +0 -81
  42. package/esm2022/editing/resource-editor-base.mjs +0 -59
  43. package/esm2022/editing/resource-multiple-editor.component.mjs +0 -101
  44. package/esm2022/editing/resource-single-editor.component.mjs +0 -82
  45. package/esm2022/editing/timezone-editor.component.mjs +0 -193
  46. package/esm2022/editing-directives/base-edit.service.mjs +0 -320
  47. package/esm2022/editing-directives/edit-service.interface.mjs +0 -5
  48. package/esm2022/editing-directives/editing-directive-base.mjs +0 -242
  49. package/esm2022/editing-directives/local-edit.service.mjs +0 -122
  50. package/esm2022/editing-directives/reactive-editing.directive.mjs +0 -132
  51. package/esm2022/editing-directives/utils.mjs +0 -107
  52. package/esm2022/events/add-event.mjs +0 -26
  53. package/esm2022/events/cancel-event.mjs +0 -14
  54. package/esm2022/events/create-event.mjs +0 -40
  55. package/esm2022/events/date-change-event.mjs +0 -29
  56. package/esm2022/events/drag-end-event.mjs +0 -46
  57. package/esm2022/events/drag-event.mjs +0 -54
  58. package/esm2022/events/drag-start-event.mjs +0 -30
  59. package/esm2022/events/edit-event-base.mjs +0 -32
  60. package/esm2022/events/edit-event.mjs +0 -30
  61. package/esm2022/events/event-click-event.mjs +0 -32
  62. package/esm2022/events/event-keydown-event.mjs +0 -28
  63. package/esm2022/events/more-events-click.mjs +0 -24
  64. package/esm2022/events/navigate-event.mjs +0 -26
  65. package/esm2022/events/preventable-event.mjs +0 -28
  66. package/esm2022/events/remove-event.mjs +0 -30
  67. package/esm2022/events/resize-end-event.mjs +0 -38
  68. package/esm2022/events/resize-event.mjs +0 -46
  69. package/esm2022/events/resize-start-event.mjs +0 -30
  70. package/esm2022/events/save-event.mjs +0 -18
  71. package/esm2022/events/slot-click-event.mjs +0 -44
  72. package/esm2022/events/slot-drag-end-event.mjs +0 -10
  73. package/esm2022/events/slot-drag-event.mjs +0 -40
  74. package/esm2022/events/slot-drag-start-event.mjs +0 -44
  75. package/esm2022/events/view-event-map.mjs +0 -35
  76. package/esm2022/events.mjs +0 -27
  77. package/esm2022/index.mjs +0 -83
  78. package/esm2022/loading.component.mjs +0 -52
  79. package/esm2022/localization/custom-messages.component.mjs +0 -56
  80. package/esm2022/localization/localized-messages.directive.mjs +0 -39
  81. package/esm2022/localization/messages.mjs +0 -614
  82. package/esm2022/localization/scheduler-localization.service.mjs +0 -31
  83. package/esm2022/navigation/focus-position.interface.mjs +0 -5
  84. package/esm2022/navigation/focus.service.mjs +0 -202
  85. package/esm2022/navigation/focusable-element.interface.mjs +0 -5
  86. package/esm2022/navigation/focusable.directive.mjs +0 -98
  87. package/esm2022/navigation/shortcuts.directive.mjs +0 -239
  88. package/esm2022/navigation.mjs +0 -6
  89. package/esm2022/package-metadata.mjs +0 -16
  90. package/esm2022/pdf/pdf-command.directive.mjs +0 -96
  91. package/esm2022/pdf/pdf-export-event.mjs +0 -10
  92. package/esm2022/pdf/pdf.component.mjs +0 -241
  93. package/esm2022/pdf/pdf.module.mjs +0 -42
  94. package/esm2022/pdf/pdf.service.mjs +0 -36
  95. package/esm2022/progress-kendo-angular-scheduler.mjs +0 -8
  96. package/esm2022/scheduler.component.mjs +0 -1981
  97. package/esm2022/scheduler.module.mjs +0 -138
  98. package/esm2022/toolbar/navigation.component.mjs +0 -391
  99. package/esm2022/toolbar/toolbar-context.mjs +0 -5
  100. package/esm2022/toolbar/toolbar-template.directive.mjs +0 -50
  101. package/esm2022/toolbar/toolbar.component.mjs +0 -168
  102. package/esm2022/toolbar/toolbar.service.mjs +0 -46
  103. package/esm2022/toolbar/view-selector.component.mjs +0 -181
  104. package/esm2022/types/actions.mjs +0 -5
  105. package/esm2022/types/create-form-group-args.interface.mjs +0 -5
  106. package/esm2022/types/crud-operation.enum.mjs +0 -18
  107. package/esm2022/types/current-time-settings.interface.mjs +0 -5
  108. package/esm2022/types/date-range.interface.mjs +0 -5
  109. package/esm2022/types/datepicker-options.interface.mjs +0 -5
  110. package/esm2022/types/edit-event-args.interface.mjs +0 -5
  111. package/esm2022/types/edit-mode.enum.mjs +0 -23
  112. package/esm2022/types/editable-settings.interface.mjs +0 -5
  113. package/esm2022/types/event-style-args.interface.mjs +0 -5
  114. package/esm2022/types/focusable-container.mjs +0 -5
  115. package/esm2022/types/group.interface.mjs +0 -5
  116. package/esm2022/types/numeric-options.interface.mjs +0 -5
  117. package/esm2022/types/ongoing-events-settings.interface.mjs +0 -5
  118. package/esm2022/types/resource.interface.mjs +0 -5
  119. package/esm2022/types/scheduler-event.mjs +0 -5
  120. package/esm2022/types/scheduler-model-fields.interface.mjs +0 -5
  121. package/esm2022/types/scheduler-slot.interface.mjs +0 -5
  122. package/esm2022/types/scheduler-view.mjs +0 -9
  123. package/esm2022/types/slot-class-args.interface.mjs +0 -5
  124. package/esm2022/types/slot-selection.mjs +0 -35
  125. package/esm2022/types/view-item.interface.mjs +0 -5
  126. package/esm2022/types.mjs +0 -12
  127. package/esm2022/views/agenda/agenda-header-item.component.mjs +0 -85
  128. package/esm2022/views/agenda/agenda-header.component.mjs +0 -75
  129. package/esm2022/views/agenda/agenda-task-item.component.mjs +0 -137
  130. package/esm2022/views/agenda/agenda-view-internal.component.mjs +0 -424
  131. package/esm2022/views/agenda/agenda-view-list.component.mjs +0 -256
  132. package/esm2022/views/agenda/agenda-view.component.mjs +0 -130
  133. package/esm2022/views/agenda/tasks.collection.mjs +0 -96
  134. package/esm2022/views/agenda/utils.mjs +0 -176
  135. package/esm2022/views/common/base-view.mjs +0 -1099
  136. package/esm2022/views/common/configuration-view-base.mjs +0 -164
  137. package/esm2022/views/common/dom-events.service.mjs +0 -22
  138. package/esm2022/views/common/hint-container.component.mjs +0 -41
  139. package/esm2022/views/common/repeat.pipe.mjs +0 -36
  140. package/esm2022/views/common/resize-hint.component.mjs +0 -97
  141. package/esm2022/views/common/resource-iterator.pipe.mjs +0 -49
  142. package/esm2022/views/common/scheduler-task.mjs +0 -5
  143. package/esm2022/views/common/slot-selectable.directive.mjs +0 -137
  144. package/esm2022/views/common/view-footer.component.mjs +0 -103
  145. package/esm2022/views/common/work-hours-footer.directive.mjs +0 -45
  146. package/esm2022/views/constants.mjs +0 -31
  147. package/esm2022/views/day-time/day-time-slot.service.mjs +0 -633
  148. package/esm2022/views/day-time/day-time-view-base.mjs +0 -244
  149. package/esm2022/views/day-time/day-time-view-item.component.mjs +0 -216
  150. package/esm2022/views/day-time/day-time-view.component.mjs +0 -437
  151. package/esm2022/views/day-time/event-slot.directive.mjs +0 -138
  152. package/esm2022/views/day-time/utils.mjs +0 -32
  153. package/esm2022/views/month/month-slot.component.mjs +0 -166
  154. package/esm2022/views/month/month-slot.service.mjs +0 -404
  155. package/esm2022/views/month/month-view-item.component.mjs +0 -161
  156. package/esm2022/views/month/month-view-renderer.component.mjs +0 -683
  157. package/esm2022/views/month/month-view.component.mjs +0 -203
  158. package/esm2022/views/month/multi-week-view.component.mjs +0 -202
  159. package/esm2022/views/month/utils.mjs +0 -107
  160. package/esm2022/views/multi-day/day-view.component.mjs +0 -186
  161. package/esm2022/views/multi-day/multi-day-view-base.mjs +0 -55
  162. package/esm2022/views/multi-day/multi-day-view-renderer.component.mjs +0 -1002
  163. package/esm2022/views/multi-day/multi-day-view.component.mjs +0 -197
  164. package/esm2022/views/multi-day/utils.mjs +0 -63
  165. package/esm2022/views/multi-day/week-view.component.mjs +0 -189
  166. package/esm2022/views/multi-day/work-week-view.component.mjs +0 -172
  167. package/esm2022/views/scheduler-view.directive.mjs +0 -65
  168. package/esm2022/views/templates/agenda-date-template.directive.mjs +0 -41
  169. package/esm2022/views/templates/agenda-time-template.directive.mjs +0 -46
  170. package/esm2022/views/templates/all-day-event-template.directive.mjs +0 -42
  171. package/esm2022/views/templates/all-day-slot-template.directive.mjs +0 -42
  172. package/esm2022/views/templates/date-header-template.directive.mjs +0 -42
  173. package/esm2022/views/templates/event-template.directive.mjs +0 -42
  174. package/esm2022/views/templates/group-header-template.directive.mjs +0 -42
  175. package/esm2022/views/templates/major-time-header-template.directive.mjs +0 -41
  176. package/esm2022/views/templates/minor-time-header-template.directive.mjs +0 -41
  177. package/esm2022/views/templates/month-day-slot-template.directive.mjs +0 -42
  178. package/esm2022/views/templates/multi-week-day-slot-template.directive.mjs +0 -42
  179. package/esm2022/views/templates/time-slot-template.directive.mjs +0 -43
  180. package/esm2022/views/templates.mjs +0 -16
  181. package/esm2022/views/timeline/timeline-base.mjs +0 -39
  182. package/esm2022/views/timeline/timeline-month-view.component.mjs +0 -211
  183. package/esm2022/views/timeline/timeline-multi-day-view.component.mjs +0 -649
  184. package/esm2022/views/timeline/timeline-view.component.mjs +0 -189
  185. package/esm2022/views/timeline/timeline-week-view.component.mjs +0 -181
  186. package/esm2022/views/timeline/utils.mjs +0 -60
  187. package/esm2022/views/utils.mjs +0 -373
  188. package/esm2022/views/view-context.service.mjs +0 -111
  189. package/esm2022/views/view-items/base-slot.directive.mjs +0 -104
  190. package/esm2022/views/view-items/base-slot.service.mjs +0 -82
  191. package/esm2022/views/view-items/base-view-item.mjs +0 -194
  192. package/esm2022/views/view-items/item-map.mjs +0 -38
  193. package/esm2022/views/view-items/types.mjs +0 -5
  194. package/esm2022/views/view-state.service.mjs +0 -144
  195. package/esm2022/views/year/utils.mjs +0 -60
  196. package/esm2022/views/year/year-view-internal.component.mjs +0 -471
  197. package/esm2022/views/year/year-view.component.mjs +0 -136
@@ -1,168 +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, ElementRef, EventEmitter, HostBinding, Input, NgZone, Output } from '@angular/core';
6
- import { Observable, Subscription } from 'rxjs';
7
- import { SchedulerView } from '../types';
8
- import { ToolbarTemplateDirective } from './toolbar-template.directive';
9
- import { ToolbarService } from './toolbar.service';
10
- import { ResizeSensorComponent } from '@progress/kendo-angular-common';
11
- import { ToolbarViewSelectorComponent } from './view-selector.component';
12
- import { ToolbarNavigationComponent } from './navigation.component';
13
- import { NgTemplateOutlet } from '@angular/common';
14
- import * as i0 from "@angular/core";
15
- import * as i1 from "./toolbar.service";
16
- /**
17
- * @hidden
18
- */
19
- export class ToolbarComponent {
20
- service;
21
- element;
22
- zone;
23
- hostClasses = true;
24
- toolbarRole = 'toolbar';
25
- selectedView;
26
- views;
27
- dateRange;
28
- selectedDate;
29
- template;
30
- min;
31
- max;
32
- navigate = new EventEmitter();
33
- toolbarWidthChange = new EventEmitter();
34
- // The template context is the same as the service context,
35
- // but with resolved values instead of observables.
36
- templateContext = {};
37
- toolbarWidth;
38
- /**
39
- * @hidden
40
- */
41
- get activeView() {
42
- return this.service.context.selectedView?.name === 'year' ? 'decade' : 'month';
43
- }
44
- /**
45
- * @hidden
46
- */
47
- get bottomView() {
48
- return this.service.context.selectedView?.name === 'year' ? 'decade' : 'month';
49
- }
50
- subs = new Subscription();
51
- constructor(service, element, zone) {
52
- this.service = service;
53
- this.element = element;
54
- this.zone = zone;
55
- this.subs.add(service.action.subscribe(action => this.navigate.next(action)));
56
- }
57
- ngOnInit() {
58
- this.subs.add(this.selectedDate.subscribe(date => this.templateContext.selectedDate = date));
59
- this.subs.add(this.dateRange.subscribe(dateRange => this.templateContext.dateRange = dateRange));
60
- this.resizeHandler();
61
- }
62
- ngOnChanges() {
63
- this.service.context = {
64
- dateRange: this.dateRange,
65
- selectedDate: this.selectedDate,
66
- views: this.views,
67
- selectedView: this.selectedView
68
- };
69
- Object.assign(this.templateContext, {
70
- views: this.views,
71
- selectedView: this.selectedView
72
- // The dateRange and selectedDate context fields
73
- // are updated through the subscriptions added in ngOnInit.
74
- });
75
- }
76
- ngOnDestroy() {
77
- this.subs.unsubscribe();
78
- }
79
- resizeHandler() {
80
- const element = this.element.nativeElement;
81
- this.zone.run(() => this.toolbarWidth = element.offsetWidth);
82
- this.toolbarWidthChange.emit(this.toolbarWidth);
83
- }
84
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ToolbarComponent, deps: [{ token: i1.ToolbarService }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
85
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: ToolbarComponent, isStandalone: true, selector: "kendo-scheduler-toolbar", inputs: { selectedView: "selectedView", views: "views", dateRange: "dateRange", selectedDate: "selectedDate", template: "template", min: "min", max: "max" }, outputs: { navigate: "navigate", toolbarWidthChange: "toolbarWidthChange" }, host: { properties: { "class.k-scheduler-toolbar": "this.hostClasses", "class.k-toolbar": "this.hostClasses", "class.k-toolbar-solid": "this.hostClasses", "class.k-toolbar-md": "this.hostClasses", "attr.role": "this.toolbarRole" } }, usesOnChanges: true, ngImport: i0, template: `
86
- @if (template) {
87
- <ng-template
88
- [ngTemplateOutlet]="template.templateRef"
89
- [ngTemplateOutletContext]="templateContext"
90
- >
91
- </ng-template>
92
- } @else {
93
- <div kendoSchedulerToolbarNavigation
94
- [min]="min"
95
- [max]="max"
96
- [activeView]="activeView"
97
- [bottomView]="bottomView">
98
- </div>
99
- <span class="k-spacer"></span>
100
- <div kendoSchedulerToolbarViewSelector [toolbarWidth]="toolbarWidth"></div>
101
- }
102
-
103
-
104
- <kendo-resize-sensor (resize)="resizeHandler()" [style]="'display: contents;'"></kendo-resize-sensor>
105
- `, isInline: true, dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: ToolbarNavigationComponent, selector: "[kendoSchedulerToolbarNavigation]", inputs: ["min", "max", "activeView", "bottomView"] }, { kind: "component", type: ToolbarViewSelectorComponent, selector: "[kendoSchedulerToolbarViewSelector]", inputs: ["toolbarWidth", "responsiveBreakpoint"] }, { kind: "component", type: ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }] });
106
- }
107
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ToolbarComponent, decorators: [{
108
- type: Component,
109
- args: [{
110
- selector: 'kendo-scheduler-toolbar',
111
- template: `
112
- @if (template) {
113
- <ng-template
114
- [ngTemplateOutlet]="template.templateRef"
115
- [ngTemplateOutletContext]="templateContext"
116
- >
117
- </ng-template>
118
- } @else {
119
- <div kendoSchedulerToolbarNavigation
120
- [min]="min"
121
- [max]="max"
122
- [activeView]="activeView"
123
- [bottomView]="bottomView">
124
- </div>
125
- <span class="k-spacer"></span>
126
- <div kendoSchedulerToolbarViewSelector [toolbarWidth]="toolbarWidth"></div>
127
- }
128
-
129
-
130
- <kendo-resize-sensor (resize)="resizeHandler()" [style]="'display: contents;'"></kendo-resize-sensor>
131
- `,
132
- standalone: true,
133
- imports: [NgTemplateOutlet, ToolbarNavigationComponent, ToolbarViewSelectorComponent, ResizeSensorComponent]
134
- }]
135
- }], ctorParameters: () => [{ type: i1.ToolbarService }, { type: i0.ElementRef }, { type: i0.NgZone }], propDecorators: { hostClasses: [{
136
- type: HostBinding,
137
- args: ['class.k-scheduler-toolbar']
138
- }, {
139
- type: HostBinding,
140
- args: ['class.k-toolbar']
141
- }, {
142
- type: HostBinding,
143
- args: ['class.k-toolbar-solid']
144
- }, {
145
- type: HostBinding,
146
- args: ['class.k-toolbar-md']
147
- }], toolbarRole: [{
148
- type: HostBinding,
149
- args: ['attr.role']
150
- }], selectedView: [{
151
- type: Input
152
- }], views: [{
153
- type: Input
154
- }], dateRange: [{
155
- type: Input
156
- }], selectedDate: [{
157
- type: Input
158
- }], template: [{
159
- type: Input
160
- }], min: [{
161
- type: Input
162
- }], max: [{
163
- type: Input
164
- }], navigate: [{
165
- type: Output
166
- }], toolbarWidthChange: [{
167
- type: Output
168
- }] } });
@@ -1,46 +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 { Injectable } from '@angular/core';
6
- import { Subject } from 'rxjs';
7
- import * as i0 from "@angular/core";
8
- /**
9
- * Represents a service for communication with toolbar controls. Toolbar components use this service to publish navigation actions
10
- * ([see example](slug:toolbar_scheduler#toc-using-the-toolbar-service)).
11
- */
12
- export class ToolbarService {
13
- /**
14
- * A stream of navigation actions that is intended for consumption by the toolbar.
15
- *
16
- * @hidden
17
- */
18
- action;
19
- /**
20
- * The context for the built-in navigation components.
21
- *
22
- * @hidden
23
- */
24
- context;
25
- actionSource = new Subject();
26
- /** @hidden */
27
- constructor() {
28
- this.action = this.actionSource.asObservable();
29
- }
30
- /**
31
- * Emits the specified navigation action.
32
- *
33
- * @param action The navigation action to execute.
34
- */
35
- navigate(action) {
36
- this.actionSource.next(action);
37
- }
38
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ToolbarService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
39
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ToolbarService, providedIn: 'root' });
40
- }
41
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ToolbarService, decorators: [{
42
- type: Injectable,
43
- args: [{
44
- providedIn: 'root'
45
- }]
46
- }], ctorParameters: () => [] });
@@ -1,181 +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, Input } from '@angular/core';
6
- import { ToolbarService } from './toolbar.service';
7
- import { LocalizationService } from '@progress/kendo-angular-l10n';
8
- import { ButtonComponent } from '@progress/kendo-angular-buttons';
9
- import { FocusableDirective } from '../navigation/focusable.directive';
10
- import * as i0 from "@angular/core";
11
- import * as i1 from "./toolbar.service";
12
- import * as i2 from "@progress/kendo-angular-l10n";
13
- /**
14
- * A toolbar component that contains controls for switching views
15
- * ([see example](slug:toolbar_scheduler#toc-including-the-built-in-components)).
16
- *
17
- * To render the view-selection buttons, include this component in the [toolbar template](slug:api_scheduler_toolbartemplatedirective).
18
- *
19
- * @example
20
- * ```html
21
- * <kendo-scheduler>
22
- * <ng-template kendoSchedulerToolbarTemplate>
23
- * <div kendoSchedulerToolbarViewSelector responsiveBreakpoint]="960"></div>
24
- * </ng-template>
25
- * </kendo-scheduler>
26
- * ```
27
- */
28
- export class ToolbarViewSelectorComponent {
29
- service;
30
- localization;
31
- /**
32
- * Sets the current width of the Toolbar in pixels for responsive calculations. Use the [`schedulerResize`](slug:api_scheduler_schedulercomponent#toc-schedulerresize) event to get the Toolbar width.
33
- */
34
- toolbarWidth;
35
- /**
36
- * Sets the Toolbar width in pixels at which responsive behavior is enabled. When enabled, the ButtonGroup with the views is replaced by a `select` element.
37
- *
38
- * @default 1024
39
- */
40
- responsiveBreakpoint = 1024;
41
- /**
42
- * @hidden
43
- */
44
- get ctx() {
45
- return this.service.context;
46
- }
47
- /**
48
- * @hidden
49
- */
50
- get selectView() {
51
- return this.localization.get('selectView');
52
- }
53
- detachDomEvents;
54
- constructor(service, localization) {
55
- this.service = service;
56
- this.localization = localization;
57
- }
58
- ngOnDestroy() {
59
- if (this.detachDomEvents) {
60
- this.detachDomEvents();
61
- }
62
- }
63
- /**
64
- * @hidden
65
- */
66
- select(view) {
67
- if (this.ctx.selectedView !== view) {
68
- this.service.navigate({
69
- type: 'view-change',
70
- view: view
71
- });
72
- }
73
- }
74
- /**
75
- * @hidden
76
- */
77
- onChange(e) {
78
- const view = this.ctx.views.find(view => view.name === e.target.value);
79
- if (view) {
80
- this.select(view);
81
- }
82
- }
83
- /**
84
- * @hidden
85
- */
86
- isSelected(view) {
87
- return this.ctx.selectedView === view;
88
- }
89
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ToolbarViewSelectorComponent, deps: [{ token: i1.ToolbarService }, { token: i2.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
90
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: ToolbarViewSelectorComponent, isStandalone: true, selector: "[kendoSchedulerToolbarViewSelector]", inputs: { toolbarWidth: "toolbarWidth", responsiveBreakpoint: "responsiveBreakpoint" }, ngImport: i0, template: `
91
- @if (ctx.views?.length > 1 && toolbarWidth <= responsiveBreakpoint) {
92
- <select
93
- (change)="onChange($event)"
94
- class="k-views-dropdown k-picker-md k-rounded-md k-picker-solid k-dropdownlist k-picker"
95
- [attr.aria-label]="selectView"
96
- [kendoSchedulerFocusIndex]="0"
97
- containerType="toolbar">
98
- @for (view of ctx.views; track view) {
99
- <option
100
- [selected]="isSelected(view) === true"
101
- [value]="view.name"
102
- >
103
- {{ view.title }}
104
- </option>
105
- }
106
- </select>
107
- }
108
- @if (toolbarWidth > responsiveBreakpoint) {
109
- <span
110
- class="k-toolbar-button-group k-scheduler-views k-button-group k-button-group-solid"
111
- role="group"
112
- >
113
- @for (view of ctx.views; track view) {
114
- <button kendoButton
115
- type="button"
116
- [selected]="isSelected(view)"
117
- [attr.aria-pressed]="isSelected(view)"
118
- (click)="select(view)"
119
- [kendoSchedulerFocusIndex]="0"
120
- containerType="toolbar">
121
- <span class="k-button-text">
122
- {{ view.title }}
123
- </span>
124
- </button>
125
- }
126
- </span>
127
- }
128
- `, isInline: true, dependencies: [{ kind: "directive", type: FocusableDirective, selector: "[kendoSchedulerFocusIndex]", inputs: ["kendoSchedulerFocusIndex", "containerType"] }, { 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"] }] });
129
- }
130
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ToolbarViewSelectorComponent, decorators: [{
131
- type: Component,
132
- args: [{
133
- // eslint-disable-next-line @angular-eslint/component-selector
134
- selector: '[kendoSchedulerToolbarViewSelector]',
135
- template: `
136
- @if (ctx.views?.length > 1 && toolbarWidth <= responsiveBreakpoint) {
137
- <select
138
- (change)="onChange($event)"
139
- class="k-views-dropdown k-picker-md k-rounded-md k-picker-solid k-dropdownlist k-picker"
140
- [attr.aria-label]="selectView"
141
- [kendoSchedulerFocusIndex]="0"
142
- containerType="toolbar">
143
- @for (view of ctx.views; track view) {
144
- <option
145
- [selected]="isSelected(view) === true"
146
- [value]="view.name"
147
- >
148
- {{ view.title }}
149
- </option>
150
- }
151
- </select>
152
- }
153
- @if (toolbarWidth > responsiveBreakpoint) {
154
- <span
155
- class="k-toolbar-button-group k-scheduler-views k-button-group k-button-group-solid"
156
- role="group"
157
- >
158
- @for (view of ctx.views; track view) {
159
- <button kendoButton
160
- type="button"
161
- [selected]="isSelected(view)"
162
- [attr.aria-pressed]="isSelected(view)"
163
- (click)="select(view)"
164
- [kendoSchedulerFocusIndex]="0"
165
- containerType="toolbar">
166
- <span class="k-button-text">
167
- {{ view.title }}
168
- </span>
169
- </button>
170
- }
171
- </span>
172
- }
173
- `,
174
- standalone: true,
175
- imports: [FocusableDirective, ButtonComponent]
176
- }]
177
- }], ctorParameters: () => [{ type: i1.ToolbarService }, { type: i2.LocalizationService }], propDecorators: { toolbarWidth: [{
178
- type: Input
179
- }], responsiveBreakpoint: [{
180
- type: Input
181
- }] } });
@@ -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,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,18 +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
- /**
6
- * Represents the selected CRUD operation when the user edits or removes recurring events.
7
- */
8
- export var CrudOperation;
9
- (function (CrudOperation) {
10
- /**
11
- * Indicates that the selected recurring event is edited.
12
- */
13
- CrudOperation[CrudOperation["Edit"] = 0] = "Edit";
14
- /**
15
- * Indicates that the selected recurring event is removed.
16
- */
17
- CrudOperation[CrudOperation["Remove"] = 1] = "Remove";
18
- })(CrudOperation || (CrudOperation = {}));
@@ -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,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,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,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,23 +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
- /**
6
- * Represents the selected edit mode when you update or remove events.
7
- * For non-recurring events, use `Event`.
8
- */
9
- export var EditMode;
10
- (function (EditMode) {
11
- /**
12
- * Edits the selected event.
13
- */
14
- EditMode[EditMode["Event"] = 0] = "Event";
15
- /**
16
- * Edits the selected occurrence.
17
- */
18
- EditMode[EditMode["Occurrence"] = 1] = "Occurrence";
19
- /**
20
- * Edits all events in the series.
21
- */
22
- EditMode[EditMode["Series"] = 2] = "Series";
23
- })(EditMode || (EditMode = {}));
@@ -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,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,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,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,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,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,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,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,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,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,9 +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
- /**
6
- * Contains meta information about a Scheduler view.
7
- */
8
- export class SchedulerView {
9
- }
@@ -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,35 +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
- /**
6
- * The arguments for the [`isSlotSelected`]({% slug api_scheduler_schedulercomponent %}#toc-isslotselected) callback.
7
- */
8
- export class IsSlotSelectedArgs {
9
- /**
10
- * The start date of the slot.
11
- */
12
- start;
13
- /**
14
- * The end date of the slot.
15
- */
16
- end;
17
- /**
18
- * Indicates if the slot is an all-day slot, or a time slot.
19
- */
20
- isAllDay;
21
- /**
22
- * The resources for the slot, if grouping by resource; otherwise all Scheduler resources.
23
- */
24
- resources;
25
- }
26
- /**
27
- * @hidden
28
- */
29
- export var slotDragEventName;
30
- (function (slotDragEventName) {
31
- slotDragEventName["initDragSelect"] = "initDragSelect";
32
- slotDragEventName["dragSelect"] = "dragSelect";
33
- slotDragEventName["refreshSlotSelection"] = "refreshSlotSelection";
34
- slotDragEventName["dragSelectRelease"] = "dragSelectRelease";
35
- })(slotDragEventName || (slotDragEventName = {}));
@@ -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 {};
package/esm2022/types.mjs DELETED
@@ -1,12 +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 * from './types/actions';
6
- export * from './types/date-range.interface';
7
- export * from './types/scheduler-event';
8
- export * from './types/scheduler-view';
9
- export * from './types/view-item.interface';
10
- export { EditMode } from './types/edit-mode.enum';
11
- export { CrudOperation } from './types/crud-operation.enum';
12
- export { IsSlotSelectedArgs } from './types/slot-selection';