@progress/kendo-angular-scheduler 17.0.0-develop.8 → 17.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/data-binding.directive.d.ts +1 -1
- package/editing/date-time-picker.component.d.ts +1 -1
- package/editing/edit-dialog-template.directive.d.ts +1 -1
- package/editing/edit-dialog.component.d.ts +1 -1
- package/editing/edit.service.d.ts +3 -3
- package/editing/recurrence/end-rule-radio-button.directive.d.ts +1 -1
- package/editing/recurrence/localization/messages.d.ts +1 -1
- package/editing/recurrence/recurrence-editor.component.d.ts +1 -1
- package/editing/recurrence/recurrence-end-rule-editor.component.d.ts +1 -1
- package/editing/recurrence/recurrence-interval-editor.component.d.ts +1 -1
- package/editing/recurrence/recurrence-monthly-yearly-editor.component.d.ts +1 -1
- package/editing/recurrence/recurrence.service.d.ts +4 -4
- package/editing/recurrence/repeat-on-radio-button.directive.d.ts +1 -1
- package/editing/resource-editor-base.d.ts +1 -1
- package/editing/timezone-editor.component.d.ts +1 -1
- package/editing-directives/editing-directive-base.d.ts +1 -1
- package/editing-directives/reactive-editing.directive.d.ts +1 -1
- package/{esm2020 → esm2022}/data-binding.directive.mjs +20 -13
- package/{esm2020 → esm2022}/editing/date-time-picker.component.mjs +15 -9
- package/{esm2020 → esm2022}/editing/dialogs.service.mjs +10 -4
- package/{esm2020 → esm2022}/editing/edit-dialog-template.directive.mjs +8 -3
- package/{esm2020 → esm2022}/editing/edit-dialog.component.mjs +44 -25
- package/{esm2020 → esm2022}/editing/edit.service.mjs +9 -5
- package/{esm2020 → esm2022}/editing/local-data-changes.service.mjs +5 -6
- package/{esm2020 → esm2022}/editing/recurrence/end-rule-radio-button.directive.mjs +13 -6
- package/{esm2020 → esm2022}/editing/recurrence/localization/custom-messages.component.mjs +9 -8
- package/{esm2020 → esm2022}/editing/recurrence/localization/localized-messages.directive.mjs +9 -8
- package/esm2022/editing/recurrence/localization/messages.mjs +239 -0
- package/{esm2020 → esm2022}/editing/recurrence/localization/recurrence-localization.service.mjs +4 -3
- package/{esm2020 → esm2022}/editing/recurrence/recurrence-editor.component.mjs +61 -36
- package/{esm2020 → esm2022}/editing/recurrence/recurrence-end-rule-editor.component.mjs +33 -26
- package/{esm2020 → esm2022}/editing/recurrence/recurrence-frequency-editor.component.mjs +8 -4
- package/{esm2020 → esm2022}/editing/recurrence/recurrence-interval-editor.component.mjs +18 -15
- package/{esm2020 → esm2022}/editing/recurrence/recurrence-monthly-yearly-editor.component.mjs +28 -15
- package/{esm2020 → esm2022}/editing/recurrence/recurrence-weekday-rule-editor.component.mjs +9 -5
- package/{esm2020 → esm2022}/editing/recurrence/recurrence.service.mjs +13 -7
- package/{esm2020 → esm2022}/editing/recurrence/repeat-on-radio-button.directive.mjs +18 -11
- package/{esm2020 → esm2022}/editing/resource-editor-base.mjs +9 -9
- package/{esm2020 → esm2022}/editing/resource-multiple-editor.component.mjs +7 -6
- package/{esm2020 → esm2022}/editing/resource-single-editor.component.mjs +7 -6
- package/{esm2020 → esm2022}/editing/timezone-editor.component.mjs +28 -22
- package/{esm2020 → esm2022}/editing-directives/base-edit.service.mjs +28 -11
- package/{esm2020 → esm2022}/editing-directives/editing-directive-base.mjs +27 -20
- package/{esm2020 → esm2022}/editing-directives/local-edit.service.mjs +6 -4
- package/{esm2020 → esm2022}/editing-directives/reactive-editing.directive.mjs +10 -3
- package/{esm2020 → esm2022}/events/add-event.mjs +8 -0
- package/{esm2020 → esm2022}/events/cancel-event.mjs +4 -0
- package/{esm2020 → esm2022}/events/create-event.mjs +24 -0
- package/{esm2020 → esm2022}/events/date-change-event.mjs +12 -0
- package/{esm2020 → esm2022}/events/drag-end-event.mjs +28 -0
- package/esm2022/events/drag-event.mjs +54 -0
- package/{esm2020 → esm2022}/events/drag-start-event.mjs +12 -0
- package/{esm2020 → esm2022}/events/edit-event-base.mjs +16 -0
- package/{esm2020 → esm2022}/events/edit-event.mjs +12 -0
- package/{esm2020 → esm2022}/events/event-click-event.mjs +16 -0
- package/{esm2020 → esm2022}/events/event-keydown-event.mjs +12 -0
- package/{esm2020 → esm2022}/events/navigate-event.mjs +8 -0
- package/{esm2020 → esm2022}/events/preventable-event.mjs +1 -3
- package/{esm2020 → esm2022}/events/remove-event.mjs +12 -0
- package/{esm2020 → esm2022}/events/resize-end-event.mjs +20 -0
- package/{esm2020 → esm2022}/events/resize-event.mjs +28 -0
- package/{esm2020 → esm2022}/events/resize-start-event.mjs +12 -0
- package/{esm2020 → esm2022}/events/save-event.mjs +8 -0
- package/{esm2020 → esm2022}/events/slot-click-event.mjs +28 -0
- package/{esm2020 → esm2022}/events/slot-drag-event.mjs +24 -0
- package/{esm2020 → esm2022}/events/slot-drag-start-event.mjs +24 -0
- package/{esm2020 → esm2022}/index.mjs +0 -6
- package/{esm2020 → esm2022}/loading.component.mjs +12 -8
- package/{esm2020 → esm2022}/localization/custom-messages.component.mjs +9 -8
- package/{esm2020 → esm2022}/localization/localized-messages.directive.mjs +9 -8
- package/esm2022/localization/messages.mjs +614 -0
- package/{esm2020 → esm2022}/localization/scheduler-localization.service.mjs +3 -3
- package/{esm2020 → esm2022}/navigation/focus.service.mjs +21 -15
- package/{esm2020 → esm2022}/navigation/focusable.directive.mjs +19 -15
- package/esm2022/navigation/shortcuts.directive.mjs +220 -0
- package/{esm2020 → esm2022}/package-metadata.mjs +2 -2
- package/{esm2020 → esm2022}/pdf/pdf-command.directive.mjs +9 -8
- package/{esm2020 → esm2022}/pdf/pdf.component.mjs +93 -8
- package/{esm2020 → esm2022}/pdf/pdf.module.mjs +4 -4
- package/{esm2020 → esm2022}/pdf/pdf.service.mjs +7 -9
- package/{esm2020 → esm2022}/scheduler.component.mjs +412 -256
- package/{esm2020 → esm2022}/scheduler.module.mjs +30 -30
- package/{esm2020 → esm2022}/toolbar/navigation.component.mjs +49 -34
- package/{esm2020 → esm2022}/toolbar/toolbar-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/toolbar/toolbar.component.mjs +29 -18
- package/{esm2020 → esm2022}/toolbar/toolbar.service.mjs +16 -4
- package/{esm2020 → esm2022}/toolbar/view-selector.component.mjs +23 -15
- package/{esm2020 → esm2022}/types/slot-selection.mjs +16 -0
- package/{esm2020 → esm2022}/views/agenda/agenda-header-item.component.mjs +9 -9
- package/{esm2020 → esm2022}/views/agenda/agenda-header.component.mjs +10 -8
- package/{esm2020 → esm2022}/views/agenda/agenda-task-item.component.mjs +18 -12
- package/{esm2020 → esm2022}/views/agenda/agenda-view-internal.component.mjs +48 -17
- package/{esm2020 → esm2022}/views/agenda/agenda-view-list.component.mjs +17 -7
- package/{esm2020 → esm2022}/views/agenda/agenda-view.component.mjs +46 -41
- package/{esm2020 → esm2022}/views/agenda/tasks.collection.mjs +8 -4
- package/{esm2020 → esm2022}/views/common/base-view.mjs +93 -36
- package/{esm2020 → esm2022}/views/common/configuration-view-base.mjs +52 -15
- package/esm2022/views/common/dom-events.service.mjs +22 -0
- package/{esm2020 → esm2022}/views/common/hint-container.component.mjs +6 -4
- package/{esm2020 → esm2022}/views/common/repeat.pipe.mjs +7 -6
- package/{esm2020 → esm2022}/views/common/resize-hint.component.mjs +7 -7
- package/{esm2020 → esm2022}/views/common/resource-iterator.pipe.mjs +9 -7
- package/{esm2020 → esm2022}/views/common/slot-selectable.directive.mjs +22 -10
- package/{esm2020 → esm2022}/views/common/view-footer.component.mjs +14 -12
- package/{esm2020 → esm2022}/views/common/work-hours-footer.directive.mjs +7 -5
- package/{esm2020 → esm2022}/views/day-time/day-time-slot.service.mjs +11 -7
- package/{esm2020 → esm2022}/views/day-time/day-time-view-base.mjs +81 -8
- package/{esm2020 → esm2022}/views/day-time/day-time-view-item.component.mjs +18 -14
- package/{esm2020 → esm2022}/views/day-time/day-time-view.component.mjs +50 -29
- package/{esm2020 → esm2022}/views/day-time/event-slot.directive.mjs +23 -14
- package/{esm2020 → esm2022}/views/month/month-slot.component.mjs +21 -11
- package/{esm2020 → esm2022}/views/month/month-slot.service.mjs +8 -6
- package/{esm2020 → esm2022}/views/month/month-view-item.component.mjs +10 -9
- package/{esm2020 → esm2022}/views/month/month-view-renderer.component.mjs +31 -15
- package/{esm2020 → esm2022}/views/month/month-view.component.mjs +49 -31
- package/{esm2020 → esm2022}/views/month/multi-week-view.component.mjs +53 -35
- package/{esm2020 → esm2022}/views/multi-day/day-view.component.mjs +25 -17
- package/{esm2020 → esm2022}/views/multi-day/multi-day-view-base.mjs +17 -6
- package/{esm2020 → esm2022}/views/multi-day/multi-day-view-renderer.component.mjs +22 -13
- package/{esm2020 → esm2022}/views/multi-day/multi-day-view.component.mjs +22 -20
- package/{esm2020 → esm2022}/views/multi-day/week-view.component.mjs +44 -35
- package/{esm2020 → esm2022}/views/multi-day/work-week-view.component.mjs +16 -16
- package/{esm2020 → esm2022}/views/scheduler-view.directive.mjs +16 -10
- package/{esm2020 → esm2022}/views/templates/agenda-date-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/views/templates/agenda-time-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/views/templates/all-day-event-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/views/templates/all-day-slot-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/views/templates/date-header-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/views/templates/event-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/views/templates/group-header-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/views/templates/major-time-header-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/views/templates/minor-time-header-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/views/templates/month-day-slot-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/views/templates/multi-week-day-slot-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/views/templates/time-slot-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/views/timeline/timeline-base.mjs +10 -6
- package/{esm2020 → esm2022}/views/timeline/timeline-month-view.component.mjs +36 -34
- package/{esm2020 → esm2022}/views/timeline/timeline-multi-day-view.component.mjs +16 -13
- package/{esm2020 → esm2022}/views/timeline/timeline-view.component.mjs +18 -16
- package/{esm2020 → esm2022}/views/timeline/timeline-week-view.component.mjs +40 -40
- package/{esm2020 → esm2022}/views/timeline/utils.mjs +3 -3
- package/{esm2020 → esm2022}/views/view-context.service.mjs +33 -9
- package/{esm2020 → esm2022}/views/view-items/base-slot.directive.mjs +15 -9
- package/{esm2020 → esm2022}/views/view-items/base-slot.service.mjs +3 -5
- package/{esm2020 → esm2022}/views/view-items/base-view-item.mjs +30 -15
- package/{esm2020 → esm2022}/views/view-items/item-map.mjs +2 -4
- package/{esm2020 → esm2022}/views/view-state.service.mjs +56 -20
- package/{esm2020 → esm2022}/views/year/year-view-internal.component.mjs +45 -27
- package/{esm2020 → esm2022}/views/year/year-view.component.mjs +38 -31
- package/{fesm2020 → fesm2022}/progress-kendo-angular-scheduler.mjs +3642 -1967
- package/index.d.ts +0 -6
- package/loading.component.d.ts +1 -1
- package/localization/messages.d.ts +1 -1
- package/navigation/focusable.directive.d.ts +1 -1
- package/package.json +24 -30
- package/pdf/pdf.component.d.ts +1 -1
- package/scheduler.component.d.ts +1 -1
- package/schematics/ngAdd/index.js +4 -4
- package/toolbar/navigation.component.d.ts +1 -1
- package/toolbar/toolbar.component.d.ts +1 -1
- package/toolbar/view-selector.component.d.ts +1 -1
- package/types/actions.d.ts +1 -1
- package/types/focusable-container.d.ts +1 -1
- package/types/slot-selection.d.ts +1 -1
- package/views/agenda/agenda-header-item.component.d.ts +1 -1
- package/views/agenda/agenda-header.component.d.ts +1 -1
- package/views/agenda/agenda-task-item.component.d.ts +1 -1
- package/views/agenda/agenda-view-internal.component.d.ts +1 -1
- package/views/agenda/agenda-view-list.component.d.ts +1 -1
- package/views/agenda/agenda-view.component.d.ts +2 -6
- package/views/common/base-view.d.ts +1 -1
- package/views/common/configuration-view-base.d.ts +1 -1
- package/views/common/resize-hint.component.d.ts +1 -1
- package/views/common/slot-selectable.directive.d.ts +1 -1
- package/views/common/view-footer.component.d.ts +1 -1
- package/views/common/work-hours-footer.directive.d.ts +1 -1
- package/views/day-time/day-time-view-base.d.ts +2 -6
- package/views/day-time/day-time-view-item.component.d.ts +1 -1
- package/views/day-time/day-time-view.component.d.ts +1 -1
- package/views/day-time/event-slot.directive.d.ts +2 -2
- package/views/month/month-slot.component.d.ts +1 -1
- package/views/month/month-view-renderer.component.d.ts +1 -1
- package/views/month/month-view.component.d.ts +7 -4
- package/views/month/multi-week-view.component.d.ts +7 -4
- package/views/multi-day/day-view.component.d.ts +1 -1
- package/views/multi-day/multi-day-view-base.d.ts +1 -1
- package/views/multi-day/multi-day-view-renderer.component.d.ts +1 -1
- package/views/multi-day/multi-day-view.component.d.ts +1 -1
- package/views/multi-day/week-view.component.d.ts +1 -1
- package/views/scheduler-view.directive.d.ts +1 -1
- package/views/timeline/timeline-base.d.ts +1 -1
- package/views/timeline/timeline-month-view.component.d.ts +1 -1
- package/views/timeline/timeline-multi-day-view.component.d.ts +1 -1
- package/views/timeline/timeline-view.component.d.ts +1 -1
- package/views/timeline/timeline-week-view.component.d.ts +1 -1
- package/views/view-items/base-slot.directive.d.ts +1 -1
- package/views/view-items/base-view-item.d.ts +1 -1
- package/views/year/year-view-internal.component.d.ts +1 -4
- package/views/year/year-view.component.d.ts +6 -6
- package/esm2020/editing/recurrence/localization/messages.mjs +0 -91
- package/esm2020/events/drag-event.mjs +0 -18
- package/esm2020/localization/messages.mjs +0 -213
- package/esm2020/navigation/shortcuts.directive.mjs +0 -213
- package/esm2020/shared.module.mjs +0 -40
- package/esm2020/views/common/dom-events.service.mjs +0 -24
- package/esm2020/views/common/views-shared.module.mjs +0 -62
- package/esm2020/views/day-time/day-time.module.mjs +0 -39
- package/esm2020/views/month/month-view.module.mjs +0 -47
- package/esm2020/views/multi-day/multi-day-view.module.mjs +0 -52
- package/esm2020/views/timeline/timeline-view.module.mjs +0 -48
- package/fesm2015/progress-kendo-angular-scheduler.mjs +0 -19229
- package/shared.module.d.ts +0 -19
- package/views/common/views-shared.module.d.ts +0 -22
- package/views/day-time/day-time.module.d.ts +0 -18
- package/views/month/month-view.module.d.ts +0 -18
- package/views/multi-day/multi-day-view.module.d.ts +0 -20
- package/views/timeline/timeline-view.module.d.ts +0 -19
- /package/{esm2020 → esm2022}/common/constants.mjs +0 -0
- /package/{esm2020 → esm2022}/common/default-model-fields.mjs +0 -0
- /package/{esm2020 → esm2022}/common/dom-queries.mjs +0 -0
- /package/{esm2020 → esm2022}/common/getter.mjs +0 -0
- /package/{esm2020 → esm2022}/common/modifiers.mjs +0 -0
- /package/{esm2020 → esm2022}/common/setter.mjs +0 -0
- /package/{esm2020 → esm2022}/common/util.mjs +0 -0
- /package/{esm2020 → esm2022}/directives.mjs +0 -0
- /package/{esm2020 → esm2022}/editing-directives/edit-service.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/editing-directives/utils.mjs +0 -0
- /package/{esm2020 → esm2022}/events/slot-drag-end-event.mjs +0 -0
- /package/{esm2020 → esm2022}/events/view-event-map.mjs +0 -0
- /package/{esm2020 → esm2022}/events.mjs +0 -0
- /package/{esm2020 → esm2022}/navigation/focus-position.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/navigation/focusable-element.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/navigation.mjs +0 -0
- /package/{esm2020 → esm2022}/pdf/pdf-export-event.mjs +0 -0
- /package/{esm2020 → esm2022}/progress-kendo-angular-scheduler.mjs +0 -0
- /package/{esm2020 → esm2022}/toolbar/toolbar-context.mjs +0 -0
- /package/{esm2020 → esm2022}/types/actions.mjs +0 -0
- /package/{esm2020 → esm2022}/types/create-form-group-args.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/types/crud-operation.enum.mjs +0 -0
- /package/{esm2020 → esm2022}/types/current-time-settings.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/types/date-range.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/types/datepicker-options.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/types/edit-event-args.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/types/edit-mode.enum.mjs +0 -0
- /package/{esm2020 → esm2022}/types/editable-settings.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/types/event-style-args.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/types/focusable-container.mjs +0 -0
- /package/{esm2020 → esm2022}/types/group.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/types/numeric-options.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/types/ongoing-events-settings.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/types/resource.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/types/scheduler-event.mjs +0 -0
- /package/{esm2020 → esm2022}/types/scheduler-model-fields.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/types/scheduler-slot.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/types/scheduler-view.mjs +0 -0
- /package/{esm2020 → esm2022}/types/slot-class-args.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/types/view-item.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/types.mjs +0 -0
- /package/{esm2020 → esm2022}/views/agenda/utils.mjs +0 -0
- /package/{esm2020 → esm2022}/views/common/scheduler-task.mjs +0 -0
- /package/{esm2020 → esm2022}/views/constants.mjs +0 -0
- /package/{esm2020 → esm2022}/views/day-time/utils.mjs +0 -0
- /package/{esm2020 → esm2022}/views/month/utils.mjs +0 -0
- /package/{esm2020 → esm2022}/views/multi-day/utils.mjs +0 -0
- /package/{esm2020 → esm2022}/views/templates.mjs +0 -0
- /package/{esm2020 → esm2022}/views/utils.mjs +0 -0
- /package/{esm2020 → esm2022}/views/view-items/types.mjs +0 -0
- /package/{esm2020 → esm2022}/views/year/utils.mjs +0 -0
|
@@ -11,24 +11,28 @@ import * as i1 from "./focus.service";
|
|
|
11
11
|
* @hidden
|
|
12
12
|
*/
|
|
13
13
|
export class FocusableDirective {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
this.containerType = 'content';
|
|
24
|
-
this.toggle(false);
|
|
25
|
-
}
|
|
14
|
+
element;
|
|
15
|
+
renderer;
|
|
16
|
+
focusService;
|
|
17
|
+
/**
|
|
18
|
+
* The order of the element with respect to the other focusable elements.
|
|
19
|
+
* If multiple elements share the same value, their relative to each other order follows their position in the component tree.
|
|
20
|
+
*/
|
|
21
|
+
focusIndex = 0;
|
|
22
|
+
containerType = 'content';
|
|
26
23
|
get visible() {
|
|
27
24
|
return this.element.nativeElement.style.display !== 'none';
|
|
28
25
|
}
|
|
29
26
|
get enabled() {
|
|
30
27
|
return !this.element.nativeElement.disabled;
|
|
31
28
|
}
|
|
29
|
+
active;
|
|
30
|
+
constructor(element, renderer, focusService) {
|
|
31
|
+
this.element = element;
|
|
32
|
+
this.renderer = renderer;
|
|
33
|
+
this.focusService = focusService;
|
|
34
|
+
this.toggle(false);
|
|
35
|
+
}
|
|
32
36
|
ngAfterViewChecked() {
|
|
33
37
|
const element = this.element.nativeElement;
|
|
34
38
|
const isViewSelector = element.closest('.k-scheduler-views-wrapper');
|
|
@@ -77,10 +81,10 @@ export class FocusableDirective {
|
|
|
77
81
|
this.renderer.setAttribute(element, 'aria-selected', value.toString());
|
|
78
82
|
}
|
|
79
83
|
}
|
|
84
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FocusableDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i1.FocusService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
85
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: FocusableDirective, isStandalone: true, selector: "[kendoSchedulerFocusIndex]", inputs: { focusIndex: ["kendoSchedulerFocusIndex", "focusIndex"], containerType: "containerType" }, ngImport: i0 });
|
|
80
86
|
}
|
|
81
|
-
|
|
82
|
-
FocusableDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: FocusableDirective, isStandalone: true, selector: "[kendoSchedulerFocusIndex]", inputs: { focusIndex: ["kendoSchedulerFocusIndex", "focusIndex"], containerType: "containerType" }, ngImport: i0 });
|
|
83
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FocusableDirective, decorators: [{
|
|
87
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FocusableDirective, decorators: [{
|
|
84
88
|
type: Directive,
|
|
85
89
|
args: [{
|
|
86
90
|
selector: '[kendoSchedulerFocusIndex]',
|
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { ChangeDetectorRef, Directive, NgZone } from '@angular/core';
|
|
6
|
+
import { Keys } from '@progress/kendo-angular-common';
|
|
7
|
+
import { ZonedDate } from '@progress/kendo-date-math';
|
|
8
|
+
import { Subscription } from 'rxjs';
|
|
9
|
+
import { FocusService } from './focus.service';
|
|
10
|
+
import { Modifiers, noModifiers, withModifiers } from '../common/modifiers';
|
|
11
|
+
import { groupResources } from '../common/util';
|
|
12
|
+
import { SchedulerComponent } from '../scheduler.component';
|
|
13
|
+
import { DomEventsService } from '../views/common/dom-events.service';
|
|
14
|
+
import { take } from 'rxjs/operators';
|
|
15
|
+
import { ViewStateService } from '../views/view-state.service';
|
|
16
|
+
import { hasClasses } from '../common/dom-queries';
|
|
17
|
+
import { DialogsService } from '../editing/dialogs.service';
|
|
18
|
+
import * as i0 from "@angular/core";
|
|
19
|
+
import * as i1 from "../scheduler.component";
|
|
20
|
+
import * as i2 from "../views/common/dom-events.service";
|
|
21
|
+
import * as i3 from "./focus.service";
|
|
22
|
+
import * as i4 from "../views/view-state.service";
|
|
23
|
+
import * as i5 from "../editing/dialogs.service";
|
|
24
|
+
const isContentWrapper = element => hasClasses(element, 'k-scheduler-content');
|
|
25
|
+
const CALENDAR_TAG = 'KENDO-CALENDAR-HORIZONTAL';
|
|
26
|
+
/**
|
|
27
|
+
* @hidden
|
|
28
|
+
*/
|
|
29
|
+
export class ShortcutsDirective {
|
|
30
|
+
scheduler;
|
|
31
|
+
domEvents;
|
|
32
|
+
focusService;
|
|
33
|
+
zone;
|
|
34
|
+
changeDetector;
|
|
35
|
+
viewState;
|
|
36
|
+
dialogsService;
|
|
37
|
+
shortcuts = [{
|
|
38
|
+
match: e => e.keyCode === Keys.KeyC && noModifiers(e),
|
|
39
|
+
action: e => {
|
|
40
|
+
const scheduler = this.scheduler;
|
|
41
|
+
const hours = new Date().getHours();
|
|
42
|
+
const selected = scheduler.selectedDate;
|
|
43
|
+
const start = new Date(selected.getFullYear(), selected.getMonth(), selected.getDate(), hours + 1);
|
|
44
|
+
const end = new Date(selected.getFullYear(), selected.getMonth(), selected.getDate(), hours + 2);
|
|
45
|
+
let firstResource;
|
|
46
|
+
if (scheduler.group) {
|
|
47
|
+
const resources = scheduler.resources || [];
|
|
48
|
+
const group = scheduler.group || {};
|
|
49
|
+
const grouped = groupResources(group, resources);
|
|
50
|
+
if (grouped.length > 0) {
|
|
51
|
+
firstResource = grouped[0].data[0];
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
scheduler.create.emit({
|
|
55
|
+
start: ZonedDate.fromLocalDate(start, scheduler.timezone).toLocalDate(),
|
|
56
|
+
end: ZonedDate.fromLocalDate(end, scheduler.timezone).toLocalDate(),
|
|
57
|
+
isAllDay: false,
|
|
58
|
+
resources: [firstResource],
|
|
59
|
+
originalEvent: e,
|
|
60
|
+
sender: scheduler
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
}, {
|
|
64
|
+
match: e => e.keyCode >= Keys.Digit1 && e.keyCode <= Keys.Digit9 && withModifiers(e, Modifiers.AltKey),
|
|
65
|
+
action: e => {
|
|
66
|
+
const scheduler = this.scheduler;
|
|
67
|
+
const viewIndex = e.keyCode - Keys.Digit0 - 1;
|
|
68
|
+
const views = scheduler.views.toArray();
|
|
69
|
+
const view = views[viewIndex];
|
|
70
|
+
if (view) {
|
|
71
|
+
this.zone.run(() => {
|
|
72
|
+
const prevented = scheduler.onNavigationAction({ type: 'view-change', view });
|
|
73
|
+
if (!prevented) {
|
|
74
|
+
this.changeDetector.markForCheck();
|
|
75
|
+
this.focusWait();
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}, {
|
|
81
|
+
match: e => e.keyCode === Keys.F10 && noModifiers(e),
|
|
82
|
+
action: (e) => {
|
|
83
|
+
this.zone.run(() => {
|
|
84
|
+
e.preventDefault();
|
|
85
|
+
this.scheduler.onNavigationAction({ type: 'focus-toolbar' });
|
|
86
|
+
this.focusWait();
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
}, {
|
|
90
|
+
match: e => e.keyCode === Keys.KeyT && noModifiers(e),
|
|
91
|
+
action: () => {
|
|
92
|
+
this.zone.run(() => {
|
|
93
|
+
this.scheduler.onNavigationAction({ type: 'today' });
|
|
94
|
+
this.focusWait();
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
}, {
|
|
98
|
+
match: e => e.keyCode === Keys.KeyB && noModifiers(e),
|
|
99
|
+
action: () => {
|
|
100
|
+
this.zone.run(() => {
|
|
101
|
+
this.scheduler.onNavigationAction({ type: 'toggle-business-hours' });
|
|
102
|
+
this.focusWait();
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
}, {
|
|
106
|
+
match: (e) => (e.keyCode === Keys.ArrowLeft || e.keyCode === Keys.ArrowRight) && withModifiers(e, Modifiers.ShiftKey),
|
|
107
|
+
action: (e) => {
|
|
108
|
+
const type = e.keyCode === Keys.ArrowLeft ? 'prev' : 'next';
|
|
109
|
+
this.zone.run(() => {
|
|
110
|
+
this.scheduler.onNavigationAction({ type });
|
|
111
|
+
this.focusWait();
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
}, {
|
|
115
|
+
match: e => (e.keyCode === Keys.ArrowUp || e.keyCode === Keys.ArrowLeft) && noModifiers(e) && !isContentWrapper(e.target),
|
|
116
|
+
action: e => {
|
|
117
|
+
//use the MultiViewCalendar navigation for Year View
|
|
118
|
+
if (e.target.tagName === CALENDAR_TAG) {
|
|
119
|
+
return;
|
|
120
|
+
}
|
|
121
|
+
// do nothing if the shortcut is executed on an element inside the kendoSchedulerToolbarTemplate
|
|
122
|
+
if (this.isInToolbarTemplate(e.target)) {
|
|
123
|
+
return;
|
|
124
|
+
}
|
|
125
|
+
const prevented = this.scheduler.onNavigationAction({ type: 'focus-prev' });
|
|
126
|
+
if (!prevented) {
|
|
127
|
+
const item = this.focusService.activeItem;
|
|
128
|
+
const isFirstEvent = item.containerType === 'content' && item.element.nativeElement.matches(':first-of-type');
|
|
129
|
+
const isUpArrow = e.keyCode === Keys.ArrowUp;
|
|
130
|
+
// eslint-disable-next-line no-unused-expressions
|
|
131
|
+
isFirstEvent && isUpArrow ? this.focusService.focusToolbar() : this.focusService.focusNext({ offset: -1 });
|
|
132
|
+
e.preventDefault();
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}, {
|
|
136
|
+
match: e => (e.keyCode === Keys.ArrowDown || e.keyCode === Keys.ArrowRight) && noModifiers(e) && !isContentWrapper(e.target),
|
|
137
|
+
action: e => {
|
|
138
|
+
//use the MultiViewCalendar navigation for Year View
|
|
139
|
+
if (e.target.tagName === CALENDAR_TAG) {
|
|
140
|
+
return;
|
|
141
|
+
}
|
|
142
|
+
// do nothing if the shortcut is executed on an element inside the kendoSchedulerToolbarTemplate
|
|
143
|
+
if (this.isInToolbarTemplate(e.target)) {
|
|
144
|
+
return;
|
|
145
|
+
}
|
|
146
|
+
const prevented = this.scheduler.onNavigationAction({ type: 'focus-next' });
|
|
147
|
+
if (!prevented) {
|
|
148
|
+
const isInToolbar = this.focusService.activeItem.containerType === 'toolbar';
|
|
149
|
+
const offset = 1;
|
|
150
|
+
if (e.keyCode === Keys.ArrowDown && isInToolbar) {
|
|
151
|
+
const focusableElementsArray = Array.from(this.focusService.focusableItems);
|
|
152
|
+
const firstFocusableContentElementIndex = focusableElementsArray.findIndex(item => item.containerType === 'content');
|
|
153
|
+
if (firstFocusableContentElementIndex > -1) {
|
|
154
|
+
this.focusService.focusByIndex(firstFocusableContentElementIndex);
|
|
155
|
+
e.preventDefault();
|
|
156
|
+
return;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
this.focusService.focusNext({ offset });
|
|
160
|
+
e.preventDefault();
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
}];
|
|
164
|
+
taskShortcuts = [{
|
|
165
|
+
match: e => (e.keyCode === Keys.Delete || e.keyCode === Keys.Backspace) && noModifiers(e),
|
|
166
|
+
action: (e, event) => {
|
|
167
|
+
this.viewState.emitEvent('remove', { event: event, dataItem: event.dataItem });
|
|
168
|
+
e.preventDefault();
|
|
169
|
+
}
|
|
170
|
+
}, {
|
|
171
|
+
match: e => e.keyCode === Keys.Enter && noModifiers(e),
|
|
172
|
+
action: (e, event) => {
|
|
173
|
+
this.viewState.emitEvent('eventDblClick', { type: 'dblclick', event: event, originalEvent: e });
|
|
174
|
+
e.preventDefault();
|
|
175
|
+
}
|
|
176
|
+
}];
|
|
177
|
+
subs = new Subscription();
|
|
178
|
+
constructor(scheduler, domEvents, focusService, zone, changeDetector, viewState, dialogsService) {
|
|
179
|
+
this.scheduler = scheduler;
|
|
180
|
+
this.domEvents = domEvents;
|
|
181
|
+
this.focusService = focusService;
|
|
182
|
+
this.zone = zone;
|
|
183
|
+
this.changeDetector = changeDetector;
|
|
184
|
+
this.viewState = viewState;
|
|
185
|
+
this.dialogsService = dialogsService;
|
|
186
|
+
this.subs.add(this.domEvents.keydown.subscribe(e => this.onKeydown(e)));
|
|
187
|
+
this.subs.add(this.scheduler.eventKeydown.subscribe(e => this.onEventKeydown(e)));
|
|
188
|
+
}
|
|
189
|
+
onKeydown(e) {
|
|
190
|
+
const match = this.shortcuts.find(shortcut => shortcut.match(e));
|
|
191
|
+
if (match && !this.dialogsService.isOpen) {
|
|
192
|
+
match.action(e);
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
onEventKeydown(e) {
|
|
196
|
+
const match = this.taskShortcuts.find(shortcut => shortcut.match(e.originalEvent));
|
|
197
|
+
if (match && !this.dialogsService.isOpen) {
|
|
198
|
+
match.action(e.originalEvent, e.event);
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
focusWait() {
|
|
202
|
+
this.viewState.layoutEnd.pipe(take(1)).subscribe(() => this.focusService.focus());
|
|
203
|
+
}
|
|
204
|
+
isInToolbarTemplate(element) {
|
|
205
|
+
const isInToolbar = element.closest('.k-scheduler-toolbar');
|
|
206
|
+
const isInBuiltInElement = element.closest('.k-toolbar-group') ||
|
|
207
|
+
element.closest('.k-scheduler-views') ||
|
|
208
|
+
element.closest('.k-views-dropdown');
|
|
209
|
+
return isInToolbar && !isInBuiltInElement;
|
|
210
|
+
}
|
|
211
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ShortcutsDirective, deps: [{ token: i1.SchedulerComponent }, { token: i2.DomEventsService }, { token: i3.FocusService }, { token: i0.NgZone }, { token: i0.ChangeDetectorRef }, { token: i4.ViewStateService }, { token: i5.DialogsService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
212
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: ShortcutsDirective, isStandalone: true, selector: "kendo-scheduler", ngImport: i0 });
|
|
213
|
+
}
|
|
214
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ShortcutsDirective, decorators: [{
|
|
215
|
+
type: Directive,
|
|
216
|
+
args: [{
|
|
217
|
+
selector: 'kendo-scheduler',
|
|
218
|
+
standalone: true
|
|
219
|
+
}]
|
|
220
|
+
}], ctorParameters: function () { return [{ type: i1.SchedulerComponent }, { type: i2.DomEventsService }, { type: i3.FocusService }, { type: i0.NgZone }, { type: i0.ChangeDetectorRef }, { type: i4.ViewStateService }, { type: i5.DialogsService }]; } });
|
|
@@ -9,7 +9,7 @@ export const packageMetadata = {
|
|
|
9
9
|
name: '@progress/kendo-angular-scheduler',
|
|
10
10
|
productName: 'Kendo UI for Angular',
|
|
11
11
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
12
|
-
publishDate:
|
|
13
|
-
version: '17.0.0
|
|
12
|
+
publishDate: 1731414250,
|
|
13
|
+
version: '17.0.0',
|
|
14
14
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
15
15
|
};
|
|
@@ -31,10 +31,7 @@ import * as i2 from "@progress/kendo-angular-l10n";
|
|
|
31
31
|
* ```
|
|
32
32
|
*/
|
|
33
33
|
export class PDFCommandDirective extends Button {
|
|
34
|
-
|
|
35
|
-
super(element, renderer, null, localization, ngZone);
|
|
36
|
-
this.pdfService = pdfService;
|
|
37
|
-
}
|
|
34
|
+
pdfService;
|
|
38
35
|
/**
|
|
39
36
|
* @hidden
|
|
40
37
|
*/
|
|
@@ -42,13 +39,16 @@ export class PDFCommandDirective extends Button {
|
|
|
42
39
|
e.preventDefault();
|
|
43
40
|
this.pdfService.exportClick.emit();
|
|
44
41
|
}
|
|
42
|
+
constructor(pdfService, element, renderer, localization, ngZone) {
|
|
43
|
+
super(element, renderer, null, localization, ngZone);
|
|
44
|
+
this.pdfService = pdfService;
|
|
45
|
+
}
|
|
45
46
|
ngOnInit() {
|
|
46
47
|
this.icon = 'pdf';
|
|
47
48
|
this.svgIcon = filePdfIcon;
|
|
48
49
|
}
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
PDFCommandDirective.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: PDFCommandDirective, isStandalone: true, selector: "[kendoSchedulerPDFCommand]", host: { listeners: { "click": "onClick($event)" } }, usesInheritance: true, ngImport: i0, template: `
|
|
50
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PDFCommandDirective, deps: [{ token: i1.PDFService }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i2.LocalizationService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
51
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: PDFCommandDirective, isStandalone: true, selector: "[kendoSchedulerPDFCommand]", host: { listeners: { "click": "onClick($event)" } }, usesInheritance: true, ngImport: i0, template: `
|
|
52
52
|
<kendo-icon-wrapper
|
|
53
53
|
*ngIf="icon || svgIcon"
|
|
54
54
|
innerCssClass="k-button-icon"
|
|
@@ -60,7 +60,8 @@ PDFCommandDirective.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", ve
|
|
|
60
60
|
<span *ngIf="iconClass" class="k-button-icon" [ngClass]="iconClass"></span>
|
|
61
61
|
<span class="k-button-text"><ng-content></ng-content></span>
|
|
62
62
|
`, isInline: true, dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
63
|
-
|
|
63
|
+
}
|
|
64
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PDFCommandDirective, decorators: [{
|
|
64
65
|
type: Component,
|
|
65
66
|
args: [{
|
|
66
67
|
selector: '[kendoSchedulerPDFCommand]',
|
|
@@ -20,14 +20,99 @@ const createDiv = (className) => createElement('div', className);
|
|
|
20
20
|
* Configures the settings for the export of Scheduler in PDF ([see example]({% slug pdfexport_scheduler %})).
|
|
21
21
|
*/
|
|
22
22
|
export class PDFComponent {
|
|
23
|
+
pdfService;
|
|
24
|
+
ngZone;
|
|
25
|
+
/**
|
|
26
|
+
* The author (metadata) of the PDF document.
|
|
27
|
+
*/
|
|
28
|
+
author;
|
|
29
|
+
/**
|
|
30
|
+
* A flag that indicates whether to produce actual hyperlinks in the exported PDF file.
|
|
31
|
+
* It is also possible to set a CSS selector. All matching links will be ignored.
|
|
32
|
+
*/
|
|
33
|
+
avoidLinks;
|
|
34
|
+
/**
|
|
35
|
+
* The creator of the PDF document.
|
|
36
|
+
* @default 'Kendo UI PDF Generator'
|
|
37
|
+
*/
|
|
38
|
+
creator = 'Kendo UI PDF Generator';
|
|
39
|
+
/**
|
|
40
|
+
* The date when the PDF document is created. Defaults to `new Date()`.
|
|
41
|
+
*/
|
|
42
|
+
date;
|
|
43
|
+
/**
|
|
44
|
+
* The forced resolution of the images in the exported PDF document.
|
|
45
|
+
* By default, the images are exported at their full resolution.
|
|
46
|
+
*/
|
|
47
|
+
imageResolution;
|
|
48
|
+
/**
|
|
49
|
+
* Specifies the name of the exported PDF file.
|
|
50
|
+
*/
|
|
51
|
+
fileName;
|
|
52
|
+
/**
|
|
53
|
+
* If set to `true`, the content is forwarded to `proxyURL` even if the
|
|
54
|
+
* browser supports local saving of files.
|
|
55
|
+
*/
|
|
56
|
+
forceProxy;
|
|
57
|
+
/**
|
|
58
|
+
* The keywords (metadata) of the PDF document.
|
|
59
|
+
*/
|
|
60
|
+
keywords;
|
|
61
|
+
/**
|
|
62
|
+
* Specifies the margins of the page.
|
|
63
|
+
* @default 'pt'
|
|
64
|
+
*/
|
|
65
|
+
margin;
|
|
66
|
+
/**
|
|
67
|
+
* A scale factor. The text size on the screen might be too big for printing.
|
|
68
|
+
* To scale down the output in PDF, use this option.
|
|
69
|
+
* @default 1
|
|
70
|
+
*/
|
|
71
|
+
scale;
|
|
72
|
+
/**
|
|
73
|
+
* A key/value dictionary of form values which will be sent to the proxy.
|
|
74
|
+
* Can be used to submit Anti-Forgery tokens and other metadata.
|
|
75
|
+
*/
|
|
76
|
+
proxyData;
|
|
77
|
+
/**
|
|
78
|
+
* The URL of the server-side proxy which streams the file to the end user. You need to use a proxy if
|
|
79
|
+
* the browser is not capable of saving files locally—for example, Internet Explorer 9 and Safari.
|
|
80
|
+
* It is your responsibility to implement the server-side proxy. The proxy returns the decoded file with
|
|
81
|
+
* the `"Content-Disposition"` header set to `attachment; filename="<fileName.pdf>"`.
|
|
82
|
+
*
|
|
83
|
+
* In the request body, the proxy receives a POST request with the following parameters:
|
|
84
|
+
* - `"contentType"`—The MIME type of the file.
|
|
85
|
+
* - `"base64"`—The base-64 encoded file content.
|
|
86
|
+
* - `"fileName"`—The file name, as requested by the caller.
|
|
87
|
+
*
|
|
88
|
+
*/
|
|
89
|
+
proxyURL;
|
|
90
|
+
/**
|
|
91
|
+
* A name or keyword which indicates where to display the document that is
|
|
92
|
+
* returned from the proxy.
|
|
93
|
+
*
|
|
94
|
+
* To display the document in a new window or iframe, the proxy has to have the
|
|
95
|
+
* `"Content-Disposition"` header set to `inline; filename="<fileName.pdf>"`.
|
|
96
|
+
* @default '_self'
|
|
97
|
+
*/
|
|
98
|
+
proxyTarget;
|
|
99
|
+
/**
|
|
100
|
+
* The producer (metadata) of the PDF document.
|
|
101
|
+
*/
|
|
102
|
+
producer;
|
|
103
|
+
/**
|
|
104
|
+
* The subject (metadata) of the PDF document.
|
|
105
|
+
*/
|
|
106
|
+
subject;
|
|
107
|
+
/**
|
|
108
|
+
* The title (metadata) of the PDF document.
|
|
109
|
+
*/
|
|
110
|
+
title;
|
|
111
|
+
subscriptions;
|
|
112
|
+
container;
|
|
23
113
|
constructor(pdfService, ngZone) {
|
|
24
114
|
this.pdfService = pdfService;
|
|
25
115
|
this.ngZone = ngZone;
|
|
26
|
-
/**
|
|
27
|
-
* The creator of the PDF document.
|
|
28
|
-
* @default 'Kendo UI PDF Generator'
|
|
29
|
-
*/
|
|
30
|
-
this.creator = 'Kendo UI PDF Generator';
|
|
31
116
|
this.subscriptions = this.pdfService.elementReady.subscribe(this.createElement.bind(this));
|
|
32
117
|
this.saveDataUri = this.saveDataUri.bind(this);
|
|
33
118
|
this.exportGroup = this.exportGroup.bind(this);
|
|
@@ -100,10 +185,10 @@ export class PDFComponent {
|
|
|
100
185
|
}
|
|
101
186
|
this.pdfService.done.emit();
|
|
102
187
|
}
|
|
188
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PDFComponent, deps: [{ token: i1.PDFService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
189
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: PDFComponent, isStandalone: true, selector: "kendo-scheduler-pdf", inputs: { author: "author", avoidLinks: "avoidLinks", creator: "creator", date: "date", imageResolution: "imageResolution", fileName: "fileName", forceProxy: "forceProxy", keywords: "keywords", margin: "margin", scale: "scale", proxyData: "proxyData", proxyURL: "proxyURL", proxyTarget: "proxyTarget", producer: "producer", subject: "subject", title: "title" }, ngImport: i0, template: '', isInline: true });
|
|
103
190
|
}
|
|
104
|
-
|
|
105
|
-
PDFComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: PDFComponent, isStandalone: true, selector: "kendo-scheduler-pdf", inputs: { author: "author", avoidLinks: "avoidLinks", creator: "creator", date: "date", imageResolution: "imageResolution", fileName: "fileName", forceProxy: "forceProxy", keywords: "keywords", margin: "margin", scale: "scale", proxyData: "proxyData", proxyURL: "proxyURL", proxyTarget: "proxyTarget", producer: "producer", subject: "subject", title: "title" }, ngImport: i0, template: '', isInline: true });
|
|
106
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PDFComponent, decorators: [{
|
|
191
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PDFComponent, decorators: [{
|
|
107
192
|
type: Component,
|
|
108
193
|
args: [{
|
|
109
194
|
selector: 'kendo-scheduler-pdf',
|
|
@@ -29,11 +29,11 @@ import * as i2 from "./pdf-command.directive";
|
|
|
29
29
|
* ```
|
|
30
30
|
*/
|
|
31
31
|
export class PDFModule {
|
|
32
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PDFModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
33
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: PDFModule, imports: [i1.PDFComponent, i2.PDFCommandDirective], exports: [i1.PDFComponent, i2.PDFCommandDirective] });
|
|
34
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PDFModule, providers: [IconsService], imports: [i2.PDFCommandDirective] });
|
|
32
35
|
}
|
|
33
|
-
|
|
34
|
-
PDFModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: PDFModule, imports: [i1.PDFComponent, i2.PDFCommandDirective], exports: [i1.PDFComponent, i2.PDFCommandDirective] });
|
|
35
|
-
PDFModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PDFModule, providers: [IconsService], imports: [KENDO_SCHEDULERPDF] });
|
|
36
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PDFModule, decorators: [{
|
|
36
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PDFModule, decorators: [{
|
|
37
37
|
type: NgModule,
|
|
38
38
|
args: [{
|
|
39
39
|
imports: [...KENDO_SCHEDULERPDF],
|
|
@@ -9,12 +9,10 @@ import * as i0 from "@angular/core";
|
|
|
9
9
|
* @hidden
|
|
10
10
|
*/
|
|
11
11
|
export class PDFService {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
this.elementReady = new EventEmitter();
|
|
17
|
-
}
|
|
12
|
+
createElement = new EventEmitter();
|
|
13
|
+
exportClick = new EventEmitter();
|
|
14
|
+
done = new EventEmitter();
|
|
15
|
+
elementReady = new EventEmitter();
|
|
18
16
|
save() {
|
|
19
17
|
if (!hasObservers(this.elementReady)) {
|
|
20
18
|
if (isDevMode()) {
|
|
@@ -30,9 +28,9 @@ export class PDFService {
|
|
|
30
28
|
}
|
|
31
29
|
this.createElement.emit();
|
|
32
30
|
}
|
|
31
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PDFService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
32
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PDFService });
|
|
33
33
|
}
|
|
34
|
-
|
|
35
|
-
PDFService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PDFService });
|
|
36
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PDFService, decorators: [{
|
|
34
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PDFService, decorators: [{
|
|
37
35
|
type: Injectable
|
|
38
36
|
}] });
|