@simplysm/angular 14.0.1 → 14.0.5
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/README.md +318 -0
- package/dist/core/commons.d.ts +2 -0
- package/dist/core/commons.d.ts.map +1 -0
- package/dist/core/commons.js +4 -0
- package/dist/core/directives/sd-events.directive.js +7 -7
- package/dist/core/directives/sd-item-of-template.directive.d.ts +14 -0
- package/dist/core/directives/sd-item-of-template.directive.d.ts.map +1 -0
- package/dist/core/directives/sd-item-of-template.directive.js +17 -0
- package/dist/core/directives/sd-router-link.directive.d.ts +19 -0
- package/dist/core/directives/sd-router-link.directive.d.ts.map +1 -0
- package/dist/core/directives/sd-router-link.directive.js +64 -0
- package/dist/core/directives/sd-typed-template.directive.d.ts +8 -0
- package/dist/core/directives/sd-typed-template.directive.d.ts.map +1 -0
- package/dist/core/directives/sd-typed-template.directive.js +17 -0
- package/dist/core/pipes/format.pipe.d.ts +9 -0
- package/dist/core/pipes/format.pipe.d.ts.map +1 -0
- package/dist/core/pipes/format.pipe.js +43 -0
- package/dist/core/plugins/commands/findTopOpenModalEl.d.ts +8 -0
- package/dist/core/plugins/commands/findTopOpenModalEl.d.ts.map +1 -0
- package/dist/core/plugins/commands/findTopOpenModalEl.js +21 -0
- package/dist/core/plugins/commands/sd-insert-command-event.plugin.d.ts.map +1 -1
- package/dist/core/plugins/commands/sd-insert-command-event.plugin.js +4 -0
- package/dist/core/plugins/commands/sd-refresh-command-event.plugin.d.ts.map +1 -1
- package/dist/core/plugins/commands/sd-refresh-command-event.plugin.js +4 -0
- package/dist/core/plugins/commands/sd-save-command-event.plugin.d.ts.map +1 -1
- package/dist/core/plugins/commands/sd-save-command-event.plugin.js +4 -0
- package/dist/core/plugins/events/sd-resize-event.plugin.d.ts.map +1 -1
- package/dist/core/plugins/events/sd-resize-event.plugin.js +0 -18
- package/dist/core/plugins/sd-global-error-handler.plugin.d.ts +1 -0
- package/dist/core/plugins/sd-global-error-handler.plugin.d.ts.map +1 -1
- package/dist/core/plugins/sd-global-error-handler.plugin.js +23 -13
- package/dist/core/provideSdAngular.d.ts +5 -0
- package/dist/core/provideSdAngular.d.ts.map +1 -0
- package/dist/core/provideSdAngular.js +127 -0
- package/dist/core/providers/sd-angular-config.provider.d.ts +7 -0
- package/dist/core/providers/sd-angular-config.provider.d.ts.map +1 -0
- package/dist/core/providers/sd-angular-config.provider.js +11 -0
- package/dist/core/providers/sd-app-structure.provider.d.ts +79 -0
- package/dist/core/providers/sd-app-structure.provider.d.ts.map +1 -0
- package/dist/core/providers/sd-app-structure.provider.js +278 -0
- package/dist/core/providers/sd-file-dialog.provider.d.ts +8 -0
- package/dist/core/providers/sd-file-dialog.provider.d.ts.map +1 -0
- package/dist/core/providers/sd-file-dialog.provider.js +49 -0
- package/dist/core/providers/sd-local-storage.provider.d.ts +10 -0
- package/dist/core/providers/sd-local-storage.provider.d.ts.map +1 -0
- package/dist/core/providers/sd-local-storage.provider.js +24 -0
- package/dist/core/providers/sd-navigate-window.provider.d.ts +9 -0
- package/dist/core/providers/sd-navigate-window.provider.d.ts.map +1 -0
- package/dist/core/providers/sd-navigate-window.provider.js +33 -0
- package/dist/core/providers/sd-print.provider.d.ts +26 -0
- package/dist/core/providers/sd-print.provider.d.ts.map +1 -0
- package/dist/core/providers/sd-print.provider.js +142 -0
- package/dist/core/providers/sd-service-client-factory.provider.d.ts +19 -0
- package/dist/core/providers/sd-service-client-factory.provider.d.ts.map +1 -0
- package/dist/core/providers/sd-service-client-factory.provider.js +86 -0
- package/dist/core/providers/sd-shared-data.provider.d.ts +36 -0
- package/dist/core/providers/sd-shared-data.provider.d.ts.map +1 -0
- package/dist/core/providers/sd-shared-data.provider.js +119 -0
- package/dist/core/providers/sd-system-config.provider.d.ts +13 -0
- package/dist/core/providers/sd-system-config.provider.d.ts.map +1 -0
- package/dist/core/providers/sd-system-config.provider.js +29 -0
- package/dist/core/providers/sd-system-log.provider.d.ts +8 -0
- package/dist/core/providers/sd-system-log.provider.d.ts.map +1 -0
- package/dist/core/providers/sd-system-log.provider.js +23 -0
- package/dist/core/providers/sd-theme-provider.js +1 -1
- package/dist/core/utils/TDirectiveInputSignals.d.ts +29 -0
- package/dist/core/utils/TDirectiveInputSignals.d.ts.map +1 -0
- package/dist/core/utils/TDirectiveInputSignals.js +1 -0
- package/dist/core/utils/setups/setupCanDeactivate.d.ts +2 -0
- package/dist/core/utils/setups/setupCanDeactivate.d.ts.map +1 -0
- package/dist/core/utils/setups/setupCanDeactivate.js +28 -0
- package/dist/core/utils/setups/setupModelHook.d.ts +3 -0
- package/dist/core/utils/setups/setupModelHook.d.ts.map +1 -0
- package/dist/core/utils/setups/setupModelHook.js +18 -0
- package/dist/core/utils/useCurrentPageCodeSignal.d.ts +3 -0
- package/dist/core/utils/useCurrentPageCodeSignal.d.ts.map +1 -0
- package/dist/core/utils/useCurrentPageCodeSignal.js +13 -0
- package/dist/core/utils/useExpandingManager.d.ts +23 -0
- package/dist/core/utils/useExpandingManager.d.ts.map +1 -0
- package/dist/core/utils/useExpandingManager.js +86 -0
- package/dist/core/utils/useFullPageCodeSignal.d.ts +3 -0
- package/dist/core/utils/useFullPageCodeSignal.d.ts.map +1 -0
- package/dist/core/utils/useFullPageCodeSignal.js +13 -0
- package/dist/core/utils/useSdSystemConfigResource.d.ts +13 -0
- package/dist/core/utils/useSdSystemConfigResource.d.ts.map +1 -0
- package/dist/core/utils/useSdSystemConfigResource.js +31 -0
- package/dist/core/utils/useSelectionManager.d.ts +18 -0
- package/dist/core/utils/useSelectionManager.d.ts.map +1 -0
- package/dist/core/utils/useSelectionManager.js +89 -0
- package/dist/core/utils/useSortingManager.d.ts +17 -0
- package/dist/core/utils/useSortingManager.d.ts.map +1 -0
- package/dist/core/utils/useSortingManager.js +81 -0
- package/dist/core/utils/useViewTitleSignal.d.ts +3 -0
- package/dist/core/utils/useViewTitleSignal.d.ts.map +1 -0
- package/dist/core/utils/useViewTitleSignal.js +17 -0
- package/dist/core/utils/useViewTypeSignal.d.ts +4 -0
- package/dist/core/utils/useViewTypeSignal.d.ts.map +1 -0
- package/dist/core/utils/useViewTypeSignal.js +23 -0
- package/dist/index.d.ts +95 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +115 -0
- package/dist/styles.css +1462 -722
- package/dist/ui/data/list/sd-list-item.control.d.ts +18 -0
- package/dist/ui/data/list/sd-list-item.control.d.ts.map +1 -0
- package/dist/ui/data/list/sd-list-item.control.js +130 -0
- package/dist/ui/data/list/sd-list.control.d.ts +7 -0
- package/dist/ui/data/list/sd-list.control.d.ts.map +1 -0
- package/dist/ui/data/list/sd-list.control.js +22 -0
- package/dist/ui/data/sheet/sd-sheet-column.directive.d.ts +18 -0
- package/dist/ui/data/sheet/sd-sheet-column.directive.d.ts.map +1 -0
- package/dist/ui/data/sheet/sd-sheet-column.directive.js +30 -0
- package/dist/ui/data/sheet/sd-sheet-config.modal.d.ts +39 -0
- package/dist/ui/data/sheet/sd-sheet-config.modal.d.ts.map +1 -0
- package/dist/ui/data/sheet/sd-sheet-config.modal.js +258 -0
- package/dist/ui/data/sheet/sd-sheet.control.d.ts +154 -0
- package/dist/ui/data/sheet/sd-sheet.control.d.ts.map +1 -0
- package/dist/ui/data/sheet/sd-sheet.control.js +846 -0
- package/dist/ui/data/sheet/types.d.ts +32 -0
- package/dist/ui/data/sheet/types.d.ts.map +1 -0
- package/dist/ui/data/sheet/types.js +1 -0
- package/dist/ui/data/sheet/useSheetCellAgent.d.ts +21 -0
- package/dist/ui/data/sheet/useSheetCellAgent.d.ts.map +1 -0
- package/dist/ui/data/sheet/useSheetCellAgent.js +245 -0
- package/dist/ui/data/sheet/useSheetColumnFixing.d.ts +9 -0
- package/dist/ui/data/sheet/useSheetColumnFixing.d.ts.map +1 -0
- package/dist/ui/data/sheet/useSheetColumnFixing.js +29 -0
- package/dist/ui/data/sheet/useSheetDomAccessor.d.ts +11 -0
- package/dist/ui/data/sheet/useSheetDomAccessor.d.ts.map +1 -0
- package/dist/ui/data/sheet/useSheetDomAccessor.js +55 -0
- package/dist/ui/data/sheet/useSheetLayoutEngine.d.ts +14 -0
- package/dist/ui/data/sheet/useSheetLayoutEngine.d.ts.map +1 -0
- package/dist/ui/data/sheet/useSheetLayoutEngine.js +126 -0
- package/dist/ui/form/button/sd-additional-button.control.d.ts +8 -0
- package/dist/ui/form/button/sd-additional-button.control.d.ts.map +1 -0
- package/dist/ui/form/button/sd-additional-button.control.js +38 -0
- package/dist/ui/form/button/sd-anchor.control.d.ts +8 -0
- package/dist/ui/form/button/sd-anchor.control.d.ts.map +1 -0
- package/dist/ui/form/button/sd-anchor.control.js +25 -0
- package/dist/ui/form/button/sd-button.control.d.ts +14 -0
- package/dist/ui/form/button/sd-button.control.d.ts.map +1 -0
- package/dist/ui/form/button/sd-button.control.js +49 -0
- package/dist/ui/form/button/sd-modal-select-button.control.d.ts +46 -0
- package/dist/ui/form/button/sd-modal-select-button.control.d.ts.map +1 -0
- package/dist/ui/form/button/sd-modal-select-button.control.js +149 -0
- package/dist/ui/form/checkbox/sd-checkbox-group-item.control.d.ts +12 -0
- package/dist/ui/form/checkbox/sd-checkbox-group-item.control.d.ts.map +1 -0
- package/dist/ui/form/checkbox/sd-checkbox-group-item.control.js +53 -0
- package/dist/ui/form/checkbox/sd-checkbox-group.control.d.ts +8 -0
- package/dist/ui/form/checkbox/sd-checkbox-group.control.d.ts.map +1 -0
- package/dist/ui/form/checkbox/sd-checkbox-group.control.js +26 -0
- package/dist/ui/form/checkbox/sd-checkbox.control.d.ts +19 -0
- package/dist/ui/form/checkbox/sd-checkbox.control.d.ts.map +1 -0
- package/dist/ui/form/checkbox/sd-checkbox.control.js +103 -0
- package/dist/ui/form/checkbox/sd-switch.control.d.ts +14 -0
- package/dist/ui/form/checkbox/sd-switch.control.d.ts.map +1 -0
- package/dist/ui/form/checkbox/sd-switch.control.js +54 -0
- package/dist/ui/form/choice/sd-state-preset.control.d.ts +24 -0
- package/dist/ui/form/choice/sd-state-preset.control.d.ts.map +1 -0
- package/dist/ui/form/choice/sd-state-preset.control.js +134 -0
- package/dist/ui/form/editor/sd-tiptap-editor.control.d.ts +35 -0
- package/dist/ui/form/editor/sd-tiptap-editor.control.d.ts.map +1 -0
- package/dist/ui/form/editor/sd-tiptap-editor.control.js +480 -0
- package/dist/ui/form/input/sd-date-range.picker.d.ts +13 -0
- package/dist/ui/form/input/sd-date-range.picker.d.ts.map +1 -0
- package/dist/ui/form/input/sd-date-range.picker.js +125 -0
- package/dist/ui/form/input/sd-numpad.control.d.ts +18 -0
- package/dist/ui/form/input/sd-numpad.control.d.ts.map +1 -0
- package/dist/ui/form/input/sd-numpad.control.js +241 -0
- package/dist/ui/form/input/sd-range.control.d.ts +13 -0
- package/dist/ui/form/input/sd-range.control.d.ts.map +1 -0
- package/dist/ui/form/input/sd-range.control.js +53 -0
- package/dist/ui/form/input/sd-textarea.control.d.ts +23 -0
- package/dist/ui/form/input/sd-textarea.control.d.ts.map +1 -0
- package/dist/ui/form/input/sd-textarea.control.js +132 -0
- package/dist/ui/form/input/sd-textfield-type-handlers.d.ts +46 -0
- package/dist/ui/form/input/sd-textfield-type-handlers.d.ts.map +1 -0
- package/dist/ui/form/input/sd-textfield-type-handlers.js +336 -0
- package/dist/ui/form/input/sd-textfield.control.d.ts +39 -0
- package/dist/ui/form/input/sd-textfield.control.d.ts.map +1 -0
- package/dist/ui/form/input/sd-textfield.control.js +211 -0
- package/dist/ui/form/sd-form.control.d.ts +13 -0
- package/dist/ui/form/sd-form.control.d.ts.map +1 -0
- package/dist/ui/form/sd-form.control.js +60 -0
- package/dist/ui/form/select/sd-select-button.control.d.ts +7 -0
- package/dist/ui/form/select/sd-select-button.control.d.ts.map +1 -0
- package/dist/ui/form/select/sd-select-button.control.js +25 -0
- package/dist/ui/form/select/sd-select-item.control.d.ts +18 -0
- package/dist/ui/form/select/sd-select-item.control.d.ts.map +1 -0
- package/dist/ui/form/select/sd-select-item.control.js +103 -0
- package/dist/ui/form/select/sd-select.control.d.ts +45 -0
- package/dist/ui/form/select/sd-select.control.d.ts.map +1 -0
- package/dist/ui/form/select/sd-select.control.js +430 -0
- package/dist/ui/layout/dock/sd-dock-container.control.d.ts +12 -0
- package/dist/ui/layout/dock/sd-dock-container.control.d.ts.map +1 -0
- package/dist/ui/layout/dock/sd-dock-container.control.js +96 -0
- package/dist/ui/layout/dock/sd-dock.control.d.ts +17 -0
- package/dist/ui/layout/dock/sd-dock.control.d.ts.map +1 -0
- package/dist/ui/layout/dock/sd-dock.control.js +111 -0
- package/dist/ui/layout/kanban/sd-kanban-board.control.d.ts +24 -0
- package/dist/ui/layout/kanban/sd-kanban-board.control.d.ts.map +1 -0
- package/dist/ui/layout/kanban/sd-kanban-board.control.js +37 -0
- package/dist/ui/layout/kanban/sd-kanban-lane.control.d.ts +29 -0
- package/dist/ui/layout/kanban/sd-kanban-lane.control.d.ts.map +1 -0
- package/dist/ui/layout/kanban/sd-kanban-lane.control.js +223 -0
- package/dist/ui/layout/kanban/sd-kanban.control.d.ts +32 -0
- package/dist/ui/layout/kanban/sd-kanban.control.d.ts.map +1 -0
- package/dist/ui/layout/kanban/sd-kanban.control.js +147 -0
- package/dist/ui/layout/sd-card.directive.d.ts +6 -0
- package/dist/ui/layout/sd-card.directive.d.ts.map +1 -0
- package/dist/ui/layout/sd-card.directive.js +16 -0
- package/dist/ui/layout/sd-gap.control.d.ts +13 -0
- package/dist/ui/layout/sd-gap.control.d.ts.map +1 -0
- package/dist/ui/layout/sd-gap.control.js +44 -0
- package/dist/ui/layout/sd-pane.directive.d.ts +6 -0
- package/dist/ui/layout/sd-pane.directive.d.ts.map +1 -0
- package/dist/ui/layout/sd-pane.directive.js +17 -0
- package/dist/ui/layout/view/sd-view-item.control.d.ts +9 -0
- package/dist/ui/layout/view/sd-view-item.control.d.ts.map +1 -0
- package/dist/ui/layout/view/sd-view-item.control.js +25 -0
- package/dist/ui/layout/view/sd-view.control.d.ts +8 -0
- package/dist/ui/layout/view/sd-view.control.d.ts.map +1 -0
- package/dist/ui/layout/view/sd-view.control.js +23 -0
- package/dist/ui/navigation/collapse/sd-collapse-icon.control.d.ts +13 -0
- package/dist/ui/navigation/collapse/sd-collapse-icon.control.d.ts.map +1 -0
- package/dist/ui/navigation/collapse/sd-collapse-icon.control.js +33 -0
- package/dist/ui/navigation/collapse/sd-collapse.control.d.ts +14 -0
- package/dist/ui/navigation/collapse/sd-collapse.control.d.ts.map +1 -0
- package/dist/ui/navigation/collapse/sd-collapse.control.js +59 -0
- package/dist/ui/navigation/menu-utils.d.ts +13 -0
- package/dist/ui/navigation/menu-utils.d.ts.map +1 -0
- package/dist/ui/navigation/menu-utils.js +18 -0
- package/dist/ui/navigation/pagination/sd-pagination.control.d.ts +24 -0
- package/dist/ui/navigation/pagination/sd-pagination.control.d.ts.map +1 -0
- package/dist/ui/navigation/pagination/sd-pagination.control.js +137 -0
- package/dist/ui/navigation/sidebar/sd-sidebar-container.control.d.ts +11 -0
- package/dist/ui/navigation/sidebar/sd-sidebar-container.control.d.ts.map +1 -0
- package/dist/ui/navigation/sidebar/sd-sidebar-container.control.js +46 -0
- package/dist/ui/navigation/sidebar/sd-sidebar-menu.control.d.ts +28 -0
- package/dist/ui/navigation/sidebar/sd-sidebar-menu.control.d.ts.map +1 -0
- package/dist/ui/navigation/sidebar/sd-sidebar-menu.control.js +159 -0
- package/dist/ui/navigation/sidebar/sd-sidebar-user.control.d.ts +16 -0
- package/dist/ui/navigation/sidebar/sd-sidebar-user.control.d.ts.map +1 -0
- package/dist/ui/navigation/sidebar/sd-sidebar-user.control.js +109 -0
- package/dist/ui/navigation/sidebar/sd-sidebar.control.d.ts +8 -0
- package/dist/ui/navigation/sidebar/sd-sidebar.control.d.ts.map +1 -0
- package/dist/ui/navigation/sidebar/sd-sidebar.control.js +24 -0
- package/dist/ui/navigation/tab/sd-tab-item.control.d.ts +10 -0
- package/dist/ui/navigation/tab/sd-tab-item.control.d.ts.map +1 -0
- package/dist/ui/navigation/tab/sd-tab-item.control.js +31 -0
- package/dist/ui/navigation/tab/sd-tab.control.d.ts +7 -0
- package/dist/ui/navigation/tab/sd-tab.control.d.ts.map +1 -0
- package/dist/ui/navigation/tab/sd-tab.control.js +18 -0
- package/dist/ui/navigation/tab/sd-tabview-item.control.d.ts +10 -0
- package/dist/ui/navigation/tab/sd-tabview-item.control.d.ts.map +1 -0
- package/dist/ui/navigation/tab/sd-tabview-item.control.js +26 -0
- package/dist/ui/navigation/tab/sd-tabview.control.d.ts +9 -0
- package/dist/ui/navigation/tab/sd-tabview.control.d.ts.map +1 -0
- package/dist/ui/navigation/tab/sd-tabview.control.js +67 -0
- package/dist/ui/navigation/topbar/sd-topbar-container.control.d.ts +6 -0
- package/dist/ui/navigation/topbar/sd-topbar-container.control.d.ts.map +1 -0
- package/dist/ui/navigation/topbar/sd-topbar-container.control.js +17 -0
- package/dist/ui/navigation/topbar/sd-topbar-menu.control.d.ts +29 -0
- package/dist/ui/navigation/topbar/sd-topbar-menu.control.d.ts.map +1 -0
- package/dist/ui/navigation/topbar/sd-topbar-menu.control.js +245 -0
- package/dist/ui/navigation/topbar/sd-topbar-user.control.d.ts +13 -0
- package/dist/ui/navigation/topbar/sd-topbar-user.control.d.ts.map +1 -0
- package/dist/ui/navigation/topbar/sd-topbar-user.control.js +77 -0
- package/dist/ui/navigation/topbar/sd-topbar.control.d.ts +12 -0
- package/dist/ui/navigation/topbar/sd-topbar.control.d.ts.map +1 -0
- package/dist/ui/navigation/topbar/sd-topbar.control.js +59 -0
- package/dist/ui/overlay/busy/sd-busy-container.control.d.ts +14 -0
- package/dist/ui/overlay/busy/sd-busy-container.control.d.ts.map +1 -0
- package/dist/ui/overlay/busy/sd-busy-container.control.js +119 -0
- package/dist/ui/overlay/busy/sd-busy.provider.d.ts +16 -0
- package/dist/ui/overlay/busy/sd-busy.provider.d.ts.map +1 -0
- package/dist/ui/overlay/busy/sd-busy.provider.js +43 -0
- package/dist/ui/overlay/dropdown/sd-dropdown-popup.control.d.ts +11 -0
- package/dist/ui/overlay/dropdown/sd-dropdown-popup.control.d.ts.map +1 -0
- package/dist/ui/overlay/dropdown/sd-dropdown-popup.control.js +43 -0
- package/dist/ui/overlay/dropdown/sd-dropdown.control.d.ts +27 -0
- package/dist/ui/overlay/dropdown/sd-dropdown.control.d.ts.map +1 -0
- package/dist/ui/overlay/dropdown/sd-dropdown.control.js +284 -0
- package/dist/ui/overlay/modal/sd-confirm-modal.control.d.ts +17 -0
- package/dist/ui/overlay/modal/sd-confirm-modal.control.d.ts.map +1 -0
- package/dist/ui/overlay/modal/sd-confirm-modal.control.js +51 -0
- package/dist/ui/overlay/modal/sd-modal.control.d.ts +51 -0
- package/dist/ui/overlay/modal/sd-modal.control.d.ts.map +1 -0
- package/dist/ui/overlay/modal/sd-modal.control.js +411 -0
- package/dist/ui/overlay/modal/sd-modal.provider.d.ts +65 -0
- package/dist/ui/overlay/modal/sd-modal.provider.d.ts.map +1 -0
- package/dist/ui/overlay/modal/sd-modal.provider.js +146 -0
- package/dist/ui/overlay/modal/sd-prompt-modal.control.d.ts +19 -0
- package/dist/ui/overlay/modal/sd-prompt-modal.control.d.ts.map +1 -0
- package/dist/ui/overlay/modal/sd-prompt-modal.control.js +71 -0
- package/dist/ui/overlay/toast/sd-toast-container.control.d.ts +7 -0
- package/dist/ui/overlay/toast/sd-toast-container.control.d.ts.map +1 -0
- package/dist/ui/overlay/toast/sd-toast-container.control.js +20 -0
- package/dist/ui/overlay/toast/sd-toast.control.d.ts +14 -0
- package/dist/ui/overlay/toast/sd-toast.control.d.ts.map +1 -0
- package/dist/ui/overlay/toast/sd-toast.control.js +79 -0
- package/dist/ui/overlay/toast/sd-toast.provider.d.ts +45 -0
- package/dist/ui/overlay/toast/sd-toast.provider.d.ts.map +1 -0
- package/dist/ui/overlay/toast/sd-toast.provider.js +219 -0
- package/dist/ui/visual/sd-barcode.control.d.ts +11 -0
- package/dist/ui/visual/sd-barcode.control.d.ts.map +1 -0
- package/dist/ui/visual/sd-barcode.control.js +35 -0
- package/dist/ui/visual/sd-calendar.control.d.ts +20 -0
- package/dist/ui/visual/sd-calendar.control.d.ts.map +1 -0
- package/dist/ui/visual/sd-calendar.control.js +189 -0
- package/dist/ui/visual/sd-echarts.control.d.ts +13 -0
- package/dist/ui/visual/sd-echarts.control.d.ts.map +1 -0
- package/dist/ui/visual/sd-echarts.control.js +55 -0
- package/dist/ui/visual/sd-label.control.d.ts +9 -0
- package/dist/ui/visual/sd-label.control.d.ts.map +1 -0
- package/dist/ui/visual/sd-label.control.js +27 -0
- package/dist/ui/visual/sd-note.control.d.ts +9 -0
- package/dist/ui/visual/sd-note.control.d.ts.map +1 -0
- package/dist/ui/visual/sd-note.control.js +26 -0
- package/dist/ui/visual/sd-progress.control.d.ts +10 -0
- package/dist/ui/visual/sd-progress.control.d.ts.map +1 -0
- package/dist/ui/visual/sd-progress.control.js +38 -0
- package/docs/commons-and-configuration.md +34 -0
- package/docs/data-display-components.md +146 -0
- package/docs/directives.md +158 -0
- package/docs/event-plugins.md +109 -0
- package/docs/form-components.md +362 -0
- package/docs/hooks-and-utilities.md +175 -0
- package/docs/layout-components.md +140 -0
- package/docs/navigation-components.md +200 -0
- package/docs/overlay-components.md +193 -0
- package/docs/pipes.md +25 -0
- package/docs/providers.md +448 -0
- package/docs/setup-functions.md +66 -0
- package/docs/visual-components.md +89 -0
- package/package.json +37 -18
- package/scss/commons/_mixins.scss +34 -0
- package/scss/commons/_styles.scss +27 -68
- package/scss/commons/_variables.scss +7 -0
- package/scss/controls/_card.scss +29 -0
- package/scss/controls/_flex.scss +38 -0
- package/scss/controls/_form-box.scss +49 -0
- package/scss/controls/_form-table.scss +45 -0
- package/scss/controls/_grid.scss +36 -0
- package/scss/controls/_table.scss +99 -0
- package/scss/styles.scss +7 -0
- package/scss/themes/_variables-dark.scss +2 -0
- package/src/core/commons.ts +4 -0
- package/src/core/directives/sd-events.directive.ts +7 -7
- package/src/core/directives/sd-item-of-template.directive.ts +23 -0
- package/src/core/directives/sd-router-link.directive.ts +81 -0
- package/src/core/directives/sd-typed-template.directive.ts +16 -0
- package/src/core/pipes/format.pipe.ts +37 -0
- package/src/core/plugins/commands/findTopOpenModalEl.ts +23 -0
- package/src/core/plugins/commands/sd-insert-command-event.plugin.ts +4 -0
- package/src/core/plugins/commands/sd-refresh-command-event.plugin.ts +4 -0
- package/src/core/plugins/commands/sd-save-command-event.plugin.ts +4 -0
- package/src/core/plugins/events/sd-resize-event.plugin.ts +0 -22
- package/src/core/plugins/sd-global-error-handler.plugin.ts +22 -13
- package/src/core/provideSdAngular.ts +154 -0
- package/src/core/providers/sd-angular-config.provider.ts +6 -0
- package/src/core/providers/sd-app-structure.provider.ts +446 -0
- package/src/core/providers/sd-file-dialog.provider.ts +49 -0
- package/src/core/providers/sd-local-storage.provider.ts +21 -0
- package/src/core/providers/sd-navigate-window.provider.ts +44 -0
- package/src/core/providers/sd-print.provider.ts +189 -0
- package/src/core/providers/sd-service-client-factory.provider.ts +98 -0
- package/src/core/providers/sd-shared-data.provider.ts +179 -0
- package/src/core/providers/sd-system-config.provider.ts +28 -0
- package/src/core/providers/sd-system-log.provider.ts +19 -0
- package/src/core/providers/sd-theme-provider.ts +1 -1
- package/src/core/utils/TDirectiveInputSignals.ts +34 -0
- package/src/core/utils/setups/setupCanDeactivate.ts +34 -0
- package/src/core/utils/setups/setupModelHook.ts +26 -0
- package/src/core/utils/useCurrentPageCodeSignal.ts +16 -0
- package/src/core/utils/useExpandingManager.ts +117 -0
- package/src/core/utils/useFullPageCodeSignal.ts +24 -0
- package/src/core/utils/useSdSystemConfigResource.ts +36 -0
- package/src/core/utils/useSelectionManager.ts +104 -0
- package/src/core/utils/useSortingManager.ts +89 -0
- package/src/core/utils/useViewTitleSignal.ts +21 -0
- package/src/core/utils/useViewTypeSignal.ts +33 -0
- package/src/index.ts +209 -0
- package/src/scss.d.ts +1 -0
- package/src/ui/data/list/sd-list-item.control.ts +143 -0
- package/src/ui/data/list/sd-list.control.ts +41 -0
- package/src/ui/data/sheet/sd-sheet-column.directive.ts +26 -0
- package/src/ui/data/sheet/sd-sheet-config.modal.ts +252 -0
- package/src/ui/data/sheet/sd-sheet.control.ts +766 -0
- package/src/ui/data/sheet/types.ts +37 -0
- package/src/ui/data/sheet/useSheetCellAgent.ts +267 -0
- package/src/ui/data/sheet/useSheetColumnFixing.ts +37 -0
- package/src/ui/data/sheet/useSheetDomAccessor.ts +62 -0
- package/src/ui/data/sheet/useSheetLayoutEngine.ts +143 -0
- package/src/ui/form/button/sd-additional-button.control.ts +100 -0
- package/src/ui/form/button/sd-anchor.control.ts +67 -0
- package/src/ui/form/button/sd-button.control.ts +209 -0
- package/src/ui/form/button/sd-modal-select-button.control.ts +237 -0
- package/src/ui/form/checkbox/sd-checkbox-group-item.control.ts +51 -0
- package/src/ui/form/checkbox/sd-checkbox-group.control.ts +24 -0
- package/src/ui/form/checkbox/sd-checkbox.control.ts +305 -0
- package/src/ui/form/checkbox/sd-switch.control.ts +145 -0
- package/src/ui/form/choice/sd-state-preset.control.ts +173 -0
- package/src/ui/form/editor/sd-tiptap-editor.control.ts +474 -0
- package/src/ui/form/input/sd-date-range.picker.ts +98 -0
- package/src/ui/form/input/sd-numpad.control.ts +178 -0
- package/src/ui/form/input/sd-range.control.ts +59 -0
- package/src/ui/form/input/sd-textarea.control.ts +221 -0
- package/src/ui/form/input/sd-textfield-type-handlers.ts +445 -0
- package/src/ui/form/input/sd-textfield.control.ts +395 -0
- package/src/ui/form/sd-form.control.ts +52 -0
- package/src/ui/form/select/sd-select-button.control.ts +43 -0
- package/src/ui/form/select/sd-select-item.control.ts +143 -0
- package/src/ui/form/select/sd-select.control.ts +412 -0
- package/src/ui/layout/dock/sd-dock-container.control.ts +100 -0
- package/src/ui/layout/dock/sd-dock.control.ts +171 -0
- package/src/ui/layout/kanban/sd-kanban-board.control.ts +74 -0
- package/src/ui/layout/kanban/sd-kanban-lane.control.ts +210 -0
- package/src/ui/layout/kanban/sd-kanban.control.ts +227 -0
- package/src/ui/layout/sd-card.directive.ts +10 -0
- package/src/ui/layout/sd-gap.control.ts +63 -0
- package/src/ui/layout/sd-pane.directive.ts +11 -0
- package/src/ui/layout/view/sd-view-item.control.ts +45 -0
- package/src/ui/layout/view/sd-view.control.ts +31 -0
- package/src/ui/navigation/collapse/sd-collapse-icon.control.ts +51 -0
- package/src/ui/navigation/collapse/sd-collapse.control.ts +75 -0
- package/src/ui/navigation/menu-utils.ts +36 -0
- package/src/ui/navigation/pagination/sd-pagination.control.ts +125 -0
- package/src/ui/navigation/sidebar/sd-sidebar-container.control.ts +92 -0
- package/src/ui/navigation/sidebar/sd-sidebar-menu.control.ts +129 -0
- package/src/ui/navigation/sidebar/sd-sidebar-user.control.ts +84 -0
- package/src/ui/navigation/sidebar/sd-sidebar.control.ts +67 -0
- package/src/ui/navigation/tab/sd-tab-item.control.ts +55 -0
- package/src/ui/navigation/tab/sd-tab.control.ts +25 -0
- package/src/ui/navigation/tab/sd-tabview-item.control.ts +48 -0
- package/src/ui/navigation/tab/sd-tabview.control.ts +39 -0
- package/src/ui/navigation/topbar/sd-topbar-container.control.ts +22 -0
- package/src/ui/navigation/topbar/sd-topbar-menu.control.ts +165 -0
- package/src/ui/navigation/topbar/sd-topbar-user.control.ts +58 -0
- package/src/ui/navigation/topbar/sd-topbar.control.ts +94 -0
- package/src/ui/overlay/busy/sd-busy-container.control.ts +243 -0
- package/src/ui/overlay/busy/sd-busy.provider.ts +55 -0
- package/src/ui/overlay/dropdown/sd-dropdown-popup.control.ts +110 -0
- package/src/ui/overlay/dropdown/sd-dropdown.control.ts +310 -0
- package/src/ui/overlay/modal/sd-confirm-modal.control.ts +66 -0
- package/src/ui/overlay/modal/sd-modal.control.ts +362 -0
- package/src/ui/overlay/modal/sd-modal.provider.ts +216 -0
- package/src/ui/overlay/modal/sd-prompt-modal.control.ts +92 -0
- package/src/ui/overlay/toast/sd-toast-container.control.ts +58 -0
- package/src/ui/overlay/toast/sd-toast.control.ts +123 -0
- package/src/ui/overlay/toast/sd-toast.provider.ts +302 -0
- package/src/ui/visual/sd-barcode.control.ts +62 -0
- package/src/ui/visual/sd-calendar.control.ts +188 -0
- package/src/ui/visual/sd-echarts.control.ts +73 -0
- package/src/ui/visual/sd-label.control.ts +66 -0
- package/src/ui/visual/sd-note.control.ts +66 -0
- package/src/ui/visual/sd-progress.control.ts +88 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { TemplateRef } from "@angular/core";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class SdListItemControl {
|
|
4
|
+
layout: import("@angular/core").InputSignal<"flat" | "accordion">;
|
|
5
|
+
open: import("@angular/core").ModelSignal<boolean>;
|
|
6
|
+
selected: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
7
|
+
selectedIcon: import("@angular/core").InputSignal<string | undefined>;
|
|
8
|
+
readonly: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
9
|
+
toolTpl: import("@angular/core").Signal<TemplateRef<void> | undefined>;
|
|
10
|
+
private readonly _childLists;
|
|
11
|
+
hasChildren: import("@angular/core").Signal<boolean>;
|
|
12
|
+
childrenOpen: import("@angular/core").Signal<boolean>;
|
|
13
|
+
constructor();
|
|
14
|
+
onContentClick(): void;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SdListItemControl, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SdListItemControl, "sd-list-item", never, { "layout": { "alias": "layout"; "required": false; "isSignal": true; }; "open": { "alias": "open"; "required": false; "isSignal": true; }; "selected": { "alias": "selected"; "required": false; "isSignal": true; }; "selectedIcon": { "alias": "selectedIcon"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; }, { "open": "openChange"; }, ["toolTpl", "_childLists"], ["*", "sd-list"], true, never>;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=sd-list-item.control.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sd-list-item.control.d.ts","sourceRoot":"","sources":["..\\..\\..\\..\\src\\ui\\data\\list\\sd-list-item.control.ts"],"names":[],"mappings":"AAAA,OAAO,EASL,WAAW,EAEZ,MAAM,eAAe,CAAC;;AAQvB,qBAgGa,iBAAiB;IAC5B,MAAM,4DAA4C;IAClD,IAAI,+CAAgB;IACpB,QAAQ,qEAAiD;IACzD,YAAY,0DAAmB;IAC/B,QAAQ,qEAAiD;IAEzD,OAAO,gEAA8C;IAErD,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAkC;IAE9D,WAAW,0CAAiD;IAE5D,YAAY,0CAET;;IAMH,cAAc,IAAI,IAAI;yCArBX,iBAAiB;2CAAjB,iBAAiB;CA2B7B"}
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import { booleanAttribute, ChangeDetectionStrategy, Component, computed, contentChild, contentChildren, input, model, TemplateRef, ViewEncapsulation, } from "@angular/core";
|
|
2
|
+
import { NgTemplateOutlet } from "@angular/common";
|
|
3
|
+
import { NgIcon } from "@ng-icons/core";
|
|
4
|
+
import { SdCollapseControl } from "../../navigation/collapse/sd-collapse.control";
|
|
5
|
+
import { SdCollapseIconControl } from "../../navigation/collapse/sd-collapse-icon.control";
|
|
6
|
+
import { SdListControl } from "./sd-list.control";
|
|
7
|
+
import { setupRipple } from "../../../core/utils/setups/setupRipple";
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
const _c0 = ["toolTpl"];
|
|
10
|
+
const _c1 = ["*", [["sd-list"]]];
|
|
11
|
+
const _c2 = ["*", "sd-list"];
|
|
12
|
+
function SdListItemControl_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
13
|
+
i0.ɵɵelement(0, "sd-collapse-icon", 1);
|
|
14
|
+
} if (rf & 2) {
|
|
15
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
16
|
+
i0.ɵɵproperty("open", ctx_r0.open());
|
|
17
|
+
} }
|
|
18
|
+
function SdListItemControl_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
19
|
+
i0.ɵɵelement(0, "ng-icon", 5);
|
|
20
|
+
} if (rf & 2) {
|
|
21
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
22
|
+
i0.ɵɵclassProp("tx-theme-primary-default", ctx_r0.selected())("tx-trans-lightest", !ctx_r0.selected());
|
|
23
|
+
i0.ɵɵproperty("svg", ctx_r0.selectedIcon());
|
|
24
|
+
} }
|
|
25
|
+
function SdListItemControl_Conditional_5_ng_template_1_Template(rf, ctx) { }
|
|
26
|
+
function SdListItemControl_Conditional_5_Template(rf, ctx) { if (rf & 1) {
|
|
27
|
+
i0.ɵɵelementStart(0, "div", 4);
|
|
28
|
+
i0.ɵɵtemplate(1, SdListItemControl_Conditional_5_ng_template_1_Template, 0, 0, "ng-template", 6);
|
|
29
|
+
i0.ɵɵelementEnd();
|
|
30
|
+
} if (rf & 2) {
|
|
31
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
32
|
+
i0.ɵɵadvance();
|
|
33
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r0.toolTpl());
|
|
34
|
+
} }
|
|
35
|
+
function SdListItemControl_Conditional_6_Template(rf, ctx) { if (rf & 1) {
|
|
36
|
+
i0.ɵɵelementStart(0, "sd-collapse", 1);
|
|
37
|
+
i0.ɵɵprojection(1, 1);
|
|
38
|
+
i0.ɵɵelementEnd();
|
|
39
|
+
} if (rf & 2) {
|
|
40
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
41
|
+
i0.ɵɵproperty("open", ctx_r0.childrenOpen());
|
|
42
|
+
} }
|
|
43
|
+
export class SdListItemControl {
|
|
44
|
+
layout = input("accordion", ...(ngDevMode ? [{ debugName: "layout" }] : /* istanbul ignore next */ []));
|
|
45
|
+
open = model(false, ...(ngDevMode ? [{ debugName: "open" }] : /* istanbul ignore next */ []));
|
|
46
|
+
selected = input(false, { ...(ngDevMode ? { debugName: "selected" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
47
|
+
selectedIcon = input(...(ngDevMode ? [undefined, { debugName: "selectedIcon" }] : /* istanbul ignore next */ []));
|
|
48
|
+
readonly = input(false, { ...(ngDevMode ? { debugName: "readonly" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
49
|
+
toolTpl = contentChild("toolTpl", ...(ngDevMode ? [{ debugName: "toolTpl" }] : /* istanbul ignore next */ []));
|
|
50
|
+
_childLists = contentChildren(SdListControl, ...(ngDevMode ? [{ debugName: "_childLists" }] : /* istanbul ignore next */ []));
|
|
51
|
+
hasChildren = computed(() => this._childLists().length > 0, ...(ngDevMode ? [{ debugName: "hasChildren" }] : /* istanbul ignore next */ []));
|
|
52
|
+
childrenOpen = computed(() => {
|
|
53
|
+
return this.layout() === "flat" ? true : this.open();
|
|
54
|
+
}, ...(ngDevMode ? [{ debugName: "childrenOpen" }] : /* istanbul ignore next */ []));
|
|
55
|
+
constructor() {
|
|
56
|
+
setupRipple(() => !this.readonly() && !(this.layout() === "flat" && this.hasChildren()));
|
|
57
|
+
}
|
|
58
|
+
onContentClick() {
|
|
59
|
+
if (this.readonly())
|
|
60
|
+
return;
|
|
61
|
+
if (this.layout() === "accordion" && this.hasChildren()) {
|
|
62
|
+
this.open.update((v) => !v);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
static ɵfac = function SdListItemControl_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || SdListItemControl)(); };
|
|
66
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SdListItemControl, selectors: [["sd-list-item"]], contentQueries: function SdListItemControl_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
|
|
67
|
+
i0.ɵɵcontentQuerySignal(dirIndex, ctx.toolTpl, _c0, 5)(dirIndex, ctx._childLists, SdListControl, 4);
|
|
68
|
+
} if (rf & 2) {
|
|
69
|
+
i0.ɵɵqueryAdvance(2);
|
|
70
|
+
} }, hostVars: 4, hostBindings: function SdListItemControl_HostBindings(rf, ctx) { if (rf & 2) {
|
|
71
|
+
i0.ɵɵattribute("data-sd-layout", ctx.layout())("data-sd-selected", ctx.selected())("data-sd-readonly", ctx.readonly())("data-sd-has-children", ctx.hasChildren());
|
|
72
|
+
} }, inputs: { layout: [1, "layout"], open: [1, "open"], selected: [1, "selected"], selectedIcon: [1, "selectedIcon"], readonly: [1, "readonly"] }, outputs: { open: "openChange" }, ngContentSelectors: _c2, decls: 7, vars: 4, consts: [["tabindex", "0", 1, "_content", 3, "click", "keydown.enter"], [3, "open"], [3, "tx-theme-primary-default", "tx-trans-lightest", "svg"], [1, "_label"], [1, "_tool"], [3, "svg"], [3, "ngTemplateOutlet"]], template: function SdListItemControl_Template(rf, ctx) { if (rf & 1) {
|
|
73
|
+
i0.ɵɵprojectionDef(_c1);
|
|
74
|
+
i0.ɵɵelementStart(0, "div", 0);
|
|
75
|
+
i0.ɵɵlistener("click", function SdListItemControl_Template_div_click_0_listener() { return ctx.onContentClick(); })("keydown.enter", function SdListItemControl_Template_div_keydown_enter_0_listener() { return ctx.onContentClick(); });
|
|
76
|
+
i0.ɵɵconditionalCreate(1, SdListItemControl_Conditional_1_Template, 1, 1, "sd-collapse-icon", 1);
|
|
77
|
+
i0.ɵɵconditionalCreate(2, SdListItemControl_Conditional_2_Template, 1, 5, "ng-icon", 2);
|
|
78
|
+
i0.ɵɵelementStart(3, "div", 3);
|
|
79
|
+
i0.ɵɵprojection(4);
|
|
80
|
+
i0.ɵɵelementEnd();
|
|
81
|
+
i0.ɵɵconditionalCreate(5, SdListItemControl_Conditional_5_Template, 2, 1, "div", 4);
|
|
82
|
+
i0.ɵɵelementEnd();
|
|
83
|
+
i0.ɵɵconditionalCreate(6, SdListItemControl_Conditional_6_Template, 2, 1, "sd-collapse", 1);
|
|
84
|
+
} if (rf & 2) {
|
|
85
|
+
i0.ɵɵadvance();
|
|
86
|
+
i0.ɵɵconditional(ctx.layout() === "accordion" && ctx.hasChildren() ? 1 : -1);
|
|
87
|
+
i0.ɵɵadvance();
|
|
88
|
+
i0.ɵɵconditional(ctx.selectedIcon() !== undefined && !ctx.hasChildren() ? 2 : -1);
|
|
89
|
+
i0.ɵɵadvance(3);
|
|
90
|
+
i0.ɵɵconditional(ctx.toolTpl() ? 5 : -1);
|
|
91
|
+
i0.ɵɵadvance();
|
|
92
|
+
i0.ɵɵconditional(ctx.hasChildren() ? 6 : -1);
|
|
93
|
+
} }, dependencies: [SdCollapseControl, SdCollapseIconControl, NgTemplateOutlet, NgIcon], styles: ["sd-list-item {\n display: block;\n}\nsd-list-item > ._content {\n display: flex;\n align-items: center;\n padding: var(--gap-sm) var(--gap-default);\n cursor: pointer;\n gap: var(--gap-sm);\n}\nsd-list-item > ._content > ._label {\n flex: 1;\n}\nsd-list-item:hover > ._content {\n background: var(--trans-lighter);\n}\nsd-list-item[data-sd-selected=true] > ._content {\n background: var(--trans-lighter);\n font-weight: bold;\n}\nsd-list-item[data-sd-readonly=true] > ._content {\n cursor: default;\n}\nsd-list-item[data-sd-readonly=true]:hover > ._content {\n background: transparent;\n}\nsd-list-item[data-sd-layout=flat] > ._content {\n font-size: 0.85em;\n opacity: 0.7;\n cursor: default;\n}\nsd-list-item[data-sd-layout=flat]:hover > ._content {\n background: transparent;\n}\nsd-list-item[data-sd-has-children=false] > ._content {\n padding-left: calc(var(--gap-default) + var(--gap-sm) + 0.75em);\n}"], encapsulation: 2, changeDetection: 0 });
|
|
94
|
+
}
|
|
95
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SdListItemControl, [{
|
|
96
|
+
type: Component,
|
|
97
|
+
args: [{ selector: "sd-list-item", changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, standalone: true, imports: [SdCollapseControl, SdCollapseIconControl, NgTemplateOutlet, NgIcon], template: `
|
|
98
|
+
<div class="_content" tabindex="0" (click)="onContentClick()" (keydown.enter)="onContentClick()">
|
|
99
|
+
@if (layout() === "accordion" && hasChildren()) {
|
|
100
|
+
<sd-collapse-icon [open]="open()" />
|
|
101
|
+
}
|
|
102
|
+
@if (selectedIcon() !== undefined && !hasChildren()) {
|
|
103
|
+
<ng-icon
|
|
104
|
+
[class.tx-theme-primary-default]="selected()"
|
|
105
|
+
[class.tx-trans-lightest]="!selected()"
|
|
106
|
+
[svg]="selectedIcon()!"
|
|
107
|
+
/>
|
|
108
|
+
}
|
|
109
|
+
<div class="_label">
|
|
110
|
+
<ng-content />
|
|
111
|
+
</div>
|
|
112
|
+
@if (toolTpl()) {
|
|
113
|
+
<div class="_tool">
|
|
114
|
+
<ng-template [ngTemplateOutlet]="toolTpl()!" />
|
|
115
|
+
</div>
|
|
116
|
+
}
|
|
117
|
+
</div>
|
|
118
|
+
@if (hasChildren()) {
|
|
119
|
+
<sd-collapse [open]="childrenOpen()">
|
|
120
|
+
<ng-content select="sd-list" />
|
|
121
|
+
</sd-collapse>
|
|
122
|
+
}
|
|
123
|
+
`, host: {
|
|
124
|
+
"[attr.data-sd-layout]": "layout()",
|
|
125
|
+
"[attr.data-sd-selected]": "selected()",
|
|
126
|
+
"[attr.data-sd-readonly]": "readonly()",
|
|
127
|
+
"[attr.data-sd-has-children]": "hasChildren()",
|
|
128
|
+
}, styles: ["sd-list-item {\n display: block;\n}\nsd-list-item > ._content {\n display: flex;\n align-items: center;\n padding: var(--gap-sm) var(--gap-default);\n cursor: pointer;\n gap: var(--gap-sm);\n}\nsd-list-item > ._content > ._label {\n flex: 1;\n}\nsd-list-item:hover > ._content {\n background: var(--trans-lighter);\n}\nsd-list-item[data-sd-selected=true] > ._content {\n background: var(--trans-lighter);\n font-weight: bold;\n}\nsd-list-item[data-sd-readonly=true] > ._content {\n cursor: default;\n}\nsd-list-item[data-sd-readonly=true]:hover > ._content {\n background: transparent;\n}\nsd-list-item[data-sd-layout=flat] > ._content {\n font-size: 0.85em;\n opacity: 0.7;\n cursor: default;\n}\nsd-list-item[data-sd-layout=flat]:hover > ._content {\n background: transparent;\n}\nsd-list-item[data-sd-has-children=false] > ._content {\n padding-left: calc(var(--gap-default) + var(--gap-sm) + 0.75em);\n}"] }]
|
|
129
|
+
}], () => [], { layout: [{ type: i0.Input, args: [{ isSignal: true, alias: "layout", required: false }] }], open: [{ type: i0.Input, args: [{ isSignal: true, alias: "open", required: false }] }, { type: i0.Output, args: ["openChange"] }], selected: [{ type: i0.Input, args: [{ isSignal: true, alias: "selected", required: false }] }], selectedIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectedIcon", required: false }] }], readonly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readonly", required: false }] }], toolTpl: [{ type: i0.ContentChild, args: ["toolTpl", { isSignal: true }] }], _childLists: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => SdListControl), { isSignal: true }] }] }); })();
|
|
130
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SdListItemControl, { className: "SdListItemControl", filePath: "packages/angular/src/ui/data/list/sd-list-item.control.ts", lineNumber: 116 }); })();
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class SdListControl {
|
|
3
|
+
inset: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SdListControl, never>;
|
|
5
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SdListControl, "sd-list", never, { "inset": { "alias": "inset"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=sd-list.control.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sd-list.control.d.ts","sourceRoot":"","sources":["..\\..\\..\\..\\src\\ui\\data\\list\\sd-list.control.ts"],"names":[],"mappings":";AAQA,qBA8Ba,aAAa;IACxB,KAAK,qEAAiD;yCAD3C,aAAa;2CAAb,aAAa;CAEzB"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { booleanAttribute, ChangeDetectionStrategy, Component, input, ViewEncapsulation, } from "@angular/core";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
const _c0 = ["*"];
|
|
4
|
+
export class SdListControl {
|
|
5
|
+
inset = input(false, { ...(ngDevMode ? { debugName: "inset" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
6
|
+
static ɵfac = function SdListControl_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || SdListControl)(); };
|
|
7
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SdListControl, selectors: [["sd-list"]], hostVars: 1, hostBindings: function SdListControl_HostBindings(rf, ctx) { if (rf & 2) {
|
|
8
|
+
i0.ɵɵattribute("data-sd-inset", ctx.inset());
|
|
9
|
+
} }, inputs: { inset: [1, "inset"] }, ngContentSelectors: _c0, decls: 1, vars: 0, template: function SdListControl_Template(rf, ctx) { if (rf & 1) {
|
|
10
|
+
i0.ɵɵprojectionDef();
|
|
11
|
+
i0.ɵɵprojection(0);
|
|
12
|
+
} }, styles: ["sd-list {\n display: block;\n user-select: none;\n background: var(--control-color);\n}\nsd-list[data-sd-inset=true] {\n background: transparent;\n}\nsd-list[data-sd-inset=true] sd-list {\n background: transparent;\n}"], encapsulation: 2, changeDetection: 0 });
|
|
13
|
+
}
|
|
14
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SdListControl, [{
|
|
15
|
+
type: Component,
|
|
16
|
+
args: [{ selector: "sd-list", changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, standalone: true, imports: [], template: `
|
|
17
|
+
<ng-content />
|
|
18
|
+
`, host: {
|
|
19
|
+
"[attr.data-sd-inset]": "inset()",
|
|
20
|
+
}, styles: ["sd-list {\n display: block;\n user-select: none;\n background: var(--control-color);\n}\nsd-list[data-sd-inset=true] {\n background: transparent;\n}\nsd-list[data-sd-inset=true] sd-list {\n background: transparent;\n}"] }]
|
|
21
|
+
}], null, { inset: [{ type: i0.Input, args: [{ isSignal: true, alias: "inset", required: false }] }] }); })();
|
|
22
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SdListControl, { className: "SdListControl", filePath: "packages/angular/src/ui/data/list/sd-list.control.ts", lineNumber: 39 }); })();
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { TemplateRef } from "@angular/core";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class SdSheetColumnDirective {
|
|
4
|
+
key: import("@angular/core").InputSignal<string>;
|
|
5
|
+
header: import("@angular/core").InputSignal<string | string[]>;
|
|
6
|
+
width: import("@angular/core").InputSignal<string | undefined>;
|
|
7
|
+
fixed: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
8
|
+
hidden: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
9
|
+
collapse: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
10
|
+
disableSorting: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
11
|
+
disableResizing: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
12
|
+
ordering: import("@angular/core").InputSignal<number>;
|
|
13
|
+
cellTplRef: import("@angular/core").Signal<TemplateRef<void> | undefined>;
|
|
14
|
+
summaryTplRef: import("@angular/core").Signal<TemplateRef<void> | undefined>;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SdSheetColumnDirective, never>;
|
|
16
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SdSheetColumnDirective, "sd-sheet-column", never, { "key": { "alias": "key"; "required": true; "isSignal": true; }; "header": { "alias": "header"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; "fixed": { "alias": "fixed"; "required": false; "isSignal": true; }; "hidden": { "alias": "hidden"; "required": false; "isSignal": true; }; "collapse": { "alias": "collapse"; "required": false; "isSignal": true; }; "disableSorting": { "alias": "disableSorting"; "required": false; "isSignal": true; }; "disableResizing": { "alias": "disableResizing"; "required": false; "isSignal": true; }; "ordering": { "alias": "ordering"; "required": false; "isSignal": true; }; }, {}, ["cellTplRef", "summaryTplRef"], never, true, never>;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=sd-sheet-column.directive.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sd-sheet-column.directive.d.ts","sourceRoot":"","sources":["..\\..\\..\\..\\src\\ui\\data\\sheet\\sd-sheet-column.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,WAAW,EACZ,MAAM,eAAe,CAAC;;AAEvB,qBAIa,sBAAsB;IACjC,GAAG,8CAA4B;IAC/B,MAAM,yDAAgC;IACtC,KAAK,0DAAmB;IACxB,KAAK,qEAAiD;IACtD,MAAM,qEAAiD;IACvD,QAAQ,qEAAiD;IACzD,cAAc,qEAAiD;IAC/D,eAAe,qEAAiD;IAChE,QAAQ,8CAAY;IAEpB,UAAU,gEAA8C;IACxD,aAAa,gEAAiD;yCAZnD,sBAAsB;2CAAtB,sBAAsB;CAalC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { booleanAttribute, contentChild, Directive, input, TemplateRef, } from "@angular/core";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
const _c0 = ["cellTpl"];
|
|
4
|
+
const _c1 = ["summaryTpl"];
|
|
5
|
+
export class SdSheetColumnDirective {
|
|
6
|
+
key = input.required(...(ngDevMode ? [{ debugName: "key" }] : /* istanbul ignore next */ []));
|
|
7
|
+
header = input("", ...(ngDevMode ? [{ debugName: "header" }] : /* istanbul ignore next */ []));
|
|
8
|
+
width = input(...(ngDevMode ? [undefined, { debugName: "width" }] : /* istanbul ignore next */ []));
|
|
9
|
+
fixed = input(false, { ...(ngDevMode ? { debugName: "fixed" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
10
|
+
hidden = input(false, { ...(ngDevMode ? { debugName: "hidden" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
11
|
+
collapse = input(false, { ...(ngDevMode ? { debugName: "collapse" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
12
|
+
disableSorting = input(false, { ...(ngDevMode ? { debugName: "disableSorting" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
13
|
+
disableResizing = input(false, { ...(ngDevMode ? { debugName: "disableResizing" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
14
|
+
ordering = input(0, ...(ngDevMode ? [{ debugName: "ordering" }] : /* istanbul ignore next */ []));
|
|
15
|
+
cellTplRef = contentChild("cellTpl", ...(ngDevMode ? [{ debugName: "cellTplRef" }] : /* istanbul ignore next */ []));
|
|
16
|
+
summaryTplRef = contentChild("summaryTpl", ...(ngDevMode ? [{ debugName: "summaryTplRef" }] : /* istanbul ignore next */ []));
|
|
17
|
+
static ɵfac = function SdSheetColumnDirective_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || SdSheetColumnDirective)(); };
|
|
18
|
+
static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: SdSheetColumnDirective, selectors: [["sd-sheet-column"]], contentQueries: function SdSheetColumnDirective_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
|
|
19
|
+
i0.ɵɵcontentQuerySignal(dirIndex, ctx.cellTplRef, _c0, 5)(dirIndex, ctx.summaryTplRef, _c1, 5);
|
|
20
|
+
} if (rf & 2) {
|
|
21
|
+
i0.ɵɵqueryAdvance(2);
|
|
22
|
+
} }, inputs: { key: [1, "key"], header: [1, "header"], width: [1, "width"], fixed: [1, "fixed"], hidden: [1, "hidden"], collapse: [1, "collapse"], disableSorting: [1, "disableSorting"], disableResizing: [1, "disableResizing"], ordering: [1, "ordering"] } });
|
|
23
|
+
}
|
|
24
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SdSheetColumnDirective, [{
|
|
25
|
+
type: Directive,
|
|
26
|
+
args: [{
|
|
27
|
+
selector: "sd-sheet-column",
|
|
28
|
+
standalone: true,
|
|
29
|
+
}]
|
|
30
|
+
}], null, { key: [{ type: i0.Input, args: [{ isSignal: true, alias: "key", required: true }] }], header: [{ type: i0.Input, args: [{ isSignal: true, alias: "header", required: false }] }], width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }], fixed: [{ type: i0.Input, args: [{ isSignal: true, alias: "fixed", required: false }] }], hidden: [{ type: i0.Input, args: [{ isSignal: true, alias: "hidden", required: false }] }], collapse: [{ type: i0.Input, args: [{ isSignal: true, alias: "collapse", required: false }] }], disableSorting: [{ type: i0.Input, args: [{ isSignal: true, alias: "disableSorting", required: false }] }], disableResizing: [{ type: i0.Input, args: [{ isSignal: true, alias: "disableResizing", required: false }] }], ordering: [{ type: i0.Input, args: [{ isSignal: true, alias: "ordering", required: false }] }], cellTplRef: [{ type: i0.ContentChild, args: ["cellTpl", { isSignal: true }] }], summaryTplRef: [{ type: i0.ContentChild, args: ["summaryTpl", { isSignal: true }] }] }); })();
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { ISdModal } from "../../overlay/modal/sd-modal.provider";
|
|
2
|
+
import type { ISdSheetConfig } from "./types";
|
|
3
|
+
import type { SdSheetColumnDirective } from "./sd-sheet-column.directive";
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
interface IConfigItem {
|
|
6
|
+
key: string;
|
|
7
|
+
header: string;
|
|
8
|
+
fixed: boolean;
|
|
9
|
+
hidden: boolean;
|
|
10
|
+
width: string;
|
|
11
|
+
ordering: number;
|
|
12
|
+
}
|
|
13
|
+
export declare class SdSheetConfigModal implements ISdModal<ISdSheetConfig | undefined> {
|
|
14
|
+
initialized: import("@angular/core").WritableSignal<boolean>;
|
|
15
|
+
close: import("@angular/core").OutputEmitterRef<ISdSheetConfig | undefined>;
|
|
16
|
+
controls: import("@angular/core").InputSignal<readonly SdSheetColumnDirective[]>;
|
|
17
|
+
config: import("@angular/core").InputSignal<ISdSheetConfig | undefined>;
|
|
18
|
+
_icons: {
|
|
19
|
+
tablerArrowUp: string;
|
|
20
|
+
tablerArrowDown: string;
|
|
21
|
+
};
|
|
22
|
+
private readonly _initialItems;
|
|
23
|
+
private readonly _editItems;
|
|
24
|
+
_items: import("@angular/core").Signal<IConfigItem[]>;
|
|
25
|
+
onFixedToggle(idx: number): void;
|
|
26
|
+
onHiddenToggle(idx: number): void;
|
|
27
|
+
onWidthChange(idx: number, event: Event): void;
|
|
28
|
+
canMoveUp(idx: number): boolean;
|
|
29
|
+
canMoveDown(idx: number): boolean;
|
|
30
|
+
onMoveUp(idx: number): void;
|
|
31
|
+
onMoveDown(idx: number): void;
|
|
32
|
+
onOk(): void;
|
|
33
|
+
onCancel(): void;
|
|
34
|
+
onReset(): void;
|
|
35
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SdSheetConfigModal, never>;
|
|
36
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SdSheetConfigModal, "sd-sheet-config-modal", never, { "controls": { "alias": "controls"; "required": true; "isSignal": true; }; "config": { "alias": "config"; "required": true; "isSignal": true; }; }, { "close": "close"; }, never, never, true, never>;
|
|
37
|
+
}
|
|
38
|
+
export {};
|
|
39
|
+
//# sourceMappingURL=sd-sheet-config.modal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sd-sheet-config.modal.d.ts","sourceRoot":"","sources":["..\\..\\..\\..\\src\\ui\\data\\sheet\\sd-sheet-config.modal.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uCAAuC,CAAC;AACtE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAC9C,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;;AAM1E,UAAU,WAAW;IACnB,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,OAAO,CAAC;IACf,MAAM,EAAE,OAAO,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,qBAoHa,kBAAmB,YAAW,QAAQ,CAAC,cAAc,GAAG,SAAS,CAAC;IAC7E,WAAW,kDAAgB;IAC3B,KAAK,uEAAwC;IAE7C,QAAQ,yEAAuD;IAC/D,MAAM,kEAAgD;IAEtD,MAAM;;;MAAsC;IAE5C,OAAO,CAAC,QAAQ,CAAC,aAAa,CAiB3B;IAEH,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAgD;IAE3E,MAAM,gDAEH;IAEH,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAMhC,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAMjC,aAAa,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,GAAG,IAAI;IAO9C,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO;IAU/B,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO;IAUjC,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAO3B,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAO7B,IAAI,IAAI,IAAI;IAeZ,QAAQ,IAAI,IAAI;IAIhB,OAAO,IAAI,IAAI;yCA1GJ,kBAAkB;2CAAlB,kBAAkB;CA6G9B"}
|
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component, computed, input, output, signal, ViewEncapsulation, } from "@angular/core";
|
|
2
|
+
import { SdButtonControl } from "../../form/button/sd-button.control";
|
|
3
|
+
import { SdCheckboxControl } from "../../form/checkbox/sd-checkbox.control";
|
|
4
|
+
import { NgIcon } from "@ng-icons/core";
|
|
5
|
+
import { tablerArrowUp, tablerArrowDown } from "@ng-icons/tabler-icons";
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
const _forTrack0 = ($index, $item) => $item.key;
|
|
8
|
+
function SdSheetConfigModal_For_16_Template(rf, ctx) { if (rf & 1) {
|
|
9
|
+
const _r1 = i0.ɵɵgetCurrentView();
|
|
10
|
+
i0.ɵɵelementStart(0, "tr")(1, "td")(2, "sd-checkbox", 5);
|
|
11
|
+
i0.ɵɵlistener("click", function SdSheetConfigModal_For_16_Template_sd_checkbox_click_2_listener() { const ɵ$index_26_r2 = i0.ɵɵrestoreView(_r1).$index; const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.onFixedToggle(ɵ$index_26_r2)); });
|
|
12
|
+
i0.ɵɵelementEnd()();
|
|
13
|
+
i0.ɵɵelementStart(3, "td", 6)(4, "sd-button", 7);
|
|
14
|
+
i0.ɵɵlistener("click", function SdSheetConfigModal_For_16_Template_sd_button_click_4_listener() { const ɵ$index_26_r2 = i0.ɵɵrestoreView(_r1).$index; const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.onMoveUp(ɵ$index_26_r2)); });
|
|
15
|
+
i0.ɵɵelement(5, "ng-icon", 8);
|
|
16
|
+
i0.ɵɵelementEnd();
|
|
17
|
+
i0.ɵɵelementStart(6, "sd-button", 7);
|
|
18
|
+
i0.ɵɵlistener("click", function SdSheetConfigModal_For_16_Template_sd_button_click_6_listener() { const ɵ$index_26_r2 = i0.ɵɵrestoreView(_r1).$index; const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.onMoveDown(ɵ$index_26_r2)); });
|
|
19
|
+
i0.ɵɵelement(7, "ng-icon", 8);
|
|
20
|
+
i0.ɵɵelementEnd()();
|
|
21
|
+
i0.ɵɵelementStart(8, "td");
|
|
22
|
+
i0.ɵɵtext(9);
|
|
23
|
+
i0.ɵɵelementEnd();
|
|
24
|
+
i0.ɵɵelementStart(10, "td")(11, "input", 9);
|
|
25
|
+
i0.ɵɵlistener("input", function SdSheetConfigModal_For_16_Template_input_input_11_listener($event) { const ɵ$index_26_r2 = i0.ɵɵrestoreView(_r1).$index; const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.onWidthChange(ɵ$index_26_r2, $event)); });
|
|
26
|
+
i0.ɵɵelementEnd()();
|
|
27
|
+
i0.ɵɵelementStart(12, "td")(13, "sd-checkbox", 5);
|
|
28
|
+
i0.ɵɵlistener("click", function SdSheetConfigModal_For_16_Template_sd_checkbox_click_13_listener() { const ɵ$index_26_r2 = i0.ɵɵrestoreView(_r1).$index; const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.onHiddenToggle(ɵ$index_26_r2)); });
|
|
29
|
+
i0.ɵɵelementEnd()()();
|
|
30
|
+
} if (rf & 2) {
|
|
31
|
+
const item_r4 = ctx.$implicit;
|
|
32
|
+
const ɵ$index_26_r2 = ctx.$index;
|
|
33
|
+
const ctx_r2 = i0.ɵɵnextContext();
|
|
34
|
+
i0.ɵɵadvance(2);
|
|
35
|
+
i0.ɵɵproperty("value", item_r4.fixed)("inline", true)("inset", true);
|
|
36
|
+
i0.ɵɵadvance(2);
|
|
37
|
+
i0.ɵɵproperty("disabled", !ctx_r2.canMoveUp(ɵ$index_26_r2));
|
|
38
|
+
i0.ɵɵadvance();
|
|
39
|
+
i0.ɵɵproperty("svg", ctx_r2._icons.tablerArrowUp);
|
|
40
|
+
i0.ɵɵadvance();
|
|
41
|
+
i0.ɵɵproperty("disabled", !ctx_r2.canMoveDown(ɵ$index_26_r2));
|
|
42
|
+
i0.ɵɵadvance();
|
|
43
|
+
i0.ɵɵproperty("svg", ctx_r2._icons.tablerArrowDown);
|
|
44
|
+
i0.ɵɵadvance(2);
|
|
45
|
+
i0.ɵɵtextInterpolate(item_r4.header);
|
|
46
|
+
i0.ɵɵadvance(2);
|
|
47
|
+
i0.ɵɵproperty("value", item_r4.width);
|
|
48
|
+
i0.ɵɵadvance(2);
|
|
49
|
+
i0.ɵɵproperty("value", item_r4.hidden)("inline", true)("inset", true);
|
|
50
|
+
} }
|
|
51
|
+
export class SdSheetConfigModal {
|
|
52
|
+
initialized = signal(true, ...(ngDevMode ? [{ debugName: "initialized" }] : /* istanbul ignore next */ []));
|
|
53
|
+
close = output();
|
|
54
|
+
controls = input.required(...(ngDevMode ? [{ debugName: "controls" }] : /* istanbul ignore next */ []));
|
|
55
|
+
config = input.required(...(ngDevMode ? [{ debugName: "config" }] : /* istanbul ignore next */ []));
|
|
56
|
+
_icons = { tablerArrowUp, tablerArrowDown };
|
|
57
|
+
_initialItems = computed(() => {
|
|
58
|
+
const cfg = this.config();
|
|
59
|
+
const controls = this.controls();
|
|
60
|
+
return controls
|
|
61
|
+
.map((ctrl) => {
|
|
62
|
+
const key = ctrl.key();
|
|
63
|
+
const cfgCol = cfg?.columnRecord[key];
|
|
64
|
+
return {
|
|
65
|
+
key,
|
|
66
|
+
header: Array.isArray(ctrl.header()) ? ctrl.header().join(" > ") : ctrl.header(),
|
|
67
|
+
fixed: cfgCol?.fixed ?? ctrl.fixed(),
|
|
68
|
+
hidden: cfgCol?.hidden ?? ctrl.hidden(),
|
|
69
|
+
width: cfgCol?.width ?? ctrl.width() ?? "",
|
|
70
|
+
ordering: cfgCol?.ordering ?? ctrl.ordering(),
|
|
71
|
+
};
|
|
72
|
+
})
|
|
73
|
+
.sort((a, b) => a.ordering - b.ordering);
|
|
74
|
+
}, ...(ngDevMode ? [{ debugName: "_initialItems" }] : /* istanbul ignore next */ []));
|
|
75
|
+
_editItems = signal(undefined, ...(ngDevMode ? [{ debugName: "_editItems" }] : /* istanbul ignore next */ []));
|
|
76
|
+
_items = computed(() => {
|
|
77
|
+
return this._editItems() ?? this._initialItems();
|
|
78
|
+
}, ...(ngDevMode ? [{ debugName: "_items" }] : /* istanbul ignore next */ []));
|
|
79
|
+
onFixedToggle(idx) {
|
|
80
|
+
const items = [...this._items()];
|
|
81
|
+
items[idx] = { ...items[idx], fixed: !items[idx].fixed };
|
|
82
|
+
this._editItems.set(items);
|
|
83
|
+
}
|
|
84
|
+
onHiddenToggle(idx) {
|
|
85
|
+
const items = [...this._items()];
|
|
86
|
+
items[idx] = { ...items[idx], hidden: !items[idx].hidden };
|
|
87
|
+
this._editItems.set(items);
|
|
88
|
+
}
|
|
89
|
+
onWidthChange(idx, event) {
|
|
90
|
+
const inputEl = event.target;
|
|
91
|
+
const items = [...this._items()];
|
|
92
|
+
items[idx] = { ...items[idx], width: inputEl.value };
|
|
93
|
+
this._editItems.set(items);
|
|
94
|
+
}
|
|
95
|
+
canMoveUp(idx) {
|
|
96
|
+
if (idx <= 0)
|
|
97
|
+
return false;
|
|
98
|
+
const items = this._items();
|
|
99
|
+
const current = items[idx];
|
|
100
|
+
const above = items[idx - 1];
|
|
101
|
+
// Cannot move non-fixed above fixed
|
|
102
|
+
if (!current.fixed && above.fixed)
|
|
103
|
+
return false;
|
|
104
|
+
return true;
|
|
105
|
+
}
|
|
106
|
+
canMoveDown(idx) {
|
|
107
|
+
const items = this._items();
|
|
108
|
+
if (idx >= items.length - 1)
|
|
109
|
+
return false;
|
|
110
|
+
const current = items[idx];
|
|
111
|
+
const below = items[idx + 1];
|
|
112
|
+
// Cannot move fixed below non-fixed
|
|
113
|
+
if (current.fixed && !below.fixed)
|
|
114
|
+
return false;
|
|
115
|
+
return true;
|
|
116
|
+
}
|
|
117
|
+
onMoveUp(idx) {
|
|
118
|
+
if (!this.canMoveUp(idx))
|
|
119
|
+
return;
|
|
120
|
+
const items = [...this._items()];
|
|
121
|
+
[items[idx - 1], items[idx]] = [items[idx], items[idx - 1]];
|
|
122
|
+
this._editItems.set(items);
|
|
123
|
+
}
|
|
124
|
+
onMoveDown(idx) {
|
|
125
|
+
if (!this.canMoveDown(idx))
|
|
126
|
+
return;
|
|
127
|
+
const items = [...this._items()];
|
|
128
|
+
[items[idx], items[idx + 1]] = [items[idx + 1], items[idx]];
|
|
129
|
+
this._editItems.set(items);
|
|
130
|
+
}
|
|
131
|
+
onOk() {
|
|
132
|
+
const items = this._items();
|
|
133
|
+
const columnRecord = {};
|
|
134
|
+
for (let i = 0; i < items.length; i++) {
|
|
135
|
+
const item = items[i];
|
|
136
|
+
columnRecord[item.key] = {
|
|
137
|
+
fixed: item.fixed,
|
|
138
|
+
hidden: item.hidden,
|
|
139
|
+
width: item.width !== "" ? item.width : undefined,
|
|
140
|
+
ordering: i,
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
this.close.emit({ columnRecord });
|
|
144
|
+
}
|
|
145
|
+
onCancel() {
|
|
146
|
+
this.close.emit(undefined);
|
|
147
|
+
}
|
|
148
|
+
onReset() {
|
|
149
|
+
this.close.emit({ columnRecord: {} });
|
|
150
|
+
}
|
|
151
|
+
static ɵfac = function SdSheetConfigModal_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || SdSheetConfigModal)(); };
|
|
152
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SdSheetConfigModal, selectors: [["sd-sheet-config-modal"]], inputs: { controls: [1, "controls"], config: [1, "config"] }, outputs: { close: "close" }, decls: 24, vars: 1, consts: [[1, "_sd-sheet-config-modal"], [1, "_config-table"], [1, "_actions"], [3, "click", "theme"], [3, "click"], [3, "click", "value", "inline", "inset"], [1, "_order-col"], [3, "click", "disabled"], [3, "svg"], ["type", "text", 1, "_width-input", 3, "input", "value"]], template: function SdSheetConfigModal_Template(rf, ctx) { if (rf & 1) {
|
|
153
|
+
i0.ɵɵelementStart(0, "div", 0)(1, "table", 1)(2, "thead")(3, "tr")(4, "th");
|
|
154
|
+
i0.ɵɵtext(5, "Fix");
|
|
155
|
+
i0.ɵɵelementEnd();
|
|
156
|
+
i0.ɵɵelementStart(6, "th");
|
|
157
|
+
i0.ɵɵtext(7, "Order");
|
|
158
|
+
i0.ɵɵelementEnd();
|
|
159
|
+
i0.ɵɵelementStart(8, "th");
|
|
160
|
+
i0.ɵɵtext(9, "Header");
|
|
161
|
+
i0.ɵɵelementEnd();
|
|
162
|
+
i0.ɵɵelementStart(10, "th");
|
|
163
|
+
i0.ɵɵtext(11, "Width");
|
|
164
|
+
i0.ɵɵelementEnd();
|
|
165
|
+
i0.ɵɵelementStart(12, "th");
|
|
166
|
+
i0.ɵɵtext(13, "Hidden");
|
|
167
|
+
i0.ɵɵelementEnd()()();
|
|
168
|
+
i0.ɵɵelementStart(14, "tbody");
|
|
169
|
+
i0.ɵɵrepeaterCreate(15, SdSheetConfigModal_For_16_Template, 14, 12, "tr", null, _forTrack0);
|
|
170
|
+
i0.ɵɵelementEnd()();
|
|
171
|
+
i0.ɵɵelementStart(17, "div", 2)(18, "sd-button", 3);
|
|
172
|
+
i0.ɵɵlistener("click", function SdSheetConfigModal_Template_sd_button_click_18_listener() { return ctx.onOk(); });
|
|
173
|
+
i0.ɵɵtext(19, "OK");
|
|
174
|
+
i0.ɵɵelementEnd();
|
|
175
|
+
i0.ɵɵelementStart(20, "sd-button", 4);
|
|
176
|
+
i0.ɵɵlistener("click", function SdSheetConfigModal_Template_sd_button_click_20_listener() { return ctx.onCancel(); });
|
|
177
|
+
i0.ɵɵtext(21, "Cancel");
|
|
178
|
+
i0.ɵɵelementEnd();
|
|
179
|
+
i0.ɵɵelementStart(22, "sd-button", 4);
|
|
180
|
+
i0.ɵɵlistener("click", function SdSheetConfigModal_Template_sd_button_click_22_listener() { return ctx.onReset(); });
|
|
181
|
+
i0.ɵɵtext(23, "Reset");
|
|
182
|
+
i0.ɵɵelementEnd()()();
|
|
183
|
+
} if (rf & 2) {
|
|
184
|
+
i0.ɵɵadvance(15);
|
|
185
|
+
i0.ɵɵrepeater(ctx._items());
|
|
186
|
+
i0.ɵɵadvance(3);
|
|
187
|
+
i0.ɵɵproperty("theme", "primary");
|
|
188
|
+
} }, dependencies: [SdButtonControl, SdCheckboxControl, NgIcon], styles: ["sd-sheet-config-modal {\n display: block;\n padding: var(--gap-default);\n}\nsd-sheet-config-modal > ._sd-sheet-config-modal > ._config-table {\n width: 100%;\n border-collapse: collapse;\n margin-bottom: var(--gap-default);\n}\nsd-sheet-config-modal > ._sd-sheet-config-modal > ._config-table th,\nsd-sheet-config-modal > ._sd-sheet-config-modal > ._config-table td {\n border: 1px solid var(--trans-lighter);\n padding: var(--gap-sm) var(--gap-default);\n text-align: left;\n}\nsd-sheet-config-modal > ._sd-sheet-config-modal > ._config-table th {\n background: var(--theme-secondary-lightest);\n font-weight: bold;\n}\nsd-sheet-config-modal > ._sd-sheet-config-modal > ._config-table ._order-col {\n white-space: nowrap;\n}\nsd-sheet-config-modal > ._sd-sheet-config-modal > ._config-table ._width-input {\n width: 80px;\n padding: 2px 4px;\n border: 1px solid var(--trans-lighter);\n}\nsd-sheet-config-modal > ._sd-sheet-config-modal > ._actions {\n display: flex;\n justify-content: flex-end;\n gap: var(--gap-sm);\n}"], encapsulation: 2, changeDetection: 0 });
|
|
189
|
+
}
|
|
190
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SdSheetConfigModal, [{
|
|
191
|
+
type: Component,
|
|
192
|
+
args: [{ selector: "sd-sheet-config-modal", changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, standalone: true, imports: [SdButtonControl, SdCheckboxControl, NgIcon], template: `
|
|
193
|
+
<div class="_sd-sheet-config-modal">
|
|
194
|
+
<table class="_config-table">
|
|
195
|
+
<thead>
|
|
196
|
+
<tr>
|
|
197
|
+
<th>Fix</th>
|
|
198
|
+
<th>Order</th>
|
|
199
|
+
<th>Header</th>
|
|
200
|
+
<th>Width</th>
|
|
201
|
+
<th>Hidden</th>
|
|
202
|
+
</tr>
|
|
203
|
+
</thead>
|
|
204
|
+
<tbody>
|
|
205
|
+
@for (item of _items(); track item.key; let idx = $index) {
|
|
206
|
+
<tr>
|
|
207
|
+
<td>
|
|
208
|
+
<sd-checkbox
|
|
209
|
+
[value]="item.fixed"
|
|
210
|
+
(click)="onFixedToggle(idx)"
|
|
211
|
+
[inline]="true"
|
|
212
|
+
[inset]="true"
|
|
213
|
+
/>
|
|
214
|
+
</td>
|
|
215
|
+
<td class="_order-col">
|
|
216
|
+
<sd-button
|
|
217
|
+
[disabled]="!canMoveUp(idx)"
|
|
218
|
+
(click)="onMoveUp(idx)"
|
|
219
|
+
>
|
|
220
|
+
<ng-icon [svg]="_icons.tablerArrowUp" />
|
|
221
|
+
</sd-button>
|
|
222
|
+
<sd-button
|
|
223
|
+
[disabled]="!canMoveDown(idx)"
|
|
224
|
+
(click)="onMoveDown(idx)"
|
|
225
|
+
>
|
|
226
|
+
<ng-icon [svg]="_icons.tablerArrowDown" />
|
|
227
|
+
</sd-button>
|
|
228
|
+
</td>
|
|
229
|
+
<td>{{ item.header }}</td>
|
|
230
|
+
<td>
|
|
231
|
+
<input
|
|
232
|
+
type="text"
|
|
233
|
+
class="_width-input"
|
|
234
|
+
[value]="item.width"
|
|
235
|
+
(input)="onWidthChange(idx, $event)"
|
|
236
|
+
/>
|
|
237
|
+
</td>
|
|
238
|
+
<td>
|
|
239
|
+
<sd-checkbox
|
|
240
|
+
[value]="item.hidden"
|
|
241
|
+
(click)="onHiddenToggle(idx)"
|
|
242
|
+
[inline]="true"
|
|
243
|
+
[inset]="true"
|
|
244
|
+
/>
|
|
245
|
+
</td>
|
|
246
|
+
</tr>
|
|
247
|
+
}
|
|
248
|
+
</tbody>
|
|
249
|
+
</table>
|
|
250
|
+
<div class="_actions">
|
|
251
|
+
<sd-button [theme]="'primary'" (click)="onOk()">OK</sd-button>
|
|
252
|
+
<sd-button (click)="onCancel()">Cancel</sd-button>
|
|
253
|
+
<sd-button (click)="onReset()">Reset</sd-button>
|
|
254
|
+
</div>
|
|
255
|
+
</div>
|
|
256
|
+
`, styles: ["sd-sheet-config-modal {\n display: block;\n padding: var(--gap-default);\n}\nsd-sheet-config-modal > ._sd-sheet-config-modal > ._config-table {\n width: 100%;\n border-collapse: collapse;\n margin-bottom: var(--gap-default);\n}\nsd-sheet-config-modal > ._sd-sheet-config-modal > ._config-table th,\nsd-sheet-config-modal > ._sd-sheet-config-modal > ._config-table td {\n border: 1px solid var(--trans-lighter);\n padding: var(--gap-sm) var(--gap-default);\n text-align: left;\n}\nsd-sheet-config-modal > ._sd-sheet-config-modal > ._config-table th {\n background: var(--theme-secondary-lightest);\n font-weight: bold;\n}\nsd-sheet-config-modal > ._sd-sheet-config-modal > ._config-table ._order-col {\n white-space: nowrap;\n}\nsd-sheet-config-modal > ._sd-sheet-config-modal > ._config-table ._width-input {\n width: 80px;\n padding: 2px 4px;\n border: 1px solid var(--trans-lighter);\n}\nsd-sheet-config-modal > ._sd-sheet-config-modal > ._actions {\n display: flex;\n justify-content: flex-end;\n gap: var(--gap-sm);\n}"] }]
|
|
257
|
+
}], null, { close: [{ type: i0.Output, args: ["close"] }], controls: [{ type: i0.Input, args: [{ isSignal: true, alias: "controls", required: true }] }], config: [{ type: i0.Input, args: [{ isSignal: true, alias: "config", required: true }] }] }); })();
|
|
258
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SdSheetConfigModal, { className: "SdSheetConfigModal", filePath: "packages/angular/src/ui/data/sheet/sd-sheet-config.modal.ts", lineNumber: 143 }); })();
|