@sdcorejs/angular 19.3.2 → 19.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/THEME.md +58 -6
- package/assets/scss/core/form.scss +291 -3
- package/assets/scss/themes/_component-tokens.scss +35 -6
- package/components/badge/index.d.ts +1 -0
- package/components/badge/src/badge.model.d.ts +19 -0
- package/components/query-bar/src/components/actions-bar/actions-bar.component.d.ts +6 -1
- package/components/query-bar/src/components/field-picker/field-picker.component.d.ts +21 -0
- package/components/query-bar/src/components/inline-chip/inline-chip.component.d.ts +7 -1
- package/components/query-bar/src/components/inline-value-chip/inline-value-chip.component.d.ts +7 -1
- package/components/query-bar/src/components/popover-chip/popover-chip.component.d.ts +16 -2
- package/components/query-bar/src/query-bar.component.d.ts +66 -8
- package/components/query-bar/src/query-bar.model.d.ts +44 -1
- package/components/section/index.d.ts +1 -0
- package/components/section/src/section-registry.d.ts +11 -0
- package/components/splitter/index.d.ts +1 -1
- package/components/tab-router/src/actions/tab-router.action.d.ts +1 -1
- package/components/tab-router/src/components/tab-router-item/tab-router-item.component.d.ts +4 -2
- package/components/tab-router/src/components/tab-router-nav/tab-router-nav.component.d.ts +31 -3
- package/components/tab-router/src/components/tab-router-outlet/tab-router-outlet.component.d.ts +6 -1
- package/components/tab-router/src/models/tab-router.model.d.ts +5 -0
- package/components/tab-router/src/pipes/tab-info.pipe.d.ts +7 -0
- package/components/tab-router/src/services/tab-router.service.d.ts +5 -0
- package/components/table/index.d.ts +2 -0
- package/components/table/src/components/config/config-width.util.d.ts +9 -0
- package/components/table/src/components/config/config.component.d.ts +58 -11
- package/components/table/src/components/filter/column-filter/column-filter.component.d.ts +5 -0
- package/components/table/src/components/filter/external-filter/external-filter.component.d.ts +5 -1
- package/components/table/src/components/mobile-cards/mobile-cards.component.d.ts +4 -0
- package/components/table/src/configurations/index.d.ts +1 -0
- package/components/table/src/configurations/table-layout.d.ts +16 -0
- package/components/table/src/configurations/table.configuration.d.ts +7 -1
- package/components/table/src/models/index.d.ts +1 -0
- package/components/table/src/models/table-column.model.d.ts +3 -10
- package/components/table/src/models/table-item.model.d.ts +4 -1
- package/components/table/src/models/table-option-loading.model.d.ts +42 -0
- package/components/table/src/models/table-option.model.d.ts +6 -0
- package/components/table/src/services/column-leaf.util.d.ts +6 -0
- package/components/table/src/services/config-custom.util.d.ts +14 -0
- package/components/table/src/services/table-filter/table-filter.model.d.ts +30 -0
- package/components/table/src/services/table-filter/table-query-bar.util.d.ts +110 -0
- package/components/table/src/services/table-loading/table-loading.util.d.ts +91 -0
- package/components/table/src/services/tree/tree.util.d.ts +2 -0
- package/components/table/src/table.component.d.ts +60 -1
- package/components/upload-file/src/components/file-type-icon/file-type-icon.component.d.ts +15 -0
- package/components/upload-file/src/components/preview/preview.component.d.ts +88 -10
- package/components/upload-file/src/configurations/upload-file.configuration.d.ts +1 -1
- package/components/upload-file/src/helpers/file-type.d.ts +25 -0
- package/components/upload-file/src/pipes/file-meta.pipe.d.ts +9 -0
- package/components/upload-file/src/pipes/file-reason.pipe.d.ts +11 -0
- package/components/upload-file/src/pipes/index.d.ts +2 -0
- package/components/upload-file/src/upload-file.component.d.ts +89 -8
- package/fesm2022/sdcorejs-angular-components-badge.mjs +2 -2
- package/fesm2022/sdcorejs-angular-components-badge.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-form-generic.mjs +3 -3
- package/fesm2022/sdcorejs-angular-components-form-generic.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-query-bar.mjs +455 -37
- package/fesm2022/sdcorejs-angular-components-query-bar.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-section.mjs +15 -3
- package/fesm2022/sdcorejs-angular-components-section.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-side-drawer.mjs +2 -2
- package/fesm2022/sdcorejs-angular-components-side-drawer.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-splitter.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-tab-router.mjs +390 -75
- package/fesm2022/sdcorejs-angular-components-tab-router.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-table.mjs +1667 -124
- package/fesm2022/sdcorejs-angular-components-table.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-upload-file.mjs +886 -173
- package/fesm2022/sdcorejs-angular-components-upload-file.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-autocomplete.mjs +7 -2
- package/fesm2022/sdcorejs-angular-forms-autocomplete.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-chip-calendar.mjs +5 -2
- package/fesm2022/sdcorejs-angular-forms-chip-calendar.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-chip.mjs +421 -121
- package/fesm2022/sdcorejs-angular-forms-chip.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-date-range.mjs +4 -0
- package/fesm2022/sdcorejs-angular-forms-date-range.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-date.mjs +4 -0
- package/fesm2022/sdcorejs-angular-forms-date.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-datetime.mjs +4 -0
- package/fesm2022/sdcorejs-angular-forms-datetime.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-input-number.mjs +17 -2
- package/fesm2022/sdcorejs-angular-forms-input-number.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-input.mjs +4 -0
- package/fesm2022/sdcorejs-angular-forms-input.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-select.mjs +26 -20
- package/fesm2022/sdcorejs-angular-forms-select.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-textarea.mjs +14 -1
- package/fesm2022/sdcorejs-angular-forms-textarea.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-i18n.mjs +350 -5
- package/fesm2022/sdcorejs-angular-i18n.mjs.map +1 -1
- package/fesm2022/{sdcorejs-angular-modules-generic-generic-configuration.page-BFxO3eHX.mjs → sdcorejs-angular-modules-generic-generic-configuration.page-Bk3PrEf3.mjs} +3 -3
- package/fesm2022/{sdcorejs-angular-modules-generic-generic-configuration.page-BFxO3eHX.mjs.map → sdcorejs-angular-modules-generic-generic-configuration.page-Bk3PrEf3.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-generic-generic-form-host.page-Csy2fShj.mjs → sdcorejs-angular-modules-generic-generic-form-host.page-CwUegGgG.mjs} +3 -3
- package/fesm2022/{sdcorejs-angular-modules-generic-generic-form-host.page-Csy2fShj.mjs.map → sdcorejs-angular-modules-generic-generic-form-host.page-CwUegGgG.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-generic-generic-list.page-BIIxNR6k.mjs → sdcorejs-angular-modules-generic-generic-list.page-lF2trhfp.mjs} +3 -3
- package/fesm2022/{sdcorejs-angular-modules-generic-generic-list.page-BIIxNR6k.mjs.map → sdcorejs-angular-modules-generic-generic-list.page-lF2trhfp.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-generic-sdcorejs-angular-modules-generic-DjDsau9C.mjs → sdcorejs-angular-modules-generic-sdcorejs-angular-modules-generic-BbmeOduc.mjs} +4 -4
- package/fesm2022/{sdcorejs-angular-modules-generic-sdcorejs-angular-modules-generic-DjDsau9C.mjs.map → sdcorejs-angular-modules-generic-sdcorejs-angular-modules-generic-BbmeOduc.mjs.map} +1 -1
- package/fesm2022/sdcorejs-angular-modules-generic.mjs +1 -1
- package/fesm2022/sdcorejs-angular-modules-layout.mjs +347 -10
- package/fesm2022/sdcorejs-angular-modules-layout.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-api-error-BBWwQ6h2.mjs +23 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-api-error-BBWwQ6h2.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-approval-inbox-BMwD6_FC.mjs +16 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-approval-inbox-BMwD6_FC.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-base-api.service-DK33LxHm.mjs +51 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-base-api.service-DK33LxHm.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-create-side-drawer.component-B1BUBiag.mjs +145 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-create-side-drawer.component-B1BUBiag.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-create-side-drawer.component-B27ZX8Co.mjs +144 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-create-side-drawer.component-B27ZX8Co.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-create.component-Bi2tMFHf.mjs +460 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-create.component-Bi2tMFHf.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-create.component-CPwGkrNk.mjs +142 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-create.component-CPwGkrNk.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-create.component-VCbA_FkZ.mjs +113 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-create.component-VCbA_FkZ.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-customer.model-C3fr4yNw.mjs +18 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-customer.model-C3fr4yNw.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-customer.service-CehsdBRP.mjs +66 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-customer.service-CehsdBRP.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-detail-side-drawer.component-CPhLTiyx.mjs +148 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-detail-side-drawer.component-CPhLTiyx.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-detail.component-5kI7wGdX.mjs +484 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-detail.component-5kI7wGdX.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-detail.component-CjAy-B9K.mjs +172 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-detail.component-CjAy-B9K.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-detail.component-CnL2FzCx.mjs +90 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-detail.component-CnL2FzCx.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-flow.component-DObN_wCR.mjs +514 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-flow.component-DObN_wCR.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-form-api-errors-DpnYSG2j.mjs +61 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-form-api-errors-DpnYSG2j.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-general-information-form.component-C_ST-ld5.mjs +170 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-general-information-form.component-C_ST-ld5.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-general-information-form.component-D6eKR2cq.mjs +87 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-general-information-form.component-D6eKR2cq.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-general-information-form.component-FcJS3Nbd.mjs +232 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-general-information-form.component-FcJS3Nbd.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-general-information-view.component-BA-3FR1J.mjs +70 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-general-information-view.component-BA-3FR1J.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-index.component-TTrWCXIT.mjs +100 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-index.component-TTrWCXIT.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-lines-table-form.component-B1qePLfk.mjs +812 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-lines-table-form.component-B1qePLfk.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-BY5gjtNS.mjs +71 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-BY5gjtNS.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-CJ38CJXg.mjs +629 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-CJ38CJXg.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-CdgPtSjJ.mjs +164 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-CdgPtSjJ.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-DKIwrluh.mjs +118 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-DKIwrluh.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-W9vY7HrT.mjs +115 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-W9vY7HrT.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-mock-backend.factory-CI0H_5a4.mjs +1069 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-mock-backend.factory-CI0H_5a4.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-pattern-source-viewer-BqHwKfoc.mjs +193 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-pattern-source-viewer-BqHwKfoc.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-pattern-source.generated-CIiLOizq.mjs +99 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-pattern-source.generated-CIiLOizq.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-product.model-BoHLJ8vf.mjs +12 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-product.model-BoHLJ8vf.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-product.service-D829aEk5.mjs +48 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-product.service-D829aEk5.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-profile.component-BEFVmSSj.mjs +295 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-profile.component-BEFVmSSj.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-1kDb9T7_.mjs +74 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-1kDb9T7_.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-B-TJUSV_.mjs +66 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-B-TJUSV_.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-B6z7KO0P.mjs +45 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-B6z7KO0P.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-DS39vgzU.mjs +50 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-DS39vgzU.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-DVlcUUzh.mjs +43 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-DVlcUUzh.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-DxWDWUdo.mjs +165 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-DxWDWUdo.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-r9CTj-8C.mjs +74 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-r9CTj-8C.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-xI1XYRo6.mjs +99 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-xI1XYRo6.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-sdcorejs-angular-modules-pattern-nV5dVFx2.mjs +406 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-sdcorejs-angular-modules-pattern-nV5dVFx2.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-shell.component-0rRaWsuo.mjs +317 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-shell.component-0rRaWsuo.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-update-side-drawer.component-6uH7sDEg.mjs +143 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-update-side-drawer.component-6uH7sDEg.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-update-side-drawer.component-DglN2sS_.mjs +132 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-update-side-drawer.component-DglN2sS_.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-update.component-BmsOgENL.mjs +359 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-update.component-BmsOgENL.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-update.component-DPZ_ucNB.mjs +138 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-update.component-DPZ_ucNB.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-update.component-DkAcDmsZ.mjs +100 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-update.component-DkAcDmsZ.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern.mjs +2 -0
- package/fesm2022/sdcorejs-angular-modules-pattern.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-services-api.mjs +11 -11
- package/fesm2022/sdcorejs-angular-services-api.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-services-cache.mjs +7 -5
- package/fesm2022/sdcorejs-angular-services-cache.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-services-storage.mjs +6 -4
- package/fesm2022/sdcorejs-angular-services-storage.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-services-unsaved-changes.mjs +104 -4
- package/fesm2022/sdcorejs-angular-services-unsaved-changes.mjs.map +1 -1
- package/forms/chip/src/chip.component.d.ts +135 -19
- package/forms/chip/src/index.d.ts +0 -1
- package/i18n/src/en.d.ts +70 -1
- package/modules/layout/components/index.d.ts +2 -0
- package/modules/layout/components/page/page-form-leave.guard.d.ts +9 -0
- package/modules/layout/components/page/page.component.d.ts +38 -2
- package/modules/layout/components/page-list/page-list.component.d.ts +42 -0
- package/modules/layout/components/shared/context-switcher/context-switcher.component.d.ts +1 -1
- package/modules/pattern/README.md +76 -0
- package/modules/pattern/configurations/pattern.configuration.d.ts +30 -0
- package/modules/pattern/configurations/provide-sd-patterns.d.ts +19 -0
- package/modules/pattern/core/mock-api/mock-api.interceptor.d.ts +8 -0
- package/modules/pattern/core/mock-api/mock-api.model.d.ts +62 -0
- package/modules/pattern/core/mock-api/mock-api.state.d.ts +36 -0
- package/modules/pattern/core/mock-api/mock-backend.d.ts +18 -0
- package/modules/pattern/core/mock-api/mock-backend.factory.d.ts +3 -0
- package/modules/pattern/core/mock-api/prng.d.ts +4 -0
- package/modules/pattern/core/mock-api/resources/approval.resource.d.ts +14 -0
- package/modules/pattern/core/mock-api/resources/category.resource.d.ts +9 -0
- package/modules/pattern/core/mock-api/resources/customer.resource.d.ts +22 -0
- package/modules/pattern/core/mock-api/resources/index.d.ts +3 -0
- package/modules/pattern/core/mock-api/resources/names.d.ts +5 -0
- package/modules/pattern/core/mock-api/resources/order.resource.d.ts +44 -0
- package/modules/pattern/core/mock-api/resources/partner.resource.d.ts +16 -0
- package/modules/pattern/core/mock-api/resources/product.resource.d.ts +13 -0
- package/modules/pattern/core/mock-api/resources/settings.resource.d.ts +18 -0
- package/modules/pattern/core/pattern-shell/catalog/pattern-catalog.d.ts +24 -0
- package/modules/pattern/core/pattern-shell/index/index.component.d.ts +9 -0
- package/modules/pattern/core/pattern-shell/settings/pattern-settings.store.d.ts +57 -0
- package/modules/pattern/core/pattern-shell/settings/settings-button.component.d.ts +44 -0
- package/modules/pattern/core/pattern-shell/shell/pattern-source-viewer.d.ts +8 -0
- package/modules/pattern/core/pattern-shell/shell/shell.component.d.ts +13 -0
- package/modules/pattern/core/pattern-shell/source/pattern-source.generated.d.ts +1 -0
- package/modules/pattern/core/pattern-shell/source/source-drawer.component.d.ts +27 -0
- package/modules/pattern/core/pattern-shell/toolbar/toolbar.component.d.ts +24 -0
- package/modules/pattern/core/permission/pattern-permission.d.ts +15 -0
- package/modules/pattern/core/permission/pattern-role.store.d.ts +13 -0
- package/modules/pattern/core/session-state.d.ts +4 -0
- package/modules/pattern/docs/detail.md +237 -0
- package/modules/pattern/docs/drawer.md +484 -0
- package/modules/pattern/docs/flow.md +631 -0
- package/modules/pattern/docs/form.md +815 -0
- package/modules/pattern/docs/header-actions.md +344 -0
- package/modules/pattern/docs/list.md +247 -0
- package/modules/pattern/docs/relation.md +180 -0
- package/modules/pattern/docs/select.md +214 -0
- package/modules/pattern/docs/split.md +350 -0
- package/modules/pattern/docs/states.md +168 -0
- package/modules/pattern/features/approval/entity.resolver.d.ts +4 -0
- package/modules/pattern/features/approval/entity.resolver.ts +21 -0
- package/modules/pattern/features/approval/pages/detail/detail.component.d.ts +13 -0
- package/modules/pattern/features/approval/pages/detail/detail.component.ts +139 -0
- package/modules/pattern/features/approval/pages/list/approval-inbox.d.ts +7 -0
- package/modules/pattern/features/approval/pages/list/approval-inbox.ts +7 -0
- package/modules/pattern/features/approval/pages/list/list.component.d.ts +26 -0
- package/modules/pattern/features/approval/pages/list/list.component.html +20 -0
- package/modules/pattern/features/approval/pages/list/list.component.ts +149 -0
- package/modules/pattern/features/approval/routes.d.ts +3 -0
- package/modules/pattern/features/approval/routes.ts +30 -0
- package/modules/pattern/features/approval/services/approval.model.d.ts +37 -0
- package/modules/pattern/features/approval/services/approval.model.ts +38 -0
- package/modules/pattern/features/approval/services/approval.service.d.ts +12 -0
- package/modules/pattern/features/approval/services/approval.service.ts +23 -0
- package/modules/pattern/features/category/components/create-side-drawer/create-side-drawer.component.d.ts +23 -0
- package/modules/pattern/features/category/components/create-side-drawer/create-side-drawer.component.ts +130 -0
- package/modules/pattern/features/category/components/general-information-form/general-information-form.component.d.ts +20 -0
- package/modules/pattern/features/category/components/general-information-form/general-information-form.component.ts +61 -0
- package/modules/pattern/features/category/components/update-side-drawer/update-side-drawer.component.d.ts +23 -0
- package/modules/pattern/features/category/components/update-side-drawer/update-side-drawer.component.ts +134 -0
- package/modules/pattern/features/category/entity.resolver.d.ts +6 -0
- package/modules/pattern/features/category/entity.resolver.ts +27 -0
- package/modules/pattern/features/category/pages/list/list.component.d.ts +17 -0
- package/modules/pattern/features/category/pages/list/list.component.html +20 -0
- package/modules/pattern/features/category/pages/list/list.component.ts +105 -0
- package/modules/pattern/features/category/routes.d.ts +3 -0
- package/modules/pattern/features/category/routes.ts +42 -0
- package/modules/pattern/features/category/services/category.model.d.ts +34 -0
- package/modules/pattern/features/category/services/category.model.ts +39 -0
- package/modules/pattern/features/category/services/category.service.d.ts +17 -0
- package/modules/pattern/features/category/services/category.service.ts +36 -0
- package/modules/pattern/features/customer/components/create-side-drawer/create-side-drawer.component.d.ts +24 -0
- package/modules/pattern/features/customer/components/create-side-drawer/create-side-drawer.component.ts +138 -0
- package/modules/pattern/features/customer/components/customer-select/customer-select.component.d.ts +20 -0
- package/modules/pattern/features/customer/components/customer-select/customer-select.component.ts +72 -0
- package/modules/pattern/features/customer/components/customer-type-select/customer-type-select.component.d.ts +20 -0
- package/modules/pattern/features/customer/components/customer-type-select/customer-type-select.component.ts +30 -0
- package/modules/pattern/features/customer/components/debts-view/debts-view.component.d.ts +11 -0
- package/modules/pattern/features/customer/components/debts-view/debts-view.component.ts +28 -0
- package/modules/pattern/features/customer/components/detail-side-drawer/detail-side-drawer.component.d.ts +20 -0
- package/modules/pattern/features/customer/components/detail-side-drawer/detail-side-drawer.component.ts +106 -0
- package/modules/pattern/features/customer/components/documents-view/documents-view.component.d.ts +14 -0
- package/modules/pattern/features/customer/components/documents-view/documents-view.component.ts +50 -0
- package/modules/pattern/features/customer/components/general-information-form/general-information-form.component.d.ts +33 -0
- package/modules/pattern/features/customer/components/general-information-form/general-information-form.component.ts +140 -0
- package/modules/pattern/features/customer/components/general-information-view/general-information-view.component.d.ts +9 -0
- package/modules/pattern/features/customer/components/general-information-view/general-information-view.component.ts +39 -0
- package/modules/pattern/features/customer/components/orders-view/orders-view.component.d.ts +11 -0
- package/modules/pattern/features/customer/components/orders-view/orders-view.component.ts +35 -0
- package/modules/pattern/features/customer/components/summary-cards/summary-cards.component.d.ts +22 -0
- package/modules/pattern/features/customer/components/summary-cards/summary-cards.component.ts +101 -0
- package/modules/pattern/features/customer/components/update-side-drawer/update-side-drawer.component.d.ts +24 -0
- package/modules/pattern/features/customer/components/update-side-drawer/update-side-drawer.component.ts +127 -0
- package/modules/pattern/features/customer/entity.resolver.d.ts +4 -0
- package/modules/pattern/features/customer/entity.resolver.ts +21 -0
- package/modules/pattern/features/customer/pages/list/list.component.d.ts +19 -0
- package/modules/pattern/features/customer/pages/list/list.component.html +22 -0
- package/modules/pattern/features/customer/pages/list/list.component.ts +113 -0
- package/modules/pattern/features/customer/pages/profile/profile.component.d.ts +31 -0
- package/modules/pattern/features/customer/pages/profile/profile.component.ts +120 -0
- package/modules/pattern/features/customer/pipes/customer-detail.pipe.d.ts +14 -0
- package/modules/pattern/features/customer/pipes/customer-detail.pipe.ts +18 -0
- package/modules/pattern/features/customer/routes.d.ts +6 -0
- package/modules/pattern/features/customer/routes.ts +59 -0
- package/modules/pattern/features/customer/services/customer.model.d.ts +77 -0
- package/modules/pattern/features/customer/services/customer.model.ts +87 -0
- package/modules/pattern/features/customer/services/customer.service.d.ts +24 -0
- package/modules/pattern/features/customer/services/customer.service.ts +79 -0
- package/modules/pattern/features/import/components/mapping-form/mapping-form.component.d.ts +21 -0
- package/modules/pattern/features/import/components/mapping-form/mapping-form.component.ts +41 -0
- package/modules/pattern/features/import/components/preview-view/preview-view.component.d.ts +10 -0
- package/modules/pattern/features/import/components/preview-view/preview-view.component.ts +44 -0
- package/modules/pattern/features/import/pages/flow/flow.component.d.ts +43 -0
- package/modules/pattern/features/import/pages/flow/flow.component.ts +269 -0
- package/modules/pattern/features/import/routes.d.ts +2 -0
- package/modules/pattern/features/import/routes.ts +19 -0
- package/modules/pattern/features/import/services/import.model.d.ts +38 -0
- package/modules/pattern/features/import/services/import.model.ts +82 -0
- package/modules/pattern/features/import/services/import.service.d.ts +15 -0
- package/modules/pattern/features/import/services/import.service.ts +18 -0
- package/modules/pattern/features/order/components/approval-steps/approval-steps.component.d.ts +9 -0
- package/modules/pattern/features/order/components/approval-steps/approval-steps.component.ts +74 -0
- package/modules/pattern/features/order/components/bulk-result/bulk-result.component.d.ts +22 -0
- package/modules/pattern/features/order/components/bulk-result/bulk-result.component.ts +46 -0
- package/modules/pattern/features/order/components/general-information-form/general-information-form.component.d.ts +30 -0
- package/modules/pattern/features/order/components/general-information-form/general-information-form.component.ts +96 -0
- package/modules/pattern/features/order/components/lines-form/lines-form.component.d.ts +19 -0
- package/modules/pattern/features/order/components/lines-form/lines-form.component.ts +182 -0
- package/modules/pattern/features/order/components/lines-form/order-lines.d.ts +35 -0
- package/modules/pattern/features/order/components/lines-form/order-lines.ts +101 -0
- package/modules/pattern/features/order/components/lines-table-form/lines-table-form.component.d.ts +34 -0
- package/modules/pattern/features/order/components/lines-table-form/lines-table-form.component.ts +196 -0
- package/modules/pattern/features/order/components/lines-view/lines-view.component.d.ts +12 -0
- package/modules/pattern/features/order/components/lines-view/lines-view.component.ts +42 -0
- package/modules/pattern/features/order/components/summary-cards/summary-cards.component.d.ts +25 -0
- package/modules/pattern/features/order/components/summary-cards/summary-cards.component.ts +128 -0
- package/modules/pattern/features/order/entity.resolver.d.ts +9 -0
- package/modules/pattern/features/order/entity.resolver.ts +37 -0
- package/modules/pattern/features/order/pages/create/create.component.d.ts +18 -0
- package/modules/pattern/features/order/pages/create/create.component.ts +113 -0
- package/modules/pattern/features/order/pages/detail/detail.component.d.ts +27 -0
- package/modules/pattern/features/order/pages/detail/detail.component.ts +224 -0
- package/modules/pattern/features/order/pages/list/list.component.d.ts +29 -0
- package/modules/pattern/features/order/pages/list/list.component.html +38 -0
- package/modules/pattern/features/order/pages/list/list.component.ts +291 -0
- package/modules/pattern/features/order/pages/update/update.component.d.ts +22 -0
- package/modules/pattern/features/order/pages/update/update.component.ts +126 -0
- package/modules/pattern/features/order/routes.d.ts +7 -0
- package/modules/pattern/features/order/routes.ts +54 -0
- package/modules/pattern/features/order/services/order.model.d.ts +106 -0
- package/modules/pattern/features/order/services/order.model.ts +109 -0
- package/modules/pattern/features/order/services/order.service.d.ts +25 -0
- package/modules/pattern/features/order/services/order.service.ts +63 -0
- package/modules/pattern/features/partner/pages/create/create.component.d.ts +41 -0
- package/modules/pattern/features/partner/pages/create/create.component.ts +324 -0
- package/modules/pattern/features/partner/routes.d.ts +2 -0
- package/modules/pattern/features/partner/routes.ts +20 -0
- package/modules/pattern/features/partner/services/partner.model.d.ts +30 -0
- package/modules/pattern/features/partner/services/partner.model.ts +30 -0
- package/modules/pattern/features/partner/services/partner.service.d.ts +13 -0
- package/modules/pattern/features/partner/services/partner.service.ts +17 -0
- package/modules/pattern/features/product/components/general-information-form/general-information-form.component.d.ts +23 -0
- package/modules/pattern/features/product/components/general-information-form/general-information-form.component.ts +88 -0
- package/modules/pattern/features/product/components/product-select/product-select.component.d.ts +26 -0
- package/modules/pattern/features/product/components/product-select/product-select.component.ts +73 -0
- package/modules/pattern/features/product/components/product-status-select/product-status-select.component.d.ts +22 -0
- package/modules/pattern/features/product/components/product-status-select/product-status-select.component.ts +30 -0
- package/modules/pattern/features/product/entity.resolver.d.ts +4 -0
- package/modules/pattern/features/product/entity.resolver.ts +21 -0
- package/modules/pattern/features/product/pages/create/create.component.d.ts +15 -0
- package/modules/pattern/features/product/pages/create/create.component.ts +92 -0
- package/modules/pattern/features/product/pages/detail/detail.component.d.ts +10 -0
- package/modules/pattern/features/product/pages/detail/detail.component.ts +53 -0
- package/modules/pattern/features/product/pages/list/list.component.d.ts +15 -0
- package/modules/pattern/features/product/pages/list/list.component.html +30 -0
- package/modules/pattern/features/product/pages/list/list.component.ts +71 -0
- package/modules/pattern/features/product/pages/update/update.component.d.ts +16 -0
- package/modules/pattern/features/product/pages/update/update.component.ts +86 -0
- package/modules/pattern/features/product/pipes/product-detail.pipe.d.ts +14 -0
- package/modules/pattern/features/product/pipes/product-detail.pipe.ts +18 -0
- package/modules/pattern/features/product/routes.d.ts +3 -0
- package/modules/pattern/features/product/routes.ts +48 -0
- package/modules/pattern/features/product/services/product.model.d.ts +34 -0
- package/modules/pattern/features/product/services/product.model.ts +38 -0
- package/modules/pattern/features/product/services/product.service.d.ts +17 -0
- package/modules/pattern/features/product/services/product.service.ts +48 -0
- package/modules/pattern/features/settings/pages/update/update.component.d.ts +26 -0
- package/modules/pattern/features/settings/pages/update/update.component.ts +228 -0
- package/modules/pattern/features/settings/routes.d.ts +3 -0
- package/modules/pattern/features/settings/routes.ts +24 -0
- package/modules/pattern/features/settings/services/settings.model.d.ts +17 -0
- package/modules/pattern/features/settings/services/settings.model.ts +18 -0
- package/modules/pattern/features/settings/services/settings.service.d.ts +10 -0
- package/modules/pattern/features/settings/services/settings.service.ts +15 -0
- package/modules/pattern/features/settings/settings.resolver.d.ts +4 -0
- package/modules/pattern/features/settings/settings.resolver.ts +8 -0
- package/modules/pattern/index.d.ts +3 -0
- package/modules/pattern/routes.d.ts +6 -0
- package/modules/pattern/services/base-api.service.d.ts +16 -0
- package/modules/pattern/utils/api-error.d.ts +4 -0
- package/modules/pattern/utils/focus-first-invalid.d.ts +5 -0
- package/modules/pattern/utils/form-api-errors.d.ts +16 -0
- package/modules/pattern/utils/resource-url.d.ts +2 -0
- package/package.json +13 -9
- package/services/api/src/api-handler-registry.d.ts +3 -3
- package/services/api/src/api-route-configurations.d.ts +2 -2
- package/services/api/src/api.model.d.ts +2 -2
- package/services/cache/src/cache.model.d.ts +3 -1
- package/services/storage/src/storage.model.d.ts +2 -0
- package/services/unsaved-changes/src/unsaved-changes.adapters.d.ts +9 -0
- package/services/unsaved-changes/src/unsaved-changes.model.d.ts +2 -0
- package/forms/chip/src/pipes/index.d.ts +0 -1
- package/forms/chip/src/pipes/removable-chip.pipe.d.ts +0 -8
|
@@ -2,7 +2,7 @@ import { InjectionToken } from '@angular/core';
|
|
|
2
2
|
import { SdTableOptionPaginate } from '../models/table-option-paginate.model';
|
|
3
3
|
import { SdTableOptionFilter } from '../services/table-filter/table-filter.model';
|
|
4
4
|
import { Operator } from '@sdcorejs/utils/models';
|
|
5
|
-
import { SdTableColumn } from '../models';
|
|
5
|
+
import { SdTableColumn, SdTableOptionLoading } from '../models';
|
|
6
6
|
export interface ISdTableConfiguration {
|
|
7
7
|
paginate?: {
|
|
8
8
|
/** Số dòng mỗi trang. */
|
|
@@ -20,6 +20,10 @@ export interface ISdTableConfiguration {
|
|
|
20
20
|
manualFilter?: SdTableOptionFilter['manualFilter'];
|
|
21
21
|
/** Ẩn toolbar (xóa bộ lọc, thiết lập) của external filter, khi có ít external filter user không cần chức năng này, mặc định là false */
|
|
22
22
|
hideExternalFilterToolbar?: SdTableOptionFilter['hideExternalFilterToolbar'];
|
|
23
|
+
/** Giao diện lọc mặc định cho mọi bảng; `option.filter.mode` thắng. Mặc định là `'default'`. */
|
|
24
|
+
mode?: SdTableOptionFilter['mode'];
|
|
25
|
+
/** Tuỳ chọn mặc định của mode `'query-bar'`; gộp theo từng field với `option.filter.queryBar`. */
|
|
26
|
+
queryBar?: SdTableOptionFilter['queryBar'];
|
|
23
27
|
operator?: {
|
|
24
28
|
list?: Partial<Record<SdTableColumn['type'], Operator[]>>;
|
|
25
29
|
default?: Partial<Record<SdTableColumn['type'], Operator>>;
|
|
@@ -30,6 +34,8 @@ export interface ISdTableConfiguration {
|
|
|
30
34
|
dataEmpty?: string;
|
|
31
35
|
filterEmpty?: string;
|
|
32
36
|
};
|
|
37
|
+
/** Lớp hiển thị khi đang tải cho mọi bảng; `option.loading` của từng bảng thắng theo từng field. */
|
|
38
|
+
loading?: SdTableOptionLoading;
|
|
33
39
|
}
|
|
34
40
|
export declare const DEFAULT_TABLE_CONFIG: ISdTableConfiguration;
|
|
35
41
|
export declare const SD_TABLE_CONFIGURATION: InjectionToken<ISdTableConfiguration>;
|
|
@@ -3,4 +3,5 @@ export type * from './table-column.model';
|
|
|
3
3
|
export type * from './table-aggregate.model';
|
|
4
4
|
export type * from './table-command.model';
|
|
5
5
|
export type * from './table-option-tree.model';
|
|
6
|
+
export type * from './table-option-loading.model';
|
|
6
7
|
export type { SdTableItem, SdTableMeta, SdTableDisplay } from './table-item.model';
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { Signal, TemplateRef } from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import type { SdBadgeData } from '@sdcorejs/angular/components/badge';
|
|
3
3
|
import type { SdSearch } from '@sdcorejs/angular/forms/models';
|
|
4
4
|
import { NestedKeyOf, Operator } from '@sdcorejs/utils/models';
|
|
5
|
-
import { SdUnwrapSignal } from '@sdcorejs/angular/utilities/models';
|
|
6
5
|
import type { SdTableAggregateOperation, SdTableColumnAggregate } from './table-aggregate.model';
|
|
7
6
|
export type SdTableColumn<T = unknown> = SdTableColumnText<T> | SdTableColumnNumber<T> | SdTableColumnBool<T> | SdTableColumnDate<T> | SdTableColumnTime<T> | SdTableColumnValues<T> | SdTableColumnLazyValues<T> | SdTableColumnChildren<T>;
|
|
8
7
|
/**
|
|
@@ -25,14 +24,8 @@ export type SdTableColumnAnyRow = SdTableColumn<any>;
|
|
|
25
24
|
export type SdTableColumnTransformFunc<T = unknown> = (value: any, rowData: T, args?: {
|
|
26
25
|
isExport?: boolean;
|
|
27
26
|
}) => string | Promise<string>;
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
color?: SdUnwrapSignal<SdBadge['color']>;
|
|
31
|
-
icon?: SdUnwrapSignal<SdBadge['icon']>;
|
|
32
|
-
title?: SdUnwrapSignal<SdBadge['title']>;
|
|
33
|
-
}
|
|
34
|
-
type UseBadgeFunc<T = unknown> = (value: any, rowData: T) => Badge;
|
|
35
|
-
type UseBadgeValuesFunc<T = unknown, K = unknown> = (value: any, rowData: T, items: K[]) => Badge;
|
|
27
|
+
type UseBadgeFunc<T = unknown> = (value: any, rowData: T) => SdBadgeData;
|
|
28
|
+
type UseBadgeValuesFunc<T = unknown, K = unknown> = (value: any, rowData: T, items: K[]) => SdBadgeData;
|
|
36
29
|
interface ColumnTitleOption {
|
|
37
30
|
title: string;
|
|
38
31
|
templateRef?: TemplateRef<any>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SdBadge } from '@sdcorejs/angular/components/badge';
|
|
1
|
+
import { SdBadge, type SdBadgeData } from '@sdcorejs/angular/components/badge';
|
|
2
2
|
import { SdUnwrapSignal } from '@sdcorejs/angular/utilities/models';
|
|
3
3
|
import type { SdTableGroupDefContext } from '../directives/sd-table-group-def.directive';
|
|
4
4
|
export interface SdTableMetaSelector {
|
|
@@ -36,6 +36,9 @@ export interface SdTableDisplay {
|
|
|
36
36
|
color: SdUnwrapSignal<SdBadge['color']>;
|
|
37
37
|
icon?: SdUnwrapSignal<SdBadge['icon']>;
|
|
38
38
|
title?: SdUnwrapSignal<SdBadge['title']>;
|
|
39
|
+
label?: SdBadgeData['label'];
|
|
40
|
+
/** Tooltip của badge; ô chỉ dùng khi cột không có `tooltip`. */
|
|
41
|
+
tooltip?: SdBadgeData['tooltip'];
|
|
39
42
|
};
|
|
40
43
|
cellStyle?: Record<string, string>;
|
|
41
44
|
data: string | number | undefined | null;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* How `sd-table` shows a read that is in progress.
|
|
3
|
+
*
|
|
4
|
+
* - No rows on screen (first read, after an empty result or an error): skeleton rows right away.
|
|
5
|
+
* - Rows on screen: the rows stay. A read that takes longer than `showDelay` shows a 2px progress bar under
|
|
6
|
+
* the header and dims the rows; once shown, both stay for at least `minDuration`.
|
|
7
|
+
*
|
|
8
|
+
* Merged field by field: `option.loading`, then `SD_TABLE_CONFIGURATION.loading`, then the defaults. A
|
|
9
|
+
* negative number or a value of the wrong type counts as not set.
|
|
10
|
+
*/
|
|
11
|
+
export interface SdTableOptionLoading {
|
|
12
|
+
/**
|
|
13
|
+
* Skeleton rows while a table without rows loads. `false`: such a read only shows the progress bar,
|
|
14
|
+
* after `showDelay`.
|
|
15
|
+
* @defaultValue true
|
|
16
|
+
*/
|
|
17
|
+
skeleton?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Number of skeleton rows, rounded down to 1–20.
|
|
20
|
+
* @defaultValue 5, or enough rows to fill a table with a fixed height (fill mode, `style.maxHeight`),
|
|
21
|
+
* at most `paginate.pageSize`
|
|
22
|
+
*/
|
|
23
|
+
skeletonRows?: number;
|
|
24
|
+
/**
|
|
25
|
+
* Milliseconds a read of a table with rows waits before the progress bar and the dimmed rows show.
|
|
26
|
+
* Faster reads show nothing. `0` shows them right away.
|
|
27
|
+
* @defaultValue 300
|
|
28
|
+
*/
|
|
29
|
+
showDelay?: number;
|
|
30
|
+
/**
|
|
31
|
+
* Once the progress bar shows, the minimum milliseconds it stays, so it does not flash. Only kept
|
|
32
|
+
* when the new result has rows. `0` hides it as soon as the read ends.
|
|
33
|
+
* @defaultValue 400
|
|
34
|
+
*/
|
|
35
|
+
minDuration?: number;
|
|
36
|
+
/**
|
|
37
|
+
* Dim the rows and ignore pointer input on them while the progress bar shows. `false`: progress bar
|
|
38
|
+
* only. The keyboard is never blocked.
|
|
39
|
+
* @defaultValue true
|
|
40
|
+
*/
|
|
41
|
+
dim?: boolean;
|
|
42
|
+
}
|
|
@@ -6,6 +6,7 @@ import { TableOptionConfig } from './table-option-config.model';
|
|
|
6
6
|
import { SdTableOptionExpand } from './table-option-expand.model';
|
|
7
7
|
import { SdTableOptionExport } from './table-option-export.model';
|
|
8
8
|
import { SdTableOptionGroup } from './table-option-group.model';
|
|
9
|
+
import { SdTableOptionLoading } from './table-option-loading.model';
|
|
9
10
|
import { SdTableOptionPaginate } from './table-option-paginate.model';
|
|
10
11
|
import { SdTableOptionReload } from './table-option-reload.model';
|
|
11
12
|
import { SdTableOptionSelector } from './table-option-selector.model';
|
|
@@ -78,6 +79,11 @@ interface SdTableBaseOption<T = any> {
|
|
|
78
79
|
* Xem thêm tại `SdTableOptionReload`.
|
|
79
80
|
*/
|
|
80
81
|
reload?: SdTableOptionReload<T>;
|
|
82
|
+
/**
|
|
83
|
+
* Cấu hình lớp hiển thị khi đang tải: khung xương, thanh tiến trình, làm mờ dòng cũ.
|
|
84
|
+
* Gộp theo từng field với `SD_TABLE_CONFIGURATION.loading`. Xem thêm tại `SdTableOptionLoading`.
|
|
85
|
+
*/
|
|
86
|
+
loading?: SdTableOptionLoading;
|
|
81
87
|
/**
|
|
82
88
|
* Cấu hình export dữ liệu.
|
|
83
89
|
* Xem thêm tại `SdTableOptionExport` để biết mode `default`/`custom`, mapping,
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { SdTableColumn, SdTableColumnNormal } from '../models/table-column.model';
|
|
2
|
+
/**
|
|
3
|
+
* Leaf columns: each grouped header (`type: 'children'`) is replaced by its children. Filtering, sorting and the
|
|
4
|
+
* filter defaults work on leaves — a grouped header has no value of its own.
|
|
5
|
+
*/
|
|
6
|
+
export declare const leafColumns: <T>(columns: readonly SdTableColumn<T>[] | null | undefined) => SdTableColumnNormal<T>[];
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ConfiguredTable } from '../models/table-option-config.model';
|
|
2
|
+
import { SdTableOption } from '../models/table-option.model';
|
|
3
|
+
/** The column setup of an option before anyone changes it: every column that is not `hidden`, in option order. */
|
|
4
|
+
export declare const defaultConfiguredTable: (option: SdTableOption | undefined) => ConfiguredTable;
|
|
5
|
+
/**
|
|
6
|
+
* Whether the table uses a setup of its own: the stored columns differ from the defaults in order, visibility, title,
|
|
7
|
+
* width (the settings modal or a resize on the table), fixed or truncate, or the inline external filters differ from
|
|
8
|
+
* `defaultShowing`. Columns added to or removed from the option since the setup was stored do not count.
|
|
9
|
+
*/
|
|
10
|
+
export declare const sdTableHasCustomSetup: ({ option, configuration, inlineExternal, }: {
|
|
11
|
+
option: SdTableOption | undefined;
|
|
12
|
+
configuration: ConfiguredTable | undefined;
|
|
13
|
+
inlineExternal?: Record<string, boolean>;
|
|
14
|
+
}) => boolean;
|
|
@@ -56,10 +56,38 @@ export interface SdTableOptionFilter<T = unknown> {
|
|
|
56
56
|
manualFilter?: boolean;
|
|
57
57
|
/** Có thể thu gọn bộ lọc hay không */
|
|
58
58
|
collapsible?: boolean;
|
|
59
|
+
/**
|
|
60
|
+
* Trạng thái thu gọn ban đầu của external filter. Không đặt thì bảng chính của `sd-page-list` thu gọn khi màn
|
|
61
|
+
* thấp (`compact`), các bảng khác mở. Bỏ qua khi `collapsible` là `false`.
|
|
62
|
+
*/
|
|
63
|
+
externalFilterCollapsed?: boolean;
|
|
59
64
|
/** Ẩn toolbar (xóa bộ lọc, thiết lập) của external filter, khi có ít external filter user không cần chức năng này */
|
|
60
65
|
hideExternalFilterToolbar?: boolean;
|
|
61
66
|
/** Hàm xử lý khi trigger clear filter từ external filter */
|
|
62
67
|
onClearFilter?: () => void;
|
|
68
|
+
/**
|
|
69
|
+
* Giao diện lọc. `'query-bar'`: quick search, external filter và filter dưới cột gộp vào một `sd-query-bar` ở đầu
|
|
70
|
+
* bảng; giá trị lọc, cache và `pagingReq` giữ nguyên như `'default'`. Mobile luôn dùng giao diện `'default'`.
|
|
71
|
+
* @defaultValue 'default'
|
|
72
|
+
*/
|
|
73
|
+
mode?: 'default' | 'query-bar';
|
|
74
|
+
/** Chỉ dùng khi `mode` là `'query-bar'`. */
|
|
75
|
+
queryBar?: SdTableOptionFilterQueryBar;
|
|
76
|
+
}
|
|
77
|
+
/** Tuỳ chọn của `filter.mode: 'query-bar'`. */
|
|
78
|
+
export interface SdTableOptionFilterQueryBar {
|
|
79
|
+
/**
|
|
80
|
+
* Cách sửa chip: popover hoặc control ngay trên thanh (`sd-query-bar` mode `'inline'`).
|
|
81
|
+
* @defaultValue 'popover'
|
|
82
|
+
*/
|
|
83
|
+
editor?: 'popover' | 'inline';
|
|
84
|
+
/**
|
|
85
|
+
* Thay danh sách chip ghim mặc định (quick filter đang hiện, external đang hiện inline hoặc `required`). Phần tử là
|
|
86
|
+
* `field` của `quickSearch.filters` / `externalFilters` / `columns`. Field `required` luôn được ghim.
|
|
87
|
+
*/
|
|
88
|
+
pinned?: string[];
|
|
89
|
+
/** Field không đưa vào thanh; giá trị đang có vẫn được gửi đi. */
|
|
90
|
+
exclude?: string[];
|
|
63
91
|
}
|
|
64
92
|
export declare const SdConvertToPagingReq: (filterRequest: SdTableFilterRequest, args: {
|
|
65
93
|
columns?: SdTableColumnAnyRow[];
|
|
@@ -160,5 +188,7 @@ export interface TableFilterRegister {
|
|
|
160
188
|
set: (value: Partial<TableFilterValue>) => TableFilterValue;
|
|
161
189
|
remove: () => void;
|
|
162
190
|
observer: Observable<TableFilterValue>;
|
|
191
|
+
/** Giá trị mà `remove()` sẽ đặt — default của cột, external và quick search (signal đọc tại lúc gọi). Không ghi cache. */
|
|
192
|
+
default?: () => TableFilterValue;
|
|
163
193
|
};
|
|
164
194
|
}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import type { SdQuery, SdQueryField } from '@sdcorejs/angular/components/query-bar';
|
|
2
|
+
import { Filter, Operator } from '@sdcorejs/utils/models';
|
|
3
|
+
import { SdTableColumnAnyRow } from '../../models/table-column.model';
|
|
4
|
+
import type { SdTableExternalFilter, SdTableOptionFilterQueryBar, TableFilterValue } from './table-filter.model';
|
|
5
|
+
import type { SdTableOptionQuickSearch, SdTableQuickSearchFilter } from './table-quick-search.model';
|
|
6
|
+
export type SdTableQuerySourceKind = 'quick' | 'external' | 'column';
|
|
7
|
+
/**
|
|
8
|
+
* How a chip value is stored in the raw record.
|
|
9
|
+
* - `scalar`: one value; `multi`: an array (chip `IN`); `range`: `{ from, to }` (chip `BETWEEN`);
|
|
10
|
+
* - `boolean`: `true` / `false` (external boolean); `flag`: `'1'` / `'0'` (column boolean select).
|
|
11
|
+
*/
|
|
12
|
+
export type SdTableQueryShape = 'scalar' | 'multi' | 'range' | 'boolean' | 'flag';
|
|
13
|
+
/** Field of the bar → the filter it edits. */
|
|
14
|
+
export interface SdTableQuerySource {
|
|
15
|
+
/** `${source}:${field}` — the bar's `SdQueryField.key`. Never reaches filterReq, pagingReq or the cache. */
|
|
16
|
+
key: string;
|
|
17
|
+
source: SdTableQuerySourceKind;
|
|
18
|
+
/** Field of the raw record. */
|
|
19
|
+
field: string;
|
|
20
|
+
column?: SdTableColumnAnyRow;
|
|
21
|
+
external?: SdTableExternalFilter;
|
|
22
|
+
quick?: SdTableQuickSearchFilter;
|
|
23
|
+
shape: SdTableQueryShape;
|
|
24
|
+
/** Operator of a chip with a value when the raw record holds no operator for it. */
|
|
25
|
+
operator: Operator;
|
|
26
|
+
/**
|
|
27
|
+
* What reaches `columnOperator`: nothing (`none`), the chip operator (`chip`, a column whose operator the user
|
|
28
|
+
* picks), or only `NULL` / `NOT_NULL` (`no-data`, a column whose chip operator `IN` / `BETWEEN` / `EQUAL` is
|
|
29
|
+
* implied by the value shape).
|
|
30
|
+
*/
|
|
31
|
+
operatorMode: 'none' | 'chip' | 'no-data';
|
|
32
|
+
}
|
|
33
|
+
export interface SdTableQueryFields {
|
|
34
|
+
/** Fields of the bar, in order: quick filters, external filters, leaf columns. */
|
|
35
|
+
fields: SdQueryField[];
|
|
36
|
+
sources: Map<string, SdTableQuerySource>;
|
|
37
|
+
/** Filters the bar cannot edit. Their raw values stay as they are and are still sent. */
|
|
38
|
+
excluded: {
|
|
39
|
+
field: string;
|
|
40
|
+
reason: string;
|
|
41
|
+
}[];
|
|
42
|
+
/** Column fields hidden behind an external filter of the same field. Their raw value is always cleared. */
|
|
43
|
+
covered: string[];
|
|
44
|
+
/** Column field → bar key its header icon opens (`column:<field>`, or `external:<field>` when covered). */
|
|
45
|
+
columnKeys: Map<string, string>;
|
|
46
|
+
/** The bar shows the search box (bound to `quickSearch.term`). */
|
|
47
|
+
search: boolean;
|
|
48
|
+
/** The table has quick search: the patch carries `quickSearch`. */
|
|
49
|
+
quickSearch: boolean;
|
|
50
|
+
}
|
|
51
|
+
export interface SdTableQueryContext extends SdTableQueryFields {
|
|
52
|
+
/** Column operators of the table defaults — restored when a `NULL` / `NOT_NULL` chip goes away. */
|
|
53
|
+
defaultColumnOperator?: Record<string, Operator>;
|
|
54
|
+
}
|
|
55
|
+
/** A field whose raw value or column operator the bar changed — the table runs that filter's callbacks. */
|
|
56
|
+
export interface SdTableQueryChange {
|
|
57
|
+
key: string;
|
|
58
|
+
/** New raw value (the stored one when only the operator changed). */
|
|
59
|
+
value: unknown;
|
|
60
|
+
valueChanged: boolean;
|
|
61
|
+
/** New column operator, when it changed. */
|
|
62
|
+
operator?: Operator;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Fields of the query bar for a table (handoff section 3): keys, groups, pinned chips, operators, and the filters
|
|
66
|
+
* left out. Order: `quickSearch.filters`, `externalFilters`, then the leaf columns given (children flattened).
|
|
67
|
+
*/
|
|
68
|
+
export declare const sdTableQueryFields: (args: {
|
|
69
|
+
/** Leaf columns on screen, after `SD_TABLE_CONFIGURATION.filter.operator` was merged in. */
|
|
70
|
+
columns: SdTableColumnAnyRow[];
|
|
71
|
+
externalFilters?: SdTableExternalFilter[];
|
|
72
|
+
quickSearch?: SdTableOptionQuickSearch;
|
|
73
|
+
/** `TableFilterConfiguration.inlineExternal`: external filters shown inline are pinned by default. */
|
|
74
|
+
inlineExternal: Record<string, boolean>;
|
|
75
|
+
queryBar?: SdTableOptionFilterQueryBar;
|
|
76
|
+
/** `hideInlineFilter === true`: no column goes on the bar. */
|
|
77
|
+
hideColumns: boolean;
|
|
78
|
+
labels: {
|
|
79
|
+
filters: string;
|
|
80
|
+
columns: string;
|
|
81
|
+
};
|
|
82
|
+
/** Fields with an `sdTableFilterDef` template. */
|
|
83
|
+
filterDefs?: string[];
|
|
84
|
+
/** Items the table loaded for `values` columns whose `items` is a function. */
|
|
85
|
+
cacheValues?: Record<string, unknown[]>;
|
|
86
|
+
}) => SdTableQueryFields;
|
|
87
|
+
/**
|
|
88
|
+
* Raw record → bar query (handoff section 5). Chips: every pinned field, then unpinned fields that filter something,
|
|
89
|
+
* in the order of `prev` and then declaration order. A chip whose operator and data equal the one in `prev` is that
|
|
90
|
+
* same object — sd-query-bar tracks chips by identity.
|
|
91
|
+
*/
|
|
92
|
+
export declare const tableFilterToQuery: (value: TableFilterValue, ctx: SdTableQueryContext, prev?: Filter[]) => SdQuery;
|
|
93
|
+
/** Keys of the bar fields whose applied value filters something — header icons show them as filtering. */
|
|
94
|
+
export declare const sdTableActiveQueryKeys: (value: TableFilterValue, ctx: SdTableQueryContext) => Set<string>;
|
|
95
|
+
/**
|
|
96
|
+
* Folds a change of the applied state into a bar that holds unapplied edits (manualFilter, or a chip edited while the
|
|
97
|
+
* state changed). A key whose applied chip did not change between `before` and `after` keeps its draft — edited,
|
|
98
|
+
* added or removed by the user. A key that changed takes the applied chip: the outside change wins for that field.
|
|
99
|
+
* New applied chips go after the draft ones.
|
|
100
|
+
*/
|
|
101
|
+
export declare const mergeQueryDraft: (draft: Filter[], before: Filter[], after: Filter[]) => Filter[];
|
|
102
|
+
/**
|
|
103
|
+
* Bar query → raw record (handoff section 5). Every field of the bar is written: its chip, or the empty value when
|
|
104
|
+
* it has none. Covered columns are cleared; excluded fields are left alone. A value equivalent to the stored one
|
|
105
|
+
* (`[]` and `null`, `'1'` and `true`, …) keeps the stored representation, so a round trip changes nothing.
|
|
106
|
+
*/
|
|
107
|
+
export declare const queryToTableFilter: (query: SdQuery, ctx: SdTableQueryContext, current: TableFilterValue) => {
|
|
108
|
+
patch: Pick<TableFilterValue, "quickSearch" | "externalFilter" | "columnFilter" | "columnOperator">;
|
|
109
|
+
changed: SdTableQueryChange[];
|
|
110
|
+
};
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import type { SdTableOptionLoading } from '../../models/table-option-loading.model';
|
|
2
|
+
/** What the loading layer draws: nothing, skeleton rows, or the progress bar over dimmed rows. */
|
|
3
|
+
export type SdTableLoadingView = 'none' | 'skeleton' | 'refresh';
|
|
4
|
+
/** `SdTableOptionLoading` after merging; `skeletonRows` stays unset when nobody set it (5, or fill the table). */
|
|
5
|
+
export interface TableLoadingSettings {
|
|
6
|
+
readonly skeleton: boolean;
|
|
7
|
+
readonly skeletonRows?: number;
|
|
8
|
+
readonly showDelay: number;
|
|
9
|
+
readonly minDuration: number;
|
|
10
|
+
readonly dim: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare const TABLE_SKELETON_ROWS = 5;
|
|
13
|
+
export declare const TABLE_SKELETON_MAX_ROWS = 20;
|
|
14
|
+
/** Field by field: `option.loading`, then `SD_TABLE_CONFIGURATION.loading`, then the defaults. Invalid values count as not set. */
|
|
15
|
+
export declare function resolveTableLoading(option?: SdTableOptionLoading | null, configuration?: SdTableOptionLoading | null): TableLoadingSettings;
|
|
16
|
+
/** A displayed column as the skeleton sees it. */
|
|
17
|
+
export interface TableSkeletonColumn {
|
|
18
|
+
readonly field: string;
|
|
19
|
+
/** `SdTableColumn['type']`; unset for the table's own columns (`sdSelection`, `sdIndex`, …). */
|
|
20
|
+
readonly type?: string;
|
|
21
|
+
readonly align?: 'right';
|
|
22
|
+
readonly badge?: boolean;
|
|
23
|
+
readonly template?: boolean;
|
|
24
|
+
}
|
|
25
|
+
/** One skeleton cell. `none` leaves it empty; `hidden` mirrors the hidden cell of a `children` column. */
|
|
26
|
+
export interface TableSkeletonCell {
|
|
27
|
+
readonly field: string;
|
|
28
|
+
readonly shape: 'bar' | 'pill' | 'box' | 'none';
|
|
29
|
+
readonly align: 'start' | 'end' | 'center';
|
|
30
|
+
readonly width?: string;
|
|
31
|
+
readonly maxWidth?: string;
|
|
32
|
+
readonly hidden?: boolean;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* `rows` skeleton rows over the displayed columns. Bar widths follow the column type, the row `i` and the data
|
|
36
|
+
* column `j` (the table's own columns do not count), so the rows look like text without repeating.
|
|
37
|
+
*/
|
|
38
|
+
export declare function buildTableSkeleton(columns: readonly TableSkeletonColumn[], rows: number): TableSkeletonCell[][];
|
|
39
|
+
/** 5 rows × 4 text columns, without a header: what the table shows before its configuration is ready. */
|
|
40
|
+
export declare const TABLE_GENERIC_SKELETON: TableSkeletonCell[][];
|
|
41
|
+
/**
|
|
42
|
+
* Rows that fill the visible body of a table with a fixed height, at most `pageSize` and 20; `undefined` when
|
|
43
|
+
* the height is not fixed or not measurable yet.
|
|
44
|
+
*/
|
|
45
|
+
export declare function skeletonFillRows(body: number, rowHeight: number, pageSize?: number): number | undefined;
|
|
46
|
+
/** A resolved `max-height` in pixels; `undefined` for `none`, percentages and anything else not measurable. */
|
|
47
|
+
export declare function pixelLength(value: string | null | undefined): number | undefined;
|
|
48
|
+
/**
|
|
49
|
+
* - `skeleton`: the table has no rows and something is on its way — a read is loading, the first read of the
|
|
50
|
+
* option is scheduled, the configuration is not ready yet, or a read replaces one that showed the skeleton
|
|
51
|
+
* (`pending`).
|
|
52
|
+
* - `refresh`: the progress bar is on and there is something under it: a read, a read waiting to replace it
|
|
53
|
+
* (`scheduled`), or the rows it keeps.
|
|
54
|
+
*/
|
|
55
|
+
export declare function tableLoadingView(state: {
|
|
56
|
+
skeleton: boolean;
|
|
57
|
+
loading: boolean;
|
|
58
|
+
pending: boolean;
|
|
59
|
+
scheduled: boolean;
|
|
60
|
+
rows: boolean;
|
|
61
|
+
refresh: boolean;
|
|
62
|
+
}): SdTableLoadingView;
|
|
63
|
+
/** Cancels a callback that `schedule` registered. */
|
|
64
|
+
export type TableTimerCancel = () => void;
|
|
65
|
+
/**
|
|
66
|
+
* Turns the progress bar of a table on and off. It comes on once the table has been busy for `showDelay` and
|
|
67
|
+
* stays for at least `minDuration`. Busy means a read is loading, or a read that replaces it is waiting in the
|
|
68
|
+
* schedule while the bar already shows: the debounce between two reads must not switch the bar off, but it
|
|
69
|
+
* never switches the bar on either.
|
|
70
|
+
*/
|
|
71
|
+
export declare class TableRefreshTimer {
|
|
72
|
+
#private;
|
|
73
|
+
private readonly schedule;
|
|
74
|
+
private readonly now;
|
|
75
|
+
/** Progress bar (and dimmed rows) on. */
|
|
76
|
+
readonly shown: import("@angular/core").Signal<boolean>;
|
|
77
|
+
constructor(schedule: (callback: () => void, ms: number) => TableTimerCancel, now?: () => number);
|
|
78
|
+
/**
|
|
79
|
+
* @param state.loading `loading()` of the table.
|
|
80
|
+
* @param state.scheduled a read waits in the schedule (debounce).
|
|
81
|
+
* @param state.skeleton the table draws skeleton rows for this read, so no bar is scheduled.
|
|
82
|
+
* @param state.rows the table has rows; `minDuration` is only kept over a result with rows.
|
|
83
|
+
*/
|
|
84
|
+
update(state: {
|
|
85
|
+
loading: boolean;
|
|
86
|
+
scheduled: boolean;
|
|
87
|
+
skeleton: boolean;
|
|
88
|
+
rows: boolean;
|
|
89
|
+
}, settings: Pick<TableLoadingSettings, 'showDelay' | 'minDuration'>): void;
|
|
90
|
+
destroy(): void;
|
|
91
|
+
}
|
|
@@ -59,6 +59,8 @@ export declare const initTreeMeta: <T>(rows: SdTableItem<T>[], option: SdTableOp
|
|
|
59
59
|
export declare const flattenTree: <T>(roots: SdTableItem<T>[], option?: SdTableOptionTree, visited?: Set<string>) => SdTableItem<T>[];
|
|
60
60
|
/** Thu thập mọi SdTableItem đã format trong cây (kể cả node đang collapse). */
|
|
61
61
|
export declare const collectFormattedTreeRows: <T>(roots: SdTableItem<T>[]) => SdTableItem<T>[];
|
|
62
|
+
/** Rows a tree table shows: the roots plus the formatted children of every expanded row, at every level. */
|
|
63
|
+
export declare const countVisibleTreeRows: <T>(roots: SdTableItem<T>[]) => number;
|
|
62
64
|
/** Flatten ALL nodes regardless of expand state — used for export */
|
|
63
65
|
export declare const flattenTreeAll: <T>(roots: SdTableItem<T>[], option?: SdTableOptionTree, visited?: Set<string>) => SdTableItem<T>[];
|
|
64
66
|
/** Flatten raw data tree for export (ignores expand state) */
|
|
@@ -12,12 +12,15 @@ import { SdTableTitleDefDirective } from './directives/sd-table-title-def.direct
|
|
|
12
12
|
import { SdTableCommandHeaderDefDirective } from './directives/sd-table-command-header-def.directive';
|
|
13
13
|
import { SdTableQuickSearchRightDefDirective } from './directives/sd-table-quick-search-right-def.directive';
|
|
14
14
|
import { SdTableQuickSearchValue } from './services/table-filter/table-quick-search.model';
|
|
15
|
+
import { SdQuery, SdQueryBar, SdQueryBarOption } from '@sdcorejs/angular/components/query-bar';
|
|
16
|
+
import { SdTableQueryContext } from './services/table-filter/table-query-bar.util';
|
|
15
17
|
import { SdTableRowMobileDefDirective } from './directives/sd-table-row-mobile-def.directive';
|
|
16
18
|
import { SdTableMobileAction } from './components/mobile-cards/mobile-action.model';
|
|
17
19
|
import { SdTableColumn } from './models/table-column.model';
|
|
18
20
|
import { SdTableCommand } from './models/table-command.model';
|
|
19
21
|
import { SdTableOption } from './models/table-option.model';
|
|
20
22
|
import { SdTableUnknownTotalPageEvent, SdTableUnknownTotalPagerState } from './components/unknown-total-paginator/unknown-total-paginator.component';
|
|
23
|
+
import { SdTableLoadingView, TableSkeletonCell } from './services/table-loading/table-loading.util';
|
|
21
24
|
import { SdTableFilterRequest, TableFilterRegister, TableFilterValue } from './services/table-filter/table-filter.model';
|
|
22
25
|
import { CdkDrag, CdkDragDrop, CdkDropList } from '@angular/cdk/drag-drop';
|
|
23
26
|
import { SdDataStateTemplateDirective } from '@sdcorejs/angular/components/data-state';
|
|
@@ -26,7 +29,7 @@ import { SdQuickAction } from '@sdcorejs/angular/components/quick-action';
|
|
|
26
29
|
import { SdScrollDirective } from '@sdcorejs/angular/directives';
|
|
27
30
|
import { AggregateRenderHost } from './pipes/sd-aggregate-rows.pipe';
|
|
28
31
|
import { AggregateSnapshot } from './services/table-aggregate.util';
|
|
29
|
-
import { Operator } from '@sdcorejs/utils/models';
|
|
32
|
+
import { Filter, Operator } from '@sdcorejs/utils/models';
|
|
30
33
|
import { ExternalFilterComponent, MobileFilterComponent } from './components';
|
|
31
34
|
import { ConfigComponent } from './components/config/config.component';
|
|
32
35
|
import { SdPopupExport } from './components/popup-export/popup-export.component';
|
|
@@ -77,6 +80,11 @@ export declare class SdTable<T = unknown> implements AfterViewInit, OnDestroy {
|
|
|
77
80
|
readonly sdRowMobileDef: import("@angular/core").Signal<SdTableRowMobileDefDirective<T> | undefined>;
|
|
78
81
|
readonly isMobile: import("@angular/core").Signal<boolean>;
|
|
79
82
|
readonly mobileCards: import("@angular/core").Signal<boolean>;
|
|
83
|
+
/**
|
|
84
|
+
* The footer settings button carries a dot while the table uses a setup of its own: stored columns that differ from
|
|
85
|
+
* the option (settings modal or a resize on the table) or inline external filters that differ from `defaultShowing`.
|
|
86
|
+
*/
|
|
87
|
+
readonly hasCustomSetup: import("@angular/core").Signal<boolean>;
|
|
80
88
|
cellDef: import("@angular/core").Signal<Record<string, SdTableCellDefDirective<any>>>;
|
|
81
89
|
footerDef: import("@angular/core").Signal<Record<string, SdMaterialFooterDefDirective<any>>>;
|
|
82
90
|
hasFooter: import("@angular/core").Signal<boolean>;
|
|
@@ -93,6 +101,19 @@ export declare class SdTable<T = unknown> implements AfterViewInit, OnDestroy {
|
|
|
93
101
|
loadError: import("@angular/core").WritableSignal<boolean>;
|
|
94
102
|
/** `paginate.total: 'unknown'` on a server table. */
|
|
95
103
|
readonly unknownTotal: import("@angular/core").Signal<boolean>;
|
|
104
|
+
/** `option.loading`, then `SD_TABLE_CONFIGURATION.loading`, then the defaults, field by field. */
|
|
105
|
+
readonly loadingSettings: import("@angular/core").Signal<import("./services/table-loading/table-loading.util").TableLoadingSettings>;
|
|
106
|
+
/**
|
|
107
|
+
* What the loading layer draws (host `data-loading-view`). Derived only; `loading()`, `data-loading` and
|
|
108
|
+
* `aria-busy` keep following every read at once.
|
|
109
|
+
*/
|
|
110
|
+
readonly loadingView: import("@angular/core").Signal<SdTableLoadingView>;
|
|
111
|
+
/** Text of the `.sd-table-live` status region: "loading" once the loading layer shows, then the result. */
|
|
112
|
+
protected readonly liveMessage: import("@angular/core").Signal<string>;
|
|
113
|
+
/** Skeleton rows of the desktop table (`matNoDataRow`) while `loadingView()` is `skeleton`; empty otherwise. */
|
|
114
|
+
protected readonly skeleton: import("@angular/core").Signal<TableSkeletonCell[][]>;
|
|
115
|
+
/** What the table shows before its configuration is ready: 5 rows × 4 bars, without a header. */
|
|
116
|
+
protected readonly genericSkeleton: TableSkeletonCell[][];
|
|
96
117
|
readonly unknownTotalPager: import("@angular/core").Signal<SdTableUnknownTotalPagerState | undefined>;
|
|
97
118
|
/** Hidden until a page has loaded, and while the first page is the only page (same rule as `total <= pageSize`). */
|
|
98
119
|
readonly unknownTotalPagerVisible: import("@angular/core").Signal<boolean>;
|
|
@@ -163,6 +184,28 @@ export declare class SdTable<T = unknown> implements AfterViewInit, OnDestroy {
|
|
|
163
184
|
readonly quickSearchValue: import("@angular/core").WritableSignal<SdTableQuickSearchValue>;
|
|
164
185
|
private readonly quickSearchControl;
|
|
165
186
|
readonly quickSearchValid: import("@angular/core").Signal<boolean>;
|
|
187
|
+
/** `filter.mode` sau khi gộp `SD_TABLE_CONFIGURATION.filter.mode`. */
|
|
188
|
+
readonly filterMode: import("@angular/core").Signal<"default" | "query-bar">;
|
|
189
|
+
/** Giao diện lọc đang hiển thị: mobile luôn dùng giao diện mặc định; giá trị lọc không đổi khi đổi viewport. */
|
|
190
|
+
readonly effectiveFilterMode: import("@angular/core").Signal<"default" | "query-bar">;
|
|
191
|
+
/** Thanh query bar thay quick search, external filter và filter dưới cột. */
|
|
192
|
+
readonly queryBarMode: import("@angular/core").Signal<boolean>;
|
|
193
|
+
readonly queryBar: import("@angular/core").Signal<SdQueryBar | undefined>;
|
|
194
|
+
/** Chip trên thanh (nháp của thanh) và ô tìm — gắn hai chiều với `sd-query-bar`. */
|
|
195
|
+
readonly barFilters: import("@angular/core").WritableSignal<Filter[]>;
|
|
196
|
+
readonly barSearch: import("@angular/core").WritableSignal<string>;
|
|
197
|
+
readonly queryBarHintId: string;
|
|
198
|
+
/** Field của thanh và bảng tra nguồn; `undefined` khi không ở mode query-bar. */
|
|
199
|
+
readonly queryBarModel: import("@angular/core").Signal<SdTableQueryContext | undefined>;
|
|
200
|
+
readonly queryBarOption: import("@angular/core").Signal<SdQueryBarOption<unknown> | undefined>;
|
|
201
|
+
/** Khoá thanh của các field đang lọc theo giá trị đã áp dụng — icon lọc ở header của chúng luôn hiện. */
|
|
202
|
+
readonly queryBarActiveKeys: import("@angular/core").Signal<Set<string>>;
|
|
203
|
+
/** `aria-label` của icon lọc ở header: "Lọc theo …" / "Đang lọc theo …". */
|
|
204
|
+
filterTriggerLabel(column: SdTableColumn, active: boolean): string;
|
|
205
|
+
/** Icon lọc ở header: mở chip của field trên thanh (tạo chip nếu chưa có); đóng popover thì focus về icon. */
|
|
206
|
+
openQueryBarField(key: string, trigger: EventTarget | null): void;
|
|
207
|
+
/** Dòng nhắc dưới thanh: field bắt buộc còn rỗng, kể cả quick filter bị ẩn (vẫn chặn đọc). */
|
|
208
|
+
readonly queryBarHint: import("@angular/core").Signal<string>;
|
|
166
209
|
key: string;
|
|
167
210
|
columnOperator: Record<string, Operator>;
|
|
168
211
|
columnFilter?: NonNullable<TableFilterValue['columnFilter']>;
|
|
@@ -172,6 +215,10 @@ export declare class SdTable<T = unknown> implements AfterViewInit, OnDestroy {
|
|
|
172
215
|
exporting: import("@angular/core").WritableSignal<boolean>;
|
|
173
216
|
exportTitle: import("@angular/core").Signal<string>;
|
|
174
217
|
tableConfiguration: ISdTableConfiguration | null;
|
|
218
|
+
/** Bảng chính của khung trang (sd-page-list): lấp phần chiều cao còn lại, giữ tối thiểu header + 5 dòng. */
|
|
219
|
+
readonly fill: import("@angular/core").Signal<boolean>;
|
|
220
|
+
/** External filter của bảng chính thu gọn khi khung trang đang ở chế độ màn thấp. */
|
|
221
|
+
readonly externalFilterCollapsedByDefault: import("@angular/core").Signal<boolean>;
|
|
175
222
|
constructor();
|
|
176
223
|
ngAfterViewInit(): void;
|
|
177
224
|
ngOnDestroy(): void;
|
|
@@ -181,12 +228,22 @@ export declare class SdTable<T = unknown> implements AfterViewInit, OnDestroy {
|
|
|
181
228
|
/** Retry current hydration or the still-valid failed server request, without resetting filters or paging. */
|
|
182
229
|
retryRead: () => Promise<void>;
|
|
183
230
|
reload: (force?: boolean, scrollTop?: boolean) => Promise<void>;
|
|
231
|
+
/**
|
|
232
|
+
* Reads the first page again with the current filters and sort. For a condition the table does not own (status
|
|
233
|
+
* tabs, score cards above the table): changing it must restart paging, as a filter of the table does.
|
|
234
|
+
*/
|
|
235
|
+
reloadFirstPage: () => Promise<void>;
|
|
184
236
|
exportExcel: (columns?: SdExcelColumn[]) => void;
|
|
185
237
|
exportCSV: (columns?: SdExcelColumn[]) => void;
|
|
186
238
|
exportCustom: () => void;
|
|
187
239
|
onTreeToggle: (row: SdTableItem<T>) => Promise<void>;
|
|
188
240
|
onFilterChange: () => void;
|
|
189
241
|
onQuickSearchChange: (value: SdTableQuickSearchValue) => void;
|
|
242
|
+
/**
|
|
243
|
+
* Query bar `(apply)`: ghi cả thanh vào filter register trong một lần `value.set`, rồi gọi callback của các filter
|
|
244
|
+
* vừa đổi như control mặc định. Reload, cache, `filtered` đi đường cũ.
|
|
245
|
+
*/
|
|
246
|
+
onQueryBarApply: (query: SdQuery) => void;
|
|
190
247
|
onFilterCommit: () => void;
|
|
191
248
|
onExpand: (row: SdTableItem<T>) => Promise<void>;
|
|
192
249
|
onSelect: (rowData: SdTableItem<T>) => void;
|
|
@@ -244,6 +301,8 @@ export declare class SdTable<T = unknown> implements AfterViewInit, OnDestroy {
|
|
|
244
301
|
get dataItems(): T[];
|
|
245
302
|
get selectedItems(): T[];
|
|
246
303
|
detectChanges: () => void;
|
|
304
|
+
/** Restore defaults in the settings modal also puts the inline external filters back to `defaultShowing`. */
|
|
305
|
+
onConfigDefaultsRestored: () => void;
|
|
247
306
|
onColumnResize: (field: string, width: string) => void;
|
|
248
307
|
getSortAria: (field: string) => "none" | "ascending" | "descending";
|
|
249
308
|
onOperatorChange: (column: SdTableColumn, operator: Operator | undefined) => void;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
/**
|
|
3
|
+
* Icon SVG theo đuôi file (đợt 3 · 4a). Một component dùng chung để bộ SVG (inline thành data URI lúc build) chỉ nằm một
|
|
4
|
+
* lần trong CSS, thay cho ba bảng `[class]` + `content: url(...)` từng lặp ở ô tải lên và popup. Nội bộ, không export.
|
|
5
|
+
*/
|
|
6
|
+
export declare class SdUploadFileTypeIcon {
|
|
7
|
+
/** Đuôi file (`pdf`, `.PDF`…); không có icon thì dùng icon `file`. */
|
|
8
|
+
readonly extension: import("@angular/core").InputSignal<string | null | undefined>;
|
|
9
|
+
/** Cạnh icon (px). */
|
|
10
|
+
readonly size: import("@angular/core").InputSignal<number>;
|
|
11
|
+
readonly icon: import("@angular/core").Signal<"3ds" | "ai" | "asp" | "avi" | "bin" | "com" | "css" | "csv" | "dbf" | "dll" | "doc" | "docx" | "dwg" | "eml" | "eps" | "exe" | "file" | "fla" | "gif" | "html" | "ico" | "ini" | "iso" | "jar" | "jpg" | "js" | "mkv" | "mov" | "mp3" | "mp4" | "nfo" | "obj" | "otf" | "pdf" | "pkg" | "png" | "ppt" | "pptx" | "psd" | "rtf" | "svg" | "tiff" | "ttf" | "txt" | "vcf" | "wav" | "wmv" | "xls" | "xlsx" | "xml" | "zip">;
|
|
12
|
+
readonly iconClass: import("@angular/core").Signal<string>;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SdUploadFileTypeIcon, never>;
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SdUploadFileTypeIcon, "sd-upload-file-type-icon", never, { "extension": { "alias": "extension"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
15
|
+
}
|