@progress/kendo-angular-scheduler 17.0.0-develop.8 → 17.0.0
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/data-binding.directive.d.ts +1 -1
- package/editing/date-time-picker.component.d.ts +1 -1
- package/editing/edit-dialog-template.directive.d.ts +1 -1
- package/editing/edit-dialog.component.d.ts +1 -1
- package/editing/edit.service.d.ts +3 -3
- package/editing/recurrence/end-rule-radio-button.directive.d.ts +1 -1
- package/editing/recurrence/localization/messages.d.ts +1 -1
- package/editing/recurrence/recurrence-editor.component.d.ts +1 -1
- package/editing/recurrence/recurrence-end-rule-editor.component.d.ts +1 -1
- package/editing/recurrence/recurrence-interval-editor.component.d.ts +1 -1
- package/editing/recurrence/recurrence-monthly-yearly-editor.component.d.ts +1 -1
- package/editing/recurrence/recurrence.service.d.ts +4 -4
- package/editing/recurrence/repeat-on-radio-button.directive.d.ts +1 -1
- package/editing/resource-editor-base.d.ts +1 -1
- package/editing/timezone-editor.component.d.ts +1 -1
- package/editing-directives/editing-directive-base.d.ts +1 -1
- package/editing-directives/reactive-editing.directive.d.ts +1 -1
- package/{esm2020 → esm2022}/data-binding.directive.mjs +20 -13
- package/{esm2020 → esm2022}/editing/date-time-picker.component.mjs +15 -9
- package/{esm2020 → esm2022}/editing/dialogs.service.mjs +10 -4
- package/{esm2020 → esm2022}/editing/edit-dialog-template.directive.mjs +8 -3
- package/{esm2020 → esm2022}/editing/edit-dialog.component.mjs +44 -25
- package/{esm2020 → esm2022}/editing/edit.service.mjs +9 -5
- package/{esm2020 → esm2022}/editing/local-data-changes.service.mjs +5 -6
- package/{esm2020 → esm2022}/editing/recurrence/end-rule-radio-button.directive.mjs +13 -6
- package/{esm2020 → esm2022}/editing/recurrence/localization/custom-messages.component.mjs +9 -8
- package/{esm2020 → esm2022}/editing/recurrence/localization/localized-messages.directive.mjs +9 -8
- package/esm2022/editing/recurrence/localization/messages.mjs +239 -0
- package/{esm2020 → esm2022}/editing/recurrence/localization/recurrence-localization.service.mjs +4 -3
- package/{esm2020 → esm2022}/editing/recurrence/recurrence-editor.component.mjs +61 -36
- package/{esm2020 → esm2022}/editing/recurrence/recurrence-end-rule-editor.component.mjs +33 -26
- package/{esm2020 → esm2022}/editing/recurrence/recurrence-frequency-editor.component.mjs +8 -4
- package/{esm2020 → esm2022}/editing/recurrence/recurrence-interval-editor.component.mjs +18 -15
- package/{esm2020 → esm2022}/editing/recurrence/recurrence-monthly-yearly-editor.component.mjs +28 -15
- package/{esm2020 → esm2022}/editing/recurrence/recurrence-weekday-rule-editor.component.mjs +9 -5
- package/{esm2020 → esm2022}/editing/recurrence/recurrence.service.mjs +13 -7
- package/{esm2020 → esm2022}/editing/recurrence/repeat-on-radio-button.directive.mjs +18 -11
- package/{esm2020 → esm2022}/editing/resource-editor-base.mjs +9 -9
- package/{esm2020 → esm2022}/editing/resource-multiple-editor.component.mjs +7 -6
- package/{esm2020 → esm2022}/editing/resource-single-editor.component.mjs +7 -6
- package/{esm2020 → esm2022}/editing/timezone-editor.component.mjs +28 -22
- package/{esm2020 → esm2022}/editing-directives/base-edit.service.mjs +28 -11
- package/{esm2020 → esm2022}/editing-directives/editing-directive-base.mjs +27 -20
- package/{esm2020 → esm2022}/editing-directives/local-edit.service.mjs +6 -4
- package/{esm2020 → esm2022}/editing-directives/reactive-editing.directive.mjs +10 -3
- package/{esm2020 → esm2022}/events/add-event.mjs +8 -0
- package/{esm2020 → esm2022}/events/cancel-event.mjs +4 -0
- package/{esm2020 → esm2022}/events/create-event.mjs +24 -0
- package/{esm2020 → esm2022}/events/date-change-event.mjs +12 -0
- package/{esm2020 → esm2022}/events/drag-end-event.mjs +28 -0
- package/esm2022/events/drag-event.mjs +54 -0
- package/{esm2020 → esm2022}/events/drag-start-event.mjs +12 -0
- package/{esm2020 → esm2022}/events/edit-event-base.mjs +16 -0
- package/{esm2020 → esm2022}/events/edit-event.mjs +12 -0
- package/{esm2020 → esm2022}/events/event-click-event.mjs +16 -0
- package/{esm2020 → esm2022}/events/event-keydown-event.mjs +12 -0
- package/{esm2020 → esm2022}/events/navigate-event.mjs +8 -0
- package/{esm2020 → esm2022}/events/preventable-event.mjs +1 -3
- package/{esm2020 → esm2022}/events/remove-event.mjs +12 -0
- package/{esm2020 → esm2022}/events/resize-end-event.mjs +20 -0
- package/{esm2020 → esm2022}/events/resize-event.mjs +28 -0
- package/{esm2020 → esm2022}/events/resize-start-event.mjs +12 -0
- package/{esm2020 → esm2022}/events/save-event.mjs +8 -0
- package/{esm2020 → esm2022}/events/slot-click-event.mjs +28 -0
- package/{esm2020 → esm2022}/events/slot-drag-event.mjs +24 -0
- package/{esm2020 → esm2022}/events/slot-drag-start-event.mjs +24 -0
- package/{esm2020 → esm2022}/index.mjs +0 -6
- package/{esm2020 → esm2022}/loading.component.mjs +12 -8
- package/{esm2020 → esm2022}/localization/custom-messages.component.mjs +9 -8
- package/{esm2020 → esm2022}/localization/localized-messages.directive.mjs +9 -8
- package/esm2022/localization/messages.mjs +614 -0
- package/{esm2020 → esm2022}/localization/scheduler-localization.service.mjs +3 -3
- package/{esm2020 → esm2022}/navigation/focus.service.mjs +21 -15
- package/{esm2020 → esm2022}/navigation/focusable.directive.mjs +19 -15
- package/esm2022/navigation/shortcuts.directive.mjs +220 -0
- package/{esm2020 → esm2022}/package-metadata.mjs +2 -2
- package/{esm2020 → esm2022}/pdf/pdf-command.directive.mjs +9 -8
- package/{esm2020 → esm2022}/pdf/pdf.component.mjs +93 -8
- package/{esm2020 → esm2022}/pdf/pdf.module.mjs +4 -4
- package/{esm2020 → esm2022}/pdf/pdf.service.mjs +7 -9
- package/{esm2020 → esm2022}/scheduler.component.mjs +412 -256
- package/{esm2020 → esm2022}/scheduler.module.mjs +30 -30
- package/{esm2020 → esm2022}/toolbar/navigation.component.mjs +49 -34
- package/{esm2020 → esm2022}/toolbar/toolbar-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/toolbar/toolbar.component.mjs +29 -18
- package/{esm2020 → esm2022}/toolbar/toolbar.service.mjs +16 -4
- package/{esm2020 → esm2022}/toolbar/view-selector.component.mjs +23 -15
- package/{esm2020 → esm2022}/types/slot-selection.mjs +16 -0
- package/{esm2020 → esm2022}/views/agenda/agenda-header-item.component.mjs +9 -9
- package/{esm2020 → esm2022}/views/agenda/agenda-header.component.mjs +10 -8
- package/{esm2020 → esm2022}/views/agenda/agenda-task-item.component.mjs +18 -12
- package/{esm2020 → esm2022}/views/agenda/agenda-view-internal.component.mjs +48 -17
- package/{esm2020 → esm2022}/views/agenda/agenda-view-list.component.mjs +17 -7
- package/{esm2020 → esm2022}/views/agenda/agenda-view.component.mjs +46 -41
- package/{esm2020 → esm2022}/views/agenda/tasks.collection.mjs +8 -4
- package/{esm2020 → esm2022}/views/common/base-view.mjs +93 -36
- package/{esm2020 → esm2022}/views/common/configuration-view-base.mjs +52 -15
- package/esm2022/views/common/dom-events.service.mjs +22 -0
- package/{esm2020 → esm2022}/views/common/hint-container.component.mjs +6 -4
- package/{esm2020 → esm2022}/views/common/repeat.pipe.mjs +7 -6
- package/{esm2020 → esm2022}/views/common/resize-hint.component.mjs +7 -7
- package/{esm2020 → esm2022}/views/common/resource-iterator.pipe.mjs +9 -7
- package/{esm2020 → esm2022}/views/common/slot-selectable.directive.mjs +22 -10
- package/{esm2020 → esm2022}/views/common/view-footer.component.mjs +14 -12
- package/{esm2020 → esm2022}/views/common/work-hours-footer.directive.mjs +7 -5
- package/{esm2020 → esm2022}/views/day-time/day-time-slot.service.mjs +11 -7
- package/{esm2020 → esm2022}/views/day-time/day-time-view-base.mjs +81 -8
- package/{esm2020 → esm2022}/views/day-time/day-time-view-item.component.mjs +18 -14
- package/{esm2020 → esm2022}/views/day-time/day-time-view.component.mjs +50 -29
- package/{esm2020 → esm2022}/views/day-time/event-slot.directive.mjs +23 -14
- package/{esm2020 → esm2022}/views/month/month-slot.component.mjs +21 -11
- package/{esm2020 → esm2022}/views/month/month-slot.service.mjs +8 -6
- package/{esm2020 → esm2022}/views/month/month-view-item.component.mjs +10 -9
- package/{esm2020 → esm2022}/views/month/month-view-renderer.component.mjs +31 -15
- package/{esm2020 → esm2022}/views/month/month-view.component.mjs +49 -31
- package/{esm2020 → esm2022}/views/month/multi-week-view.component.mjs +53 -35
- package/{esm2020 → esm2022}/views/multi-day/day-view.component.mjs +25 -17
- package/{esm2020 → esm2022}/views/multi-day/multi-day-view-base.mjs +17 -6
- package/{esm2020 → esm2022}/views/multi-day/multi-day-view-renderer.component.mjs +22 -13
- package/{esm2020 → esm2022}/views/multi-day/multi-day-view.component.mjs +22 -20
- package/{esm2020 → esm2022}/views/multi-day/week-view.component.mjs +44 -35
- package/{esm2020 → esm2022}/views/multi-day/work-week-view.component.mjs +16 -16
- package/{esm2020 → esm2022}/views/scheduler-view.directive.mjs +16 -10
- package/{esm2020 → esm2022}/views/templates/agenda-date-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/views/templates/agenda-time-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/views/templates/all-day-event-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/views/templates/all-day-slot-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/views/templates/date-header-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/views/templates/event-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/views/templates/group-header-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/views/templates/major-time-header-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/views/templates/minor-time-header-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/views/templates/month-day-slot-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/views/templates/multi-week-day-slot-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/views/templates/time-slot-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/views/timeline/timeline-base.mjs +10 -6
- package/{esm2020 → esm2022}/views/timeline/timeline-month-view.component.mjs +36 -34
- package/{esm2020 → esm2022}/views/timeline/timeline-multi-day-view.component.mjs +16 -13
- package/{esm2020 → esm2022}/views/timeline/timeline-view.component.mjs +18 -16
- package/{esm2020 → esm2022}/views/timeline/timeline-week-view.component.mjs +40 -40
- package/{esm2020 → esm2022}/views/timeline/utils.mjs +3 -3
- package/{esm2020 → esm2022}/views/view-context.service.mjs +33 -9
- package/{esm2020 → esm2022}/views/view-items/base-slot.directive.mjs +15 -9
- package/{esm2020 → esm2022}/views/view-items/base-slot.service.mjs +3 -5
- package/{esm2020 → esm2022}/views/view-items/base-view-item.mjs +30 -15
- package/{esm2020 → esm2022}/views/view-items/item-map.mjs +2 -4
- package/{esm2020 → esm2022}/views/view-state.service.mjs +56 -20
- package/{esm2020 → esm2022}/views/year/year-view-internal.component.mjs +45 -27
- package/{esm2020 → esm2022}/views/year/year-view.component.mjs +38 -31
- package/{fesm2020 → fesm2022}/progress-kendo-angular-scheduler.mjs +3642 -1967
- package/index.d.ts +0 -6
- package/loading.component.d.ts +1 -1
- package/localization/messages.d.ts +1 -1
- package/navigation/focusable.directive.d.ts +1 -1
- package/package.json +24 -30
- package/pdf/pdf.component.d.ts +1 -1
- package/scheduler.component.d.ts +1 -1
- package/schematics/ngAdd/index.js +4 -4
- package/toolbar/navigation.component.d.ts +1 -1
- package/toolbar/toolbar.component.d.ts +1 -1
- package/toolbar/view-selector.component.d.ts +1 -1
- package/types/actions.d.ts +1 -1
- package/types/focusable-container.d.ts +1 -1
- package/types/slot-selection.d.ts +1 -1
- package/views/agenda/agenda-header-item.component.d.ts +1 -1
- package/views/agenda/agenda-header.component.d.ts +1 -1
- package/views/agenda/agenda-task-item.component.d.ts +1 -1
- package/views/agenda/agenda-view-internal.component.d.ts +1 -1
- package/views/agenda/agenda-view-list.component.d.ts +1 -1
- package/views/agenda/agenda-view.component.d.ts +2 -6
- package/views/common/base-view.d.ts +1 -1
- package/views/common/configuration-view-base.d.ts +1 -1
- package/views/common/resize-hint.component.d.ts +1 -1
- package/views/common/slot-selectable.directive.d.ts +1 -1
- package/views/common/view-footer.component.d.ts +1 -1
- package/views/common/work-hours-footer.directive.d.ts +1 -1
- package/views/day-time/day-time-view-base.d.ts +2 -6
- package/views/day-time/day-time-view-item.component.d.ts +1 -1
- package/views/day-time/day-time-view.component.d.ts +1 -1
- package/views/day-time/event-slot.directive.d.ts +2 -2
- package/views/month/month-slot.component.d.ts +1 -1
- package/views/month/month-view-renderer.component.d.ts +1 -1
- package/views/month/month-view.component.d.ts +7 -4
- package/views/month/multi-week-view.component.d.ts +7 -4
- package/views/multi-day/day-view.component.d.ts +1 -1
- package/views/multi-day/multi-day-view-base.d.ts +1 -1
- package/views/multi-day/multi-day-view-renderer.component.d.ts +1 -1
- package/views/multi-day/multi-day-view.component.d.ts +1 -1
- package/views/multi-day/week-view.component.d.ts +1 -1
- package/views/scheduler-view.directive.d.ts +1 -1
- package/views/timeline/timeline-base.d.ts +1 -1
- package/views/timeline/timeline-month-view.component.d.ts +1 -1
- package/views/timeline/timeline-multi-day-view.component.d.ts +1 -1
- package/views/timeline/timeline-view.component.d.ts +1 -1
- package/views/timeline/timeline-week-view.component.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/views/year/year-view-internal.component.d.ts +1 -4
- package/views/year/year-view.component.d.ts +6 -6
- package/esm2020/editing/recurrence/localization/messages.mjs +0 -91
- package/esm2020/events/drag-event.mjs +0 -18
- package/esm2020/localization/messages.mjs +0 -213
- package/esm2020/navigation/shortcuts.directive.mjs +0 -213
- package/esm2020/shared.module.mjs +0 -40
- package/esm2020/views/common/dom-events.service.mjs +0 -24
- package/esm2020/views/common/views-shared.module.mjs +0 -62
- package/esm2020/views/day-time/day-time.module.mjs +0 -39
- package/esm2020/views/month/month-view.module.mjs +0 -47
- package/esm2020/views/multi-day/multi-day-view.module.mjs +0 -52
- package/esm2020/views/timeline/timeline-view.module.mjs +0 -48
- package/fesm2015/progress-kendo-angular-scheduler.mjs +0 -19229
- package/shared.module.d.ts +0 -19
- package/views/common/views-shared.module.d.ts +0 -22
- package/views/day-time/day-time.module.d.ts +0 -18
- package/views/month/month-view.module.d.ts +0 -18
- package/views/multi-day/multi-day-view.module.d.ts +0 -20
- package/views/timeline/timeline-view.module.d.ts +0 -19
- /package/{esm2020 → esm2022}/common/constants.mjs +0 -0
- /package/{esm2020 → esm2022}/common/default-model-fields.mjs +0 -0
- /package/{esm2020 → esm2022}/common/dom-queries.mjs +0 -0
- /package/{esm2020 → esm2022}/common/getter.mjs +0 -0
- /package/{esm2020 → esm2022}/common/modifiers.mjs +0 -0
- /package/{esm2020 → esm2022}/common/setter.mjs +0 -0
- /package/{esm2020 → esm2022}/common/util.mjs +0 -0
- /package/{esm2020 → esm2022}/directives.mjs +0 -0
- /package/{esm2020 → esm2022}/editing-directives/edit-service.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/editing-directives/utils.mjs +0 -0
- /package/{esm2020 → esm2022}/events/slot-drag-end-event.mjs +0 -0
- /package/{esm2020 → esm2022}/events/view-event-map.mjs +0 -0
- /package/{esm2020 → esm2022}/events.mjs +0 -0
- /package/{esm2020 → esm2022}/navigation/focus-position.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/navigation/focusable-element.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/navigation.mjs +0 -0
- /package/{esm2020 → esm2022}/pdf/pdf-export-event.mjs +0 -0
- /package/{esm2020 → esm2022}/progress-kendo-angular-scheduler.mjs +0 -0
- /package/{esm2020 → esm2022}/toolbar/toolbar-context.mjs +0 -0
- /package/{esm2020 → esm2022}/types/actions.mjs +0 -0
- /package/{esm2020 → esm2022}/types/create-form-group-args.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/types/crud-operation.enum.mjs +0 -0
- /package/{esm2020 → esm2022}/types/current-time-settings.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/types/date-range.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/types/datepicker-options.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/types/edit-event-args.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/types/edit-mode.enum.mjs +0 -0
- /package/{esm2020 → esm2022}/types/editable-settings.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/types/event-style-args.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/types/focusable-container.mjs +0 -0
- /package/{esm2020 → esm2022}/types/group.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/types/numeric-options.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/types/ongoing-events-settings.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/types/resource.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/types/scheduler-event.mjs +0 -0
- /package/{esm2020 → esm2022}/types/scheduler-model-fields.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/types/scheduler-slot.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/types/scheduler-view.mjs +0 -0
- /package/{esm2020 → esm2022}/types/slot-class-args.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/types/view-item.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/types.mjs +0 -0
- /package/{esm2020 → esm2022}/views/agenda/utils.mjs +0 -0
- /package/{esm2020 → esm2022}/views/common/scheduler-task.mjs +0 -0
- /package/{esm2020 → esm2022}/views/constants.mjs +0 -0
- /package/{esm2020 → esm2022}/views/day-time/utils.mjs +0 -0
- /package/{esm2020 → esm2022}/views/month/utils.mjs +0 -0
- /package/{esm2020 → esm2022}/views/multi-day/utils.mjs +0 -0
- /package/{esm2020 → esm2022}/views/templates.mjs +0 -0
- /package/{esm2020 → esm2022}/views/utils.mjs +0 -0
- /package/{esm2020 → esm2022}/views/view-items/types.mjs +0 -0
- /package/{esm2020 → esm2022}/views/year/utils.mjs +0 -0
|
@@ -11,9 +11,9 @@ import * as i0 from "@angular/core";
|
|
|
11
11
|
* @hidden
|
|
12
12
|
*/
|
|
13
13
|
export class ResizeHintComponent {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
hint;
|
|
15
|
+
format;
|
|
16
|
+
marqueeClasses = true;
|
|
17
17
|
get left() {
|
|
18
18
|
return this.hint.rect.left;
|
|
19
19
|
}
|
|
@@ -32,16 +32,16 @@ export class ResizeHintComponent {
|
|
|
32
32
|
get end() {
|
|
33
33
|
return toLocalDate(this.hint.end);
|
|
34
34
|
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
ResizeHintComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ResizeHintComponent, isStandalone: true, selector: "[kendoResizeHint]", inputs: { hint: "hint", format: "format" }, host: { properties: { "class.k-marquee": "this.marqueeClasses", "class.k-scheduler-marquee": "this.marqueeClasses", "class.k-first": "this.marqueeClasses", "class.k-last": "this.marqueeClasses", "style.left.px": "this.left", "style.right.px": "this.left", "style.top.px": "this.top", "style.width.px": "this.width", "style.height.px": "this.height" } }, ngImport: i0, template: `
|
|
35
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ResizeHintComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
36
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: ResizeHintComponent, isStandalone: true, selector: "[kendoResizeHint]", inputs: { hint: "hint", format: "format" }, host: { properties: { "class.k-marquee": "this.marqueeClasses", "class.k-scheduler-marquee": "this.marqueeClasses", "class.k-first": "this.marqueeClasses", "class.k-last": "this.marqueeClasses", "style.left.px": "this.left", "style.right.px": "this.left", "style.top.px": "this.top", "style.width.px": "this.width", "style.height.px": "this.height" } }, ngImport: i0, template: `
|
|
38
37
|
<div class="k-marquee-color"></div>
|
|
39
38
|
<div class="k-marquee-text">
|
|
40
39
|
<div class="k-label-top" *ngIf="hint.first">{{ start | kendoDate : format }}</div>
|
|
41
40
|
<div class="k-label-bottom" *ngIf="hint.last">{{ end | kendoDate : format }}</div>
|
|
42
41
|
</div>
|
|
43
42
|
`, isInline: true, dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: DatePipe, name: "kendoDate" }] });
|
|
44
|
-
|
|
43
|
+
}
|
|
44
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ResizeHintComponent, decorators: [{
|
|
45
45
|
type: Component,
|
|
46
46
|
args: [{
|
|
47
47
|
// eslint-disable-next-line @angular-eslint/component-selector
|
|
@@ -6,10 +6,8 @@ import { Pipe } from '@angular/core';
|
|
|
6
6
|
import { iterator } from '../../common/util';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
class ResourceIterator {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
this.lastIndex = lastIndex;
|
|
12
|
-
}
|
|
9
|
+
resources;
|
|
10
|
+
lastIndex;
|
|
13
11
|
*[iterator]() {
|
|
14
12
|
let resources = this.resources;
|
|
15
13
|
const lastIndex = Math.max(0, this.lastIndex);
|
|
@@ -26,6 +24,10 @@ class ResourceIterator {
|
|
|
26
24
|
yield lastData[idx % length];
|
|
27
25
|
}
|
|
28
26
|
}
|
|
27
|
+
constructor(resources, lastIndex = resources.length - 1) {
|
|
28
|
+
this.resources = resources;
|
|
29
|
+
this.lastIndex = lastIndex;
|
|
30
|
+
}
|
|
29
31
|
}
|
|
30
32
|
/**
|
|
31
33
|
* @hidden
|
|
@@ -34,10 +36,10 @@ export class ResourceIteratorPipe {
|
|
|
34
36
|
transform(resources = [], lastIndex) {
|
|
35
37
|
return new ResourceIterator(resources, lastIndex);
|
|
36
38
|
}
|
|
39
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ResourceIteratorPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
40
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: ResourceIteratorPipe, isStandalone: true, name: "resourceIterator" });
|
|
37
41
|
}
|
|
38
|
-
|
|
39
|
-
ResourceIteratorPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: ResourceIteratorPipe, isStandalone: true, name: "resourceIterator" });
|
|
40
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ResourceIteratorPipe, decorators: [{
|
|
42
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ResourceIteratorPipe, decorators: [{
|
|
41
43
|
type: Pipe,
|
|
42
44
|
args: [{
|
|
43
45
|
// eslint-disable-next-line @angular-eslint/pipe-prefix
|
|
@@ -15,16 +15,28 @@ import * as i1 from "../../scheduler.component";
|
|
|
15
15
|
* ([see example]({% slug slotselection_scheduler %}#toc-built-in-directive)).
|
|
16
16
|
*/
|
|
17
17
|
export class SlotSelectableDirective {
|
|
18
|
+
scheduler;
|
|
19
|
+
cdr;
|
|
20
|
+
/**
|
|
21
|
+
* The currently selected slot range.
|
|
22
|
+
*/
|
|
23
|
+
slotSelection;
|
|
24
|
+
/**
|
|
25
|
+
* Fires when the currently selected slot range has changed through user interaction.
|
|
26
|
+
*/
|
|
27
|
+
slotSelectionChange = new EventEmitter();
|
|
28
|
+
/**
|
|
29
|
+
* @hidden
|
|
30
|
+
* The resources of the cell where the selection started.
|
|
31
|
+
* When dragging over the slots of a different resource in grouped mode, the ongoing selection will not be affected.
|
|
32
|
+
*/
|
|
33
|
+
selectionOriginResources;
|
|
34
|
+
selectedRange = null;
|
|
35
|
+
slotSelectionChangeSource = new EventEmitter();
|
|
36
|
+
subscriptions = new Subscription();
|
|
18
37
|
constructor(scheduler, cdr) {
|
|
19
38
|
this.scheduler = scheduler;
|
|
20
39
|
this.cdr = cdr;
|
|
21
|
-
/**
|
|
22
|
-
* Fires when the currently selected slot range has changed through user interaction.
|
|
23
|
-
*/
|
|
24
|
-
this.slotSelectionChange = new EventEmitter();
|
|
25
|
-
this.selectedRange = null;
|
|
26
|
-
this.slotSelectionChangeSource = new EventEmitter();
|
|
27
|
-
this.subscriptions = new Subscription();
|
|
28
40
|
this.scheduler.selectable = true;
|
|
29
41
|
this.subscriptions.add(this.slotSelectionChangeSource
|
|
30
42
|
.pipe(distinctUntilChanged(isSameRange)).subscribe((v) => {
|
|
@@ -97,10 +109,10 @@ export class SlotSelectableDirective {
|
|
|
97
109
|
}
|
|
98
110
|
return intersects(start, end, this.selectedRange.start, this.selectedRange.end);
|
|
99
111
|
}
|
|
112
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SlotSelectableDirective, deps: [{ token: i1.SchedulerComponent }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
113
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: SlotSelectableDirective, isStandalone: true, selector: "[kendoSchedulerSlotSelectable]", inputs: { slotSelection: "slotSelection" }, outputs: { slotSelectionChange: "slotSelectionChange" }, usesOnChanges: true, ngImport: i0 });
|
|
100
114
|
}
|
|
101
|
-
|
|
102
|
-
SlotSelectableDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: SlotSelectableDirective, isStandalone: true, selector: "[kendoSchedulerSlotSelectable]", inputs: { slotSelection: "slotSelection" }, outputs: { slotSelectionChange: "slotSelectionChange" }, usesOnChanges: true, ngImport: i0 });
|
|
103
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SlotSelectableDirective, decorators: [{
|
|
115
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SlotSelectableDirective, decorators: [{
|
|
104
116
|
type: Directive,
|
|
105
117
|
args: [{
|
|
106
118
|
selector: '[kendoSchedulerSlotSelectable]',
|
|
@@ -13,15 +13,17 @@ import * as i1 from "../view-state.service";
|
|
|
13
13
|
* @hidden
|
|
14
14
|
*/
|
|
15
15
|
export class ViewFooterComponent {
|
|
16
|
+
hostClasses = true;
|
|
17
|
+
toolbarRole = 'toolbar';
|
|
18
|
+
sub;
|
|
19
|
+
/**
|
|
20
|
+
* @hidden
|
|
21
|
+
* TODO: Drop in next MAJOR version
|
|
22
|
+
*/
|
|
23
|
+
inlineJustifyContentStyle = 'start';
|
|
24
|
+
itemClick = new EventEmitter();
|
|
25
|
+
items;
|
|
16
26
|
constructor(viewState) {
|
|
17
|
-
this.hostClasses = true;
|
|
18
|
-
this.toolbarRole = 'toolbar';
|
|
19
|
-
/**
|
|
20
|
-
* @hidden
|
|
21
|
-
* TODO: Drop in next MAJOR version
|
|
22
|
-
*/
|
|
23
|
-
this.inlineJustifyContentStyle = 'start';
|
|
24
|
-
this.itemClick = new EventEmitter();
|
|
25
27
|
this.sub = viewState.toggleWorkHours.subscribe(() => this.itemClick.emit());
|
|
26
28
|
}
|
|
27
29
|
ngOnDestroy() {
|
|
@@ -32,9 +34,8 @@ export class ViewFooterComponent {
|
|
|
32
34
|
e.preventDefault();
|
|
33
35
|
this.itemClick.emit(item);
|
|
34
36
|
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
ViewFooterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ViewFooterComponent, isStandalone: true, selector: "[viewFooter]", inputs: { items: "items" }, outputs: { itemClick: "itemClick" }, host: { properties: { "class.k-scheduler-footer": "this.hostClasses", "class.k-toolbar": "this.hostClasses", "class.k-toolbar-solid": "this.hostClasses", "class.k-toolbar-md": "this.hostClasses", "attr.role": "this.toolbarRole", "style.justify-content": "this.inlineJustifyContentStyle" } }, ngImport: i0, template: `
|
|
37
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ViewFooterComponent, deps: [{ token: i1.ViewStateService }], target: i0.ɵɵFactoryTarget.Component });
|
|
38
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: ViewFooterComponent, isStandalone: true, selector: "[viewFooter]", inputs: { items: "items" }, outputs: { itemClick: "itemClick" }, host: { properties: { "class.k-scheduler-footer": "this.hostClasses", "class.k-toolbar": "this.hostClasses", "class.k-toolbar-solid": "this.hostClasses", "class.k-toolbar-md": "this.hostClasses", "attr.role": "this.toolbarRole", "style.justify-content": "this.inlineJustifyContentStyle" } }, ngImport: i0, template: `
|
|
38
39
|
<span class="k-scheduler-navigation">
|
|
39
40
|
<button
|
|
40
41
|
*ngFor="let item of items"
|
|
@@ -50,7 +51,8 @@ ViewFooterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", ve
|
|
|
50
51
|
</button>
|
|
51
52
|
</span>
|
|
52
53
|
`, isInline: true, dependencies: [{ kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: FocusableDirective, selector: "[kendoSchedulerFocusIndex]", inputs: ["kendoSchedulerFocusIndex", "containerType"] }] });
|
|
53
|
-
|
|
54
|
+
}
|
|
55
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ViewFooterComponent, decorators: [{
|
|
54
56
|
type: Component,
|
|
55
57
|
args: [{
|
|
56
58
|
// eslint-disable-next-line @angular-eslint/component-selector
|
|
@@ -13,11 +13,13 @@ import * as i2 from "@progress/kendo-angular-l10n";
|
|
|
13
13
|
* @hidden
|
|
14
14
|
*/
|
|
15
15
|
export class WorkHoursFooterDirective {
|
|
16
|
+
footer;
|
|
17
|
+
localization;
|
|
18
|
+
showWorkHours = false;
|
|
19
|
+
footerItems = [{ cssClass: 'k-scheduler-fullday', fontIcon: 'clock', svgIcon: clockIcon, text: '' }];
|
|
16
20
|
constructor(footer, localization) {
|
|
17
21
|
this.footer = footer;
|
|
18
22
|
this.localization = localization;
|
|
19
|
-
this.showWorkHours = false;
|
|
20
|
-
this.footerItems = [{ cssClass: 'k-scheduler-fullday', fontIcon: 'clock', svgIcon: clockIcon, text: '' }];
|
|
21
23
|
}
|
|
22
24
|
ngOnInit() {
|
|
23
25
|
this.toggleWorkHours();
|
|
@@ -29,10 +31,10 @@ export class WorkHoursFooterDirective {
|
|
|
29
31
|
toggleWorkHours() {
|
|
30
32
|
this.footerItems[0].text = this.showWorkHours ? this.localization.get('showFullDay') : this.localization.get('showWorkDay');
|
|
31
33
|
}
|
|
34
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: WorkHoursFooterDirective, deps: [{ token: i1.ViewFooterComponent }, { token: i2.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
35
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: WorkHoursFooterDirective, isStandalone: true, selector: "[kendoWorkHoursFooter]", inputs: { showWorkHours: "showWorkHours" }, usesOnChanges: true, ngImport: i0 });
|
|
32
36
|
}
|
|
33
|
-
|
|
34
|
-
WorkHoursFooterDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: WorkHoursFooterDirective, isStandalone: true, selector: "[kendoWorkHoursFooter]", inputs: { showWorkHours: "showWorkHours" }, usesOnChanges: true, ngImport: i0 });
|
|
35
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WorkHoursFooterDirective, decorators: [{
|
|
37
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: WorkHoursFooterDirective, decorators: [{
|
|
36
38
|
type: Directive,
|
|
37
39
|
args: [{
|
|
38
40
|
selector: '[kendoWorkHoursFooter]',
|
|
@@ -159,11 +159,7 @@ function setHorizontalOffsets(slotItems, items, measureTime) {
|
|
|
159
159
|
}
|
|
160
160
|
/** @hidden */
|
|
161
161
|
export class SlotRange {
|
|
162
|
-
|
|
163
|
-
this.index = index;
|
|
164
|
-
this.slotMap = new ItemMap();
|
|
165
|
-
this.itemMap = new ItemMap();
|
|
166
|
-
}
|
|
162
|
+
index;
|
|
167
163
|
get slots() {
|
|
168
164
|
return this.slotMap.toArray();
|
|
169
165
|
}
|
|
@@ -186,6 +182,9 @@ export class SlotRange {
|
|
|
186
182
|
height: last.top - first.top + last.height
|
|
187
183
|
};
|
|
188
184
|
}
|
|
185
|
+
slotMap = new ItemMap();
|
|
186
|
+
itemMap = new ItemMap();
|
|
187
|
+
slotItems;
|
|
189
188
|
get start() {
|
|
190
189
|
const first = this.slotMap.first;
|
|
191
190
|
if (!first) {
|
|
@@ -206,6 +205,9 @@ export class SlotRange {
|
|
|
206
205
|
get hasItems() {
|
|
207
206
|
return this.itemMap.count > 0;
|
|
208
207
|
}
|
|
208
|
+
constructor(index) {
|
|
209
|
+
this.index = index;
|
|
210
|
+
}
|
|
209
211
|
registerItem(component) {
|
|
210
212
|
this.itemMap.addItem(component.item.index, component);
|
|
211
213
|
}
|
|
@@ -292,10 +294,12 @@ export class SlotRange {
|
|
|
292
294
|
* @hidden
|
|
293
295
|
*/
|
|
294
296
|
export class DayTimeResourceGroup {
|
|
297
|
+
index;
|
|
298
|
+
dayRanges = [];
|
|
299
|
+
timeRanges = [];
|
|
300
|
+
slotItems;
|
|
295
301
|
constructor(index) {
|
|
296
302
|
this.index = index;
|
|
297
|
-
this.dayRanges = [];
|
|
298
|
-
this.timeRanges = [];
|
|
299
303
|
}
|
|
300
304
|
registerSlot(slot) {
|
|
301
305
|
const range = this.slotRange(slot);
|
|
@@ -31,9 +31,81 @@ const HIGHLIGHT_ONGOING_EVENTS = 'highlightOngoingEvents';
|
|
|
31
31
|
* @hidden
|
|
32
32
|
*/
|
|
33
33
|
export class DayTimeViewBase extends ConfigurationViewBase {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
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
|
+
* The height of the events.
|
|
62
|
+
*/
|
|
63
|
+
eventHeight;
|
|
64
|
+
/**
|
|
65
|
+
* The start time of the view. The Scheduler displays events which start after the start time.
|
|
66
|
+
* Accepts string values in the `HH:mm` format.
|
|
67
|
+
*/
|
|
68
|
+
startTime;
|
|
69
|
+
/**
|
|
70
|
+
* The time to which the view will initially be scrolled.
|
|
71
|
+
* Accepts string values in the `HH:mm` format or a JavaScript `Date`.
|
|
72
|
+
*/
|
|
73
|
+
scrollTime;
|
|
74
|
+
/**
|
|
75
|
+
* The end time of the view. The Scheduler displays events which end before the end time.
|
|
76
|
+
* Accepts string values in the `HH:mm` format.
|
|
77
|
+
*/
|
|
78
|
+
endTime;
|
|
79
|
+
/**
|
|
80
|
+
* The start time of the view when `showWorkHours` is set to `true`.
|
|
81
|
+
* Accepts string values in the `HH:mm` format.
|
|
82
|
+
*/
|
|
83
|
+
workDayStart;
|
|
84
|
+
/**
|
|
85
|
+
* The end time of the view when `showWorkHours` is set to `true`.
|
|
86
|
+
* Accepts string values in the `HH:mm` format.
|
|
87
|
+
*/
|
|
88
|
+
workDayEnd;
|
|
89
|
+
/**
|
|
90
|
+
* The start of the work week.
|
|
91
|
+
*/
|
|
92
|
+
workWeekStart;
|
|
93
|
+
/**
|
|
94
|
+
* The end of the work week.
|
|
95
|
+
*/
|
|
96
|
+
workWeekEnd;
|
|
97
|
+
/**
|
|
98
|
+
* The duration (in minutes) of the time slots.
|
|
99
|
+
*/
|
|
100
|
+
slotDuration;
|
|
101
|
+
/**
|
|
102
|
+
* The number of divisions of the time slots.
|
|
103
|
+
*/
|
|
104
|
+
slotDivisions;
|
|
105
|
+
/**
|
|
106
|
+
* Specifies the settings for the current time marker of the Scheduler.
|
|
107
|
+
*/
|
|
108
|
+
currentTimeMarker;
|
|
37
109
|
/**
|
|
38
110
|
* @hidden
|
|
39
111
|
*/
|
|
@@ -118,13 +190,16 @@ export class DayTimeViewBase extends ConfigurationViewBase {
|
|
|
118
190
|
get viewShowFooter() {
|
|
119
191
|
return isPresent(this.showFooter) ? this.showFooter : this.schedulerOptions.showFooter;
|
|
120
192
|
}
|
|
193
|
+
constructor(localization, changeDetector, viewContext, viewState) {
|
|
194
|
+
super(localization, changeDetector, viewContext, viewState);
|
|
195
|
+
}
|
|
121
196
|
optionValue(name) {
|
|
122
197
|
return isPresent(this[name]) ? this[name] : this.schedulerOptions[name];
|
|
123
198
|
}
|
|
199
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DayTimeViewBase, deps: [{ token: i1.LocalizationService }, { token: i0.ChangeDetectorRef }, { token: i2.ViewContextService }, { token: i3.ViewStateService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
200
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", 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 });
|
|
124
201
|
}
|
|
125
|
-
|
|
126
|
-
DayTimeViewBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", 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", highlightOngoingEvents: "highlightOngoingEvents" }, 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 });
|
|
127
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DayTimeViewBase, decorators: [{
|
|
202
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DayTimeViewBase, decorators: [{
|
|
128
203
|
type: Directive
|
|
129
204
|
}], ctorParameters: function () { return [{ type: i1.LocalizationService }, { type: i0.ChangeDetectorRef }, { type: i2.ViewContextService }, { type: i3.ViewStateService }]; }, propDecorators: { timeSlotTemplate: [{
|
|
130
205
|
type: ContentChild,
|
|
@@ -164,6 +239,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
164
239
|
type: Input
|
|
165
240
|
}], currentTimeMarker: [{
|
|
166
241
|
type: Input
|
|
167
|
-
}], highlightOngoingEvents: [{
|
|
168
|
-
type: Input
|
|
169
242
|
}] } });
|
|
@@ -21,24 +21,27 @@ import * as i4 from "../../navigation";
|
|
|
21
21
|
* @hidden
|
|
22
22
|
*/
|
|
23
23
|
export class DayTimeViewItemComponent extends BaseViewItem {
|
|
24
|
+
intlService;
|
|
25
|
+
localeId;
|
|
26
|
+
caretAltLeftIcon = caretAltLeftIcon;
|
|
27
|
+
caretAltRightIcon = caretAltRightIcon;
|
|
28
|
+
caretAltUpIcon = caretAltUpIcon;
|
|
29
|
+
caretAltDownIcon = caretAltDownIcon;
|
|
30
|
+
arrowRotateCwIcon = arrowRotateCwIcon;
|
|
31
|
+
arrowsNoRepeatIcon = arrowsNoRepeatIcon;
|
|
32
|
+
xIcon = xIcon;
|
|
33
|
+
vertical;
|
|
34
|
+
isAllDay;
|
|
35
|
+
get eventTime() {
|
|
36
|
+
return this.intlService.format('{0:t}–{1:t}', toLocalDate(this.item.startTime), toLocalDate(this.item.endTime));
|
|
37
|
+
}
|
|
24
38
|
constructor(intlService, slotService, localization, focusService, element, renderer, localeId) {
|
|
25
39
|
super(slotService, localization, focusService, element, renderer, localeId);
|
|
26
40
|
this.intlService = intlService;
|
|
27
41
|
this.localeId = localeId;
|
|
28
|
-
this.caretAltLeftIcon = caretAltLeftIcon;
|
|
29
|
-
this.caretAltRightIcon = caretAltRightIcon;
|
|
30
|
-
this.caretAltUpIcon = caretAltUpIcon;
|
|
31
|
-
this.caretAltDownIcon = caretAltDownIcon;
|
|
32
|
-
this.arrowRotateCwIcon = arrowRotateCwIcon;
|
|
33
|
-
this.arrowsNoRepeatIcon = arrowsNoRepeatIcon;
|
|
34
|
-
this.xIcon = xIcon;
|
|
35
|
-
}
|
|
36
|
-
get eventTime() {
|
|
37
|
-
return this.intlService.format('{0:t}–{1:t}', toLocalDate(this.item.startTime), toLocalDate(this.item.endTime));
|
|
38
42
|
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
DayTimeViewItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: DayTimeViewItemComponent, isStandalone: true, selector: "[dayTimeViewItem]", inputs: { vertical: "vertical", isAllDay: "isAllDay" }, usesInheritance: true, ngImport: i0, template: `
|
|
43
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DayTimeViewItemComponent, deps: [{ token: i1.IntlService }, { token: i2.DayTimeSlotService }, { token: i3.LocalizationService }, { token: i4.FocusService }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: LOCALE_ID }], target: i0.ɵɵFactoryTarget.Component });
|
|
44
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: DayTimeViewItemComponent, isStandalone: true, selector: "[dayTimeViewItem]", inputs: { vertical: "vertical", isAllDay: "isAllDay" }, usesInheritance: true, ngImport: i0, template: `
|
|
42
45
|
<span class="k-event-actions">
|
|
43
46
|
<kendo-icon-wrapper
|
|
44
47
|
*ngIf="item.tail && !vertical"
|
|
@@ -97,7 +100,8 @@ DayTimeViewItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0
|
|
|
97
100
|
<span class="k-resize-handle k-resize-e"></span>
|
|
98
101
|
</ng-container>
|
|
99
102
|
`, isInline: true, dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { 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"] }] });
|
|
100
|
-
|
|
103
|
+
}
|
|
104
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DayTimeViewItemComponent, decorators: [{
|
|
101
105
|
type: Component,
|
|
102
106
|
args: [{
|
|
103
107
|
// eslint-disable-next-line @angular-eslint/component-selector
|
|
@@ -34,32 +34,37 @@ const getNextDate = (date, count, numberOfDays) => getDate(addDays(date, numberO
|
|
|
34
34
|
* @hidden
|
|
35
35
|
*/
|
|
36
36
|
export class DayTimeViewComponent extends BaseView {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
37
|
+
changeDetector;
|
|
38
|
+
timeSlotTemplate;
|
|
39
|
+
dateHeaderTemplate;
|
|
40
|
+
majorTimeHeaderTemplate;
|
|
41
|
+
minorTimeHeaderTemplate;
|
|
42
|
+
numberOfDays = 1;
|
|
43
|
+
scrollTime;
|
|
44
|
+
startTime = '00:00';
|
|
45
|
+
endTime = '00:00';
|
|
46
|
+
workDayStart = '08:00';
|
|
47
|
+
workDayEnd = '17:00';
|
|
48
|
+
workWeekStart = 1;
|
|
49
|
+
workWeekEnd = 5;
|
|
50
|
+
slotDuration = 60;
|
|
51
|
+
slotDivisions = 2;
|
|
52
|
+
showWorkHours = false;
|
|
53
|
+
getStartDate = getStartDate;
|
|
54
|
+
getEndDate = getEndDate;
|
|
55
|
+
getNextDate = getNextDate;
|
|
56
|
+
currentTimeMarker;
|
|
57
|
+
highlightOngoingEvents;
|
|
58
|
+
currentTimeElements;
|
|
59
|
+
eventElements;
|
|
60
|
+
currentTimeArrows;
|
|
61
|
+
name;
|
|
62
|
+
workDayStartTime;
|
|
63
|
+
workDayEndTime;
|
|
64
|
+
daySlots = [];
|
|
65
|
+
timeSlots = [];
|
|
66
|
+
resizeHintFormat = 't';
|
|
67
|
+
showCurrentTime = false;
|
|
63
68
|
get classNames() {
|
|
64
69
|
return `k-scheduler-${this.name}view`;
|
|
65
70
|
}
|
|
@@ -75,6 +80,22 @@ export class DayTimeViewComponent extends BaseView {
|
|
|
75
80
|
get minorTimeHeaderTemplateRef() {
|
|
76
81
|
return this.minorTimeHeaderTemplate || (this.schedulerMinorTimeHeaderTemplate || {}).templateRef;
|
|
77
82
|
}
|
|
83
|
+
schedulerTimeSlotTemplate;
|
|
84
|
+
schedulerDateHeaderTemplate;
|
|
85
|
+
schedulerMajorTimeHeaderTemplate;
|
|
86
|
+
schedulerMinorTimeHeaderTemplate;
|
|
87
|
+
currentTimeTimeout;
|
|
88
|
+
ongoingEventsTimeout;
|
|
89
|
+
currentDate;
|
|
90
|
+
verticalTime = true;
|
|
91
|
+
initialUpdate = true;
|
|
92
|
+
constructor(changeDetector, viewContext, viewState, intl, slotService, zone, renderer, element, pdfService, localization, scrollBarWidthService) {
|
|
93
|
+
super(viewContext, viewState, intl, slotService, zone, renderer, element, pdfService, localization, changeDetector, scrollBarWidthService);
|
|
94
|
+
this.changeDetector = changeDetector;
|
|
95
|
+
this.updateCurrentTime = this.updateCurrentTime.bind(this);
|
|
96
|
+
this.toggleOngoingClass = this.toggleOngoingClass.bind(this);
|
|
97
|
+
this.updateOngoingEvents = this.updateOngoingEvents.bind(this);
|
|
98
|
+
}
|
|
78
99
|
ngOnChanges(changes) {
|
|
79
100
|
if (changes.startTime || changes.endTime || changes.showWorkHours || changes.workDayStart || changes.workDayEnd ||
|
|
80
101
|
changes.workWeekStart || changes.workWeekEnd || changes.slotDivisions || changes.slotDuration) {
|
|
@@ -345,10 +366,10 @@ export class DayTimeViewComponent extends BaseView {
|
|
|
345
366
|
}
|
|
346
367
|
return fields;
|
|
347
368
|
}
|
|
369
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DayTimeViewComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1.ViewContextService }, { token: i2.ViewStateService }, { token: i3.IntlService }, { token: i4.DayTimeSlotService }, { token: i0.NgZone }, { token: i0.Renderer2 }, { token: i0.ElementRef }, { token: i5.PDFService }, { token: i6.LocalizationService }, { token: i7.ScrollbarWidthService }], target: i0.ɵɵFactoryTarget.Component });
|
|
370
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: DayTimeViewComponent, selector: "kendo-day-time-view", inputs: { timeSlotTemplate: "timeSlotTemplate", dateHeaderTemplate: "dateHeaderTemplate", majorTimeHeaderTemplate: "majorTimeHeaderTemplate", minorTimeHeaderTemplate: "minorTimeHeaderTemplate", numberOfDays: "numberOfDays", scrollTime: "scrollTime", startTime: "startTime", endTime: "endTime", workDayStart: "workDayStart", workDayEnd: "workDayEnd", workWeekStart: "workWeekStart", workWeekEnd: "workWeekEnd", slotDuration: "slotDuration", slotDivisions: "slotDivisions", showWorkHours: "showWorkHours", getStartDate: "getStartDate", getEndDate: "getEndDate", getNextDate: "getNextDate", currentTimeMarker: "currentTimeMarker", highlightOngoingEvents: "highlightOngoingEvents" }, viewQueries: [{ propertyName: "currentTimeElements", predicate: ["currentTimeMarker"], descendants: true }, { propertyName: "eventElements", predicate: DayTimeViewItemComponent, descendants: true }, { propertyName: "currentTimeArrows", predicate: ["currentTimeArrow"], descendants: true }], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: '', isInline: true });
|
|
348
371
|
}
|
|
349
|
-
|
|
350
|
-
DayTimeViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: DayTimeViewComponent, selector: "kendo-day-time-view", inputs: { timeSlotTemplate: "timeSlotTemplate", dateHeaderTemplate: "dateHeaderTemplate", majorTimeHeaderTemplate: "majorTimeHeaderTemplate", minorTimeHeaderTemplate: "minorTimeHeaderTemplate", numberOfDays: "numberOfDays", scrollTime: "scrollTime", startTime: "startTime", endTime: "endTime", workDayStart: "workDayStart", workDayEnd: "workDayEnd", workWeekStart: "workWeekStart", workWeekEnd: "workWeekEnd", slotDuration: "slotDuration", slotDivisions: "slotDivisions", showWorkHours: "showWorkHours", getStartDate: "getStartDate", getEndDate: "getEndDate", getNextDate: "getNextDate", currentTimeMarker: "currentTimeMarker", highlightOngoingEvents: "highlightOngoingEvents" }, viewQueries: [{ propertyName: "currentTimeElements", predicate: ["currentTimeMarker"], descendants: true }, { propertyName: "eventElements", predicate: DayTimeViewItemComponent, descendants: true }, { propertyName: "currentTimeArrows", predicate: ["currentTimeArrow"], descendants: true }], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: '', isInline: true });
|
|
351
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DayTimeViewComponent, decorators: [{
|
|
372
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DayTimeViewComponent, decorators: [{
|
|
352
373
|
type: Component,
|
|
353
374
|
args: [{ selector: 'kendo-day-time-view', template: '' }]
|
|
354
375
|
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i1.ViewContextService }, { type: i2.ViewStateService }, { type: i3.IntlService }, { type: i4.DayTimeSlotService }, { type: i0.NgZone }, { type: i0.Renderer2 }, { type: i0.ElementRef }, { type: i5.PDFService }, { type: i6.LocalizationService }, { type: i7.ScrollbarWidthService }]; }, propDecorators: { timeSlotTemplate: [{
|
|
@@ -15,14 +15,18 @@ import * as i2 from "@progress/kendo-angular-l10n";
|
|
|
15
15
|
* @hidden
|
|
16
16
|
*/
|
|
17
17
|
export class TimeSlotDirective extends BaseSlotDirective {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
18
|
+
invariantStart;
|
|
19
|
+
invariantEnd;
|
|
20
|
+
workDayStart;
|
|
21
|
+
workDayEnd;
|
|
22
|
+
workWeekStart;
|
|
23
|
+
workWeekEnd;
|
|
24
|
+
date;
|
|
22
25
|
get nonWorkHour() {
|
|
23
26
|
const date = this.date.getDay();
|
|
24
27
|
return this.invariantStart < this.workDayStart || this.workDayEnd < this.invariantEnd || !isWorkWeekDay(date, this.workWeekStart, this.workWeekEnd);
|
|
25
28
|
}
|
|
29
|
+
isDaySlot = false;
|
|
26
30
|
get startLocalTime() {
|
|
27
31
|
if (!this.date || !this.invariantStart) {
|
|
28
32
|
return null;
|
|
@@ -51,10 +55,13 @@ export class TimeSlotDirective extends BaseSlotDirective {
|
|
|
51
55
|
}
|
|
52
56
|
return localEnd;
|
|
53
57
|
}
|
|
58
|
+
constructor(element, slotService, localization) {
|
|
59
|
+
super(element, slotService, localization);
|
|
60
|
+
}
|
|
61
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TimeSlotDirective, deps: [{ token: i0.ElementRef }, { token: i1.DayTimeSlotService }, { token: i2.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
62
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TimeSlotDirective, isStandalone: true, selector: "[timeSlot]", inputs: { invariantStart: "invariantStart", invariantEnd: "invariantEnd", workDayStart: "workDayStart", workDayEnd: "workDayEnd", workWeekStart: "workWeekStart", workWeekEnd: "workWeekEnd", date: "date" }, host: { properties: { "class.k-nonwork-hour": "this.nonWorkHour" } }, exportAs: ["timeSlot"], usesInheritance: true, ngImport: i0 });
|
|
54
63
|
}
|
|
55
|
-
|
|
56
|
-
TimeSlotDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: TimeSlotDirective, isStandalone: true, selector: "[timeSlot]", inputs: { invariantStart: "invariantStart", invariantEnd: "invariantEnd", workDayStart: "workDayStart", workDayEnd: "workDayEnd", workWeekStart: "workWeekStart", workWeekEnd: "workWeekEnd", date: "date" }, host: { properties: { "class.k-nonwork-hour": "this.nonWorkHour" } }, exportAs: ["timeSlot"], usesInheritance: true, ngImport: i0 });
|
|
57
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TimeSlotDirective, decorators: [{
|
|
64
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TimeSlotDirective, decorators: [{
|
|
58
65
|
type: Directive,
|
|
59
66
|
args: [{
|
|
60
67
|
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
@@ -84,10 +91,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
84
91
|
* @hidden
|
|
85
92
|
*/
|
|
86
93
|
export class DaySlotDirective extends BaseSlotDirective {
|
|
87
|
-
constructor(element, slotService, localization) {
|
|
88
|
-
super(element, slotService, localization);
|
|
89
|
-
this.isDaySlot = true;
|
|
90
|
-
}
|
|
91
94
|
set start(value) {
|
|
92
95
|
this.startDate = value;
|
|
93
96
|
}
|
|
@@ -109,10 +112,16 @@ export class DaySlotDirective extends BaseSlotDirective {
|
|
|
109
112
|
get daySlot() {
|
|
110
113
|
return true;
|
|
111
114
|
}
|
|
115
|
+
isDaySlot = true;
|
|
116
|
+
startDate;
|
|
117
|
+
endDate;
|
|
118
|
+
constructor(element, slotService, localization) {
|
|
119
|
+
super(element, slotService, localization);
|
|
120
|
+
}
|
|
121
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DaySlotDirective, deps: [{ token: i0.ElementRef }, { token: i1.DayTimeSlotService }, { token: i2.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
122
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: DaySlotDirective, isStandalone: true, selector: "[daySlot]", inputs: { start: "start", end: "end" }, host: { properties: { "attr.data-day-slot": "this.daySlot" } }, usesInheritance: true, ngImport: i0 });
|
|
112
123
|
}
|
|
113
|
-
|
|
114
|
-
DaySlotDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: DaySlotDirective, isStandalone: true, selector: "[daySlot]", inputs: { start: "start", end: "end" }, host: { properties: { "attr.data-day-slot": "this.daySlot" } }, usesInheritance: true, ngImport: i0 });
|
|
115
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DaySlotDirective, decorators: [{
|
|
124
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DaySlotDirective, decorators: [{
|
|
116
125
|
type: Directive,
|
|
117
126
|
args: [{
|
|
118
127
|
// eslint-disable-next-line @angular-eslint/directive-selector
|