@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
|
@@ -22,6 +22,11 @@ export declare class SdModal implements OnDestroy {
|
|
|
22
22
|
hideClose: import("@angular/core").InputSignalWithTransform<boolean, boolean | "">;
|
|
23
23
|
disableBackdropClose: import("@angular/core").InputSignalWithTransform<boolean, boolean | "">;
|
|
24
24
|
beforeClose: import("@angular/core").InputSignal<SdModalBeforeClose | undefined>;
|
|
25
|
+
/**
|
|
26
|
+
* Close when the browser history changes (Back, a route change). `false` lets the content handle Back itself, e.g.
|
|
27
|
+
* a sheet with pages. Same name as `MatDialogConfig.closeOnNavigation`.
|
|
28
|
+
*/
|
|
29
|
+
closeOnNavigation: import("@angular/core").InputSignalWithTransform<boolean, boolean | "">;
|
|
25
30
|
sdClosed: import("@angular/core").OutputEmitterRef<void>;
|
|
26
31
|
sdCloseError: import("@angular/core").OutputEmitterRef<unknown>;
|
|
27
32
|
isOpened: import("@angular/core").WritableSignal<boolean>;
|
|
@@ -33,5 +38,5 @@ export declare class SdModal implements OnDestroy {
|
|
|
33
38
|
requestClose: () => Promise<boolean>;
|
|
34
39
|
forceClose: () => void;
|
|
35
40
|
static ɵfac: i0.ɵɵFactoryDeclaration<SdModal, never>;
|
|
36
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SdModal, "sd-modal", never, { "autoIdInput": { "alias": "autoId"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "view": { "alias": "view"; "required": false; "isSignal": true; }; "modalClass": { "alias": "modalClass"; "required": false; "isSignal": true; }; "lazyLoadContent": { "alias": "lazyLoadContent"; "required": false; "isSignal": true; }; "hideClose": { "alias": "hideClose"; "required": false; "isSignal": true; }; "disableBackdropClose": { "alias": "disableBackdropClose"; "required": false; "isSignal": true; }; "beforeClose": { "alias": "beforeClose"; "required": false; "isSignal": true; }; }, { "sdClosed": "sdClosed"; "sdCloseError": "sdCloseError"; }, never, ["[sdHeaderLeft]", "[sdHeaderRight]", "*", "[sdFooterLeft]", "[sdFooterRight]"], true, never>;
|
|
41
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SdModal, "sd-modal", never, { "autoIdInput": { "alias": "autoId"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "view": { "alias": "view"; "required": false; "isSignal": true; }; "modalClass": { "alias": "modalClass"; "required": false; "isSignal": true; }; "lazyLoadContent": { "alias": "lazyLoadContent"; "required": false; "isSignal": true; }; "hideClose": { "alias": "hideClose"; "required": false; "isSignal": true; }; "disableBackdropClose": { "alias": "disableBackdropClose"; "required": false; "isSignal": true; }; "beforeClose": { "alias": "beforeClose"; "required": false; "isSignal": true; }; "closeOnNavigation": { "alias": "closeOnNavigation"; "required": false; "isSignal": true; }; }, { "sdClosed": "sdClosed"; "sdCloseError": "sdCloseError"; }, never, ["[sdHeaderLeft]", "[sdHeaderRight]", "*", "[sdFooterLeft]", "[sdFooterRight]"], true, never>;
|
|
37
42
|
}
|
|
@@ -20,13 +20,18 @@ export declare class SdQueryActionsBar {
|
|
|
20
20
|
readonly query: import("@angular/core").InputSignal<SdQuery<unknown>>;
|
|
21
21
|
readonly applyFilter: import("@angular/core").OutputEmitterRef<SdSavedFilter<unknown>>;
|
|
22
22
|
readonly showClearAll: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
23
|
+
/** Number in the clear-all label; falls back to `filtersCount`. `0` drops the number. */
|
|
24
|
+
readonly clearCount: import("@angular/core").InputSignal<number | undefined>;
|
|
25
|
+
readonly clearDisabled: import("@angular/core").InputSignal<boolean>;
|
|
23
26
|
readonly clear: import("@angular/core").OutputEmitterRef<void>;
|
|
24
27
|
readonly canSearch: import("@angular/core").InputSignal<boolean>;
|
|
28
|
+
/** `false` hides the button (bar `applyOn: 'commit'`). */
|
|
29
|
+
readonly showSearchButton: import("@angular/core").InputSignal<boolean>;
|
|
25
30
|
readonly search: import("@angular/core").OutputEmitterRef<void>;
|
|
26
31
|
readonly logicGroupLabel: import("@angular/core").Signal<string>;
|
|
27
32
|
readonly clearAllLabel: import("@angular/core").Signal<string>;
|
|
28
33
|
readonly searchLabel: import("@angular/core").Signal<string>;
|
|
29
34
|
setLogic(value: SdQueryLogic): void;
|
|
30
35
|
static ɵfac: i0.ɵɵFactoryDeclaration<SdQueryActionsBar, never>;
|
|
31
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SdQueryActionsBar, "sd-query-actions-bar", never, { "showLogicToggle": { "alias": "showLogicToggle"; "required": false; "isSignal": true; }; "logic": { "alias": "logic"; "required": false; "isSignal": true; }; "filtersCount": { "alias": "filtersCount"; "required": false; "isSignal": true; }; "showSavedFilters": { "alias": "showSavedFilters"; "required": false; "isSignal": true; }; "savedFiltersKey": { "alias": "savedFiltersKey"; "required": false; "isSignal": true; }; "query": { "alias": "query"; "required": false; "isSignal": true; }; "showClearAll": { "alias": "showClearAll"; "required": false; "isSignal": true; }; "canSearch": { "alias": "canSearch"; "required": false; "isSignal": true; }; }, { "logic": "logicChange"; "applyFilter": "applyFilter"; "clear": "clear"; "search": "search"; }, never, never, true, never>;
|
|
36
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SdQueryActionsBar, "sd-query-actions-bar", never, { "showLogicToggle": { "alias": "showLogicToggle"; "required": false; "isSignal": true; }; "logic": { "alias": "logic"; "required": false; "isSignal": true; }; "filtersCount": { "alias": "filtersCount"; "required": false; "isSignal": true; }; "showSavedFilters": { "alias": "showSavedFilters"; "required": false; "isSignal": true; }; "savedFiltersKey": { "alias": "savedFiltersKey"; "required": false; "isSignal": true; }; "query": { "alias": "query"; "required": false; "isSignal": true; }; "showClearAll": { "alias": "showClearAll"; "required": false; "isSignal": true; }; "clearCount": { "alias": "clearCount"; "required": false; "isSignal": true; }; "clearDisabled": { "alias": "clearDisabled"; "required": false; "isSignal": true; }; "canSearch": { "alias": "canSearch"; "required": false; "isSignal": true; }; "showSearchButton": { "alias": "showSearchButton"; "required": false; "isSignal": true; }; }, { "logic": "logicChange"; "applyFilter": "applyFilter"; "clear": "clear"; "search": "search"; }, never, never, true, never>;
|
|
32
37
|
}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { MatMenu } from '@angular/material/menu';
|
|
2
2
|
import { SdQueryField, sdQueryFieldIcon } from '../../query-bar.model';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
+
interface FieldGroup {
|
|
5
|
+
label: string;
|
|
6
|
+
fields: SdQueryField[];
|
|
7
|
+
}
|
|
4
8
|
/**
|
|
5
9
|
* Field picker mat-menu for `sd-query-bar`.
|
|
6
10
|
*
|
|
@@ -16,6 +20,7 @@ import * as i0 from "@angular/core";
|
|
|
16
20
|
export declare class SdQueryFieldPicker {
|
|
17
21
|
#private;
|
|
18
22
|
readonly emptyLabel: import("@angular/core").Signal<string>;
|
|
23
|
+
readonly findLabel: import("@angular/core").Signal<string>;
|
|
19
24
|
/** Field list shown in the menu (caller-supplied; rendered in input order). */
|
|
20
25
|
readonly fields: import("@angular/core").InputSignal<SdQueryField[]>;
|
|
21
26
|
/** Single key disabled with a trailing check — used in the chip-popover "Đổi field" flow. */
|
|
@@ -27,6 +32,21 @@ export declare class SdQueryFieldPicker {
|
|
|
27
32
|
/** MatMenu instance — parent binds `[matMenuTriggerFor]="picker.menu()"`. */
|
|
28
33
|
readonly menu: import("@angular/core").Signal<MatMenu>;
|
|
29
34
|
readonly iconFor: typeof sdQueryFieldIcon;
|
|
35
|
+
/** Text typed in the find box; reset when the menu closes. */
|
|
36
|
+
readonly query: import("@angular/core").WritableSignal<string>;
|
|
37
|
+
/** Find box above more than eight fields. */
|
|
38
|
+
readonly searchable: import("@angular/core").Signal<boolean>;
|
|
39
|
+
/** Fields grouped by `field.group` in order of first appearance, filtered by the find box. */
|
|
40
|
+
readonly groups: import("@angular/core").Signal<FieldGroup[]>;
|
|
41
|
+
/** One group needs no heading. Counted on the whole list so filtering does not hide headings. */
|
|
42
|
+
readonly showGroupHeadings: import("@angular/core").Signal<boolean>;
|
|
43
|
+
private readonly findInput;
|
|
44
|
+
/**
|
|
45
|
+
* Called by the trigger's `(menuOpened)`: land in the find box. why: mat-menu focuses its first
|
|
46
|
+
* item after rendering (afterNextRender), so the find box takes focus in a later render callback.
|
|
47
|
+
*/
|
|
48
|
+
focusFind(): void;
|
|
49
|
+
onFindKeydown(event: KeyboardEvent): void;
|
|
30
50
|
/** Per-field disabled state — current key OR used key OR field's own disabled flag. */
|
|
31
51
|
readonly disabledMap: import("@angular/core").Signal<Set<string>>;
|
|
32
52
|
isDisabled(field: SdQueryField): boolean;
|
|
@@ -37,3 +57,4 @@ export declare class SdQueryFieldPicker {
|
|
|
37
57
|
static ɵfac: i0.ɵɵFactoryDeclaration<SdQueryFieldPicker, never>;
|
|
38
58
|
static ɵcmp: i0.ɵɵComponentDeclaration<SdQueryFieldPicker, "sd-query-field-picker", never, { "fields": { "alias": "fields"; "required": false; "isSignal": true; }; "currentKey": { "alias": "currentKey"; "required": false; "isSignal": true; }; "usedKeys": { "alias": "usedKeys"; "required": false; "isSignal": true; }; }, { "pick": "pick"; }, never, never, true, never>;
|
|
39
59
|
}
|
|
60
|
+
export {};
|
|
@@ -38,6 +38,12 @@ export declare class SdQueryInlineChip {
|
|
|
38
38
|
readonly valueText: import("@angular/core").InputSignal<string>;
|
|
39
39
|
/** No-data operator (NULL/NOT_NULL) — hide entire value slot when true. */
|
|
40
40
|
readonly isNoData: import("@angular/core").InputSignal<boolean>;
|
|
41
|
+
/** Pinned chip — no × button. */
|
|
42
|
+
readonly pinned: import("@angular/core").InputSignal<boolean>;
|
|
43
|
+
/** Required chip without a value — error look, `aria-invalid`. */
|
|
44
|
+
readonly invalid: import("@angular/core").InputSignal<boolean>;
|
|
45
|
+
/** Id set as `aria-describedby` (the host's required hint). */
|
|
46
|
+
readonly describedBy: import("@angular/core").InputSignal<string | undefined>;
|
|
41
47
|
/** Single-value commit — parent runs `updateFilter(i, { data })`. */
|
|
42
48
|
readonly commit: import("@angular/core").OutputEmitterRef<unknown>;
|
|
43
49
|
/** BETWEEN commit (date/datetime) — parent runs `setFilterRange(i, ev)`. */
|
|
@@ -73,6 +79,6 @@ export declare class SdQueryInlineChip {
|
|
|
73
79
|
/** Boolean toggle commit — exits edit. */
|
|
74
80
|
emitBoolean(v: boolean): void;
|
|
75
81
|
static ɵfac: i0.ɵɵFactoryDeclaration<SdQueryInlineChip, never>;
|
|
76
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SdQueryInlineChip, "sd-query-inline-chip", never, { "field": { "alias": "field"; "required": true; "isSignal": true; }; "filter": { "alias": "filter"; "required": true; "isSignal": true; }; "density": { "alias": "density"; "required": false; "isSignal": true; }; "multiple": { "alias": "multiple"; "required": false; "isSignal": true; }; "showOperator": { "alias": "showOperator"; "required": false; "isSignal": true; }; "autoId": { "alias": "autoId"; "required": false; "isSignal": true; }; "valueText": { "alias": "valueText"; "required": false; "isSignal": true; }; "isNoData": { "alias": "isNoData"; "required": false; "isSignal": true; }; }, { "commit": "commit"; "commitRange": "commitRange"; "liveChange": "liveChange"; "remove": "remove"; }, never, never, true, never>;
|
|
82
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SdQueryInlineChip, "sd-query-inline-chip", never, { "field": { "alias": "field"; "required": true; "isSignal": true; }; "filter": { "alias": "filter"; "required": true; "isSignal": true; }; "density": { "alias": "density"; "required": false; "isSignal": true; }; "multiple": { "alias": "multiple"; "required": false; "isSignal": true; }; "showOperator": { "alias": "showOperator"; "required": false; "isSignal": true; }; "autoId": { "alias": "autoId"; "required": false; "isSignal": true; }; "valueText": { "alias": "valueText"; "required": false; "isSignal": true; }; "isNoData": { "alias": "isNoData"; "required": false; "isSignal": true; }; "pinned": { "alias": "pinned"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "describedBy": { "alias": "describedBy"; "required": false; "isSignal": true; }; }, { "commit": "commit"; "commitRange": "commitRange"; "liveChange": "liveChange"; "remove": "remove"; }, never, never, true, never>;
|
|
77
83
|
}
|
|
78
84
|
export {};
|
package/components/query-bar/src/components/inline-value-chip/inline-value-chip.component.d.ts
CHANGED
|
@@ -28,6 +28,12 @@ export declare class SdQueryInlineValueChip {
|
|
|
28
28
|
readonly autoId: import("@angular/core").InputSignal<string | undefined>;
|
|
29
29
|
/** Focus the first input on creation — used for the in-progress build chip. */
|
|
30
30
|
readonly autofocus: import("@angular/core").InputSignal<boolean>;
|
|
31
|
+
/** Pinned chip — no × segment. */
|
|
32
|
+
readonly pinned: import("@angular/core").InputSignal<boolean>;
|
|
33
|
+
/** Required chip without a value — error look while not focused, `aria-invalid`. */
|
|
34
|
+
readonly invalid: import("@angular/core").InputSignal<boolean>;
|
|
35
|
+
/** Id set as `aria-describedby` (the host's required hint). */
|
|
36
|
+
readonly describedBy: import("@angular/core").InputSignal<string | undefined>;
|
|
31
37
|
/** Emitted on commit (Enter / blur) with the parsed next value. */
|
|
32
38
|
readonly valueChange: import("@angular/core").OutputEmitterRef<unknown>;
|
|
33
39
|
/** Emitted when the user clicks the × segment. */
|
|
@@ -62,6 +68,6 @@ export declare class SdQueryInlineValueChip {
|
|
|
62
68
|
}): void;
|
|
63
69
|
onRemove(ev: Event): void;
|
|
64
70
|
static ɵfac: i0.ɵɵFactoryDeclaration<SdQueryInlineValueChip, never>;
|
|
65
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SdQueryInlineValueChip, "sd-query-inline-value-chip", never, { "field": { "alias": "field"; "required": true; "isSignal": true; }; "operator": { "alias": "operator"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "density": { "alias": "density"; "required": false; "isSignal": true; }; "showOperator": { "alias": "showOperator"; "required": false; "isSignal": true; }; "autoId": { "alias": "autoId"; "required": false; "isSignal": true; }; "autofocus": { "alias": "autofocus"; "required": false; "isSignal": true; }; }, { "valueChange": "valueChange"; "remove": "remove"; }, never, never, true, never>;
|
|
71
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SdQueryInlineValueChip, "sd-query-inline-value-chip", never, { "field": { "alias": "field"; "required": true; "isSignal": true; }; "operator": { "alias": "operator"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "density": { "alias": "density"; "required": false; "isSignal": true; }; "showOperator": { "alias": "showOperator"; "required": false; "isSignal": true; }; "autoId": { "alias": "autoId"; "required": false; "isSignal": true; }; "autofocus": { "alias": "autofocus"; "required": false; "isSignal": true; }; "pinned": { "alias": "pinned"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "describedBy": { "alias": "describedBy"; "required": false; "isSignal": true; }; }, { "valueChange": "valueChange"; "remove": "remove"; }, never, never, true, never>;
|
|
66
72
|
}
|
|
67
73
|
export {};
|
|
@@ -18,6 +18,16 @@ export declare class SdQueryPopoverChip {
|
|
|
18
18
|
readonly showOperator: import("@angular/core").InputSignal<boolean>;
|
|
19
19
|
/** Rendered value text for the value slot. */
|
|
20
20
|
readonly valueText: import("@angular/core").InputSignal<string>;
|
|
21
|
+
/** Muted text shown after the label while the chip has no value ("All" on a pinned chip). */
|
|
22
|
+
readonly emptyText: import("@angular/core").InputSignal<string>;
|
|
23
|
+
/** Pinned chip — no remove button. */
|
|
24
|
+
readonly pinned: import("@angular/core").InputSignal<boolean>;
|
|
25
|
+
/** Read-only chip — does not open its popover. */
|
|
26
|
+
readonly disabled: import("@angular/core").InputSignal<boolean>;
|
|
27
|
+
/** Required chip without a value — error look, `aria-invalid`. */
|
|
28
|
+
readonly invalid: import("@angular/core").InputSignal<boolean>;
|
|
29
|
+
/** Id set as `aria-describedby` (the host's required hint). */
|
|
30
|
+
readonly describedBy: import("@angular/core").InputSignal<string | undefined>;
|
|
21
31
|
/** Chip popover mat-menu instance supplied by the parent. */
|
|
22
32
|
readonly menu: import("@angular/core").InputSignal<MatMenu>;
|
|
23
33
|
/** Fired when the chip popover opens (parent seeds its editing state). */
|
|
@@ -28,8 +38,12 @@ export declare class SdQueryPopoverChip {
|
|
|
28
38
|
filterField(): string;
|
|
29
39
|
filterOperator(): Operator;
|
|
30
40
|
private readonly trigger;
|
|
31
|
-
|
|
41
|
+
/**
|
|
42
|
+
* Opens the chip popover. With `returnFocusTo`, that element (e.g. the host control that asked
|
|
43
|
+
* for the chip) gets focus back when the popover closes, instead of the chip.
|
|
44
|
+
*/
|
|
45
|
+
openMenu(returnFocusTo?: HTMLElement): void;
|
|
32
46
|
closeMenu(): void;
|
|
33
47
|
static ɵfac: i0.ɵɵFactoryDeclaration<SdQueryPopoverChip, never>;
|
|
34
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SdQueryPopoverChip, "sd-query-popover-chip", never, { "field": { "alias": "field"; "required": false; "isSignal": true; }; "filter": { "alias": "filter"; "required": true; "isSignal": true; }; "active": { "alias": "active"; "required": true; "isSignal": true; }; "showOperator": { "alias": "showOperator"; "required": false; "isSignal": true; }; "valueText": { "alias": "valueText"; "required": false; "isSignal": true; }; "menu": { "alias": "menu"; "required": true; "isSignal": true; }; }, { "open": "open"; "remove": "remove"; }, never, never, true, never>;
|
|
48
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SdQueryPopoverChip, "sd-query-popover-chip", never, { "field": { "alias": "field"; "required": false; "isSignal": true; }; "filter": { "alias": "filter"; "required": true; "isSignal": true; }; "active": { "alias": "active"; "required": true; "isSignal": true; }; "showOperator": { "alias": "showOperator"; "required": false; "isSignal": true; }; "valueText": { "alias": "valueText"; "required": false; "isSignal": true; }; "emptyText": { "alias": "emptyText"; "required": false; "isSignal": true; }; "pinned": { "alias": "pinned"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "describedBy": { "alias": "describedBy"; "required": false; "isSignal": true; }; "menu": { "alias": "menu"; "required": true; "isSignal": true; }; }, { "open": "open"; "remove": "remove"; }, never, never, true, never>;
|
|
35
49
|
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Filter } from '@sdcorejs/utils/models';
|
|
2
|
+
import { SdQueryField } from './query-bar.model';
|
|
3
|
+
/** What `ɵsdQueryChipValueText` needs from its host: translations, date formatting and the labels it knows. */
|
|
4
|
+
export interface ɵSdQueryChipTextContext {
|
|
5
|
+
t: (key: string, params?: Record<string, string | number>) => string;
|
|
6
|
+
toFormat: (value: unknown, format: string) => string;
|
|
7
|
+
/** Options already loaded for the chip being edited (the popover's options). */
|
|
8
|
+
options?: readonly unknown[];
|
|
9
|
+
/** Labels of the field's values loaded by `ɵSdQueryChipLabels`. */
|
|
10
|
+
labels?: ReadonlyMap<unknown, string>;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Value text of a chip, shared by the query bar and the sd-table phone filters so both show the same string:
|
|
14
|
+
* one value → its label; several → `first +n`; a date range in one year → `01/10 – 31/10/2026`; one open end →
|
|
15
|
+
* `From x` / `To y`; `NULL` / `NOT_NULL` → empty.
|
|
16
|
+
*/
|
|
17
|
+
export declare const ɵsdQueryChipValueText: (filter: Filter, field: SdQueryField | undefined, context: ɵSdQueryChipTextContext) => string;
|
|
18
|
+
/**
|
|
19
|
+
* Labels of `values` / `lazy-values` chip values that are not in memory (restored from a cache, a URL or the
|
|
20
|
+
* table's filter): looked up once per field (`values` with an items function) or per field + value (`lazy-values`,
|
|
21
|
+
* through `views` or `search`). `get` reads a signal, so a view re-renders when a lookup lands.
|
|
22
|
+
*/
|
|
23
|
+
export declare class ɵSdQueryChipLabels {
|
|
24
|
+
#private;
|
|
25
|
+
get(key: string): ReadonlyMap<unknown, string> | undefined;
|
|
26
|
+
resolve(filter: Filter, field: SdQueryField | undefined): void;
|
|
27
|
+
}
|
|
@@ -61,14 +61,21 @@ export declare class SdQueryBar {
|
|
|
61
61
|
readonly showLogicToggle: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
62
62
|
/** Show "Clear all" button when at least one filter is active. */
|
|
63
63
|
readonly showClearAll: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
64
|
-
/**
|
|
65
|
-
|
|
64
|
+
/**
|
|
65
|
+
* Render the operator label on the chip face (default: hidden — operator only visible in popover).
|
|
66
|
+
* `'auto'`: only on chips whose field offers a choice or whose operator is not the type default.
|
|
67
|
+
*/
|
|
68
|
+
readonly showOperatorOnChip: import("@angular/core").InputSignalWithTransform<boolean | "auto", string | boolean | null | undefined>;
|
|
66
69
|
/** Composite payload — emitted whenever filters / logic / search change. */
|
|
67
70
|
readonly queryChange: import("@angular/core").OutputEmitterRef<SdQuery<unknown>>;
|
|
68
71
|
/** Fires when the user presses "Áp dụng" inside a chip popover — host should reload data. */
|
|
69
72
|
readonly apply: import("@angular/core").OutputEmitterRef<SdQuery<unknown>>;
|
|
70
|
-
/** Placeholder của ô tìm kiếm tự do bên trái. */
|
|
73
|
+
/** Placeholder của ô tìm kiếm tự do bên trái; `option.searchPlaceholder` thắng i18n. */
|
|
71
74
|
readonly searchPlaceholder: import("@angular/core").Signal<string>;
|
|
75
|
+
/** Chữ trên chip ghim đang rỗng. */
|
|
76
|
+
readonly allLabel: import("@angular/core").Signal<string>;
|
|
77
|
+
/** Chữ trên chip bắt buộc đang rỗng — "Tất cả" sai nghĩa khi field không cho phép bỏ trống. */
|
|
78
|
+
readonly selectValueLabel: import("@angular/core").Signal<string>;
|
|
72
79
|
/** Tooltip nút "+" khi consumer chưa khai `fields`. */
|
|
73
80
|
readonly noFieldsLabel: import("@angular/core").Signal<string>;
|
|
74
81
|
/** Tooltip nút "+" ở trạng thái bình thường. */
|
|
@@ -83,14 +90,26 @@ export declare class SdQueryBar {
|
|
|
83
90
|
readonly resolvedSavedFiltersKey: import("@angular/core").Signal<string | undefined>;
|
|
84
91
|
readonly resolvedShowLogicToggle: import("@angular/core").Signal<boolean>;
|
|
85
92
|
readonly resolvedShowClearAll: import("@angular/core").Signal<boolean>;
|
|
86
|
-
readonly resolvedShowOperatorOnChip: import("@angular/core").Signal<boolean>;
|
|
93
|
+
readonly resolvedShowOperatorOnChip: import("@angular/core").Signal<boolean | "auto">;
|
|
94
|
+
readonly resolvedApplyOn: import("@angular/core").Signal<"search" | "commit">;
|
|
95
|
+
readonly resolvedAppearance: import("@angular/core").Signal<"default" | "flush">;
|
|
96
|
+
readonly resolvedClearDisabled: import("@angular/core").Signal<boolean>;
|
|
97
|
+
readonly resolvedInvalidHintId: import("@angular/core").Signal<string | undefined>;
|
|
87
98
|
constructor();
|
|
88
99
|
readonly fieldByKey: import("@angular/core").Signal<Record<string, SdQueryField>>;
|
|
89
100
|
/** Field keys already chained on a chip — the picker greys these out. */
|
|
90
101
|
readonly usedFieldKeys: import("@angular/core").Signal<Set<string>>;
|
|
102
|
+
/** Fields the user can add: pinned fields always have their chip, so the picker leaves them out. */
|
|
103
|
+
readonly pickerFields: import("@angular/core").Signal<SdQueryField[]>;
|
|
104
|
+
/** "+" is disabled when nothing is left to add. */
|
|
105
|
+
readonly addDisabled: import("@angular/core").Signal<boolean>;
|
|
106
|
+
/** Required fields without a chip value. The host renders the explanation from this list. */
|
|
107
|
+
readonly invalidFields: import("@angular/core").Signal<SdQueryField[]>;
|
|
108
|
+
/** Chips holding a value — the number shown in the clear-all label. */
|
|
109
|
+
readonly activeCount: import("@angular/core").Signal<number>;
|
|
91
110
|
/** Render the global AND/OR connector text between chips when `logic === 'OR'`. */
|
|
92
111
|
readonly showOrConnector: import("@angular/core").Signal<boolean>;
|
|
93
|
-
/** Search button is actionable only when there is something to apply. */
|
|
112
|
+
/** Search button is actionable only when there is something to apply and no required field is empty. */
|
|
94
113
|
readonly canSearch: import("@angular/core").Signal<boolean>;
|
|
95
114
|
/** Index of the chip whose popover is open. Reset to null after commit / close. */
|
|
96
115
|
readonly editingIndex: import("@angular/core").WritableSignal<number | null>;
|
|
@@ -118,10 +137,26 @@ export declare class SdQueryBar {
|
|
|
118
137
|
*/
|
|
119
138
|
rowId(filter: Filter): string;
|
|
120
139
|
readonly iconFor: typeof sdQueryFieldIcon;
|
|
121
|
-
/**
|
|
140
|
+
/**
|
|
141
|
+
* Chip is "active" when it has a non-empty value OR a no-data operator (NULL/NOT_NULL).
|
|
142
|
+
* A BETWEEN range is active when either end is set; `{ from: null, to: null }` is empty.
|
|
143
|
+
*/
|
|
122
144
|
isFilterActive(filter: Filter): boolean;
|
|
123
145
|
/** Rendered value text on a chip. */
|
|
124
146
|
chipValueText(filter: Filter): string;
|
|
147
|
+
/** The field of a chip, or `undefined` for a key the bar does not know. */
|
|
148
|
+
fieldOf(filter: Filter): SdQueryField | undefined;
|
|
149
|
+
/** Pinned chips have no remove button and survive removeFilter / clearAll. */
|
|
150
|
+
isPinned(filter: Filter): boolean;
|
|
151
|
+
/** Empty chip of a required field. */
|
|
152
|
+
isInvalid(filter: Filter): boolean;
|
|
153
|
+
/** Text of an empty chip: "All" on a pinned chip, "Select a value" on a required one, nothing otherwise. */
|
|
154
|
+
emptyTextFor(field: SdQueryField | undefined): string;
|
|
155
|
+
/**
|
|
156
|
+
* Whether a chip of `field` shows its operator. A boolean setting applies to every chip; `'auto'`
|
|
157
|
+
* shows it when the field offers a choice, or when the operator is not the default of the type.
|
|
158
|
+
*/
|
|
159
|
+
showOperatorFor(field: SdQueryField | undefined, operator: Operator | undefined): boolean;
|
|
125
160
|
isNoDataOperator(op: Operator | string): boolean;
|
|
126
161
|
readonly building: import("@angular/core").Signal<BuildingChip<unknown> | null>;
|
|
127
162
|
/**
|
|
@@ -132,6 +167,13 @@ export declare class SdQueryBar {
|
|
|
132
167
|
*/
|
|
133
168
|
allowedOperatorsFor(field: SdQueryField): Operator[];
|
|
134
169
|
inlineAutoId(index: number, role: string): string;
|
|
170
|
+
/** Value committed by a completed inline chip (seamless input, picker, boolean toggle). */
|
|
171
|
+
onInlineCommit(index: number, data: unknown): void;
|
|
172
|
+
/** Range committed by a completed inline BETWEEN chip. */
|
|
173
|
+
onInlineRange(index: number, ev: {
|
|
174
|
+
from: unknown;
|
|
175
|
+
to: unknown;
|
|
176
|
+
} | null): void;
|
|
135
177
|
/** Entry point from the field picker — start building a chip for `field`. */
|
|
136
178
|
beginBuild(field: SdQueryField): void;
|
|
137
179
|
/** Operator chosen during build — finish (no-data) or advance to the value step. */
|
|
@@ -156,23 +198,39 @@ export declare class SdQueryBar {
|
|
|
156
198
|
to: unknown;
|
|
157
199
|
} | null): void;
|
|
158
200
|
addFilter(field: SdQueryField): void;
|
|
201
|
+
/**
|
|
202
|
+
* Opens the editor of `key` — for a host control outside the bar, such as a table header icon.
|
|
203
|
+
* Popover mode opens the chip's popover, adding the chip first when the field has none; inline
|
|
204
|
+
* mode focuses the chip or starts building one. `returnFocusTo` receives focus when the popover
|
|
205
|
+
* closes, instead of the chip.
|
|
206
|
+
*/
|
|
207
|
+
openField(key: string, returnFocusTo?: HTMLElement | null): void;
|
|
208
|
+
/** Clear-all button: the host's `onClearAll` when given, else the built-in clearAll(). */
|
|
209
|
+
onClearClick(): void;
|
|
159
210
|
/** Swap the field of an existing chip — reset operator + value to the new field's defaults. */
|
|
160
211
|
changeFilterField(index: number, field: SdQueryField): void;
|
|
161
212
|
updateFilter(index: number, patch: Partial<Filter>): void;
|
|
162
213
|
updateFilterData(index: number, data: unknown): void;
|
|
163
214
|
removeFilter(index: number): void;
|
|
215
|
+
/** Empties the bar. Pinned chips stay, reset to their field's default operator and no value. */
|
|
164
216
|
clearAll(): void;
|
|
165
217
|
setLogic(value: SdQueryLogic): void;
|
|
166
218
|
setSearch(value: string): void;
|
|
219
|
+
/** Enter in the search box: applies the typed text too, unless a required field is still empty. */
|
|
220
|
+
applySearch(): void;
|
|
167
221
|
triggerApply(): void;
|
|
168
222
|
/**
|
|
169
223
|
* Called when a popover-mode chip is clicked — set editingIndex and seed the
|
|
170
224
|
* child popover's staging signals from the chip's Filter.
|
|
171
225
|
*/
|
|
172
226
|
openChipPopover(index: number): void;
|
|
173
|
-
/**
|
|
227
|
+
/**
|
|
228
|
+
* Receive `(commit)` from the child popover — splice into filters, null the index. With
|
|
229
|
+
* `applyOn: 'commit'` a changed chip applies at once, and an unpinned chip that closes empty is
|
|
230
|
+
* dropped (applying only when it had a value before).
|
|
231
|
+
*/
|
|
174
232
|
onChipPopoverCommit(next: Filter): void;
|
|
175
233
|
static ɵfac: i0.ɵɵFactoryDeclaration<SdQueryBar, never>;
|
|
176
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SdQueryBar, "sd-query-bar", never, { "option": { "alias": "option"; "required": false; "isSignal": true; }; "autoIdInput": { "alias": "autoId"; "required": false; "isSignal": true; }; "fields": { "alias": "fields"; "required": false; "isSignal": true; }; "filters": { "alias": "filters"; "required": false; "isSignal": true; }; "logic": { "alias": "logic"; "required": false; "isSignal": true; }; "search": { "alias": "search"; "required": false; "isSignal": true; }; "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "density": { "alias": "density"; "required": false; "isSignal": true; }; "showSearch": { "alias": "showSearch"; "required": false; "isSignal": true; }; "showSavedFilters": { "alias": "showSavedFilters"; "required": false; "isSignal": true; }; "savedFiltersKey": { "alias": "savedFiltersKey"; "required": false; "isSignal": true; }; "showLogicToggle": { "alias": "showLogicToggle"; "required": false; "isSignal": true; }; "showClearAll": { "alias": "showClearAll"; "required": false; "isSignal": true; }; "showOperatorOnChip": { "alias": "showOperatorOnChip"; "required": false; "isSignal": true; }; }, { "filters": "filtersChange"; "logic": "logicChange"; "search": "searchChange"; "queryChange": "queryChange"; "apply": "apply"; }, never,
|
|
234
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SdQueryBar, "sd-query-bar", never, { "option": { "alias": "option"; "required": false; "isSignal": true; }; "autoIdInput": { "alias": "autoId"; "required": false; "isSignal": true; }; "fields": { "alias": "fields"; "required": false; "isSignal": true; }; "filters": { "alias": "filters"; "required": false; "isSignal": true; }; "logic": { "alias": "logic"; "required": false; "isSignal": true; }; "search": { "alias": "search"; "required": false; "isSignal": true; }; "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "density": { "alias": "density"; "required": false; "isSignal": true; }; "showSearch": { "alias": "showSearch"; "required": false; "isSignal": true; }; "showSavedFilters": { "alias": "showSavedFilters"; "required": false; "isSignal": true; }; "savedFiltersKey": { "alias": "savedFiltersKey"; "required": false; "isSignal": true; }; "showLogicToggle": { "alias": "showLogicToggle"; "required": false; "isSignal": true; }; "showClearAll": { "alias": "showClearAll"; "required": false; "isSignal": true; }; "showOperatorOnChip": { "alias": "showOperatorOnChip"; "required": false; "isSignal": true; }; }, { "filters": "filtersChange"; "logic": "logicChange"; "search": "searchChange"; "queryChange": "queryChange"; "apply": "apply"; }, never, ["[sdQueryBarEnd]"], true, never>;
|
|
177
235
|
}
|
|
178
236
|
export {};
|
|
@@ -26,6 +26,18 @@ interface SdQueryFieldBase<T = unknown> {
|
|
|
26
26
|
defaultOperator?: Operator;
|
|
27
27
|
/** Field is offered in picker but not interactive (read-only badge in chip). */
|
|
28
28
|
disabled?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* The chip is always on the bar: no remove button, left out of the field picker, and an empty
|
|
31
|
+
* chip reads "All". The host keeps one entry for the field in `filters`; the bar never adds it.
|
|
32
|
+
*/
|
|
33
|
+
pinned?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* The field needs a value: its empty chip is marked invalid, the Search button is disabled and
|
|
36
|
+
* `SdQueryBar.invalidFields()` lists it. The explanation line belongs to the host.
|
|
37
|
+
*/
|
|
38
|
+
required?: boolean;
|
|
39
|
+
/** Field-picker group heading. Groups follow their first appearance; one group shows no heading. */
|
|
40
|
+
group?: string;
|
|
29
41
|
}
|
|
30
42
|
export interface SdQueryFieldString<T = unknown> extends SdQueryFieldBase<T> {
|
|
31
43
|
type: 'string';
|
|
@@ -74,6 +86,11 @@ export interface SdQueryFieldLazyValues<T = unknown, K = Record<string, any>> ex
|
|
|
74
86
|
search: SdSearch<K>;
|
|
75
87
|
valueField: NestedKeyOf<K>;
|
|
76
88
|
displayField: NestedKeyOf<K>;
|
|
89
|
+
/**
|
|
90
|
+
* Resolves the items of values restored on a chip (cache, URL). Without it the bar asks
|
|
91
|
+
* `search({ type: 'VALUE', value })` once. Mirrors `SdTableColumnLazyValues.option.views`.
|
|
92
|
+
*/
|
|
93
|
+
views?: (values: any[]) => Promise<K[]>;
|
|
77
94
|
};
|
|
78
95
|
}
|
|
79
96
|
export type SdQueryField<T = unknown> = SdQueryFieldString<T> | SdQueryFieldNumber<T> | SdQueryFieldBoolean<T> | SdQueryFieldDate<T> | SdQueryFieldValues<T> | SdQueryFieldLazyValues<T>;
|
|
@@ -103,9 +120,35 @@ export interface SdQueryBarOption<T = unknown> {
|
|
|
103
120
|
savedFiltersKey?: string;
|
|
104
121
|
showLogicToggle?: boolean;
|
|
105
122
|
showClearAll?: boolean;
|
|
106
|
-
|
|
123
|
+
/**
|
|
124
|
+
* Operator symbol on the chip face. `'auto'` shows it when the field offers more than one
|
|
125
|
+
* operator, or when the chip's operator differs from `SD_QUERY_DEFAULT_OPERATOR_BY_TYPE[type]`.
|
|
126
|
+
*/
|
|
127
|
+
showOperatorOnChip?: boolean | 'auto';
|
|
107
128
|
onQueryChange?: (query: SdQuery<T>) => void;
|
|
108
129
|
onApply?: (query: SdQuery<T>) => void;
|
|
130
|
+
/**
|
|
131
|
+
* When chip edits fire `apply`.
|
|
132
|
+
* - `'search'` (default): edits stay a draft until the Search button or Enter in the search box.
|
|
133
|
+
* - `'commit'`: a popover that closes with a changed operator or value, an inline commit, removing
|
|
134
|
+
* a chip that had a value, and Enter in the search box apply at once; the Search button is hidden.
|
|
135
|
+
* An added chip that closes empty is dropped without applying.
|
|
136
|
+
* @defaultValue 'search'
|
|
137
|
+
*/
|
|
138
|
+
applyOn?: 'search' | 'commit';
|
|
139
|
+
/**
|
|
140
|
+
* `'flush'` drops the bar's own border, radius, shadow and background so it sits inside a host card.
|
|
141
|
+
* @defaultValue 'default'
|
|
142
|
+
*/
|
|
143
|
+
appearance?: 'default' | 'flush';
|
|
144
|
+
/** Replaces the built-in clear-all (which empties every chip and keeps pinned ones). */
|
|
145
|
+
onClearAll?: () => void;
|
|
146
|
+
/** Disables the clear-all button, for a host that knows nothing differs from its defaults. */
|
|
147
|
+
clearDisabled?: boolean;
|
|
148
|
+
/** Placeholder of the free-text search box; overrides `core.component.query-bar.search-placeholder`. */
|
|
149
|
+
searchPlaceholder?: string;
|
|
150
|
+
/** Id of the host element explaining missing required values; set as `aria-describedby` on empty required chips. */
|
|
151
|
+
invalidHintId?: string;
|
|
109
152
|
}
|
|
110
153
|
/** Persisted bookmark of a query (filters + logic + search) — managed by `[savedFiltersKey]`. */
|
|
111
154
|
export interface SdSavedFilter<T = unknown> {
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/** The px value of a width, `undefined` when it is empty or uses another unit. */
|
|
2
|
+
export declare const configWidthPx: (value: string | null | undefined) => number | undefined;
|
|
3
|
+
/**
|
|
4
|
+
* What the width field stores: a positive number becomes `${n}px`, zero or a negative number and an empty field become
|
|
5
|
+
* `undefined`, anything else (`20%`, `12rem`) stays verbatim.
|
|
6
|
+
*/
|
|
7
|
+
export declare const configWidthFromInput: (value: unknown) => string | undefined;
|
|
8
|
+
/** Rounds a px width and keeps it inside the px `minWidth` / `maxWidth`; bounds in another unit cannot be compared. */
|
|
9
|
+
export declare const configWidthClamp: (width: string | undefined, min: string | undefined, max: string | undefined) => string | undefined;
|
|
@@ -1,32 +1,147 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CdkDragDrop } from '@angular/cdk/drag-drop';
|
|
2
|
+
import { ElementRef } from '@angular/core';
|
|
2
3
|
import { SdModal } from '@sdcorejs/angular/components/modal';
|
|
3
|
-
import { SdTableColumn } from '../../models/table-column.model';
|
|
4
4
|
import { ConfiguredColumn, ConfiguredTable, ConfiguredTableResult } from '../../models/table-option-config.model';
|
|
5
5
|
import { SdTableOption } from '../../models/table-option.model';
|
|
6
|
+
import { SdTableOptionFilter, TableFilterConfiguration } from '../../services/table-filter/table-filter.model';
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
8
|
+
type FilterMode = NonNullable<SdTableOptionFilter['mode']>;
|
|
9
|
+
type ConfigTab = 'columns' | 'filters';
|
|
10
|
+
interface ConfigFilterRow {
|
|
11
|
+
field: string;
|
|
12
|
+
title: string;
|
|
13
|
+
on: boolean;
|
|
14
|
+
locked: boolean;
|
|
15
|
+
/** i18n key of the text under the title. */
|
|
16
|
+
note?: string;
|
|
17
|
+
}
|
|
18
|
+
/** What the "Bộ lọc" tab shows; the table builds it, and `undefined` hides the tab. */
|
|
19
|
+
export interface ConfigFilterSetup {
|
|
20
|
+
/** `filter.mode` after `SD_TABLE_CONFIGURATION`: the kind without a stored choice. */
|
|
21
|
+
mode: FilterMode;
|
|
22
|
+
/** The stored choice of the user (`TableFilterConfiguration.mode`). */
|
|
23
|
+
storedMode?: FilterMode;
|
|
24
|
+
/** `filter.modeSelectable !== false`: the kinds are offered. */
|
|
25
|
+
modeSelectable: boolean;
|
|
26
|
+
/** Stored `TableFilterConfiguration.inlineExternal`. */
|
|
27
|
+
inlineExternal: Record<string, boolean>;
|
|
28
|
+
/** External filters in option order; `offBar`: the query bar cannot show it. */
|
|
29
|
+
externalFilters: {
|
|
30
|
+
field: string;
|
|
31
|
+
title: string;
|
|
32
|
+
required: boolean;
|
|
33
|
+
offBar: boolean;
|
|
34
|
+
}[];
|
|
35
|
+
/** `filter.queryBar.pinned`: the app picks the pinned chips, so the list cannot change them on the bar. */
|
|
36
|
+
pinned?: string[];
|
|
37
|
+
/**
|
|
38
|
+
* Titles of the required external filters the bar cannot show. The bar would block the read with no place to fill
|
|
39
|
+
* them, so the bar card is off while there is any.
|
|
40
|
+
*/
|
|
41
|
+
barBlockedBy: string[];
|
|
42
|
+
}
|
|
7
43
|
export declare class ConfigComponent {
|
|
8
44
|
#private;
|
|
9
45
|
autoIdInput: import("@angular/core").InputSignal<string | null | undefined>;
|
|
10
46
|
tableOption: import("@angular/core").InputSignal<SdTableOption | undefined>;
|
|
11
47
|
changes: import("@angular/core").OutputEmitterRef<ConfiguredTableResult>;
|
|
48
|
+
/** Restore defaults was confirmed and the stored setup removed. */
|
|
49
|
+
defaultsRestored: import("@angular/core").OutputEmitterRef<void>;
|
|
50
|
+
/** The "Bộ lọc" tab; `undefined` hides it. */
|
|
51
|
+
filterSetup: import("@angular/core").InputSignal<ConfigFilterSetup | undefined>;
|
|
52
|
+
/** Apply with a changed "Bộ lọc" tab: the filter setup to store. `mode` is left out when the kind cannot be picked. */
|
|
53
|
+
filterApplied: import("@angular/core").OutputEmitterRef<Partial<TableFilterConfiguration>>;
|
|
12
54
|
autoId: import("@angular/core").Signal<string>;
|
|
13
55
|
modal: import("@angular/core").Signal<SdModal | undefined>;
|
|
14
|
-
|
|
56
|
+
protected readonly handles: import("@angular/core").Signal<readonly ElementRef<HTMLButtonElement>[]>;
|
|
15
57
|
configuration: import("@angular/core").WritableSignal<ConfiguredTable | undefined>;
|
|
16
|
-
|
|
17
|
-
|
|
58
|
+
/** Text of the find box. */
|
|
59
|
+
readonly query: import("@angular/core").WritableSignal<string>;
|
|
60
|
+
/** Field of the open row; one row at a time. */
|
|
61
|
+
readonly expanded: import("@angular/core").WritableSignal<string | null>;
|
|
62
|
+
readonly hintId: string;
|
|
63
|
+
/** Row lifted from the keyboard, and the order Escape goes back to. */
|
|
64
|
+
readonly picked: import("@angular/core").WritableSignal<{
|
|
65
|
+
field: string;
|
|
66
|
+
order: ConfiguredColumn[];
|
|
67
|
+
} | null>;
|
|
68
|
+
/** Text of the live region: each keyboard reorder step. */
|
|
69
|
+
readonly announcement: import("@angular/core").WritableSignal<string>;
|
|
70
|
+
readonly searchable: import("@angular/core").Signal<boolean>;
|
|
71
|
+
/** Reordering is off while a search narrows the list: the hidden rows would make the drop index ambiguous. */
|
|
72
|
+
readonly searching: import("@angular/core").Signal<boolean>;
|
|
73
|
+
/** Rows on screen: every column, or those whose current or original title matches the search. */
|
|
74
|
+
readonly columns: import("@angular/core").Signal<ConfiguredColumn[]>;
|
|
75
|
+
readonly totalCount: import("@angular/core").Signal<number>;
|
|
76
|
+
readonly shownCount: import("@angular/core").Signal<number>;
|
|
77
|
+
readonly allShown: import("@angular/core").Signal<boolean>;
|
|
78
|
+
/** Tab on screen; Cột when the table gives no "Bộ lọc" tab. */
|
|
79
|
+
readonly tab: import("@angular/core").Signal<ConfigTab>;
|
|
80
|
+
readonly tabs: readonly ConfigTab[];
|
|
81
|
+
readonly modes: readonly FilterMode[];
|
|
82
|
+
/** Picked filter kind (draft until Apply). */
|
|
83
|
+
readonly filterMode: import("@angular/core").WritableSignal<FilterMode>;
|
|
84
|
+
/** Inline external filters (draft until Apply). */
|
|
85
|
+
readonly inlineExternal: import("@angular/core").WritableSignal<Record<string, boolean>>;
|
|
86
|
+
/**
|
|
87
|
+
* One row per external filter. In the panel the switch shows it there; on the bar it pins it as a chip, so a filter
|
|
88
|
+
* the bar cannot show is off, a required one is always pinned, and `queryBar.pinned` decides for the app.
|
|
89
|
+
*/
|
|
90
|
+
readonly filterRows: import("@angular/core").Signal<ConfigFilterRow[]>;
|
|
91
|
+
/** Text under the filter list: what its switches do for the picked kind. */
|
|
92
|
+
readonly filterListHint: import("@angular/core").Signal<"core.component.table.config.filters-hint-panel" | "core.component.table.config.filters-hint-pinned" | "core.component.table.config.filters-hint-bar">;
|
|
93
|
+
/** Titles that keep the bar card off, joined for its note; '' when the bar can be picked. */
|
|
94
|
+
readonly barBlockedBy: import("@angular/core").Signal<string>;
|
|
95
|
+
/** On the bar, a filter it cannot show still filters by its value, with no chip to clear it. */
|
|
96
|
+
readonly offBarWarning: import("@angular/core").Signal<boolean>;
|
|
18
97
|
open: () => Promise<void>;
|
|
19
98
|
close: () => void;
|
|
20
99
|
onSave: () => void;
|
|
21
100
|
onReset: () => Promise<void>;
|
|
22
101
|
/**
|
|
23
|
-
* Cột đang tắt hiển thị thì tiêu đề / độ rộng / cố định /
|
|
24
|
-
*
|
|
102
|
+
* Cột đang tắt hiển thị thì tiêu đề / độ rộng / cố định / rút gọn đều vô nghĩa — khoá phần chi tiết lại, chỉ chừa
|
|
103
|
+
* ô "Hiện" để bật lại.
|
|
25
104
|
*/
|
|
26
105
|
isRowDisabled: (item: ConfiguredColumn) => boolean;
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
106
|
+
readonly tabId: (tab: ConfigTab) => string;
|
|
107
|
+
readonly panelId: (tab: ConfigTab) => string;
|
|
108
|
+
readonly modeName: string;
|
|
109
|
+
selectTab: (tab: ConfigTab) => void;
|
|
110
|
+
/** ← → move between the tabs, Home / End go to the first / last (tablist pattern of the APG, roving tabindex). */
|
|
111
|
+
onTabKeydown: (event: KeyboardEvent) => void;
|
|
112
|
+
pickMode: (mode: FilterMode) => void;
|
|
113
|
+
setInline: (field: string, on: boolean) => void;
|
|
114
|
+
onFind: (value: unknown) => void;
|
|
115
|
+
toggleRow: (field: string) => void;
|
|
116
|
+
/**
|
|
117
|
+
* Pressing the handle of the open row closes it first, so its preview is the summary row. Another open row stays open:
|
|
118
|
+
* closing it would move the pressed row away from the pointer before CDK measures.
|
|
119
|
+
*/
|
|
120
|
+
onHandlePointerDown: (field: string) => void;
|
|
121
|
+
drop: (event: CdkDragDrop<ConfiguredColumn[]>) => void;
|
|
122
|
+
showAll: () => void;
|
|
123
|
+
setShown: (field: string, shown: boolean) => void;
|
|
124
|
+
setFixed: (field: string, fixed: boolean) => void;
|
|
125
|
+
setTruncate: (field: string, truncate: boolean) => void;
|
|
126
|
+
/** Space / Enter picks up and drops, ↑ / ↓ move the picked row, Escape puts the order back. */
|
|
127
|
+
onHandleKeydown: (event: KeyboardEvent, field: string) => void;
|
|
128
|
+
/** Leaving the handle while a row is held drops it where it is. */
|
|
129
|
+
onHandleBlur: (field: string) => void;
|
|
130
|
+
titleOf: (item: ConfiguredColumn) => string;
|
|
131
|
+
renamed: (item: ConfiguredColumn) => boolean;
|
|
132
|
+
setTitle: (field: string, value: unknown) => void;
|
|
133
|
+
restoreTitle: (field: string) => void;
|
|
134
|
+
/** A width in another unit than px is edited as text, verbatim. */
|
|
135
|
+
widthIsText: (item: ConfiguredColumn) => boolean;
|
|
136
|
+
widthValue: (item: ConfiguredColumn) => string;
|
|
137
|
+
/** Empty falls back to the original width, so that is the placeholder; "auto" when the option has none. */
|
|
138
|
+
widthPlaceholder: (item: ConfiguredColumn) => string;
|
|
139
|
+
widthSummary: (item: ConfiguredColumn) => string;
|
|
140
|
+
onWidthFocus: (item: ConfiguredColumn) => void;
|
|
141
|
+
setWidth: (field: string, value: unknown) => void;
|
|
142
|
+
commitWidth: (field: string) => void;
|
|
143
|
+
detailsId: (field: string) => string;
|
|
30
144
|
static ɵfac: i0.ɵɵFactoryDeclaration<ConfigComponent, never>;
|
|
31
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ConfigComponent, "config", never, { "autoIdInput": { "alias": "autoId"; "required": false; "isSignal": true; }; "tableOption": { "alias": "tableOption"; "required": false; "isSignal": true; }; }, { "changes": "changes"; }, never, never, true, never>;
|
|
145
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ConfigComponent, "config", never, { "autoIdInput": { "alias": "autoId"; "required": false; "isSignal": true; }; "tableOption": { "alias": "tableOption"; "required": false; "isSignal": true; }; "filterSetup": { "alias": "filterSetup"; "required": false; "isSignal": true; }; }, { "changes": "changes"; "defaultsRestored": "defaultsRestored"; "filterApplied": "filterApplied"; }, never, never, true, never>;
|
|
32
146
|
}
|
|
147
|
+
export {};
|
|
@@ -33,6 +33,11 @@ export declare class ColumnFilterComponent {
|
|
|
33
33
|
items: Signal<any[] | SdSearch | Signal<any[]>>;
|
|
34
34
|
constructor();
|
|
35
35
|
onFilterChange: () => void;
|
|
36
|
+
/**
|
|
37
|
+
* Ghi một đầu của filter tách đôi (split-number / split-date) vào columnFilter dùng chung. Ghi tại chỗ vào object
|
|
38
|
+
* { from, to } đang có; nếu bảng đã đặt lại columnFilter (xoá lọc, setFilter) làm mất object đó thì tạo lại.
|
|
39
|
+
*/
|
|
40
|
+
setRangeEnd(field: string, end: 'from' | 'to', value: unknown): void;
|
|
36
41
|
onFilterCommit: () => void;
|
|
37
42
|
static ɵfac: i0.ɵɵFactoryDeclaration<ColumnFilterComponent, never>;
|
|
38
43
|
static ɵcmp: i0.ɵɵComponentDeclaration<ColumnFilterComponent, "column-filter", never, { "autoIdInput": { "alias": "autoId"; "required": false; "isSignal": true; }; "column": { "alias": "column"; "required": true; "isSignal": true; }; "columnFilter": { "alias": "columnFilter"; "required": false; "isSignal": true; }; "cacheValues": { "alias": "cacheValues"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "operator": { "alias": "operator"; "required": false; "isSignal": true; }; "isMobile": { "alias": "isMobile"; "required": false; "isSignal": true; }; }, { "operator": "operatorChange"; "filterChange": "filterChange"; "filterCommit": "filterCommit"; }, never, never, true, never>;
|