@sdcorejs/angular 19.3.2 → 19.3.4
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/components/badge/index.d.ts +1 -0
- package/components/badge/src/badge.model.d.ts +19 -0
- package/components/query-bar/src/components/actions-bar/actions-bar.component.d.ts +6 -1
- package/components/query-bar/src/components/field-picker/field-picker.component.d.ts +21 -0
- package/components/query-bar/src/components/inline-chip/inline-chip.component.d.ts +7 -1
- package/components/query-bar/src/components/inline-value-chip/inline-value-chip.component.d.ts +7 -1
- package/components/query-bar/src/components/popover-chip/popover-chip.component.d.ts +16 -2
- package/components/query-bar/src/query-bar.component.d.ts +66 -8
- package/components/query-bar/src/query-bar.model.d.ts +44 -1
- package/components/section/index.d.ts +1 -0
- package/components/section/src/section-registry.d.ts +11 -0
- package/components/splitter/index.d.ts +1 -1
- package/components/tab-router/src/actions/tab-router.action.d.ts +1 -1
- package/components/tab-router/src/components/tab-router-item/tab-router-item.component.d.ts +4 -2
- package/components/tab-router/src/components/tab-router-nav/tab-router-nav.component.d.ts +31 -3
- package/components/tab-router/src/components/tab-router-outlet/tab-router-outlet.component.d.ts +6 -1
- package/components/tab-router/src/models/tab-router.model.d.ts +5 -0
- package/components/tab-router/src/pipes/tab-info.pipe.d.ts +7 -0
- package/components/tab-router/src/services/tab-router.service.d.ts +5 -0
- package/components/table/index.d.ts +2 -0
- package/components/table/src/components/config/config-width.util.d.ts +9 -0
- package/components/table/src/components/config/config.component.d.ts +58 -11
- package/components/table/src/components/filter/column-filter/column-filter.component.d.ts +5 -0
- package/components/table/src/components/filter/external-filter/external-filter.component.d.ts +5 -1
- package/components/table/src/components/mobile-cards/mobile-cards.component.d.ts +4 -0
- package/components/table/src/configurations/index.d.ts +1 -0
- package/components/table/src/configurations/table-layout.d.ts +16 -0
- package/components/table/src/configurations/table.configuration.d.ts +7 -1
- package/components/table/src/models/index.d.ts +1 -0
- package/components/table/src/models/table-column.model.d.ts +3 -10
- package/components/table/src/models/table-item.model.d.ts +4 -1
- package/components/table/src/models/table-option-loading.model.d.ts +42 -0
- package/components/table/src/models/table-option.model.d.ts +6 -0
- package/components/table/src/services/column-leaf.util.d.ts +6 -0
- package/components/table/src/services/config-custom.util.d.ts +14 -0
- package/components/table/src/services/table-filter/table-filter.model.d.ts +30 -0
- package/components/table/src/services/table-filter/table-query-bar.util.d.ts +110 -0
- package/components/table/src/services/table-loading/table-loading.util.d.ts +91 -0
- package/components/table/src/services/tree/tree.util.d.ts +2 -0
- package/components/table/src/table.component.d.ts +60 -1
- package/components/upload-file/src/components/file-type-icon/file-type-icon.component.d.ts +15 -0
- package/components/upload-file/src/components/preview/preview.component.d.ts +88 -10
- package/components/upload-file/src/configurations/upload-file.configuration.d.ts +1 -1
- package/components/upload-file/src/helpers/file-type.d.ts +25 -0
- package/components/upload-file/src/pipes/file-meta.pipe.d.ts +9 -0
- package/components/upload-file/src/pipes/file-reason.pipe.d.ts +11 -0
- package/components/upload-file/src/pipes/index.d.ts +2 -0
- package/components/upload-file/src/upload-file.component.d.ts +89 -8
- package/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-query-bar.mjs +455 -37
- package/fesm2022/sdcorejs-angular-components-query-bar.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 +390 -75
- package/fesm2022/sdcorejs-angular-components-tab-router.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-table.mjs +1667 -124
- package/fesm2022/sdcorejs-angular-components-table.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-upload-file.mjs +886 -173
- package/fesm2022/sdcorejs-angular-components-upload-file.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-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 +421 -121
- 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 +17 -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 +350 -5
- package/fesm2022/sdcorejs-angular-i18n.mjs.map +1 -1
- package/fesm2022/{sdcorejs-angular-modules-generic-generic-configuration.page-BFxO3eHX.mjs → sdcorejs-angular-modules-generic-generic-configuration.page-Bk3PrEf3.mjs} +3 -3
- package/fesm2022/{sdcorejs-angular-modules-generic-generic-configuration.page-BFxO3eHX.mjs.map → sdcorejs-angular-modules-generic-generic-configuration.page-Bk3PrEf3.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-generic-generic-form-host.page-Csy2fShj.mjs → sdcorejs-angular-modules-generic-generic-form-host.page-CwUegGgG.mjs} +3 -3
- package/fesm2022/{sdcorejs-angular-modules-generic-generic-form-host.page-Csy2fShj.mjs.map → sdcorejs-angular-modules-generic-generic-form-host.page-CwUegGgG.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-generic-generic-list.page-BIIxNR6k.mjs → sdcorejs-angular-modules-generic-generic-list.page-lF2trhfp.mjs} +3 -3
- package/fesm2022/{sdcorejs-angular-modules-generic-generic-list.page-BIIxNR6k.mjs.map → sdcorejs-angular-modules-generic-generic-list.page-lF2trhfp.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-generic-sdcorejs-angular-modules-generic-DjDsau9C.mjs → sdcorejs-angular-modules-generic-sdcorejs-angular-modules-generic-BbmeOduc.mjs} +4 -4
- package/fesm2022/{sdcorejs-angular-modules-generic-sdcorejs-angular-modules-generic-DjDsau9C.mjs.map → sdcorejs-angular-modules-generic-sdcorejs-angular-modules-generic-BbmeOduc.mjs.map} +1 -1
- package/fesm2022/sdcorejs-angular-modules-generic.mjs +1 -1
- package/fesm2022/sdcorejs-angular-modules-layout.mjs +347 -10
- 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-DK33LxHm.mjs +51 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-base-api.service-DK33LxHm.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-create-side-drawer.component-B1BUBiag.mjs +145 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-create-side-drawer.component-B1BUBiag.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-create-side-drawer.component-B27ZX8Co.mjs +144 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-create-side-drawer.component-B27ZX8Co.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-create.component-Bi2tMFHf.mjs +460 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-create.component-Bi2tMFHf.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-create.component-CPwGkrNk.mjs +142 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-create.component-CPwGkrNk.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-create.component-VCbA_FkZ.mjs +113 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-create.component-VCbA_FkZ.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-CehsdBRP.mjs +66 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-customer.service-CehsdBRP.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-detail-side-drawer.component-CPhLTiyx.mjs +148 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-detail-side-drawer.component-CPhLTiyx.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-detail.component-5kI7wGdX.mjs +484 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-detail.component-5kI7wGdX.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-detail.component-CjAy-B9K.mjs +172 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-detail.component-CjAy-B9K.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-detail.component-CnL2FzCx.mjs +90 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-detail.component-CnL2FzCx.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-flow.component-DObN_wCR.mjs +514 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-flow.component-DObN_wCR.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-form-api-errors-DpnYSG2j.mjs +61 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-form-api-errors-DpnYSG2j.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-general-information-form.component-C_ST-ld5.mjs +170 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-general-information-form.component-C_ST-ld5.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-general-information-form.component-D6eKR2cq.mjs +87 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-general-information-form.component-D6eKR2cq.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-general-information-form.component-FcJS3Nbd.mjs +232 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-general-information-form.component-FcJS3Nbd.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-general-information-view.component-BA-3FR1J.mjs +70 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-general-information-view.component-BA-3FR1J.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-index.component-TTrWCXIT.mjs +100 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-index.component-TTrWCXIT.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-lines-table-form.component-B1qePLfk.mjs +812 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-lines-table-form.component-B1qePLfk.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-BY5gjtNS.mjs +71 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-BY5gjtNS.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-CJ38CJXg.mjs +629 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-CJ38CJXg.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-CdgPtSjJ.mjs +164 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-CdgPtSjJ.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-DKIwrluh.mjs +118 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-DKIwrluh.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-W9vY7HrT.mjs +115 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-W9vY7HrT.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-mock-backend.factory-CI0H_5a4.mjs +1069 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-mock-backend.factory-CI0H_5a4.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-pattern-source-viewer-BqHwKfoc.mjs +193 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-pattern-source-viewer-BqHwKfoc.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-pattern-source.generated-CIiLOizq.mjs +99 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-pattern-source.generated-CIiLOizq.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-D829aEk5.mjs +48 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-product.service-D829aEk5.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-profile.component-BEFVmSSj.mjs +295 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-profile.component-BEFVmSSj.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-1kDb9T7_.mjs +74 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-1kDb9T7_.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-B-TJUSV_.mjs +66 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-B-TJUSV_.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-B6z7KO0P.mjs +45 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-B6z7KO0P.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-DS39vgzU.mjs +50 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-DS39vgzU.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-DVlcUUzh.mjs +43 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-DVlcUUzh.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-DxWDWUdo.mjs +165 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-DxWDWUdo.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-r9CTj-8C.mjs +74 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-r9CTj-8C.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-xI1XYRo6.mjs +99 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-xI1XYRo6.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-sdcorejs-angular-modules-pattern-nV5dVFx2.mjs +406 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-sdcorejs-angular-modules-pattern-nV5dVFx2.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-shell.component-0rRaWsuo.mjs +317 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-shell.component-0rRaWsuo.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-update-side-drawer.component-6uH7sDEg.mjs +143 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-update-side-drawer.component-6uH7sDEg.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-update-side-drawer.component-DglN2sS_.mjs +132 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-update-side-drawer.component-DglN2sS_.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-update.component-BmsOgENL.mjs +359 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-update.component-BmsOgENL.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-update.component-DPZ_ucNB.mjs +138 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-update.component-DPZ_ucNB.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-update.component-DkAcDmsZ.mjs +100 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-update.component-DkAcDmsZ.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-api.mjs +11 -11
- package/fesm2022/sdcorejs-angular-services-api.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-services-cache.mjs +7 -5
- package/fesm2022/sdcorejs-angular-services-cache.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-services-storage.mjs +6 -4
- 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/forms/chip/src/chip.component.d.ts +135 -19
- package/forms/chip/src/index.d.ts +0 -1
- package/i18n/src/en.d.ts +70 -1
- package/modules/layout/components/index.d.ts +2 -0
- package/modules/layout/components/page/page-form-leave.guard.d.ts +9 -0
- package/modules/layout/components/page/page.component.d.ts +38 -2
- package/modules/layout/components/page-list/page-list.component.d.ts +42 -0
- package/modules/layout/components/shared/context-switcher/context-switcher.component.d.ts +1 -1
- package/modules/pattern/README.md +76 -0
- package/modules/pattern/configurations/pattern.configuration.d.ts +30 -0
- package/modules/pattern/configurations/provide-sd-patterns.d.ts +19 -0
- package/modules/pattern/core/mock-api/mock-api.interceptor.d.ts +8 -0
- package/modules/pattern/core/mock-api/mock-api.model.d.ts +62 -0
- package/modules/pattern/core/mock-api/mock-api.state.d.ts +36 -0
- package/modules/pattern/core/mock-api/mock-backend.d.ts +18 -0
- package/modules/pattern/core/mock-api/mock-backend.factory.d.ts +3 -0
- package/modules/pattern/core/mock-api/prng.d.ts +4 -0
- package/modules/pattern/core/mock-api/resources/approval.resource.d.ts +14 -0
- package/modules/pattern/core/mock-api/resources/category.resource.d.ts +9 -0
- package/modules/pattern/core/mock-api/resources/customer.resource.d.ts +22 -0
- package/modules/pattern/core/mock-api/resources/index.d.ts +3 -0
- package/modules/pattern/core/mock-api/resources/names.d.ts +5 -0
- package/modules/pattern/core/mock-api/resources/order.resource.d.ts +44 -0
- package/modules/pattern/core/mock-api/resources/partner.resource.d.ts +16 -0
- package/modules/pattern/core/mock-api/resources/product.resource.d.ts +13 -0
- package/modules/pattern/core/mock-api/resources/settings.resource.d.ts +18 -0
- package/modules/pattern/core/pattern-shell/catalog/pattern-catalog.d.ts +24 -0
- package/modules/pattern/core/pattern-shell/index/index.component.d.ts +9 -0
- package/modules/pattern/core/pattern-shell/settings/pattern-settings.store.d.ts +57 -0
- package/modules/pattern/core/pattern-shell/settings/settings-button.component.d.ts +44 -0
- package/modules/pattern/core/pattern-shell/shell/pattern-source-viewer.d.ts +8 -0
- package/modules/pattern/core/pattern-shell/shell/shell.component.d.ts +13 -0
- package/modules/pattern/core/pattern-shell/source/pattern-source.generated.d.ts +1 -0
- package/modules/pattern/core/pattern-shell/source/source-drawer.component.d.ts +27 -0
- package/modules/pattern/core/pattern-shell/toolbar/toolbar.component.d.ts +24 -0
- package/modules/pattern/core/permission/pattern-permission.d.ts +15 -0
- package/modules/pattern/core/permission/pattern-role.store.d.ts +13 -0
- package/modules/pattern/core/session-state.d.ts +4 -0
- package/modules/pattern/docs/detail.md +237 -0
- package/modules/pattern/docs/drawer.md +484 -0
- package/modules/pattern/docs/flow.md +631 -0
- package/modules/pattern/docs/form.md +815 -0
- package/modules/pattern/docs/header-actions.md +344 -0
- package/modules/pattern/docs/list.md +247 -0
- package/modules/pattern/docs/relation.md +180 -0
- package/modules/pattern/docs/select.md +214 -0
- package/modules/pattern/docs/split.md +350 -0
- package/modules/pattern/docs/states.md +168 -0
- package/modules/pattern/features/approval/entity.resolver.d.ts +4 -0
- package/modules/pattern/features/approval/entity.resolver.ts +21 -0
- package/modules/pattern/features/approval/pages/detail/detail.component.d.ts +13 -0
- package/modules/pattern/features/approval/pages/detail/detail.component.ts +139 -0
- package/modules/pattern/features/approval/pages/list/approval-inbox.d.ts +7 -0
- package/modules/pattern/features/approval/pages/list/approval-inbox.ts +7 -0
- package/modules/pattern/features/approval/pages/list/list.component.d.ts +26 -0
- package/modules/pattern/features/approval/pages/list/list.component.html +20 -0
- package/modules/pattern/features/approval/pages/list/list.component.ts +149 -0
- package/modules/pattern/features/approval/routes.d.ts +3 -0
- package/modules/pattern/features/approval/routes.ts +30 -0
- package/modules/pattern/features/approval/services/approval.model.d.ts +37 -0
- package/modules/pattern/features/approval/services/approval.model.ts +38 -0
- package/modules/pattern/features/approval/services/approval.service.d.ts +12 -0
- package/modules/pattern/features/approval/services/approval.service.ts +23 -0
- package/modules/pattern/features/category/components/create-side-drawer/create-side-drawer.component.d.ts +23 -0
- package/modules/pattern/features/category/components/create-side-drawer/create-side-drawer.component.ts +130 -0
- package/modules/pattern/features/category/components/general-information-form/general-information-form.component.d.ts +20 -0
- package/modules/pattern/features/category/components/general-information-form/general-information-form.component.ts +61 -0
- package/modules/pattern/features/category/components/update-side-drawer/update-side-drawer.component.d.ts +23 -0
- package/modules/pattern/features/category/components/update-side-drawer/update-side-drawer.component.ts +134 -0
- package/modules/pattern/features/category/entity.resolver.d.ts +6 -0
- package/modules/pattern/features/category/entity.resolver.ts +27 -0
- package/modules/pattern/features/category/pages/list/list.component.d.ts +17 -0
- package/modules/pattern/features/category/pages/list/list.component.html +20 -0
- package/modules/pattern/features/category/pages/list/list.component.ts +105 -0
- package/modules/pattern/features/category/routes.d.ts +3 -0
- package/modules/pattern/features/category/routes.ts +42 -0
- package/modules/pattern/features/category/services/category.model.d.ts +34 -0
- package/modules/pattern/features/category/services/category.model.ts +39 -0
- package/modules/pattern/features/category/services/category.service.d.ts +17 -0
- package/modules/pattern/features/category/services/category.service.ts +36 -0
- package/modules/pattern/features/customer/components/create-side-drawer/create-side-drawer.component.d.ts +24 -0
- package/modules/pattern/features/customer/components/create-side-drawer/create-side-drawer.component.ts +138 -0
- package/modules/pattern/features/customer/components/customer-select/customer-select.component.d.ts +20 -0
- package/modules/pattern/features/customer/components/customer-select/customer-select.component.ts +72 -0
- package/modules/pattern/features/customer/components/customer-type-select/customer-type-select.component.d.ts +20 -0
- package/modules/pattern/features/customer/components/customer-type-select/customer-type-select.component.ts +30 -0
- package/modules/pattern/features/customer/components/debts-view/debts-view.component.d.ts +11 -0
- package/modules/pattern/features/customer/components/debts-view/debts-view.component.ts +28 -0
- package/modules/pattern/features/customer/components/detail-side-drawer/detail-side-drawer.component.d.ts +20 -0
- package/modules/pattern/features/customer/components/detail-side-drawer/detail-side-drawer.component.ts +106 -0
- package/modules/pattern/features/customer/components/documents-view/documents-view.component.d.ts +14 -0
- package/modules/pattern/features/customer/components/documents-view/documents-view.component.ts +50 -0
- package/modules/pattern/features/customer/components/general-information-form/general-information-form.component.d.ts +33 -0
- package/modules/pattern/features/customer/components/general-information-form/general-information-form.component.ts +140 -0
- package/modules/pattern/features/customer/components/general-information-view/general-information-view.component.d.ts +9 -0
- package/modules/pattern/features/customer/components/general-information-view/general-information-view.component.ts +39 -0
- package/modules/pattern/features/customer/components/orders-view/orders-view.component.d.ts +11 -0
- package/modules/pattern/features/customer/components/orders-view/orders-view.component.ts +35 -0
- package/modules/pattern/features/customer/components/summary-cards/summary-cards.component.d.ts +22 -0
- package/modules/pattern/features/customer/components/summary-cards/summary-cards.component.ts +101 -0
- package/modules/pattern/features/customer/components/update-side-drawer/update-side-drawer.component.d.ts +24 -0
- package/modules/pattern/features/customer/components/update-side-drawer/update-side-drawer.component.ts +127 -0
- package/modules/pattern/features/customer/entity.resolver.d.ts +4 -0
- package/modules/pattern/features/customer/entity.resolver.ts +21 -0
- package/modules/pattern/features/customer/pages/list/list.component.d.ts +19 -0
- package/modules/pattern/features/customer/pages/list/list.component.html +22 -0
- package/modules/pattern/features/customer/pages/list/list.component.ts +113 -0
- package/modules/pattern/features/customer/pages/profile/profile.component.d.ts +31 -0
- package/modules/pattern/features/customer/pages/profile/profile.component.ts +120 -0
- package/modules/pattern/features/customer/pipes/customer-detail.pipe.d.ts +14 -0
- package/modules/pattern/features/customer/pipes/customer-detail.pipe.ts +18 -0
- package/modules/pattern/features/customer/routes.d.ts +6 -0
- package/modules/pattern/features/customer/routes.ts +59 -0
- package/modules/pattern/features/customer/services/customer.model.d.ts +77 -0
- package/modules/pattern/features/customer/services/customer.model.ts +87 -0
- package/modules/pattern/features/customer/services/customer.service.d.ts +24 -0
- package/modules/pattern/features/customer/services/customer.service.ts +79 -0
- package/modules/pattern/features/import/components/mapping-form/mapping-form.component.d.ts +21 -0
- package/modules/pattern/features/import/components/mapping-form/mapping-form.component.ts +41 -0
- package/modules/pattern/features/import/components/preview-view/preview-view.component.d.ts +10 -0
- package/modules/pattern/features/import/components/preview-view/preview-view.component.ts +44 -0
- package/modules/pattern/features/import/pages/flow/flow.component.d.ts +43 -0
- package/modules/pattern/features/import/pages/flow/flow.component.ts +269 -0
- package/modules/pattern/features/import/routes.d.ts +2 -0
- package/modules/pattern/features/import/routes.ts +19 -0
- package/modules/pattern/features/import/services/import.model.d.ts +38 -0
- package/modules/pattern/features/import/services/import.model.ts +82 -0
- package/modules/pattern/features/import/services/import.service.d.ts +15 -0
- package/modules/pattern/features/import/services/import.service.ts +18 -0
- package/modules/pattern/features/order/components/approval-steps/approval-steps.component.d.ts +9 -0
- package/modules/pattern/features/order/components/approval-steps/approval-steps.component.ts +74 -0
- package/modules/pattern/features/order/components/bulk-result/bulk-result.component.d.ts +22 -0
- package/modules/pattern/features/order/components/bulk-result/bulk-result.component.ts +46 -0
- package/modules/pattern/features/order/components/general-information-form/general-information-form.component.d.ts +30 -0
- package/modules/pattern/features/order/components/general-information-form/general-information-form.component.ts +96 -0
- package/modules/pattern/features/order/components/lines-form/lines-form.component.d.ts +19 -0
- package/modules/pattern/features/order/components/lines-form/lines-form.component.ts +182 -0
- package/modules/pattern/features/order/components/lines-form/order-lines.d.ts +35 -0
- package/modules/pattern/features/order/components/lines-form/order-lines.ts +101 -0
- package/modules/pattern/features/order/components/lines-table-form/lines-table-form.component.d.ts +34 -0
- package/modules/pattern/features/order/components/lines-table-form/lines-table-form.component.ts +196 -0
- package/modules/pattern/features/order/components/lines-view/lines-view.component.d.ts +12 -0
- package/modules/pattern/features/order/components/lines-view/lines-view.component.ts +42 -0
- package/modules/pattern/features/order/components/summary-cards/summary-cards.component.d.ts +25 -0
- package/modules/pattern/features/order/components/summary-cards/summary-cards.component.ts +128 -0
- package/modules/pattern/features/order/entity.resolver.d.ts +9 -0
- package/modules/pattern/features/order/entity.resolver.ts +37 -0
- package/modules/pattern/features/order/pages/create/create.component.d.ts +18 -0
- package/modules/pattern/features/order/pages/create/create.component.ts +113 -0
- package/modules/pattern/features/order/pages/detail/detail.component.d.ts +27 -0
- package/modules/pattern/features/order/pages/detail/detail.component.ts +224 -0
- package/modules/pattern/features/order/pages/list/list.component.d.ts +29 -0
- package/modules/pattern/features/order/pages/list/list.component.html +38 -0
- package/modules/pattern/features/order/pages/list/list.component.ts +291 -0
- package/modules/pattern/features/order/pages/update/update.component.d.ts +22 -0
- package/modules/pattern/features/order/pages/update/update.component.ts +126 -0
- package/modules/pattern/features/order/routes.d.ts +7 -0
- package/modules/pattern/features/order/routes.ts +54 -0
- package/modules/pattern/features/order/services/order.model.d.ts +106 -0
- package/modules/pattern/features/order/services/order.model.ts +109 -0
- package/modules/pattern/features/order/services/order.service.d.ts +25 -0
- package/modules/pattern/features/order/services/order.service.ts +63 -0
- package/modules/pattern/features/partner/pages/create/create.component.d.ts +41 -0
- package/modules/pattern/features/partner/pages/create/create.component.ts +324 -0
- package/modules/pattern/features/partner/routes.d.ts +2 -0
- package/modules/pattern/features/partner/routes.ts +20 -0
- package/modules/pattern/features/partner/services/partner.model.d.ts +30 -0
- package/modules/pattern/features/partner/services/partner.model.ts +30 -0
- package/modules/pattern/features/partner/services/partner.service.d.ts +13 -0
- package/modules/pattern/features/partner/services/partner.service.ts +17 -0
- package/modules/pattern/features/product/components/general-information-form/general-information-form.component.d.ts +23 -0
- package/modules/pattern/features/product/components/general-information-form/general-information-form.component.ts +88 -0
- package/modules/pattern/features/product/components/product-select/product-select.component.d.ts +26 -0
- package/modules/pattern/features/product/components/product-select/product-select.component.ts +73 -0
- package/modules/pattern/features/product/components/product-status-select/product-status-select.component.d.ts +22 -0
- package/modules/pattern/features/product/components/product-status-select/product-status-select.component.ts +30 -0
- package/modules/pattern/features/product/entity.resolver.d.ts +4 -0
- package/modules/pattern/features/product/entity.resolver.ts +21 -0
- package/modules/pattern/features/product/pages/create/create.component.d.ts +15 -0
- package/modules/pattern/features/product/pages/create/create.component.ts +92 -0
- package/modules/pattern/features/product/pages/detail/detail.component.d.ts +10 -0
- package/modules/pattern/features/product/pages/detail/detail.component.ts +53 -0
- package/modules/pattern/features/product/pages/list/list.component.d.ts +15 -0
- package/modules/pattern/features/product/pages/list/list.component.html +30 -0
- package/modules/pattern/features/product/pages/list/list.component.ts +71 -0
- package/modules/pattern/features/product/pages/update/update.component.d.ts +16 -0
- package/modules/pattern/features/product/pages/update/update.component.ts +86 -0
- package/modules/pattern/features/product/pipes/product-detail.pipe.d.ts +14 -0
- package/modules/pattern/features/product/pipes/product-detail.pipe.ts +18 -0
- package/modules/pattern/features/product/routes.d.ts +3 -0
- package/modules/pattern/features/product/routes.ts +48 -0
- package/modules/pattern/features/product/services/product.model.d.ts +34 -0
- package/modules/pattern/features/product/services/product.model.ts +38 -0
- package/modules/pattern/features/product/services/product.service.d.ts +17 -0
- package/modules/pattern/features/product/services/product.service.ts +48 -0
- package/modules/pattern/features/settings/pages/update/update.component.d.ts +26 -0
- package/modules/pattern/features/settings/pages/update/update.component.ts +228 -0
- package/modules/pattern/features/settings/routes.d.ts +3 -0
- package/modules/pattern/features/settings/routes.ts +24 -0
- package/modules/pattern/features/settings/services/settings.model.d.ts +17 -0
- package/modules/pattern/features/settings/services/settings.model.ts +18 -0
- package/modules/pattern/features/settings/services/settings.service.d.ts +10 -0
- package/modules/pattern/features/settings/services/settings.service.ts +15 -0
- package/modules/pattern/features/settings/settings.resolver.d.ts +4 -0
- package/modules/pattern/features/settings/settings.resolver.ts +8 -0
- package/modules/pattern/index.d.ts +3 -0
- package/modules/pattern/routes.d.ts +6 -0
- package/modules/pattern/services/base-api.service.d.ts +16 -0
- package/modules/pattern/utils/api-error.d.ts +4 -0
- package/modules/pattern/utils/focus-first-invalid.d.ts +5 -0
- package/modules/pattern/utils/form-api-errors.d.ts +16 -0
- package/modules/pattern/utils/resource-url.d.ts +2 -0
- package/package.json +13 -9
- package/services/api/src/api-handler-registry.d.ts +3 -3
- package/services/api/src/api-route-configurations.d.ts +2 -2
- package/services/api/src/api.model.d.ts +2 -2
- package/services/cache/src/cache.model.d.ts +3 -1
- package/services/storage/src/storage.model.d.ts +2 -0
- package/services/unsaved-changes/src/unsaved-changes.adapters.d.ts +9 -0
- package/services/unsaved-changes/src/unsaved-changes.model.d.ts +2 -0
- package/forms/chip/src/pipes/index.d.ts +0 -1
- package/forms/chip/src/pipes/removable-chip.pipe.d.ts +0 -8
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import {
|
|
2
|
+
afterNextRender,
|
|
3
|
+
ChangeDetectionStrategy,
|
|
4
|
+
Component,
|
|
5
|
+
DestroyRef,
|
|
6
|
+
effect,
|
|
7
|
+
ElementRef,
|
|
8
|
+
inject,
|
|
9
|
+
Injector,
|
|
10
|
+
signal,
|
|
11
|
+
untracked,
|
|
12
|
+
} from '@angular/core';
|
|
13
|
+
import { toSignal } from '@angular/core/rxjs-interop';
|
|
14
|
+
import { FormGroup } from '@angular/forms';
|
|
15
|
+
import { ActivatedRoute, Router } from '@angular/router';
|
|
16
|
+
import { firstValueFrom, map } from 'rxjs';
|
|
17
|
+
import { SdButton } from '@sdcorejs/angular/components/button';
|
|
18
|
+
import { SdSection } from '@sdcorejs/angular/components/section';
|
|
19
|
+
import { SdTextarea } from '@sdcorejs/angular/forms/textarea';
|
|
20
|
+
import { SdPageComponent } from '@sdcorejs/angular/modules/layout';
|
|
21
|
+
import { SdNotifyService } from '@sdcorejs/angular/services/notify';
|
|
22
|
+
import { registerSdUnsavedChangesForm, SdUnsavedChangesService } from '@sdcorejs/angular/services/unsaved-changes';
|
|
23
|
+
import { apiErrorMessage } from '../../../../utils/api-error';
|
|
24
|
+
import { focusFirstInvalid } from '../../../../utils/focus-first-invalid';
|
|
25
|
+
import { formApiErrors } from '../../../../utils/form-api-errors';
|
|
26
|
+
import {
|
|
27
|
+
GeneralInformationFormComponent,
|
|
28
|
+
orderSaveReq,
|
|
29
|
+
type OrderForm,
|
|
30
|
+
} from '../../components/general-information-form/general-information-form.component';
|
|
31
|
+
import { LinesFormComponent } from '../../components/lines-form/lines-form.component';
|
|
32
|
+
import { LinesTableFormComponent } from '../../components/lines-table-form/lines-table-form.component';
|
|
33
|
+
import { OrderService } from '../../services/order.service';
|
|
34
|
+
import type { OrderDto } from '../../services/order.model';
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Cập nhật đơn hàng: khách đã ngừng hoạt động vẫn hiện (`customer-select` tải theo ID), lỗi của API trên một dòng
|
|
38
|
+
* hiện ngay ở dòng đó. Lưu xong sang chi tiết.
|
|
39
|
+
*/
|
|
40
|
+
@Component({
|
|
41
|
+
selector: 'update',
|
|
42
|
+
standalone: true,
|
|
43
|
+
imports: [SdPageComponent, SdButton, SdSection, SdTextarea, GeneralInformationFormComponent, LinesFormComponent, LinesTableFormComponent],
|
|
44
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
45
|
+
template: `
|
|
46
|
+
<sd-page-form [title]="'Cập nhật đơn hàng #' + entity().code" [backLink]="['../detail']" toc>
|
|
47
|
+
<div headerRight class="d-flex align-items-center gap-8">
|
|
48
|
+
<sd-button title="Huỷ" type="outline" autoId="order-cancel" (click)="cancel()" />
|
|
49
|
+
<sd-button title="Lưu" prefixIcon="save" type="fill" color="primary" autoId="order-save" [loading]="saving()" (click)="save()" />
|
|
50
|
+
</div>
|
|
51
|
+
<div class="d-flex flex-column gap-16 py-16">
|
|
52
|
+
<general-information-form [form]="form" [seed]="entity()" />
|
|
53
|
+
@if (linesTable) {
|
|
54
|
+
<lines-table-form [form]="form" [seed]="entity().lines" [errors]="apiErrors.errors()" />
|
|
55
|
+
} @else {
|
|
56
|
+
<lines-form [form]="form" [seed]="entity().lines" [errors]="apiErrors.errors()" />
|
|
57
|
+
}
|
|
58
|
+
<sd-section title="Ghi chú">
|
|
59
|
+
<div class="px-16 pt-16 pb-8">
|
|
60
|
+
<sd-textarea label="Ghi chú nội bộ" name="note" [form]="form" [model]="entity().note" maxlength="500" />
|
|
61
|
+
</div>
|
|
62
|
+
</sd-section>
|
|
63
|
+
</div>
|
|
64
|
+
</sd-page-form>
|
|
65
|
+
`,
|
|
66
|
+
})
|
|
67
|
+
export class UpdateComponent {
|
|
68
|
+
readonly #orderService = inject(OrderService);
|
|
69
|
+
readonly #notify = inject(SdNotifyService);
|
|
70
|
+
readonly #router = inject(Router);
|
|
71
|
+
readonly #route = inject(ActivatedRoute);
|
|
72
|
+
/** `?lines=sd-table`: dòng hàng dựng bằng `sd-table` (`lines-table-form`) để so với `<table>`. Màn thật chọn một. */
|
|
73
|
+
protected readonly linesTable = this.#route.snapshot.queryParamMap.get('lines') === 'sd-table';
|
|
74
|
+
readonly #host: HTMLElement = inject(ElementRef).nativeElement;
|
|
75
|
+
readonly #injector = inject(Injector);
|
|
76
|
+
/** Đơn do resolver tải; draft khởi tạo từ đây. */
|
|
77
|
+
protected readonly entity = toSignal(this.#route.data.pipe(map(data => data['entity'] as OrderDto)), { requireSync: true });
|
|
78
|
+
protected readonly form: OrderForm = new FormGroup({});
|
|
79
|
+
protected readonly saving = signal(false);
|
|
80
|
+
protected readonly apiErrors = formApiErrors(this.form);
|
|
81
|
+
readonly #unsaved = registerSdUnsavedChangesForm(inject(SdUnsavedChangesService), this.form, { id: 'order-update', dirty: 'value' });
|
|
82
|
+
|
|
83
|
+
constructor() {
|
|
84
|
+
inject(DestroyRef).onDestroy(() => this.#unsaved.destroy());
|
|
85
|
+
// why: chỉ đổi `:id` thì trang được dùng lại; khi đơn mới đã vào form, nó là mốc so sánh mới và lỗi cũ bỏ đi.
|
|
86
|
+
let loaded = this.entity();
|
|
87
|
+
effect(() => {
|
|
88
|
+
const entity = this.entity();
|
|
89
|
+
if (entity === loaded) return;
|
|
90
|
+
loaded = entity;
|
|
91
|
+
untracked(() => {
|
|
92
|
+
this.apiErrors.clear();
|
|
93
|
+
afterNextRender(() => this.#unsaved.markPristine(), { injector: this.#injector });
|
|
94
|
+
});
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
protected cancel(): void {
|
|
99
|
+
void this.#router.navigate(['../detail'], { relativeTo: this.#route });
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
protected async save(): Promise<void> {
|
|
103
|
+
if (this.saving()) return;
|
|
104
|
+
this.form.markAllAsTouched();
|
|
105
|
+
if (this.form.invalid) {
|
|
106
|
+
this.#focusFirstInvalid();
|
|
107
|
+
return;
|
|
108
|
+
}
|
|
109
|
+
this.saving.set(true);
|
|
110
|
+
try {
|
|
111
|
+
await firstValueFrom(this.#orderService.update(this.entity().id, orderSaveReq(this.form)));
|
|
112
|
+
this.#unsaved.markPristine();
|
|
113
|
+
this.#notify.success('Đã cập nhật đơn hàng.');
|
|
114
|
+
await this.#router.navigate(['../detail'], { relativeTo: this.#route, replaceUrl: true });
|
|
115
|
+
} catch (error) {
|
|
116
|
+
if (this.apiErrors.set(error)) this.#focusFirstInvalid();
|
|
117
|
+
else this.#notify.error(apiErrorMessage(error, 'Không thể lưu. Dữ liệu đã nhập vẫn được giữ.'));
|
|
118
|
+
} finally {
|
|
119
|
+
this.saving.set(false);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
#focusFirstInvalid(): void {
|
|
124
|
+
afterNextRender(() => focusFirstInvalid(this.#host), { injector: this.#injector });
|
|
125
|
+
}
|
|
126
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Routes } from '@angular/router';
|
|
2
|
+
/**
|
|
3
|
+
* Chi tiết là route con của danh sách (drawer hoặc trang theo `detail`); tạo và cập nhật là trang thay chỗ danh sách
|
|
4
|
+
* (`data.detail: 'page'`). CustomerService và ProductService được cấp ở đây cho `customer-select`, `product-select`
|
|
5
|
+
* và các pipe relation: đơn hàng dùng wrapper của feature sở hữu entity, không tự gọi API của entity khác.
|
|
6
|
+
*/
|
|
7
|
+
export declare const routes: Routes;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import type { Routes } from '@angular/router';
|
|
2
|
+
import { sdPageFormLeaveGuard } from '@sdcorejs/angular/modules/layout';
|
|
3
|
+
import { SdPermissionGuard } from '@sdcorejs/angular/modules/permission';
|
|
4
|
+
import { CustomerService } from '../customer/services/customer.service';
|
|
5
|
+
import { ProductService } from '../product/services/product.service';
|
|
6
|
+
import { entityResolver, updatableEntityResolver } from './entity.resolver';
|
|
7
|
+
import { OrderService } from './services/order.service';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Chi tiết là route con của danh sách (drawer hoặc trang theo `detail`); tạo và cập nhật là trang thay chỗ danh sách
|
|
11
|
+
* (`data.detail: 'page'`). CustomerService và ProductService được cấp ở đây cho `customer-select`, `product-select`
|
|
12
|
+
* và các pipe relation: đơn hàng dùng wrapper của feature sở hữu entity, không tự gọi API của entity khác.
|
|
13
|
+
*/
|
|
14
|
+
export const routes: Routes = [
|
|
15
|
+
{
|
|
16
|
+
path: '',
|
|
17
|
+
providers: [OrderService, CustomerService, ProductService],
|
|
18
|
+
canActivateChild: [SdPermissionGuard],
|
|
19
|
+
children: [
|
|
20
|
+
{
|
|
21
|
+
path: '',
|
|
22
|
+
title: 'Đơn hàng',
|
|
23
|
+
data: { permission: 'PATTERN_ORDER_R_LIST' },
|
|
24
|
+
loadComponent: () => import('./pages/list/list.component').then(module => module.ListComponent),
|
|
25
|
+
children: [
|
|
26
|
+
{
|
|
27
|
+
path: 'create',
|
|
28
|
+
title: 'Tạo mới đơn hàng',
|
|
29
|
+
data: { permission: 'PATTERN_ORDER_C_CREATE', detail: 'page' },
|
|
30
|
+
canDeactivate: [sdPageFormLeaveGuard],
|
|
31
|
+
loadComponent: () => import('./pages/create/create.component').then(module => module.CreateComponent),
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
path: ':id/detail',
|
|
35
|
+
title: 'Chi tiết đơn hàng',
|
|
36
|
+
data: { permission: 'PATTERN_ORDER_R_DETAIL' },
|
|
37
|
+
resolve: { entity: entityResolver },
|
|
38
|
+
runGuardsAndResolvers: 'paramsChange',
|
|
39
|
+
loadComponent: () => import('./pages/detail/detail.component').then(module => module.DetailComponent),
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
path: ':id/update',
|
|
43
|
+
title: 'Cập nhật đơn hàng',
|
|
44
|
+
data: { permission: 'PATTERN_ORDER_U_UPDATE', detail: 'page' },
|
|
45
|
+
resolve: { entity: updatableEntityResolver },
|
|
46
|
+
runGuardsAndResolvers: 'paramsChange',
|
|
47
|
+
canDeactivate: [sdPageFormLeaveGuard],
|
|
48
|
+
loadComponent: () => import('./pages/update/update.component').then(module => module.UpdateComponent),
|
|
49
|
+
},
|
|
50
|
+
],
|
|
51
|
+
},
|
|
52
|
+
],
|
|
53
|
+
},
|
|
54
|
+
];
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import type { SdBadgeData } from '@sdcorejs/angular/components/badge';
|
|
2
|
+
import type { PagingReq, PagingRes } from '@sdcorejs/utils/models';
|
|
3
|
+
export type OrderStatus = 'pending' | 'shipping' | 'done' | 'cancelled';
|
|
4
|
+
export type OrderApproval = 'draft' | 'submitted' | 'approved' | 'rejected';
|
|
5
|
+
export declare const ORDER_STATUS_OPTIONS: ({
|
|
6
|
+
id: "pending";
|
|
7
|
+
name: string;
|
|
8
|
+
color: "warning";
|
|
9
|
+
} | {
|
|
10
|
+
id: "shipping";
|
|
11
|
+
name: string;
|
|
12
|
+
color: "info";
|
|
13
|
+
} | {
|
|
14
|
+
id: "done";
|
|
15
|
+
name: string;
|
|
16
|
+
color: "success";
|
|
17
|
+
} | {
|
|
18
|
+
id: "cancelled";
|
|
19
|
+
name: string;
|
|
20
|
+
color: "secondary";
|
|
21
|
+
})[];
|
|
22
|
+
export declare const ORDER_APPROVAL_OPTIONS: ({
|
|
23
|
+
id: "draft";
|
|
24
|
+
name: string;
|
|
25
|
+
color: "secondary";
|
|
26
|
+
} | {
|
|
27
|
+
id: "submitted";
|
|
28
|
+
name: string;
|
|
29
|
+
color: "warning";
|
|
30
|
+
} | {
|
|
31
|
+
id: "approved";
|
|
32
|
+
name: string;
|
|
33
|
+
color: "success";
|
|
34
|
+
} | {
|
|
35
|
+
id: "rejected";
|
|
36
|
+
name: string;
|
|
37
|
+
color: "error";
|
|
38
|
+
})[];
|
|
39
|
+
export declare const ORDER_CHANNELS: readonly ["Online", "Cửa hàng", "Đại lý"];
|
|
40
|
+
export declare const ORDER_WAREHOUSES: readonly ["Hà Nội", "TP.HCM", "Đà Nẵng"];
|
|
41
|
+
export declare const ORDER_PAYMENTS: readonly ["Tiền mặt", "Chuyển khoản", "COD"];
|
|
42
|
+
export interface OrderLineDto {
|
|
43
|
+
readonly productId: string;
|
|
44
|
+
readonly quantity: number;
|
|
45
|
+
readonly unitPrice: number;
|
|
46
|
+
}
|
|
47
|
+
export interface OrderApprovalStepDto {
|
|
48
|
+
readonly action: 'submit' | 'approve' | 'reject';
|
|
49
|
+
readonly by: string;
|
|
50
|
+
readonly at: string;
|
|
51
|
+
readonly reason?: string;
|
|
52
|
+
}
|
|
53
|
+
export interface OrderDto {
|
|
54
|
+
readonly id: string;
|
|
55
|
+
readonly code: string;
|
|
56
|
+
readonly customerId: string;
|
|
57
|
+
/** Tên khách lúc lập đơn: chứng từ giữ snapshot, không đổi theo danh mục khách hàng. */
|
|
58
|
+
readonly customer: string;
|
|
59
|
+
readonly channel: string;
|
|
60
|
+
readonly warehouse: string;
|
|
61
|
+
readonly payment: string;
|
|
62
|
+
readonly createdAt: string;
|
|
63
|
+
readonly deliveredAt: string | null;
|
|
64
|
+
/** Tổng tiền (₫). */
|
|
65
|
+
readonly total: number;
|
|
66
|
+
readonly status: OrderStatus;
|
|
67
|
+
readonly approval: OrderApproval;
|
|
68
|
+
readonly approvalHistory: readonly OrderApprovalStepDto[];
|
|
69
|
+
readonly lines: readonly OrderLineDto[];
|
|
70
|
+
readonly creator: string;
|
|
71
|
+
readonly source: string;
|
|
72
|
+
readonly tracking: string | null;
|
|
73
|
+
readonly note: string | null;
|
|
74
|
+
readonly cancelReason: string | null;
|
|
75
|
+
}
|
|
76
|
+
export type OrderListReq = PagingReq<OrderDto>;
|
|
77
|
+
export type OrderListRes = PagingRes<OrderDto>;
|
|
78
|
+
/** Số đơn theo trạng thái và doanh thu hoàn tất, cùng bộ lọc với danh sách (trừ trạng thái đang chọn). */
|
|
79
|
+
export type OrderCounts = Record<'all' | OrderStatus | 'revenue', number>;
|
|
80
|
+
export interface OrderSaveReq {
|
|
81
|
+
readonly customerId: string;
|
|
82
|
+
readonly channel: string;
|
|
83
|
+
readonly warehouse: string;
|
|
84
|
+
readonly payment: string;
|
|
85
|
+
readonly note: string | null;
|
|
86
|
+
readonly lines: readonly OrderLineDto[];
|
|
87
|
+
}
|
|
88
|
+
/** Tác vụ đổi trạng thái của đơn; `cancel` và `reject` bắt buộc lý do. */
|
|
89
|
+
export type OrderAction = 'confirm' | 'cancel' | 'submit' | 'approve' | 'reject';
|
|
90
|
+
export interface OrderActionReq {
|
|
91
|
+
readonly id: string;
|
|
92
|
+
readonly reason?: string;
|
|
93
|
+
}
|
|
94
|
+
/** Kết quả từng đơn của một tác vụ hàng loạt: API trả đủ thành công lẫn thất bại. */
|
|
95
|
+
export interface OrderBulkItemRes {
|
|
96
|
+
readonly id: string;
|
|
97
|
+
readonly ok: boolean;
|
|
98
|
+
readonly message?: string;
|
|
99
|
+
}
|
|
100
|
+
export interface OrderBulkRes {
|
|
101
|
+
readonly results: readonly OrderBulkItemRes[];
|
|
102
|
+
}
|
|
103
|
+
export declare function orderStatusBadge(status: OrderStatus): SdBadgeData;
|
|
104
|
+
export declare function orderApprovalBadge(approval: OrderApproval): SdBadgeData;
|
|
105
|
+
/** Đơn còn sửa được: chờ xác nhận, chưa gửi duyệt hoặc đã bị từ chối. */
|
|
106
|
+
export declare function canUpdateOrder(order: OrderDto): boolean;
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import type { SdBadgeData } from '@sdcorejs/angular/components/badge';
|
|
2
|
+
import type { PagingReq, PagingRes } from '@sdcorejs/utils/models';
|
|
3
|
+
|
|
4
|
+
export type OrderStatus = 'pending' | 'shipping' | 'done' | 'cancelled';
|
|
5
|
+
export type OrderApproval = 'draft' | 'submitted' | 'approved' | 'rejected';
|
|
6
|
+
|
|
7
|
+
export const ORDER_STATUS_OPTIONS = [
|
|
8
|
+
{ id: 'pending', name: 'Chờ xác nhận', color: 'warning' },
|
|
9
|
+
{ id: 'shipping', name: 'Đang giao', color: 'info' },
|
|
10
|
+
{ id: 'done', name: 'Hoàn tất', color: 'success' },
|
|
11
|
+
{ id: 'cancelled', name: 'Đã huỷ', color: 'secondary' },
|
|
12
|
+
] satisfies { id: OrderStatus; name: string; color: SdBadgeData['color'] }[];
|
|
13
|
+
|
|
14
|
+
export const ORDER_APPROVAL_OPTIONS = [
|
|
15
|
+
{ id: 'draft', name: 'Nháp', color: 'secondary' },
|
|
16
|
+
{ id: 'submitted', name: 'Chờ duyệt', color: 'warning' },
|
|
17
|
+
{ id: 'approved', name: 'Đã duyệt', color: 'success' },
|
|
18
|
+
{ id: 'rejected', name: 'Bị từ chối', color: 'error' },
|
|
19
|
+
] satisfies { id: OrderApproval; name: string; color: SdBadgeData['color'] }[];
|
|
20
|
+
|
|
21
|
+
export const ORDER_CHANNELS = ['Online', 'Cửa hàng', 'Đại lý'] as const;
|
|
22
|
+
export const ORDER_WAREHOUSES = ['Hà Nội', 'TP.HCM', 'Đà Nẵng'] as const;
|
|
23
|
+
export const ORDER_PAYMENTS = ['Tiền mặt', 'Chuyển khoản', 'COD'] as const;
|
|
24
|
+
|
|
25
|
+
export interface OrderLineDto {
|
|
26
|
+
readonly productId: string;
|
|
27
|
+
readonly quantity: number;
|
|
28
|
+
readonly unitPrice: number;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export interface OrderApprovalStepDto {
|
|
32
|
+
readonly action: 'submit' | 'approve' | 'reject';
|
|
33
|
+
readonly by: string;
|
|
34
|
+
readonly at: string;
|
|
35
|
+
readonly reason?: string;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export interface OrderDto {
|
|
39
|
+
readonly id: string;
|
|
40
|
+
readonly code: string;
|
|
41
|
+
readonly customerId: string;
|
|
42
|
+
/** Tên khách lúc lập đơn: chứng từ giữ snapshot, không đổi theo danh mục khách hàng. */
|
|
43
|
+
readonly customer: string;
|
|
44
|
+
readonly channel: string;
|
|
45
|
+
readonly warehouse: string;
|
|
46
|
+
readonly payment: string;
|
|
47
|
+
readonly createdAt: string;
|
|
48
|
+
readonly deliveredAt: string | null;
|
|
49
|
+
/** Tổng tiền (₫). */
|
|
50
|
+
readonly total: number;
|
|
51
|
+
readonly status: OrderStatus;
|
|
52
|
+
readonly approval: OrderApproval;
|
|
53
|
+
readonly approvalHistory: readonly OrderApprovalStepDto[];
|
|
54
|
+
readonly lines: readonly OrderLineDto[];
|
|
55
|
+
readonly creator: string;
|
|
56
|
+
readonly source: string;
|
|
57
|
+
readonly tracking: string | null;
|
|
58
|
+
readonly note: string | null;
|
|
59
|
+
readonly cancelReason: string | null;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export type OrderListReq = PagingReq<OrderDto>;
|
|
63
|
+
export type OrderListRes = PagingRes<OrderDto>;
|
|
64
|
+
|
|
65
|
+
/** Số đơn theo trạng thái và doanh thu hoàn tất, cùng bộ lọc với danh sách (trừ trạng thái đang chọn). */
|
|
66
|
+
export type OrderCounts = Record<'all' | OrderStatus | 'revenue', number>;
|
|
67
|
+
|
|
68
|
+
export interface OrderSaveReq {
|
|
69
|
+
readonly customerId: string;
|
|
70
|
+
readonly channel: string;
|
|
71
|
+
readonly warehouse: string;
|
|
72
|
+
readonly payment: string;
|
|
73
|
+
readonly note: string | null;
|
|
74
|
+
readonly lines: readonly OrderLineDto[];
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/** Tác vụ đổi trạng thái của đơn; `cancel` và `reject` bắt buộc lý do. */
|
|
78
|
+
export type OrderAction = 'confirm' | 'cancel' | 'submit' | 'approve' | 'reject';
|
|
79
|
+
|
|
80
|
+
export interface OrderActionReq {
|
|
81
|
+
readonly id: string;
|
|
82
|
+
readonly reason?: string;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/** Kết quả từng đơn của một tác vụ hàng loạt: API trả đủ thành công lẫn thất bại. */
|
|
86
|
+
export interface OrderBulkItemRes {
|
|
87
|
+
readonly id: string;
|
|
88
|
+
readonly ok: boolean;
|
|
89
|
+
readonly message?: string;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export interface OrderBulkRes {
|
|
93
|
+
readonly results: readonly OrderBulkItemRes[];
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export function orderStatusBadge(status: OrderStatus): SdBadgeData {
|
|
97
|
+
const option = ORDER_STATUS_OPTIONS.find(item => item.id === status);
|
|
98
|
+
return { type: 'round', title: option?.name ?? status, color: option?.color };
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export function orderApprovalBadge(approval: OrderApproval): SdBadgeData {
|
|
102
|
+
const option = ORDER_APPROVAL_OPTIONS.find(item => item.id === approval);
|
|
103
|
+
return { type: 'tag', title: option?.name ?? approval, color: option?.color };
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/** Đơn còn sửa được: chờ xác nhận, chưa gửi duyệt hoặc đã bị từ chối. */
|
|
107
|
+
export function canUpdateOrder(order: OrderDto): boolean {
|
|
108
|
+
return order.status === 'pending' && (order.approval === 'draft' || order.approval === 'rejected');
|
|
109
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { type Observable } from 'rxjs';
|
|
2
|
+
import type { Filter } from '@sdcorejs/utils/models';
|
|
3
|
+
import { BaseApiService } from '../../../services/base-api.service';
|
|
4
|
+
import type { OrderAction, OrderActionReq, OrderBulkRes, OrderCounts, OrderDto, OrderListReq, OrderListRes, OrderSaveReq } from './order.model';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class OrderService extends BaseApiService {
|
|
7
|
+
#private;
|
|
8
|
+
/** Tăng sau mỗi lần lưu hoặc đổi trạng thái thành công: danh sách chỉ tải lại khi có thay đổi. */
|
|
9
|
+
readonly changes: import("@angular/core").Signal<number>;
|
|
10
|
+
list(req: OrderListReq): Observable<OrderListRes>;
|
|
11
|
+
/** Số đơn của tab và score card, theo cùng bộ lọc của danh sách. */
|
|
12
|
+
counts(filters: Filter<OrderDto>[]): Observable<OrderCounts>;
|
|
13
|
+
detail(id: string): Observable<OrderDto>;
|
|
14
|
+
create(req: OrderSaveReq): Observable<OrderDto>;
|
|
15
|
+
update(id: string, req: OrderSaveReq): Observable<OrderDto>;
|
|
16
|
+
/** Một tác vụ trên một đơn; trả đơn sau khi đổi trạng thái. */
|
|
17
|
+
act(action: OrderAction, req: OrderActionReq): Observable<OrderDto>;
|
|
18
|
+
/**
|
|
19
|
+
* Một tác vụ trên nhiều đơn. API không có transaction cho cả lô: kết quả có từng đơn thành công hoặc thất bại,
|
|
20
|
+
* nên luôn đọc `results` thay vì coi request thành công là thành công toàn bộ.
|
|
21
|
+
*/
|
|
22
|
+
bulk(action: OrderAction, reqs: readonly OrderActionReq[]): Observable<OrderBulkRes>;
|
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OrderService, never>;
|
|
24
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<OrderService>;
|
|
25
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { HttpParams } from '@angular/common/http';
|
|
2
|
+
import { Injectable, signal } from '@angular/core';
|
|
3
|
+
import { tap, type Observable } from 'rxjs';
|
|
4
|
+
import type { Filter } from '@sdcorejs/utils/models';
|
|
5
|
+
import { BaseApiService } from '../../../services/base-api.service';
|
|
6
|
+
import type {
|
|
7
|
+
OrderAction,
|
|
8
|
+
OrderActionReq,
|
|
9
|
+
OrderBulkRes,
|
|
10
|
+
OrderCounts,
|
|
11
|
+
OrderDto,
|
|
12
|
+
OrderListReq,
|
|
13
|
+
OrderListRes,
|
|
14
|
+
OrderSaveReq,
|
|
15
|
+
} from './order.model';
|
|
16
|
+
|
|
17
|
+
@Injectable()
|
|
18
|
+
export class OrderService extends BaseApiService {
|
|
19
|
+
readonly #changes = signal(0);
|
|
20
|
+
/** Tăng sau mỗi lần lưu hoặc đổi trạng thái thành công: danh sách chỉ tải lại khi có thay đổi. */
|
|
21
|
+
readonly changes = this.#changes.asReadonly();
|
|
22
|
+
|
|
23
|
+
list(req: OrderListReq): Observable<OrderListRes> {
|
|
24
|
+
return this.http.get<OrderListRes>(this.apiUrl('orders'), { params: this.buildPagingReq(req) });
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/** Số đơn của tab và score card, theo cùng bộ lọc của danh sách. */
|
|
28
|
+
counts(filters: Filter<OrderDto>[]): Observable<OrderCounts> {
|
|
29
|
+
return this.http.get<OrderCounts>(this.apiUrl('orders', 'counts'), {
|
|
30
|
+
params: new HttpParams().set('filters', JSON.stringify(filters)),
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
detail(id: string): Observable<OrderDto> {
|
|
35
|
+
return this.http.get<OrderDto>(this.apiUrl('orders', id));
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
create(req: OrderSaveReq): Observable<OrderDto> {
|
|
39
|
+
return this.http.post<OrderDto>(this.apiUrl('orders'), req).pipe(tap(() => this.#changed()));
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
update(id: string, req: OrderSaveReq): Observable<OrderDto> {
|
|
43
|
+
return this.http.put<OrderDto>(this.apiUrl('orders', id), req).pipe(tap(() => this.#changed()));
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/** Một tác vụ trên một đơn; trả đơn sau khi đổi trạng thái. */
|
|
47
|
+
act(action: OrderAction, req: OrderActionReq): Observable<OrderDto> {
|
|
48
|
+
const { id, ...body } = req;
|
|
49
|
+
return this.http.post<OrderDto>(this.apiUrl('orders', id, action), body).pipe(tap(() => this.#changed()));
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Một tác vụ trên nhiều đơn. API không có transaction cho cả lô: kết quả có từng đơn thành công hoặc thất bại,
|
|
54
|
+
* nên luôn đọc `results` thay vì coi request thành công là thành công toàn bộ.
|
|
55
|
+
*/
|
|
56
|
+
bulk(action: OrderAction, reqs: readonly OrderActionReq[]): Observable<OrderBulkRes> {
|
|
57
|
+
return this.http.post<OrderBulkRes>(this.apiUrl('orders', 'bulk', action), { items: reqs }).pipe(tap(() => this.#changed()));
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
#changed(): void {
|
|
61
|
+
this.#changes.update(count => count + 1);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { FormGroup } from '@angular/forms';
|
|
2
|
+
import { type PartnerSaveReq, type PartnerType } from '../../services/partner.model';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
/** Bản nháp giữ trong tab trình duyệt: tải lại trang vẫn tiếp tục được. */
|
|
5
|
+
interface PartnerDraft extends PartnerSaveReq {
|
|
6
|
+
readonly step: number;
|
|
7
|
+
readonly savedAt: string;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Pattern flow dọc: `sd-page` hẹp + `sd-stepper` dọc, nút bước ở footer. Bước 2 rẽ nhánh theo loại đối tác; rời bước 1
|
|
11
|
+
* thì kiểm tra trùng mã với API; mọi thay đổi được lưu nháp và khôi phục khi tải lại trang.
|
|
12
|
+
*/
|
|
13
|
+
export declare class CreateComponent {
|
|
14
|
+
#private;
|
|
15
|
+
protected readonly types: ({
|
|
16
|
+
value: "individual";
|
|
17
|
+
label: string;
|
|
18
|
+
} | {
|
|
19
|
+
value: "business";
|
|
20
|
+
label: string;
|
|
21
|
+
})[];
|
|
22
|
+
/** Giá trị ban đầu của các field: bản nháp nếu có. */
|
|
23
|
+
protected readonly seed: import("@angular/core").WritableSignal<PartnerSaveReq>;
|
|
24
|
+
protected readonly restored: import("@angular/core").WritableSignal<PartnerDraft | null>;
|
|
25
|
+
protected readonly step: import("@angular/core").WritableSignal<number>;
|
|
26
|
+
protected readonly type: import("@angular/core").WritableSignal<PartnerType>;
|
|
27
|
+
protected readonly kind: FormGroup<{}>;
|
|
28
|
+
protected readonly identity: FormGroup<{}>;
|
|
29
|
+
protected readonly contact: FormGroup<{}>;
|
|
30
|
+
protected readonly codeError: import("@angular/core").WritableSignal<string | null>;
|
|
31
|
+
protected readonly checking: import("@angular/core").WritableSignal<boolean>;
|
|
32
|
+
protected readonly saving: import("@angular/core").WritableSignal<boolean>;
|
|
33
|
+
protected readonly request: import("@angular/core").Signal<PartnerSaveReq>;
|
|
34
|
+
constructor();
|
|
35
|
+
protected next(): Promise<void>;
|
|
36
|
+
protected save(): Promise<void>;
|
|
37
|
+
protected discard(): Promise<void>;
|
|
38
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CreateComponent, never>;
|
|
39
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CreateComponent, "create", never, {}, {}, never, never, true, never>;
|
|
40
|
+
}
|
|
41
|
+
export {};
|