@progress/kendo-angular-scheduler 3.0.3-dev.202204061046 → 4.0.0-dev.202204140813
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/bundles/kendo-angular-scheduler.umd.js +5 -0
- package/{dist/es2015/common → common}/constants.d.ts +0 -0
- package/{dist/es2015/common → common}/default-model-fields.d.ts +0 -0
- package/{dist/es2015/common → common}/dom-queries.d.ts +0 -0
- package/{dist/es2015/common → common}/getter.d.ts +0 -0
- package/{dist/es2015/common → common}/modifiers.d.ts +0 -0
- package/{dist/es2015/common → common}/setter.d.ts +0 -0
- package/{dist/es2015/common → common}/util.d.ts +0 -0
- package/data-binding.directive.d.ts +54 -0
- package/editing/date-time-picker.component.d.ts +39 -0
- package/editing/dialogs.service.d.ts +44 -0
- package/editing/edit-dialog-template.directive.d.ts +27 -0
- package/editing/edit-dialog.component.d.ts +80 -0
- package/editing/edit.service.d.ts +57 -0
- package/editing/local-data-changes.service.d.ts +15 -0
- package/editing/recurrence/end-rule-radio-button.directive.d.ts +31 -0
- package/editing/recurrence/localization/custom-messages.component.d.ts +18 -0
- package/editing/recurrence/localization/localized-messages.directive.d.ts +16 -0
- package/editing/recurrence/localization/messages.d.ts +141 -0
- package/editing/recurrence/localization/recurrence-localization.service.d.ts +17 -0
- package/editing/recurrence/recurrence-editor.component.d.ts +91 -0
- package/editing/recurrence/recurrence-end-rule-editor.component.d.ts +45 -0
- package/editing/recurrence/recurrence-frequency-editor.component.d.ts +26 -0
- package/editing/recurrence/recurrence-interval-editor.component.d.ts +27 -0
- package/editing/recurrence/recurrence-monthly-yearly-editor.component.d.ts +53 -0
- package/editing/recurrence/recurrence-weekday-rule-editor.component.d.ts +31 -0
- package/editing/recurrence/recurrence.service.d.ts +118 -0
- package/editing/recurrence/repeat-on-radio-button.directive.d.ts +32 -0
- package/editing/resource-editor-base.d.ts +37 -0
- package/editing/resource-multiple-editor.component.d.ts +21 -0
- package/editing/resource-single-editor.component.d.ts +20 -0
- package/editing/timezone-editor.component.d.ts +60 -0
- package/editing-directives/base-edit.service.d.ts +168 -0
- package/{dist/es2015/editing-directives → editing-directives}/edit-service.interface.d.ts +0 -0
- package/editing-directives/editing-directive-base.d.ts +60 -0
- package/editing-directives/local-edit.service.d.ts +33 -0
- package/editing-directives/reactive-editing.directive.d.ts +32 -0
- package/{dist/es2015/editing-directives → editing-directives}/utils.d.ts +0 -0
- package/{dist/es2015 → esm2015}/common/constants.js +0 -0
- package/{dist/es2015 → esm2015}/common/default-model-fields.js +0 -0
- package/esm2015/common/dom-queries.js +122 -0
- package/{dist/es2015 → esm2015}/common/getter.js +0 -0
- package/esm2015/common/modifiers.js +31 -0
- package/{dist/es2015 → esm2015}/common/setter.js +0 -0
- package/{dist/es2015 → esm2015}/common/util.js +0 -0
- package/esm2015/data-binding.directive.js +149 -0
- package/esm2015/editing/date-time-picker.component.js +102 -0
- package/esm2015/editing/dialogs.service.js +86 -0
- package/esm2015/editing/edit-dialog-template.directive.js +34 -0
- package/esm2015/editing/edit-dialog.component.js +515 -0
- package/esm2015/editing/edit.service.js +99 -0
- package/esm2015/editing/local-data-changes.service.js +19 -0
- package/esm2015/editing/recurrence/end-rule-radio-button.directive.js +68 -0
- package/esm2015/editing/recurrence/localization/custom-messages.component.js +41 -0
- package/esm2015/editing/recurrence/localization/localized-messages.directive.js +36 -0
- package/esm2015/editing/recurrence/localization/messages.js +81 -0
- package/esm2015/editing/recurrence/localization/recurrence-localization.service.js +46 -0
- package/esm2015/editing/recurrence/recurrence-editor.component.js +410 -0
- package/esm2015/editing/recurrence/recurrence-end-rule-editor.component.js +264 -0
- package/esm2015/editing/recurrence/recurrence-frequency-editor.component.js +80 -0
- package/esm2015/editing/recurrence/recurrence-interval-editor.component.js +139 -0
- package/esm2015/editing/recurrence/recurrence-monthly-yearly-editor.component.js +434 -0
- package/esm2015/editing/recurrence/recurrence-weekday-rule-editor.component.js +105 -0
- package/esm2015/editing/recurrence/recurrence.service.js +246 -0
- package/esm2015/editing/recurrence/repeat-on-radio-button.directive.js +72 -0
- package/esm2015/editing/resource-editor-base.js +59 -0
- package/esm2015/editing/resource-multiple-editor.component.js +90 -0
- package/esm2015/editing/resource-single-editor.component.js +75 -0
- package/esm2015/editing/timezone-editor.component.js +124 -0
- package/esm2015/editing-directives/base-edit.service.js +307 -0
- package/esm2015/editing-directives/edit-service.interface.js +5 -0
- package/esm2015/editing-directives/editing-directive-base.js +218 -0
- package/esm2015/editing-directives/local-edit.service.js +120 -0
- package/esm2015/editing-directives/reactive-editing.directive.js +104 -0
- package/esm2015/editing-directives/utils.js +65 -0
- package/{dist/es2015 → esm2015}/events/add-event.js +0 -0
- package/{dist/es2015 → esm2015}/events/cancel-event.js +0 -0
- package/{dist/es2015 → esm2015}/events/create-event.js +0 -0
- package/{dist/es2015 → esm2015}/events/date-change-event.js +0 -0
- package/{dist/es2015 → esm2015}/events/drag-end-event.js +0 -0
- package/{dist/es2015 → esm2015}/events/drag-event.js +0 -0
- package/{dist/es2015 → esm2015}/events/drag-start-event.js +0 -0
- package/{dist/es2015 → esm2015}/events/edit-event-base.js +0 -0
- package/{dist/es2015 → esm2015}/events/edit-event.js +0 -0
- package/{dist/es2015 → esm2015}/events/event-click-event.js +0 -0
- package/{dist/es2015 → esm2015}/events/event-keydown-event.js +0 -0
- package/{dist/es2015 → esm2015}/events/navigate-event.js +0 -0
- package/{dist/es2015 → esm2015}/events/preventable-event.js +0 -0
- package/{dist/es2015 → esm2015}/events/remove-event.js +0 -0
- package/{dist/es2015 → esm2015}/events/resize-end-event.js +0 -0
- package/{dist/es2015 → esm2015}/events/resize-event.js +0 -0
- package/{dist/es2015 → esm2015}/events/resize-start-event.js +0 -0
- package/{dist/es2015 → esm2015}/events/save-event.js +0 -0
- package/{dist/es2015 → esm2015}/events/slot-click-event.js +0 -0
- package/{dist/es2015 → esm2015}/events/slot-drag-end-event.js +0 -0
- package/{dist/es2015 → esm2015}/events/slot-drag-event.js +0 -0
- package/{dist/es2015 → esm2015}/events/slot-drag-start-event.js +0 -0
- package/{dist/es2015 → esm2015}/events/view-event-map.js +0 -0
- package/{dist/es → esm2015}/events.js +0 -0
- package/esm2015/kendo-angular-scheduler.js +8 -0
- package/esm2015/loading.component.js +47 -0
- package/esm2015/localization/custom-messages.component.js +40 -0
- package/esm2015/localization/localized-messages.directive.js +36 -0
- package/esm2015/localization/messages.js +169 -0
- package/esm2015/localization/scheduler-localization.service.js +31 -0
- package/esm2015/main.js +69 -0
- package/esm2015/navigation/focus-position.interface.js +5 -0
- package/esm2015/navigation/focus.service.js +128 -0
- package/esm2015/navigation/focusable-element.interface.js +5 -0
- package/esm2015/navigation/focusable.directive.js +68 -0
- package/esm2015/navigation/shortcuts.directive.js +151 -0
- package/{dist/es → esm2015}/navigation.js +0 -0
- package/esm2015/package-metadata.js +15 -0
- package/esm2015/pdf/pdf-command.directive.js +58 -0
- package/{dist/es2015 → esm2015}/pdf/pdf-export-event.js +0 -0
- package/esm2015/pdf/pdf.component.js +143 -0
- package/esm2015/pdf/pdf.module.js +57 -0
- package/esm2015/pdf/pdf.service.js +38 -0
- package/esm2015/scheduler.component.js +1614 -0
- package/esm2015/scheduler.module.js +281 -0
- package/esm2015/shared.module.js +31 -0
- package/esm2015/toolbar/navigation.component.js +285 -0
- package/esm2015/toolbar/toolbar-context.js +5 -0
- package/esm2015/toolbar/toolbar-template.directive.js +48 -0
- package/esm2015/toolbar/toolbar.component.js +104 -0
- package/esm2015/toolbar/toolbar.module.js +65 -0
- package/esm2015/toolbar/toolbar.service.js +32 -0
- package/esm2015/toolbar/view-selector.component.js +131 -0
- package/esm2015/types/actions.js +5 -0
- package/esm2015/types/create-form-group-args.interface.js +5 -0
- package/esm2015/types/crud-operation.enum.js +16 -0
- package/esm2015/types/current-time-settings.interface.js +5 -0
- package/esm2015/types/date-range.interface.js +5 -0
- package/esm2015/types/datepicker-options.interface.js +5 -0
- package/esm2015/types/edit-event-args.interface.js +5 -0
- package/esm2015/types/edit-mode.enum.js +19 -0
- package/esm2015/types/editable-settings.interface.js +5 -0
- package/esm2015/types/event-style-args.interface.js +5 -0
- package/esm2015/types/group.interface.js +5 -0
- package/esm2015/types/numeric-options.interface.js +5 -0
- package/esm2015/types/ongoing-events-settings.interface.js +5 -0
- package/esm2015/types/resource.interface.js +5 -0
- package/esm2015/types/scheduler-event.js +5 -0
- package/esm2015/types/scheduler-model-fields.interface.js +5 -0
- package/esm2015/types/scheduler-slot.interface.js +5 -0
- package/{dist/es2015 → esm2015}/types/scheduler-view.js +0 -0
- package/esm2015/types/slot-class-args.interface.js +5 -0
- package/{dist/es2015 → esm2015}/types/slot-selection.js +0 -0
- package/esm2015/types/view-item.interface.js +5 -0
- package/esm2015/types.js +12 -0
- package/esm2015/views/agenda/agenda-header-item.component.js +63 -0
- package/esm2015/views/agenda/agenda-header.component.js +71 -0
- package/esm2015/views/agenda/agenda-task-item.component.js +98 -0
- package/esm2015/views/agenda/agenda-view-internal.component.js +377 -0
- package/esm2015/views/agenda/agenda-view-list.component.js +170 -0
- package/esm2015/views/agenda/agenda-view.component.js +112 -0
- package/esm2015/views/agenda/agenda-view.module.js +44 -0
- package/esm2015/views/agenda/tasks.collection.js +78 -0
- package/esm2015/views/agenda/utils.js +167 -0
- package/esm2015/views/common/base-view.js +1003 -0
- package/esm2015/views/common/configuration-view-base.js +91 -0
- package/esm2015/views/common/dom-events.service.js +24 -0
- package/esm2015/views/common/hint-container.component.js +37 -0
- package/esm2015/views/common/repeat.pipe.js +34 -0
- package/esm2015/views/common/resize-hint.component.js +88 -0
- package/esm2015/views/common/resource-iterator.pipe.js +46 -0
- package/esm2015/views/common/scheduler-task.js +5 -0
- package/esm2015/views/common/slot-selectable.directive.js +108 -0
- package/esm2015/views/common/view-footer.component.js +59 -0
- package/esm2015/views/common/views-shared.module.js +61 -0
- package/esm2015/views/common/work-hours-footer.directive.js +39 -0
- package/esm2015/views/constants.js +29 -0
- package/esm2015/views/day-time/day-time-slot.service.js +605 -0
- package/esm2015/views/day-time/day-time-view-base.js +151 -0
- package/esm2015/views/day-time/day-time-view-item.component.js +119 -0
- package/esm2015/views/day-time/day-time-view.component.js +384 -0
- package/esm2015/views/day-time/day-time.module.js +32 -0
- package/esm2015/views/day-time/event-slot.directive.js +125 -0
- package/{dist/es2015 → esm2015}/views/day-time/utils.js +0 -0
- package/esm2015/views/month/month-slot.directive.js +77 -0
- package/{dist/es2015 → esm2015}/views/month/month-slot.service.js +0 -0
- package/esm2015/views/month/month-view-item.component.js +88 -0
- package/esm2015/views/month/month-view-renderer.component.js +476 -0
- package/esm2015/views/month/month-view.component.js +108 -0
- package/esm2015/views/month/month-view.module.js +41 -0
- package/esm2015/views/month/utils.js +67 -0
- package/esm2015/views/multi-day/day-view.component.js +162 -0
- package/esm2015/views/multi-day/multi-day-view-base.js +32 -0
- package/esm2015/views/multi-day/multi-day-view-renderer.component.js +762 -0
- package/esm2015/views/multi-day/multi-day-view.component.js +162 -0
- package/esm2015/views/multi-day/multi-day-view.module.js +53 -0
- package/{dist/es2015 → esm2015}/views/multi-day/utils.js +0 -0
- package/esm2015/views/multi-day/week-view.component.js +166 -0
- package/esm2015/views/multi-day/work-week-view.component.js +150 -0
- package/esm2015/views/scheduler-view.directive.js +48 -0
- package/esm2015/views/templates/agenda-date-template.directive.js +36 -0
- package/esm2015/views/templates/agenda-time-template.directive.js +41 -0
- package/esm2015/views/templates/all-day-event-template.directive.js +37 -0
- package/esm2015/views/templates/all-day-slot-template.directive.js +37 -0
- package/esm2015/views/templates/date-header-template.directive.js +37 -0
- package/esm2015/views/templates/event-template.directive.js +37 -0
- package/esm2015/views/templates/group-header-template.directive.js +37 -0
- package/esm2015/views/templates/major-time-header-template.directive.js +36 -0
- package/esm2015/views/templates/minor-time-header-template.directive.js +36 -0
- package/esm2015/views/templates/month-day-slot-template.directive.js +37 -0
- package/esm2015/views/templates/time-slot-template.directive.js +38 -0
- package/{dist/es → esm2015}/views/templates.js +0 -0
- package/esm2015/views/timeline/timeline-base.js +32 -0
- package/esm2015/views/timeline/timeline-month-view.component.js +154 -0
- package/esm2015/views/timeline/timeline-multi-day-view.component.js +455 -0
- package/esm2015/views/timeline/timeline-view.component.js +127 -0
- package/esm2015/views/timeline/timeline-view.module.js +49 -0
- package/esm2015/views/timeline/timeline-week-view.component.js +145 -0
- package/{dist/es2015 → esm2015}/views/timeline/utils.js +0 -0
- package/{dist/es2015 → esm2015}/views/utils.js +0 -0
- package/esm2015/views/view-context.service.js +84 -0
- package/esm2015/views/view-items/base-slot.directive.js +96 -0
- package/{dist/es2015 → esm2015}/views/view-items/base-slot.service.js +0 -0
- package/esm2015/views/view-items/base-view-item.js +168 -0
- package/{dist/es2015 → esm2015}/views/view-items/item-map.js +0 -0
- package/esm2015/views/view-items/types.js +5 -0
- package/esm2015/views/view-state.service.js +97 -0
- package/{dist/es2015/events → events}/add-event.d.ts +0 -0
- package/{dist/es2015/events → events}/cancel-event.d.ts +0 -0
- package/{dist/es2015/events → events}/create-event.d.ts +0 -0
- package/{dist/es2015/events → events}/date-change-event.d.ts +0 -0
- package/{dist/es2015/events → events}/drag-end-event.d.ts +0 -0
- package/{dist/es2015/events → events}/drag-event.d.ts +0 -0
- package/{dist/es2015/events → events}/drag-start-event.d.ts +0 -0
- package/{dist/es2015/events → events}/edit-event-base.d.ts +0 -0
- package/{dist/es2015/events → events}/edit-event.d.ts +0 -0
- package/{dist/es2015/events → events}/event-click-event.d.ts +0 -0
- package/{dist/es2015/events → events}/event-keydown-event.d.ts +0 -0
- package/{dist/es2015/events → events}/navigate-event.d.ts +0 -0
- package/{dist/es2015/events → events}/preventable-event.d.ts +0 -0
- package/{dist/es2015/events → events}/remove-event.d.ts +0 -0
- package/{dist/es2015/events → events}/resize-end-event.d.ts +0 -0
- package/{dist/es2015/events → events}/resize-event.d.ts +0 -0
- package/{dist/es2015/events → events}/resize-start-event.d.ts +0 -0
- package/{dist/es2015/events → events}/save-event.d.ts +0 -0
- package/{dist/es2015/events → events}/slot-click-event.d.ts +0 -0
- package/{dist/es2015/events → events}/slot-drag-end-event.d.ts +0 -0
- package/{dist/es2015/events → events}/slot-drag-event.d.ts +0 -0
- package/{dist/es2015/events → events}/slot-drag-start-event.d.ts +0 -0
- package/{dist/es2015/events → events}/view-event-map.d.ts +0 -0
- package/{dist/es2015/events.d.ts → events.d.ts} +0 -0
- package/fesm2015/kendo-angular-scheduler.js +16629 -0
- package/kendo-angular-scheduler.d.ts +9 -0
- package/loading.component.d.ts +21 -0
- package/localization/custom-messages.component.d.ts +17 -0
- package/localization/localized-messages.directive.d.ts +16 -0
- package/localization/messages.d.ts +317 -0
- package/localization/scheduler-localization.service.d.ts +14 -0
- package/main.d.ts +71 -0
- package/{dist/es2015/navigation → navigation}/focus-position.interface.d.ts +0 -0
- package/navigation/focus.service.d.ts +37 -0
- package/{dist/es2015/navigation → navigation}/focusable-element.interface.d.ts +0 -0
- package/navigation/focusable.directive.d.ts +32 -0
- package/navigation/shortcuts.directive.d.ts +32 -0
- package/{dist/es2015/navigation.d.ts → navigation.d.ts} +0 -0
- package/{dist/es2015/package-metadata.d.ts → package-metadata.d.ts} +0 -0
- package/package.json +44 -122
- package/pdf/pdf-command.directive.d.ts +42 -0
- package/{dist/es2015/pdf → pdf}/pdf-export-event.d.ts +0 -0
- package/pdf/pdf.component.d.ts +125 -0
- package/pdf/pdf.module.d.ts +43 -0
- package/pdf/pdf.service.d.ts +18 -0
- package/scheduler.component.d.ts +678 -0
- package/scheduler.module.d.ts +95 -0
- package/schematics/ngAdd/index.js +5 -2
- package/schematics/ngAdd/index.js.map +1 -1
- package/shared.module.d.ts +15 -0
- package/toolbar/navigation.component.d.ts +107 -0
- package/{dist/es2015/toolbar → toolbar}/toolbar-context.d.ts +0 -0
- package/toolbar/toolbar-template.directive.d.ts +39 -0
- package/toolbar/toolbar.component.d.ts +35 -0
- package/toolbar/toolbar.module.d.ts +29 -0
- package/toolbar/toolbar.service.d.ts +38 -0
- package/toolbar/view-selector.component.d.ts +52 -0
- package/{dist/es2015/types → types}/actions.d.ts +0 -0
- package/{dist/es2015/types → types}/create-form-group-args.interface.d.ts +0 -0
- package/{dist/es2015/types → types}/crud-operation.enum.d.ts +0 -0
- package/{dist/es2015/types → types}/current-time-settings.interface.d.ts +0 -0
- package/{dist/es2015/types → types}/date-range.interface.d.ts +0 -0
- package/types/datepicker-options.interface.d.ts +106 -0
- package/{dist/es2015/types → types}/edit-event-args.interface.d.ts +0 -0
- package/{dist/es2015/types → types}/edit-mode.enum.d.ts +0 -0
- package/{dist/es2015/types → types}/editable-settings.interface.d.ts +0 -0
- package/{dist/es2015/types → types}/event-style-args.interface.d.ts +0 -0
- package/{dist/es2015/types → types}/group.interface.d.ts +0 -0
- package/types/numeric-options.interface.d.ts +53 -0
- package/types/ongoing-events-settings.interface.d.ts +23 -0
- package/{dist/es2015/types → types}/resource.interface.d.ts +0 -0
- package/{dist/es2015/types → types}/scheduler-event.d.ts +0 -0
- package/{dist/es2015/types → types}/scheduler-model-fields.interface.d.ts +0 -0
- package/{dist/es2015/types → types}/scheduler-slot.interface.d.ts +0 -0
- package/{dist/es2015/types → types}/scheduler-view.d.ts +0 -0
- package/{dist/es2015/types → types}/slot-class-args.interface.d.ts +0 -0
- package/{dist/es2015/types → types}/slot-selection.d.ts +0 -0
- package/{dist/es2015/types → types}/view-item.interface.d.ts +0 -0
- package/types.d.ts +25 -0
- package/views/agenda/agenda-header-item.component.d.ts +18 -0
- package/views/agenda/agenda-header.component.d.ts +20 -0
- package/views/agenda/agenda-task-item.component.d.ts +27 -0
- package/views/agenda/agenda-view-internal.component.d.ts +79 -0
- package/views/agenda/agenda-view-list.component.d.ts +32 -0
- package/views/agenda/agenda-view.component.d.ts +60 -0
- package/views/agenda/agenda-view.module.d.ts +22 -0
- package/views/agenda/tasks.collection.d.ts +44 -0
- package/{dist/es2015/views → views}/agenda/utils.d.ts +0 -0
- package/views/common/base-view.d.ts +181 -0
- package/views/common/configuration-view-base.d.ts +84 -0
- package/views/common/dom-events.service.d.ts +19 -0
- package/views/common/hint-container.component.d.ts +17 -0
- package/views/common/repeat.pipe.d.ts +14 -0
- package/views/common/resize-hint.component.d.ts +21 -0
- package/views/common/resource-iterator.pipe.d.ts +14 -0
- package/views/common/scheduler-task.d.ts +20 -0
- package/views/common/slot-selectable.directive.d.ts +48 -0
- package/views/common/view-footer.component.d.ts +22 -0
- package/views/common/views-shared.module.d.ts +23 -0
- package/views/common/work-hours-footer.directive.d.ts +23 -0
- package/views/constants.d.ts +28 -0
- package/views/day-time/day-time-slot.service.d.ts +77 -0
- package/views/day-time/day-time-view-base.d.ts +140 -0
- package/views/day-time/day-time-view-item.component.d.ts +24 -0
- package/views/day-time/day-time-view.component.d.ts +88 -0
- package/views/day-time/day-time.module.d.ts +18 -0
- package/views/day-time/event-slot.directive.d.ts +46 -0
- package/{dist/es2015/views → views}/day-time/utils.d.ts +0 -0
- package/views/month/month-slot.directive.d.ts +30 -0
- package/views/month/month-slot.service.d.ts +61 -0
- package/views/month/month-view-item.component.d.ts +20 -0
- package/views/month/month-view-renderer.component.d.ts +56 -0
- package/views/month/month-view.component.d.ts +47 -0
- package/views/month/month-view.module.d.ts +18 -0
- package/{dist/es2015/views → views}/month/utils.d.ts +0 -0
- package/views/multi-day/day-view.component.d.ts +61 -0
- package/views/multi-day/multi-day-view-base.d.ts +28 -0
- package/views/multi-day/multi-day-view-renderer.component.d.ts +68 -0
- package/views/multi-day/multi-day-view.component.d.ts +51 -0
- package/views/multi-day/multi-day-view.module.d.ts +20 -0
- package/{dist/es2015/views → views}/multi-day/utils.d.ts +0 -0
- package/views/multi-day/week-view.component.d.ts +65 -0
- package/views/multi-day/work-week-view.component.d.ts +39 -0
- package/views/scheduler-view.directive.d.ts +27 -0
- package/views/templates/agenda-date-template.directive.d.ts +27 -0
- package/views/templates/agenda-time-template.directive.d.ts +32 -0
- package/views/templates/all-day-event-template.directive.d.ts +28 -0
- package/views/templates/all-day-slot-template.directive.d.ts +28 -0
- package/views/templates/date-header-template.directive.d.ts +28 -0
- package/views/templates/event-template.directive.d.ts +28 -0
- package/views/templates/group-header-template.directive.d.ts +28 -0
- package/views/templates/major-time-header-template.directive.d.ts +27 -0
- package/views/templates/minor-time-header-template.directive.d.ts +27 -0
- package/views/templates/month-day-slot-template.directive.d.ts +28 -0
- package/views/templates/time-slot-template.directive.d.ts +29 -0
- package/{dist/es2015/views → views}/templates.d.ts +0 -0
- package/views/timeline/timeline-base.d.ts +26 -0
- package/views/timeline/timeline-month-view.component.d.ts +52 -0
- package/views/timeline/timeline-multi-day-view.component.d.ts +42 -0
- package/views/timeline/timeline-view.component.d.ts +40 -0
- package/views/timeline/timeline-view.module.d.ts +19 -0
- package/views/timeline/timeline-week-view.component.d.ts +47 -0
- package/{dist/es2015/views → views}/timeline/utils.d.ts +0 -0
- package/{dist/es2015/views → views}/utils.d.ts +0 -0
- package/views/view-context.service.d.ts +82 -0
- package/views/view-items/base-slot.directive.d.ts +40 -0
- package/{dist/es2015/views → views}/view-items/base-slot.service.d.ts +0 -0
- package/views/view-items/base-view-item.d.ts +50 -0
- package/views/view-items/item-map.d.ts +16 -0
- package/{dist/es2015/views → views}/view-items/types.d.ts +0 -0
- package/views/view-state.service.d.ts +95 -0
- package/dist/cdn/js/kendo-angular-scheduler.js +0 -20
- package/dist/cdn/main.js +0 -5
- package/dist/es/common/constants.js +0 -8
- package/dist/es/common/default-model-fields.js +0 -20
- package/dist/es/common/dom-queries.js +0 -126
- package/dist/es/common/getter.js +0 -29
- package/dist/es/common/modifiers.js +0 -31
- package/dist/es/common/setter.js +0 -30
- package/dist/es/common/util.js +0 -232
- package/dist/es/data-binding.directive.js +0 -164
- package/dist/es/editing/date-time-picker.component.js +0 -80
- package/dist/es/editing/dialogs.service.js +0 -94
- package/dist/es/editing/edit-dialog-template.directive.js +0 -35
- package/dist/es/editing/edit-dialog.component.js +0 -298
- package/dist/es/editing/edit.service.js +0 -118
- package/dist/es/editing/local-data-changes.service.js +0 -19
- package/dist/es/editing/recurrence/end-rule-radio-button.directive.js +0 -79
- package/dist/es/editing/recurrence/localization/custom-messages.component.js +0 -44
- package/dist/es/editing/recurrence/localization/localized-messages.directive.js +0 -35
- package/dist/es/editing/recurrence/localization/messages.js +0 -146
- package/dist/es/editing/recurrence/localization/recurrence-localization.service.js +0 -35
- package/dist/es/editing/recurrence/recurrence-editor.component.js +0 -174
- package/dist/es/editing/recurrence/recurrence-end-rule-editor.component.js +0 -162
- package/dist/es/editing/recurrence/recurrence-frequency-editor.component.js +0 -56
- package/dist/es/editing/recurrence/recurrence-interval-editor.component.js +0 -98
- package/dist/es/editing/recurrence/recurrence-monthly-yearly-editor.component.js +0 -277
- package/dist/es/editing/recurrence/recurrence-weekday-rule-editor.component.js +0 -82
- package/dist/es/editing/recurrence/recurrence.service.js +0 -303
- package/dist/es/editing/recurrence/repeat-on-radio-button.directive.js +0 -89
- package/dist/es/editing/resource-editor-base.js +0 -60
- package/dist/es/editing/resource-multiple-editor.component.js +0 -51
- package/dist/es/editing/resource-single-editor.component.js +0 -46
- package/dist/es/editing/timezone-editor.component.js +0 -107
- package/dist/es/editing-directives/base-edit.service.js +0 -297
- package/dist/es/editing-directives/edit-service.interface.js +0 -4
- package/dist/es/editing-directives/editing-directive-base.js +0 -229
- package/dist/es/editing-directives/local-edit.service.js +0 -136
- package/dist/es/editing-directives/reactive-editing.directive.js +0 -111
- package/dist/es/editing-directives/utils.js +0 -67
- package/dist/es/events/add-event.js +0 -23
- package/dist/es/events/cancel-event.js +0 -17
- package/dist/es/events/create-event.js +0 -18
- package/dist/es/events/date-change-event.js +0 -19
- package/dist/es/events/drag-end-event.js +0 -23
- package/dist/es/events/drag-event.js +0 -23
- package/dist/es/events/drag-start-event.js +0 -23
- package/dist/es/events/edit-event-base.js +0 -18
- package/dist/es/events/edit-event.js +0 -23
- package/dist/es/events/event-click-event.js +0 -18
- package/dist/es/events/event-keydown-event.js +0 -18
- package/dist/es/events/navigate-event.js +0 -23
- package/dist/es/events/preventable-event.js +0 -32
- package/dist/es/events/remove-event.js +0 -23
- package/dist/es/events/resize-end-event.js +0 -23
- package/dist/es/events/resize-event.js +0 -23
- package/dist/es/events/resize-start-event.js +0 -23
- package/dist/es/events/save-event.js +0 -17
- package/dist/es/events/slot-click-event.js +0 -18
- package/dist/es/events/slot-drag-end-event.js +0 -17
- package/dist/es/events/slot-drag-event.js +0 -18
- package/dist/es/events/slot-drag-start-event.js +0 -24
- package/dist/es/events/view-event-map.js +0 -35
- package/dist/es/index.js +0 -103
- package/dist/es/loading.component.js +0 -50
- package/dist/es/localization/custom-messages.component.js +0 -43
- package/dist/es/localization/localized-messages.directive.js +0 -35
- package/dist/es/localization/messages.js +0 -322
- package/dist/es/localization/scheduler-localization.service.js +0 -24
- package/dist/es/main.js +0 -23
- package/dist/es/navigation/focus-position.interface.js +0 -4
- package/dist/es/navigation/focus.service.js +0 -134
- package/dist/es/navigation/focusable-element.interface.js +0 -4
- package/dist/es/navigation/focusable.directive.js +0 -79
- package/dist/es/navigation/shortcuts.directive.js +0 -168
- package/dist/es/package-metadata.js +0 -15
- package/dist/es/pdf/pdf-command.directive.js +0 -67
- package/dist/es/pdf/pdf-export-event.js +0 -17
- package/dist/es/pdf/pdf.component.js +0 -192
- package/dist/es/pdf/pdf.module.js +0 -55
- package/dist/es/pdf/pdf.service.js +0 -38
- package/dist/es/scheduler.component.js +0 -1242
- package/dist/es/scheduler.module.js +0 -174
- package/dist/es/shared.module.js +0 -31
- package/dist/es/toolbar/navigation.component.js +0 -225
- package/dist/es/toolbar/toolbar-context.js +0 -4
- package/dist/es/toolbar/toolbar-template.directive.js +0 -47
- package/dist/es/toolbar/toolbar.component.js +0 -100
- package/dist/es/toolbar/toolbar.module.js +0 -49
- package/dist/es/toolbar/toolbar.service.js +0 -33
- package/dist/es/toolbar/view-selector.component.js +0 -86
- package/dist/es/types/actions.js +0 -4
- package/dist/es/types/create-form-group-args.interface.js +0 -4
- package/dist/es/types/crud-operation.enum.js +0 -4
- package/dist/es/types/current-time-settings.interface.js +0 -4
- package/dist/es/types/date-range.interface.js +0 -4
- package/dist/es/types/datepicker-options.interface.js +0 -4
- package/dist/es/types/edit-event-args.interface.js +0 -4
- package/dist/es/types/edit-mode.enum.js +0 -4
- package/dist/es/types/editable-settings.interface.js +0 -4
- package/dist/es/types/event-style-args.interface.js +0 -4
- package/dist/es/types/group.interface.js +0 -4
- package/dist/es/types/numeric-options.interface.js +0 -4
- package/dist/es/types/resource.interface.js +0 -4
- package/dist/es/types/scheduler-event.js +0 -4
- package/dist/es/types/scheduler-model-fields.interface.js +0 -4
- package/dist/es/types/scheduler-slot.interface.js +0 -4
- package/dist/es/types/scheduler-view.js +0 -13
- package/dist/es/types/slot-class-args.interface.js +0 -4
- package/dist/es/types/slot-selection.js +0 -23
- package/dist/es/types/view-item.interface.js +0 -4
- package/dist/es/types.js +0 -6
- package/dist/es/views/agenda/agenda-header-item.component.js +0 -56
- package/dist/es/views/agenda/agenda-header.component.js +0 -57
- package/dist/es/views/agenda/agenda-task-item.component.js +0 -96
- package/dist/es/views/agenda/agenda-view-internal.component.js +0 -377
- package/dist/es/views/agenda/agenda-view-list.component.js +0 -113
- package/dist/es/views/agenda/agenda-view.component.js +0 -98
- package/dist/es/views/agenda/agenda-view.module.js +0 -39
- package/dist/es/views/agenda/tasks.collection.js +0 -117
- package/dist/es/views/agenda/utils.js +0 -195
- package/dist/es/views/common/base-view.js +0 -1049
- package/dist/es/views/common/configuration-view-base.js +0 -107
- package/dist/es/views/common/dom-events.service.js +0 -24
- package/dist/es/views/common/hint-container.component.js +0 -31
- package/dist/es/views/common/repeat.pipe.js +0 -51
- package/dist/es/views/common/resize-hint.component.js +0 -102
- package/dist/es/views/common/resource-iterator.pipe.js +0 -65
- package/dist/es/views/common/scheduler-task.js +0 -4
- package/dist/es/views/common/slot-selectable.directive.js +0 -117
- package/dist/es/views/common/view-footer.component.js +0 -50
- package/dist/es/views/common/views-shared.module.js +0 -47
- package/dist/es/views/common/work-hours-footer.directive.js +0 -41
- package/dist/es/views/constants.js +0 -23
- package/dist/es/views/day-time/day-time-slot.service.js +0 -693
- package/dist/es/views/day-time/day-time-view-base.js +0 -212
- package/dist/es/views/day-time/day-time-view-item.component.js +0 -55
- package/dist/es/views/day-time/day-time-view.component.js +0 -405
- package/dist/es/views/day-time/day-time.module.js +0 -32
- package/dist/es/views/day-time/event-slot.directive.js +0 -189
- package/dist/es/views/day-time/utils.js +0 -33
- package/dist/es/views/month/month-slot.directive.js +0 -96
- package/dist/es/views/month/month-slot.service.js +0 -322
- package/dist/es/views/month/month-view-item.component.js +0 -43
- package/dist/es/views/month/month-view-renderer.component.js +0 -215
- package/dist/es/views/month/month-view.component.js +0 -92
- package/dist/es/views/month/month-view.module.js +0 -36
- package/dist/es/views/month/utils.js +0 -69
- package/dist/es/views/multi-day/day-view.component.js +0 -91
- package/dist/es/views/multi-day/multi-day-view-base.js +0 -33
- package/dist/es/views/multi-day/multi-day-view-renderer.component.js +0 -323
- package/dist/es/views/multi-day/multi-day-view.component.js +0 -117
- package/dist/es/views/multi-day/multi-day-view.module.js +0 -42
- package/dist/es/views/multi-day/utils.js +0 -59
- package/dist/es/views/multi-day/week-view.component.js +0 -107
- package/dist/es/views/multi-day/work-week-view.component.js +0 -85
- package/dist/es/views/scheduler-view.directive.js +0 -57
- package/dist/es/views/templates/agenda-date-template.directive.js +0 -35
- package/dist/es/views/templates/agenda-time-template.directive.js +0 -40
- package/dist/es/views/templates/all-day-event-template.directive.js +0 -36
- package/dist/es/views/templates/all-day-slot-template.directive.js +0 -36
- package/dist/es/views/templates/date-header-template.directive.js +0 -36
- package/dist/es/views/templates/event-template.directive.js +0 -36
- package/dist/es/views/templates/group-header-template.directive.js +0 -36
- package/dist/es/views/templates/major-time-header-template.directive.js +0 -35
- package/dist/es/views/templates/minor-time-header-template.directive.js +0 -35
- package/dist/es/views/templates/month-day-slot-template.directive.js +0 -37
- package/dist/es/views/templates/time-slot-template.directive.js +0 -37
- package/dist/es/views/timeline/timeline-base.js +0 -33
- package/dist/es/views/timeline/timeline-month-view.component.js +0 -93
- package/dist/es/views/timeline/timeline-multi-day-view.component.js +0 -160
- package/dist/es/views/timeline/timeline-view.component.js +0 -74
- package/dist/es/views/timeline/timeline-view.module.js +0 -40
- package/dist/es/views/timeline/timeline-week-view.component.js +0 -89
- package/dist/es/views/timeline/utils.js +0 -34
- package/dist/es/views/utils.js +0 -339
- package/dist/es/views/view-context.service.js +0 -85
- package/dist/es/views/view-items/base-slot.directive.js +0 -115
- package/dist/es/views/view-items/base-slot.service.js +0 -77
- package/dist/es/views/view-items/base-view-item.js +0 -222
- package/dist/es/views/view-items/item-map.js +0 -51
- package/dist/es/views/view-items/types.js +0 -4
- package/dist/es/views/view-state.service.js +0 -100
- package/dist/es2015/common/dom-queries.js +0 -124
- package/dist/es2015/common/modifiers.js +0 -31
- package/dist/es2015/data-binding.directive.d.ts +0 -51
- package/dist/es2015/data-binding.directive.js +0 -155
- package/dist/es2015/editing/date-time-picker.component.d.ts +0 -36
- package/dist/es2015/editing/date-time-picker.component.js +0 -97
- package/dist/es2015/editing/dialogs.service.d.ts +0 -41
- package/dist/es2015/editing/dialogs.service.js +0 -89
- package/dist/es2015/editing/edit-dialog-template.directive.d.ts +0 -24
- package/dist/es2015/editing/edit-dialog-template.directive.js +0 -34
- package/dist/es2015/editing/edit-dialog.component.d.ts +0 -76
- package/dist/es2015/editing/edit-dialog.component.js +0 -389
- package/dist/es2015/editing/edit.service.d.ts +0 -54
- package/dist/es2015/editing/edit.service.js +0 -99
- package/dist/es2015/editing/local-data-changes.service.d.ts +0 -12
- package/dist/es2015/editing/local-data-changes.service.js +0 -21
- package/dist/es2015/editing/recurrence/end-rule-radio-button.directive.d.ts +0 -28
- package/dist/es2015/editing/recurrence/end-rule-radio-button.directive.js +0 -74
- package/dist/es2015/editing/recurrence/localization/custom-messages.component.d.ts +0 -15
- package/dist/es2015/editing/recurrence/localization/custom-messages.component.js +0 -36
- package/dist/es2015/editing/recurrence/localization/localized-messages.directive.d.ts +0 -13
- package/dist/es2015/editing/recurrence/localization/localized-messages.directive.js +0 -31
- package/dist/es2015/editing/recurrence/localization/messages.d.ts +0 -138
- package/dist/es2015/editing/recurrence/localization/messages.js +0 -140
- package/dist/es2015/editing/recurrence/localization/recurrence-localization.service.d.ts +0 -14
- package/dist/es2015/editing/recurrence/localization/recurrence-localization.service.js +0 -32
- package/dist/es2015/editing/recurrence/recurrence-editor.component.d.ts +0 -87
- package/dist/es2015/editing/recurrence/recurrence-editor.component.js +0 -287
- package/dist/es2015/editing/recurrence/recurrence-end-rule-editor.component.d.ts +0 -42
- package/dist/es2015/editing/recurrence/recurrence-end-rule-editor.component.js +0 -204
- package/dist/es2015/editing/recurrence/recurrence-frequency-editor.component.d.ts +0 -23
- package/dist/es2015/editing/recurrence/recurrence-frequency-editor.component.js +0 -65
- package/dist/es2015/editing/recurrence/recurrence-interval-editor.component.d.ts +0 -24
- package/dist/es2015/editing/recurrence/recurrence-interval-editor.component.js +0 -115
- package/dist/es2015/editing/recurrence/recurrence-monthly-yearly-editor.component.d.ts +0 -50
- package/dist/es2015/editing/recurrence/recurrence-monthly-yearly-editor.component.js +0 -341
- package/dist/es2015/editing/recurrence/recurrence-weekday-rule-editor.component.d.ts +0 -28
- package/dist/es2015/editing/recurrence/recurrence-weekday-rule-editor.component.js +0 -90
- package/dist/es2015/editing/recurrence/recurrence.service.d.ts +0 -112
- package/dist/es2015/editing/recurrence/recurrence.service.js +0 -247
- package/dist/es2015/editing/recurrence/repeat-on-radio-button.directive.d.ts +0 -29
- package/dist/es2015/editing/recurrence/repeat-on-radio-button.directive.js +0 -80
- package/dist/es2015/editing/resource-editor-base.d.ts +0 -34
- package/dist/es2015/editing/resource-editor-base.js +0 -58
- package/dist/es2015/editing/resource-multiple-editor.component.d.ts +0 -18
- package/dist/es2015/editing/resource-multiple-editor.component.js +0 -67
- package/dist/es2015/editing/resource-single-editor.component.d.ts +0 -17
- package/dist/es2015/editing/resource-single-editor.component.js +0 -57
- package/dist/es2015/editing/timezone-editor.component.d.ts +0 -57
- package/dist/es2015/editing/timezone-editor.component.js +0 -116
- package/dist/es2015/editing-directives/base-edit.service.d.ts +0 -150
- package/dist/es2015/editing-directives/base-edit.service.js +0 -289
- package/dist/es2015/editing-directives/edit-service.interface.js +0 -4
- package/dist/es2015/editing-directives/editing-directive-base.d.ts +0 -56
- package/dist/es2015/editing-directives/editing-directive-base.js +0 -217
- package/dist/es2015/editing-directives/local-edit.service.d.ts +0 -33
- package/dist/es2015/editing-directives/local-edit.service.js +0 -122
- package/dist/es2015/editing-directives/reactive-editing.directive.d.ts +0 -29
- package/dist/es2015/editing-directives/reactive-editing.directive.js +0 -106
- package/dist/es2015/editing-directives/utils.js +0 -66
- package/dist/es2015/events.js +0 -25
- package/dist/es2015/index.d.ts +0 -104
- package/dist/es2015/index.js +0 -103
- package/dist/es2015/index.metadata.json +0 -1
- package/dist/es2015/loading.component.d.ts +0 -18
- package/dist/es2015/loading.component.js +0 -48
- package/dist/es2015/localization/custom-messages.component.d.ts +0 -14
- package/dist/es2015/localization/custom-messages.component.js +0 -35
- package/dist/es2015/localization/localized-messages.directive.d.ts +0 -13
- package/dist/es2015/localization/localized-messages.directive.js +0 -31
- package/dist/es2015/localization/messages.d.ts +0 -314
- package/dist/es2015/localization/messages.js +0 -316
- package/dist/es2015/localization/scheduler-localization.service.d.ts +0 -11
- package/dist/es2015/localization/scheduler-localization.service.js +0 -22
- package/dist/es2015/main.d.ts +0 -24
- package/dist/es2015/main.js +0 -23
- package/dist/es2015/navigation/focus-position.interface.js +0 -4
- package/dist/es2015/navigation/focus.service.d.ts +0 -34
- package/dist/es2015/navigation/focus.service.js +0 -128
- package/dist/es2015/navigation/focusable-element.interface.js +0 -4
- package/dist/es2015/navigation/focusable.directive.d.ts +0 -29
- package/dist/es2015/navigation/focusable.directive.js +0 -70
- package/dist/es2015/navigation/shortcuts.directive.d.ts +0 -29
- package/dist/es2015/navigation/shortcuts.directive.js +0 -163
- package/dist/es2015/navigation.js +0 -6
- package/dist/es2015/package-metadata.js +0 -15
- package/dist/es2015/pdf/pdf-command.directive.d.ts +0 -39
- package/dist/es2015/pdf/pdf-command.directive.js +0 -64
- package/dist/es2015/pdf/pdf.component.d.ts +0 -122
- package/dist/es2015/pdf/pdf.component.js +0 -178
- package/dist/es2015/pdf/pdf.module.d.ts +0 -37
- package/dist/es2015/pdf/pdf.module.js +0 -52
- package/dist/es2015/pdf/pdf.service.d.ts +0 -15
- package/dist/es2015/pdf/pdf.service.js +0 -40
- package/dist/es2015/scheduler.component.d.ts +0 -665
- package/dist/es2015/scheduler.component.js +0 -1455
- package/dist/es2015/scheduler.module.d.ts +0 -37
- package/dist/es2015/scheduler.module.js +0 -174
- package/dist/es2015/shared.module.d.ts +0 -10
- package/dist/es2015/shared.module.js +0 -28
- package/dist/es2015/toolbar/navigation.component.d.ts +0 -104
- package/dist/es2015/toolbar/navigation.component.js +0 -245
- package/dist/es2015/toolbar/toolbar-context.js +0 -4
- package/dist/es2015/toolbar/toolbar-template.directive.d.ts +0 -36
- package/dist/es2015/toolbar/toolbar-template.directive.js +0 -46
- package/dist/es2015/toolbar/toolbar.component.d.ts +0 -32
- package/dist/es2015/toolbar/toolbar.component.js +0 -104
- package/dist/es2015/toolbar/toolbar.module.d.ts +0 -16
- package/dist/es2015/toolbar/toolbar.module.js +0 -48
- package/dist/es2015/toolbar/toolbar.service.d.ts +0 -35
- package/dist/es2015/toolbar/toolbar.service.js +0 -32
- package/dist/es2015/toolbar/view-selector.component.d.ts +0 -49
- package/dist/es2015/toolbar/view-selector.component.js +0 -105
- package/dist/es2015/types/actions.js +0 -4
- package/dist/es2015/types/create-form-group-args.interface.js +0 -4
- package/dist/es2015/types/crud-operation.enum.js +0 -4
- package/dist/es2015/types/current-time-settings.interface.js +0 -4
- package/dist/es2015/types/date-range.interface.js +0 -4
- package/dist/es2015/types/datepicker-options.interface.d.ts +0 -106
- package/dist/es2015/types/datepicker-options.interface.js +0 -4
- package/dist/es2015/types/edit-event-args.interface.js +0 -4
- package/dist/es2015/types/edit-mode.enum.js +0 -4
- package/dist/es2015/types/editable-settings.interface.js +0 -4
- package/dist/es2015/types/event-style-args.interface.js +0 -4
- package/dist/es2015/types/group.interface.js +0 -4
- package/dist/es2015/types/numeric-options.interface.d.ts +0 -53
- package/dist/es2015/types/numeric-options.interface.js +0 -4
- package/dist/es2015/types/resource.interface.js +0 -4
- package/dist/es2015/types/scheduler-event.js +0 -4
- package/dist/es2015/types/scheduler-model-fields.interface.js +0 -4
- package/dist/es2015/types/scheduler-slot.interface.js +0 -4
- package/dist/es2015/types/slot-class-args.interface.js +0 -4
- package/dist/es2015/types/view-item.interface.js +0 -4
- package/dist/es2015/types.d.ts +0 -25
- package/dist/es2015/types.js +0 -6
- package/dist/es2015/views/agenda/agenda-header-item.component.d.ts +0 -15
- package/dist/es2015/views/agenda/agenda-header-item.component.js +0 -59
- package/dist/es2015/views/agenda/agenda-header.component.d.ts +0 -17
- package/dist/es2015/views/agenda/agenda-header.component.js +0 -57
- package/dist/es2015/views/agenda/agenda-task-item.component.d.ts +0 -24
- package/dist/es2015/views/agenda/agenda-task-item.component.js +0 -87
- package/dist/es2015/views/agenda/agenda-view-internal.component.d.ts +0 -76
- package/dist/es2015/views/agenda/agenda-view-internal.component.js +0 -376
- package/dist/es2015/views/agenda/agenda-view-list.component.d.ts +0 -29
- package/dist/es2015/views/agenda/agenda-view-list.component.js +0 -147
- package/dist/es2015/views/agenda/agenda-view.component.d.ts +0 -57
- package/dist/es2015/views/agenda/agenda-view.component.js +0 -104
- package/dist/es2015/views/agenda/agenda-view.module.d.ts +0 -9
- package/dist/es2015/views/agenda/agenda-view.module.js +0 -36
- package/dist/es2015/views/agenda/tasks.collection.d.ts +0 -44
- package/dist/es2015/views/agenda/tasks.collection.js +0 -80
- package/dist/es2015/views/agenda/utils.js +0 -178
- package/dist/es2015/views/common/base-view.d.ts +0 -178
- package/dist/es2015/views/common/base-view.js +0 -1019
- package/dist/es2015/views/common/configuration-view-base.d.ts +0 -73
- package/dist/es2015/views/common/configuration-view-base.js +0 -86
- package/dist/es2015/views/common/dom-events.service.d.ts +0 -16
- package/dist/es2015/views/common/dom-events.service.js +0 -26
- package/dist/es2015/views/common/hint-container.component.d.ts +0 -14
- package/dist/es2015/views/common/hint-container.component.js +0 -33
- package/dist/es2015/views/common/repeat.pipe.d.ts +0 -11
- package/dist/es2015/views/common/repeat.pipe.js +0 -32
- package/dist/es2015/views/common/resize-hint.component.d.ts +0 -18
- package/dist/es2015/views/common/resize-hint.component.js +0 -86
- package/dist/es2015/views/common/resource-iterator.pipe.d.ts +0 -11
- package/dist/es2015/views/common/resource-iterator.pipe.js +0 -44
- package/dist/es2015/views/common/scheduler-task.d.ts +0 -19
- package/dist/es2015/views/common/scheduler-task.js +0 -4
- package/dist/es2015/views/common/slot-selectable.directive.d.ts +0 -45
- package/dist/es2015/views/common/slot-selectable.directive.js +0 -112
- package/dist/es2015/views/common/view-footer.component.d.ts +0 -19
- package/dist/es2015/views/common/view-footer.component.js +0 -57
- package/dist/es2015/views/common/views-shared.module.d.ts +0 -9
- package/dist/es2015/views/common/views-shared.module.js +0 -44
- package/dist/es2015/views/common/work-hours-footer.directive.d.ts +0 -20
- package/dist/es2015/views/common/work-hours-footer.directive.js +0 -40
- package/dist/es2015/views/constants.d.ts +0 -22
- package/dist/es2015/views/constants.js +0 -23
- package/dist/es2015/views/day-time/day-time-slot.service.d.ts +0 -77
- package/dist/es2015/views/day-time/day-time-slot.service.js +0 -610
- package/dist/es2015/views/day-time/day-time-view-base.d.ts +0 -129
- package/dist/es2015/views/day-time/day-time-view-base.js +0 -161
- package/dist/es2015/views/day-time/day-time-view-item.component.d.ts +0 -21
- package/dist/es2015/views/day-time/day-time-view-item.component.js +0 -86
- package/dist/es2015/views/day-time/day-time-view.component.d.ts +0 -79
- package/dist/es2015/views/day-time/day-time-view.component.js +0 -383
- package/dist/es2015/views/day-time/day-time.module.d.ts +0 -9
- package/dist/es2015/views/day-time/day-time.module.js +0 -29
- package/dist/es2015/views/day-time/event-slot.directive.d.ts +0 -39
- package/dist/es2015/views/day-time/event-slot.directive.js +0 -151
- package/dist/es2015/views/month/month-slot.directive.d.ts +0 -26
- package/dist/es2015/views/month/month-slot.directive.js +0 -81
- package/dist/es2015/views/month/month-slot.service.d.ts +0 -61
- package/dist/es2015/views/month/month-view-item.component.d.ts +0 -17
- package/dist/es2015/views/month/month-view-item.component.js +0 -64
- package/dist/es2015/views/month/month-view-renderer.component.d.ts +0 -44
- package/dist/es2015/views/month/month-view-renderer.component.js +0 -321
- package/dist/es2015/views/month/month-view.component.d.ts +0 -44
- package/dist/es2015/views/month/month-view.component.js +0 -95
- package/dist/es2015/views/month/month-view.module.d.ts +0 -9
- package/dist/es2015/views/month/month-view.module.js +0 -33
- package/dist/es2015/views/month/utils.js +0 -69
- package/dist/es2015/views/multi-day/day-view.component.d.ts +0 -54
- package/dist/es2015/views/multi-day/day-view.component.js +0 -116
- package/dist/es2015/views/multi-day/multi-day-view-base.d.ts +0 -25
- package/dist/es2015/views/multi-day/multi-day-view-base.js +0 -26
- package/dist/es2015/views/multi-day/multi-day-view-renderer.component.d.ts +0 -65
- package/dist/es2015/views/multi-day/multi-day-view-renderer.component.js +0 -531
- package/dist/es2015/views/multi-day/multi-day-view.component.d.ts +0 -46
- package/dist/es2015/views/multi-day/multi-day-view.component.js +0 -128
- package/dist/es2015/views/multi-day/multi-day-view.module.d.ts +0 -9
- package/dist/es2015/views/multi-day/multi-day-view.module.js +0 -40
- package/dist/es2015/views/multi-day/week-view.component.d.ts +0 -62
- package/dist/es2015/views/multi-day/week-view.component.js +0 -135
- package/dist/es2015/views/multi-day/work-week-view.component.d.ts +0 -36
- package/dist/es2015/views/multi-day/work-week-view.component.js +0 -110
- package/dist/es2015/views/scheduler-view.directive.d.ts +0 -23
- package/dist/es2015/views/scheduler-view.directive.js +0 -49
- package/dist/es2015/views/templates/agenda-date-template.directive.d.ts +0 -24
- package/dist/es2015/views/templates/agenda-date-template.directive.js +0 -34
- package/dist/es2015/views/templates/agenda-time-template.directive.d.ts +0 -29
- package/dist/es2015/views/templates/agenda-time-template.directive.js +0 -39
- package/dist/es2015/views/templates/all-day-event-template.directive.d.ts +0 -25
- package/dist/es2015/views/templates/all-day-event-template.directive.js +0 -35
- package/dist/es2015/views/templates/all-day-slot-template.directive.d.ts +0 -25
- package/dist/es2015/views/templates/all-day-slot-template.directive.js +0 -35
- package/dist/es2015/views/templates/date-header-template.directive.d.ts +0 -25
- package/dist/es2015/views/templates/date-header-template.directive.js +0 -35
- package/dist/es2015/views/templates/event-template.directive.d.ts +0 -25
- package/dist/es2015/views/templates/event-template.directive.js +0 -35
- package/dist/es2015/views/templates/group-header-template.directive.d.ts +0 -25
- package/dist/es2015/views/templates/group-header-template.directive.js +0 -35
- package/dist/es2015/views/templates/major-time-header-template.directive.d.ts +0 -24
- package/dist/es2015/views/templates/major-time-header-template.directive.js +0 -34
- package/dist/es2015/views/templates/minor-time-header-template.directive.d.ts +0 -24
- package/dist/es2015/views/templates/minor-time-header-template.directive.js +0 -34
- package/dist/es2015/views/templates/month-day-slot-template.directive.d.ts +0 -25
- package/dist/es2015/views/templates/month-day-slot-template.directive.js +0 -36
- package/dist/es2015/views/templates/time-slot-template.directive.d.ts +0 -26
- package/dist/es2015/views/templates/time-slot-template.directive.js +0 -36
- package/dist/es2015/views/templates.js +0 -15
- package/dist/es2015/views/timeline/timeline-base.d.ts +0 -23
- package/dist/es2015/views/timeline/timeline-base.js +0 -26
- package/dist/es2015/views/timeline/timeline-month-view.component.d.ts +0 -49
- package/dist/es2015/views/timeline/timeline-month-view.component.js +0 -118
- package/dist/es2015/views/timeline/timeline-multi-day-view.component.d.ts +0 -39
- package/dist/es2015/views/timeline/timeline-multi-day-view.component.js +0 -302
- package/dist/es2015/views/timeline/timeline-view.component.d.ts +0 -37
- package/dist/es2015/views/timeline/timeline-view.component.js +0 -95
- package/dist/es2015/views/timeline/timeline-view.module.d.ts +0 -9
- package/dist/es2015/views/timeline/timeline-view.module.js +0 -38
- package/dist/es2015/views/timeline/timeline-week-view.component.d.ts +0 -45
- package/dist/es2015/views/timeline/timeline-week-view.component.js +0 -114
- package/dist/es2015/views/view-context.service.d.ts +0 -79
- package/dist/es2015/views/view-context.service.js +0 -84
- package/dist/es2015/views/view-items/base-slot.directive.d.ts +0 -32
- package/dist/es2015/views/view-items/base-slot.directive.js +0 -81
- package/dist/es2015/views/view-items/base-view-item.d.ts +0 -47
- package/dist/es2015/views/view-items/base-view-item.js +0 -183
- package/dist/es2015/views/view-items/item-map.d.ts +0 -16
- package/dist/es2015/views/view-items/types.js +0 -4
- package/dist/es2015/views/view-state.service.d.ts +0 -92
- package/dist/es2015/views/view-state.service.js +0 -99
- package/dist/fesm2015/index.js +0 -14992
- package/dist/fesm5/index.js +0 -14474
- package/dist/npm/common/constants.js +0 -10
- package/dist/npm/common/default-model-fields.js +0 -22
- package/dist/npm/common/dom-queries.js +0 -131
- package/dist/npm/common/getter.js +0 -32
- package/dist/npm/common/modifiers.js +0 -35
- package/dist/npm/common/setter.js +0 -33
- package/dist/npm/common/util.js +0 -243
- package/dist/npm/data-binding.directive.js +0 -166
- package/dist/npm/editing/date-time-picker.component.js +0 -82
- package/dist/npm/editing/dialogs.service.js +0 -96
- package/dist/npm/editing/edit-dialog-template.directive.js +0 -37
- package/dist/npm/editing/edit-dialog.component.js +0 -300
- package/dist/npm/editing/edit.service.js +0 -120
- package/dist/npm/editing/local-data-changes.service.js +0 -21
- package/dist/npm/editing/recurrence/end-rule-radio-button.directive.js +0 -81
- package/dist/npm/editing/recurrence/localization/custom-messages.component.js +0 -46
- package/dist/npm/editing/recurrence/localization/localized-messages.directive.js +0 -37
- package/dist/npm/editing/recurrence/localization/messages.js +0 -148
- package/dist/npm/editing/recurrence/localization/recurrence-localization.service.js +0 -37
- package/dist/npm/editing/recurrence/recurrence-editor.component.js +0 -176
- package/dist/npm/editing/recurrence/recurrence-end-rule-editor.component.js +0 -164
- package/dist/npm/editing/recurrence/recurrence-frequency-editor.component.js +0 -58
- package/dist/npm/editing/recurrence/recurrence-interval-editor.component.js +0 -100
- package/dist/npm/editing/recurrence/recurrence-monthly-yearly-editor.component.js +0 -279
- package/dist/npm/editing/recurrence/recurrence-weekday-rule-editor.component.js +0 -84
- package/dist/npm/editing/recurrence/recurrence.service.js +0 -305
- package/dist/npm/editing/recurrence/repeat-on-radio-button.directive.js +0 -91
- package/dist/npm/editing/resource-editor-base.js +0 -62
- package/dist/npm/editing/resource-multiple-editor.component.js +0 -53
- package/dist/npm/editing/resource-single-editor.component.js +0 -48
- package/dist/npm/editing/timezone-editor.component.js +0 -109
- package/dist/npm/editing-directives/base-edit.service.js +0 -299
- package/dist/npm/editing-directives/edit-service.interface.js +0 -6
- package/dist/npm/editing-directives/editing-directive-base.js +0 -231
- package/dist/npm/editing-directives/local-edit.service.js +0 -138
- package/dist/npm/editing-directives/reactive-editing.directive.js +0 -113
- package/dist/npm/editing-directives/utils.js +0 -72
- package/dist/npm/events/add-event.js +0 -25
- package/dist/npm/events/cancel-event.js +0 -19
- package/dist/npm/events/create-event.js +0 -20
- package/dist/npm/events/date-change-event.js +0 -21
- package/dist/npm/events/drag-end-event.js +0 -25
- package/dist/npm/events/drag-event.js +0 -25
- package/dist/npm/events/drag-start-event.js +0 -25
- package/dist/npm/events/edit-event-base.js +0 -20
- package/dist/npm/events/edit-event.js +0 -25
- package/dist/npm/events/event-click-event.js +0 -20
- package/dist/npm/events/event-keydown-event.js +0 -20
- package/dist/npm/events/navigate-event.js +0 -25
- package/dist/npm/events/preventable-event.js +0 -34
- package/dist/npm/events/remove-event.js +0 -25
- package/dist/npm/events/resize-end-event.js +0 -25
- package/dist/npm/events/resize-event.js +0 -25
- package/dist/npm/events/resize-start-event.js +0 -25
- package/dist/npm/events/save-event.js +0 -19
- package/dist/npm/events/slot-click-event.js +0 -20
- package/dist/npm/events/slot-drag-end-event.js +0 -19
- package/dist/npm/events/slot-drag-event.js +0 -20
- package/dist/npm/events/slot-drag-start-event.js +0 -26
- package/dist/npm/events/view-event-map.js +0 -37
- package/dist/npm/events.js +0 -48
- package/dist/npm/index.js +0 -207
- package/dist/npm/loading.component.js +0 -52
- package/dist/npm/localization/custom-messages.component.js +0 -45
- package/dist/npm/localization/localized-messages.directive.js +0 -37
- package/dist/npm/localization/messages.js +0 -324
- package/dist/npm/localization/scheduler-localization.service.js +0 -26
- package/dist/npm/main.js +0 -43
- package/dist/npm/navigation/focus-position.interface.js +0 -6
- package/dist/npm/navigation/focus.service.js +0 -136
- package/dist/npm/navigation/focusable-element.interface.js +0 -6
- package/dist/npm/navigation/focusable.directive.js +0 -81
- package/dist/npm/navigation/shortcuts.directive.js +0 -170
- package/dist/npm/navigation.js +0 -10
- package/dist/npm/package-metadata.js +0 -17
- package/dist/npm/pdf/pdf-command.directive.js +0 -69
- package/dist/npm/pdf/pdf-export-event.js +0 -19
- package/dist/npm/pdf/pdf.component.js +0 -195
- package/dist/npm/pdf/pdf.module.js +0 -57
- package/dist/npm/pdf/pdf.service.js +0 -40
- package/dist/npm/scheduler.component.js +0 -1244
- package/dist/npm/scheduler.module.js +0 -176
- package/dist/npm/shared.module.js +0 -33
- package/dist/npm/toolbar/navigation.component.js +0 -227
- package/dist/npm/toolbar/toolbar-context.js +0 -6
- package/dist/npm/toolbar/toolbar-template.directive.js +0 -49
- package/dist/npm/toolbar/toolbar.component.js +0 -102
- package/dist/npm/toolbar/toolbar.module.js +0 -51
- package/dist/npm/toolbar/toolbar.service.js +0 -35
- package/dist/npm/toolbar/view-selector.component.js +0 -88
- package/dist/npm/types/actions.js +0 -6
- package/dist/npm/types/create-form-group-args.interface.js +0 -6
- package/dist/npm/types/crud-operation.enum.js +0 -18
- package/dist/npm/types/current-time-settings.interface.js +0 -6
- package/dist/npm/types/date-range.interface.js +0 -6
- package/dist/npm/types/datepicker-options.interface.js +0 -6
- package/dist/npm/types/edit-event-args.interface.js +0 -6
- package/dist/npm/types/edit-mode.enum.js +0 -21
- package/dist/npm/types/editable-settings.interface.js +0 -6
- package/dist/npm/types/event-style-args.interface.js +0 -6
- package/dist/npm/types/group.interface.js +0 -6
- package/dist/npm/types/numeric-options.interface.js +0 -6
- package/dist/npm/types/resource.interface.js +0 -6
- package/dist/npm/types/scheduler-event.js +0 -6
- package/dist/npm/types/scheduler-model-fields.interface.js +0 -6
- package/dist/npm/types/scheduler-slot.interface.js +0 -6
- package/dist/npm/types/scheduler-view.js +0 -15
- package/dist/npm/types/slot-class-args.interface.js +0 -6
- package/dist/npm/types/slot-selection.js +0 -25
- package/dist/npm/types/view-item.interface.js +0 -6
- package/dist/npm/types.js +0 -14
- package/dist/npm/views/agenda/agenda-header-item.component.js +0 -58
- package/dist/npm/views/agenda/agenda-header.component.js +0 -59
- package/dist/npm/views/agenda/agenda-task-item.component.js +0 -98
- package/dist/npm/views/agenda/agenda-view-internal.component.js +0 -379
- package/dist/npm/views/agenda/agenda-view-list.component.js +0 -115
- package/dist/npm/views/agenda/agenda-view.component.js +0 -100
- package/dist/npm/views/agenda/agenda-view.module.js +0 -41
- package/dist/npm/views/agenda/tasks.collection.js +0 -119
- package/dist/npm/views/agenda/utils.js +0 -208
- package/dist/npm/views/common/base-view.js +0 -1051
- package/dist/npm/views/common/configuration-view-base.js +0 -109
- package/dist/npm/views/common/dom-events.service.js +0 -26
- package/dist/npm/views/common/hint-container.component.js +0 -33
- package/dist/npm/views/common/repeat.pipe.js +0 -53
- package/dist/npm/views/common/resize-hint.component.js +0 -104
- package/dist/npm/views/common/resource-iterator.pipe.js +0 -67
- package/dist/npm/views/common/scheduler-task.js +0 -6
- package/dist/npm/views/common/slot-selectable.directive.js +0 -119
- package/dist/npm/views/common/view-footer.component.js +0 -52
- package/dist/npm/views/common/views-shared.module.js +0 -49
- package/dist/npm/views/common/work-hours-footer.directive.js +0 -43
- package/dist/npm/views/constants.js +0 -26
- package/dist/npm/views/day-time/day-time-slot.service.js +0 -697
- package/dist/npm/views/day-time/day-time-view-base.js +0 -214
- package/dist/npm/views/day-time/day-time-view-item.component.js +0 -57
- package/dist/npm/views/day-time/day-time-view.component.js +0 -409
- package/dist/npm/views/day-time/day-time.module.js +0 -34
- package/dist/npm/views/day-time/event-slot.directive.js +0 -191
- package/dist/npm/views/day-time/utils.js +0 -36
- package/dist/npm/views/month/month-slot.directive.js +0 -98
- package/dist/npm/views/month/month-slot.service.js +0 -324
- package/dist/npm/views/month/month-view-item.component.js +0 -45
- package/dist/npm/views/month/month-view-renderer.component.js +0 -217
- package/dist/npm/views/month/month-view.component.js +0 -94
- package/dist/npm/views/month/month-view.module.js +0 -38
- package/dist/npm/views/month/utils.js +0 -72
- package/dist/npm/views/multi-day/day-view.component.js +0 -93
- package/dist/npm/views/multi-day/multi-day-view-base.js +0 -35
- package/dist/npm/views/multi-day/multi-day-view-renderer.component.js +0 -325
- package/dist/npm/views/multi-day/multi-day-view.component.js +0 -119
- package/dist/npm/views/multi-day/multi-day-view.module.js +0 -44
- package/dist/npm/views/multi-day/utils.js +0 -61
- package/dist/npm/views/multi-day/week-view.component.js +0 -109
- package/dist/npm/views/multi-day/work-week-view.component.js +0 -87
- package/dist/npm/views/scheduler-view.directive.js +0 -59
- package/dist/npm/views/templates/agenda-date-template.directive.js +0 -37
- package/dist/npm/views/templates/agenda-time-template.directive.js +0 -42
- package/dist/npm/views/templates/all-day-event-template.directive.js +0 -38
- package/dist/npm/views/templates/all-day-slot-template.directive.js +0 -38
- package/dist/npm/views/templates/date-header-template.directive.js +0 -38
- package/dist/npm/views/templates/event-template.directive.js +0 -38
- package/dist/npm/views/templates/group-header-template.directive.js +0 -38
- package/dist/npm/views/templates/major-time-header-template.directive.js +0 -37
- package/dist/npm/views/templates/minor-time-header-template.directive.js +0 -37
- package/dist/npm/views/templates/month-day-slot-template.directive.js +0 -39
- package/dist/npm/views/templates/time-slot-template.directive.js +0 -39
- package/dist/npm/views/templates.js +0 -28
- package/dist/npm/views/timeline/timeline-base.js +0 -35
- package/dist/npm/views/timeline/timeline-month-view.component.js +0 -95
- package/dist/npm/views/timeline/timeline-multi-day-view.component.js +0 -162
- package/dist/npm/views/timeline/timeline-view.component.js +0 -76
- package/dist/npm/views/timeline/timeline-view.module.js +0 -42
- package/dist/npm/views/timeline/timeline-week-view.component.js +0 -91
- package/dist/npm/views/timeline/utils.js +0 -36
- package/dist/npm/views/utils.js +0 -360
- package/dist/npm/views/view-context.service.js +0 -87
- package/dist/npm/views/view-items/base-slot.directive.js +0 -117
- package/dist/npm/views/view-items/base-slot.service.js +0 -79
- package/dist/npm/views/view-items/base-view-item.js +0 -224
- package/dist/npm/views/view-items/item-map.js +0 -53
- package/dist/npm/views/view-items/types.js +0 -6
- package/dist/npm/views/view-state.service.js +0 -102
- package/dist/systemjs/kendo-angular-scheduler.js +0 -5
|
@@ -1,1019 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as tslib_1 from "tslib";
|
|
6
|
-
import { ViewChild, ElementRef, Input, TemplateRef } from '@angular/core';
|
|
7
|
-
import { anyChanged } from '@progress/kendo-angular-common';
|
|
8
|
-
import { Day, ZonedDate } from '@progress/kendo-date-math';
|
|
9
|
-
import { Subscription, BehaviorSubject, combineLatest, fromEvent, merge } from 'rxjs';
|
|
10
|
-
import { switchMap, take, map, filter, tap } from 'rxjs/operators';
|
|
11
|
-
import { closestInScope, hasClasses, preventLockedScroll, scrollbarWidth, wheelDeltaY, hasScrollbar } from '../../common/dom-queries';
|
|
12
|
-
import { groupResources, getField, setField, fromClick, fromDoubleClick } from '../../common/util';
|
|
13
|
-
import { assignTasksResources, toPx, elementOffset, pointDistance, ignoreContentChild, resourceItemByValue, convertNgClassBindings, toUTCDateTime, dateWithTime, normaliseRangeStartAndEnd } from '../utils';
|
|
14
|
-
import { BORDER_WIDTH } from '../constants';
|
|
15
|
-
import Draggable from '@telerik/kendo-draggable';
|
|
16
|
-
import { HintContainerComponent } from '../common/hint-container.component';
|
|
17
|
-
import { slotDragEventName } from '../../types/slot-selection';
|
|
18
|
-
import { SlotDragStartEvent } from '../../events/slot-drag-start-event';
|
|
19
|
-
const SCROLL_CHANGE = 15;
|
|
20
|
-
const MIN_DISTANCE = 60;
|
|
21
|
-
const SCROLL_INTERVAL = 50;
|
|
22
|
-
const MIN_MOVE_DISTANCE = 10;
|
|
23
|
-
/** @hidden */
|
|
24
|
-
export class BaseView {
|
|
25
|
-
constructor(viewContext, viewState, intl, slotService, zone, renderer, element, pdfService, localization, cdr) {
|
|
26
|
-
this.viewContext = viewContext;
|
|
27
|
-
this.viewState = viewState;
|
|
28
|
-
this.intl = intl;
|
|
29
|
-
this.slotService = slotService;
|
|
30
|
-
this.zone = zone;
|
|
31
|
-
this.renderer = renderer;
|
|
32
|
-
this.element = element;
|
|
33
|
-
this.pdfService = pdfService;
|
|
34
|
-
this.localization = localization;
|
|
35
|
-
this.cdr = cdr;
|
|
36
|
-
/**
|
|
37
|
-
* The non-all-day events.
|
|
38
|
-
*/
|
|
39
|
-
this.items = new BehaviorSubject(null);
|
|
40
|
-
this.horizontalResources = [];
|
|
41
|
-
this.verticalResources = [];
|
|
42
|
-
this.dragHints = [];
|
|
43
|
-
this.resizeHints = [];
|
|
44
|
-
this.getField = getField;
|
|
45
|
-
this.changes = new BehaviorSubject(null);
|
|
46
|
-
this.viewRangeChange = new BehaviorSubject(null);
|
|
47
|
-
this.subs = new Subscription();
|
|
48
|
-
this.groupedResources = [];
|
|
49
|
-
this.spans = [];
|
|
50
|
-
this.domEvents = [];
|
|
51
|
-
this.resourcesCache = {};
|
|
52
|
-
/**
|
|
53
|
-
* The slot which is currently being dragged over while selecting a range of slots.
|
|
54
|
-
*/
|
|
55
|
-
this.dragSelecting = null;
|
|
56
|
-
/**
|
|
57
|
-
* The slot where the drag-selecting originated. Used for flipping the start and end of the emitted range.
|
|
58
|
-
*/
|
|
59
|
-
this.dragSelectOrigin = null;
|
|
60
|
-
this.autoHeight = false;
|
|
61
|
-
this.rtl = false;
|
|
62
|
-
this.isSlotSelected = () => false;
|
|
63
|
-
this.setSlotClass = this.setSlotClass.bind(this);
|
|
64
|
-
this.setHintClass = this.setHintClass.bind(this);
|
|
65
|
-
this.weekStart = intl.firstDay();
|
|
66
|
-
}
|
|
67
|
-
get eventTemplateRef() {
|
|
68
|
-
return this.еventTemplate || (this.schedulerEventTemplate || {}).templateRef;
|
|
69
|
-
}
|
|
70
|
-
get groupHeaderTemplateRef() {
|
|
71
|
-
return this.groupHeaderTemplate || (this.schedulerGroupHeaderTemplate || {}).templateRef;
|
|
72
|
-
}
|
|
73
|
-
ngOnInit() {
|
|
74
|
-
const updateView = this.updateView.bind(this);
|
|
75
|
-
this.resourcesByIndex = this.resourcesByIndex.bind(this);
|
|
76
|
-
this.subs.add(this.viewContext.selectedDate.subscribe(this.onSelectDate.bind(this)));
|
|
77
|
-
this.subs.add(this.viewContext.action.subscribe(this.onAction.bind(this)));
|
|
78
|
-
this.subs.add(this.viewContext.execute.subscribe(this.execute.bind(this)));
|
|
79
|
-
this.subs.add(this.viewContext.resize.subscribe(() => {
|
|
80
|
-
this.toggleElement(false);
|
|
81
|
-
this.updateView();
|
|
82
|
-
}));
|
|
83
|
-
this.subs.add(this.viewContext.optionsChange.subscribe(this.optionsChange.bind(this)));
|
|
84
|
-
this.subs.add(this.changes.subscribe(() => {
|
|
85
|
-
this.toggleElement(false);
|
|
86
|
-
}));
|
|
87
|
-
this.subs.add(combineLatest(this.viewContext.items, this.viewState.dateRange, this.viewRangeChange)
|
|
88
|
-
.pipe(map(([items, dateRange]) => this.createTasks(items, dateRange)))
|
|
89
|
-
.subscribe((tasks) => {
|
|
90
|
-
this.tasks = tasks;
|
|
91
|
-
this.assignResources();
|
|
92
|
-
this.onTasksChange();
|
|
93
|
-
}));
|
|
94
|
-
this.subs.add(combineLatest(this.items, this.changes, this.localization.changes).pipe(switchMap(() => this.onStable()))
|
|
95
|
-
.subscribe(updateView));
|
|
96
|
-
this.subs.add(this.pdfService.createElement.subscribe(this.createPDFElement.bind(this)));
|
|
97
|
-
}
|
|
98
|
-
ngOnChanges(changes) {
|
|
99
|
-
if (anyChanged(['selectedDateFormat', 'selectedShortDateFormat'], changes)) {
|
|
100
|
-
this.viewState.notifyDateRange(this.dateRange(this.selectedDate));
|
|
101
|
-
}
|
|
102
|
-
if (changes.eventHeight) {
|
|
103
|
-
this.changes.next(null);
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
ngAfterViewInit() {
|
|
107
|
-
this.bindEvents();
|
|
108
|
-
this.subs.add(this.localization.changes.subscribe(({ rtl }) => {
|
|
109
|
-
this.rtl = rtl;
|
|
110
|
-
}));
|
|
111
|
-
}
|
|
112
|
-
ngOnDestroy() {
|
|
113
|
-
this.subs.unsubscribe();
|
|
114
|
-
this.domEvents.forEach(unbindHandler => unbindHandler());
|
|
115
|
-
this.domEvents = [];
|
|
116
|
-
if (this.draggable) {
|
|
117
|
-
this.draggable.destroy();
|
|
118
|
-
this.draggable = null;
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
itemIndex(index, _) {
|
|
122
|
-
return index;
|
|
123
|
-
}
|
|
124
|
-
resourcesByIndex(index) {
|
|
125
|
-
if (!this.resourcesCache[index]) {
|
|
126
|
-
const resources = this.taskResources;
|
|
127
|
-
const result = [];
|
|
128
|
-
let currentIndex = index;
|
|
129
|
-
for (let idx = 0; idx < resources.length; idx++) {
|
|
130
|
-
const data = resources[idx].data || [];
|
|
131
|
-
const dataIdx = Math.floor(currentIndex / this.spans[idx]);
|
|
132
|
-
result.push(data[dataIdx]);
|
|
133
|
-
currentIndex -= dataIdx * this.spans[idx];
|
|
134
|
-
}
|
|
135
|
-
this.resourcesCache[index] = result;
|
|
136
|
-
}
|
|
137
|
-
return this.resourcesCache[index];
|
|
138
|
-
}
|
|
139
|
-
dragResourcesByIndex(index) {
|
|
140
|
-
const allResources = this.resources || [];
|
|
141
|
-
const result = [];
|
|
142
|
-
if (this.groupedResources.length) {
|
|
143
|
-
const resources = this.resourcesByIndex(index).slice(0);
|
|
144
|
-
const taskResources = this.taskResources;
|
|
145
|
-
for (let idx = 0; idx < taskResources.length; idx++) {
|
|
146
|
-
const index = this.resources.indexOf(taskResources[idx]);
|
|
147
|
-
if (index >= 0) {
|
|
148
|
-
result[index] = resources[idx];
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
for (let idx = 0; idx < allResources.length; idx++) {
|
|
153
|
-
if (!result[idx]) {
|
|
154
|
-
result[idx] = resourceItemByValue(this.dragging.task.event, allResources[idx]);
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
return result;
|
|
158
|
-
}
|
|
159
|
-
getEventClasses(item, resources, isAllDay) {
|
|
160
|
-
if (this.eventClass) {
|
|
161
|
-
return this.eventClass({
|
|
162
|
-
event: item.event,
|
|
163
|
-
resources,
|
|
164
|
-
isAllDay
|
|
165
|
-
});
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
getEventStyles(item, itemResource, isAllDay) {
|
|
169
|
-
const result = { backgroundColor: itemResource.color, borderColor: itemResource.color };
|
|
170
|
-
if (this.eventStyles) {
|
|
171
|
-
Object.assign(result, this.eventStyles({
|
|
172
|
-
event: item.event,
|
|
173
|
-
resources: itemResource.resources,
|
|
174
|
-
isAllDay
|
|
175
|
-
}));
|
|
176
|
-
}
|
|
177
|
-
return result;
|
|
178
|
-
}
|
|
179
|
-
// Similar to https://tc39.es/proposal-temporal/docs/plaindate.html
|
|
180
|
-
// Stores a "plain date" in the UTC parts of a regular `Date`.
|
|
181
|
-
toPlainDate(date) {
|
|
182
|
-
const result = toUTCDateTime(this.convertDate(date));
|
|
183
|
-
return result;
|
|
184
|
-
}
|
|
185
|
-
// Similar to https://tc39.es/proposal-temporal/docs/plaindatetime.html
|
|
186
|
-
// Stores a "plain date-time" in the UTC parts of a regular `Date`.
|
|
187
|
-
toPlainDateTime(date, time) {
|
|
188
|
-
if (!date || !time) {
|
|
189
|
-
return null;
|
|
190
|
-
}
|
|
191
|
-
return this.toPlainDate(dateWithTime(date, time));
|
|
192
|
-
}
|
|
193
|
-
optionsChange(options) {
|
|
194
|
-
this.schedulerEventTemplate = options.eventTemplate;
|
|
195
|
-
this.schedulerGroupHeaderTemplate = options.groupHeaderTemplate;
|
|
196
|
-
this.min = options.min;
|
|
197
|
-
this.max = options.max;
|
|
198
|
-
this.editable = options.editable;
|
|
199
|
-
this.timezone = options.timezone;
|
|
200
|
-
this.selectable = options.selectable;
|
|
201
|
-
this.isSlotSelected = options.isSlotSelected;
|
|
202
|
-
if (!options.changes || anyChanged(['group', 'resources'], options.changes, false) ||
|
|
203
|
-
options.group !== this.group || options.resources !== this.resources) {
|
|
204
|
-
this.group = options.group;
|
|
205
|
-
this.resources = options.resources;
|
|
206
|
-
this.groupResources();
|
|
207
|
-
this.resourcesCache = {};
|
|
208
|
-
if (this.tasks && this.tasks.length) {
|
|
209
|
-
this.assignResources();
|
|
210
|
-
this.onTasksChange();
|
|
211
|
-
}
|
|
212
|
-
this.changes.next(null);
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
toggleElement(visible) {
|
|
216
|
-
if (this.element) {
|
|
217
|
-
this.renderer.setStyle(this.element.nativeElement, 'display', visible ? 'block' : 'none');
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
onStable() {
|
|
221
|
-
return this.zone.onStable.asObservable().pipe(take(1));
|
|
222
|
-
}
|
|
223
|
-
updateView() {
|
|
224
|
-
this.slotService.invalidate();
|
|
225
|
-
this.toggleElement(true);
|
|
226
|
-
this.reflow();
|
|
227
|
-
this.viewState.notifyLayoutEnd();
|
|
228
|
-
this.viewState.emitEvent(slotDragEventName.refreshSlotSelection);
|
|
229
|
-
}
|
|
230
|
-
assignResources() {
|
|
231
|
-
assignTasksResources(this.tasks, {
|
|
232
|
-
taskResources: this.taskResources,
|
|
233
|
-
hasGroups: this.groupedResources.length > 0,
|
|
234
|
-
allResources: this.resources,
|
|
235
|
-
spans: this.spans
|
|
236
|
-
});
|
|
237
|
-
}
|
|
238
|
-
bindEvents() {
|
|
239
|
-
const contentElement = this.content.nativeElement;
|
|
240
|
-
const element = this.element.nativeElement;
|
|
241
|
-
this.zone.runOutsideAngular(() => {
|
|
242
|
-
if (this.times) {
|
|
243
|
-
this.subs.add(merge(fromEvent(this.times.nativeElement, 'mousewheel'), fromEvent(this.times.nativeElement, 'DOMMouseScroll')).pipe(filter((event) => !event.ctrlKey), tap(preventLockedScroll(contentElement)), map(wheelDeltaY))
|
|
244
|
-
.subscribe(x => contentElement.scrollTop -= x));
|
|
245
|
-
}
|
|
246
|
-
this.subs.add(merge(fromClick(contentElement), fromEvent(contentElement, 'contextmenu'))
|
|
247
|
-
.subscribe(e => this.onClick(e)));
|
|
248
|
-
this.subs.add(fromDoubleClick(contentElement)
|
|
249
|
-
.subscribe(e => this.onClick(e, 'dblclick')));
|
|
250
|
-
this.subs.add(fromEvent(element, 'keydown')
|
|
251
|
-
.subscribe(e => this.onKeydown(e)));
|
|
252
|
-
this.domEvents.push(this.renderer.listen(contentElement, 'scroll', () => {
|
|
253
|
-
if (this.headerWrap) {
|
|
254
|
-
this.headerWrap.nativeElement.scrollLeft = contentElement.scrollLeft;
|
|
255
|
-
}
|
|
256
|
-
if (this.times) {
|
|
257
|
-
this.times.nativeElement.scrollTop = contentElement.scrollTop;
|
|
258
|
-
}
|
|
259
|
-
}));
|
|
260
|
-
this.draggable = new Draggable({
|
|
261
|
-
press: this.onPress.bind(this),
|
|
262
|
-
drag: this.onDrag.bind(this),
|
|
263
|
-
release: this.onRelease.bind(this)
|
|
264
|
-
});
|
|
265
|
-
this.draggable.bindTo(element);
|
|
266
|
-
});
|
|
267
|
-
}
|
|
268
|
-
onPress(args) {
|
|
269
|
-
const editResizable = this.editable && this.editable.resize !== false;
|
|
270
|
-
const editDraggable = this.editable && this.editable.drag !== false;
|
|
271
|
-
const target = args.originalEvent.target;
|
|
272
|
-
if (hasClasses(target, 'k-resize-handle')) {
|
|
273
|
-
if (!editResizable) {
|
|
274
|
-
return;
|
|
275
|
-
}
|
|
276
|
-
this.initResize(args);
|
|
277
|
-
}
|
|
278
|
-
else if (editDraggable) {
|
|
279
|
-
const task = this.targetTask(target);
|
|
280
|
-
if (task) {
|
|
281
|
-
if (!args.isTouch) {
|
|
282
|
-
args.originalEvent.preventDefault();
|
|
283
|
-
}
|
|
284
|
-
this.pressLocation = { x: args.pageX, y: args.pageY };
|
|
285
|
-
this.pressTarget = task;
|
|
286
|
-
}
|
|
287
|
-
}
|
|
288
|
-
const notDraggingEvent = !this.pressTarget;
|
|
289
|
-
if (notDraggingEvent && this.selectable) {
|
|
290
|
-
this.initDragSelect(args);
|
|
291
|
-
}
|
|
292
|
-
this.dragArgs = args;
|
|
293
|
-
}
|
|
294
|
-
onDrag(args) {
|
|
295
|
-
if (this.resizing) {
|
|
296
|
-
this.resize(args);
|
|
297
|
-
this.scrollContainer(this.resize, args);
|
|
298
|
-
}
|
|
299
|
-
else {
|
|
300
|
-
this.initDrag(args);
|
|
301
|
-
if (this.dragging) {
|
|
302
|
-
this.drag(args);
|
|
303
|
-
args.originalEvent.preventDefault();
|
|
304
|
-
this.scrollContainer(this.drag, args);
|
|
305
|
-
}
|
|
306
|
-
if (this.dragSelecting) {
|
|
307
|
-
this.dragSelect(args);
|
|
308
|
-
}
|
|
309
|
-
}
|
|
310
|
-
this.dragArgs = args;
|
|
311
|
-
}
|
|
312
|
-
onRelease(args) {
|
|
313
|
-
clearInterval(this.scrollInterval);
|
|
314
|
-
const { resizing, dragging, dragSelecting } = this;
|
|
315
|
-
if (resizing) {
|
|
316
|
-
this.emitEvent('resizeEnd', {
|
|
317
|
-
event: resizing.task.event,
|
|
318
|
-
dataItem: resizing.task.event.dataItem,
|
|
319
|
-
start: this.convertDate(resizing.start),
|
|
320
|
-
end: this.convertDate(resizing.end)
|
|
321
|
-
});
|
|
322
|
-
this.resizeHints = [];
|
|
323
|
-
}
|
|
324
|
-
if (dragging) {
|
|
325
|
-
this.emitEvent('dragEnd', {
|
|
326
|
-
event: dragging.task.event,
|
|
327
|
-
dataItem: dragging.task.event.dataItem,
|
|
328
|
-
start: dragging.start ? this.convertDate(dragging.start) : dragging.task.start.toLocalDate(),
|
|
329
|
-
end: dragging.end ? this.convertDate(dragging.end) : dragging.task.end.toLocalDate(),
|
|
330
|
-
resources: dragging.resources,
|
|
331
|
-
isAllDay: this.draggedIsAllDay(dragging.task, dragging.slot)
|
|
332
|
-
});
|
|
333
|
-
this.dragHints = [];
|
|
334
|
-
}
|
|
335
|
-
if (resizing || dragging) {
|
|
336
|
-
this.removeSlotClass();
|
|
337
|
-
this.updateHintContainer();
|
|
338
|
-
this.resizing = null;
|
|
339
|
-
this.dragging = null;
|
|
340
|
-
}
|
|
341
|
-
if (dragSelecting) {
|
|
342
|
-
const { start, end } = normaliseRangeStartAndEnd(this.dragSelectOrigin, this.dragSelecting);
|
|
343
|
-
const range = {
|
|
344
|
-
start: this.convertDate(start),
|
|
345
|
-
end: this.convertDate(end),
|
|
346
|
-
isAllDay: this.dragSelecting.isDaySlot,
|
|
347
|
-
resources: this.resourcesByIndex(this.dragSelecting.id.resourceIndex),
|
|
348
|
-
originalEvent: args.originalEvent
|
|
349
|
-
};
|
|
350
|
-
this.viewState.notifySlotSelectionEnd(range);
|
|
351
|
-
this.dragSelectOrigin = null;
|
|
352
|
-
this.dragSelecting = null;
|
|
353
|
-
this.cdr.markForCheck();
|
|
354
|
-
}
|
|
355
|
-
this.container = null;
|
|
356
|
-
this.dragArgs = null;
|
|
357
|
-
this.pressLocation = null;
|
|
358
|
-
this.pressTarget = null;
|
|
359
|
-
}
|
|
360
|
-
setHintClass(className) {
|
|
361
|
-
(this.dragging || this.resizing).hintClass = className;
|
|
362
|
-
}
|
|
363
|
-
updateHintClass() {
|
|
364
|
-
const current = this.dragging || this.resizing;
|
|
365
|
-
let update = false;
|
|
366
|
-
this.hints.forEach(hint => {
|
|
367
|
-
if (hint.class !== current.hintClass) {
|
|
368
|
-
hint.class = current.hintClass;
|
|
369
|
-
update = true;
|
|
370
|
-
}
|
|
371
|
-
});
|
|
372
|
-
if (update) {
|
|
373
|
-
this.updateHintContainer();
|
|
374
|
-
}
|
|
375
|
-
}
|
|
376
|
-
removeHintClass() {
|
|
377
|
-
(this.dragging || this.resizing).hintClass = null;
|
|
378
|
-
}
|
|
379
|
-
setSlotClass(className) {
|
|
380
|
-
const current = this.dragging || this.resizing;
|
|
381
|
-
current.slotClass = className;
|
|
382
|
-
this.renderer.addClass(current.slot.nativeElement, current.slotClass);
|
|
383
|
-
}
|
|
384
|
-
removeSlotClass() {
|
|
385
|
-
const current = this.dragging || this.resizing;
|
|
386
|
-
if (current.slotClass) {
|
|
387
|
-
this.renderer.removeClass(current.slot.nativeElement, current.slotClass);
|
|
388
|
-
current.slotClass = null;
|
|
389
|
-
}
|
|
390
|
-
}
|
|
391
|
-
get hints() {
|
|
392
|
-
return this.dragging ? this.dragHints : this.resizeHints;
|
|
393
|
-
}
|
|
394
|
-
initDrag(args) {
|
|
395
|
-
if (!this.dragging && this.pressLocation && pointDistance(this.pressLocation.x, this.pressLocation.y, args.pageX, args.pageY) >= MIN_MOVE_DISTANCE) {
|
|
396
|
-
const dragging = this.pressTarget;
|
|
397
|
-
const task = dragging.task;
|
|
398
|
-
if (this.emitEvent('dragStart', { event: task.event, dataItem: task.event.dataItem })) {
|
|
399
|
-
this.pressLocation = null;
|
|
400
|
-
this.pressTarget = null;
|
|
401
|
-
return;
|
|
402
|
-
}
|
|
403
|
-
this.updateDragContainer(args);
|
|
404
|
-
if (this.containerOffset === undefined) {
|
|
405
|
-
return;
|
|
406
|
-
}
|
|
407
|
-
const { x, y } = this.coordinatesOffset(this.pressLocation.x, this.pressLocation.y);
|
|
408
|
-
const slot = this.slotByPosition(Math.ceil(x), Math.ceil(y), this.container);
|
|
409
|
-
if (!slot) {
|
|
410
|
-
return;
|
|
411
|
-
}
|
|
412
|
-
this.dragging = dragging;
|
|
413
|
-
this.dragging.offset = {
|
|
414
|
-
start: slot.start.getTime() - task.start.toUTCDate().getTime(),
|
|
415
|
-
end: task.end.toUTCDate().getTime() - slot.start.getTime()
|
|
416
|
-
};
|
|
417
|
-
this.dragging.slot = slot;
|
|
418
|
-
this.dragging.startResources = this.dragging.resourceItems = this.dragResourcesByIndex(slot.id.resourceIndex);
|
|
419
|
-
this.dragging.resources = this.resourceValues(task, this.dragging.startResources);
|
|
420
|
-
}
|
|
421
|
-
}
|
|
422
|
-
updateDragContainer(args) {
|
|
423
|
-
if (!this.container) {
|
|
424
|
-
this.container = this.content.nativeElement;
|
|
425
|
-
this.containerOffset = elementOffset(this.container);
|
|
426
|
-
}
|
|
427
|
-
}
|
|
428
|
-
drag(args) {
|
|
429
|
-
this.updateDragContainer(args);
|
|
430
|
-
if (!this.container) {
|
|
431
|
-
return;
|
|
432
|
-
}
|
|
433
|
-
const { x, y } = this.coordinatesOffset(args.pageX, args.pageY);
|
|
434
|
-
const slot = this.slotByPosition(x, y, this.container);
|
|
435
|
-
if (slot && (slot !== this.dragging.slot || !this.dragHints.length)) {
|
|
436
|
-
const dragging = this.dragging;
|
|
437
|
-
const { slot: currentSlot, task } = dragging;
|
|
438
|
-
const { ranges, start, end, isAllDay } = this.dragRanges(slot);
|
|
439
|
-
let resourceItems, resourceValues;
|
|
440
|
-
if (currentSlot.id.resourceIndex !== slot.id.resourceIndex) {
|
|
441
|
-
resourceItems = this.dragResourcesByIndex(slot.id.resourceIndex);
|
|
442
|
-
resourceValues = this.resourceValues(task, resourceItems);
|
|
443
|
-
}
|
|
444
|
-
else {
|
|
445
|
-
resourceItems = dragging.resourceItems;
|
|
446
|
-
resourceValues = dragging.resources;
|
|
447
|
-
}
|
|
448
|
-
this.removeSlotClass();
|
|
449
|
-
dragging.start = start;
|
|
450
|
-
dragging.end = end;
|
|
451
|
-
dragging.slot = slot;
|
|
452
|
-
dragging.resources = resourceValues;
|
|
453
|
-
dragging.resourceItems = resourceItems;
|
|
454
|
-
dragging.hintClass = null;
|
|
455
|
-
if (this.emitEvent('drag', {
|
|
456
|
-
event: task.event,
|
|
457
|
-
dataItem: task.event.dataItem,
|
|
458
|
-
start: this.convertDate(start),
|
|
459
|
-
end: this.convertDate(end),
|
|
460
|
-
resources: resourceValues,
|
|
461
|
-
isAllDay,
|
|
462
|
-
setHintClass: this.setHintClass,
|
|
463
|
-
setSlotClass: this.setSlotClass
|
|
464
|
-
})) {
|
|
465
|
-
this.updateHintClass();
|
|
466
|
-
return;
|
|
467
|
-
}
|
|
468
|
-
const color = this.dragResourceColor(task, resourceItems);
|
|
469
|
-
const hintClasses = this.dragHintClasses();
|
|
470
|
-
this.dragHints = [];
|
|
471
|
-
for (let idx = 0; idx < ranges.length; idx++) {
|
|
472
|
-
const slots = ranges[idx];
|
|
473
|
-
const first = slots[0];
|
|
474
|
-
const last = slots[slots.length - 1];
|
|
475
|
-
const size = this.dragHintSize(first, last);
|
|
476
|
-
let origin = first.rect.left;
|
|
477
|
-
const styles = {
|
|
478
|
-
top: toPx(first.rect.top),
|
|
479
|
-
left: this.localization.rtl ? '' : toPx(origin),
|
|
480
|
-
right: !this.localization.rtl ? '' : toPx(origin),
|
|
481
|
-
width: size.width,
|
|
482
|
-
height: size.height,
|
|
483
|
-
backgroundColor: color,
|
|
484
|
-
borderColor: color
|
|
485
|
-
};
|
|
486
|
-
if (this.eventStyles) {
|
|
487
|
-
Object.assign(styles, this.eventStyles(this.dragHintEventStyleArgs()));
|
|
488
|
-
}
|
|
489
|
-
this.dragHints.push({
|
|
490
|
-
item: Object.assign({}, this.dragging.task, {
|
|
491
|
-
startTime: start,
|
|
492
|
-
endTime: end
|
|
493
|
-
}),
|
|
494
|
-
resources: resourceItems,
|
|
495
|
-
class: hintClasses,
|
|
496
|
-
style: styles
|
|
497
|
-
});
|
|
498
|
-
}
|
|
499
|
-
this.updateHintContainer();
|
|
500
|
-
}
|
|
501
|
-
}
|
|
502
|
-
initDragSelect(args) {
|
|
503
|
-
this.updateDragContainer(args);
|
|
504
|
-
if (!this.containerOffset) {
|
|
505
|
-
return;
|
|
506
|
-
}
|
|
507
|
-
const { x, y } = this.coordinatesOffset(args.pageX, args.pageY);
|
|
508
|
-
const slot = this.slotByPosition(x, y, this.container);
|
|
509
|
-
if (!slot) {
|
|
510
|
-
return;
|
|
511
|
-
}
|
|
512
|
-
const range = {
|
|
513
|
-
start: this.convertDate(slot.start),
|
|
514
|
-
end: this.convertDate(slot.end),
|
|
515
|
-
isAllDay: slot.isDaySlot,
|
|
516
|
-
resources: this.resourcesByIndex(slot.id.resourceIndex),
|
|
517
|
-
originalEvent: args.originalEvent
|
|
518
|
-
};
|
|
519
|
-
const slotDragStartEvent = new SlotDragStartEvent(null, range);
|
|
520
|
-
this.viewState.notifySlotSelectionStart(slotDragStartEvent);
|
|
521
|
-
if (!slotDragStartEvent.isDefaultPrevented()) {
|
|
522
|
-
this.dragSelecting = slot;
|
|
523
|
-
this.dragSelectOrigin = slot;
|
|
524
|
-
this.cdr.markForCheck();
|
|
525
|
-
}
|
|
526
|
-
}
|
|
527
|
-
dragSelect(args) {
|
|
528
|
-
const { x, y } = this.coordinatesOffset(args.pageX, args.pageY);
|
|
529
|
-
const slot = this.slotByPosition(x, y, this.container);
|
|
530
|
-
if (!slot) {
|
|
531
|
-
return;
|
|
532
|
-
}
|
|
533
|
-
if (this.dragSelecting !== slot) {
|
|
534
|
-
this.dragSelecting = slot;
|
|
535
|
-
const { start, end } = normaliseRangeStartAndEnd(this.dragSelectOrigin, this.dragSelecting);
|
|
536
|
-
const range = {
|
|
537
|
-
start: this.convertDate(start),
|
|
538
|
-
end: this.convertDate(end),
|
|
539
|
-
isAllDay: slot.isDaySlot,
|
|
540
|
-
resources: this.resourcesByIndex(slot.id.resourceIndex),
|
|
541
|
-
originalEvent: args.originalEvent
|
|
542
|
-
};
|
|
543
|
-
this.viewState.notifySlotSelectionDrag(range);
|
|
544
|
-
this.cdr.markForCheck();
|
|
545
|
-
}
|
|
546
|
-
}
|
|
547
|
-
dragHintClasses() {
|
|
548
|
-
const hintClass = this.dragging.hintClass;
|
|
549
|
-
let result = [];
|
|
550
|
-
if (hintClass) {
|
|
551
|
-
result.push(hintClass);
|
|
552
|
-
}
|
|
553
|
-
if (this.eventClass) {
|
|
554
|
-
const eventClass = this.eventClass(this.dragHintEventStyleArgs());
|
|
555
|
-
result = result.concat(convertNgClassBindings(eventClass));
|
|
556
|
-
}
|
|
557
|
-
return result;
|
|
558
|
-
}
|
|
559
|
-
dragHintEventStyleArgs() {
|
|
560
|
-
return {
|
|
561
|
-
event: this.dragging.task.event,
|
|
562
|
-
resources: this.dragging.resourceItems
|
|
563
|
-
};
|
|
564
|
-
}
|
|
565
|
-
draggedIsAllDay(task, _slot) {
|
|
566
|
-
return Boolean(task.event.isAllDay);
|
|
567
|
-
}
|
|
568
|
-
dragResourceColor(task, slotResources) {
|
|
569
|
-
if (this.groupedResources.length) {
|
|
570
|
-
const index = this.resources.indexOf(this.groupedResources[0]);
|
|
571
|
-
return getField(slotResources[index], this.groupedResources[0].colorField);
|
|
572
|
-
}
|
|
573
|
-
else if (this.resources && this.resources.length) {
|
|
574
|
-
return task.resources[0].color;
|
|
575
|
-
}
|
|
576
|
-
return '';
|
|
577
|
-
}
|
|
578
|
-
resourceValues(task, currentResources) {
|
|
579
|
-
const result = {};
|
|
580
|
-
for (let idx = 0; idx < currentResources.length; idx++) {
|
|
581
|
-
const resource = this.resources[idx];
|
|
582
|
-
const resourceItem = currentResources[idx];
|
|
583
|
-
let value;
|
|
584
|
-
if (Array.isArray(resourceItem)) { // not grouped multiple resource
|
|
585
|
-
value = getField(task.event, resource.field);
|
|
586
|
-
}
|
|
587
|
-
else {
|
|
588
|
-
value = getField(currentResources[idx], resource.valueField);
|
|
589
|
-
if (resource.multiple) {
|
|
590
|
-
const startValue = getField(this.dragging.startResources[idx], resource.valueField);
|
|
591
|
-
if (startValue !== value) {
|
|
592
|
-
value = [value];
|
|
593
|
-
}
|
|
594
|
-
else {
|
|
595
|
-
value = getField(task.event.dataItem, resource.field);
|
|
596
|
-
}
|
|
597
|
-
}
|
|
598
|
-
}
|
|
599
|
-
setField(result, resource.field, value);
|
|
600
|
-
}
|
|
601
|
-
return result;
|
|
602
|
-
}
|
|
603
|
-
initResize(args) {
|
|
604
|
-
args.originalEvent.preventDefault();
|
|
605
|
-
const target = args.originalEvent.target;
|
|
606
|
-
const resizing = this.targetTask(target);
|
|
607
|
-
if (this.emitEvent('resizeStart', { event: resizing.task.event, dataItem: resizing.task.event.dataItem })) {
|
|
608
|
-
return;
|
|
609
|
-
}
|
|
610
|
-
this.resizing = resizing;
|
|
611
|
-
resizing.start = resizing.task.start.toUTCDate();
|
|
612
|
-
resizing.end = resizing.task.end.toUTCDate();
|
|
613
|
-
if (hasClasses(target, 'k-resize-n')) {
|
|
614
|
-
resizing.direction = 'n';
|
|
615
|
-
}
|
|
616
|
-
else if (hasClasses(target, 'k-resize-s')) {
|
|
617
|
-
resizing.direction = 's';
|
|
618
|
-
}
|
|
619
|
-
else if (hasClasses(target, 'k-resize-w')) {
|
|
620
|
-
resizing.direction = 'w';
|
|
621
|
-
}
|
|
622
|
-
else {
|
|
623
|
-
resizing.direction = 'e';
|
|
624
|
-
}
|
|
625
|
-
this.updateDragContainer(args);
|
|
626
|
-
const { x, y } = this.coordinatesOffset(args.pageX, args.pageY);
|
|
627
|
-
resizing.slot = this.slotByPosition(Math.ceil(x), Math.ceil(y), this.container);
|
|
628
|
-
resizing.offset = {
|
|
629
|
-
start: resizing.task.start.toUTCDate().getTime() - resizing.slot.start.getTime(),
|
|
630
|
-
end: resizing.task.end.toUTCDate().getTime() - resizing.slot.start.getTime()
|
|
631
|
-
};
|
|
632
|
-
}
|
|
633
|
-
resize(args) {
|
|
634
|
-
const { x, y } = this.coordinatesOffset(args.pageX, args.pageY);
|
|
635
|
-
const resizing = this.resizing;
|
|
636
|
-
const { direction, task, offset } = resizing;
|
|
637
|
-
const slot = this.slotService.groupSlotByPosition(resizing.slot, x, y);
|
|
638
|
-
if (!slot || slot === resizing.slot) {
|
|
639
|
-
return;
|
|
640
|
-
}
|
|
641
|
-
this.removeSlotClass();
|
|
642
|
-
const { start, end, ranges } = this.slotService.resizeRanges(slot, task, direction === 'w' || direction === 'n', offset);
|
|
643
|
-
resizing.hintClass = null;
|
|
644
|
-
resizing.start = start;
|
|
645
|
-
resizing.end = end;
|
|
646
|
-
resizing.slot = slot;
|
|
647
|
-
if (this.emitEvent('resize', {
|
|
648
|
-
event: task.event,
|
|
649
|
-
dataItem: task.event.dataItem,
|
|
650
|
-
start: this.convertDate(start),
|
|
651
|
-
end: this.convertDate(end),
|
|
652
|
-
setHintClass: this.setHintClass,
|
|
653
|
-
setSlotClass: this.setSlotClass
|
|
654
|
-
})) {
|
|
655
|
-
this.updateHintClass();
|
|
656
|
-
return;
|
|
657
|
-
}
|
|
658
|
-
this.updateResizeHints(ranges, start, end);
|
|
659
|
-
this.updateHintContainer();
|
|
660
|
-
}
|
|
661
|
-
updateResizeHints(ranges, start, end) {
|
|
662
|
-
const resizing = this.resizing;
|
|
663
|
-
const direction = resizing.direction;
|
|
664
|
-
const horizontal = direction === 'w' || direction === 'e';
|
|
665
|
-
const resizeStart = direction === 'w' || direction === 'n';
|
|
666
|
-
this.resizeHints = [];
|
|
667
|
-
for (let idx = 0; idx < ranges.length; idx++) {
|
|
668
|
-
const range = ranges[idx];
|
|
669
|
-
const firstSlot = range[0];
|
|
670
|
-
const lastSlot = range[range.length - 1];
|
|
671
|
-
const first = idx === 0;
|
|
672
|
-
const last = idx === ranges.length - 1;
|
|
673
|
-
this.resizeHints.push({
|
|
674
|
-
first: first,
|
|
675
|
-
last: last,
|
|
676
|
-
rect: {
|
|
677
|
-
left: firstSlot.rect.left,
|
|
678
|
-
top: firstSlot.top,
|
|
679
|
-
height: horizontal ? firstSlot.height : Math.abs(lastSlot.rect.top - firstSlot.rect.top) + lastSlot.rect.height,
|
|
680
|
-
width: horizontal ? Math.abs(lastSlot.rect.left - firstSlot.rect.left) + lastSlot.rect.width : firstSlot.width
|
|
681
|
-
},
|
|
682
|
-
start: first && !resizeStart ? resizing.start : firstSlot.start,
|
|
683
|
-
end: last && resizeStart ? resizing.end : lastSlot.end,
|
|
684
|
-
class: resizing.hintClass
|
|
685
|
-
});
|
|
686
|
-
}
|
|
687
|
-
}
|
|
688
|
-
coordinatesOffset(x, y, container = this.container, offset = this.containerOffset) {
|
|
689
|
-
const position = x - offset.left + container.scrollLeft;
|
|
690
|
-
return {
|
|
691
|
-
x: !this.localization.rtl ? position : this.slotService.containerSize - position,
|
|
692
|
-
y: y - offset.top + container.scrollTop
|
|
693
|
-
};
|
|
694
|
-
}
|
|
695
|
-
scrollContainer(callback, args) {
|
|
696
|
-
clearInterval(this.scrollInterval);
|
|
697
|
-
const container = this.container;
|
|
698
|
-
if (!container) {
|
|
699
|
-
return;
|
|
700
|
-
}
|
|
701
|
-
const viewPortY = args.pageY - this.containerOffset.top;
|
|
702
|
-
const pointerYDistance = Math.abs(container.offsetHeight - viewPortY);
|
|
703
|
-
const deltaY = args.pageY - this.dragArgs.pageY;
|
|
704
|
-
const viewPortX = args.pageX - this.containerOffset.left;
|
|
705
|
-
const pointerXDistance = Math.abs(container.offsetWidth - viewPortX);
|
|
706
|
-
const deltaX = args.pageX - this.dragArgs.pageX;
|
|
707
|
-
let scroll = false;
|
|
708
|
-
let leftChange = 0;
|
|
709
|
-
let topChange = 0;
|
|
710
|
-
if (pointerYDistance < MIN_DISTANCE && container.scrollTop + container.offsetHeight < container.scrollHeight && deltaY > 0) {
|
|
711
|
-
scroll = true;
|
|
712
|
-
topChange = SCROLL_CHANGE;
|
|
713
|
-
this.container.scrollTop += MIN_DISTANCE - pointerYDistance;
|
|
714
|
-
}
|
|
715
|
-
else if (viewPortY < MIN_DISTANCE && container.scrollTop > 0 && deltaY < 0) {
|
|
716
|
-
scroll = true;
|
|
717
|
-
topChange = -SCROLL_CHANGE;
|
|
718
|
-
this.container.scrollTop -= MIN_DISTANCE - viewPortY;
|
|
719
|
-
}
|
|
720
|
-
if (pointerXDistance < MIN_DISTANCE && container.scrollLeft + container.offsetWidth < container.scrollWidth && deltaX > 0) {
|
|
721
|
-
scroll = true;
|
|
722
|
-
leftChange = SCROLL_CHANGE;
|
|
723
|
-
this.container.scrollLeft += MIN_DISTANCE - pointerXDistance;
|
|
724
|
-
}
|
|
725
|
-
else if (viewPortX < MIN_DISTANCE && container.scrollLeft > 0 && deltaY < 0) {
|
|
726
|
-
scroll = true;
|
|
727
|
-
leftChange = -SCROLL_CHANGE;
|
|
728
|
-
this.container.scrollLeft -= MIN_DISTANCE - viewPortX;
|
|
729
|
-
}
|
|
730
|
-
if (scroll) {
|
|
731
|
-
this.scrollInterval = setInterval(() => {
|
|
732
|
-
if (this.container) {
|
|
733
|
-
this.container.scrollLeft += leftChange;
|
|
734
|
-
this.container.scrollTop += topChange;
|
|
735
|
-
callback.call(this, args);
|
|
736
|
-
}
|
|
737
|
-
else {
|
|
738
|
-
clearInterval(this.scrollInterval);
|
|
739
|
-
}
|
|
740
|
-
}, SCROLL_INTERVAL);
|
|
741
|
-
}
|
|
742
|
-
}
|
|
743
|
-
emitEvent(name, args) {
|
|
744
|
-
this.viewState.emitEvent(name, args);
|
|
745
|
-
return args.prevented;
|
|
746
|
-
}
|
|
747
|
-
targetTask(target) {
|
|
748
|
-
const eventTarget = closestInScope(target, node => node.hasAttribute('data-task-index'), this.element.nativeElement);
|
|
749
|
-
if (eventTarget) {
|
|
750
|
-
const index = parseInt(eventTarget.getAttribute('data-task-index'), 10);
|
|
751
|
-
return {
|
|
752
|
-
target: eventTarget,
|
|
753
|
-
task: this.tasks.find(t => t.index === index)
|
|
754
|
-
};
|
|
755
|
-
}
|
|
756
|
-
}
|
|
757
|
-
updateHintContainer() {
|
|
758
|
-
if (this.hintContainer) {
|
|
759
|
-
this.hintContainer.detectChanges();
|
|
760
|
-
}
|
|
761
|
-
}
|
|
762
|
-
/**
|
|
763
|
-
* Converts a "view date" (date stored in the UTC parts of a Date object) to a local date.
|
|
764
|
-
*/
|
|
765
|
-
convertDate(date) {
|
|
766
|
-
return ZonedDate.fromUTCDate(date, this.timezone).toLocalDate();
|
|
767
|
-
}
|
|
768
|
-
onClick(e, eventType = e.type) {
|
|
769
|
-
this.emitSlotEvent(e, eventType);
|
|
770
|
-
this.emitTaskEvent(e, eventType);
|
|
771
|
-
}
|
|
772
|
-
emitSlotEvent(e, eventType) {
|
|
773
|
-
const targetSlot = closestInScope(e.target, node => node.hasAttribute('data-slot-index'), this.element.nativeElement);
|
|
774
|
-
if (targetSlot) {
|
|
775
|
-
const slotIndex = targetSlot.getAttribute('data-slot-index');
|
|
776
|
-
const name = eventType === 'dblclick' ? 'slotDblClick' : 'slotClick';
|
|
777
|
-
const slot = this.slotByIndex(slotIndex, e);
|
|
778
|
-
this.viewState.emitEvent(name, {
|
|
779
|
-
type: eventType,
|
|
780
|
-
slot: slot,
|
|
781
|
-
start: this.convertDate(slot.start),
|
|
782
|
-
end: this.convertDate(slot.end),
|
|
783
|
-
isAllDay: slot.isDaySlot,
|
|
784
|
-
originalEvent: e,
|
|
785
|
-
resources: this.resources && this.resources.length ?
|
|
786
|
-
this.resourcesByIndex(slot.id.resourceIndex) : []
|
|
787
|
-
});
|
|
788
|
-
}
|
|
789
|
-
}
|
|
790
|
-
emitTaskEvent(e, eventType) {
|
|
791
|
-
const targetTask = this.targetTask(e.target);
|
|
792
|
-
if (targetTask) {
|
|
793
|
-
const task = targetTask.task;
|
|
794
|
-
const isSingle = eventType === 'click';
|
|
795
|
-
const isDouble = eventType === 'dblclick';
|
|
796
|
-
if (isSingle && closestInScope(e.target, node => hasClasses(node, 'k-event-delete'), targetTask.target)) {
|
|
797
|
-
this.viewState.emitEvent('remove', { event: task.event, dataItem: task.event.dataItem });
|
|
798
|
-
}
|
|
799
|
-
else {
|
|
800
|
-
const name = isDouble ? 'eventDblClick' : 'eventClick';
|
|
801
|
-
this.viewState.emitEvent(name, { type: eventType, event: task.event, originalEvent: e });
|
|
802
|
-
targetTask.target.focus();
|
|
803
|
-
}
|
|
804
|
-
}
|
|
805
|
-
}
|
|
806
|
-
onKeydown(e) {
|
|
807
|
-
const targetTask = this.targetTask(e.target);
|
|
808
|
-
if (targetTask) {
|
|
809
|
-
const task = targetTask.task;
|
|
810
|
-
this.viewState.emitEvent('eventKeydown', { event: task.event, dataItem: task.event.dataItem, originalEvent: e });
|
|
811
|
-
}
|
|
812
|
-
}
|
|
813
|
-
syncTables() {
|
|
814
|
-
if (this.timesTable) {
|
|
815
|
-
this.renderer.setStyle(this.timesTable.nativeElement, 'height', `${this.contentTable.nativeElement.offsetHeight}px`);
|
|
816
|
-
}
|
|
817
|
-
if (this.header) {
|
|
818
|
-
this.renderer.setStyle(this.header.nativeElement, !this.localization.rtl ? 'padding-right' : 'padding-left', `${hasScrollbar(this.content.nativeElement, 'vertical') ? scrollbarWidth() - BORDER_WIDTH : 0}px`);
|
|
819
|
-
this.renderer.setStyle(this.header.nativeElement, this.localization.rtl ? 'padding-right' : 'padding-left', '0px');
|
|
820
|
-
}
|
|
821
|
-
if (this.times) {
|
|
822
|
-
const times = this.times.nativeElement;
|
|
823
|
-
this.timesHeader.nativeElement.style.width = `${times.offsetWidth}px`;
|
|
824
|
-
const contentHeight = this.contentHeight === 'auto' ? this.content.nativeElement.offsetHeight : this.contentHeight;
|
|
825
|
-
this.renderer.setStyle(times, 'height', `${contentHeight - (hasScrollbar(this.content.nativeElement, 'horizontal') ? scrollbarWidth() : 0)}px`);
|
|
826
|
-
times.scrollTop = this.content.nativeElement.scrollTop;
|
|
827
|
-
}
|
|
828
|
-
}
|
|
829
|
-
updateContentHeight() {
|
|
830
|
-
const element = this.element.nativeElement;
|
|
831
|
-
const parent = element.parentNode;
|
|
832
|
-
const content = this.content.nativeElement;
|
|
833
|
-
const autoHeight = this.autoHeight || !parent.style.height;
|
|
834
|
-
const scrollLeft = content.scrollLeft;
|
|
835
|
-
const scrollTop = content.scrollTop;
|
|
836
|
-
this.renderer.setStyle(content, 'height', '');
|
|
837
|
-
if (this.times) {
|
|
838
|
-
this.renderer.setStyle(this.times.nativeElement, 'height', '');
|
|
839
|
-
}
|
|
840
|
-
if (autoHeight) {
|
|
841
|
-
this.contentHeight = 'auto';
|
|
842
|
-
return;
|
|
843
|
-
}
|
|
844
|
-
let height = parent.clientHeight;
|
|
845
|
-
for (let idx = 0; idx < parent.children.length; idx++) {
|
|
846
|
-
const child = parent.children[idx];
|
|
847
|
-
if (child !== element && !ignoreContentChild(child)) {
|
|
848
|
-
height -= child.offsetHeight;
|
|
849
|
-
}
|
|
850
|
-
}
|
|
851
|
-
height -= this.headerWrap ? this.headerWrap.nativeElement.offsetHeight : 0;
|
|
852
|
-
this.renderer.setStyle(content, 'height', `${height}px`);
|
|
853
|
-
this.contentHeight = height;
|
|
854
|
-
content.scrollLeft = scrollLeft;
|
|
855
|
-
content.scrollTop = scrollTop;
|
|
856
|
-
}
|
|
857
|
-
groupResources() {
|
|
858
|
-
const resources = this.resources || [];
|
|
859
|
-
const group = this.group || {};
|
|
860
|
-
this.groupedResources = groupResources(group, resources);
|
|
861
|
-
if (group.orientation !== 'vertical') {
|
|
862
|
-
this.horizontalResources = this.groupedResources;
|
|
863
|
-
this.verticalResources = [];
|
|
864
|
-
}
|
|
865
|
-
else {
|
|
866
|
-
this.verticalResources = this.groupedResources;
|
|
867
|
-
this.horizontalResources = [];
|
|
868
|
-
}
|
|
869
|
-
this.spans = this.resourceSpans();
|
|
870
|
-
}
|
|
871
|
-
get taskResources() {
|
|
872
|
-
if (this.groupedResources.length) {
|
|
873
|
-
return this.groupedResources;
|
|
874
|
-
}
|
|
875
|
-
else if (this.resources && this.resources.length) {
|
|
876
|
-
return [this.resources[0]];
|
|
877
|
-
}
|
|
878
|
-
else {
|
|
879
|
-
return [{}];
|
|
880
|
-
}
|
|
881
|
-
}
|
|
882
|
-
resourceSpans() {
|
|
883
|
-
const spans = [1];
|
|
884
|
-
const resources = this.groupedResources;
|
|
885
|
-
let span = 1;
|
|
886
|
-
for (let idx = resources.length - 1; idx > 0; idx--) {
|
|
887
|
-
span *= ((resources[idx].data || []).length || 1);
|
|
888
|
-
spans.unshift(span);
|
|
889
|
-
}
|
|
890
|
-
return spans;
|
|
891
|
-
}
|
|
892
|
-
isInRange(date) {
|
|
893
|
-
const dateRange = this.dateRange(date);
|
|
894
|
-
return (!this.min || this.min < dateRange.end) && (!this.max || dateRange.start <= this.max);
|
|
895
|
-
}
|
|
896
|
-
createPDFElement() {
|
|
897
|
-
const contentHeight = this.contentHeight;
|
|
898
|
-
const scrollTop = this.content.nativeElement.scrollTop;
|
|
899
|
-
if (contentHeight !== 'auto') {
|
|
900
|
-
this.autoHeight = true;
|
|
901
|
-
this.updateView();
|
|
902
|
-
}
|
|
903
|
-
const element = this.element.nativeElement.cloneNode(true);
|
|
904
|
-
element.style.width = `${this.pdfWidth()}px`;
|
|
905
|
-
if (contentHeight !== 'auto') {
|
|
906
|
-
this.autoHeight = false;
|
|
907
|
-
this.updateView();
|
|
908
|
-
}
|
|
909
|
-
this.pdfService.elementReady.emit({
|
|
910
|
-
element: element
|
|
911
|
-
});
|
|
912
|
-
this.content.nativeElement.scrollTop = scrollTop;
|
|
913
|
-
}
|
|
914
|
-
pdfWidth() {
|
|
915
|
-
return this.element.nativeElement.offsetWidth;
|
|
916
|
-
}
|
|
917
|
-
containerByPosition({ x, y }) {
|
|
918
|
-
const content = this.content.nativeElement;
|
|
919
|
-
const offset = elementOffset(content);
|
|
920
|
-
if (offset.top <= y && y <= offset.top + offset.height && offset.left <= x && x <= offset.left + offset.width) {
|
|
921
|
-
return {
|
|
922
|
-
element: content,
|
|
923
|
-
offset: offset
|
|
924
|
-
};
|
|
925
|
-
}
|
|
926
|
-
}
|
|
927
|
-
execute(e) {
|
|
928
|
-
if (e.name === 'slotByPosition') {
|
|
929
|
-
const container = this.containerByPosition(e.args);
|
|
930
|
-
if (container) {
|
|
931
|
-
const offset = this.coordinatesOffset(e.args.x, e.args.y, container.element, container.offset);
|
|
932
|
-
const slot = this.slotByPosition(offset.x, offset.y, container.element);
|
|
933
|
-
e.result(this.slotFields(slot));
|
|
934
|
-
}
|
|
935
|
-
}
|
|
936
|
-
else if (e.name === 'eventFromElement') {
|
|
937
|
-
const target = this.targetTask(e.args.element);
|
|
938
|
-
if (target) {
|
|
939
|
-
e.result(target.task.event);
|
|
940
|
-
}
|
|
941
|
-
}
|
|
942
|
-
}
|
|
943
|
-
slotFields(slot) {
|
|
944
|
-
return {
|
|
945
|
-
element: slot.element,
|
|
946
|
-
resources: this.groupedResources.length ? this.resourcesByIndex(slot.id.resourceIndex) : [],
|
|
947
|
-
start: this.convertDate(slot.start),
|
|
948
|
-
end: this.convertDate(slot.end)
|
|
949
|
-
};
|
|
950
|
-
}
|
|
951
|
-
}
|
|
952
|
-
tslib_1.__decorate([
|
|
953
|
-
Input(),
|
|
954
|
-
tslib_1.__metadata("design:type", TemplateRef)
|
|
955
|
-
], BaseView.prototype, "\u0435ventTemplate", void 0);
|
|
956
|
-
tslib_1.__decorate([
|
|
957
|
-
Input(),
|
|
958
|
-
tslib_1.__metadata("design:type", TemplateRef)
|
|
959
|
-
], BaseView.prototype, "groupHeaderTemplate", void 0);
|
|
960
|
-
tslib_1.__decorate([
|
|
961
|
-
Input(),
|
|
962
|
-
tslib_1.__metadata("design:type", String)
|
|
963
|
-
], BaseView.prototype, "selectedDateFormat", void 0);
|
|
964
|
-
tslib_1.__decorate([
|
|
965
|
-
Input(),
|
|
966
|
-
tslib_1.__metadata("design:type", String)
|
|
967
|
-
], BaseView.prototype, "selectedShortDateFormat", void 0);
|
|
968
|
-
tslib_1.__decorate([
|
|
969
|
-
Input(),
|
|
970
|
-
tslib_1.__metadata("design:type", Number)
|
|
971
|
-
], BaseView.prototype, "eventHeight", void 0);
|
|
972
|
-
tslib_1.__decorate([
|
|
973
|
-
Input(),
|
|
974
|
-
tslib_1.__metadata("design:type", Function)
|
|
975
|
-
], BaseView.prototype, "slotClass", void 0);
|
|
976
|
-
tslib_1.__decorate([
|
|
977
|
-
Input(),
|
|
978
|
-
tslib_1.__metadata("design:type", Function)
|
|
979
|
-
], BaseView.prototype, "eventClass", void 0);
|
|
980
|
-
tslib_1.__decorate([
|
|
981
|
-
Input(),
|
|
982
|
-
tslib_1.__metadata("design:type", Function)
|
|
983
|
-
], BaseView.prototype, "eventStyles", void 0);
|
|
984
|
-
tslib_1.__decorate([
|
|
985
|
-
Input(),
|
|
986
|
-
tslib_1.__metadata("design:type", Number)
|
|
987
|
-
], BaseView.prototype, "weekStart", void 0);
|
|
988
|
-
tslib_1.__decorate([
|
|
989
|
-
ViewChild('content', { static: false }),
|
|
990
|
-
tslib_1.__metadata("design:type", ElementRef)
|
|
991
|
-
], BaseView.prototype, "content", void 0);
|
|
992
|
-
tslib_1.__decorate([
|
|
993
|
-
ViewChild('header', { static: false }),
|
|
994
|
-
tslib_1.__metadata("design:type", ElementRef)
|
|
995
|
-
], BaseView.prototype, "header", void 0);
|
|
996
|
-
tslib_1.__decorate([
|
|
997
|
-
ViewChild('contentTable', { static: false }),
|
|
998
|
-
tslib_1.__metadata("design:type", ElementRef)
|
|
999
|
-
], BaseView.prototype, "contentTable", void 0);
|
|
1000
|
-
tslib_1.__decorate([
|
|
1001
|
-
ViewChild('times', { static: false }),
|
|
1002
|
-
tslib_1.__metadata("design:type", ElementRef)
|
|
1003
|
-
], BaseView.prototype, "times", void 0);
|
|
1004
|
-
tslib_1.__decorate([
|
|
1005
|
-
ViewChild('timesHeader', { static: false }),
|
|
1006
|
-
tslib_1.__metadata("design:type", ElementRef)
|
|
1007
|
-
], BaseView.prototype, "timesHeader", void 0);
|
|
1008
|
-
tslib_1.__decorate([
|
|
1009
|
-
ViewChild('timesTable', { static: false }),
|
|
1010
|
-
tslib_1.__metadata("design:type", ElementRef)
|
|
1011
|
-
], BaseView.prototype, "timesTable", void 0);
|
|
1012
|
-
tslib_1.__decorate([
|
|
1013
|
-
ViewChild('headerWrap', { static: false }),
|
|
1014
|
-
tslib_1.__metadata("design:type", ElementRef)
|
|
1015
|
-
], BaseView.prototype, "headerWrap", void 0);
|
|
1016
|
-
tslib_1.__decorate([
|
|
1017
|
-
ViewChild('hintContainer', { static: false }),
|
|
1018
|
-
tslib_1.__metadata("design:type", HintContainerComponent)
|
|
1019
|
-
], BaseView.prototype, "hintContainer", void 0);
|