@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,244 +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 { Input, ContentChild, ChangeDetectorRef, Directive } from '@angular/core';
|
|
6
|
-
import { ConfigurationViewBase } from '../common/configuration-view-base';
|
|
7
|
-
import { TimeSlotTemplateDirective, DateHeaderTemplateDirective, MajorTimeHeaderTemplateDirective, MinorTimeHeaderTemplateDirective } from '../templates';
|
|
8
|
-
import { ViewContextService } from '../view-context.service';
|
|
9
|
-
import { ViewStateService } from '../view-state.service';
|
|
10
|
-
import { DEFAULT_EVENT_HEIGHT } from '../constants';
|
|
11
|
-
import { isPresent } from '../../common/util';
|
|
12
|
-
import { Day } from '@progress/kendo-date-math';
|
|
13
|
-
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
14
|
-
import * as i0 from "@angular/core";
|
|
15
|
-
import * as i1 from "@progress/kendo-angular-l10n";
|
|
16
|
-
import * as i2 from "../view-context.service";
|
|
17
|
-
import * as i3 from "../view-state.service";
|
|
18
|
-
const EVENT_HEIGHT = 'eventHeight';
|
|
19
|
-
const SHOW_WORK_HOURS = 'showWorkHours';
|
|
20
|
-
const START_TIME = 'startTime';
|
|
21
|
-
const END_TIME = 'endTime';
|
|
22
|
-
const WORK_DAY_START = 'workDayStart';
|
|
23
|
-
const WORK_DAY_END = 'workDayEnd';
|
|
24
|
-
const WORK_WEEK_START = 'workWeekStart';
|
|
25
|
-
const WORK_WEEK_END = 'workWeekEnd';
|
|
26
|
-
const SLOT_DURATION = 'slotDuration';
|
|
27
|
-
const SLOT_DIVISIONS = 'slotDivisions';
|
|
28
|
-
const CURRENT_TIME_MARKER = 'currentTimeMarker';
|
|
29
|
-
const HIGHLIGHT_ONGOING_EVENTS = 'highlightOngoingEvents';
|
|
30
|
-
/**
|
|
31
|
-
* @hidden
|
|
32
|
-
*/
|
|
33
|
-
export class DayTimeViewBase extends ConfigurationViewBase {
|
|
34
|
-
/**
|
|
35
|
-
* @hidden
|
|
36
|
-
*/
|
|
37
|
-
timeSlotTemplate;
|
|
38
|
-
/**
|
|
39
|
-
* @hidden
|
|
40
|
-
*/
|
|
41
|
-
dateHeaderTemplate;
|
|
42
|
-
/**
|
|
43
|
-
* @hidden
|
|
44
|
-
*/
|
|
45
|
-
majorTimeHeaderTemplate;
|
|
46
|
-
/**
|
|
47
|
-
* @hidden
|
|
48
|
-
*/
|
|
49
|
-
minorTimeHeaderTemplate;
|
|
50
|
-
/**
|
|
51
|
-
* If set to `true`, the view will be initially shown in the business-hours mode.
|
|
52
|
-
* By default, the view is displayed in the full-day mode.
|
|
53
|
-
* @default false
|
|
54
|
-
*/
|
|
55
|
-
showWorkHours;
|
|
56
|
-
/**
|
|
57
|
-
* Specifies whether to display the footer of the Scheduler.
|
|
58
|
-
*/
|
|
59
|
-
showFooter;
|
|
60
|
-
/**
|
|
61
|
-
* Sets the height (in pixels) of events in the Scheduler views.
|
|
62
|
-
* For `Month`, `Timeline`, and `Multi-Week` views, it controls the height of regular and all-day events.
|
|
63
|
-
* For `Day` and `Week` views, it controls the height of all-day events.
|
|
64
|
-
*/
|
|
65
|
-
eventHeight;
|
|
66
|
-
/**
|
|
67
|
-
* The start time of the view. The Scheduler displays events which start after the start time.
|
|
68
|
-
* Accepts string values in the `HH:mm` format.
|
|
69
|
-
*/
|
|
70
|
-
startTime;
|
|
71
|
-
/**
|
|
72
|
-
* The time to which the view will initially be scrolled.
|
|
73
|
-
* Accepts string values in the `HH:mm` format or a JavaScript `Date`.
|
|
74
|
-
*/
|
|
75
|
-
scrollTime;
|
|
76
|
-
/**
|
|
77
|
-
* The end time of the view. The Scheduler displays events which end before the end time.
|
|
78
|
-
* Accepts string values in the `HH:mm` format.
|
|
79
|
-
*/
|
|
80
|
-
endTime;
|
|
81
|
-
/**
|
|
82
|
-
* The start time of the view when `showWorkHours` is set to `true`.
|
|
83
|
-
* Accepts string values in the `HH:mm` format.
|
|
84
|
-
*/
|
|
85
|
-
workDayStart;
|
|
86
|
-
/**
|
|
87
|
-
* The end time of the view when `showWorkHours` is set to `true`.
|
|
88
|
-
* Accepts string values in the `HH:mm` format.
|
|
89
|
-
*/
|
|
90
|
-
workDayEnd;
|
|
91
|
-
/**
|
|
92
|
-
* The start of the work week.
|
|
93
|
-
*/
|
|
94
|
-
workWeekStart;
|
|
95
|
-
/**
|
|
96
|
-
* The end of the work week.
|
|
97
|
-
*/
|
|
98
|
-
workWeekEnd;
|
|
99
|
-
/**
|
|
100
|
-
* The duration (in minutes) of the time slots.
|
|
101
|
-
*/
|
|
102
|
-
slotDuration;
|
|
103
|
-
/**
|
|
104
|
-
* The number of divisions of the time slots.
|
|
105
|
-
*/
|
|
106
|
-
slotDivisions;
|
|
107
|
-
/**
|
|
108
|
-
* Specifies the settings for the current time marker of the Scheduler.
|
|
109
|
-
*/
|
|
110
|
-
currentTimeMarker;
|
|
111
|
-
/**
|
|
112
|
-
* @hidden
|
|
113
|
-
*/
|
|
114
|
-
get viewEventHeight() {
|
|
115
|
-
return this.optionValue(EVENT_HEIGHT) || DEFAULT_EVENT_HEIGHT;
|
|
116
|
-
}
|
|
117
|
-
/**
|
|
118
|
-
* @hidden
|
|
119
|
-
*/
|
|
120
|
-
get shouldShowWorkHours() {
|
|
121
|
-
return this.optionValue(SHOW_WORK_HOURS);
|
|
122
|
-
}
|
|
123
|
-
/**
|
|
124
|
-
* @hidden
|
|
125
|
-
*/
|
|
126
|
-
get viewStartTime() {
|
|
127
|
-
return this.optionValue(START_TIME);
|
|
128
|
-
}
|
|
129
|
-
/**
|
|
130
|
-
* @hidden
|
|
131
|
-
*/
|
|
132
|
-
get viewEndTime() {
|
|
133
|
-
return this.optionValue(END_TIME);
|
|
134
|
-
}
|
|
135
|
-
/**
|
|
136
|
-
* @hidden
|
|
137
|
-
*/
|
|
138
|
-
get viewWorkDayStart() {
|
|
139
|
-
return this.optionValue(WORK_DAY_START);
|
|
140
|
-
}
|
|
141
|
-
/**
|
|
142
|
-
* @hidden
|
|
143
|
-
*/
|
|
144
|
-
get viewWorkDayEnd() {
|
|
145
|
-
return this.optionValue(WORK_DAY_END);
|
|
146
|
-
}
|
|
147
|
-
/**
|
|
148
|
-
* @hidden
|
|
149
|
-
*/
|
|
150
|
-
get viewWorkWeekStart() {
|
|
151
|
-
return this.optionValue(WORK_WEEK_START);
|
|
152
|
-
}
|
|
153
|
-
/**
|
|
154
|
-
* @hidden
|
|
155
|
-
*/
|
|
156
|
-
get viewWorkWeekEnd() {
|
|
157
|
-
return this.optionValue(WORK_WEEK_END);
|
|
158
|
-
}
|
|
159
|
-
/**
|
|
160
|
-
* @hidden
|
|
161
|
-
*/
|
|
162
|
-
get viewSlotDuration() {
|
|
163
|
-
return this.optionValue(SLOT_DURATION);
|
|
164
|
-
}
|
|
165
|
-
/**
|
|
166
|
-
* @hidden
|
|
167
|
-
*/
|
|
168
|
-
get viewSlotDivisions() {
|
|
169
|
-
return this.optionValue(SLOT_DIVISIONS);
|
|
170
|
-
}
|
|
171
|
-
/**
|
|
172
|
-
* @hidden
|
|
173
|
-
*/
|
|
174
|
-
get viewCurrentTimeMarker() {
|
|
175
|
-
return this.optionValue(CURRENT_TIME_MARKER);
|
|
176
|
-
}
|
|
177
|
-
/**
|
|
178
|
-
* @hidden
|
|
179
|
-
*/
|
|
180
|
-
get viewHighlightOngoingEvents() {
|
|
181
|
-
return this.optionValue(HIGHLIGHT_ONGOING_EVENTS);
|
|
182
|
-
}
|
|
183
|
-
/**
|
|
184
|
-
* @hidden
|
|
185
|
-
*/
|
|
186
|
-
get viewScrollTime() {
|
|
187
|
-
return this.optionValue('scrollTime');
|
|
188
|
-
}
|
|
189
|
-
/**
|
|
190
|
-
* @hidden
|
|
191
|
-
*/
|
|
192
|
-
get viewShowFooter() {
|
|
193
|
-
return isPresent(this.showFooter) ? this.showFooter : this.schedulerOptions.showFooter;
|
|
194
|
-
}
|
|
195
|
-
constructor(localization, changeDetector, viewContext, viewState) {
|
|
196
|
-
super(localization, changeDetector, viewContext, viewState);
|
|
197
|
-
}
|
|
198
|
-
optionValue(name) {
|
|
199
|
-
return isPresent(this[name]) ? this[name] : this.schedulerOptions[name];
|
|
200
|
-
}
|
|
201
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: DayTimeViewBase, deps: [{ token: i1.LocalizationService }, { token: i0.ChangeDetectorRef }, { token: i2.ViewContextService }, { token: i3.ViewStateService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
202
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: DayTimeViewBase, inputs: { showWorkHours: "showWorkHours", showFooter: "showFooter", eventHeight: "eventHeight", startTime: "startTime", scrollTime: "scrollTime", endTime: "endTime", workDayStart: "workDayStart", workDayEnd: "workDayEnd", workWeekStart: "workWeekStart", workWeekEnd: "workWeekEnd", slotDuration: "slotDuration", slotDivisions: "slotDivisions", currentTimeMarker: "currentTimeMarker" }, queries: [{ propertyName: "timeSlotTemplate", first: true, predicate: TimeSlotTemplateDirective, descendants: true }, { propertyName: "dateHeaderTemplate", first: true, predicate: DateHeaderTemplateDirective, descendants: true }, { propertyName: "majorTimeHeaderTemplate", first: true, predicate: MajorTimeHeaderTemplateDirective, descendants: true }, { propertyName: "minorTimeHeaderTemplate", first: true, predicate: MinorTimeHeaderTemplateDirective, descendants: true }], usesInheritance: true, ngImport: i0 });
|
|
203
|
-
}
|
|
204
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: DayTimeViewBase, decorators: [{
|
|
205
|
-
type: Directive
|
|
206
|
-
}], ctorParameters: () => [{ type: i1.LocalizationService }, { type: i0.ChangeDetectorRef }, { type: i2.ViewContextService }, { type: i3.ViewStateService }], propDecorators: { timeSlotTemplate: [{
|
|
207
|
-
type: ContentChild,
|
|
208
|
-
args: [TimeSlotTemplateDirective, { static: false }]
|
|
209
|
-
}], dateHeaderTemplate: [{
|
|
210
|
-
type: ContentChild,
|
|
211
|
-
args: [DateHeaderTemplateDirective, { static: false }]
|
|
212
|
-
}], majorTimeHeaderTemplate: [{
|
|
213
|
-
type: ContentChild,
|
|
214
|
-
args: [MajorTimeHeaderTemplateDirective, { static: false }]
|
|
215
|
-
}], minorTimeHeaderTemplate: [{
|
|
216
|
-
type: ContentChild,
|
|
217
|
-
args: [MinorTimeHeaderTemplateDirective, { static: false }]
|
|
218
|
-
}], showWorkHours: [{
|
|
219
|
-
type: Input
|
|
220
|
-
}], showFooter: [{
|
|
221
|
-
type: Input
|
|
222
|
-
}], eventHeight: [{
|
|
223
|
-
type: Input
|
|
224
|
-
}], startTime: [{
|
|
225
|
-
type: Input
|
|
226
|
-
}], scrollTime: [{
|
|
227
|
-
type: Input
|
|
228
|
-
}], endTime: [{
|
|
229
|
-
type: Input
|
|
230
|
-
}], workDayStart: [{
|
|
231
|
-
type: Input
|
|
232
|
-
}], workDayEnd: [{
|
|
233
|
-
type: Input
|
|
234
|
-
}], workWeekStart: [{
|
|
235
|
-
type: Input
|
|
236
|
-
}], workWeekEnd: [{
|
|
237
|
-
type: Input
|
|
238
|
-
}], slotDuration: [{
|
|
239
|
-
type: Input
|
|
240
|
-
}], slotDivisions: [{
|
|
241
|
-
type: Input
|
|
242
|
-
}], currentTimeMarker: [{
|
|
243
|
-
type: Input
|
|
244
|
-
}] } });
|
|
@@ -1,216 +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, Input, Renderer2 } from '@angular/core';
|
|
6
|
-
import { IntlService } from '@progress/kendo-angular-intl';
|
|
7
|
-
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
8
|
-
import { toLocalDate } from '@progress/kendo-date-math';
|
|
9
|
-
import { arrowRotateCwIcon, arrowsNoRepeatIcon, caretAltDownIcon, caretAltLeftIcon, caretAltRightIcon, caretAltUpIcon, xIcon } from '@progress/kendo-svg-icons';
|
|
10
|
-
import { FocusService } from '../../navigation';
|
|
11
|
-
import { DayTimeSlotService } from '../day-time/day-time-slot.service';
|
|
12
|
-
import { BaseViewItem } from '../view-items/base-view-item';
|
|
13
|
-
import { IconWrapperComponent } from '@progress/kendo-angular-icons';
|
|
14
|
-
import { NgTemplateOutlet } from '@angular/common';
|
|
15
|
-
import * as i0 from "@angular/core";
|
|
16
|
-
import * as i1 from "../day-time/day-time-slot.service";
|
|
17
|
-
import * as i2 from "@progress/kendo-angular-l10n";
|
|
18
|
-
import * as i3 from "../../navigation";
|
|
19
|
-
import * as i4 from "@progress/kendo-angular-intl";
|
|
20
|
-
/**
|
|
21
|
-
* @hidden
|
|
22
|
-
*/
|
|
23
|
-
export class DayTimeViewItemComponent extends BaseViewItem {
|
|
24
|
-
intlService;
|
|
25
|
-
caretAltLeftIcon = caretAltLeftIcon;
|
|
26
|
-
caretAltRightIcon = caretAltRightIcon;
|
|
27
|
-
caretAltUpIcon = caretAltUpIcon;
|
|
28
|
-
caretAltDownIcon = caretAltDownIcon;
|
|
29
|
-
arrowRotateCwIcon = arrowRotateCwIcon;
|
|
30
|
-
arrowsNoRepeatIcon = arrowsNoRepeatIcon;
|
|
31
|
-
xIcon = xIcon;
|
|
32
|
-
vertical;
|
|
33
|
-
isAllDay;
|
|
34
|
-
name;
|
|
35
|
-
get eventTime() {
|
|
36
|
-
return this.intlService.format('{0:t}–{1:t}', toLocalDate(this.item.startTime), toLocalDate(this.item.endTime));
|
|
37
|
-
}
|
|
38
|
-
constructor(slotService, localization, focusService, element, renderer, intlService) {
|
|
39
|
-
super(slotService, localization, focusService, element, renderer, intlService);
|
|
40
|
-
this.intlService = intlService;
|
|
41
|
-
}
|
|
42
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: DayTimeViewItemComponent, deps: [{ token: i1.DayTimeSlotService }, { token: i2.LocalizationService }, { token: i3.FocusService }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i4.IntlService }], target: i0.ɵɵFactoryTarget.Component });
|
|
43
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: DayTimeViewItemComponent, isStandalone: true, selector: "[dayTimeViewItem]", inputs: { vertical: "vertical", isAllDay: "isAllDay", name: "name" }, usesInheritance: true, ngImport: i0, template: `
|
|
44
|
-
<span class="k-event-actions">
|
|
45
|
-
@if (item.tail && !vertical) {
|
|
46
|
-
<kendo-icon-wrapper
|
|
47
|
-
[name]="arrowIcons[0]"
|
|
48
|
-
[svgIcon]="arrowSVGIcons[0]"
|
|
49
|
-
>
|
|
50
|
-
</kendo-icon-wrapper>
|
|
51
|
-
}
|
|
52
|
-
@if (isRecurrence) {
|
|
53
|
-
<kendo-icon-wrapper
|
|
54
|
-
name="arrow-rotate-cw"
|
|
55
|
-
[svgIcon]="arrowRotateCwIcon"
|
|
56
|
-
>
|
|
57
|
-
</kendo-icon-wrapper>
|
|
58
|
-
}
|
|
59
|
-
@if (isRecurrenceException) {
|
|
60
|
-
<kendo-icon-wrapper
|
|
61
|
-
name="arrows-no-repeat"
|
|
62
|
-
[svgIcon]="arrowsNoRepeatIcon"
|
|
63
|
-
>
|
|
64
|
-
</kendo-icon-wrapper>
|
|
65
|
-
}
|
|
66
|
-
</span>
|
|
67
|
-
@if (eventTemplate) {
|
|
68
|
-
<ng-container [ngTemplateOutlet]="eventTemplate"
|
|
69
|
-
[ngTemplateOutletContext]="{ $implicit: item.event, event: item.event, resources: resources }">
|
|
70
|
-
</ng-container>
|
|
71
|
-
}
|
|
72
|
-
@if (!eventTemplate) {
|
|
73
|
-
<div [attr.title]="eventTitle">
|
|
74
|
-
@if (!isAllDay) {
|
|
75
|
-
<div class="k-event-template k-event-time">{{ eventTime }}</div>
|
|
76
|
-
}
|
|
77
|
-
<div class="k-event-template" aria-hidden="true">{{ item.event.title }}</div>
|
|
78
|
-
</div>
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
<span class="k-event-actions">
|
|
82
|
-
@if (removable) {
|
|
83
|
-
<span class="k-link k-event-delete" aria-hidden="true" [attr.title]="deleteMessage">
|
|
84
|
-
<kendo-icon-wrapper name="x" [svgIcon]="xIcon"></kendo-icon-wrapper>
|
|
85
|
-
</span>
|
|
86
|
-
}
|
|
87
|
-
@if (item.head && !vertical) {
|
|
88
|
-
<kendo-icon-wrapper
|
|
89
|
-
[name]="arrowIcons[1]"
|
|
90
|
-
[svgIcon]="arrowSVGIcons[1]"
|
|
91
|
-
>
|
|
92
|
-
</kendo-icon-wrapper>
|
|
93
|
-
}
|
|
94
|
-
</span>
|
|
95
|
-
|
|
96
|
-
@if (item.tail && vertical) {
|
|
97
|
-
<span class="k-event-top-actions">
|
|
98
|
-
<kendo-icon-wrapper name="caret-alt-up" [svgIcon]="caretAltUpIcon"></kendo-icon-wrapper>
|
|
99
|
-
</span>
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
@if (item.head && vertical) {
|
|
103
|
-
<span class="k-event-bottom-actions">
|
|
104
|
-
<kendo-icon-wrapper name="caret-alt-down" [svgIcon]="caretAltDownIcon"></kendo-icon-wrapper>
|
|
105
|
-
</span>
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
@if (resizable && vertical) {
|
|
109
|
-
@if (!item.tail) {
|
|
110
|
-
<span class="k-resize-handle k-resize-n"></span>
|
|
111
|
-
}
|
|
112
|
-
@if (!item.head) {
|
|
113
|
-
<span class="k-resize-handle k-resize-s"></span>
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
@if (resizable && !vertical && !(isAllDay && name === 'day')) {
|
|
118
|
-
<span class="k-resize-handle k-resize-w"></span>
|
|
119
|
-
<span class="k-resize-handle k-resize-e"></span>
|
|
120
|
-
}
|
|
121
|
-
`, isInline: true, dependencies: [{ kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
|
|
122
|
-
}
|
|
123
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: DayTimeViewItemComponent, decorators: [{
|
|
124
|
-
type: Component,
|
|
125
|
-
args: [{
|
|
126
|
-
// eslint-disable-next-line @angular-eslint/component-selector
|
|
127
|
-
selector: '[dayTimeViewItem]',
|
|
128
|
-
template: `
|
|
129
|
-
<span class="k-event-actions">
|
|
130
|
-
@if (item.tail && !vertical) {
|
|
131
|
-
<kendo-icon-wrapper
|
|
132
|
-
[name]="arrowIcons[0]"
|
|
133
|
-
[svgIcon]="arrowSVGIcons[0]"
|
|
134
|
-
>
|
|
135
|
-
</kendo-icon-wrapper>
|
|
136
|
-
}
|
|
137
|
-
@if (isRecurrence) {
|
|
138
|
-
<kendo-icon-wrapper
|
|
139
|
-
name="arrow-rotate-cw"
|
|
140
|
-
[svgIcon]="arrowRotateCwIcon"
|
|
141
|
-
>
|
|
142
|
-
</kendo-icon-wrapper>
|
|
143
|
-
}
|
|
144
|
-
@if (isRecurrenceException) {
|
|
145
|
-
<kendo-icon-wrapper
|
|
146
|
-
name="arrows-no-repeat"
|
|
147
|
-
[svgIcon]="arrowsNoRepeatIcon"
|
|
148
|
-
>
|
|
149
|
-
</kendo-icon-wrapper>
|
|
150
|
-
}
|
|
151
|
-
</span>
|
|
152
|
-
@if (eventTemplate) {
|
|
153
|
-
<ng-container [ngTemplateOutlet]="eventTemplate"
|
|
154
|
-
[ngTemplateOutletContext]="{ $implicit: item.event, event: item.event, resources: resources }">
|
|
155
|
-
</ng-container>
|
|
156
|
-
}
|
|
157
|
-
@if (!eventTemplate) {
|
|
158
|
-
<div [attr.title]="eventTitle">
|
|
159
|
-
@if (!isAllDay) {
|
|
160
|
-
<div class="k-event-template k-event-time">{{ eventTime }}</div>
|
|
161
|
-
}
|
|
162
|
-
<div class="k-event-template" aria-hidden="true">{{ item.event.title }}</div>
|
|
163
|
-
</div>
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
<span class="k-event-actions">
|
|
167
|
-
@if (removable) {
|
|
168
|
-
<span class="k-link k-event-delete" aria-hidden="true" [attr.title]="deleteMessage">
|
|
169
|
-
<kendo-icon-wrapper name="x" [svgIcon]="xIcon"></kendo-icon-wrapper>
|
|
170
|
-
</span>
|
|
171
|
-
}
|
|
172
|
-
@if (item.head && !vertical) {
|
|
173
|
-
<kendo-icon-wrapper
|
|
174
|
-
[name]="arrowIcons[1]"
|
|
175
|
-
[svgIcon]="arrowSVGIcons[1]"
|
|
176
|
-
>
|
|
177
|
-
</kendo-icon-wrapper>
|
|
178
|
-
}
|
|
179
|
-
</span>
|
|
180
|
-
|
|
181
|
-
@if (item.tail && vertical) {
|
|
182
|
-
<span class="k-event-top-actions">
|
|
183
|
-
<kendo-icon-wrapper name="caret-alt-up" [svgIcon]="caretAltUpIcon"></kendo-icon-wrapper>
|
|
184
|
-
</span>
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
@if (item.head && vertical) {
|
|
188
|
-
<span class="k-event-bottom-actions">
|
|
189
|
-
<kendo-icon-wrapper name="caret-alt-down" [svgIcon]="caretAltDownIcon"></kendo-icon-wrapper>
|
|
190
|
-
</span>
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
@if (resizable && vertical) {
|
|
194
|
-
@if (!item.tail) {
|
|
195
|
-
<span class="k-resize-handle k-resize-n"></span>
|
|
196
|
-
}
|
|
197
|
-
@if (!item.head) {
|
|
198
|
-
<span class="k-resize-handle k-resize-s"></span>
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
@if (resizable && !vertical && !(isAllDay && name === 'day')) {
|
|
203
|
-
<span class="k-resize-handle k-resize-w"></span>
|
|
204
|
-
<span class="k-resize-handle k-resize-e"></span>
|
|
205
|
-
}
|
|
206
|
-
`,
|
|
207
|
-
standalone: true,
|
|
208
|
-
imports: [IconWrapperComponent, NgTemplateOutlet]
|
|
209
|
-
}]
|
|
210
|
-
}], ctorParameters: () => [{ type: i1.DayTimeSlotService }, { type: i2.LocalizationService }, { type: i3.FocusService }, { type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i4.IntlService }], propDecorators: { vertical: [{
|
|
211
|
-
type: Input
|
|
212
|
-
}], isAllDay: [{
|
|
213
|
-
type: Input
|
|
214
|
-
}], name: [{
|
|
215
|
-
type: Input
|
|
216
|
-
}] } });
|