@sdcorejs/angular 21.3.1 → 21.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/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 +142 -11
- package/fesm2022/sdcorejs-angular-components-avatar.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-badge.mjs +542 -24
- package/fesm2022/sdcorejs-angular-components-badge.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-button.mjs +31 -3
- 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 +457 -756
- 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 +2118 -1159
- 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 +177 -283
- 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 +260 -43
- 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 +559 -94
- package/fesm2022/sdcorejs-angular-components-tab-router.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-table.mjs +1001 -119
- 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 +887 -174
- 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 +484 -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 +457 -125
- package/fesm2022/sdcorejs-angular-forms-chip-calendar.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-chip.mjs +414 -122
- package/fesm2022/sdcorejs-angular-forms-chip.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-date-range.mjs +79 -13
- package/fesm2022/sdcorejs-angular-forms-date-range.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-date.mjs +75 -18
- 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 +56 -6
- package/fesm2022/sdcorejs-angular-forms-input-number.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-input.mjs +54 -7
- 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 +87 -33
- 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-BR6jxyYd.mjs +478 -0
- package/fesm2022/sdcorejs-angular-modules-generic-generic-configuration.page-BR6jxyYd.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-generic-generic-form-host.page-BsEL-y-M.mjs +214 -0
- package/fesm2022/sdcorejs-angular-modules-generic-generic-form-host.page-BsEL-y-M.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-generic-generic-list.page-qTFKh4UG.mjs +277 -0
- package/fesm2022/sdcorejs-angular-modules-generic-generic-list.page-qTFKh4UG.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-generic-sdcorejs-angular-modules-generic-Cq0GFfo1.mjs +1556 -0
- package/fesm2022/sdcorejs-angular-modules-generic-sdcorejs-angular-modules-generic-Cq0GFfo1.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 +2055 -37
- 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-p8-V_Ol9.mjs +51 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-base-api.service-p8-V_Ol9.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-create-side-drawer.component-DTcpSsbe.mjs +130 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-create-side-drawer.component-DTcpSsbe.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-create-side-drawer.component-T2ox0oMZ.mjs +131 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-create-side-drawer.component-T2ox0oMZ.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-create.component-DAjVXHXc.mjs +99 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-create.component-DAjVXHXc.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-create.component-DkHR_ix2.mjs +118 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-create.component-DkHR_ix2.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-create.component-DxWuy1ul.mjs +460 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-create.component-DxWuy1ul.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-Cbs05A2j.mjs +66 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-customer.service-Cbs05A2j.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-detail-side-drawer.component-Bkk3_Lf0.mjs +148 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-detail-side-drawer.component-Bkk3_Lf0.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-detail.component-BIuEchUV.mjs +467 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-detail.component-BIuEchUV.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-detail.component-CH21RSWx.mjs +172 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-detail.component-CH21RSWx.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-detail.component-CX4WWzER.mjs +90 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-detail.component-CX4WWzER.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-flow.component-D1kpfcf_.mjs +514 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-flow.component-D1kpfcf_.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-form-api-errors-DYyFPZUU.mjs +61 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-form-api-errors-DYyFPZUU.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-general-information-form.component-B9vCzIT6.mjs +232 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-general-information-form.component-B9vCzIT6.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-general-information-form.component-BnROr-Wg.mjs +87 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-general-information-form.component-BnROr-Wg.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-general-information-form.component-qs8Yoxn0.mjs +170 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-general-information-form.component-qs8Yoxn0.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-general-information-view.component-Cbwdhc0Z.mjs +70 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-general-information-view.component-Cbwdhc0Z.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-index.component-DYphTR6C.mjs +100 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-index.component-DYphTR6C.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-lines-form.component-C692P-z0.mjs +522 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-lines-form.component-C692P-z0.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-5sLtmhG1.mjs +71 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-5sLtmhG1.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-BIFg9bUW.mjs +629 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-BIFg9bUW.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-CZ1NoLIo.mjs +115 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-CZ1NoLIo.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-CmZeYoF7.mjs +118 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-CmZeYoF7.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-Dy2Rkh8f.mjs +164 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-Dy2Rkh8f.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-mock-backend.factory-BdxQkZXW.mjs +1069 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-mock-backend.factory-BdxQkZXW.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-BpSTfkeT.mjs +48 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-product.service-BpSTfkeT.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-profile.component-D3QP1i9v.mjs +293 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-profile.component-D3QP1i9v.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-BA64XAgv.mjs +74 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-BA64XAgv.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-CWTlhZzo.mjs +50 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-CWTlhZzo.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-ClRXOw9g.mjs +165 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-ClRXOw9g.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-DYT6cDVo.mjs +45 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-DYT6cDVo.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-Dww3V1b9.mjs +43 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-Dww3V1b9.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-HwJm344-.mjs +74 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-HwJm344-.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-ZkBSRFv_.mjs +99 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-ZkBSRFv_.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-px1VU73r.mjs +66 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-px1VU73r.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-sdcorejs-angular-modules-pattern-BSDQaT9e.mjs +406 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-sdcorejs-angular-modules-pattern-BSDQaT9e.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-shell.component-2EN7PuIE.mjs +317 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-shell.component-2EN7PuIE.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-update-side-drawer.component-Crg1J2V5.mjs +132 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-update-side-drawer.component-Crg1J2V5.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-update-side-drawer.component-LIBiOZLn.mjs +143 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-update-side-drawer.component-LIBiOZLn.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-update.component-4Mm8-ehz.mjs +128 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-update.component-4Mm8-ehz.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-update.component-ClEGOr5D.mjs +357 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-update.component-ClEGOr5D.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-update.component-CoGA7wxY.mjs +100 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-update.component-CoGA7wxY.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/modules/pattern/README.md +76 -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.ts +21 -0
- package/modules/pattern/features/approval/pages/detail/detail.component.ts +139 -0
- package/modules/pattern/features/approval/pages/list/approval-inbox.ts +7 -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.ts +30 -0
- package/modules/pattern/features/approval/services/approval.model.ts +38 -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.ts +123 -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.ts +134 -0
- package/modules/pattern/features/category/entity.resolver.ts +27 -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.ts +42 -0
- package/modules/pattern/features/category/services/category.model.ts +39 -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.ts +131 -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.ts +30 -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.ts +106 -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.ts +140 -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.ts +35 -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.ts +127 -0
- package/modules/pattern/features/customer/entity.resolver.ts +21 -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.ts +120 -0
- package/modules/pattern/features/customer/pipes/customer-detail.pipe.ts +18 -0
- package/modules/pattern/features/customer/routes.ts +59 -0
- package/modules/pattern/features/customer/services/customer.model.ts +87 -0
- package/modules/pattern/features/customer/services/customer.service.ts +79 -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.ts +44 -0
- package/modules/pattern/features/import/pages/flow/flow.component.ts +269 -0
- package/modules/pattern/features/import/routes.ts +19 -0
- package/modules/pattern/features/import/services/import.model.ts +82 -0
- package/modules/pattern/features/import/services/import.service.ts +18 -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.ts +46 -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.ts +205 -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.ts +128 -0
- package/modules/pattern/features/order/entity.resolver.ts +37 -0
- package/modules/pattern/features/order/pages/create/create.component.ts +99 -0
- package/modules/pattern/features/order/pages/detail/detail.component.ts +222 -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.ts +119 -0
- package/modules/pattern/features/order/routes.ts +54 -0
- package/modules/pattern/features/order/services/order.model.ts +109 -0
- package/modules/pattern/features/order/services/order.service.ts +63 -0
- package/modules/pattern/features/partner/pages/create/create.component.ts +324 -0
- package/modules/pattern/features/partner/routes.ts +20 -0
- package/modules/pattern/features/partner/services/partner.model.ts +30 -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.ts +88 -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.ts +30 -0
- package/modules/pattern/features/product/entity.resolver.ts +21 -0
- package/modules/pattern/features/product/pages/create/create.component.ts +85 -0
- package/modules/pattern/features/product/pages/detail/detail.component.ts +53 -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.ts +86 -0
- package/modules/pattern/features/product/pipes/product-detail.pipe.ts +18 -0
- package/modules/pattern/features/product/routes.ts +48 -0
- package/modules/pattern/features/product/services/product.model.ts +38 -0
- package/modules/pattern/features/product/services/product.service.ts +48 -0
- package/modules/pattern/features/settings/pages/update/update.component.ts +227 -0
- package/modules/pattern/features/settings/routes.ts +24 -0
- package/modules/pattern/features/settings/services/settings.model.ts +18 -0
- package/modules/pattern/features/settings/services/settings.service.ts +15 -0
- package/modules/pattern/features/settings/settings.resolver.ts +8 -0
- package/package.json +44 -7
- package/types/sdcorejs-angular-components-avatar.d.ts +67 -2
- package/types/sdcorejs-angular-components-badge.d.ts +206 -6
- package/types/sdcorejs-angular-components-button.d.ts +20 -1
- package/types/sdcorejs-angular-components-ckeditor-styles.d.ts +3 -18
- package/types/sdcorejs-angular-components-editor-engine.d.ts +246 -0
- package/types/sdcorejs-angular-components-editor.d.ts +20 -17
- package/types/sdcorejs-angular-components-file-explorer.d.ts +4 -2
- package/types/sdcorejs-angular-components-form-generic.d.ts +246 -35
- package/types/sdcorejs-angular-components-mini-editor.d.ts +33 -70
- package/types/sdcorejs-angular-components-modal-resizable.d.ts +1 -124
- package/types/sdcorejs-angular-components-operator.d.ts +137 -8
- package/types/sdcorejs-angular-components-section.d.ts +13 -1
- package/types/sdcorejs-angular-components-splitter.d.ts +1 -1
- package/types/sdcorejs-angular-components-tab-router.d.ts +74 -19
- package/types/sdcorejs-angular-components-table.d.ts +210 -18
- package/types/sdcorejs-angular-components-upload-file.d.ts +181 -21
- package/types/sdcorejs-angular-components-window.d.ts +81 -0
- package/types/sdcorejs-angular-components.d.ts +1 -0
- package/types/sdcorejs-angular-configurations.d.ts +8 -1
- package/types/sdcorejs-angular-forms-autocomplete.d.ts +5 -0
- package/types/sdcorejs-angular-forms-chip-calendar.d.ts +163 -18
- package/types/sdcorejs-angular-forms-chip.d.ts +136 -26
- package/types/sdcorejs-angular-forms-date-range.d.ts +24 -2
- package/types/sdcorejs-angular-forms-date.d.ts +23 -2
- package/types/sdcorejs-angular-forms-directives.d.ts +47 -2
- package/types/sdcorejs-angular-forms-input-number.d.ts +23 -2
- package/types/sdcorejs-angular-forms-input.d.ts +23 -2
- package/types/sdcorejs-angular-forms-models.d.ts +38 -3
- package/types/sdcorejs-angular-forms-select.d.ts +32 -2
- package/types/sdcorejs-angular-i18n.d.ts +344 -2
- package/types/sdcorejs-angular-modules-generic.d.ts +316 -0
- package/types/sdcorejs-angular-modules-icon.d.ts +37 -6
- package/types/sdcorejs-angular-modules-layout.d.ts +622 -89
- package/types/sdcorejs-angular-modules-pattern.d.ts +50 -0
- package/types/sdcorejs-angular-modules.d.ts +1 -0
- package/types/sdcorejs-angular-pipes.d.ts +2 -0
- package/types/sdcorejs-angular-services-date-time.d.ts +57 -0
- package/types/sdcorejs-angular-services-storage.d.ts +8 -1
- package/types/sdcorejs-angular-services-unsaved-changes.d.ts +11 -0
- package/types/sdcorejs-angular-services.d.ts +1 -0
- package/types/sdcorejs-angular-utilities-read-state.d.ts +2 -0
- package/types/sdcorejs-angular-utilities-theme.d.ts +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sdcorejs-angular-modules-generic-generic-configuration.page-BR6jxyYd.mjs","sources":["../../../projects/sdcorejs-angular/modules/generic/src/components/configuration-form/generic-configuration-form.component.ts","../../../projects/sdcorejs-angular/modules/generic/src/components/configuration-form/generic-configuration-form.component.html","../../../projects/sdcorejs-angular/modules/generic/src/components/property-identity/generic-property-identity.component.ts","../../../projects/sdcorejs-angular/modules/generic/src/components/property-identity/generic-property-identity.component.html","../../../projects/sdcorejs-angular/modules/generic/src/components/configuration-general/generic-configuration-general.component.ts","../../../projects/sdcorejs-angular/modules/generic/src/components/configuration-general/generic-configuration-general.component.html","../../../projects/sdcorejs-angular/modules/generic/src/components/configuration-import/generic-configuration-import.component.ts","../../../projects/sdcorejs-angular/modules/generic/src/components/configuration-import/generic-configuration-import.component.html","../../../projects/sdcorejs-angular/modules/generic/src/components/configuration-list/generic-configuration-list.component.ts","../../../projects/sdcorejs-angular/modules/generic/src/components/configuration-list/generic-configuration-list.component.html","../../../projects/sdcorejs-angular/modules/generic/src/pages/configuration/generic-configuration.page.ts","../../../projects/sdcorejs-angular/modules/generic/src/pages/configuration/generic-configuration.page.html"],"sourcesContent":["import { ChangeDetectionStrategy, Component, computed, inject, input, output, signal } from '@angular/core';\nimport { SdButton } from '@sdcorejs/angular/components/button';\nimport { SdFormBuilder, type SdFormGenericSchema } from '@sdcorejs/angular/components/form-generic';\nimport { SdSection } from '@sdcorejs/angular/components/section';\nimport { SdCheckbox } from '@sdcorejs/angular/forms/checkbox';\nimport { SdInput } from '@sdcorejs/angular/forms/input';\nimport { SdSegmentedComponent, type SdSegmentedItem } from '@sdcorejs/angular/forms/segmented';\nimport { I18nService, SdTranslatePipe } from '@sdcorejs/angular/i18n';\nimport { sdGenericBuildForm, sdGenericCanInsert, sdGenericCanUpdate, sdGenericFieldType } from '../../core';\nimport type { SdGenericFormAction, SdGenericProperty, SdGenericSchema } from '../../models';\n\ntype JsonRecord = Record<string, unknown>;\n\nconst fieldKeys = (form: SdFormGenericSchema): Set<string> => {\n const keys = new Set<string>();\n const visit = (elements: unknown) => {\n for (const element of Array.isArray(elements) ? elements : []) {\n const node = element as JsonRecord;\n if (node['type'] === 'group') visit(node['elements']);\n else if (typeof node['key'] === 'string') keys.add(node['key']);\n }\n };\n for (const page of form.pages ?? []) visit(page.elements);\n return keys;\n};\n\n/**\n * \"Form\" tab: the layout of detail / create / update in sd-form-builder plus a panel of the properties not placed\n * yet (D-023). Adding a property replaces the builder schema, which also clears its undo history and selection.\n */\n@Component({\n selector: 'sd-generic-configuration-form',\n templateUrl: './generic-configuration-form.component.html',\n styleUrl: '../generic-configuration.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [SdSection, SdButton, SdCheckbox, SdFormBuilder, SdInput, SdSegmentedComponent, SdTranslatePipe],\n})\nexport class GenericConfigurationForm {\n readonly schema = input.required<SdGenericSchema>();\n readonly schemaChange = output<SdGenericSchema>();\n\n readonly #i18n = inject(I18nService);\n readonly actions: SdGenericFormAction[] = ['detail', 'create', 'update'];\n readonly action = signal<SdGenericFormAction>('detail');\n /** Choices of the action switcher; sd-segmented exposes them as a radio group with the selected state. */\n readonly actionItems = computed<SdSegmentedItem<SdGenericFormAction>[]>(() =>\n this.actions.map(value => ({ value, label: this.#i18n.t(`core.module.generic.configuration.form.${value}`) }))\n );\n readonly section = computed(() => this.schema()[this.action()]);\n readonly sameAsDetail = computed(() => this.action() !== 'detail' && !this.section()?.form);\n /**\n * Layout shown in the builder: the stored one, or the one the screens would generate today. A rebuilt layout\n * with the same content keeps the previous object, so edits in other tabs do not reload sd-form-builder.\n */\n readonly layout = computed<SdFormGenericSchema>(\n () => {\n const schema = this.schema();\n const action = this.action();\n return schema[action]?.form ?? (action === 'detail' ? undefined : schema.detail?.form) ?? sdGenericBuildForm(schema, action);\n },\n { equal: (previous, next) => previous === next || JSON.stringify(previous) === JSON.stringify(next) }\n );\n readonly missing = computed(() => {\n const placed = fieldKeys(this.layout());\n const action = this.action();\n return this.schema().general.properties.filter(\n property =>\n !placed.has(property.key) &&\n (action === 'create' ? sdGenericCanInsert(property) : action === 'update' ? sdGenericCanUpdate(property) : true)\n );\n });\n\n selectValue(value: unknown): void {\n const action = this.actions.find(item => item === value);\n if (action) this.select(action);\n }\n\n select(action: SdGenericFormAction): void {\n this.action.set(action);\n }\n\n setTitle(raw: unknown): void {\n const title = raw === undefined || raw === null ? '' : String(raw);\n this.#setSection({ title: title || undefined });\n }\n\n setLayout(form: SdFormGenericSchema | undefined): void {\n if (form) this.#setSection({ form });\n }\n\n setSameAsDetail(same: unknown): void {\n if (same === true) this.#setSection({ form: undefined });\n else this.#setSection({ form: structuredClone(this.layout()) });\n }\n\n add(property: SdGenericProperty): void {\n const layout = structuredClone(this.layout());\n const pages = layout.pages.length ? layout.pages : [{ id: 'main', elements: [] }];\n const field = {\n id: `${property.key}-${Date.now().toString(36)}`,\n key: property.key,\n type: sdGenericFieldType(property),\n label: property.label,\n };\n (pages[pages.length - 1].elements as unknown[]).push(field);\n this.#setSection({ form: { ...layout, pages } as SdFormGenericSchema });\n }\n\n #setSection(patch: { title?: string; form?: SdFormGenericSchema }): void {\n const schema = this.schema();\n const action = this.action();\n const next = { ...schema[action], ...patch };\n if (Object.hasOwn(patch, 'form') && patch.form === undefined) delete next.form;\n this.schemaChange.emit({ ...schema, [action]: next });\n }\n}\n","<sd-section [title]=\"'core.module.generic.configuration.section.layout' | sdTranslate\">\n <div class=\"cfg-body cfg-fields\">\n <sd-segmented\n autoId=\"generic-form-action\"\n [ariaLabel]=\"'core.module.generic.configuration.tab.form' | sdTranslate\"\n [items]=\"actionItems()\"\n [model]=\"action()\"\n (modelChange)=\"selectValue($event)\"></sd-segmented>\n <sd-input\n size=\"sm\"\n hideInlineError\n [label]=\"'core.module.generic.field.title' | sdTranslate\"\n [model]=\"section()?.title\"\n (modelChange)=\"setTitle($event)\"></sd-input>\n @if (action() !== 'detail') {\n <sd-checkbox\n [label]=\"'core.module.generic.configuration.form.same-as-detail' | sdTranslate\"\n [model]=\"sameAsDetail()\"\n (modelChange)=\"setSameAsDetail($event)\"></sd-checkbox>\n }\n </div>\n @if (!sameAsDetail() && missing().length) {\n <div class=\"cfg-sub mx-16 mb-16\" data-autoId=\"generic-form-missing\">\n <span class=\"T14M\">{{ 'core.module.generic.configuration.form.properties' | sdTranslate }}</span>\n <div class=\"d-flex gap-8 flex-wrap\">\n @for (property of missing(); track property.key) {\n <sd-button\n [attr.data-autoId]=\"'generic-form-add-' + property.key\"\n prefixIcon=\"add\"\n [title]=\"'core.module.generic.configuration.form.add' | sdTranslate: { label: property.label }\"\n (click)=\"add(property)\"></sd-button>\n }\n </div>\n </div>\n }\n</sd-section>\n@if (!sameAsDetail()) {\n <sd-form-builder [schema]=\"layout()\" (schemaChange)=\"setLayout($event)\"></sd-form-builder>\n}\n","import { ChangeDetectionStrategy, Component, computed, inject, input } from '@angular/core';\nimport { SdTooltipDirective } from '@sdcorejs/angular/directives';\nimport { I18nService } from '@sdcorejs/angular/i18n';\nimport { SD_DATA_TYPE_LABEL_KEY, SdIcon, sdDataTypeIcon } from '@sdcorejs/angular/modules/icon';\nimport { sdGenericPropertyIconKey } from '../../core';\nimport type { SdGenericProperty } from '../../models';\n\n/**\n * Identity of a property row on the configuration screen: data-type icon (tooltip and accessible name = the\n * translated type), the projected label or checkbox, and the property key under it (R-006, INV-003).\n */\n@Component({\n selector: 'sd-generic-property-identity',\n templateUrl: './generic-property-identity.component.html',\n styleUrl: './generic-property-identity.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'cfg-identity' },\n imports: [SdIcon, SdTooltipDirective],\n})\nexport class GenericPropertyIdentity {\n readonly #i18n = inject(I18nService);\n readonly property = input.required<Pick<SdGenericProperty, 'key' | 'dataType' | 'format' | 'multiple'>>();\n\n readonly #typeKey = computed(() => sdGenericPropertyIconKey(this.property()));\n readonly icon = computed(() => sdDataTypeIcon(this.#typeKey()));\n /** Translated type name; a data type outside the icon set has no i18n key, so its raw value is shown as is. */\n readonly typeLabel = computed(() => {\n const key = this.#typeKey();\n return key ? this.#i18n.t(SD_DATA_TYPE_LABEL_KEY[key]) : String(this.property().dataType);\n });\n}\n","@let _typeLabel = typeLabel();\n<!-- why: SdIcon has no tooltip input, so the tooltip sits on a wrapper (D-016); the icon itself carries the accessible name. -->\n<span class=\"cfg-identity__icon\" [sdTooltip]=\"_typeLabel\">\n <sd-icon size=\"sm\" [name]=\"icon()\" [ariaLabel]=\"_typeLabel\"></sd-icon>\n</span>\n<span class=\"cfg-identity__text\">\n <ng-content></ng-content>\n <span class=\"cfg-identity__key\">{{ property().key }}</span>\n</span>\n","import { ChangeDetectionStrategy, Component, computed, input, output } from '@angular/core';\nimport { SdSection } from '@sdcorejs/angular/components/section';\nimport { SdCheckbox } from '@sdcorejs/angular/forms/checkbox';\nimport { SdInput } from '@sdcorejs/angular/forms/input';\nimport { SdTranslatePipe } from '@sdcorejs/angular/i18n';\nimport type { SdGenericEnumOption, SdGenericProperty, SdGenericPropertyValidation, SdGenericRelation, SdGenericSchema } from '../../models';\nimport { GenericPropertyIdentity } from '../property-identity/generic-property-identity.component';\n\nconst DEFAULT_EDITABLE = new Set(['string', 'text', 'number']);\n\n/** \"General\" tab: display and form settings of each property. `key` and `dataType` stay read-only (AC-020). */\n@Component({\n selector: 'sd-generic-configuration-general',\n templateUrl: './generic-configuration-general.component.html',\n styleUrl: '../generic-configuration.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [GenericPropertyIdentity, SdSection, SdCheckbox, SdInput, SdTranslatePipe],\n})\nexport class GenericConfigurationGeneral {\n readonly schema = input.required<SdGenericSchema>();\n /** Default configuration: a property its backend locks (`insertable` / `updatable` false) cannot be reopened here. */\n readonly base = input<SdGenericSchema | null>(null);\n readonly schemaChange = output<SdGenericSchema>();\n\n readonly rows = computed(() => {\n const base = new Map((this.base()?.general.properties ?? []).map(property => [property.key, property]));\n return this.schema().general.properties.map(property => ({\n property,\n insertLocked: base.get(property.key)?.insertable === false,\n updateLocked: base.get(property.key)?.updatable === false,\n defaultEditable: DEFAULT_EDITABLE.has(property.dataType) && !property.multiple,\n defaultText: property.defaultValue === undefined || property.defaultValue === null ? '' : String(property.defaultValue),\n searchFields: property.relation?.searchFields?.join(', ') ?? '',\n }));\n });\n\n setEntityLabel(label: string): void {\n const schema = this.schema();\n this.schemaChange.emit({ ...schema, general: { ...schema.general, label } });\n }\n\n setProperty(key: string, patch: Partial<SdGenericProperty>): void {\n const schema = this.schema();\n this.schemaChange.emit({\n ...schema,\n general: {\n ...schema.general,\n properties: schema.general.properties.map(property => (property.key === key ? { ...property, ...patch } : property)),\n },\n });\n }\n\n setValidation(property: SdGenericProperty, patch: Partial<SdGenericPropertyValidation>): void {\n this.setProperty(property.key, { validation: { ...property.validation, ...patch } });\n }\n\n setDefault(property: SdGenericProperty, raw: unknown): void {\n const text = raw === undefined || raw === null ? '' : String(raw);\n if (!text) {\n const { defaultValue: _removed, ...rest } = property;\n const schema = this.schema();\n this.schemaChange.emit({\n ...schema,\n general: { ...schema.general, properties: schema.general.properties.map(item => (item.key === property.key ? rest : item)) },\n });\n return;\n }\n const value = property.dataType === 'number' ? Number(text) : text;\n if (property.dataType === 'number' && !Number.isFinite(value)) return;\n this.setProperty(property.key, { defaultValue: value });\n }\n\n setEnum(property: SdGenericProperty, value: string, patch: Partial<SdGenericEnumOption>): void {\n this.setProperty(property.key, {\n enums: (property.enums ?? []).map(option => (option.value === value ? { ...option, ...patch } : option)),\n });\n }\n\n setRelation(property: SdGenericProperty, patch: Partial<SdGenericRelation>): void {\n if (!property.relation) return;\n this.setProperty(property.key, { relation: { ...property.relation, ...patch } });\n }\n\n setSearchFields(property: SdGenericProperty, raw: unknown): void {\n const fields = String(raw ?? '')\n .split(',')\n .map(field => field.trim())\n .filter(Boolean);\n // why: an empty list is stored (not dropped) so that clearing the backend's search fields survives the merge.\n this.setRelation(property, { searchFields: fields });\n }\n\n text(value: unknown): string {\n return value === undefined || value === null ? '' : String(value);\n }\n\n flag(value: unknown): boolean {\n return value === true;\n }\n}\n","<sd-section [title]=\"'core.module.generic.configuration.section.entity' | sdTranslate\">\n <div class=\"cfg-body cfg-fields\">\n <sd-input\n size=\"sm\"\n hideInlineError\n [label]=\"'core.module.generic.field.label' | sdTranslate\"\n [model]=\"schema().general.label\"\n (modelChange)=\"setEntityLabel(text($event))\"></sd-input>\n </div>\n</sd-section>\n\n<sd-section [title]=\"'core.module.generic.configuration.section.properties' | sdTranslate\">\n <div class=\"cfg-body cfg-rows cfg-rows--properties\">\n @for (row of rows(); track row.property.key) {\n @let property = row.property;\n <div class=\"cfg-row\" role=\"group\" [attr.aria-label]=\"property.label || property.key\" [attr.data-autoId]=\"'generic-property-' + property.key\">\n <sd-generic-property-identity [property]=\"property\">\n <span>{{ property.label || property.key }}</span>\n </sd-generic-property-identity>\n <sd-input\n size=\"sm\"\n hideInlineError\n [label]=\"'core.module.generic.field.label' | sdTranslate\"\n [model]=\"property.label\"\n (modelChange)=\"setProperty(property.key, { label: text($event) })\"></sd-input>\n @if (row.defaultEditable) {\n <sd-input\n size=\"sm\"\n hideInlineError\n [label]=\"'core.module.generic.field.default-value' | sdTranslate\"\n [model]=\"row.defaultText\"\n (modelChange)=\"setDefault(property, $event)\"></sd-input>\n } @else {\n <span></span>\n }\n <div class=\"cfg-flags\">\n <sd-checkbox\n [label]=\"'core.module.generic.field.required' | sdTranslate\"\n [model]=\"!!property.validation?.required\"\n (modelChange)=\"setValidation(property, { required: flag($event) || undefined })\"></sd-checkbox>\n @if (!property.system) {\n <sd-checkbox\n [label]=\"'core.module.generic.field.insertable' | sdTranslate\"\n [model]=\"property.insertable !== false\"\n [disabled]=\"row.insertLocked\"\n (modelChange)=\"setProperty(property.key, { insertable: flag($event) })\"></sd-checkbox>\n <sd-checkbox\n [label]=\"'core.module.generic.field.updatable' | sdTranslate\"\n [model]=\"property.updatable !== false\"\n [disabled]=\"row.updateLocked\"\n (modelChange)=\"setProperty(property.key, { updatable: flag($event) })\"></sd-checkbox>\n }\n </div>\n @if (property.dataType === 'enum' && property.enums?.length) {\n <div class=\"cfg-sub\">\n @for (option of property.enums ?? []; track option.value) {\n <div class=\"cfg-option\">\n <span class=\"cfg-option__value\">{{ option.value }}</span>\n <sd-input\n size=\"sm\"\n hideInlineError\n [label]=\"'core.module.generic.field.enum-label' | sdTranslate\"\n [model]=\"option.label\"\n (modelChange)=\"setEnum(property, option.value, { label: text($event) })\"></sd-input>\n <sd-input\n size=\"sm\"\n hideInlineError\n [label]=\"'core.module.generic.field.color' | sdTranslate\"\n [model]=\"option.color\"\n (modelChange)=\"setEnum(property, option.value, { color: text($event) || undefined })\"></sd-input>\n </div>\n }\n </div>\n }\n @if (property.dataType === 'relation') {\n <div class=\"cfg-sub\">\n <div class=\"cfg-fields\">\n <sd-input\n size=\"sm\"\n hideInlineError\n [label]=\"'core.module.generic.field.display' | sdTranslate\"\n [model]=\"property.relation?.display\"\n (modelChange)=\"setRelation(property, { display: text($event) })\"></sd-input>\n <sd-input\n size=\"sm\"\n hideInlineError\n [label]=\"'core.module.generic.field.search-fields' | sdTranslate\"\n [model]=\"row.searchFields\"\n (modelChange)=\"setSearchFields(property, $event)\"></sd-input>\n </div>\n </div>\n }\n </div>\n }\n </div>\n</sd-section>\n","import { ChangeDetectionStrategy, Component, computed, input, output } from '@angular/core';\nimport { SdSection } from '@sdcorejs/angular/components/section';\nimport { SdCheckbox } from '@sdcorejs/angular/forms/checkbox';\nimport { SdInput } from '@sdcorejs/angular/forms/input';\nimport { SdSelect } from '@sdcorejs/angular/forms/select';\nimport { SdTranslatePipe } from '@sdcorejs/angular/i18n';\nimport { sdGenericImportColumns, sdGenericImportable } from '../../core';\nimport type { SdGenericImportColumn, SdGenericSchema } from '../../models';\nimport { GenericPropertyIdentity } from '../property-identity/generic-property-identity.component';\n\n/** \"Import\" tab: imported columns, relation match fields and the upsert key. */\n@Component({\n selector: 'sd-generic-configuration-import',\n templateUrl: './generic-configuration-import.component.html',\n styleUrl: '../generic-configuration.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [GenericPropertyIdentity, SdSection, SdCheckbox, SdInput, SdSelect, SdTranslatePipe],\n})\nexport class GenericConfigurationImport {\n readonly schema = input.required<SdGenericSchema>();\n readonly schemaChange = output<SdGenericSchema>();\n\n readonly columns = computed<SdGenericImportColumn[]>(() =>\n sdGenericImportColumns(this.schema()).map(column => ({\n key: column.key,\n ...(column.matchField ? { matchField: column.matchField } : {}),\n }))\n );\n readonly rows = computed(() => {\n const selected = new Map(this.columns().map(column => [column.key, column]));\n return this.schema()\n .general.properties.filter(sdGenericImportable)\n .map(property => ({\n property,\n // why: same fallback as the list tab — a property without a label is named by its key.\n label: property.label || property.key,\n selected: selected.has(property.key),\n matchField: selected.get(property.key)?.matchField ?? '',\n }));\n });\n /** Only an imported single-value column can match existing records (AC-020). */\n readonly upsertOptions = computed(() =>\n sdGenericImportColumns(this.schema())\n .filter(column => !column.property.multiple)\n .map(column => ({ value: column.key, display: column.property.label || column.key }))\n );\n\n /** Same contract as the list tab: adding a column appends it to the end. */\n toggleColumn(key: string, selected: boolean): void {\n const columns = this.columns();\n this.#setImport({ columns: selected ? [...columns, { key }] : columns.filter(column => column.key !== key) });\n }\n\n setMatchField(key: string, raw: unknown): void {\n const matchField = raw === undefined || raw === null ? '' : String(raw).trim();\n this.#setImport({\n columns: this.columns().map(column => (column.key === key ? { key, ...(matchField ? { matchField } : {}) } : column)),\n });\n }\n\n setUpsertKey(raw: unknown): void {\n const upsertKey = typeof raw === 'string' && raw ? raw : undefined;\n this.#setImport({ upsertKey });\n }\n\n #setImport(patch: { columns?: SdGenericImportColumn[]; upsertKey?: string }): void {\n const schema = this.schema();\n const next = { ...schema.import, ...patch };\n if (Object.hasOwn(patch, 'upsertKey') && patch.upsertKey === undefined) delete next.upsertKey;\n this.schemaChange.emit({ ...schema, import: next });\n }\n\n flag(value: unknown): boolean {\n return value === true;\n }\n}\n","<sd-section [title]=\"'core.module.generic.configuration.section.upsert' | sdTranslate\">\n <p class=\"cfg-hint T14R\">{{ 'core.module.generic.configuration.upsert-hint' | sdTranslate }}</p>\n <div class=\"cfg-body cfg-fields\">\n <sd-select\n size=\"sm\"\n hideInlineError\n valueField=\"value\"\n displayField=\"display\"\n [label]=\"'core.module.generic.field.upsert-key' | sdTranslate\"\n [items]=\"upsertOptions()\"\n [model]=\"schema().import?.upsertKey\"\n (modelChange)=\"setUpsertKey($event)\"></sd-select>\n </div>\n</sd-section>\n\n<sd-section [title]=\"'core.module.generic.configuration.section.import-columns' | sdTranslate\">\n <div class=\"cfg-body cfg-rows cfg-rows--import\">\n @for (row of rows(); track row.property.key) {\n <div class=\"cfg-row\" role=\"group\" [attr.aria-label]=\"row.label\" [attr.data-autoId]=\"'generic-import-' + row.property.key\">\n <sd-generic-property-identity [property]=\"row.property\">\n <sd-checkbox\n [label]=\"row.label\"\n [model]=\"row.selected\"\n (modelChange)=\"toggleColumn(row.property.key, flag($event))\"></sd-checkbox>\n </sd-generic-property-identity>\n @if (row.selected && row.property.dataType === 'relation') {\n <sd-input\n size=\"sm\"\n hideInlineError\n [label]=\"'core.module.generic.field.match-field' | sdTranslate\"\n [model]=\"row.matchField\"\n (modelChange)=\"setMatchField(row.property.key, $event)\"></sd-input>\n } @else {\n <span></span>\n }\n </div>\n }\n </div>\n</sd-section>\n","import { LiveAnnouncer } from '@angular/cdk/a11y';\nimport { CdkDrag, type CdkDragDrop, CdkDragHandle, CdkDropList, moveItemInArray } from '@angular/cdk/drag-drop';\nimport { ChangeDetectionStrategy, Component, computed, inject, input, output } from '@angular/core';\nimport { SdButton } from '@sdcorejs/angular/components/button';\nimport { SdSection } from '@sdcorejs/angular/components/section';\nimport { SdTooltipDirective } from '@sdcorejs/angular/directives';\nimport { SdCheckbox } from '@sdcorejs/angular/forms/checkbox';\nimport { SdInput } from '@sdcorejs/angular/forms/input';\nimport { SdInputNumber } from '@sdcorejs/angular/forms/input-number';\nimport { I18nService, SdTranslatePipe } from '@sdcorejs/angular/i18n';\nimport { SdIcon } from '@sdcorejs/angular/modules/icon';\nimport { sdGenericListColumns, sdGenericPageSize } from '../../core';\nimport type { SdGenericListColumn, SdGenericListSection, SdGenericProperty, SdGenericSchema } from '../../models';\nimport { GenericPropertyIdentity } from '../property-identity/generic-property-identity.component';\n\ninterface ColumnRow {\n column: SdGenericListColumn;\n property: SdGenericProperty;\n label: string;\n first: boolean;\n last: boolean;\n}\n\n/**\n * \"List\" tab: column order (drag-drop or move buttons) and flags, page size and export. External filters are\n * declared in code (backend schema or provideSdGenericEntity), not here (D-001).\n */\n@Component({\n selector: 'sd-generic-configuration-list',\n templateUrl: './generic-configuration-list.component.html',\n styleUrl: '../generic-configuration.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [\n CdkDrag,\n CdkDragHandle,\n CdkDropList,\n GenericPropertyIdentity,\n SdButton,\n SdCheckbox,\n SdIcon,\n SdInput,\n SdInputNumber,\n SdSection,\n SdTooltipDirective,\n SdTranslatePipe,\n ],\n})\nexport class GenericConfigurationList {\n readonly schema = input.required<SdGenericSchema>();\n readonly schemaChange = output<SdGenericSchema>();\n\n readonly #announcer = inject(LiveAnnouncer);\n readonly #i18n = inject(I18nService);\n\n readonly columns = computed(() => sdGenericListColumns(this.schema()));\n readonly pageSize = computed(() => sdGenericPageSize(this.schema()));\n readonly #properties = computed(() => new Map(this.schema().general.properties.map(property => [property.key, property])));\n /** Columns of the table, in order; they match `list.columns` because merge drops unknown keys (INV-005). */\n readonly listedRows = computed<ColumnRow[]>(() => {\n const properties = this.#properties();\n const listed = this.columns().filter(column => properties.has(column.key));\n return listed.map((column, index) => {\n const property = properties.get(column.key)!;\n return { column, property, label: property.label || column.key, first: index === 0, last: index === listed.length - 1 };\n });\n });\n /** Properties that are not a column of the table; they can be added but not reordered. */\n readonly unlistedRows = computed<ColumnRow[]>(() => {\n const shown = new Set(this.columns().map(column => column.key));\n return this.schema()\n .general.properties.filter(property => !shown.has(property.key))\n .map(property => ({ column: { key: property.key }, property, label: property.label || property.key, first: false, last: true }));\n });\n\n setList(patch: Partial<SdGenericListSection>): void {\n const schema = this.schema();\n this.schemaChange.emit({ ...schema, list: { ...schema.list, ...patch } });\n }\n\n setTitle(raw: unknown): void {\n const title = raw === undefined || raw === null ? '' : String(raw);\n this.setList({ title: title || undefined });\n }\n\n setPageSize(raw: unknown): void {\n const value = Number(raw);\n if (Number.isInteger(value) && value > 0) this.setList({ pageSize: value });\n }\n\n /** Adding a column appends it to the end; neither adding nor removing is a reorder. */\n toggleColumn(key: string, shown: boolean): void {\n const columns = this.columns();\n this.setList({ columns: shown ? [...columns, { key }] : columns.filter(column => column.key !== key) });\n }\n\n setColumn(key: string, patch: Partial<SdGenericListColumn>): void {\n this.setList({ columns: this.columns().map(column => (column.key === key ? { ...column, ...patch } : column)) });\n }\n\n move(key: string, delta: -1 | 1): void {\n // why: `first` / `last` of the buttons come from the listed rows; move past the next listed row, like drop().\n const rows = this.listedRows();\n const target = rows[rows.findIndex(row => row.column.key === key) + delta]?.column.key;\n if (!target) return;\n const columns = this.columns();\n this.reorder(\n columns.findIndex(column => column.key === key),\n columns.findIndex(column => column.key === target)\n );\n }\n\n drop(event: CdkDragDrop<unknown>): void {\n // why: the drop list holds the listed rows only; translate its indices into positions in `list.columns`.\n const rows = this.listedRows();\n const from = rows[event.previousIndex]?.column.key;\n const to = rows[event.currentIndex]?.column.key;\n if (!from || !to) return;\n const columns = this.columns();\n this.reorder(\n columns.findIndex(column => column.key === from),\n columns.findIndex(column => column.key === to)\n );\n }\n\n /** The only writer of the column order (D-012, INV-005): indices are positions in `list.columns`. */\n reorder(fromIndex: number, toIndex: number): void {\n const columns = [...this.columns()];\n if (fromIndex === toIndex || fromIndex < 0 || toIndex < 0 || fromIndex >= columns.length || toIndex >= columns.length) return;\n const key = columns[fromIndex].key;\n moveItemInArray(columns, fromIndex, toIndex);\n this.setList({ columns });\n // why: a screen reader does not report that the row moved; announce the new position of the column.\n const properties = this.#properties();\n const label = properties.get(key)?.label || key;\n // why: announce the position among the listed rows, which is what the user sees.\n const position = columns.slice(0, toIndex + 1).filter(column => properties.has(column.key)).length;\n void this.#announcer.announce(this.#i18n.t('core.module.generic.configuration.moved', { label, position }));\n }\n\n flag(value: unknown): boolean {\n return value === true;\n }\n}\n","<sd-section [title]=\"'core.module.generic.configuration.section.display' | sdTranslate\">\n <div class=\"cfg-body cfg-fields\">\n <sd-input\n size=\"sm\"\n hideInlineError\n [label]=\"'core.module.generic.field.title' | sdTranslate\"\n [model]=\"schema().list?.title\"\n (modelChange)=\"setTitle($event)\"></sd-input>\n <sd-input-number\n size=\"sm\"\n hideInlineError\n type=\"positive\"\n [precision]=\"0\"\n [label]=\"'core.module.generic.field.page-size' | sdTranslate\"\n [model]=\"pageSize()\"\n (modelChange)=\"setPageSize($event)\"></sd-input-number>\n <sd-checkbox\n [label]=\"'core.module.generic.field.export' | sdTranslate\"\n [model]=\"!!schema().list?.export\"\n (modelChange)=\"setList({ export: flag($event) })\"></sd-checkbox>\n </div>\n</sd-section>\n\n@let _visibleHint = 'core.module.generic.field.visible-hint' | sdTranslate;\n<sd-section [title]=\"'core.module.generic.configuration.section.columns' | sdTranslate\" [subTitle]=\"'core.module.generic.configuration.columns-hint' | sdTranslate\">\n <div class=\"cfg-body\">\n <!-- why: only the columns of the table are in the drop list; drag-drop and the buttons share reorder() (INV-005). -->\n <div class=\"cfg-rows cfg-rows--columns\" cdkDropList cdkDropListLockAxis=\"y\" (cdkDropListDropped)=\"drop($event)\">\n @for (row of listedRows(); track row.column.key) {\n @let _dragLabel = 'core.module.generic.action.drag' | sdTranslate: { label: row.label };\n <div class=\"cfg-row\" cdkDrag role=\"group\" [attr.aria-label]=\"row.label\" [attr.data-autoId]=\"'generic-column-' + row.column.key\">\n <div class=\"cfg-order\">\n <span class=\"cfg-drag-handle\" cdkDragHandle [sdTooltip]=\"_dragLabel\">\n <sd-icon name=\"drag_indicator\" size=\"sm\" [ariaLabel]=\"_dragLabel\"></sd-icon>\n </span>\n <sd-button\n type=\"text\"\n prefixIcon=\"arrow_upward\"\n [tooltip]=\"'core.module.generic.action.move-up' | sdTranslate: { label: row.label }\"\n [disabled]=\"row.first\"\n (click)=\"move(row.column.key, -1)\"></sd-button>\n <sd-button\n type=\"text\"\n prefixIcon=\"arrow_downward\"\n [tooltip]=\"'core.module.generic.action.move-down' | sdTranslate: { label: row.label }\"\n [disabled]=\"row.last\"\n (click)=\"move(row.column.key, 1)\"></sd-button>\n </div>\n <sd-generic-property-identity [property]=\"row.property\">\n <sd-checkbox [label]=\"row.label\" [model]=\"true\" (modelChange)=\"toggleColumn(row.column.key, flag($event))\"></sd-checkbox>\n </sd-generic-property-identity>\n <div class=\"cfg-flags\">\n <sd-checkbox\n [sdTooltip]=\"_visibleHint\"\n [label]=\"'core.module.generic.field.visible' | sdTranslate\"\n [model]=\"row.column.visible !== false\"\n (modelChange)=\"setColumn(row.column.key, { visible: flag($event) ? undefined : false })\"></sd-checkbox>\n <sd-checkbox\n [label]=\"'core.module.generic.field.sortable' | sdTranslate\"\n [model]=\"row.column.sortable !== false\"\n (modelChange)=\"setColumn(row.column.key, { sortable: flag($event) ? undefined : false })\"></sd-checkbox>\n <sd-checkbox\n [label]=\"'core.module.generic.field.filterable' | sdTranslate\"\n [model]=\"row.column.filterable !== false\"\n (modelChange)=\"setColumn(row.column.key, { filterable: flag($event) ? undefined : false })\"></sd-checkbox>\n </div>\n <sd-input-number\n size=\"sm\"\n hideInlineError\n type=\"positive\"\n [precision]=\"0\"\n [label]=\"'core.module.generic.field.width' | sdTranslate\"\n [model]=\"row.column.width\"\n (modelChange)=\"setColumn(row.column.key, { width: $event ? +$event : undefined })\"></sd-input-number>\n </div>\n }\n </div>\n @if (unlistedRows().length) {\n <div class=\"cfg-rows cfg-rows--columns cfg-rows--unlisted\">\n @for (row of unlistedRows(); track row.column.key) {\n <div class=\"cfg-row\" role=\"group\" [attr.aria-label]=\"row.label\" [attr.data-autoId]=\"'generic-column-' + row.column.key\">\n <div class=\"cfg-order\"></div>\n <sd-generic-property-identity [property]=\"row.property\">\n <sd-checkbox [label]=\"row.label\" [model]=\"false\" (modelChange)=\"toggleColumn(row.column.key, flag($event))\"></sd-checkbox>\n </sd-generic-property-identity>\n </div>\n }\n </div>\n }\n </div>\n</sd-section>\n","import { ChangeDetectionStrategy, Component, computed, inject, signal } from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { ActivatedRoute, NavigationEnd, Router } from '@angular/router';\nimport { SdButton } from '@sdcorejs/angular/components/button';\nimport { SdInform } from '@sdcorejs/angular/components/inform';\nimport { SdTab, SdTabGroup } from '@sdcorejs/angular/components/tab';\nimport { I18nService, SdTranslatePipe } from '@sdcorejs/angular/i18n';\nimport { SdPageComponent } from '@sdcorejs/angular/modules/layout';\nimport { SdNotifyService } from '@sdcorejs/angular/services/notify';\nimport { filter } from 'rxjs';\nimport { GenericConfigurationForm } from '../../components/configuration-form/generic-configuration-form.component';\nimport { GenericConfigurationGeneral } from '../../components/configuration-general/generic-configuration-general.component';\nimport { GenericConfigurationImport } from '../../components/configuration-import/generic-configuration-import.component';\nimport { GenericConfigurationList } from '../../components/configuration-list/generic-configuration-list.component';\nimport type { SdGenericSchema, SdGenericSchemaIssue } from '../../models';\nimport type { SdGenericRouteData } from '../../routes/generic-route.guards';\nimport { SdGenericSchemaService } from '../../services';\n\n/**\n * Configuration screen of one entity. The draft lives here until Save; saving goes only through\n * `SdGenericSchemaService.save` (validate, store, drop the cache) (INV-015).\n */\n@Component({\n selector: 'sd-generic-configuration-page',\n templateUrl: './generic-configuration.page.html',\n styleUrl: './generic-configuration.page.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [\n SdButton,\n SdInform,\n SdPageComponent,\n SdTab,\n SdTabGroup,\n SdTranslatePipe,\n GenericConfigurationGeneral,\n GenericConfigurationList,\n GenericConfigurationForm,\n GenericConfigurationImport,\n ],\n})\nexport class GenericConfigurationPage {\n readonly #route = inject(ActivatedRoute);\n readonly #router = inject(Router);\n readonly #schemas = inject(SdGenericSchemaService);\n readonly #notify = inject(SdNotifyService);\n readonly #i18n = inject(I18nService);\n\n /** Resolved entity; replaced when the router reuses this page for another entity. */\n readonly generic = signal(this.#route.snapshot.data['generic'] as SdGenericRouteData | undefined);\n readonly draft = signal<SdGenericSchema | null>(this.#draftOf(this.generic()));\n readonly issues = signal<SdGenericSchemaIssue[]>([]);\n readonly saving = signal(false);\n readonly removed = computed(() => (this.generic()?.resolved?.removed ?? []).join(', '));\n readonly added = computed(() => (this.generic()?.resolved?.added ?? []).join(', '));\n /** Default configuration (backend schema after the entity schema function): what a stored one may only narrow. */\n readonly base = computed(() => this.generic()?.resolved?.base ?? null);\n readonly title = computed(() => {\n // why: like the list page, a schema that failed to load still names the screen, after its entity.\n const label = this.draft()?.general.label ?? this.generic()?.entity;\n return label === undefined ? '' : this.#i18n.t('core.module.generic.configuration.title', { label });\n });\n\n constructor() {\n // why: the router keeps this page when only :module / :entity change; the resolver then hands new data.\n this.#router.events\n .pipe(\n filter(event => event instanceof NavigationEnd),\n takeUntilDestroyed()\n )\n .subscribe(() => {\n const next = this.#route.snapshot.data['generic'] as SdGenericRouteData | undefined;\n if (next === this.generic()) return;\n this.generic.set(next);\n this.draft.set(this.#draftOf(next));\n this.issues.set([]);\n });\n }\n\n update(next: SdGenericSchema): void {\n this.draft.set(next);\n this.issues.set([]);\n }\n\n async save(): Promise<void> {\n const draft = this.draft();\n const generic = this.generic();\n if (!draft || !generic || this.saving()) return;\n this.saving.set(true);\n try {\n const issues = await this.#schemas.save(generic.module, generic.entity, draft);\n this.issues.set(issues);\n if (issues.length) {\n this.#notify.error(this.#i18n.t('core.module.generic.configuration.save-blocked'));\n return;\n }\n this.#notify.success(this.#i18n.t('core.module.generic.configuration.saved'));\n await this.back();\n } catch (error) {\n this.#notify.error(error instanceof Error ? error.message : String(error));\n } finally {\n this.saving.set(false);\n }\n }\n\n back(): Promise<boolean> {\n return this.#router.navigate(['..'], { relativeTo: this.#route });\n }\n\n #draftOf(generic: SdGenericRouteData | undefined): SdGenericSchema | null {\n return generic?.resolved ? structuredClone(generic.resolved.schema) : null;\n }\n}\n","@let _draft = draft();\n<sd-page class=\"sd-generic-configuration\">\n <div headerLeft class=\"d-flex align-items-center gap-8\">\n <sd-button type=\"text\" prefixIcon=\"arrow_back\" [tooltip]=\"'core.module.generic.action.back' | sdTranslate\" (click)=\"back()\"></sd-button>\n <h1 class=\"T20M m-0\">{{ title() }}</h1>\n </div>\n <div headerRight class=\"d-flex align-items-center gap-8\">\n @if (_draft) {\n <sd-button [title]=\"'core.module.generic.action.cancel' | sdTranslate\" (click)=\"back()\"></sd-button>\n <sd-button\n data-autoId=\"generic-configuration-save\"\n type=\"fill\"\n color=\"primary\"\n prefixIcon=\"save\"\n [loading]=\"saving()\"\n [title]=\"'core.module.generic.action.save' | sdTranslate\"\n (click)=\"save()\"></sd-button>\n }\n </div>\n <div class=\"d-flex flex-column gap-16 p-16\">\n @if (generic()?.error; as error) {\n <sd-inform error [title]=\"error\"></sd-inform>\n }\n @if (_draft) {\n @if (removed()) {\n <sd-inform warning [title]=\"'core.module.generic.configuration.removed' | sdTranslate: { keys: removed() }\"></sd-inform>\n }\n @if (added()) {\n <sd-inform info [title]=\"'core.module.generic.configuration.added' | sdTranslate: { keys: added() }\"></sd-inform>\n }\n @if (issues().length) {\n <sd-inform error data-autoId=\"generic-configuration-issues\" [title]=\"'core.module.generic.configuration.save-blocked' | sdTranslate\">\n <ul class=\"m-0\">\n @for (issue of issues(); track $index) {\n <li class=\"T14R\">{{ issue.path }}: {{ issue.message }}</li>\n }\n </ul>\n </sd-inform>\n }\n <sd-tab-group preserveContent>\n <sd-tab [label]=\"'core.module.generic.configuration.tab.general' | sdTranslate\">\n <sd-generic-configuration-general [schema]=\"_draft\" [base]=\"base()\" (schemaChange)=\"update($event)\"></sd-generic-configuration-general>\n </sd-tab>\n <sd-tab [label]=\"'core.module.generic.configuration.tab.list' | sdTranslate\">\n <sd-generic-configuration-list [schema]=\"_draft\" (schemaChange)=\"update($event)\"></sd-generic-configuration-list>\n </sd-tab>\n <sd-tab [label]=\"'core.module.generic.configuration.tab.form' | sdTranslate\">\n <sd-generic-configuration-form [schema]=\"_draft\" (schemaChange)=\"update($event)\"></sd-generic-configuration-form>\n </sd-tab>\n <sd-tab [label]=\"'core.module.generic.configuration.tab.import' | sdTranslate\">\n <sd-generic-configuration-import [schema]=\"_draft\" (schemaChange)=\"update($event)\"></sd-generic-configuration-import>\n </sd-tab>\n </sd-tab-group>\n }\n </div>\n</sd-page>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAaA,MAAM,SAAS,GAAG,CAAC,IAAyB,KAAiB;AAC3D,IAAA,MAAM,IAAI,GAAG,IAAI,GAAG,EAAU;AAC9B,IAAA,MAAM,KAAK,GAAG,CAAC,QAAiB,KAAI;AAClC,QAAA,KAAK,MAAM,OAAO,IAAI,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,GAAG,QAAQ,GAAG,EAAE,EAAE;YAC7D,MAAM,IAAI,GAAG,OAAqB;AAClC,YAAA,IAAI,IAAI,CAAC,MAAM,CAAC,KAAK,OAAO;AAAE,gBAAA,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;AAChD,iBAAA,IAAI,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,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signal, computed, viewChild, effect, untracked, afterNextRender, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
4
|
+
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
5
|
+
import { FormGroup } from '@angular/forms';
|
|
6
|
+
import { ActivatedRoute, Router, NavigationEnd } from '@angular/router';
|
|
7
|
+
import { SdButton } from '@sdcorejs/angular/components/button';
|
|
8
|
+
import { SdFormRender } from '@sdcorejs/angular/components/form-generic';
|
|
9
|
+
import { SdInform } from '@sdcorejs/angular/components/inform';
|
|
10
|
+
import { SdSideDrawer } from '@sdcorejs/angular/components/side-drawer';
|
|
11
|
+
import { I18nService, SdTranslatePipe } from '@sdcorejs/angular/i18n';
|
|
12
|
+
import { SdPageComponent } from '@sdcorejs/angular/modules/layout';
|
|
13
|
+
import { SdNotifyService } from '@sdcorejs/angular/services/notify';
|
|
14
|
+
import { filter } from 'rxjs';
|
|
15
|
+
import { S as SdGenericDataService, a as SdGenericPermissionService, b as SD_GENERIC_SCOPE, c as SD_GENERIC_LIST_HOST, s as sdGenericBuildForm, d as sdGenericRenderTitle, e as sdGenericRouteParams } from './sdcorejs-angular-modules-generic-sdcorejs-angular-modules-generic-Cq0GFfo1.mjs';
|
|
16
|
+
|
|
17
|
+
const message = (error) => (error instanceof Error ? error.message : String(error));
|
|
18
|
+
/**
|
|
19
|
+
* Create / detail / update of one record. The display mode is decided once the schema is resolved
|
|
20
|
+
* (entity `display` -> adapter `display` -> `'page'`); a side drawer opens over the list kept behind it (INV-009).
|
|
21
|
+
*/
|
|
22
|
+
class GenericFormHostPage {
|
|
23
|
+
#route = inject(ActivatedRoute);
|
|
24
|
+
#router = inject(Router);
|
|
25
|
+
#data = inject(SdGenericDataService);
|
|
26
|
+
#permission = inject(SdGenericPermissionService);
|
|
27
|
+
#scope = inject(SD_GENERIC_SCOPE);
|
|
28
|
+
#notify = inject(SdNotifyService);
|
|
29
|
+
#i18n = inject(I18nService);
|
|
30
|
+
#list = inject(SD_GENERIC_LIST_HOST, { optional: true });
|
|
31
|
+
action = signal(this.#route.snapshot.data['sdGenericAction'], ...(ngDevMode ? [{ debugName: "action" }] : /* istanbul ignore next */ []));
|
|
32
|
+
/** Replaced when the router reuses this page for another record or entity (same route, other params). */
|
|
33
|
+
#state = signal(this.#readRoute(), ...(ngDevMode ? [{ debugName: "#state" }] : /* istanbul ignore next */ []));
|
|
34
|
+
schema = computed(() => this.#state().generic?.resolved?.schema ?? null, ...(ngDevMode ? [{ debugName: "schema" }] : /* istanbul ignore next */ []));
|
|
35
|
+
display = computed(() => {
|
|
36
|
+
const schema = this.schema();
|
|
37
|
+
if (!schema)
|
|
38
|
+
return 'page';
|
|
39
|
+
const args = { schema, action: this.action() };
|
|
40
|
+
return (this.#scope.entity(schema.module, schema.entity)?.display?.(args) ?? this.#scope.adapter(schema.module)?.display?.(args) ?? 'page');
|
|
41
|
+
}, ...(ngDevMode ? [{ debugName: "display" }] : /* istanbul ignore next */ []));
|
|
42
|
+
formSchema = computed(() => {
|
|
43
|
+
const schema = this.schema();
|
|
44
|
+
return schema ? sdGenericBuildForm(schema, this.action()) : null;
|
|
45
|
+
}, ...(ngDevMode ? [{ debugName: "formSchema" }] : /* istanbul ignore next */ []));
|
|
46
|
+
viewed = computed(() => this.action() === 'detail', ...(ngDevMode ? [{ debugName: "viewed" }] : /* istanbul ignore next */ []));
|
|
47
|
+
value = signal({}, ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
48
|
+
record = signal(null, ...(ngDevMode ? [{ debugName: "record" }] : /* istanbul ignore next */ []));
|
|
49
|
+
loading = signal(false, ...(ngDevMode ? [{ debugName: "loading" }] : /* istanbul ignore next */ []));
|
|
50
|
+
/** Message of a failed record load; the screen shows it in place of the form. */
|
|
51
|
+
loadError = signal(null, ...(ngDevMode ? [{ debugName: "loadError" }] : /* istanbul ignore next */ []));
|
|
52
|
+
saving = signal(false, ...(ngDevMode ? [{ debugName: "saving" }] : /* istanbul ignore next */ []));
|
|
53
|
+
/** An update saves only over a loaded record; saving the empty form of a failed load would blank its fields. */
|
|
54
|
+
canSave = computed(() => this.action() === 'create' || this.record() !== null, ...(ngDevMode ? [{ debugName: "canSave" }] : /* istanbul ignore next */ []));
|
|
55
|
+
form = new FormGroup({});
|
|
56
|
+
title = computed(() => {
|
|
57
|
+
const schema = this.schema();
|
|
58
|
+
if (!schema)
|
|
59
|
+
return '';
|
|
60
|
+
const template = schema[this.action()]?.title;
|
|
61
|
+
// why: rendered as text with interpolation, never as HTML (INV-006).
|
|
62
|
+
return template
|
|
63
|
+
? sdGenericRenderTitle(template, this.record())
|
|
64
|
+
: this.#i18n.t(`core.module.generic.title.${this.action()}`, { label: schema.general.label });
|
|
65
|
+
}, ...(ngDevMode ? [{ debugName: "title" }] : /* istanbul ignore next */ []));
|
|
66
|
+
canEdit = computed(() => {
|
|
67
|
+
const schema = this.schema();
|
|
68
|
+
return !!schema && this.action() === 'detail' && this.#permission.allows(schema.module, schema.entity, 'update');
|
|
69
|
+
}, ...(ngDevMode ? [{ debugName: "canEdit" }] : /* istanbul ignore next */ []));
|
|
70
|
+
detailActions = computed(() => {
|
|
71
|
+
const schema = this.schema();
|
|
72
|
+
const record = this.record();
|
|
73
|
+
if (!schema || this.action() !== 'detail' || !record)
|
|
74
|
+
return [];
|
|
75
|
+
const context = this.#context(record);
|
|
76
|
+
return (this.#scope.entity(schema.module, schema.entity)?.detailActions ?? []).filter(action => this.#permission.canCode(action.permission) && (action.visible?.(context) ?? true));
|
|
77
|
+
}, ...(ngDevMode ? [{ debugName: "detailActions" }] : /* istanbul ignore next */ []));
|
|
78
|
+
drawer = viewChild(SdSideDrawer, ...(ngDevMode ? [{ debugName: "drawer" }] : /* istanbul ignore next */ []));
|
|
79
|
+
renderer = viewChild(SdFormRender, ...(ngDevMode ? [{ debugName: "renderer" }] : /* istanbul ignore next */ []));
|
|
80
|
+
heading = viewChild('heading', ...(ngDevMode ? [{ debugName: "heading" }] : /* istanbul ignore next */ []));
|
|
81
|
+
#closing = false;
|
|
82
|
+
constructor() {
|
|
83
|
+
if (this.action() !== 'create')
|
|
84
|
+
void this.#load();
|
|
85
|
+
effect(() => {
|
|
86
|
+
const drawer = this.drawer();
|
|
87
|
+
if (drawer)
|
|
88
|
+
untracked(() => drawer.open());
|
|
89
|
+
});
|
|
90
|
+
effect(() => {
|
|
91
|
+
const display = this.display();
|
|
92
|
+
untracked(() => this.#list?.setFormDisplay(display));
|
|
93
|
+
});
|
|
94
|
+
// why: a page form replaces the list the user came from; move the focus to its heading (the drawer traps its own).
|
|
95
|
+
afterNextRender(() => {
|
|
96
|
+
if (this.display() === 'page')
|
|
97
|
+
this.heading()?.nativeElement.focus();
|
|
98
|
+
});
|
|
99
|
+
this.#router.events
|
|
100
|
+
.pipe(filter(event => event instanceof NavigationEnd), takeUntilDestroyed())
|
|
101
|
+
.subscribe(() => this.#onNavigated());
|
|
102
|
+
}
|
|
103
|
+
async save() {
|
|
104
|
+
const schema = this.schema();
|
|
105
|
+
if (!schema || this.action() === 'detail' || this.saving() || !this.canSave())
|
|
106
|
+
return;
|
|
107
|
+
const validation = await this.renderer()?.validate();
|
|
108
|
+
if (validation && !validation.valid)
|
|
109
|
+
return;
|
|
110
|
+
this.saving.set(true);
|
|
111
|
+
try {
|
|
112
|
+
await this.#data.save(schema, this.action() === 'create' ? 'create' : 'update', this.value(), this.#state().id ?? undefined);
|
|
113
|
+
this.#notify.success(this.#i18n.t('core.module.generic.save.success'));
|
|
114
|
+
this.#list?.reload();
|
|
115
|
+
await this.close();
|
|
116
|
+
}
|
|
117
|
+
catch (error) {
|
|
118
|
+
this.#notify.error(message(error));
|
|
119
|
+
}
|
|
120
|
+
finally {
|
|
121
|
+
this.saving.set(false);
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
edit() {
|
|
125
|
+
void this.#router.navigate(['..', 'update'], { relativeTo: this.#route });
|
|
126
|
+
}
|
|
127
|
+
async runAction(action) {
|
|
128
|
+
const record = this.record();
|
|
129
|
+
if (!record)
|
|
130
|
+
return;
|
|
131
|
+
try {
|
|
132
|
+
await action.run(this.#context(record));
|
|
133
|
+
}
|
|
134
|
+
catch (error) {
|
|
135
|
+
this.#notify.error(message(error));
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
/** Back to the list route. A cancelled navigation (e.g. a guard) leaves Cancel and the drawer close usable. */
|
|
139
|
+
async close() {
|
|
140
|
+
if (this.#closing)
|
|
141
|
+
return;
|
|
142
|
+
this.#closing = true;
|
|
143
|
+
// why: navigating relative to the list route keeps its URL encoding instead of re-joining decoded segments.
|
|
144
|
+
const closed = await this.#router.navigate(['.'], { relativeTo: this.#route.parent });
|
|
145
|
+
if (!closed)
|
|
146
|
+
this.#closing = false;
|
|
147
|
+
}
|
|
148
|
+
onDrawerClosed() {
|
|
149
|
+
void this.close();
|
|
150
|
+
}
|
|
151
|
+
#readRoute() {
|
|
152
|
+
return {
|
|
153
|
+
generic: this.#route.parent?.snapshot.data['generic'],
|
|
154
|
+
id: sdGenericRouteParams(this.#route.snapshot).id,
|
|
155
|
+
};
|
|
156
|
+
}
|
|
157
|
+
/** The router keeps this page when only `:id` or the parent entity changes; start over for the new record. */
|
|
158
|
+
#onNavigated() {
|
|
159
|
+
const next = this.#readRoute();
|
|
160
|
+
const current = this.#state();
|
|
161
|
+
if (next.generic === current.generic && next.id === current.id)
|
|
162
|
+
return;
|
|
163
|
+
this.#state.set(next);
|
|
164
|
+
this.record.set(null);
|
|
165
|
+
this.loadError.set(null);
|
|
166
|
+
this.value.set({});
|
|
167
|
+
this.#closing = false;
|
|
168
|
+
if (this.action() !== 'create')
|
|
169
|
+
void this.#load();
|
|
170
|
+
}
|
|
171
|
+
async #load() {
|
|
172
|
+
const schema = this.schema();
|
|
173
|
+
const { id } = this.#state();
|
|
174
|
+
if (!schema || id === null)
|
|
175
|
+
return;
|
|
176
|
+
this.loading.set(true);
|
|
177
|
+
this.loadError.set(null);
|
|
178
|
+
try {
|
|
179
|
+
const record = await this.#data.detail(schema.module, schema.entity, id);
|
|
180
|
+
// why: a slow answer for a record the user already left must not overwrite the current one.
|
|
181
|
+
if (this.#state().id !== id)
|
|
182
|
+
return;
|
|
183
|
+
this.record.set(record);
|
|
184
|
+
this.value.set(this.#data.toFormValue(schema, record));
|
|
185
|
+
}
|
|
186
|
+
catch (error) {
|
|
187
|
+
if (this.#state().id === id)
|
|
188
|
+
this.loadError.set(message(error));
|
|
189
|
+
}
|
|
190
|
+
finally {
|
|
191
|
+
if (this.#state().id === id)
|
|
192
|
+
this.loading.set(false);
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
#context(record) {
|
|
196
|
+
return {
|
|
197
|
+
schema: this.schema(),
|
|
198
|
+
row: record,
|
|
199
|
+
reload: () => {
|
|
200
|
+
this.#list?.reload();
|
|
201
|
+
void this.#load();
|
|
202
|
+
},
|
|
203
|
+
};
|
|
204
|
+
}
|
|
205
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: GenericFormHostPage, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
206
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: GenericFormHostPage, isStandalone: true, selector: "sd-generic-form-host", viewQueries: [{ propertyName: "drawer", first: true, predicate: SdSideDrawer, descendants: true, isSignal: true }, { propertyName: "renderer", first: true, predicate: SdFormRender, descendants: true, isSignal: true }, { propertyName: "heading", first: true, predicate: ["heading"], descendants: true, isSignal: true }], ngImport: i0, template: "@if (formSchema(); as formSchema) {\n @if (display() === 'side-drawer') {\n <sd-side-drawer width=\"640px\" [title]=\"title()\" autoId=\"generic-form\" (sdClosed)=\"onDrawerClosed()\">\n <ng-container [ngTemplateOutlet]=\"body\" [ngTemplateOutletContext]=\"{ $implicit: formSchema }\"></ng-container>\n <div sdFooterRight class=\"d-flex align-items-center gap-8\">\n <ng-container [ngTemplateOutlet]=\"buttons\"></ng-container>\n </div>\n </sd-side-drawer>\n } @else {\n <sd-page class=\"sd-generic-form\">\n <div headerLeft class=\"d-flex align-items-center gap-8\">\n <sd-button type=\"text\" prefixIcon=\"arrow_back\" [tooltip]=\"'core.module.generic.action.back' | sdTranslate\" (click)=\"close()\"></sd-button>\n <h1 #heading class=\"T20M m-0\" tabindex=\"-1\">{{ title() }}</h1>\n </div>\n <div headerRight class=\"d-flex align-items-center gap-8 flex-wrap\">\n <ng-container [ngTemplateOutlet]=\"buttons\"></ng-container>\n </div>\n <div class=\"p-16\">\n <ng-container [ngTemplateOutlet]=\"body\" [ngTemplateOutletContext]=\"{ $implicit: formSchema }\"></ng-container>\n </div>\n </sd-page>\n }\n}\n\n<ng-template #body let-formSchema>\n <div [attr.aria-busy]=\"loading() || null\">\n <!-- why: detail / update render once the record is there, so every field starts from its loaded value and a\n failed load never shows an empty form; the load error takes its place. -->\n @if (loadError(); as error) {\n <sd-inform error data-autoId=\"generic-form-error\" [title]=\"error\"></sd-inform>\n } @else if (action() === 'create' || record()) {\n <sd-form-render [schema]=\"formSchema\" [form]=\"form\" [viewed]=\"viewed()\" [(value)]=\"value\"></sd-form-render>\n }\n </div>\n</ng-template>\n\n<ng-template #buttons>\n @if (viewed()) {\n @for (action of detailActions(); track action.id) {\n <sd-button [title]=\"action.label\" [prefixIcon]=\"action.icon\" (click)=\"runAction(action)\"></sd-button>\n }\n @if (canEdit()) {\n <sd-button data-autoId=\"generic-edit\" type=\"fill\" color=\"primary\" prefixIcon=\"edit\" [title]=\"'core.module.generic.action.update' | sdTranslate\" (click)=\"edit()\"></sd-button>\n }\n } @else {\n <sd-button [title]=\"'core.module.generic.action.cancel' | sdTranslate\" (click)=\"close()\"></sd-button>\n <sd-button\n data-autoId=\"generic-save\"\n type=\"fill\"\n color=\"primary\"\n prefixIcon=\"save\"\n [loading]=\"saving()\"\n [disabled]=\"!canSave()\"\n [title]=\"'core.module.generic.action.save' | sdTranslate\"\n (click)=\"save()\"></sd-button>\n }\n</ng-template>\n", styles: [":host{display:block}h1:focus:not(:focus-visible){outline:none}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { 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: "component", type: SdFormRender, selector: "sd-form-render", inputs: ["schema", "value", "form", "variables", "viewed", "breakpoint", "labelPlacement", "keys", "activePageId"], outputs: ["valueChange", "activePageIdChange", "sdAction"] }, { kind: "component", type: SdInform, selector: "sd-inform", inputs: ["type", "color", "primary", "secondary", "info", "success", "warning", "error", "title", "description", "icon", "hideIcon", "iconShape", "fontSet", "closable", "actionLabel", "lineClamp", "autoId"], outputs: ["sdClosed", "sdAction"] }, { kind: "component", type: SdPageComponent, selector: "sd-page, sd-page-detail, sd-page-form", inputs: ["title", "description", "noHeader", "backLink", "badges", "width", "aside", "toc"] }, { kind: "component", type: SdSideDrawer, selector: "sd-side-drawer", inputs: ["title", "width", "hideClose", "disableBackdropClose", "beforeClose", "container", "drawerClass", "autoId"], outputs: ["sdClosed", "sdCloseError"] }, { kind: "pipe", type: SdTranslatePipe, name: "sdTranslate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
207
|
+
}
|
|
208
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: GenericFormHostPage, decorators: [{
|
|
209
|
+
type: Component,
|
|
210
|
+
args: [{ selector: 'sd-generic-form-host', changeDetection: ChangeDetectionStrategy.OnPush, imports: [NgTemplateOutlet, SdButton, SdFormRender, SdInform, SdPageComponent, SdSideDrawer, SdTranslatePipe], template: "@if (formSchema(); as formSchema) {\n @if (display() === 'side-drawer') {\n <sd-side-drawer width=\"640px\" [title]=\"title()\" autoId=\"generic-form\" (sdClosed)=\"onDrawerClosed()\">\n <ng-container [ngTemplateOutlet]=\"body\" [ngTemplateOutletContext]=\"{ $implicit: formSchema }\"></ng-container>\n <div sdFooterRight class=\"d-flex align-items-center gap-8\">\n <ng-container [ngTemplateOutlet]=\"buttons\"></ng-container>\n </div>\n </sd-side-drawer>\n } @else {\n <sd-page class=\"sd-generic-form\">\n <div headerLeft class=\"d-flex align-items-center gap-8\">\n <sd-button type=\"text\" prefixIcon=\"arrow_back\" [tooltip]=\"'core.module.generic.action.back' | sdTranslate\" (click)=\"close()\"></sd-button>\n <h1 #heading class=\"T20M m-0\" tabindex=\"-1\">{{ title() }}</h1>\n </div>\n <div headerRight class=\"d-flex align-items-center gap-8 flex-wrap\">\n <ng-container [ngTemplateOutlet]=\"buttons\"></ng-container>\n </div>\n <div class=\"p-16\">\n <ng-container [ngTemplateOutlet]=\"body\" [ngTemplateOutletContext]=\"{ $implicit: formSchema }\"></ng-container>\n </div>\n </sd-page>\n }\n}\n\n<ng-template #body let-formSchema>\n <div [attr.aria-busy]=\"loading() || null\">\n <!-- why: detail / update render once the record is there, so every field starts from its loaded value and a\n failed load never shows an empty form; the load error takes its place. -->\n @if (loadError(); as error) {\n <sd-inform error data-autoId=\"generic-form-error\" [title]=\"error\"></sd-inform>\n } @else if (action() === 'create' || record()) {\n <sd-form-render [schema]=\"formSchema\" [form]=\"form\" [viewed]=\"viewed()\" [(value)]=\"value\"></sd-form-render>\n }\n </div>\n</ng-template>\n\n<ng-template #buttons>\n @if (viewed()) {\n @for (action of detailActions(); track action.id) {\n <sd-button [title]=\"action.label\" [prefixIcon]=\"action.icon\" (click)=\"runAction(action)\"></sd-button>\n }\n @if (canEdit()) {\n <sd-button data-autoId=\"generic-edit\" type=\"fill\" color=\"primary\" prefixIcon=\"edit\" [title]=\"'core.module.generic.action.update' | sdTranslate\" (click)=\"edit()\"></sd-button>\n }\n } @else {\n <sd-button [title]=\"'core.module.generic.action.cancel' | sdTranslate\" (click)=\"close()\"></sd-button>\n <sd-button\n data-autoId=\"generic-save\"\n type=\"fill\"\n color=\"primary\"\n prefixIcon=\"save\"\n [loading]=\"saving()\"\n [disabled]=\"!canSave()\"\n [title]=\"'core.module.generic.action.save' | sdTranslate\"\n (click)=\"save()\"></sd-button>\n }\n</ng-template>\n", styles: [":host{display:block}h1:focus:not(:focus-visible){outline:none}\n"] }]
|
|
211
|
+
}], ctorParameters: () => [], propDecorators: { drawer: [{ type: i0.ViewChild, args: [i0.forwardRef(() => SdSideDrawer), { isSignal: true }] }], renderer: [{ type: i0.ViewChild, args: [i0.forwardRef(() => SdFormRender), { isSignal: true }] }], heading: [{ type: i0.ViewChild, args: ['heading', { isSignal: true }] }] } });
|
|
212
|
+
|
|
213
|
+
export { GenericFormHostPage };
|
|
214
|
+
//# sourceMappingURL=sdcorejs-angular-modules-generic-generic-form-host.page-BsEL-y-M.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sdcorejs-angular-modules-generic-generic-form-host.page-BsEL-y-M.mjs","sources":["../../../projects/sdcorejs-angular/modules/generic/src/pages/form/generic-form-host.page.ts","../../../projects/sdcorejs-angular/modules/generic/src/pages/form/generic-form-host.page.html"],"sourcesContent":["import { NgTemplateOutlet } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n afterNextRender,\n computed,\n effect,\n inject,\n signal,\n untracked,\n viewChild,\n} from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { FormGroup } from '@angular/forms';\nimport { ActivatedRoute, NavigationEnd, Router } from '@angular/router';\nimport { SdButton } from '@sdcorejs/angular/components/button';\nimport { SdFormRender } from '@sdcorejs/angular/components/form-generic';\nimport { SdInform } from '@sdcorejs/angular/components/inform';\nimport { SdSideDrawer } from '@sdcorejs/angular/components/side-drawer';\nimport { I18nService, SdTranslatePipe } from '@sdcorejs/angular/i18n';\nimport { SdPageComponent } from '@sdcorejs/angular/modules/layout';\nimport { SdNotifyService } from '@sdcorejs/angular/services/notify';\nimport { filter } from 'rxjs';\nimport { sdGenericBuildForm, sdGenericRenderTitle } from '../../core';\nimport type { SdGenericActionContext, SdGenericCustomAction, SdGenericDisplay, SdGenericFormAction, SdGenericRecord } from '../../models';\nimport { SD_GENERIC_LIST_HOST, SD_GENERIC_SCOPE } from '../../registry';\nimport { sdGenericRouteParams, type SdGenericRouteData } from '../../routes/generic-route.guards';\nimport { SdGenericDataService, SdGenericPermissionService } from '../../services';\n\nconst message = (error: unknown) => (error instanceof Error ? error.message : String(error));\n\n/** Route state of the form: the resolved entity of the list route and the record id. */\ninterface FormRouteState {\n generic: SdGenericRouteData | undefined;\n id: string | null;\n}\n\n/**\n * Create / detail / update of one record. The display mode is decided once the schema is resolved\n * (entity `display` -> adapter `display` -> `'page'`); a side drawer opens over the list kept behind it (INV-009).\n */\n@Component({\n selector: 'sd-generic-form-host',\n templateUrl: './generic-form-host.page.html',\n styleUrl: './generic-form-host.page.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [NgTemplateOutlet, SdButton, SdFormRender, SdInform, SdPageComponent, SdSideDrawer, SdTranslatePipe],\n})\nexport class GenericFormHostPage {\n readonly #route = inject(ActivatedRoute);\n readonly #router = inject(Router);\n readonly #data = inject(SdGenericDataService);\n readonly #permission = inject(SdGenericPermissionService);\n readonly #scope = inject(SD_GENERIC_SCOPE);\n readonly #notify = inject(SdNotifyService);\n readonly #i18n = inject(I18nService);\n readonly #list = inject(SD_GENERIC_LIST_HOST, { optional: true });\n\n readonly action = signal(this.#route.snapshot.data['sdGenericAction'] as SdGenericFormAction);\n /** Replaced when the router reuses this page for another record or entity (same route, other params). */\n readonly #state = signal<FormRouteState>(this.#readRoute());\n readonly schema = computed(() => this.#state().generic?.resolved?.schema ?? null);\n readonly display = computed<SdGenericDisplay>(() => {\n const schema = this.schema();\n if (!schema) return 'page';\n const args = { schema, action: this.action() };\n return (\n this.#scope.entity(schema.module, schema.entity)?.display?.(args) ?? this.#scope.adapter(schema.module)?.display?.(args) ?? 'page'\n );\n });\n readonly formSchema = computed(() => {\n const schema = this.schema();\n return schema ? sdGenericBuildForm(schema, this.action()) : null;\n });\n readonly viewed = computed(() => this.action() === 'detail');\n readonly value = signal<Record<string, unknown>>({});\n readonly record = signal<SdGenericRecord | null>(null);\n readonly loading = signal(false);\n /** Message of a failed record load; the screen shows it in place of the form. */\n readonly loadError = signal<string | null>(null);\n readonly saving = signal(false);\n /** An update saves only over a loaded record; saving the empty form of a failed load would blank its fields. */\n readonly canSave = computed(() => this.action() === 'create' || this.record() !== null);\n readonly form = new FormGroup({});\n readonly title = computed(() => {\n const schema = this.schema();\n if (!schema) return '';\n const template = schema[this.action()]?.title;\n // why: rendered as text with interpolation, never as HTML (INV-006).\n return template\n ? sdGenericRenderTitle(template, this.record())\n : this.#i18n.t(`core.module.generic.title.${this.action()}`, { label: schema.general.label });\n });\n readonly canEdit = computed(() => {\n const schema = this.schema();\n return !!schema && this.action() === 'detail' && this.#permission.allows(schema.module, schema.entity, 'update');\n });\n readonly detailActions = computed(() => {\n const schema = this.schema();\n const record = this.record();\n if (!schema || this.action() !== 'detail' || !record) return [];\n const context = this.#context(record);\n return (this.#scope.entity(schema.module, schema.entity)?.detailActions ?? []).filter(\n action => this.#permission.canCode(action.permission) && (action.visible?.(context) ?? true)\n );\n });\n readonly drawer = viewChild(SdSideDrawer);\n readonly renderer = viewChild(SdFormRender);\n readonly heading = viewChild<ElementRef<HTMLElement>>('heading');\n #closing = false;\n\n constructor() {\n if (this.action() !== 'create') void this.#load();\n effect(() => {\n const drawer = this.drawer();\n if (drawer) untracked(() => drawer.open());\n });\n effect(() => {\n const display = this.display();\n untracked(() => this.#list?.setFormDisplay(display));\n });\n // why: a page form replaces the list the user came from; move the focus to its heading (the drawer traps its own).\n afterNextRender(() => {\n if (this.display() === 'page') this.heading()?.nativeElement.focus();\n });\n this.#router.events\n .pipe(\n filter(event => event instanceof NavigationEnd),\n takeUntilDestroyed()\n )\n .subscribe(() => this.#onNavigated());\n }\n\n async save(): Promise<void> {\n const schema = this.schema();\n if (!schema || this.action() === 'detail' || this.saving() || !this.canSave()) return;\n const validation = await this.renderer()?.validate();\n if (validation && !validation.valid) return;\n this.saving.set(true);\n try {\n await this.#data.save(schema, this.action() === 'create' ? 'create' : 'update', this.value(), this.#state().id ?? undefined);\n this.#notify.success(this.#i18n.t('core.module.generic.save.success'));\n this.#list?.reload();\n await this.close();\n } catch (error) {\n this.#notify.error(message(error));\n } finally {\n this.saving.set(false);\n }\n }\n\n edit(): void {\n void this.#router.navigate(['..', 'update'], { relativeTo: this.#route });\n }\n\n async runAction(action: SdGenericCustomAction): Promise<void> {\n const record = this.record();\n if (!record) return;\n try {\n await action.run(this.#context(record));\n } catch (error) {\n this.#notify.error(message(error));\n }\n }\n\n /** Back to the list route. A cancelled navigation (e.g. a guard) leaves Cancel and the drawer close usable. */\n async close(): Promise<void> {\n if (this.#closing) return;\n this.#closing = true;\n // why: navigating relative to the list route keeps its URL encoding instead of re-joining decoded segments.\n const closed = await this.#router.navigate(['.'], { relativeTo: this.#route.parent });\n if (!closed) this.#closing = false;\n }\n\n onDrawerClosed(): void {\n void this.close();\n }\n\n #readRoute(): FormRouteState {\n return {\n generic: this.#route.parent?.snapshot.data['generic'] as SdGenericRouteData | undefined,\n id: sdGenericRouteParams(this.#route.snapshot).id,\n };\n }\n\n /** The router keeps this page when only `:id` or the parent entity changes; start over for the new record. */\n #onNavigated(): void {\n const next = this.#readRoute();\n const current = this.#state();\n if (next.generic === current.generic && next.id === current.id) return;\n this.#state.set(next);\n this.record.set(null);\n this.loadError.set(null);\n this.value.set({});\n this.#closing = false;\n if (this.action() !== 'create') void this.#load();\n }\n\n async #load(): Promise<void> {\n const schema = this.schema();\n const { id } = this.#state();\n if (!schema || id === null) return;\n this.loading.set(true);\n this.loadError.set(null);\n try {\n const record = await this.#data.detail(schema.module, schema.entity, id);\n // why: a slow answer for a record the user already left must not overwrite the current one.\n if (this.#state().id !== id) return;\n this.record.set(record);\n this.value.set(this.#data.toFormValue(schema, record));\n } catch (error) {\n if (this.#state().id === id) this.loadError.set(message(error));\n } finally {\n if (this.#state().id === id) this.loading.set(false);\n }\n }\n\n #context(record: SdGenericRecord): SdGenericActionContext {\n return {\n schema: this.schema()!,\n row: record,\n reload: () => {\n this.#list?.reload();\n void this.#load();\n },\n };\n }\n}\n","@if (formSchema(); as formSchema) {\n @if (display() === 'side-drawer') {\n <sd-side-drawer width=\"640px\" [title]=\"title()\" autoId=\"generic-form\" (sdClosed)=\"onDrawerClosed()\">\n <ng-container [ngTemplateOutlet]=\"body\" [ngTemplateOutletContext]=\"{ $implicit: formSchema }\"></ng-container>\n <div sdFooterRight class=\"d-flex align-items-center gap-8\">\n <ng-container [ngTemplateOutlet]=\"buttons\"></ng-container>\n </div>\n </sd-side-drawer>\n } @else {\n <sd-page class=\"sd-generic-form\">\n <div headerLeft class=\"d-flex align-items-center gap-8\">\n <sd-button type=\"text\" prefixIcon=\"arrow_back\" [tooltip]=\"'core.module.generic.action.back' | sdTranslate\" (click)=\"close()\"></sd-button>\n <h1 #heading class=\"T20M m-0\" tabindex=\"-1\">{{ title() }}</h1>\n </div>\n <div headerRight class=\"d-flex align-items-center gap-8 flex-wrap\">\n <ng-container [ngTemplateOutlet]=\"buttons\"></ng-container>\n </div>\n <div class=\"p-16\">\n <ng-container [ngTemplateOutlet]=\"body\" [ngTemplateOutletContext]=\"{ $implicit: formSchema }\"></ng-container>\n </div>\n </sd-page>\n }\n}\n\n<ng-template #body let-formSchema>\n <div [attr.aria-busy]=\"loading() || null\">\n <!-- why: detail / update render once the record is there, so every field starts from its loaded value and a\n failed load never shows an empty form; the load error takes its place. -->\n @if (loadError(); as error) {\n <sd-inform error data-autoId=\"generic-form-error\" [title]=\"error\"></sd-inform>\n } @else if (action() === 'create' || record()) {\n <sd-form-render [schema]=\"formSchema\" [form]=\"form\" [viewed]=\"viewed()\" [(value)]=\"value\"></sd-form-render>\n }\n </div>\n</ng-template>\n\n<ng-template #buttons>\n @if (viewed()) {\n @for (action of detailActions(); track action.id) {\n <sd-button [title]=\"action.label\" [prefixIcon]=\"action.icon\" (click)=\"runAction(action)\"></sd-button>\n }\n @if (canEdit()) {\n <sd-button data-autoId=\"generic-edit\" type=\"fill\" color=\"primary\" prefixIcon=\"edit\" [title]=\"'core.module.generic.action.update' | sdTranslate\" (click)=\"edit()\"></sd-button>\n }\n } @else {\n <sd-button [title]=\"'core.module.generic.action.cancel' | sdTranslate\" (click)=\"close()\"></sd-button>\n <sd-button\n data-autoId=\"generic-save\"\n type=\"fill\"\n color=\"primary\"\n prefixIcon=\"save\"\n [loading]=\"saving()\"\n [disabled]=\"!canSave()\"\n [title]=\"'core.module.generic.action.save' | sdTranslate\"\n (click)=\"save()\"></sd-button>\n }\n</ng-template>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;AA8BA,MAAM,OAAO,GAAG,CAAC,KAAc,MAAM,KAAK,YAAY,KAAK,GAAG,KAAK,CAAC,OAAO,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;AAQ5F;;;AAGG;MAQU,mBAAmB,CAAA;AACrB,IAAA,MAAM,GAAG,MAAM,CAAC,cAAc,CAAC;AAC/B,IAAA,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC;AACxB,IAAA,KAAK,GAAG,MAAM,CAAC,oBAAoB,CAAC;AACpC,IAAA,WAAW,GAAG,MAAM,CAAC,0BAA0B,CAAC;AAChD,IAAA,MAAM,GAAG,MAAM,CAAC,gBAAgB,CAAC;AACjC,IAAA,OAAO,GAAG,MAAM,CAAC,eAAe,CAAC;AACjC,IAAA,KAAK,GAAG,MAAM,CAAC,WAAW,CAAC;IAC3B,KAAK,GAAG,MAAM,CAAC,oBAAoB,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;AAExD,IAAA,MAAM,GAAG,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,iBAA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