@sdcorejs/angular 19.3.3 → 19.3.5
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/components/modal/src/modal.component.d.ts +6 -1
- package/components/query-bar/index.d.ts +1 -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-chip-text.d.ts +27 -0
- 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/table/src/components/config/config-width.util.d.ts +9 -0
- package/components/table/src/components/config/config.component.d.ts +126 -11
- package/components/table/src/components/filter/column-filter/column-filter.component.d.ts +5 -0
- package/components/table/src/components/filter/mobile-filter/mobile-field-sheet.component.d.ts +35 -0
- package/components/table/src/components/filter/mobile-filter/mobile-filter-field.component.d.ts +64 -0
- package/components/table/src/components/filter/mobile-filter/mobile-filter-summary.d.ts +11 -0
- package/components/table/src/components/filter/mobile-filter/mobile-filter.component.d.ts +47 -15
- package/components/table/src/components/mobile-cards/mobile-card-data.component.d.ts +45 -0
- package/components/table/src/components/mobile-cards/mobile-cards.component.d.ts +13 -1
- package/components/table/src/components/mobile-sheet/mobile-sheet.d.ts +35 -0
- package/components/table/src/components/mobile-sort/mobile-sort-sheet.component.d.ts +36 -0
- package/components/table/src/components/mobile-toolbar/mobile-filter-chips.component.d.ts +49 -0
- package/components/table/src/components/mobile-toolbar/mobile-tools-sheet.component.d.ts +48 -0
- package/components/table/src/components/mobile-toolbar/pull-refresh.component.d.ts +21 -0
- package/components/table/src/configurations/table.configuration.d.ts +13 -0
- package/components/table/src/models/index.d.ts +1 -0
- package/components/table/src/models/table-mobile.model.d.ts +55 -0
- package/components/table/src/models/table-option.model.d.ts +11 -1
- package/components/table/src/services/column-leaf.util.d.ts +6 -0
- package/components/table/src/services/config-custom.util.d.ts +22 -0
- package/components/table/src/services/mobile/mobile-view.util.d.ts +77 -0
- package/components/table/src/services/table-export/table-export.service.d.ts +2 -0
- package/components/table/src/services/table-filter/table-filter.model.d.ts +35 -0
- package/components/table/src/services/table-filter/table-mobile-filter.util.d.ts +54 -0
- package/components/table/src/services/table-filter/table-query-bar.util.d.ts +130 -0
- package/components/table/src/table.component.d.ts +91 -4
- package/fesm2022/sdcorejs-angular-components-form-generic.mjs +5 -5
- package/fesm2022/sdcorejs-angular-components-form-generic.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-import-excel.mjs +1 -1
- package/fesm2022/sdcorejs-angular-components-import-excel.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-modal.mjs +45 -9
- package/fesm2022/sdcorejs-angular-components-modal.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-query-bar.mjs +515 -77
- package/fesm2022/sdcorejs-angular-components-query-bar.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-table.mjs +6258 -3377
- package/fesm2022/sdcorejs-angular-components-table.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-entity-picker.mjs +1 -1
- package/fesm2022/sdcorejs-angular-forms-entity-picker.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-select.mjs +23 -4
- package/fesm2022/sdcorejs-angular-forms-select.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-tree-select.mjs +1 -1
- package/fesm2022/sdcorejs-angular-forms-tree-select.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-i18n.mjs +330 -5
- package/fesm2022/sdcorejs-angular-i18n.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-modules-layout.mjs +97 -11
- package/fesm2022/sdcorejs-angular-modules-layout.mjs.map +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-base-api.service-CVEKaR8U.mjs → sdcorejs-angular-modules-pattern-base-api.service-DK33LxHm.mjs} +2 -2
- package/fesm2022/{sdcorejs-angular-modules-pattern-base-api.service-CVEKaR8U.mjs.map → sdcorejs-angular-modules-pattern-base-api.service-DK33LxHm.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-create-side-drawer.component-CND3d2zl.mjs → sdcorejs-angular-modules-pattern-create-side-drawer.component-B1BUBiag.mjs} +18 -4
- 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-BqHybMk0.mjs → sdcorejs-angular-modules-pattern-create-side-drawer.component-B27ZX8Co.mjs} +18 -4
- package/fesm2022/sdcorejs-angular-modules-pattern-create-side-drawer.component-B27ZX8Co.mjs.map +1 -0
- package/fesm2022/{sdcorejs-angular-modules-pattern-create.component-CB_wJIP8.mjs → sdcorejs-angular-modules-pattern-create.component-Bi2tMFHf.mjs} +2 -2
- package/fesm2022/{sdcorejs-angular-modules-pattern-create.component-CB_wJIP8.mjs.map → sdcorejs-angular-modules-pattern-create.component-Bi2tMFHf.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-create.component-DlP4BrhU.mjs → sdcorejs-angular-modules-pattern-create.component-CPwGkrNk.mjs} +36 -12
- package/fesm2022/sdcorejs-angular-modules-pattern-create.component-CPwGkrNk.mjs.map +1 -0
- package/fesm2022/{sdcorejs-angular-modules-pattern-create.component-BbDoQccI.mjs → sdcorejs-angular-modules-pattern-create.component-VCbA_FkZ.mjs} +19 -5
- package/fesm2022/sdcorejs-angular-modules-pattern-create.component-VCbA_FkZ.mjs.map +1 -0
- package/fesm2022/{sdcorejs-angular-modules-pattern-customer.service-VAMePx_q.mjs → sdcorejs-angular-modules-pattern-customer.service-CehsdBRP.mjs} +2 -2
- package/fesm2022/{sdcorejs-angular-modules-pattern-customer.service-VAMePx_q.mjs.map → sdcorejs-angular-modules-pattern-customer.service-CehsdBRP.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-detail-side-drawer.component-BD79VR0c.mjs → sdcorejs-angular-modules-pattern-detail-side-drawer.component-CPhLTiyx.mjs} +2 -2
- package/fesm2022/{sdcorejs-angular-modules-pattern-detail-side-drawer.component-BD79VR0c.mjs.map → sdcorejs-angular-modules-pattern-detail-side-drawer.component-CPhLTiyx.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-detail.component-BhCjw6ZL.mjs → sdcorejs-angular-modules-pattern-detail.component-5kI7wGdX.mjs} +27 -10
- package/fesm2022/sdcorejs-angular-modules-pattern-detail.component-5kI7wGdX.mjs.map +1 -0
- package/fesm2022/{sdcorejs-angular-modules-pattern-detail.component-B1rFhbOc.mjs → sdcorejs-angular-modules-pattern-detail.component-CjAy-B9K.mjs} +2 -2
- package/fesm2022/{sdcorejs-angular-modules-pattern-detail.component-B1rFhbOc.mjs.map → sdcorejs-angular-modules-pattern-detail.component-CjAy-B9K.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-flow.component-BeH-NYvE.mjs → sdcorejs-angular-modules-pattern-flow.component-DObN_wCR.mjs} +2 -2
- package/fesm2022/{sdcorejs-angular-modules-pattern-flow.component-BeH-NYvE.mjs.map → sdcorejs-angular-modules-pattern-flow.component-DObN_wCR.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-general-information-form.component-1bi0JZdf.mjs → sdcorejs-angular-modules-pattern-general-information-form.component-C_ST-ld5.mjs} +3 -3
- package/fesm2022/sdcorejs-angular-modules-pattern-general-information-form.component-C_ST-ld5.mjs.map +1 -0
- package/fesm2022/{sdcorejs-angular-modules-pattern-index.component-BAZLCVci.mjs → sdcorejs-angular-modules-pattern-index.component-TTrWCXIT.mjs} +4 -4
- 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-DTWHhNNl.mjs → sdcorejs-angular-modules-pattern-list.component-BY5gjtNS.mjs} +2 -2
- package/fesm2022/{sdcorejs-angular-modules-pattern-list.component-DTWHhNNl.mjs.map → sdcorejs-angular-modules-pattern-list.component-BY5gjtNS.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-list.component-D643jEmo.mjs → sdcorejs-angular-modules-pattern-list.component-CJ38CJXg.mjs} +3 -3
- package/fesm2022/{sdcorejs-angular-modules-pattern-list.component-D643jEmo.mjs.map → sdcorejs-angular-modules-pattern-list.component-CJ38CJXg.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-list.component-Cex41xzy.mjs → sdcorejs-angular-modules-pattern-list.component-CdgPtSjJ.mjs} +2 -2
- package/fesm2022/{sdcorejs-angular-modules-pattern-list.component-Cex41xzy.mjs.map → sdcorejs-angular-modules-pattern-list.component-CdgPtSjJ.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-list.component-qH-YO6wP.mjs → sdcorejs-angular-modules-pattern-list.component-DKIwrluh.mjs} +2 -2
- package/fesm2022/{sdcorejs-angular-modules-pattern-list.component-qH-YO6wP.mjs.map → sdcorejs-angular-modules-pattern-list.component-DKIwrluh.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-list.component-YJUJsrIZ.mjs → sdcorejs-angular-modules-pattern-list.component-W9vY7HrT.mjs} +2 -2
- package/fesm2022/{sdcorejs-angular-modules-pattern-list.component-YJUJsrIZ.mjs.map → sdcorejs-angular-modules-pattern-list.component-W9vY7HrT.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-mock-backend.factory-S0Vuy6Oc.mjs → sdcorejs-angular-modules-pattern-mock-backend.factory-CI0H_5a4.mjs} +2 -2
- package/fesm2022/{sdcorejs-angular-modules-pattern-mock-backend.factory-S0Vuy6Oc.mjs.map → sdcorejs-angular-modules-pattern-mock-backend.factory-CI0H_5a4.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-pattern-source-viewer-BpLQaYP5.mjs → sdcorejs-angular-modules-pattern-pattern-source-viewer-BqHwKfoc.mjs} +9 -2
- package/fesm2022/sdcorejs-angular-modules-pattern-pattern-source-viewer-BqHwKfoc.mjs.map +1 -0
- package/fesm2022/{sdcorejs-angular-modules-pattern-pattern-source.generated-BrejHvB2.mjs → sdcorejs-angular-modules-pattern-pattern-source.generated-CIiLOizq.mjs} +21 -19
- package/fesm2022/sdcorejs-angular-modules-pattern-pattern-source.generated-CIiLOizq.mjs.map +1 -0
- package/fesm2022/{sdcorejs-angular-modules-pattern-product.service-Ba73HPGG.mjs → sdcorejs-angular-modules-pattern-product.service-D829aEk5.mjs} +2 -2
- package/fesm2022/{sdcorejs-angular-modules-pattern-product.service-Ba73HPGG.mjs.map → sdcorejs-angular-modules-pattern-product.service-D829aEk5.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-profile.component-CBlN7eEn.mjs → sdcorejs-angular-modules-pattern-profile.component-BEFVmSSj.mjs} +2 -2
- package/fesm2022/{sdcorejs-angular-modules-pattern-profile.component-CBlN7eEn.mjs.map → sdcorejs-angular-modules-pattern-profile.component-BEFVmSSj.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-routes-BvzFafUW.mjs → sdcorejs-angular-modules-pattern-routes-1kDb9T7_.mjs} +4 -4
- package/fesm2022/{sdcorejs-angular-modules-pattern-routes-BvzFafUW.mjs.map → sdcorejs-angular-modules-pattern-routes-1kDb9T7_.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-routes-DTUxYZ6g.mjs → sdcorejs-angular-modules-pattern-routes-B-TJUSV_.mjs} +5 -5
- package/fesm2022/{sdcorejs-angular-modules-pattern-routes-DTUxYZ6g.mjs.map → sdcorejs-angular-modules-pattern-routes-B-TJUSV_.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-routes-DwZWxmJf.mjs → sdcorejs-angular-modules-pattern-routes-B6z7KO0P.mjs} +3 -3
- package/fesm2022/{sdcorejs-angular-modules-pattern-routes-DwZWxmJf.mjs.map → sdcorejs-angular-modules-pattern-routes-B6z7KO0P.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-routes-ClQwnO4h.mjs → sdcorejs-angular-modules-pattern-routes-DS39vgzU.mjs} +3 -3
- package/fesm2022/{sdcorejs-angular-modules-pattern-routes-ClQwnO4h.mjs.map → sdcorejs-angular-modules-pattern-routes-DS39vgzU.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-routes-ydOZduls.mjs → sdcorejs-angular-modules-pattern-routes-DVlcUUzh.mjs} +3 -3
- package/fesm2022/{sdcorejs-angular-modules-pattern-routes-ydOZduls.mjs.map → sdcorejs-angular-modules-pattern-routes-DVlcUUzh.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-routes-C3uWi8JZ.mjs → sdcorejs-angular-modules-pattern-routes-DxWDWUdo.mjs} +9 -9
- package/fesm2022/{sdcorejs-angular-modules-pattern-routes-C3uWi8JZ.mjs.map → sdcorejs-angular-modules-pattern-routes-DxWDWUdo.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-routes-C5ELCTEw.mjs → sdcorejs-angular-modules-pattern-routes-r9CTj-8C.mjs} +7 -7
- package/fesm2022/{sdcorejs-angular-modules-pattern-routes-C5ELCTEw.mjs.map → sdcorejs-angular-modules-pattern-routes-r9CTj-8C.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-routes-DpCuYBlL.mjs → sdcorejs-angular-modules-pattern-routes-xI1XYRo6.mjs} +5 -5
- package/fesm2022/{sdcorejs-angular-modules-pattern-routes-DpCuYBlL.mjs.map → sdcorejs-angular-modules-pattern-routes-xI1XYRo6.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-sdcorejs-angular-modules-pattern-D3B5I9hg.mjs → sdcorejs-angular-modules-pattern-sdcorejs-angular-modules-pattern-nV5dVFx2.mjs} +12 -12
- package/fesm2022/{sdcorejs-angular-modules-pattern-sdcorejs-angular-modules-pattern-D3B5I9hg.mjs.map → sdcorejs-angular-modules-pattern-sdcorejs-angular-modules-pattern-nV5dVFx2.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-shell.component-BW-i6BHg.mjs → sdcorejs-angular-modules-pattern-shell.component-0rRaWsuo.mjs} +4 -4
- package/fesm2022/{sdcorejs-angular-modules-pattern-shell.component-BW-i6BHg.mjs.map → sdcorejs-angular-modules-pattern-shell.component-0rRaWsuo.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-update-side-drawer.component-DwcyKb4j.mjs → sdcorejs-angular-modules-pattern-update-side-drawer.component-6uH7sDEg.mjs} +4 -4
- 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-By1mYFa_.mjs → sdcorejs-angular-modules-pattern-update-side-drawer.component-DglN2sS_.mjs} +4 -4
- package/fesm2022/sdcorejs-angular-modules-pattern-update-side-drawer.component-DglN2sS_.mjs.map +1 -0
- package/fesm2022/{sdcorejs-angular-modules-pattern-update.component-CAtqPgIH.mjs → sdcorejs-angular-modules-pattern-update.component-BmsOgENL.mjs} +12 -10
- package/fesm2022/sdcorejs-angular-modules-pattern-update.component-BmsOgENL.mjs.map +1 -0
- package/fesm2022/{sdcorejs-angular-modules-pattern-update.component-DjMChf6s.mjs → sdcorejs-angular-modules-pattern-update.component-DPZ_ucNB.mjs} +22 -12
- package/fesm2022/sdcorejs-angular-modules-pattern-update.component-DPZ_ucNB.mjs.map +1 -0
- package/fesm2022/{sdcorejs-angular-modules-pattern-update.component-BBR8360C.mjs → sdcorejs-angular-modules-pattern-update.component-DkAcDmsZ.mjs} +5 -5
- package/fesm2022/sdcorejs-angular-modules-pattern-update.component-DkAcDmsZ.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern.mjs +1 -1
- 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-excel.mjs +34 -0
- package/fesm2022/sdcorejs-angular-services-excel.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-services-storage.mjs +6 -4
- package/fesm2022/sdcorejs-angular-services-storage.mjs.map +1 -1
- package/i18n/src/en.d.ts +66 -1
- package/modules/pattern/core/pattern-shell/catalog/pattern-catalog.d.ts +2 -0
- package/modules/pattern/docs/drawer.md +1 -1
- package/modules/pattern/docs/form.md +445 -148
- package/modules/pattern/docs/header-actions.md +14 -12
- package/modules/pattern/docs/select.md +9 -1
- package/modules/pattern/features/category/components/create-side-drawer/create-side-drawer.component.ts +8 -1
- package/modules/pattern/features/category/components/update-side-drawer/update-side-drawer.component.ts +1 -1
- package/modules/pattern/features/customer/components/create-side-drawer/create-side-drawer.component.ts +8 -1
- package/modules/pattern/features/customer/components/update-side-drawer/update-side-drawer.component.ts +1 -1
- package/modules/pattern/features/order/components/general-information-form/general-information-form.component.ts +1 -1
- package/modules/pattern/features/order/components/lines-form/lines-form.component.d.ts +5 -19
- package/modules/pattern/features/order/components/lines-form/lines-form.component.ts +124 -147
- 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/pages/create/create.component.d.ts +2 -0
- package/modules/pattern/features/order/pages/create/create.component.ts +18 -4
- package/modules/pattern/features/order/pages/detail/detail.component.d.ts +2 -1
- package/modules/pattern/features/order/pages/detail/detail.component.ts +14 -12
- package/modules/pattern/features/order/pages/update/update.component.d.ts +2 -0
- package/modules/pattern/features/order/pages/update/update.component.ts +11 -4
- package/modules/pattern/features/product/components/general-information-form/general-information-form.component.ts +1 -1
- package/modules/pattern/features/product/components/product-select/product-select.component.d.ts +7 -1
- package/modules/pattern/features/product/components/product-select/product-select.component.ts +9 -1
- package/modules/pattern/features/product/pages/create/create.component.ts +8 -1
- package/modules/pattern/features/product/pages/update/update.component.ts +1 -1
- package/modules/pattern/features/settings/pages/update/update.component.ts +5 -4
- package/package.json +5 -5
- 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/excel/src/lib/excel.model.d.ts +29 -0
- package/services/excel/src/lib/excel.service.d.ts +30 -0
- package/services/storage/src/storage.model.d.ts +2 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-create-side-drawer.component-BqHybMk0.mjs.map +0 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-create-side-drawer.component-CND3d2zl.mjs.map +0 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-create.component-BbDoQccI.mjs.map +0 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-create.component-DlP4BrhU.mjs.map +0 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-detail.component-BhCjw6ZL.mjs.map +0 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-general-information-form.component-1bi0JZdf.mjs.map +0 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-index.component-BAZLCVci.mjs.map +0 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-lines-form.component-ikk0cK1M.mjs +0 -522
- package/fesm2022/sdcorejs-angular-modules-pattern-lines-form.component-ikk0cK1M.mjs.map +0 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-pattern-source-viewer-BpLQaYP5.mjs.map +0 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-pattern-source.generated-BrejHvB2.mjs.map +0 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-update-side-drawer.component-By1mYFa_.mjs.map +0 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-update-side-drawer.component-DwcyKb4j.mjs.map +0 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-update.component-BBR8360C.mjs.map +0 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-update.component-CAtqPgIH.mjs.map +0 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-update.component-DjMChf6s.mjs.map +0 -1
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ConfiguredTable } from '../models/table-option-config.model';
|
|
2
|
+
import { SdTableOption } from '../models/table-option.model';
|
|
3
|
+
import { SdTableOptionFilter } from './table-filter/table-filter.model';
|
|
4
|
+
/** The column setup of an option before anyone changes it: every column that is not `hidden`, in option order. */
|
|
5
|
+
export declare const defaultConfiguredTable: (option: SdTableOption | undefined) => ConfiguredTable;
|
|
6
|
+
/**
|
|
7
|
+
* Whether two column setups build the same table: the same columns in the same order, with the same title, width,
|
|
8
|
+
* visibility, fixed and truncate. A value set back to its original counts as unchanged.
|
|
9
|
+
*/
|
|
10
|
+
export declare const sdTableSameColumnSetup: (left: ConfiguredTable | undefined, right: ConfiguredTable | undefined) => boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Whether the table uses a setup of its own: the stored columns differ from the defaults in order, visibility, title,
|
|
13
|
+
* width (the settings modal or a resize on the table), fixed or truncate, the inline external filters differ from
|
|
14
|
+
* `defaultShowing`, or the stored filter mode differs from `filter.mode` (only while `filter.modeSelectable` is not
|
|
15
|
+
* `false`). Columns added to or removed from the option since the setup was stored do not count.
|
|
16
|
+
*/
|
|
17
|
+
export declare const sdTableHasCustomSetup: ({ option, configuration, inlineExternal, filterMode, }: {
|
|
18
|
+
option: SdTableOption | undefined;
|
|
19
|
+
configuration: ConfiguredTable | undefined;
|
|
20
|
+
inlineExternal?: Record<string, boolean>;
|
|
21
|
+
filterMode?: SdTableOptionFilter["mode"];
|
|
22
|
+
}) => boolean;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { type TemplateRef } from '@angular/core';
|
|
2
|
+
import type { SdBadgeData } from '@sdcorejs/angular/components/badge';
|
|
3
|
+
import type { SdTableRowMobileDefContext } from '../../directives/sd-table-row-mobile-def.directive';
|
|
4
|
+
import type { SdTableColumnAnyRow } from '../../models/table-column.model';
|
|
5
|
+
import type { SdTableMobileCardData, SdTableMobileDataFn } from '../../models/table-mobile.model';
|
|
6
|
+
/** What fills a phone card: a template, slots from `mobile.template.data`, or slots derived from the columns. */
|
|
7
|
+
export type SdTableMobileBody<T> = {
|
|
8
|
+
kind: 'template';
|
|
9
|
+
templateRef: TemplateRef<SdTableRowMobileDefContext<T>>;
|
|
10
|
+
} | {
|
|
11
|
+
kind: 'data';
|
|
12
|
+
layout: unknown;
|
|
13
|
+
data: SdTableMobileDataFn<T, SdTableMobileCardData<T>>;
|
|
14
|
+
} | {
|
|
15
|
+
kind: 'auto';
|
|
16
|
+
};
|
|
17
|
+
/** Grid cells before the "{n} more fields" button when `maxFields` is not set. */
|
|
18
|
+
export declare const SD_TABLE_MOBILE_MAX_FIELDS = 4;
|
|
19
|
+
/** A text slot of a card: the value of a column, or fixed text. */
|
|
20
|
+
export type SdTableMobileTextSlot = {
|
|
21
|
+
column: SdTableColumnAnyRow;
|
|
22
|
+
} | {
|
|
23
|
+
text: string;
|
|
24
|
+
};
|
|
25
|
+
/** The badge slot: a column value (`badge: false` when the column has no `useBadge`) or a fixed badge. */
|
|
26
|
+
export type SdTableMobileBadgeSlot = {
|
|
27
|
+
column: SdTableColumnAnyRow;
|
|
28
|
+
badge: boolean;
|
|
29
|
+
} | {
|
|
30
|
+
data: SdBadgeData;
|
|
31
|
+
};
|
|
32
|
+
/** Card slots checked against the columns. */
|
|
33
|
+
export interface SdTableMobileView {
|
|
34
|
+
layout: 'card';
|
|
35
|
+
/** Missing: the card shows the row label (`mobile.rowLabel`, then `rowKey`, then the row number). */
|
|
36
|
+
title?: SdTableMobileTextSlot;
|
|
37
|
+
subtitle?: SdTableMobileTextSlot;
|
|
38
|
+
badge?: SdTableMobileBadgeSlot;
|
|
39
|
+
/** Grid cells in order. With `highlight` the first cell is the highlighted one. */
|
|
40
|
+
fields: SdTableColumnAnyRow[];
|
|
41
|
+
highlight: boolean;
|
|
42
|
+
maxFields: number;
|
|
43
|
+
}
|
|
44
|
+
export type SdTableMobileIssueKind = 'unknown-field' | 'badge-field' | 'layout';
|
|
45
|
+
export interface SdTableMobileIssue {
|
|
46
|
+
kind: SdTableMobileIssueKind;
|
|
47
|
+
/** The field or layout value that failed. */
|
|
48
|
+
value: string;
|
|
49
|
+
}
|
|
50
|
+
export interface SdTableMobileResolved {
|
|
51
|
+
view: SdTableMobileView;
|
|
52
|
+
issues: SdTableMobileIssue[];
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Checks the slots returned by `mobile.template.data` against the table columns (leaf columns, children of grouped
|
|
56
|
+
* headers included) and returns the card to draw. Pure: the caller warns about `issues`.
|
|
57
|
+
*
|
|
58
|
+
* - An unknown field drops its slot; a missing title falls back to the row label.
|
|
59
|
+
* - A badge field without `useBadge` shows as text.
|
|
60
|
+
* - An unknown `layout` (plain JavaScript) draws a card.
|
|
61
|
+
* - Hidden, invisible and settings-hidden columns still show: the consumer named them.
|
|
62
|
+
*/
|
|
63
|
+
export declare const resolveMobileView: (columns: readonly SdTableColumnAnyRow[], layout: unknown, data: Record<string, unknown>) => SdTableMobileResolved;
|
|
64
|
+
/**
|
|
65
|
+
* Card built from the columns on screen (`SD_TABLE_CONFIGURATION.mobile.autoTemplate`, or a row whose `data` threw).
|
|
66
|
+
* Title: the `rowKey` column, else the first column. Badge: the first other column with `useBadge`. Subtitle: the
|
|
67
|
+
* first other `string` column. Fields: the rest, in column order. Pass the columns on screen (`shownLeafColumns`):
|
|
68
|
+
* `invisible` there is the option's default, not the settings, so only `hidden` columns are left out here.
|
|
69
|
+
*/
|
|
70
|
+
export declare const autoMobileView: (columns: readonly SdTableColumnAnyRow[], rowKey?: string) => SdTableMobileView;
|
|
71
|
+
/**
|
|
72
|
+
* Leaf columns on screen in the order the settings give: `firstColumns` with each grouped header replaced by its
|
|
73
|
+
* visible children (`secondColumns`).
|
|
74
|
+
*/
|
|
75
|
+
export declare const shownLeafColumns: (firstColumns: readonly SdTableColumnAnyRow[] | undefined, secondColumns: readonly SdTableColumnAnyRow[] | undefined) => SdTableColumnAnyRow[];
|
|
76
|
+
/** `console.warn` once per owner (a table) and key, in dev mode only. */
|
|
77
|
+
export declare const warnMobileOnce: (owner: object, key: string, message: string, ...details: unknown[]) => void;
|
|
@@ -18,6 +18,8 @@ export interface SdTableExportContext<T = any> {
|
|
|
18
18
|
export declare class TableExportService {
|
|
19
19
|
#private;
|
|
20
20
|
exporting: import("@angular/core").WritableSignal<boolean>;
|
|
21
|
+
/** Progress of a paged export in percent; `null` while unknown. */
|
|
22
|
+
readonly exportPercent: import("@angular/core").Signal<number | null>;
|
|
21
23
|
exportTitle: import("@angular/core").Signal<string>;
|
|
22
24
|
/** Đặt tiến độ export (0-100), hoặc null để trả nút về nhãn mặc định. */
|
|
23
25
|
setExportProgress: (percent: number | null) => void;
|
|
@@ -13,6 +13,8 @@ export interface SdTableQuickFilter {
|
|
|
13
13
|
}
|
|
14
14
|
export interface TableFilterConfiguration {
|
|
15
15
|
inlineExternal: Record<string, boolean>;
|
|
16
|
+
/** Giao diện lọc người dùng chọn trong modal Thiết lập; thắng `filter.mode` khi `filter.modeSelectable` khác `false`. */
|
|
17
|
+
mode?: SdTableOptionFilter['mode'];
|
|
16
18
|
}
|
|
17
19
|
export interface TableFilterValue {
|
|
18
20
|
quickSearch?: SdTableQuickSearchValue;
|
|
@@ -65,6 +67,37 @@ export interface SdTableOptionFilter<T = unknown> {
|
|
|
65
67
|
hideExternalFilterToolbar?: boolean;
|
|
66
68
|
/** Hàm xử lý khi trigger clear filter từ external filter */
|
|
67
69
|
onClearFilter?: () => void;
|
|
70
|
+
/**
|
|
71
|
+
* 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
|
|
72
|
+
* bảng; giá trị lọc, cache và `pagingReq` giữ nguyên như `'default'`. Mobile luôn dùng giao diện `'default'`.
|
|
73
|
+
* @defaultValue 'default'
|
|
74
|
+
*/
|
|
75
|
+
mode?: 'default' | 'query-bar';
|
|
76
|
+
/**
|
|
77
|
+
* Cho người dùng chọn giao diện lọc trong modal Thiết lập. Lựa chọn được lưu cùng thiết lập bộ lọc (theo `filter.key`)
|
|
78
|
+
* và thắng `mode`; **Khôi phục mặc định** xoá nó. `false`: luôn dùng `mode` và bỏ qua lựa chọn đã lưu.
|
|
79
|
+
* `SD_TABLE_CONFIGURATION.filter.modeSelectable` đặt cho mọi bảng; option thắng.
|
|
80
|
+
* @defaultValue true
|
|
81
|
+
*/
|
|
82
|
+
modeSelectable?: boolean;
|
|
83
|
+
/** Chỉ dùng khi `mode` là `'query-bar'`. */
|
|
84
|
+
queryBar?: SdTableOptionFilterQueryBar;
|
|
85
|
+
}
|
|
86
|
+
/** Tuỳ chọn của `filter.mode: 'query-bar'`. */
|
|
87
|
+
export interface SdTableOptionFilterQueryBar {
|
|
88
|
+
/**
|
|
89
|
+
* Cách sửa chip: control ngay trên thanh (`sd-query-bar` mode `'inline'`) hoặc popover. `sd-query-bar` đứng riêng
|
|
90
|
+
* vẫn mặc định `'popover'`.
|
|
91
|
+
* @defaultValue 'inline'
|
|
92
|
+
*/
|
|
93
|
+
editor?: 'popover' | 'inline';
|
|
94
|
+
/**
|
|
95
|
+
* 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à
|
|
96
|
+
* `field` của `quickSearch.filters` / `externalFilters` / `columns`. Field `required` luôn được ghim.
|
|
97
|
+
*/
|
|
98
|
+
pinned?: string[];
|
|
99
|
+
/** Field không đưa vào thanh; giá trị đang có vẫn được gửi đi. */
|
|
100
|
+
exclude?: string[];
|
|
68
101
|
}
|
|
69
102
|
export declare const SdConvertToPagingReq: (filterRequest: SdTableFilterRequest, args: {
|
|
70
103
|
columns?: SdTableColumnAnyRow[];
|
|
@@ -165,5 +198,7 @@ export interface TableFilterRegister {
|
|
|
165
198
|
set: (value: Partial<TableFilterValue>) => TableFilterValue;
|
|
166
199
|
remove: () => void;
|
|
167
200
|
observer: Observable<TableFilterValue>;
|
|
201
|
+
/** 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. */
|
|
202
|
+
default?: () => TableFilterValue;
|
|
168
203
|
};
|
|
169
204
|
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import type { SdQueryField } from '@sdcorejs/angular/components/query-bar';
|
|
2
|
+
import type { Filter } from '@sdcorejs/utils/models';
|
|
3
|
+
import type { SdTableFilterDefDirective } from '../../directives/sd-table-filter-def.directive';
|
|
4
|
+
import type { SdTableColumnAnyRow } from '../../models/table-column.model';
|
|
5
|
+
import type { SdTableExternalFilter, TableFilterValue } from './table-filter.model';
|
|
6
|
+
import { type SdTableQueryContext, type SdTableQuerySource } from './table-query-bar.util';
|
|
7
|
+
/**
|
|
8
|
+
* One filter of the phone UI (chip row and filter sheet).
|
|
9
|
+
* - `source` + `field`: a filter the query-bar model can read — it gets a chip, a summary and the built-in controls.
|
|
10
|
+
* - `custom`: a filter only its own control can edit (a template, a time column, an external filter the bar leaves
|
|
11
|
+
* out). It has a row in the filter sheet that opens that control, but no chip and no summary.
|
|
12
|
+
*/
|
|
13
|
+
export interface SdTableMobileFilterItem {
|
|
14
|
+
/** `external:<field>` / `column:<field>` as on the query bar, `custom-*:<field>` otherwise. */
|
|
15
|
+
key: string;
|
|
16
|
+
label: string;
|
|
17
|
+
source?: SdTableQuerySource;
|
|
18
|
+
field?: SdQueryField;
|
|
19
|
+
custom?: {
|
|
20
|
+
kind: 'column';
|
|
21
|
+
column: SdTableColumnAnyRow;
|
|
22
|
+
} | {
|
|
23
|
+
kind: 'external';
|
|
24
|
+
external: SdTableExternalFilter;
|
|
25
|
+
} | {
|
|
26
|
+
kind: 'def';
|
|
27
|
+
def: SdTableFilterDefDirective;
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Filters in the fixed phone order: external filters, then `sdTableFilterDef` templates, then columns (handoff 3, 5).
|
|
32
|
+
* `ctx` comes from `sdTableQueryFields` over the same columns and external filters.
|
|
33
|
+
*/
|
|
34
|
+
export declare const sdTableMobileFilterItems: (args: {
|
|
35
|
+
ctx: SdTableQueryContext;
|
|
36
|
+
columns: readonly SdTableColumnAnyRow[];
|
|
37
|
+
externalFilters?: readonly SdTableExternalFilter[];
|
|
38
|
+
filterDefs?: readonly SdTableFilterDefDirective[];
|
|
39
|
+
}) => SdTableMobileFilterItem[];
|
|
40
|
+
/** The chip of an item for a raw record, or `undefined` for a custom item. */
|
|
41
|
+
export declare const sdTableMobileFilterChip: (item: SdTableMobileFilterItem, value: TableFilterValue) => {
|
|
42
|
+
filter: Filter;
|
|
43
|
+
active: boolean;
|
|
44
|
+
} | undefined;
|
|
45
|
+
/**
|
|
46
|
+
* Whether an item filters something. A custom column counts when its raw value has content; templates write keys
|
|
47
|
+
* the table cannot know, so they never count.
|
|
48
|
+
*/
|
|
49
|
+
export declare const sdTableMobileFilterActive: (item: SdTableMobileFilterItem, value: TableFilterValue) => boolean;
|
|
50
|
+
/**
|
|
51
|
+
* The raw record with one item cleared: no value, and a `NULL` / `NOT_NULL` column operator back to the default.
|
|
52
|
+
* Custom template items are left alone (their keys are unknown).
|
|
53
|
+
*/
|
|
54
|
+
export declare const sdTableMobileFilterClear: (item: SdTableMobileFilterItem, value: TableFilterValue, ctx: SdTableQueryContext) => TableFilterValue;
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import { type SdQuery, type 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
|
+
* `aria-haspopup` of the header filter icon: what `SdQueryBar.openField` shows for `field` (same steps as `beginBuild`).
|
|
66
|
+
* The popover editor opens the chip menu. The inline editor only focuses an existing chip; for a field without a chip it
|
|
67
|
+
* builds one, which opens the operator menu, or the value picker of a values / date field (a date skips the operator
|
|
68
|
+
* step when its default operator is allowed).
|
|
69
|
+
*/
|
|
70
|
+
export declare const sdTableQueryTriggerPopup: (field: SdQueryField, editor: "popover" | "inline", hasChip: boolean) => "menu" | "listbox" | "dialog" | null;
|
|
71
|
+
/**
|
|
72
|
+
* Why the query bar cannot show an external filter, or `undefined` when it can. Also tells the settings modal which
|
|
73
|
+
* filters are "not on the bar".
|
|
74
|
+
*/
|
|
75
|
+
export declare const sdTableExternalOffBar: (item: SdTableExternalFilter, args: {
|
|
76
|
+
exclude: ReadonlySet<string>;
|
|
77
|
+
filterDefs: ReadonlySet<string>;
|
|
78
|
+
}) => string | undefined;
|
|
79
|
+
/**
|
|
80
|
+
* Fields of the query bar for a table (handoff section 3): keys, groups, pinned chips, operators, and the filters
|
|
81
|
+
* left out. Order: `quickSearch.filters`, `externalFilters`, then the leaf columns given (children flattened).
|
|
82
|
+
*/
|
|
83
|
+
export declare const sdTableQueryFields: (args: {
|
|
84
|
+
/** Leaf columns on screen, after `SD_TABLE_CONFIGURATION.filter.operator` was merged in. */
|
|
85
|
+
columns: SdTableColumnAnyRow[];
|
|
86
|
+
externalFilters?: SdTableExternalFilter[];
|
|
87
|
+
quickSearch?: SdTableOptionQuickSearch;
|
|
88
|
+
/** `TableFilterConfiguration.inlineExternal`: external filters shown inline are pinned by default. */
|
|
89
|
+
inlineExternal: Record<string, boolean>;
|
|
90
|
+
queryBar?: SdTableOptionFilterQueryBar;
|
|
91
|
+
/** `hideInlineFilter === true`: no column goes on the bar. */
|
|
92
|
+
hideColumns: boolean;
|
|
93
|
+
labels: {
|
|
94
|
+
filters: string;
|
|
95
|
+
columns: string;
|
|
96
|
+
};
|
|
97
|
+
/** Fields with an `sdTableFilterDef` template. */
|
|
98
|
+
filterDefs?: string[];
|
|
99
|
+
/** Items the table loaded for `values` columns whose `items` is a function. */
|
|
100
|
+
cacheValues?: Record<string, unknown[]>;
|
|
101
|
+
}) => SdTableQueryFields;
|
|
102
|
+
/** The chip a field shows for a raw record (active or not): what the bar would draw, shared with the phone filters. */
|
|
103
|
+
export declare const sdTableQueryChipOf: (source: SdTableQuerySource, value: TableFilterValue) => {
|
|
104
|
+
filter: Filter;
|
|
105
|
+
active: boolean;
|
|
106
|
+
};
|
|
107
|
+
/**
|
|
108
|
+
* Raw record → bar query (handoff section 5). Chips: every pinned field, then unpinned fields that filter something,
|
|
109
|
+
* in the order of `prev` and then declaration order. A chip whose operator and data equal the one in `prev` is that
|
|
110
|
+
* same object — sd-query-bar tracks chips by identity.
|
|
111
|
+
*/
|
|
112
|
+
export declare const tableFilterToQuery: (value: TableFilterValue, ctx: SdTableQueryContext, prev?: Filter[]) => SdQuery;
|
|
113
|
+
/** Keys of the bar fields whose applied value filters something — header icons show them as filtering. */
|
|
114
|
+
export declare const sdTableActiveQueryKeys: (value: TableFilterValue, ctx: SdTableQueryContext) => Set<string>;
|
|
115
|
+
/**
|
|
116
|
+
* Folds a change of the applied state into a bar that holds unapplied edits (manualFilter, or a chip edited while the
|
|
117
|
+
* state changed). A key whose applied chip did not change between `before` and `after` keeps its draft — edited,
|
|
118
|
+
* added or removed by the user. A key that changed takes the applied chip: the outside change wins for that field.
|
|
119
|
+
* New applied chips go after the draft ones.
|
|
120
|
+
*/
|
|
121
|
+
export declare const mergeQueryDraft: (draft: Filter[], before: Filter[], after: Filter[]) => Filter[];
|
|
122
|
+
/**
|
|
123
|
+
* Bar query → raw record (handoff section 5). Every field of the bar is written: its chip, or the empty value when
|
|
124
|
+
* it has none. Covered columns are cleared; excluded fields are left alone. A value equivalent to the stored one
|
|
125
|
+
* (`[]` and `null`, `'1'` and `true`, …) keeps the stored representation, so a round trip changes nothing.
|
|
126
|
+
*/
|
|
127
|
+
export declare const queryToTableFilter: (query: SdQuery, ctx: SdTableQueryContext, current: TableFilterValue) => {
|
|
128
|
+
patch: Pick<TableFilterValue, "quickSearch" | "externalFilter" | "columnFilter" | "columnOperator">;
|
|
129
|
+
changed: SdTableQueryChange[];
|
|
130
|
+
};
|
|
@@ -12,14 +12,18 @@ 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';
|
|
17
|
+
import { type SdTableMobileFilterItem } from './services/table-filter/table-mobile-filter.util';
|
|
15
18
|
import { SdTableRowMobileDefDirective } from './directives/sd-table-row-mobile-def.directive';
|
|
16
19
|
import { SdTableMobileAction } from './components/mobile-cards/mobile-action.model';
|
|
20
|
+
import { type SdTableMobileBody } from './services/mobile/mobile-view.util';
|
|
17
21
|
import { SdTableColumn } from './models/table-column.model';
|
|
18
22
|
import { SdTableCommand } from './models/table-command.model';
|
|
19
23
|
import { SdTableOption } from './models/table-option.model';
|
|
20
24
|
import { SdTableUnknownTotalPageEvent, SdTableUnknownTotalPagerState } from './components/unknown-total-paginator/unknown-total-paginator.component';
|
|
21
25
|
import { SdTableLoadingView, TableSkeletonCell } from './services/table-loading/table-loading.util';
|
|
22
|
-
import { SdTableFilterRequest, TableFilterRegister, TableFilterValue } from './services/table-filter/table-filter.model';
|
|
26
|
+
import { SdTableFilterRequest, TableFilterConfiguration, TableFilterRegister, TableFilterValue } from './services/table-filter/table-filter.model';
|
|
23
27
|
import { CdkDrag, CdkDragDrop, CdkDropList } from '@angular/cdk/drag-drop';
|
|
24
28
|
import { SdDataStateTemplateDirective } from '@sdcorejs/angular/components/data-state';
|
|
25
29
|
import { SdReadState } from '@sdcorejs/angular/utilities/read-state';
|
|
@@ -27,9 +31,9 @@ import { SdQuickAction } from '@sdcorejs/angular/components/quick-action';
|
|
|
27
31
|
import { SdScrollDirective } from '@sdcorejs/angular/directives';
|
|
28
32
|
import { AggregateRenderHost } from './pipes/sd-aggregate-rows.pipe';
|
|
29
33
|
import { AggregateSnapshot } from './services/table-aggregate.util';
|
|
30
|
-
import { Operator } from '@sdcorejs/utils/models';
|
|
34
|
+
import { Filter, Operator } from '@sdcorejs/utils/models';
|
|
31
35
|
import { ExternalFilterComponent, MobileFilterComponent } from './components';
|
|
32
|
-
import { ConfigComponent } from './components/config/config.component';
|
|
36
|
+
import { ConfigComponent, ConfigFilterSetup } from './components/config/config.component';
|
|
33
37
|
import { SdPopupExport } from './components/popup-export/popup-export.component';
|
|
34
38
|
import { ISdTableConfiguration } from './configurations';
|
|
35
39
|
import { SdTableItem } from './models/table-item.model';
|
|
@@ -77,7 +81,18 @@ export declare class SdTable<T = unknown> implements AfterViewInit, OnDestroy {
|
|
|
77
81
|
sdTitleDefs: import("@angular/core").Signal<readonly SdTableTitleDefDirective<any>[]>;
|
|
78
82
|
readonly sdRowMobileDef: import("@angular/core").Signal<SdTableRowMobileDefDirective<T> | undefined>;
|
|
79
83
|
readonly isMobile: import("@angular/core").Signal<boolean>;
|
|
84
|
+
/**
|
|
85
|
+
* Body of the phone cards, by priority: `sdTableRowMobileDef`, then `mobile.template` (a template or `{ data }`),
|
|
86
|
+
* then `SD_TABLE_CONFIGURATION.mobile.autoTemplate`. `undefined`: phones show the desktop table.
|
|
87
|
+
*/
|
|
88
|
+
protected readonly mobileBody: import("@angular/core").Signal<SdTableMobileBody<T> | undefined>;
|
|
80
89
|
readonly mobileCards: import("@angular/core").Signal<boolean>;
|
|
90
|
+
/**
|
|
91
|
+
* The footer settings button carries a dot while the table uses a setup of its own: stored columns that differ from
|
|
92
|
+
* the option (settings modal or a resize on the table), inline external filters that differ from `defaultShowing`, or
|
|
93
|
+
* a stored filter mode that differs from `filter.mode`.
|
|
94
|
+
*/
|
|
95
|
+
readonly hasCustomSetup: import("@angular/core").Signal<boolean>;
|
|
81
96
|
cellDef: import("@angular/core").Signal<Record<string, SdTableCellDefDirective<any>>>;
|
|
82
97
|
footerDef: import("@angular/core").Signal<Record<string, SdMaterialFooterDefDirective<any>>>;
|
|
83
98
|
hasFooter: import("@angular/core").Signal<boolean>;
|
|
@@ -143,11 +158,24 @@ export declare class SdTable<T = unknown> implements AfterViewInit, OnDestroy {
|
|
|
143
158
|
active: string;
|
|
144
159
|
direction: SortDirection;
|
|
145
160
|
}>;
|
|
161
|
+
/**
|
|
162
|
+
* Columns of the phone sort sheet: sortable leaf columns of the option in their order, `invisible` and
|
|
163
|
+
* settings-hidden ones included, `hidden: true` ones left out (handoff table-mobile 6), with the settings title when
|
|
164
|
+
* the column is on screen.
|
|
165
|
+
*/
|
|
146
166
|
readonly mobileSortColumns: import("@angular/core").Signal<{
|
|
147
167
|
field: string;
|
|
148
168
|
title: string;
|
|
149
169
|
direction: SortDirection;
|
|
150
170
|
}[]>;
|
|
171
|
+
/** The phone shows a sort chip / button: `sort.enable` and at least one sortable column. */
|
|
172
|
+
protected readonly mobileSortAvailable: import("@angular/core").Signal<boolean>;
|
|
173
|
+
/** Accessible name of the phone sort chip / button: "Sort", or the column and direction while sorted. */
|
|
174
|
+
protected readonly mobileSortLabel: import("@angular/core").Signal<string>;
|
|
175
|
+
/**
|
|
176
|
+
* Tools sheet of the phone (⋮): export and settings. Filter, sort and reload live in the chip row, the sort sheet and
|
|
177
|
+
* pull to refresh. The exports are laid out flat (two at most).
|
|
178
|
+
*/
|
|
151
179
|
readonly mobileToolsActions: import("@angular/core").Signal<SdTableMobileAction[]>;
|
|
152
180
|
readonly pageRevision: import("@angular/core").WritableSignal<number>;
|
|
153
181
|
readonly dataRevision: import("@angular/core").WritableSignal<number>;
|
|
@@ -177,6 +205,49 @@ export declare class SdTable<T = unknown> implements AfterViewInit, OnDestroy {
|
|
|
177
205
|
readonly quickSearchValue: import("@angular/core").WritableSignal<SdTableQuickSearchValue>;
|
|
178
206
|
private readonly quickSearchControl;
|
|
179
207
|
readonly quickSearchValid: import("@angular/core").Signal<boolean>;
|
|
208
|
+
/**
|
|
209
|
+
* Tab "Bộ lọc" của modal Thiết lập: kiểu lọc và external filter hiện ở khung / ghim trên thanh. Không có tab khi
|
|
210
|
+
* `filter.disabled`, trên mobile (luôn dùng giao diện mặc định), khi bảng không có bộ lọc nào, hoặc khi không chọn
|
|
211
|
+
* được kiểu lọc mà cũng không có external filter. `barBlockedBy`: external filter bắt buộc mà thanh không hiển thị
|
|
212
|
+
* được — thanh sẽ chặn đọc dữ liệu mà người dùng không có chỗ nhập, nên modal không cho chọn thanh.
|
|
213
|
+
*/
|
|
214
|
+
protected readonly configFilter: import("@angular/core").Signal<ConfigFilterSetup | undefined>;
|
|
215
|
+
/**
|
|
216
|
+
* Giao diện lọc đã chọn: lựa chọn đã lưu của người dùng (trừ khi `filter.modeSelectable` là `false`), rồi
|
|
217
|
+
* `filter.mode` sau khi gộp `SD_TABLE_CONFIGURATION.filter.mode`.
|
|
218
|
+
*/
|
|
219
|
+
readonly filterMode: import("@angular/core").Signal<"default" | "query-bar">;
|
|
220
|
+
/** 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. */
|
|
221
|
+
readonly effectiveFilterMode: import("@angular/core").Signal<"default" | "query-bar">;
|
|
222
|
+
/** Thanh query bar thay quick search, external filter và filter dưới cột. */
|
|
223
|
+
readonly queryBarMode: import("@angular/core").Signal<boolean>;
|
|
224
|
+
readonly queryBar: import("@angular/core").Signal<SdQueryBar | undefined>;
|
|
225
|
+
/** Chip trên thanh (nháp của thanh) và ô tìm — gắn hai chiều với `sd-query-bar`. */
|
|
226
|
+
readonly barFilters: import("@angular/core").WritableSignal<Filter[]>;
|
|
227
|
+
readonly barSearch: import("@angular/core").WritableSignal<string>;
|
|
228
|
+
readonly queryBarHintId: string;
|
|
229
|
+
/** Field của thanh và bảng tra nguồn; `undefined` khi không ở mode query-bar. */
|
|
230
|
+
readonly queryBarModel: import("@angular/core").Signal<SdTableQueryContext | undefined>;
|
|
231
|
+
/**
|
|
232
|
+
* Filters of the phone UI (chip row and filter sheets), in the fixed order external → `sdTableFilterDef` → columns.
|
|
233
|
+
* `undefined` on desktop, with `filter.disabled`, or before the configuration is known.
|
|
234
|
+
*/
|
|
235
|
+
protected readonly mobileFilterModel: import("@angular/core").Signal<{
|
|
236
|
+
ctx: SdTableQueryContext;
|
|
237
|
+
items: SdTableMobileFilterItem[];
|
|
238
|
+
} | undefined>;
|
|
239
|
+
/** Applied filter value (last emission of the filter register); the phone chips summarise it. */
|
|
240
|
+
protected readonly mobileFilterValue: import("@angular/core").Signal<TableFilterValue | undefined>;
|
|
241
|
+
readonly queryBarOption: import("@angular/core").Signal<SdQueryBarOption<unknown> | undefined>;
|
|
242
|
+
/** 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. */
|
|
243
|
+
readonly queryBarActiveKeys: import("@angular/core").Signal<Set<string>>;
|
|
244
|
+
queryBarTriggerPopup: (key: string) => "menu" | "listbox" | "dialog" | null;
|
|
245
|
+
/** `aria-label` của icon lọc ở header: "Lọc theo …" / "Đang lọc theo …". */
|
|
246
|
+
filterTriggerLabel(column: SdTableColumn, active: boolean): string;
|
|
247
|
+
/** 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. */
|
|
248
|
+
openQueryBarField(key: string, trigger: EventTarget | null): void;
|
|
249
|
+
/** 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). */
|
|
250
|
+
readonly queryBarHint: import("@angular/core").Signal<string>;
|
|
180
251
|
key: string;
|
|
181
252
|
columnOperator: Record<string, Operator>;
|
|
182
253
|
columnFilter?: NonNullable<TableFilterValue['columnFilter']>;
|
|
@@ -186,7 +257,11 @@ export declare class SdTable<T = unknown> implements AfterViewInit, OnDestroy {
|
|
|
186
257
|
exporting: import("@angular/core").WritableSignal<boolean>;
|
|
187
258
|
exportTitle: import("@angular/core").Signal<string>;
|
|
188
259
|
tableConfiguration: ISdTableConfiguration | null;
|
|
189
|
-
/**
|
|
260
|
+
/**
|
|
261
|
+
* 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. Không áp
|
|
262
|
+
* dụng khi điện thoại hiện thẻ: thẻ nằm theo trang và vùng cuộn của trang cuộn một lần, thay vì cuộn trong một hộp
|
|
263
|
+
* thấp giữa header và paginator (và cuộn lồng với trang khi màn thấp).
|
|
264
|
+
*/
|
|
190
265
|
readonly fill: import("@angular/core").Signal<boolean>;
|
|
191
266
|
/** External filter của bảng chính thu gọn khi khung trang đang ở chế độ màn thấp. */
|
|
192
267
|
readonly externalFilterCollapsedByDefault: import("@angular/core").Signal<boolean>;
|
|
@@ -210,6 +285,11 @@ export declare class SdTable<T = unknown> implements AfterViewInit, OnDestroy {
|
|
|
210
285
|
onTreeToggle: (row: SdTableItem<T>) => Promise<void>;
|
|
211
286
|
onFilterChange: () => void;
|
|
212
287
|
onQuickSearchChange: (value: SdTableQuickSearchValue) => void;
|
|
288
|
+
/**
|
|
289
|
+
* 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
|
|
290
|
+
* vừa đổi như control mặc định. Reload, cache, `filtered` đi đường cũ.
|
|
291
|
+
*/
|
|
292
|
+
onQueryBarApply: (query: SdQuery) => void;
|
|
213
293
|
onFilterCommit: () => void;
|
|
214
294
|
onExpand: (row: SdTableItem<T>) => Promise<void>;
|
|
215
295
|
onSelect: (rowData: SdTableItem<T>) => void;
|
|
@@ -267,6 +347,13 @@ export declare class SdTable<T = unknown> implements AfterViewInit, OnDestroy {
|
|
|
267
347
|
get dataItems(): T[];
|
|
268
348
|
get selectedItems(): T[];
|
|
269
349
|
detectChanges: () => void;
|
|
350
|
+
/**
|
|
351
|
+
* Restore defaults in the settings modal also puts the inline external filters back to `defaultShowing` and clears the
|
|
352
|
+
* stored filter mode.
|
|
353
|
+
*/
|
|
354
|
+
onConfigDefaultsRestored: () => void;
|
|
355
|
+
/** Apply in the settings modal with a changed "Bộ lọc" tab: store the filter kind and the inline external filters. */
|
|
356
|
+
onConfigFilterApplied: (configuration: Partial<TableFilterConfiguration>) => void;
|
|
270
357
|
onColumnResize: (field: string, width: string) => void;
|
|
271
358
|
getSortAria: (field: string) => "none" | "ascending" | "descending";
|
|
272
359
|
onOperatorChange: (column: SdTableColumn, operator: Operator | undefined) => void;
|