@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,197 +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, forwardRef, Input, ChangeDetectionStrategy, ChangeDetectorRef } from '@angular/core';
|
|
6
|
-
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
7
|
-
import { SchedulerView } from '../../types';
|
|
8
|
-
import { ViewContextService } from '../view-context.service';
|
|
9
|
-
import { ViewStateService } from '../view-state.service';
|
|
10
|
-
import { DayViewComponent } from './day-view.component';
|
|
11
|
-
import { WorkHoursFooterDirective } from '../common/work-hours-footer.directive';
|
|
12
|
-
import { ViewFooterComponent } from '../common/view-footer.component';
|
|
13
|
-
import { MultiDayViewRendererComponent } from './multi-day-view-renderer.component';
|
|
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
|
-
/**
|
|
19
|
-
* Represents the component that renders the **Multi-Day** view in the Scheduler.
|
|
20
|
-
*
|
|
21
|
-
* @example
|
|
22
|
-
* ```html
|
|
23
|
-
* <kendo-scheduler>
|
|
24
|
-
* <kendo-scheduler-multi-day-view></kendo-scheduler-multi-day-view>
|
|
25
|
-
* </kendo-scheduler>
|
|
26
|
-
* ```
|
|
27
|
-
*/
|
|
28
|
-
export class MultiDayViewComponent extends DayViewComponent {
|
|
29
|
-
/**
|
|
30
|
-
* Sets the long-date format for the selected date in the Scheduler toolbar.
|
|
31
|
-
* For more information, see [Parsing and Formatting Dates and Numbers](slug:parsingandformatting_intl#date-formatting).
|
|
32
|
-
* The default value is `'{0:D} - {1:D}'` for multiple days and `'{0:D}'` for a single day.
|
|
33
|
-
* @default '{0:D} - {1:D}'
|
|
34
|
-
*/
|
|
35
|
-
set selectedDateFormat(value) {
|
|
36
|
-
this.dateFormat = value;
|
|
37
|
-
}
|
|
38
|
-
get selectedDateFormat() {
|
|
39
|
-
return this.dateFormat || this.defaultDateFormat;
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* Sets the short-date format for the selected date in the Scheduler toolbar.
|
|
43
|
-
* For more information, see [Parsing and Formatting Dates and Numbers](slug:parsingandformatting_intl#date-formatting).
|
|
44
|
-
* The default value is `'{0:d} - {1:d}'` for multiple days and `'{0:d}'` for a single day.
|
|
45
|
-
* @default '{0:d} - {1:d}'
|
|
46
|
-
*/
|
|
47
|
-
set selectedShortDateFormat(value) {
|
|
48
|
-
this.shortDateFormat = value;
|
|
49
|
-
}
|
|
50
|
-
get selectedShortDateFormat() {
|
|
51
|
-
return this.shortDateFormat || this.defaultShortDateFormat;
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* Sets the number of days to render in the view.
|
|
55
|
-
* @default 1
|
|
56
|
-
*/
|
|
57
|
-
numberOfDays = 1;
|
|
58
|
-
/**
|
|
59
|
-
* Specifies the days that will be hidden from the view.
|
|
60
|
-
* Accepts an array of `Day` enum values.
|
|
61
|
-
**/
|
|
62
|
-
set hiddenDays(value) {
|
|
63
|
-
this._hiddenDays = value;
|
|
64
|
-
}
|
|
65
|
-
get hiddenDays() {
|
|
66
|
-
return this._hiddenDays;
|
|
67
|
-
}
|
|
68
|
-
/**
|
|
69
|
-
* @hidden
|
|
70
|
-
*/
|
|
71
|
-
get title() {
|
|
72
|
-
return this.localization.get('multiDayViewTitle');
|
|
73
|
-
}
|
|
74
|
-
/**
|
|
75
|
-
* The invariant name for this view.
|
|
76
|
-
* @default 'multiDay'
|
|
77
|
-
*/
|
|
78
|
-
name = 'multiDay';
|
|
79
|
-
get defaultDateFormat() {
|
|
80
|
-
return this.numberOfDays === 1 ? '{0:D}' : '{0:D} - {1:D}';
|
|
81
|
-
}
|
|
82
|
-
get defaultShortDateFormat() {
|
|
83
|
-
return this.numberOfDays === 1 ? '{0:d}' : '{0:d} - {1:d}';
|
|
84
|
-
}
|
|
85
|
-
dateFormat;
|
|
86
|
-
shortDateFormat;
|
|
87
|
-
constructor(localization, changeDetector, viewContext, viewState) {
|
|
88
|
-
super(localization, changeDetector, viewContext, viewState);
|
|
89
|
-
}
|
|
90
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: MultiDayViewComponent, deps: [{ token: i1.LocalizationService }, { token: i0.ChangeDetectorRef }, { token: i2.ViewContextService }, { token: i3.ViewStateService }], target: i0.ɵɵFactoryTarget.Component });
|
|
91
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: MultiDayViewComponent, isStandalone: true, selector: "kendo-scheduler-multi-day-view", inputs: { selectedDateFormat: "selectedDateFormat", selectedShortDateFormat: "selectedShortDateFormat", numberOfDays: "numberOfDays", hiddenDays: "hiddenDays" }, providers: [{
|
|
92
|
-
provide: SchedulerView,
|
|
93
|
-
useExisting: forwardRef(() => MultiDayViewComponent)
|
|
94
|
-
}], usesInheritance: true, ngImport: i0, template: `
|
|
95
|
-
<ng-template #content>
|
|
96
|
-
<multi-day-view
|
|
97
|
-
viewName="day"
|
|
98
|
-
[allDaySlot]="allDaySlot"
|
|
99
|
-
[name]="name"
|
|
100
|
-
[hiddenDays]="viewHiddenDays"
|
|
101
|
-
[numberOfDays]="numberOfDays"
|
|
102
|
-
[eventHeight]="viewEventHeight"
|
|
103
|
-
[currentTimeMarker]="viewCurrentTimeMarker"
|
|
104
|
-
[highlightOngoingEvents]="viewHighlightOngoingEvents"
|
|
105
|
-
[showWorkHours]="shouldShowWorkHours"
|
|
106
|
-
[scrollTime]="viewScrollTime"
|
|
107
|
-
[startTime]="viewStartTime"
|
|
108
|
-
[endTime]="viewEndTime"
|
|
109
|
-
[workDayStart]="viewWorkDayStart"
|
|
110
|
-
[workDayEnd]="viewWorkDayEnd"
|
|
111
|
-
[workWeekStart]="viewWorkWeekStart"
|
|
112
|
-
[workWeekEnd]="viewWorkWeekEnd"
|
|
113
|
-
[slotDuration]="viewSlotDuration"
|
|
114
|
-
[slotDivisions]="viewSlotDivisions"
|
|
115
|
-
[slotFill]="viewSlotFill"
|
|
116
|
-
[slotClass]="viewSlotClass"
|
|
117
|
-
[eventClass]="viewEventClass"
|
|
118
|
-
[eventStyles]="viewEventStyles"
|
|
119
|
-
[allDaySlotTemplate]="allDaySlotTemplate?.templateRef"
|
|
120
|
-
[allDayEventTemplate]="allDayEventTemplate?.templateRef"
|
|
121
|
-
[eventTemplate]="eventTemplate?.templateRef"
|
|
122
|
-
[groupHeaderTemplate]="groupHeaderTemplate?.templateRef"
|
|
123
|
-
[timeSlotTemplate]="timeSlotTemplate?.templateRef"
|
|
124
|
-
[minorTimeHeaderTemplate]="minorTimeHeaderTemplate?.templateRef"
|
|
125
|
-
[majorTimeHeaderTemplate]="majorTimeHeaderTemplate?.templateRef"
|
|
126
|
-
[dateHeaderTemplate]="dateHeaderTemplate?.templateRef"
|
|
127
|
-
[selectedDateFormat]="selectedDateFormat"
|
|
128
|
-
[selectedShortDateFormat]="selectedShortDateFormat">
|
|
129
|
-
</multi-day-view>
|
|
130
|
-
@if (viewShowFooter) {
|
|
131
|
-
<div viewFooter kendoWorkHoursFooter [showWorkHours]="shouldShowWorkHours" (itemClick)="showWorkHours = !shouldShowWorkHours"></div>
|
|
132
|
-
}
|
|
133
|
-
</ng-template>
|
|
134
|
-
`, isInline: true, dependencies: [{ kind: "component", type: MultiDayViewRendererComponent, selector: "multi-day-view", inputs: ["hiddenDays", "allDaySlot", "name", "slotFill", "allDaySlotTemplate", "allDayEventTemplate"] }, { kind: "component", type: ViewFooterComponent, selector: "[viewFooter]", inputs: ["items"], outputs: ["itemClick"] }, { kind: "directive", type: WorkHoursFooterDirective, selector: "[kendoWorkHoursFooter]", inputs: ["showWorkHours"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
135
|
-
}
|
|
136
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: MultiDayViewComponent, decorators: [{
|
|
137
|
-
type: Component,
|
|
138
|
-
args: [{
|
|
139
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
140
|
-
selector: 'kendo-scheduler-multi-day-view',
|
|
141
|
-
providers: [{
|
|
142
|
-
provide: SchedulerView,
|
|
143
|
-
useExisting: forwardRef(() => MultiDayViewComponent)
|
|
144
|
-
}],
|
|
145
|
-
template: `
|
|
146
|
-
<ng-template #content>
|
|
147
|
-
<multi-day-view
|
|
148
|
-
viewName="day"
|
|
149
|
-
[allDaySlot]="allDaySlot"
|
|
150
|
-
[name]="name"
|
|
151
|
-
[hiddenDays]="viewHiddenDays"
|
|
152
|
-
[numberOfDays]="numberOfDays"
|
|
153
|
-
[eventHeight]="viewEventHeight"
|
|
154
|
-
[currentTimeMarker]="viewCurrentTimeMarker"
|
|
155
|
-
[highlightOngoingEvents]="viewHighlightOngoingEvents"
|
|
156
|
-
[showWorkHours]="shouldShowWorkHours"
|
|
157
|
-
[scrollTime]="viewScrollTime"
|
|
158
|
-
[startTime]="viewStartTime"
|
|
159
|
-
[endTime]="viewEndTime"
|
|
160
|
-
[workDayStart]="viewWorkDayStart"
|
|
161
|
-
[workDayEnd]="viewWorkDayEnd"
|
|
162
|
-
[workWeekStart]="viewWorkWeekStart"
|
|
163
|
-
[workWeekEnd]="viewWorkWeekEnd"
|
|
164
|
-
[slotDuration]="viewSlotDuration"
|
|
165
|
-
[slotDivisions]="viewSlotDivisions"
|
|
166
|
-
[slotFill]="viewSlotFill"
|
|
167
|
-
[slotClass]="viewSlotClass"
|
|
168
|
-
[eventClass]="viewEventClass"
|
|
169
|
-
[eventStyles]="viewEventStyles"
|
|
170
|
-
[allDaySlotTemplate]="allDaySlotTemplate?.templateRef"
|
|
171
|
-
[allDayEventTemplate]="allDayEventTemplate?.templateRef"
|
|
172
|
-
[eventTemplate]="eventTemplate?.templateRef"
|
|
173
|
-
[groupHeaderTemplate]="groupHeaderTemplate?.templateRef"
|
|
174
|
-
[timeSlotTemplate]="timeSlotTemplate?.templateRef"
|
|
175
|
-
[minorTimeHeaderTemplate]="minorTimeHeaderTemplate?.templateRef"
|
|
176
|
-
[majorTimeHeaderTemplate]="majorTimeHeaderTemplate?.templateRef"
|
|
177
|
-
[dateHeaderTemplate]="dateHeaderTemplate?.templateRef"
|
|
178
|
-
[selectedDateFormat]="selectedDateFormat"
|
|
179
|
-
[selectedShortDateFormat]="selectedShortDateFormat">
|
|
180
|
-
</multi-day-view>
|
|
181
|
-
@if (viewShowFooter) {
|
|
182
|
-
<div viewFooter kendoWorkHoursFooter [showWorkHours]="shouldShowWorkHours" (itemClick)="showWorkHours = !shouldShowWorkHours"></div>
|
|
183
|
-
}
|
|
184
|
-
</ng-template>
|
|
185
|
-
`,
|
|
186
|
-
standalone: true,
|
|
187
|
-
imports: [MultiDayViewRendererComponent, ViewFooterComponent, WorkHoursFooterDirective]
|
|
188
|
-
}]
|
|
189
|
-
}], ctorParameters: () => [{ type: i1.LocalizationService }, { type: i0.ChangeDetectorRef }, { type: i2.ViewContextService }, { type: i3.ViewStateService }], propDecorators: { selectedDateFormat: [{
|
|
190
|
-
type: Input
|
|
191
|
-
}], selectedShortDateFormat: [{
|
|
192
|
-
type: Input
|
|
193
|
-
}], numberOfDays: [{
|
|
194
|
-
type: Input
|
|
195
|
-
}], hiddenDays: [{
|
|
196
|
-
type: Input
|
|
197
|
-
}] } });
|
|
@@ -1,63 +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 { intersects, toUTCDate, roundAllDayEnd } from '../utils';
|
|
6
|
-
import { sortTasksByTime } from '../../common/util';
|
|
7
|
-
/** @hidden */
|
|
8
|
-
export const isMultiDay = ({ start, end }) => {
|
|
9
|
-
const startDate = start.stripTime();
|
|
10
|
-
const endDate = end.stripTime();
|
|
11
|
-
return startDate.getTime() !== endDate.getTime() &&
|
|
12
|
-
(endDate.getTime() !== end.getTime() || startDate.addDays(1).getTime() !== endDate.getTime());
|
|
13
|
-
};
|
|
14
|
-
//check start and times or update day ranges to have them
|
|
15
|
-
/** @hidden */
|
|
16
|
-
export const createTasks = (periodStart, periodEnd, items, ranges, hiddenDays = []) => {
|
|
17
|
-
const tasks = [];
|
|
18
|
-
const utcStart = toUTCDate(periodStart);
|
|
19
|
-
const utcEnd = toUTCDate(periodEnd);
|
|
20
|
-
for (let index = 0; index < items.length; index++) {
|
|
21
|
-
const item = items[index];
|
|
22
|
-
const multiDay = isMultiDay(item);
|
|
23
|
-
const multipleRanges = multiDay && !item.event.isAllDay;
|
|
24
|
-
const isAllDay = typeof item.event.isAllDay === 'boolean' ? item.event.isAllDay : (multiDay && !multipleRanges);
|
|
25
|
-
const endTime = (isAllDay ? roundAllDayEnd(item) : item.end).toUTCDate();
|
|
26
|
-
const startTime = (isAllDay ? item.start.stripTime() : item.start).toUTCDate();
|
|
27
|
-
for (let rangeIndex = 0; rangeIndex < ranges.length; rangeIndex++) {
|
|
28
|
-
const rangeStart = ranges[rangeIndex].start;
|
|
29
|
-
const rangeEnd = ranges[rangeIndex].end;
|
|
30
|
-
if (intersects(startTime, endTime, rangeStart, rangeEnd)) {
|
|
31
|
-
const task = {
|
|
32
|
-
index,
|
|
33
|
-
isAllDay,
|
|
34
|
-
startTime,
|
|
35
|
-
endTime,
|
|
36
|
-
rangeIndex: isAllDay ? 0 : rangeIndex,
|
|
37
|
-
start: item.start,
|
|
38
|
-
end: item.end,
|
|
39
|
-
event: item.event
|
|
40
|
-
};
|
|
41
|
-
tasks.push(task);
|
|
42
|
-
if (!multipleRanges) {
|
|
43
|
-
task.head = utcEnd < endTime;
|
|
44
|
-
task.tail = startTime < utcStart;
|
|
45
|
-
break;
|
|
46
|
-
}
|
|
47
|
-
else {
|
|
48
|
-
const nextRange = ranges[rangeIndex + 1];
|
|
49
|
-
const previousRange = ranges[rangeIndex - 1];
|
|
50
|
-
task.head = (nextRange ? nextRange.start : utcEnd) < endTime;
|
|
51
|
-
task.tail = startTime < (previousRange ? previousRange.end : utcStart);
|
|
52
|
-
if (hiddenDays.includes(task.endTime.getDay())) {
|
|
53
|
-
task.head = true;
|
|
54
|
-
}
|
|
55
|
-
if (hiddenDays.includes(task.startTime.getDay())) {
|
|
56
|
-
task.tail = true;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
return sortTasksByTime(tasks);
|
|
63
|
-
};
|
|
@@ -1,189 +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, forwardRef, Input, ContentChild, ChangeDetectionStrategy, ChangeDetectorRef } from '@angular/core';
|
|
6
|
-
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
7
|
-
import { SchedulerView } from '../../types';
|
|
8
|
-
import { MultiDayViewBase } from './multi-day-view-base';
|
|
9
|
-
import { IntlService } from '@progress/kendo-angular-intl';
|
|
10
|
-
import { ViewContextService } from '../view-context.service';
|
|
11
|
-
import { ViewStateService } from '../view-state.service';
|
|
12
|
-
import { firstDayInWeek, getDate } from '@progress/kendo-date-math';
|
|
13
|
-
import { AllDaySlotTemplateDirective, AllDayEventTemplateDirective } from '../templates';
|
|
14
|
-
import { WorkHoursFooterDirective } from '../common/work-hours-footer.directive';
|
|
15
|
-
import { ViewFooterComponent } from '../common/view-footer.component';
|
|
16
|
-
import { MultiDayViewRendererComponent } from './multi-day-view-renderer.component';
|
|
17
|
-
import * as i0 from "@angular/core";
|
|
18
|
-
import * as i1 from "@progress/kendo-angular-intl";
|
|
19
|
-
import * as i2 from "@progress/kendo-angular-l10n";
|
|
20
|
-
import * as i3 from "../view-context.service";
|
|
21
|
-
import * as i4 from "../view-state.service";
|
|
22
|
-
/**
|
|
23
|
-
* Represents the component that renders the **Week** view in the Scheduler.
|
|
24
|
-
*
|
|
25
|
-
* @example
|
|
26
|
-
* ```html
|
|
27
|
-
* <kendo-scheduler>
|
|
28
|
-
* <kendo-scheduler-week-view></kendo-scheduler-week-view>
|
|
29
|
-
* </kendo-scheduler>
|
|
30
|
-
* ```
|
|
31
|
-
*/
|
|
32
|
-
export class WeekViewComponent extends MultiDayViewBase {
|
|
33
|
-
intl;
|
|
34
|
-
/**
|
|
35
|
-
* @hidden
|
|
36
|
-
*/
|
|
37
|
-
get title() {
|
|
38
|
-
return this.localization.get('weekViewTitle');
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* Sets the long-date format for the selected date in the Scheduler toolbar.
|
|
42
|
-
* Defaults to `'{0:D} - {1:D}'`, where `0` is the start and `1` is the end date.
|
|
43
|
-
* For more information, see [Parsing and Formatting Dates and Numbers](slug:parsingandformatting_intl#date-formatting).
|
|
44
|
-
* @default '{0:D} - {1:D}'
|
|
45
|
-
*/
|
|
46
|
-
selectedDateFormat = '{0:D} - {1:D}';
|
|
47
|
-
/**
|
|
48
|
-
* Sets the short-date format for the selected date in the Scheduler toolbar.
|
|
49
|
-
* Defaults to `'{0:d} - {1:d}'`, where `0` is the start and `1` is the end date.
|
|
50
|
-
* For more information, see [Parsing and Formatting Dates and Numbers](slug:parsingandformatting_intl#date-formatting).
|
|
51
|
-
* @default '{0:d} - {1:d}'
|
|
52
|
-
*/
|
|
53
|
-
selectedShortDateFormat = '{0:d} - {1:d}';
|
|
54
|
-
/**
|
|
55
|
-
* @hidden
|
|
56
|
-
*/
|
|
57
|
-
allDaySlotTemplate;
|
|
58
|
-
/**
|
|
59
|
-
* @hidden
|
|
60
|
-
*/
|
|
61
|
-
allDayEventTemplate;
|
|
62
|
-
/**
|
|
63
|
-
* The invariant name for this view.
|
|
64
|
-
* @default 'week'
|
|
65
|
-
*/
|
|
66
|
-
name = 'week';
|
|
67
|
-
constructor(intl, localization, changeDetector, viewContext, viewState) {
|
|
68
|
-
super(localization, changeDetector, viewContext, viewState);
|
|
69
|
-
this.intl = intl;
|
|
70
|
-
this.getStartDate = this.getStartDate.bind(this);
|
|
71
|
-
}
|
|
72
|
-
/**
|
|
73
|
-
* @hidden
|
|
74
|
-
*/
|
|
75
|
-
getStartDate(selectedDate) {
|
|
76
|
-
return firstDayInWeek(getDate(selectedDate), this.viewWeekStart);
|
|
77
|
-
}
|
|
78
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: WeekViewComponent, deps: [{ token: i1.IntlService }, { token: i2.LocalizationService }, { token: i0.ChangeDetectorRef }, { token: i3.ViewContextService }, { token: i4.ViewStateService }], target: i0.ɵɵFactoryTarget.Component });
|
|
79
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: WeekViewComponent, isStandalone: true, selector: "kendo-scheduler-week-view", inputs: { selectedDateFormat: "selectedDateFormat", selectedShortDateFormat: "selectedShortDateFormat" }, providers: [{
|
|
80
|
-
provide: SchedulerView,
|
|
81
|
-
useExisting: forwardRef(() => WeekViewComponent)
|
|
82
|
-
}], queries: [{ propertyName: "allDaySlotTemplate", first: true, predicate: AllDaySlotTemplateDirective, descendants: true }, { propertyName: "allDayEventTemplate", first: true, predicate: AllDayEventTemplateDirective, descendants: true }], usesInheritance: true, ngImport: i0, template: `
|
|
83
|
-
<ng-template #content>
|
|
84
|
-
<multi-day-view
|
|
85
|
-
[name]="name"
|
|
86
|
-
[allDaySlot]="viewAllDaySlot"
|
|
87
|
-
[numberOfDays]="7"
|
|
88
|
-
[hiddenDays]="viewHiddenDays"
|
|
89
|
-
[getStartDate]="getStartDate"
|
|
90
|
-
[eventHeight]="viewEventHeight"
|
|
91
|
-
[currentTimeMarker]="viewCurrentTimeMarker"
|
|
92
|
-
[highlightOngoingEvents]="viewHighlightOngoingEvents"
|
|
93
|
-
[showWorkHours]="shouldShowWorkHours"
|
|
94
|
-
[scrollTime]="viewScrollTime"
|
|
95
|
-
[startTime]="viewStartTime"
|
|
96
|
-
[endTime]="viewEndTime"
|
|
97
|
-
[workDayStart]="viewWorkDayStart"
|
|
98
|
-
[workDayEnd]="viewWorkDayEnd"
|
|
99
|
-
[workWeekStart]="viewWorkWeekStart"
|
|
100
|
-
[workWeekEnd]="viewWorkWeekEnd"
|
|
101
|
-
[weekStart]="viewWeekStart"
|
|
102
|
-
[slotDuration]="viewSlotDuration"
|
|
103
|
-
[slotDivisions]="viewSlotDivisions"
|
|
104
|
-
[slotFill]="viewSlotFill"
|
|
105
|
-
[slotClass]="viewSlotClass"
|
|
106
|
-
[eventClass]="viewEventClass"
|
|
107
|
-
[eventStyles]="viewEventStyles"
|
|
108
|
-
[allDaySlotTemplate]="allDaySlotTemplate?.templateRef"
|
|
109
|
-
[allDayEventTemplate]="allDayEventTemplate?.templateRef"
|
|
110
|
-
[eventTemplate]="eventTemplate?.templateRef"
|
|
111
|
-
[groupHeaderTemplate]="groupHeaderTemplate?.templateRef"
|
|
112
|
-
[timeSlotTemplate]="timeSlotTemplate?.templateRef"
|
|
113
|
-
[minorTimeHeaderTemplate]="minorTimeHeaderTemplate?.templateRef"
|
|
114
|
-
[majorTimeHeaderTemplate]="majorTimeHeaderTemplate?.templateRef"
|
|
115
|
-
[dateHeaderTemplate]="dateHeaderTemplate?.templateRef"
|
|
116
|
-
[selectedDateFormat]="selectedDateFormat"
|
|
117
|
-
[selectedShortDateFormat]="selectedShortDateFormat">
|
|
118
|
-
</multi-day-view>
|
|
119
|
-
@if (viewShowFooter) {
|
|
120
|
-
<div viewFooter kendoWorkHoursFooter [showWorkHours]="shouldShowWorkHours" (itemClick)="showWorkHours = !shouldShowWorkHours"></div>
|
|
121
|
-
}
|
|
122
|
-
</ng-template>
|
|
123
|
-
`, isInline: true, dependencies: [{ kind: "component", type: MultiDayViewRendererComponent, selector: "multi-day-view", inputs: ["hiddenDays", "allDaySlot", "name", "slotFill", "allDaySlotTemplate", "allDayEventTemplate"] }, { kind: "component", type: ViewFooterComponent, selector: "[viewFooter]", inputs: ["items"], outputs: ["itemClick"] }, { kind: "directive", type: WorkHoursFooterDirective, selector: "[kendoWorkHoursFooter]", inputs: ["showWorkHours"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
124
|
-
}
|
|
125
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: WeekViewComponent, decorators: [{
|
|
126
|
-
type: Component,
|
|
127
|
-
args: [{
|
|
128
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
129
|
-
selector: 'kendo-scheduler-week-view',
|
|
130
|
-
providers: [{
|
|
131
|
-
provide: SchedulerView,
|
|
132
|
-
useExisting: forwardRef(() => WeekViewComponent)
|
|
133
|
-
}],
|
|
134
|
-
template: `
|
|
135
|
-
<ng-template #content>
|
|
136
|
-
<multi-day-view
|
|
137
|
-
[name]="name"
|
|
138
|
-
[allDaySlot]="viewAllDaySlot"
|
|
139
|
-
[numberOfDays]="7"
|
|
140
|
-
[hiddenDays]="viewHiddenDays"
|
|
141
|
-
[getStartDate]="getStartDate"
|
|
142
|
-
[eventHeight]="viewEventHeight"
|
|
143
|
-
[currentTimeMarker]="viewCurrentTimeMarker"
|
|
144
|
-
[highlightOngoingEvents]="viewHighlightOngoingEvents"
|
|
145
|
-
[showWorkHours]="shouldShowWorkHours"
|
|
146
|
-
[scrollTime]="viewScrollTime"
|
|
147
|
-
[startTime]="viewStartTime"
|
|
148
|
-
[endTime]="viewEndTime"
|
|
149
|
-
[workDayStart]="viewWorkDayStart"
|
|
150
|
-
[workDayEnd]="viewWorkDayEnd"
|
|
151
|
-
[workWeekStart]="viewWorkWeekStart"
|
|
152
|
-
[workWeekEnd]="viewWorkWeekEnd"
|
|
153
|
-
[weekStart]="viewWeekStart"
|
|
154
|
-
[slotDuration]="viewSlotDuration"
|
|
155
|
-
[slotDivisions]="viewSlotDivisions"
|
|
156
|
-
[slotFill]="viewSlotFill"
|
|
157
|
-
[slotClass]="viewSlotClass"
|
|
158
|
-
[eventClass]="viewEventClass"
|
|
159
|
-
[eventStyles]="viewEventStyles"
|
|
160
|
-
[allDaySlotTemplate]="allDaySlotTemplate?.templateRef"
|
|
161
|
-
[allDayEventTemplate]="allDayEventTemplate?.templateRef"
|
|
162
|
-
[eventTemplate]="eventTemplate?.templateRef"
|
|
163
|
-
[groupHeaderTemplate]="groupHeaderTemplate?.templateRef"
|
|
164
|
-
[timeSlotTemplate]="timeSlotTemplate?.templateRef"
|
|
165
|
-
[minorTimeHeaderTemplate]="minorTimeHeaderTemplate?.templateRef"
|
|
166
|
-
[majorTimeHeaderTemplate]="majorTimeHeaderTemplate?.templateRef"
|
|
167
|
-
[dateHeaderTemplate]="dateHeaderTemplate?.templateRef"
|
|
168
|
-
[selectedDateFormat]="selectedDateFormat"
|
|
169
|
-
[selectedShortDateFormat]="selectedShortDateFormat">
|
|
170
|
-
</multi-day-view>
|
|
171
|
-
@if (viewShowFooter) {
|
|
172
|
-
<div viewFooter kendoWorkHoursFooter [showWorkHours]="shouldShowWorkHours" (itemClick)="showWorkHours = !shouldShowWorkHours"></div>
|
|
173
|
-
}
|
|
174
|
-
</ng-template>
|
|
175
|
-
`,
|
|
176
|
-
standalone: true,
|
|
177
|
-
imports: [MultiDayViewRendererComponent, ViewFooterComponent, WorkHoursFooterDirective]
|
|
178
|
-
}]
|
|
179
|
-
}], ctorParameters: () => [{ type: i1.IntlService }, { type: i2.LocalizationService }, { type: i0.ChangeDetectorRef }, { type: i3.ViewContextService }, { type: i4.ViewStateService }], propDecorators: { selectedDateFormat: [{
|
|
180
|
-
type: Input
|
|
181
|
-
}], selectedShortDateFormat: [{
|
|
182
|
-
type: Input
|
|
183
|
-
}], allDaySlotTemplate: [{
|
|
184
|
-
type: ContentChild,
|
|
185
|
-
args: [AllDaySlotTemplateDirective, { static: false }]
|
|
186
|
-
}], allDayEventTemplate: [{
|
|
187
|
-
type: ContentChild,
|
|
188
|
-
args: [AllDayEventTemplateDirective, { static: false }]
|
|
189
|
-
}] } });
|
|
@@ -1,172 +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, forwardRef, ChangeDetectionStrategy, ChangeDetectorRef } from '@angular/core';
|
|
6
|
-
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
7
|
-
import { SchedulerView } from '../../types';
|
|
8
|
-
import { WeekViewComponent } from './week-view.component';
|
|
9
|
-
import { IntlService } from '@progress/kendo-angular-intl';
|
|
10
|
-
import { ViewContextService } from '../view-context.service';
|
|
11
|
-
import { ViewStateService } from '../view-state.service';
|
|
12
|
-
import { firstDayInWeek, getDate, addDays } from '@progress/kendo-date-math';
|
|
13
|
-
import { WorkHoursFooterDirective } from '../common/work-hours-footer.directive';
|
|
14
|
-
import { ViewFooterComponent } from '../common/view-footer.component';
|
|
15
|
-
import { MultiDayViewRendererComponent } from './multi-day-view-renderer.component';
|
|
16
|
-
import * as i0 from "@angular/core";
|
|
17
|
-
import * as i1 from "@progress/kendo-angular-intl";
|
|
18
|
-
import * as i2 from "@progress/kendo-angular-l10n";
|
|
19
|
-
import * as i3 from "../view-context.service";
|
|
20
|
-
import * as i4 from "../view-state.service";
|
|
21
|
-
const DAYS_IN_WEEK = 7;
|
|
22
|
-
/**
|
|
23
|
-
* Represents the component that renders the **Work Week** view in the Scheduler.
|
|
24
|
-
*
|
|
25
|
-
* @example
|
|
26
|
-
* ```html
|
|
27
|
-
* <kendo-scheduler>
|
|
28
|
-
* <kendo-scheduler-work-week-view></kendo-scheduler-work-week-view>
|
|
29
|
-
* </kendo-scheduler>
|
|
30
|
-
* ```
|
|
31
|
-
*/
|
|
32
|
-
export class WorkWeekViewComponent extends WeekViewComponent {
|
|
33
|
-
/**
|
|
34
|
-
* @hidden
|
|
35
|
-
*/
|
|
36
|
-
get title() {
|
|
37
|
-
return this.localization.get('workWeekViewTitle');
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* The invariant name for this view.
|
|
41
|
-
* @default 'workWeek'
|
|
42
|
-
*/
|
|
43
|
-
name = 'workWeek';
|
|
44
|
-
/**
|
|
45
|
-
* @hidden
|
|
46
|
-
*/
|
|
47
|
-
get numberOfDays() {
|
|
48
|
-
if (this.viewWorkWeekStart > this.viewWorkWeekEnd) {
|
|
49
|
-
return (DAYS_IN_WEEK - this.viewWorkWeekStart + this.viewWorkWeekEnd) + 1;
|
|
50
|
-
}
|
|
51
|
-
return (this.viewWorkWeekEnd - this.viewWorkWeekStart) + 1;
|
|
52
|
-
}
|
|
53
|
-
constructor(intl, localization, changeDetector, viewContext, viewState) {
|
|
54
|
-
super(intl, localization, changeDetector, viewContext, viewState);
|
|
55
|
-
this.getNextDate = this.getNextDate.bind(this);
|
|
56
|
-
}
|
|
57
|
-
/**
|
|
58
|
-
* @hidden
|
|
59
|
-
*/
|
|
60
|
-
getStartDate(selectedDate) {
|
|
61
|
-
return firstDayInWeek(getDate(selectedDate), this.viewWorkWeekStart);
|
|
62
|
-
}
|
|
63
|
-
/**
|
|
64
|
-
* @hidden
|
|
65
|
-
*/
|
|
66
|
-
getNextDate(date, count, _numberOfDays) {
|
|
67
|
-
return getDate(addDays(date, DAYS_IN_WEEK * count));
|
|
68
|
-
}
|
|
69
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: WorkWeekViewComponent, deps: [{ token: i1.IntlService }, { token: i2.LocalizationService }, { token: i0.ChangeDetectorRef }, { token: i3.ViewContextService }, { token: i4.ViewStateService }], target: i0.ɵɵFactoryTarget.Component });
|
|
70
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: WorkWeekViewComponent, isStandalone: true, selector: "kendo-scheduler-work-week-view", providers: [{
|
|
71
|
-
provide: SchedulerView,
|
|
72
|
-
useExisting: forwardRef(() => WorkWeekViewComponent)
|
|
73
|
-
}], usesInheritance: true, ngImport: i0, template: `
|
|
74
|
-
<ng-template #content>
|
|
75
|
-
<multi-day-view
|
|
76
|
-
viewName="workWeekview"
|
|
77
|
-
[allDaySlot]="viewAllDaySlot"
|
|
78
|
-
[name]="name"
|
|
79
|
-
[numberOfDays]="numberOfDays"
|
|
80
|
-
[hiddenDays]="viewHiddenDays"
|
|
81
|
-
[getStartDate]="getStartDate"
|
|
82
|
-
[getNextDate]="getNextDate"
|
|
83
|
-
[eventHeight]="viewEventHeight"
|
|
84
|
-
[currentTimeMarker]="viewCurrentTimeMarker"
|
|
85
|
-
[highlightOngoingEvents]="viewHighlightOngoingEvents"
|
|
86
|
-
[showWorkHours]="shouldShowWorkHours"
|
|
87
|
-
[scrollTime]="viewScrollTime"
|
|
88
|
-
[startTime]="viewStartTime"
|
|
89
|
-
[endTime]="viewEndTime"
|
|
90
|
-
[workDayStart]="viewWorkDayStart"
|
|
91
|
-
[workDayEnd]="viewWorkDayEnd"
|
|
92
|
-
[workWeekStart]="viewWorkWeekStart"
|
|
93
|
-
[workWeekEnd]="viewWorkWeekEnd"
|
|
94
|
-
[slotDuration]="viewSlotDuration"
|
|
95
|
-
[slotDivisions]="viewSlotDivisions"
|
|
96
|
-
[slotFill]="viewSlotFill"
|
|
97
|
-
[slotClass]="viewSlotClass"
|
|
98
|
-
[eventClass]="viewEventClass"
|
|
99
|
-
[eventStyles]="viewEventStyles"
|
|
100
|
-
[allDaySlotTemplate]="allDaySlotTemplate?.templateRef"
|
|
101
|
-
[allDayEventTemplate]="allDayEventTemplate?.templateRef"
|
|
102
|
-
[eventTemplate]="eventTemplate?.templateRef"
|
|
103
|
-
[groupHeaderTemplate]="groupHeaderTemplate?.templateRef"
|
|
104
|
-
[timeSlotTemplate]="timeSlotTemplate?.templateRef"
|
|
105
|
-
[minorTimeHeaderTemplate]="minorTimeHeaderTemplate?.templateRef"
|
|
106
|
-
[majorTimeHeaderTemplate]="majorTimeHeaderTemplate?.templateRef"
|
|
107
|
-
[dateHeaderTemplate]="dateHeaderTemplate?.templateRef"
|
|
108
|
-
[selectedDateFormat]="selectedDateFormat"
|
|
109
|
-
[selectedShortDateFormat]="selectedShortDateFormat">
|
|
110
|
-
</multi-day-view>
|
|
111
|
-
@if (viewShowFooter) {
|
|
112
|
-
<div viewFooter kendoWorkHoursFooter [showWorkHours]="shouldShowWorkHours" (itemClick)="showWorkHours = !shouldShowWorkHours"></div>
|
|
113
|
-
}
|
|
114
|
-
</ng-template>
|
|
115
|
-
`, isInline: true, dependencies: [{ kind: "component", type: MultiDayViewRendererComponent, selector: "multi-day-view", inputs: ["hiddenDays", "allDaySlot", "name", "slotFill", "allDaySlotTemplate", "allDayEventTemplate"] }, { kind: "component", type: ViewFooterComponent, selector: "[viewFooter]", inputs: ["items"], outputs: ["itemClick"] }, { kind: "directive", type: WorkHoursFooterDirective, selector: "[kendoWorkHoursFooter]", inputs: ["showWorkHours"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
116
|
-
}
|
|
117
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: WorkWeekViewComponent, decorators: [{
|
|
118
|
-
type: Component,
|
|
119
|
-
args: [{
|
|
120
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
121
|
-
selector: 'kendo-scheduler-work-week-view',
|
|
122
|
-
providers: [{
|
|
123
|
-
provide: SchedulerView,
|
|
124
|
-
useExisting: forwardRef(() => WorkWeekViewComponent)
|
|
125
|
-
}],
|
|
126
|
-
template: `
|
|
127
|
-
<ng-template #content>
|
|
128
|
-
<multi-day-view
|
|
129
|
-
viewName="workWeekview"
|
|
130
|
-
[allDaySlot]="viewAllDaySlot"
|
|
131
|
-
[name]="name"
|
|
132
|
-
[numberOfDays]="numberOfDays"
|
|
133
|
-
[hiddenDays]="viewHiddenDays"
|
|
134
|
-
[getStartDate]="getStartDate"
|
|
135
|
-
[getNextDate]="getNextDate"
|
|
136
|
-
[eventHeight]="viewEventHeight"
|
|
137
|
-
[currentTimeMarker]="viewCurrentTimeMarker"
|
|
138
|
-
[highlightOngoingEvents]="viewHighlightOngoingEvents"
|
|
139
|
-
[showWorkHours]="shouldShowWorkHours"
|
|
140
|
-
[scrollTime]="viewScrollTime"
|
|
141
|
-
[startTime]="viewStartTime"
|
|
142
|
-
[endTime]="viewEndTime"
|
|
143
|
-
[workDayStart]="viewWorkDayStart"
|
|
144
|
-
[workDayEnd]="viewWorkDayEnd"
|
|
145
|
-
[workWeekStart]="viewWorkWeekStart"
|
|
146
|
-
[workWeekEnd]="viewWorkWeekEnd"
|
|
147
|
-
[slotDuration]="viewSlotDuration"
|
|
148
|
-
[slotDivisions]="viewSlotDivisions"
|
|
149
|
-
[slotFill]="viewSlotFill"
|
|
150
|
-
[slotClass]="viewSlotClass"
|
|
151
|
-
[eventClass]="viewEventClass"
|
|
152
|
-
[eventStyles]="viewEventStyles"
|
|
153
|
-
[allDaySlotTemplate]="allDaySlotTemplate?.templateRef"
|
|
154
|
-
[allDayEventTemplate]="allDayEventTemplate?.templateRef"
|
|
155
|
-
[eventTemplate]="eventTemplate?.templateRef"
|
|
156
|
-
[groupHeaderTemplate]="groupHeaderTemplate?.templateRef"
|
|
157
|
-
[timeSlotTemplate]="timeSlotTemplate?.templateRef"
|
|
158
|
-
[minorTimeHeaderTemplate]="minorTimeHeaderTemplate?.templateRef"
|
|
159
|
-
[majorTimeHeaderTemplate]="majorTimeHeaderTemplate?.templateRef"
|
|
160
|
-
[dateHeaderTemplate]="dateHeaderTemplate?.templateRef"
|
|
161
|
-
[selectedDateFormat]="selectedDateFormat"
|
|
162
|
-
[selectedShortDateFormat]="selectedShortDateFormat">
|
|
163
|
-
</multi-day-view>
|
|
164
|
-
@if (viewShowFooter) {
|
|
165
|
-
<div viewFooter kendoWorkHoursFooter [showWorkHours]="shouldShowWorkHours" (itemClick)="showWorkHours = !shouldShowWorkHours"></div>
|
|
166
|
-
}
|
|
167
|
-
</ng-template>
|
|
168
|
-
`,
|
|
169
|
-
standalone: true,
|
|
170
|
-
imports: [MultiDayViewRendererComponent, ViewFooterComponent, WorkHoursFooterDirective]
|
|
171
|
-
}]
|
|
172
|
-
}], ctorParameters: () => [{ type: i1.IntlService }, { type: i2.LocalizationService }, { type: i0.ChangeDetectorRef }, { type: i3.ViewContextService }, { type: i4.ViewStateService }] });
|