@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
|
@@ -28,6 +28,50 @@ import * as i5 from "@progress/kendo-angular-l10n";
|
|
|
28
28
|
* @hidden
|
|
29
29
|
*/
|
|
30
30
|
export class AgendaViewInternalComponent {
|
|
31
|
+
viewContext;
|
|
32
|
+
viewState;
|
|
33
|
+
intl;
|
|
34
|
+
renderer;
|
|
35
|
+
element;
|
|
36
|
+
zone;
|
|
37
|
+
pdfService;
|
|
38
|
+
localization;
|
|
39
|
+
selectedDate;
|
|
40
|
+
eventTemplate;
|
|
41
|
+
slotClass;
|
|
42
|
+
eventClass;
|
|
43
|
+
eventStyles;
|
|
44
|
+
agendaTimeTemplate;
|
|
45
|
+
agendaDateTemplate;
|
|
46
|
+
selectedDateFormat;
|
|
47
|
+
selectedShortDateFormat;
|
|
48
|
+
numberOfDays;
|
|
49
|
+
headerWrap;
|
|
50
|
+
content;
|
|
51
|
+
tasks = new BehaviorSubject(null);
|
|
52
|
+
groupedResources = [];
|
|
53
|
+
editable;
|
|
54
|
+
get eventTemplateRef() {
|
|
55
|
+
return this.eventTemplate || (this.schedulerEventTemplate || {}).templateRef;
|
|
56
|
+
}
|
|
57
|
+
get agendaTimeTemplateRef() {
|
|
58
|
+
return this.agendaTimeTemplate || (this.schedulerAgendaTimeTemplate || {}).templateRef;
|
|
59
|
+
}
|
|
60
|
+
get agendaDateTemplateRef() {
|
|
61
|
+
return this.agendaDateTemplate || (this.schedulerAgendaDateTemplate || {}).templateRef;
|
|
62
|
+
}
|
|
63
|
+
schedulerEventTemplate;
|
|
64
|
+
schedulerAgendaTimeTemplate;
|
|
65
|
+
schedulerAgendaDateTemplate;
|
|
66
|
+
group;
|
|
67
|
+
resources;
|
|
68
|
+
spans = [];
|
|
69
|
+
items;
|
|
70
|
+
range;
|
|
71
|
+
groups;
|
|
72
|
+
min;
|
|
73
|
+
max;
|
|
74
|
+
subs = new Subscription();
|
|
31
75
|
constructor(viewContext, viewState, intl, renderer, element, zone, pdfService, localization) {
|
|
32
76
|
this.viewContext = viewContext;
|
|
33
77
|
this.viewState = viewState;
|
|
@@ -37,19 +81,6 @@ export class AgendaViewInternalComponent {
|
|
|
37
81
|
this.zone = zone;
|
|
38
82
|
this.pdfService = pdfService;
|
|
39
83
|
this.localization = localization;
|
|
40
|
-
this.tasks = new BehaviorSubject(null);
|
|
41
|
-
this.groupedResources = [];
|
|
42
|
-
this.spans = [];
|
|
43
|
-
this.subs = new Subscription();
|
|
44
|
-
}
|
|
45
|
-
get eventTemplateRef() {
|
|
46
|
-
return this.eventTemplate || (this.schedulerEventTemplate || {}).templateRef;
|
|
47
|
-
}
|
|
48
|
-
get agendaTimeTemplateRef() {
|
|
49
|
-
return this.agendaTimeTemplate || (this.schedulerAgendaTimeTemplate || {}).templateRef;
|
|
50
|
-
}
|
|
51
|
-
get agendaDateTemplateRef() {
|
|
52
|
-
return this.agendaDateTemplate || (this.schedulerAgendaDateTemplate || {}).templateRef;
|
|
53
84
|
}
|
|
54
85
|
ngOnInit() {
|
|
55
86
|
this.updateContentHeight = this.updateContentHeight.bind(this);
|
|
@@ -302,9 +333,8 @@ export class AgendaViewInternalComponent {
|
|
|
302
333
|
}
|
|
303
334
|
}
|
|
304
335
|
}
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
AgendaViewInternalComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: AgendaViewInternalComponent, isStandalone: true, selector: "agenda-view-internal", inputs: { eventTemplate: "eventTemplate", slotClass: "slotClass", eventClass: "eventClass", eventStyles: "eventStyles", agendaTimeTemplate: "agendaTimeTemplate", agendaDateTemplate: "agendaDateTemplate", selectedDateFormat: "selectedDateFormat", selectedShortDateFormat: "selectedShortDateFormat", numberOfDays: "numberOfDays" }, viewQueries: [{ propertyName: "headerWrap", first: true, predicate: ["headerWrap"], descendants: true, read: ElementRef, static: true }, { propertyName: "content", first: true, predicate: ["content"], descendants: true, read: ElementRef, static: true }], usesOnChanges: true, ngImport: i0, template: `
|
|
336
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AgendaViewInternalComponent, deps: [{ token: i1.ViewContextService }, { token: i2.ViewStateService }, { token: i3.IntlService }, { token: i0.Renderer2 }, { token: i0.ElementRef }, { token: i0.NgZone }, { token: i4.PDFService }, { token: i5.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
337
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: AgendaViewInternalComponent, isStandalone: true, selector: "agenda-view-internal", inputs: { eventTemplate: "eventTemplate", slotClass: "slotClass", eventClass: "eventClass", eventStyles: "eventStyles", agendaTimeTemplate: "agendaTimeTemplate", agendaDateTemplate: "agendaDateTemplate", selectedDateFormat: "selectedDateFormat", selectedShortDateFormat: "selectedShortDateFormat", numberOfDays: "numberOfDays" }, viewQueries: [{ propertyName: "headerWrap", first: true, predicate: ["headerWrap"], descendants: true, read: ElementRef, static: true }, { propertyName: "content", first: true, predicate: ["content"], descendants: true, read: ElementRef, static: true }], usesOnChanges: true, ngImport: i0, template: `
|
|
308
338
|
<table class="k-scheduler-layout k-scheduler-agendaview" role="grid">
|
|
309
339
|
<tbody role="none">
|
|
310
340
|
<tr class="k-scheduler-head">
|
|
@@ -329,7 +359,8 @@ AgendaViewInternalComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.
|
|
|
329
359
|
</tbody>
|
|
330
360
|
</table>
|
|
331
361
|
`, isInline: true, dependencies: [{ kind: "component", type: AgendaHeaderComponent, selector: "[kendoSchedulerAgendaHeader]", inputs: ["resources"] }, { kind: "component", type: AgendaListComponent, selector: "[kendoSchedulerAgendaList]", inputs: ["tasks", "eventTemplate", "slotClass", "eventClass", "eventStyles", "agendaTimeTemplate", "agendaDateTemplate", "editable"] }, { kind: "pipe", type: AsyncPipe, name: "async" }] });
|
|
332
|
-
|
|
362
|
+
}
|
|
363
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AgendaViewInternalComponent, decorators: [{
|
|
333
364
|
type: Component,
|
|
334
365
|
args: [{
|
|
335
366
|
// eslint-disable-next-line @angular-eslint/component-selector
|
|
@@ -20,12 +20,22 @@ import * as i2 from "@progress/kendo-angular-l10n";
|
|
|
20
20
|
* @hidden
|
|
21
21
|
*/
|
|
22
22
|
export class AgendaListComponent {
|
|
23
|
+
intlService;
|
|
24
|
+
localization;
|
|
25
|
+
classes = true;
|
|
26
|
+
tasks;
|
|
27
|
+
eventTemplate;
|
|
28
|
+
slotClass;
|
|
29
|
+
eventClass;
|
|
30
|
+
eventStyles;
|
|
31
|
+
agendaTimeTemplate;
|
|
32
|
+
agendaDateTemplate;
|
|
33
|
+
editable;
|
|
34
|
+
caretAltLeftIcon = caretAltLeftIcon;
|
|
35
|
+
caretAltRightIcon = caretAltRightIcon;
|
|
23
36
|
constructor(intlService, localization) {
|
|
24
37
|
this.intlService = intlService;
|
|
25
38
|
this.localization = localization;
|
|
26
|
-
this.classes = true;
|
|
27
|
-
this.caretAltLeftIcon = caretAltLeftIcon;
|
|
28
|
-
this.caretAltRightIcon = caretAltRightIcon;
|
|
29
39
|
}
|
|
30
40
|
extractDataItem(item) {
|
|
31
41
|
return item.type === "group" ? item.dataItem.items[0] : item.dataItem;
|
|
@@ -94,9 +104,8 @@ export class AgendaListComponent {
|
|
|
94
104
|
get arrowSVGIcons() {
|
|
95
105
|
return !this.localization.rtl ? [this.caretAltLeftIcon, this.caretAltRightIcon] : [this.caretAltRightIcon, this.caretAltLeftIcon];
|
|
96
106
|
}
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
AgendaListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: AgendaListComponent, isStandalone: true, selector: "[kendoSchedulerAgendaList]", inputs: { tasks: "tasks", eventTemplate: "eventTemplate", slotClass: "slotClass", eventClass: "eventClass", eventStyles: "eventStyles", agendaTimeTemplate: "agendaTimeTemplate", agendaDateTemplate: "agendaDateTemplate", editable: "editable" }, host: { properties: { "class.k-scheduler-content": "this.classes" } }, ngImport: i0, template: `
|
|
107
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AgendaListComponent, deps: [{ token: i1.IntlService }, { token: i2.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
108
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: AgendaListComponent, isStandalone: true, selector: "[kendoSchedulerAgendaList]", inputs: { tasks: "tasks", eventTemplate: "eventTemplate", slotClass: "slotClass", eventClass: "eventClass", eventStyles: "eventStyles", agendaTimeTemplate: "agendaTimeTemplate", agendaDateTemplate: "agendaDateTemplate", editable: "editable" }, host: { properties: { "class.k-scheduler-content": "this.classes" } }, ngImport: i0, template: `
|
|
100
109
|
<table class="k-scheduler-table" role="none">
|
|
101
110
|
<tbody role="rowgroup">
|
|
102
111
|
<ng-container *ngFor="let group of tasks; let groupIndex = index;">
|
|
@@ -145,7 +154,8 @@ AgendaListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", ve
|
|
|
145
154
|
</tbody>
|
|
146
155
|
</table>
|
|
147
156
|
`, isInline: true, dependencies: [{ kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: AgendaHeaderItemComponent, selector: "[kendoSchedulerAgendaHeaderItem]", inputs: ["kendoSchedulerAgendaHeaderItem", "agendaDateTemplate", "hasFirstClass"] }, { 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"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: FocusableDirective, selector: "[kendoSchedulerFocusIndex]", inputs: ["kendoSchedulerFocusIndex", "containerType"] }, { kind: "component", type: AgendaTaskItemComponent, selector: "[kendoSchedulerAgendaTaskItem]", inputs: ["kendoSchedulerAgendaTaskItem", "color", "eventTemplate", "editable"] }] });
|
|
148
|
-
|
|
157
|
+
}
|
|
158
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AgendaListComponent, decorators: [{
|
|
149
159
|
type: Component,
|
|
150
160
|
args: [{
|
|
151
161
|
// eslint-disable-next-line @angular-eslint/component-selector
|
|
@@ -8,7 +8,7 @@ import { ConfigurationViewBase } from '../common/configuration-view-base';
|
|
|
8
8
|
import { SchedulerView } from '../../types';
|
|
9
9
|
import { ViewContextService } from '../view-context.service';
|
|
10
10
|
import { ViewStateService } from '../view-state.service';
|
|
11
|
-
import {
|
|
11
|
+
import { AgendaTimeTemplateDirective, AgendaDateTemplateDirective } from '../templates';
|
|
12
12
|
import { AgendaViewInternalComponent } from './agenda-view-internal.component';
|
|
13
13
|
import * as i0 from "@angular/core";
|
|
14
14
|
import * as i1 from "@progress/kendo-angular-l10n";
|
|
@@ -18,48 +18,55 @@ import * as i3 from "../view-state.service";
|
|
|
18
18
|
* The component for rendering the **Agenda** view.
|
|
19
19
|
*/
|
|
20
20
|
export class AgendaViewComponent extends ConfigurationViewBase {
|
|
21
|
-
constructor(localization, changeDetector, viewContext, viewState) {
|
|
22
|
-
super(localization, changeDetector, viewContext, viewState);
|
|
23
|
-
/**
|
|
24
|
-
* The long-date format for displaying the
|
|
25
|
-
* selected date in the Scheduler toolbar.
|
|
26
|
-
* Defaults to `{0:D} - {1:D}`,
|
|
27
|
-
* where `0` is the start and `1` is the end date
|
|
28
|
-
* ([more information]({% slug parsingandformatting_intl %}#toc-date-formatting)).
|
|
29
|
-
*/
|
|
30
|
-
this.selectedDateFormat = '{0:D} - {1:D}';
|
|
31
|
-
/**
|
|
32
|
-
* The short-date format for displaying the
|
|
33
|
-
* selected date in the Scheduler toolbar.
|
|
34
|
-
* Defaults to `{0:d} - {1:d}`,
|
|
35
|
-
* where `0` is the start and `1` is the end date
|
|
36
|
-
* ([more information]({% slug parsingandformatting_intl %}#toc-date-formatting)).
|
|
37
|
-
* @default '{0:d} - {1:d}'
|
|
38
|
-
*/
|
|
39
|
-
this.selectedShortDateFormat = '{0:d} - {1:d}';
|
|
40
|
-
/**
|
|
41
|
-
* Specifies the number of days that the view will render.
|
|
42
|
-
* @default 7
|
|
43
|
-
*/
|
|
44
|
-
this.numberOfDays = 7;
|
|
45
|
-
/**
|
|
46
|
-
* The invariant name for this view (`agenda`).
|
|
47
|
-
* @default 'agenda'
|
|
48
|
-
*/
|
|
49
|
-
this.name = 'agenda';
|
|
50
|
-
}
|
|
51
21
|
/**
|
|
52
22
|
* @hidden
|
|
53
23
|
*/
|
|
54
24
|
get title() {
|
|
55
25
|
return this.localization.get('agendaViewTitle');
|
|
56
26
|
}
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
27
|
+
/**
|
|
28
|
+
* The long-date format for displaying the
|
|
29
|
+
* selected date in the Scheduler toolbar.
|
|
30
|
+
* Defaults to `{0:D} - {1:D}`,
|
|
31
|
+
* where `0` is the start and `1` is the end date
|
|
32
|
+
* ([more information]({% slug parsingandformatting_intl %}#toc-date-formatting)).
|
|
33
|
+
*/
|
|
34
|
+
selectedDateFormat = '{0:D} - {1:D}';
|
|
35
|
+
/**
|
|
36
|
+
* The short-date format for displaying the
|
|
37
|
+
* selected date in the Scheduler toolbar.
|
|
38
|
+
* Defaults to `{0:d} - {1:d}`,
|
|
39
|
+
* where `0` is the start and `1` is the end date
|
|
40
|
+
* ([more information]({% slug parsingandformatting_intl %}#toc-date-formatting)).
|
|
41
|
+
* @default '{0:d} - {1:d}'
|
|
42
|
+
*/
|
|
43
|
+
selectedShortDateFormat = '{0:d} - {1:d}';
|
|
44
|
+
/**
|
|
45
|
+
* Specifies the number of days that the view will render.
|
|
46
|
+
* @default 7
|
|
47
|
+
*/
|
|
48
|
+
numberOfDays = 7;
|
|
49
|
+
/**
|
|
50
|
+
* @hidden
|
|
51
|
+
*/
|
|
52
|
+
agendaTimeTemplate;
|
|
53
|
+
/**
|
|
54
|
+
* @hidden
|
|
55
|
+
*/
|
|
56
|
+
agendaDateTemplate;
|
|
57
|
+
/**
|
|
58
|
+
* The invariant name for this view (`agenda`).
|
|
59
|
+
* @default 'agenda'
|
|
60
|
+
*/
|
|
61
|
+
name = 'agenda';
|
|
62
|
+
constructor(localization, changeDetector, viewContext, viewState) {
|
|
63
|
+
super(localization, changeDetector, viewContext, viewState);
|
|
64
|
+
}
|
|
65
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AgendaViewComponent, deps: [{ token: i1.LocalizationService }, { token: i0.ChangeDetectorRef }, { token: i2.ViewContextService }, { token: i3.ViewStateService }], target: i0.ɵɵFactoryTarget.Component });
|
|
66
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: AgendaViewComponent, isStandalone: true, selector: "kendo-scheduler-agenda-view", inputs: { selectedDateFormat: "selectedDateFormat", selectedShortDateFormat: "selectedShortDateFormat", numberOfDays: "numberOfDays" }, providers: [{
|
|
67
|
+
provide: SchedulerView,
|
|
68
|
+
useExisting: forwardRef(() => AgendaViewComponent)
|
|
69
|
+
}], queries: [{ propertyName: "agendaTimeTemplate", first: true, predicate: AgendaTimeTemplateDirective, descendants: true }, { propertyName: "agendaDateTemplate", first: true, predicate: AgendaDateTemplateDirective, descendants: true }], usesInheritance: true, ngImport: i0, template: `
|
|
63
70
|
<ng-template #content>
|
|
64
71
|
<agenda-view-internal
|
|
65
72
|
[numberOfDays]="numberOfDays"
|
|
@@ -74,7 +81,8 @@ AgendaViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", ve
|
|
|
74
81
|
</agenda-view-internal>
|
|
75
82
|
</ng-template>
|
|
76
83
|
`, isInline: true, dependencies: [{ kind: "component", type: AgendaViewInternalComponent, selector: "agenda-view-internal", inputs: ["eventTemplate", "slotClass", "eventClass", "eventStyles", "agendaTimeTemplate", "agendaDateTemplate", "selectedDateFormat", "selectedShortDateFormat", "numberOfDays"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
77
|
-
|
|
84
|
+
}
|
|
85
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AgendaViewComponent, decorators: [{
|
|
78
86
|
type: Component,
|
|
79
87
|
args: [{
|
|
80
88
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
@@ -107,9 +115,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
107
115
|
type: Input
|
|
108
116
|
}], numberOfDays: [{
|
|
109
117
|
type: Input
|
|
110
|
-
}], eventTemplate: [{
|
|
111
|
-
type: ContentChild,
|
|
112
|
-
args: [EventTemplateDirective, { static: false }]
|
|
113
118
|
}], agendaTimeTemplate: [{
|
|
114
119
|
type: ContentChild,
|
|
115
120
|
args: [AgendaTimeTemplateDirective, { static: false }]
|
|
@@ -52,17 +52,21 @@ let seed = 0;
|
|
|
52
52
|
* @hidden
|
|
53
53
|
*/
|
|
54
54
|
export class TaskCollection {
|
|
55
|
+
start;
|
|
56
|
+
end;
|
|
57
|
+
events;
|
|
58
|
+
counter; // used to give unique ids to event elements
|
|
59
|
+
static empty() {
|
|
60
|
+
return (new EmptyIterator());
|
|
61
|
+
}
|
|
55
62
|
constructor(start, end, events) {
|
|
56
63
|
this.start = start;
|
|
57
64
|
this.end = end;
|
|
58
65
|
this.events = events;
|
|
59
|
-
this.createIterator = compose(flattenGroupsAndAddIds(this), processEvents(this.start, this.end));
|
|
60
66
|
this.counter = seed;
|
|
61
67
|
seed++;
|
|
62
68
|
}
|
|
63
|
-
|
|
64
|
-
return (new EmptyIterator());
|
|
65
|
-
}
|
|
69
|
+
createIterator = compose(flattenGroupsAndAddIds(this), processEvents(this.start, this.end));
|
|
66
70
|
[iterator]() {
|
|
67
71
|
return this.createIterator(this.events);
|
|
68
72
|
}
|
|
@@ -34,6 +34,96 @@ const SCROLL_INTERVAL = 50;
|
|
|
34
34
|
const MIN_MOVE_DISTANCE = 10;
|
|
35
35
|
/** @hidden */
|
|
36
36
|
export class BaseView {
|
|
37
|
+
viewContext;
|
|
38
|
+
viewState;
|
|
39
|
+
intl;
|
|
40
|
+
slotService;
|
|
41
|
+
zone;
|
|
42
|
+
renderer;
|
|
43
|
+
element;
|
|
44
|
+
pdfService;
|
|
45
|
+
localization;
|
|
46
|
+
cdr;
|
|
47
|
+
scrollBarWidthService;
|
|
48
|
+
eventTemplate;
|
|
49
|
+
groupHeaderTemplate;
|
|
50
|
+
selectedDateFormat;
|
|
51
|
+
selectedShortDateFormat;
|
|
52
|
+
eventHeight;
|
|
53
|
+
showToolbar;
|
|
54
|
+
showFooter;
|
|
55
|
+
slotClass;
|
|
56
|
+
eventClass;
|
|
57
|
+
eventStyles;
|
|
58
|
+
weekStart;
|
|
59
|
+
content;
|
|
60
|
+
header;
|
|
61
|
+
contentTable;
|
|
62
|
+
times;
|
|
63
|
+
timesHeader;
|
|
64
|
+
timesTable;
|
|
65
|
+
headerWrap;
|
|
66
|
+
hintContainer;
|
|
67
|
+
get eventTemplateRef() {
|
|
68
|
+
return this.eventTemplate || (this.schedulerEventTemplate || {}).templateRef;
|
|
69
|
+
}
|
|
70
|
+
get groupHeaderTemplateRef() {
|
|
71
|
+
return this.groupHeaderTemplate || (this.schedulerGroupHeaderTemplate || {}).templateRef;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* The non-all-day events.
|
|
75
|
+
*/
|
|
76
|
+
items = new BehaviorSubject(null);
|
|
77
|
+
horizontalResources = [];
|
|
78
|
+
verticalResources = [];
|
|
79
|
+
dragHints = [];
|
|
80
|
+
resizeHints = [];
|
|
81
|
+
editable;
|
|
82
|
+
selectable; // initialized to false in the scheduler component
|
|
83
|
+
getField = getField;
|
|
84
|
+
changes = new BehaviorSubject(null);
|
|
85
|
+
viewRangeChange = new BehaviorSubject(null);
|
|
86
|
+
subs = new Subscription();
|
|
87
|
+
groupedResources = [];
|
|
88
|
+
spans = [];
|
|
89
|
+
contentHeight;
|
|
90
|
+
/**
|
|
91
|
+
* All events that the user provided.
|
|
92
|
+
*/
|
|
93
|
+
tasks;
|
|
94
|
+
group;
|
|
95
|
+
resources;
|
|
96
|
+
domEvents = [];
|
|
97
|
+
schedulerEventTemplate;
|
|
98
|
+
schedulerGroupHeaderTemplate;
|
|
99
|
+
min;
|
|
100
|
+
max;
|
|
101
|
+
selectedDate;
|
|
102
|
+
resourcesCache = {};
|
|
103
|
+
timezone;
|
|
104
|
+
draggable;
|
|
105
|
+
/**
|
|
106
|
+
* The event which is currently being resized.
|
|
107
|
+
*/
|
|
108
|
+
resizing;
|
|
109
|
+
dragging;
|
|
110
|
+
dragArgs;
|
|
111
|
+
/**
|
|
112
|
+
* The slot which is currently being dragged over while selecting a range of slots.
|
|
113
|
+
*/
|
|
114
|
+
dragSelecting = null;
|
|
115
|
+
/**
|
|
116
|
+
* The slot where the drag-selecting originated. Used for flipping the start and end of the emitted range.
|
|
117
|
+
*/
|
|
118
|
+
dragSelectOrigin = null;
|
|
119
|
+
container;
|
|
120
|
+
containerOffset;
|
|
121
|
+
pressLocation;
|
|
122
|
+
pressTarget;
|
|
123
|
+
scrollInterval;
|
|
124
|
+
autoHeight = false;
|
|
125
|
+
rtl = false;
|
|
126
|
+
isSlotSelected = () => false;
|
|
37
127
|
constructor(viewContext, viewState, intl, slotService, zone, renderer, element, pdfService, localization, cdr, scrollBarWidthService) {
|
|
38
128
|
this.viewContext = viewContext;
|
|
39
129
|
this.viewState = viewState;
|
|
@@ -46,43 +136,10 @@ export class BaseView {
|
|
|
46
136
|
this.localization = localization;
|
|
47
137
|
this.cdr = cdr;
|
|
48
138
|
this.scrollBarWidthService = scrollBarWidthService;
|
|
49
|
-
/**
|
|
50
|
-
* The non-all-day events.
|
|
51
|
-
*/
|
|
52
|
-
this.items = new BehaviorSubject(null);
|
|
53
|
-
this.horizontalResources = [];
|
|
54
|
-
this.verticalResources = [];
|
|
55
|
-
this.dragHints = [];
|
|
56
|
-
this.resizeHints = [];
|
|
57
|
-
this.getField = getField;
|
|
58
|
-
this.changes = new BehaviorSubject(null);
|
|
59
|
-
this.viewRangeChange = new BehaviorSubject(null);
|
|
60
|
-
this.subs = new Subscription();
|
|
61
|
-
this.groupedResources = [];
|
|
62
|
-
this.spans = [];
|
|
63
|
-
this.domEvents = [];
|
|
64
|
-
this.resourcesCache = {};
|
|
65
|
-
/**
|
|
66
|
-
* The slot which is currently being dragged over while selecting a range of slots.
|
|
67
|
-
*/
|
|
68
|
-
this.dragSelecting = null;
|
|
69
|
-
/**
|
|
70
|
-
* The slot where the drag-selecting originated. Used for flipping the start and end of the emitted range.
|
|
71
|
-
*/
|
|
72
|
-
this.dragSelectOrigin = null;
|
|
73
|
-
this.autoHeight = false;
|
|
74
|
-
this.rtl = false;
|
|
75
|
-
this.isSlotSelected = () => false;
|
|
76
139
|
this.setSlotClass = this.setSlotClass.bind(this);
|
|
77
140
|
this.setHintClass = this.setHintClass.bind(this);
|
|
78
141
|
this.weekStart = intl.firstDay();
|
|
79
142
|
}
|
|
80
|
-
get eventTemplateRef() {
|
|
81
|
-
return this.eventTemplate || (this.schedulerEventTemplate || {}).templateRef;
|
|
82
|
-
}
|
|
83
|
-
get groupHeaderTemplateRef() {
|
|
84
|
-
return this.groupHeaderTemplate || (this.schedulerGroupHeaderTemplate || {}).templateRef;
|
|
85
|
-
}
|
|
86
143
|
/**
|
|
87
144
|
* Generates a list of space-separated IDs based on a collection of items to associate scrollable containers
|
|
88
145
|
* with the respective tasks through the aria-owns attribute for a11y compliance.
|
|
@@ -983,10 +1040,10 @@ export class BaseView {
|
|
|
983
1040
|
this.zone.onStable.pipe(take(1)).subscribe(() => this.updateView());
|
|
984
1041
|
}
|
|
985
1042
|
}
|
|
1043
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: BaseView, deps: [{ token: i1.ViewContextService }, { token: i2.ViewStateService }, { token: i3.IntlService }, { token: i4.BaseSlotService }, { token: i0.NgZone }, { token: i0.Renderer2 }, { token: i0.ElementRef }, { token: i5.PDFService }, { token: i6.LocalizationService }, { token: i0.ChangeDetectorRef }, { token: i7.ScrollbarWidthService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1044
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: BaseView, inputs: { eventTemplate: "eventTemplate", groupHeaderTemplate: "groupHeaderTemplate", selectedDateFormat: "selectedDateFormat", selectedShortDateFormat: "selectedShortDateFormat", eventHeight: "eventHeight", showToolbar: "showToolbar", showFooter: "showFooter", slotClass: "slotClass", eventClass: "eventClass", eventStyles: "eventStyles", weekStart: "weekStart" }, viewQueries: [{ propertyName: "content", first: true, predicate: ["content"], descendants: true }, { propertyName: "header", first: true, predicate: ["header"], descendants: true }, { propertyName: "contentTable", first: true, predicate: ["contentTable"], descendants: true }, { propertyName: "times", first: true, predicate: ["times"], descendants: true }, { propertyName: "timesHeader", first: true, predicate: ["timesHeader"], descendants: true }, { propertyName: "timesTable", first: true, predicate: ["timesTable"], descendants: true }, { propertyName: "headerWrap", first: true, predicate: ["headerWrap"], descendants: true }, { propertyName: "hintContainer", first: true, predicate: ["hintContainer"], descendants: true }], usesOnChanges: true, ngImport: i0 });
|
|
986
1045
|
}
|
|
987
|
-
|
|
988
|
-
BaseView.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: BaseView, inputs: { eventTemplate: "eventTemplate", groupHeaderTemplate: "groupHeaderTemplate", selectedDateFormat: "selectedDateFormat", selectedShortDateFormat: "selectedShortDateFormat", eventHeight: "eventHeight", showToolbar: "showToolbar", showFooter: "showFooter", slotClass: "slotClass", eventClass: "eventClass", eventStyles: "eventStyles", weekStart: "weekStart" }, viewQueries: [{ propertyName: "content", first: true, predicate: ["content"], descendants: true }, { propertyName: "header", first: true, predicate: ["header"], descendants: true }, { propertyName: "contentTable", first: true, predicate: ["contentTable"], descendants: true }, { propertyName: "times", first: true, predicate: ["times"], descendants: true }, { propertyName: "timesHeader", first: true, predicate: ["timesHeader"], descendants: true }, { propertyName: "timesTable", first: true, predicate: ["timesTable"], descendants: true }, { propertyName: "headerWrap", first: true, predicate: ["headerWrap"], descendants: true }, { propertyName: "hintContainer", first: true, predicate: ["hintContainer"], descendants: true }], usesOnChanges: true, ngImport: i0 });
|
|
989
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: BaseView, decorators: [{
|
|
1046
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: BaseView, decorators: [{
|
|
990
1047
|
type: Directive
|
|
991
1048
|
}], ctorParameters: function () { return [{ type: i1.ViewContextService }, { type: i2.ViewStateService }, { type: i3.IntlService }, { type: i4.BaseSlotService }, { type: i0.NgZone }, { type: i0.Renderer2 }, { type: i0.ElementRef }, { type: i5.PDFService }, { type: i6.LocalizationService }, { type: i0.ChangeDetectorRef }, { type: i7.ScrollbarWidthService }]; }, propDecorators: { eventTemplate: [{
|
|
992
1049
|
type: Input
|
|
@@ -18,18 +18,29 @@ const defaultSlotClass = (_args) => null;
|
|
|
18
18
|
* @hidden
|
|
19
19
|
*/
|
|
20
20
|
export class ConfigurationViewBase extends SchedulerView {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
21
|
+
localization;
|
|
22
|
+
changeDetector;
|
|
23
|
+
viewContext;
|
|
24
|
+
viewState;
|
|
25
|
+
/**
|
|
26
|
+
* Defines a function that is executed for every slot in the view.
|
|
27
|
+
* The function returns a value which is supported by [`ngClass`](link:site.data.urls.angular['ngclassapi']) [see example](slug:styling_scheduler#toc-styling-the-slots).
|
|
28
|
+
*/
|
|
29
|
+
slotClass;
|
|
30
|
+
/**
|
|
31
|
+
* Defines a function that is executed for every event in the view.
|
|
32
|
+
* The function returns a value which is supported by [`ngClass`](link:site.data.urls.angular['ngclassapi']).
|
|
33
|
+
*/
|
|
34
|
+
eventClass;
|
|
35
|
+
/**
|
|
36
|
+
* Defines a function that is executed for every event in the view.
|
|
37
|
+
* The function returns a value which is supported by [`ngStyle`](link:site.data.urls.angular['ngstyleapi']).
|
|
38
|
+
*/
|
|
39
|
+
eventStyles;
|
|
40
|
+
/**
|
|
41
|
+
* Specifies the settings for the ongoing events highlight of the Scheduler.
|
|
42
|
+
*/
|
|
43
|
+
highlightOngoingEvents;
|
|
33
44
|
/**
|
|
34
45
|
* Specifies whether to display the toolbar of the Scheduler.
|
|
35
46
|
*/
|
|
@@ -40,6 +51,18 @@ export class ConfigurationViewBase extends SchedulerView {
|
|
|
40
51
|
this._showToolbar = value;
|
|
41
52
|
this.viewState.toolbarVisibilityByView.set(this, value);
|
|
42
53
|
}
|
|
54
|
+
/**
|
|
55
|
+
* @hidden
|
|
56
|
+
*/
|
|
57
|
+
template;
|
|
58
|
+
/**
|
|
59
|
+
* @hidden
|
|
60
|
+
*/
|
|
61
|
+
eventTemplate;
|
|
62
|
+
/**
|
|
63
|
+
* @hidden
|
|
64
|
+
*/
|
|
65
|
+
groupHeaderTemplate;
|
|
43
66
|
/**
|
|
44
67
|
* @hidden
|
|
45
68
|
*/
|
|
@@ -70,6 +93,19 @@ export class ConfigurationViewBase extends SchedulerView {
|
|
|
70
93
|
get viewWeekStart() {
|
|
71
94
|
return this.schedulerOptions.weekStart;
|
|
72
95
|
}
|
|
96
|
+
subs;
|
|
97
|
+
schedulerOptions = {};
|
|
98
|
+
constructor(localization, changeDetector, viewContext, viewState) {
|
|
99
|
+
super();
|
|
100
|
+
this.localization = localization;
|
|
101
|
+
this.changeDetector = changeDetector;
|
|
102
|
+
this.viewContext = viewContext;
|
|
103
|
+
this.viewState = viewState;
|
|
104
|
+
this.subs = this.localization.changes.subscribe(() => {
|
|
105
|
+
changeDetector.markForCheck();
|
|
106
|
+
});
|
|
107
|
+
this.subs.add(this.viewContext.optionsChange.subscribe(this.optionsChange.bind(this)));
|
|
108
|
+
}
|
|
73
109
|
ngOnChanges(changes) {
|
|
74
110
|
this.viewState.notifyOptionsChange(changes);
|
|
75
111
|
}
|
|
@@ -80,10 +116,11 @@ export class ConfigurationViewBase extends SchedulerView {
|
|
|
80
116
|
optionsChange(options) {
|
|
81
117
|
this.schedulerOptions = options;
|
|
82
118
|
}
|
|
119
|
+
_showToolbar;
|
|
120
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ConfigurationViewBase, deps: [{ token: i1.LocalizationService }, { token: i0.ChangeDetectorRef }, { token: i2.ViewContextService }, { token: i3.ViewStateService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
121
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: ConfigurationViewBase, inputs: { slotClass: "slotClass", eventClass: "eventClass", eventStyles: "eventStyles", highlightOngoingEvents: "highlightOngoingEvents", showToolbar: "showToolbar" }, queries: [{ propertyName: "eventTemplate", first: true, predicate: EventTemplateDirective, descendants: true }, { propertyName: "groupHeaderTemplate", first: true, predicate: GroupHeaderTemplateDirective, descendants: true }], viewQueries: [{ propertyName: "template", first: true, predicate: ["content"], descendants: true, static: true }], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
83
122
|
}
|
|
84
|
-
|
|
85
|
-
ConfigurationViewBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: ConfigurationViewBase, inputs: { slotClass: "slotClass", eventClass: "eventClass", eventStyles: "eventStyles", highlightOngoingEvents: "highlightOngoingEvents", showToolbar: "showToolbar" }, queries: [{ propertyName: "eventTemplate", first: true, predicate: EventTemplateDirective, descendants: true }, { propertyName: "groupHeaderTemplate", first: true, predicate: GroupHeaderTemplateDirective, descendants: true }], viewQueries: [{ propertyName: "template", first: true, predicate: ["content"], descendants: true, static: true }], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
86
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ConfigurationViewBase, decorators: [{
|
|
123
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ConfigurationViewBase, decorators: [{
|
|
87
124
|
type: Directive
|
|
88
125
|
}], ctorParameters: function () { return [{ type: i1.LocalizationService }, { type: i0.ChangeDetectorRef }, { type: i2.ViewContextService }, { type: i3.ViewStateService }]; }, propDecorators: { slotClass: [{
|
|
89
126
|
type: Input
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { Injectable, EventEmitter } from '@angular/core';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
/**
|
|
8
|
+
* @hidden
|
|
9
|
+
*/
|
|
10
|
+
export class DomEventsService {
|
|
11
|
+
focus = new EventEmitter();
|
|
12
|
+
focusIn = new EventEmitter();
|
|
13
|
+
focusOut = new EventEmitter();
|
|
14
|
+
click = new EventEmitter();
|
|
15
|
+
keydown = new EventEmitter();
|
|
16
|
+
windowBlur = new EventEmitter();
|
|
17
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DomEventsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
18
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DomEventsService });
|
|
19
|
+
}
|
|
20
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DomEventsService, decorators: [{
|
|
21
|
+
type: Injectable
|
|
22
|
+
}] });
|
|
@@ -9,6 +9,8 @@ import * as i0 from "@angular/core";
|
|
|
9
9
|
* @hidden
|
|
10
10
|
*/
|
|
11
11
|
export class HintContainerComponent {
|
|
12
|
+
changeDetector;
|
|
13
|
+
hintTemplate;
|
|
12
14
|
constructor(changeDetector) {
|
|
13
15
|
this.changeDetector = changeDetector;
|
|
14
16
|
this.changeDetector.detach();
|
|
@@ -16,13 +18,13 @@ export class HintContainerComponent {
|
|
|
16
18
|
detectChanges() {
|
|
17
19
|
this.changeDetector.detectChanges();
|
|
18
20
|
}
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
HintContainerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: HintContainerComponent, isStandalone: true, selector: "kendo-hint-container", queries: [{ propertyName: "hintTemplate", first: true, predicate: TemplateRef, descendants: true }], ngImport: i0, template: `
|
|
21
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: HintContainerComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
22
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: HintContainerComponent, isStandalone: true, selector: "kendo-hint-container", queries: [{ propertyName: "hintTemplate", first: true, predicate: TemplateRef, descendants: true }], ngImport: i0, template: `
|
|
22
23
|
<ng-container [ngTemplateOutlet]="hintTemplate">
|
|
23
24
|
</ng-container>
|
|
24
25
|
`, isInline: true, dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
|
|
25
|
-
|
|
26
|
+
}
|
|
27
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: HintContainerComponent, decorators: [{
|
|
26
28
|
type: Component,
|
|
27
29
|
args: [{
|
|
28
30
|
selector: 'kendo-hint-container',
|
|
@@ -6,14 +6,15 @@ import { Pipe } from '@angular/core';
|
|
|
6
6
|
import { iterator } from '../../common/util';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
class NumberIterator {
|
|
9
|
-
|
|
10
|
-
this.count = count;
|
|
11
|
-
}
|
|
9
|
+
count;
|
|
12
10
|
*[iterator]() {
|
|
13
11
|
for (let i = 0; i < this.count; i++) {
|
|
14
12
|
yield i;
|
|
15
13
|
}
|
|
16
14
|
}
|
|
15
|
+
constructor(count) {
|
|
16
|
+
this.count = count;
|
|
17
|
+
}
|
|
17
18
|
}
|
|
18
19
|
/**
|
|
19
20
|
* @hidden
|
|
@@ -22,10 +23,10 @@ export class RepeatPipe {
|
|
|
22
23
|
transform(value) {
|
|
23
24
|
return new NumberIterator(value);
|
|
24
25
|
}
|
|
26
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: RepeatPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
27
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: RepeatPipe, isStandalone: true, name: "repeat" });
|
|
25
28
|
}
|
|
26
|
-
|
|
27
|
-
RepeatPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: RepeatPipe, isStandalone: true, name: "repeat" });
|
|
28
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: RepeatPipe, decorators: [{
|
|
29
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: RepeatPipe, decorators: [{
|
|
29
30
|
type: Pipe,
|
|
30
31
|
args: [{
|
|
31
32
|
// eslint-disable-next-line @angular-eslint/pipe-prefix
|