@simplysm/angular 14.0.42 → 14.0.43
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/dist/controls/button/sd-additional-button.js +1 -1
- package/dist/controls/button/sd-anchor.js +1 -1
- package/dist/controls/button/sd-button.js +1 -1
- package/dist/controls/button/sd-modal-select-button.d.ts +1 -1
- package/dist/controls/button/sd-modal-select-button.d.ts.map +1 -1
- package/dist/controls/button/sd-modal-select-button.js +8 -6
- package/dist/controls/checkbox/sd-checkbox-group-item.js +1 -1
- package/dist/controls/checkbox/sd-checkbox-group.js +1 -1
- package/dist/controls/checkbox/sd-checkbox.js +1 -1
- package/dist/controls/checkbox/sd-switch.js +1 -1
- package/dist/controls/collapse/sd-collapse-icon.d.ts.map +1 -1
- package/dist/controls/collapse/sd-collapse-icon.js +3 -3
- package/dist/controls/collapse/sd-collapse.d.ts +1 -1
- package/dist/controls/collapse/sd-collapse.d.ts.map +1 -1
- package/dist/controls/collapse/sd-collapse.js +8 -7
- package/dist/controls/dropdown/sd-dropdown-popup.d.ts +2 -0
- package/dist/controls/dropdown/sd-dropdown-popup.d.ts.map +1 -1
- package/dist/controls/dropdown/sd-dropdown-popup.js +21 -8
- package/dist/controls/dropdown/sd-dropdown.d.ts.map +1 -1
- package/dist/controls/dropdown/sd-dropdown.js +5 -16
- package/dist/controls/form/sd-form.js +1 -1
- package/dist/controls/gap/sd-gap.js +5 -5
- package/dist/controls/input/sd-date-range-picker.d.ts +1 -0
- package/dist/controls/input/sd-date-range-picker.d.ts.map +1 -1
- package/dist/controls/input/sd-date-range-picker.js +14 -19
- package/dist/controls/input/sd-numpad.js +3 -3
- package/dist/controls/input/sd-range.js +1 -1
- package/dist/controls/input/sd-textarea.js +2 -2
- package/dist/controls/input/sd-textfield-type-handlers.js +2 -2
- package/dist/controls/input/sd-textfield.js +9 -9
- package/dist/controls/list/sd-list-item.d.ts +0 -1
- package/dist/controls/list/sd-list-item.d.ts.map +1 -1
- package/dist/controls/list/sd-list-item.js +38 -38
- package/dist/controls/list/sd-list.d.ts.map +1 -1
- package/dist/controls/list/sd-list.js +3 -3
- package/dist/controls/pagination/sd-pagination.js +1 -1
- package/dist/controls/select/sd-select-button.d.ts.map +1 -1
- package/dist/controls/select/sd-select-button.js +4 -8
- package/dist/controls/select/sd-select-item.d.ts +3 -3
- package/dist/controls/select/sd-select-item.d.ts.map +1 -1
- package/dist/controls/select/sd-select-item.js +27 -20
- package/dist/controls/select/sd-select.d.ts +5 -4
- package/dist/controls/select/sd-select.d.ts.map +1 -1
- package/dist/controls/select/sd-select.js +20 -17
- package/dist/controls/tab/sd-tab-item.js +1 -1
- package/dist/controls/tab/sd-tab.js +1 -1
- package/dist/core/app-structure/sd-app-structure.utils.js +1 -1
- package/dist/core/busy/sd-busy-container.d.ts.map +1 -1
- package/dist/core/busy/sd-busy-container.js +62 -68
- package/dist/core/busy/sd-busy.provider.js +1 -1
- package/dist/core/commands/sd-command.d.ts +13 -0
- package/dist/core/commands/sd-command.d.ts.map +1 -0
- package/dist/core/commands/sd-command.js +52 -0
- package/dist/core/error-handler/sd-global-error-handler.plugin.js +1 -1
- package/dist/core/events/sd-events.d.ts +1 -6
- package/dist/core/events/sd-events.d.ts.map +1 -1
- package/dist/core/events/sd-events.js +3 -11
- package/dist/core/events/sd-intersection.d.ts +13 -0
- package/dist/core/events/sd-intersection.d.ts.map +1 -0
- package/dist/core/events/sd-intersection.js +27 -0
- package/dist/core/events/sd-resize.d.ts +16 -0
- package/dist/core/events/sd-resize.d.ts.map +1 -0
- package/dist/core/events/{sd-resize-event.plugin.js → sd-resize.js} +18 -20
- package/dist/core/file-dialog/sd-file-dialog.provider.js +1 -1
- package/dist/core/modal/injectDragResize.js +9 -9
- package/dist/core/modal/injectFocusTrap.js +1 -1
- package/dist/core/modal/sd-confirm-modal.js +1 -1
- package/dist/core/modal/sd-modal.d.ts +8 -1
- package/dist/core/modal/sd-modal.d.ts.map +1 -1
- package/dist/core/modal/sd-modal.js +135 -39
- package/dist/core/modal/sd-modal.provider.js +5 -5
- package/dist/core/modal/sd-prompt-modal.js +1 -1
- package/dist/core/provideSdAngular.d.ts.map +1 -1
- package/dist/core/provideSdAngular.js +0 -10
- package/dist/core/ripple/setupRipple.js +5 -5
- package/dist/core/routing/menu-utils.js +1 -1
- package/dist/core/routing/sd-navigate-window.provider.js +1 -1
- package/dist/core/routing/sd-router-link.js +1 -1
- package/dist/core/selection/setupCumulateSelectedKeys.js +3 -3
- package/dist/core/setupModelHook.js +1 -1
- package/dist/core/toast/sd-toast-container.d.ts +1 -1
- package/dist/core/toast/sd-toast-container.js +3 -7
- package/dist/core/toast/sd-toast.d.ts.map +1 -1
- package/dist/core/toast/sd-toast.js +27 -24
- package/dist/core/toast/sd-toast.provider.js +6 -6
- package/dist/core/validation/setupInvalid.js +2 -1
- package/dist/data/data-detail/sd-data-detail.d.ts +2 -1
- package/dist/data/data-detail/sd-data-detail.d.ts.map +1 -1
- package/dist/data/data-detail/sd-data-detail.js +37 -33
- package/dist/data/data-select-button/sd-data-select-button.js +1 -1
- package/dist/data/data-sheet/sd-data-sheet.d.ts +2 -1
- package/dist/data/data-sheet/sd-data-sheet.d.ts.map +1 -1
- package/dist/data/data-sheet/sd-data-sheet.js +30 -22
- package/dist/data/kanban/sd-kanban-board.js +1 -1
- package/dist/data/kanban/sd-kanban-lane.js +1 -1
- package/dist/data/kanban/sd-kanban.d.ts +1 -1
- package/dist/data/kanban/sd-kanban.d.ts.map +1 -1
- package/dist/data/kanban/sd-kanban.js +4 -4
- package/dist/data/permission-table/sd-permission-table.js +6 -6
- package/dist/data/shared-data/sd-shared-data-select-button.js +1 -1
- package/dist/data/shared-data/sd-shared-data-select-list.js +3 -3
- package/dist/data/shared-data/sd-shared-data-select.d.ts +1 -1
- package/dist/data/shared-data/sd-shared-data-select.d.ts.map +1 -1
- package/dist/data/shared-data/sd-shared-data-select.js +29 -54
- package/dist/data/sheet/injectSheetDomAccessor.d.ts +6 -2
- package/dist/data/sheet/injectSheetDomAccessor.d.ts.map +1 -1
- package/dist/data/sheet/injectSheetDomAccessor.js +27 -22
- package/dist/data/sheet/injectSheetSelectRowIndicator.d.ts +10 -0
- package/dist/data/sheet/injectSheetSelectRowIndicator.d.ts.map +1 -0
- package/dist/data/sheet/injectSheetSelectRowIndicator.js +55 -0
- package/dist/data/sheet/sd-sheet-config.modal.d.ts +18 -19
- package/dist/data/sheet/sd-sheet-config.modal.d.ts.map +1 -1
- package/dist/data/sheet/sd-sheet-config.modal.js +357 -217
- package/dist/data/sheet/sd-sheet.d.ts +27 -13
- package/dist/data/sheet/sd-sheet.d.ts.map +1 -1
- package/dist/data/sheet/sd-sheet.js +609 -291
- package/dist/data/sheet/useSheetCellAgent.js +6 -6
- package/dist/data/sheet/useSheetCellStyling.d.ts.map +1 -1
- package/dist/data/sheet/useSheetCellStyling.js +4 -4
- package/dist/data/sheet/useSheetFocusIndicator.d.ts +7 -0
- package/dist/data/sheet/useSheetFocusIndicator.d.ts.map +1 -0
- package/dist/data/sheet/useSheetFocusIndicator.js +53 -0
- package/dist/data/sheet/useSheetLayoutEngine.js +1 -1
- package/dist/data/state-preset/sd-state-preset.d.ts.map +1 -1
- package/dist/data/state-preset/sd-state-preset.js +14 -14
- package/dist/features/address/sd-address-search.modal.js +3 -3
- package/dist/features/editor/sd-tiptap-editor.js +6 -6
- package/dist/features/editor/useTiptapToolbar.js +2 -2
- package/dist/features/theme/sd-theme-selector.js +1 -1
- package/dist/features/visual/sd-barcode.js +1 -1
- package/dist/features/visual/sd-calendar.js +2 -2
- package/dist/features/visual/sd-echarts.d.ts +2 -1
- package/dist/features/visual/sd-echarts.d.ts.map +1 -1
- package/dist/features/visual/sd-echarts.js +5 -3
- package/dist/features/visual/sd-label.js +1 -1
- package/dist/features/visual/sd-note.js +1 -1
- package/dist/features/visual/sd-progress.js +1 -1
- package/dist/index.d.ts +3 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -5
- package/dist/layout/base-container/sd-base-container.js +3 -3
- package/dist/layout/dock/sd-dock-container.js +1 -1
- package/dist/layout/dock/sd-dock.d.ts +3 -2
- package/dist/layout/dock/sd-dock.d.ts.map +1 -1
- package/dist/layout/dock/sd-dock.js +6 -4
- package/dist/layout/sidebar/sd-sidebar-container.js +5 -5
- package/dist/layout/sidebar/sd-sidebar-menu.d.ts.map +1 -1
- package/dist/layout/sidebar/sd-sidebar-menu.js +7 -6
- package/dist/layout/sidebar/sd-sidebar-user.js +1 -1
- package/dist/layout/sidebar/sd-sidebar.js +1 -1
- package/dist/layout/topbar/sd-topbar-container.js +1 -1
- package/dist/layout/topbar/sd-topbar-menu.d.ts.map +1 -1
- package/dist/layout/topbar/sd-topbar-menu.js +7 -7
- package/dist/layout/topbar/sd-topbar-user.js +1 -1
- package/dist/layout/topbar/sd-topbar.js +3 -3
- package/package.json +5 -5
- package/src/controls/button/sd-modal-select-button.ts +7 -2
- package/src/controls/collapse/sd-collapse-icon.ts +2 -2
- package/src/controls/collapse/sd-collapse.ts +4 -5
- package/src/controls/dropdown/sd-dropdown-popup.ts +15 -2
- package/src/controls/dropdown/sd-dropdown.ts +4 -16
- package/src/controls/gap/sd-gap.ts +4 -4
- package/src/controls/input/sd-date-range-picker.ts +13 -16
- package/src/controls/input/sd-numpad.ts +1 -1
- package/src/controls/input/sd-textarea.ts +1 -1
- package/src/controls/input/sd-textfield-type-handlers.ts +2 -2
- package/src/controls/input/sd-textfield.ts +6 -6
- package/src/controls/list/sd-list-item.ts +40 -26
- package/src/controls/list/sd-list.ts +2 -1
- package/src/controls/select/sd-select-button.ts +8 -11
- package/src/controls/select/sd-select-item.ts +35 -27
- package/src/controls/select/sd-select.ts +111 -41
- package/src/core/app-structure/sd-app-structure.utils.ts +1 -1
- package/src/core/busy/sd-busy-container.ts +235 -123
- package/src/core/busy/sd-busy.provider.ts +1 -1
- package/src/core/commands/sd-command.ts +46 -0
- package/src/core/error-handler/sd-global-error-handler.plugin.ts +1 -1
- package/src/core/events/sd-events.ts +1 -12
- package/src/core/events/sd-intersection.ts +29 -0
- package/src/core/events/{sd-resize-event.plugin.ts → sd-resize.ts} +17 -24
- package/src/core/file-dialog/sd-file-dialog.provider.ts +1 -1
- package/src/core/modal/injectDragResize.ts +9 -9
- package/src/core/modal/injectFocusTrap.ts +1 -1
- package/src/core/modal/sd-modal.provider.ts +5 -5
- package/src/core/modal/sd-modal.ts +119 -41
- package/src/core/provideSdAngular.ts +0 -10
- package/src/core/ripple/setupRipple.ts +5 -5
- package/src/core/routing/menu-utils.ts +1 -1
- package/src/core/routing/sd-navigate-window.provider.ts +1 -1
- package/src/core/routing/sd-router-link.ts +1 -1
- package/src/core/selection/setupCumulateSelectedKeys.ts +3 -3
- package/src/core/setupModelHook.ts +1 -1
- package/src/core/toast/sd-toast-container.ts +1 -1
- package/src/core/toast/sd-toast.provider.ts +6 -6
- package/src/core/toast/sd-toast.ts +25 -22
- package/src/core/validation/setupInvalid.ts +2 -1
- package/src/data/data-detail/sd-data-detail.ts +15 -11
- package/src/data/data-sheet/sd-data-sheet.ts +13 -15
- package/src/data/kanban/sd-kanban.ts +4 -5
- package/src/data/permission-table/sd-permission-table.ts +4 -4
- package/src/data/shared-data/sd-shared-data-select-list.ts +1 -1
- package/src/data/shared-data/sd-shared-data-select.ts +8 -27
- package/src/data/sheet/injectSheetDomAccessor.ts +37 -25
- package/src/data/sheet/injectSheetSelectRowIndicator.ts +69 -0
- package/src/data/sheet/sd-sheet-config.modal.ts +215 -191
- package/src/data/sheet/sd-sheet.ts +529 -209
- package/src/data/sheet/useSheetCellAgent.ts +8 -8
- package/src/data/sheet/useSheetCellStyling.ts +4 -8
- package/src/data/sheet/useSheetFocusIndicator.ts +66 -0
- package/src/data/sheet/useSheetLayoutEngine.ts +1 -1
- package/src/data/state-preset/sd-state-preset.ts +26 -13
- package/src/features/address/sd-address-search.modal.ts +1 -1
- package/src/features/editor/sd-tiptap-editor.ts +4 -4
- package/src/features/editor/useTiptapToolbar.ts +2 -2
- package/src/features/visual/sd-calendar.ts +1 -1
- package/src/features/visual/sd-echarts.ts +2 -0
- package/src/index.ts +4 -6
- package/src/layout/base-container/sd-base-container.ts +1 -1
- package/src/layout/dock/sd-dock.ts +3 -2
- package/src/layout/sidebar/sd-sidebar-container.ts +2 -2
- package/src/layout/sidebar/sd-sidebar-menu.ts +1 -3
- package/src/layout/topbar/sd-topbar-menu.ts +11 -15
- package/src/layout/topbar/sd-topbar.ts +1 -1
- package/dist/core/commands/sd-insert-command-event.plugin.d.ts +0 -11
- package/dist/core/commands/sd-insert-command-event.plugin.d.ts.map +0 -1
- package/dist/core/commands/sd-insert-command-event.plugin.js +0 -35
- package/dist/core/commands/sd-refresh-command-event.plugin.d.ts +0 -11
- package/dist/core/commands/sd-refresh-command-event.plugin.d.ts.map +0 -1
- package/dist/core/commands/sd-refresh-command-event.plugin.js +0 -38
- package/dist/core/commands/sd-save-command-event.plugin.d.ts +0 -11
- package/dist/core/commands/sd-save-command-event.plugin.d.ts.map +0 -1
- package/dist/core/commands/sd-save-command-event.plugin.js +0 -38
- package/dist/core/events/sd-intersection-event.plugin.d.ts +0 -13
- package/dist/core/events/sd-intersection-event.plugin.d.ts.map +0 -1
- package/dist/core/events/sd-intersection-event.plugin.js +0 -29
- package/dist/core/events/sd-resize-event.plugin.d.ts +0 -16
- package/dist/core/events/sd-resize-event.plugin.d.ts.map +0 -1
- package/src/core/commands/sd-insert-command-event.plugin.ts +0 -39
- package/src/core/commands/sd-refresh-command-event.plugin.ts +0 -44
- package/src/core/commands/sd-save-command-event.plugin.ts +0 -44
- package/src/core/events/sd-intersection-event.plugin.ts +0 -35
|
@@ -39,14 +39,8 @@ export class SdEvents {
|
|
|
39
39
|
// Animation/Transition (once로 한 번만)
|
|
40
40
|
"transitionend.once" = output();
|
|
41
41
|
"animationend.once" = output();
|
|
42
|
-
// 커스텀 이벤트
|
|
43
|
-
"sdResize" = output();
|
|
44
|
-
// 커맨드 이벤트
|
|
45
|
-
"sdRefreshCommand" = output();
|
|
46
|
-
"sdSaveCommand" = output();
|
|
47
|
-
"sdInsertCommand" = output();
|
|
48
42
|
static ɵfac = function SdEvents_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || SdEvents)(); };
|
|
49
|
-
static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: SdEvents, selectors: [["", "click.capture", ""], ["", "click.once", ""], ["", "click.capture.once", ""], ["", "mousedown.capture", ""], ["", "mouseup.capture", ""], ["", "mouseover.capture", ""], ["", "mouseout.capture", ""], ["", "keydown.capture", ""], ["", "keyup.capture", ""], ["", "focus.capture", ""], ["", "blur.capture", ""], ["", "invalid.capture", ""], ["", "scroll.capture", ""], ["", "scroll.passive", ""], ["", "scroll.capture.passive", ""], ["", "wheel.passive", ""], ["", "wheel.capture.passive", ""], ["", "touchstart.passive", ""], ["", "touchstart.capture.passive", ""], ["", "touchmove.passive", ""], ["", "touchmove.capture.passive", ""], ["", "touchend.passive", ""], ["", "dragover.capture", ""], ["", "dragenter.capture", ""], ["", "dragleave.capture", ""], ["", "drop.capture", ""], ["", "transitionend.once", ""], ["", "animationend.once", ""]
|
|
43
|
+
static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: SdEvents, selectors: [["", "click.capture", ""], ["", "click.once", ""], ["", "click.capture.once", ""], ["", "mousedown.capture", ""], ["", "mouseup.capture", ""], ["", "mouseover.capture", ""], ["", "mouseout.capture", ""], ["", "keydown.capture", ""], ["", "keyup.capture", ""], ["", "focus.capture", ""], ["", "blur.capture", ""], ["", "invalid.capture", ""], ["", "scroll.capture", ""], ["", "scroll.passive", ""], ["", "scroll.capture.passive", ""], ["", "wheel.passive", ""], ["", "wheel.capture.passive", ""], ["", "touchstart.passive", ""], ["", "touchstart.capture.passive", ""], ["", "touchmove.passive", ""], ["", "touchmove.capture.passive", ""], ["", "touchend.passive", ""], ["", "dragover.capture", ""], ["", "dragenter.capture", ""], ["", "dragleave.capture", ""], ["", "drop.capture", ""], ["", "transitionend.once", ""], ["", "animationend.once", ""]], outputs: { "click.capture": "click.capture", "click.once": "click.once", "click.capture.once": "click.capture.once", "mousedown.capture": "mousedown.capture", "mouseup.capture": "mouseup.capture", "mouseover.capture": "mouseover.capture", "mouseout.capture": "mouseout.capture", "keydown.capture": "keydown.capture", "keyup.capture": "keyup.capture", "focus.capture": "focus.capture", "blur.capture": "blur.capture", "invalid.capture": "invalid.capture", "scroll.capture": "scroll.capture", "scroll.passive": "scroll.passive", "scroll.capture.passive": "scroll.capture.passive", "wheel.passive": "wheel.passive", "wheel.capture.passive": "wheel.capture.passive", "touchstart.passive": "touchstart.passive", "touchstart.capture.passive": "touchstart.capture.passive", "touchmove.passive": "touchmove.passive", "touchmove.capture.passive": "touchmove.capture.passive", "touchend.passive": "touchend.passive", "dragover.capture": "dragover.capture", "dragenter.capture": "dragenter.capture", "dragleave.capture": "dragleave.capture", "drop.capture": "drop.capture", "transitionend.once": "transitionend.once", "animationend.once": "animationend.once" } });
|
|
50
44
|
}
|
|
51
45
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SdEvents, [{
|
|
52
46
|
type: Directive,
|
|
@@ -63,10 +57,8 @@ export class SdEvents {
|
|
|
63
57
|
[touchmove.passive], [touchmove.capture.passive],
|
|
64
58
|
[touchend.passive],
|
|
65
59
|
[dragover.capture], [dragenter.capture], [dragleave.capture], [drop.capture],
|
|
66
|
-
[transitionend.once], [animationend.once]
|
|
67
|
-
[sdResize],
|
|
68
|
-
[sdRefreshCommand], [sdSaveCommand], [sdInsertCommand]
|
|
60
|
+
[transitionend.once], [animationend.once]
|
|
69
61
|
`,
|
|
70
62
|
standalone: true,
|
|
71
63
|
}]
|
|
72
|
-
}], null, { "click.capture": [{ type: i0.Output, args: ["click.capture"] }], "click.once": [{ type: i0.Output, args: ["click.once"] }], "click.capture.once": [{ type: i0.Output, args: ["click.capture.once"] }], "mousedown.capture": [{ type: i0.Output, args: ["mousedown.capture"] }], "mouseup.capture": [{ type: i0.Output, args: ["mouseup.capture"] }], "mouseover.capture": [{ type: i0.Output, args: ["mouseover.capture"] }], "mouseout.capture": [{ type: i0.Output, args: ["mouseout.capture"] }], "keydown.capture": [{ type: i0.Output, args: ["keydown.capture"] }], "keyup.capture": [{ type: i0.Output, args: ["keyup.capture"] }], "focus.capture": [{ type: i0.Output, args: ["focus.capture"] }], "blur.capture": [{ type: i0.Output, args: ["blur.capture"] }], "invalid.capture": [{ type: i0.Output, args: ["invalid.capture"] }], "scroll.capture": [{ type: i0.Output, args: ["scroll.capture"] }], "scroll.passive": [{ type: i0.Output, args: ["scroll.passive"] }], "scroll.capture.passive": [{ type: i0.Output, args: ["scroll.capture.passive"] }], "wheel.passive": [{ type: i0.Output, args: ["wheel.passive"] }], "wheel.capture.passive": [{ type: i0.Output, args: ["wheel.capture.passive"] }], "touchstart.passive": [{ type: i0.Output, args: ["touchstart.passive"] }], "touchstart.capture.passive": [{ type: i0.Output, args: ["touchstart.capture.passive"] }], "touchmove.passive": [{ type: i0.Output, args: ["touchmove.passive"] }], "touchmove.capture.passive": [{ type: i0.Output, args: ["touchmove.capture.passive"] }], "touchend.passive": [{ type: i0.Output, args: ["touchend.passive"] }], "dragover.capture": [{ type: i0.Output, args: ["dragover.capture"] }], "dragenter.capture": [{ type: i0.Output, args: ["dragenter.capture"] }], "dragleave.capture": [{ type: i0.Output, args: ["dragleave.capture"] }], "drop.capture": [{ type: i0.Output, args: ["drop.capture"] }], "transitionend.once": [{ type: i0.Output, args: ["transitionend.once"] }], "animationend.once": [{ type: i0.Output, args: ["animationend.once"] }]
|
|
64
|
+
}], null, { "click.capture": [{ type: i0.Output, args: ["click.capture"] }], "click.once": [{ type: i0.Output, args: ["click.once"] }], "click.capture.once": [{ type: i0.Output, args: ["click.capture.once"] }], "mousedown.capture": [{ type: i0.Output, args: ["mousedown.capture"] }], "mouseup.capture": [{ type: i0.Output, args: ["mouseup.capture"] }], "mouseover.capture": [{ type: i0.Output, args: ["mouseover.capture"] }], "mouseout.capture": [{ type: i0.Output, args: ["mouseout.capture"] }], "keydown.capture": [{ type: i0.Output, args: ["keydown.capture"] }], "keyup.capture": [{ type: i0.Output, args: ["keyup.capture"] }], "focus.capture": [{ type: i0.Output, args: ["focus.capture"] }], "blur.capture": [{ type: i0.Output, args: ["blur.capture"] }], "invalid.capture": [{ type: i0.Output, args: ["invalid.capture"] }], "scroll.capture": [{ type: i0.Output, args: ["scroll.capture"] }], "scroll.passive": [{ type: i0.Output, args: ["scroll.passive"] }], "scroll.capture.passive": [{ type: i0.Output, args: ["scroll.capture.passive"] }], "wheel.passive": [{ type: i0.Output, args: ["wheel.passive"] }], "wheel.capture.passive": [{ type: i0.Output, args: ["wheel.capture.passive"] }], "touchstart.passive": [{ type: i0.Output, args: ["touchstart.passive"] }], "touchstart.capture.passive": [{ type: i0.Output, args: ["touchstart.capture.passive"] }], "touchmove.passive": [{ type: i0.Output, args: ["touchmove.passive"] }], "touchmove.capture.passive": [{ type: i0.Output, args: ["touchmove.capture.passive"] }], "touchend.passive": [{ type: i0.Output, args: ["touchend.passive"] }], "dragover.capture": [{ type: i0.Output, args: ["dragover.capture"] }], "dragenter.capture": [{ type: i0.Output, args: ["dragenter.capture"] }], "dragleave.capture": [{ type: i0.Output, args: ["dragleave.capture"] }], "drop.capture": [{ type: i0.Output, args: ["drop.capture"] }], "transitionend.once": [{ type: i0.Output, args: ["transitionend.once"] }], "animationend.once": [{ type: i0.Output, args: ["animationend.once"] }] }); })();
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class SdIntersectionDirective {
|
|
3
|
+
private readonly _elRef;
|
|
4
|
+
private readonly _destroyRef;
|
|
5
|
+
sdIntersection: import("@angular/core").OutputEmitterRef<SdIntersectionEvent>;
|
|
6
|
+
constructor();
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SdIntersectionDirective, never>;
|
|
8
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SdIntersectionDirective, "[sdIntersection]", never, {}, { "sdIntersection": "sdIntersection"; }, never, never, true, never>;
|
|
9
|
+
}
|
|
10
|
+
export interface SdIntersectionEvent {
|
|
11
|
+
entry: IntersectionObserverEntry;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=sd-intersection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sd-intersection.d.ts","sourceRoot":"","sources":["../../../src/core/events/sd-intersection.ts"],"names":[],"mappings":";AAEA,qBAIa,uBAAuB;IAClC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAsB;IAC7C,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAsB;IAElD,cAAc,gEAAiC;;yCAJpC,uBAAuB;2CAAvB,uBAAuB;CAkBnC;AAED,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,yBAAyB,CAAC;CAClC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { DestroyRef, Directive, ElementRef, inject, output } from "@angular/core";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export class SdIntersectionDirective {
|
|
4
|
+
_elRef = inject(ElementRef);
|
|
5
|
+
_destroyRef = inject(DestroyRef);
|
|
6
|
+
sdIntersection = output();
|
|
7
|
+
constructor() {
|
|
8
|
+
const observer = new IntersectionObserver((entries) => {
|
|
9
|
+
if (entries.length === 0)
|
|
10
|
+
return;
|
|
11
|
+
this.sdIntersection.emit({ entry: entries[entries.length - 1] });
|
|
12
|
+
});
|
|
13
|
+
observer.observe(this._elRef.nativeElement);
|
|
14
|
+
this._destroyRef.onDestroy(() => {
|
|
15
|
+
observer.disconnect();
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
static ɵfac = function SdIntersectionDirective_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || SdIntersectionDirective)(); };
|
|
19
|
+
static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: SdIntersectionDirective, selectors: [["", "sdIntersection", ""]], outputs: { sdIntersection: "sdIntersection" } });
|
|
20
|
+
}
|
|
21
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SdIntersectionDirective, [{
|
|
22
|
+
type: Directive,
|
|
23
|
+
args: [{
|
|
24
|
+
selector: "[sdIntersection]",
|
|
25
|
+
standalone: true,
|
|
26
|
+
}]
|
|
27
|
+
}], () => [], { sdIntersection: [{ type: i0.Output, args: ["sdIntersection"] }] }); })();
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class SdResizeDirective {
|
|
3
|
+
private readonly _elRef;
|
|
4
|
+
private readonly _destroyRef;
|
|
5
|
+
sdResize: import("@angular/core").OutputEmitterRef<SdResizeEvent>;
|
|
6
|
+
constructor();
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SdResizeDirective, never>;
|
|
8
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SdResizeDirective, "[sdResize]", never, {}, { "sdResize": "sdResize"; }, never, never, true, never>;
|
|
9
|
+
}
|
|
10
|
+
export interface SdResizeEvent {
|
|
11
|
+
heightChanged: boolean;
|
|
12
|
+
widthChanged: boolean;
|
|
13
|
+
target: HTMLElement;
|
|
14
|
+
contentRect: DOMRectReadOnly;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=sd-resize.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sd-resize.d.ts","sourceRoot":"","sources":["../../../src/core/events/sd-resize.ts"],"names":[],"mappings":";AAEA,qBAIa,iBAAiB;IAC5B,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAsB;IAC7C,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAsB;IAElD,QAAQ,0DAA2B;;yCAJxB,iBAAiB;2CAAjB,iBAAiB;CAwC7B;AAED,MAAM,WAAW,aAAa;IAC5B,aAAa,EAAE,OAAO,CAAC;IACvB,YAAY,EAAE,OAAO,CAAC;IACtB,MAAM,EAAE,WAAW,CAAC;IACpB,WAAW,EAAE,eAAe,CAAC;CAC9B"}
|
|
@@ -1,15 +1,10 @@
|
|
|
1
|
-
import { inject,
|
|
2
|
-
import { EventManagerPlugin } from "@angular/platform-browser";
|
|
3
|
-
import { DOCUMENT } from "@angular/common";
|
|
1
|
+
import { DestroyRef, Directive, ElementRef, inject, output } from "@angular/core";
|
|
4
2
|
import * as i0 from "@angular/core";
|
|
5
|
-
export class
|
|
3
|
+
export class SdResizeDirective {
|
|
4
|
+
_elRef = inject(ElementRef);
|
|
5
|
+
_destroyRef = inject(DestroyRef);
|
|
6
|
+
sdResize = output();
|
|
6
7
|
constructor() {
|
|
7
|
-
super(inject(DOCUMENT));
|
|
8
|
-
}
|
|
9
|
-
supports(eventName) {
|
|
10
|
-
return eventName === "sdResize";
|
|
11
|
-
}
|
|
12
|
-
addEventListener(element, eventName, handler) {
|
|
13
8
|
let prevWidth = 0;
|
|
14
9
|
let prevHeight = 0;
|
|
15
10
|
let animationFrameId;
|
|
@@ -23,7 +18,7 @@ export class SdResizeEventPlugin extends EventManagerPlugin {
|
|
|
23
18
|
const widthChanged = contentRect.width !== prevWidth;
|
|
24
19
|
prevHeight = contentRect.height;
|
|
25
20
|
prevWidth = contentRect.width;
|
|
26
|
-
|
|
21
|
+
this.sdResize.emit({
|
|
27
22
|
heightChanged,
|
|
28
23
|
widthChanged,
|
|
29
24
|
target: entry.target,
|
|
@@ -31,18 +26,21 @@ export class SdResizeEventPlugin extends EventManagerPlugin {
|
|
|
31
26
|
});
|
|
32
27
|
});
|
|
33
28
|
});
|
|
34
|
-
resizeObserver.observe(
|
|
35
|
-
|
|
29
|
+
resizeObserver.observe(this._elRef.nativeElement);
|
|
30
|
+
this._destroyRef.onDestroy(() => {
|
|
36
31
|
if (animationFrameId != null) {
|
|
37
32
|
cancelAnimationFrame(animationFrameId);
|
|
38
33
|
}
|
|
39
34
|
resizeObserver.disconnect();
|
|
40
|
-
};
|
|
35
|
+
});
|
|
41
36
|
}
|
|
42
|
-
static ɵfac = function
|
|
43
|
-
static
|
|
37
|
+
static ɵfac = function SdResizeDirective_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || SdResizeDirective)(); };
|
|
38
|
+
static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: SdResizeDirective, selectors: [["", "sdResize", ""]], outputs: { sdResize: "sdResize" } });
|
|
44
39
|
}
|
|
45
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(
|
|
46
|
-
type:
|
|
47
|
-
args: [{
|
|
48
|
-
|
|
40
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SdResizeDirective, [{
|
|
41
|
+
type: Directive,
|
|
42
|
+
args: [{
|
|
43
|
+
selector: "[sdResize]",
|
|
44
|
+
standalone: true,
|
|
45
|
+
}]
|
|
46
|
+
}], () => [], { sdResize: [{ type: i0.Output, args: ["sdResize"] }] }); })();
|
|
@@ -4,10 +4,10 @@ export function injectDragResize(opt) {
|
|
|
4
4
|
let dragState;
|
|
5
5
|
let resizeState;
|
|
6
6
|
function applyDrag(event) {
|
|
7
|
-
if (dragState
|
|
7
|
+
if (dragState == null)
|
|
8
8
|
return;
|
|
9
9
|
const dialogEl = opt.getDialogEl();
|
|
10
|
-
if (dialogEl
|
|
10
|
+
if (dialogEl == null)
|
|
11
11
|
return;
|
|
12
12
|
const dx = event.clientX - dragState.startX;
|
|
13
13
|
const dy = event.clientY - dragState.startY;
|
|
@@ -15,10 +15,10 @@ export function injectDragResize(opt) {
|
|
|
15
15
|
dialogEl.style.top = `${dragState.startTop + dy}px`;
|
|
16
16
|
}
|
|
17
17
|
function applyResize(event) {
|
|
18
|
-
if (resizeState
|
|
18
|
+
if (resizeState == null)
|
|
19
19
|
return;
|
|
20
20
|
const dialogEl = opt.getDialogEl();
|
|
21
|
-
if (dialogEl
|
|
21
|
+
if (dialogEl == null)
|
|
22
22
|
return;
|
|
23
23
|
const dx = event.clientX - resizeState.startX;
|
|
24
24
|
const dy = event.clientY - resizeState.startY;
|
|
@@ -54,15 +54,15 @@ export function injectDragResize(opt) {
|
|
|
54
54
|
dialogEl.style.top = `${newTop}px`;
|
|
55
55
|
}
|
|
56
56
|
function onDocumentMouseMove(event) {
|
|
57
|
-
if (resizeState
|
|
57
|
+
if (resizeState != null) {
|
|
58
58
|
applyResize(event);
|
|
59
59
|
}
|
|
60
|
-
if (dragState
|
|
60
|
+
if (dragState != null) {
|
|
61
61
|
applyDrag(event);
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
function onDocumentMouseUp() {
|
|
65
|
-
const hadState = resizeState
|
|
65
|
+
const hadState = resizeState != null || dragState != null;
|
|
66
66
|
resizeState = undefined;
|
|
67
67
|
dragState = undefined;
|
|
68
68
|
document.removeEventListener("mousemove", onDocumentMouseMove);
|
|
@@ -79,7 +79,7 @@ export function injectDragResize(opt) {
|
|
|
79
79
|
}
|
|
80
80
|
function startDrag(event) {
|
|
81
81
|
const dialogEl = opt.getDialogEl();
|
|
82
|
-
if (dialogEl
|
|
82
|
+
if (dialogEl == null)
|
|
83
83
|
return;
|
|
84
84
|
const dialogRect = dialogEl.getBoundingClientRect();
|
|
85
85
|
const parentRect = getParentRect(dialogEl);
|
|
@@ -94,7 +94,7 @@ export function injectDragResize(opt) {
|
|
|
94
94
|
}
|
|
95
95
|
function startResize(event, dir) {
|
|
96
96
|
const dialogEl = opt.getDialogEl();
|
|
97
|
-
if (dialogEl
|
|
97
|
+
if (dialogEl == null)
|
|
98
98
|
return;
|
|
99
99
|
const dialogRect = dialogEl.getBoundingClientRect();
|
|
100
100
|
const parentRect = getParentRect(dialogEl);
|
|
@@ -6,7 +6,7 @@ export function injectFocusTrap() {
|
|
|
6
6
|
const result = [];
|
|
7
7
|
const walker = document.createTreeWalker(container, NodeFilter.SHOW_ELEMENT);
|
|
8
8
|
let node = walker.nextNode();
|
|
9
|
-
while (node
|
|
9
|
+
while (node != null) {
|
|
10
10
|
if (node instanceof HTMLElement && isTabbable(node)) {
|
|
11
11
|
result.push(node);
|
|
12
12
|
}
|
|
@@ -54,4 +54,4 @@ export class SdConfirmModal {
|
|
|
54
54
|
`,
|
|
55
55
|
}]
|
|
56
56
|
}], null, { close: [{ type: i0.Output, args: ["close"] }], message: [{ type: i0.Input, args: [{ isSignal: true, alias: "message", required: true }] }] }); })();
|
|
57
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SdConfirmModal, { className: "SdConfirmModal", filePath: "packages/angular/src/core/modal/sd-confirm-modal.ts", lineNumber: 35
|
|
57
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SdConfirmModal, { className: "SdConfirmModal", filePath: "packages/angular/src/core/modal/sd-confirm-modal.ts", lineNumber: 35 }); })();
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { type TemplateRef } from "@angular/core";
|
|
2
|
+
import { type SdResizeEvent } from "../events/sd-resize";
|
|
2
3
|
import "@simplysm/core-browser";
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
5
|
+
import * as i1 from "../events/sd-resize";
|
|
4
6
|
export declare class SdModal {
|
|
5
7
|
private readonly _elRef;
|
|
6
8
|
private readonly _sdActivatedModal;
|
|
@@ -35,12 +37,17 @@ export declare class SdModal {
|
|
|
35
37
|
onCloseButtonClick(): void;
|
|
36
38
|
onDialogKeydown(event: KeyboardEvent): void;
|
|
37
39
|
onDialogFocus(): void;
|
|
40
|
+
onHostResize(event: SdResizeEvent): void;
|
|
41
|
+
onDialogResize(event: SdResizeEvent): void;
|
|
42
|
+
onWindowResize(): void;
|
|
38
43
|
private _requestClose;
|
|
39
44
|
private _bringToFront;
|
|
45
|
+
private _calcHeight;
|
|
46
|
+
private _calcWidth;
|
|
40
47
|
private _getDialogEl;
|
|
41
48
|
private _saveConfig;
|
|
42
49
|
private _restoreConfig;
|
|
43
50
|
static ɵfac: i0.ɵɵFactoryDeclaration<SdModal, never>;
|
|
44
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SdModal, "sd-modal", never, { "open": { "alias": "open"; "required": false; "isSignal": true; }; "key": { "alias": "key"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "hideHeader": { "alias": "hideHeader"; "required": false; "isSignal": true; }; "hideCloseButton": { "alias": "hideCloseButton"; "required": false; "isSignal": true; }; "headerStyle": { "alias": "headerStyle"; "required": false; "isSignal": true; }; "useCloseByBackdrop": { "alias": "useCloseByBackdrop"; "required": false; "isSignal": true; }; "useCloseByEscapeKey": { "alias": "useCloseByEscapeKey"; "required": false; "isSignal": true; }; "float": { "alias": "float"; "required": false; "isSignal": true; }; "fill": { "alias": "fill"; "required": false; "isSignal": true; }; "resizable": { "alias": "resizable"; "required": false; "isSignal": true; }; "movable": { "alias": "movable"; "required": false; "isSignal": true; }; "position": { "alias": "position"; "required": false; "isSignal": true; }; "minHeightPx": { "alias": "minHeightPx"; "required": false; "isSignal": true; }; "minWidthPx": { "alias": "minWidthPx"; "required": false; "isSignal": true; }; "heightPx": { "alias": "heightPx"; "required": false; "isSignal": true; }; "widthPx": { "alias": "widthPx"; "required": false; "isSignal": true; }; "actionTplRef": { "alias": "actionTplRef"; "required": false; "isSignal": true; }; }, { "open": "openChange"; "closeRequest": "closeRequest"; }, never, ["*"], true,
|
|
51
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SdModal, "sd-modal", never, { "open": { "alias": "open"; "required": false; "isSignal": true; }; "key": { "alias": "key"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "hideHeader": { "alias": "hideHeader"; "required": false; "isSignal": true; }; "hideCloseButton": { "alias": "hideCloseButton"; "required": false; "isSignal": true; }; "headerStyle": { "alias": "headerStyle"; "required": false; "isSignal": true; }; "useCloseByBackdrop": { "alias": "useCloseByBackdrop"; "required": false; "isSignal": true; }; "useCloseByEscapeKey": { "alias": "useCloseByEscapeKey"; "required": false; "isSignal": true; }; "float": { "alias": "float"; "required": false; "isSignal": true; }; "fill": { "alias": "fill"; "required": false; "isSignal": true; }; "resizable": { "alias": "resizable"; "required": false; "isSignal": true; }; "movable": { "alias": "movable"; "required": false; "isSignal": true; }; "position": { "alias": "position"; "required": false; "isSignal": true; }; "minHeightPx": { "alias": "minHeightPx"; "required": false; "isSignal": true; }; "minWidthPx": { "alias": "minWidthPx"; "required": false; "isSignal": true; }; "heightPx": { "alias": "heightPx"; "required": false; "isSignal": true; }; "widthPx": { "alias": "widthPx"; "required": false; "isSignal": true; }; "actionTplRef": { "alias": "actionTplRef"; "required": false; "isSignal": true; }; }, { "open": "openChange"; "closeRequest": "closeRequest"; }, never, ["*"], true, [{ directive: typeof i1.SdResizeDirective; inputs: {}; outputs: { "sdResize": "sdResize"; }; }]>;
|
|
45
52
|
}
|
|
46
53
|
//# sourceMappingURL=sd-modal.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-modal.d.ts","sourceRoot":"","sources":["../../../src/core/modal/sd-modal.ts"],"names":[],"mappings":"AAAA,OAAO,EAUL,KAAK,WAAW,EAEjB,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"sd-modal.d.ts","sourceRoot":"","sources":["../../../src/core/modal/sd-modal.ts"],"names":[],"mappings":"AAAA,OAAO,EAUL,KAAK,WAAW,EAEjB,MAAM,eAAe,CAAC;AASvB,OAAO,EAAqB,KAAK,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAC5E,OAAO,wBAAwB,CAAC;;;AAEhC,qBA0Sa,OAAO;IAClB,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAmC;IAC1D,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAwD;IAC1F,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAsD;IACtF,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAwB;IACtD,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAqB;IAEhD,SAAS,CAAC,QAAQ,CAAC,OAAO,yVAAW;IAErC,IAAI,+CAAgB;IACpB,GAAG,0DAAwC;IAC3C,KAAK,8CAAa;IAClB,UAAU,+CAAgB;IAC1B,eAAe,+CAAgB;IAC/B,WAAW,0DAAwC;IACnD,kBAAkB,+CAAe;IACjC,mBAAmB,+CAAe;IAClC,KAAK,+CAAgB;IACrB,IAAI,+CAAgB;IACpB,SAAS,+CAAgB;IACzB,OAAO,+CAAgB;IACvB,QAAQ,gFAA8D;IACtE,WAAW,0DAAwC;IACnD,UAAU,0DAAwC;IAClD,QAAQ,0DAAwC;IAChD,OAAO,0DAAwC;IAC/C,YAAY,oEAAkD;IAE9D,YAAY,iDAAkB;IAE9B,OAAO,CAAC,QAAQ,CAAC,WAAW,CAKzB;;IAoCH,iBAAiB,CAAC,KAAK,EAAE,UAAU,EAAE,GAAG,EAAE,MAAM,GAAG,IAAI;IAKvD,iBAAiB,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI;IAO1C,eAAe,IAAI,IAAI;IAKvB,kBAAkB,IAAI,IAAI;IAI1B,eAAe,CAAC,KAAK,EAAE,aAAa,GAAG,IAAI;IAS3C,aAAa,IAAI,IAAI;IAIrB,YAAY,CAAC,KAAK,EAAE,aAAa,GAAG,IAAI;IAKxC,cAAc,CAAC,KAAK,EAAE,aAAa,GAAG,IAAI;IAK1C,cAAc,IAAI,IAAI;IAYtB,OAAO,CAAC,aAAa;IAQrB,OAAO,CAAC,aAAa;IAgBrB,OAAO,CAAC,WAAW;IAWnB,OAAO,CAAC,UAAU;IASlB,OAAO,CAAC,YAAY;YAIN,WAAW;YAgBX,cAAc;yCA/LjB,OAAO;2CAAP,OAAO;CA+MnB"}
|