@sdcorejs/angular 19.3.1 → 19.3.3
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/assets/STYLE-GUIDE.md +25 -5
- package/assets/THEME.md +289 -5
- package/assets/licenses/tiptap-oss-NOTICES.txt +332 -0
- package/assets/scss/ckeditor5.scss +2 -88
- package/assets/scss/core/_control.scss +39 -0
- package/assets/scss/core/form.scss +444 -45
- package/assets/scss/core/view.scss +24 -0
- package/assets/scss/editor-content.scss +173 -0
- package/assets/scss/sd-core.scss +1 -0
- package/assets/scss/themes/_component-tokens.scss +123 -32
- package/assets/scss/themes/_material-tokens.scss +112 -0
- package/assets/scss/themes/_presets.scss +25 -0
- package/assets/scss/themes/_scales.scss +10 -0
- package/assets/scss/themes/_semantic.scss +13 -0
- package/assets/scss/themes/default.scss +8 -2
- package/components/avatar/index.d.ts +1 -0
- package/components/avatar/src/avatar-group.component.d.ts +43 -0
- package/components/avatar/src/avatar.component.d.ts +23 -1
- package/components/badge/index.d.ts +3 -0
- package/components/badge/src/badge-picker.component.d.ts +148 -0
- package/components/badge/src/badge-picker.constants.d.ts +18 -0
- package/components/badge/src/badge.component.d.ts +24 -3
- package/components/badge/src/badge.model.d.ts +19 -0
- package/components/button/src/button.component.d.ts +20 -1
- package/components/ckeditor-styles/src/ckeditor-styles.component.d.ts +3 -18
- package/components/editor/index.d.ts +1 -0
- package/components/editor/src/editor.component.d.ts +17 -15
- package/components/editor/src/models/editor.model.d.ts +5 -4
- package/components/editor/src/plugins/image-upload/utils/validate.utils.d.ts +5 -2
- package/components/editor/src/upload-manager.d.ts +21 -0
- package/components/editor-engine/index.d.ts +3 -0
- package/components/editor-engine/src/engine/editor-engine.d.ts +68 -0
- package/components/editor-engine/src/engine/editor-engine.models.d.ts +51 -0
- package/components/editor-engine/src/engine/editor-html-boundary.d.ts +6 -0
- package/components/editor-engine/src/engine/editor-schema.d.ts +3 -0
- package/components/editor-engine/src/surface/editor-surface.component.d.ts +50 -0
- package/components/editor-engine/src/toolbar/editor-button.directive.d.ts +17 -0
- package/components/editor-engine/src/toolbar/editor-toolbar.component.d.ts +78 -0
- package/components/file-explorer/src/components/actions.component.d.ts +1 -0
- package/components/file-explorer/src/file-explorer.model.d.ts +4 -2
- package/components/file-explorer/src/file-explorer.utils.d.ts +6 -2
- package/components/form-generic/src/components/elements/button-element.component.d.ts +16 -0
- package/components/form-generic/src/components/elements/index.d.ts +2 -0
- package/components/form-generic/src/components/elements/static-element.component.d.ts +26 -0
- package/components/form-generic/src/components/form-builder/canvas/field-preview.component.d.ts +10 -0
- package/components/form-generic/src/components/form-builder/form-builder.component.d.ts +9 -4
- package/components/form-generic/src/components/form-builder/inspector/inspector.component.d.ts +46 -0
- package/components/form-generic/src/components/form-builder/state/builder-document.d.ts +9 -1
- package/components/form-generic/src/components/form-builder/state/builder-palette.d.ts +2 -2
- package/components/form-generic/src/components/form-builder/state/builder-store.d.ts +13 -1
- package/components/form-generic/src/components/form-render/components/item/components/index.d.ts +2 -0
- package/components/form-generic/src/components/form-render/components/item/components/json/json.component.d.ts +26 -0
- package/components/form-generic/src/components/form-render/components/item/components/time/time.component.d.ts +17 -0
- package/components/form-generic/src/components/form-render/form-render.component.d.ts +64 -6
- package/components/form-generic/src/models/form-generic-element.model.d.ts +128 -0
- package/components/form-generic/src/models/form-generic-field.model.d.ts +5 -1
- package/components/form-generic/src/models/form-generic-schema.d.ts +9 -1
- package/components/form-generic/src/models/form-generic-schema.model.d.ts +7 -3
- package/components/form-generic/src/models/index.d.ts +1 -0
- package/components/form-generic/src/rules/form-generic-button.d.ts +21 -0
- package/components/form-generic/src/rules/form-generic-display.d.ts +2 -0
- package/components/form-generic/src/rules/form-generic-filter.d.ts +21 -3
- package/components/form-generic/src/rules/form-generic-url.d.ts +10 -0
- package/components/form-generic/src/rules/form-generic-validation.d.ts +13 -0
- package/components/history/pipes/view-date.pipe.d.ts +1 -0
- package/components/import-excel/src/pipes/column-transform.pipe.d.ts +1 -0
- package/components/index.d.ts +1 -0
- package/components/mini-editor/index.d.ts +1 -0
- package/components/mini-editor/src/mini-editor.component.d.ts +25 -62
- package/components/mini-editor/src/mini-editor.model.d.ts +9 -9
- package/components/modal-resizable/src/modal-resizable.component.d.ts +3 -121
- package/components/operator/index.d.ts +2 -0
- package/components/operator/src/operator-chip.component.d.ts +72 -0
- package/components/operator/src/operator-items.d.ts +49 -0
- package/components/operator/src/operator.component.d.ts +18 -11
- package/components/section/index.d.ts +1 -0
- package/components/section/src/section-registry.d.ts +11 -0
- package/components/splitter/index.d.ts +1 -1
- package/components/tab-router/src/actions/tab-router.action.d.ts +1 -1
- package/components/tab-router/src/components/tab-router-item/tab-router-item.component.d.ts +8 -1
- package/components/tab-router/src/components/tab-router-list-item/tab-router-list-item.component.d.ts +17 -0
- package/components/tab-router/src/components/tab-router-nav/tab-router-nav.component.d.ts +50 -9
- package/components/tab-router/src/components/tab-router-outlet/tab-router-outlet.component.d.ts +6 -1
- package/components/tab-router/src/models/tab-router.model.d.ts +5 -0
- package/components/tab-router/src/pipes/tab-info.pipe.d.ts +7 -0
- package/components/tab-router/src/services/tab-router.service.d.ts +5 -0
- package/components/table/index.d.ts +2 -0
- package/components/table/src/components/filter/column-filter/column-filter.component.d.ts +7 -0
- package/components/table/src/components/filter/external-filter/external-filter.component.d.ts +5 -1
- package/components/table/src/components/mobile-cards/mobile-cards.component.d.ts +4 -0
- package/components/table/src/components/unknown-total-paginator/unknown-total-paginator.component.d.ts +52 -0
- package/components/table/src/configurations/index.d.ts +1 -0
- package/components/table/src/configurations/table-layout.d.ts +16 -0
- package/components/table/src/configurations/table.configuration.d.ts +3 -1
- package/components/table/src/models/index.d.ts +1 -0
- package/components/table/src/models/table-column.model.d.ts +3 -10
- package/components/table/src/models/table-item.model.d.ts +4 -1
- package/components/table/src/models/table-option-loading.model.d.ts +42 -0
- package/components/table/src/models/table-option-paginate.model.d.ts +14 -0
- package/components/table/src/models/table-option.model.d.ts +31 -5
- package/components/table/src/services/table-aggregate.util.d.ts +6 -1
- package/components/table/src/services/table-export/table-export.service.d.ts +4 -3
- package/components/table/src/services/table-filter/table-filter-operator.util.d.ts +16 -0
- package/components/table/src/services/table-filter/table-filter.model.d.ts +12 -0
- package/components/table/src/services/table-loading/table-loading.util.d.ts +91 -0
- package/components/table/src/services/table-local/table-local-sort.util.d.ts +8 -2
- package/components/table/src/services/table-local/table-local.util.d.ts +7 -2
- package/components/table/src/services/table-paging/unknown-total.util.d.ts +28 -0
- package/components/table/src/services/tree/tree.util.d.ts +2 -0
- package/components/table/src/table.component.d.ts +39 -0
- package/components/upload-file/src/components/file-type-icon/file-type-icon.component.d.ts +15 -0
- package/components/upload-file/src/components/preview/preview.component.d.ts +88 -10
- package/components/upload-file/src/configurations/upload-file.configuration.d.ts +1 -1
- package/components/upload-file/src/helpers/file-type.d.ts +25 -0
- package/components/upload-file/src/pipes/file-meta.pipe.d.ts +9 -0
- package/components/upload-file/src/pipes/file-reason.pipe.d.ts +11 -0
- package/components/upload-file/src/pipes/index.d.ts +2 -0
- package/components/upload-file/src/upload-file.component.d.ts +89 -8
- package/components/window/index.d.ts +1 -0
- package/components/window/src/window.component.d.ts +77 -0
- package/components/{modal-resizable/src/modal-resizable.registry.d.ts → window/src/window.registry.d.ts} +7 -4
- package/configurations/src/sd-core.configuration.d.ts +7 -0
- package/fesm2022/sdcorejs-angular-components-api-contract-builder.mjs +5 -5
- package/fesm2022/sdcorejs-angular-components-api-contract-builder.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-avatar.mjs +141 -10
- package/fesm2022/sdcorejs-angular-components-avatar.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-badge.mjs +546 -22
- package/fesm2022/sdcorejs-angular-components-badge.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-button.mjs +32 -2
- package/fesm2022/sdcorejs-angular-components-button.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-ckeditor-styles.mjs +5 -20
- package/fesm2022/sdcorejs-angular-components-ckeditor-styles.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-data-state.mjs +1 -1
- package/fesm2022/sdcorejs-angular-components-data-state.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-editor-engine.mjs +1872 -0
- package/fesm2022/sdcorejs-angular-components-editor-engine.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-components-editor.mjs +456 -755
- package/fesm2022/sdcorejs-angular-components-editor.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-file-explorer.mjs +68 -37
- package/fesm2022/sdcorejs-angular-components-file-explorer.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-form-generic.mjs +2119 -1160
- package/fesm2022/sdcorejs-angular-components-form-generic.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-history.mjs +5 -2
- package/fesm2022/sdcorejs-angular-components-history.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-image-editor.mjs +1 -1
- package/fesm2022/sdcorejs-angular-components-image-editor.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-import-excel.mjs +21 -6
- package/fesm2022/sdcorejs-angular-components-import-excel.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-inform.mjs +1 -1
- package/fesm2022/sdcorejs-angular-components-inform.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-kanban.mjs +12 -2
- package/fesm2022/sdcorejs-angular-components-kanban.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-mini-editor.mjs +175 -281
- package/fesm2022/sdcorejs-angular-components-mini-editor.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-modal-resizable.mjs +1 -308
- package/fesm2022/sdcorejs-angular-components-modal-resizable.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-modal.mjs +2 -2
- package/fesm2022/sdcorejs-angular-components-modal.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-operator.mjs +261 -42
- package/fesm2022/sdcorejs-angular-components-operator.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-query-bar.mjs +12 -12
- package/fesm2022/sdcorejs-angular-components-query-bar.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-query-builder.mjs +1 -1
- package/fesm2022/sdcorejs-angular-components-query-builder.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-section.mjs +17 -5
- package/fesm2022/sdcorejs-angular-components-section.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-side-drawer.mjs +2 -2
- package/fesm2022/sdcorejs-angular-components-side-drawer.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-splitter.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-tab-router.mjs +557 -92
- package/fesm2022/sdcorejs-angular-components-tab-router.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-table.mjs +1000 -118
- package/fesm2022/sdcorejs-angular-components-table.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-tree.mjs +1 -1
- package/fesm2022/sdcorejs-angular-components-tree.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-upload-file.mjs +886 -173
- package/fesm2022/sdcorejs-angular-components-upload-file.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-view.mjs +2 -2
- package/fesm2022/sdcorejs-angular-components-view.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-window.mjs +486 -0
- package/fesm2022/sdcorejs-angular-components-window.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-components.mjs +1 -0
- package/fesm2022/sdcorejs-angular-components.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-configurations.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-directives.mjs +18 -1
- package/fesm2022/sdcorejs-angular-directives.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-autocomplete.mjs +20 -2
- package/fesm2022/sdcorejs-angular-forms-autocomplete.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-checkbox.mjs +2 -2
- package/fesm2022/sdcorejs-angular-forms-checkbox.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-chip-calendar.mjs +462 -124
- package/fesm2022/sdcorejs-angular-forms-chip-calendar.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-chip.mjs +421 -121
- package/fesm2022/sdcorejs-angular-forms-chip.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-date-range.mjs +78 -12
- package/fesm2022/sdcorejs-angular-forms-date-range.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-date.mjs +74 -17
- package/fesm2022/sdcorejs-angular-forms-date.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-datetime.mjs +79 -16
- package/fesm2022/sdcorejs-angular-forms-datetime.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-directives.mjs +82 -2
- package/fesm2022/sdcorejs-angular-forms-directives.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-entity-picker.mjs +2 -2
- package/fesm2022/sdcorejs-angular-forms-entity-picker.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-input-color.mjs +1 -1
- package/fesm2022/sdcorejs-angular-forms-input-color.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-input-number.mjs +55 -5
- package/fesm2022/sdcorejs-angular-forms-input-number.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-input.mjs +53 -6
- package/fesm2022/sdcorejs-angular-forms-input.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-models.mjs +88 -5
- package/fesm2022/sdcorejs-angular-forms-models.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-radio.mjs +2 -2
- package/fesm2022/sdcorejs-angular-forms-radio.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-segmented.mjs +5 -4
- package/fesm2022/sdcorejs-angular-forms-segmented.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-select.mjs +86 -32
- package/fesm2022/sdcorejs-angular-forms-select.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-switch.mjs +2 -2
- package/fesm2022/sdcorejs-angular-forms-switch.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-textarea.mjs +16 -3
- package/fesm2022/sdcorejs-angular-forms-textarea.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-time.mjs +2 -2
- package/fesm2022/sdcorejs-angular-forms-time.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-tree-select.mjs +1 -1
- package/fesm2022/sdcorejs-angular-forms-tree-select.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-i18n.mjs +1745 -22
- package/fesm2022/sdcorejs-angular-i18n.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-interceptors.mjs +1 -1
- package/fesm2022/sdcorejs-angular-interceptors.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-modules-generic-generic-configuration.page-Bk3PrEf3.mjs +478 -0
- package/fesm2022/sdcorejs-angular-modules-generic-generic-configuration.page-Bk3PrEf3.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-generic-generic-form-host.page-CwUegGgG.mjs +214 -0
- package/fesm2022/sdcorejs-angular-modules-generic-generic-form-host.page-CwUegGgG.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-generic-generic-list.page-lF2trhfp.mjs +277 -0
- package/fesm2022/sdcorejs-angular-modules-generic-generic-list.page-lF2trhfp.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-generic-sdcorejs-angular-modules-generic-BbmeOduc.mjs +1556 -0
- package/fesm2022/sdcorejs-angular-modules-generic-sdcorejs-angular-modules-generic-BbmeOduc.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-generic.mjs +2 -0
- package/fesm2022/sdcorejs-angular-modules-generic.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-icon.mjs +96 -3
- package/fesm2022/sdcorejs-angular-modules-icon.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-modules-layout.mjs +2053 -35
- package/fesm2022/sdcorejs-angular-modules-layout.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-api-error-BBWwQ6h2.mjs +23 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-api-error-BBWwQ6h2.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-approval-inbox-BMwD6_FC.mjs +16 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-approval-inbox-BMwD6_FC.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-base-api.service-CVEKaR8U.mjs +51 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-base-api.service-CVEKaR8U.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-create-side-drawer.component-BqHybMk0.mjs +130 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-create-side-drawer.component-BqHybMk0.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-create-side-drawer.component-CND3d2zl.mjs +131 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-create-side-drawer.component-CND3d2zl.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-create.component-BbDoQccI.mjs +99 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-create.component-BbDoQccI.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-create.component-CB_wJIP8.mjs +460 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-create.component-CB_wJIP8.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-create.component-DlP4BrhU.mjs +118 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-create.component-DlP4BrhU.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-customer.model-C3fr4yNw.mjs +18 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-customer.model-C3fr4yNw.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-customer.service-VAMePx_q.mjs +66 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-customer.service-VAMePx_q.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-detail-side-drawer.component-BD79VR0c.mjs +148 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-detail-side-drawer.component-BD79VR0c.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-detail.component-B1rFhbOc.mjs +172 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-detail.component-B1rFhbOc.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-detail.component-BhCjw6ZL.mjs +467 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-detail.component-BhCjw6ZL.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-detail.component-CnL2FzCx.mjs +90 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-detail.component-CnL2FzCx.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-flow.component-BeH-NYvE.mjs +514 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-flow.component-BeH-NYvE.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-form-api-errors-DpnYSG2j.mjs +61 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-form-api-errors-DpnYSG2j.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-general-information-form.component-1bi0JZdf.mjs +170 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-general-information-form.component-1bi0JZdf.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-general-information-form.component-D6eKR2cq.mjs +87 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-general-information-form.component-D6eKR2cq.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-general-information-form.component-FcJS3Nbd.mjs +232 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-general-information-form.component-FcJS3Nbd.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-general-information-view.component-BA-3FR1J.mjs +70 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-general-information-view.component-BA-3FR1J.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-index.component-BAZLCVci.mjs +100 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-index.component-BAZLCVci.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-lines-form.component-ikk0cK1M.mjs +522 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-lines-form.component-ikk0cK1M.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-Cex41xzy.mjs +164 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-Cex41xzy.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-D643jEmo.mjs +629 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-D643jEmo.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-DTWHhNNl.mjs +71 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-DTWHhNNl.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-YJUJsrIZ.mjs +115 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-YJUJsrIZ.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-qH-YO6wP.mjs +118 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-qH-YO6wP.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-mock-backend.factory-S0Vuy6Oc.mjs +1069 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-mock-backend.factory-S0Vuy6Oc.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-pattern-source-viewer-BpLQaYP5.mjs +186 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-pattern-source-viewer-BpLQaYP5.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-pattern-source.generated-BrejHvB2.mjs +97 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-pattern-source.generated-BrejHvB2.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-product.model-BoHLJ8vf.mjs +12 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-product.model-BoHLJ8vf.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-product.service-Ba73HPGG.mjs +48 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-product.service-Ba73HPGG.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-profile.component-CBlN7eEn.mjs +295 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-profile.component-CBlN7eEn.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-BvzFafUW.mjs +74 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-BvzFafUW.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-C3uWi8JZ.mjs +165 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-C3uWi8JZ.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-C5ELCTEw.mjs +74 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-C5ELCTEw.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-ClQwnO4h.mjs +50 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-ClQwnO4h.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-DTUxYZ6g.mjs +66 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-DTUxYZ6g.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-DpCuYBlL.mjs +99 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-DpCuYBlL.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-DwZWxmJf.mjs +45 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-DwZWxmJf.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-ydOZduls.mjs +43 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-ydOZduls.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-sdcorejs-angular-modules-pattern-D3B5I9hg.mjs +406 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-sdcorejs-angular-modules-pattern-D3B5I9hg.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-shell.component-BW-i6BHg.mjs +317 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-shell.component-BW-i6BHg.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-update-side-drawer.component-By1mYFa_.mjs +132 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-update-side-drawer.component-By1mYFa_.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-update-side-drawer.component-DwcyKb4j.mjs +143 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-update-side-drawer.component-DwcyKb4j.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-update.component-BBR8360C.mjs +100 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-update.component-BBR8360C.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-update.component-CAtqPgIH.mjs +357 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-update.component-CAtqPgIH.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-update.component-DjMChf6s.mjs +128 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-update.component-DjMChf6s.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern.mjs +2 -0
- package/fesm2022/sdcorejs-angular-modules-pattern.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules.mjs +1 -0
- package/fesm2022/sdcorejs-angular-modules.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-pipes.mjs +27 -7
- package/fesm2022/sdcorejs-angular-pipes.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-services-confirm.mjs +1 -1
- package/fesm2022/sdcorejs-angular-services-confirm.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-services-date-time.mjs +143 -0
- package/fesm2022/sdcorejs-angular-services-date-time.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-services-storage.mjs +44 -8
- package/fesm2022/sdcorejs-angular-services-storage.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-services-unsaved-changes.mjs +104 -4
- package/fesm2022/sdcorejs-angular-services-unsaved-changes.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-services.mjs +1 -0
- package/fesm2022/sdcorejs-angular-services.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-utilities-read-state.mjs +4 -0
- package/fesm2022/sdcorejs-angular-utilities-read-state.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-utilities-theme.mjs +10 -0
- package/fesm2022/sdcorejs-angular-utilities-theme.mjs.map +1 -1
- package/forms/autocomplete/src/autocomplete.component.d.ts +5 -0
- package/forms/chip/src/chip.component.d.ts +135 -19
- package/forms/chip/src/index.d.ts +0 -1
- package/forms/chip-calendar/src/chip-calendar-header.component.d.ts +17 -0
- package/forms/chip-calendar/src/chip-calendar.component.d.ts +147 -19
- package/forms/date/src/date.component.d.ts +23 -2
- package/forms/date-range/src/date-range.component.d.ts +24 -2
- package/forms/datetime/src/datetime-time-zone.adapter.d.ts +15 -0
- package/forms/directives/index.d.ts +1 -0
- package/forms/directives/src/search-field.component.d.ts +45 -0
- package/forms/input/src/input.component.d.ts +23 -2
- package/forms/input-number/src/input-number.component.d.ts +23 -2
- package/forms/models/index.d.ts +1 -0
- package/forms/models/src/sd-calendar-day.d.ts +22 -0
- package/forms/models/src/sd-model-facing-control.d.ts +3 -1
- package/forms/models/src/sd-strict-date-adapter.d.ts +3 -0
- package/forms/models/src/sd-temporal-transform.d.ts +7 -0
- package/forms/select/src/select.component.d.ts +33 -4
- package/i18n/src/en.d.ts +344 -2
- package/modules/generic/index.d.ts +4 -0
- package/modules/generic/src/components/configuration-form/generic-configuration-form.component.d.ts +33 -0
- package/modules/generic/src/components/configuration-general/generic-configuration-general.component.d.ts +28 -0
- package/modules/generic/src/components/configuration-import/generic-configuration-import.component.d.ts +27 -0
- package/modules/generic/src/components/configuration-list/generic-configuration-list.component.d.ts +39 -0
- package/modules/generic/src/components/import-dialog/generic-import-dialog.component.d.ts +15 -0
- package/modules/generic/src/components/property-identity/generic-property-identity.component.d.ts +15 -0
- package/modules/generic/src/core/generic-columns.d.ts +19 -0
- package/modules/generic/src/core/generic-defaults.d.ts +14 -0
- package/modules/generic/src/core/generic-form.d.ts +17 -0
- package/modules/generic/src/core/generic-import.d.ts +49 -0
- package/modules/generic/src/core/generic-merge.d.ts +21 -0
- package/modules/generic/src/core/generic-permission.d.ts +3 -0
- package/modules/generic/src/core/generic-property-icon.d.ts +8 -0
- package/modules/generic/src/core/generic-search.d.ts +19 -0
- package/modules/generic/src/core/generic-title.d.ts +11 -0
- package/modules/generic/src/core/generic-validate.d.ts +8 -0
- package/modules/generic/src/core/index.d.ts +10 -0
- package/modules/generic/src/models/generic-adapter.model.d.ts +49 -0
- package/modules/generic/src/models/generic-entity.model.d.ts +71 -0
- package/modules/generic/src/models/generic-issue.model.d.ts +29 -0
- package/modules/generic/src/models/generic-schema.model.d.ts +133 -0
- package/modules/generic/src/models/index.d.ts +4 -0
- package/modules/generic/src/pages/configuration/generic-configuration.page.d.ts +26 -0
- package/modules/generic/src/pages/form/generic-form-host.page.d.ts +42 -0
- package/modules/generic/src/pages/list/generic-list.page.d.ts +39 -0
- package/modules/generic/src/registry/generic-registry.d.ts +35 -0
- package/modules/generic/src/registry/index.d.ts +2 -0
- package/modules/generic/src/registry/provide-sd-generic.d.ts +15 -0
- package/modules/generic/src/routes/generic-route.guards.d.ts +24 -0
- package/modules/generic/src/routes/sd-generic.routes.d.ts +10 -0
- package/modules/generic/src/services/generic-configuration-store.d.ts +13 -0
- package/modules/generic/src/services/generic-data.service.d.ts +34 -0
- package/modules/generic/src/services/generic-import.service.d.ts +21 -0
- package/modules/generic/src/services/generic-permission.service.d.ts +26 -0
- package/modules/generic/src/services/generic-relation-catalog.d.ts +14 -0
- package/modules/generic/src/services/generic-schema.service.d.ts +28 -0
- package/modules/generic/src/services/index.d.ts +6 -0
- package/modules/icon/src/data-type-icon.d.ts +30 -0
- package/modules/icon/src/icon.model.d.ts +2 -1
- package/modules/icon/src/index.d.ts +1 -0
- package/modules/index.d.ts +1 -0
- package/modules/layout/components/index.d.ts +5 -0
- package/modules/layout/components/layout-main/layout-main.component.d.ts +2 -1
- package/modules/layout/components/page/page-form-leave.guard.d.ts +9 -0
- package/modules/layout/components/page/page.component.d.ts +38 -2
- package/modules/layout/components/page-list/page-list.component.d.ts +42 -0
- package/modules/layout/components/shared/context-switcher/context-switcher.component.d.ts +71 -0
- package/modules/layout/components/shared/user-menu/user-menu.component.d.ts +1 -1
- package/modules/layout/components/sidebar-mobile-v4/main.component.d.ts +95 -0
- package/modules/layout/components/sidebar-v1/components/sidebar/sidebar.component.d.ts +1 -0
- package/modules/layout/components/sidebar-v3/main.component.d.ts +3 -0
- package/modules/layout/components/sidebar-v4/main.component.d.ts +69 -0
- package/modules/layout/components/sidebar-v4/menu-tree/sidebar-v4-menu-tree.component.d.ts +174 -0
- package/modules/layout/configurations/layout.configuration.d.ts +46 -1
- package/modules/layout/services/context/context.model.d.ts +16 -0
- package/modules/layout/services/context/context.runtime.d.ts +14 -0
- package/modules/layout/services/context/context.service.d.ts +54 -0
- package/modules/layout/services/context/index.d.ts +3 -0
- package/modules/layout/services/index.d.ts +1 -0
- package/modules/layout/services/menu/menu.model.d.ts +33 -0
- package/modules/layout/services/menu/menu.utils.d.ts +32 -1
- package/modules/layout/services/storage/storage.service.d.ts +20 -1
- package/modules/pattern/README.md +76 -0
- package/modules/pattern/configurations/pattern.configuration.d.ts +30 -0
- package/modules/pattern/configurations/provide-sd-patterns.d.ts +19 -0
- package/modules/pattern/core/mock-api/mock-api.interceptor.d.ts +8 -0
- package/modules/pattern/core/mock-api/mock-api.model.d.ts +62 -0
- package/modules/pattern/core/mock-api/mock-api.state.d.ts +36 -0
- package/modules/pattern/core/mock-api/mock-backend.d.ts +18 -0
- package/modules/pattern/core/mock-api/mock-backend.factory.d.ts +3 -0
- package/modules/pattern/core/mock-api/prng.d.ts +4 -0
- package/modules/pattern/core/mock-api/resources/approval.resource.d.ts +14 -0
- package/modules/pattern/core/mock-api/resources/category.resource.d.ts +9 -0
- package/modules/pattern/core/mock-api/resources/customer.resource.d.ts +22 -0
- package/modules/pattern/core/mock-api/resources/index.d.ts +3 -0
- package/modules/pattern/core/mock-api/resources/names.d.ts +5 -0
- package/modules/pattern/core/mock-api/resources/order.resource.d.ts +44 -0
- package/modules/pattern/core/mock-api/resources/partner.resource.d.ts +16 -0
- package/modules/pattern/core/mock-api/resources/product.resource.d.ts +13 -0
- package/modules/pattern/core/mock-api/resources/settings.resource.d.ts +18 -0
- package/modules/pattern/core/pattern-shell/catalog/pattern-catalog.d.ts +22 -0
- package/modules/pattern/core/pattern-shell/index/index.component.d.ts +9 -0
- package/modules/pattern/core/pattern-shell/settings/pattern-settings.store.d.ts +57 -0
- package/modules/pattern/core/pattern-shell/settings/settings-button.component.d.ts +44 -0
- package/modules/pattern/core/pattern-shell/shell/pattern-source-viewer.d.ts +8 -0
- package/modules/pattern/core/pattern-shell/shell/shell.component.d.ts +13 -0
- package/modules/pattern/core/pattern-shell/source/pattern-source.generated.d.ts +1 -0
- package/modules/pattern/core/pattern-shell/source/source-drawer.component.d.ts +27 -0
- package/modules/pattern/core/pattern-shell/toolbar/toolbar.component.d.ts +24 -0
- package/modules/pattern/core/permission/pattern-permission.d.ts +15 -0
- package/modules/pattern/core/permission/pattern-role.store.d.ts +13 -0
- package/modules/pattern/core/session-state.d.ts +4 -0
- package/modules/pattern/docs/detail.md +237 -0
- package/modules/pattern/docs/drawer.md +484 -0
- package/modules/pattern/docs/flow.md +631 -0
- package/modules/pattern/docs/form.md +518 -0
- package/modules/pattern/docs/header-actions.md +342 -0
- package/modules/pattern/docs/list.md +247 -0
- package/modules/pattern/docs/relation.md +180 -0
- package/modules/pattern/docs/select.md +206 -0
- package/modules/pattern/docs/split.md +350 -0
- package/modules/pattern/docs/states.md +168 -0
- package/modules/pattern/features/approval/entity.resolver.d.ts +4 -0
- package/modules/pattern/features/approval/entity.resolver.ts +21 -0
- package/modules/pattern/features/approval/pages/detail/detail.component.d.ts +13 -0
- package/modules/pattern/features/approval/pages/detail/detail.component.ts +139 -0
- package/modules/pattern/features/approval/pages/list/approval-inbox.d.ts +7 -0
- package/modules/pattern/features/approval/pages/list/approval-inbox.ts +7 -0
- package/modules/pattern/features/approval/pages/list/list.component.d.ts +26 -0
- package/modules/pattern/features/approval/pages/list/list.component.html +20 -0
- package/modules/pattern/features/approval/pages/list/list.component.ts +149 -0
- package/modules/pattern/features/approval/routes.d.ts +3 -0
- package/modules/pattern/features/approval/routes.ts +30 -0
- package/modules/pattern/features/approval/services/approval.model.d.ts +37 -0
- package/modules/pattern/features/approval/services/approval.model.ts +38 -0
- package/modules/pattern/features/approval/services/approval.service.d.ts +12 -0
- package/modules/pattern/features/approval/services/approval.service.ts +23 -0
- package/modules/pattern/features/category/components/create-side-drawer/create-side-drawer.component.d.ts +23 -0
- package/modules/pattern/features/category/components/create-side-drawer/create-side-drawer.component.ts +123 -0
- package/modules/pattern/features/category/components/general-information-form/general-information-form.component.d.ts +20 -0
- package/modules/pattern/features/category/components/general-information-form/general-information-form.component.ts +61 -0
- package/modules/pattern/features/category/components/update-side-drawer/update-side-drawer.component.d.ts +23 -0
- package/modules/pattern/features/category/components/update-side-drawer/update-side-drawer.component.ts +134 -0
- package/modules/pattern/features/category/entity.resolver.d.ts +6 -0
- package/modules/pattern/features/category/entity.resolver.ts +27 -0
- package/modules/pattern/features/category/pages/list/list.component.d.ts +17 -0
- package/modules/pattern/features/category/pages/list/list.component.html +20 -0
- package/modules/pattern/features/category/pages/list/list.component.ts +105 -0
- package/modules/pattern/features/category/routes.d.ts +3 -0
- package/modules/pattern/features/category/routes.ts +42 -0
- package/modules/pattern/features/category/services/category.model.d.ts +34 -0
- package/modules/pattern/features/category/services/category.model.ts +39 -0
- package/modules/pattern/features/category/services/category.service.d.ts +17 -0
- package/modules/pattern/features/category/services/category.service.ts +36 -0
- package/modules/pattern/features/customer/components/create-side-drawer/create-side-drawer.component.d.ts +24 -0
- package/modules/pattern/features/customer/components/create-side-drawer/create-side-drawer.component.ts +131 -0
- package/modules/pattern/features/customer/components/customer-select/customer-select.component.d.ts +20 -0
- package/modules/pattern/features/customer/components/customer-select/customer-select.component.ts +72 -0
- package/modules/pattern/features/customer/components/customer-type-select/customer-type-select.component.d.ts +20 -0
- package/modules/pattern/features/customer/components/customer-type-select/customer-type-select.component.ts +30 -0
- package/modules/pattern/features/customer/components/debts-view/debts-view.component.d.ts +11 -0
- package/modules/pattern/features/customer/components/debts-view/debts-view.component.ts +28 -0
- package/modules/pattern/features/customer/components/detail-side-drawer/detail-side-drawer.component.d.ts +20 -0
- package/modules/pattern/features/customer/components/detail-side-drawer/detail-side-drawer.component.ts +106 -0
- package/modules/pattern/features/customer/components/documents-view/documents-view.component.d.ts +14 -0
- package/modules/pattern/features/customer/components/documents-view/documents-view.component.ts +50 -0
- package/modules/pattern/features/customer/components/general-information-form/general-information-form.component.d.ts +33 -0
- package/modules/pattern/features/customer/components/general-information-form/general-information-form.component.ts +140 -0
- package/modules/pattern/features/customer/components/general-information-view/general-information-view.component.d.ts +9 -0
- package/modules/pattern/features/customer/components/general-information-view/general-information-view.component.ts +39 -0
- package/modules/pattern/features/customer/components/orders-view/orders-view.component.d.ts +11 -0
- package/modules/pattern/features/customer/components/orders-view/orders-view.component.ts +35 -0
- package/modules/pattern/features/customer/components/summary-cards/summary-cards.component.d.ts +22 -0
- package/modules/pattern/features/customer/components/summary-cards/summary-cards.component.ts +101 -0
- package/modules/pattern/features/customer/components/update-side-drawer/update-side-drawer.component.d.ts +24 -0
- package/modules/pattern/features/customer/components/update-side-drawer/update-side-drawer.component.ts +127 -0
- package/modules/pattern/features/customer/entity.resolver.d.ts +4 -0
- package/modules/pattern/features/customer/entity.resolver.ts +21 -0
- package/modules/pattern/features/customer/pages/list/list.component.d.ts +19 -0
- package/modules/pattern/features/customer/pages/list/list.component.html +22 -0
- package/modules/pattern/features/customer/pages/list/list.component.ts +113 -0
- package/modules/pattern/features/customer/pages/profile/profile.component.d.ts +31 -0
- package/modules/pattern/features/customer/pages/profile/profile.component.ts +120 -0
- package/modules/pattern/features/customer/pipes/customer-detail.pipe.d.ts +14 -0
- package/modules/pattern/features/customer/pipes/customer-detail.pipe.ts +18 -0
- package/modules/pattern/features/customer/routes.d.ts +6 -0
- package/modules/pattern/features/customer/routes.ts +59 -0
- package/modules/pattern/features/customer/services/customer.model.d.ts +77 -0
- package/modules/pattern/features/customer/services/customer.model.ts +87 -0
- package/modules/pattern/features/customer/services/customer.service.d.ts +24 -0
- package/modules/pattern/features/customer/services/customer.service.ts +79 -0
- package/modules/pattern/features/import/components/mapping-form/mapping-form.component.d.ts +21 -0
- package/modules/pattern/features/import/components/mapping-form/mapping-form.component.ts +41 -0
- package/modules/pattern/features/import/components/preview-view/preview-view.component.d.ts +10 -0
- package/modules/pattern/features/import/components/preview-view/preview-view.component.ts +44 -0
- package/modules/pattern/features/import/pages/flow/flow.component.d.ts +43 -0
- package/modules/pattern/features/import/pages/flow/flow.component.ts +269 -0
- package/modules/pattern/features/import/routes.d.ts +2 -0
- package/modules/pattern/features/import/routes.ts +19 -0
- package/modules/pattern/features/import/services/import.model.d.ts +38 -0
- package/modules/pattern/features/import/services/import.model.ts +82 -0
- package/modules/pattern/features/import/services/import.service.d.ts +15 -0
- package/modules/pattern/features/import/services/import.service.ts +18 -0
- package/modules/pattern/features/order/components/approval-steps/approval-steps.component.d.ts +9 -0
- package/modules/pattern/features/order/components/approval-steps/approval-steps.component.ts +74 -0
- package/modules/pattern/features/order/components/bulk-result/bulk-result.component.d.ts +22 -0
- package/modules/pattern/features/order/components/bulk-result/bulk-result.component.ts +46 -0
- package/modules/pattern/features/order/components/general-information-form/general-information-form.component.d.ts +30 -0
- package/modules/pattern/features/order/components/general-information-form/general-information-form.component.ts +96 -0
- package/modules/pattern/features/order/components/lines-form/lines-form.component.d.ts +33 -0
- package/modules/pattern/features/order/components/lines-form/lines-form.component.ts +205 -0
- package/modules/pattern/features/order/components/lines-view/lines-view.component.d.ts +12 -0
- package/modules/pattern/features/order/components/lines-view/lines-view.component.ts +42 -0
- package/modules/pattern/features/order/components/summary-cards/summary-cards.component.d.ts +25 -0
- package/modules/pattern/features/order/components/summary-cards/summary-cards.component.ts +128 -0
- package/modules/pattern/features/order/entity.resolver.d.ts +9 -0
- package/modules/pattern/features/order/entity.resolver.ts +37 -0
- package/modules/pattern/features/order/pages/create/create.component.d.ts +16 -0
- package/modules/pattern/features/order/pages/create/create.component.ts +99 -0
- package/modules/pattern/features/order/pages/detail/detail.component.d.ts +26 -0
- package/modules/pattern/features/order/pages/detail/detail.component.ts +222 -0
- package/modules/pattern/features/order/pages/list/list.component.d.ts +29 -0
- package/modules/pattern/features/order/pages/list/list.component.html +38 -0
- package/modules/pattern/features/order/pages/list/list.component.ts +291 -0
- package/modules/pattern/features/order/pages/update/update.component.d.ts +20 -0
- package/modules/pattern/features/order/pages/update/update.component.ts +119 -0
- package/modules/pattern/features/order/routes.d.ts +7 -0
- package/modules/pattern/features/order/routes.ts +54 -0
- package/modules/pattern/features/order/services/order.model.d.ts +106 -0
- package/modules/pattern/features/order/services/order.model.ts +109 -0
- package/modules/pattern/features/order/services/order.service.d.ts +25 -0
- package/modules/pattern/features/order/services/order.service.ts +63 -0
- package/modules/pattern/features/partner/pages/create/create.component.d.ts +41 -0
- package/modules/pattern/features/partner/pages/create/create.component.ts +324 -0
- package/modules/pattern/features/partner/routes.d.ts +2 -0
- package/modules/pattern/features/partner/routes.ts +20 -0
- package/modules/pattern/features/partner/services/partner.model.d.ts +30 -0
- package/modules/pattern/features/partner/services/partner.model.ts +30 -0
- package/modules/pattern/features/partner/services/partner.service.d.ts +13 -0
- package/modules/pattern/features/partner/services/partner.service.ts +17 -0
- package/modules/pattern/features/product/components/general-information-form/general-information-form.component.d.ts +23 -0
- package/modules/pattern/features/product/components/general-information-form/general-information-form.component.ts +88 -0
- package/modules/pattern/features/product/components/product-select/product-select.component.d.ts +20 -0
- package/modules/pattern/features/product/components/product-select/product-select.component.ts +65 -0
- package/modules/pattern/features/product/components/product-status-select/product-status-select.component.d.ts +22 -0
- package/modules/pattern/features/product/components/product-status-select/product-status-select.component.ts +30 -0
- package/modules/pattern/features/product/entity.resolver.d.ts +4 -0
- package/modules/pattern/features/product/entity.resolver.ts +21 -0
- package/modules/pattern/features/product/pages/create/create.component.d.ts +15 -0
- package/modules/pattern/features/product/pages/create/create.component.ts +85 -0
- package/modules/pattern/features/product/pages/detail/detail.component.d.ts +10 -0
- package/modules/pattern/features/product/pages/detail/detail.component.ts +53 -0
- package/modules/pattern/features/product/pages/list/list.component.d.ts +15 -0
- package/modules/pattern/features/product/pages/list/list.component.html +30 -0
- package/modules/pattern/features/product/pages/list/list.component.ts +71 -0
- package/modules/pattern/features/product/pages/update/update.component.d.ts +16 -0
- package/modules/pattern/features/product/pages/update/update.component.ts +86 -0
- package/modules/pattern/features/product/pipes/product-detail.pipe.d.ts +14 -0
- package/modules/pattern/features/product/pipes/product-detail.pipe.ts +18 -0
- package/modules/pattern/features/product/routes.d.ts +3 -0
- package/modules/pattern/features/product/routes.ts +48 -0
- package/modules/pattern/features/product/services/product.model.d.ts +34 -0
- package/modules/pattern/features/product/services/product.model.ts +38 -0
- package/modules/pattern/features/product/services/product.service.d.ts +17 -0
- package/modules/pattern/features/product/services/product.service.ts +48 -0
- package/modules/pattern/features/settings/pages/update/update.component.d.ts +26 -0
- package/modules/pattern/features/settings/pages/update/update.component.ts +227 -0
- package/modules/pattern/features/settings/routes.d.ts +3 -0
- package/modules/pattern/features/settings/routes.ts +24 -0
- package/modules/pattern/features/settings/services/settings.model.d.ts +17 -0
- package/modules/pattern/features/settings/services/settings.model.ts +18 -0
- package/modules/pattern/features/settings/services/settings.service.d.ts +10 -0
- package/modules/pattern/features/settings/services/settings.service.ts +15 -0
- package/modules/pattern/features/settings/settings.resolver.d.ts +4 -0
- package/modules/pattern/features/settings/settings.resolver.ts +8 -0
- package/modules/pattern/index.d.ts +3 -0
- package/modules/pattern/routes.d.ts +6 -0
- package/modules/pattern/services/base-api.service.d.ts +16 -0
- package/modules/pattern/utils/api-error.d.ts +4 -0
- package/modules/pattern/utils/focus-first-invalid.d.ts +5 -0
- package/modules/pattern/utils/form-api-errors.d.ts +16 -0
- package/modules/pattern/utils/resource-url.d.ts +2 -0
- package/package.json +49 -12
- package/pipes/src/format-date.pipe.d.ts +1 -0
- package/pipes/src/format-datetime.pipe.d.ts +1 -0
- package/services/date-time/index.d.ts +1 -0
- package/services/date-time/src/date-time.service.d.ts +54 -0
- package/services/index.d.ts +1 -0
- package/services/storage/src/storage.model.d.ts +8 -1
- package/services/unsaved-changes/src/unsaved-changes.adapters.d.ts +9 -0
- package/services/unsaved-changes/src/unsaved-changes.model.d.ts +2 -0
- package/utilities/read-state/src/read-state.d.ts +2 -0
- package/utilities/theme/src/theme-tokens.d.ts +1 -1
- package/components/editor/src/plugins/image-upload/image-upload.plugin.d.ts +0 -22
- package/components/editor/src/plugins/image-upload/utils/batch.utils.d.ts +0 -14
- package/components/editor/src/plugins/image-upload/utils/index.d.ts +0 -3
- package/forms/chip/src/pipes/index.d.ts +0 -1
- package/forms/chip/src/pipes/removable-chip.pipe.d.ts +0 -8
- package/forms/chip-calendar/src/pipes/index.d.ts +0 -1
- package/forms/chip-calendar/src/pipes/removable-chip.pipe.d.ts +0 -8
|
@@ -59,11 +59,11 @@ class SdView {
|
|
|
59
59
|
/** Effective value template: input from parent wins, else the projected `#sdValue`. Cached for the same reason. */
|
|
60
60
|
activeValueTemplate = computed(() => this.valueTemplate() ?? this.contentValueTemplate());
|
|
61
61
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: SdView, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
62
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.21", type: SdView, isStandalone: true, selector: "sd-view", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, display: { classPropertyName: "display", publicName: "display", isSignal: true, isRequired: true, transformFunction: null }, hyperlink: { classPropertyName: "hyperlink", publicName: "hyperlink", isSignal: true, isRequired: false, transformFunction: null }, labelTemplate: { classPropertyName: "labelTemplate", publicName: "labelTemplate", isSignal: true, isRequired: false, transformFunction: null }, valueTemplate: { classPropertyName: "valueTemplate", publicName: "valueTemplate", isSignal: true, isRequired: false, transformFunction: null }, selectedItems: { classPropertyName: "selectedItems", publicName: "selectedItems", isSignal: true, isRequired: false, transformFunction: null } }, queries: [{ propertyName: "contentLabelTemplate", first: true, predicate: ["sdLabel"], descendants: true, isSignal: true }, { propertyName: "contentValueTemplate", first: true, predicate: ["sdValue"], descendants: true, isSignal: true }], ngImport: i0, template: "@if (activeLabelTemplate()) {\n <ng-container *ngTemplateOutlet=\"activeLabelTemplate()!\"></ng-container>\n} @else {\n @if (label()) {\n <div class=\"T14R
|
|
62
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.21", type: SdView, isStandalone: true, selector: "sd-view", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, display: { classPropertyName: "display", publicName: "display", isSignal: true, isRequired: true, transformFunction: null }, hyperlink: { classPropertyName: "hyperlink", publicName: "hyperlink", isSignal: true, isRequired: false, transformFunction: null }, labelTemplate: { classPropertyName: "labelTemplate", publicName: "labelTemplate", isSignal: true, isRequired: false, transformFunction: null }, valueTemplate: { classPropertyName: "valueTemplate", publicName: "valueTemplate", isSignal: true, isRequired: false, transformFunction: null }, selectedItems: { classPropertyName: "selectedItems", publicName: "selectedItems", isSignal: true, isRequired: false, transformFunction: null } }, queries: [{ propertyName: "contentLabelTemplate", first: true, predicate: ["sdLabel"], descendants: true, isSignal: true }, { propertyName: "contentValueTemplate", first: true, predicate: ["sdValue"], descendants: true, isSignal: true }], ngImport: i0, template: "@if (activeLabelTemplate()) {\n <ng-container *ngTemplateOutlet=\"activeLabelTemplate()!\"></ng-container>\n} @else {\n @if (label()) {\n <div class=\"sd-view-label T14R\">{{ label() }}</div>\n }\n}\n\n<!--\n why: context ph\u1EA3i \u0111\u1EE7 cho M\u1ECCI consumer template (sdViewDef / #sdValue d\u00F9ng chung \u0111\u01B0\u1EDDng n\u00E0y):\n $implicit = display (cho `let-x`), value = gi\u00E1 tr\u1ECB th\u00F4, selectedItems = list item \u0111\u00E3 ch\u1ECDn\n (template \"head +N\"), selectedItem = item \u0111\u1EA7u (ti\u1EC7n cho single-select). Thi\u1EBFu key n\u00E0o l\u00E0\n template c\u1EE7a consumer m\u1EA5t bi\u1EBFn \u0111\u00F3 \u2192 \u0111\u1EEBng r\u00FAt g\u1ECDn.\n-->\n@if (activeValueTemplate()) {\n <ng-container\n *ngTemplateOutlet=\"\n activeValueTemplate()!;\n context: {\n $implicit: display(),\n value: value(),\n selectedItems: selectedItems(),\n selectedItem: (selectedItems() ?? [])[0] ?? null,\n }\n \">\n </ng-container>\n} @else {\n @if (hyperlink(); as link) {\n <a [sdHref]=\"link\">{{ display() | sdView }}</a>\n } @else {\n <div class=\"sd-view-value T14M\">{{ display() | sdView }}</div>\n }\n}\n", dependencies: [{ kind: "pipe", type: SdViewPipe, name: "sdView" }, { kind: "directive", type: SdHrefDirective, selector: "a[sdHref]", inputs: ["sdHref"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
63
63
|
}
|
|
64
64
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: SdView, decorators: [{
|
|
65
65
|
type: Component,
|
|
66
|
-
args: [{ selector: 'sd-view', standalone: true, imports: [SdViewPipe, SdHrefDirective, NgTemplateOutlet], changeDetection: ChangeDetectionStrategy.OnPush, template: "@if (activeLabelTemplate()) {\n <ng-container *ngTemplateOutlet=\"activeLabelTemplate()!\"></ng-container>\n} @else {\n @if (label()) {\n <div class=\"T14R
|
|
66
|
+
args: [{ selector: 'sd-view', standalone: true, imports: [SdViewPipe, SdHrefDirective, NgTemplateOutlet], changeDetection: ChangeDetectionStrategy.OnPush, template: "@if (activeLabelTemplate()) {\n <ng-container *ngTemplateOutlet=\"activeLabelTemplate()!\"></ng-container>\n} @else {\n @if (label()) {\n <div class=\"sd-view-label T14R\">{{ label() }}</div>\n }\n}\n\n<!--\n why: context ph\u1EA3i \u0111\u1EE7 cho M\u1ECCI consumer template (sdViewDef / #sdValue d\u00F9ng chung \u0111\u01B0\u1EDDng n\u00E0y):\n $implicit = display (cho `let-x`), value = gi\u00E1 tr\u1ECB th\u00F4, selectedItems = list item \u0111\u00E3 ch\u1ECDn\n (template \"head +N\"), selectedItem = item \u0111\u1EA7u (ti\u1EC7n cho single-select). Thi\u1EBFu key n\u00E0o l\u00E0\n template c\u1EE7a consumer m\u1EA5t bi\u1EBFn \u0111\u00F3 \u2192 \u0111\u1EEBng r\u00FAt g\u1ECDn.\n-->\n@if (activeValueTemplate()) {\n <ng-container\n *ngTemplateOutlet=\"\n activeValueTemplate()!;\n context: {\n $implicit: display(),\n value: value(),\n selectedItems: selectedItems(),\n selectedItem: (selectedItems() ?? [])[0] ?? null,\n }\n \">\n </ng-container>\n} @else {\n @if (hyperlink(); as link) {\n <a [sdHref]=\"link\">{{ display() | sdView }}</a>\n } @else {\n <div class=\"sd-view-value T14M\">{{ display() | sdView }}</div>\n }\n}\n" }]
|
|
67
67
|
}] });
|
|
68
68
|
|
|
69
69
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sdcorejs-angular-components-view.mjs","sources":["../../../projects/sdcorejs-angular/components/view/src/view.component.ts","../../../projects/sdcorejs-angular/components/view/src/view.component.html","../../../projects/sdcorejs-angular/components/view/sdcorejs-angular-components-view.ts"],"sourcesContent":["import { NgTemplateOutlet } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, TemplateRef, input, contentChild, computed } from '@angular/core';\nimport { SdHrefDirective } from '@sdcorejs/angular/directives';\nimport { SdViewPipe } from '@sdcorejs/angular/pipes';\n\n/**\n * `<sd-view>` — pure read-only display of a value (text, hyperlink, or a custom template).\n *\n * Presentational proxy with no state of its own: the parent form control (`<sd-select>`,\n * `<sd-input>`, …) computes the display string + resolved selection and passes them in;\n * `<sd-view>` only decides WHICH template renders. It is the single rendering path for every\n * \"viewed\" state across the form controls (DETAIL `viewed=true` and the `viewed='inline'`\n * text face), so a custom `valueTemplate` (e.g. `sdViewDef` / `#sdValue`) looks identical in\n * both. OnPush — re-renders only when an input signal changes.\n */\n@Component({\n selector: 'sd-view',\n standalone: true,\n imports: [SdViewPipe, SdHrefDirective, NgTemplateOutlet],\n templateUrl: './view.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class SdView {\n // ==========================================\n // 1. SIGNAL INPUTS\n // ==========================================\n\n /** Optional label rendered above the value (omitted when a parent supplies its own label). */\n label = input<string | null | undefined>();\n\n /** Raw selected value — NOT rendered directly; only exposed in the `valueTemplate` context as `value`. */\n\n value = input<any>();\n\n /**\n * Display string — what shows when no custom value template is bound.\n * why: `input.required()` forces the parent to bind `[display]` (compile error otherwise),\n * so the component never has to guess a fallback string from `value`.\n */\n display = input.required<unknown>();\n\n /** When set, the value renders as a link (`<a [sdHref]>`) instead of plain text. */\n hyperlink = input<string | null | undefined>();\n\n /** Label template handed down by a parent control (wins over `label` + `#sdLabel`). */\n\n labelTemplate = input<TemplateRef<any> | undefined>();\n\n /** Value template handed down by a parent control (wins over `display` + `#sdValue`). */\n\n valueTemplate = input<TemplateRef<any> | undefined>();\n\n /**\n * Resolved selected-item objects passed by the parent (e.g. `<sd-select>`).\n * why: the parent owns option/lazy resolution — `<sd-view>` is a proxy and must NOT rebuild\n * the list. Exposed in the value-template context so a \"head +N\" template can read `displayField`.\n */\n\n selectedItems = input<any[] | undefined>();\n\n // ==========================================\n // 2. SIGNAL QUERIES (replace @ContentChild)\n // ==========================================\n\n /** `#sdLabel` template projected directly into `<sd-view>` (fallback when no `[labelTemplate]`). */\n\n contentLabelTemplate = contentChild<TemplateRef<any>>('sdLabel');\n\n /** `#sdValue` template projected directly into `<sd-view>` (fallback when no `[valueTemplate]`). */\n\n contentValueTemplate = contentChild<TemplateRef<any>>('sdValue');\n\n // ==========================================\n // 3. COMPUTED SIGNALS (replace getters)\n // ==========================================\n\n /**\n * Effective label template: input from parent wins, else the projected `#sdLabel`.\n * why: `computed` caches the choice so the template's `@if (activeLabelTemplate())` doesn't\n * re-evaluate two content-child reads on every change-detection pass.\n */\n activeLabelTemplate = computed(() => this.labelTemplate() ?? this.contentLabelTemplate());\n\n /** Effective value template: input from parent wins, else the projected `#sdValue`. Cached for the same reason. */\n activeValueTemplate = computed(() => this.valueTemplate() ?? this.contentValueTemplate());\n}\n","@if (activeLabelTemplate()) {\n <ng-container *ngTemplateOutlet=\"activeLabelTemplate()!\"></ng-container>\n} @else {\n @if (label()) {\n <div class=\"T14R
|
|
1
|
+
{"version":3,"file":"sdcorejs-angular-components-view.mjs","sources":["../../../projects/sdcorejs-angular/components/view/src/view.component.ts","../../../projects/sdcorejs-angular/components/view/src/view.component.html","../../../projects/sdcorejs-angular/components/view/sdcorejs-angular-components-view.ts"],"sourcesContent":["import { NgTemplateOutlet } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, TemplateRef, input, contentChild, computed } from '@angular/core';\nimport { SdHrefDirective } from '@sdcorejs/angular/directives';\nimport { SdViewPipe } from '@sdcorejs/angular/pipes';\n\n/**\n * `<sd-view>` — pure read-only display of a value (text, hyperlink, or a custom template).\n *\n * Presentational proxy with no state of its own: the parent form control (`<sd-select>`,\n * `<sd-input>`, …) computes the display string + resolved selection and passes them in;\n * `<sd-view>` only decides WHICH template renders. It is the single rendering path for every\n * \"viewed\" state across the form controls (DETAIL `viewed=true` and the `viewed='inline'`\n * text face), so a custom `valueTemplate` (e.g. `sdViewDef` / `#sdValue`) looks identical in\n * both. OnPush — re-renders only when an input signal changes.\n */\n@Component({\n selector: 'sd-view',\n standalone: true,\n imports: [SdViewPipe, SdHrefDirective, NgTemplateOutlet],\n templateUrl: './view.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class SdView {\n // ==========================================\n // 1. SIGNAL INPUTS\n // ==========================================\n\n /** Optional label rendered above the value (omitted when a parent supplies its own label). */\n label = input<string | null | undefined>();\n\n /** Raw selected value — NOT rendered directly; only exposed in the `valueTemplate` context as `value`. */\n\n value = input<any>();\n\n /**\n * Display string — what shows when no custom value template is bound.\n * why: `input.required()` forces the parent to bind `[display]` (compile error otherwise),\n * so the component never has to guess a fallback string from `value`.\n */\n display = input.required<unknown>();\n\n /** When set, the value renders as a link (`<a [sdHref]>`) instead of plain text. */\n hyperlink = input<string | null | undefined>();\n\n /** Label template handed down by a parent control (wins over `label` + `#sdLabel`). */\n\n labelTemplate = input<TemplateRef<any> | undefined>();\n\n /** Value template handed down by a parent control (wins over `display` + `#sdValue`). */\n\n valueTemplate = input<TemplateRef<any> | undefined>();\n\n /**\n * Resolved selected-item objects passed by the parent (e.g. `<sd-select>`).\n * why: the parent owns option/lazy resolution — `<sd-view>` is a proxy and must NOT rebuild\n * the list. Exposed in the value-template context so a \"head +N\" template can read `displayField`.\n */\n\n selectedItems = input<any[] | undefined>();\n\n // ==========================================\n // 2. SIGNAL QUERIES (replace @ContentChild)\n // ==========================================\n\n /** `#sdLabel` template projected directly into `<sd-view>` (fallback when no `[labelTemplate]`). */\n\n contentLabelTemplate = contentChild<TemplateRef<any>>('sdLabel');\n\n /** `#sdValue` template projected directly into `<sd-view>` (fallback when no `[valueTemplate]`). */\n\n contentValueTemplate = contentChild<TemplateRef<any>>('sdValue');\n\n // ==========================================\n // 3. COMPUTED SIGNALS (replace getters)\n // ==========================================\n\n /**\n * Effective label template: input from parent wins, else the projected `#sdLabel`.\n * why: `computed` caches the choice so the template's `@if (activeLabelTemplate())` doesn't\n * re-evaluate two content-child reads on every change-detection pass.\n */\n activeLabelTemplate = computed(() => this.labelTemplate() ?? this.contentLabelTemplate());\n\n /** Effective value template: input from parent wins, else the projected `#sdValue`. Cached for the same reason. */\n activeValueTemplate = computed(() => this.valueTemplate() ?? this.contentValueTemplate());\n}\n","@if (activeLabelTemplate()) {\n <ng-container *ngTemplateOutlet=\"activeLabelTemplate()!\"></ng-container>\n} @else {\n @if (label()) {\n <div class=\"sd-view-label T14R\">{{ label() }}</div>\n }\n}\n\n<!--\n why: context phải đủ cho MỌI consumer template (sdViewDef / #sdValue dùng chung đường này):\n $implicit = display (cho `let-x`), value = giá trị thô, selectedItems = list item đã chọn\n (template \"head +N\"), selectedItem = item đầu (tiện cho single-select). Thiếu key nào là\n template của consumer mất biến đó → đừng rút gọn.\n-->\n@if (activeValueTemplate()) {\n <ng-container\n *ngTemplateOutlet=\"\n activeValueTemplate()!;\n context: {\n $implicit: display(),\n value: value(),\n selectedItems: selectedItems(),\n selectedItem: (selectedItems() ?? [])[0] ?? null,\n }\n \">\n </ng-container>\n} @else {\n @if (hyperlink(); as link) {\n <a [sdHref]=\"link\">{{ display() | sdView }}</a>\n } @else {\n <div class=\"sd-view-value T14M\">{{ display() | sdView }}</div>\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAKA;;;;;;;;;AASG;MAQU,MAAM,CAAA;;;;;IAMjB,KAAK,GAAG,KAAK,EAA6B;;IAI1C,KAAK,GAAG,KAAK,EAAO;AAEpB;;;;AAIG;AACH,IAAA,OAAO,GAAG,KAAK,CAAC,QAAQ,EAAW;;IAGnC,SAAS,GAAG,KAAK,EAA6B;;IAI9C,aAAa,GAAG,KAAK,EAAgC;;IAIrD,aAAa,GAAG,KAAK,EAAgC;AAErD;;;;AAIG;IAEH,aAAa,GAAG,KAAK,EAAqB;;;;;AAQ1C,IAAA,oBAAoB,GAAG,YAAY,CAAmB,SAAS,CAAC;;AAIhE,IAAA,oBAAoB,GAAG,YAAY,CAAmB,SAAS,CAAC;;;;AAMhE;;;;AAIG;AACH,IAAA,mBAAmB,GAAG,QAAQ,CAAC,MAAM,IAAI,CAAC,aAAa,EAAE,IAAI,IAAI,CAAC,oBAAoB,EAAE,CAAC;;AAGzF,IAAA,mBAAmB,GAAG,QAAQ,CAAC,MAAM,IAAI,CAAC,aAAa,EAAE,IAAI,IAAI,CAAC,oBAAoB,EAAE,CAAC;wGA9D9E,MAAM,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAN,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,MAAM,+tCCtBnB,gsCAiCA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EDfY,UAAU,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAE,eAAe,0EAAE,gBAAgB,EAAA,QAAA,EAAA,oBAAA,EAAA,MAAA,EAAA,CAAA,yBAAA,EAAA,kBAAA,EAAA,0BAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;4FAI5C,MAAM,EAAA,UAAA,EAAA,CAAA;kBAPlB,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,SAAS,EAAA,UAAA,EACP,IAAI,EAAA,OAAA,EACP,CAAC,UAAU,EAAE,eAAe,EAAE,gBAAgB,CAAC,EAAA,eAAA,EAEvC,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,gsCAAA,EAAA;;;AEpBjD;;AAEG;;;;"}
|
|
@@ -0,0 +1,486 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { inject, Injectable, viewChild, input, booleanAttribute, computed, output, signal, ElementRef, ChangeDetectorRef, DestroyRef, afterNextRender, afterRenderEffect, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
+
import { DOCUMENT, NgClass } from '@angular/common';
|
|
4
|
+
import * as i1 from '@angular/cdk/portal';
|
|
5
|
+
import { CdkPortal, DomPortalOutlet, PortalModule } from '@angular/cdk/portal';
|
|
6
|
+
import { Utilities } from '@sdcorejs/utils/fns';
|
|
7
|
+
import { SdLoadingService } from '@sdcorejs/angular/services/loading';
|
|
8
|
+
import { SdButton } from '@sdcorejs/angular/components/button';
|
|
9
|
+
import { I18nService } from '@sdcorejs/angular/i18n';
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Sổ đăng ký các panel `<sd-window>` đang sống.
|
|
13
|
+
*
|
|
14
|
+
* why: mỗi panel được portal ra thẳng `document.body` nên việc xếp chỗ (width/right) là bài toán
|
|
15
|
+
* chung của cả stack. Trước đây `#arrangePanels` quét `document.querySelectorAll('.modal-resizable')`
|
|
16
|
+
* — query đó bắt MỌI phần tử mang class này trong tài liệu, kể cả markup của component khác hoặc
|
|
17
|
+
* của app dùng trùng tên class, rồi ghi đè inline style lên chúng. Registry giới hạn phạm vi ghi
|
|
18
|
+
* đúng vào các instance do library tạo ra và còn sống.
|
|
19
|
+
*/
|
|
20
|
+
class SdWindowRegistry {
|
|
21
|
+
// why: dùng token DOCUMENT thay vì global `document`, đồng bộ với `preview-image` — service
|
|
22
|
+
// `providedIn:'root'` có thể được khởi tạo trong quá trình render phía server.
|
|
23
|
+
#document = inject(DOCUMENT);
|
|
24
|
+
// Set giữ nguyên thứ tự đăng ký → thứ tự xếp chỗ ổn định, khớp thứ tự panel được mở.
|
|
25
|
+
#ids = new Set();
|
|
26
|
+
#activeId;
|
|
27
|
+
register(id) {
|
|
28
|
+
this.#ids.add(id);
|
|
29
|
+
}
|
|
30
|
+
unregister(id) {
|
|
31
|
+
this.#ids.delete(id);
|
|
32
|
+
if (this.#activeId === id)
|
|
33
|
+
this.#activeId = undefined;
|
|
34
|
+
this.arrange();
|
|
35
|
+
}
|
|
36
|
+
activate(id) {
|
|
37
|
+
if (!this.#ids.has(id))
|
|
38
|
+
return;
|
|
39
|
+
this.#activeId = id;
|
|
40
|
+
this.arrange();
|
|
41
|
+
}
|
|
42
|
+
/** Bound every window to the viewport; overflow stacks overlap and focus raises the chosen window. */
|
|
43
|
+
arrange() {
|
|
44
|
+
const layoutWidth = this.#document.documentElement.clientWidth;
|
|
45
|
+
const windowWidth = this.#document.defaultView?.innerWidth ?? layoutWidth;
|
|
46
|
+
const viewport = layoutWidth > 0 ? Math.min(layoutWidth, windowWidth) : windowWidth;
|
|
47
|
+
const gutter = Math.min(8, viewport / 2);
|
|
48
|
+
const available = Math.max(0, viewport - gutter * 2);
|
|
49
|
+
const rtl = this.#document.documentElement.dir === 'rtl' || this.#document.body.dir === 'rtl';
|
|
50
|
+
let offset = gutter;
|
|
51
|
+
for (const panel of this.panels()) {
|
|
52
|
+
if (panel.classList.contains('c-closed'))
|
|
53
|
+
continue;
|
|
54
|
+
const fullscreen = panel.classList.contains('c-fullscreen') && !panel.classList.contains('c-minium');
|
|
55
|
+
const requested = panel.classList.contains('c-minium') ? 300 : Number.parseFloat(panel.dataset['width'] || '');
|
|
56
|
+
if (!fullscreen && (!Number.isFinite(requested) || requested <= 0))
|
|
57
|
+
continue;
|
|
58
|
+
const width = fullscreen ? available : Math.min(requested, available);
|
|
59
|
+
const inset = fullscreen ? gutter : Math.min(offset, Math.max(gutter, viewport - width - gutter));
|
|
60
|
+
panel.style.width = fullscreen ? 'calc(100% - 16px)' : `${width}px`;
|
|
61
|
+
panel.style.setProperty(rtl ? 'left' : 'right', `${inset}px`);
|
|
62
|
+
panel.style.removeProperty(rtl ? 'right' : 'left');
|
|
63
|
+
panel.style.zIndex =
|
|
64
|
+
panel.id === this.#activeId || (!this.#activeId && fullscreen) ? 'var(--sd-z-drawer, 999)' : 'var(--sd-z-backdrop, 998)';
|
|
65
|
+
if (!fullscreen)
|
|
66
|
+
offset += width + 8;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Phần tử panel của các instance đã đăng ký và đang có mặt trong DOM.
|
|
71
|
+
* Instance đã destroy hoặc chưa attach portal sẽ bị bỏ qua.
|
|
72
|
+
*/
|
|
73
|
+
panels() {
|
|
74
|
+
const elements = [];
|
|
75
|
+
for (const id of this.#ids) {
|
|
76
|
+
const element = this.#document.getElementById(id);
|
|
77
|
+
if (element)
|
|
78
|
+
elements.push(element);
|
|
79
|
+
}
|
|
80
|
+
return elements;
|
|
81
|
+
}
|
|
82
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: SdWindowRegistry, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
83
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: SdWindowRegistry, providedIn: 'root' });
|
|
84
|
+
}
|
|
85
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: SdWindowRegistry, decorators: [{
|
|
86
|
+
type: Injectable,
|
|
87
|
+
args: [{ providedIn: 'root' }]
|
|
88
|
+
}] });
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Nonmodal record window. The deprecated selector/import share this exact component identity.
|
|
92
|
+
* Use SdModal for blocking dialogs; this window intentionally leaves the page reachable.
|
|
93
|
+
* Minimize/restore/fullscreen are supported; dragging and pointer resizing are not.
|
|
94
|
+
* See ../sd-window.md for the public contract and compatible alias migration.
|
|
95
|
+
*/
|
|
96
|
+
class SdWindow {
|
|
97
|
+
id = `I${Utilities.generateUuid()}`;
|
|
98
|
+
titleId = `${this.id}-title`;
|
|
99
|
+
portal = viewChild.required(CdkPortal);
|
|
100
|
+
editable = input(false, { transform: booleanAttribute });
|
|
101
|
+
width = input('480px', { transform: value => value ?? '480px' });
|
|
102
|
+
/** Fallback for the existing projected [sdTitle] slot. */
|
|
103
|
+
title = input('', { transform: value => value ?? '' });
|
|
104
|
+
hideClose = input(false, { transform: booleanAttribute });
|
|
105
|
+
beforeClose = input(undefined);
|
|
106
|
+
windowClass = input('', {
|
|
107
|
+
transform: value => value ?? '',
|
|
108
|
+
});
|
|
109
|
+
ariaDescribedBy = input(undefined);
|
|
110
|
+
/** Escape dismissal is opt-in to preserve the existing close contract. */
|
|
111
|
+
disableEscapeClose = input(true, { transform: booleanAttribute });
|
|
112
|
+
autoIdInput = input(undefined, { alias: 'autoId' });
|
|
113
|
+
autoId = computed(() => this.autoIdInput() ? `components-${this.#legacyHost ? 'modal-resizable' : 'window'}-${this.autoIdInput()}` : undefined);
|
|
114
|
+
sdClosed = output();
|
|
115
|
+
sdCloseError = output();
|
|
116
|
+
editingChanged = output();
|
|
117
|
+
// why: giữ nguyên signal public của API cũ; không đổi thành readonly trong bản sửa tương thích.
|
|
118
|
+
isEditing = signal(false);
|
|
119
|
+
isOpened = signal(false);
|
|
120
|
+
isHover = signal(false);
|
|
121
|
+
isLoading = signal(false);
|
|
122
|
+
/** @deprecated Read isMinimized; use minimize()/restore() for lifecycle changes. */
|
|
123
|
+
isMinimum = signal(false);
|
|
124
|
+
/** @deprecated Read isFullscreen; use toggleFullscreen() for lifecycle changes. */
|
|
125
|
+
isMaximum = signal(false);
|
|
126
|
+
isMinimized = this.isMinimum.asReadonly();
|
|
127
|
+
isFullscreen = this.isMaximum.asReadonly();
|
|
128
|
+
dataOpened = computed(() => (this.isOpened() ? 'true' : 'false'));
|
|
129
|
+
dataLoading = computed(() => (this.isLoading() ? 'true' : 'false'));
|
|
130
|
+
minimizedAtTop = signal(false);
|
|
131
|
+
#legacyHost = inject((ElementRef)).nativeElement?.tagName?.toLowerCase() === 'sd-modal-resizable';
|
|
132
|
+
#document = inject(DOCUMENT);
|
|
133
|
+
#ref = inject(ChangeDetectorRef);
|
|
134
|
+
#loadingService = inject(SdLoadingService);
|
|
135
|
+
#destroyRef = inject(DestroyRef);
|
|
136
|
+
#registry = inject(SdWindowRegistry);
|
|
137
|
+
#i18n = inject(I18nService);
|
|
138
|
+
labels = computed(() => {
|
|
139
|
+
const prefix = this.#legacyHost ? 'core.component.modal-resizable' : 'core.component.window';
|
|
140
|
+
return {
|
|
141
|
+
title: this.#i18n.t(`${prefix}.title`),
|
|
142
|
+
minimize: this.#i18n.t(`${prefix}.minimize`),
|
|
143
|
+
restore: this.#i18n.t(`${prefix}.restore`),
|
|
144
|
+
fullscreen: this.#i18n.t(`${prefix}.fullscreen`),
|
|
145
|
+
exitFullscreen: this.#i18n.t(`${prefix}.exit-fullscreen`),
|
|
146
|
+
loading: this.#i18n.t(`${prefix}.loading`),
|
|
147
|
+
close: this.#i18n.t('core.common.close'),
|
|
148
|
+
};
|
|
149
|
+
});
|
|
150
|
+
#embeddedViewRef;
|
|
151
|
+
#opener = null;
|
|
152
|
+
#destroyed = false;
|
|
153
|
+
#removeResizeListener;
|
|
154
|
+
#removeFocusListener;
|
|
155
|
+
#loadingRef;
|
|
156
|
+
#closeGeneration = 0;
|
|
157
|
+
#closeRequest;
|
|
158
|
+
constructor() {
|
|
159
|
+
this.#registry.register(this.id);
|
|
160
|
+
afterNextRender(() => {
|
|
161
|
+
// why: chữ ký CDK chung cho 19–22; không truyền tham số đã đổi giữa các major.
|
|
162
|
+
const outlet = new DomPortalOutlet(this.#document.body);
|
|
163
|
+
this.#embeddedViewRef = outlet.attachTemplatePortal(this.portal());
|
|
164
|
+
this.#detectChanges();
|
|
165
|
+
this.#refreshLayout();
|
|
166
|
+
if (this.isOpened())
|
|
167
|
+
this.#focusPanel();
|
|
168
|
+
const window = this.#document.defaultView;
|
|
169
|
+
window?.addEventListener('resize', this.#refreshLayout);
|
|
170
|
+
this.#removeResizeListener = () => window?.removeEventListener('resize', this.#refreshLayout);
|
|
171
|
+
this.#document.addEventListener('focusin', this.#revealPageFocus);
|
|
172
|
+
this.#removeFocusListener = () => this.#document.removeEventListener('focusin', this.#revealPageFocus);
|
|
173
|
+
});
|
|
174
|
+
afterRenderEffect(() => {
|
|
175
|
+
this.width();
|
|
176
|
+
this.isOpened();
|
|
177
|
+
this.isMinimum();
|
|
178
|
+
this.isMaximum();
|
|
179
|
+
if (this.#embeddedViewRef)
|
|
180
|
+
this.#refreshLayout();
|
|
181
|
+
});
|
|
182
|
+
this.#destroyRef.onDestroy(() => {
|
|
183
|
+
// why: ngOnDestroy đã đóng và emit trước output() cleanup; callback này chỉ gỡ tài nguyên.
|
|
184
|
+
this.#removeResizeListener?.();
|
|
185
|
+
this.#removeFocusListener?.();
|
|
186
|
+
// why: service root giữ host/contribution; stop trước khi gỡ portal để không giữ DOM đã detach.
|
|
187
|
+
this.#releaseLoading();
|
|
188
|
+
this.#registry.unregister(this.id);
|
|
189
|
+
this.#embeddedViewRef?.destroy();
|
|
190
|
+
});
|
|
191
|
+
}
|
|
192
|
+
open = () => {
|
|
193
|
+
if (this.#destroyed)
|
|
194
|
+
return;
|
|
195
|
+
if (this.isOpened()) {
|
|
196
|
+
this.#registry.activate(this.id);
|
|
197
|
+
if (!this.#getElement()?.contains(this.#document.activeElement))
|
|
198
|
+
this.#focusPanel();
|
|
199
|
+
return;
|
|
200
|
+
}
|
|
201
|
+
this.#closeGeneration++;
|
|
202
|
+
this.#closeRequest = undefined;
|
|
203
|
+
this.#opener = this.#document.activeElement;
|
|
204
|
+
this.isOpened.set(true);
|
|
205
|
+
this.isMinimum.set(false);
|
|
206
|
+
this.minimizedAtTop.set(false);
|
|
207
|
+
this.#detectChanges();
|
|
208
|
+
this.#refreshLayout();
|
|
209
|
+
this.#registry.activate(this.id);
|
|
210
|
+
this.#getElement()?.focus({ preventScroll: true });
|
|
211
|
+
};
|
|
212
|
+
/** Core overlay contract: close synchronously unless an optional beforeClose guard owns dismissal. */
|
|
213
|
+
close = () => {
|
|
214
|
+
if (this.#destroyed)
|
|
215
|
+
return;
|
|
216
|
+
if (this.beforeClose()) {
|
|
217
|
+
void this.requestClose();
|
|
218
|
+
return;
|
|
219
|
+
}
|
|
220
|
+
this.forceClose();
|
|
221
|
+
};
|
|
222
|
+
/** Resolves the guard decision; it carries no business result payload. */
|
|
223
|
+
requestClose = () => {
|
|
224
|
+
if (this.#destroyed || !this.isOpened())
|
|
225
|
+
return Promise.resolve(false);
|
|
226
|
+
if (this.#closeRequest)
|
|
227
|
+
return this.#closeRequest;
|
|
228
|
+
const guard = this.beforeClose();
|
|
229
|
+
if (!guard) {
|
|
230
|
+
this.forceClose();
|
|
231
|
+
return Promise.resolve(true);
|
|
232
|
+
}
|
|
233
|
+
const generation = this.#closeGeneration;
|
|
234
|
+
const current = () => !this.#destroyed && this.isOpened() && generation === this.#closeGeneration;
|
|
235
|
+
const request = Promise.resolve()
|
|
236
|
+
.then(() => (current() ? guard() : false))
|
|
237
|
+
.then(canClose => {
|
|
238
|
+
if (canClose !== true || !current())
|
|
239
|
+
return false;
|
|
240
|
+
this.forceClose();
|
|
241
|
+
return true;
|
|
242
|
+
})
|
|
243
|
+
.catch((error) => {
|
|
244
|
+
if (current())
|
|
245
|
+
this.sdCloseError.emit(error);
|
|
246
|
+
return false;
|
|
247
|
+
});
|
|
248
|
+
this.#closeRequest = request;
|
|
249
|
+
void request.then(() => {
|
|
250
|
+
if (this.#closeRequest === request)
|
|
251
|
+
this.#closeRequest = undefined;
|
|
252
|
+
});
|
|
253
|
+
return request;
|
|
254
|
+
};
|
|
255
|
+
forceClose = () => {
|
|
256
|
+
if (this.#destroyed)
|
|
257
|
+
return;
|
|
258
|
+
this.#closeGeneration++;
|
|
259
|
+
this.#closeRequest = undefined;
|
|
260
|
+
this.#finishClose();
|
|
261
|
+
};
|
|
262
|
+
ngOnDestroy() {
|
|
263
|
+
if (this.#destroyed)
|
|
264
|
+
return;
|
|
265
|
+
// why: output() listeners được gỡ trước DestroyRef callbacks; teardown phải báo đóng tại hook này.
|
|
266
|
+
this.#destroyed = true;
|
|
267
|
+
this.#closeGeneration++;
|
|
268
|
+
this.#closeRequest = undefined;
|
|
269
|
+
this.#finishClose();
|
|
270
|
+
}
|
|
271
|
+
#finishClose() {
|
|
272
|
+
const wasOpened = this.isOpened();
|
|
273
|
+
this.#restoreFocusIfOwned();
|
|
274
|
+
this.#releaseLoading();
|
|
275
|
+
this.isLoading.set(false);
|
|
276
|
+
this.isOpened.set(false);
|
|
277
|
+
this.isMinimum.set(false);
|
|
278
|
+
this.isMaximum.set(false);
|
|
279
|
+
this.minimizedAtTop.set(false);
|
|
280
|
+
this.#detectChanges();
|
|
281
|
+
const element = this.#getElement();
|
|
282
|
+
element?.classList.remove('c-minium', 'c-fullscreen');
|
|
283
|
+
element?.style.setProperty('width', '0px');
|
|
284
|
+
element?.style.setProperty('right', '0px');
|
|
285
|
+
this.#registry.arrange();
|
|
286
|
+
// why: cleanup hoàn tất trước callback, để consumer mở lại trong sdClosed không bị teardown lần nữa.
|
|
287
|
+
if (wasOpened)
|
|
288
|
+
this.sdClosed.emit();
|
|
289
|
+
}
|
|
290
|
+
minimize = () => {
|
|
291
|
+
if (this.#destroyed)
|
|
292
|
+
return;
|
|
293
|
+
this.#moveFocusOutOfContent();
|
|
294
|
+
this.isMinimum.set(true);
|
|
295
|
+
this.minimizedAtTop.set(false);
|
|
296
|
+
this.#detectChanges();
|
|
297
|
+
this.#registry.arrange();
|
|
298
|
+
this.#revealPageFocus({ target: this.#document.activeElement });
|
|
299
|
+
};
|
|
300
|
+
restore = () => {
|
|
301
|
+
if (this.#destroyed)
|
|
302
|
+
return;
|
|
303
|
+
this.isMinimum.set(false);
|
|
304
|
+
this.minimizedAtTop.set(false);
|
|
305
|
+
this.#detectChanges();
|
|
306
|
+
this.#refreshLayout();
|
|
307
|
+
this.#selectOpenWindow();
|
|
308
|
+
};
|
|
309
|
+
/** @deprecated Use restore(). */
|
|
310
|
+
maximize = this.restore;
|
|
311
|
+
toggleFullscreen = () => {
|
|
312
|
+
if (this.#destroyed)
|
|
313
|
+
return;
|
|
314
|
+
this.isMinimum.set(false);
|
|
315
|
+
this.minimizedAtTop.set(false);
|
|
316
|
+
this.isMaximum.update(value => !value);
|
|
317
|
+
this.#detectChanges();
|
|
318
|
+
this.#refreshLayout();
|
|
319
|
+
this.#selectOpenWindow();
|
|
320
|
+
};
|
|
321
|
+
/** @deprecated Use toggleFullscreen(). */
|
|
322
|
+
toggleMaximum = this.toggleFullscreen;
|
|
323
|
+
startLoading = () => {
|
|
324
|
+
if (this.#destroyed)
|
|
325
|
+
return;
|
|
326
|
+
this.#releaseLoading();
|
|
327
|
+
this.#moveFocusOutOfContent();
|
|
328
|
+
this.isLoading.set(true);
|
|
329
|
+
this.#detectChanges();
|
|
330
|
+
this.#ensureLoading();
|
|
331
|
+
};
|
|
332
|
+
stopLoading = () => {
|
|
333
|
+
if (this.#destroyed)
|
|
334
|
+
return;
|
|
335
|
+
this.#releaseLoading();
|
|
336
|
+
this.isLoading.set(false);
|
|
337
|
+
this.#detectChanges();
|
|
338
|
+
};
|
|
339
|
+
toggleEditable() {
|
|
340
|
+
if (this.#destroyed)
|
|
341
|
+
return;
|
|
342
|
+
this.isEditing.update(value => !value);
|
|
343
|
+
this.#detectChanges();
|
|
344
|
+
this.editingChanged.emit(this.isEditing());
|
|
345
|
+
}
|
|
346
|
+
onFocus = () => {
|
|
347
|
+
this.isHover.set(true);
|
|
348
|
+
};
|
|
349
|
+
activate(event) {
|
|
350
|
+
this.#registry.activate(this.id);
|
|
351
|
+
if (event && !this.#getElement()?.contains(this.#document.activeElement))
|
|
352
|
+
this.#focusPanel();
|
|
353
|
+
}
|
|
354
|
+
onBlur = (event) => {
|
|
355
|
+
const panel = this.#getElement();
|
|
356
|
+
if (event?.relatedTarget && panel?.contains(event.relatedTarget))
|
|
357
|
+
return;
|
|
358
|
+
if (!event && panel?.contains(this.#document.activeElement))
|
|
359
|
+
return;
|
|
360
|
+
this.isHover.set(false);
|
|
361
|
+
};
|
|
362
|
+
onKeydown(event) {
|
|
363
|
+
if (event.key !== 'Escape' || event.defaultPrevented || event.isComposing || this.disableEscapeClose() || !this.isOpened())
|
|
364
|
+
return;
|
|
365
|
+
// why: overlay CDK ở ngoài cây DOM; combobox inline phải xử lý Escape trước cửa sổ.
|
|
366
|
+
if (event.target.closest?.('[role="combobox"][aria-expanded="true"]'))
|
|
367
|
+
return;
|
|
368
|
+
event.preventDefault();
|
|
369
|
+
event.stopPropagation();
|
|
370
|
+
this.close();
|
|
371
|
+
}
|
|
372
|
+
#revealPageFocus = (event) => {
|
|
373
|
+
const panel = this.#getElement();
|
|
374
|
+
const target = event.target;
|
|
375
|
+
if (!this.isOpened() || !panel || panel.contains(target) || !target?.getBoundingClientRect)
|
|
376
|
+
return;
|
|
377
|
+
const rect = target.getBoundingClientRect();
|
|
378
|
+
const panels = this.#registry.panels();
|
|
379
|
+
if (panels.some(owned => owned.contains(target)))
|
|
380
|
+
return;
|
|
381
|
+
const x = rect.x + rect.width / 2;
|
|
382
|
+
const y = rect.y + rect.height / 2;
|
|
383
|
+
const hit = this.#document.elementFromPoint(x, y);
|
|
384
|
+
const ownRect = panel.getBoundingClientRect();
|
|
385
|
+
// why: Tab về trang không được để focus ẩn sau cửa sổ; overlay con có hit target riêng nên không bị thu nhỏ.
|
|
386
|
+
// why: xét mọi cửa sổ phủ cùng điểm để thứ tự listener không bỏ lại một cửa sổ phía sau.
|
|
387
|
+
if (rect.width > 0 &&
|
|
388
|
+
rect.height > 0 &&
|
|
389
|
+
x >= ownRect.left &&
|
|
390
|
+
x <= ownRect.right &&
|
|
391
|
+
y >= ownRect.top &&
|
|
392
|
+
y <= ownRect.bottom &&
|
|
393
|
+
panels.some(owned => owned.contains(hit))) {
|
|
394
|
+
if (!this.isMinimum())
|
|
395
|
+
this.minimize();
|
|
396
|
+
const strip = panel.getBoundingClientRect();
|
|
397
|
+
const layoutHeight = this.#document.documentElement.clientHeight;
|
|
398
|
+
const windowHeight = this.#document.defaultView?.innerHeight ?? layoutHeight;
|
|
399
|
+
const viewportHeight = layoutHeight > 0 ? Math.min(layoutHeight, windowHeight) : windowHeight;
|
|
400
|
+
const alternateTop = this.minimizedAtTop() ? viewportHeight - strip.height : 8;
|
|
401
|
+
// why: thanh thu nhỏ cũng không được che focus ở cuối trang; chỉ đổi mép khi mép kia thật sự thoáng.
|
|
402
|
+
if (x >= strip.left &&
|
|
403
|
+
x <= strip.right &&
|
|
404
|
+
y >= strip.top &&
|
|
405
|
+
y <= strip.bottom &&
|
|
406
|
+
(y < alternateTop || y > alternateTop + strip.height)) {
|
|
407
|
+
this.minimizedAtTop.update(value => !value);
|
|
408
|
+
this.#detectChanges();
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
};
|
|
412
|
+
#refreshLayout = (event) => {
|
|
413
|
+
if (this.#destroyed)
|
|
414
|
+
return;
|
|
415
|
+
const element = this.#getElement();
|
|
416
|
+
if (element && this.isOpened() && !this.isMinimum() && !this.isMaximum()) {
|
|
417
|
+
// why: đo CSS width hiện tại, không dùng snapshot lần trước hoặc kích thước fullscreen.
|
|
418
|
+
element.style.width = this.width();
|
|
419
|
+
if (element.offsetWidth > 0)
|
|
420
|
+
element.dataset['width'] = String(element.offsetWidth);
|
|
421
|
+
}
|
|
422
|
+
this.#registry.arrange();
|
|
423
|
+
this.#ensureLoading();
|
|
424
|
+
if (event?.type === 'resize')
|
|
425
|
+
this.#revealPageFocus({ target: this.#document.activeElement });
|
|
426
|
+
};
|
|
427
|
+
#ensureLoading() {
|
|
428
|
+
if (!this.isLoading() || (this.#loadingRef && !this.#loadingRef.closed) || !this.#getElement()?.querySelector('.modal-resizable__body'))
|
|
429
|
+
return;
|
|
430
|
+
// why: giữ ref riêng và chỉ phủ body; không dừng contribution của consumer cùng selector.
|
|
431
|
+
this.#loadingRef = this.#loadingService.start(`#${this.id} .modal-resizable__body`);
|
|
432
|
+
}
|
|
433
|
+
#releaseLoading() {
|
|
434
|
+
this.#loadingRef?.close();
|
|
435
|
+
this.#loadingRef = undefined;
|
|
436
|
+
}
|
|
437
|
+
#focusPanel() {
|
|
438
|
+
this.#getElement()?.focus({ preventScroll: true });
|
|
439
|
+
}
|
|
440
|
+
#selectOpenWindow() {
|
|
441
|
+
if (!this.isOpened())
|
|
442
|
+
return;
|
|
443
|
+
this.#registry.activate(this.id);
|
|
444
|
+
// why: explicit size actions from page controls select the window instead of covering the same page focus.
|
|
445
|
+
if (!this.#getElement()?.contains(this.#document.activeElement))
|
|
446
|
+
this.#focusPanel();
|
|
447
|
+
}
|
|
448
|
+
#moveFocusOutOfContent() {
|
|
449
|
+
const element = this.#getElement();
|
|
450
|
+
const active = this.#document.activeElement;
|
|
451
|
+
if (active &&
|
|
452
|
+
(element?.querySelector('.modal-resizable__body')?.contains(active) ||
|
|
453
|
+
element?.querySelector('.modal-resizable__footer')?.contains(active))) {
|
|
454
|
+
// why: projected header actions may be disabled/hidden; choose an owned control before making content inert.
|
|
455
|
+
element?.querySelector('[data-sd-window-action="restore"] button')?.focus({ preventScroll: true });
|
|
456
|
+
if (this.#document.activeElement === active)
|
|
457
|
+
element?.focus({ preventScroll: true });
|
|
458
|
+
}
|
|
459
|
+
}
|
|
460
|
+
#restoreFocusIfOwned() {
|
|
461
|
+
// why: không giành focus nếu người dùng đã quay lại trang hoặc cửa sổ khác.
|
|
462
|
+
if (this.#getElement()?.contains(this.#document.activeElement) && this.#opener?.isConnected && !this.#opener.closest('[inert]')) {
|
|
463
|
+
this.#opener.focus({ preventScroll: true });
|
|
464
|
+
}
|
|
465
|
+
}
|
|
466
|
+
#getElement() {
|
|
467
|
+
return this.#document.getElementById(this.id);
|
|
468
|
+
}
|
|
469
|
+
#detectChanges() {
|
|
470
|
+
this.#ref.markForCheck();
|
|
471
|
+
this.#embeddedViewRef?.detectChanges();
|
|
472
|
+
}
|
|
473
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: SdWindow, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
474
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.21", type: SdWindow, isStandalone: true, selector: "sd-window, sd-modal-resizable", inputs: { editable: { classPropertyName: "editable", publicName: "editable", isSignal: true, isRequired: false, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, hideClose: { classPropertyName: "hideClose", publicName: "hideClose", isSignal: true, isRequired: false, transformFunction: null }, beforeClose: { classPropertyName: "beforeClose", publicName: "beforeClose", isSignal: true, isRequired: false, transformFunction: null }, windowClass: { classPropertyName: "windowClass", publicName: "windowClass", isSignal: true, isRequired: false, transformFunction: null }, ariaDescribedBy: { classPropertyName: "ariaDescribedBy", publicName: "ariaDescribedBy", isSignal: true, isRequired: false, transformFunction: null }, disableEscapeClose: { classPropertyName: "disableEscapeClose", publicName: "disableEscapeClose", isSignal: true, isRequired: false, transformFunction: null }, autoIdInput: { classPropertyName: "autoIdInput", publicName: "autoId", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { sdClosed: "sdClosed", sdCloseError: "sdCloseError", editingChanged: "editingChanged" }, viewQueries: [{ propertyName: "portal", first: true, predicate: CdkPortal, descendants: true, isSignal: true }], ngImport: i0, template: "<ng-template cdkPortal>\n @let _opened = isOpened();\n @let _loading = isLoading();\n @let _minimum = isMinimum();\n @let _maximum = isMaximum();\n @let _labels = labels();\n @let _autoId = autoId();\n <div [id]=\"id + '-status'\" class=\"sd-window__status modal-resizable__status\" role=\"status\" aria-live=\"polite\" aria-atomic=\"true\">\n {{ _opened && _loading ? _labels.loading : '' }}\n </div>\n <div\n [id]=\"id\"\n class=\"sd-window modal-resizable\"\n [ngClass]=\"windowClass()\"\n [attr.data-opened]=\"dataOpened()\"\n [attr.data-loading]=\"dataLoading()\"\n role=\"dialog\"\n aria-modal=\"false\"\n tabindex=\"-1\"\n [attr.aria-labelledby]=\"titleId\"\n [attr.aria-describedby]=\"ariaDescribedBy() || null\"\n [attr.aria-hidden]=\"!_opened ? 'true' : null\"\n [attr.aria-busy]=\"_loading ? 'true' : null\"\n [attr.inert]=\"!_opened ? '' : null\"\n [attr.data-autoid]=\"_autoId\"\n [class.modal-resizable--active]=\"_opened\"\n [class.modal-resizable--loading]=\"_loading\"\n [class.c-closed]=\"!_opened\"\n [class.c-minium]=\"_minimum\"\n [class.modal-resizable--top]=\"_minimum && minimizedAtTop()\"\n [class.c-fullscreen]=\"_maximum\"\n (mouseenter)=\"onFocus()\"\n (mouseleave)=\"onBlur()\"\n (pointerdown)=\"activate($event)\"\n (focusin)=\"onFocus(); activate()\"\n (focusout)=\"onBlur($event)\"\n (keydown)=\"onKeydown($event)\">\n @if (_opened) {\n <div class=\"sd-window__header modal-resizable__header\">\n <div class=\"sd-window__title modal-resizable__title\" [id]=\"titleId\">\n <ng-content select=\"[sdHeaderLeft],[sdTitle]\">{{ title() || _labels.title }}</ng-content>\n </div>\n <div class=\"sd-window__actions modal-resizable__actions\">\n <ng-content select=\"[sdHeaderRight]\"></ng-content>\n <sd-button\n data-sd-window-action=\"restore\"\n size=\"sm\"\n type=\"text\"\n color=\"secondary\"\n [prefixIcon]=\"_minimum ? 'expand_less' : 'remove'\"\n [tooltip]=\"_minimum ? _labels.restore : _labels.minimize\"\n [autoId]=\"_autoId ? _autoId + '-restore' : undefined\"\n (click)=\"_minimum ? restore() : minimize()\" />\n <sd-button\n size=\"sm\"\n type=\"text\"\n color=\"secondary\"\n [prefixIcon]=\"_maximum ? 'fullscreen_exit' : 'open_in_full'\"\n [tooltip]=\"_maximum ? _labels.exitFullscreen : _labels.fullscreen\"\n [autoId]=\"_autoId ? _autoId + '-fullscreen' : undefined\"\n (click)=\"toggleFullscreen()\" />\n @if (!hideClose()) {\n <sd-button\n size=\"sm\"\n type=\"text\"\n color=\"secondary\"\n prefixIcon=\"close\"\n [tooltip]=\"_labels.close\"\n [autoId]=\"_autoId ? _autoId + '-close' : undefined\"\n (click)=\"close()\" />\n }\n </div>\n </div>\n <div class=\"sd-window__body modal-resizable__body\" [attr.inert]=\"_loading ? '' : null\">\n <div class=\"sd-window__content modal-resizable__content\"><ng-content select=\"[sdBody]\"></ng-content><ng-content></ng-content></div>\n </div>\n <div class=\"sd-window__footer modal-resizable__footer\" [attr.inert]=\"_loading ? '' : null\">\n <div class=\"sd-window__footer-left modal-resizable__footer-left\"><ng-content select=\"[sdFooterLeft]\"></ng-content></div>\n <div class=\"sd-window__footer-right modal-resizable__footer-right\"><ng-content select=\"[sdFooterRight]\"></ng-content></div>\n </div>\n }\n </div>\n</ng-template>\n", styles: [".modal-resizable__status{position:absolute;inline-size:1px;block-size:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.modal-resizable{box-sizing:border-box;position:fixed;inset-inline-end:var(--sd-space-8, 8px);inset-block-start:min(var(--sd-modal-resizable-top, 80px),20dvh);inset-block-end:0;max-inline-size:calc(100vw - 16px);background:var(--sd-window-surface, var(--sd-modal-resizable-bg, var(--sd-overlay-surface, var(--sd-surface))));color:var(--sd-window-text, var(--sd-modal-resizable-title, var(--sd-text)));z-index:var(--sd-z-backdrop, 998);display:flex;flex-direction:column;min-inline-size:0;opacity:0;visibility:hidden;transform:translateY(var(--sd-space-16, 16px));transition:opacity var(--sd-duration-base, .2s) var(--sd-ease-standard, ease),transform var(--sd-duration-base, .2s) var(--sd-ease-standard, ease);pointer-events:none;box-shadow:var(--sd-shadow-md);border:1px solid var(--sd-window-border, var(--sd-modal-resizable-divider, var(--sd-border)));border-block-end:0;border-radius:var(--sd-radius-8, 8px) var(--sd-radius-8, 8px) 0 0}.modal-resizable:focus-visible{outline:var(--sd-focus-ring-width, 2px) solid var(--sd-focus-ring-color, var(--sd-primary));outline-offset:var(--sd-focus-ring-offset, 2px)}.modal-resizable.c-minium{inset-block-start:auto}.modal-resizable.c-minium .modal-resizable__body,.modal-resizable.c-minium .modal-resizable__footer{display:none}.modal-resizable.c-fullscreen:not(.c-minium){inset-block-start:var(--sd-space-8, 8px)}.modal-resizable.c-minium.modal-resizable--top{inset-block-start:var(--sd-space-8, 8px);inset-block-end:auto;border-block-end:1px solid var(--sd-window-border, var(--sd-modal-resizable-divider, var(--sd-border)));border-radius:var(--sd-radius-8, 8px)}.modal-resizable--active{opacity:1;visibility:visible;pointer-events:auto;transform:none}.modal-resizable__header{display:flex;align-items:center;gap:var(--sd-space-8, 8px);flex:0 0 auto;min-block-size:var(--sd-space-56, 56px);padding-inline:var(--sd-space-16, 16px);padding-block:var(--sd-space-12, 12px);background:var(--sd-window-header-bg, var(--sd-window-surface, var(--sd-modal-resizable-header-bg, var(--sd-modal-resizable-bg, var(--sd-overlay-surface, var(--sd-surface))))));border-block-end:1px solid var(--sd-window-border, var(--sd-modal-resizable-divider, var(--sd-border)));border-start-start-radius:inherit;border-start-end-radius:inherit}.modal-resizable__title{flex:1 1 0;min-inline-size:0;font-size:var(--sd-font-size-18, 18px);line-height:var(--sd-line-height-28, 28px);font-weight:var(--sd-font-weight-semibold, 600);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.modal-resizable__title>*{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.modal-resizable__actions{display:flex;align-items:center;flex:0 0 auto;gap:var(--sd-space-4, 4px);margin-inline-start:auto}.modal-resizable__body{flex:1 1 0;min-block-size:0;min-inline-size:0;display:flex;position:relative}.modal-resizable__content{flex:1;min-inline-size:0;min-block-size:0;padding:var(--sd-space-16, 16px);overflow:auto;overflow-wrap:anywhere;overscroll-behavior:contain}.modal-resizable__footer{flex:0 0 auto;background:var(--sd-window-surface, var(--sd-modal-resizable-bg, var(--sd-overlay-surface, var(--sd-surface))));border-block-start:1px solid var(--sd-window-border, var(--sd-modal-resizable-divider, var(--sd-border)));padding-inline:var(--sd-space-16, 16px);padding-block:var(--sd-space-12, 12px);padding-block-end:max(var(--sd-space-12, 12px),env(safe-area-inset-bottom));display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--sd-space-8, 8px)}.modal-resizable__footer:has(.modal-resizable__footer-left:empty):has(.modal-resizable__footer-right:empty){display:none}.modal-resizable__footer-left,.modal-resizable__footer-right{display:flex;flex-wrap:wrap;align-items:center;min-inline-size:0;max-inline-size:100%;gap:var(--sd-space-8, 8px)}.modal-resizable__footer-right{margin-inline-start:auto;justify-content:flex-end}@media(prefers-reduced-motion:reduce){.modal-resizable{transition:none;transform:none}}\n"], dependencies: [{ kind: "component", type: SdButton, selector: "sd-button", inputs: ["autoId", "type", "color", "size", "fontSet", "title", "width", "tooltip", "prefixIcon", "suffixIcon", "disabled", "openOnHover", "loading", "block", "htmlType", "indicator", "indicatorColor", "indicatorMax", "indicatorLabel"], outputs: ["click"] }, { kind: "ngmodule", type: PortalModule }, { kind: "directive", type: i1.CdkPortal, selector: "[cdkPortal]", exportAs: ["cdkPortal"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
475
|
+
}
|
|
476
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: SdWindow, decorators: [{
|
|
477
|
+
type: Component,
|
|
478
|
+
args: [{ selector: 'sd-window, sd-modal-resizable', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [SdButton, PortalModule, NgClass], template: "<ng-template cdkPortal>\n @let _opened = isOpened();\n @let _loading = isLoading();\n @let _minimum = isMinimum();\n @let _maximum = isMaximum();\n @let _labels = labels();\n @let _autoId = autoId();\n <div [id]=\"id + '-status'\" class=\"sd-window__status modal-resizable__status\" role=\"status\" aria-live=\"polite\" aria-atomic=\"true\">\n {{ _opened && _loading ? _labels.loading : '' }}\n </div>\n <div\n [id]=\"id\"\n class=\"sd-window modal-resizable\"\n [ngClass]=\"windowClass()\"\n [attr.data-opened]=\"dataOpened()\"\n [attr.data-loading]=\"dataLoading()\"\n role=\"dialog\"\n aria-modal=\"false\"\n tabindex=\"-1\"\n [attr.aria-labelledby]=\"titleId\"\n [attr.aria-describedby]=\"ariaDescribedBy() || null\"\n [attr.aria-hidden]=\"!_opened ? 'true' : null\"\n [attr.aria-busy]=\"_loading ? 'true' : null\"\n [attr.inert]=\"!_opened ? '' : null\"\n [attr.data-autoid]=\"_autoId\"\n [class.modal-resizable--active]=\"_opened\"\n [class.modal-resizable--loading]=\"_loading\"\n [class.c-closed]=\"!_opened\"\n [class.c-minium]=\"_minimum\"\n [class.modal-resizable--top]=\"_minimum && minimizedAtTop()\"\n [class.c-fullscreen]=\"_maximum\"\n (mouseenter)=\"onFocus()\"\n (mouseleave)=\"onBlur()\"\n (pointerdown)=\"activate($event)\"\n (focusin)=\"onFocus(); activate()\"\n (focusout)=\"onBlur($event)\"\n (keydown)=\"onKeydown($event)\">\n @if (_opened) {\n <div class=\"sd-window__header modal-resizable__header\">\n <div class=\"sd-window__title modal-resizable__title\" [id]=\"titleId\">\n <ng-content select=\"[sdHeaderLeft],[sdTitle]\">{{ title() || _labels.title }}</ng-content>\n </div>\n <div class=\"sd-window__actions modal-resizable__actions\">\n <ng-content select=\"[sdHeaderRight]\"></ng-content>\n <sd-button\n data-sd-window-action=\"restore\"\n size=\"sm\"\n type=\"text\"\n color=\"secondary\"\n [prefixIcon]=\"_minimum ? 'expand_less' : 'remove'\"\n [tooltip]=\"_minimum ? _labels.restore : _labels.minimize\"\n [autoId]=\"_autoId ? _autoId + '-restore' : undefined\"\n (click)=\"_minimum ? restore() : minimize()\" />\n <sd-button\n size=\"sm\"\n type=\"text\"\n color=\"secondary\"\n [prefixIcon]=\"_maximum ? 'fullscreen_exit' : 'open_in_full'\"\n [tooltip]=\"_maximum ? _labels.exitFullscreen : _labels.fullscreen\"\n [autoId]=\"_autoId ? _autoId + '-fullscreen' : undefined\"\n (click)=\"toggleFullscreen()\" />\n @if (!hideClose()) {\n <sd-button\n size=\"sm\"\n type=\"text\"\n color=\"secondary\"\n prefixIcon=\"close\"\n [tooltip]=\"_labels.close\"\n [autoId]=\"_autoId ? _autoId + '-close' : undefined\"\n (click)=\"close()\" />\n }\n </div>\n </div>\n <div class=\"sd-window__body modal-resizable__body\" [attr.inert]=\"_loading ? '' : null\">\n <div class=\"sd-window__content modal-resizable__content\"><ng-content select=\"[sdBody]\"></ng-content><ng-content></ng-content></div>\n </div>\n <div class=\"sd-window__footer modal-resizable__footer\" [attr.inert]=\"_loading ? '' : null\">\n <div class=\"sd-window__footer-left modal-resizable__footer-left\"><ng-content select=\"[sdFooterLeft]\"></ng-content></div>\n <div class=\"sd-window__footer-right modal-resizable__footer-right\"><ng-content select=\"[sdFooterRight]\"></ng-content></div>\n </div>\n }\n </div>\n</ng-template>\n", styles: [".modal-resizable__status{position:absolute;inline-size:1px;block-size:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.modal-resizable{box-sizing:border-box;position:fixed;inset-inline-end:var(--sd-space-8, 8px);inset-block-start:min(var(--sd-modal-resizable-top, 80px),20dvh);inset-block-end:0;max-inline-size:calc(100vw - 16px);background:var(--sd-window-surface, var(--sd-modal-resizable-bg, var(--sd-overlay-surface, var(--sd-surface))));color:var(--sd-window-text, var(--sd-modal-resizable-title, var(--sd-text)));z-index:var(--sd-z-backdrop, 998);display:flex;flex-direction:column;min-inline-size:0;opacity:0;visibility:hidden;transform:translateY(var(--sd-space-16, 16px));transition:opacity var(--sd-duration-base, .2s) var(--sd-ease-standard, ease),transform var(--sd-duration-base, .2s) var(--sd-ease-standard, ease);pointer-events:none;box-shadow:var(--sd-shadow-md);border:1px solid var(--sd-window-border, var(--sd-modal-resizable-divider, var(--sd-border)));border-block-end:0;border-radius:var(--sd-radius-8, 8px) var(--sd-radius-8, 8px) 0 0}.modal-resizable:focus-visible{outline:var(--sd-focus-ring-width, 2px) solid var(--sd-focus-ring-color, var(--sd-primary));outline-offset:var(--sd-focus-ring-offset, 2px)}.modal-resizable.c-minium{inset-block-start:auto}.modal-resizable.c-minium .modal-resizable__body,.modal-resizable.c-minium .modal-resizable__footer{display:none}.modal-resizable.c-fullscreen:not(.c-minium){inset-block-start:var(--sd-space-8, 8px)}.modal-resizable.c-minium.modal-resizable--top{inset-block-start:var(--sd-space-8, 8px);inset-block-end:auto;border-block-end:1px solid var(--sd-window-border, var(--sd-modal-resizable-divider, var(--sd-border)));border-radius:var(--sd-radius-8, 8px)}.modal-resizable--active{opacity:1;visibility:visible;pointer-events:auto;transform:none}.modal-resizable__header{display:flex;align-items:center;gap:var(--sd-space-8, 8px);flex:0 0 auto;min-block-size:var(--sd-space-56, 56px);padding-inline:var(--sd-space-16, 16px);padding-block:var(--sd-space-12, 12px);background:var(--sd-window-header-bg, var(--sd-window-surface, var(--sd-modal-resizable-header-bg, var(--sd-modal-resizable-bg, var(--sd-overlay-surface, var(--sd-surface))))));border-block-end:1px solid var(--sd-window-border, var(--sd-modal-resizable-divider, var(--sd-border)));border-start-start-radius:inherit;border-start-end-radius:inherit}.modal-resizable__title{flex:1 1 0;min-inline-size:0;font-size:var(--sd-font-size-18, 18px);line-height:var(--sd-line-height-28, 28px);font-weight:var(--sd-font-weight-semibold, 600);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.modal-resizable__title>*{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.modal-resizable__actions{display:flex;align-items:center;flex:0 0 auto;gap:var(--sd-space-4, 4px);margin-inline-start:auto}.modal-resizable__body{flex:1 1 0;min-block-size:0;min-inline-size:0;display:flex;position:relative}.modal-resizable__content{flex:1;min-inline-size:0;min-block-size:0;padding:var(--sd-space-16, 16px);overflow:auto;overflow-wrap:anywhere;overscroll-behavior:contain}.modal-resizable__footer{flex:0 0 auto;background:var(--sd-window-surface, var(--sd-modal-resizable-bg, var(--sd-overlay-surface, var(--sd-surface))));border-block-start:1px solid var(--sd-window-border, var(--sd-modal-resizable-divider, var(--sd-border)));padding-inline:var(--sd-space-16, 16px);padding-block:var(--sd-space-12, 12px);padding-block-end:max(var(--sd-space-12, 12px),env(safe-area-inset-bottom));display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--sd-space-8, 8px)}.modal-resizable__footer:has(.modal-resizable__footer-left:empty):has(.modal-resizable__footer-right:empty){display:none}.modal-resizable__footer-left,.modal-resizable__footer-right{display:flex;flex-wrap:wrap;align-items:center;min-inline-size:0;max-inline-size:100%;gap:var(--sd-space-8, 8px)}.modal-resizable__footer-right{margin-inline-start:auto;justify-content:flex-end}@media(prefers-reduced-motion:reduce){.modal-resizable{transition:none;transform:none}}\n"] }]
|
|
479
|
+
}], ctorParameters: () => [] });
|
|
480
|
+
|
|
481
|
+
/**
|
|
482
|
+
* Generated bundle index. Do not edit.
|
|
483
|
+
*/
|
|
484
|
+
|
|
485
|
+
export { SdWindow };
|
|
486
|
+
//# sourceMappingURL=sdcorejs-angular-components-window.mjs.map
|