@sdcorejs/angular 22.3.2 → 22.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/THEME.md +58 -6
- package/assets/scss/core/form.scss +291 -3
- package/assets/scss/themes/_component-tokens.scss +35 -6
- package/fesm2022/sdcorejs-angular-components-badge.mjs +2 -2
- package/fesm2022/sdcorejs-angular-components-badge.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-form-generic.mjs +3 -3
- package/fesm2022/sdcorejs-angular-components-form-generic.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-section.mjs +15 -3
- 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 +398 -78
- package/fesm2022/sdcorejs-angular-components-tab-router.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-table.mjs +460 -16
- package/fesm2022/sdcorejs-angular-components-table.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-upload-file.mjs +932 -174
- package/fesm2022/sdcorejs-angular-components-upload-file.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-autocomplete.mjs +7 -2
- package/fesm2022/sdcorejs-angular-forms-autocomplete.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-chip-calendar.mjs +5 -2
- package/fesm2022/sdcorejs-angular-forms-chip-calendar.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-chip.mjs +437 -122
- package/fesm2022/sdcorejs-angular-forms-chip.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-date-range.mjs +4 -0
- package/fesm2022/sdcorejs-angular-forms-date-range.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-date.mjs +4 -0
- package/fesm2022/sdcorejs-angular-forms-date.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-datetime.mjs +4 -0
- package/fesm2022/sdcorejs-angular-forms-datetime.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-input-number.mjs +18 -2
- package/fesm2022/sdcorejs-angular-forms-input-number.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-input.mjs +4 -0
- package/fesm2022/sdcorejs-angular-forms-input.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-select.mjs +26 -20
- package/fesm2022/sdcorejs-angular-forms-select.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-textarea.mjs +14 -1
- package/fesm2022/sdcorejs-angular-forms-textarea.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-i18n.mjs +210 -0
- package/fesm2022/sdcorejs-angular-i18n.mjs.map +1 -1
- package/fesm2022/{sdcorejs-angular-modules-generic-generic-configuration.page-BrJfOTWy.mjs → sdcorejs-angular-modules-generic-generic-configuration.page-SJIWI1dX.mjs} +3 -3
- package/fesm2022/{sdcorejs-angular-modules-generic-generic-configuration.page-BrJfOTWy.mjs.map → sdcorejs-angular-modules-generic-generic-configuration.page-SJIWI1dX.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-generic-generic-form-host.page-DQYXx2nr.mjs → sdcorejs-angular-modules-generic-generic-form-host.page-BPhMLVbv.mjs} +3 -3
- package/fesm2022/{sdcorejs-angular-modules-generic-generic-form-host.page-DQYXx2nr.mjs.map → sdcorejs-angular-modules-generic-generic-form-host.page-BPhMLVbv.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-generic-generic-list.page-Cjg3Dfq1.mjs → sdcorejs-angular-modules-generic-generic-list.page-aGhowe9Y.mjs} +3 -3
- package/fesm2022/{sdcorejs-angular-modules-generic-generic-list.page-Cjg3Dfq1.mjs.map → sdcorejs-angular-modules-generic-generic-list.page-aGhowe9Y.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-generic-sdcorejs-angular-modules-generic-DpXg2yI7.mjs → sdcorejs-angular-modules-generic-sdcorejs-angular-modules-generic-N8_oGpqD.mjs} +4 -4
- package/fesm2022/{sdcorejs-angular-modules-generic-sdcorejs-angular-modules-generic-DpXg2yI7.mjs.map → sdcorejs-angular-modules-generic-sdcorejs-angular-modules-generic-N8_oGpqD.mjs.map} +1 -1
- package/fesm2022/sdcorejs-angular-modules-generic.mjs +1 -1
- package/fesm2022/sdcorejs-angular-modules-layout.mjs +289 -11
- 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-Cfmr0L_5.mjs +51 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-base-api.service-Cfmr0L_5.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-create-side-drawer.component-C7-itJqB.mjs +134 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-create-side-drawer.component-C7-itJqB.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-create-side-drawer.component-CxgmaNod.mjs +132 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-create-side-drawer.component-CxgmaNod.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-create.component-C2GdGhkJ.mjs +100 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-create.component-C2GdGhkJ.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-create.component-CzJh4LMR.mjs +119 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-create.component-CzJh4LMR.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-create.component-DIivNX4o.mjs +469 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-create.component-DIivNX4o.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-B0nhFd_M.mjs +67 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-customer.service-B0nhFd_M.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-detail-side-drawer.component-D1dqsKX0.mjs +152 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-detail-side-drawer.component-D1dqsKX0.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-detail.component-Dkmm0a2Y.mjs +479 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-detail.component-Dkmm0a2Y.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-detail.component-WK0AcxNJ.mjs +175 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-detail.component-WK0AcxNJ.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-detail.component-yJ5fPyYU.mjs +92 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-detail.component-yJ5fPyYU.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-flow.component-BvhEMUgY.mjs +533 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-flow.component-BvhEMUgY.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-form-api-errors-Ydotvlyc.mjs +64 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-form-api-errors-Ydotvlyc.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-general-information-form.component-D8-WXUAE.mjs +92 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-general-information-form.component-D8-WXUAE.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-general-information-form.component-DHTxzjRN.mjs +242 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-general-information-form.component-DHTxzjRN.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-general-information-form.component-cxNRkeRU.mjs +179 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-general-information-form.component-cxNRkeRU.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-general-information-view.component-CTgHdGeQ.mjs +72 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-general-information-view.component-CTgHdGeQ.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-index.component-D1zWXyN6.mjs +100 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-index.component-D1zWXyN6.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-lines-form.component-BK__9Mzb.mjs +541 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-lines-form.component-BK__9Mzb.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-1Xn1WaAP.mjs +647 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-1Xn1WaAP.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-B6Ndq542.mjs +120 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-B6Ndq542.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-Bv_l7vnz.mjs +73 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-Bv_l7vnz.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-CaXgC8wK.mjs +172 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-CaXgC8wK.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-ChwTb4BU.mjs +118 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-ChwTb4BU.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-mock-backend.factory-DKK3NmbN.mjs +1069 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-mock-backend.factory-DKK3NmbN.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-GSlXwL2Z.mjs +49 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-product.service-GSlXwL2Z.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-profile.component-DPBwMafn.mjs +301 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-profile.component-DPBwMafn.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-1kifjm82.mjs +100 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-1kifjm82.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-B6z9lJYB.mjs +45 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-B6z9lJYB.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-D1fsRfRB.mjs +66 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-D1fsRfRB.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-DdCFCwxY.mjs +50 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-DdCFCwxY.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-DeThmv4f.mjs +74 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-DeThmv4f.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-bQpdxKlY.mjs +166 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-bQpdxKlY.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-h66efEeH.mjs +74 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-h66efEeH.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-t3O2L2J5.mjs +43 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-t3O2L2J5.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-sdcorejs-angular-modules-pattern-B6w4N6wo.mjs +413 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-sdcorejs-angular-modules-pattern-B6w4N6wo.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-shell.component-BIYHlzVQ.mjs +325 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-shell.component-BIYHlzVQ.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-update-side-drawer.component-DKgmhJT2.mjs +146 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-update-side-drawer.component-DKgmhJT2.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-update-side-drawer.component-nnldn2cz.mjs +135 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-update-side-drawer.component-nnldn2cz.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-update.component-C0Bewuwz.mjs +129 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-update.component-C0Bewuwz.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-update.component-Qlh3Lm2p.mjs +360 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-update.component-Qlh3Lm2p.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-update.component-p9R5-eou.mjs +101 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-update.component-p9R5-eou.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-services-unsaved-changes.mjs +104 -4
- package/fesm2022/sdcorejs-angular-services-unsaved-changes.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 +5 -1
- package/types/sdcorejs-angular-components-badge.d.ts +19 -1
- 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 +47 -5
- package/types/sdcorejs-angular-components-table.d.ts +127 -13
- package/types/sdcorejs-angular-components-upload-file.d.ts +181 -21
- package/types/sdcorejs-angular-forms-chip.d.ts +136 -26
- package/types/sdcorejs-angular-i18n.d.ts +42 -0
- package/types/sdcorejs-angular-modules-layout.d.ts +89 -6
- package/types/sdcorejs-angular-modules-pattern.d.ts +50 -0
- package/types/sdcorejs-angular-services-unsaved-changes.d.ts +11 -0
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { signal, inject, DestroyRef, computed } from '@angular/core';
|
|
2
|
+
import { b as apiFieldErrors } from './sdcorejs-angular-modules-pattern-api-error-BBWwQ6h2.mjs';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Native controls of the Core form fields in an error state: Angular marks `ng-invalid` where the control is bound to
|
|
6
|
+
* the field's own control; `sd-input-number` binds a display control instead and reports the error with `aria-invalid`.
|
|
7
|
+
*/
|
|
8
|
+
const INVALID_CONTROL = 'input.ng-invalid, textarea.ng-invalid, mat-select.ng-invalid, input[aria-invalid="true"]';
|
|
9
|
+
/**
|
|
10
|
+
* Focuses the first invalid field inside `host`, in DOM order, and scrolls it into view.
|
|
11
|
+
* Call it after the view rendered the validation state (for example in `afterNextRender`).
|
|
12
|
+
*/
|
|
13
|
+
function focusFirstInvalid(host) {
|
|
14
|
+
const field = host.querySelector(INVALID_CONTROL);
|
|
15
|
+
if (!field)
|
|
16
|
+
return false;
|
|
17
|
+
field.scrollIntoView({ block: 'center' });
|
|
18
|
+
field.focus();
|
|
19
|
+
return true;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/** `lines.2.quantity` → value of that control. */
|
|
23
|
+
const valueAt = (value, path) => path
|
|
24
|
+
.split('.')
|
|
25
|
+
.reduce((current, key) => (current && typeof current === 'object' ? current[key] : undefined), value);
|
|
26
|
+
const sameValue = (left, right) => Object.is(left, right) || JSON.stringify(left) === JSON.stringify(right);
|
|
27
|
+
/**
|
|
28
|
+
* Field errors of a save that the API rejected (`errors: [{ field, message }]`, a field path such as `lines.2.quantity`
|
|
29
|
+
* for a row). A field keeps its error until the user changes its value, so the next save is not blocked by an answer that no longer applies.
|
|
30
|
+
* Call it in an injection context (a field initializer of the page or drawer).
|
|
31
|
+
*/
|
|
32
|
+
function formApiErrors(form) {
|
|
33
|
+
const failure = signal(null, /* @ts-ignore */
|
|
34
|
+
...(ngDevMode ? [{ debugName: "failure" }] : /* istanbul ignore next */ []));
|
|
35
|
+
// why: Core fields write their model with `emitEvent: false`; until the user edits, `valueChanges` has not seen
|
|
36
|
+
// those values. `set()` reads the value again, so the error of a save made without edits still shows.
|
|
37
|
+
const value = signal(form.getRawValue(), /* @ts-ignore */
|
|
38
|
+
...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
39
|
+
const subscription = form.valueChanges.subscribe(() => value.set(form.getRawValue()));
|
|
40
|
+
inject(DestroyRef).onDestroy(() => subscription.unsubscribe());
|
|
41
|
+
const errors = computed(() => {
|
|
42
|
+
const current = failure();
|
|
43
|
+
if (!current)
|
|
44
|
+
return {};
|
|
45
|
+
const now = value();
|
|
46
|
+
return Object.fromEntries(Object.entries(current.errors).filter(([field]) => sameValue(valueAt(now, field), valueAt(current.value, field))));
|
|
47
|
+
}, /* @ts-ignore */
|
|
48
|
+
...(ngDevMode ? [{ debugName: "errors" }] : /* istanbul ignore next */ []));
|
|
49
|
+
return {
|
|
50
|
+
errors,
|
|
51
|
+
set: error => {
|
|
52
|
+
// A field the form does not show (`parentId` of a drawer opened under a parent) is left to the message of the caller.
|
|
53
|
+
const fields = Object.fromEntries(Object.entries(apiFieldErrors(error)).filter(([field]) => !!form.get(field)));
|
|
54
|
+
const current = form.getRawValue();
|
|
55
|
+
value.set(current);
|
|
56
|
+
failure.set({ errors: fields, value: current });
|
|
57
|
+
return Object.keys(fields).length > 0;
|
|
58
|
+
},
|
|
59
|
+
clear: () => failure.set(null),
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export { focusFirstInvalid as a, formApiErrors as f };
|
|
64
|
+
//# sourceMappingURL=sdcorejs-angular-modules-pattern-form-api-errors-Ydotvlyc.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sdcorejs-angular-modules-pattern-form-api-errors-Ydotvlyc.mjs","sources":["../../../projects/sdcorejs-angular/modules/pattern/utils/focus-first-invalid.ts","../../../projects/sdcorejs-angular/modules/pattern/utils/form-api-errors.ts"],"sourcesContent":["/**\n * Native controls of the Core form fields in an error state: Angular marks `ng-invalid` where the control is bound to\n * the field's own control; `sd-input-number` binds a display control instead and reports the error with `aria-invalid`.\n */\nconst INVALID_CONTROL = 'input.ng-invalid, textarea.ng-invalid, mat-select.ng-invalid, input[aria-invalid=\"true\"]';\n\n/**\n * Focuses the first invalid field inside `host`, in DOM order, and scrolls it into view.\n * Call it after the view rendered the validation state (for example in `afterNextRender`).\n */\nexport function focusFirstInvalid(host: HTMLElement): boolean {\n const field = host.querySelector<HTMLElement>(INVALID_CONTROL);\n if (!field) return false;\n field.scrollIntoView({ block: 'center' });\n field.focus();\n return true;\n}\n","import { computed, DestroyRef, inject, signal, type Signal } from '@angular/core';\nimport type { FormGroup } from '@angular/forms';\nimport { apiFieldErrors } from './api-error';\n\n/** `lines.2.quantity` → value of that control. */\nconst valueAt = (value: unknown, path: string): unknown =>\n path\n .split('.')\n .reduce<unknown>(\n (current, key) => (current && typeof current === 'object' ? (current as Record<string, unknown>)[key] : undefined),\n value\n );\n\nconst sameValue = (left: unknown, right: unknown): boolean => Object.is(left, right) || JSON.stringify(left) === JSON.stringify(right);\n\n/** Field errors of the last failed save, shown on the fields through `[inlineError]`. */\nexport interface FormApiErrors {\n /** Field → message, without the fields the user changed since the failure. */\n readonly errors: Signal<Readonly<Record<string, string>>>;\n /** Keeps the field errors of `error`; returns whether one of them is on a field of the form. */\n set(error: unknown): boolean;\n clear(): void;\n}\n\n/**\n * Field errors of a save that the API rejected (`errors: [{ field, message }]`, a field path such as `lines.2.quantity`\n * for a row). A field keeps its error until the user changes its value, so the next save is not blocked by an answer that no longer applies.\n * Call it in an injection context (a field initializer of the page or drawer).\n */\nexport function formApiErrors(form: FormGroup): FormApiErrors {\n const failure = signal<{ errors: Record<string, string>; value: Record<string, unknown> } | null>(null);\n // why: Core fields write their model with `emitEvent: false`; until the user edits, `valueChanges` has not seen\n // those values. `set()` reads the value again, so the error of a save made without edits still shows.\n const value = signal(form.getRawValue() as Record<string, unknown>);\n const subscription = form.valueChanges.subscribe(() => value.set(form.getRawValue() as Record<string, unknown>));\n inject(DestroyRef).onDestroy(() => subscription.unsubscribe());\n const errors = computed(() => {\n const current = failure();\n if (!current) return {};\n const now = value();\n return Object.fromEntries(\n Object.entries(current.errors).filter(([field]) => sameValue(valueAt(now, field), valueAt(current.value, field)))\n );\n });\n return {\n errors,\n set: error => {\n // A field the form does not show (`parentId` of a drawer opened under a parent) is left to the message of the caller.\n const fields = Object.fromEntries(Object.entries(apiFieldErrors(error)).filter(([field]) => !!form.get(field)));\n const current = form.getRawValue() as Record<string, unknown>;\n value.set(current);\n failure.set({ errors: fields, value: current });\n return Object.keys(fields).length > 0;\n },\n clear: () => failure.set(null),\n };\n}\n"],"names":[],"mappings":";;;AAAA;;;AAGG;AACH,MAAM,eAAe,GAAG,0FAA0F;AAElH;;;AAGG;AACG,SAAU,iBAAiB,CAAC,IAAiB,EAAA;IACjD,MAAM,KAAK,GAAG,IAAI,CAAC,aAAa,CAAc,eAAe,CAAC;AAC9D,IAAA,IAAI,CAAC,KAAK;AAAE,QAAA,OAAO,KAAK;IACxB,KAAK,CAAC,cAAc,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC;IACzC,KAAK,CAAC,KAAK,EAAE;AACb,IAAA,OAAO,IAAI;AACb;;AC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C,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,CAClH;IACH,CAAC;+EAAC;IACF,OAAO;QACL,MAAM;QACN,GAAG,EAAE,KAAK,IAAG;;AAEX,YAAA,MAAM,MAAM,GAAG,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,OAAO,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC;AAC/G,YAAA,MAAM,OAAO,GAAG,IAAI,CAAC,WAAW,EAA6B;AAC7D,YAAA,KAAK,CAAC,GAAG,CAAC,OAAO,CAAC;AAClB,YAAA,OAAO,CAAC,GAAG,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC;YAC/C,OAAO,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,MAAM,GAAG,CAAC;QACvC,CAAC;QACD,KAAK,EAAE,MAAM,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC;KAC/B;AACH;;"}
|
package/fesm2022/sdcorejs-angular-modules-pattern-general-information-form.component-D8-WXUAE.mjs
ADDED
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { input, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
+
import { SdSection } from '@sdcorejs/angular/components/section';
|
|
4
|
+
import { SdView } from '@sdcorejs/angular/components/view';
|
|
5
|
+
import { SdInput } from '@sdcorejs/angular/forms/input';
|
|
6
|
+
import { SdSwitch } from '@sdcorejs/angular/forms/switch';
|
|
7
|
+
|
|
8
|
+
/** Giá trị form → request lưu; danh mục cha do drawer quyết định, không sửa trong form. */
|
|
9
|
+
function categorySaveReq(form, parentId, code) {
|
|
10
|
+
const value = form.getRawValue();
|
|
11
|
+
return { code: code ?? value.code ?? '', name: value.name ?? '', parentId, status: value.active === false ? 'inactive' : 'active' };
|
|
12
|
+
}
|
|
13
|
+
/** Form danh mục một nhóm, dùng chung cho drawer tạo và cập nhật. */
|
|
14
|
+
class GeneralInformationFormComponent {
|
|
15
|
+
form = input.required(/* @ts-ignore */
|
|
16
|
+
...(ngDevMode ? [{ debugName: "form" }] : /* istanbul ignore next */ []));
|
|
17
|
+
seed = input.required(/* @ts-ignore */
|
|
18
|
+
...(ngDevMode ? [{ debugName: "seed" }] : /* istanbul ignore next */ []));
|
|
19
|
+
parentName = input(null, /* @ts-ignore */
|
|
20
|
+
...(ngDevMode ? [{ debugName: "parentName" }] : /* istanbul ignore next */ []));
|
|
21
|
+
editing = input(false, /* @ts-ignore */
|
|
22
|
+
...(ngDevMode ? [{ debugName: "editing" }] : /* istanbul ignore next */ []));
|
|
23
|
+
errors = input({}, /* @ts-ignore */
|
|
24
|
+
...(ngDevMode ? [{ debugName: "errors" }] : /* istanbul ignore next */ []));
|
|
25
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: GeneralInformationFormComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
26
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.1.5", type: GeneralInformationFormComponent, isStandalone: true, selector: "general-information-form", inputs: { form: { classPropertyName: "form", publicName: "form", isSignal: true, isRequired: true, transformFunction: null }, seed: { classPropertyName: "seed", publicName: "seed", isSignal: true, isRequired: true, transformFunction: null }, parentName: { classPropertyName: "parentName", publicName: "parentName", isSignal: true, isRequired: false, transformFunction: null }, editing: { classPropertyName: "editing", publicName: "editing", isSignal: true, isRequired: false, transformFunction: null }, errors: { classPropertyName: "errors", publicName: "errors", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
|
|
27
|
+
<sd-section title="Thông tin chung">
|
|
28
|
+
<div class="d-flex flex-column gap-8 p-16">
|
|
29
|
+
<sd-view label="Danh mục cha" [display]="parentName()" />
|
|
30
|
+
<sd-input
|
|
31
|
+
label="Mã danh mục"
|
|
32
|
+
name="code"
|
|
33
|
+
autoId="category-code"
|
|
34
|
+
[form]="form()"
|
|
35
|
+
[model]="seed().code"
|
|
36
|
+
[disabled]="editing()"
|
|
37
|
+
[inlineError]="errors()['code']"
|
|
38
|
+
maxlength="30"
|
|
39
|
+
required />
|
|
40
|
+
<sd-input
|
|
41
|
+
label="Tên danh mục"
|
|
42
|
+
name="name"
|
|
43
|
+
autoId="category-name"
|
|
44
|
+
[form]="form()"
|
|
45
|
+
[model]="seed().name"
|
|
46
|
+
[inlineError]="errors()['name']"
|
|
47
|
+
maxlength="100"
|
|
48
|
+
required />
|
|
49
|
+
<sd-switch label="Đang dùng" name="active" [form]="form()" [model]="seed().status !== 'inactive'" />
|
|
50
|
+
</div>
|
|
51
|
+
</sd-section>
|
|
52
|
+
`, isInline: true, dependencies: [{ kind: "component", type: SdSection, selector: "sd-section", inputs: ["title", "subTitle", "icon", "iconColor", "iconShape", "collapsed", "collapsible", "hideHeader"], outputs: ["collapsedChange"] }, { kind: "component", type: SdView, selector: "sd-view", inputs: ["label", "value", "display", "hyperlink", "labelTemplate", "valueTemplate", "selectedItems"] }, { kind: "component", type: SdInput, selector: "sd-input", inputs: ["autoId", "name", "appearance", "floatLabel", "labelPlacement", "size", "operators", "operator", "form", "label", "helperText", "placeholder", "type", "mask", "inputmode", "autocomplete", "hideInlineError", "blurOnEnter", "clearable", "required", "readonly", "disabled", "viewed", "minlength", "maxlength", "pattern", "patternErrorMessage", "validator", "inlineError", "hyperlink", "model"], outputs: ["operatorChange", "modelChange", "sdChange", "sdFocus", "sdBlur", "keyupEnter", "cleared", "sdFocusForceBlur"] }, { kind: "component", type: SdSwitch, selector: "sd-switch", inputs: ["autoId", "name", "form", "label", "size", "color", "disabled", "viewed", "hideInlineError", "required", "model"], outputs: ["modelChange", "sdChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
53
|
+
}
|
|
54
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: GeneralInformationFormComponent, decorators: [{
|
|
55
|
+
type: Component,
|
|
56
|
+
args: [{
|
|
57
|
+
selector: 'general-information-form',
|
|
58
|
+
standalone: true,
|
|
59
|
+
imports: [SdSection, SdView, SdInput, SdSwitch],
|
|
60
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
61
|
+
template: `
|
|
62
|
+
<sd-section title="Thông tin chung">
|
|
63
|
+
<div class="d-flex flex-column gap-8 p-16">
|
|
64
|
+
<sd-view label="Danh mục cha" [display]="parentName()" />
|
|
65
|
+
<sd-input
|
|
66
|
+
label="Mã danh mục"
|
|
67
|
+
name="code"
|
|
68
|
+
autoId="category-code"
|
|
69
|
+
[form]="form()"
|
|
70
|
+
[model]="seed().code"
|
|
71
|
+
[disabled]="editing()"
|
|
72
|
+
[inlineError]="errors()['code']"
|
|
73
|
+
maxlength="30"
|
|
74
|
+
required />
|
|
75
|
+
<sd-input
|
|
76
|
+
label="Tên danh mục"
|
|
77
|
+
name="name"
|
|
78
|
+
autoId="category-name"
|
|
79
|
+
[form]="form()"
|
|
80
|
+
[model]="seed().name"
|
|
81
|
+
[inlineError]="errors()['name']"
|
|
82
|
+
maxlength="100"
|
|
83
|
+
required />
|
|
84
|
+
<sd-switch label="Đang dùng" name="active" [form]="form()" [model]="seed().status !== 'inactive'" />
|
|
85
|
+
</div>
|
|
86
|
+
</sd-section>
|
|
87
|
+
`,
|
|
88
|
+
}]
|
|
89
|
+
}], propDecorators: { form: [{ type: i0.Input, args: [{ isSignal: true, alias: "form", required: true }] }], seed: [{ type: i0.Input, args: [{ isSignal: true, alias: "seed", required: true }] }], parentName: [{ type: i0.Input, args: [{ isSignal: true, alias: "parentName", required: false }] }], editing: [{ type: i0.Input, args: [{ isSignal: true, alias: "editing", required: false }] }], errors: [{ type: i0.Input, args: [{ isSignal: true, alias: "errors", required: false }] }] } });
|
|
90
|
+
|
|
91
|
+
export { GeneralInformationFormComponent as G, categorySaveReq as c };
|
|
92
|
+
//# sourceMappingURL=sdcorejs-angular-modules-pattern-general-information-form.component-D8-WXUAE.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sdcorejs-angular-modules-pattern-general-information-form.component-D8-WXUAE.mjs","sources":["../../../projects/sdcorejs-angular/modules/pattern/features/category/components/general-information-form/general-information-form.component.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, input } from '@angular/core';\nimport type { FormControl, FormGroup } from '@angular/forms';\nimport { SdSection } from '@sdcorejs/angular/components/section';\nimport { SdView } from '@sdcorejs/angular/components/view';\nimport { SdInput } from '@sdcorejs/angular/forms/input';\nimport { SdSwitch } from '@sdcorejs/angular/forms/switch';\nimport type { CategorySaveReq } from '../../services/category.model';\n\nexport type CategoryForm = FormGroup<{\n code?: FormControl<string>;\n name?: FormControl<string>;\n active?: FormControl<boolean>;\n}>;\n\n/** Giá trị form → request lưu; danh mục cha do drawer quyết định, không sửa trong form. */\nexport function categorySaveReq(form: CategoryForm, parentId: string | null, code?: string): CategorySaveReq {\n const value = form.getRawValue();\n return { code: code ?? value.code ?? '', name: value.name ?? '', parentId, status: value.active === false ? 'inactive' : 'active' };\n}\n\n/** Form danh mục một nhóm, dùng chung cho drawer tạo và cập nhật. */\n@Component({\n selector: 'general-information-form',\n standalone: true,\n imports: [SdSection, SdView, SdInput, SdSwitch],\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `\n <sd-section title=\"Thông tin chung\">\n <div class=\"d-flex flex-column gap-8 p-16\">\n <sd-view label=\"Danh mục cha\" [display]=\"parentName()\" />\n <sd-input\n label=\"Mã danh mục\"\n name=\"code\"\n autoId=\"category-code\"\n [form]=\"form()\"\n [model]=\"seed().code\"\n [disabled]=\"editing()\"\n [inlineError]=\"errors()['code']\"\n maxlength=\"30\"\n required />\n <sd-input\n label=\"Tên danh mục\"\n name=\"name\"\n autoId=\"category-name\"\n [form]=\"form()\"\n [model]=\"seed().name\"\n [inlineError]=\"errors()['name']\"\n maxlength=\"100\"\n required />\n <sd-switch label=\"Đang dùng\" name=\"active\" [form]=\"form()\" [model]=\"seed().status !== 'inactive'\" />\n </div>\n </sd-section>\n `,\n})\nexport class GeneralInformationFormComponent {\n readonly form = input.required<CategoryForm>();\n readonly seed = input.required<CategorySaveReq>();\n readonly parentName = input<string | null>(null);\n readonly editing = input(false);\n readonly errors = input<Readonly<Record<string, string>>>({});\n}\n"],"names":[],"mappings":";;;;;;;AAcA;SACgB,eAAe,CAAC,IAAkB,EAAE,QAAuB,EAAE,IAAa,EAAA;AACxF,IAAA,MAAM,KAAK,GAAG,IAAI,CAAC,WAAW,EAAE;AAChC,IAAA,OAAO,EAAE,IAAI,EAAE,IAAI,IAAI,KAAK,CAAC,IAAI,IAAI,EAAE,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,IAAI,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,CAAC,MAAM,KAAK,KAAK,GAAG,UAAU,GAAG,QAAQ,EAAE;AACrI;AAEA;MAkCa,+BAA+B,CAAA;IACjC,IAAI,GAAG,KAAK,CAAC,QAAQ;6EAAgB;IACrC,IAAI,GAAG,KAAK,CAAC,QAAQ;6EAAmB;IACxC,UAAU,GAAG,KAAK,CAAgB,IAAI;mFAAC;IACvC,OAAO,GAAG,KAAK,CAAC,KAAK;gFAAC;IACtB,MAAM,GAAG,KAAK,CAAmC,EAAE;+EAAC;uGALlD,+BAA+B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAA/B,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,+BAA+B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,0BAAA,EAAA,MAAA,EAAA,EAAA,IAAA,EAAA,EAAA,iBAAA,EAAA,MA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AA,EAAA,eAAA,EAAA,eAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAE,OAAO,gkBAAE,QAAQ,EAAA,QAAA,EAAA,WAAA,EAAA,MAAA,EAAA,CAAA,QAAA,EAAA,MAAA,EAAA,MAAA,EAAA,OAAA,EAAA,MAAA,EAAA,OAAA,EAAA,UAAA,EAAA,QAAA,EAAA,iBAAA,EAAA,UAAA,EAAA,OAAA,CAAA,EAAA,OAAA,EAAA,CAAA,aAAA,EAAA,UAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;2FA8BnC,+BAA+B,EAAA,UAAA,EAAA,CAAA;kBAjC3C,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,0BAA0B;AACpC,oBAAA,UAAU,EAAE,IAAI;oBAChB,OAAO,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,CAAC;oBAC/C,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAC/C,oBAAA,QAAQ,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;AA0BT,EAAA,CAAA;AACF,iBAAA;;;"}
|
package/fesm2022/sdcorejs-angular-modules-pattern-general-information-form.component-DHTxzjRN.mjs
ADDED
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { input, model, ChangeDetectionStrategy, Component, linkedSignal } from '@angular/core';
|
|
3
|
+
import { SdInform } from '@sdcorejs/angular/components/inform';
|
|
4
|
+
import { SdSection } from '@sdcorejs/angular/components/section';
|
|
5
|
+
import { SdInput } from '@sdcorejs/angular/forms/input';
|
|
6
|
+
import { SdSwitch } from '@sdcorejs/angular/forms/switch';
|
|
7
|
+
import { SdTextarea } from '@sdcorejs/angular/forms/textarea';
|
|
8
|
+
import { SdSelect } from '@sdcorejs/angular/forms/select';
|
|
9
|
+
import { C as CUSTOMER_TYPE_OPTIONS } from './sdcorejs-angular-modules-pattern-customer.model-C3fr4yNw.mjs';
|
|
10
|
+
|
|
11
|
+
/** Dropdown loại khách hàng. */
|
|
12
|
+
class CustomerTypeSelectComponent {
|
|
13
|
+
form = input(/* @ts-ignore */
|
|
14
|
+
...(ngDevMode ? [undefined, { debugName: "form" }] : /* istanbul ignore next */ []));
|
|
15
|
+
name = input('type', /* @ts-ignore */
|
|
16
|
+
...(ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []));
|
|
17
|
+
label = input('Loại khách hàng', /* @ts-ignore */
|
|
18
|
+
...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
|
|
19
|
+
required = input(true, /* @ts-ignore */
|
|
20
|
+
...(ngDevMode ? [{ debugName: "required" }] : /* istanbul ignore next */ []));
|
|
21
|
+
model = model(/* @ts-ignore */
|
|
22
|
+
...(ngDevMode ? [undefined, { debugName: "model" }] : /* istanbul ignore next */ []));
|
|
23
|
+
options = CUSTOMER_TYPE_OPTIONS;
|
|
24
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: CustomerTypeSelectComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
25
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.1.5", type: CustomerTypeSelectComponent, isStandalone: true, selector: "customer-type-select", inputs: { form: { classPropertyName: "form", publicName: "form", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, model: { classPropertyName: "model", publicName: "model", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { model: "modelChange" }, ngImport: i0, template: `<sd-select
|
|
26
|
+
[label]="label()"
|
|
27
|
+
[name]="name()"
|
|
28
|
+
[form]="form()"
|
|
29
|
+
[(model)]="model"
|
|
30
|
+
[items]="options"
|
|
31
|
+
valueField="id"
|
|
32
|
+
displayField="name"
|
|
33
|
+
[required]="required()"
|
|
34
|
+
[clearable]="false" />`, isInline: true, dependencies: [{ kind: "component", type: SdSelect, selector: "sd-select", inputs: ["autoId", "name", "size", "operators", "operator", "form", "label", "helperText", "placeholder", "valueField", "displayField", "disabledField", "cacheChecksum", "limit", "virtualScroll", "itemSize", "hyperlink", "minWidthPanel", "hideInlineError", "hideReadError", "required", "disabled", "viewed", "multiple", "showSelectAll", "clearable", "validator", "inlineError", "appearance", "floatLabel", "labelPlacement", "items", "model"], outputs: ["operatorChange", "sdReadStateChange", "modelChange", "sdChange", "sdSelection"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
35
|
+
}
|
|
36
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: CustomerTypeSelectComponent, decorators: [{
|
|
37
|
+
type: Component,
|
|
38
|
+
args: [{
|
|
39
|
+
selector: 'customer-type-select',
|
|
40
|
+
standalone: true,
|
|
41
|
+
imports: [SdSelect],
|
|
42
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
43
|
+
template: `<sd-select
|
|
44
|
+
[label]="label()"
|
|
45
|
+
[name]="name()"
|
|
46
|
+
[form]="form()"
|
|
47
|
+
[(model)]="model"
|
|
48
|
+
[items]="options"
|
|
49
|
+
valueField="id"
|
|
50
|
+
displayField="name"
|
|
51
|
+
[required]="required()"
|
|
52
|
+
[clearable]="false" />`,
|
|
53
|
+
}]
|
|
54
|
+
}], propDecorators: { form: [{ type: i0.Input, args: [{ isSignal: true, alias: "form", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], model: [{ type: i0.Input, args: [{ isSignal: true, alias: "model", required: false }] }, { type: i0.Output, args: ["modelChange"] }] } });
|
|
55
|
+
|
|
56
|
+
const GROUP_FIELDS = {
|
|
57
|
+
general: ['name', 'type', 'taxCode', 'vip'],
|
|
58
|
+
contact: ['email', 'phone', 'address'],
|
|
59
|
+
other: ['active', 'note'],
|
|
60
|
+
};
|
|
61
|
+
/** Nhóm có field không hợp lệ: field còn lỗi validate hoặc lỗi do API trả về. */
|
|
62
|
+
function invalidCustomerGroups(form, apiErrors) {
|
|
63
|
+
return Object.keys(GROUP_FIELDS).filter(group => GROUP_FIELDS[group].some(field => form.get(field)?.invalid || !!apiErrors[field]));
|
|
64
|
+
}
|
|
65
|
+
/** Giá trị form → request lưu. */
|
|
66
|
+
function customerSaveReq(form) {
|
|
67
|
+
const value = form.getRawValue();
|
|
68
|
+
const type = value.type ?? 'individual';
|
|
69
|
+
const tier = value.vip ? 'vip' : 'standard';
|
|
70
|
+
const status = value.active === false ? 'inactive' : 'active';
|
|
71
|
+
return {
|
|
72
|
+
name: value.name ?? '',
|
|
73
|
+
type,
|
|
74
|
+
tier,
|
|
75
|
+
email: value.email ?? '',
|
|
76
|
+
phone: value.phone ?? '',
|
|
77
|
+
address: value.address ?? '',
|
|
78
|
+
taxCode: type === 'business' ? (value.taxCode ?? null) : null,
|
|
79
|
+
status,
|
|
80
|
+
note: value.note || null,
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
/** Form khách hàng ba nhóm, dùng chung cho drawer tạo mới và cập nhật. */
|
|
84
|
+
class GeneralInformationFormComponent {
|
|
85
|
+
form = input.required(/* @ts-ignore */
|
|
86
|
+
...(ngDevMode ? [{ debugName: "form" }] : /* istanbul ignore next */ []));
|
|
87
|
+
seed = input.required(/* @ts-ignore */
|
|
88
|
+
...(ngDevMode ? [{ debugName: "seed" }] : /* istanbul ignore next */ []));
|
|
89
|
+
/** Lỗi theo field do API trả về. */
|
|
90
|
+
errors = input({}, /* @ts-ignore */
|
|
91
|
+
...(ngDevMode ? [{ debugName: "errors" }] : /* istanbul ignore next */ []));
|
|
92
|
+
invalidGroups = input([], /* @ts-ignore */
|
|
93
|
+
...(ngDevMode ? [{ debugName: "invalidGroups" }] : /* istanbul ignore next */ []));
|
|
94
|
+
/** Loại khách đang chọn: doanh nghiệp mới có mã số thuế. */
|
|
95
|
+
type = linkedSignal(() => this.seed().type, /* @ts-ignore */
|
|
96
|
+
...(ngDevMode ? [{ debugName: "type" }] : /* istanbul ignore next */ []));
|
|
97
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: GeneralInformationFormComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
98
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", type: GeneralInformationFormComponent, isStandalone: true, selector: "general-information-form", inputs: { form: { classPropertyName: "form", publicName: "form", isSignal: true, isRequired: true, transformFunction: null }, seed: { classPropertyName: "seed", publicName: "seed", isSignal: true, isRequired: true, transformFunction: null }, errors: { classPropertyName: "errors", publicName: "errors", isSignal: true, isRequired: false, transformFunction: null }, invalidGroups: { classPropertyName: "invalidGroups", publicName: "invalidGroups", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
|
|
99
|
+
@let invalid = invalidGroups();
|
|
100
|
+
<div class="d-flex flex-column gap-16">
|
|
101
|
+
<sd-section title="Thông tin chung">
|
|
102
|
+
<div class="d-flex flex-column gap-8 p-16">
|
|
103
|
+
@if (invalid.includes('general')) {
|
|
104
|
+
<sd-inform warning description="Kiểm tra tên và loại khách hàng." autoId="customer-general-warning" />
|
|
105
|
+
}
|
|
106
|
+
<sd-input
|
|
107
|
+
label="Tên khách hàng"
|
|
108
|
+
name="name"
|
|
109
|
+
autoId="customer-name"
|
|
110
|
+
[form]="form()"
|
|
111
|
+
[model]="seed().name"
|
|
112
|
+
[inlineError]="errors()['name']"
|
|
113
|
+
maxlength="120"
|
|
114
|
+
required />
|
|
115
|
+
<customer-type-select [form]="form()" [model]="seed().type" (modelChange)="type.set($event ?? 'individual')" />
|
|
116
|
+
@if (type() === 'business') {
|
|
117
|
+
<sd-input
|
|
118
|
+
label="Mã số thuế"
|
|
119
|
+
name="taxCode"
|
|
120
|
+
autoId="customer-tax-code"
|
|
121
|
+
[form]="form()"
|
|
122
|
+
[model]="seed().taxCode"
|
|
123
|
+
[inlineError]="errors()['taxCode']"
|
|
124
|
+
maxlength="14"
|
|
125
|
+
required />
|
|
126
|
+
}
|
|
127
|
+
<sd-switch label="Khách VIP" name="vip" [form]="form()" [model]="seed().tier === 'vip'" />
|
|
128
|
+
</div>
|
|
129
|
+
</sd-section>
|
|
130
|
+
<sd-section title="Liên hệ">
|
|
131
|
+
<div class="d-flex flex-column gap-8 p-16">
|
|
132
|
+
@if (invalid.includes('contact')) {
|
|
133
|
+
<sd-inform warning description="Kiểm tra email và số điện thoại." autoId="customer-contact-warning" />
|
|
134
|
+
}
|
|
135
|
+
<sd-input
|
|
136
|
+
label="Email"
|
|
137
|
+
name="email"
|
|
138
|
+
autoId="customer-email"
|
|
139
|
+
[form]="form()"
|
|
140
|
+
[model]="seed().email"
|
|
141
|
+
[inlineError]="errors()['email']"
|
|
142
|
+
pattern="EMAIL"
|
|
143
|
+
required />
|
|
144
|
+
<sd-input
|
|
145
|
+
label="Điện thoại"
|
|
146
|
+
name="phone"
|
|
147
|
+
autoId="customer-phone"
|
|
148
|
+
[form]="form()"
|
|
149
|
+
[model]="seed().phone"
|
|
150
|
+
[inlineError]="errors()['phone']"
|
|
151
|
+
maxlength="15"
|
|
152
|
+
required />
|
|
153
|
+
<sd-input label="Địa chỉ" name="address" autoId="customer-address" [form]="form()" [model]="seed().address" maxlength="200" />
|
|
154
|
+
</div>
|
|
155
|
+
</sd-section>
|
|
156
|
+
<sd-section title="Khác">
|
|
157
|
+
<div class="d-flex flex-column gap-8 p-16">
|
|
158
|
+
<sd-switch label="Đang hoạt động" name="active" [form]="form()" [model]="seed().status !== 'inactive'" />
|
|
159
|
+
<sd-textarea label="Ghi chú" name="note" [form]="form()" [model]="seed().note" maxlength="500" />
|
|
160
|
+
</div>
|
|
161
|
+
</sd-section>
|
|
162
|
+
</div>
|
|
163
|
+
`, isInline: true, dependencies: [{ kind: "component", type: SdSection, selector: "sd-section", inputs: ["title", "subTitle", "icon", "iconColor", "iconShape", "collapsed", "collapsible", "hideHeader"], outputs: ["collapsedChange"] }, { kind: "component", type: SdInput, selector: "sd-input", inputs: ["autoId", "name", "appearance", "floatLabel", "labelPlacement", "size", "operators", "operator", "form", "label", "helperText", "placeholder", "type", "mask", "inputmode", "autocomplete", "hideInlineError", "blurOnEnter", "clearable", "required", "readonly", "disabled", "viewed", "minlength", "maxlength", "pattern", "patternErrorMessage", "validator", "inlineError", "hyperlink", "model"], outputs: ["operatorChange", "modelChange", "sdChange", "sdFocus", "sdBlur", "keyupEnter", "cleared", "sdFocusForceBlur"] }, { kind: "component", type: SdTextarea, selector: "sd-textarea", inputs: ["autoId", "name", "size", "form", "label", "helperText", "placeholder", "rows", "hideInlineError", "required", "disabled", "viewed", "autoHeight", "maxlength", "minlength", "pattern", "validator", "inlineError", "appearance", "floatLabel", "labelPlacement", "model"], outputs: ["modelChange", "sdChange"] }, { kind: "component", type: SdSwitch, selector: "sd-switch", inputs: ["autoId", "name", "form", "label", "size", "color", "disabled", "viewed", "hideInlineError", "required", "model"], outputs: ["modelChange", "sdChange"] }, { 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: CustomerTypeSelectComponent, selector: "customer-type-select", inputs: ["form", "name", "label", "required", "model"], outputs: ["modelChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
164
|
+
}
|
|
165
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: GeneralInformationFormComponent, decorators: [{
|
|
166
|
+
type: Component,
|
|
167
|
+
args: [{
|
|
168
|
+
selector: 'general-information-form',
|
|
169
|
+
standalone: true,
|
|
170
|
+
imports: [SdSection, SdInput, SdTextarea, SdSwitch, SdInform, CustomerTypeSelectComponent],
|
|
171
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
172
|
+
template: `
|
|
173
|
+
@let invalid = invalidGroups();
|
|
174
|
+
<div class="d-flex flex-column gap-16">
|
|
175
|
+
<sd-section title="Thông tin chung">
|
|
176
|
+
<div class="d-flex flex-column gap-8 p-16">
|
|
177
|
+
@if (invalid.includes('general')) {
|
|
178
|
+
<sd-inform warning description="Kiểm tra tên và loại khách hàng." autoId="customer-general-warning" />
|
|
179
|
+
}
|
|
180
|
+
<sd-input
|
|
181
|
+
label="Tên khách hàng"
|
|
182
|
+
name="name"
|
|
183
|
+
autoId="customer-name"
|
|
184
|
+
[form]="form()"
|
|
185
|
+
[model]="seed().name"
|
|
186
|
+
[inlineError]="errors()['name']"
|
|
187
|
+
maxlength="120"
|
|
188
|
+
required />
|
|
189
|
+
<customer-type-select [form]="form()" [model]="seed().type" (modelChange)="type.set($event ?? 'individual')" />
|
|
190
|
+
@if (type() === 'business') {
|
|
191
|
+
<sd-input
|
|
192
|
+
label="Mã số thuế"
|
|
193
|
+
name="taxCode"
|
|
194
|
+
autoId="customer-tax-code"
|
|
195
|
+
[form]="form()"
|
|
196
|
+
[model]="seed().taxCode"
|
|
197
|
+
[inlineError]="errors()['taxCode']"
|
|
198
|
+
maxlength="14"
|
|
199
|
+
required />
|
|
200
|
+
}
|
|
201
|
+
<sd-switch label="Khách VIP" name="vip" [form]="form()" [model]="seed().tier === 'vip'" />
|
|
202
|
+
</div>
|
|
203
|
+
</sd-section>
|
|
204
|
+
<sd-section title="Liên hệ">
|
|
205
|
+
<div class="d-flex flex-column gap-8 p-16">
|
|
206
|
+
@if (invalid.includes('contact')) {
|
|
207
|
+
<sd-inform warning description="Kiểm tra email và số điện thoại." autoId="customer-contact-warning" />
|
|
208
|
+
}
|
|
209
|
+
<sd-input
|
|
210
|
+
label="Email"
|
|
211
|
+
name="email"
|
|
212
|
+
autoId="customer-email"
|
|
213
|
+
[form]="form()"
|
|
214
|
+
[model]="seed().email"
|
|
215
|
+
[inlineError]="errors()['email']"
|
|
216
|
+
pattern="EMAIL"
|
|
217
|
+
required />
|
|
218
|
+
<sd-input
|
|
219
|
+
label="Điện thoại"
|
|
220
|
+
name="phone"
|
|
221
|
+
autoId="customer-phone"
|
|
222
|
+
[form]="form()"
|
|
223
|
+
[model]="seed().phone"
|
|
224
|
+
[inlineError]="errors()['phone']"
|
|
225
|
+
maxlength="15"
|
|
226
|
+
required />
|
|
227
|
+
<sd-input label="Địa chỉ" name="address" autoId="customer-address" [form]="form()" [model]="seed().address" maxlength="200" />
|
|
228
|
+
</div>
|
|
229
|
+
</sd-section>
|
|
230
|
+
<sd-section title="Khác">
|
|
231
|
+
<div class="d-flex flex-column gap-8 p-16">
|
|
232
|
+
<sd-switch label="Đang hoạt động" name="active" [form]="form()" [model]="seed().status !== 'inactive'" />
|
|
233
|
+
<sd-textarea label="Ghi chú" name="note" [form]="form()" [model]="seed().note" maxlength="500" />
|
|
234
|
+
</div>
|
|
235
|
+
</sd-section>
|
|
236
|
+
</div>
|
|
237
|
+
`,
|
|
238
|
+
}]
|
|
239
|
+
}], propDecorators: { form: [{ type: i0.Input, args: [{ isSignal: true, alias: "form", required: true }] }], seed: [{ type: i0.Input, args: [{ isSignal: true, alias: "seed", required: true }] }], errors: [{ type: i0.Input, args: [{ isSignal: true, alias: "errors", required: false }] }], invalidGroups: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalidGroups", required: false }] }] } });
|
|
240
|
+
|
|
241
|
+
export { GeneralInformationFormComponent as G, customerSaveReq as c, invalidCustomerGroups as i };
|
|
242
|
+
//# sourceMappingURL=sdcorejs-angular-modules-pattern-general-information-form.component-DHTxzjRN.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sdcorejs-angular-modules-pattern-general-information-form.component-DHTxzjRN.mjs","sources":["../../../projects/sdcorejs-angular/modules/pattern/features/customer/components/customer-type-select/customer-type-select.component.ts","../../../projects/sdcorejs-angular/modules/pattern/features/customer/components/general-information-form/general-information-form.component.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, input, model } from '@angular/core';\nimport type { FormGroup } from '@angular/forms';\nimport { SdSelect } from '@sdcorejs/angular/forms/select';\nimport { CUSTOMER_TYPE_OPTIONS, type CustomerType } from '../../services/customer.model';\n\n/** Dropdown loại khách hàng. */\n@Component({\n selector: 'customer-type-select',\n standalone: true,\n imports: [SdSelect],\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `<sd-select\n [label]=\"label()\"\n [name]=\"name()\"\n [form]=\"form()\"\n [(model)]=\"model\"\n [items]=\"options\"\n valueField=\"id\"\n displayField=\"name\"\n [required]=\"required()\"\n [clearable]=\"false\" />`,\n})\nexport class CustomerTypeSelectComponent {\n readonly form = input<FormGroup>();\n readonly name = input('type');\n readonly label = input('Loại khách hàng');\n readonly required = input(true);\n readonly model = model<CustomerType | null | undefined>();\n protected readonly options = CUSTOMER_TYPE_OPTIONS;\n}\n","import { ChangeDetectionStrategy, Component, input, linkedSignal } from '@angular/core';\nimport type { FormControl, FormGroup } from '@angular/forms';\nimport { SdInform } from '@sdcorejs/angular/components/inform';\nimport { SdSection } from '@sdcorejs/angular/components/section';\nimport { SdInput } from '@sdcorejs/angular/forms/input';\nimport { SdSwitch } from '@sdcorejs/angular/forms/switch';\nimport { SdTextarea } from '@sdcorejs/angular/forms/textarea';\nimport type { CustomerSaveReq, CustomerStatus, CustomerTier, CustomerType } from '../../services/customer.model';\nimport { CustomerTypeSelectComponent } from '../customer-type-select/customer-type-select.component';\n\n/** Các field Core tự đăng ký control qua `[form]` + `name`. */\nexport type CustomerForm = FormGroup<{\n name?: FormControl<string>;\n type?: FormControl<CustomerType>;\n taxCode?: FormControl<string | null>;\n vip?: FormControl<boolean>;\n email?: FormControl<string>;\n phone?: FormControl<string>;\n address?: FormControl<string>;\n active?: FormControl<boolean>;\n note?: FormControl<string | null>;\n}>;\n\n/** Ba nhóm của form; nhóm còn lỗi sau khi bấm Lưu hiện `sd-inform` cảnh báo ngay trong nhóm. */\nexport type CustomerFormGroup = 'general' | 'contact' | 'other';\n\nconst GROUP_FIELDS: Readonly<Record<CustomerFormGroup, readonly string[]>> = {\n general: ['name', 'type', 'taxCode', 'vip'],\n contact: ['email', 'phone', 'address'],\n other: ['active', 'note'],\n};\n\n/** Nhóm có field không hợp lệ: field còn lỗi validate hoặc lỗi do API trả về. */\nexport function invalidCustomerGroups(form: CustomerForm, apiErrors: Readonly<Record<string, string>>): CustomerFormGroup[] {\n return (Object.keys(GROUP_FIELDS) as CustomerFormGroup[]).filter(group =>\n GROUP_FIELDS[group].some(field => form.get(field)?.invalid || !!apiErrors[field])\n );\n}\n\n/** Giá trị form → request lưu. */\nexport function customerSaveReq(form: CustomerForm): CustomerSaveReq {\n const value = form.getRawValue();\n const type: CustomerType = value.type ?? 'individual';\n const tier: CustomerTier = value.vip ? 'vip' : 'standard';\n const status: CustomerStatus = value.active === false ? 'inactive' : 'active';\n return {\n name: value.name ?? '',\n type,\n tier,\n email: value.email ?? '',\n phone: value.phone ?? '',\n address: value.address ?? '',\n taxCode: type === 'business' ? (value.taxCode ?? null) : null,\n status,\n note: value.note || null,\n };\n}\n\n/** Form khách hàng ba nhóm, dùng chung cho drawer tạo mới và cập nhật. */\n@Component({\n selector: 'general-information-form',\n standalone: true,\n imports: [SdSection, SdInput, SdTextarea, SdSwitch, SdInform, CustomerTypeSelectComponent],\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `\n @let invalid = invalidGroups();\n <div class=\"d-flex flex-column gap-16\">\n <sd-section title=\"Thông tin chung\">\n <div class=\"d-flex flex-column gap-8 p-16\">\n @if (invalid.includes('general')) {\n <sd-inform warning description=\"Kiểm tra tên và loại khách hàng.\" autoId=\"customer-general-warning\" />\n }\n <sd-input\n label=\"Tên khách hàng\"\n name=\"name\"\n autoId=\"customer-name\"\n [form]=\"form()\"\n [model]=\"seed().name\"\n [inlineError]=\"errors()['name']\"\n maxlength=\"120\"\n required />\n <customer-type-select [form]=\"form()\" [model]=\"seed().type\" (modelChange)=\"type.set($event ?? 'individual')\" />\n @if (type() === 'business') {\n <sd-input\n label=\"Mã số thuế\"\n name=\"taxCode\"\n autoId=\"customer-tax-code\"\n [form]=\"form()\"\n [model]=\"seed().taxCode\"\n [inlineError]=\"errors()['taxCode']\"\n maxlength=\"14\"\n required />\n }\n <sd-switch label=\"Khách VIP\" name=\"vip\" [form]=\"form()\" [model]=\"seed().tier === 'vip'\" />\n </div>\n </sd-section>\n <sd-section title=\"Liên hệ\">\n <div class=\"d-flex flex-column gap-8 p-16\">\n @if (invalid.includes('contact')) {\n <sd-inform warning description=\"Kiểm tra email và số điện thoại.\" autoId=\"customer-contact-warning\" />\n }\n <sd-input\n label=\"Email\"\n name=\"email\"\n autoId=\"customer-email\"\n [form]=\"form()\"\n [model]=\"seed().email\"\n [inlineError]=\"errors()['email']\"\n pattern=\"EMAIL\"\n required />\n <sd-input\n label=\"Điện thoại\"\n name=\"phone\"\n autoId=\"customer-phone\"\n [form]=\"form()\"\n [model]=\"seed().phone\"\n [inlineError]=\"errors()['phone']\"\n maxlength=\"15\"\n required />\n <sd-input label=\"Địa chỉ\" name=\"address\" autoId=\"customer-address\" [form]=\"form()\" [model]=\"seed().address\" maxlength=\"200\" />\n </div>\n </sd-section>\n <sd-section title=\"Khác\">\n <div class=\"d-flex flex-column gap-8 p-16\">\n <sd-switch label=\"Đang hoạt động\" name=\"active\" [form]=\"form()\" [model]=\"seed().status !== 'inactive'\" />\n <sd-textarea label=\"Ghi chú\" name=\"note\" [form]=\"form()\" [model]=\"seed().note\" maxlength=\"500\" />\n </div>\n </sd-section>\n </div>\n `,\n})\nexport class GeneralInformationFormComponent {\n readonly form = input.required<CustomerForm>();\n readonly seed = input.required<CustomerSaveReq>();\n /** Lỗi theo field do API trả về. */\n readonly errors = input<Readonly<Record<string, string>>>({});\n readonly invalidGroups = input<readonly CustomerFormGroup[]>([]);\n /** Loại khách đang chọn: doanh nghiệp mới có mã số thuế. */\n protected readonly type = linkedSignal(() => this.seed().type);\n}\n"],"names":[],"mappings":";;;;;;;;;;AAKA;MAiBa,2BAA2B,CAAA;AAC7B,IAAA,IAAI,GAAG,KAAK;wFAAa;IACzB,IAAI,GAAG,KAAK,CAAC,MAAM;6EAAC;IACpB,KAAK,GAAG,KAAK,CAAC,iBAAiB;8EAAC;IAChC,QAAQ,GAAG,KAAK,CAAC,IAAI;iFAAC;AACtB,IAAA,KAAK,GAAG,KAAK;yFAAmC;IACtC,OAAO,GAAG,qBAAqB;uGANvC,2BAA2B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAA3B,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,2BAA2B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,sBAAA,EAAA,MAAA,EAAA,EAAA,IAAA,EAAA,EAAA,iBAAA,EAAA,MAAA,EAAA,UAAA,EAAA,MAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,IAAA,EAAA,EAAA,iBAAA,EAAA,MAAA,EAAA,UAAA,EAAA,MAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,KAAA,EAAA,EAAA,iBAAA,EAAA,OAAA,EAAA,UAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KA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