@sdcorejs/angular 19.3.3 → 19.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/query-bar/src/components/actions-bar/actions-bar.component.d.ts +6 -1
- package/components/query-bar/src/components/field-picker/field-picker.component.d.ts +21 -0
- package/components/query-bar/src/components/inline-chip/inline-chip.component.d.ts +7 -1
- package/components/query-bar/src/components/inline-value-chip/inline-value-chip.component.d.ts +7 -1
- package/components/query-bar/src/components/popover-chip/popover-chip.component.d.ts +16 -2
- package/components/query-bar/src/query-bar.component.d.ts +66 -8
- package/components/query-bar/src/query-bar.model.d.ts +44 -1
- package/components/table/src/components/config/config-width.util.d.ts +9 -0
- package/components/table/src/components/config/config.component.d.ts +58 -11
- package/components/table/src/components/filter/column-filter/column-filter.component.d.ts +5 -0
- package/components/table/src/configurations/table.configuration.d.ts +4 -0
- package/components/table/src/services/column-leaf.util.d.ts +6 -0
- package/components/table/src/services/config-custom.util.d.ts +14 -0
- package/components/table/src/services/table-filter/table-filter.model.d.ts +25 -0
- package/components/table/src/services/table-filter/table-query-bar.util.d.ts +110 -0
- package/components/table/src/table.component.d.ts +37 -1
- package/fesm2022/sdcorejs-angular-components-query-bar.mjs +455 -37
- package/fesm2022/sdcorejs-angular-components-query-bar.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-table.mjs +1227 -112
- package/fesm2022/sdcorejs-angular-components-table.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-i18n.mjs +140 -5
- package/fesm2022/sdcorejs-angular-i18n.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-modules-layout.mjs +87 -5
- 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-storage.mjs +6 -4
- package/fesm2022/sdcorejs-angular-services-storage.mjs.map +1 -1
- package/i18n/src/en.d.ts +28 -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 +13 -13
- package/services/api/src/api-handler-registry.d.ts +3 -3
- package/services/api/src/api-route-configurations.d.ts +2 -2
- package/services/api/src/api.model.d.ts +2 -2
- package/services/cache/src/cache.model.d.ts +3 -1
- package/services/storage/src/storage.model.d.ts +2 -0
- package/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
|
@@ -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
|
}
|
|
@@ -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,6 +1,6 @@
|
|
|
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
6
|
import * as i0 from "@angular/core";
|
|
@@ -9,24 +9,71 @@ export declare class ConfigComponent {
|
|
|
9
9
|
autoIdInput: import("@angular/core").InputSignal<string | null | undefined>;
|
|
10
10
|
tableOption: import("@angular/core").InputSignal<SdTableOption | undefined>;
|
|
11
11
|
changes: import("@angular/core").OutputEmitterRef<ConfiguredTableResult>;
|
|
12
|
+
/** Restore defaults was confirmed and the stored setup removed. */
|
|
13
|
+
defaultsRestored: import("@angular/core").OutputEmitterRef<void>;
|
|
12
14
|
autoId: import("@angular/core").Signal<string>;
|
|
13
15
|
modal: import("@angular/core").Signal<SdModal | undefined>;
|
|
14
|
-
|
|
16
|
+
protected readonly handles: import("@angular/core").Signal<readonly ElementRef<HTMLButtonElement>[]>;
|
|
15
17
|
configuration: import("@angular/core").WritableSignal<ConfiguredTable | undefined>;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
+
/** Text of the find box. */
|
|
19
|
+
readonly query: import("@angular/core").WritableSignal<string>;
|
|
20
|
+
/** Field of the open row; one row at a time. */
|
|
21
|
+
readonly expanded: import("@angular/core").WritableSignal<string | null>;
|
|
22
|
+
readonly hintId: string;
|
|
23
|
+
/** Row lifted from the keyboard, and the order Escape goes back to. */
|
|
24
|
+
readonly picked: import("@angular/core").WritableSignal<{
|
|
25
|
+
field: string;
|
|
26
|
+
order: ConfiguredColumn[];
|
|
27
|
+
} | null>;
|
|
28
|
+
/** Text of the live region: each keyboard reorder step. */
|
|
29
|
+
readonly announcement: import("@angular/core").WritableSignal<string>;
|
|
30
|
+
readonly searchable: import("@angular/core").Signal<boolean>;
|
|
31
|
+
/** Reordering is off while a search narrows the list: the hidden rows would make the drop index ambiguous. */
|
|
32
|
+
readonly searching: import("@angular/core").Signal<boolean>;
|
|
33
|
+
/** Rows on screen: every column, or those whose current or original title matches the search. */
|
|
34
|
+
readonly columns: import("@angular/core").Signal<ConfiguredColumn[]>;
|
|
35
|
+
readonly totalCount: import("@angular/core").Signal<number>;
|
|
36
|
+
readonly shownCount: import("@angular/core").Signal<number>;
|
|
37
|
+
readonly allShown: import("@angular/core").Signal<boolean>;
|
|
18
38
|
open: () => Promise<void>;
|
|
19
39
|
close: () => void;
|
|
20
40
|
onSave: () => void;
|
|
21
41
|
onReset: () => Promise<void>;
|
|
22
42
|
/**
|
|
23
|
-
* Cột đang tắt hiển thị thì tiêu đề / độ rộng / cố định /
|
|
24
|
-
*
|
|
43
|
+
* 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
|
|
44
|
+
* ô "Hiện" để bật lại.
|
|
25
45
|
*/
|
|
26
46
|
isRowDisabled: (item: ConfiguredColumn) => boolean;
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
47
|
+
onFind: (value: unknown) => void;
|
|
48
|
+
toggleRow: (field: string) => void;
|
|
49
|
+
/**
|
|
50
|
+
* Pressing the handle of the open row closes it first, so its preview is the summary row. Another open row stays open:
|
|
51
|
+
* closing it would move the pressed row away from the pointer before CDK measures.
|
|
52
|
+
*/
|
|
53
|
+
onHandlePointerDown: (field: string) => void;
|
|
54
|
+
drop: (event: CdkDragDrop<ConfiguredColumn[]>) => void;
|
|
55
|
+
showAll: () => void;
|
|
56
|
+
setShown: (field: string, shown: boolean) => void;
|
|
57
|
+
setFixed: (field: string, fixed: boolean) => void;
|
|
58
|
+
setTruncate: (field: string, truncate: boolean) => void;
|
|
59
|
+
/** Space / Enter picks up and drops, ↑ / ↓ move the picked row, Escape puts the order back. */
|
|
60
|
+
onHandleKeydown: (event: KeyboardEvent, field: string) => void;
|
|
61
|
+
/** Leaving the handle while a row is held drops it where it is. */
|
|
62
|
+
onHandleBlur: (field: string) => void;
|
|
63
|
+
titleOf: (item: ConfiguredColumn) => string;
|
|
64
|
+
renamed: (item: ConfiguredColumn) => boolean;
|
|
65
|
+
setTitle: (field: string, value: unknown) => void;
|
|
66
|
+
restoreTitle: (field: string) => void;
|
|
67
|
+
/** A width in another unit than px is edited as text, verbatim. */
|
|
68
|
+
widthIsText: (item: ConfiguredColumn) => boolean;
|
|
69
|
+
widthValue: (item: ConfiguredColumn) => string;
|
|
70
|
+
/** Empty falls back to the original width, so that is the placeholder; "auto" when the option has none. */
|
|
71
|
+
widthPlaceholder: (item: ConfiguredColumn) => string;
|
|
72
|
+
widthSummary: (item: ConfiguredColumn) => string;
|
|
73
|
+
onWidthFocus: (item: ConfiguredColumn) => void;
|
|
74
|
+
setWidth: (field: string, value: unknown) => void;
|
|
75
|
+
commitWidth: (field: string) => void;
|
|
76
|
+
detailsId: (field: string) => string;
|
|
30
77
|
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>;
|
|
78
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ConfigComponent, "config", never, { "autoIdInput": { "alias": "autoId"; "required": false; "isSignal": true; }; "tableOption": { "alias": "tableOption"; "required": false; "isSignal": true; }; }, { "changes": "changes"; "defaultsRestored": "defaultsRestored"; }, never, never, true, never>;
|
|
32
79
|
}
|
|
@@ -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>;
|
|
@@ -20,6 +20,10 @@ export interface ISdTableConfiguration {
|
|
|
20
20
|
manualFilter?: SdTableOptionFilter['manualFilter'];
|
|
21
21
|
/** Ẩn toolbar (xóa bộ lọc, thiết lập) của external filter, khi có ít external filter user không cần chức năng này, mặc định là false */
|
|
22
22
|
hideExternalFilterToolbar?: SdTableOptionFilter['hideExternalFilterToolbar'];
|
|
23
|
+
/** Giao diện lọc mặc định cho mọi bảng; `option.filter.mode` thắng. Mặc định là `'default'`. */
|
|
24
|
+
mode?: SdTableOptionFilter['mode'];
|
|
25
|
+
/** Tuỳ chọn mặc định của mode `'query-bar'`; gộp theo từng field với `option.filter.queryBar`. */
|
|
26
|
+
queryBar?: SdTableOptionFilter['queryBar'];
|
|
23
27
|
operator?: {
|
|
24
28
|
list?: Partial<Record<SdTableColumn['type'], Operator[]>>;
|
|
25
29
|
default?: Partial<Record<SdTableColumn['type'], Operator>>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { SdTableColumn, SdTableColumnNormal } from '../models/table-column.model';
|
|
2
|
+
/**
|
|
3
|
+
* Leaf columns: each grouped header (`type: 'children'`) is replaced by its children. Filtering, sorting and the
|
|
4
|
+
* filter defaults work on leaves — a grouped header has no value of its own.
|
|
5
|
+
*/
|
|
6
|
+
export declare const leafColumns: <T>(columns: readonly SdTableColumn<T>[] | null | undefined) => SdTableColumnNormal<T>[];
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ConfiguredTable } from '../models/table-option-config.model';
|
|
2
|
+
import { SdTableOption } from '../models/table-option.model';
|
|
3
|
+
/** The column setup of an option before anyone changes it: every column that is not `hidden`, in option order. */
|
|
4
|
+
export declare const defaultConfiguredTable: (option: SdTableOption | undefined) => ConfiguredTable;
|
|
5
|
+
/**
|
|
6
|
+
* Whether the table uses a setup of its own: the stored columns differ from the defaults in order, visibility, title,
|
|
7
|
+
* width (the settings modal or a resize on the table), fixed or truncate, or the inline external filters differ from
|
|
8
|
+
* `defaultShowing`. Columns added to or removed from the option since the setup was stored do not count.
|
|
9
|
+
*/
|
|
10
|
+
export declare const sdTableHasCustomSetup: ({ option, configuration, inlineExternal, }: {
|
|
11
|
+
option: SdTableOption | undefined;
|
|
12
|
+
configuration: ConfiguredTable | undefined;
|
|
13
|
+
inlineExternal?: Record<string, boolean>;
|
|
14
|
+
}) => boolean;
|
|
@@ -65,6 +65,29 @@ export interface SdTableOptionFilter<T = unknown> {
|
|
|
65
65
|
hideExternalFilterToolbar?: boolean;
|
|
66
66
|
/** Hàm xử lý khi trigger clear filter từ external filter */
|
|
67
67
|
onClearFilter?: () => void;
|
|
68
|
+
/**
|
|
69
|
+
* Giao diện lọc. `'query-bar'`: quick search, external filter và filter dưới cột gộp vào một `sd-query-bar` ở đầu
|
|
70
|
+
* bảng; giá trị lọc, cache và `pagingReq` giữ nguyên như `'default'`. Mobile luôn dùng giao diện `'default'`.
|
|
71
|
+
* @defaultValue 'default'
|
|
72
|
+
*/
|
|
73
|
+
mode?: 'default' | 'query-bar';
|
|
74
|
+
/** Chỉ dùng khi `mode` là `'query-bar'`. */
|
|
75
|
+
queryBar?: SdTableOptionFilterQueryBar;
|
|
76
|
+
}
|
|
77
|
+
/** Tuỳ chọn của `filter.mode: 'query-bar'`. */
|
|
78
|
+
export interface SdTableOptionFilterQueryBar {
|
|
79
|
+
/**
|
|
80
|
+
* Cách sửa chip: popover hoặc control ngay trên thanh (`sd-query-bar` mode `'inline'`).
|
|
81
|
+
* @defaultValue 'popover'
|
|
82
|
+
*/
|
|
83
|
+
editor?: 'popover' | 'inline';
|
|
84
|
+
/**
|
|
85
|
+
* Thay danh sách chip ghim mặc định (quick filter đang hiện, external đang hiện inline hoặc `required`). Phần tử là
|
|
86
|
+
* `field` của `quickSearch.filters` / `externalFilters` / `columns`. Field `required` luôn được ghim.
|
|
87
|
+
*/
|
|
88
|
+
pinned?: string[];
|
|
89
|
+
/** Field không đưa vào thanh; giá trị đang có vẫn được gửi đi. */
|
|
90
|
+
exclude?: string[];
|
|
68
91
|
}
|
|
69
92
|
export declare const SdConvertToPagingReq: (filterRequest: SdTableFilterRequest, args: {
|
|
70
93
|
columns?: SdTableColumnAnyRow[];
|
|
@@ -165,5 +188,7 @@ export interface TableFilterRegister {
|
|
|
165
188
|
set: (value: Partial<TableFilterValue>) => TableFilterValue;
|
|
166
189
|
remove: () => void;
|
|
167
190
|
observer: Observable<TableFilterValue>;
|
|
191
|
+
/** Giá trị mà `remove()` sẽ đặt — default của cột, external và quick search (signal đọc tại lúc gọi). Không ghi cache. */
|
|
192
|
+
default?: () => TableFilterValue;
|
|
168
193
|
};
|
|
169
194
|
}
|