@sdcorejs/angular 20.3.4 → 20.3.6
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/assets/STYLE-GUIDE.md +78 -1
- package/assets/THEME.md +45 -3
- package/assets/scss/core/_popover-panel.scss +90 -0
- package/assets/scss/core/form.scss +5 -2
- package/assets/scss/core/utilities/_grid.scss +15 -0
- package/assets/scss/core/utilities/_sizing.scss +4 -0
- package/assets/scss/themes/_component-tokens.scss +9 -4
- package/assets/scss/themes/_semantic.scss +6 -5
- package/components/anchor/index.d.ts +6 -1
- package/components/button/index.d.ts +7 -1
- package/components/calendar/index.d.ts +1092 -0
- package/components/card/index.d.ts +247 -9
- package/components/index.d.ts +3 -1
- package/components/kanban/index.d.ts +191 -74
- package/components/modal/index.d.ts +15 -1
- package/components/query-bar/index.d.ts +204 -38
- package/components/quick-action/index.d.ts +65 -1
- package/components/scheduler/index.d.ts +544 -0
- package/components/tab/index.d.ts +6 -1
- package/components/table/index.d.ts +338 -31
- package/components/timeline/index.d.ts +216 -0
- package/components/tree/index.d.ts +119 -6
- package/directives/index.d.ts +4 -2
- package/fesm2022/sdcorejs-angular-components-anchor.mjs +62 -3
- package/fesm2022/sdcorejs-angular-components-anchor.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-button.mjs +14 -6
- package/fesm2022/sdcorejs-angular-components-button.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-calendar.mjs +2481 -0
- package/fesm2022/sdcorejs-angular-components-calendar.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-components-card.mjs +486 -23
- package/fesm2022/sdcorejs-angular-components-card.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-editor-engine.mjs +1 -1
- package/fesm2022/sdcorejs-angular-components-editor-engine.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-file-explorer.mjs +4 -18
- package/fesm2022/sdcorejs-angular-components-file-explorer.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-form-generic.mjs +7 -7
- 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-kanban.mjs +833 -154
- package/fesm2022/sdcorejs-angular-components-kanban.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-modal.mjs +69 -14
- package/fesm2022/sdcorejs-angular-components-modal.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-query-bar.mjs +1477 -365
- package/fesm2022/sdcorejs-angular-components-query-bar.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-quick-action.mjs +68 -2
- package/fesm2022/sdcorejs-angular-components-quick-action.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-scheduler.mjs +1934 -0
- package/fesm2022/sdcorejs-angular-components-scheduler.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-components-side-drawer.mjs +2 -2
- package/fesm2022/sdcorejs-angular-components-side-drawer.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-tab-router.mjs +126 -26
- package/fesm2022/sdcorejs-angular-components-tab-router.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-tab.mjs +31 -2
- package/fesm2022/sdcorejs-angular-components-tab.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-table.mjs +5967 -3690
- package/fesm2022/sdcorejs-angular-components-table.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-timeline.mjs +473 -0
- package/fesm2022/sdcorejs-angular-components-timeline.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-components-tree.mjs +597 -36
- package/fesm2022/sdcorejs-angular-components-tree.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-upload-file.mjs +2 -4
- package/fesm2022/sdcorejs-angular-components-upload-file.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components.mjs +3 -1
- package/fesm2022/sdcorejs-angular-components.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-directives.mjs +109 -22
- package/fesm2022/sdcorejs-angular-directives.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-date.mjs +140 -42
- package/fesm2022/sdcorejs-angular-forms-date.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-datetime.mjs +70 -21
- package/fesm2022/sdcorejs-angular-forms-datetime.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-directives.mjs +4 -3
- package/fesm2022/sdcorejs-angular-forms-directives.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 +812 -52
- package/fesm2022/sdcorejs-angular-i18n.mjs.map +1 -1
- package/fesm2022/{sdcorejs-angular-modules-generic-generic-configuration.page-D_1BxDC9.mjs → sdcorejs-angular-modules-generic-generic-configuration.page-w7iVesRB.mjs} +3 -3
- package/fesm2022/{sdcorejs-angular-modules-generic-generic-configuration.page-D_1BxDC9.mjs.map → sdcorejs-angular-modules-generic-generic-configuration.page-w7iVesRB.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-generic-generic-form-host.page-CgH8Qi25.mjs → sdcorejs-angular-modules-generic-generic-form-host.page-DwGr3EVD.mjs} +2 -2
- package/fesm2022/{sdcorejs-angular-modules-generic-generic-form-host.page-CgH8Qi25.mjs.map → sdcorejs-angular-modules-generic-generic-form-host.page-DwGr3EVD.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-generic-generic-list.page-CyCGqW9W.mjs → sdcorejs-angular-modules-generic-generic-list.page-QqBNS185.mjs} +3 -3
- package/fesm2022/{sdcorejs-angular-modules-generic-generic-list.page-CyCGqW9W.mjs.map → sdcorejs-angular-modules-generic-generic-list.page-QqBNS185.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-generic-sdcorejs-angular-modules-generic-DTmU8Te4.mjs → sdcorejs-angular-modules-generic-sdcorejs-angular-modules-generic-_WrprZ_o.mjs} +4 -4
- package/fesm2022/{sdcorejs-angular-modules-generic-sdcorejs-angular-modules-generic-DTmU8Te4.mjs.map → sdcorejs-angular-modules-generic-sdcorejs-angular-modules-generic-_WrprZ_o.mjs.map} +1 -1
- package/fesm2022/sdcorejs-angular-modules-generic.mjs +1 -1
- package/fesm2022/sdcorejs-angular-modules-layout.mjs +17 -8
- package/fesm2022/sdcorejs-angular-modules-layout.mjs.map +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-base-api.service-okZVmcd5.mjs → sdcorejs-angular-modules-pattern-base-api.service-B2HMyv8F.mjs} +2 -2
- package/fesm2022/{sdcorejs-angular-modules-pattern-base-api.service-okZVmcd5.mjs.map → sdcorejs-angular-modules-pattern-base-api.service-B2HMyv8F.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-create.component-LPUj7MqG.mjs → sdcorejs-angular-modules-pattern-create.component-CNtkbnRK.mjs} +2 -2
- package/fesm2022/{sdcorejs-angular-modules-pattern-create.component-LPUj7MqG.mjs.map → sdcorejs-angular-modules-pattern-create.component-CNtkbnRK.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-create.component-2-dyjvCH.mjs → sdcorejs-angular-modules-pattern-create.component-DlNyY3e7.mjs} +2 -2
- package/fesm2022/{sdcorejs-angular-modules-pattern-create.component-2-dyjvCH.mjs.map → sdcorejs-angular-modules-pattern-create.component-DlNyY3e7.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-create.component-BCoG3bVV.mjs → sdcorejs-angular-modules-pattern-create.component-DxV_0Ckg.mjs} +11 -7
- package/fesm2022/sdcorejs-angular-modules-pattern-create.component-DxV_0Ckg.mjs.map +1 -0
- package/fesm2022/{sdcorejs-angular-modules-pattern-customer.service-Caua6Xto.mjs → sdcorejs-angular-modules-pattern-customer.service-DS0cFc3u.mjs} +2 -2
- package/fesm2022/{sdcorejs-angular-modules-pattern-customer.service-Caua6Xto.mjs.map → sdcorejs-angular-modules-pattern-customer.service-DS0cFc3u.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-detail.component-_c_4slgf.mjs → sdcorejs-angular-modules-pattern-detail.component-B_1ppVNA.mjs} +2 -2
- package/fesm2022/{sdcorejs-angular-modules-pattern-detail.component-_c_4slgf.mjs.map → sdcorejs-angular-modules-pattern-detail.component-B_1ppVNA.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-detail.component-B2Y0PbbC.mjs → sdcorejs-angular-modules-pattern-detail.component-CFvwPHFx.mjs} +58 -55
- package/fesm2022/sdcorejs-angular-modules-pattern-detail.component-CFvwPHFx.mjs.map +1 -0
- package/fesm2022/{sdcorejs-angular-modules-pattern-flow.component-C_HziBQN.mjs → sdcorejs-angular-modules-pattern-flow.component-Ba4xO_tF.mjs} +3 -3
- package/fesm2022/{sdcorejs-angular-modules-pattern-flow.component-C_HziBQN.mjs.map → sdcorejs-angular-modules-pattern-flow.component-Ba4xO_tF.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-index.component-B2dNqckm.mjs → sdcorejs-angular-modules-pattern-index.component-DvwY0K3t.mjs} +2 -2
- package/fesm2022/{sdcorejs-angular-modules-pattern-index.component-B2dNqckm.mjs.map → sdcorejs-angular-modules-pattern-index.component-DvwY0K3t.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-lines-table-form.component-Dq8Q8Vfm.mjs → sdcorejs-angular-modules-pattern-lines-table-form.component-BSAQaAgH.mjs} +5 -5
- package/fesm2022/{sdcorejs-angular-modules-pattern-lines-table-form.component-Dq8Q8Vfm.mjs.map → sdcorejs-angular-modules-pattern-lines-table-form.component-BSAQaAgH.mjs.map} +1 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-BIv2k6NI.mjs +506 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-BIv2k6NI.mjs.map +1 -0
- package/fesm2022/{sdcorejs-angular-modules-pattern-list.component-CeX57FPi.mjs → sdcorejs-angular-modules-pattern-list.component-BYyL5Q5n.mjs} +30 -39
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-BYyL5Q5n.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-CZRTnqNx.mjs +501 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-CZRTnqNx.mjs.map +1 -0
- package/fesm2022/{sdcorejs-angular-modules-pattern-list.component-DS8A17mM.mjs → sdcorejs-angular-modules-pattern-list.component-DF7CvaVG.mjs} +3 -3
- package/fesm2022/{sdcorejs-angular-modules-pattern-list.component-DS8A17mM.mjs.map → sdcorejs-angular-modules-pattern-list.component-DF7CvaVG.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-list.component-Bs9hhMr7.mjs → sdcorejs-angular-modules-pattern-list.component-nMyLso8Z.mjs} +3 -3
- package/fesm2022/{sdcorejs-angular-modules-pattern-list.component-Bs9hhMr7.mjs.map → sdcorejs-angular-modules-pattern-list.component-nMyLso8Z.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-mock-backend.factory-Dfil91qL.mjs → sdcorejs-angular-modules-pattern-mock-backend.factory-CS7VK5Ol.mjs} +2 -2
- package/fesm2022/{sdcorejs-angular-modules-pattern-mock-backend.factory-Dfil91qL.mjs.map → sdcorejs-angular-modules-pattern-mock-backend.factory-CS7VK5Ol.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-pattern-source-viewer-BqHwKfoc.mjs → sdcorejs-angular-modules-pattern-pattern-source-viewer-DuhyXsGn.mjs} +4 -22
- package/fesm2022/sdcorejs-angular-modules-pattern-pattern-source-viewer-DuhyXsGn.mjs.map +1 -0
- package/fesm2022/{sdcorejs-angular-modules-pattern-pattern-source.generated-CIiLOizq.mjs → sdcorejs-angular-modules-pattern-pattern-source.generated-bfpj85ke.mjs} +26 -27
- package/fesm2022/sdcorejs-angular-modules-pattern-pattern-source.generated-bfpj85ke.mjs.map +1 -0
- package/fesm2022/{sdcorejs-angular-modules-pattern-product.service-PaIGZ1ve.mjs → sdcorejs-angular-modules-pattern-product.service-KKWwzMEG.mjs} +2 -2
- package/fesm2022/{sdcorejs-angular-modules-pattern-product.service-PaIGZ1ve.mjs.map → sdcorejs-angular-modules-pattern-product.service-KKWwzMEG.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-profile.component-B8j8cieu.mjs → sdcorejs-angular-modules-pattern-profile.component-XDuLwzEl.mjs} +25 -15
- package/fesm2022/sdcorejs-angular-modules-pattern-profile.component-XDuLwzEl.mjs.map +1 -0
- package/fesm2022/{sdcorejs-angular-modules-pattern-routes-0Vh73aXL.mjs → sdcorejs-angular-modules-pattern-routes--ScZNg7A.mjs} +3 -3
- package/fesm2022/{sdcorejs-angular-modules-pattern-routes-0Vh73aXL.mjs.map → sdcorejs-angular-modules-pattern-routes--ScZNg7A.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-routes-Cw9uJySU.mjs → sdcorejs-angular-modules-pattern-routes-Bka6PaRB.mjs} +3 -3
- package/fesm2022/{sdcorejs-angular-modules-pattern-routes-Cw9uJySU.mjs.map → sdcorejs-angular-modules-pattern-routes-Bka6PaRB.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-routes-nrxSHE-O.mjs → sdcorejs-angular-modules-pattern-routes-CCwFQAdd.mjs} +4 -4
- package/fesm2022/{sdcorejs-angular-modules-pattern-routes-nrxSHE-O.mjs.map → sdcorejs-angular-modules-pattern-routes-CCwFQAdd.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-routes-CFT9DyKj.mjs → sdcorejs-angular-modules-pattern-routes-CKryLRCh.mjs} +8 -8
- package/fesm2022/{sdcorejs-angular-modules-pattern-routes-CFT9DyKj.mjs.map → sdcorejs-angular-modules-pattern-routes-CKryLRCh.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-routes-CFLETqYK.mjs → sdcorejs-angular-modules-pattern-routes-Dr72yGSt.mjs} +5 -5
- package/fesm2022/{sdcorejs-angular-modules-pattern-routes-CFLETqYK.mjs.map → sdcorejs-angular-modules-pattern-routes-Dr72yGSt.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-routes-BoB2usST.mjs → sdcorejs-angular-modules-pattern-routes-P9WvwSEW.mjs} +3 -3
- package/fesm2022/{sdcorejs-angular-modules-pattern-routes-BoB2usST.mjs.map → sdcorejs-angular-modules-pattern-routes-P9WvwSEW.mjs.map} +1 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-_EDJ1-63.mjs +65 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-_EDJ1-63.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-n4kpjO0y.mjs +56 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-n4kpjO0y.mjs.map +1 -0
- package/fesm2022/{sdcorejs-angular-modules-pattern-sdcorejs-angular-modules-pattern-CJ6hUHjk.mjs → sdcorejs-angular-modules-pattern-sdcorejs-angular-modules-pattern-DHhmKKVI.mjs} +12 -12
- package/fesm2022/{sdcorejs-angular-modules-pattern-sdcorejs-angular-modules-pattern-CJ6hUHjk.mjs.map → sdcorejs-angular-modules-pattern-sdcorejs-angular-modules-pattern-DHhmKKVI.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-shell.component-C_AFK_9X.mjs → sdcorejs-angular-modules-pattern-shell.component-DxNC-ixx.mjs} +4 -4
- package/fesm2022/{sdcorejs-angular-modules-pattern-shell.component-C_AFK_9X.mjs.map → sdcorejs-angular-modules-pattern-shell.component-DxNC-ixx.mjs.map} +1 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-update-side-drawer.component-TWYHj6in.mjs +480 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-update-side-drawer.component-TWYHj6in.mjs.map +1 -0
- package/fesm2022/{sdcorejs-angular-modules-pattern-update.component-B7H9pp-R.mjs → sdcorejs-angular-modules-pattern-update.component-BcBxBqWB.mjs} +2 -2
- package/fesm2022/{sdcorejs-angular-modules-pattern-update.component-B7H9pp-R.mjs.map → sdcorejs-angular-modules-pattern-update.component-BcBxBqWB.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-update.component-Dhfba-qx.mjs → sdcorejs-angular-modules-pattern-update.component-BntTyV55.mjs} +9 -6
- package/fesm2022/sdcorejs-angular-modules-pattern-update.component-BntTyV55.mjs.map +1 -0
- package/fesm2022/{sdcorejs-angular-modules-pattern-update.component-hRTu79uE.mjs → sdcorejs-angular-modules-pattern-update.component-CJjZWZuz.mjs} +2 -2
- package/fesm2022/{sdcorejs-angular-modules-pattern-update.component-hRTu79uE.mjs.map → sdcorejs-angular-modules-pattern-update.component-CJjZWZuz.mjs.map} +1 -1
- package/fesm2022/sdcorejs-angular-modules-pattern.mjs +1 -1
- package/fesm2022/sdcorejs-angular-services-confirm.mjs +171 -158
- package/fesm2022/sdcorejs-angular-services-confirm.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-query-params.mjs +226 -0
- package/fesm2022/sdcorejs-angular-services-query-params.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-utilities-extensions.mjs +24 -1
- package/fesm2022/sdcorejs-angular-utilities-extensions.mjs.map +1 -1
- package/forms/date/index.d.ts +2 -0
- package/forms/directives/index.d.ts +1 -1
- package/i18n/index.d.ts +159 -9
- package/modules/layout/index.d.ts +2 -1
- package/modules/pattern/README.md +5 -4
- package/modules/pattern/docs/detail.md +18 -9
- package/modules/pattern/docs/drawer.md +185 -83
- package/modules/pattern/docs/header-actions.md +1 -1
- package/modules/pattern/docs/list.md +3 -3
- package/modules/pattern/docs/states.md +1 -1
- package/modules/pattern/features/category/components/create-side-drawer/create-side-drawer.component.ts +12 -16
- package/modules/pattern/features/category/components/update-side-drawer/update-side-drawer.component.ts +58 -29
- package/modules/pattern/features/category/pages/list/list.component.html +11 -3
- package/modules/pattern/features/category/pages/list/list.component.ts +36 -10
- package/modules/pattern/features/category/routes.ts +5 -22
- package/modules/pattern/features/customer/components/create-side-drawer/create-side-drawer.component.ts +7 -11
- package/modules/pattern/features/customer/components/detail-side-drawer/detail-side-drawer.component.ts +70 -27
- package/modules/pattern/features/customer/components/summary-cards/summary-cards.component.ts +9 -53
- package/modules/pattern/features/customer/components/update-side-drawer/update-side-drawer.component.ts +53 -19
- package/modules/pattern/features/customer/entity.resolver.ts +1 -1
- package/modules/pattern/features/customer/pages/list/list.component.html +18 -3
- package/modules/pattern/features/customer/pages/list/list.component.ts +43 -16
- package/modules/pattern/features/customer/pages/profile/profile.component.ts +17 -8
- package/modules/pattern/features/customer/routes.ts +6 -27
- package/modules/pattern/features/order/components/approval-steps/approval-steps.component.ts +37 -56
- package/modules/pattern/features/order/components/summary-cards/summary-cards.component.ts +14 -76
- package/modules/pattern/features/order/pages/create/create.component.ts +7 -3
- package/modules/pattern/features/order/pages/detail/detail.component.ts +1 -1
- package/modules/pattern/features/order/pages/update/update.component.ts +5 -2
- package/package.json +17 -5
- package/services/confirm/index.d.ts +22 -81
- package/services/excel/index.d.ts +59 -0
- package/services/query-params/index.d.ts +67 -0
- package/utilities/extensions/index.d.ts +10 -1
- package/components/history/index.d.ts +0 -23
- package/fesm2022/sdcorejs-angular-components-history.mjs +0 -54
- package/fesm2022/sdcorejs-angular-components-history.mjs.map +0 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-create-side-drawer.component-CB4F9cBe.mjs +0 -144
- package/fesm2022/sdcorejs-angular-modules-pattern-create-side-drawer.component-CB4F9cBe.mjs.map +0 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-create-side-drawer.component-CowdEzyv.mjs +0 -145
- package/fesm2022/sdcorejs-angular-modules-pattern-create-side-drawer.component-CowdEzyv.mjs.map +0 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-create.component-BCoG3bVV.mjs.map +0 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-customer.model-C3fr4yNw.mjs +0 -18
- package/fesm2022/sdcorejs-angular-modules-pattern-customer.model-C3fr4yNw.mjs.map +0 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-detail-side-drawer.component-Bu6E63bN.mjs +0 -148
- package/fesm2022/sdcorejs-angular-modules-pattern-detail-side-drawer.component-Bu6E63bN.mjs.map +0 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-detail.component-B2Y0PbbC.mjs.map +0 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-general-information-form.component-BRsdOwWy.mjs +0 -87
- package/fesm2022/sdcorejs-angular-modules-pattern-general-information-form.component-BRsdOwWy.mjs.map +0 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-general-information-form.component-DalxHa8D.mjs +0 -232
- package/fesm2022/sdcorejs-angular-modules-pattern-general-information-form.component-DalxHa8D.mjs.map +0 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-general-information-view.component-kdEZ9s7K.mjs +0 -70
- package/fesm2022/sdcorejs-angular-modules-pattern-general-information-view.component-kdEZ9s7K.mjs.map +0 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-B3-th1z4.mjs +0 -164
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-B3-th1z4.mjs.map +0 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-CRttQEXa.mjs +0 -118
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-CRttQEXa.mjs.map +0 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-CeX57FPi.mjs.map +0 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-pattern-source-viewer-BqHwKfoc.mjs.map +0 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-pattern-source.generated-CIiLOizq.mjs.map +0 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-profile.component-B8j8cieu.mjs.map +0 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-CZusLcS3.mjs +0 -74
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-CZusLcS3.mjs.map +0 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-Cq4BqjE9.mjs +0 -99
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-Cq4BqjE9.mjs.map +0 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-update-side-drawer.component-C74EEboR.mjs +0 -143
- package/fesm2022/sdcorejs-angular-modules-pattern-update-side-drawer.component-C74EEboR.mjs.map +0 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-update-side-drawer.component-Dj9lvkCP.mjs +0 -132
- package/fesm2022/sdcorejs-angular-modules-pattern-update-side-drawer.component-Dj9lvkCP.mjs.map +0 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-update.component-Dhfba-qx.mjs.map +0 -1
- package/modules/pattern/features/category/entity.resolver.ts +0 -27
|
@@ -13,14 +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 { SdQueryField, SdQueryBar, SdQueryBarOption, SdQuery } from '@sdcorejs/angular/components/query-bar';
|
|
16
|
+
import { SdQueryField, ɵSdQueryChipLabels as _SdQueryChipLabels, SdQueryBar, SdQueryBarOption, SdQuery } from '@sdcorejs/angular/components/query-bar';
|
|
17
17
|
import { CdkDragDrop, CdkDrag, CdkDropList } from '@angular/cdk/drag-drop';
|
|
18
18
|
import { SdDataStateTemplateDirective } from '@sdcorejs/angular/components/data-state';
|
|
19
19
|
import { SdReadState } from '@sdcorejs/angular/utilities/read-state';
|
|
20
20
|
import { SdQuickAction } from '@sdcorejs/angular/components/quick-action';
|
|
21
21
|
import { SdScrollDirective } from '@sdcorejs/angular/directives';
|
|
22
22
|
import { FormGroup } from '@angular/forms';
|
|
23
|
-
import { SdSideDrawer } from '@sdcorejs/angular/components/side-drawer';
|
|
24
23
|
import { SdModal } from '@sdcorejs/angular/components/modal';
|
|
25
24
|
import { MatSelectionList } from '@angular/material/list';
|
|
26
25
|
|
|
@@ -362,6 +361,8 @@ interface SdTableQuickFilter {
|
|
|
362
361
|
}
|
|
363
362
|
interface TableFilterConfiguration {
|
|
364
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'];
|
|
365
366
|
}
|
|
366
367
|
interface TableFilterValue {
|
|
367
368
|
quickSearch?: SdTableQuickSearchValue;
|
|
@@ -420,14 +421,22 @@ interface SdTableOptionFilter<T = unknown> {
|
|
|
420
421
|
* @defaultValue 'default'
|
|
421
422
|
*/
|
|
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;
|
|
423
431
|
/** Chỉ dùng khi `mode` là `'query-bar'`. */
|
|
424
432
|
queryBar?: SdTableOptionFilterQueryBar;
|
|
425
433
|
}
|
|
426
434
|
/** Tuỳ chọn của `filter.mode: 'query-bar'`. */
|
|
427
435
|
interface SdTableOptionFilterQueryBar {
|
|
428
436
|
/**
|
|
429
|
-
* Cách sửa chip:
|
|
430
|
-
*
|
|
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'
|
|
431
440
|
*/
|
|
432
441
|
editor?: 'popover' | 'inline';
|
|
433
442
|
/**
|
|
@@ -437,6 +446,15 @@ interface SdTableOptionFilterQueryBar {
|
|
|
437
446
|
pinned?: string[];
|
|
438
447
|
/** Field không đưa vào thanh; giá trị đang có vẫn được gửi đi. */
|
|
439
448
|
exclude?: string[];
|
|
449
|
+
/**
|
|
450
|
+
* Bộ lọc đã lưu của thanh (nút bookmark): lưu trên trình duyệt (localStorage) dưới khoá
|
|
451
|
+
* `sd-query-bar:savedFilters:sd-table:<key>`. Chỉ có ở chế độ query bar trên desktop; lưu chip, logic và từ khoá —
|
|
452
|
+
* không lưu sắp xếp, cột hay số dòng. Áp bộ lọc đã lưu đọc dữ liệu một lần; field bảng không còn có thì bị bỏ.
|
|
453
|
+
* Chỉ đọc từ option của bảng, không từ `SD_TABLE_CONFIGURATION` (một key chung sẽ trộn bộ lọc của mọi bảng).
|
|
454
|
+
*/
|
|
455
|
+
savedFilters?: {
|
|
456
|
+
key: string;
|
|
457
|
+
};
|
|
440
458
|
}
|
|
441
459
|
declare const SdConvertToPagingReq: (filterRequest: SdTableFilterRequest, args: {
|
|
442
460
|
columns?: SdTableColumnAnyRow[];
|
|
@@ -1112,6 +1130,58 @@ interface TableOptionTreeLazy<T = any> {
|
|
|
1112
1130
|
indentSize?: number;
|
|
1113
1131
|
}
|
|
1114
1132
|
|
|
1133
|
+
/** A leaf column of the table, by its `field`. Checked at build time (`NestedKeyOf<T>`) and at run time (leaf column). */
|
|
1134
|
+
type SdTableMobileField<T> = NestedKeyOf<T>;
|
|
1135
|
+
/** A column value, or fixed text shown as is. */
|
|
1136
|
+
type SdTableMobileText<T> = SdTableMobileField<T> | {
|
|
1137
|
+
text: string;
|
|
1138
|
+
};
|
|
1139
|
+
/** Slots every mobile layout has. */
|
|
1140
|
+
interface SdTableMobileData<T> {
|
|
1141
|
+
/** First line, 15px medium. A missing or unknown field falls back to `mobile.rowLabel`, then `rowKey`. */
|
|
1142
|
+
title: SdTableMobileText<T>;
|
|
1143
|
+
/** Second line, one line cut with "…". */
|
|
1144
|
+
subtitle?: SdTableMobileText<T>;
|
|
1145
|
+
/** After the title. A field must be a column with `useBadge` (checked at run time), otherwise it shows as text. */
|
|
1146
|
+
badge?: SdTableMobileField<T> | SdBadgeData;
|
|
1147
|
+
/** Grid cells with the column title as label, in this order. */
|
|
1148
|
+
fields?: SdTableMobileField<T>[];
|
|
1149
|
+
}
|
|
1150
|
+
/** Data of a `card` (the only layout so far). */
|
|
1151
|
+
interface SdTableMobileCardData<T> extends SdTableMobileData<T> {
|
|
1152
|
+
/** First grid cell, medium weight. */
|
|
1153
|
+
highlight?: SdTableMobileField<T>;
|
|
1154
|
+
/**
|
|
1155
|
+
* Grid cells shown before the "{n} more fields" button, `highlight` included.
|
|
1156
|
+
* @defaultValue 4
|
|
1157
|
+
*/
|
|
1158
|
+
maxFields?: number;
|
|
1159
|
+
/**
|
|
1160
|
+
* Not a card slot. why: TypeScript does not report excess properties of an object returned by an arrow function,
|
|
1161
|
+
* so `never` is what rejects `trailing` (a slot of the future `list` layout) on a card.
|
|
1162
|
+
*/
|
|
1163
|
+
trailing?: never;
|
|
1164
|
+
}
|
|
1165
|
+
/** Second argument of `mobile.template.data`. */
|
|
1166
|
+
interface SdTableMobileDataContext {
|
|
1167
|
+
/** Zero-based data-row position on the current page, as in `SdTableRowMobileDefContext`. */
|
|
1168
|
+
index: number;
|
|
1169
|
+
selected: boolean;
|
|
1170
|
+
}
|
|
1171
|
+
/**
|
|
1172
|
+
* Builds the slots of one row. Called again when the rows are read again or `detectChanges()` runs, and when the index
|
|
1173
|
+
* or the selection of the row changes.
|
|
1174
|
+
*/
|
|
1175
|
+
type SdTableMobileDataFn<T, D> = (item: T, context: SdTableMobileDataContext) => D;
|
|
1176
|
+
/**
|
|
1177
|
+
* Body of the phone card: a consumer template, or slots built from the row (`data`). `layout` is fixed per table;
|
|
1178
|
+
* leaving it out means `'card'`.
|
|
1179
|
+
*/
|
|
1180
|
+
type SdTableMobileTemplate<T> = TemplateRef<SdTableRowMobileDefContext<T>> | {
|
|
1181
|
+
layout?: 'card';
|
|
1182
|
+
data: SdTableMobileDataFn<T, SdTableMobileCardData<T>>;
|
|
1183
|
+
};
|
|
1184
|
+
|
|
1115
1185
|
type SdTableOption<T = any> = SdTableLocalOption<T> | SdTableServerOption<T>;
|
|
1116
1186
|
interface SdTableBaseOption<T = any> {
|
|
1117
1187
|
/**
|
|
@@ -1129,6 +1199,12 @@ interface SdTableBaseOption<T = any> {
|
|
|
1129
1199
|
* ví dụ các option có hỗ trợ cache/config theo key.
|
|
1130
1200
|
*/
|
|
1131
1201
|
key?: string;
|
|
1202
|
+
/**
|
|
1203
|
+
* `key` của cấu hình trong `SD_TABLE_CONFIGURATION` áp cho bảng này (portal có nhiều module, mỗi module một backend).
|
|
1204
|
+
* Cấu hình đó được gộp lên trên cấu hình mặc định của portal (cấu hình không `key`). Không khai, hoặc không có cấu
|
|
1205
|
+
* hình nào trùng `key`: dùng cấu hình mặc định của portal.
|
|
1206
|
+
*/
|
|
1207
|
+
configurationKey?: string;
|
|
1132
1208
|
/**
|
|
1133
1209
|
* Field định danh của MỘT DÒNG (hỗ trợ dot-notation, vd `'id'` hoặc `'user.id'`).
|
|
1134
1210
|
*
|
|
@@ -1141,10 +1217,19 @@ interface SdTableBaseOption<T = any> {
|
|
|
1141
1217
|
* cần autoId theo dòng ổn định cho E2E.
|
|
1142
1218
|
*/
|
|
1143
1219
|
rowKey?: string;
|
|
1144
|
-
/**
|
|
1220
|
+
/**
|
|
1221
|
+
* Phone layout. Cards activate when the table has a card body: a projected `sdTableRowMobileDef` (wins, with a dev
|
|
1222
|
+
* warning when `template` is set too), `template`, or `SD_TABLE_CONFIGURATION.mobile.autoTemplate`.
|
|
1223
|
+
*/
|
|
1145
1224
|
mobile?: {
|
|
1146
1225
|
/** Row command title and accessible labels; falls back to rowKey, then row number. */
|
|
1147
1226
|
rowLabel?: (row: T) => string;
|
|
1227
|
+
/**
|
|
1228
|
+
* Card body on phones: a `TemplateRef`, or `{ data }` to build the card from row values. `false` keeps the desktop
|
|
1229
|
+
* table on phones even with `autoTemplate`.
|
|
1230
|
+
* @example `template: { data: row => ({ title: 'code', badge: 'status', highlight: 'total' }) }`
|
|
1231
|
+
*/
|
|
1232
|
+
template?: SdTableMobileTemplate<T> | false;
|
|
1148
1233
|
};
|
|
1149
1234
|
/**
|
|
1150
1235
|
* Cấu hình hiển thị/phục hồi config của table.
|
|
@@ -1495,6 +1580,30 @@ interface SdTableQueryContext extends SdTableQueryFields {
|
|
|
1495
1580
|
defaultColumnOperator?: Record<string, Operator>;
|
|
1496
1581
|
}
|
|
1497
1582
|
|
|
1583
|
+
/**
|
|
1584
|
+
* One filter of the phone UI (chip row and filter sheet).
|
|
1585
|
+
* - `source` + `field`: a filter the query-bar model can read — it gets a chip, a summary and the built-in controls.
|
|
1586
|
+
* - `custom`: a filter only its own control can edit (a template, a time column, an external filter the bar leaves
|
|
1587
|
+
* out). It has a row in the filter sheet that opens that control, but no chip and no summary.
|
|
1588
|
+
*/
|
|
1589
|
+
interface SdTableMobileFilterItem {
|
|
1590
|
+
/** `external:<field>` / `column:<field>` as on the query bar, `custom-*:<field>` otherwise. */
|
|
1591
|
+
key: string;
|
|
1592
|
+
label: string;
|
|
1593
|
+
source?: SdTableQuerySource;
|
|
1594
|
+
field?: SdQueryField;
|
|
1595
|
+
custom?: {
|
|
1596
|
+
kind: 'column';
|
|
1597
|
+
column: SdTableColumnAnyRow;
|
|
1598
|
+
} | {
|
|
1599
|
+
kind: 'external';
|
|
1600
|
+
external: SdTableExternalFilter;
|
|
1601
|
+
} | {
|
|
1602
|
+
kind: 'def';
|
|
1603
|
+
def: SdTableFilterDefDirective;
|
|
1604
|
+
};
|
|
1605
|
+
}
|
|
1606
|
+
|
|
1498
1607
|
/** Internal presentation only; closures keep row and selection callbacks distinct. */
|
|
1499
1608
|
interface SdTableMobileAction {
|
|
1500
1609
|
key: string;
|
|
@@ -1510,6 +1619,18 @@ interface SdTableMobileAction {
|
|
|
1510
1619
|
run?: () => unknown;
|
|
1511
1620
|
}
|
|
1512
1621
|
|
|
1622
|
+
/** What fills a phone card: a template, slots from `mobile.template.data`, or slots derived from the columns. */
|
|
1623
|
+
type SdTableMobileBody<T> = {
|
|
1624
|
+
kind: 'template';
|
|
1625
|
+
templateRef: TemplateRef<SdTableRowMobileDefContext<T>>;
|
|
1626
|
+
} | {
|
|
1627
|
+
kind: 'data';
|
|
1628
|
+
layout: unknown;
|
|
1629
|
+
data: SdTableMobileDataFn<T, SdTableMobileCardData<T>>;
|
|
1630
|
+
} | {
|
|
1631
|
+
kind: 'auto';
|
|
1632
|
+
};
|
|
1633
|
+
|
|
1513
1634
|
/** What the unknown-total paginator renders; computed by `SdTable`. */
|
|
1514
1635
|
interface SdTableUnknownTotalPagerState {
|
|
1515
1636
|
/** Page the controls navigate from: the shown page, or the failed target after a read error. */
|
|
@@ -1582,19 +1703,13 @@ declare class ExternalFilterComponent {
|
|
|
1582
1703
|
}
|
|
1583
1704
|
|
|
1584
1705
|
/**
|
|
1585
|
-
*
|
|
1586
|
-
*
|
|
1587
|
-
*
|
|
1588
|
-
*
|
|
1589
|
-
* 1. External filter (render inline — KHÔNG reuse external-filter component
|
|
1590
|
-
* vì component đó dùng grid 2/3 cột + có chọn ẩn/hiện không phù hợp mobile).
|
|
1591
|
-
* 2. filterDefs — custom templates do app khai báo qua `[sdTableFilterDef]`.
|
|
1592
|
-
* 3. Column filter — 1 column-filter / column.
|
|
1593
|
-
*
|
|
1594
|
-
* State: local working copy. Cancel = đóng (không ghi). Apply = flush vào
|
|
1595
|
-
* filterRegister + đóng.
|
|
1706
|
+
* Filter sheet of the phone (handoff table-mobile 5): one `sd-modal` bottom sheet with two levels — the list of
|
|
1707
|
+
* filters with their summary, and the page of one filter. Works on a copy of the filter register: Done keeps the page's
|
|
1708
|
+
* edits in the copy, Apply writes every filter and reads once, Cancel / close / a swipe down / the scrim drop the copy.
|
|
1709
|
+
* Order: external filters → `sdTableFilterDef` templates → columns.
|
|
1596
1710
|
*/
|
|
1597
1711
|
declare class MobileFilterComponent {
|
|
1712
|
+
#private;
|
|
1598
1713
|
autoIdInput: _angular_core.InputSignal<string | null | undefined>;
|
|
1599
1714
|
filter: _angular_core.InputSignal<SdTableOptionFilter<unknown> | undefined>;
|
|
1600
1715
|
externalFilters: _angular_core.InputSignal<SdTableExternalFilter[] | null | undefined>;
|
|
@@ -1602,22 +1717,91 @@ declare class MobileFilterComponent {
|
|
|
1602
1717
|
filterDefs: _angular_core.InputSignal<readonly SdTableFilterDefDirective[] | null | undefined>;
|
|
1603
1718
|
filterRegister: _angular_core.InputSignal<TableFilterRegister | undefined>;
|
|
1604
1719
|
cacheValues: _angular_core.InputSignal<Record<string, any[]> | undefined>;
|
|
1605
|
-
|
|
1720
|
+
/** Filters and the query model, from the table. */
|
|
1721
|
+
model: _angular_core.InputSignal<{
|
|
1722
|
+
ctx: SdTableQueryContext;
|
|
1723
|
+
items: SdTableMobileFilterItem[];
|
|
1724
|
+
} | undefined>;
|
|
1725
|
+
readonly sheet: _angular_core.Signal<SdModal>;
|
|
1726
|
+
protected readonly head: _angular_core.Signal<ElementRef<HTMLElement> | undefined>;
|
|
1727
|
+
protected readonly body: _angular_core.Signal<ElementRef<HTMLElement> | undefined>;
|
|
1606
1728
|
workingColumnFilter: _angular_core.WritableSignal<Record<string, any>>;
|
|
1607
1729
|
workingColumnOperator: _angular_core.WritableSignal<Record<string, Operator>>;
|
|
1608
1730
|
workingExternalFilter: _angular_core.WritableSignal<Record<string, any>>;
|
|
1731
|
+
/** Filter whose page is open; `undefined` on the list. */
|
|
1732
|
+
readonly page: _angular_core.WritableSignal<SdTableMobileFilterItem | undefined>;
|
|
1733
|
+
/** Bumped when the copy changes in place, so summaries and counts follow. */
|
|
1734
|
+
readonly revision: _angular_core.WritableSignal<number>;
|
|
1735
|
+
readonly labels: _SdQueryChipLabels;
|
|
1609
1736
|
autoId: _angular_core.Signal<string>;
|
|
1610
1737
|
externalFilterItems: _angular_core.Signal<SdTableExternalFilter[]>;
|
|
1611
1738
|
columnItems: _angular_core.Signal<SdTableColumn[]>;
|
|
1612
1739
|
filterDefItems: _angular_core.Signal<readonly SdTableFilterDefDirective[]>;
|
|
1740
|
+
/** The copy as one record; its parts are the working signals' objects, edited in place by the field pages. */
|
|
1741
|
+
readonly working: _angular_core.Signal<TableFilterValue>;
|
|
1742
|
+
readonly rows: _angular_core.Signal<{
|
|
1743
|
+
item: SdTableMobileFilterItem;
|
|
1744
|
+
summary: string;
|
|
1745
|
+
active: boolean;
|
|
1746
|
+
field: string;
|
|
1747
|
+
}[]>;
|
|
1748
|
+
readonly activeCount: _angular_core.Signal<number>;
|
|
1749
|
+
constructor();
|
|
1613
1750
|
open: () => void;
|
|
1614
1751
|
close: () => void;
|
|
1752
|
+
/** Opens the page of a filter; Back returns to the list. */
|
|
1753
|
+
enter(item: SdTableMobileFilterItem): void;
|
|
1754
|
+
/** Done / ← / Escape on a page: back to the list, the edits stay in the copy. */
|
|
1755
|
+
back(): void;
|
|
1615
1756
|
onApply: () => void;
|
|
1616
1757
|
onCancel: () => void;
|
|
1758
|
+
/** "Clear all": empties every filter of the copy; Apply still writes it. */
|
|
1759
|
+
clearAll(): void;
|
|
1760
|
+
/** "Clear" on a page: that filter only. */
|
|
1761
|
+
clearPage(): void;
|
|
1762
|
+
onChanged(): void;
|
|
1763
|
+
onKeydown(event: KeyboardEvent): void;
|
|
1764
|
+
/** Every close path ends here: drop the history entries the sheet pushed. */
|
|
1765
|
+
onClosed(): void;
|
|
1617
1766
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MobileFilterComponent, never>;
|
|
1618
|
-
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>;
|
|
1767
|
+
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>;
|
|
1619
1768
|
}
|
|
1620
1769
|
|
|
1770
|
+
type FilterMode = NonNullable<SdTableOptionFilter['mode']>;
|
|
1771
|
+
type ConfigTab = 'columns' | 'filters';
|
|
1772
|
+
interface ConfigFilterRow {
|
|
1773
|
+
field: string;
|
|
1774
|
+
title: string;
|
|
1775
|
+
on: boolean;
|
|
1776
|
+
locked: boolean;
|
|
1777
|
+
/** i18n key of the text under the title. */
|
|
1778
|
+
note?: string;
|
|
1779
|
+
}
|
|
1780
|
+
/** What the "Bộ lọc" tab shows; the table builds it, and `undefined` hides the tab. */
|
|
1781
|
+
interface ConfigFilterSetup {
|
|
1782
|
+
/** `filter.mode` after `SD_TABLE_CONFIGURATION`: the kind without a stored choice. */
|
|
1783
|
+
mode: FilterMode;
|
|
1784
|
+
/** The stored choice of the user (`TableFilterConfiguration.mode`). */
|
|
1785
|
+
storedMode?: FilterMode;
|
|
1786
|
+
/** `filter.modeSelectable !== false`: the kinds are offered. */
|
|
1787
|
+
modeSelectable: boolean;
|
|
1788
|
+
/** Stored `TableFilterConfiguration.inlineExternal`. */
|
|
1789
|
+
inlineExternal: Record<string, boolean>;
|
|
1790
|
+
/** External filters in option order; `offBar`: the query bar cannot show it. */
|
|
1791
|
+
externalFilters: {
|
|
1792
|
+
field: string;
|
|
1793
|
+
title: string;
|
|
1794
|
+
required: boolean;
|
|
1795
|
+
offBar: boolean;
|
|
1796
|
+
}[];
|
|
1797
|
+
/** `filter.queryBar.pinned`: the app picks the pinned chips, so the list cannot change them on the bar. */
|
|
1798
|
+
pinned?: string[];
|
|
1799
|
+
/**
|
|
1800
|
+
* Titles of the required external filters the bar cannot show. The bar would block the read with no place to fill
|
|
1801
|
+
* them, so the bar card is off while there is any.
|
|
1802
|
+
*/
|
|
1803
|
+
barBlockedBy: string[];
|
|
1804
|
+
}
|
|
1621
1805
|
declare class ConfigComponent {
|
|
1622
1806
|
#private;
|
|
1623
1807
|
autoIdInput: _angular_core.InputSignal<string | null | undefined>;
|
|
@@ -1625,6 +1809,10 @@ declare class ConfigComponent {
|
|
|
1625
1809
|
changes: _angular_core.OutputEmitterRef<ConfiguredTableResult>;
|
|
1626
1810
|
/** Restore defaults was confirmed and the stored setup removed. */
|
|
1627
1811
|
defaultsRestored: _angular_core.OutputEmitterRef<void>;
|
|
1812
|
+
/** The "Bộ lọc" tab; `undefined` hides it. */
|
|
1813
|
+
filterSetup: _angular_core.InputSignal<ConfigFilterSetup | undefined>;
|
|
1814
|
+
/** Apply with a changed "Bộ lọc" tab: the filter setup to store. `mode` is left out when the kind cannot be picked. */
|
|
1815
|
+
filterApplied: _angular_core.OutputEmitterRef<Partial<TableFilterConfiguration>>;
|
|
1628
1816
|
autoId: _angular_core.Signal<string>;
|
|
1629
1817
|
modal: _angular_core.Signal<SdModal | undefined>;
|
|
1630
1818
|
protected readonly handles: _angular_core.Signal<readonly ElementRef<HTMLButtonElement>[]>;
|
|
@@ -1649,6 +1837,25 @@ declare class ConfigComponent {
|
|
|
1649
1837
|
readonly totalCount: _angular_core.Signal<number>;
|
|
1650
1838
|
readonly shownCount: _angular_core.Signal<number>;
|
|
1651
1839
|
readonly allShown: _angular_core.Signal<boolean>;
|
|
1840
|
+
/** Tab on screen; Cột when the table gives no "Bộ lọc" tab. */
|
|
1841
|
+
readonly tab: _angular_core.Signal<ConfigTab>;
|
|
1842
|
+
readonly tabs: readonly ConfigTab[];
|
|
1843
|
+
readonly modes: readonly FilterMode[];
|
|
1844
|
+
/** Picked filter kind (draft until Apply). */
|
|
1845
|
+
readonly filterMode: _angular_core.WritableSignal<FilterMode>;
|
|
1846
|
+
/** Inline external filters (draft until Apply). */
|
|
1847
|
+
readonly inlineExternal: _angular_core.WritableSignal<Record<string, boolean>>;
|
|
1848
|
+
/**
|
|
1849
|
+
* 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
|
|
1850
|
+
* the bar cannot show is off, a required one is always pinned, and `queryBar.pinned` decides for the app.
|
|
1851
|
+
*/
|
|
1852
|
+
readonly filterRows: _angular_core.Signal<ConfigFilterRow[]>;
|
|
1853
|
+
/** Text under the filter list: what its switches do for the picked kind. */
|
|
1854
|
+
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">;
|
|
1855
|
+
/** Titles that keep the bar card off, joined for its note; '' when the bar can be picked. */
|
|
1856
|
+
readonly barBlockedBy: _angular_core.Signal<string>;
|
|
1857
|
+
/** On the bar, a filter it cannot show still filters by its value, with no chip to clear it. */
|
|
1858
|
+
readonly offBarWarning: _angular_core.Signal<boolean>;
|
|
1652
1859
|
open: () => Promise<void>;
|
|
1653
1860
|
close: () => void;
|
|
1654
1861
|
onSave: () => void;
|
|
@@ -1658,6 +1865,14 @@ declare class ConfigComponent {
|
|
|
1658
1865
|
* ô "Hiện" để bật lại.
|
|
1659
1866
|
*/
|
|
1660
1867
|
isRowDisabled: (item: ConfiguredColumn) => boolean;
|
|
1868
|
+
readonly tabId: (tab: ConfigTab) => string;
|
|
1869
|
+
readonly panelId: (tab: ConfigTab) => string;
|
|
1870
|
+
readonly modeName: string;
|
|
1871
|
+
selectTab: (tab: ConfigTab) => void;
|
|
1872
|
+
/** ← → move between the tabs, Home / End go to the first / last (tablist pattern of the APG, roving tabindex). */
|
|
1873
|
+
onTabKeydown: (event: KeyboardEvent) => void;
|
|
1874
|
+
pickMode: (mode: FilterMode) => void;
|
|
1875
|
+
setInline: (field: string, on: boolean) => void;
|
|
1661
1876
|
onFind: (value: unknown) => void;
|
|
1662
1877
|
toggleRow: (field: string) => void;
|
|
1663
1878
|
/**
|
|
@@ -1689,7 +1904,7 @@ declare class ConfigComponent {
|
|
|
1689
1904
|
commitWidth: (field: string) => void;
|
|
1690
1905
|
detailsId: (field: string) => string;
|
|
1691
1906
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ConfigComponent, never>;
|
|
1692
|
-
static ɵcmp: _angular_core.ɵɵ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>;
|
|
1907
|
+
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>;
|
|
1693
1908
|
}
|
|
1694
1909
|
|
|
1695
1910
|
declare class SdPopupExport {
|
|
@@ -1737,6 +1952,12 @@ declare class SdPopupExport {
|
|
|
1737
1952
|
}
|
|
1738
1953
|
|
|
1739
1954
|
interface ISdTableConfiguration {
|
|
1955
|
+
/**
|
|
1956
|
+
* Khoá của cấu hình, dùng khi một portal có nhiều module với backend khác nhau. Bảng chọn bằng
|
|
1957
|
+
* `option.configurationKey`. Không khai `key`: cấu hình mặc định của portal, áp cho mọi bảng và là nền cho các cấu
|
|
1958
|
+
* hình có `key` (gộp theo từng field).
|
|
1959
|
+
*/
|
|
1960
|
+
key?: string;
|
|
1740
1961
|
paginate?: {
|
|
1741
1962
|
/** Số dòng mỗi trang. */
|
|
1742
1963
|
pageSize?: SdTableOptionPaginate['pageSize'];
|
|
@@ -1755,8 +1976,19 @@ interface ISdTableConfiguration {
|
|
|
1755
1976
|
hideExternalFilterToolbar?: SdTableOptionFilter['hideExternalFilterToolbar'];
|
|
1756
1977
|
/** Giao diện lọc mặc định cho mọi bảng; `option.filter.mode` thắng. Mặc định là `'default'`. */
|
|
1757
1978
|
mode?: SdTableOptionFilter['mode'];
|
|
1758
|
-
/**
|
|
1759
|
-
|
|
1979
|
+
/** 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`. */
|
|
1980
|
+
modeSelectable?: SdTableOptionFilter['modeSelectable'];
|
|
1981
|
+
/**
|
|
1982
|
+
* Tuỳ chọn mặc định của mode `'query-bar'`; gộp theo từng field với `option.filter.queryBar`. Không có `savedFilters`:
|
|
1983
|
+
* khoá bộ lọc đã lưu phải riêng từng bảng.
|
|
1984
|
+
*/
|
|
1985
|
+
queryBar?: Omit<NonNullable<SdTableOptionFilter['queryBar']>, 'savedFilters'>;
|
|
1986
|
+
/**
|
|
1987
|
+
* Operator của ô lọc theo cột, theo `type` của cột; chỉ áp cho cột bật `filter.operator.enable`.
|
|
1988
|
+
* - `list`: danh sách operator khi cột không khai `filter.operator.list`. Type không khai ở đây dùng bộ mặc định của
|
|
1989
|
+
* thư viện (`DEFAULT_TABLE_CONFIG`: `string`, `number`); khai mảng rỗng để type đó không có operator.
|
|
1990
|
+
* - `default`: operator chọn sẵn; `filter.operator.default` của cột thắng.
|
|
1991
|
+
*/
|
|
1760
1992
|
operator?: {
|
|
1761
1993
|
list?: Partial<Record<SdTableColumn['type'], Operator[]>>;
|
|
1762
1994
|
default?: Partial<Record<SdTableColumn['type'], Operator>>;
|
|
@@ -1769,7 +2001,17 @@ interface ISdTableConfiguration {
|
|
|
1769
2001
|
};
|
|
1770
2002
|
/** 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. */
|
|
1771
2003
|
loading?: SdTableOptionLoading;
|
|
2004
|
+
mobile?: {
|
|
2005
|
+
/**
|
|
2006
|
+
* Phone cards for tables without a card body (`sdTableRowMobileDef` or `mobile.template`): the card is built from
|
|
2007
|
+
* the visible columns. `mobile.template: false` opts a table out. Mặc định là `false`.
|
|
2008
|
+
*/
|
|
2009
|
+
autoTemplate?: boolean;
|
|
2010
|
+
};
|
|
1772
2011
|
}
|
|
2012
|
+
/**
|
|
2013
|
+
* Một cấu hình (`useValue`) hoặc nhiều cấu hình (`multi: true`, mỗi cấu hình một `key`). Xem `resolveTableConfiguration`.
|
|
2014
|
+
*/
|
|
1773
2015
|
declare const SD_TABLE_CONFIGURATION: InjectionToken<ISdTableConfiguration>;
|
|
1774
2016
|
|
|
1775
2017
|
/**
|
|
@@ -1821,6 +2063,12 @@ declare class SdTable<T = unknown> implements AfterViewInit, OnDestroy {
|
|
|
1821
2063
|
option: _angular_core.InputSignal<SdTableOption<T>>;
|
|
1822
2064
|
/** Hide the integrated error region while retaining read state, events and retry. */
|
|
1823
2065
|
readonly hideReadError: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
2066
|
+
/**
|
|
2067
|
+
* Ghi filter (quick search, filter dưới cột + operator, external filter), sort và trang lên query param
|
|
2068
|
+
* `table-<autoId>`, rồi đọc lại khi mở link — copy link giữ đúng bảng đang xem. Cần `autoId`. State mặc định thì param
|
|
2069
|
+
* bị xoá. Mặc định tắt.
|
|
2070
|
+
*/
|
|
2071
|
+
readonly syncQueryParams: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
1824
2072
|
readonly sdReadStateChange: _angular_core.OutputEmitterRef<SdReadState>;
|
|
1825
2073
|
readonly readState: _angular_core.Signal<SdReadState>;
|
|
1826
2074
|
readonly dataStateTemplate: _angular_core.Signal<SdDataStateTemplateDirective | undefined>;
|
|
@@ -1844,10 +2092,16 @@ declare class SdTable<T = unknown> implements AfterViewInit, OnDestroy {
|
|
|
1844
2092
|
sdTitleDefs: _angular_core.Signal<readonly SdTableTitleDefDirective<any>[]>;
|
|
1845
2093
|
readonly sdRowMobileDef: _angular_core.Signal<SdTableRowMobileDefDirective<T> | undefined>;
|
|
1846
2094
|
readonly isMobile: _angular_core.Signal<boolean>;
|
|
2095
|
+
/**
|
|
2096
|
+
* Body of the phone cards, by priority: `sdTableRowMobileDef`, then `mobile.template` (a template or `{ data }`),
|
|
2097
|
+
* then `SD_TABLE_CONFIGURATION.mobile.autoTemplate`. `undefined`: phones show the desktop table.
|
|
2098
|
+
*/
|
|
2099
|
+
protected readonly mobileBody: _angular_core.Signal<SdTableMobileBody<T> | undefined>;
|
|
1847
2100
|
readonly mobileCards: _angular_core.Signal<boolean>;
|
|
1848
2101
|
/**
|
|
1849
2102
|
* The footer settings button carries a dot while the table uses a setup of its own: stored columns that differ from
|
|
1850
|
-
* the option (settings modal or a resize on the table)
|
|
2103
|
+
* the option (settings modal or a resize on the table), inline external filters that differ from `defaultShowing`, or
|
|
2104
|
+
* a stored filter mode that differs from `filter.mode`.
|
|
1851
2105
|
*/
|
|
1852
2106
|
readonly hasCustomSetup: _angular_core.Signal<boolean>;
|
|
1853
2107
|
cellDef: _angular_core.Signal<Record<string, SdTableCellDefDirective<any>>>;
|
|
@@ -1915,11 +2169,24 @@ declare class SdTable<T = unknown> implements AfterViewInit, OnDestroy {
|
|
|
1915
2169
|
active: string;
|
|
1916
2170
|
direction: SortDirection;
|
|
1917
2171
|
}>;
|
|
2172
|
+
/**
|
|
2173
|
+
* Columns of the phone sort sheet: sortable leaf columns of the option in their order, `invisible` and
|
|
2174
|
+
* settings-hidden ones included, `hidden: true` ones left out (handoff table-mobile 6), with the settings title when
|
|
2175
|
+
* the column is on screen.
|
|
2176
|
+
*/
|
|
1918
2177
|
readonly mobileSortColumns: _angular_core.Signal<{
|
|
1919
2178
|
field: string;
|
|
1920
2179
|
title: string;
|
|
1921
2180
|
direction: SortDirection;
|
|
1922
2181
|
}[]>;
|
|
2182
|
+
/** The phone shows a sort chip / button: `sort.enable` and at least one sortable column. */
|
|
2183
|
+
protected readonly mobileSortAvailable: _angular_core.Signal<boolean>;
|
|
2184
|
+
/** Accessible name of the phone sort chip / button: "Sort", or the column and direction while sorted. */
|
|
2185
|
+
protected readonly mobileSortLabel: _angular_core.Signal<string>;
|
|
2186
|
+
/**
|
|
2187
|
+
* Tools sheet of the phone (⋮): export and settings. Filter, sort and reload live in the chip row, the sort sheet and
|
|
2188
|
+
* pull to refresh. The exports are laid out flat (two at most).
|
|
2189
|
+
*/
|
|
1923
2190
|
readonly mobileToolsActions: _angular_core.Signal<SdTableMobileAction[]>;
|
|
1924
2191
|
readonly pageRevision: _angular_core.WritableSignal<number>;
|
|
1925
2192
|
readonly dataRevision: _angular_core.WritableSignal<number>;
|
|
@@ -1949,7 +2216,17 @@ declare class SdTable<T = unknown> implements AfterViewInit, OnDestroy {
|
|
|
1949
2216
|
readonly quickSearchValue: _angular_core.WritableSignal<SdTableQuickSearchValue>;
|
|
1950
2217
|
private readonly quickSearchControl;
|
|
1951
2218
|
readonly quickSearchValid: _angular_core.Signal<boolean>;
|
|
1952
|
-
/**
|
|
2219
|
+
/**
|
|
2220
|
+
* 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
|
|
2221
|
+
* `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
|
|
2222
|
+
* đượ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ị
|
|
2223
|
+
* đượ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.
|
|
2224
|
+
*/
|
|
2225
|
+
protected readonly configFilter: _angular_core.Signal<ConfigFilterSetup | undefined>;
|
|
2226
|
+
/**
|
|
2227
|
+
* 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
|
|
2228
|
+
* `filter.mode` sau khi gộp `SD_TABLE_CONFIGURATION.filter.mode`.
|
|
2229
|
+
*/
|
|
1953
2230
|
readonly filterMode: _angular_core.Signal<"default" | "query-bar">;
|
|
1954
2231
|
/** 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. */
|
|
1955
2232
|
readonly effectiveFilterMode: _angular_core.Signal<"default" | "query-bar">;
|
|
@@ -1959,18 +2236,38 @@ declare class SdTable<T = unknown> implements AfterViewInit, OnDestroy {
|
|
|
1959
2236
|
/** Chip trên thanh (nháp của thanh) và ô tìm — gắn hai chiều với `sd-query-bar`. */
|
|
1960
2237
|
readonly barFilters: _angular_core.WritableSignal<Filter[]>;
|
|
1961
2238
|
readonly barSearch: _angular_core.WritableSignal<string>;
|
|
1962
|
-
|
|
2239
|
+
/** Id of the required hint in the empty block; `aria-describedby` of empty required chips and of the quick search input. */
|
|
2240
|
+
readonly requiredHintId: string;
|
|
1963
2241
|
/** Field của thanh và bảng tra nguồn; `undefined` khi không ở mode query-bar. */
|
|
1964
2242
|
readonly queryBarModel: _angular_core.Signal<SdTableQueryContext | undefined>;
|
|
2243
|
+
/**
|
|
2244
|
+
* Filters of the phone UI (chip row and filter sheets), in the fixed order external → `sdTableFilterDef` → columns.
|
|
2245
|
+
* `undefined` on desktop, with `filter.disabled`, or before the configuration is known.
|
|
2246
|
+
*/
|
|
2247
|
+
protected readonly mobileFilterModel: _angular_core.Signal<{
|
|
2248
|
+
ctx: SdTableQueryContext;
|
|
2249
|
+
items: SdTableMobileFilterItem[];
|
|
2250
|
+
} | undefined>;
|
|
2251
|
+
/** Applied filter value (last emission of the filter register); the phone chips summarise it. */
|
|
2252
|
+
protected readonly mobileFilterValue: _angular_core.Signal<TableFilterValue | undefined>;
|
|
1965
2253
|
readonly queryBarOption: _angular_core.Signal<SdQueryBarOption<unknown> | undefined>;
|
|
1966
2254
|
/** 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. */
|
|
1967
2255
|
readonly queryBarActiveKeys: _angular_core.Signal<Set<string>>;
|
|
2256
|
+
queryBarTriggerPopup: (key: string) => "menu" | "listbox" | "dialog" | null;
|
|
1968
2257
|
/** `aria-label` của icon lọc ở header: "Lọc theo …" / "Đang lọc theo …". */
|
|
1969
2258
|
filterTriggerLabel(column: SdTableColumn, active: boolean): string;
|
|
1970
2259
|
/** 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. */
|
|
1971
2260
|
openQueryBarField(key: string, trigger: EventTarget | null): void;
|
|
1972
|
-
/**
|
|
1973
|
-
|
|
2261
|
+
/**
|
|
2262
|
+
* "Chọn {label} để xem dữ liệu" for the required fields that are still empty, or `''`. The empty block of the body
|
|
2263
|
+
* shows it in place of `choose-filter-hint` (the read is blocked, so that block is on screen): a line under the
|
|
2264
|
+
* filter row would push the table down and back up once the value is chosen.
|
|
2265
|
+
* - Query-bar mode: empty required chips, hidden required quick filters, and required external filters the bar
|
|
2266
|
+
* cannot show (custom, filterDef, exclude…), which still block the read.
|
|
2267
|
+
* - Quick search: empty required quick filters, hidden ones included.
|
|
2268
|
+
* The external filter panel of the default mode marks its own required fields.
|
|
2269
|
+
*/
|
|
2270
|
+
readonly requiredHint: _angular_core.Signal<string>;
|
|
1974
2271
|
key: string;
|
|
1975
2272
|
columnOperator: Record<string, Operator>;
|
|
1976
2273
|
columnFilter?: NonNullable<TableFilterValue['columnFilter']>;
|
|
@@ -1979,8 +2276,13 @@ declare class SdTable<T = unknown> implements AfterViewInit, OnDestroy {
|
|
|
1979
2276
|
readonly expandRevision: _angular_core.WritableSignal<number>;
|
|
1980
2277
|
exporting: _angular_core.WritableSignal<boolean>;
|
|
1981
2278
|
exportTitle: _angular_core.Signal<string>;
|
|
1982
|
-
|
|
1983
|
-
|
|
2279
|
+
/** Cấu hình áp cho bảng này: cấu hình trùng `option.configurationKey` gộp lên cấu hình mặc định của portal. */
|
|
2280
|
+
get tableConfiguration(): ISdTableConfiguration | null;
|
|
2281
|
+
/**
|
|
2282
|
+
* 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
|
|
2283
|
+
* 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
|
|
2284
|
+
* thấp giữa header và paginator (và cuộn lồng với trang khi màn thấp).
|
|
2285
|
+
*/
|
|
1984
2286
|
readonly fill: _angular_core.Signal<boolean>;
|
|
1985
2287
|
/** External filter của bảng chính thu gọn khi khung trang đang ở chế độ màn thấp. */
|
|
1986
2288
|
readonly externalFilterCollapsedByDefault: _angular_core.Signal<boolean>;
|
|
@@ -2066,8 +2368,13 @@ declare class SdTable<T = unknown> implements AfterViewInit, OnDestroy {
|
|
|
2066
2368
|
get dataItems(): T[];
|
|
2067
2369
|
get selectedItems(): T[];
|
|
2068
2370
|
detectChanges: () => void;
|
|
2069
|
-
/**
|
|
2371
|
+
/**
|
|
2372
|
+
* Restore defaults in the settings modal also puts the inline external filters back to `defaultShowing` and clears the
|
|
2373
|
+
* stored filter mode.
|
|
2374
|
+
*/
|
|
2070
2375
|
onConfigDefaultsRestored: () => void;
|
|
2376
|
+
/** Apply in the settings modal with a changed "Bộ lọc" tab: store the filter kind and the inline external filters. */
|
|
2377
|
+
onConfigFilterApplied: (configuration: Partial<TableFilterConfiguration>) => void;
|
|
2071
2378
|
onColumnResize: (field: string, width: string) => void;
|
|
2072
2379
|
getSortAria: (field: string) => "none" | "ascending" | "descending";
|
|
2073
2380
|
onOperatorChange: (column: SdTableColumn, operator: Operator | undefined) => void;
|
|
@@ -2077,8 +2384,8 @@ declare class SdTable<T = unknown> implements AfterViewInit, OnDestroy {
|
|
|
2077
2384
|
reorderSortPredicate: (index: number, drag: CdkDrag<SdTableItem<T>>, drop: CdkDropList<SdTableItem<T>[]>) => boolean;
|
|
2078
2385
|
onReorderDrop(event: CdkDragDrop<SdTableItem<T>[]>): void;
|
|
2079
2386
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SdTable<any>, never>;
|
|
2080
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SdTable<any>, "sd-table", never, { "autoIdInput": { "alias": "autoId"; "required": false; "isSignal": true; }; "option": { "alias": "option"; "required": true; "isSignal": true; }; "hideReadError": { "alias": "hideReadError"; "required": false; "isSignal": true; }; }, { "sdReadStateChange": "sdReadStateChange"; }, ["dataStateTemplate", "sdSubInformation", "sdGroupDef", "sdCellDefs", "sdCommandHeaderDef", "sdQuickSearchRightDef", "sdFooterDefs", "sdFilterDefs", "sdTitleDefs", "sdRowMobileDef"], ["[sdTableTop]"], true, never>;
|
|
2387
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SdTable<any>, "sd-table", never, { "autoIdInput": { "alias": "autoId"; "required": false; "isSignal": true; }; "option": { "alias": "option"; "required": true; "isSignal": true; }; "hideReadError": { "alias": "hideReadError"; "required": false; "isSignal": true; }; "syncQueryParams": { "alias": "syncQueryParams"; "required": false; "isSignal": true; }; }, { "sdReadStateChange": "sdReadStateChange"; }, ["dataStateTemplate", "sdSubInformation", "sdGroupDef", "sdCellDefs", "sdCommandHeaderDef", "sdQuickSearchRightDef", "sdFooterDefs", "sdFilterDefs", "sdTitleDefs", "sdRowMobileDef"], ["[sdTableTop]"], true, never>;
|
|
2081
2388
|
}
|
|
2082
2389
|
|
|
2083
2390
|
export { SD_TABLE_CONFIGURATION, SD_TABLE_LAYOUT, SdConvertToPagingReq, SdMaterialFooterDefDirective, SdTable, SdTableCellDefDirective, SdTableCommandHeaderDefDirective, SdTableExpandDefDirective, SdTableFilterDefDirective, SdTableGroupDefDirective, SdTablePaginatorIntl, SdTableQuickSearchRightDefDirective, SdTableRowMobileDefDirective, SdTableTitleDefDirective };
|
|
2084
|
-
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, SdTableOptionFilterQueryBar, SdTableOptionLoading, SdTableOptionQuickSearch, SdTableOptionTree, SdTableQuickFilter, SdTableQuickSearchFilter, SdTableQuickSearchFilterValue, SdTableQuickSearchValue, SdTableRowMobileDefContext, SdTableServerHasMoreResult, SdTableServerTotalResult, TableFilterConfiguration, TableFilterRegister, TableFilterValue, TableOptionTreeLazy, TableOptionTreeStatic };
|
|
2391
|
+
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 };
|