@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
|
@@ -38,6 +38,7 @@ declare const EN_MESSAGES: {
|
|
|
38
38
|
readonly 'core.component.table.mobile.reorder': "Drag to reorder row";
|
|
39
39
|
readonly 'core.component.table.mobile.details': "Details";
|
|
40
40
|
readonly 'core.component.table.mobile.summary': "Summary";
|
|
41
|
+
readonly 'core.common.back': "Back";
|
|
41
42
|
readonly 'core.common.cancel': "Cancel";
|
|
42
43
|
readonly 'core.common.close': "Close";
|
|
43
44
|
readonly 'core.common.reload': "Reload page";
|
|
@@ -142,6 +143,15 @@ declare const EN_MESSAGES: {
|
|
|
142
143
|
readonly 'core.form.chip.required': "Please enter information";
|
|
143
144
|
readonly 'core.form.chip.minlength': "Please enter at least {min} values";
|
|
144
145
|
readonly 'core.form.chip.maxlength': "Please enter at most {max} values";
|
|
146
|
+
readonly 'core.form.chip.remove': "Remove {value}";
|
|
147
|
+
readonly 'core.form.chip.placeholder': "Type, then press Enter";
|
|
148
|
+
readonly 'core.form.chip.locked': "Cannot be removed";
|
|
149
|
+
readonly 'core.form.chip.duplicate': "“{value}” is already added";
|
|
150
|
+
readonly 'core.form.chip.full': "All {max} values are added";
|
|
151
|
+
readonly 'core.form.chip.added': "Added {count}";
|
|
152
|
+
readonly 'core.form.chip.skipped': "skipped {count} duplicates";
|
|
153
|
+
readonly 'core.form.chip.more': "Show {count} more";
|
|
154
|
+
readonly 'core.form.chip.clear': "Remove all";
|
|
145
155
|
readonly 'core.form.chip-calendar.required': "Please enter information";
|
|
146
156
|
readonly 'core.form.chip-calendar.minlength': "Please enter at least {min} values";
|
|
147
157
|
readonly 'core.form.chip-calendar.maxlength': "Please enter at most {max} values";
|
|
@@ -469,6 +479,10 @@ declare const EN_MESSAGES: {
|
|
|
469
479
|
readonly 'core.component.table.skip': "Skip";
|
|
470
480
|
readonly 'core.component.table.apply': "Apply";
|
|
471
481
|
readonly 'core.component.table.filter': "Filter";
|
|
482
|
+
readonly 'core.component.table.query-bar.filters': "Filters";
|
|
483
|
+
readonly 'core.component.table.query-bar.columns': "Columns";
|
|
484
|
+
readonly 'core.component.table.filter-by': "Filter by {title}";
|
|
485
|
+
readonly 'core.component.table.filtering-by': "Filtering by {title}";
|
|
472
486
|
readonly 'core.component.table.clear-selection': "Clear selection";
|
|
473
487
|
readonly 'core.component.table.customize': "Customize";
|
|
474
488
|
readonly 'core.component.table.search': "Search";
|
|
@@ -492,14 +506,33 @@ declare const EN_MESSAGES: {
|
|
|
492
506
|
readonly 'core.component.table.error-occurred': "An error occurred";
|
|
493
507
|
readonly 'core.component.table.not-an-array': "Data is not an array";
|
|
494
508
|
readonly 'core.component.table.config.confirm-reset': "Confirm reset all settings to defaults";
|
|
495
|
-
readonly 'core.component.table.config.drag-hint': "Drag
|
|
509
|
+
readonly 'core.component.table.config.drag-hint': "Drag ⠿, or focus ⠿ and use ↑ ↓ to reorder.";
|
|
496
510
|
readonly 'core.component.table.config.drag-handle': "Drag to reorder column";
|
|
511
|
+
readonly 'core.component.table.config.reset': "Restore defaults";
|
|
512
|
+
readonly 'core.component.table.config.find-column': "Find column";
|
|
513
|
+
readonly 'core.component.table.config.shown-count': "{shown}/{total} columns shown";
|
|
514
|
+
readonly 'core.component.table.config.show-all': "Show all";
|
|
515
|
+
readonly 'core.component.table.config.drag-disabled-search': "Clear the search to reorder.";
|
|
516
|
+
readonly 'core.component.table.config.width-auto': "Auto";
|
|
517
|
+
readonly 'core.component.table.config.hidden': "Hidden";
|
|
518
|
+
readonly 'core.component.table.config.origin': "Original: {title}";
|
|
519
|
+
readonly 'core.component.table.config.restore': "Restore";
|
|
520
|
+
readonly 'core.component.table.config.fixed-label': "Keep visible when scrolling horizontally";
|
|
521
|
+
readonly 'core.component.table.config.truncate-label': "Shorten long content";
|
|
522
|
+
readonly 'core.component.table.config.truncate-hint': "Cut with \"…\"; hover to see it all.";
|
|
523
|
+
readonly 'core.component.table.config.reorder-picked': "Picked up {title}, position {index} of {total}.";
|
|
524
|
+
readonly 'core.component.table.config.reorder-moved': "{title}: position {index} of {total}.";
|
|
525
|
+
readonly 'core.component.table.config.reorder-dropped': "Moved {title} to position {index}.";
|
|
526
|
+
readonly 'core.component.table.config.reorder-cancelled': "Reorder cancelled.";
|
|
527
|
+
readonly 'core.component.table.config.customized': "Using custom settings";
|
|
497
528
|
readonly 'core.component.table.popup-export.select-columns': "Please select columns to export";
|
|
498
529
|
readonly 'core.component.table.selector-action.selected': "Selected {count}";
|
|
499
530
|
readonly 'core.component.table.selector-action.more': "More";
|
|
500
531
|
readonly 'core.component.table.selector-action.default-msg': "items selected";
|
|
501
532
|
readonly 'core.component.tab-router.too-many-tabs': "You have opened too many tabs.";
|
|
502
533
|
readonly 'core.component.tab-router.close-tab': "Close tab";
|
|
534
|
+
readonly 'core.component.tab-router.close-others': "Close other tabs";
|
|
535
|
+
readonly 'core.component.tab-router.unsaved': "Unsaved changes";
|
|
503
536
|
readonly 'core.component.tab-router.open-tabs': "{count} open tabs";
|
|
504
537
|
readonly 'core.component.tab-router.tab-list': "Tab list";
|
|
505
538
|
readonly 'core.component.upload-file.upload': "Upload file";
|
|
@@ -548,6 +581,12 @@ declare const EN_MESSAGES: {
|
|
|
548
581
|
readonly 'core.module.layout.forbidden.title': "Access denied";
|
|
549
582
|
readonly 'core.module.layout.forbidden.message': "You don't have permission to access this page. Please contact your administrator or go back to the home page";
|
|
550
583
|
readonly 'core.module.layout.forbidden.back-home': "Back to home";
|
|
584
|
+
readonly 'core.module.layout.page.actions': "Page actions";
|
|
585
|
+
readonly 'core.module.layout.page.toc': "Contents";
|
|
586
|
+
readonly 'core.module.layout.page.leave.title': "Leave this page without saving?";
|
|
587
|
+
readonly 'core.module.layout.page.leave.message': "Unsaved changes will be lost.";
|
|
588
|
+
readonly 'core.module.layout.page.leave.stay': "Stay";
|
|
589
|
+
readonly 'core.module.layout.page.leave.leave': "Leave";
|
|
551
590
|
readonly 'core.module.layout.not-found.title': "404 - Page not found";
|
|
552
591
|
readonly 'core.module.layout.not-found.message': "The page you're looking for doesn't exist or has been removed. Please check the URL or go back to the home page to continue.";
|
|
553
592
|
readonly 'core.module.layout.not-found.back': "Go back";
|
|
@@ -587,6 +626,12 @@ declare const EN_MESSAGES: {
|
|
|
587
626
|
readonly 'core.component.query-bar.saved-filters.empty': "No saved filters yet.";
|
|
588
627
|
readonly 'core.component.query-bar.saved-filters.save': "Save current filter";
|
|
589
628
|
readonly 'core.component.query-bar.saved-filters.name-label': "Filter name";
|
|
629
|
+
readonly 'core.component.query-bar.all': "All";
|
|
630
|
+
readonly 'core.component.query-bar.required': "Select {label} to view data";
|
|
631
|
+
readonly 'core.component.query-bar.find-field': "Find field";
|
|
632
|
+
readonly 'core.component.query-bar.range.from': "From {value}";
|
|
633
|
+
readonly 'core.component.query-bar.range.to': "To {value}";
|
|
634
|
+
readonly 'core.component.query-bar.clear': "Clear all";
|
|
590
635
|
readonly 'core.component.query-builder.date-mode.absolute': "Specific date";
|
|
591
636
|
readonly 'core.component.query-builder.date-mode.now': "Today";
|
|
592
637
|
readonly 'core.component.query-builder.date-mode.relative': "Relative";
|
|
@@ -876,11 +921,35 @@ declare const EN_MESSAGES: {
|
|
|
876
921
|
readonly 'core.form.select.search': "Search";
|
|
877
922
|
readonly 'core.form.search-field.clear': "Clear search";
|
|
878
923
|
readonly 'core.component.table.loading': "Loading table data";
|
|
924
|
+
readonly 'core.component.table.loaded': "Loaded {count} rows";
|
|
925
|
+
readonly 'core.component.table.loaded-one': "Loaded 1 row";
|
|
926
|
+
readonly 'core.component.table.tree-toggle': "Toggle child rows";
|
|
879
927
|
readonly 'core.component.upload-file.loading': "Uploading file";
|
|
880
928
|
readonly 'core.component.import-excel.loading': "Loading data";
|
|
881
929
|
readonly 'core.component.upload-file.remove': "Remove file";
|
|
882
930
|
readonly 'core.component.upload-file.zoom': "Zoom image";
|
|
883
931
|
readonly 'core.component.upload-file.view-all': "View all images";
|
|
932
|
+
readonly 'core.component.upload-file.viewer.download': "Download";
|
|
933
|
+
readonly 'core.component.upload-file.viewer.open-new-tab': "Open in new tab";
|
|
934
|
+
readonly 'core.component.upload-file.viewer.zoom-in': "Zoom in";
|
|
935
|
+
readonly 'core.component.upload-file.viewer.zoom-out': "Zoom out";
|
|
936
|
+
readonly 'core.component.upload-file.viewer.fit': "Fit to window";
|
|
937
|
+
readonly 'core.component.upload-file.viewer.rotate': "Rotate";
|
|
938
|
+
readonly 'core.component.upload-file.viewer.prev': "Previous file";
|
|
939
|
+
readonly 'core.component.upload-file.viewer.next': "Next file";
|
|
940
|
+
readonly 'core.component.upload-file.viewer.load-error': "Could not load the file";
|
|
941
|
+
readonly 'core.component.upload-file.viewer.load-error-hint': "Try again or download it to open in another app.";
|
|
942
|
+
readonly 'core.component.upload-file.viewer.no-preview': "No preview available";
|
|
943
|
+
readonly 'core.component.upload-file.viewer.loading': "Loading…";
|
|
944
|
+
readonly 'core.component.upload-file.viewer.position': "File {index} of {total}";
|
|
945
|
+
readonly 'core.component.upload-file.retry': "Retry";
|
|
946
|
+
readonly 'core.component.upload-file.add-image': "Add image";
|
|
947
|
+
readonly 'core.component.upload-file.upload-tile': "Upload";
|
|
948
|
+
readonly 'core.component.upload-file.drop-hint': "Drag files here or";
|
|
949
|
+
readonly 'core.component.upload-file.choose-file': "choose a file";
|
|
950
|
+
readonly 'core.component.upload-file.drop-to-upload': "Drop to upload";
|
|
951
|
+
readonly 'core.component.upload-file.remove-named': "Remove {name}";
|
|
952
|
+
readonly 'core.component.upload-file.no-files': "No files";
|
|
884
953
|
readonly 'core.component.form-builder.canvas': "Form design canvas";
|
|
885
954
|
readonly 'core.component.form-builder.toolbar': "Form builder toolbar";
|
|
886
955
|
readonly 'core.component.form-builder.mode': "Mode";
|
|
@@ -2,12 +2,15 @@ import * as _angular_core from '@angular/core';
|
|
|
2
2
|
import { Signal, InjectionToken, PipeTransform } from '@angular/core';
|
|
3
3
|
import * as i1$1 from '@angular/common';
|
|
4
4
|
import * as i1 from '@angular/router';
|
|
5
|
-
import { Params } from '@angular/router';
|
|
5
|
+
import { Params, CanDeactivateFn } from '@angular/router';
|
|
6
6
|
import { SdStorage } from '@sdcorejs/angular/services';
|
|
7
7
|
import { MaybeAsync } from '@sdcorejs/utils/models';
|
|
8
8
|
import { Observable } from 'rxjs';
|
|
9
9
|
import { SdViewport } from '@sdcorejs/angular/services/viewport';
|
|
10
10
|
import * as _sdcorejs_angular_modules_layout from '@sdcorejs/angular/modules/layout';
|
|
11
|
+
import { SdBadgeData } from '@sdcorejs/angular/components/badge';
|
|
12
|
+
import { SdSectionRegistry, SdSection } from '@sdcorejs/angular/components/section';
|
|
13
|
+
import { SdTableLayout } from '@sdcorejs/angular/components/table';
|
|
11
14
|
import { FlexibleConnectedPositionStrategyOrigin, ConnectedPosition } from '@angular/cdk/overlay';
|
|
12
15
|
|
|
13
16
|
declare class HomeRoutingModule {
|
|
@@ -535,14 +538,94 @@ declare class SdLayoutContextService {
|
|
|
535
538
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<SdLayoutContextService>;
|
|
536
539
|
}
|
|
537
540
|
|
|
538
|
-
|
|
541
|
+
/** Bề rộng cột nội dung: `full` không giới hạn · `wide` 1200px · `medium` 960px · `narrow` 720px. */
|
|
542
|
+
type SdPageWidth = 'full' | 'wide' | 'medium' | 'narrow';
|
|
543
|
+
/** Đích của nút ←: URL hoặc router commands như `routerLink`. */
|
|
544
|
+
type SdPageBackLink = string | readonly unknown[];
|
|
545
|
+
/** Vị trí cột phụ `[sdAside]` khi đủ chỗ đặt cạnh nội dung. */
|
|
546
|
+
type SdPageAside = 'end' | 'start';
|
|
547
|
+
interface SdPageTocItem {
|
|
548
|
+
readonly title: string;
|
|
549
|
+
readonly el: HTMLElement;
|
|
550
|
+
}
|
|
551
|
+
declare class SdPageComponent implements SdSectionRegistry {
|
|
552
|
+
#private;
|
|
539
553
|
private el;
|
|
540
554
|
title: _angular_core.InputSignal<string>;
|
|
541
555
|
description: _angular_core.InputSignal<string>;
|
|
542
556
|
noHeader: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
557
|
+
/** Hiện nút ← trước title; title, description và badges vẫn lấy từ input. */
|
|
558
|
+
backLink: _angular_core.InputSignal<SdPageBackLink | null | undefined>;
|
|
559
|
+
/** Tối đa 2 badge cạnh title: trạng thái trước, thuộc tính sau. Badge không có `title` bị bỏ qua. */
|
|
560
|
+
badges: _angular_core.InputSignal<readonly SdBadgeData[] | null | undefined>;
|
|
561
|
+
/** `null` / không truyền thì lấy mặc định theo selector: `sd-page` full · `sd-page-detail` wide · `sd-page-form` medium. */
|
|
562
|
+
width: _angular_core.InputSignal<SdPageWidth | null | undefined>;
|
|
563
|
+
/** Cột phụ ở cuối (mặc định) hay ở đầu. Viewport < 1200px thì cột phụ luôn xuống dưới nội dung. */
|
|
564
|
+
aside: _angular_core.InputSignal<SdPageAside | null | undefined>;
|
|
565
|
+
/** Mục lục ở cột phụ, liệt kê các `sd-section` có `title` ở cấp ngoài cùng của thân trang. */
|
|
566
|
+
toc: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
567
|
+
readonly resolvedWidth: _angular_core.Signal<SdPageWidth>;
|
|
568
|
+
protected readonly visibleBadges: _angular_core.Signal<SdBadgeData[]>;
|
|
569
|
+
/** Header có nút ← hoặc badge: title một dòng, cắt bằng dấu "…". Màn cũ giữ title xuống dòng như trước. */
|
|
570
|
+
protected readonly hasLead: _angular_core.Signal<boolean>;
|
|
571
|
+
protected readonly tocItems: _angular_core.WritableSignal<readonly SdPageTocItem[]>;
|
|
572
|
+
protected readonly activeTocIndex: _angular_core.WritableSignal<number>;
|
|
573
|
+
private readonly titleBlock;
|
|
574
|
+
private readonly wrapper;
|
|
543
575
|
constructor();
|
|
576
|
+
/** Cuộn tới section của mục lục thứ `index`. */
|
|
577
|
+
protected scrollToSection(index: number): void;
|
|
578
|
+
/** Thêm một section ngoài cùng của thân trang vào mục lục (gọi bởi `sd-section`). */
|
|
579
|
+
register(section: SdSection, el: HTMLElement): () => void;
|
|
544
580
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SdPageComponent, never>;
|
|
545
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SdPageComponent, "sd-page", never, { "title": { "alias": "title"; "required": false; "isSignal": true; }; "description": { "alias": "description"; "required": false; "isSignal": true; }; "noHeader": { "alias": "noHeader"; "required": false; "isSignal": true; }; }, {}, never, ["[headerLeft]", "[headerRight]", "*"], true, never>;
|
|
581
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SdPageComponent, "sd-page, sd-page-detail, sd-page-form", never, { "title": { "alias": "title"; "required": false; "isSignal": true; }; "description": { "alias": "description"; "required": false; "isSignal": true; }; "noHeader": { "alias": "noHeader"; "required": false; "isSignal": true; }; "backLink": { "alias": "backLink"; "required": false; "isSignal": true; }; "badges": { "alias": "badges"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; "aside": { "alias": "aside"; "required": false; "isSignal": true; }; "toc": { "alias": "toc"; "required": false; "isSignal": true; }; }, {}, never, ["[headerLeft],[sdHeaderLeft]", "[headerRight],[sdHeaderRight]", "[sdSubheader]", "*", "[sdAside]", "[sdFooterLeft]", "[sdFooterRight]"], true, never>;
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
/**
|
|
585
|
+
* Guard rời trang của `sd-page-form`: còn thay đổi chưa lưu (watcher của `SdUnsavedChangesService`, thường đăng ký
|
|
586
|
+
* bằng `registerSdUnsavedChangesForm(..., { dirty: 'value' })`) thì hỏi bằng dialog xác nhận của Core.
|
|
587
|
+
*
|
|
588
|
+
* why: adapter của service là của cả app (mặc định `window.confirm`); guard này truyền adapter riêng cho lần hỏi
|
|
589
|
+
* này nên app đang dùng `sdUnsavedChangesGuard` không đổi hành vi.
|
|
590
|
+
*/
|
|
591
|
+
declare const sdPageFormLeaveGuard: CanDeactivateFn<unknown>;
|
|
592
|
+
|
|
593
|
+
/**
|
|
594
|
+
* Cách mở chi tiết (route con của danh sách): thay danh sách bằng một trang, drawer đè lên danh sách, hoặc `'none'`:
|
|
595
|
+
* `sd-page-list` không đặt router-outlet, route con hiện trong outlet do màn tự đặt trong thân (chia đôi).
|
|
596
|
+
*/
|
|
597
|
+
type SdPageListDetail = 'page' | 'drawer' | 'none';
|
|
598
|
+
/** Trạng thái `sd-page-list` mà nội dung bên trong (score card, route con…) đọc qua `SD_PAGE_LIST`. */
|
|
599
|
+
interface SdPageListContext {
|
|
600
|
+
/** Màn thấp (viewport cao < 720px) và `autoCompact` bật: vùng phụ nên chuyển sang dạng gọn. */
|
|
601
|
+
readonly compact: Signal<boolean>;
|
|
602
|
+
/** Đang có route con (chi tiết, tạo, cập nhật). */
|
|
603
|
+
readonly childActive: Signal<boolean>;
|
|
604
|
+
readonly detail: Signal<SdPageListDetail>;
|
|
605
|
+
}
|
|
606
|
+
declare const SD_PAGE_LIST: InjectionToken<SdPageListContext>;
|
|
607
|
+
declare class SdPageList implements SdPageListContext, SdTableLayout {
|
|
608
|
+
#private;
|
|
609
|
+
title: _angular_core.InputSignal<string>;
|
|
610
|
+
description: _angular_core.InputSignal<string>;
|
|
611
|
+
backLink: _angular_core.InputSignal<SdPageBackLink | null | undefined>;
|
|
612
|
+
badges: _angular_core.InputSignal<readonly SdBadgeData[] | null | undefined>;
|
|
613
|
+
width: _angular_core.InputSignal<SdPageWidth | null | undefined>;
|
|
614
|
+
/** Chi tiết là route con: `page` thay danh sách bằng trang con, `drawer` giữ danh sách và mở drawer. */
|
|
615
|
+
detail: _angular_core.InputSignal<SdPageListDetail>;
|
|
616
|
+
/** Tự thu gọn vùng phụ khi viewport thấp. Tắt thì vùng phụ luôn đầy đủ và thân trang cuộn khi thiếu chỗ. */
|
|
617
|
+
autoCompact: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
618
|
+
readonly compact: Signal<boolean>;
|
|
619
|
+
readonly childActive: _angular_core.WritableSignal<boolean>;
|
|
620
|
+
/** Bảng chính: `[sdPageListMain]`, hoặc `sd-table` con trực tiếp cuối cùng của thân trang. */
|
|
621
|
+
readonly fillTarget: _angular_core.WritableSignal<Element | null>;
|
|
622
|
+
readonly externalFilterCollapsed: Signal<boolean>;
|
|
623
|
+
protected readonly hidesList: Signal<boolean>;
|
|
624
|
+
constructor();
|
|
625
|
+
protected onActivate(): void;
|
|
626
|
+
protected onDeactivate(): void;
|
|
627
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SdPageList, never>;
|
|
628
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SdPageList, "sd-page-list", never, { "title": { "alias": "title"; "required": false; "isSignal": true; }; "description": { "alias": "description"; "required": false; "isSignal": true; }; "backLink": { "alias": "backLink"; "required": false; "isSignal": true; }; "badges": { "alias": "badges"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; "detail": { "alias": "detail"; "required": false; "isSignal": true; }; "autoCompact": { "alias": "autoCompact"; "required": false; "isSignal": true; }; }, {}, never, ["[headerRight],[sdHeaderRight]", "[sdSubheader]", "[sdFooterLeft]", "[sdFooterRight]", "*"], true, never>;
|
|
546
629
|
}
|
|
547
630
|
|
|
548
631
|
declare class SdLayoutComponent {
|
|
@@ -1006,7 +1089,7 @@ declare class SdLayoutContextSwitcher {
|
|
|
1006
1089
|
/** Context configuration of the sidebar; nothing renders without items. */
|
|
1007
1090
|
configuration: _angular_core.InputSignal<SdLayoutContextConfiguration | null | undefined>;
|
|
1008
1091
|
/** Header trigger, collapsed-rail avatar, or mobile row that opens a bottom sheet. */
|
|
1009
|
-
appearance: _angular_core.InputSignal<"
|
|
1092
|
+
appearance: _angular_core.InputSignal<"header" | "sheet" | "rail">;
|
|
1010
1093
|
/** Side the desktop popover opens on; defaults to `below` for the header and `right` for the rail. The sheet ignores it. */
|
|
1011
1094
|
placement: _angular_core.InputSignal<"below" | "right" | undefined>;
|
|
1012
1095
|
/**
|
|
@@ -1115,5 +1198,5 @@ declare class SdLayoutModule {
|
|
|
1115
1198
|
static ɵinj: _angular_core.ɵɵInjectorDeclaration<SdLayoutModule>;
|
|
1116
1199
|
}
|
|
1117
1200
|
|
|
1118
|
-
export { DEFAULT_LAYOUT_MOBILE_BREAKPOINT, ForbiddenModule, HighlightSearchPipe, HomeModule, MenuFocusPipe, MenuPipe, NotFoundModule, SD_LAYOUT_CONFIGURATION, SD_LAYOUT_CONTEXT_MARKER_KEY, SD_LAYOUT_CONTEXT_RUNTIME, SD_LAYOUT_DEMO_FALLBACK, SD_LAYOUT_STORAGE_NAMESPACE, SD_LAYOUT_VIEWPORT, SdLayoutComponent, SdLayoutContextService, SdLayoutContextSwitcher, SdLayoutMenuTreeComponent, SdLayoutModule, SdLayoutNavigationStateService, SdLayoutResponsiveService, SdLayoutService, SdLayoutStorageService, SdLayoutUserMenuComponent, SdPageComponent, SdSidebarMobileOverlay, SdSidebarMobileV1, SdSidebarMobileV2, SdSidebarMobileV3, SdSidebarMobileV4, SdSidebarV2, SdSidebarV3, SdSidebarV4, collectMatchedMenuPaths, containsMenuPath, createSdLayoutContextBrowserRuntime, flattenMenuLeaves, getMenuStableKey, groupMenusBySection, isMenuPathMatch, normalizeLayoutMobileBreakpoint, normalizeMenuPath, normalizeSidebarConfiguration, resolveActiveMenuPath, resolveMenuKeys, resolveMenuTrailing, resolveSidebarV2Interaction, resolveSidebarV3Recent, resolveTabName, searchAvailableMenuLeaves, searchMenuLeaves, selectPrimaryMenuGroups };
|
|
1119
|
-
export type { ISdLayoutConfiguration, ISdSidebarConfiguration, Menus, ResolvedSidebarRecentConfiguration, SdLayoutAccountAction, SdLayoutChildrenMenu, SdLayoutContext, SdLayoutContextConfiguration, SdLayoutContextRuntime, SdLayoutMenu, SdLayoutMenuBadge, SdLayoutMenuSectionGroup, SdLayoutMenuStatus, SdLayoutMenuTrailing, SdLayoutNotificationConfiguration, SdLayoutRootMenu, SdLayoutStorageNamespace, SdLayoutUserInfo, SdLayoutUserRole, SdLayoutVersionState, SdLayoutViewport, SidebarConfigurationBase, SidebarConfigurationV1, SidebarConfigurationV2, SidebarConfigurationV3, SidebarConfigurationV4 };
|
|
1201
|
+
export { DEFAULT_LAYOUT_MOBILE_BREAKPOINT, ForbiddenModule, HighlightSearchPipe, HomeModule, MenuFocusPipe, MenuPipe, NotFoundModule, SD_LAYOUT_CONFIGURATION, SD_LAYOUT_CONTEXT_MARKER_KEY, SD_LAYOUT_CONTEXT_RUNTIME, SD_LAYOUT_DEMO_FALLBACK, SD_LAYOUT_STORAGE_NAMESPACE, SD_LAYOUT_VIEWPORT, SD_PAGE_LIST, SdLayoutComponent, SdLayoutContextService, SdLayoutContextSwitcher, SdLayoutMenuTreeComponent, SdLayoutModule, SdLayoutNavigationStateService, SdLayoutResponsiveService, SdLayoutService, SdLayoutStorageService, SdLayoutUserMenuComponent, SdPageComponent, SdPageList, SdSidebarMobileOverlay, SdSidebarMobileV1, SdSidebarMobileV2, SdSidebarMobileV3, SdSidebarMobileV4, SdSidebarV2, SdSidebarV3, SdSidebarV4, collectMatchedMenuPaths, containsMenuPath, createSdLayoutContextBrowserRuntime, flattenMenuLeaves, getMenuStableKey, groupMenusBySection, isMenuPathMatch, normalizeLayoutMobileBreakpoint, normalizeMenuPath, normalizeSidebarConfiguration, resolveActiveMenuPath, resolveMenuKeys, resolveMenuTrailing, resolveSidebarV2Interaction, resolveSidebarV3Recent, resolveTabName, sdPageFormLeaveGuard, searchAvailableMenuLeaves, searchMenuLeaves, selectPrimaryMenuGroups };
|
|
1202
|
+
export type { ISdLayoutConfiguration, ISdSidebarConfiguration, Menus, ResolvedSidebarRecentConfiguration, SdLayoutAccountAction, SdLayoutChildrenMenu, SdLayoutContext, SdLayoutContextConfiguration, SdLayoutContextRuntime, SdLayoutMenu, SdLayoutMenuBadge, SdLayoutMenuSectionGroup, SdLayoutMenuStatus, SdLayoutMenuTrailing, SdLayoutNotificationConfiguration, SdLayoutRootMenu, SdLayoutStorageNamespace, SdLayoutUserInfo, SdLayoutUserRole, SdLayoutVersionState, SdLayoutViewport, SdPageAside, SdPageBackLink, SdPageListContext, SdPageListDetail, SdPageWidth, SidebarConfigurationBase, SidebarConfigurationV1, SidebarConfigurationV2, SidebarConfigurationV3, SidebarConfigurationV4 };
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { Routes } from '@angular/router';
|
|
2
|
+
import { EnvironmentProviders } from '@angular/core';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Routes of `/pattern`. Mount them with `provideSdPatterns()` in the providers of the same route:
|
|
6
|
+
* the guard below is the route-level `SdPermissionGuard` of the sample roles, not the host's.
|
|
7
|
+
*/
|
|
8
|
+
declare const SD_PATTERN_ROUTES: Routes;
|
|
9
|
+
|
|
10
|
+
/** What the host configures when it mounts the pattern routes with `provideSdPatterns()`. */
|
|
11
|
+
interface SdPatternConfiguration {
|
|
12
|
+
/**
|
|
13
|
+
* Answer `apiBaseUrl` requests from the built-in mock API (seeded data, latency, simulated errors).
|
|
14
|
+
* `false`: the feature services call a real API at `apiBaseUrl`. Default `true`.
|
|
15
|
+
*/
|
|
16
|
+
readonly mockApi?: boolean;
|
|
17
|
+
/** Base URL of the pattern API, root-relative or absolute HTTP(S), no query or hash. Default `'/pattern-api'`. */
|
|
18
|
+
readonly apiBaseUrl?: string;
|
|
19
|
+
/** Latency of every mock response in milliseconds; the toolbar can change it. Default `400`. */
|
|
20
|
+
readonly latencyMs?: number;
|
|
21
|
+
/** Where the mock API keeps created, updated and deleted records. Default `'session'` (sessionStorage). */
|
|
22
|
+
readonly storage?: 'session' | 'none';
|
|
23
|
+
/**
|
|
24
|
+
* Host URL to open when a role has no permission for a pattern route (Core `onForbiden`).
|
|
25
|
+
* Unset: the navigation is only blocked. Errors while loading a record (404, timeout) reach the host's
|
|
26
|
+
* navigation error handler instead, like any other route.
|
|
27
|
+
*/
|
|
28
|
+
readonly forbiddenUrl?: string;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Registers what the pattern routes need, in the environment injector of the route that mounts them:
|
|
33
|
+
*
|
|
34
|
+
* ```ts
|
|
35
|
+
* {
|
|
36
|
+
* path: 'pattern',
|
|
37
|
+
* loadChildren: () => import('@sdcorejs/angular/modules/pattern').then(m => m.SD_PATTERN_ROUTES),
|
|
38
|
+
* providers: [provideSdPatterns({ mockApi: true })],
|
|
39
|
+
* }
|
|
40
|
+
* ```
|
|
41
|
+
*
|
|
42
|
+
* - The mock API interceptor runs on a child `HttpClient` of that route (`withRequestsMadeViaParent`), so other
|
|
43
|
+
* requests of the host are untouched and requests under `/pattern` still go through the host's interceptors.
|
|
44
|
+
* - `SdPermissionService`, `SdPermissionGuard` and `SD_PERMISSION_CONFIGURATION` are provided again there with the
|
|
45
|
+
* sample roles, so the host's own permissions are neither read nor changed.
|
|
46
|
+
*/
|
|
47
|
+
declare function provideSdPatterns(configuration?: SdPatternConfiguration): EnvironmentProviders;
|
|
48
|
+
|
|
49
|
+
export { SD_PATTERN_ROUTES, provideSdPatterns };
|
|
50
|
+
export type { SdPatternConfiguration };
|
|
@@ -72,9 +72,9 @@ interface SdApiHandler {
|
|
|
72
72
|
interface ISdApiConfiguration {
|
|
73
73
|
handlers?: SdApiHandler[];
|
|
74
74
|
}
|
|
75
|
-
declare const SD_API_CONFIG: InjectionToken<ISdApiConfiguration>;
|
|
76
|
-
/** @deprecated Use `SD_API_CONFIG`. This is the same injection token. */
|
|
77
75
|
declare const SD_API_CONFIGURATION: InjectionToken<ISdApiConfiguration>;
|
|
76
|
+
/** @deprecated Use `SD_API_CONFIGURATION`. This is the same injection token. */
|
|
77
|
+
declare const SD_API_CONFIG: InjectionToken<ISdApiConfiguration>;
|
|
78
78
|
/**
|
|
79
79
|
* Lỗi nghiệp vụ: HTTP 200 nhưng body envelope báo thất bại (`{ ok: false, ... }`).
|
|
80
80
|
*
|
|
@@ -94,13 +94,13 @@ declare class SdApiError<TBody = unknown> extends Error {
|
|
|
94
94
|
* Handler API đăng ký lúc runtime, sống ở root injector.
|
|
95
95
|
*
|
|
96
96
|
* why: `SdHttpInterceptor` được đăng ký qua `HTTP_INTERCEPTORS` ở ROOT, nên
|
|
97
|
-
* `inject(
|
|
98
|
-
* `{ provide:
|
|
97
|
+
* `inject(SD_API_CONFIGURATION)` của nó chỉ thấy provider ở root. Library nào khai
|
|
98
|
+
* `{ provide: SD_API_CONFIGURATION, multi: true }` trong NgModule mà shell nạp bằng
|
|
99
99
|
* `loadChildren` thì provider nằm ở child injector của lazy route — interceptor không
|
|
100
100
|
* bao giờ thấy, nên mất `intercept` / `beforeRemote` / `afterRemote` trong im lặng.
|
|
101
101
|
* Registry này là điểm hẹn ở root mà mọi scope (root, eager, lazy) đều ghi vào được.
|
|
102
102
|
*
|
|
103
|
-
* Registry tự nhặt `
|
|
103
|
+
* Registry tự nhặt `SD_API_CONFIGURATION` khai trong injector của lazy route (`Route.providers`,
|
|
104
104
|
* NgModule của `loadChildren`) trong chính navigation Router tạo injector đó — trước guard,
|
|
105
105
|
* resolver và component — và gỡ khi injector bị huỷ;
|
|
106
106
|
* library giữ nguyên cách khai multi provider, không cần biết shell mount nó eager hay lazy.
|
|
@@ -45,7 +45,7 @@ type SdCacheGetCallback = (key: string, option?: SdCacheOption<unknown>) => Prom
|
|
|
45
45
|
type SdCacheRemoveCallback = (key: string, option?: SdCacheOption<unknown>) => Promise<void> | void;
|
|
46
46
|
/**
|
|
47
47
|
* Số entry `type: 'memory'` tối đa được giữ trước khi LRU đẩy entry cũ nhất ra.
|
|
48
|
-
* Ghi đè bằng `maxMemoryEntries` trên `
|
|
48
|
+
* Ghi đè bằng `maxMemoryEntries` trên `SD_CACHE_CONFIGURATION`.
|
|
49
49
|
*/
|
|
50
50
|
declare const SD_CACHE_DEFAULT_MAX_MEMORY_ENTRIES = 500;
|
|
51
51
|
interface ISdCacheConfiguration {
|
|
@@ -63,6 +63,8 @@ interface ISdCacheConfiguration {
|
|
|
63
63
|
get?: SdCacheGetCallback;
|
|
64
64
|
remove?: SdCacheRemoveCallback;
|
|
65
65
|
}
|
|
66
|
+
declare const SD_CACHE_CONFIGURATION: InjectionToken<ISdCacheConfiguration>;
|
|
67
|
+
/** @deprecated Use `SD_CACHE_CONFIGURATION`. This is the same injection token. */
|
|
66
68
|
declare const SD_CACHE_CONFIG: InjectionToken<ISdCacheConfiguration>;
|
|
67
69
|
interface SdLegacyCacheCallbacks<T> {
|
|
68
70
|
matches: (key: string, option?: SdCacheOption<unknown>) => boolean;
|
|
@@ -85,5 +87,5 @@ declare class SdCacheService {
|
|
|
85
87
|
static ɵprov: i0.ɵɵInjectableDeclaration<SdCacheService>;
|
|
86
88
|
}
|
|
87
89
|
|
|
88
|
-
export { SD_CACHE_CONFIG, SD_CACHE_DEFAULT_MAX_MEMORY_ENTRIES, SdCacheService, adaptLegacySdCacheCallbacks };
|
|
90
|
+
export { SD_CACHE_CONFIG, SD_CACHE_CONFIGURATION, SD_CACHE_DEFAULT_MAX_MEMORY_ENTRIES, SdCacheService, adaptLegacySdCacheCallbacks };
|
|
89
91
|
export type { ISdCacheConfiguration, SdCache, SdCacheGetCallback, SdCacheOption, SdCacheRemoveCallback, SdCacheSetCallback, SdCacheSnapshot, SdCacheStoredValue, SdCacheWithDefault, SdLegacyCacheCallbacks };
|
|
@@ -41,6 +41,8 @@ interface ISdStorageConfiguration {
|
|
|
41
41
|
serializer?: SdPersistenceSerializer;
|
|
42
42
|
identityCanonicalizer?: SdPersistenceIdentityCanonicalizer;
|
|
43
43
|
}
|
|
44
|
+
declare const SD_STORAGE_CONFIGURATION: InjectionToken<ISdStorageConfiguration>;
|
|
45
|
+
/** @deprecated Use `SD_STORAGE_CONFIGURATION`. This is the same injection token. */
|
|
44
46
|
declare const SD_STORAGE_CONFIG: InjectionToken<ISdStorageConfiguration>;
|
|
45
47
|
|
|
46
48
|
declare class SdStorageService {
|
|
@@ -54,5 +56,5 @@ declare class SdStorageService {
|
|
|
54
56
|
static ɵprov: i0.ɵɵInjectableDeclaration<SdStorageService>;
|
|
55
57
|
}
|
|
56
58
|
|
|
57
|
-
export { SD_STORAGE_CONFIG, SdStorageService };
|
|
59
|
+
export { SD_STORAGE_CONFIG, SD_STORAGE_CONFIGURATION, SdStorageService };
|
|
58
60
|
export type { ISdStorageConfiguration, SdStorage, SdStorageOption, SdStorageWithDefault };
|
|
@@ -42,6 +42,8 @@ interface SdUnsavedChangesRegistration {
|
|
|
42
42
|
interface SdUnsavedChangesConfirmOptions {
|
|
43
43
|
readonly scope?: unknown;
|
|
44
44
|
readonly reason?: SdUnsavedChangesReason;
|
|
45
|
+
/** Asks with this adapter for this call only, instead of `SD_UNSAVED_CHANGES_CONFIRMATION_ADAPTER`. */
|
|
46
|
+
readonly adapter?: SdUnsavedChangesConfirmationAdapter;
|
|
45
47
|
}
|
|
46
48
|
|
|
47
49
|
interface SdUnsavedChangesWindow {
|
|
@@ -74,6 +76,15 @@ interface SdUnsavedChangesFormOptions<TValue> {
|
|
|
74
76
|
readonly save?: (value: TValue) => SdUnsavedChangesMaybeAsync<void | boolean>;
|
|
75
77
|
readonly reset?: (form: FormGroup) => SdUnsavedChangesMaybeAsync<void | boolean>;
|
|
76
78
|
readonly discard?: (form: FormGroup) => SdUnsavedChangesMaybeAsync<void | boolean>;
|
|
79
|
+
/**
|
|
80
|
+
* `'control'` (default): the form's own `dirty` flag. `'value'`: dirty only while the value differs from the
|
|
81
|
+
* saved one, so a value typed back to what it was is no change, whether or not the field marks its control dirty.
|
|
82
|
+
* In `'value'` mode each control's saved value is the one it holds once it has joined the form (an `<sd-*>`
|
|
83
|
+
* field registers and writes its model after this call), and it is taken again when the form or the control is
|
|
84
|
+
* marked pristine, on `save()`, `reset()`, `discard()` and on `markPristine()` of the registration. A page that
|
|
85
|
+
* loads another record into the same form calls `markPristine()` once the record is in.
|
|
86
|
+
*/
|
|
87
|
+
readonly dirty?: 'control' | 'value';
|
|
77
88
|
}
|
|
78
89
|
declare function registerSdUnsavedChangesForm<TValue extends Record<string, unknown>>(service: SdUnsavedChangesService, form: FormGroup, options: SdUnsavedChangesFormOptions<TValue>): SdUnsavedChangesRegistration;
|
|
79
90
|
declare function createSdUnsavedChangesCloseGuard(service: SdUnsavedChangesService, options?: Omit<SdUnsavedChangesConfirmOptions, 'reason'>): () => Promise<boolean>;
|