@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
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { booleanAttribute, ChangeDetectionStrategy, Component, computed, input, model, ViewEncapsulation, } from "@angular/core";
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
const _c0 = ["*"];
|
|
4
|
-
function
|
|
5
|
-
i0.ɵɵ
|
|
6
|
-
i0.ɵɵtext(1);
|
|
7
|
-
i0.ɵɵdomElementEnd();
|
|
4
|
+
function SdToast_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
5
|
+
i0.ɵɵtext(0);
|
|
8
6
|
} if (rf & 2) {
|
|
9
7
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
10
|
-
i0.ɵɵ
|
|
11
|
-
i0.ɵɵtextInterpolate(ctx_r0.message());
|
|
8
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r0.message(), " ");
|
|
12
9
|
} }
|
|
13
10
|
function SdToast_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
11
|
+
i0.ɵɵprojection(0);
|
|
12
|
+
} }
|
|
13
|
+
function SdToast_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
14
14
|
i0.ɵɵdomElementStart(0, "div", 2);
|
|
15
15
|
i0.ɵɵdomElement(1, "div", 3);
|
|
16
16
|
i0.ɵɵdomElementEnd();
|
|
@@ -46,19 +46,19 @@ export class SdToast {
|
|
|
46
46
|
static ɵfac = function SdToast_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || SdToast)(); };
|
|
47
47
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SdToast, selectors: [["sd-toast"]], hostVars: 4, hostBindings: function SdToast_HostBindings(rf, ctx) { if (rf & 2) {
|
|
48
48
|
i0.ɵɵattribute("data-sd-open", ctx.open())("data-sd-theme", ctx.theme())("role", ctx.ariaRole())("aria-live", ctx.ariaLive());
|
|
49
|
-
} }, inputs: { open: [1, "open"], useProgress: [1, "useProgress"], theme: [1, "theme"], progress: [1, "progress"], message: [1, "message"] }, outputs: { open: "openChange", progress: "progressChange", message: "messageChange" }, ngContentSelectors: _c0, decls:
|
|
49
|
+
} }, inputs: { open: [1, "open"], useProgress: [1, "useProgress"], theme: [1, "theme"], progress: [1, "progress"], message: [1, "message"] }, outputs: { open: "openChange", progress: "progressChange", message: "messageChange" }, ngContentSelectors: _c0, decls: 5, vars: 2, consts: [[1, "_sd-toast-block"], [1, "_sd-toast-message"], [1, "_sd-toast-progress"], [1, "_sd-toast-progress-bar"]], template: function SdToast_Template(rf, ctx) { if (rf & 1) {
|
|
50
50
|
i0.ɵɵprojectionDef();
|
|
51
|
-
i0.ɵɵdomElementStart(0, "div", 0);
|
|
52
|
-
i0.ɵɵconditionalCreate(
|
|
53
|
-
i0.ɵɵ
|
|
54
|
-
i0.ɵɵconditionalCreate(
|
|
51
|
+
i0.ɵɵdomElementStart(0, "div", 0)(1, "div", 1);
|
|
52
|
+
i0.ɵɵconditionalCreate(2, SdToast_Conditional_2_Template, 1, 1)(3, SdToast_Conditional_3_Template, 1, 0);
|
|
53
|
+
i0.ɵɵdomElementEnd();
|
|
54
|
+
i0.ɵɵconditionalCreate(4, SdToast_Conditional_4_Template, 2, 2, "div", 2);
|
|
55
55
|
i0.ɵɵdomElementEnd();
|
|
56
56
|
} if (rf & 2) {
|
|
57
|
-
i0.ɵɵadvance();
|
|
58
|
-
i0.ɵɵconditional(ctx.message() !== undefined ? 1 : -1);
|
|
59
57
|
i0.ɵɵadvance(2);
|
|
60
|
-
i0.ɵɵconditional(ctx.
|
|
61
|
-
|
|
58
|
+
i0.ɵɵconditional(ctx.message() != undefined ? 2 : 3);
|
|
59
|
+
i0.ɵɵadvance(2);
|
|
60
|
+
i0.ɵɵconditional(ctx.useProgress() ? 4 : -1);
|
|
61
|
+
} }, styles: ["sd-toast {\n display: block;\n margin-bottom: var(--gap-sm);\n text-align: center;\n width: 100%;\n pointer-events: none;\n}\nsd-toast > ._sd-toast-block {\n display: inline-block;\n text-align: left;\n color: var(--text-trans-rev-default);\n transform: translateY(-100%);\n border-radius: var(--border-radius-lg);\n opacity: 0;\n box-shadow: 0 calc(12 * var(--elevation-size)) calc(12 * 4 * var(--elevation-size)) var(--trans-lighter), 0 var(--elevation-size) var(--elevation-size) var(--trans-lighter);\n pointer-events: auto;\n}\nsd-toast > ._sd-toast-block > ._sd-toast-message {\n padding: var(--gap-default) var(--gap-lg);\n word-break: break-all;\n white-space: pre-wrap;\n}\nsd-toast > ._sd-toast-block > ._sd-toast-progress {\n background: var(--theme-gray-default);\n height: 4px;\n border-radius: var(--border-radius-xl);\n margin: 0 4px 4px 4px;\n}\nsd-toast > ._sd-toast-block > ._sd-toast-progress > ._sd-toast-progress-bar {\n border-radius: var(--border-radius-xl);\n height: 4px;\n transition: width 1s ease-out;\n}\nsd-toast[data-sd-theme=gray] > ._sd-toast-block {\n background: var(--theme-gray-default);\n}\nsd-toast[data-sd-theme=gray] > ._sd-toast-block > ._sd-toast-progress {\n background: var(--theme-gray-darker);\n}\nsd-toast[data-sd-theme=gray] > ._sd-toast-block > ._sd-toast-progress > ._sd-toast-progress-bar {\n background: var(--theme-gray-lighter);\n}\nsd-toast[data-sd-theme=blue-gray] > ._sd-toast-block {\n background: var(--theme-blue-gray-default);\n}\nsd-toast[data-sd-theme=blue-gray] > ._sd-toast-block > ._sd-toast-progress {\n background: var(--theme-blue-gray-darker);\n}\nsd-toast[data-sd-theme=blue-gray] > ._sd-toast-block > ._sd-toast-progress > ._sd-toast-progress-bar {\n background: var(--theme-blue-gray-lighter);\n}\nsd-toast[data-sd-theme=primary] > ._sd-toast-block {\n background: var(--theme-primary-default);\n}\nsd-toast[data-sd-theme=primary] > ._sd-toast-block > ._sd-toast-progress {\n background: var(--theme-primary-darker);\n}\nsd-toast[data-sd-theme=primary] > ._sd-toast-block > ._sd-toast-progress > ._sd-toast-progress-bar {\n background: var(--theme-primary-lighter);\n}\nsd-toast[data-sd-theme=secondary] > ._sd-toast-block {\n background: var(--theme-secondary-default);\n}\nsd-toast[data-sd-theme=secondary] > ._sd-toast-block > ._sd-toast-progress {\n background: var(--theme-secondary-darker);\n}\nsd-toast[data-sd-theme=secondary] > ._sd-toast-block > ._sd-toast-progress > ._sd-toast-progress-bar {\n background: var(--theme-secondary-lighter);\n}\nsd-toast[data-sd-theme=info] > ._sd-toast-block {\n background: var(--theme-info-default);\n}\nsd-toast[data-sd-theme=info] > ._sd-toast-block > ._sd-toast-progress {\n background: var(--theme-info-darker);\n}\nsd-toast[data-sd-theme=info] > ._sd-toast-block > ._sd-toast-progress > ._sd-toast-progress-bar {\n background: var(--theme-info-lighter);\n}\nsd-toast[data-sd-theme=success] > ._sd-toast-block {\n background: var(--theme-success-default);\n}\nsd-toast[data-sd-theme=success] > ._sd-toast-block > ._sd-toast-progress {\n background: var(--theme-success-darker);\n}\nsd-toast[data-sd-theme=success] > ._sd-toast-block > ._sd-toast-progress > ._sd-toast-progress-bar {\n background: var(--theme-success-lighter);\n}\nsd-toast[data-sd-theme=warning] > ._sd-toast-block {\n background: var(--theme-warning-default);\n}\nsd-toast[data-sd-theme=warning] > ._sd-toast-block > ._sd-toast-progress {\n background: var(--theme-warning-darker);\n}\nsd-toast[data-sd-theme=warning] > ._sd-toast-block > ._sd-toast-progress > ._sd-toast-progress-bar {\n background: var(--theme-warning-lighter);\n}\nsd-toast[data-sd-theme=danger] > ._sd-toast-block {\n background: var(--theme-danger-default);\n}\nsd-toast[data-sd-theme=danger] > ._sd-toast-block > ._sd-toast-progress {\n background: var(--theme-danger-darker);\n}\nsd-toast[data-sd-theme=danger] > ._sd-toast-block > ._sd-toast-progress > ._sd-toast-progress-bar {\n background: var(--theme-danger-lighter);\n}\nsd-toast[data-sd-open=true] > ._sd-toast-block {\n transform: none;\n transition: var(--animation-duration) ease-out;\n transition-property: transform, opacity;\n opacity: 1;\n}\nsd-toast[data-sd-open=false] > ._sd-toast-block {\n transform: translateY(-100%);\n transition: var(--animation-duration) ease-in;\n transition-property: transform, opacity;\n opacity: 0;\n}\n@media all and (max-width: 520px) {\n sd-toast > ._sd-toast-block {\n border-radius: calc(var(--line-height) / 2);\n transform: translateY(100%);\n }\n sd-toast > ._sd-toast-block > ._sd-toast-message {\n padding: var(--gap-xs) var(--gap-default);\n }\n sd-toast[data-sd-open=false] > ._sd-toast-block {\n transform: translateY(100%);\n }\n}"], encapsulation: 2, changeDetection: 0 });
|
|
62
62
|
}
|
|
63
63
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SdToast, [{
|
|
64
64
|
type: Component,
|
|
@@ -68,17 +68,20 @@ export class SdToast {
|
|
|
68
68
|
"[attr.role]": "ariaRole()",
|
|
69
69
|
"[attr.aria-live]": "ariaLive()",
|
|
70
70
|
}, template: `
|
|
71
|
-
<div class="
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
71
|
+
<div class="_sd-toast-block">
|
|
72
|
+
<div class="_sd-toast-message">
|
|
73
|
+
@if (message() != undefined) {
|
|
74
|
+
{{ message() }}
|
|
75
|
+
} @else {
|
|
76
|
+
<ng-content />
|
|
77
|
+
}
|
|
78
|
+
</div>
|
|
76
79
|
@if (useProgress()) {
|
|
77
|
-
<div class="
|
|
78
|
-
<div class="
|
|
80
|
+
<div class="_sd-toast-progress">
|
|
81
|
+
<div class="_sd-toast-progress-bar" [style.width.%]="progress()"></div>
|
|
79
82
|
</div>
|
|
80
83
|
}
|
|
81
84
|
</div>
|
|
82
|
-
`, styles: ["sd-toast {\n display: block;\n margin-bottom: var(--gap-sm);\n text-align: center;\n width: 100%;\n pointer-events: none;\n}\nsd-toast > .
|
|
85
|
+
`, styles: ["sd-toast {\n display: block;\n margin-bottom: var(--gap-sm);\n text-align: center;\n width: 100%;\n pointer-events: none;\n}\nsd-toast > ._sd-toast-block {\n display: inline-block;\n text-align: left;\n color: var(--text-trans-rev-default);\n transform: translateY(-100%);\n border-radius: var(--border-radius-lg);\n opacity: 0;\n box-shadow: 0 calc(12 * var(--elevation-size)) calc(12 * 4 * var(--elevation-size)) var(--trans-lighter), 0 var(--elevation-size) var(--elevation-size) var(--trans-lighter);\n pointer-events: auto;\n}\nsd-toast > ._sd-toast-block > ._sd-toast-message {\n padding: var(--gap-default) var(--gap-lg);\n word-break: break-all;\n white-space: pre-wrap;\n}\nsd-toast > ._sd-toast-block > ._sd-toast-progress {\n background: var(--theme-gray-default);\n height: 4px;\n border-radius: var(--border-radius-xl);\n margin: 0 4px 4px 4px;\n}\nsd-toast > ._sd-toast-block > ._sd-toast-progress > ._sd-toast-progress-bar {\n border-radius: var(--border-radius-xl);\n height: 4px;\n transition: width 1s ease-out;\n}\nsd-toast[data-sd-theme=gray] > ._sd-toast-block {\n background: var(--theme-gray-default);\n}\nsd-toast[data-sd-theme=gray] > ._sd-toast-block > ._sd-toast-progress {\n background: var(--theme-gray-darker);\n}\nsd-toast[data-sd-theme=gray] > ._sd-toast-block > ._sd-toast-progress > ._sd-toast-progress-bar {\n background: var(--theme-gray-lighter);\n}\nsd-toast[data-sd-theme=blue-gray] > ._sd-toast-block {\n background: var(--theme-blue-gray-default);\n}\nsd-toast[data-sd-theme=blue-gray] > ._sd-toast-block > ._sd-toast-progress {\n background: var(--theme-blue-gray-darker);\n}\nsd-toast[data-sd-theme=blue-gray] > ._sd-toast-block > ._sd-toast-progress > ._sd-toast-progress-bar {\n background: var(--theme-blue-gray-lighter);\n}\nsd-toast[data-sd-theme=primary] > ._sd-toast-block {\n background: var(--theme-primary-default);\n}\nsd-toast[data-sd-theme=primary] > ._sd-toast-block > ._sd-toast-progress {\n background: var(--theme-primary-darker);\n}\nsd-toast[data-sd-theme=primary] > ._sd-toast-block > ._sd-toast-progress > ._sd-toast-progress-bar {\n background: var(--theme-primary-lighter);\n}\nsd-toast[data-sd-theme=secondary] > ._sd-toast-block {\n background: var(--theme-secondary-default);\n}\nsd-toast[data-sd-theme=secondary] > ._sd-toast-block > ._sd-toast-progress {\n background: var(--theme-secondary-darker);\n}\nsd-toast[data-sd-theme=secondary] > ._sd-toast-block > ._sd-toast-progress > ._sd-toast-progress-bar {\n background: var(--theme-secondary-lighter);\n}\nsd-toast[data-sd-theme=info] > ._sd-toast-block {\n background: var(--theme-info-default);\n}\nsd-toast[data-sd-theme=info] > ._sd-toast-block > ._sd-toast-progress {\n background: var(--theme-info-darker);\n}\nsd-toast[data-sd-theme=info] > ._sd-toast-block > ._sd-toast-progress > ._sd-toast-progress-bar {\n background: var(--theme-info-lighter);\n}\nsd-toast[data-sd-theme=success] > ._sd-toast-block {\n background: var(--theme-success-default);\n}\nsd-toast[data-sd-theme=success] > ._sd-toast-block > ._sd-toast-progress {\n background: var(--theme-success-darker);\n}\nsd-toast[data-sd-theme=success] > ._sd-toast-block > ._sd-toast-progress > ._sd-toast-progress-bar {\n background: var(--theme-success-lighter);\n}\nsd-toast[data-sd-theme=warning] > ._sd-toast-block {\n background: var(--theme-warning-default);\n}\nsd-toast[data-sd-theme=warning] > ._sd-toast-block > ._sd-toast-progress {\n background: var(--theme-warning-darker);\n}\nsd-toast[data-sd-theme=warning] > ._sd-toast-block > ._sd-toast-progress > ._sd-toast-progress-bar {\n background: var(--theme-warning-lighter);\n}\nsd-toast[data-sd-theme=danger] > ._sd-toast-block {\n background: var(--theme-danger-default);\n}\nsd-toast[data-sd-theme=danger] > ._sd-toast-block > ._sd-toast-progress {\n background: var(--theme-danger-darker);\n}\nsd-toast[data-sd-theme=danger] > ._sd-toast-block > ._sd-toast-progress > ._sd-toast-progress-bar {\n background: var(--theme-danger-lighter);\n}\nsd-toast[data-sd-open=true] > ._sd-toast-block {\n transform: none;\n transition: var(--animation-duration) ease-out;\n transition-property: transform, opacity;\n opacity: 1;\n}\nsd-toast[data-sd-open=false] > ._sd-toast-block {\n transform: translateY(-100%);\n transition: var(--animation-duration) ease-in;\n transition-property: transform, opacity;\n opacity: 0;\n}\n@media all and (max-width: 520px) {\n sd-toast > ._sd-toast-block {\n border-radius: calc(var(--line-height) / 2);\n transform: translateY(100%);\n }\n sd-toast > ._sd-toast-block > ._sd-toast-message {\n padding: var(--gap-xs) var(--gap-default);\n }\n sd-toast[data-sd-open=false] > ._sd-toast-block {\n transform: translateY(100%);\n }\n}"] }]
|
|
83
86
|
}], null, { open: [{ type: i0.Input, args: [{ isSignal: true, alias: "open", required: false }] }, { type: i0.Output, args: ["openChange"] }], useProgress: [{ type: i0.Input, args: [{ isSignal: true, alias: "useProgress", required: false }] }], theme: [{ type: i0.Input, args: [{ isSignal: true, alias: "theme", required: false }] }], progress: [{ type: i0.Input, args: [{ isSignal: true, alias: "progress", required: false }] }, { type: i0.Output, args: ["progressChange"] }], message: [{ type: i0.Input, args: [{ isSignal: true, alias: "message", required: false }] }, { type: i0.Output, args: ["messageChange"] }] }); })();
|
|
84
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SdToast, { className: "SdToast", filePath: "packages/angular/src/core/toast/sd-toast.ts", lineNumber:
|
|
87
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SdToast, { className: "SdToast", filePath: "packages/angular/src/core/toast/sd-toast.ts", lineNumber: 139 }); })();
|
|
@@ -18,13 +18,13 @@ export class SdToastProvider {
|
|
|
18
18
|
_contentRefs = new Map();
|
|
19
19
|
constructor() {
|
|
20
20
|
effect(() => {
|
|
21
|
-
if (this._containerRef
|
|
21
|
+
if (this._containerRef != null) {
|
|
22
22
|
this._containerRef.setInput("overlap", this.overlap());
|
|
23
23
|
}
|
|
24
24
|
});
|
|
25
25
|
}
|
|
26
26
|
_getContainerRef() {
|
|
27
|
-
if (this._containerRef
|
|
27
|
+
if (this._containerRef == null) {
|
|
28
28
|
this._containerRef = createComponent(SdToastContainer, {
|
|
29
29
|
environmentInjector: this._envInjector,
|
|
30
30
|
});
|
|
@@ -99,7 +99,7 @@ export class SdToastProvider {
|
|
|
99
99
|
if (!(err instanceof Error)) {
|
|
100
100
|
throw err;
|
|
101
101
|
}
|
|
102
|
-
const message = messageFn
|
|
102
|
+
const message = messageFn != null ? messageFn(err) : err.message;
|
|
103
103
|
this.danger(message);
|
|
104
104
|
await this._sdSystemLog.writeAsync("error", err.stack ?? err.message);
|
|
105
105
|
return undefined;
|
|
@@ -112,7 +112,7 @@ export class SdToastProvider {
|
|
|
112
112
|
return;
|
|
113
113
|
}
|
|
114
114
|
// beforeShowFn 콜백
|
|
115
|
-
if (this.beforeShowFn
|
|
115
|
+
if (this.beforeShowFn != null) {
|
|
116
116
|
this.beforeShowFn(theme);
|
|
117
117
|
}
|
|
118
118
|
// overlap 모드: 기존 토스트 모두 제거
|
|
@@ -211,13 +211,13 @@ export class SdToastProvider {
|
|
|
211
211
|
this._toastRefs.splice(idx, 1);
|
|
212
212
|
// 연결된 contentRef 파괴
|
|
213
213
|
const contentRef = this._contentRefs.get(toastRef);
|
|
214
|
-
if (contentRef
|
|
214
|
+
if (contentRef != null) {
|
|
215
215
|
this._contentRefs.delete(toastRef);
|
|
216
216
|
this._appRef.detachView(contentRef.hostView);
|
|
217
217
|
contentRef.destroy();
|
|
218
218
|
}
|
|
219
219
|
const el = toastRef.location.nativeElement;
|
|
220
|
-
if (el.parentNode
|
|
220
|
+
if (el.parentNode != null) {
|
|
221
221
|
el.parentNode.removeChild(el);
|
|
222
222
|
}
|
|
223
223
|
this._appRef.detachView(toastRef.hostView);
|
|
@@ -53,6 +53,7 @@ function createInputHiddenEl(renderer, hostEl) {
|
|
|
53
53
|
newEl.name = Uuid.generate().toString();
|
|
54
54
|
newEl.className = "sd-invalid-input";
|
|
55
55
|
newEl.tabIndex = -1;
|
|
56
|
+
newEl.autocomplete = "off";
|
|
56
57
|
setSafeStyle(renderer, newEl, {
|
|
57
58
|
position: "absolute",
|
|
58
59
|
left: "2px",
|
|
@@ -67,7 +68,7 @@ function createInputHiddenEl(renderer, hostEl) {
|
|
|
67
68
|
renderer.listen(newEl, "focus", () => {
|
|
68
69
|
const tabbableElement = (isTabbable(hostEl) ? hostEl : hostEl.findFirstTabbableChild()) ??
|
|
69
70
|
hostEl.findTabbableParent();
|
|
70
|
-
if (tabbableElement
|
|
71
|
+
if (tabbableElement != null) {
|
|
71
72
|
tabbableElement.focus();
|
|
72
73
|
}
|
|
73
74
|
});
|
|
@@ -2,6 +2,7 @@ import { TemplateRef } from "@angular/core";
|
|
|
2
2
|
import { SdForm } from "../../controls/form/sd-form";
|
|
3
3
|
import { SdDataDetailBase } from "./sd-data-detail.base";
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
+
import * as i1 from "../../core/commands/sd-command";
|
|
5
6
|
export type { SdDataDetailDataInfo } from "./sd-data-detail.base";
|
|
6
7
|
export declare class SdDataDetail {
|
|
7
8
|
parent: SdDataDetailBase<any, boolean>;
|
|
@@ -24,6 +25,6 @@ export declare class SdDataDetail {
|
|
|
24
25
|
tablerEraser: string;
|
|
25
26
|
};
|
|
26
27
|
static ɵfac: i0.ɵɵFactoryDeclaration<SdDataDetail, never>;
|
|
27
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SdDataDetail, "sd-data-detail", never, {}, {}, ["toolTplRef", "prevTplRef", "contentTplRef", "nextTplRef"], never, true,
|
|
28
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SdDataDetail, "sd-data-detail", never, {}, {}, ["toolTplRef", "prevTplRef", "contentTplRef", "nextTplRef"], never, true, [{ directive: typeof i1.SdCommandDirective; inputs: {}; outputs: { "sdRefreshCommand": "sdRefreshCommand"; "sdSaveCommand": "sdSaveCommand"; }; }]>;
|
|
28
29
|
}
|
|
29
30
|
//# sourceMappingURL=sd-data-detail.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-data-detail.d.ts","sourceRoot":"","sources":["../../../src/data/data-detail/sd-data-detail.ts"],"names":[],"mappings":"AACA,OAAO,EAKL,WAAW,EAGZ,MAAM,eAAe,CAAC;AAKvB,OAAO,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AASrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC
|
|
1
|
+
{"version":3,"file":"sd-data-detail.d.ts","sourceRoot":"","sources":["../../../src/data/data-detail/sd-data-detail.ts"],"names":[],"mappings":"AACA,OAAO,EAKL,WAAW,EAGZ,MAAM,eAAe,CAAC;AAKvB,OAAO,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AASrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;;;AAGzD,YAAY,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAIlE,qBAgKa,YAAY;IACvB,MAAM,iCAAyC;IAE/C,QAAQ,qDAAiC;IAEzC,UAAU,+DAAkD;IAC5D,UAAU,+DAAkD;IAC5D,aAAa,mDAA8D;IAC3E,UAAU,+DAAkD;IAE5D,iBAAiB,+DAAsD;;IAQjE,oBAAoB;IAIpB,mBAAmB;IAInB,oBAAoB;IAI1B,mBAAmB;IAIb,QAAQ;IAId,SAAS,CAAC,QAAQ,CAAC,KAAK;;;;;MAKtB;yCA3CS,YAAY;2CAAZ,YAAY;CA4CxB"}
|
|
@@ -9,7 +9,9 @@ import { SdBaseContainer } from "../../layout/base-container/sd-base-container";
|
|
|
9
9
|
import { NgIcon } from "@ng-icons/core";
|
|
10
10
|
import { tablerDeviceFloppy, tablerEraser, tablerRefresh, tablerRestore, } from "@ng-icons/tabler-icons";
|
|
11
11
|
import { SdDataDetailBase } from "./sd-data-detail.base";
|
|
12
|
+
import { SdCommandDirective } from "../../core/commands/sd-command";
|
|
12
13
|
import * as i0 from "@angular/core";
|
|
14
|
+
import * as i1 from "../../core/commands/sd-command";
|
|
13
15
|
const _c0 = ["toolTpl"];
|
|
14
16
|
const _c1 = ["prevTpl"];
|
|
15
17
|
const _c2 = ["contentTpl"];
|
|
@@ -104,19 +106,19 @@ function SdDataDetail_ng_template_3_Conditional_1_Conditional_1_Conditional_1_Co
|
|
|
104
106
|
function SdDataDetail_ng_template_3_Conditional_1_Conditional_1_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
105
107
|
i0.ɵɵconditionalCreate(0, SdDataDetail_ng_template_3_Conditional_1_Conditional_1_Conditional_1_Conditional_0_Template, 3, 2, "sd-button", 6)(1, SdDataDetail_ng_template_3_Conditional_1_Conditional_1_Conditional_1_Conditional_1_Template, 3, 2, "sd-button", 6);
|
|
106
108
|
} if (rf & 2) {
|
|
107
|
-
let
|
|
109
|
+
let tmp_7_0;
|
|
108
110
|
const ctx_r2 = i0.ɵɵnextContext(4);
|
|
109
|
-
i0.ɵɵconditional(((
|
|
111
|
+
i0.ɵɵconditional(((tmp_7_0 = ctx_r2.parent.dataInfo()) == null ? null : tmp_7_0.isDeleted) ? 0 : 1);
|
|
110
112
|
} }
|
|
111
113
|
function SdDataDetail_ng_template_3_Conditional_1_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
112
114
|
i0.ɵɵconditionalCreate(0, SdDataDetail_ng_template_3_Conditional_1_Conditional_1_Conditional_0_Template, 10, 4);
|
|
113
115
|
i0.ɵɵconditionalCreate(1, SdDataDetail_ng_template_3_Conditional_1_Conditional_1_Conditional_1_Template, 2, 1);
|
|
114
116
|
} if (rf & 2) {
|
|
115
|
-
let
|
|
117
|
+
let tmp_7_0;
|
|
116
118
|
const ctx_r2 = i0.ɵɵnextContext(3);
|
|
117
119
|
i0.ɵɵconditional(ctx_r2.parent.submit ? 0 : -1);
|
|
118
120
|
i0.ɵɵadvance();
|
|
119
|
-
i0.ɵɵconditional(!((
|
|
121
|
+
i0.ɵɵconditional(!((tmp_7_0 = ctx_r2.parent.dataInfo()) == null ? null : tmp_7_0.isNew) && ctx_r2.parent.toggleDelete && (!ctx_r2.parent.canDelete || ctx_r2.parent.canDelete()) ? 1 : -1);
|
|
120
122
|
} }
|
|
121
123
|
function SdDataDetail_ng_template_3_Conditional_1_ng_template_2_Template(rf, ctx) { }
|
|
122
124
|
function SdDataDetail_ng_template_3_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
@@ -152,9 +154,9 @@ function SdDataDetail_ng_template_3_Conditional_7_Conditional_2_Template(rf, ctx
|
|
|
152
154
|
function SdDataDetail_ng_template_3_Conditional_7_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
153
155
|
i0.ɵɵtext(0);
|
|
154
156
|
} if (rf & 2) {
|
|
155
|
-
let
|
|
157
|
+
let tmp_6_0;
|
|
156
158
|
const ctx_r2 = i0.ɵɵnextContext(3);
|
|
157
|
-
i0.ɵɵtextInterpolate1(" (", (
|
|
159
|
+
i0.ɵɵtextInterpolate1(" (", (tmp_6_0 = ctx_r2.parent.dataInfo()) == null ? null : tmp_6_0.lastModifiedBy, ") ");
|
|
158
160
|
} }
|
|
159
161
|
function SdDataDetail_ng_template_3_Conditional_7_Template(rf, ctx) { if (rf & 1) {
|
|
160
162
|
i0.ɵɵelementStart(0, "div", 15);
|
|
@@ -163,14 +165,14 @@ function SdDataDetail_ng_template_3_Conditional_7_Template(rf, ctx) { if (rf & 1
|
|
|
163
165
|
i0.ɵɵconditionalCreate(3, SdDataDetail_ng_template_3_Conditional_7_Conditional_3_Template, 1, 1);
|
|
164
166
|
i0.ɵɵelementEnd();
|
|
165
167
|
} if (rf & 2) {
|
|
168
|
+
let tmp_6_0;
|
|
166
169
|
let tmp_7_0;
|
|
167
|
-
let tmp_8_0;
|
|
168
170
|
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
169
171
|
i0.ɵɵclassProp("bg-theme-gray-lightest", ctx_r2.parent.viewType() === "modal");
|
|
170
172
|
i0.ɵɵadvance(2);
|
|
171
|
-
i0.ɵɵconditional(((
|
|
173
|
+
i0.ɵɵconditional(((tmp_6_0 = ctx_r2.parent.dataInfo()) == null ? null : tmp_6_0.lastModifiedAt) ? 2 : -1);
|
|
172
174
|
i0.ɵɵadvance();
|
|
173
|
-
i0.ɵɵconditional(((
|
|
175
|
+
i0.ɵɵconditional(((tmp_7_0 = ctx_r2.parent.dataInfo()) == null ? null : tmp_7_0.lastModifiedBy) ? 3 : -1);
|
|
174
176
|
} }
|
|
175
177
|
function SdDataDetail_ng_template_3_Conditional_8_ng_template_1_Template(rf, ctx) { }
|
|
176
178
|
function SdDataDetail_ng_template_3_Conditional_8_Template(rf, ctx) { if (rf & 1) {
|
|
@@ -187,7 +189,7 @@ function SdDataDetail_ng_template_3_Template(rf, ctx) { if (rf & 1) {
|
|
|
187
189
|
i0.ɵɵelementStart(0, "div", 9);
|
|
188
190
|
i0.ɵɵconditionalCreate(1, SdDataDetail_ng_template_3_Conditional_1_Template, 3, 2, "div", 10);
|
|
189
191
|
i0.ɵɵconditionalCreate(2, SdDataDetail_ng_template_3_Conditional_2_Template, 2, 1, "div");
|
|
190
|
-
i0.ɵɵelementStart(3, "div", 11)(4, "sd-form", 12,
|
|
192
|
+
i0.ɵɵelementStart(3, "div", 11)(4, "sd-form", 12, 2);
|
|
191
193
|
i0.ɵɵlistener("formSubmit", function SdDataDetail_ng_template_3_Template_sd_form_formSubmit_4_listener() { i0.ɵɵrestoreView(_r4); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.onSubmit()); });
|
|
192
194
|
i0.ɵɵtemplate(6, SdDataDetail_ng_template_3_ng_template_6_Template, 0, 0, "ng-template", 13);
|
|
193
195
|
i0.ɵɵelementEnd()();
|
|
@@ -195,7 +197,7 @@ function SdDataDetail_ng_template_3_Template(rf, ctx) { if (rf & 1) {
|
|
|
195
197
|
i0.ɵɵconditionalCreate(8, SdDataDetail_ng_template_3_Conditional_8_Template, 2, 1, "div");
|
|
196
198
|
i0.ɵɵelementEnd();
|
|
197
199
|
} if (rf & 2) {
|
|
198
|
-
let
|
|
200
|
+
let tmp_7_0;
|
|
199
201
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
200
202
|
i0.ɵɵadvance();
|
|
201
203
|
i0.ɵɵconditional(ctx_r2.parent.viewType() === "control" && ctx_r2.parent.canEdit() || ctx_r2.toolTplRef() ? 1 : -1);
|
|
@@ -204,7 +206,7 @@ function SdDataDetail_ng_template_3_Template(rf, ctx) { if (rf & 1) {
|
|
|
204
206
|
i0.ɵɵadvance(4);
|
|
205
207
|
i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.contentTplRef());
|
|
206
208
|
i0.ɵɵadvance();
|
|
207
|
-
i0.ɵɵconditional(((
|
|
209
|
+
i0.ɵɵconditional(((tmp_7_0 = ctx_r2.parent.dataInfo()) == null ? null : tmp_7_0.lastModifiedAt) || ((tmp_7_0 = ctx_r2.parent.dataInfo()) == null ? null : tmp_7_0.lastModifiedBy) ? 7 : -1);
|
|
208
210
|
i0.ɵɵadvance();
|
|
209
211
|
i0.ɵɵconditional(ctx_r2.nextTplRef() ? 8 : -1);
|
|
210
212
|
} }
|
|
@@ -249,21 +251,21 @@ function SdDataDetail_Conditional_5_ng_template_0_Template(rf, ctx) { if (rf & 1
|
|
|
249
251
|
i0.ɵɵadvance(2);
|
|
250
252
|
i0.ɵɵproperty("size", "sm")("theme", "primary");
|
|
251
253
|
} }
|
|
252
|
-
function
|
|
253
|
-
i0.ɵɵtemplate(0, SdDataDetail_Conditional_5_ng_template_0_Template, 5, 3, "ng-template", null, 4, i0.ɵɵtemplateRefExtractor);
|
|
254
|
-
} }
|
|
255
|
-
function SdDataDetail_ng_template_6_Template(rf, ctx) { if (rf & 1) {
|
|
254
|
+
function SdDataDetail_Conditional_5_ng_template_2_Template(rf, ctx) { if (rf & 1) {
|
|
256
255
|
const _r11 = i0.ɵɵgetCurrentView();
|
|
257
256
|
i0.ɵɵelementStart(0, "sd-anchor", 20);
|
|
258
|
-
i0.ɵɵlistener("click", function
|
|
257
|
+
i0.ɵɵlistener("click", function SdDataDetail_Conditional_5_ng_template_2_Template_sd_anchor_click_0_listener() { i0.ɵɵrestoreView(_r11); const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.onRefreshButtonClick()); });
|
|
259
258
|
i0.ɵɵelement(1, "ng-icon", 8);
|
|
260
259
|
i0.ɵɵelementEnd();
|
|
261
260
|
} if (rf & 2) {
|
|
262
|
-
const ctx_r2 = i0.ɵɵnextContext();
|
|
261
|
+
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
263
262
|
i0.ɵɵproperty("theme", "gray");
|
|
264
263
|
i0.ɵɵadvance();
|
|
265
264
|
i0.ɵɵproperty("svg", ctx_r2.icons.tablerRefresh);
|
|
266
265
|
} }
|
|
266
|
+
function SdDataDetail_Conditional_5_Template(rf, ctx) { if (rf & 1) {
|
|
267
|
+
i0.ɵɵtemplate(0, SdDataDetail_Conditional_5_ng_template_0_Template, 5, 3, "ng-template", null, 3, i0.ɵɵtemplateRefExtractor)(2, SdDataDetail_Conditional_5_ng_template_2_Template, 2, 2, "ng-template", null, 4, i0.ɵɵtemplateRefExtractor);
|
|
268
|
+
} }
|
|
267
269
|
//#region SdDataDetail
|
|
268
270
|
export class SdDataDetail {
|
|
269
271
|
parent = injectParent();
|
|
@@ -310,11 +312,10 @@ export class SdDataDetail {
|
|
|
310
312
|
i0.ɵɵqueryAdvance(2);
|
|
311
313
|
} }, hostBindings: function SdDataDetail_HostBindings(rf, ctx) { if (rf & 1) {
|
|
312
314
|
i0.ɵɵlistener("sdRefreshCommand", function SdDataDetail_sdRefreshCommand_HostBindingHandler() { return ctx.onRefreshButtonClick(); })("sdSaveCommand", function SdDataDetail_sdSaveCommand_HostBindingHandler() { return ctx.onSubmitButtonClick(); });
|
|
313
|
-
} }, decls:
|
|
315
|
+
} }, features: [i0.ɵɵHostDirectivesFeature([{ directive: i1.SdCommandDirective, outputs: ["sdRefreshCommand", "sdRefreshCommand", "sdSaveCommand", "sdSaveCommand"] }])], decls: 6, vars: 6, consts: [["pageTopbarTpl", ""], ["contentTpl", ""], ["formCtrl", ""], ["modalBottomTpl", ""], ["modalActionTpl", ""], [3, "busy", "busyMessage", "viewType", "initialized", "restricted"], [3, "theme"], [3, "click", "theme"], [3, "svg"], [1, "flex-column", "fill"], [1, "p-default", "flex-row", "gap-default", "bdb", "bdb-theme-gray-lightest"], [1, "flex-fill"], [3, "formSubmit"], [3, "ngTemplateOutlet"], [1, "p-sm-default", 3, "bg-theme-gray-lightest"], [1, "p-sm-default"], [1, "p-sm-default", "flex-row", "gap-sm"], [1, "flex-fill", "flex-row", "gap-sm", "main-align-end"], [3, "click", "size", "theme"], [3, "size", "theme"], ["title", "\uC0C8\uB85C\uACE0\uCE68(CTRL+ALT+L)", 1, "p-sm-default", 3, "click", "theme"]], template: function SdDataDetail_Template(rf, ctx) { if (rf & 1) {
|
|
314
316
|
i0.ɵɵelementStart(0, "sd-base-container", 5);
|
|
315
317
|
i0.ɵɵtemplate(1, SdDataDetail_ng_template_1_Template, 6, 3, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor)(3, SdDataDetail_ng_template_3_Template, 9, 5, "ng-template", null, 1, i0.ɵɵtemplateRefExtractor);
|
|
316
|
-
i0.ɵɵconditionalCreate(5, SdDataDetail_Conditional_5_Template,
|
|
317
|
-
i0.ɵɵtemplate(6, SdDataDetail_ng_template_6_Template, 2, 2, "ng-template", null, 2, i0.ɵɵtemplateRefExtractor);
|
|
318
|
+
i0.ɵɵconditionalCreate(5, SdDataDetail_Conditional_5_Template, 4, 0);
|
|
318
319
|
i0.ɵɵelementEnd();
|
|
319
320
|
} if (rf & 2) {
|
|
320
321
|
i0.ɵɵproperty("busy", ctx.parent.busyCount() > 0)("busyMessage", ctx.parent.busyMessage())("viewType", ctx.parent.viewType())("initialized", ctx.parent.initialized())("restricted", !ctx.parent.canUse());
|
|
@@ -344,6 +345,9 @@ export class SdDataDetail {
|
|
|
344
345
|
SdAnchor,
|
|
345
346
|
NgIcon,
|
|
346
347
|
],
|
|
348
|
+
hostDirectives: [
|
|
349
|
+
{ directive: SdCommandDirective, outputs: ["sdRefreshCommand", "sdSaveCommand"] },
|
|
350
|
+
],
|
|
347
351
|
host: {
|
|
348
352
|
"(sdRefreshCommand)": "onRefreshButtonClick()",
|
|
349
353
|
"(sdSaveCommand)": "onSubmitButtonClick()",
|
|
@@ -472,20 +476,20 @@ export class SdDataDetail {
|
|
|
472
476
|
</div>
|
|
473
477
|
</div>
|
|
474
478
|
</ng-template>
|
|
475
|
-
}
|
|
476
479
|
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
480
|
+
<ng-template #modalActionTpl>
|
|
481
|
+
<sd-anchor
|
|
482
|
+
[theme]="'gray'"
|
|
483
|
+
class="p-sm-default"
|
|
484
|
+
(click)="onRefreshButtonClick()"
|
|
485
|
+
title="새로고침(CTRL+ALT+L)"
|
|
486
|
+
>
|
|
487
|
+
<ng-icon [svg]="icons.tablerRefresh" />
|
|
488
|
+
</sd-anchor>
|
|
489
|
+
</ng-template>
|
|
490
|
+
}
|
|
487
491
|
</sd-base-container>
|
|
488
492
|
`,
|
|
489
493
|
}]
|
|
490
494
|
}], () => [], { formCtrl: [{ type: i0.ViewChild, args: ["formCtrl", { isSignal: true }] }], toolTplRef: [{ type: i0.ContentChild, args: ["toolTpl", { ...{ read: TemplateRef }, isSignal: true }] }], prevTplRef: [{ type: i0.ContentChild, args: ["prevTpl", { ...{ read: TemplateRef }, isSignal: true }] }], contentTplRef: [{ type: i0.ContentChild, args: ["contentTpl", { ...{ read: TemplateRef }, isSignal: true }] }], nextTplRef: [{ type: i0.ContentChild, args: ["nextTpl", { ...{ read: TemplateRef }, isSignal: true }] }], modalActionTplRef: [{ type: i0.ViewChild, args: ["modalActionTpl", { ...{ read: TemplateRef }, isSignal: true }] }] }); })();
|
|
491
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SdDataDetail, { className: "SdDataDetail", filePath: "packages/angular/src/data/data-detail/sd-data-detail.ts", lineNumber:
|
|
495
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SdDataDetail, { className: "SdDataDetail", filePath: "packages/angular/src/data/data-detail/sd-data-detail.ts", lineNumber: 191 }); })();
|
|
@@ -149,4 +149,4 @@ export class SdDataSelectButton {
|
|
|
149
149
|
"[attr.data-sd-disabled]": "parent.disabled()",
|
|
150
150
|
}, styles: ["sd-data-select-button {\n display: block;\n width: 100%;\n min-width: 3em;\n}"] }]
|
|
151
151
|
}], null, { itemTplRef: [{ type: i0.ContentChild, args: [i0.forwardRef(() => SdItemOfTemplate), { ...{ read: TemplateRef }, isSignal: true }] }] }); })();
|
|
152
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SdDataSelectButton, { className: "SdDataSelectButton", filePath: "packages/angular/src/data/data-select-button/sd-data-select-button.ts", lineNumber: 83
|
|
152
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SdDataSelectButton, { className: "SdDataSelectButton", filePath: "packages/angular/src/data/data-select-button/sd-data-select-button.ts", lineNumber: 83 }); })();
|
|
@@ -3,6 +3,7 @@ import { SdForm } from "../../controls/form/sd-form";
|
|
|
3
3
|
import { SdDataSheetColumn } from "./sd-data-sheet-column";
|
|
4
4
|
import { SdDataSheetBase } from "./sd-data-sheet.base";
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
|
+
import * as i1 from "../../core/commands/sd-command";
|
|
6
7
|
export declare class SdDataSheet {
|
|
7
8
|
parent: SdDataSheetBase<any, any, any>;
|
|
8
9
|
formCtrl: import("@angular/core").Signal<SdForm | undefined>;
|
|
@@ -43,6 +44,6 @@ export declare class SdDataSheet {
|
|
|
43
44
|
onConfirmButtonClick(): void;
|
|
44
45
|
onCancelButtonClick(): void;
|
|
45
46
|
static ɵfac: i0.ɵɵFactoryDeclaration<SdDataSheet, never>;
|
|
46
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SdDataSheet, "sd-data-sheet", never, { "insertText": { "alias": "insertText"; "required": false; "isSignal": true; }; "deleteText": { "alias": "deleteText"; "required": false; "isSignal": true; }; "restoreText": { "alias": "restoreText"; "required": false; "isSignal": true; }; "deleteIcon": { "alias": "deleteIcon"; "required": false; "isSignal": true; }; "restoreIcon": { "alias": "restoreIcon"; "required": false; "isSignal": true; }; }, {}, ["pageTopbarTplRef", "prevTplRef", "filterTplRef", "beforeToolTplRef", "toolTplRef", "modalBottomTplRef", "columnControls"], never, true,
|
|
47
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SdDataSheet, "sd-data-sheet", never, { "insertText": { "alias": "insertText"; "required": false; "isSignal": true; }; "deleteText": { "alias": "deleteText"; "required": false; "isSignal": true; }; "restoreText": { "alias": "restoreText"; "required": false; "isSignal": true; }; "deleteIcon": { "alias": "deleteIcon"; "required": false; "isSignal": true; }; "restoreIcon": { "alias": "restoreIcon"; "required": false; "isSignal": true; }; }, {}, ["pageTopbarTplRef", "prevTplRef", "filterTplRef", "beforeToolTplRef", "toolTplRef", "modalBottomTplRef", "columnControls"], never, true, [{ directive: typeof i1.SdCommandDirective; inputs: {}; outputs: { "sdRefreshCommand": "sdRefreshCommand"; "sdSaveCommand": "sdSaveCommand"; }; }]>;
|
|
47
48
|
}
|
|
48
49
|
//# sourceMappingURL=sd-data-sheet.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-data-sheet.d.ts","sourceRoot":"","sources":["../../../src/data/data-sheet/sd-data-sheet.ts"],"names":[],"mappings":"AACA,OAAO,EAOL,WAAW,EAGZ,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AAOrD,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAc3D,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC
|
|
1
|
+
{"version":3,"file":"sd-data-sheet.d.ts","sourceRoot":"","sources":["../../../src/data/data-sheet/sd-data-sheet.ts"],"names":[],"mappings":"AACA,OAAO,EAOL,WAAW,EAGZ,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AAOrD,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAc3D,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;;;AAKvD,qBA0Va,WAAW;IACtB,MAAM,iCAAkD;IAExD,QAAQ,qDAAiC;IAEzC,UAAU,0DAAmB;IAC7B,UAAU,0DAAmB;IAC7B,WAAW,0DAAmB;IAC9B,UAAU,8CAAuB;IACjC,WAAW,8CAAwB;IAEnC,gBAAgB,+DAAwD;IACxE,UAAU,+DAAkD;IAC5D,YAAY,+DAAoD;IAChE,gBAAgB,+DAAwD;IACxE,UAAU,+DAAkD;IAC5D,iBAAiB,+DAAyD;IAE1E,cAAc,+DAAsC;IAEpD,iBAAiB,+DAAsD;;IAQvE,SAAS,CAAC,QAAQ,CAAC,KAAK;;;;;;;;MAQtB;IAEF,cAAc;IAId,oBAAoB;IAId,uBAAuB;IAIvB,qBAAqB,CAAC,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,UAAU;IAMjE,8BAA8B,CAAC,GAAG,EAAE,OAAO;IAIjD,6BAA6B,CAAC,IAAI,EAAE,GAAG;IAIvC,mBAAmB;IAIb,QAAQ;IAIR,oBAAoB;IAIpB,0BAA0B;IAI1B,wBAAwB;IAI9B,oBAAoB;IAIpB,mBAAmB;yCAxFR,WAAW;2CAAX,WAAW;CA2FvB"}
|
|
@@ -13,7 +13,9 @@ import { SdAnchor } from "../../controls/button/sd-anchor";
|
|
|
13
13
|
import { NgIcon } from "@ng-icons/core";
|
|
14
14
|
import { tablerDeviceFloppy, tablerEdit, tablerEraser, tablerCirclePlus, tablerFileExcel, tablerRefresh, tablerRestore, tablerSearch, tablerUpload, } from "@ng-icons/tabler-icons";
|
|
15
15
|
import { SdDataSheetBase } from "./sd-data-sheet.base";
|
|
16
|
+
import { SdCommandDirective } from "../../core/commands/sd-command";
|
|
16
17
|
import * as i0 from "@angular/core";
|
|
18
|
+
import * as i1 from "../../core/commands/sd-command";
|
|
17
19
|
const _c0 = ["pageTopbarTpl"];
|
|
18
20
|
const _c1 = ["prevTpl"];
|
|
19
21
|
const _c2 = ["filterTpl"];
|
|
@@ -252,9 +254,18 @@ function SdDataSheet_ng_template_3_Conditional_4_Template(rf, ctx) { if (rf & 1)
|
|
|
252
254
|
i0.ɵɵconditional(ctx_r2.parent.canEdit() || ctx_r2.beforeToolTplRef() || ctx_r2.parent.downloadExcel ? 0 : -1);
|
|
253
255
|
} }
|
|
254
256
|
function SdDataSheet_ng_template_3_Conditional_8_ng_template_1_Template(rf, ctx) { if (rf & 1) {
|
|
257
|
+
i0.ɵɵelementStart(0, "div", 28);
|
|
258
|
+
i0.ɵɵelement(1, "ng-icon", 10);
|
|
259
|
+
i0.ɵɵelementEnd();
|
|
260
|
+
} if (rf & 2) {
|
|
261
|
+
const ctx_r2 = i0.ɵɵnextContext(3);
|
|
262
|
+
i0.ɵɵadvance();
|
|
263
|
+
i0.ɵɵproperty("svg", ctx_r2.deleteIcon());
|
|
264
|
+
} }
|
|
265
|
+
function SdDataSheet_ng_template_3_Conditional_8_ng_template_3_Template(rf, ctx) { if (rf & 1) {
|
|
255
266
|
const _r13 = i0.ɵɵgetCurrentView();
|
|
256
267
|
i0.ɵɵelementStart(0, "div", 28)(1, "sd-anchor", 29);
|
|
257
|
-
i0.ɵɵlistener("click", function
|
|
268
|
+
i0.ɵɵlistener("click", function SdDataSheet_ng_template_3_Conditional_8_ng_template_3_Template_sd_anchor_click_1_listener() { const item_r14 = i0.ɵɵrestoreView(_r13).item; const ctx_r2 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r2.onToggleDeleteItemButtonClick(item_r14)); });
|
|
258
269
|
i0.ɵɵelement(2, "ng-icon", 10);
|
|
259
270
|
i0.ɵɵtext(3);
|
|
260
271
|
i0.ɵɵelementEnd()();
|
|
@@ -266,16 +277,16 @@ function SdDataSheet_ng_template_3_Conditional_8_ng_template_1_Template(rf, ctx)
|
|
|
266
277
|
i0.ɵɵadvance();
|
|
267
278
|
i0.ɵɵproperty("svg", item_r14[ctx_r2.parent.itemPropInfo.isDeleted] ? ctx_r2.restoreIcon() : ctx_r2.deleteIcon());
|
|
268
279
|
i0.ɵɵadvance();
|
|
269
|
-
i0.ɵɵtextInterpolate1(" ", item_r14[ctx_r2.parent.itemPropInfo.isDeleted] ? ctx_r2.restoreText()
|
|
280
|
+
i0.ɵɵtextInterpolate1(" ", item_r14[ctx_r2.parent.itemPropInfo.isDeleted] ? ctx_r2.restoreText() : ctx_r2.deleteText(), " ");
|
|
270
281
|
} }
|
|
271
282
|
function SdDataSheet_ng_template_3_Conditional_8_Template(rf, ctx) { if (rf & 1) {
|
|
272
283
|
i0.ɵɵelementStart(0, "sd-sheet-column", 17);
|
|
273
|
-
i0.ɵɵtemplate(1, SdDataSheet_ng_template_3_Conditional_8_ng_template_1_Template, 4, 4, "ng-template", 27);
|
|
284
|
+
i0.ɵɵtemplate(1, SdDataSheet_ng_template_3_Conditional_8_ng_template_1_Template, 2, 1, "ng-template", null, 3, i0.ɵɵtemplateRefExtractor)(3, SdDataSheet_ng_template_3_Conditional_8_ng_template_3_Template, 4, 4, "ng-template", 27);
|
|
274
285
|
i0.ɵɵelementEnd();
|
|
275
286
|
} if (rf & 2) {
|
|
276
287
|
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
277
288
|
i0.ɵɵproperty("fixed", true)("key", ctx_r2.parent.itemPropInfo.isDeleted);
|
|
278
|
-
i0.ɵɵadvance();
|
|
289
|
+
i0.ɵɵadvance(3);
|
|
279
290
|
i0.ɵɵproperty("cell", ctx_r2.parent.items());
|
|
280
291
|
} }
|
|
281
292
|
function SdDataSheet_ng_template_3_For_10_Conditional_1_ng_template_0_ng_template_0_Template(rf, ctx) { }
|
|
@@ -410,7 +421,7 @@ function SdDataSheet_ng_template_3_Template(rf, ctx) { if (rf & 1) {
|
|
|
410
421
|
i0.ɵɵlistener("formSubmit", function SdDataSheet_ng_template_3_Template_sd_form_formSubmit_5_listener() { i0.ɵɵrestoreView(_r4); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.onSubmit()); });
|
|
411
422
|
i0.ɵɵelementStart(7, "sd-sheet", 16);
|
|
412
423
|
i0.ɵɵtwoWayListener("currentPageChange", function SdDataSheet_ng_template_3_Template_sd_sheet_currentPageChange_7_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r2 = i0.ɵɵnextContext(); i0.ɵɵtwoWayBindingSet(ctx_r2.parent.page, $event) || (ctx_r2.parent.page = $event); return i0.ɵɵresetView($event); })("sortsChange", function SdDataSheet_ng_template_3_Template_sd_sheet_sortsChange_7_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r2 = i0.ɵɵnextContext(); i0.ɵɵtwoWayBindingSet(ctx_r2.parent.sortingDefs, $event) || (ctx_r2.parent.sortingDefs = $event); return i0.ɵɵresetView($event); })("selectedItemsChange", function SdDataSheet_ng_template_3_Template_sd_sheet_selectedItemsChange_7_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r2 = i0.ɵɵnextContext(); i0.ɵɵtwoWayBindingSet(ctx_r2.parent.selectedItems, $event) || (ctx_r2.parent.selectedItems = $event); return i0.ɵɵresetView($event); });
|
|
413
|
-
i0.ɵɵconditionalCreate(8, SdDataSheet_ng_template_3_Conditional_8_Template,
|
|
424
|
+
i0.ɵɵconditionalCreate(8, SdDataSheet_ng_template_3_Conditional_8_Template, 4, 3, "sd-sheet-column", 17);
|
|
414
425
|
i0.ɵɵrepeaterCreate(9, SdDataSheet_ng_template_3_For_10_Template, 4, 13, "sd-sheet-column", 18, _forTrack0);
|
|
415
426
|
i0.ɵɵconditionalCreate(11, SdDataSheet_ng_template_3_Conditional_11_Template, 2, 4, "sd-sheet-column", 19);
|
|
416
427
|
i0.ɵɵconditionalCreate(12, SdDataSheet_ng_template_3_Conditional_12_Template, 2, 4, "sd-sheet-column", 19);
|
|
@@ -585,7 +596,7 @@ export class SdDataSheet {
|
|
|
585
596
|
i0.ɵɵqueryAdvance(2);
|
|
586
597
|
} }, hostBindings: function SdDataSheet_HostBindings(rf, ctx) { if (rf & 1) {
|
|
587
598
|
i0.ɵɵlistener("sdRefreshCommand", function SdDataSheet_sdRefreshCommand_HostBindingHandler() { return ctx.onRefreshButtonClick(); })("sdSaveCommand", function SdDataSheet_sdSaveCommand_HostBindingHandler() { return ctx.onSubmitButtonClick(); });
|
|
588
|
-
} }, inputs: { insertText: [1, "insertText"], deleteText: [1, "deleteText"], restoreText: [1, "restoreText"], deleteIcon: [1, "deleteIcon"], restoreIcon: [1, "restoreIcon"] }, decls: 6, vars: 6, consts: [["pageTopbarTpl", ""], ["contentTpl", ""], ["formCtrl", ""], ["headerTpl", ""], ["summaryTpl", ""], ["modalBottomTpl", ""], ["modalActionTpl", ""], [3, "busy", "busyMessage", "viewType", "initialized", "restricted"], [3, "theme"], [3, "click", "theme"], [3, "svg"], [3, "ngTemplateOutlet"], [1, "flex-column", "fill"], [1, "flex-row", "gap-sm", "p-default", "bdb", "bdb-theme-gray-lightest"], [1, "p-default"], [1, "flex-fill", "p-default", "pt-0", 3, "formSubmit"], [3, "currentPageChange", "sortsChange", "selectedItemsChange", "key", "items", "currentPage", "totalPageCount", "sorts", "selectMode", "autoSelect", "selectedItems", "trackByFn", "getItemCellStyleFn", "getItemSelectableFn"], [3, "fixed", "key"], [3, "key", "fixed", "header", "headerStyle", "tooltip", "width", "disableSorting", "disableResizing", "hidden", "collapse"], [3, "header", "key", "hidden"], [3, "click", "size", "theme"], [3, "formSubmit"], [1, "form-box-inline"], [3, "type", "theme"], [1, "flex-row", "gap-sm", "p-xs-default"], [3, "size", "theme"], [3, "click", "size", "theme", "disabled"], [3, "cell"], [1, "p-xs-sm", "tx-center"], [3, "click", "theme", "disabled"], [1, "flex-row"], [3, "ngTemplateOutlet", "ngTemplateOutletContext"], [1, "flex-row", 3, "click"], [1, "p-xs-sm"], [1, "flex-fill"], [1, "p-sm-default", "flex-row", "gap-sm"], [1, "flex-fill", "flex-row", "gap-sm"], ["title", "\uC0C8\uB85C\uACE0\uCE68(CTRL+ALT+L)", 1, "p-sm-default", 3, "click", "theme"]], template: function SdDataSheet_Template(rf, ctx) { if (rf & 1) {
|
|
599
|
+
} }, inputs: { insertText: [1, "insertText"], deleteText: [1, "deleteText"], restoreText: [1, "restoreText"], deleteIcon: [1, "deleteIcon"], restoreIcon: [1, "restoreIcon"] }, features: [i0.ɵɵHostDirectivesFeature([{ directive: i1.SdCommandDirective, outputs: ["sdRefreshCommand", "sdRefreshCommand", "sdSaveCommand", "sdSaveCommand"] }])], decls: 6, vars: 6, consts: [["pageTopbarTpl", ""], ["contentTpl", ""], ["formCtrl", ""], ["headerTpl", ""], ["summaryTpl", ""], ["modalBottomTpl", ""], ["modalActionTpl", ""], [3, "busy", "busyMessage", "viewType", "initialized", "restricted"], [3, "theme"], [3, "click", "theme"], [3, "svg"], [3, "ngTemplateOutlet"], [1, "flex-column", "fill"], [1, "flex-row", "gap-sm", "p-default", "bdb", "bdb-theme-gray-lightest"], [1, "p-default"], [1, "flex-fill", "p-default", "pt-0", 3, "formSubmit"], [3, "currentPageChange", "sortsChange", "selectedItemsChange", "key", "items", "currentPage", "totalPageCount", "sorts", "selectMode", "autoSelect", "selectedItems", "trackByFn", "getItemCellStyleFn", "getItemSelectableFn"], [3, "fixed", "key"], [3, "key", "fixed", "header", "headerStyle", "tooltip", "width", "disableSorting", "disableResizing", "hidden", "collapse"], [3, "header", "key", "hidden"], [3, "click", "size", "theme"], [3, "formSubmit"], [1, "form-box-inline"], [3, "type", "theme"], [1, "flex-row", "gap-sm", "p-xs-default"], [3, "size", "theme"], [3, "click", "size", "theme", "disabled"], [3, "cell"], [1, "p-xs-sm", "tx-center"], [3, "click", "theme", "disabled"], [1, "flex-row"], [3, "ngTemplateOutlet", "ngTemplateOutletContext"], [1, "flex-row", 3, "click"], [1, "p-xs-sm"], [1, "flex-fill"], [1, "p-sm-default", "flex-row", "gap-sm"], [1, "flex-fill", "flex-row", "gap-sm"], ["title", "\uC0C8\uB85C\uACE0\uCE68(CTRL+ALT+L)", 1, "p-sm-default", 3, "click", "theme"]], template: function SdDataSheet_Template(rf, ctx) { if (rf & 1) {
|
|
589
600
|
i0.ɵɵelementStart(0, "sd-base-container", 7);
|
|
590
601
|
i0.ɵɵtemplate(1, SdDataSheet_ng_template_1_Template, 7, 4, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor)(3, SdDataSheet_ng_template_3_Template, 13, 17, "ng-template", null, 1, i0.ɵɵtemplateRefExtractor);
|
|
591
602
|
i0.ɵɵconditionalCreate(5, SdDataSheet_Conditional_5_Template, 4, 0);
|
|
@@ -624,6 +635,9 @@ export class SdDataSheet {
|
|
|
624
635
|
SdAnchor,
|
|
625
636
|
NgIcon,
|
|
626
637
|
],
|
|
638
|
+
hostDirectives: [
|
|
639
|
+
{ directive: SdCommandDirective, outputs: ["sdRefreshCommand", "sdSaveCommand"] },
|
|
640
|
+
],
|
|
627
641
|
host: {
|
|
628
642
|
"(sdRefreshCommand)": "onRefreshButtonClick()",
|
|
629
643
|
"(sdSaveCommand)": "onSubmitButtonClick()",
|
|
@@ -782,11 +796,14 @@ export class SdDataSheet {
|
|
|
782
796
|
[getItemSelectableFn]="parent.getItemSelectableFn"
|
|
783
797
|
>
|
|
784
798
|
@if (
|
|
785
|
-
parent.editMode === "inline" &&
|
|
786
|
-
parent.canEdit() &&
|
|
787
|
-
parent.itemPropInfo.isDeleted
|
|
799
|
+
parent.editMode === "inline" && parent.canEdit() && parent.itemPropInfo.isDeleted
|
|
788
800
|
) {
|
|
789
801
|
<sd-sheet-column [fixed]="true" [key]="parent.itemPropInfo.isDeleted!">
|
|
802
|
+
<ng-template #headerTpl>
|
|
803
|
+
<div class="p-xs-sm tx-center">
|
|
804
|
+
<ng-icon [svg]="deleteIcon()" />
|
|
805
|
+
</div>
|
|
806
|
+
</ng-template>
|
|
790
807
|
<ng-template [cell]="parent.items()" let-item="item">
|
|
791
808
|
<div class="p-xs-sm tx-center">
|
|
792
809
|
<sd-anchor
|
|
@@ -796,16 +813,10 @@ export class SdDataSheet {
|
|
|
796
813
|
>
|
|
797
814
|
<ng-icon
|
|
798
815
|
[svg]="
|
|
799
|
-
item[parent.itemPropInfo.isDeleted!]
|
|
800
|
-
? restoreIcon()
|
|
801
|
-
: deleteIcon()
|
|
816
|
+
item[parent.itemPropInfo.isDeleted!] ? restoreIcon() : deleteIcon()
|
|
802
817
|
"
|
|
803
818
|
/>
|
|
804
|
-
{{
|
|
805
|
-
item[parent.itemPropInfo.isDeleted!]
|
|
806
|
-
? (restoreText() ?? "복구")
|
|
807
|
-
: (deleteText() ?? "삭제")
|
|
808
|
-
}}
|
|
819
|
+
{{ item[parent.itemPropInfo.isDeleted!] ? restoreText() : deleteText() }}
|
|
809
820
|
</sd-anchor>
|
|
810
821
|
</div>
|
|
811
822
|
</ng-template>
|
|
@@ -893,10 +904,7 @@ export class SdDataSheet {
|
|
|
893
904
|
>
|
|
894
905
|
<ng-template [cell]="parent.items()" let-item="item">
|
|
895
906
|
<div class="p-xs-sm tx-center">
|
|
896
|
-
{{
|
|
897
|
-
item[parent.itemPropInfo.lastModifiedAt!]
|
|
898
|
-
| format: "yyyy-MM-dd HH:mm"
|
|
899
|
-
}}
|
|
907
|
+
{{ item[parent.itemPropInfo.lastModifiedAt!] | format: "yyyy-MM-dd HH:mm" }}
|
|
900
908
|
</div>
|
|
901
909
|
</ng-template>
|
|
902
910
|
</sd-sheet-column>
|
|
@@ -957,4 +965,4 @@ export class SdDataSheet {
|
|
|
957
965
|
`,
|
|
958
966
|
}]
|
|
959
967
|
}], () => [], { formCtrl: [{ type: i0.ViewChild, args: ["formCtrl", { isSignal: true }] }], insertText: [{ type: i0.Input, args: [{ isSignal: true, alias: "insertText", required: false }] }], deleteText: [{ type: i0.Input, args: [{ isSignal: true, alias: "deleteText", required: false }] }], restoreText: [{ type: i0.Input, args: [{ isSignal: true, alias: "restoreText", required: false }] }], deleteIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "deleteIcon", required: false }] }], restoreIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "restoreIcon", required: false }] }], pageTopbarTplRef: [{ type: i0.ContentChild, args: ["pageTopbarTpl", { ...{ read: TemplateRef }, isSignal: true }] }], prevTplRef: [{ type: i0.ContentChild, args: ["prevTpl", { ...{ read: TemplateRef }, isSignal: true }] }], filterTplRef: [{ type: i0.ContentChild, args: ["filterTpl", { ...{ read: TemplateRef }, isSignal: true }] }], beforeToolTplRef: [{ type: i0.ContentChild, args: ["beforeToolTpl", { ...{ read: TemplateRef }, isSignal: true }] }], toolTplRef: [{ type: i0.ContentChild, args: ["toolTpl", { ...{ read: TemplateRef }, isSignal: true }] }], modalBottomTplRef: [{ type: i0.ContentChild, args: ["modalBottomTpl", { ...{ read: TemplateRef }, isSignal: true }] }], columnControls: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => SdDataSheetColumn), { isSignal: true }] }], modalActionTplRef: [{ type: i0.ViewChild, args: ["modalActionTpl", { ...{ read: TemplateRef }, isSignal: true }] }] }); })();
|
|
960
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SdDataSheet, { className: "SdDataSheet", filePath: "packages/angular/src/data/data-sheet/sd-data-sheet.ts", lineNumber:
|
|
968
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SdDataSheet, { className: "SdDataSheet", filePath: "packages/angular/src/data/data-sheet/sd-data-sheet.ts", lineNumber: 386 }); })();
|
|
@@ -34,4 +34,4 @@ export class SdKanbanBoard {
|
|
|
34
34
|
<ng-content></ng-content>
|
|
35
35
|
`, styles: ["sd-kanban-board {\n display: inline-flex;\n flex-wrap: nowrap;\n white-space: nowrap;\n height: 100%;\n flex-direction: row;\n gap: var(--gap-lg);\n}\n@supports not (appearance: auto) {\n sd-kanban-board {\n gap: 0;\n }\n sd-kanban-board > * + * {\n margin-left: var(--gap-lg);\n }\n sd-kanban-board.gap-xxs {\n gap: 0;\n }\n sd-kanban-board.gap-xxs > * + * {\n margin-left: var(--gap-xxs);\n }\n sd-kanban-board.gap-xs {\n gap: 0;\n }\n sd-kanban-board.gap-xs > * + * {\n margin-left: var(--gap-xs);\n }\n sd-kanban-board.gap-sm {\n gap: 0;\n }\n sd-kanban-board.gap-sm > * + * {\n margin-left: var(--gap-sm);\n }\n sd-kanban-board.gap-default {\n gap: 0;\n }\n sd-kanban-board.gap-default > * + * {\n margin-left: var(--gap-default);\n }\n sd-kanban-board.gap-lg {\n gap: 0;\n }\n sd-kanban-board.gap-lg > * + * {\n margin-left: var(--gap-lg);\n }\n sd-kanban-board.gap-xl {\n gap: 0;\n }\n sd-kanban-board.gap-xl > * + * {\n margin-left: var(--gap-xl);\n }\n sd-kanban-board.gap-xxl {\n gap: 0;\n }\n sd-kanban-board.gap-xxl > * + * {\n margin-left: var(--gap-xxl);\n }\n sd-kanban-board.gap-0 {\n gap: 0;\n }\n sd-kanban-board.gap-0 > * + * {\n margin-left: var(--gap-0);\n }\n sd-kanban-board.gap-auto {\n gap: 0;\n }\n sd-kanban-board.gap-auto > * + * {\n margin-left: var(--gap-auto);\n }\n}"] }]
|
|
36
36
|
}], null, { selectedValues: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectedValues", required: false }] }, { type: i0.Output, args: ["selectedValuesChange"] }], drop: [{ type: i0.Output, args: ["drop"] }] }); })();
|
|
37
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SdKanbanBoard, { className: "SdKanbanBoard", filePath: "packages/angular/src/data/kanban/sd-kanban-board.ts", lineNumber: 36
|
|
37
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SdKanbanBoard, { className: "SdKanbanBoard", filePath: "packages/angular/src/data/kanban/sd-kanban-board.ts", lineNumber: 36 }); })();
|
|
@@ -226,4 +226,4 @@ export class SdKanbanLane {
|
|
|
226
226
|
</div>
|
|
227
227
|
`, styles: ["sd-kanban-lane > .flex-fill > sd-busy-container {\n padding: var(--gap-xl) var(--gap-lg);\n background: var(--theme-gray-lightest);\n border-radius: var(--border-radius-default);\n height: 100%;\n}\nsd-kanban-lane > .flex-fill > sd-busy-container > ._drop-position {\n pointer-events: none;\n border-radius: var(--border-radius-default);\n background: var(--trans-light);\n height: 0;\n margin-bottom: 0;\n visibility: hidden;\n transition: 0.1s linear;\n transition-property: height, margin-bottom, visibility;\n}\nsd-kanban-lane[data-sd-drag-over=true] > .flex-fill > sd-busy-container > ._drop-position {\n margin-bottom: var(--gap-lg);\n visibility: visible;\n}"] }]
|
|
228
228
|
}], null, { busy: [{ type: i0.Input, args: [{ isSignal: true, alias: "busy", required: false }] }], useCollapse: [{ type: i0.Input, args: [{ isSignal: true, alias: "useCollapse", required: false }] }], collapse: [{ type: i0.Input, args: [{ isSignal: true, alias: "collapse", required: false }] }, { type: i0.Output, args: ["collapseChange"] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], kanbanControls: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => SdKanban), { ...{ descendants: true }, isSignal: true }] }], toolTplRef: [{ type: i0.ContentChild, args: ["toolTpl", { ...{ read: TemplateRef }, isSignal: true }] }], titleTplRef: [{ type: i0.ContentChild, args: ["titleTpl", { ...{ read: TemplateRef }, isSignal: true }] }] }); })();
|
|
229
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SdKanbanLane, { className: "SdKanbanLane", filePath: "packages/angular/src/data/kanban/sd-kanban-lane.ts", lineNumber: 121
|
|
229
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SdKanbanLane, { className: "SdKanbanLane", filePath: "packages/angular/src/data/kanban/sd-kanban-lane.ts", lineNumber: 121 }); })();
|