@sdcorejs/angular 22.3.2 → 22.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/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 +489 -42
- 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 +398 -78
- package/fesm2022/sdcorejs-angular-components-tab-router.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-table.mjs +1715 -127
- 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 +350 -5
- 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 +371 -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-C2o5xPVB.mjs +51 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-base-api.service-C2o5xPVB.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-create-side-drawer.component-CRc9T7rb.mjs +146 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-create-side-drawer.component-CRc9T7rb.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-create-side-drawer.component-Cz-MjRG0.mjs +148 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-create-side-drawer.component-Cz-MjRG0.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-create.component-CxicczH7.mjs +114 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-create.component-CxicczH7.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-create.component-D3MzNJ3F.mjs +469 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-create.component-D3MzNJ3F.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-create.component-RBvVv88D.mjs +143 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-create.component-RBvVv88D.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-3hWkJClX.mjs +67 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-customer.service-3hWkJClX.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-detail-side-drawer.component-DzDAX3B7.mjs +152 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-detail-side-drawer.component-DzDAX3B7.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-detail.component-CEhbU12j.mjs +175 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-detail.component-CEhbU12j.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-detail.component-CcpYULut.mjs +496 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-detail.component-CcpYULut.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-G5lHfG81.mjs +533 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-flow.component-G5lHfG81.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-BJaYcNzf.mjs +179 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-general-information-form.component-BJaYcNzf.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-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-CosbQK0W.mjs +100 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-index.component-CosbQK0W.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-lines-table-form.component-DmmVKrgM.mjs +836 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-lines-table-form.component-DmmVKrgM.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-BjehcQEk.mjs +172 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-BjehcQEk.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-CNVqk3JC.mjs +647 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-CNVqk3JC.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-C_pVqRcC.mjs +73 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-C_pVqRcC.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-EaNDEtCn.mjs +118 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-EaNDEtCn.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-jB3E20UF.mjs +120 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-jB3E20UF.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-mock-backend.factory-CFljqhjv.mjs +1069 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-mock-backend.factory-CFljqhjv.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-DitXmlr1.mjs +49 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-product.service-DitXmlr1.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-profile.component-Dxw7Ix9d.mjs +301 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-profile.component-Dxw7Ix9d.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-BOiWZHqg.mjs +45 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-BOiWZHqg.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-BWZxOMhB.mjs +74 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-BWZxOMhB.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-BxXgJVsW.mjs +74 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-BxXgJVsW.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-C43Q4Wtq.mjs +43 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-C43Q4Wtq.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-CJ-RAMa5.mjs +66 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-CJ-RAMa5.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-CWixJ2If.mjs +50 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-CWixJ2If.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-CophQH_L.mjs +100 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-CophQH_L.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-w4VY9P_H.mjs +166 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-w4VY9P_H.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-sdcorejs-angular-modules-pattern-BQCWgQsr.mjs +413 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-sdcorejs-angular-modules-pattern-BQCWgQsr.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-shell.component-BOjJteMd.mjs +325 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-shell.component-BOjJteMd.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-update-side-drawer.component-BT2PzXTG.mjs +135 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-update-side-drawer.component-BT2PzXTG.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-update-side-drawer.component-qmGn2tCI.mjs +146 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-update-side-drawer.component-qmGn2tCI.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-update.component-CS3jlV-R.mjs +101 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-update.component-CS3jlV-R.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-update.component-CUgQPcR4.mjs +139 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-update.component-CUgQPcR4.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-update.component-lGwicZKW.mjs +362 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-update.component-lGwicZKW.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/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 +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.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 +130 -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 +138 -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 +182 -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.ts +196 -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 +113 -0
- package/modules/pattern/features/order/pages/detail/detail.component.ts +224 -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 +126 -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 +73 -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 +92 -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 +228 -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-query-bar.d.ts +126 -11
- 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 +300 -25
- 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 +70 -1
- 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-api.d.ts +5 -5
- package/types/sdcorejs-angular-services-cache.d.ts +4 -2
- package/types/sdcorejs-angular-services-storage.d.ts +3 -1
- package/types/sdcorejs-angular-services-unsaved-changes.d.ts +11 -0
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,EA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,EAAE,0BAA0B;AACpC,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,OAAO,EAAE,CAAC,SAAS,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,EAAE,2BAA2B,CAAC;oBAC1F,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAC/C,oBAAA,QAAQ,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiET,EAAA,CAAA;AACF,iBAAA;;;"}
|
package/fesm2022/sdcorejs-angular-modules-pattern-general-information-view.component-CTgHdGeQ.mjs
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { input, computed, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
+
import { SdSection, SdSectionItem } from '@sdcorejs/angular/components/section';
|
|
4
|
+
import { SdEmptyPipe, SdFormatDatePipe, SdFormatNumberPipe } from '@sdcorejs/angular/pipes';
|
|
5
|
+
import { b as customerTypeName } from './sdcorejs-angular-modules-pattern-customer.model-C3fr4yNw.mjs';
|
|
6
|
+
|
|
7
|
+
/** Thông tin khách hàng dạng hàng `sd-section-item`: nhãn bên trái, giá trị bên phải. */
|
|
8
|
+
class GeneralInformationViewComponent {
|
|
9
|
+
customer = input.required(/* @ts-ignore */
|
|
10
|
+
...(ngDevMode ? [{ debugName: "customer" }] : /* istanbul ignore next */ []));
|
|
11
|
+
typeName = computed(() => customerTypeName(this.customer().type), /* @ts-ignore */
|
|
12
|
+
...(ngDevMode ? [{ debugName: "typeName" }] : /* istanbul ignore next */ []));
|
|
13
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: GeneralInformationViewComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
14
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", type: GeneralInformationViewComponent, isStandalone: true, selector: "general-information-view", inputs: { customer: { classPropertyName: "customer", publicName: "customer", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: `
|
|
15
|
+
@let item = customer();
|
|
16
|
+
<div class="d-flex flex-column gap-16">
|
|
17
|
+
<sd-section title="Thông tin chung">
|
|
18
|
+
<sd-section-item label="Mã khách hàng">{{ item.code }}</sd-section-item>
|
|
19
|
+
<sd-section-item label="Tên khách hàng">{{ item.name }}</sd-section-item>
|
|
20
|
+
<sd-section-item label="Loại khách hàng">{{ typeName() }}{{ item.tier === 'vip' ? ' · VIP' : '' }}</sd-section-item>
|
|
21
|
+
@if (item.type === 'business') {
|
|
22
|
+
<sd-section-item label="Mã số thuế">{{ item.taxCode | sdEmpty }}</sd-section-item>
|
|
23
|
+
}
|
|
24
|
+
<sd-section-item label="Ngày tạo">{{ item.createdAt | sdFormatDate }}</sd-section-item>
|
|
25
|
+
</sd-section>
|
|
26
|
+
<sd-section title="Liên hệ">
|
|
27
|
+
<sd-section-item label="Email">{{ item.email }}</sd-section-item>
|
|
28
|
+
<sd-section-item label="Điện thoại">{{ item.phone }}</sd-section-item>
|
|
29
|
+
<sd-section-item label="Địa chỉ">{{ item.address | sdEmpty }}</sd-section-item>
|
|
30
|
+
</sd-section>
|
|
31
|
+
<sd-section title="Khác">
|
|
32
|
+
<sd-section-item label="Công nợ (₫)">{{ item.debt | sdFormatNumber: 0 }}</sd-section-item>
|
|
33
|
+
<sd-section-item label="Ghi chú">{{ item.note | sdEmpty }}</sd-section-item>
|
|
34
|
+
</sd-section>
|
|
35
|
+
</div>
|
|
36
|
+
`, isInline: true, dependencies: [{ kind: "component", type: SdSection, selector: "sd-section", inputs: ["title", "subTitle", "icon", "iconColor", "iconShape", "collapsed", "collapsible", "hideHeader"], outputs: ["collapsedChange"] }, { kind: "component", type: SdSectionItem, selector: "sd-section-item", inputs: ["label", "labelWidth"] }, { kind: "pipe", type: SdEmptyPipe, name: "sdEmpty" }, { kind: "pipe", type: SdFormatDatePipe, name: "sdFormatDate" }, { kind: "pipe", type: SdFormatNumberPipe, name: "sdFormatNumber" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
37
|
+
}
|
|
38
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: GeneralInformationViewComponent, decorators: [{
|
|
39
|
+
type: Component,
|
|
40
|
+
args: [{
|
|
41
|
+
selector: 'general-information-view',
|
|
42
|
+
standalone: true,
|
|
43
|
+
imports: [SdSection, SdSectionItem, SdEmptyPipe, SdFormatDatePipe, SdFormatNumberPipe],
|
|
44
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
45
|
+
template: `
|
|
46
|
+
@let item = customer();
|
|
47
|
+
<div class="d-flex flex-column gap-16">
|
|
48
|
+
<sd-section title="Thông tin chung">
|
|
49
|
+
<sd-section-item label="Mã khách hàng">{{ item.code }}</sd-section-item>
|
|
50
|
+
<sd-section-item label="Tên khách hàng">{{ item.name }}</sd-section-item>
|
|
51
|
+
<sd-section-item label="Loại khách hàng">{{ typeName() }}{{ item.tier === 'vip' ? ' · VIP' : '' }}</sd-section-item>
|
|
52
|
+
@if (item.type === 'business') {
|
|
53
|
+
<sd-section-item label="Mã số thuế">{{ item.taxCode | sdEmpty }}</sd-section-item>
|
|
54
|
+
}
|
|
55
|
+
<sd-section-item label="Ngày tạo">{{ item.createdAt | sdFormatDate }}</sd-section-item>
|
|
56
|
+
</sd-section>
|
|
57
|
+
<sd-section title="Liên hệ">
|
|
58
|
+
<sd-section-item label="Email">{{ item.email }}</sd-section-item>
|
|
59
|
+
<sd-section-item label="Điện thoại">{{ item.phone }}</sd-section-item>
|
|
60
|
+
<sd-section-item label="Địa chỉ">{{ item.address | sdEmpty }}</sd-section-item>
|
|
61
|
+
</sd-section>
|
|
62
|
+
<sd-section title="Khác">
|
|
63
|
+
<sd-section-item label="Công nợ (₫)">{{ item.debt | sdFormatNumber: 0 }}</sd-section-item>
|
|
64
|
+
<sd-section-item label="Ghi chú">{{ item.note | sdEmpty }}</sd-section-item>
|
|
65
|
+
</sd-section>
|
|
66
|
+
</div>
|
|
67
|
+
`,
|
|
68
|
+
}]
|
|
69
|
+
}], propDecorators: { customer: [{ type: i0.Input, args: [{ isSignal: true, alias: "customer", required: true }] }] } });
|
|
70
|
+
|
|
71
|
+
export { GeneralInformationViewComponent as G };
|
|
72
|
+
//# sourceMappingURL=sdcorejs-angular-modules-pattern-general-information-view.component-CTgHdGeQ.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sdcorejs-angular-modules-pattern-general-information-view.component-CTgHdGeQ.mjs","sources":["../../../projects/sdcorejs-angular/modules/pattern/features/customer/components/general-information-view/general-information-view.component.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';\nimport { SdSection, SdSectionItem } from '@sdcorejs/angular/components/section';\nimport { SdEmptyPipe, SdFormatDatePipe, SdFormatNumberPipe } from '@sdcorejs/angular/pipes';\nimport { customerTypeName, type CustomerDto } from '../../services/customer.model';\n\n/** Thông tin khách hàng dạng hàng `sd-section-item`: nhãn bên trái, giá trị bên phải. */\n@Component({\n selector: 'general-information-view',\n standalone: true,\n imports: [SdSection, SdSectionItem, SdEmptyPipe, SdFormatDatePipe, SdFormatNumberPipe],\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `\n @let item = customer();\n <div class=\"d-flex flex-column gap-16\">\n <sd-section title=\"Thông tin chung\">\n <sd-section-item label=\"Mã khách hàng\">{{ item.code }}</sd-section-item>\n <sd-section-item label=\"Tên khách hàng\">{{ item.name }}</sd-section-item>\n <sd-section-item label=\"Loại khách hàng\">{{ typeName() }}{{ item.tier === 'vip' ? ' · VIP' : '' }}</sd-section-item>\n @if (item.type === 'business') {\n <sd-section-item label=\"Mã số thuế\">{{ item.taxCode | sdEmpty }}</sd-section-item>\n }\n <sd-section-item label=\"Ngày tạo\">{{ item.createdAt | sdFormatDate }}</sd-section-item>\n </sd-section>\n <sd-section title=\"Liên hệ\">\n <sd-section-item label=\"Email\">{{ item.email }}</sd-section-item>\n <sd-section-item label=\"Điện thoại\">{{ item.phone }}</sd-section-item>\n <sd-section-item label=\"Địa chỉ\">{{ item.address | sdEmpty }}</sd-section-item>\n </sd-section>\n <sd-section title=\"Khác\">\n <sd-section-item label=\"Công nợ (₫)\">{{ item.debt | sdFormatNumber: 0 }}</sd-section-item>\n <sd-section-item label=\"Ghi chú\">{{ item.note | sdEmpty }}</sd-section-item>\n </sd-section>\n </div>\n `,\n})\nexport class GeneralInformationViewComponent {\n readonly customer = input.required<CustomerDto>();\n protected readonly typeName = computed(() => customerTypeName(this.customer().type));\n}\n"],"names":[],"mappings":";;;;;;AAKA;MA8Ba,+BAA+B,CAAA;IACjC,QAAQ,GAAG,KAAK,CAAC,QAAQ;iFAAe;AAC9B,IAAA,QAAQ,GAAG,QAAQ,CAAC,MAAM,gBAAgB,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC,IAAI,CAAC;iFAAC;uGAFzE,+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,QAAA,EAAA,EAAA,iBAAA,EAAA,UAAA,EAAA,UAAA,EAAA,UAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAxBhC;;;;;;;;;;;;;;;;;;;;;;GAsBT,EAAA,QAAA,EAAA,IAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAxBS,SAAS,gMAAE,aAAa,EAAA,QAAA,EAAA,iBAAA,EAAA,MAAA,EAAA,CAAA,OAAA,EAAA,YAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAE,WAAW,EAAA,IAAA,EAAA,SAAA,EAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAE,gBAAgB,gDAAE,kBAAkB,EAAA,IAAA,EAAA,gBAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;2FA0B1E,+BAA+B,EAAA,UAAA,EAAA,CAAA;kBA7B3C,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,0BAA0B;AACpC,oBAAA,UAAU,EAAE,IAAI;oBAChB,OAAO,EAAE,CAAC,SAAS,EAAE,aAAa,EAAE,WAAW,EAAE,gBAAgB,EAAE,kBAAkB,CAAC;oBACtF,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAC/C,oBAAA,QAAQ,EAAE;;;;;;;;;;;;;;;;;;;;;;AAsBT,EAAA,CAAA;AACF,iBAAA;;;"}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { inject, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
+
import { RouterLink } from '@angular/router';
|
|
4
|
+
import { SdButton } from '@sdcorejs/angular/components/button';
|
|
5
|
+
import { SdSection } from '@sdcorejs/angular/components/section';
|
|
6
|
+
import { SdPageComponent } from '@sdcorejs/angular/modules/layout';
|
|
7
|
+
import { P as PatternSourceViewer, a as PATTERN_CATALOG } from './sdcorejs-angular-modules-pattern-pattern-source-viewer-BqHwKfoc.mjs';
|
|
8
|
+
|
|
9
|
+
/** `/pattern`: the sample routes by entity, the layout each one uses and its docs. */
|
|
10
|
+
class PatternIndexComponent {
|
|
11
|
+
viewer = inject(PatternSourceViewer);
|
|
12
|
+
groups = PATTERN_CATALOG;
|
|
13
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: PatternIndexComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
14
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", type: PatternIndexComponent, isStandalone: true, selector: "sd-pattern-index", ngImport: i0, template: `
|
|
15
|
+
<sd-page
|
|
16
|
+
title="Pattern"
|
|
17
|
+
description="Màn mẫu theo entity, chạy trên Core thật với mock API. Thanh dưới cùng đổi vai trò, độ trễ và lỗi giả lập."
|
|
18
|
+
width="wide">
|
|
19
|
+
<sd-button headerRight type="outline" prefixIcon="description" title="README" (click)="viewer.openSource('README.md')"></sd-button>
|
|
20
|
+
<div class="sd-pattern-index">
|
|
21
|
+
@for (group of groups; track group.key) {
|
|
22
|
+
<sd-section [title]="group.title" [attr.data-pattern-group]="group.key">
|
|
23
|
+
<div sdHeaderRight class="sd-pattern-index__docs">
|
|
24
|
+
@for (doc of group.docs; track doc) {
|
|
25
|
+
<button type="button" class="sd-pattern-index__doc" (click)="viewer.openSource('docs/' + doc + '.md')">{{ doc }}.md</button>
|
|
26
|
+
}
|
|
27
|
+
</div>
|
|
28
|
+
<p class="sd-pattern-index__summary">{{ group.summary }}</p>
|
|
29
|
+
<table class="sd-pattern-index__routes">
|
|
30
|
+
<thead>
|
|
31
|
+
<tr>
|
|
32
|
+
<th scope="col">Route</th>
|
|
33
|
+
<th scope="col">Layout</th>
|
|
34
|
+
<th scope="col">Thể hiện</th>
|
|
35
|
+
</tr>
|
|
36
|
+
</thead>
|
|
37
|
+
<tbody>
|
|
38
|
+
@for (route of group.routes; track route.path) {
|
|
39
|
+
<tr>
|
|
40
|
+
<td>
|
|
41
|
+
<a [routerLink]="route.link" [queryParams]="route.queryParams">/pattern/{{ route.path }}</a>
|
|
42
|
+
</td>
|
|
43
|
+
<td class="sd-pattern-index__layout">{{ route.layout }}</td>
|
|
44
|
+
<td>{{ route.shows }}</td>
|
|
45
|
+
</tr>
|
|
46
|
+
}
|
|
47
|
+
</tbody>
|
|
48
|
+
</table>
|
|
49
|
+
</sd-section>
|
|
50
|
+
}
|
|
51
|
+
</div>
|
|
52
|
+
</sd-page>
|
|
53
|
+
`, isInline: true, styles: [".sd-pattern-index{display:flex;flex-direction:column;gap:16px;padding:16px 0}.sd-pattern-index__summary{margin:0;padding:12px 16px 0;color:var(--sd-text-secondary)}.sd-pattern-index__docs{display:flex;flex-wrap:wrap;gap:4px}.sd-pattern-index__doc{padding:2px 8px;border:1px solid var(--sd-border);border-radius:4px;background:var(--sd-surface);color:var(--sd-primary);font:12px/18px var(--sd-font-mono, monospace);cursor:pointer}.sd-pattern-index__routes{width:100%;border-collapse:collapse}.sd-pattern-index__routes th,.sd-pattern-index__routes td{padding:8px 16px;border-bottom:1px solid var(--sd-border);text-align:left;vertical-align:top}.sd-pattern-index__routes th{color:var(--sd-text-secondary);font-size:12px;font-weight:500}.sd-pattern-index__routes td:first-child{white-space:nowrap}.sd-pattern-index__layout{font:12px/20px var(--sd-font-mono, monospace)}\n"], dependencies: [{ kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "browserUrl", "routerLink"] }, { kind: "component", type: SdButton, selector: "sd-button", inputs: ["autoId", "type", "color", "size", "fontSet", "title", "width", "tooltip", "prefixIcon", "suffixIcon", "disabled", "openOnHover", "loading", "block", "htmlType", "indicator", "indicatorColor", "indicatorMax", "indicatorLabel"], outputs: ["click"] }, { kind: "component", type: SdSection, selector: "sd-section", inputs: ["title", "subTitle", "icon", "iconColor", "iconShape", "collapsed", "collapsible", "hideHeader"], outputs: ["collapsedChange"] }, { kind: "component", type: SdPageComponent, selector: "sd-page, sd-page-detail, sd-page-form", inputs: ["title", "description", "noHeader", "backLink", "badges", "width", "aside", "toc"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
54
|
+
}
|
|
55
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: PatternIndexComponent, decorators: [{
|
|
56
|
+
type: Component,
|
|
57
|
+
args: [{ selector: 'sd-pattern-index', standalone: true, imports: [RouterLink, SdButton, SdSection, SdPageComponent], template: `
|
|
58
|
+
<sd-page
|
|
59
|
+
title="Pattern"
|
|
60
|
+
description="Màn mẫu theo entity, chạy trên Core thật với mock API. Thanh dưới cùng đổi vai trò, độ trễ và lỗi giả lập."
|
|
61
|
+
width="wide">
|
|
62
|
+
<sd-button headerRight type="outline" prefixIcon="description" title="README" (click)="viewer.openSource('README.md')"></sd-button>
|
|
63
|
+
<div class="sd-pattern-index">
|
|
64
|
+
@for (group of groups; track group.key) {
|
|
65
|
+
<sd-section [title]="group.title" [attr.data-pattern-group]="group.key">
|
|
66
|
+
<div sdHeaderRight class="sd-pattern-index__docs">
|
|
67
|
+
@for (doc of group.docs; track doc) {
|
|
68
|
+
<button type="button" class="sd-pattern-index__doc" (click)="viewer.openSource('docs/' + doc + '.md')">{{ doc }}.md</button>
|
|
69
|
+
}
|
|
70
|
+
</div>
|
|
71
|
+
<p class="sd-pattern-index__summary">{{ group.summary }}</p>
|
|
72
|
+
<table class="sd-pattern-index__routes">
|
|
73
|
+
<thead>
|
|
74
|
+
<tr>
|
|
75
|
+
<th scope="col">Route</th>
|
|
76
|
+
<th scope="col">Layout</th>
|
|
77
|
+
<th scope="col">Thể hiện</th>
|
|
78
|
+
</tr>
|
|
79
|
+
</thead>
|
|
80
|
+
<tbody>
|
|
81
|
+
@for (route of group.routes; track route.path) {
|
|
82
|
+
<tr>
|
|
83
|
+
<td>
|
|
84
|
+
<a [routerLink]="route.link" [queryParams]="route.queryParams">/pattern/{{ route.path }}</a>
|
|
85
|
+
</td>
|
|
86
|
+
<td class="sd-pattern-index__layout">{{ route.layout }}</td>
|
|
87
|
+
<td>{{ route.shows }}</td>
|
|
88
|
+
</tr>
|
|
89
|
+
}
|
|
90
|
+
</tbody>
|
|
91
|
+
</table>
|
|
92
|
+
</sd-section>
|
|
93
|
+
}
|
|
94
|
+
</div>
|
|
95
|
+
</sd-page>
|
|
96
|
+
`, changeDetection: ChangeDetectionStrategy.OnPush, styles: [".sd-pattern-index{display:flex;flex-direction:column;gap:16px;padding:16px 0}.sd-pattern-index__summary{margin:0;padding:12px 16px 0;color:var(--sd-text-secondary)}.sd-pattern-index__docs{display:flex;flex-wrap:wrap;gap:4px}.sd-pattern-index__doc{padding:2px 8px;border:1px solid var(--sd-border);border-radius:4px;background:var(--sd-surface);color:var(--sd-primary);font:12px/18px var(--sd-font-mono, monospace);cursor:pointer}.sd-pattern-index__routes{width:100%;border-collapse:collapse}.sd-pattern-index__routes th,.sd-pattern-index__routes td{padding:8px 16px;border-bottom:1px solid var(--sd-border);text-align:left;vertical-align:top}.sd-pattern-index__routes th{color:var(--sd-text-secondary);font-size:12px;font-weight:500}.sd-pattern-index__routes td:first-child{white-space:nowrap}.sd-pattern-index__layout{font:12px/20px var(--sd-font-mono, monospace)}\n"] }]
|
|
97
|
+
}] });
|
|
98
|
+
|
|
99
|
+
export { PatternIndexComponent };
|
|
100
|
+
//# sourceMappingURL=sdcorejs-angular-modules-pattern-index.component-CosbQK0W.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sdcorejs-angular-modules-pattern-index.component-CosbQK0W.mjs","sources":["../../../projects/sdcorejs-angular/modules/pattern/core/pattern-shell/index/index.component.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, inject } from '@angular/core';\nimport { RouterLink } from '@angular/router';\nimport { SdButton } from '@sdcorejs/angular/components/button';\nimport { SdSection } from '@sdcorejs/angular/components/section';\nimport { SdPageComponent } from '@sdcorejs/angular/modules/layout';\nimport { PATTERN_CATALOG } from '../catalog/pattern-catalog';\nimport { PatternSourceViewer } from '../shell/pattern-source-viewer';\n\n/** `/pattern`: the sample routes by entity, the layout each one uses and its docs. */\n@Component({\n selector: 'sd-pattern-index',\n standalone: true,\n imports: [RouterLink, SdButton, SdSection, SdPageComponent],\n template: `\n <sd-page\n title=\"Pattern\"\n description=\"Màn mẫu theo entity, chạy trên Core thật với mock API. Thanh dưới cùng đổi vai trò, độ trễ và lỗi giả lập.\"\n width=\"wide\">\n <sd-button headerRight type=\"outline\" prefixIcon=\"description\" title=\"README\" (click)=\"viewer.openSource('README.md')\"></sd-button>\n <div class=\"sd-pattern-index\">\n @for (group of groups; track group.key) {\n <sd-section [title]=\"group.title\" [attr.data-pattern-group]=\"group.key\">\n <div sdHeaderRight class=\"sd-pattern-index__docs\">\n @for (doc of group.docs; track doc) {\n <button type=\"button\" class=\"sd-pattern-index__doc\" (click)=\"viewer.openSource('docs/' + doc + '.md')\">{{ doc }}.md</button>\n }\n </div>\n <p class=\"sd-pattern-index__summary\">{{ group.summary }}</p>\n <table class=\"sd-pattern-index__routes\">\n <thead>\n <tr>\n <th scope=\"col\">Route</th>\n <th scope=\"col\">Layout</th>\n <th scope=\"col\">Thể hiện</th>\n </tr>\n </thead>\n <tbody>\n @for (route of group.routes; track route.path) {\n <tr>\n <td>\n <a [routerLink]=\"route.link\" [queryParams]=\"route.queryParams\">/pattern/{{ route.path }}</a>\n </td>\n <td class=\"sd-pattern-index__layout\">{{ route.layout }}</td>\n <td>{{ route.shows }}</td>\n </tr>\n }\n </tbody>\n </table>\n </sd-section>\n }\n </div>\n </sd-page>\n `,\n styles: `\n .sd-pattern-index {\n display: flex;\n flex-direction: column;\n gap: 16px;\n padding: 16px 0;\n }\n .sd-pattern-index__summary {\n margin: 0;\n padding: 12px 16px 0;\n color: var(--sd-text-secondary);\n }\n .sd-pattern-index__docs {\n display: flex;\n flex-wrap: wrap;\n gap: 4px;\n }\n .sd-pattern-index__doc {\n padding: 2px 8px;\n border: 1px solid var(--sd-border);\n border-radius: 4px;\n background: var(--sd-surface);\n color: var(--sd-primary);\n font: 12px/18px var(--sd-font-mono, monospace);\n cursor: pointer;\n }\n .sd-pattern-index__routes {\n width: 100%;\n border-collapse: collapse;\n }\n .sd-pattern-index__routes th,\n .sd-pattern-index__routes td {\n padding: 8px 16px;\n border-bottom: 1px solid var(--sd-border);\n text-align: left;\n vertical-align: top;\n }\n .sd-pattern-index__routes th {\n color: var(--sd-text-secondary);\n font-size: 12px;\n font-weight: 500;\n }\n .sd-pattern-index__routes td:first-child {\n white-space: nowrap;\n }\n .sd-pattern-index__layout {\n font: 12px/20px var(--sd-font-mono, monospace);\n }\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class PatternIndexComponent {\n readonly viewer = inject(PatternSourceViewer);\n readonly groups = PATTERN_CATALOG;\n}\n"],"names":[],"mappings":";;;;;;;;AAQA;MAgGa,qBAAqB,CAAA;AACvB,IAAA,MAAM,GAAG,MAAM,CAAC,mBAAmB,CAAC;IACpC,MAAM,GAAG,eAAe;uGAFtB,qBAAqB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAArB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,qBAAqB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,kBAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EA3FtB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuCT,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,q2BAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAxCS,UAAU,EAAA,QAAA,EAAA,cAAA,EAAA,MAAA,EAAA,CAAA,QAAA,EAAA,aAAA,EAAA,UAAA,EAAA,qBAAA,EAAA,OAAA,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