@sdcorejs/angular 21.3.3 → 21.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/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 +46 -10
- package/fesm2022/sdcorejs-angular-components-modal.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-query-bar.mjs +518 -82
- package/fesm2022/sdcorejs-angular-components-query-bar.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-table.mjs +6277 -3396
- 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-p8-V_Ol9.mjs → sdcorejs-angular-modules-pattern-base-api.service-5uIBONB3.mjs} +2 -2
- package/fesm2022/{sdcorejs-angular-modules-pattern-base-api.service-p8-V_Ol9.mjs.map → sdcorejs-angular-modules-pattern-base-api.service-5uIBONB3.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-create-side-drawer.component-DTcpSsbe.mjs → sdcorejs-angular-modules-pattern-create-side-drawer.component-7d4hJjAo.mjs} +18 -4
- package/fesm2022/sdcorejs-angular-modules-pattern-create-side-drawer.component-7d4hJjAo.mjs.map +1 -0
- package/fesm2022/{sdcorejs-angular-modules-pattern-create-side-drawer.component-T2ox0oMZ.mjs → sdcorejs-angular-modules-pattern-create-side-drawer.component-CGkdzJ-A.mjs} +18 -4
- package/fesm2022/sdcorejs-angular-modules-pattern-create-side-drawer.component-CGkdzJ-A.mjs.map +1 -0
- package/fesm2022/{sdcorejs-angular-modules-pattern-create.component-DxWuy1ul.mjs → sdcorejs-angular-modules-pattern-create.component-B35CvNrI.mjs} +2 -2
- package/fesm2022/{sdcorejs-angular-modules-pattern-create.component-DxWuy1ul.mjs.map → sdcorejs-angular-modules-pattern-create.component-B35CvNrI.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-create.component-DkHR_ix2.mjs → sdcorejs-angular-modules-pattern-create.component-CCHeD5tf.mjs} +36 -12
- package/fesm2022/sdcorejs-angular-modules-pattern-create.component-CCHeD5tf.mjs.map +1 -0
- package/fesm2022/{sdcorejs-angular-modules-pattern-create.component-DAjVXHXc.mjs → sdcorejs-angular-modules-pattern-create.component-Cvxx5s1o.mjs} +19 -5
- package/fesm2022/sdcorejs-angular-modules-pattern-create.component-Cvxx5s1o.mjs.map +1 -0
- package/fesm2022/{sdcorejs-angular-modules-pattern-customer.service-Cbs05A2j.mjs → sdcorejs-angular-modules-pattern-customer.service-5hBM9st3.mjs} +2 -2
- package/fesm2022/{sdcorejs-angular-modules-pattern-customer.service-Cbs05A2j.mjs.map → sdcorejs-angular-modules-pattern-customer.service-5hBM9st3.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-detail-side-drawer.component-Bkk3_Lf0.mjs → sdcorejs-angular-modules-pattern-detail-side-drawer.component-Bza4JOdZ.mjs} +2 -2
- package/fesm2022/{sdcorejs-angular-modules-pattern-detail-side-drawer.component-Bkk3_Lf0.mjs.map → sdcorejs-angular-modules-pattern-detail-side-drawer.component-Bza4JOdZ.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-detail.component-BIuEchUV.mjs → sdcorejs-angular-modules-pattern-detail.component-BcxxJCVt.mjs} +27 -10
- package/fesm2022/sdcorejs-angular-modules-pattern-detail.component-BcxxJCVt.mjs.map +1 -0
- package/fesm2022/{sdcorejs-angular-modules-pattern-detail.component-CH21RSWx.mjs → sdcorejs-angular-modules-pattern-detail.component-BuvAy1by.mjs} +2 -2
- package/fesm2022/{sdcorejs-angular-modules-pattern-detail.component-CH21RSWx.mjs.map → sdcorejs-angular-modules-pattern-detail.component-BuvAy1by.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-flow.component-D1kpfcf_.mjs → sdcorejs-angular-modules-pattern-flow.component-BDixzOA6.mjs} +2 -2
- package/fesm2022/{sdcorejs-angular-modules-pattern-flow.component-D1kpfcf_.mjs.map → sdcorejs-angular-modules-pattern-flow.component-BDixzOA6.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-general-information-form.component-qs8Yoxn0.mjs → sdcorejs-angular-modules-pattern-general-information-form.component-CxDQKd64.mjs} +3 -3
- package/fesm2022/sdcorejs-angular-modules-pattern-general-information-form.component-CxDQKd64.mjs.map +1 -0
- package/fesm2022/{sdcorejs-angular-modules-pattern-index.component-DYphTR6C.mjs → sdcorejs-angular-modules-pattern-index.component-iRIG7WQo.mjs} +4 -4
- package/fesm2022/sdcorejs-angular-modules-pattern-index.component-iRIG7WQo.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-lines-table-form.component-BqKJDK9M.mjs +812 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-lines-table-form.component-BqKJDK9M.mjs.map +1 -0
- package/fesm2022/{sdcorejs-angular-modules-pattern-list.component-Dy2Rkh8f.mjs → sdcorejs-angular-modules-pattern-list.component-B6_x5N3F.mjs} +2 -2
- package/fesm2022/{sdcorejs-angular-modules-pattern-list.component-Dy2Rkh8f.mjs.map → sdcorejs-angular-modules-pattern-list.component-B6_x5N3F.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-list.component-CZ1NoLIo.mjs → sdcorejs-angular-modules-pattern-list.component-BMpOXn7E.mjs} +2 -2
- package/fesm2022/{sdcorejs-angular-modules-pattern-list.component-CZ1NoLIo.mjs.map → sdcorejs-angular-modules-pattern-list.component-BMpOXn7E.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-list.component-BIFg9bUW.mjs → sdcorejs-angular-modules-pattern-list.component-Cj03DgF1.mjs} +3 -3
- package/fesm2022/{sdcorejs-angular-modules-pattern-list.component-BIFg9bUW.mjs.map → sdcorejs-angular-modules-pattern-list.component-Cj03DgF1.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-list.component-CmZeYoF7.mjs → sdcorejs-angular-modules-pattern-list.component-D-pHPHFP.mjs} +2 -2
- package/fesm2022/{sdcorejs-angular-modules-pattern-list.component-CmZeYoF7.mjs.map → sdcorejs-angular-modules-pattern-list.component-D-pHPHFP.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-list.component-5sLtmhG1.mjs → sdcorejs-angular-modules-pattern-list.component-DH3CroK1.mjs} +2 -2
- package/fesm2022/{sdcorejs-angular-modules-pattern-list.component-5sLtmhG1.mjs.map → sdcorejs-angular-modules-pattern-list.component-DH3CroK1.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-mock-backend.factory-BdxQkZXW.mjs → sdcorejs-angular-modules-pattern-mock-backend.factory-DnB5_C1D.mjs} +2 -2
- package/fesm2022/{sdcorejs-angular-modules-pattern-mock-backend.factory-BdxQkZXW.mjs.map → sdcorejs-angular-modules-pattern-mock-backend.factory-DnB5_C1D.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-BpSTfkeT.mjs → sdcorejs-angular-modules-pattern-product.service-DZ3fY-yQ.mjs} +2 -2
- package/fesm2022/{sdcorejs-angular-modules-pattern-product.service-BpSTfkeT.mjs.map → sdcorejs-angular-modules-pattern-product.service-DZ3fY-yQ.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-profile.component-D3QP1i9v.mjs → sdcorejs-angular-modules-pattern-profile.component-DVYnHOtn.mjs} +2 -2
- package/fesm2022/{sdcorejs-angular-modules-pattern-profile.component-D3QP1i9v.mjs.map → sdcorejs-angular-modules-pattern-profile.component-DVYnHOtn.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-routes-ClRXOw9g.mjs → sdcorejs-angular-modules-pattern-routes-B8i5MUtz.mjs} +9 -9
- package/fesm2022/{sdcorejs-angular-modules-pattern-routes-ClRXOw9g.mjs.map → sdcorejs-angular-modules-pattern-routes-B8i5MUtz.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-routes-CWTlhZzo.mjs → sdcorejs-angular-modules-pattern-routes-BGZzmwY2.mjs} +3 -3
- package/fesm2022/{sdcorejs-angular-modules-pattern-routes-CWTlhZzo.mjs.map → sdcorejs-angular-modules-pattern-routes-BGZzmwY2.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-routes-ZkBSRFv_.mjs → sdcorejs-angular-modules-pattern-routes-BPofy0Oq.mjs} +5 -5
- package/fesm2022/{sdcorejs-angular-modules-pattern-routes-ZkBSRFv_.mjs.map → sdcorejs-angular-modules-pattern-routes-BPofy0Oq.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-routes-BA64XAgv.mjs → sdcorejs-angular-modules-pattern-routes-CYeHFGl1.mjs} +7 -7
- package/fesm2022/{sdcorejs-angular-modules-pattern-routes-BA64XAgv.mjs.map → sdcorejs-angular-modules-pattern-routes-CYeHFGl1.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-routes-DYT6cDVo.mjs → sdcorejs-angular-modules-pattern-routes-C_CLbNSs.mjs} +3 -3
- package/fesm2022/{sdcorejs-angular-modules-pattern-routes-DYT6cDVo.mjs.map → sdcorejs-angular-modules-pattern-routes-C_CLbNSs.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-routes-px1VU73r.mjs → sdcorejs-angular-modules-pattern-routes-CdSiqJCz.mjs} +5 -5
- package/fesm2022/{sdcorejs-angular-modules-pattern-routes-px1VU73r.mjs.map → sdcorejs-angular-modules-pattern-routes-CdSiqJCz.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-routes-Dww3V1b9.mjs → sdcorejs-angular-modules-pattern-routes-p7lQcGGX.mjs} +3 -3
- package/fesm2022/{sdcorejs-angular-modules-pattern-routes-Dww3V1b9.mjs.map → sdcorejs-angular-modules-pattern-routes-p7lQcGGX.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-routes-HwJm344-.mjs → sdcorejs-angular-modules-pattern-routes-uRsy0zag.mjs} +4 -4
- package/fesm2022/{sdcorejs-angular-modules-pattern-routes-HwJm344-.mjs.map → sdcorejs-angular-modules-pattern-routes-uRsy0zag.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-sdcorejs-angular-modules-pattern-BSDQaT9e.mjs → sdcorejs-angular-modules-pattern-sdcorejs-angular-modules-pattern-els-Wxch.mjs} +12 -12
- package/fesm2022/{sdcorejs-angular-modules-pattern-sdcorejs-angular-modules-pattern-BSDQaT9e.mjs.map → sdcorejs-angular-modules-pattern-sdcorejs-angular-modules-pattern-els-Wxch.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-shell.component-2EN7PuIE.mjs → sdcorejs-angular-modules-pattern-shell.component-5G4lKoLv.mjs} +4 -4
- package/fesm2022/{sdcorejs-angular-modules-pattern-shell.component-2EN7PuIE.mjs.map → sdcorejs-angular-modules-pattern-shell.component-5G4lKoLv.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-update-side-drawer.component-Crg1J2V5.mjs → sdcorejs-angular-modules-pattern-update-side-drawer.component-BF0hAVrv.mjs} +4 -4
- package/fesm2022/sdcorejs-angular-modules-pattern-update-side-drawer.component-BF0hAVrv.mjs.map +1 -0
- package/fesm2022/{sdcorejs-angular-modules-pattern-update-side-drawer.component-LIBiOZLn.mjs → sdcorejs-angular-modules-pattern-update-side-drawer.component-DJeQxfDA.mjs} +4 -4
- package/fesm2022/sdcorejs-angular-modules-pattern-update-side-drawer.component-DJeQxfDA.mjs.map +1 -0
- package/fesm2022/{sdcorejs-angular-modules-pattern-update.component-CoGA7wxY.mjs → sdcorejs-angular-modules-pattern-update.component-Bq_5H0xM.mjs} +5 -5
- package/fesm2022/sdcorejs-angular-modules-pattern-update.component-Bq_5H0xM.mjs.map +1 -0
- package/fesm2022/{sdcorejs-angular-modules-pattern-update.component-4Mm8-ehz.mjs → sdcorejs-angular-modules-pattern-update.component-Bwsqvl4A.mjs} +22 -12
- package/fesm2022/sdcorejs-angular-modules-pattern-update.component-Bwsqvl4A.mjs.map +1 -0
- package/fesm2022/{sdcorejs-angular-modules-pattern-update.component-ClEGOr5D.mjs → sdcorejs-angular-modules-pattern-update.component-CpGbjd_m.mjs} +12 -10
- package/fesm2022/sdcorejs-angular-modules-pattern-update.component-CpGbjd_m.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/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.ts +124 -147
- 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.ts +196 -0
- package/modules/pattern/features/order/pages/create/create.component.ts +18 -4
- package/modules/pattern/features/order/pages/detail/detail.component.ts +14 -12
- 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.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 +1 -1
- package/types/sdcorejs-angular-components-modal.d.ts +6 -1
- package/types/sdcorejs-angular-components-query-bar.d.ts +154 -13
- package/types/sdcorejs-angular-components-table.d.ts +448 -29
- package/types/sdcorejs-angular-i18n.d.ts +66 -1
- package/types/sdcorejs-angular-services-api.d.ts +5 -5
- package/types/sdcorejs-angular-services-cache.d.ts +4 -2
- package/types/sdcorejs-angular-services-excel.d.ts +59 -0
- package/types/sdcorejs-angular-services-storage.d.ts +3 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-create-side-drawer.component-DTcpSsbe.mjs.map +0 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-create-side-drawer.component-T2ox0oMZ.mjs.map +0 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-create.component-DAjVXHXc.mjs.map +0 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-create.component-DkHR_ix2.mjs.map +0 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-detail.component-BIuEchUV.mjs.map +0 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-general-information-form.component-qs8Yoxn0.mjs.map +0 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-index.component-DYphTR6C.mjs.map +0 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-lines-form.component-C692P-z0.mjs +0 -522
- package/fesm2022/sdcorejs-angular-modules-pattern-lines-form.component-C692P-z0.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-Crg1J2V5.mjs.map +0 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-update-side-drawer.component-LIBiOZLn.mjs.map +0 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-update.component-4Mm8-ehz.mjs.map +0 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-update.component-ClEGOr5D.mjs.map +0 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-update.component-CoGA7wxY.mjs.map +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
|
-
import { TemplateRef, Signal, InjectionToken, AfterViewInit, OnDestroy } from '@angular/core';
|
|
2
|
+
import { TemplateRef, Signal, ElementRef, InjectionToken, AfterViewInit, OnDestroy } from '@angular/core';
|
|
3
3
|
import { SdBadgeData, SdBadge } from '@sdcorejs/angular/components/badge';
|
|
4
4
|
import { SdSearch } from '@sdcorejs/angular/forms/models';
|
|
5
|
-
import { Operator, NestedKeyOf, Order, PagingReq, Color } from '@sdcorejs/utils/models';
|
|
5
|
+
import { Operator, NestedKeyOf, Order, PagingReq, Color, Filter } from '@sdcorejs/utils/models';
|
|
6
6
|
import { SdDateTimeService } from '@sdcorejs/angular/services/date-time';
|
|
7
7
|
import { Observable } from 'rxjs';
|
|
8
8
|
import { SdIconSet } from '@sdcorejs/angular/modules/icon';
|
|
@@ -13,13 +13,13 @@ import { MatPaginator, MatPaginatorIntl } from '@angular/material/paginator';
|
|
|
13
13
|
import { MatSort, SortDirection } from '@angular/material/sort';
|
|
14
14
|
import { MatTable } from '@angular/material/table';
|
|
15
15
|
import { SdExcelColumn } from '@sdcorejs/angular/services';
|
|
16
|
-
import {
|
|
16
|
+
import { SdQueryField, ɵSdQueryChipLabels as _SdQueryChipLabels, SdQueryBar, SdQueryBarOption, SdQuery } from '@sdcorejs/angular/components/query-bar';
|
|
17
|
+
import { CdkDragDrop, CdkDrag, CdkDropList } from '@angular/cdk/drag-drop';
|
|
17
18
|
import { SdDataStateTemplateDirective } from '@sdcorejs/angular/components/data-state';
|
|
18
19
|
import { SdReadState } from '@sdcorejs/angular/utilities/read-state';
|
|
19
20
|
import { SdQuickAction } from '@sdcorejs/angular/components/quick-action';
|
|
20
21
|
import { SdScrollDirective } from '@sdcorejs/angular/directives';
|
|
21
22
|
import { FormGroup } from '@angular/forms';
|
|
22
|
-
import { SdSideDrawer } from '@sdcorejs/angular/components/side-drawer';
|
|
23
23
|
import { SdModal } from '@sdcorejs/angular/components/modal';
|
|
24
24
|
import { MatSelectionList } from '@angular/material/list';
|
|
25
25
|
|
|
@@ -361,6 +361,8 @@ interface SdTableQuickFilter {
|
|
|
361
361
|
}
|
|
362
362
|
interface TableFilterConfiguration {
|
|
363
363
|
inlineExternal: Record<string, boolean>;
|
|
364
|
+
/** Giao diện lọc người dùng chọn trong modal Thiết lập; thắng `filter.mode` khi `filter.modeSelectable` khác `false`. */
|
|
365
|
+
mode?: SdTableOptionFilter['mode'];
|
|
364
366
|
}
|
|
365
367
|
interface TableFilterValue {
|
|
366
368
|
quickSearch?: SdTableQuickSearchValue;
|
|
@@ -413,6 +415,37 @@ interface SdTableOptionFilter<T = unknown> {
|
|
|
413
415
|
hideExternalFilterToolbar?: boolean;
|
|
414
416
|
/** Hàm xử lý khi trigger clear filter từ external filter */
|
|
415
417
|
onClearFilter?: () => void;
|
|
418
|
+
/**
|
|
419
|
+
* 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
|
|
420
|
+
* bảng; giá trị lọc, cache và `pagingReq` giữ nguyên như `'default'`. Mobile luôn dùng giao diện `'default'`.
|
|
421
|
+
* @defaultValue 'default'
|
|
422
|
+
*/
|
|
423
|
+
mode?: 'default' | 'query-bar';
|
|
424
|
+
/**
|
|
425
|
+
* Cho người dùng chọn giao diện lọc trong modal Thiết lập. Lựa chọn được lưu cùng thiết lập bộ lọc (theo `filter.key`)
|
|
426
|
+
* và thắng `mode`; **Khôi phục mặc định** xoá nó. `false`: luôn dùng `mode` và bỏ qua lựa chọn đã lưu.
|
|
427
|
+
* `SD_TABLE_CONFIGURATION.filter.modeSelectable` đặt cho mọi bảng; option thắng.
|
|
428
|
+
* @defaultValue true
|
|
429
|
+
*/
|
|
430
|
+
modeSelectable?: boolean;
|
|
431
|
+
/** Chỉ dùng khi `mode` là `'query-bar'`. */
|
|
432
|
+
queryBar?: SdTableOptionFilterQueryBar;
|
|
433
|
+
}
|
|
434
|
+
/** Tuỳ chọn của `filter.mode: 'query-bar'`. */
|
|
435
|
+
interface SdTableOptionFilterQueryBar {
|
|
436
|
+
/**
|
|
437
|
+
* Cách sửa chip: control ngay trên thanh (`sd-query-bar` mode `'inline'`) hoặc popover. `sd-query-bar` đứng riêng
|
|
438
|
+
* vẫn mặc định `'popover'`.
|
|
439
|
+
* @defaultValue 'inline'
|
|
440
|
+
*/
|
|
441
|
+
editor?: 'popover' | 'inline';
|
|
442
|
+
/**
|
|
443
|
+
* 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à
|
|
444
|
+
* `field` của `quickSearch.filters` / `externalFilters` / `columns`. Field `required` luôn được ghim.
|
|
445
|
+
*/
|
|
446
|
+
pinned?: string[];
|
|
447
|
+
/** Field không đưa vào thanh; giá trị đang có vẫn được gửi đi. */
|
|
448
|
+
exclude?: string[];
|
|
416
449
|
}
|
|
417
450
|
declare const SdConvertToPagingReq: (filterRequest: SdTableFilterRequest, args: {
|
|
418
451
|
columns?: SdTableColumnAnyRow[];
|
|
@@ -513,6 +546,8 @@ interface TableFilterRegister {
|
|
|
513
546
|
set: (value: Partial<TableFilterValue>) => TableFilterValue;
|
|
514
547
|
remove: () => void;
|
|
515
548
|
observer: Observable<TableFilterValue>;
|
|
549
|
+
/** 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. */
|
|
550
|
+
default?: () => TableFilterValue;
|
|
516
551
|
};
|
|
517
552
|
}
|
|
518
553
|
|
|
@@ -1086,6 +1121,58 @@ interface TableOptionTreeLazy<T = any> {
|
|
|
1086
1121
|
indentSize?: number;
|
|
1087
1122
|
}
|
|
1088
1123
|
|
|
1124
|
+
/** A leaf column of the table, by its `field`. Checked at build time (`NestedKeyOf<T>`) and at run time (leaf column). */
|
|
1125
|
+
type SdTableMobileField<T> = NestedKeyOf<T>;
|
|
1126
|
+
/** A column value, or fixed text shown as is. */
|
|
1127
|
+
type SdTableMobileText<T> = SdTableMobileField<T> | {
|
|
1128
|
+
text: string;
|
|
1129
|
+
};
|
|
1130
|
+
/** Slots every mobile layout has. */
|
|
1131
|
+
interface SdTableMobileData<T> {
|
|
1132
|
+
/** First line, 15px medium. A missing or unknown field falls back to `mobile.rowLabel`, then `rowKey`. */
|
|
1133
|
+
title: SdTableMobileText<T>;
|
|
1134
|
+
/** Second line, one line cut with "…". */
|
|
1135
|
+
subtitle?: SdTableMobileText<T>;
|
|
1136
|
+
/** After the title. A field must be a column with `useBadge` (checked at run time), otherwise it shows as text. */
|
|
1137
|
+
badge?: SdTableMobileField<T> | SdBadgeData;
|
|
1138
|
+
/** Grid cells with the column title as label, in this order. */
|
|
1139
|
+
fields?: SdTableMobileField<T>[];
|
|
1140
|
+
}
|
|
1141
|
+
/** Data of a `card` (the only layout so far). */
|
|
1142
|
+
interface SdTableMobileCardData<T> extends SdTableMobileData<T> {
|
|
1143
|
+
/** First grid cell, medium weight. */
|
|
1144
|
+
highlight?: SdTableMobileField<T>;
|
|
1145
|
+
/**
|
|
1146
|
+
* Grid cells shown before the "{n} more fields" button, `highlight` included.
|
|
1147
|
+
* @defaultValue 4
|
|
1148
|
+
*/
|
|
1149
|
+
maxFields?: number;
|
|
1150
|
+
/**
|
|
1151
|
+
* Not a card slot. why: TypeScript does not report excess properties of an object returned by an arrow function,
|
|
1152
|
+
* so `never` is what rejects `trailing` (a slot of the future `list` layout) on a card.
|
|
1153
|
+
*/
|
|
1154
|
+
trailing?: never;
|
|
1155
|
+
}
|
|
1156
|
+
/** Second argument of `mobile.template.data`. */
|
|
1157
|
+
interface SdTableMobileDataContext {
|
|
1158
|
+
/** Zero-based data-row position on the current page, as in `SdTableRowMobileDefContext`. */
|
|
1159
|
+
index: number;
|
|
1160
|
+
selected: boolean;
|
|
1161
|
+
}
|
|
1162
|
+
/**
|
|
1163
|
+
* Builds the slots of one row. Called again when the rows are read again or `detectChanges()` runs, and when the index
|
|
1164
|
+
* or the selection of the row changes.
|
|
1165
|
+
*/
|
|
1166
|
+
type SdTableMobileDataFn<T, D> = (item: T, context: SdTableMobileDataContext) => D;
|
|
1167
|
+
/**
|
|
1168
|
+
* Body of the phone card: a consumer template, or slots built from the row (`data`). `layout` is fixed per table;
|
|
1169
|
+
* leaving it out means `'card'`.
|
|
1170
|
+
*/
|
|
1171
|
+
type SdTableMobileTemplate<T> = TemplateRef<SdTableRowMobileDefContext<T>> | {
|
|
1172
|
+
layout?: 'card';
|
|
1173
|
+
data: SdTableMobileDataFn<T, SdTableMobileCardData<T>>;
|
|
1174
|
+
};
|
|
1175
|
+
|
|
1089
1176
|
type SdTableOption<T = any> = SdTableLocalOption<T> | SdTableServerOption<T>;
|
|
1090
1177
|
interface SdTableBaseOption<T = any> {
|
|
1091
1178
|
/**
|
|
@@ -1115,10 +1202,19 @@ interface SdTableBaseOption<T = any> {
|
|
|
1115
1202
|
* cần autoId theo dòng ổn định cho E2E.
|
|
1116
1203
|
*/
|
|
1117
1204
|
rowKey?: string;
|
|
1118
|
-
/**
|
|
1205
|
+
/**
|
|
1206
|
+
* Phone layout. Cards activate when the table has a card body: a projected `sdTableRowMobileDef` (wins, with a dev
|
|
1207
|
+
* warning when `template` is set too), `template`, or `SD_TABLE_CONFIGURATION.mobile.autoTemplate`.
|
|
1208
|
+
*/
|
|
1119
1209
|
mobile?: {
|
|
1120
1210
|
/** Row command title and accessible labels; falls back to rowKey, then row number. */
|
|
1121
1211
|
rowLabel?: (row: T) => string;
|
|
1212
|
+
/**
|
|
1213
|
+
* Card body on phones: a `TemplateRef`, or `{ data }` to build the card from row values. `false` keeps the desktop
|
|
1214
|
+
* table on phones even with `autoTemplate`.
|
|
1215
|
+
* @example `template: { data: row => ({ title: 'code', badge: 'status', highlight: 'total' }) }`
|
|
1216
|
+
*/
|
|
1217
|
+
template?: SdTableMobileTemplate<T> | false;
|
|
1122
1218
|
};
|
|
1123
1219
|
/**
|
|
1124
1220
|
* Cấu hình hiển thị/phục hồi config của table.
|
|
@@ -1419,6 +1515,80 @@ interface TableSkeletonCell {
|
|
|
1419
1515
|
readonly hidden?: boolean;
|
|
1420
1516
|
}
|
|
1421
1517
|
|
|
1518
|
+
type SdTableQuerySourceKind = 'quick' | 'external' | 'column';
|
|
1519
|
+
/**
|
|
1520
|
+
* How a chip value is stored in the raw record.
|
|
1521
|
+
* - `scalar`: one value; `multi`: an array (chip `IN`); `range`: `{ from, to }` (chip `BETWEEN`);
|
|
1522
|
+
* - `boolean`: `true` / `false` (external boolean); `flag`: `'1'` / `'0'` (column boolean select).
|
|
1523
|
+
*/
|
|
1524
|
+
type SdTableQueryShape = 'scalar' | 'multi' | 'range' | 'boolean' | 'flag';
|
|
1525
|
+
/** Field of the bar → the filter it edits. */
|
|
1526
|
+
interface SdTableQuerySource {
|
|
1527
|
+
/** `${source}:${field}` — the bar's `SdQueryField.key`. Never reaches filterReq, pagingReq or the cache. */
|
|
1528
|
+
key: string;
|
|
1529
|
+
source: SdTableQuerySourceKind;
|
|
1530
|
+
/** Field of the raw record. */
|
|
1531
|
+
field: string;
|
|
1532
|
+
column?: SdTableColumnAnyRow;
|
|
1533
|
+
external?: SdTableExternalFilter;
|
|
1534
|
+
quick?: SdTableQuickSearchFilter;
|
|
1535
|
+
shape: SdTableQueryShape;
|
|
1536
|
+
/** Operator of a chip with a value when the raw record holds no operator for it. */
|
|
1537
|
+
operator: Operator;
|
|
1538
|
+
/**
|
|
1539
|
+
* What reaches `columnOperator`: nothing (`none`), the chip operator (`chip`, a column whose operator the user
|
|
1540
|
+
* picks), or only `NULL` / `NOT_NULL` (`no-data`, a column whose chip operator `IN` / `BETWEEN` / `EQUAL` is
|
|
1541
|
+
* implied by the value shape).
|
|
1542
|
+
*/
|
|
1543
|
+
operatorMode: 'none' | 'chip' | 'no-data';
|
|
1544
|
+
}
|
|
1545
|
+
interface SdTableQueryFields {
|
|
1546
|
+
/** Fields of the bar, in order: quick filters, external filters, leaf columns. */
|
|
1547
|
+
fields: SdQueryField[];
|
|
1548
|
+
sources: Map<string, SdTableQuerySource>;
|
|
1549
|
+
/** Filters the bar cannot edit. Their raw values stay as they are and are still sent. */
|
|
1550
|
+
excluded: {
|
|
1551
|
+
field: string;
|
|
1552
|
+
reason: string;
|
|
1553
|
+
}[];
|
|
1554
|
+
/** Column fields hidden behind an external filter of the same field. Their raw value is always cleared. */
|
|
1555
|
+
covered: string[];
|
|
1556
|
+
/** Column field → bar key its header icon opens (`column:<field>`, or `external:<field>` when covered). */
|
|
1557
|
+
columnKeys: Map<string, string>;
|
|
1558
|
+
/** The bar shows the search box (bound to `quickSearch.term`). */
|
|
1559
|
+
search: boolean;
|
|
1560
|
+
/** The table has quick search: the patch carries `quickSearch`. */
|
|
1561
|
+
quickSearch: boolean;
|
|
1562
|
+
}
|
|
1563
|
+
interface SdTableQueryContext extends SdTableQueryFields {
|
|
1564
|
+
/** Column operators of the table defaults — restored when a `NULL` / `NOT_NULL` chip goes away. */
|
|
1565
|
+
defaultColumnOperator?: Record<string, Operator>;
|
|
1566
|
+
}
|
|
1567
|
+
|
|
1568
|
+
/**
|
|
1569
|
+
* One filter of the phone UI (chip row and filter sheet).
|
|
1570
|
+
* - `source` + `field`: a filter the query-bar model can read — it gets a chip, a summary and the built-in controls.
|
|
1571
|
+
* - `custom`: a filter only its own control can edit (a template, a time column, an external filter the bar leaves
|
|
1572
|
+
* out). It has a row in the filter sheet that opens that control, but no chip and no summary.
|
|
1573
|
+
*/
|
|
1574
|
+
interface SdTableMobileFilterItem {
|
|
1575
|
+
/** `external:<field>` / `column:<field>` as on the query bar, `custom-*:<field>` otherwise. */
|
|
1576
|
+
key: string;
|
|
1577
|
+
label: string;
|
|
1578
|
+
source?: SdTableQuerySource;
|
|
1579
|
+
field?: SdQueryField;
|
|
1580
|
+
custom?: {
|
|
1581
|
+
kind: 'column';
|
|
1582
|
+
column: SdTableColumnAnyRow;
|
|
1583
|
+
} | {
|
|
1584
|
+
kind: 'external';
|
|
1585
|
+
external: SdTableExternalFilter;
|
|
1586
|
+
} | {
|
|
1587
|
+
kind: 'def';
|
|
1588
|
+
def: SdTableFilterDefDirective;
|
|
1589
|
+
};
|
|
1590
|
+
}
|
|
1591
|
+
|
|
1422
1592
|
/** Internal presentation only; closures keep row and selection callbacks distinct. */
|
|
1423
1593
|
interface SdTableMobileAction {
|
|
1424
1594
|
key: string;
|
|
@@ -1434,6 +1604,18 @@ interface SdTableMobileAction {
|
|
|
1434
1604
|
run?: () => unknown;
|
|
1435
1605
|
}
|
|
1436
1606
|
|
|
1607
|
+
/** What fills a phone card: a template, slots from `mobile.template.data`, or slots derived from the columns. */
|
|
1608
|
+
type SdTableMobileBody<T> = {
|
|
1609
|
+
kind: 'template';
|
|
1610
|
+
templateRef: TemplateRef<SdTableRowMobileDefContext<T>>;
|
|
1611
|
+
} | {
|
|
1612
|
+
kind: 'data';
|
|
1613
|
+
layout: unknown;
|
|
1614
|
+
data: SdTableMobileDataFn<T, SdTableMobileCardData<T>>;
|
|
1615
|
+
} | {
|
|
1616
|
+
kind: 'auto';
|
|
1617
|
+
};
|
|
1618
|
+
|
|
1437
1619
|
/** What the unknown-total paginator renders; computed by `SdTable`. */
|
|
1438
1620
|
interface SdTableUnknownTotalPagerState {
|
|
1439
1621
|
/** Page the controls navigate from: the shown page, or the failed target after a read error. */
|
|
@@ -1506,19 +1688,13 @@ declare class ExternalFilterComponent {
|
|
|
1506
1688
|
}
|
|
1507
1689
|
|
|
1508
1690
|
/**
|
|
1509
|
-
*
|
|
1510
|
-
*
|
|
1511
|
-
*
|
|
1512
|
-
*
|
|
1513
|
-
* 1. External filter (render inline — KHÔNG reuse external-filter component
|
|
1514
|
-
* vì component đó dùng grid 2/3 cột + có chọn ẩn/hiện không phù hợp mobile).
|
|
1515
|
-
* 2. filterDefs — custom templates do app khai báo qua `[sdTableFilterDef]`.
|
|
1516
|
-
* 3. Column filter — 1 column-filter / column.
|
|
1517
|
-
*
|
|
1518
|
-
* State: local working copy. Cancel = đóng (không ghi). Apply = flush vào
|
|
1519
|
-
* filterRegister + đóng.
|
|
1691
|
+
* Filter sheet of the phone (handoff table-mobile 5): one `sd-modal` bottom sheet with two levels — the list of
|
|
1692
|
+
* filters with their summary, and the page of one filter. Works on a copy of the filter register: Done keeps the page's
|
|
1693
|
+
* edits in the copy, Apply writes every filter and reads once, Cancel / close / a swipe down / the scrim drop the copy.
|
|
1694
|
+
* Order: external filters → `sdTableFilterDef` templates → columns.
|
|
1520
1695
|
*/
|
|
1521
1696
|
declare class MobileFilterComponent {
|
|
1697
|
+
#private;
|
|
1522
1698
|
autoIdInput: _angular_core.InputSignal<string | null | undefined>;
|
|
1523
1699
|
filter: _angular_core.InputSignal<SdTableOptionFilter<unknown> | undefined>;
|
|
1524
1700
|
externalFilters: _angular_core.InputSignal<SdTableExternalFilter[] | null | undefined>;
|
|
@@ -1526,47 +1702,194 @@ declare class MobileFilterComponent {
|
|
|
1526
1702
|
filterDefs: _angular_core.InputSignal<readonly SdTableFilterDefDirective[] | null | undefined>;
|
|
1527
1703
|
filterRegister: _angular_core.InputSignal<TableFilterRegister | undefined>;
|
|
1528
1704
|
cacheValues: _angular_core.InputSignal<Record<string, any[]> | undefined>;
|
|
1529
|
-
|
|
1705
|
+
/** Filters and the query model, from the table. */
|
|
1706
|
+
model: _angular_core.InputSignal<{
|
|
1707
|
+
ctx: SdTableQueryContext;
|
|
1708
|
+
items: SdTableMobileFilterItem[];
|
|
1709
|
+
} | undefined>;
|
|
1710
|
+
readonly sheet: _angular_core.Signal<SdModal>;
|
|
1711
|
+
protected readonly head: _angular_core.Signal<ElementRef<HTMLElement> | undefined>;
|
|
1712
|
+
protected readonly body: _angular_core.Signal<ElementRef<HTMLElement> | undefined>;
|
|
1530
1713
|
workingColumnFilter: _angular_core.WritableSignal<Record<string, any>>;
|
|
1531
1714
|
workingColumnOperator: _angular_core.WritableSignal<Record<string, Operator>>;
|
|
1532
1715
|
workingExternalFilter: _angular_core.WritableSignal<Record<string, any>>;
|
|
1716
|
+
/** Filter whose page is open; `undefined` on the list. */
|
|
1717
|
+
readonly page: _angular_core.WritableSignal<SdTableMobileFilterItem | undefined>;
|
|
1718
|
+
/** Bumped when the copy changes in place, so summaries and counts follow. */
|
|
1719
|
+
readonly revision: _angular_core.WritableSignal<number>;
|
|
1720
|
+
readonly labels: _SdQueryChipLabels;
|
|
1533
1721
|
autoId: _angular_core.Signal<string>;
|
|
1534
1722
|
externalFilterItems: _angular_core.Signal<SdTableExternalFilter[]>;
|
|
1535
1723
|
columnItems: _angular_core.Signal<SdTableColumn[]>;
|
|
1536
1724
|
filterDefItems: _angular_core.Signal<readonly SdTableFilterDefDirective[]>;
|
|
1725
|
+
/** The copy as one record; its parts are the working signals' objects, edited in place by the field pages. */
|
|
1726
|
+
readonly working: _angular_core.Signal<TableFilterValue>;
|
|
1727
|
+
readonly rows: _angular_core.Signal<{
|
|
1728
|
+
item: SdTableMobileFilterItem;
|
|
1729
|
+
summary: string;
|
|
1730
|
+
active: boolean;
|
|
1731
|
+
field: string;
|
|
1732
|
+
}[]>;
|
|
1733
|
+
readonly activeCount: _angular_core.Signal<number>;
|
|
1734
|
+
constructor();
|
|
1537
1735
|
open: () => void;
|
|
1538
1736
|
close: () => void;
|
|
1737
|
+
/** Opens the page of a filter; Back returns to the list. */
|
|
1738
|
+
enter(item: SdTableMobileFilterItem): void;
|
|
1739
|
+
/** Done / ← / Escape on a page: back to the list, the edits stay in the copy. */
|
|
1740
|
+
back(): void;
|
|
1539
1741
|
onApply: () => void;
|
|
1540
1742
|
onCancel: () => void;
|
|
1743
|
+
/** "Clear all": empties every filter of the copy; Apply still writes it. */
|
|
1744
|
+
clearAll(): void;
|
|
1745
|
+
/** "Clear" on a page: that filter only. */
|
|
1746
|
+
clearPage(): void;
|
|
1747
|
+
onChanged(): void;
|
|
1748
|
+
onKeydown(event: KeyboardEvent): void;
|
|
1749
|
+
/** Every close path ends here: drop the history entries the sheet pushed. */
|
|
1750
|
+
onClosed(): void;
|
|
1541
1751
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MobileFilterComponent, never>;
|
|
1542
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<MobileFilterComponent, "mobile-filter", never, { "autoIdInput": { "alias": "autoId"; "required": false; "isSignal": true; }; "filter": { "alias": "filter"; "required": false; "isSignal": true; }; "externalFilters": { "alias": "externalFilters"; "required": false; "isSignal": true; }; "columns": { "alias": "columns"; "required": false; "isSignal": true; }; "filterDefs": { "alias": "filterDefs"; "required": false; "isSignal": true; }; "filterRegister": { "alias": "filterRegister"; "required": false; "isSignal": true; }; "cacheValues": { "alias": "cacheValues"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1752
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<MobileFilterComponent, "mobile-filter", never, { "autoIdInput": { "alias": "autoId"; "required": false; "isSignal": true; }; "filter": { "alias": "filter"; "required": false; "isSignal": true; }; "externalFilters": { "alias": "externalFilters"; "required": false; "isSignal": true; }; "columns": { "alias": "columns"; "required": false; "isSignal": true; }; "filterDefs": { "alias": "filterDefs"; "required": false; "isSignal": true; }; "filterRegister": { "alias": "filterRegister"; "required": false; "isSignal": true; }; "cacheValues": { "alias": "cacheValues"; "required": false; "isSignal": true; }; "model": { "alias": "model"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1543
1753
|
}
|
|
1544
1754
|
|
|
1755
|
+
type FilterMode = NonNullable<SdTableOptionFilter['mode']>;
|
|
1756
|
+
type ConfigTab = 'columns' | 'filters';
|
|
1757
|
+
interface ConfigFilterRow {
|
|
1758
|
+
field: string;
|
|
1759
|
+
title: string;
|
|
1760
|
+
on: boolean;
|
|
1761
|
+
locked: boolean;
|
|
1762
|
+
/** i18n key of the text under the title. */
|
|
1763
|
+
note?: string;
|
|
1764
|
+
}
|
|
1765
|
+
/** What the "Bộ lọc" tab shows; the table builds it, and `undefined` hides the tab. */
|
|
1766
|
+
interface ConfigFilterSetup {
|
|
1767
|
+
/** `filter.mode` after `SD_TABLE_CONFIGURATION`: the kind without a stored choice. */
|
|
1768
|
+
mode: FilterMode;
|
|
1769
|
+
/** The stored choice of the user (`TableFilterConfiguration.mode`). */
|
|
1770
|
+
storedMode?: FilterMode;
|
|
1771
|
+
/** `filter.modeSelectable !== false`: the kinds are offered. */
|
|
1772
|
+
modeSelectable: boolean;
|
|
1773
|
+
/** Stored `TableFilterConfiguration.inlineExternal`. */
|
|
1774
|
+
inlineExternal: Record<string, boolean>;
|
|
1775
|
+
/** External filters in option order; `offBar`: the query bar cannot show it. */
|
|
1776
|
+
externalFilters: {
|
|
1777
|
+
field: string;
|
|
1778
|
+
title: string;
|
|
1779
|
+
required: boolean;
|
|
1780
|
+
offBar: boolean;
|
|
1781
|
+
}[];
|
|
1782
|
+
/** `filter.queryBar.pinned`: the app picks the pinned chips, so the list cannot change them on the bar. */
|
|
1783
|
+
pinned?: string[];
|
|
1784
|
+
/**
|
|
1785
|
+
* Titles of the required external filters the bar cannot show. The bar would block the read with no place to fill
|
|
1786
|
+
* them, so the bar card is off while there is any.
|
|
1787
|
+
*/
|
|
1788
|
+
barBlockedBy: string[];
|
|
1789
|
+
}
|
|
1545
1790
|
declare class ConfigComponent {
|
|
1546
1791
|
#private;
|
|
1547
1792
|
autoIdInput: _angular_core.InputSignal<string | null | undefined>;
|
|
1548
1793
|
tableOption: _angular_core.InputSignal<SdTableOption | undefined>;
|
|
1549
1794
|
changes: _angular_core.OutputEmitterRef<ConfiguredTableResult>;
|
|
1795
|
+
/** Restore defaults was confirmed and the stored setup removed. */
|
|
1796
|
+
defaultsRestored: _angular_core.OutputEmitterRef<void>;
|
|
1797
|
+
/** The "Bộ lọc" tab; `undefined` hides it. */
|
|
1798
|
+
filterSetup: _angular_core.InputSignal<ConfigFilterSetup | undefined>;
|
|
1799
|
+
/** Apply with a changed "Bộ lọc" tab: the filter setup to store. `mode` is left out when the kind cannot be picked. */
|
|
1800
|
+
filterApplied: _angular_core.OutputEmitterRef<Partial<TableFilterConfiguration>>;
|
|
1550
1801
|
autoId: _angular_core.Signal<string>;
|
|
1551
1802
|
modal: _angular_core.Signal<SdModal | undefined>;
|
|
1552
|
-
|
|
1803
|
+
protected readonly handles: _angular_core.Signal<readonly ElementRef<HTMLButtonElement>[]>;
|
|
1553
1804
|
configuration: _angular_core.WritableSignal<ConfiguredTable | undefined>;
|
|
1554
|
-
|
|
1555
|
-
|
|
1805
|
+
/** Text of the find box. */
|
|
1806
|
+
readonly query: _angular_core.WritableSignal<string>;
|
|
1807
|
+
/** Field of the open row; one row at a time. */
|
|
1808
|
+
readonly expanded: _angular_core.WritableSignal<string | null>;
|
|
1809
|
+
readonly hintId: string;
|
|
1810
|
+
/** Row lifted from the keyboard, and the order Escape goes back to. */
|
|
1811
|
+
readonly picked: _angular_core.WritableSignal<{
|
|
1812
|
+
field: string;
|
|
1813
|
+
order: ConfiguredColumn[];
|
|
1814
|
+
} | null>;
|
|
1815
|
+
/** Text of the live region: each keyboard reorder step. */
|
|
1816
|
+
readonly announcement: _angular_core.WritableSignal<string>;
|
|
1817
|
+
readonly searchable: _angular_core.Signal<boolean>;
|
|
1818
|
+
/** Reordering is off while a search narrows the list: the hidden rows would make the drop index ambiguous. */
|
|
1819
|
+
readonly searching: _angular_core.Signal<boolean>;
|
|
1820
|
+
/** Rows on screen: every column, or those whose current or original title matches the search. */
|
|
1821
|
+
readonly columns: _angular_core.Signal<ConfiguredColumn[]>;
|
|
1822
|
+
readonly totalCount: _angular_core.Signal<number>;
|
|
1823
|
+
readonly shownCount: _angular_core.Signal<number>;
|
|
1824
|
+
readonly allShown: _angular_core.Signal<boolean>;
|
|
1825
|
+
/** Tab on screen; Cột when the table gives no "Bộ lọc" tab. */
|
|
1826
|
+
readonly tab: _angular_core.Signal<ConfigTab>;
|
|
1827
|
+
readonly tabs: readonly ConfigTab[];
|
|
1828
|
+
readonly modes: readonly FilterMode[];
|
|
1829
|
+
/** Picked filter kind (draft until Apply). */
|
|
1830
|
+
readonly filterMode: _angular_core.WritableSignal<FilterMode>;
|
|
1831
|
+
/** Inline external filters (draft until Apply). */
|
|
1832
|
+
readonly inlineExternal: _angular_core.WritableSignal<Record<string, boolean>>;
|
|
1833
|
+
/**
|
|
1834
|
+
* 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
|
|
1835
|
+
* the bar cannot show is off, a required one is always pinned, and `queryBar.pinned` decides for the app.
|
|
1836
|
+
*/
|
|
1837
|
+
readonly filterRows: _angular_core.Signal<ConfigFilterRow[]>;
|
|
1838
|
+
/** Text under the filter list: what its switches do for the picked kind. */
|
|
1839
|
+
readonly filterListHint: _angular_core.Signal<"core.component.table.config.filters-hint-panel" | "core.component.table.config.filters-hint-pinned" | "core.component.table.config.filters-hint-bar">;
|
|
1840
|
+
/** Titles that keep the bar card off, joined for its note; '' when the bar can be picked. */
|
|
1841
|
+
readonly barBlockedBy: _angular_core.Signal<string>;
|
|
1842
|
+
/** On the bar, a filter it cannot show still filters by its value, with no chip to clear it. */
|
|
1843
|
+
readonly offBarWarning: _angular_core.Signal<boolean>;
|
|
1556
1844
|
open: () => Promise<void>;
|
|
1557
1845
|
close: () => void;
|
|
1558
1846
|
onSave: () => void;
|
|
1559
1847
|
onReset: () => Promise<void>;
|
|
1560
1848
|
/**
|
|
1561
|
-
* Cột đang tắt hiển thị thì tiêu đề / độ rộng / cố định /
|
|
1562
|
-
*
|
|
1849
|
+
* 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
|
|
1850
|
+
* ô "Hiện" để bật lại.
|
|
1563
1851
|
*/
|
|
1564
1852
|
isRowDisabled: (item: ConfiguredColumn) => boolean;
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1853
|
+
readonly tabId: (tab: ConfigTab) => string;
|
|
1854
|
+
readonly panelId: (tab: ConfigTab) => string;
|
|
1855
|
+
readonly modeName: string;
|
|
1856
|
+
selectTab: (tab: ConfigTab) => void;
|
|
1857
|
+
/** ← → move between the tabs, Home / End go to the first / last (tablist pattern of the APG, roving tabindex). */
|
|
1858
|
+
onTabKeydown: (event: KeyboardEvent) => void;
|
|
1859
|
+
pickMode: (mode: FilterMode) => void;
|
|
1860
|
+
setInline: (field: string, on: boolean) => void;
|
|
1861
|
+
onFind: (value: unknown) => void;
|
|
1862
|
+
toggleRow: (field: string) => void;
|
|
1863
|
+
/**
|
|
1864
|
+
* Pressing the handle of the open row closes it first, so its preview is the summary row. Another open row stays open:
|
|
1865
|
+
* closing it would move the pressed row away from the pointer before CDK measures.
|
|
1866
|
+
*/
|
|
1867
|
+
onHandlePointerDown: (field: string) => void;
|
|
1868
|
+
drop: (event: CdkDragDrop<ConfiguredColumn[]>) => void;
|
|
1869
|
+
showAll: () => void;
|
|
1870
|
+
setShown: (field: string, shown: boolean) => void;
|
|
1871
|
+
setFixed: (field: string, fixed: boolean) => void;
|
|
1872
|
+
setTruncate: (field: string, truncate: boolean) => void;
|
|
1873
|
+
/** Space / Enter picks up and drops, ↑ / ↓ move the picked row, Escape puts the order back. */
|
|
1874
|
+
onHandleKeydown: (event: KeyboardEvent, field: string) => void;
|
|
1875
|
+
/** Leaving the handle while a row is held drops it where it is. */
|
|
1876
|
+
onHandleBlur: (field: string) => void;
|
|
1877
|
+
titleOf: (item: ConfiguredColumn) => string;
|
|
1878
|
+
renamed: (item: ConfiguredColumn) => boolean;
|
|
1879
|
+
setTitle: (field: string, value: unknown) => void;
|
|
1880
|
+
restoreTitle: (field: string) => void;
|
|
1881
|
+
/** A width in another unit than px is edited as text, verbatim. */
|
|
1882
|
+
widthIsText: (item: ConfiguredColumn) => boolean;
|
|
1883
|
+
widthValue: (item: ConfiguredColumn) => string;
|
|
1884
|
+
/** Empty falls back to the original width, so that is the placeholder; "auto" when the option has none. */
|
|
1885
|
+
widthPlaceholder: (item: ConfiguredColumn) => string;
|
|
1886
|
+
widthSummary: (item: ConfiguredColumn) => string;
|
|
1887
|
+
onWidthFocus: (item: ConfiguredColumn) => void;
|
|
1888
|
+
setWidth: (field: string, value: unknown) => void;
|
|
1889
|
+
commitWidth: (field: string) => void;
|
|
1890
|
+
detailsId: (field: string) => string;
|
|
1568
1891
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ConfigComponent, never>;
|
|
1569
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ConfigComponent, "config", never, { "autoIdInput": { "alias": "autoId"; "required": false; "isSignal": true; }; "tableOption": { "alias": "tableOption"; "required": false; "isSignal": true; }; }, { "changes": "changes"; }, never, never, true, never>;
|
|
1892
|
+
static ɵcmp: _angular_core.ɵɵ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>;
|
|
1570
1893
|
}
|
|
1571
1894
|
|
|
1572
1895
|
declare class SdPopupExport {
|
|
@@ -1630,6 +1953,12 @@ interface ISdTableConfiguration {
|
|
|
1630
1953
|
manualFilter?: SdTableOptionFilter['manualFilter'];
|
|
1631
1954
|
/** Ẩ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 */
|
|
1632
1955
|
hideExternalFilterToolbar?: SdTableOptionFilter['hideExternalFilterToolbar'];
|
|
1956
|
+
/** Giao diện lọc mặc định cho mọi bảng; `option.filter.mode` thắng. Mặc định là `'default'`. */
|
|
1957
|
+
mode?: SdTableOptionFilter['mode'];
|
|
1958
|
+
/** Cho người dùng chọn giao diện lọc trong modal Thiết lập; `option.filter.modeSelectable` thắng. Mặc định là `true`. */
|
|
1959
|
+
modeSelectable?: SdTableOptionFilter['modeSelectable'];
|
|
1960
|
+
/** Tuỳ chọn mặc định của mode `'query-bar'`; gộp theo từng field với `option.filter.queryBar`. */
|
|
1961
|
+
queryBar?: SdTableOptionFilter['queryBar'];
|
|
1633
1962
|
operator?: {
|
|
1634
1963
|
list?: Partial<Record<SdTableColumn['type'], Operator[]>>;
|
|
1635
1964
|
default?: Partial<Record<SdTableColumn['type'], Operator>>;
|
|
@@ -1642,6 +1971,13 @@ interface ISdTableConfiguration {
|
|
|
1642
1971
|
};
|
|
1643
1972
|
/** Lớp hiển thị khi đang tải cho mọi bảng; `option.loading` của từng bảng thắng theo từng field. */
|
|
1644
1973
|
loading?: SdTableOptionLoading;
|
|
1974
|
+
mobile?: {
|
|
1975
|
+
/**
|
|
1976
|
+
* Phone cards for tables without a card body (`sdTableRowMobileDef` or `mobile.template`): the card is built from
|
|
1977
|
+
* the visible columns. `mobile.template: false` opts a table out. Mặc định là `false`.
|
|
1978
|
+
*/
|
|
1979
|
+
autoTemplate?: boolean;
|
|
1980
|
+
};
|
|
1645
1981
|
}
|
|
1646
1982
|
declare const SD_TABLE_CONFIGURATION: InjectionToken<ISdTableConfiguration>;
|
|
1647
1983
|
|
|
@@ -1717,7 +2053,18 @@ declare class SdTable<T = unknown> implements AfterViewInit, OnDestroy {
|
|
|
1717
2053
|
sdTitleDefs: _angular_core.Signal<readonly SdTableTitleDefDirective<any>[]>;
|
|
1718
2054
|
readonly sdRowMobileDef: _angular_core.Signal<SdTableRowMobileDefDirective<T> | undefined>;
|
|
1719
2055
|
readonly isMobile: _angular_core.Signal<boolean>;
|
|
2056
|
+
/**
|
|
2057
|
+
* Body of the phone cards, by priority: `sdTableRowMobileDef`, then `mobile.template` (a template or `{ data }`),
|
|
2058
|
+
* then `SD_TABLE_CONFIGURATION.mobile.autoTemplate`. `undefined`: phones show the desktop table.
|
|
2059
|
+
*/
|
|
2060
|
+
protected readonly mobileBody: _angular_core.Signal<SdTableMobileBody<T> | undefined>;
|
|
1720
2061
|
readonly mobileCards: _angular_core.Signal<boolean>;
|
|
2062
|
+
/**
|
|
2063
|
+
* The footer settings button carries a dot while the table uses a setup of its own: stored columns that differ from
|
|
2064
|
+
* the option (settings modal or a resize on the table), inline external filters that differ from `defaultShowing`, or
|
|
2065
|
+
* a stored filter mode that differs from `filter.mode`.
|
|
2066
|
+
*/
|
|
2067
|
+
readonly hasCustomSetup: _angular_core.Signal<boolean>;
|
|
1721
2068
|
cellDef: _angular_core.Signal<Record<string, SdTableCellDefDirective<any>>>;
|
|
1722
2069
|
footerDef: _angular_core.Signal<Record<string, SdMaterialFooterDefDirective<any>>>;
|
|
1723
2070
|
hasFooter: _angular_core.Signal<boolean>;
|
|
@@ -1783,11 +2130,24 @@ declare class SdTable<T = unknown> implements AfterViewInit, OnDestroy {
|
|
|
1783
2130
|
active: string;
|
|
1784
2131
|
direction: SortDirection;
|
|
1785
2132
|
}>;
|
|
2133
|
+
/**
|
|
2134
|
+
* Columns of the phone sort sheet: sortable leaf columns of the option in their order, `invisible` and
|
|
2135
|
+
* settings-hidden ones included, `hidden: true` ones left out (handoff table-mobile 6), with the settings title when
|
|
2136
|
+
* the column is on screen.
|
|
2137
|
+
*/
|
|
1786
2138
|
readonly mobileSortColumns: _angular_core.Signal<{
|
|
1787
2139
|
field: string;
|
|
1788
2140
|
title: string;
|
|
1789
2141
|
direction: SortDirection;
|
|
1790
2142
|
}[]>;
|
|
2143
|
+
/** The phone shows a sort chip / button: `sort.enable` and at least one sortable column. */
|
|
2144
|
+
protected readonly mobileSortAvailable: _angular_core.Signal<boolean>;
|
|
2145
|
+
/** Accessible name of the phone sort chip / button: "Sort", or the column and direction while sorted. */
|
|
2146
|
+
protected readonly mobileSortLabel: _angular_core.Signal<string>;
|
|
2147
|
+
/**
|
|
2148
|
+
* Tools sheet of the phone (⋮): export and settings. Filter, sort and reload live in the chip row, the sort sheet and
|
|
2149
|
+
* pull to refresh. The exports are laid out flat (two at most).
|
|
2150
|
+
*/
|
|
1791
2151
|
readonly mobileToolsActions: _angular_core.Signal<SdTableMobileAction[]>;
|
|
1792
2152
|
readonly pageRevision: _angular_core.WritableSignal<number>;
|
|
1793
2153
|
readonly dataRevision: _angular_core.WritableSignal<number>;
|
|
@@ -1817,6 +2177,49 @@ declare class SdTable<T = unknown> implements AfterViewInit, OnDestroy {
|
|
|
1817
2177
|
readonly quickSearchValue: _angular_core.WritableSignal<SdTableQuickSearchValue>;
|
|
1818
2178
|
private readonly quickSearchControl;
|
|
1819
2179
|
readonly quickSearchValid: _angular_core.Signal<boolean>;
|
|
2180
|
+
/**
|
|
2181
|
+
* Tab "Bộ lọc" của modal Thiết lập: kiểu lọc và external filter hiện ở khung / ghim trên thanh. Không có tab khi
|
|
2182
|
+
* `filter.disabled`, trên mobile (luôn dùng giao diện mặc định), khi bảng không có bộ lọc nào, hoặc khi không chọn
|
|
2183
|
+
* được kiểu lọc mà cũng không có external filter. `barBlockedBy`: external filter bắt buộc mà thanh không hiển thị
|
|
2184
|
+
* được — thanh sẽ chặn đọc dữ liệu mà người dùng không có chỗ nhập, nên modal không cho chọn thanh.
|
|
2185
|
+
*/
|
|
2186
|
+
protected readonly configFilter: _angular_core.Signal<ConfigFilterSetup | undefined>;
|
|
2187
|
+
/**
|
|
2188
|
+
* Giao diện lọc đã chọn: lựa chọn đã lưu của người dùng (trừ khi `filter.modeSelectable` là `false`), rồi
|
|
2189
|
+
* `filter.mode` sau khi gộp `SD_TABLE_CONFIGURATION.filter.mode`.
|
|
2190
|
+
*/
|
|
2191
|
+
readonly filterMode: _angular_core.Signal<"default" | "query-bar">;
|
|
2192
|
+
/** Giao diện lọc đang hiển thị: mobile luôn dùng giao diện mặc định; giá trị lọc không đổi khi đổi viewport. */
|
|
2193
|
+
readonly effectiveFilterMode: _angular_core.Signal<"default" | "query-bar">;
|
|
2194
|
+
/** Thanh query bar thay quick search, external filter và filter dưới cột. */
|
|
2195
|
+
readonly queryBarMode: _angular_core.Signal<boolean>;
|
|
2196
|
+
readonly queryBar: _angular_core.Signal<SdQueryBar | undefined>;
|
|
2197
|
+
/** Chip trên thanh (nháp của thanh) và ô tìm — gắn hai chiều với `sd-query-bar`. */
|
|
2198
|
+
readonly barFilters: _angular_core.WritableSignal<Filter[]>;
|
|
2199
|
+
readonly barSearch: _angular_core.WritableSignal<string>;
|
|
2200
|
+
readonly queryBarHintId: string;
|
|
2201
|
+
/** Field của thanh và bảng tra nguồn; `undefined` khi không ở mode query-bar. */
|
|
2202
|
+
readonly queryBarModel: _angular_core.Signal<SdTableQueryContext | undefined>;
|
|
2203
|
+
/**
|
|
2204
|
+
* Filters of the phone UI (chip row and filter sheets), in the fixed order external → `sdTableFilterDef` → columns.
|
|
2205
|
+
* `undefined` on desktop, with `filter.disabled`, or before the configuration is known.
|
|
2206
|
+
*/
|
|
2207
|
+
protected readonly mobileFilterModel: _angular_core.Signal<{
|
|
2208
|
+
ctx: SdTableQueryContext;
|
|
2209
|
+
items: SdTableMobileFilterItem[];
|
|
2210
|
+
} | undefined>;
|
|
2211
|
+
/** Applied filter value (last emission of the filter register); the phone chips summarise it. */
|
|
2212
|
+
protected readonly mobileFilterValue: _angular_core.Signal<TableFilterValue | undefined>;
|
|
2213
|
+
readonly queryBarOption: _angular_core.Signal<SdQueryBarOption<unknown> | undefined>;
|
|
2214
|
+
/** Khoá thanh của các field đang lọc theo giá trị đã áp dụng — icon lọc ở header của chúng luôn hiện. */
|
|
2215
|
+
readonly queryBarActiveKeys: _angular_core.Signal<Set<string>>;
|
|
2216
|
+
queryBarTriggerPopup: (key: string) => "menu" | "listbox" | "dialog" | null;
|
|
2217
|
+
/** `aria-label` của icon lọc ở header: "Lọc theo …" / "Đang lọc theo …". */
|
|
2218
|
+
filterTriggerLabel(column: SdTableColumn, active: boolean): string;
|
|
2219
|
+
/** Icon lọc ở header: mở chip của field trên thanh (tạo chip nếu chưa có); đóng popover thì focus về icon. */
|
|
2220
|
+
openQueryBarField(key: string, trigger: EventTarget | null): void;
|
|
2221
|
+
/** Dòng nhắc dưới thanh: field bắt buộc còn rỗng, kể cả quick filter bị ẩn (vẫn chặn đọc). */
|
|
2222
|
+
readonly queryBarHint: _angular_core.Signal<string>;
|
|
1820
2223
|
key: string;
|
|
1821
2224
|
columnOperator: Record<string, Operator>;
|
|
1822
2225
|
columnFilter?: NonNullable<TableFilterValue['columnFilter']>;
|
|
@@ -1826,7 +2229,11 @@ declare class SdTable<T = unknown> implements AfterViewInit, OnDestroy {
|
|
|
1826
2229
|
exporting: _angular_core.WritableSignal<boolean>;
|
|
1827
2230
|
exportTitle: _angular_core.Signal<string>;
|
|
1828
2231
|
tableConfiguration: ISdTableConfiguration | null;
|
|
1829
|
-
/**
|
|
2232
|
+
/**
|
|
2233
|
+
* Bảng chính của khung trang (sd-page-list): lấp phần chiều cao còn lại, giữ tối thiểu header + 5 dòng. Không áp
|
|
2234
|
+
* dụng khi điện thoại hiện thẻ: thẻ nằm theo trang và vùng cuộn của trang cuộn một lần, thay vì cuộn trong một hộp
|
|
2235
|
+
* thấp giữa header và paginator (và cuộn lồng với trang khi màn thấp).
|
|
2236
|
+
*/
|
|
1830
2237
|
readonly fill: _angular_core.Signal<boolean>;
|
|
1831
2238
|
/** External filter của bảng chính thu gọn khi khung trang đang ở chế độ màn thấp. */
|
|
1832
2239
|
readonly externalFilterCollapsedByDefault: _angular_core.Signal<boolean>;
|
|
@@ -1850,6 +2257,11 @@ declare class SdTable<T = unknown> implements AfterViewInit, OnDestroy {
|
|
|
1850
2257
|
onTreeToggle: (row: SdTableItem<T>) => Promise<void>;
|
|
1851
2258
|
onFilterChange: () => void;
|
|
1852
2259
|
onQuickSearchChange: (value: SdTableQuickSearchValue) => void;
|
|
2260
|
+
/**
|
|
2261
|
+
* Query bar `(apply)`: ghi cả thanh vào filter register trong một lần `value.set`, rồi gọi callback của các filter
|
|
2262
|
+
* vừa đổi như control mặc định. Reload, cache, `filtered` đi đường cũ.
|
|
2263
|
+
*/
|
|
2264
|
+
onQueryBarApply: (query: SdQuery) => void;
|
|
1853
2265
|
onFilterCommit: () => void;
|
|
1854
2266
|
onExpand: (row: SdTableItem<T>) => Promise<void>;
|
|
1855
2267
|
onSelect: (rowData: SdTableItem<T>) => void;
|
|
@@ -1907,6 +2319,13 @@ declare class SdTable<T = unknown> implements AfterViewInit, OnDestroy {
|
|
|
1907
2319
|
get dataItems(): T[];
|
|
1908
2320
|
get selectedItems(): T[];
|
|
1909
2321
|
detectChanges: () => void;
|
|
2322
|
+
/**
|
|
2323
|
+
* Restore defaults in the settings modal also puts the inline external filters back to `defaultShowing` and clears the
|
|
2324
|
+
* stored filter mode.
|
|
2325
|
+
*/
|
|
2326
|
+
onConfigDefaultsRestored: () => void;
|
|
2327
|
+
/** Apply in the settings modal with a changed "Bộ lọc" tab: store the filter kind and the inline external filters. */
|
|
2328
|
+
onConfigFilterApplied: (configuration: Partial<TableFilterConfiguration>) => void;
|
|
1910
2329
|
onColumnResize: (field: string, width: string) => void;
|
|
1911
2330
|
getSortAria: (field: string) => "none" | "ascending" | "descending";
|
|
1912
2331
|
onOperatorChange: (column: SdTableColumn, operator: Operator | undefined) => void;
|
|
@@ -1920,4 +2339,4 @@ declare class SdTable<T = unknown> implements AfterViewInit, OnDestroy {
|
|
|
1920
2339
|
}
|
|
1921
2340
|
|
|
1922
2341
|
export { SD_TABLE_CONFIGURATION, SD_TABLE_LAYOUT, SdConvertToPagingReq, SdMaterialFooterDefDirective, SdTable, SdTableCellDefDirective, SdTableCommandHeaderDefDirective, SdTableExpandDefDirective, SdTableFilterDefDirective, SdTableGroupDefDirective, SdTablePaginatorIntl, SdTableQuickSearchRightDefDirective, SdTableRowMobileDefDirective, SdTableTitleDefDirective };
|
|
1923
|
-
export type { ISdTableConfiguration, SdTableAggregateCallback, SdTableAggregateContext, SdTableAggregateDefinition, SdTableAggregateGroup, SdTableAggregateOperation, SdTableAggregateResult, SdTableAggregateTemplateContext, SdTableColumn, SdTableColumnAggregate, SdTableColumnAnyRow, SdTableColumnChildren, SdTableColumnLazyValues, SdTableColumnNormal, SdTableColumnTransformFunc, SdTableColumnValues, SdTableCommand, SdTableCommandChildren, SdTableCommandNormal, SdTableCommandOption, SdTableDisplay, SdTableExternalFilter, SdTableFilterRequest, SdTableGroupDefContext, SdTableItem, SdTableLayout, SdTableMeta, SdTableOption, SdTableOptionAggregate, SdTableOptionFilter, SdTableOptionLoading, SdTableOptionQuickSearch, SdTableOptionTree, SdTableQuickFilter, SdTableQuickSearchFilter, SdTableQuickSearchFilterValue, SdTableQuickSearchValue, SdTableRowMobileDefContext, SdTableServerHasMoreResult, SdTableServerTotalResult, TableFilterConfiguration, TableFilterRegister, TableFilterValue, TableOptionTreeLazy, TableOptionTreeStatic };
|
|
2342
|
+
export type { ISdTableConfiguration, SdTableAggregateCallback, SdTableAggregateContext, SdTableAggregateDefinition, SdTableAggregateGroup, SdTableAggregateOperation, SdTableAggregateResult, SdTableAggregateTemplateContext, SdTableColumn, SdTableColumnAggregate, SdTableColumnAnyRow, SdTableColumnChildren, SdTableColumnLazyValues, SdTableColumnNormal, SdTableColumnTransformFunc, SdTableColumnValues, SdTableCommand, SdTableCommandChildren, SdTableCommandNormal, SdTableCommandOption, SdTableDisplay, SdTableExternalFilter, SdTableFilterRequest, SdTableGroupDefContext, SdTableItem, SdTableLayout, SdTableMeta, SdTableMobileCardData, SdTableMobileData, SdTableMobileDataContext, SdTableMobileDataFn, SdTableMobileField, SdTableMobileTemplate, SdTableMobileText, SdTableOption, SdTableOptionAggregate, SdTableOptionFilter, SdTableOptionFilterQueryBar, SdTableOptionLoading, SdTableOptionQuickSearch, SdTableOptionTree, SdTableQuickFilter, SdTableQuickSearchFilter, SdTableQuickSearchFilterValue, SdTableQuickSearchValue, SdTableRowMobileDefContext, SdTableServerHasMoreResult, SdTableServerTotalResult, TableFilterConfiguration, TableFilterRegister, TableFilterValue, TableOptionTreeLazy, TableOptionTreeStatic };
|