@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
package/{esm2020 → esm2022}/editing/recurrence/recurrence-monthly-yearly-editor.component.mjs
RENAMED
|
@@ -19,24 +19,37 @@ import * as i2 from "@progress/kendo-angular-l10n";
|
|
|
19
19
|
* @hidden
|
|
20
20
|
*/
|
|
21
21
|
export class RecurrenceMonthlyYearlyEditorComponent {
|
|
22
|
+
recurrence;
|
|
23
|
+
localization;
|
|
24
|
+
set userNumericOptions(options) {
|
|
25
|
+
this.numericOptions = { ...this.numericOptions, ...options };
|
|
26
|
+
}
|
|
27
|
+
repeatOnRadioButtons;
|
|
28
|
+
extendedWeekDays;
|
|
29
|
+
offsetPositions;
|
|
30
|
+
months;
|
|
31
|
+
currentMonthDay;
|
|
32
|
+
currentMonthMonthDay;
|
|
33
|
+
currentMonthWeekDay;
|
|
34
|
+
currentOffset;
|
|
35
|
+
currentWeekDay;
|
|
36
|
+
uniqueId;
|
|
37
|
+
numericOptions = {
|
|
38
|
+
min: 1,
|
|
39
|
+
max: 31,
|
|
40
|
+
format: '#',
|
|
41
|
+
autoCorrect: true,
|
|
42
|
+
step: 1,
|
|
43
|
+
spinners: true
|
|
44
|
+
};
|
|
45
|
+
subs;
|
|
22
46
|
constructor(recurrence, localization) {
|
|
23
47
|
this.recurrence = recurrence;
|
|
24
48
|
this.localization = localization;
|
|
25
49
|
this.uniqueId = this.recurrence.getUniqueId();
|
|
26
|
-
this.numericOptions = {
|
|
27
|
-
min: 1,
|
|
28
|
-
max: 31,
|
|
29
|
-
format: '#',
|
|
30
|
-
autoCorrect: true,
|
|
31
|
-
step: 1,
|
|
32
|
-
spinners: true
|
|
33
|
-
};
|
|
34
50
|
this.setInitialValues();
|
|
35
51
|
this.subscribeEventHandlers();
|
|
36
52
|
}
|
|
37
|
-
set userNumericOptions(options) {
|
|
38
|
-
this.numericOptions = { ...this.numericOptions, ...options };
|
|
39
|
-
}
|
|
40
53
|
setInitialValues() {
|
|
41
54
|
this.extendedWeekDays = this.recurrence.extendedWeekDays;
|
|
42
55
|
this.offsetPositions = this.recurrence.offsetPositions;
|
|
@@ -233,9 +246,8 @@ export class RecurrenceMonthlyYearlyEditorComponent {
|
|
|
233
246
|
selected.elem.focus();
|
|
234
247
|
}
|
|
235
248
|
}
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
RecurrenceMonthlyYearlyEditorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: RecurrenceMonthlyYearlyEditorComponent, isStandalone: true, selector: "kendo-recurrence-monthly-yearly-editor", inputs: { userNumericOptions: "userNumericOptions" }, viewQueries: [{ propertyName: "repeatOnRadioButtons", predicate: RepeatOnRadioButtonDirective, descendants: true }], ngImport: i0, template: `
|
|
249
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: RecurrenceMonthlyYearlyEditorComponent, deps: [{ token: i1.RecurrenceService }, { token: i2.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
250
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: RecurrenceMonthlyYearlyEditorComponent, isStandalone: true, selector: "kendo-recurrence-monthly-yearly-editor", inputs: { userNumericOptions: "userNumericOptions" }, viewQueries: [{ propertyName: "repeatOnRadioButtons", predicate: RepeatOnRadioButtonDirective, descendants: true }], ngImport: i0, template: `
|
|
239
251
|
<div class='k-form-field'>
|
|
240
252
|
<kendo-label
|
|
241
253
|
[text]="textForRepeatOn()"
|
|
@@ -338,7 +350,8 @@ RecurrenceMonthlyYearlyEditorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVe
|
|
|
338
350
|
</div>
|
|
339
351
|
</div>
|
|
340
352
|
`, isInline: true, dependencies: [{ kind: "component", type: LabelComponent, selector: "kendo-label", inputs: ["text", "for", "optional", "labelCssStyle", "labelCssClass"], exportAs: ["kendoLabel"] }, { kind: "directive", type: RepeatOnRadioButtonDirective, selector: "[kendoRecurrenceRepeatOnRadioButton]", inputs: ["kendoRecurrenceRepeatOnRadioButton"] }, { kind: "directive", type: LabelDirective, selector: "label[for]", inputs: ["for", "labelClass"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: DropDownListComponent, selector: "kendo-dropdownlist", inputs: ["customIconClass", "showStickyHeader", "icon", "svgIcon", "loading", "data", "value", "textField", "valueField", "adaptiveMode", "title", "subtitle", "popupSettings", "listHeight", "defaultItem", "disabled", "itemDisabled", "readonly", "filterable", "virtual", "ignoreCase", "delay", "valuePrimitive", "tabindex", "tabIndex", "size", "rounded", "fillMode", "leftRightArrowsNavigation", "id"], outputs: ["valueChange", "filterChange", "selectionChange", "open", "opened", "close", "closed", "focus", "blur"], exportAs: ["kendoDropDownList"] }, { kind: "component", type: NumericTextBoxComponent, selector: "kendo-numerictextbox", inputs: ["focusableId", "disabled", "readonly", "title", "autoCorrect", "format", "max", "min", "decimals", "placeholder", "step", "spinners", "rangeValidation", "tabindex", "tabIndex", "changeValueOnScroll", "selectOnFocus", "value", "maxlength", "size", "rounded", "fillMode", "inputAttributes"], outputs: ["valueChange", "focus", "blur", "inputFocus", "inputBlur"], exportAs: ["kendoNumericTextBox"] }, { kind: "component", type: NumericTextBoxCustomMessagesComponent, selector: "kendo-numerictextbox-messages" }] });
|
|
341
|
-
|
|
353
|
+
}
|
|
354
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: RecurrenceMonthlyYearlyEditorComponent, decorators: [{
|
|
342
355
|
type: Component,
|
|
343
356
|
args: [{
|
|
344
357
|
selector: 'kendo-recurrence-monthly-yearly-editor',
|
|
@@ -16,10 +16,14 @@ import * as i2 from "@progress/kendo-angular-l10n";
|
|
|
16
16
|
* @hidden
|
|
17
17
|
*/
|
|
18
18
|
export class RecurrenceWeekdayRuleEditorComponent {
|
|
19
|
+
recurrence;
|
|
20
|
+
localization;
|
|
21
|
+
weekDayButtons;
|
|
22
|
+
weekDays;
|
|
23
|
+
selected = [];
|
|
19
24
|
constructor(recurrence, localization) {
|
|
20
25
|
this.recurrence = recurrence;
|
|
21
26
|
this.localization = localization;
|
|
22
|
-
this.selected = [];
|
|
23
27
|
this.weekDays = this.recurrence.weekDays;
|
|
24
28
|
this.setSelectedDays();
|
|
25
29
|
}
|
|
@@ -64,9 +68,8 @@ export class RecurrenceWeekdayRuleEditorComponent {
|
|
|
64
68
|
selected.focus();
|
|
65
69
|
}
|
|
66
70
|
}
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
RecurrenceWeekdayRuleEditorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: RecurrenceWeekdayRuleEditorComponent, isStandalone: true, selector: "kendo-recurrence-weekday-rule-editor", viewQueries: [{ propertyName: "weekDayButtons", predicate: Button, descendants: true }], ngImport: i0, template: `
|
|
71
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: RecurrenceWeekdayRuleEditorComponent, deps: [{ token: i1.RecurrenceService }, { token: i2.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
72
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: RecurrenceWeekdayRuleEditorComponent, isStandalone: true, selector: "kendo-recurrence-weekday-rule-editor", viewQueries: [{ propertyName: "weekDayButtons", predicate: Button, descendants: true }], ngImport: i0, template: `
|
|
70
73
|
<div class="k-form-field">
|
|
71
74
|
<kendo-label
|
|
72
75
|
[text]="textFor('weeklyRepeatOn')"
|
|
@@ -90,7 +93,8 @@ RecurrenceWeekdayRuleEditorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVers
|
|
|
90
93
|
</div>
|
|
91
94
|
</div>
|
|
92
95
|
`, isInline: true, dependencies: [{ kind: "component", type: LabelComponent, selector: "kendo-label", inputs: ["text", "for", "optional", "labelCssStyle", "labelCssClass"], exportAs: ["kendoLabel"] }, { kind: "component", type: ButtonGroupComponent, selector: "kendo-buttongroup", inputs: ["disabled", "selection", "width", "tabIndex", "navigable"], outputs: ["navigate"], exportAs: ["kendoButtonGroup"] }, { kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }] });
|
|
93
|
-
|
|
96
|
+
}
|
|
97
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: RecurrenceWeekdayRuleEditorComponent, decorators: [{
|
|
94
98
|
type: Component,
|
|
95
99
|
args: [{
|
|
96
100
|
selector: 'kendo-recurrence-weekday-rule-editor',
|
|
@@ -50,13 +50,19 @@ export const weekendRule = [
|
|
|
50
50
|
* The internal service for handling changes in the RecurrenceEditor component.
|
|
51
51
|
*/
|
|
52
52
|
export class RecurrenceService {
|
|
53
|
+
intl;
|
|
54
|
+
localization;
|
|
55
|
+
rrule;
|
|
56
|
+
timezone;
|
|
57
|
+
weekStart;
|
|
58
|
+
start;
|
|
59
|
+
change = new EventEmitter();
|
|
60
|
+
endRuleChange = new EventEmitter();
|
|
61
|
+
frequencyChange = new EventEmitter();
|
|
62
|
+
repeatOnRuleChange = new EventEmitter();
|
|
53
63
|
constructor(intl, localization) {
|
|
54
64
|
this.intl = intl;
|
|
55
65
|
this.localization = localization;
|
|
56
|
-
this.change = new EventEmitter();
|
|
57
|
-
this.endRuleChange = new EventEmitter();
|
|
58
|
-
this.frequencyChange = new EventEmitter();
|
|
59
|
-
this.repeatOnRuleChange = new EventEmitter();
|
|
60
66
|
}
|
|
61
67
|
init(rrule = "", start, timezone, weekStart) {
|
|
62
68
|
this.start = start;
|
|
@@ -240,9 +246,9 @@ export class RecurrenceService {
|
|
|
240
246
|
this.change.emit(serializeRule(this.rrule, this.timezone));
|
|
241
247
|
}
|
|
242
248
|
}
|
|
249
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: RecurrenceService, deps: [{ token: i1.IntlService }, { token: i2.LocalizationService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
250
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: RecurrenceService });
|
|
243
251
|
}
|
|
244
|
-
|
|
245
|
-
RecurrenceService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: RecurrenceService });
|
|
246
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: RecurrenceService, decorators: [{
|
|
252
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: RecurrenceService, decorators: [{
|
|
247
253
|
type: Injectable
|
|
248
254
|
}], ctorParameters: function () { return [{ type: i1.IntlService }, { type: i2.LocalizationService }]; } });
|
|
@@ -10,21 +10,28 @@ import * as i1 from "./recurrence.service";
|
|
|
10
10
|
* @hidden
|
|
11
11
|
*/
|
|
12
12
|
export class RepeatOnRadioButtonDirective {
|
|
13
|
+
el;
|
|
14
|
+
renderer;
|
|
15
|
+
recurrence;
|
|
16
|
+
changeDetector;
|
|
17
|
+
type = 'radio';
|
|
18
|
+
radioClass = true;
|
|
19
|
+
radioSizeClass = true;
|
|
20
|
+
set repeatOnRule(value) {
|
|
21
|
+
const parts = value.split('-');
|
|
22
|
+
this._repeatOnRule = parts[0];
|
|
23
|
+
this._uniqueId = parts[1];
|
|
24
|
+
}
|
|
25
|
+
destroyClick;
|
|
26
|
+
_repeatOnRule;
|
|
27
|
+
_uniqueId;
|
|
13
28
|
constructor(el, renderer, recurrence, changeDetector) {
|
|
14
29
|
this.el = el;
|
|
15
30
|
this.renderer = renderer;
|
|
16
31
|
this.recurrence = recurrence;
|
|
17
32
|
this.changeDetector = changeDetector;
|
|
18
|
-
this.type = 'radio';
|
|
19
|
-
this.radioClass = true;
|
|
20
|
-
this.radioSizeClass = true;
|
|
21
33
|
this.destroyClick = this.renderer.listen(this.elem, 'click', this.onClick.bind(this));
|
|
22
34
|
}
|
|
23
|
-
set repeatOnRule(value) {
|
|
24
|
-
const parts = value.split('-');
|
|
25
|
-
this._repeatOnRule = parts[0];
|
|
26
|
-
this._uniqueId = parts[1];
|
|
27
|
-
}
|
|
28
35
|
ngOnInit() {
|
|
29
36
|
this.renderer.setAttribute(this.elem, 'id', `k-repeaton-${this._repeatOnRule}-${this._uniqueId}`);
|
|
30
37
|
this.renderer.setAttribute(this.elem, 'name', `day-${this._uniqueId}`);
|
|
@@ -50,10 +57,10 @@ export class RepeatOnRadioButtonDirective {
|
|
|
50
57
|
get elem() {
|
|
51
58
|
return this.el.nativeElement;
|
|
52
59
|
}
|
|
60
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: RepeatOnRadioButtonDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i1.RecurrenceService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
61
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: RepeatOnRadioButtonDirective, isStandalone: true, selector: "[kendoRecurrenceRepeatOnRadioButton]", inputs: { repeatOnRule: ["kendoRecurrenceRepeatOnRadioButton", "repeatOnRule"] }, host: { properties: { "attr.type": "this.type", "class.k-radio": "this.radioClass", "class.k-radio-md": "this.radioSizeClass" } }, ngImport: i0 });
|
|
53
62
|
}
|
|
54
|
-
|
|
55
|
-
RepeatOnRadioButtonDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: RepeatOnRadioButtonDirective, isStandalone: true, selector: "[kendoRecurrenceRepeatOnRadioButton]", inputs: { repeatOnRule: ["kendoRecurrenceRepeatOnRadioButton", "repeatOnRule"] }, host: { properties: { "attr.type": "this.type", "class.k-radio": "this.radioClass", "class.k-radio-md": "this.radioSizeClass" } }, ngImport: i0 });
|
|
56
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: RepeatOnRadioButtonDirective, decorators: [{
|
|
63
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: RepeatOnRadioButtonDirective, decorators: [{
|
|
57
64
|
type: Directive,
|
|
58
65
|
args: [{
|
|
59
66
|
selector: '[kendoRecurrenceRepeatOnRadioButton]',
|
|
@@ -9,12 +9,10 @@ import * as i0 from "@angular/core";
|
|
|
9
9
|
* @hidden
|
|
10
10
|
*/
|
|
11
11
|
export class ResourceEditorBase {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
this.onChangeCallback = (_) => { };
|
|
17
|
-
}
|
|
12
|
+
resource;
|
|
13
|
+
valueChange = new EventEmitter();
|
|
14
|
+
resourceValue;
|
|
15
|
+
getField = getField;
|
|
18
16
|
/**
|
|
19
17
|
* @hidden
|
|
20
18
|
*/
|
|
@@ -31,6 +29,8 @@ export class ResourceEditorBase {
|
|
|
31
29
|
this.resourceValue = newValue;
|
|
32
30
|
this.emitChange(this.resourceValue);
|
|
33
31
|
}
|
|
32
|
+
onTouchedCallback = (_) => { };
|
|
33
|
+
onChangeCallback = (_) => { };
|
|
34
34
|
/**
|
|
35
35
|
* @hidden
|
|
36
36
|
*/
|
|
@@ -47,10 +47,10 @@ export class ResourceEditorBase {
|
|
|
47
47
|
this.onChangeCallback(value);
|
|
48
48
|
this.valueChange.emit(value);
|
|
49
49
|
}
|
|
50
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ResourceEditorBase, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
51
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: ResourceEditorBase, inputs: { resource: "resource" }, outputs: { valueChange: "valueChange" }, ngImport: i0 });
|
|
50
52
|
}
|
|
51
|
-
|
|
52
|
-
ResourceEditorBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: ResourceEditorBase, inputs: { resource: "resource" }, outputs: { valueChange: "valueChange" }, ngImport: i0 });
|
|
53
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ResourceEditorBase, decorators: [{
|
|
53
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ResourceEditorBase, decorators: [{
|
|
54
54
|
type: Directive
|
|
55
55
|
}], propDecorators: { resource: [{
|
|
56
56
|
type: Input
|
|
@@ -20,6 +20,7 @@ export const MULTIPLE_RESOURCE_VALUE_ACCESSOR = {
|
|
|
20
20
|
* @hidden
|
|
21
21
|
*/
|
|
22
22
|
export class MultipleResourceEditorComponent extends ResourceEditorBase {
|
|
23
|
+
resourceMultiSelect;
|
|
23
24
|
getTagStyle(dataItem) {
|
|
24
25
|
return {
|
|
25
26
|
'background-color': dataItem[this.resource.colorField]
|
|
@@ -28,11 +29,10 @@ export class MultipleResourceEditorComponent extends ResourceEditorBase {
|
|
|
28
29
|
focus() {
|
|
29
30
|
this.resourceMultiSelect.focus();
|
|
30
31
|
}
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
], viewQueries: [{ propertyName: "resourceMultiSelect", first: true, predicate: ["resourceMultiSelect"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: `
|
|
32
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MultipleResourceEditorComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
33
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: MultipleResourceEditorComponent, isStandalone: true, selector: "kendo-multiple-resource-editor", providers: [
|
|
34
|
+
MULTIPLE_RESOURCE_VALUE_ACCESSOR
|
|
35
|
+
], viewQueries: [{ propertyName: "resourceMultiSelect", first: true, predicate: ["resourceMultiSelect"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: `
|
|
36
36
|
<kendo-multiselect
|
|
37
37
|
#resourceMultiSelect
|
|
38
38
|
[data]='resource.data'
|
|
@@ -54,7 +54,8 @@ MultipleResourceEditorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion:
|
|
|
54
54
|
</ng-template>
|
|
55
55
|
</kendo-multiselect>
|
|
56
56
|
`, isInline: true, dependencies: [{ kind: "component", type: MultiSelectComponent, selector: "kendo-multiselect", inputs: ["showStickyHeader", "focusableId", "autoClose", "loading", "data", "value", "valueField", "textField", "tabindex", "tabIndex", "size", "rounded", "fillMode", "placeholder", "adaptiveMode", "title", "subtitle", "disabled", "itemDisabled", "checkboxes", "readonly", "filterable", "virtual", "popupSettings", "listHeight", "valuePrimitive", "clearButton", "tagMapper", "allowCustom", "valueNormalizer", "inputAttributes"], outputs: ["filterChange", "valueChange", "open", "opened", "close", "closed", "focus", "blur", "inputFocus", "inputBlur", "removeTag"], exportAs: ["kendoMultiSelect"] }, { kind: "directive", type: ItemTemplateDirective, selector: "[kendoDropDownListItemTemplate],[kendoComboBoxItemTemplate],[kendoAutoCompleteItemTemplate],[kendoMultiSelectItemTemplate]" }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: TagTemplateDirective, selector: "[kendoMultiSelectTagTemplate],[kendoMultiSelectTreeTagTemplate]" }] });
|
|
57
|
-
|
|
57
|
+
}
|
|
58
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MultipleResourceEditorComponent, decorators: [{
|
|
58
59
|
type: Component,
|
|
59
60
|
args: [{
|
|
60
61
|
providers: [
|
|
@@ -20,14 +20,14 @@ export const SINGLE_RESOURCE_VALUE_ACCESSOR = {
|
|
|
20
20
|
* @hidden
|
|
21
21
|
*/
|
|
22
22
|
export class SingleResourceEditorComponent extends ResourceEditorBase {
|
|
23
|
+
resourceDropDown;
|
|
23
24
|
focus() {
|
|
24
25
|
this.resourceDropDown.focus();
|
|
25
26
|
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
], viewQueries: [{ propertyName: "resourceDropDown", first: true, predicate: ["resourceDropDown"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: `
|
|
27
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SingleResourceEditorComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
28
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: SingleResourceEditorComponent, isStandalone: true, selector: "kendo-single-resource-editor", providers: [
|
|
29
|
+
SINGLE_RESOURCE_VALUE_ACCESSOR
|
|
30
|
+
], viewQueries: [{ propertyName: "resourceDropDown", first: true, predicate: ["resourceDropDown"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: `
|
|
31
31
|
<kendo-dropdownlist
|
|
32
32
|
#resourceDropDown
|
|
33
33
|
[data]='resource.data'
|
|
@@ -44,7 +44,8 @@ SingleResourceEditorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "1
|
|
|
44
44
|
</ng-template>
|
|
45
45
|
</kendo-dropdownlist>
|
|
46
46
|
`, isInline: true, dependencies: [{ kind: "component", type: DropDownListComponent, selector: "kendo-dropdownlist", inputs: ["customIconClass", "showStickyHeader", "icon", "svgIcon", "loading", "data", "value", "textField", "valueField", "adaptiveMode", "title", "subtitle", "popupSettings", "listHeight", "defaultItem", "disabled", "itemDisabled", "readonly", "filterable", "virtual", "ignoreCase", "delay", "valuePrimitive", "tabindex", "tabIndex", "size", "rounded", "fillMode", "leftRightArrowsNavigation", "id"], outputs: ["valueChange", "filterChange", "selectionChange", "open", "opened", "close", "closed", "focus", "blur"], exportAs: ["kendoDropDownList"] }, { kind: "directive", type: ItemTemplateDirective, selector: "[kendoDropDownListItemTemplate],[kendoComboBoxItemTemplate],[kendoAutoCompleteItemTemplate],[kendoMultiSelectItemTemplate]" }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] });
|
|
47
|
-
|
|
47
|
+
}
|
|
48
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SingleResourceEditorComponent, decorators: [{
|
|
48
49
|
type: Component,
|
|
49
50
|
args: [{
|
|
50
51
|
providers: [
|
|
@@ -24,22 +24,18 @@ export const TIME_ZONE_VALUE_ACCESSOR = {
|
|
|
24
24
|
* Used for editing the `start` and `end` timezones of the `SchedulerEvent` objects.
|
|
25
25
|
*/
|
|
26
26
|
export class TimeZoneEditorComponent {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
this.onChangeCallback = (_) => { };
|
|
40
|
-
this.tzNames = timezoneNames();
|
|
41
|
-
this.tzSource = this.tzNames.slice();
|
|
42
|
-
}
|
|
27
|
+
injector;
|
|
28
|
+
tzComboBox;
|
|
29
|
+
tzComboBoxControl;
|
|
30
|
+
/**
|
|
31
|
+
* Specifies the width of the ComboBox which contains the names of the timezones.
|
|
32
|
+
* @default 260
|
|
33
|
+
*/
|
|
34
|
+
width = 260;
|
|
35
|
+
/**
|
|
36
|
+
* Fires when the value of the component has changed.
|
|
37
|
+
*/
|
|
38
|
+
valueChange = new EventEmitter();
|
|
43
39
|
/**
|
|
44
40
|
* @hidden
|
|
45
41
|
*/
|
|
@@ -53,6 +49,14 @@ export class TimeZoneEditorComponent {
|
|
|
53
49
|
const ngControl = this.injector.get(NgControl, null);
|
|
54
50
|
return ngControl?.control || null;
|
|
55
51
|
}
|
|
52
|
+
tz;
|
|
53
|
+
tzNames;
|
|
54
|
+
tzSource;
|
|
55
|
+
constructor(injector) {
|
|
56
|
+
this.injector = injector;
|
|
57
|
+
this.tzNames = timezoneNames();
|
|
58
|
+
this.tzSource = this.tzNames.slice();
|
|
59
|
+
}
|
|
56
60
|
/**
|
|
57
61
|
* @hidden
|
|
58
62
|
*/
|
|
@@ -81,6 +85,8 @@ export class TimeZoneEditorComponent {
|
|
|
81
85
|
focus() {
|
|
82
86
|
this.tzComboBox ? this.tzComboBox.focus() : this.tzComboBoxControl.focus();
|
|
83
87
|
}
|
|
88
|
+
onTouchedCallback = (_) => { };
|
|
89
|
+
onChangeCallback = (_) => { };
|
|
84
90
|
/**
|
|
85
91
|
* @hidden
|
|
86
92
|
*/
|
|
@@ -93,11 +99,10 @@ export class TimeZoneEditorComponent {
|
|
|
93
99
|
registerOnTouched(fn) {
|
|
94
100
|
this.onTouchedCallback = fn;
|
|
95
101
|
}
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
], viewQueries: [{ propertyName: "tzComboBox", first: true, predicate: ["tzcombobox"], descendants: true, static: true }, { propertyName: "tzComboBoxControl", first: true, predicate: ["tzcomboboxControl"], descendants: true, static: true }], ngImport: i0, template: `
|
|
102
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TimeZoneEditorComponent, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
|
|
103
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TimeZoneEditorComponent, isStandalone: true, selector: "kendo-timezone-editor", inputs: { width: "width" }, outputs: { valueChange: "valueChange" }, providers: [
|
|
104
|
+
TIME_ZONE_VALUE_ACCESSOR
|
|
105
|
+
], viewQueries: [{ propertyName: "tzComboBox", first: true, predicate: ["tzcombobox"], descendants: true, static: true }, { propertyName: "tzComboBoxControl", first: true, predicate: ["tzcomboboxControl"], descendants: true, static: true }], ngImport: i0, template: `
|
|
101
106
|
<kendo-combobox
|
|
102
107
|
*ngIf="!formControl"
|
|
103
108
|
#tzcombobox
|
|
@@ -124,7 +129,8 @@ TimeZoneEditorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0"
|
|
|
124
129
|
(valueChange)="onTimeZoneChange($event)">
|
|
125
130
|
</kendo-combobox>
|
|
126
131
|
`, isInline: true, dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: ComboBoxComponent, selector: "kendo-combobox", inputs: ["icon", "svgIcon", "inputAttributes", "showStickyHeader", "focusableId", "allowCustom", "data", "value", "textField", "valueField", "valuePrimitive", "valueNormalizer", "placeholder", "adaptiveMode", "title", "subtitle", "popupSettings", "listHeight", "loading", "suggest", "clearButton", "disabled", "itemDisabled", "readonly", "tabindex", "tabIndex", "filterable", "virtual", "size", "rounded", "fillMode"], outputs: ["valueChange", "selectionChange", "filterChange", "open", "opened", "close", "closed", "focus", "blur", "inputFocus", "inputBlur", "escape"], exportAs: ["kendoComboBox"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }] });
|
|
127
|
-
|
|
132
|
+
}
|
|
133
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TimeZoneEditorComponent, decorators: [{
|
|
128
134
|
type: Component,
|
|
129
135
|
args: [{
|
|
130
136
|
providers: [
|
|
@@ -33,23 +33,40 @@ const DATE_FORMATS = [
|
|
|
33
33
|
* See example in [this article]({% slug custom_reactive_editing_scheduler %}).
|
|
34
34
|
*/
|
|
35
35
|
export class BaseEditService {
|
|
36
|
+
/**
|
|
37
|
+
* The model field map that will be used during the reading and updating of data items.
|
|
38
|
+
*/
|
|
39
|
+
fields;
|
|
40
|
+
/**
|
|
41
|
+
* An observable stream with the current events.
|
|
42
|
+
*/
|
|
43
|
+
events;
|
|
44
|
+
/**
|
|
45
|
+
* An array of the currently loaded events which is populated by the derived class.
|
|
46
|
+
*/
|
|
47
|
+
data = [];
|
|
48
|
+
/**
|
|
49
|
+
* The source subject for the `events` observable.
|
|
50
|
+
*/
|
|
51
|
+
source = new BehaviorSubject([]);
|
|
52
|
+
createdItems = [];
|
|
53
|
+
updatedItems = [];
|
|
54
|
+
deletedItems = [];
|
|
55
|
+
getId;
|
|
56
|
+
getRecurrenceId;
|
|
57
|
+
getRecurrenceRule;
|
|
58
|
+
getRecurrenceExceptions;
|
|
59
|
+
getStart;
|
|
60
|
+
setId;
|
|
61
|
+
setRecurrenceRule;
|
|
62
|
+
setRecurrenceExceptions;
|
|
63
|
+
setRecurrenceId;
|
|
36
64
|
/**
|
|
37
65
|
* Initializes the base edit service.
|
|
38
66
|
*
|
|
39
67
|
* @param fields - A field map that will be used for reading and modifying model objects. Defaults to the [`SchedulerEvent`]({% slug api_scheduler_schedulerevent %}) fields.
|
|
40
68
|
*/
|
|
41
69
|
constructor(fields) {
|
|
42
|
-
/**
|
|
43
|
-
* An array of the currently loaded events which is populated by the derived class.
|
|
44
|
-
*/
|
|
45
|
-
this.data = [];
|
|
46
|
-
/**
|
|
47
|
-
* The source subject for the `events` observable.
|
|
48
|
-
*/
|
|
49
|
-
this.source = new BehaviorSubject([]);
|
|
50
|
-
this.createdItems = [];
|
|
51
|
-
this.updatedItems = [];
|
|
52
|
-
this.deletedItems = [];
|
|
53
70
|
this.events = this.source.asObservable();
|
|
54
71
|
this.fields = { ...defaultModelFields, ...fields };
|
|
55
72
|
this.getId = getter(this.fields.id);
|
|
@@ -22,23 +22,18 @@ import * as i4 from "../navigation";
|
|
|
22
22
|
* @hidden
|
|
23
23
|
*/
|
|
24
24
|
export class EditingDirectiveBase {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
this.edit = new EventEmitter();
|
|
38
|
-
this.defaultTitle = 'No title';
|
|
39
|
-
this.defaultEditService = this.createDefaultService();
|
|
40
|
-
this.scheduler.editable = true;
|
|
41
|
-
}
|
|
25
|
+
scheduler;
|
|
26
|
+
localDataChangesService;
|
|
27
|
+
dialogsService;
|
|
28
|
+
focusService;
|
|
29
|
+
/**
|
|
30
|
+
* Fires before the editing directive renders the **Add** dialog.
|
|
31
|
+
*/
|
|
32
|
+
add = new EventEmitter();
|
|
33
|
+
/**
|
|
34
|
+
* Fires before the editing directive renders the **Edit** dialog.
|
|
35
|
+
*/
|
|
36
|
+
edit = new EventEmitter();
|
|
42
37
|
/**
|
|
43
38
|
* The edit service that will handle the editing operations.
|
|
44
39
|
*/
|
|
@@ -48,6 +43,18 @@ export class EditingDirectiveBase {
|
|
|
48
43
|
get editService() {
|
|
49
44
|
return this.userEditService || this.defaultEditService;
|
|
50
45
|
}
|
|
46
|
+
defaultTitle = 'No title';
|
|
47
|
+
subscriptions;
|
|
48
|
+
defaultEditService;
|
|
49
|
+
userEditService;
|
|
50
|
+
constructor(scheduler, localDataChangesService, dialogsService, focusService) {
|
|
51
|
+
this.scheduler = scheduler;
|
|
52
|
+
this.localDataChangesService = localDataChangesService;
|
|
53
|
+
this.dialogsService = dialogsService;
|
|
54
|
+
this.focusService = focusService;
|
|
55
|
+
this.defaultEditService = this.createDefaultService();
|
|
56
|
+
this.scheduler.editable = true;
|
|
57
|
+
}
|
|
51
58
|
/**
|
|
52
59
|
* @hidden
|
|
53
60
|
*/
|
|
@@ -221,10 +228,10 @@ export class EditingDirectiveBase {
|
|
|
221
228
|
const editable = this.scheduler.editable;
|
|
222
229
|
return editable && editable[action] !== false;
|
|
223
230
|
}
|
|
231
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditingDirectiveBase, deps: [{ token: i1.SchedulerComponent }, { token: i2.LocalDataChangesService }, { token: i3.DialogsService }, { token: i4.FocusService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
232
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: EditingDirectiveBase, inputs: { editService: "editService" }, outputs: { add: "add", edit: "edit" }, ngImport: i0 });
|
|
224
233
|
}
|
|
225
|
-
|
|
226
|
-
EditingDirectiveBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: EditingDirectiveBase, inputs: { editService: "editService" }, outputs: { add: "add", edit: "edit" }, ngImport: i0 });
|
|
227
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: EditingDirectiveBase, decorators: [{
|
|
234
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditingDirectiveBase, decorators: [{
|
|
228
235
|
type: Directive
|
|
229
236
|
}], ctorParameters: function () { return [{ type: i1.SchedulerComponent }, { type: i2.LocalDataChangesService }, { type: i3.DialogsService }, { type: i4.FocusService }]; }, propDecorators: { add: [{
|
|
230
237
|
type: Output
|
|
@@ -10,10 +10,8 @@ const isRecurrenceMaster = (ev) => !!(ev.id && ev.recurrenceRule);
|
|
|
10
10
|
* @hidden
|
|
11
11
|
*/
|
|
12
12
|
export class LocalEditService {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
this.localDataChangesService = localDataChangesService;
|
|
16
|
-
}
|
|
13
|
+
scheduler;
|
|
14
|
+
localDataChangesService;
|
|
17
15
|
get fields() {
|
|
18
16
|
return this.scheduler.modelFields;
|
|
19
17
|
}
|
|
@@ -26,6 +24,10 @@ export class LocalEditService {
|
|
|
26
24
|
}
|
|
27
25
|
return this.scheduler.events;
|
|
28
26
|
}
|
|
27
|
+
constructor(scheduler, localDataChangesService) {
|
|
28
|
+
this.scheduler = scheduler;
|
|
29
|
+
this.localDataChangesService = localDataChangesService;
|
|
30
|
+
}
|
|
29
31
|
create(item) {
|
|
30
32
|
const idField = this.fields.id;
|
|
31
33
|
const id = getField(item, idField);
|
|
@@ -23,6 +23,13 @@ import * as i4 from "../navigation";
|
|
|
23
23
|
* uses the [Reactive Angular Forms](link:site.data.urls.angular['reactiveforms']) ([see example](slug:editing_directives_scheduler)).
|
|
24
24
|
*/
|
|
25
25
|
export class ReactiveEditingDirective extends EditingDirectiveBase {
|
|
26
|
+
scheduler;
|
|
27
|
+
localDataChangesService;
|
|
28
|
+
dialogsService;
|
|
29
|
+
/**
|
|
30
|
+
* The function that creates the `FormGroup` for the edited model.
|
|
31
|
+
*/
|
|
32
|
+
createFormGroup;
|
|
26
33
|
constructor(scheduler, localDataChangesService, dialogsService, focusService) {
|
|
27
34
|
super(scheduler, localDataChangesService, dialogsService, focusService);
|
|
28
35
|
this.scheduler = scheduler;
|
|
@@ -97,10 +104,10 @@ export class ReactiveEditingDirective extends EditingDirectiveBase {
|
|
|
97
104
|
markAllAsTouched(formGroup);
|
|
98
105
|
return false;
|
|
99
106
|
}
|
|
107
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ReactiveEditingDirective, deps: [{ token: i1.SchedulerComponent }, { token: i2.LocalDataChangesService }, { token: i3.DialogsService }, { token: i4.FocusService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
108
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: ReactiveEditingDirective, isStandalone: true, selector: "[kendoSchedulerReactiveEditing]", inputs: { createFormGroup: ["kendoSchedulerReactiveEditing", "createFormGroup"] }, usesInheritance: true, ngImport: i0 });
|
|
100
109
|
}
|
|
101
|
-
|
|
102
|
-
ReactiveEditingDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: ReactiveEditingDirective, isStandalone: true, selector: "[kendoSchedulerReactiveEditing]", inputs: { createFormGroup: ["kendoSchedulerReactiveEditing", "createFormGroup"] }, usesInheritance: true, ngImport: i0 });
|
|
103
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ReactiveEditingDirective, decorators: [{
|
|
110
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ReactiveEditingDirective, decorators: [{
|
|
104
111
|
type: Directive,
|
|
105
112
|
args: [{
|
|
106
113
|
selector: '[kendoSchedulerReactiveEditing]',
|
|
@@ -7,6 +7,14 @@ import { PreventableEvent } from './preventable-event';
|
|
|
7
7
|
* Arguments for the `add` event of the editing directives.
|
|
8
8
|
*/
|
|
9
9
|
export class AddEvent extends PreventableEvent {
|
|
10
|
+
/**
|
|
11
|
+
* The data for binding the **Add** dialog.
|
|
12
|
+
*/
|
|
13
|
+
dataItem;
|
|
14
|
+
/**
|
|
15
|
+
* A reference to the Scheduler instance that triggered the event.
|
|
16
|
+
*/
|
|
17
|
+
sender;
|
|
10
18
|
/**
|
|
11
19
|
* @hidden
|
|
12
20
|
*/
|
|
@@ -6,6 +6,30 @@
|
|
|
6
6
|
* Arguments for the `create` event.
|
|
7
7
|
*/
|
|
8
8
|
export class CreateEvent {
|
|
9
|
+
/**
|
|
10
|
+
* The start date of the slot.
|
|
11
|
+
*/
|
|
12
|
+
start;
|
|
13
|
+
/**
|
|
14
|
+
* The end date of the slot.
|
|
15
|
+
*/
|
|
16
|
+
end;
|
|
17
|
+
/**
|
|
18
|
+
* Indicates if the slot is all-day.
|
|
19
|
+
*/
|
|
20
|
+
isAllDay;
|
|
21
|
+
/**
|
|
22
|
+
* The resources of the slot.
|
|
23
|
+
*/
|
|
24
|
+
resources;
|
|
25
|
+
/**
|
|
26
|
+
* The original DOM event.
|
|
27
|
+
*/
|
|
28
|
+
originalEvent;
|
|
29
|
+
/**
|
|
30
|
+
* A reference to the Scheduler instance that triggered the event.
|
|
31
|
+
*/
|
|
32
|
+
sender;
|
|
9
33
|
/**
|
|
10
34
|
* @hidden
|
|
11
35
|
*/
|