@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
package/components/table/src/components/filter/mobile-filter/mobile-field-sheet.component.d.ts
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { ElementRef } from '@angular/core';
|
|
2
|
+
import { SdModal } from '@sdcorejs/angular/components/modal';
|
|
3
|
+
import { ɵSdQueryChipLabels } from '@sdcorejs/angular/components/query-bar';
|
|
4
|
+
import type { SdTable } from '../../../table.component';
|
|
5
|
+
import { type SdTableMobileFilterItem } from '../../../services/table-filter/table-mobile-filter.util';
|
|
6
|
+
import type { TableFilterValue } from '../../../services/table-filter/table-filter.model';
|
|
7
|
+
import type { SdTableQueryContext } from '../../../services/table-filter/table-query-bar.util';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
/**
|
|
10
|
+
* Sheet of one filter, opened from its chip (handoff table-mobile 4). Works on a copy: Apply writes that filter and
|
|
11
|
+
* reads once; Cancel, the scrim, a swipe down, Escape and Back drop the copy.
|
|
12
|
+
*/
|
|
13
|
+
export declare class SdTableMobileFieldSheetComponent<T = unknown> {
|
|
14
|
+
#private;
|
|
15
|
+
readonly table: import("@angular/core").InputSignal<SdTable<T>>;
|
|
16
|
+
readonly labels: import("@angular/core").InputSignal<ɵSdQueryChipLabels>;
|
|
17
|
+
readonly sheet: import("@angular/core").Signal<SdModal>;
|
|
18
|
+
protected readonly head: import("@angular/core").Signal<ElementRef<HTMLElement> | undefined>;
|
|
19
|
+
readonly item: import("@angular/core").WritableSignal<SdTableMobileFilterItem | undefined>;
|
|
20
|
+
readonly working: import("@angular/core").WritableSignal<TableFilterValue | undefined>;
|
|
21
|
+
readonly revision: import("@angular/core").WritableSignal<number>;
|
|
22
|
+
readonly ctx: import("@angular/core").InputSignal<SdTableQueryContext | undefined>;
|
|
23
|
+
readonly autoId: import("@angular/core").Signal<string | undefined>;
|
|
24
|
+
constructor();
|
|
25
|
+
open(item: SdTableMobileFilterItem): void;
|
|
26
|
+
cancel(): void;
|
|
27
|
+
/** "Clear": empties this filter in the copy; Apply still writes it. */
|
|
28
|
+
clear(): void;
|
|
29
|
+
apply(): void;
|
|
30
|
+
/** Every close path ends here: drop the history entry the sheet pushed and the copy. */
|
|
31
|
+
onClosed(): void;
|
|
32
|
+
onChanged(): void;
|
|
33
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SdTableMobileFieldSheetComponent<any>, never>;
|
|
34
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SdTableMobileFieldSheetComponent<any>, "sd-table-mobile-field-sheet", never, { "table": { "alias": "table"; "required": true; "isSignal": true; }; "labels": { "alias": "labels"; "required": false; "isSignal": true; }; "ctx": { "alias": "ctx"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
35
|
+
}
|
package/components/table/src/components/filter/mobile-filter/mobile-filter-field.component.d.ts
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { ɵSdQueryChipLabels, type SdQueryField } from '@sdcorejs/angular/components/query-bar';
|
|
2
|
+
import type { Filter, Operator } from '@sdcorejs/utils/models';
|
|
3
|
+
import type { SdTableMobileFilterItem } from '../../../services/table-filter/table-mobile-filter.util';
|
|
4
|
+
import type { SdTableQueryContext } from '../../../services/table-filter/table-query-bar.util';
|
|
5
|
+
import type { TableFilterValue } from '../../../services/table-filter/table-filter.model';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
/** Options of a values list shown before a search box appears. */
|
|
8
|
+
export declare const SD_TABLE_MOBILE_OPTIONS_WITHOUT_SEARCH = 8;
|
|
9
|
+
type FieldKind = 'options' | 'boolean' | 'date-range' | 'number-range' | 'date' | 'datetime' | 'text' | 'number' | 'custom';
|
|
10
|
+
interface Option {
|
|
11
|
+
value: unknown;
|
|
12
|
+
label: string;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Controls of one filter on the phone (handoff table-mobile 4–5): the operator line, then a checkbox or radio list,
|
|
16
|
+
* two date or number boxes, or one box. Edits the working copy in place (`value`) and emits `changed`; filters only
|
|
17
|
+
* their own control can edit (`item.custom`) render that control.
|
|
18
|
+
*/
|
|
19
|
+
export declare class SdTableMobileFilterFieldComponent {
|
|
20
|
+
#private;
|
|
21
|
+
readonly item: import("@angular/core").InputSignal<SdTableMobileFilterItem>;
|
|
22
|
+
/** Working copy; edited in place. */
|
|
23
|
+
readonly value: import("@angular/core").InputSignal<TableFilterValue>;
|
|
24
|
+
readonly ctx: import("@angular/core").InputSignal<SdTableQueryContext>;
|
|
25
|
+
/** Bumped by the owner when it changed the working copy (Clear, Clear all). */
|
|
26
|
+
readonly revision: import("@angular/core").InputSignal<number>;
|
|
27
|
+
readonly cacheValues: import("@angular/core").InputSignal<Record<string, any[]> | undefined>;
|
|
28
|
+
readonly labels: import("@angular/core").InputSignal<ɵSdQueryChipLabels>;
|
|
29
|
+
readonly autoId: import("@angular/core").InputSignal<string | undefined>;
|
|
30
|
+
readonly changed: import("@angular/core").OutputEmitterRef<void>;
|
|
31
|
+
readonly search: import("@angular/core").WritableSignal<string>;
|
|
32
|
+
readonly field: import("@angular/core").Signal<SdQueryField | undefined>;
|
|
33
|
+
readonly chip: import("@angular/core").Signal<{
|
|
34
|
+
filter: Filter;
|
|
35
|
+
active: boolean;
|
|
36
|
+
} | undefined>;
|
|
37
|
+
readonly operator: import("@angular/core").Signal<Operator | undefined>;
|
|
38
|
+
readonly operatorItems: import("@angular/core").Signal<import("@sdcorejs/angular/components/operator").ɵSdOperatorItem[]>;
|
|
39
|
+
readonly operatorLabel: import("@angular/core").Signal<string>;
|
|
40
|
+
readonly noData: import("@angular/core").Signal<boolean>;
|
|
41
|
+
readonly kind: import("@angular/core").Signal<FieldKind>;
|
|
42
|
+
readonly multiple: import("@angular/core").Signal<boolean>;
|
|
43
|
+
readonly raw: import("@angular/core").Signal<any>;
|
|
44
|
+
/** values: the option list (array, signal, or loaded once); lazy-values: the last search, selected values first. */
|
|
45
|
+
readonly options: import("@angular/core").Signal<Option[]>;
|
|
46
|
+
readonly showSearch: import("@angular/core").Signal<boolean>;
|
|
47
|
+
readonly shownOptions: import("@angular/core").Signal<Option[]>;
|
|
48
|
+
readonly booleanOptions: import("@angular/core").Signal<Option[]>;
|
|
49
|
+
constructor();
|
|
50
|
+
onSearch(term: string): void;
|
|
51
|
+
isChecked(value: unknown): boolean;
|
|
52
|
+
toggle(value: unknown, checked: unknown): void;
|
|
53
|
+
setRange(end: 'from' | 'to', value: unknown): void;
|
|
54
|
+
setRaw(raw: unknown): void;
|
|
55
|
+
/** Operator menu. `NULL` / `NOT_NULL` clear the value; leaving them restores the column default. */
|
|
56
|
+
setOperator(operator: Operator): void;
|
|
57
|
+
/** External date / datetime filter the bar leaves out: the raw value only. */
|
|
58
|
+
setExternal(field: string, raw: unknown): void;
|
|
59
|
+
/** Custom controls (column-filter, templates) edit the working copy themselves. */
|
|
60
|
+
onCustomChange(): void;
|
|
61
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SdTableMobileFilterFieldComponent, never>;
|
|
62
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SdTableMobileFilterFieldComponent, "sd-table-mobile-filter-field", never, { "item": { "alias": "item"; "required": true; "isSignal": true; }; "value": { "alias": "value"; "required": true; "isSignal": true; }; "ctx": { "alias": "ctx"; "required": true; "isSignal": true; }; "revision": { "alias": "revision"; "required": false; "isSignal": true; }; "cacheValues": { "alias": "cacheValues"; "required": false; "isSignal": true; }; "labels": { "alias": "labels"; "required": false; "isSignal": true; }; "autoId": { "alias": "autoId"; "required": false; "isSignal": true; }; }, { "changed": "changed"; }, never, never, true, never>;
|
|
63
|
+
}
|
|
64
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ɵSdQueryChipLabels } from '@sdcorejs/angular/components/query-bar';
|
|
2
|
+
import { type SdTableMobileFilterItem } from '../../../services/table-filter/table-mobile-filter.util';
|
|
3
|
+
import type { TableFilterValue } from '../../../services/table-filter/table-filter.model';
|
|
4
|
+
/**
|
|
5
|
+
* Summary of a phone filter for a raw record, the same string the query bar shows for that chip (handoff table-mobile
|
|
6
|
+
* 3.3): one value → its label, several → `first +n`, ranges as on the bar. A `string` / `number` value gets its operator
|
|
7
|
+
* in front (`Chứa abc`); `NULL` / `NOT_NULL` show the operator name. Empty when the filter is not active or custom.
|
|
8
|
+
*
|
|
9
|
+
* Call in an injection context. `labels` resolves values the table does not hold (lazy-values, items functions).
|
|
10
|
+
*/
|
|
11
|
+
export declare function sdTableMobileFilterSummary(): (item: SdTableMobileFilterItem, value: TableFilterValue, labels: ɵSdQueryChipLabels) => string;
|
|
@@ -1,23 +1,21 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ElementRef } from '@angular/core';
|
|
2
|
+
import { SdModal } from '@sdcorejs/angular/components/modal';
|
|
3
|
+
import { ɵSdQueryChipLabels } from '@sdcorejs/angular/components/query-bar';
|
|
2
4
|
import { Operator } from '@sdcorejs/utils/models';
|
|
3
5
|
import { SdTableFilterDefDirective } from '../../../directives/sd-table-filter-def.directive';
|
|
4
6
|
import { SdTableColumn } from '../../../models/table-column.model';
|
|
5
|
-
import {
|
|
7
|
+
import { type SdTableMobileFilterItem } from '../../../services/table-filter/table-mobile-filter.util';
|
|
8
|
+
import type { SdTableQueryContext } from '../../../services/table-filter/table-query-bar.util';
|
|
9
|
+
import { SdTableExternalFilter, SdTableOptionFilter, TableFilterRegister, TableFilterValue } from '../../../services/table-filter/table-filter.model';
|
|
6
10
|
import * as i0 from "@angular/core";
|
|
7
11
|
/**
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
* 1. External filter (render inline — KHÔNG reuse external-filter component
|
|
13
|
-
* vì component đó dùng grid 2/3 cột + có chọn ẩn/hiện không phù hợp mobile).
|
|
14
|
-
* 2. filterDefs — custom templates do app khai báo qua `[sdTableFilterDef]`.
|
|
15
|
-
* 3. Column filter — 1 column-filter / column.
|
|
16
|
-
*
|
|
17
|
-
* State: local working copy. Cancel = đóng (không ghi). Apply = flush vào
|
|
18
|
-
* filterRegister + đóng.
|
|
12
|
+
* Filter sheet of the phone (handoff table-mobile 5): one `sd-modal` bottom sheet with two levels — the list of
|
|
13
|
+
* filters with their summary, and the page of one filter. Works on a copy of the filter register: Done keeps the page's
|
|
14
|
+
* edits in the copy, Apply writes every filter and reads once, Cancel / close / a swipe down / the scrim drop the copy.
|
|
15
|
+
* Order: external filters → `sdTableFilterDef` templates → columns.
|
|
19
16
|
*/
|
|
20
17
|
export declare class MobileFilterComponent {
|
|
18
|
+
#private;
|
|
21
19
|
autoIdInput: import("@angular/core").InputSignal<string | null | undefined>;
|
|
22
20
|
filter: import("@angular/core").InputSignal<SdTableOptionFilter<unknown> | undefined>;
|
|
23
21
|
externalFilters: import("@angular/core").InputSignal<SdTableExternalFilter[] | null | undefined>;
|
|
@@ -25,18 +23,52 @@ export declare class MobileFilterComponent {
|
|
|
25
23
|
filterDefs: import("@angular/core").InputSignal<readonly SdTableFilterDefDirective[] | null | undefined>;
|
|
26
24
|
filterRegister: import("@angular/core").InputSignal<TableFilterRegister | undefined>;
|
|
27
25
|
cacheValues: import("@angular/core").InputSignal<Record<string, any[]> | undefined>;
|
|
28
|
-
|
|
26
|
+
/** Filters and the query model, from the table. */
|
|
27
|
+
model: import("@angular/core").InputSignal<{
|
|
28
|
+
ctx: SdTableQueryContext;
|
|
29
|
+
items: SdTableMobileFilterItem[];
|
|
30
|
+
} | undefined>;
|
|
31
|
+
readonly sheet: import("@angular/core").Signal<SdModal>;
|
|
32
|
+
protected readonly head: import("@angular/core").Signal<ElementRef<HTMLElement> | undefined>;
|
|
33
|
+
protected readonly body: import("@angular/core").Signal<ElementRef<HTMLElement> | undefined>;
|
|
29
34
|
workingColumnFilter: import("@angular/core").WritableSignal<Record<string, any>>;
|
|
30
35
|
workingColumnOperator: import("@angular/core").WritableSignal<Record<string, Operator>>;
|
|
31
36
|
workingExternalFilter: import("@angular/core").WritableSignal<Record<string, any>>;
|
|
37
|
+
/** Filter whose page is open; `undefined` on the list. */
|
|
38
|
+
readonly page: import("@angular/core").WritableSignal<SdTableMobileFilterItem | undefined>;
|
|
39
|
+
/** Bumped when the copy changes in place, so summaries and counts follow. */
|
|
40
|
+
readonly revision: import("@angular/core").WritableSignal<number>;
|
|
41
|
+
readonly labels: ɵSdQueryChipLabels;
|
|
32
42
|
autoId: import("@angular/core").Signal<string>;
|
|
33
43
|
externalFilterItems: import("@angular/core").Signal<SdTableExternalFilter[]>;
|
|
34
44
|
columnItems: import("@angular/core").Signal<SdTableColumn[]>;
|
|
35
45
|
filterDefItems: import("@angular/core").Signal<readonly SdTableFilterDefDirective[]>;
|
|
46
|
+
/** The copy as one record; its parts are the working signals' objects, edited in place by the field pages. */
|
|
47
|
+
readonly working: import("@angular/core").Signal<TableFilterValue>;
|
|
48
|
+
readonly rows: import("@angular/core").Signal<{
|
|
49
|
+
item: SdTableMobileFilterItem;
|
|
50
|
+
summary: string;
|
|
51
|
+
active: boolean;
|
|
52
|
+
field: string;
|
|
53
|
+
}[]>;
|
|
54
|
+
readonly activeCount: import("@angular/core").Signal<number>;
|
|
55
|
+
constructor();
|
|
36
56
|
open: () => void;
|
|
37
57
|
close: () => void;
|
|
58
|
+
/** Opens the page of a filter; Back returns to the list. */
|
|
59
|
+
enter(item: SdTableMobileFilterItem): void;
|
|
60
|
+
/** Done / ← / Escape on a page: back to the list, the edits stay in the copy. */
|
|
61
|
+
back(): void;
|
|
38
62
|
onApply: () => void;
|
|
39
63
|
onCancel: () => void;
|
|
64
|
+
/** "Clear all": empties every filter of the copy; Apply still writes it. */
|
|
65
|
+
clearAll(): void;
|
|
66
|
+
/** "Clear" on a page: that filter only. */
|
|
67
|
+
clearPage(): void;
|
|
68
|
+
onChanged(): void;
|
|
69
|
+
onKeydown(event: KeyboardEvent): void;
|
|
70
|
+
/** Every close path ends here: drop the history entries the sheet pushed. */
|
|
71
|
+
onClosed(): void;
|
|
40
72
|
static ɵfac: i0.ɵɵFactoryDeclaration<MobileFilterComponent, never>;
|
|
41
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MobileFilterComponent, "mobile-filter", never, { "autoIdInput": { "alias": "autoId"; "required": false; "isSignal": true; }; "filter": { "alias": "filter"; "required": false; "isSignal": true; }; "externalFilters": { "alias": "externalFilters"; "required": false; "isSignal": true; }; "columns": { "alias": "columns"; "required": false; "isSignal": true; }; "filterDefs": { "alias": "filterDefs"; "required": false; "isSignal": true; }; "filterRegister": { "alias": "filterRegister"; "required": false; "isSignal": true; }; "cacheValues": { "alias": "cacheValues"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
73
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MobileFilterComponent, "mobile-filter", never, { "autoIdInput": { "alias": "autoId"; "required": false; "isSignal": true; }; "filter": { "alias": "filter"; "required": false; "isSignal": true; }; "externalFilters": { "alias": "externalFilters"; "required": false; "isSignal": true; }; "columns": { "alias": "columns"; "required": false; "isSignal": true; }; "filterDefs": { "alias": "filterDefs"; "required": false; "isSignal": true; }; "filterRegister": { "alias": "filterRegister"; "required": false; "isSignal": true; }; "cacheValues": { "alias": "cacheValues"; "required": false; "isSignal": true; }; "model": { "alias": "model"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
42
74
|
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { type SdBadgeData } from '@sdcorejs/angular/components/badge';
|
|
2
|
+
import type { SdTableCellDefDirective } from '../../directives/sd-table-cell-def.directive';
|
|
3
|
+
import type { SdTableColumnAnyRow } from '../../models/table-column.model';
|
|
4
|
+
import type { SdTableItem } from '../../models/table-item.model';
|
|
5
|
+
import type { SdTableMobileView } from '../../services/mobile/mobile-view.util';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
interface DataCell {
|
|
8
|
+
column: SdTableColumnAnyRow;
|
|
9
|
+
label: string;
|
|
10
|
+
highlight: boolean;
|
|
11
|
+
/** The value goes through `desktop-cell` (cell template, or the formatted value); otherwise `text`. */
|
|
12
|
+
cell: boolean;
|
|
13
|
+
text: string;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Body of a phone card built from `mobile.template.data` or `autoTemplate` (handoff table-mobile 9.4): title and
|
|
17
|
+
* badge, a one-line subtitle, then a two-column grid of fields with the column title as label. Grid values take the
|
|
18
|
+
* desktop cell path; the title and subtitle are plain text.
|
|
19
|
+
*/
|
|
20
|
+
export declare class SdTableMobileCardDataComponent {
|
|
21
|
+
#private;
|
|
22
|
+
readonly view: import("@angular/core").InputSignal<SdTableMobileView>;
|
|
23
|
+
readonly row: import("@angular/core").InputSignal<SdTableItem<any>>;
|
|
24
|
+
/** Title when the view has none: the row label. */
|
|
25
|
+
readonly label: import("@angular/core").InputSignal<string>;
|
|
26
|
+
readonly cellDef: import("@angular/core").InputSignal<Record<string, SdTableCellDefDirective<any>>>;
|
|
27
|
+
readonly autoId: import("@angular/core").InputSignal<string | undefined>;
|
|
28
|
+
readonly expanded: import("@angular/core").WritableSignal<boolean>;
|
|
29
|
+
readonly title: import("@angular/core").Signal<string>;
|
|
30
|
+
readonly subtitle: import("@angular/core").Signal<string>;
|
|
31
|
+
readonly badge: import("@angular/core").Signal<{
|
|
32
|
+
kind: "badge";
|
|
33
|
+
data: SdBadgeData;
|
|
34
|
+
title: string;
|
|
35
|
+
} | {
|
|
36
|
+
kind: "text";
|
|
37
|
+
text: string;
|
|
38
|
+
} | undefined>;
|
|
39
|
+
readonly cells: import("@angular/core").Signal<DataCell[]>;
|
|
40
|
+
readonly hiddenCount: import("@angular/core").Signal<number>;
|
|
41
|
+
readonly shownCells: import("@angular/core").Signal<DataCell[]>;
|
|
42
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SdTableMobileCardDataComponent, never>;
|
|
43
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SdTableMobileCardDataComponent, "sd-table-mobile-card-data", never, { "view": { "alias": "view"; "required": true; "isSignal": true; }; "row": { "alias": "row"; "required": true; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "cellDef": { "alias": "cellDef"; "required": false; "isSignal": true; }; "autoId": { "alias": "autoId"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
44
|
+
}
|
|
45
|
+
export {};
|
|
@@ -5,9 +5,19 @@ import type { SdTableRowMobileDefContext } from '../../directives/sd-table-row-m
|
|
|
5
5
|
import { Command } from '../command/pipes/filter.pipe';
|
|
6
6
|
import { SdTableMobileAction } from './mobile-action.model';
|
|
7
7
|
import type { AggregateRow } from '../../services/table-aggregate.util';
|
|
8
|
+
import { type SdTableMobileBody, type SdTableMobileView } from '../../services/mobile/mobile-view.util';
|
|
8
9
|
import * as i0 from "@angular/core";
|
|
10
|
+
type CardBody<T> = {
|
|
11
|
+
kind: 'template';
|
|
12
|
+
templateRef: TemplateRef<SdTableRowMobileDefContext<T>>;
|
|
13
|
+
} | {
|
|
14
|
+
kind: 'data';
|
|
15
|
+
view: SdTableMobileView;
|
|
16
|
+
};
|
|
9
17
|
interface Card<T> {
|
|
10
18
|
row: SdTableItem<T>;
|
|
19
|
+
/** Card body of a data row; `undefined` for group and summary rows. */
|
|
20
|
+
body?: CardBody<T>;
|
|
11
21
|
context: SdTableRowMobileDefContext<T>;
|
|
12
22
|
label: string;
|
|
13
23
|
selectLabel: string;
|
|
@@ -20,6 +30,8 @@ interface Card<T> {
|
|
|
20
30
|
export declare class SdTableMobileCardsComponent<T = unknown> implements OnDestroy {
|
|
21
31
|
#private;
|
|
22
32
|
readonly table: import("@angular/core").InputSignal<SdTable<T>>;
|
|
33
|
+
/** Card body the table resolved (`sdTableRowMobileDef`, `mobile.template` or `autoTemplate`). */
|
|
34
|
+
readonly body: import("@angular/core").InputSignal<SdTableMobileBody<T> | undefined>;
|
|
23
35
|
readonly rows: import("@angular/core").InputSignal<SdTableItem<T>[]>;
|
|
24
36
|
readonly dataRows: import("@angular/core").InputSignal<SdTableItem<T>[] | undefined>;
|
|
25
37
|
readonly aggregateTemplate: import("@angular/core").InputSignal<TemplateRef<{
|
|
@@ -56,6 +68,6 @@ export declare class SdTableMobileCardsComponent<T = unknown> implements OnDestr
|
|
|
56
68
|
dragStart(): void;
|
|
57
69
|
ngOnDestroy(): void;
|
|
58
70
|
static ɵfac: i0.ɵɵFactoryDeclaration<SdTableMobileCardsComponent<any>, never>;
|
|
59
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SdTableMobileCardsComponent<any>, "sd-table-mobile-cards", never, { "table": { "alias": "table"; "required": true; "isSignal": true; }; "rows": { "alias": "rows"; "required": true; "isSignal": true; }; "dataRows": { "alias": "dataRows"; "required": false; "isSignal": true; }; "aggregateTemplate": { "alias": "aggregateTemplate"; "required": false; "isSignal": true; }; "groupTemplate": { "alias": "groupTemplate"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
71
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SdTableMobileCardsComponent<any>, "sd-table-mobile-cards", never, { "table": { "alias": "table"; "required": true; "isSignal": true; }; "body": { "alias": "body"; "required": false; "isSignal": true; }; "rows": { "alias": "rows"; "required": true; "isSignal": true; }; "dataRows": { "alias": "dataRows"; "required": false; "isSignal": true; }; "aggregateTemplate": { "alias": "aggregateTemplate"; "required": false; "isSignal": true; }; "groupTemplate": { "alias": "groupTemplate"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
60
72
|
}
|
|
61
73
|
export {};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/** Drag distance after which a released handle closes the sheet. */
|
|
2
|
+
export declare const SD_TABLE_SHEET_DISMISS_DISTANCE = 80;
|
|
3
|
+
/**
|
|
4
|
+
* Browser Back for the phone sheets (handoff table-mobile 15.6). Each level pushes one history entry with the same URL
|
|
5
|
+
* and state, so the router sees no navigation; Back pops the entry and runs the level's handler instead of leaving the
|
|
6
|
+
* page. When the UI closes levels itself, `release` takes their entries back off the history.
|
|
7
|
+
*
|
|
8
|
+
* The sheets open `sd-modal` with `closeOnNavigation: false`, otherwise Material would close them on that popstate.
|
|
9
|
+
*
|
|
10
|
+
* Off while the table sits in an overlay (a dialog, a bottom sheet): every popstate, the ones `release` causes
|
|
11
|
+
* included, makes Material close that overlay (`closeOnNavigation`). Back then closes the overlay, as before.
|
|
12
|
+
*/
|
|
13
|
+
export declare class SdTableSheetHistory {
|
|
14
|
+
#private;
|
|
15
|
+
/** `owner`: an element of the table, to tell whether it sits in an overlay. */
|
|
16
|
+
constructor(window: Window | null, owner?: Element | null);
|
|
17
|
+
get depth(): number;
|
|
18
|
+
/** Opens a level: Back now runs `onBack` (which must not call `release`). */
|
|
19
|
+
push(onBack: () => void): void;
|
|
20
|
+
/**
|
|
21
|
+
* The UI closed `count` levels itself (all by default): drop their entries from the history. When the URL changed
|
|
22
|
+
* since the first level opened (the router navigated, the app wrote query params), the entries are only forgotten:
|
|
23
|
+
* going back would undo that navigation.
|
|
24
|
+
*/
|
|
25
|
+
release(count?: number): void;
|
|
26
|
+
/** Destroy: stop listening. A sheet that was open has already released its levels when its modal closed. */
|
|
27
|
+
dispose(): void;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Swipe down on the handle and header of a bottom sheet (`element` inside the Material container) to close it. The
|
|
31
|
+
* container follows the finger; a release past `SD_TABLE_SHEET_DISMISS_DISTANCE` calls `onDismiss`, a shorter one puts
|
|
32
|
+
* it back. Listeners are passive (they never cancel scrolling); the dragged area has `touch-action: none` in CSS.
|
|
33
|
+
* Returns the cleanup.
|
|
34
|
+
*/
|
|
35
|
+
export declare const sdTableSheetSwipe: (element: HTMLElement, onDismiss: () => void) => (() => void);
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { ElementRef } from '@angular/core';
|
|
2
|
+
import { SortDirection } from '@angular/material/sort';
|
|
3
|
+
import { SdModal } from '@sdcorejs/angular/components/modal';
|
|
4
|
+
import { type SdSegmentedItem } from '@sdcorejs/angular/forms/segmented';
|
|
5
|
+
import type { SdTable } from '../../table.component';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
/**
|
|
8
|
+
* Sort sheet of the phone (handoff table-mobile 6): direction (Ascending | Descending) and one sortable column, hidden
|
|
9
|
+
* columns included. Picking a column sorts at once and closes; changing the direction re-sorts while a column is
|
|
10
|
+
* picked, otherwise it is kept for the next pick; "Clear sort" goes back to no sort.
|
|
11
|
+
*/
|
|
12
|
+
export declare class SdTableMobileSortSheetComponent<T = unknown> {
|
|
13
|
+
#private;
|
|
14
|
+
readonly table: import("@angular/core").InputSignal<SdTable<T>>;
|
|
15
|
+
readonly sheet: import("@angular/core").Signal<SdModal>;
|
|
16
|
+
protected readonly head: import("@angular/core").Signal<ElementRef<HTMLElement> | undefined>;
|
|
17
|
+
readonly state: import("@angular/core").Signal<{
|
|
18
|
+
active: string;
|
|
19
|
+
direction: SortDirection;
|
|
20
|
+
}>;
|
|
21
|
+
readonly active: import("@angular/core").Signal<string>;
|
|
22
|
+
readonly direction: import("@angular/core").Signal<"desc" | "asc">;
|
|
23
|
+
readonly columns: import("@angular/core").Signal<{
|
|
24
|
+
value: string;
|
|
25
|
+
label: string;
|
|
26
|
+
}[]>;
|
|
27
|
+
readonly directions: import("@angular/core").Signal<SdSegmentedItem<"desc" | "asc">[]>;
|
|
28
|
+
constructor();
|
|
29
|
+
open(): void;
|
|
30
|
+
pickColumn(field: unknown): void;
|
|
31
|
+
pickDirection(direction: unknown): void;
|
|
32
|
+
clear(): void;
|
|
33
|
+
onClosed(): void;
|
|
34
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SdTableMobileSortSheetComponent<any>, never>;
|
|
35
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SdTableMobileSortSheetComponent<any>, "sd-table-mobile-sort-sheet", never, { "table": { "alias": "table"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
36
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { ɵSdQueryChipLabels } from '@sdcorejs/angular/components/query-bar';
|
|
2
|
+
import type { SdTable } from '../../table.component';
|
|
3
|
+
import type { TableFilterValue } from '../../services/table-filter/table-filter.model';
|
|
4
|
+
import type { SdTableQueryContext } from '../../services/table-filter/table-query-bar.util';
|
|
5
|
+
import { type SdTableMobileFilterItem } from '../../services/table-filter/table-mobile-filter.util';
|
|
6
|
+
import { SdTableMobileFieldSheetComponent } from '../filter/mobile-filter/mobile-field-sheet.component';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
interface FieldChip {
|
|
9
|
+
item: SdTableMobileFilterItem;
|
|
10
|
+
field: string;
|
|
11
|
+
/** `Name` when not filtering, `Name: summary` when filtering. */
|
|
12
|
+
text: string;
|
|
13
|
+
active: boolean;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Filter chips under the table search on phones (handoff table-mobile 3): Filters (with the number of active filters),
|
|
17
|
+
* Sort, a divider, then one chip per filter the table can summarise, in a fixed order. A field chip opens its own sheet;
|
|
18
|
+
* the sort chip asks the table to open the sort sheet (`sortOpen`).
|
|
19
|
+
*/
|
|
20
|
+
export declare class SdTableMobileFilterChipsComponent<T = unknown> {
|
|
21
|
+
#private;
|
|
22
|
+
readonly table: import("@angular/core").InputSignal<SdTable<T>>;
|
|
23
|
+
/** Filters of the phone UI and the applied value (from the table). */
|
|
24
|
+
readonly model: import("@angular/core").InputSignal<{
|
|
25
|
+
ctx: SdTableQueryContext;
|
|
26
|
+
items: SdTableMobileFilterItem[];
|
|
27
|
+
} | undefined>;
|
|
28
|
+
readonly value: import("@angular/core").InputSignal<TableFilterValue | undefined>;
|
|
29
|
+
readonly sortAvailable: import("@angular/core").InputSignal<boolean>;
|
|
30
|
+
readonly sortLabel: import("@angular/core").InputSignal<string>;
|
|
31
|
+
readonly fieldSheet: import("@angular/core").Signal<SdTableMobileFieldSheetComponent<any>>;
|
|
32
|
+
readonly sortOpen: import("@angular/core").OutputEmitterRef<void>;
|
|
33
|
+
readonly labels: ɵSdQueryChipLabels;
|
|
34
|
+
readonly count: import("@angular/core").Signal<number>;
|
|
35
|
+
readonly filterLabel: import("@angular/core").Signal<string>;
|
|
36
|
+
readonly chips: import("@angular/core").Signal<FieldChip[]>;
|
|
37
|
+
/** Sort chip (3.2): only an icon while the table is not sorted, else the arrow and the column. */
|
|
38
|
+
readonly sort: import("@angular/core").Signal<{
|
|
39
|
+
active: boolean;
|
|
40
|
+
title: string;
|
|
41
|
+
icon: string;
|
|
42
|
+
label: string;
|
|
43
|
+
} | undefined>;
|
|
44
|
+
openAll(): void;
|
|
45
|
+
openField(chip: FieldChip): void;
|
|
46
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SdTableMobileFilterChipsComponent<any>, never>;
|
|
47
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SdTableMobileFilterChipsComponent<any>, "sd-table-mobile-filter-chips", never, { "table": { "alias": "table"; "required": true; "isSignal": true; }; "model": { "alias": "model"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "sortAvailable": { "alias": "sortAvailable"; "required": false; "isSignal": true; }; "sortLabel": { "alias": "sortLabel"; "required": false; "isSignal": true; }; }, { "sortOpen": "sortOpen"; }, never, never, true, never>;
|
|
48
|
+
}
|
|
49
|
+
export {};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { ElementRef } from '@angular/core';
|
|
2
|
+
import { SdModal } from '@sdcorejs/angular/components/modal';
|
|
3
|
+
import type { SdTable } from '../../table.component';
|
|
4
|
+
import type { SdTableMobileAction } from '../mobile-cards/mobile-action.model';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
type ToolTone = 'success' | 'info' | 'primary' | 'secondary';
|
|
7
|
+
interface Tool {
|
|
8
|
+
action: SdTableMobileAction;
|
|
9
|
+
title: string;
|
|
10
|
+
hint: string;
|
|
11
|
+
icon: string;
|
|
12
|
+
tone: ToolTone;
|
|
13
|
+
/** Short note next to the title, e.g. "Customized" while the table uses a setup of its own. */
|
|
14
|
+
badge?: string;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Tools sheet of the phone (⋮, handoff table-mobile 2): the exports as tiles (format, file kind, progress while one runs)
|
|
18
|
+
* and the table settings as a row that says when the table uses a setup of its own. Same chrome as the other phone
|
|
19
|
+
* sheets: handle, title, swipe down and Back close it. An export keeps the sheet open until it is done.
|
|
20
|
+
*/
|
|
21
|
+
export declare class SdTableMobileToolsSheetComponent<T = unknown> {
|
|
22
|
+
#private;
|
|
23
|
+
readonly table: import("@angular/core").InputSignal<SdTable<T>>;
|
|
24
|
+
/** `SdTable.mobileToolsActions`. */
|
|
25
|
+
readonly actions: import("@angular/core").InputSignal<SdTableMobileAction[]>;
|
|
26
|
+
readonly sheet: import("@angular/core").Signal<SdModal>;
|
|
27
|
+
protected readonly head: import("@angular/core").Signal<ElementRef<HTMLElement> | undefined>;
|
|
28
|
+
protected readonly ids: {
|
|
29
|
+
export: string;
|
|
30
|
+
table: string;
|
|
31
|
+
};
|
|
32
|
+
/** Key of the export started from this sheet, until it is done. */
|
|
33
|
+
readonly running: import("@angular/core").WritableSignal<string | undefined>;
|
|
34
|
+
readonly exporting: import("@angular/core").WritableSignal<boolean>;
|
|
35
|
+
readonly tools: import("@angular/core").Signal<Tool[]>;
|
|
36
|
+
readonly exportTools: import("@angular/core").Signal<Tool[]>;
|
|
37
|
+
readonly tableTools: import("@angular/core").Signal<Tool[]>;
|
|
38
|
+
/** Hint of the running export: the percent of a paged export, else "Exporting…". */
|
|
39
|
+
readonly progress: import("@angular/core").Signal<string>;
|
|
40
|
+
constructor();
|
|
41
|
+
open(): void;
|
|
42
|
+
run(tool: Tool): void;
|
|
43
|
+
/** Every close path ends here: drop the history entry, then run a tool that waited for the close. */
|
|
44
|
+
onClosed(): void;
|
|
45
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SdTableMobileToolsSheetComponent<any>, never>;
|
|
46
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SdTableMobileToolsSheetComponent<any>, "sd-table-mobile-tools-sheet", never, { "table": { "alias": "table"; "required": true; "isSignal": true; }; "actions": { "alias": "actions"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
47
|
+
}
|
|
48
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
/** Pull distance that triggers a refresh. */
|
|
3
|
+
export declare const SD_TABLE_PULL_DISTANCE = 64;
|
|
4
|
+
/**
|
|
5
|
+
* Pull to refresh on the phone cards (handoff table-mobile 7). Listens to touches on `target` (the card list); only a
|
|
6
|
+
* pull that starts with the list at the top, while no sheet is open, counts. Past `SD_TABLE_PULL_DISTANCE` the release
|
|
7
|
+
* emits `refresh`; the indicator stays until `loading` turns false. Listeners are passive.
|
|
8
|
+
*/
|
|
9
|
+
export declare class SdTablePullRefreshComponent {
|
|
10
|
+
#private;
|
|
11
|
+
readonly target: import("@angular/core").InputSignal<HTMLElement | undefined>;
|
|
12
|
+
readonly enabled: import("@angular/core").InputSignal<boolean>;
|
|
13
|
+
readonly loading: import("@angular/core").InputSignal<boolean>;
|
|
14
|
+
readonly refresh: import("@angular/core").OutputEmitterRef<void>;
|
|
15
|
+
readonly distance: import("@angular/core").WritableSignal<number>;
|
|
16
|
+
readonly refreshing: import("@angular/core").WritableSignal<boolean>;
|
|
17
|
+
readonly threshold = 64;
|
|
18
|
+
constructor();
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SdTablePullRefreshComponent, never>;
|
|
20
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SdTablePullRefreshComponent, "sd-table-pull-refresh", never, { "target": { "alias": "target"; "required": false; "isSignal": true; }; "enabled": { "alias": "enabled"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; }, { "refresh": "refresh"; }, never, never, true, never>;
|
|
21
|
+
}
|
|
@@ -20,6 +20,12 @@ 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
|
+
/** Cho người dùng chọn giao diện lọc trong modal Thiết lập; `option.filter.modeSelectable` thắng. Mặc định là `true`. */
|
|
26
|
+
modeSelectable?: SdTableOptionFilter['modeSelectable'];
|
|
27
|
+
/** Tuỳ chọn mặc định của mode `'query-bar'`; gộp theo từng field với `option.filter.queryBar`. */
|
|
28
|
+
queryBar?: SdTableOptionFilter['queryBar'];
|
|
23
29
|
operator?: {
|
|
24
30
|
list?: Partial<Record<SdTableColumn['type'], Operator[]>>;
|
|
25
31
|
default?: Partial<Record<SdTableColumn['type'], Operator>>;
|
|
@@ -32,6 +38,13 @@ export interface ISdTableConfiguration {
|
|
|
32
38
|
};
|
|
33
39
|
/** 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. */
|
|
34
40
|
loading?: SdTableOptionLoading;
|
|
41
|
+
mobile?: {
|
|
42
|
+
/**
|
|
43
|
+
* Phone cards for tables without a card body (`sdTableRowMobileDef` or `mobile.template`): the card is built from
|
|
44
|
+
* the visible columns. `mobile.template: false` opts a table out. Mặc định là `false`.
|
|
45
|
+
*/
|
|
46
|
+
autoTemplate?: boolean;
|
|
47
|
+
};
|
|
35
48
|
}
|
|
36
49
|
export declare const DEFAULT_TABLE_CONFIG: ISdTableConfiguration;
|
|
37
50
|
export declare const SD_TABLE_CONFIGURATION: InjectionToken<ISdTableConfiguration>;
|
|
@@ -4,4 +4,5 @@ export type * from './table-aggregate.model';
|
|
|
4
4
|
export type * from './table-command.model';
|
|
5
5
|
export type * from './table-option-tree.model';
|
|
6
6
|
export type * from './table-option-loading.model';
|
|
7
|
+
export type * from './table-mobile.model';
|
|
7
8
|
export type { SdTableItem, SdTableMeta, SdTableDisplay } from './table-item.model';
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import type { TemplateRef } from '@angular/core';
|
|
2
|
+
import type { SdBadgeData } from '@sdcorejs/angular/components/badge';
|
|
3
|
+
import type { NestedKeyOf } from '@sdcorejs/utils/models';
|
|
4
|
+
import type { SdTableRowMobileDefContext } from '../directives/sd-table-row-mobile-def.directive';
|
|
5
|
+
/** A leaf column of the table, by its `field`. Checked at build time (`NestedKeyOf<T>`) and at run time (leaf column). */
|
|
6
|
+
export type SdTableMobileField<T> = NestedKeyOf<T>;
|
|
7
|
+
/** A column value, or fixed text shown as is. */
|
|
8
|
+
export type SdTableMobileText<T> = SdTableMobileField<T> | {
|
|
9
|
+
text: string;
|
|
10
|
+
};
|
|
11
|
+
/** Slots every mobile layout has. */
|
|
12
|
+
export interface SdTableMobileData<T> {
|
|
13
|
+
/** First line, 15px medium. A missing or unknown field falls back to `mobile.rowLabel`, then `rowKey`. */
|
|
14
|
+
title: SdTableMobileText<T>;
|
|
15
|
+
/** Second line, one line cut with "…". */
|
|
16
|
+
subtitle?: SdTableMobileText<T>;
|
|
17
|
+
/** After the title. A field must be a column with `useBadge` (checked at run time), otherwise it shows as text. */
|
|
18
|
+
badge?: SdTableMobileField<T> | SdBadgeData;
|
|
19
|
+
/** Grid cells with the column title as label, in this order. */
|
|
20
|
+
fields?: SdTableMobileField<T>[];
|
|
21
|
+
}
|
|
22
|
+
/** Data of a `card` (the only layout so far). */
|
|
23
|
+
export interface SdTableMobileCardData<T> extends SdTableMobileData<T> {
|
|
24
|
+
/** First grid cell, medium weight. */
|
|
25
|
+
highlight?: SdTableMobileField<T>;
|
|
26
|
+
/**
|
|
27
|
+
* Grid cells shown before the "{n} more fields" button, `highlight` included.
|
|
28
|
+
* @defaultValue 4
|
|
29
|
+
*/
|
|
30
|
+
maxFields?: number;
|
|
31
|
+
/**
|
|
32
|
+
* Not a card slot. why: TypeScript does not report excess properties of an object returned by an arrow function,
|
|
33
|
+
* so `never` is what rejects `trailing` (a slot of the future `list` layout) on a card.
|
|
34
|
+
*/
|
|
35
|
+
trailing?: never;
|
|
36
|
+
}
|
|
37
|
+
/** Second argument of `mobile.template.data`. */
|
|
38
|
+
export interface SdTableMobileDataContext {
|
|
39
|
+
/** Zero-based data-row position on the current page, as in `SdTableRowMobileDefContext`. */
|
|
40
|
+
index: number;
|
|
41
|
+
selected: boolean;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Builds the slots of one row. Called again when the rows are read again or `detectChanges()` runs, and when the index
|
|
45
|
+
* or the selection of the row changes.
|
|
46
|
+
*/
|
|
47
|
+
export type SdTableMobileDataFn<T, D> = (item: T, context: SdTableMobileDataContext) => D;
|
|
48
|
+
/**
|
|
49
|
+
* Body of the phone card: a consumer template, or slots built from the row (`data`). `layout` is fixed per table;
|
|
50
|
+
* leaving it out means `'card'`.
|
|
51
|
+
*/
|
|
52
|
+
export type SdTableMobileTemplate<T> = TemplateRef<SdTableRowMobileDefContext<T>> | {
|
|
53
|
+
layout?: 'card';
|
|
54
|
+
data: SdTableMobileDataFn<T, SdTableMobileCardData<T>>;
|
|
55
|
+
};
|
|
@@ -13,6 +13,7 @@ import { SdTableOptionSelector } from './table-option-selector.model';
|
|
|
13
13
|
import { SdTableOptionSort } from './table-option-sort.model';
|
|
14
14
|
import { SdTableOptionStyle } from './table-option-style.model';
|
|
15
15
|
import { SdTableOptionTree } from './table-option-tree.model';
|
|
16
|
+
import type { SdTableMobileTemplate } from './table-mobile.model';
|
|
16
17
|
import type { SdTableOptionAggregate } from './table-aggregate.model';
|
|
17
18
|
export type SdTableOption<T = any> = SdTableLocalOption<T> | SdTableServerOption<T>;
|
|
18
19
|
interface SdTableBaseOption<T = any> {
|
|
@@ -43,10 +44,19 @@ interface SdTableBaseOption<T = any> {
|
|
|
43
44
|
* cần autoId theo dòng ổn định cho E2E.
|
|
44
45
|
*/
|
|
45
46
|
rowKey?: string;
|
|
46
|
-
/**
|
|
47
|
+
/**
|
|
48
|
+
* Phone layout. Cards activate when the table has a card body: a projected `sdTableRowMobileDef` (wins, with a dev
|
|
49
|
+
* warning when `template` is set too), `template`, or `SD_TABLE_CONFIGURATION.mobile.autoTemplate`.
|
|
50
|
+
*/
|
|
47
51
|
mobile?: {
|
|
48
52
|
/** Row command title and accessible labels; falls back to rowKey, then row number. */
|
|
49
53
|
rowLabel?: (row: T) => string;
|
|
54
|
+
/**
|
|
55
|
+
* Card body on phones: a `TemplateRef`, or `{ data }` to build the card from row values. `false` keeps the desktop
|
|
56
|
+
* table on phones even with `autoTemplate`.
|
|
57
|
+
* @example `template: { data: row => ({ title: 'code', badge: 'status', highlight: 'total' }) }`
|
|
58
|
+
*/
|
|
59
|
+
template?: SdTableMobileTemplate<T> | false;
|
|
50
60
|
};
|
|
51
61
|
/**
|
|
52
62
|
* Cấu hình hiển thị/phục hồi config của table.
|
|
@@ -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>[];
|