@sdcorejs/angular 20.3.5 → 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 +10 -1
- package/components/query-bar/index.d.ts +176 -36
- 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 +56 -7
- 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 +26 -7
- package/fesm2022/sdcorejs-angular-components-modal.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-query-bar.mjs +1312 -220
- 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 +615 -104
- 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-tree-select.mjs +1 -1
- package/fesm2022/sdcorejs-angular-forms-tree-select.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-i18n.mjs +622 -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 +7 -2
- 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-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 +121 -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/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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { input, inject, TemplateRef, Directive, booleanAttribute, Pipe, isSignal, output, signal, computed, effect, untracked, ChangeDetectionStrategy, Component, model, DestroyRef, viewChild, ChangeDetectorRef, ElementRef, Injector, Injectable, afterRenderEffect, isDevMode, Input, contentChildren, afterNextRender,
|
|
2
|
+
import { input, inject, TemplateRef, Directive, booleanAttribute, Pipe, isSignal, output, signal, computed, effect, untracked, ChangeDetectionStrategy, Component, model, DestroyRef, viewChild, ChangeDetectorRef, ElementRef, Injector, Injectable, afterRenderEffect, isDevMode, Input, contentChildren, afterNextRender, viewChildren, ViewChild, InjectionToken, Renderer2, NgZone, contentChild } from '@angular/core';
|
|
3
3
|
import { trigger, state, style, transition, animate } from '@angular/animations';
|
|
4
4
|
import * as i3$3 from '@angular/material/paginator';
|
|
5
5
|
import { MatPaginatorIntl, MatPaginator, MatPaginatorModule } from '@angular/material/paginator';
|
|
@@ -23,10 +23,8 @@ import { sdQueryAllowedOperators, sdQueryDefaultOperator, SD_QUERY_NO_DATA_OPERA
|
|
|
23
23
|
import * as i1$2 from '@angular/material/button';
|
|
24
24
|
import { MatButtonModule } from '@angular/material/button';
|
|
25
25
|
import { SdIcon } from '@sdcorejs/angular/modules/icon';
|
|
26
|
-
import { SdButton, SdButtonItem
|
|
26
|
+
import { SdButton, SdButtonItem } from '@sdcorejs/angular/components/button';
|
|
27
27
|
import { SdModal } from '@sdcorejs/angular/components/modal';
|
|
28
|
-
import * as i2 from '@angular/material/menu';
|
|
29
|
-
import { MatMenuModule } from '@angular/material/menu';
|
|
30
28
|
import { ɵsdOperatorHasValue as _sdOperatorHasValue, SdOperator, ɵsdOperatorResolver as _sdOperatorResolver } from '@sdcorejs/angular/components/operator';
|
|
31
29
|
import { SdCheckbox } from '@sdcorejs/angular/forms/checkbox';
|
|
32
30
|
import { SdDate } from '@sdcorejs/angular/forms/date';
|
|
@@ -36,7 +34,7 @@ import { SdInputNumber } from '@sdcorejs/angular/forms/input-number';
|
|
|
36
34
|
import { SdRadio } from '@sdcorejs/angular/forms/radio';
|
|
37
35
|
import { SdBadge } from '@sdcorejs/angular/components/badge';
|
|
38
36
|
import { SdDateRange } from '@sdcorejs/angular/forms/date-range';
|
|
39
|
-
import { OPERATORS, EMPTY_STR } from '@sdcorejs/utils/constants';
|
|
37
|
+
import { OPERATORS as OPERATORS$1, EMPTY_STR } from '@sdcorejs/utils/constants';
|
|
40
38
|
import { SdDateTimeService, ɵSD_LOCAL_DATE_TIME as _SD_LOCAL_DATE_TIME } from '@sdcorejs/angular/services/date-time';
|
|
41
39
|
import { OverlayContainer } from '@angular/cdk/overlay';
|
|
42
40
|
import * as i1$3 from '@angular/material/progress-spinner';
|
|
@@ -49,15 +47,15 @@ import { MatCheckboxModule } from '@angular/material/checkbox';
|
|
|
49
47
|
import * as i4 from '@angular/material/radio';
|
|
50
48
|
import { MatRadioModule } from '@angular/material/radio';
|
|
51
49
|
import { SdSideDrawer } from '@sdcorejs/angular/components/side-drawer';
|
|
52
|
-
import { SdQuickAction } from '@sdcorejs/angular/components/quick-action';
|
|
50
|
+
import { SdQuickAction, ɵSdSelectionBar as _SdSelectionBar } from '@sdcorejs/angular/components/quick-action';
|
|
53
51
|
import { SdSafeHtmlPipe, SdFormatDatePipe, SdFormatDatetimePipe, SdFormatNumberPipe } from '@sdcorejs/angular/pipes';
|
|
54
52
|
import { SdTooltipDirective, SdScrollDirective, SdHoverCopyDirective } from '@sdcorejs/angular/directives';
|
|
55
|
-
import * as i2
|
|
53
|
+
import * as i2 from '@angular/material/form-field';
|
|
56
54
|
import { MatFormFieldModule } from '@angular/material/form-field';
|
|
57
55
|
import * as i3$1 from '@angular/material/select';
|
|
58
56
|
import { MatSelectModule } from '@angular/material/select';
|
|
59
57
|
import { CdkColumnDef } from '@angular/cdk/table';
|
|
60
|
-
import * as i2$
|
|
58
|
+
import * as i2$1 from '@angular/forms';
|
|
61
59
|
import { FormGroup, FormsModule } from '@angular/forms';
|
|
62
60
|
import { SdDataStateTemplateDirective, SdDataState } from '@sdcorejs/angular/components/data-state';
|
|
63
61
|
import { SdReadChannel, cloneReadRequest } from '@sdcorejs/angular/utilities/read-state';
|
|
@@ -68,6 +66,7 @@ import { SdConfirmService } from '@sdcorejs/angular/services/confirm';
|
|
|
68
66
|
import { sdNormalizeSearchText } from '@sdcorejs/angular/utilities/extensions';
|
|
69
67
|
import * as i3$2 from '@angular/material/chips';
|
|
70
68
|
import { MatChipsModule } from '@angular/material/chips';
|
|
69
|
+
import { ɵsdQueryParamState as _sdQueryParamState } from '@sdcorejs/angular/services/query-params';
|
|
71
70
|
|
|
72
71
|
class SdTableCellDefDirective {
|
|
73
72
|
static ngTemplateContextGuard(_dir, _ctx) {
|
|
@@ -641,6 +640,8 @@ class TableQuickSearchComponent {
|
|
|
641
640
|
value = input.required(...(ngDevMode ? [{ debugName: "value" }] : []));
|
|
642
641
|
autoId = input(...(ngDevMode ? [undefined, { debugName: "autoId" }] : []));
|
|
643
642
|
rightTemplate = input(...(ngDevMode ? [undefined, { debugName: "rightTemplate" }] : []));
|
|
643
|
+
/** Id of the table's required hint (in its empty block); described by it while a required filter is empty. */
|
|
644
|
+
requiredHintId = input(...(ngDevMode ? [undefined, { debugName: "requiredHintId" }] : []));
|
|
644
645
|
valueChange = output();
|
|
645
646
|
term = signal('', ...(ngDevMode ? [{ debugName: "term" }] : []));
|
|
646
647
|
isMobile = inject(SdViewportService).isMobile;
|
|
@@ -684,7 +685,7 @@ class TableQuickSearchComponent {
|
|
|
684
685
|
item.onChange?.(value);
|
|
685
686
|
}
|
|
686
687
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: TableQuickSearchComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
687
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.25", type: TableQuickSearchComponent, isStandalone: true, selector: "sd-table-quick-search", inputs: { option: { classPropertyName: "option", publicName: "option", isSignal: true, isRequired: true, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: true, transformFunction: null }, autoId: { classPropertyName: "autoId", publicName: "autoId", isSignal: true, isRequired: false, transformFunction: null }, rightTemplate: { classPropertyName: "rightTemplate", publicName: "rightTemplate", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { valueChange: "valueChange" }, ngImport: i0, template: "@let _option = option();\n@let _value = value();\n@let _valid = valid();\n@let _autoId = autoId();\n@let _inputId = inputId();\n@let _term = term();\n@let _enterHint = 'core.component.table.quick-search.enter' | sdTranslate;\n<div class=\"sd-quick-search-row\">\n <div class=\"sd-quick-search-controls\" role=\"search\" [attr.aria-label]=\"'core.component.table.search' | sdTranslate\">\n @for (control of controls(); track control.item.field) {\n @let item = control.item;\n @let items = item.type === 'values' ? (item.option.items | filterValues | async) : item.option.items;\n <sd-select\n class=\"sd-quick-search-dropdown\"\n [autoId]=\"_autoId ? _autoId + '-quick-search-' + item.field : undefined\"\n [label]=\"item.title\"\n [items]=\"items\"\n [valueField]=\"item.option.valueField\"\n [displayField]=\"item.option.displayField\"\n [model]=\"_value.filters[item.field]\"\n [multiple]=\"item.option.selection === 'MULTIPLE' || item.option.selection === 'MULTIPLEAUTOCOMPLETE'\"\n [required]=\"!!item.required\"\n [disabled]=\"control.disabled\"\n (sdChange)=\"onFilterChange(item, $event)\"\n appearance=\"outline\"\n [size]=\"isMobile() ? 'md' : 'sm'\"\n hideInlineError />\n }\n <div class=\"sd-quick-search-keyword\">\n <sd-search-field\n class=\"sd-quick-search-field\"\n size=\"sm\"\n clearable\n [clearLabel]=\"'core.component.table.quick-search.clear' | sdTranslate\"\n [autoId]=\"_autoId ? _autoId + '-quick-search' : undefined\"\n (cleared)=\"clear(searchInput)\">\n <input\n #searchInput\n sdSearchFieldInput\n [id]=\"_inputId\"\n type=\"text\"\n enterkeyhint=\"search\"\n autocomplete=\"off\"\n [attr.data-autoid]=\"_autoId ? _autoId + '-quick-search-term' : null\"\n [attr.aria-label]=\"'core.component.table.search' | sdTranslate\"\n [attr.aria-describedby]=\"_inputId +
|
|
688
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.25", type: TableQuickSearchComponent, isStandalone: true, selector: "sd-table-quick-search", inputs: { option: { classPropertyName: "option", publicName: "option", isSignal: true, isRequired: true, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: true, transformFunction: null }, autoId: { classPropertyName: "autoId", publicName: "autoId", isSignal: true, isRequired: false, transformFunction: null }, rightTemplate: { classPropertyName: "rightTemplate", publicName: "rightTemplate", isSignal: true, isRequired: false, transformFunction: null }, requiredHintId: { classPropertyName: "requiredHintId", publicName: "requiredHintId", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { valueChange: "valueChange" }, ngImport: i0, template: "@let _option = option();\n@let _value = value();\n@let _valid = valid();\n@let _autoId = autoId();\n@let _inputId = inputId();\n@let _term = term();\n@let _enterHint = 'core.component.table.quick-search.enter' | sdTranslate;\n<div class=\"sd-quick-search-row\">\n <div class=\"sd-quick-search-controls\" role=\"search\" [attr.aria-label]=\"'core.component.table.search' | sdTranslate\">\n @for (control of controls(); track control.item.field) {\n @let item = control.item;\n @let items = item.type === 'values' ? (item.option.items | filterValues | async) : item.option.items;\n <sd-select\n class=\"sd-quick-search-dropdown\"\n [autoId]=\"_autoId ? _autoId + '-quick-search-' + item.field : undefined\"\n [label]=\"item.title\"\n [items]=\"items\"\n [valueField]=\"item.option.valueField\"\n [displayField]=\"item.option.displayField\"\n [model]=\"_value.filters[item.field]\"\n [multiple]=\"item.option.selection === 'MULTIPLE' || item.option.selection === 'MULTIPLEAUTOCOMPLETE'\"\n [required]=\"!!item.required\"\n [disabled]=\"control.disabled\"\n (sdChange)=\"onFilterChange(item, $event)\"\n appearance=\"outline\"\n [size]=\"isMobile() ? 'md' : 'sm'\"\n hideInlineError />\n }\n <div class=\"sd-quick-search-keyword\">\n <sd-search-field\n class=\"sd-quick-search-field\"\n size=\"sm\"\n clearable\n [clearLabel]=\"'core.component.table.quick-search.clear' | sdTranslate\"\n [autoId]=\"_autoId ? _autoId + '-quick-search' : undefined\"\n (cleared)=\"clear(searchInput)\">\n <input\n #searchInput\n sdSearchFieldInput\n [id]=\"_inputId\"\n type=\"text\"\n enterkeyhint=\"search\"\n autocomplete=\"off\"\n [attr.data-autoid]=\"_autoId ? _autoId + '-quick-search-term' : null\"\n [attr.aria-label]=\"'core.component.table.search' | sdTranslate\"\n [attr.aria-describedby]=\"_valid ? _inputId + '-hint' : requiredHintId() || null\"\n [placeholder]=\"_option.placeholder || ('core.component.table.quick-search.placeholder' | sdTranslate)\"\n [disabled]=\"!_valid\"\n [value]=\"_term\"\n (input)=\"onInput($event)\"\n (keydown)=\"onKeydown($event)\" />\n <span sdSearchFieldEnd class=\"sd-quick-search-enter\" [matTooltip]=\"_enterHint\" aria-hidden=\"true\">\u21B5</span>\n </sd-search-field>\n </div>\n </div>\n @if (rightTemplate(); as template) {\n <div class=\"sd-quick-search-right\"><ng-container [ngTemplateOutlet]=\"template\" /></div>\n }\n</div>\n<span [id]=\"_inputId + '-hint'\" hidden>{{ _enterHint }}</span>\n<!-- why: c\u00E2u nh\u1EAFc khi thi\u1EBFu filter b\u1EAFt bu\u1ED9c n\u1EB1m trong kh\u1ED1i tr\u1EA1ng th\u00E1i r\u1ED7ng c\u1EE7a b\u1EA3ng, kh\u00F4ng ch\u00E8n d\u01B0\u1EDBi h\u00E0ng n\u00E0y (\u0111\u1ED5i chi\u1EC1u cao\n h\u00E0ng l\u00E0m b\u1EA3ng nh\u1EA3y). -->\n", styles: [":host{display:block;flex:0 0 auto;container-type:inline-size;box-sizing:border-box;padding:12px 16px;background:var(--sd-table-bg, #ffffff);--sd-control-label-bg: var(--sd-table-bg, #ffffff)}.sd-quick-search-row{display:flex;align-items:flex-end;flex-wrap:wrap;gap:12px 20px}.sd-quick-search-controls{display:flex;flex:1 1 460px;flex-wrap:wrap;align-items:flex-end;gap:12px;min-width:0}.sd-quick-search-dropdown{display:block;flex:0 1 180px;min-width:140px;max-width:100%}.sd-quick-search-keyword{flex:0 1 360px;min-width:220px;max-width:100%}.sd-quick-search-field:not(.sd-disabled){background:var(--sd-table-bg, #ffffff)}.sd-quick-search-enter{font-size:var(--sd-font-size-12, 12px);line-height:var(--sd-line-height-18, 18px);padding:0 4px;border:1px solid var(--sd-border, #e0e3e8);border-radius:var(--sd-radius-4, 4px)}.sd-quick-search-right{margin-left:auto;max-width:100%;min-width:0}@container (max-width: 550px){.sd-quick-search-controls{flex-basis:100%}.sd-quick-search-dropdown,.sd-quick-search-keyword{flex:1 1 100%;min-width:0}.sd-quick-search-right{margin-left:0;flex-basis:100%}.sd-quick-search-field{min-height:var(--sd-control-height-coarse, 44px);font-size:var(--sd-font-size-16, 16px);--sd-search-field-clear-size: 40px}}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i1.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "component", type: SdSelect, selector: "sd-select", inputs: ["autoId", "name", "size", "operators", "operator", "form", "label", "helperText", "placeholder", "valueField", "displayField", "disabledField", "cacheChecksum", "limit", "virtualScroll", "itemSize", "hyperlink", "minWidthPanel", "hideInlineError", "hideReadError", "required", "disabled", "viewed", "multiple", "showSelectAll", "clearable", "validator", "inlineError", "appearance", "floatLabel", "labelPlacement", "items", "model"], outputs: ["operatorChange", "sdReadStateChange", "modelChange", "sdChange", "sdSelection"] }, { kind: "component", type: _SdSearchField, selector: "sd-search-field", inputs: ["size", "clearable", "clearLabel", "autoId"], outputs: ["cleared"] }, { kind: "directive", type: _SdSearchFieldInputDirective, selector: "input[sdSearchFieldInput]" }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "pipe", type: SdTranslatePipe, name: "sdTranslate" }, { kind: "pipe", type: FilterValuesPipe, name: "filterValues" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
688
689
|
}
|
|
689
690
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: TableQuickSearchComponent, decorators: [{
|
|
690
691
|
type: Component,
|
|
@@ -697,8 +698,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImpo
|
|
|
697
698
|
FilterValuesPipe,
|
|
698
699
|
_SdSearchField,
|
|
699
700
|
_SdSearchFieldInputDirective,
|
|
700
|
-
], template: "@let _option = option();\n@let _value = value();\n@let _valid = valid();\n@let _autoId = autoId();\n@let _inputId = inputId();\n@let _term = term();\n@let _enterHint = 'core.component.table.quick-search.enter' | sdTranslate;\n<div class=\"sd-quick-search-row\">\n <div class=\"sd-quick-search-controls\" role=\"search\" [attr.aria-label]=\"'core.component.table.search' | sdTranslate\">\n @for (control of controls(); track control.item.field) {\n @let item = control.item;\n @let items = item.type === 'values' ? (item.option.items | filterValues | async) : item.option.items;\n <sd-select\n class=\"sd-quick-search-dropdown\"\n [autoId]=\"_autoId ? _autoId + '-quick-search-' + item.field : undefined\"\n [label]=\"item.title\"\n [items]=\"items\"\n [valueField]=\"item.option.valueField\"\n [displayField]=\"item.option.displayField\"\n [model]=\"_value.filters[item.field]\"\n [multiple]=\"item.option.selection === 'MULTIPLE' || item.option.selection === 'MULTIPLEAUTOCOMPLETE'\"\n [required]=\"!!item.required\"\n [disabled]=\"control.disabled\"\n (sdChange)=\"onFilterChange(item, $event)\"\n appearance=\"outline\"\n [size]=\"isMobile() ? 'md' : 'sm'\"\n hideInlineError />\n }\n <div class=\"sd-quick-search-keyword\">\n <sd-search-field\n class=\"sd-quick-search-field\"\n size=\"sm\"\n clearable\n [clearLabel]=\"'core.component.table.quick-search.clear' | sdTranslate\"\n [autoId]=\"_autoId ? _autoId + '-quick-search' : undefined\"\n (cleared)=\"clear(searchInput)\">\n <input\n #searchInput\n sdSearchFieldInput\n [id]=\"_inputId\"\n type=\"text\"\n enterkeyhint=\"search\"\n autocomplete=\"off\"\n [attr.data-autoid]=\"_autoId ? _autoId + '-quick-search-term' : null\"\n [attr.aria-label]=\"'core.component.table.search' | sdTranslate\"\n [attr.aria-describedby]=\"_inputId +
|
|
701
|
-
}], ctorParameters: () => [], propDecorators: { option: [{ type: i0.Input, args: [{ isSignal: true, alias: "option", required: true }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: true }] }], autoId: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoId", required: false }] }], rightTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "rightTemplate", required: false }] }], valueChange: [{ type: i0.Output, args: ["valueChange"] }] } });
|
|
701
|
+
], template: "@let _option = option();\n@let _value = value();\n@let _valid = valid();\n@let _autoId = autoId();\n@let _inputId = inputId();\n@let _term = term();\n@let _enterHint = 'core.component.table.quick-search.enter' | sdTranslate;\n<div class=\"sd-quick-search-row\">\n <div class=\"sd-quick-search-controls\" role=\"search\" [attr.aria-label]=\"'core.component.table.search' | sdTranslate\">\n @for (control of controls(); track control.item.field) {\n @let item = control.item;\n @let items = item.type === 'values' ? (item.option.items | filterValues | async) : item.option.items;\n <sd-select\n class=\"sd-quick-search-dropdown\"\n [autoId]=\"_autoId ? _autoId + '-quick-search-' + item.field : undefined\"\n [label]=\"item.title\"\n [items]=\"items\"\n [valueField]=\"item.option.valueField\"\n [displayField]=\"item.option.displayField\"\n [model]=\"_value.filters[item.field]\"\n [multiple]=\"item.option.selection === 'MULTIPLE' || item.option.selection === 'MULTIPLEAUTOCOMPLETE'\"\n [required]=\"!!item.required\"\n [disabled]=\"control.disabled\"\n (sdChange)=\"onFilterChange(item, $event)\"\n appearance=\"outline\"\n [size]=\"isMobile() ? 'md' : 'sm'\"\n hideInlineError />\n }\n <div class=\"sd-quick-search-keyword\">\n <sd-search-field\n class=\"sd-quick-search-field\"\n size=\"sm\"\n clearable\n [clearLabel]=\"'core.component.table.quick-search.clear' | sdTranslate\"\n [autoId]=\"_autoId ? _autoId + '-quick-search' : undefined\"\n (cleared)=\"clear(searchInput)\">\n <input\n #searchInput\n sdSearchFieldInput\n [id]=\"_inputId\"\n type=\"text\"\n enterkeyhint=\"search\"\n autocomplete=\"off\"\n [attr.data-autoid]=\"_autoId ? _autoId + '-quick-search-term' : null\"\n [attr.aria-label]=\"'core.component.table.search' | sdTranslate\"\n [attr.aria-describedby]=\"_valid ? _inputId + '-hint' : requiredHintId() || null\"\n [placeholder]=\"_option.placeholder || ('core.component.table.quick-search.placeholder' | sdTranslate)\"\n [disabled]=\"!_valid\"\n [value]=\"_term\"\n (input)=\"onInput($event)\"\n (keydown)=\"onKeydown($event)\" />\n <span sdSearchFieldEnd class=\"sd-quick-search-enter\" [matTooltip]=\"_enterHint\" aria-hidden=\"true\">\u21B5</span>\n </sd-search-field>\n </div>\n </div>\n @if (rightTemplate(); as template) {\n <div class=\"sd-quick-search-right\"><ng-container [ngTemplateOutlet]=\"template\" /></div>\n }\n</div>\n<span [id]=\"_inputId + '-hint'\" hidden>{{ _enterHint }}</span>\n<!-- why: c\u00E2u nh\u1EAFc khi thi\u1EBFu filter b\u1EAFt bu\u1ED9c n\u1EB1m trong kh\u1ED1i tr\u1EA1ng th\u00E1i r\u1ED7ng c\u1EE7a b\u1EA3ng, kh\u00F4ng ch\u00E8n d\u01B0\u1EDBi h\u00E0ng n\u00E0y (\u0111\u1ED5i chi\u1EC1u cao\n h\u00E0ng l\u00E0m b\u1EA3ng nh\u1EA3y). -->\n", styles: [":host{display:block;flex:0 0 auto;container-type:inline-size;box-sizing:border-box;padding:12px 16px;background:var(--sd-table-bg, #ffffff);--sd-control-label-bg: var(--sd-table-bg, #ffffff)}.sd-quick-search-row{display:flex;align-items:flex-end;flex-wrap:wrap;gap:12px 20px}.sd-quick-search-controls{display:flex;flex:1 1 460px;flex-wrap:wrap;align-items:flex-end;gap:12px;min-width:0}.sd-quick-search-dropdown{display:block;flex:0 1 180px;min-width:140px;max-width:100%}.sd-quick-search-keyword{flex:0 1 360px;min-width:220px;max-width:100%}.sd-quick-search-field:not(.sd-disabled){background:var(--sd-table-bg, #ffffff)}.sd-quick-search-enter{font-size:var(--sd-font-size-12, 12px);line-height:var(--sd-line-height-18, 18px);padding:0 4px;border:1px solid var(--sd-border, #e0e3e8);border-radius:var(--sd-radius-4, 4px)}.sd-quick-search-right{margin-left:auto;max-width:100%;min-width:0}@container (max-width: 550px){.sd-quick-search-controls{flex-basis:100%}.sd-quick-search-dropdown,.sd-quick-search-keyword{flex:1 1 100%;min-width:0}.sd-quick-search-right{margin-left:0;flex-basis:100%}.sd-quick-search-field{min-height:var(--sd-control-height-coarse, 44px);font-size:var(--sd-font-size-16, 16px);--sd-search-field-clear-size: 40px}}\n"] }]
|
|
702
|
+
}], ctorParameters: () => [], propDecorators: { option: [{ type: i0.Input, args: [{ isSignal: true, alias: "option", required: true }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: true }] }], autoId: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoId", required: false }] }], rightTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "rightTemplate", required: false }] }], requiredHintId: [{ type: i0.Input, args: [{ isSignal: true, alias: "requiredHintId", required: false }] }], valueChange: [{ type: i0.Output, args: ["valueChange"] }] } });
|
|
702
703
|
|
|
703
704
|
/**
|
|
704
705
|
* Leaf columns: each grouped header (`type: 'children'`) is replaced by its children. Filtering, sorting and the
|
|
@@ -795,13 +796,13 @@ const valuesField = (type, option, items = option.items) => type === 'lazy-value
|
|
|
795
796
|
: { type, option: { items, valueField: option.valueField, displayField: option.displayField } };
|
|
796
797
|
/**
|
|
797
798
|
* `aria-haspopup` of the header filter icon: what `SdQueryBar.openField` shows for `field` (same steps as `beginBuild`).
|
|
798
|
-
* The popover editor opens the chip
|
|
799
|
+
* The popover editor opens the chip popover (a dialog panel). The inline editor only focuses an existing chip; for a field without a chip it
|
|
799
800
|
* builds one, which opens the operator menu, or the value picker of a values / date field (a date skips the operator
|
|
800
801
|
* step when its default operator is allowed).
|
|
801
802
|
*/
|
|
802
803
|
const sdTableQueryTriggerPopup = (field, editor, hasChip) => {
|
|
803
804
|
if (editor === 'popover')
|
|
804
|
-
return '
|
|
805
|
+
return 'dialog';
|
|
805
806
|
if (hasChip)
|
|
806
807
|
return null;
|
|
807
808
|
const allowed = sdQueryAllowedOperators(field);
|
|
@@ -1342,6 +1343,81 @@ const sdTableMobileFilterClear = (item, value, ctx) => {
|
|
|
1342
1343
|
return next;
|
|
1343
1344
|
};
|
|
1344
1345
|
|
|
1346
|
+
/**
|
|
1347
|
+
* Deep copy of a filter value for a working copy (mobile filter drawer).
|
|
1348
|
+
* why: `JSON.parse(JSON.stringify())` biến `Date` thành chuỗi ISO và bỏ key `undefined`, nên giá trị default kiểu ngày
|
|
1349
|
+
* đổi kiểu sau khi Áp dụng và so sánh trước/sau luôn lệch. Object khác plain object/array (File, class) giữ tham chiếu.
|
|
1350
|
+
*/
|
|
1351
|
+
const cloneTableFilterValue = (value) => {
|
|
1352
|
+
if (value === null || value === undefined)
|
|
1353
|
+
return {};
|
|
1354
|
+
return copy(value);
|
|
1355
|
+
};
|
|
1356
|
+
const copy = (value) => {
|
|
1357
|
+
if (value instanceof Date)
|
|
1358
|
+
return new Date(value.getTime());
|
|
1359
|
+
if (Array.isArray(value))
|
|
1360
|
+
return value.map(item => copy(item));
|
|
1361
|
+
if (value && typeof value === 'object' && Object.getPrototypeOf(value) === Object.prototype) {
|
|
1362
|
+
const result = {};
|
|
1363
|
+
for (const key of Object.keys(value))
|
|
1364
|
+
result[key] = copy(value[key]);
|
|
1365
|
+
return result;
|
|
1366
|
+
}
|
|
1367
|
+
return value;
|
|
1368
|
+
};
|
|
1369
|
+
const same$1 = (a, b) => {
|
|
1370
|
+
if (a === b)
|
|
1371
|
+
return true;
|
|
1372
|
+
try {
|
|
1373
|
+
return Utilities.hash({ value: a }) === Utilities.hash({ value: b });
|
|
1374
|
+
}
|
|
1375
|
+
catch {
|
|
1376
|
+
return false;
|
|
1377
|
+
}
|
|
1378
|
+
};
|
|
1379
|
+
const safely = (callback) => {
|
|
1380
|
+
try {
|
|
1381
|
+
callback();
|
|
1382
|
+
}
|
|
1383
|
+
catch (error) {
|
|
1384
|
+
// why: callback của app lỗi không được chặn các callback còn lại hay việc đóng drawer.
|
|
1385
|
+
console.error(error);
|
|
1386
|
+
}
|
|
1387
|
+
};
|
|
1388
|
+
/**
|
|
1389
|
+
* Callbacks of the filters a commit changed, for UIs that edit a working copy and write it once (mobile filter
|
|
1390
|
+
* drawer). The desktop controls call them on each change; here they run once per changed filter, after the write.
|
|
1391
|
+
* - external filter `onChange(value)` — every type except `custom` (its template owns its events);
|
|
1392
|
+
* - `filter.operatorChange(column, operator)` for a column whose operator changed;
|
|
1393
|
+
* - column `filter.onChange(value, column, columnFilter)` only when `columnOnChange(column)` says so (a control that
|
|
1394
|
+
* already called it while editing, such as `column-filter`, must not call it twice).
|
|
1395
|
+
*/
|
|
1396
|
+
const runTableFilterCallbacks = (args) => {
|
|
1397
|
+
const { previous, next } = args;
|
|
1398
|
+
for (const item of args.externalFilters ?? []) {
|
|
1399
|
+
if (item.type === 'custom' || !item.onChange)
|
|
1400
|
+
continue;
|
|
1401
|
+
const value = next?.externalFilter?.[item.field];
|
|
1402
|
+
if (same$1(previous?.externalFilter?.[item.field], value))
|
|
1403
|
+
continue;
|
|
1404
|
+
safely(() => item.onChange(value));
|
|
1405
|
+
}
|
|
1406
|
+
for (const column of args.columns ?? []) {
|
|
1407
|
+
const operator = next?.columnOperator?.[column.field];
|
|
1408
|
+
if (args.operatorChange && operator && !same$1(previous?.columnOperator?.[column.field], operator)) {
|
|
1409
|
+
safely(() => args.operatorChange(column, operator));
|
|
1410
|
+
}
|
|
1411
|
+
const onChange = column.filter?.onChange;
|
|
1412
|
+
if (!onChange || !args.columnOnChange?.(column))
|
|
1413
|
+
continue;
|
|
1414
|
+
const value = next?.columnFilter?.[column.field];
|
|
1415
|
+
if (same$1(previous?.columnFilter?.[column.field], value))
|
|
1416
|
+
continue;
|
|
1417
|
+
safely(() => onChange(value, column, next?.columnFilter ?? {}));
|
|
1418
|
+
}
|
|
1419
|
+
};
|
|
1420
|
+
|
|
1345
1421
|
/** Drag distance after which a released handle closes the sheet. */
|
|
1346
1422
|
const SD_TABLE_SHEET_DISMISS_DISTANCE = 80;
|
|
1347
1423
|
/**
|
|
@@ -1546,7 +1622,7 @@ class ColumnFilterComponent {
|
|
|
1546
1622
|
if (!col?.filter?.disabled && col?.filter?.operator?.enable) {
|
|
1547
1623
|
const out = [];
|
|
1548
1624
|
for (const value of col.filter.operator.list ?? []) {
|
|
1549
|
-
const entry = OPERATORS.find(e => e.value === value);
|
|
1625
|
+
const entry = OPERATORS$1.find(e => e.value === value);
|
|
1550
1626
|
if (entry)
|
|
1551
1627
|
out.push(entry);
|
|
1552
1628
|
}
|
|
@@ -1875,14 +1951,14 @@ class SdTableMobileFilterFieldComponent {
|
|
|
1875
1951
|
});
|
|
1876
1952
|
}
|
|
1877
1953
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: SdTableMobileFilterFieldComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1878
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.25", type: SdTableMobileFilterFieldComponent, isStandalone: true, selector: "sd-table-mobile-filter-field", inputs: { item: { classPropertyName: "item", publicName: "item", isSignal: true, isRequired: true, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: true, transformFunction: null }, ctx: { classPropertyName: "ctx", publicName: "ctx", isSignal: true, isRequired: true, transformFunction: null }, revision: { classPropertyName: "revision", publicName: "revision", isSignal: true, isRequired: false, transformFunction: null }, cacheValues: { classPropertyName: "cacheValues", publicName: "cacheValues", isSignal: true, isRequired: false, transformFunction: null }, labels: { classPropertyName: "labels", publicName: "labels", isSignal: true, isRequired: false, transformFunction: null }, autoId: { classPropertyName: "autoId", publicName: "autoId", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { changed: "changed" }, ngImport: i0, template: "@let _kind = kind();\n@let _item = item();\n@let _value = value();\n@let _autoId = autoId();\n@let _operatorItems = operatorItems();\n@let _raw = raw();\n@if (_kind !== 'custom') {\n <!-- Operator line: a text button with the operator menu when the field offers a choice. -->\n @if (_operatorItems.length > 1) {\n <button\n mat-button\n type=\"button\"\n class=\"sd-mobile-field-operator\"\n [matMenuTriggerFor]=\"operatorMenu\"\n [attr.data-autoid]=\"_autoId ? _autoId + '-operator' : null\">\n {{ operatorLabel() }}\n <sd-icon name=\"arrow_drop_down\" size=\"18px\"></sd-icon>\n </button>\n <mat-menu #operatorMenu=\"matMenu\" class=\"sd-table-mobile-operator-menu\">\n @for (entry of _operatorItems; track entry.value) {\n <button mat-menu-item type=\"button\" (click)=\"setOperator(entry.value)\">\n <span class=\"sd-mobile-field-operator-icon\" [innerHTML]=\"entry.icon\"></span>\n <span>{{ entry.display }}</span>\n </button>\n }\n </mat-menu>\n } @else if (operatorLabel()) {\n <div class=\"sd-mobile-field-operator-text\">{{ operatorLabel() }}</div>\n }\n}\n@if (!noData()) {\n @switch (_kind) {\n @case ('options') {\n @if (showSearch()) {\n <sd-input\n class=\"sd-mobile-field-search\"\n [autoId]=\"_autoId ? _autoId + '-search' : null\"\n [placeholder]=\"'core.component.table.mobile.search-options' | sdTranslate\"\n [model]=\"search()\"\n (modelChange)=\"onSearch($event)\"\n hideInlineError\n clearable></sd-input>\n }\n @if (multiple()) {\n <div class=\"sd-mobile-field-list\" role=\"group\" [attr.aria-label]=\"_item.label\">\n @for (option of shownOptions(); track option.value) {\n <sd-checkbox\n class=\"sd-mobile-field-row\"\n [autoId]=\"_autoId ? _autoId + '-option-' + $index : null\"\n [label]=\"option.label\"\n [model]=\"isChecked(option.value)\"\n (modelChange)=\"toggle(option.value, $event)\"></sd-checkbox>\n }\n </div>\n } @else {\n <sd-radio\n class=\"sd-mobile-field-list sd-mobile-field-radio\"\n [autoId]=\"_autoId ? _autoId + '-options' : null\"\n display=\"column\"\n [items]=\"shownOptions()\"\n valueField=\"value\"\n displayField=\"label\"\n [model]=\"$any(_raw)\"\n (modelChange)=\"setRaw($event)\"></sd-radio>\n }\n }\n @case ('boolean') {\n <sd-radio\n class=\"sd-mobile-field-list sd-mobile-field-radio\"\n [autoId]=\"_autoId ? _autoId + '-options' : null\"\n display=\"column\"\n [items]=\"booleanOptions()\"\n valueField=\"value\"\n displayField=\"label\"\n [model]=\"$any(_raw)\"\n (modelChange)=\"setRaw($event)\"></sd-radio>\n }\n @case ('date-range') {\n <div class=\"sd-mobile-field-pair\">\n <sd-date\n [label]=\"'core.component.table.mobile.date-from' | sdTranslate\"\n [autoId]=\"_autoId ? _autoId + '-from' : null\"\n [model]=\"_raw?.from\"\n (modelChange)=\"setRange('from', $event)\"\n hideInlineError></sd-date>\n <sd-date\n [label]=\"'core.component.table.mobile.date-to' | sdTranslate\"\n [autoId]=\"_autoId ? _autoId + '-to' : null\"\n [model]=\"_raw?.to\"\n (modelChange)=\"setRange('to', $event)\"\n hideInlineError></sd-date>\n </div>\n }\n @case ('number-range') {\n <div class=\"sd-mobile-field-pair sd-mobile-field-pair--dash\">\n <sd-input-number\n [autoId]=\"_autoId ? _autoId + '-from' : null\"\n [model]=\"_raw?.from\"\n (modelChange)=\"setRange('from', $event)\"\n hideInlineError></sd-input-number>\n <span class=\"sd-mobile-field-dash\" aria-hidden=\"true\">\u2013</span>\n <sd-input-number\n [autoId]=\"_autoId ? _autoId + '-to' : null\"\n [model]=\"_raw?.to\"\n (modelChange)=\"setRange('to', $event)\"\n hideInlineError></sd-input-number>\n </div>\n }\n @case ('date') {\n <sd-date [autoId]=\"_autoId ? _autoId + '-value' : null\" [model]=\"_raw\" (modelChange)=\"setRaw($event)\" hideInlineError></sd-date>\n }\n @case ('datetime') {\n <sd-datetime\n [autoId]=\"_autoId ? _autoId + '-value' : null\"\n [model]=\"_raw\"\n (modelChange)=\"setRaw($event)\"\n hideInlineError></sd-datetime>\n }\n @case ('number') {\n <sd-input-number\n [autoId]=\"_autoId ? _autoId + '-value' : null\"\n [model]=\"_raw\"\n (modelChange)=\"setRaw($event)\"\n hideInlineError></sd-input-number>\n }\n @case ('text') {\n <sd-input [autoId]=\"_autoId ? _autoId + '-value' : null\" [model]=\"_raw\" (modelChange)=\"setRaw($event)\" hideInlineError></sd-input>\n }\n @case ('custom') {\n @if (_item.custom; as custom) {\n <div class=\"sd-mobile-field-custom\" (input)=\"onCustomChange()\" (change)=\"onCustomChange()\">\n @switch (custom.kind) {\n @case ('column') {\n <column-filter\n [autoId]=\"_autoId\"\n [column]=\"$any(custom).column\"\n [columnFilter]=\"_value.columnFilter!\"\n [operator]=\"$any(_value.columnOperator?.[$any(custom).column.field])\"\n (operatorChange)=\"_value.columnOperator![$any(custom).column.field] = $event!; onCustomChange()\"\n (filterChange)=\"onCustomChange()\"\n isMobile></column-filter>\n }\n @case ('external') {\n @let external = $any(custom).external;\n @if (external.filterDef) {\n <ng-container\n *ngTemplateOutlet=\"\n external.filterDef;\n context: { externalFilter: _value.externalFilter, autoId: _autoId }\n \"></ng-container>\n } @else if (external.type === 'date') {\n <!-- why: a date without GREATER_OR_EQUAL / LESS_OR_EQUAL is off the bar, but its raw value still reaches onFilter. -->\n <sd-date\n [autoId]=\"_autoId ? _autoId + '-value' : null\"\n [model]=\"_value.externalFilter?.[external.field]\"\n [min]=\"external.minDate\"\n [max]=\"external.maxDate\"\n (modelChange)=\"setExternal(external.field, $event)\"\n hideInlineError></sd-date>\n } @else if (external.type === 'datetime') {\n <sd-datetime\n [autoId]=\"_autoId ? _autoId + '-value' : null\"\n [model]=\"_value.externalFilter?.[external.field]\"\n [min]=\"external.minDate\"\n [max]=\"external.maxDate\"\n (modelChange)=\"setExternal(external.field, $event)\"\n hideInlineError></sd-datetime>\n }\n }\n @case ('def') {\n <ng-container\n *ngTemplateOutlet=\"$any(custom).def.templateRef; context: { externalFilter: _value.externalFilter }\"></ng-container>\n }\n }\n </div>\n }\n }\n }\n}\n", styles: [":host{display:flex;flex-direction:column;gap:8px;min-width:0;--sd-control-height-md: var(--sd-control-height-coarse, 44px)}.sd-mobile-field-operator{align-self:flex-start;display:inline-flex;align-items:center;min-height:32px;padding-inline:0;font-size:var(--sd-font-size-12, 12px);color:var(--sd-primary)}.sd-mobile-field-operator-text{font-size:var(--sd-font-size-12, 12px);line-height:var(--sd-line-height-16, 16px);color:var(--sd-text-secondary)}.sd-mobile-field-operator-icon{display:inline-flex;margin-inline-end:12px}.sd-mobile-field-list{display:flex;flex-direction:column;min-width:0}.sd-mobile-field-row{display:flex;align-items:center;min-height:48px}.sd-mobile-field-radio ::ng-deep .mat-mdc-radio-button{display:flex;min-height:48px;align-items:center}.sd-mobile-field-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:end}.sd-mobile-field-pair--dash{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:8px;align-items:center}.sd-mobile-field-dash{color:var(--sd-text-secondary)}.sd-mobile-field-custom{display:flex;flex-direction:column;gap:12px;min-width:0}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1$2.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatMenuModule }, { kind: "component", type: i2.MatMenu, selector: "mat-menu", inputs: ["backdropClass", "aria-label", "aria-labelledby", "aria-describedby", "xPosition", "yPosition", "overlapTrigger", "hasBackdrop", "class", "classList"], outputs: ["closed", "close"], exportAs: ["matMenu"] }, { kind: "component", type: i2.MatMenuItem, selector: "[mat-menu-item]", inputs: ["role", "disabled", "disableRipple"], exportAs: ["matMenuItem"] }, { kind: "directive", type: i2.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", inputs: ["mat-menu-trigger-for", "matMenuTriggerFor", "matMenuTriggerData", "matMenuTriggerRestoreFocus"], outputs: ["menuOpened", "onMenuOpen", "menuClosed", "onMenuClose"], exportAs: ["matMenuTrigger"] }, { kind: "component", type: SdCheckbox, selector: "sd-checkbox", inputs: ["autoId", "name", "form", "label", "color", "disabled", "size", "viewed", "inlineError", "model"], outputs: ["modelChange", "sdChange"] }, { kind: "component", type: SdDate, selector: "sd-date", inputs: ["autoId", "name", "size", "operators", "operator", "form", "label", "helperText", "placeholder", "hideInlineError", "required", "disabled", "viewed", "clearable", "inlineError", "hyperlink", "appearance", "floatLabel", "labelPlacement", "min", "minDate", "max", "maxDate", "transform", "model"], outputs: ["operatorChange", "modelChange", "sdChange", "sdFocus"] }, { kind: "component", type: SdDatetime, selector: "sd-datetime", inputs: ["autoId", "name", "size", "form", "label", "helperText", "placeholder", "hideInlineError", "required", "disabled", "viewed", "showSeconds", "clearable", "inlineError", "hyperlink", "appearance", "floatLabel", "labelPlacement", "min", "minDate", "max", "maxDate", "transform", "model"], outputs: ["modelChange", "sdChange", "sdFocus"] }, { kind: "component", type: SdInput, selector: "sd-input", inputs: ["autoId", "name", "appearance", "floatLabel", "labelPlacement", "size", "operators", "operator", "form", "label", "helperText", "placeholder", "type", "mask", "inputmode", "autocomplete", "hideInlineError", "blurOnEnter", "clearable", "required", "readonly", "disabled", "viewed", "minlength", "maxlength", "pattern", "patternErrorMessage", "validator", "inlineError", "hyperlink", "model"], outputs: ["operatorChange", "modelChange", "sdChange", "sdFocus", "sdBlur", "keyupEnter", "cleared", "sdFocusForceBlur"] }, { kind: "component", type: SdInputNumber, selector: "sd-input-number", inputs: ["autoId", "name", "size", "operators", "operator", "form", "label", "helperText", "placeholder", "hideInlineError", "blurOnEnter", "clearable", "required", "readonly", "disabled", "viewed", "type", "precision", "format", "min", "max", "validator", "inlineError", "hyperlink", "appearance", "floatLabel", "labelPlacement", "inputmode", "model"], outputs: ["operatorChange", "modelChange", "sdChange", "sdFocus", "sdBlur", "keyupEnter", "cleared", "sdFocusForceBlur"] }, { kind: "component", type: SdRadio, selector: "sd-radio", inputs: ["autoId", "name", "form", "label", "placeholder", "display", "items", "valueField", "displayField", "required", "inlineError", "disabled", "viewed", "color", "hyperlink", "model"], outputs: ["modelChange", "sdChange", "sdSelection"] }, { kind: "component", type: SdIcon, selector: "sd-icon", inputs: ["name", "fontIcon", "color", "set", "fontSet", "size", "strokeWidth", "absoluteStrokeWidth", "ariaLabel"] }, { kind: "component", type: ColumnFilterComponent, selector: "column-filter", inputs: ["autoId", "column", "columnFilter", "cacheValues", "value", "operator", "isMobile"], outputs: ["operatorChange", "filterChange", "filterCommit"] }, { kind: "pipe", type: SdTranslatePipe, name: "sdTranslate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1954
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.25", type: SdTableMobileFilterFieldComponent, isStandalone: true, selector: "sd-table-mobile-filter-field", inputs: { item: { classPropertyName: "item", publicName: "item", isSignal: true, isRequired: true, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: true, transformFunction: null }, ctx: { classPropertyName: "ctx", publicName: "ctx", isSignal: true, isRequired: true, transformFunction: null }, revision: { classPropertyName: "revision", publicName: "revision", isSignal: true, isRequired: false, transformFunction: null }, cacheValues: { classPropertyName: "cacheValues", publicName: "cacheValues", isSignal: true, isRequired: false, transformFunction: null }, labels: { classPropertyName: "labels", publicName: "labels", isSignal: true, isRequired: false, transformFunction: null }, autoId: { classPropertyName: "autoId", publicName: "autoId", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { changed: "changed" }, ngImport: i0, template: "@let _kind = kind();\n@let _item = item();\n@let _value = value();\n@let _autoId = autoId();\n@let _operatorItems = operatorItems();\n@let _raw = raw();\n@let _operator = operator();\n@if (_kind !== 'custom') {\n <!-- Operator line: a text button with the operator menu when the field offers a choice. -->\n @if (_operatorItems.length > 1) {\n <sd-button\n class=\"sd-mobile-field-operator\"\n type=\"text\"\n color=\"primary\"\n suffixIcon=\"arrow_drop_down\"\n [title]=\"operatorLabel()\"\n [attr.data-autoid]=\"_autoId ? _autoId + '-operator' : null\">\n @for (entry of _operatorItems; track entry.value) {\n <sd-button-item [suffixIcon]=\"entry.value === _operator ? 'check' : null\" (click)=\"setOperator(entry.value)\">\n <span class=\"sd-mobile-field-operator-icon\" [innerHTML]=\"entry.icon\"></span>\n <span>{{ entry.display }}</span>\n </sd-button-item>\n }\n </sd-button>\n } @else if (operatorLabel()) {\n <div class=\"sd-mobile-field-operator-text\">{{ operatorLabel() }}</div>\n }\n}\n@if (!noData()) {\n @switch (_kind) {\n @case ('options') {\n @if (showSearch()) {\n <sd-input\n class=\"sd-mobile-field-search\"\n [autoId]=\"_autoId ? _autoId + '-search' : null\"\n [placeholder]=\"'core.component.table.mobile.search-options' | sdTranslate\"\n [model]=\"search()\"\n (modelChange)=\"onSearch($event)\"\n hideInlineError\n clearable></sd-input>\n }\n @if (multiple()) {\n <div class=\"sd-mobile-field-list\" role=\"group\" [attr.aria-label]=\"_item.label\">\n @for (option of shownOptions(); track option.value) {\n <sd-checkbox\n class=\"sd-mobile-field-row\"\n [autoId]=\"_autoId ? _autoId + '-option-' + $index : null\"\n [label]=\"option.label\"\n [model]=\"isChecked(option.value)\"\n (modelChange)=\"toggle(option.value, $event)\"></sd-checkbox>\n }\n </div>\n } @else {\n <sd-radio\n class=\"sd-mobile-field-list sd-mobile-field-radio\"\n [autoId]=\"_autoId ? _autoId + '-options' : null\"\n display=\"column\"\n [items]=\"shownOptions()\"\n valueField=\"value\"\n displayField=\"label\"\n [model]=\"$any(_raw)\"\n (modelChange)=\"setRaw($event)\"></sd-radio>\n }\n }\n @case ('boolean') {\n <sd-radio\n class=\"sd-mobile-field-list sd-mobile-field-radio\"\n [autoId]=\"_autoId ? _autoId + '-options' : null\"\n display=\"column\"\n [items]=\"booleanOptions()\"\n valueField=\"value\"\n displayField=\"label\"\n [model]=\"$any(_raw)\"\n (modelChange)=\"setRaw($event)\"></sd-radio>\n }\n @case ('date-range') {\n <div class=\"sd-mobile-field-pair\">\n <sd-date\n [label]=\"'core.component.table.mobile.date-from' | sdTranslate\"\n [autoId]=\"_autoId ? _autoId + '-from' : null\"\n [model]=\"_raw?.from\"\n (modelChange)=\"setRange('from', $event)\"\n hideInlineError></sd-date>\n <sd-date\n [label]=\"'core.component.table.mobile.date-to' | sdTranslate\"\n [autoId]=\"_autoId ? _autoId + '-to' : null\"\n [model]=\"_raw?.to\"\n (modelChange)=\"setRange('to', $event)\"\n hideInlineError></sd-date>\n </div>\n }\n @case ('number-range') {\n <div class=\"sd-mobile-field-pair sd-mobile-field-pair--dash\">\n <sd-input-number\n [autoId]=\"_autoId ? _autoId + '-from' : null\"\n [model]=\"_raw?.from\"\n (modelChange)=\"setRange('from', $event)\"\n hideInlineError></sd-input-number>\n <span class=\"sd-mobile-field-dash\" aria-hidden=\"true\">\u2013</span>\n <sd-input-number\n [autoId]=\"_autoId ? _autoId + '-to' : null\"\n [model]=\"_raw?.to\"\n (modelChange)=\"setRange('to', $event)\"\n hideInlineError></sd-input-number>\n </div>\n }\n @case ('date') {\n <sd-date [autoId]=\"_autoId ? _autoId + '-value' : null\" [model]=\"_raw\" (modelChange)=\"setRaw($event)\" hideInlineError></sd-date>\n }\n @case ('datetime') {\n <sd-datetime\n [autoId]=\"_autoId ? _autoId + '-value' : null\"\n [model]=\"_raw\"\n (modelChange)=\"setRaw($event)\"\n hideInlineError></sd-datetime>\n }\n @case ('number') {\n <sd-input-number\n [autoId]=\"_autoId ? _autoId + '-value' : null\"\n [model]=\"_raw\"\n (modelChange)=\"setRaw($event)\"\n hideInlineError></sd-input-number>\n }\n @case ('text') {\n <sd-input [autoId]=\"_autoId ? _autoId + '-value' : null\" [model]=\"_raw\" (modelChange)=\"setRaw($event)\" hideInlineError></sd-input>\n }\n @case ('custom') {\n @if (_item.custom; as custom) {\n <div class=\"sd-mobile-field-custom\" (input)=\"onCustomChange()\" (change)=\"onCustomChange()\">\n @switch (custom.kind) {\n @case ('column') {\n <column-filter\n [autoId]=\"_autoId\"\n [column]=\"$any(custom).column\"\n [columnFilter]=\"_value.columnFilter!\"\n [operator]=\"$any(_value.columnOperator?.[$any(custom).column.field])\"\n (operatorChange)=\"_value.columnOperator![$any(custom).column.field] = $event!; onCustomChange()\"\n (filterChange)=\"onCustomChange()\"\n isMobile></column-filter>\n }\n @case ('external') {\n @let external = $any(custom).external;\n @if (external.filterDef) {\n <ng-container\n *ngTemplateOutlet=\"\n external.filterDef;\n context: { externalFilter: _value.externalFilter, autoId: _autoId }\n \"></ng-container>\n } @else if (external.type === 'date') {\n <!-- why: a date without GREATER_OR_EQUAL / LESS_OR_EQUAL is off the bar, but its raw value still reaches onFilter. -->\n <sd-date\n [autoId]=\"_autoId ? _autoId + '-value' : null\"\n [model]=\"_value.externalFilter?.[external.field]\"\n [min]=\"external.minDate\"\n [max]=\"external.maxDate\"\n (modelChange)=\"setExternal(external.field, $event)\"\n hideInlineError></sd-date>\n } @else if (external.type === 'datetime') {\n <sd-datetime\n [autoId]=\"_autoId ? _autoId + '-value' : null\"\n [model]=\"_value.externalFilter?.[external.field]\"\n [min]=\"external.minDate\"\n [max]=\"external.maxDate\"\n (modelChange)=\"setExternal(external.field, $event)\"\n hideInlineError></sd-datetime>\n }\n }\n @case ('def') {\n <ng-container\n *ngTemplateOutlet=\"$any(custom).def.templateRef; context: { externalFilter: _value.externalFilter }\"></ng-container>\n }\n }\n </div>\n }\n }\n }\n}\n", styles: [":host{display:flex;flex-direction:column;gap:8px;min-width:0;--sd-control-height-md: var(--sd-control-height-coarse, 44px)}.sd-mobile-field-operator{align-self:flex-start}.sd-mobile-field-operator-text{font-size:var(--sd-font-size-12, 12px);line-height:var(--sd-line-height-16, 16px);color:var(--sd-text-secondary)}.sd-mobile-field-operator-icon{display:inline-flex;margin-inline-end:12px}.sd-mobile-field-list{display:flex;flex-direction:column;min-width:0}.sd-mobile-field-row{display:flex;align-items:center;min-height:48px}.sd-mobile-field-radio ::ng-deep .mat-mdc-radio-button{display:flex;min-height:48px;align-items:center}.sd-mobile-field-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:end}.sd-mobile-field-pair--dash{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:8px;align-items:center}.sd-mobile-field-dash{color:var(--sd-text-secondary)}.sd-mobile-field-custom{display:flex;flex-direction:column;gap:12px;min-width:0}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: SdButton, selector: "sd-button", inputs: ["autoId", "type", "color", "size", "fontSet", "title", "width", "tooltip", "prefixIcon", "suffixIcon", "disabled", "openOnHover", "loading", "block", "htmlType", "indicator", "indicatorColor", "indicatorMax", "indicatorLabel"], outputs: ["click"] }, { kind: "component", type: SdButtonItem, selector: "sd-button-item", inputs: ["color", "prefixIcon", "suffixIcon", "fontSet", "disabled", "checked", "tooltip", "autoId"], outputs: ["click"] }, { kind: "component", type: SdCheckbox, selector: "sd-checkbox", inputs: ["autoId", "name", "form", "label", "color", "disabled", "size", "viewed", "inlineError", "model"], outputs: ["modelChange", "sdChange"] }, { kind: "component", type: SdDate, selector: "sd-date", inputs: ["autoId", "name", "size", "operators", "operator", "form", "label", "helperText", "placeholder", "hideInlineError", "required", "disabled", "viewed", "clearable", "inlineError", "hyperlink", "appearance", "floatLabel", "labelPlacement", "min", "minDate", "max", "maxDate", "transform", "model"], outputs: ["operatorChange", "modelChange", "sdChange", "sdFocus"] }, { kind: "component", type: SdDatetime, selector: "sd-datetime", inputs: ["autoId", "name", "size", "form", "label", "helperText", "placeholder", "hideInlineError", "required", "disabled", "viewed", "showSeconds", "clearable", "inlineError", "hyperlink", "appearance", "floatLabel", "labelPlacement", "min", "minDate", "max", "maxDate", "transform", "model"], outputs: ["modelChange", "sdChange", "sdFocus"] }, { kind: "component", type: SdInput, selector: "sd-input", inputs: ["autoId", "name", "appearance", "floatLabel", "labelPlacement", "size", "operators", "operator", "form", "label", "helperText", "placeholder", "type", "mask", "inputmode", "autocomplete", "hideInlineError", "blurOnEnter", "clearable", "required", "readonly", "disabled", "viewed", "minlength", "maxlength", "pattern", "patternErrorMessage", "validator", "inlineError", "hyperlink", "model"], outputs: ["operatorChange", "modelChange", "sdChange", "sdFocus", "sdBlur", "keyupEnter", "cleared", "sdFocusForceBlur"] }, { kind: "component", type: SdInputNumber, selector: "sd-input-number", inputs: ["autoId", "name", "size", "operators", "operator", "form", "label", "helperText", "placeholder", "hideInlineError", "blurOnEnter", "clearable", "required", "readonly", "disabled", "viewed", "type", "precision", "format", "min", "max", "validator", "inlineError", "hyperlink", "appearance", "floatLabel", "labelPlacement", "inputmode", "model"], outputs: ["operatorChange", "modelChange", "sdChange", "sdFocus", "sdBlur", "keyupEnter", "cleared", "sdFocusForceBlur"] }, { kind: "component", type: SdRadio, selector: "sd-radio", inputs: ["autoId", "name", "form", "label", "placeholder", "display", "items", "valueField", "displayField", "required", "inlineError", "disabled", "viewed", "color", "hyperlink", "model"], outputs: ["modelChange", "sdChange", "sdSelection"] }, { kind: "component", type: ColumnFilterComponent, selector: "column-filter", inputs: ["autoId", "column", "columnFilter", "cacheValues", "value", "operator", "isMobile"], outputs: ["operatorChange", "filterChange", "filterCommit"] }, { kind: "pipe", type: SdTranslatePipe, name: "sdTranslate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1879
1955
|
}
|
|
1880
1956
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: SdTableMobileFilterFieldComponent, decorators: [{
|
|
1881
1957
|
type: Component,
|
|
1882
1958
|
args: [{ selector: 'sd-table-mobile-filter-field', changeDetection: ChangeDetectionStrategy.OnPush, imports: [
|
|
1883
1959
|
NgTemplateOutlet,
|
|
1884
|
-
|
|
1885
|
-
|
|
1960
|
+
SdButton,
|
|
1961
|
+
SdButtonItem,
|
|
1886
1962
|
SdCheckbox,
|
|
1887
1963
|
SdDate,
|
|
1888
1964
|
SdDatetime,
|
|
@@ -1892,10 +1968,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImpo
|
|
|
1892
1968
|
SdIcon,
|
|
1893
1969
|
SdTranslatePipe,
|
|
1894
1970
|
ColumnFilterComponent,
|
|
1895
|
-
], template: "@let _kind = kind();\n@let _item = item();\n@let _value = value();\n@let _autoId = autoId();\n@let _operatorItems = operatorItems();\n@let _raw = raw();\n@if (_kind !== 'custom') {\n <!-- Operator line: a text button with the operator menu when the field offers a choice. -->\n @if (_operatorItems.length > 1) {\n <button\n
|
|
1971
|
+
], template: "@let _kind = kind();\n@let _item = item();\n@let _value = value();\n@let _autoId = autoId();\n@let _operatorItems = operatorItems();\n@let _raw = raw();\n@let _operator = operator();\n@if (_kind !== 'custom') {\n <!-- Operator line: a text button with the operator menu when the field offers a choice. -->\n @if (_operatorItems.length > 1) {\n <sd-button\n class=\"sd-mobile-field-operator\"\n type=\"text\"\n color=\"primary\"\n suffixIcon=\"arrow_drop_down\"\n [title]=\"operatorLabel()\"\n [attr.data-autoid]=\"_autoId ? _autoId + '-operator' : null\">\n @for (entry of _operatorItems; track entry.value) {\n <sd-button-item [suffixIcon]=\"entry.value === _operator ? 'check' : null\" (click)=\"setOperator(entry.value)\">\n <span class=\"sd-mobile-field-operator-icon\" [innerHTML]=\"entry.icon\"></span>\n <span>{{ entry.display }}</span>\n </sd-button-item>\n }\n </sd-button>\n } @else if (operatorLabel()) {\n <div class=\"sd-mobile-field-operator-text\">{{ operatorLabel() }}</div>\n }\n}\n@if (!noData()) {\n @switch (_kind) {\n @case ('options') {\n @if (showSearch()) {\n <sd-input\n class=\"sd-mobile-field-search\"\n [autoId]=\"_autoId ? _autoId + '-search' : null\"\n [placeholder]=\"'core.component.table.mobile.search-options' | sdTranslate\"\n [model]=\"search()\"\n (modelChange)=\"onSearch($event)\"\n hideInlineError\n clearable></sd-input>\n }\n @if (multiple()) {\n <div class=\"sd-mobile-field-list\" role=\"group\" [attr.aria-label]=\"_item.label\">\n @for (option of shownOptions(); track option.value) {\n <sd-checkbox\n class=\"sd-mobile-field-row\"\n [autoId]=\"_autoId ? _autoId + '-option-' + $index : null\"\n [label]=\"option.label\"\n [model]=\"isChecked(option.value)\"\n (modelChange)=\"toggle(option.value, $event)\"></sd-checkbox>\n }\n </div>\n } @else {\n <sd-radio\n class=\"sd-mobile-field-list sd-mobile-field-radio\"\n [autoId]=\"_autoId ? _autoId + '-options' : null\"\n display=\"column\"\n [items]=\"shownOptions()\"\n valueField=\"value\"\n displayField=\"label\"\n [model]=\"$any(_raw)\"\n (modelChange)=\"setRaw($event)\"></sd-radio>\n }\n }\n @case ('boolean') {\n <sd-radio\n class=\"sd-mobile-field-list sd-mobile-field-radio\"\n [autoId]=\"_autoId ? _autoId + '-options' : null\"\n display=\"column\"\n [items]=\"booleanOptions()\"\n valueField=\"value\"\n displayField=\"label\"\n [model]=\"$any(_raw)\"\n (modelChange)=\"setRaw($event)\"></sd-radio>\n }\n @case ('date-range') {\n <div class=\"sd-mobile-field-pair\">\n <sd-date\n [label]=\"'core.component.table.mobile.date-from' | sdTranslate\"\n [autoId]=\"_autoId ? _autoId + '-from' : null\"\n [model]=\"_raw?.from\"\n (modelChange)=\"setRange('from', $event)\"\n hideInlineError></sd-date>\n <sd-date\n [label]=\"'core.component.table.mobile.date-to' | sdTranslate\"\n [autoId]=\"_autoId ? _autoId + '-to' : null\"\n [model]=\"_raw?.to\"\n (modelChange)=\"setRange('to', $event)\"\n hideInlineError></sd-date>\n </div>\n }\n @case ('number-range') {\n <div class=\"sd-mobile-field-pair sd-mobile-field-pair--dash\">\n <sd-input-number\n [autoId]=\"_autoId ? _autoId + '-from' : null\"\n [model]=\"_raw?.from\"\n (modelChange)=\"setRange('from', $event)\"\n hideInlineError></sd-input-number>\n <span class=\"sd-mobile-field-dash\" aria-hidden=\"true\">\u2013</span>\n <sd-input-number\n [autoId]=\"_autoId ? _autoId + '-to' : null\"\n [model]=\"_raw?.to\"\n (modelChange)=\"setRange('to', $event)\"\n hideInlineError></sd-input-number>\n </div>\n }\n @case ('date') {\n <sd-date [autoId]=\"_autoId ? _autoId + '-value' : null\" [model]=\"_raw\" (modelChange)=\"setRaw($event)\" hideInlineError></sd-date>\n }\n @case ('datetime') {\n <sd-datetime\n [autoId]=\"_autoId ? _autoId + '-value' : null\"\n [model]=\"_raw\"\n (modelChange)=\"setRaw($event)\"\n hideInlineError></sd-datetime>\n }\n @case ('number') {\n <sd-input-number\n [autoId]=\"_autoId ? _autoId + '-value' : null\"\n [model]=\"_raw\"\n (modelChange)=\"setRaw($event)\"\n hideInlineError></sd-input-number>\n }\n @case ('text') {\n <sd-input [autoId]=\"_autoId ? _autoId + '-value' : null\" [model]=\"_raw\" (modelChange)=\"setRaw($event)\" hideInlineError></sd-input>\n }\n @case ('custom') {\n @if (_item.custom; as custom) {\n <div class=\"sd-mobile-field-custom\" (input)=\"onCustomChange()\" (change)=\"onCustomChange()\">\n @switch (custom.kind) {\n @case ('column') {\n <column-filter\n [autoId]=\"_autoId\"\n [column]=\"$any(custom).column\"\n [columnFilter]=\"_value.columnFilter!\"\n [operator]=\"$any(_value.columnOperator?.[$any(custom).column.field])\"\n (operatorChange)=\"_value.columnOperator![$any(custom).column.field] = $event!; onCustomChange()\"\n (filterChange)=\"onCustomChange()\"\n isMobile></column-filter>\n }\n @case ('external') {\n @let external = $any(custom).external;\n @if (external.filterDef) {\n <ng-container\n *ngTemplateOutlet=\"\n external.filterDef;\n context: { externalFilter: _value.externalFilter, autoId: _autoId }\n \"></ng-container>\n } @else if (external.type === 'date') {\n <!-- why: a date without GREATER_OR_EQUAL / LESS_OR_EQUAL is off the bar, but its raw value still reaches onFilter. -->\n <sd-date\n [autoId]=\"_autoId ? _autoId + '-value' : null\"\n [model]=\"_value.externalFilter?.[external.field]\"\n [min]=\"external.minDate\"\n [max]=\"external.maxDate\"\n (modelChange)=\"setExternal(external.field, $event)\"\n hideInlineError></sd-date>\n } @else if (external.type === 'datetime') {\n <sd-datetime\n [autoId]=\"_autoId ? _autoId + '-value' : null\"\n [model]=\"_value.externalFilter?.[external.field]\"\n [min]=\"external.minDate\"\n [max]=\"external.maxDate\"\n (modelChange)=\"setExternal(external.field, $event)\"\n hideInlineError></sd-datetime>\n }\n }\n @case ('def') {\n <ng-container\n *ngTemplateOutlet=\"$any(custom).def.templateRef; context: { externalFilter: _value.externalFilter }\"></ng-container>\n }\n }\n </div>\n }\n }\n }\n}\n", styles: [":host{display:flex;flex-direction:column;gap:8px;min-width:0;--sd-control-height-md: var(--sd-control-height-coarse, 44px)}.sd-mobile-field-operator{align-self:flex-start}.sd-mobile-field-operator-text{font-size:var(--sd-font-size-12, 12px);line-height:var(--sd-line-height-16, 16px);color:var(--sd-text-secondary)}.sd-mobile-field-operator-icon{display:inline-flex;margin-inline-end:12px}.sd-mobile-field-list{display:flex;flex-direction:column;min-width:0}.sd-mobile-field-row{display:flex;align-items:center;min-height:48px}.sd-mobile-field-radio ::ng-deep .mat-mdc-radio-button{display:flex;min-height:48px;align-items:center}.sd-mobile-field-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:end}.sd-mobile-field-pair--dash{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:8px;align-items:center}.sd-mobile-field-dash{color:var(--sd-text-secondary)}.sd-mobile-field-custom{display:flex;flex-direction:column;gap:12px;min-width:0}\n"] }]
|
|
1896
1972
|
}], ctorParameters: () => [], propDecorators: { item: [{ type: i0.Input, args: [{ isSignal: true, alias: "item", required: true }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: true }] }], ctx: [{ type: i0.Input, args: [{ isSignal: true, alias: "ctx", required: true }] }], revision: [{ type: i0.Input, args: [{ isSignal: true, alias: "revision", required: false }] }], cacheValues: [{ type: i0.Input, args: [{ isSignal: true, alias: "cacheValues", required: false }] }], labels: [{ type: i0.Input, args: [{ isSignal: true, alias: "labels", required: false }] }], autoId: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoId", required: false }] }], changed: [{ type: i0.Output, args: ["changed"] }] } });
|
|
1897
1973
|
|
|
1898
|
-
const clone$1 = (value) => (value ? JSON.parse(JSON.stringify(value)) : value);
|
|
1899
1974
|
/**
|
|
1900
1975
|
* Sheet of one filter, opened from its chip (handoff table-mobile 4). Works on a copy: Apply writes that filter and
|
|
1901
1976
|
* reads once; Cancel, the scrim, a swipe down, Escape and Back drop the copy.
|
|
@@ -1929,7 +2004,7 @@ class SdTableMobileFieldSheetComponent {
|
|
|
1929
2004
|
if (!register || !item.source)
|
|
1930
2005
|
return;
|
|
1931
2006
|
this.item.set(item);
|
|
1932
|
-
this.working.set(
|
|
2007
|
+
this.working.set(cloneTableFilterValue(register.value.get()));
|
|
1933
2008
|
this.revision.update(value => value + 1);
|
|
1934
2009
|
// why: render the title first; Material puts the focus on the title (cdkFocusInitial) as soon as the sheet attaches.
|
|
1935
2010
|
this.#changes.detectChanges();
|
|
@@ -1974,6 +2049,15 @@ class SdTableMobileFieldSheetComponent {
|
|
|
1974
2049
|
}
|
|
1975
2050
|
this.sheet().close();
|
|
1976
2051
|
register.value.set(next);
|
|
2052
|
+
// why: control của sheet sửa bản nháp nên không gọi callback; gọi cho đúng filter này nếu nó đã đổi, sau khi ghi.
|
|
2053
|
+
runTableFilterCallbacks({
|
|
2054
|
+
previous: current,
|
|
2055
|
+
next,
|
|
2056
|
+
externalFilters: source.external ? [source.external] : [],
|
|
2057
|
+
columns: source.column ? [source.column] : [],
|
|
2058
|
+
operatorChange: this.table().tableOption()?.filter?.operatorChange,
|
|
2059
|
+
columnOnChange: () => true,
|
|
2060
|
+
});
|
|
1977
2061
|
}
|
|
1978
2062
|
/** Every close path ends here: drop the history entry the sheet pushed and the copy. */
|
|
1979
2063
|
onClosed() {
|
|
@@ -1985,11 +2069,11 @@ class SdTableMobileFieldSheetComponent {
|
|
|
1985
2069
|
this.revision.update(value => value + 1);
|
|
1986
2070
|
}
|
|
1987
2071
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: SdTableMobileFieldSheetComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1988
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.25", type: SdTableMobileFieldSheetComponent, isStandalone: true, selector: "sd-table-mobile-field-sheet", inputs: { table: { classPropertyName: "table", publicName: "table", isSignal: true, isRequired: true, transformFunction: null }, labels: { classPropertyName: "labels", publicName: "labels", isSignal: true, isRequired: false, transformFunction: null }, ctx: { classPropertyName: "ctx", publicName: "ctx", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "sheet", first: true, predicate: ["sheet"], descendants: true, isSignal: true }, { propertyName: "head", first: true, predicate: ["head"], descendants: true, isSignal: true }], ngImport: i0, template: "@let _item = item();\n@let _working = working();\n@let _ctx = ctx();\n@let _autoId = autoId();\n<sd-modal\n #sheet\n view=\"bottom-sheet\"\n [title]=\"_item?.label ?? ''\"\n [autoId]=\"_autoId ? _autoId + '-sheet' : undefined\"\n hideClose\n [disableBackdropClose]=\"false\"\n [closeOnNavigation]=\"false\"\n modalClass=\"sd-table-mobile-filter-sheet\"\n (sdClosed)=\"onClosed()\">\n <div sdHeaderLeft #head class=\"sd-mobile-sheet-head\">\n <span class=\"sd-mobile-sheet-handle\" aria-hidden=\"true\"></span>\n <div class=\"sd-mobile-sheet-title-row\">\n <!-- why: Material focuses the first tabbable element on open; the title keeps Clear from showing its focus fill. -->\n <h2 class=\"sd-mobile-sheet-title\" tabindex=\"-1\" cdkFocusInitial>{{ _item?.label }}</h2>\n <sd-button\n [autoId]=\"_autoId ? _autoId + '-clear' : null\"\n type=\"text\"\n color=\"primary\"\n size=\"md\"\n [title]=\"'core.component.table.mobile.clear-field' | sdTranslate\"\n (click)=\"clear()\"></sd-button>\n </div>\n </div>\n @if (_item && _working && _ctx) {\n <div class=\"sd-mobile-sheet-body\">\n <sd-table-mobile-filter-field\n [item]=\"_item\"\n [value]=\"_working\"\n [ctx]=\"_ctx\"\n [revision]=\"revision()\"\n [cacheValues]=\"table().cacheValues\"\n [labels]=\"labels()\"\n [autoId]=\"_autoId\"\n (changed)=\"onChanged()\"></sd-table-mobile-filter-field>\n </div>\n }\n <div sdFooterRight class=\"sd-mobile-sheet-footer\">\n <sd-button\n class=\"sd-mobile-sheet-cancel\"\n [autoId]=\"_autoId ? _autoId + '-cancel' : null\"\n type=\"outline\"\n size=\"md\"\n [title]=\"'core.common.cancel' | sdTranslate\"\n (click)=\"cancel()\"></sd-button>\n <sd-button\n class=\"sd-mobile-sheet-apply\"\n [autoId]=\"_autoId ? _autoId + '-apply' : null\"\n type=\"fill\"\n color=\"primary\"\n size=\"md\"\n [title]=\"'core.component.table.apply' | sdTranslate\"\n (click)=\"apply()\"></sd-button>\n </div>\n</sd-modal>\n", styles: [".sd-mobile-sheet-head{display:flex;flex-direction:column;width:100%;min-width:0;touch-action:none}.sd-mobile-sheet-handle{display:block;width:32px;height:4px;margin:10px auto 4px;border-radius:2px;background:var(--sd-border)}.sd-mobile-sheet-title-row{display:flex;align-items:center;gap:4px;min-height:48px;padding:0 8px 0 20px}.sd-mobile-sheet-title{flex:1 1 auto;min-width:0;margin:0;overflow:hidden;font-size:var(--sd-font-size-20, 20px);line-height:var(--sd-line-height-28, 28px);font-weight:var(--sd-font-weight-medium, 500);color:var(--sd-text);text-overflow:ellipsis;white-space:nowrap;outline:none}.sd-mobile-sheet-subtitle{font-size:var(--sd-font-size-13, 13px);line-height:var(--sd-line-height-18, 18px);color:var(--sd-text-secondary)}.sd-mobile-sheet-icon{flex:0 0 44px;width:44px;height:44px;padding:0;color:var(--sd-text-secondary);--mat-icon-button-state-layer-size: 44px;--mdc-icon-button-state-layer-size: 44px}.sd-mobile-sheet-body{display:flex;flex-direction:column;gap:12px;padding:4px 20px 16px}.sd-mobile-sheet-footer{display:flex;gap:8px;width:100%}.sd-mobile-sheet-cancel{flex:1 1 0}.sd-mobile-sheet-apply{flex:2 1 0}.sd-mobile-sheet-cancel,.sd-mobile-sheet-apply{min-width:0}.sd-mobile-sheet-cancel ::ng-deep button,.sd-mobile-sheet-apply ::ng-deep button{width:100%;height:40px;border-radius:var(--sd-radius-999, 999px)}::ng-deep .sd-table-mobile-filter-sheet.mat-bottom-sheet-container,::ng-deep .sd-table-mobile-filter-sheet.mat-mdc-bottom-sheet-container,::ng-deep .sd-table-mobile-filter-sheet .mat-bottom-sheet-container,::ng-deep .sd-table-mobile-filter-sheet .mat-mdc-bottom-sheet-container{max-height:85dvh;border-radius:28px 28px 0 0!important}::ng-deep .sd-table-mobile-filter-sheet .sd-modal-header{padding:0;border-bottom:0}::ng-deep .sd-table-mobile-filter-sheet .sd-modal-header-left{flex:1 1 auto;min-width:0}::ng-deep .sd-table-mobile-filter-sheet .sd-modal-body{padding:0}::ng-deep .sd-table-mobile-filter-sheet .sd-modal-footer{min-height:0;padding:12px 16px 16px}::ng-deep .sd-table-mobile-filter-sheet .sd-modal-footer-left{display:none}::ng-deep .sd-table-mobile-filter-sheet .sd-modal-footer-right{flex:1 1 auto;margin-left:0}\n"], dependencies: [{ kind: "component", type: SdModal, selector: "sd-modal", inputs: ["autoId", "title", "color", "width", "height", "view", "modalClass", "lazyLoadContent", "hideClose", "disableBackdropClose", "beforeClose", "closeOnNavigation"], outputs: ["sdClosed", "sdCloseError"] }, { kind: "component", type: SdButton, selector: "sd-button", inputs: ["autoId", "type", "color", "size", "fontSet", "title", "width", "tooltip", "prefixIcon", "suffixIcon", "disabled", "openOnHover", "loading", "block", "htmlType", "indicator", "indicatorColor", "indicatorMax", "indicatorLabel"], outputs: ["click"] }, { kind: "component", type: SdTableMobileFilterFieldComponent, selector: "sd-table-mobile-filter-field", inputs: ["item", "value", "ctx", "revision", "cacheValues", "labels", "autoId"], outputs: ["changed"] }, { kind: "pipe", type: SdTranslatePipe, name: "sdTranslate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
2072
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.25", type: SdTableMobileFieldSheetComponent, isStandalone: true, selector: "sd-table-mobile-field-sheet", inputs: { table: { classPropertyName: "table", publicName: "table", isSignal: true, isRequired: true, transformFunction: null }, labels: { classPropertyName: "labels", publicName: "labels", isSignal: true, isRequired: false, transformFunction: null }, ctx: { classPropertyName: "ctx", publicName: "ctx", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "sheet", first: true, predicate: ["sheet"], descendants: true, isSignal: true }, { propertyName: "head", first: true, predicate: ["head"], descendants: true, isSignal: true }], ngImport: i0, template: "@let _item = item();\n@let _working = working();\n@let _ctx = ctx();\n@let _autoId = autoId();\n<sd-modal\n #sheet\n view=\"bottom-sheet\"\n [title]=\"_item?.label ?? ''\"\n [autoId]=\"_autoId ? _autoId + '-sheet' : undefined\"\n hideClose\n [disableBackdropClose]=\"false\"\n [closeOnNavigation]=\"false\"\n modalClass=\"sd-table-mobile-filter-sheet\"\n (sdClosed)=\"onClosed()\">\n <div sdHeaderLeft #head class=\"sd-mobile-sheet-head\">\n <span class=\"sd-mobile-sheet-handle\" aria-hidden=\"true\"></span>\n <div class=\"sd-mobile-sheet-title-row\">\n <!-- why: Material focuses the first tabbable element on open; the title keeps Clear from showing its focus fill. -->\n <h2 class=\"sd-mobile-sheet-title\" tabindex=\"-1\" cdkFocusInitial>{{ _item?.label }}</h2>\n <sd-button\n [autoId]=\"_autoId ? _autoId + '-clear' : null\"\n type=\"text\"\n color=\"primary\"\n size=\"md\"\n [title]=\"'core.component.table.mobile.clear-field' | sdTranslate\"\n (click)=\"clear()\"></sd-button>\n </div>\n </div>\n @if (_item && _working && _ctx) {\n <div class=\"sd-mobile-sheet-body\">\n <sd-table-mobile-filter-field\n [item]=\"_item\"\n [value]=\"_working\"\n [ctx]=\"_ctx\"\n [revision]=\"revision()\"\n [cacheValues]=\"table().cacheValues\"\n [labels]=\"labels()\"\n [autoId]=\"_autoId\"\n (changed)=\"onChanged()\"></sd-table-mobile-filter-field>\n </div>\n }\n <div sdFooterRight class=\"sd-mobile-sheet-footer\">\n <sd-button\n class=\"sd-mobile-sheet-cancel\"\n [autoId]=\"_autoId ? _autoId + '-cancel' : null\"\n type=\"outline\"\n size=\"md\"\n [title]=\"'core.common.cancel' | sdTranslate\"\n (click)=\"cancel()\"></sd-button>\n <sd-button\n class=\"sd-mobile-sheet-apply\"\n [autoId]=\"_autoId ? _autoId + '-apply' : null\"\n type=\"fill\"\n color=\"primary\"\n size=\"md\"\n [title]=\"'core.component.table.apply' | sdTranslate\"\n (click)=\"apply()\"></sd-button>\n </div>\n</sd-modal>\n", styles: [".sd-mobile-sheet-head{display:flex;flex-direction:column;width:100%;min-width:0;touch-action:none}.sd-mobile-sheet-handle{display:block;width:32px;height:4px;margin:10px auto 4px;border-radius:2px;background:var(--sd-border)}.sd-mobile-sheet-title-row{display:flex;align-items:center;gap:4px;min-height:48px;padding:0 8px 0 20px}.sd-mobile-sheet-title{flex:1 1 auto;min-width:0;margin:0;overflow:hidden;font-size:var(--sd-font-size-20, 20px);line-height:var(--sd-line-height-28, 28px);font-weight:var(--sd-font-weight-medium, 500);color:var(--sd-text);text-overflow:ellipsis;white-space:nowrap;outline:none}.sd-mobile-sheet-subtitle{font-size:var(--sd-font-size-13, 13px);line-height:var(--sd-line-height-18, 18px);color:var(--sd-text-secondary)}.sd-mobile-sheet-icon{flex:0 0 44px;width:44px;height:44px;padding:0;color:var(--sd-text-secondary);--mat-icon-button-state-layer-size: 44px;--mdc-icon-button-state-layer-size: 44px}.sd-mobile-sheet-body{display:flex;flex-direction:column;gap:12px;padding:4px 20px 16px}.sd-mobile-sheet-footer{display:flex;gap:8px;width:100%}.sd-mobile-sheet-cancel{flex:1 1 0}.sd-mobile-sheet-apply{flex:2 1 0}.sd-mobile-sheet-cancel,.sd-mobile-sheet-apply{min-width:0}.sd-mobile-sheet-cancel ::ng-deep button,.sd-mobile-sheet-apply ::ng-deep button{width:100%;height:40px;border-radius:var(--sd-radius-999, 999px)}::ng-deep .sd-table-mobile-filter-sheet.mat-bottom-sheet-container,::ng-deep .sd-table-mobile-filter-sheet.mat-mdc-bottom-sheet-container,::ng-deep .sd-table-mobile-filter-sheet .mat-bottom-sheet-container,::ng-deep .sd-table-mobile-filter-sheet .mat-mdc-bottom-sheet-container{max-height:85dvh;border-radius:28px 28px 0 0!important}::ng-deep .sd-table-mobile-filter-sheet .sd-modal-header{padding:0;border-bottom:0}::ng-deep .sd-table-mobile-filter-sheet .sd-modal-header-left{flex:1 1 auto;min-width:0}::ng-deep .sd-table-mobile-filter-sheet .sd-modal-body{padding:0}::ng-deep .sd-table-mobile-filter-sheet .sd-modal-footer{min-height:0;padding:12px max(16px,env(safe-area-inset-right,0px)) max(16px,env(safe-area-inset-bottom,0px)) max(16px,env(safe-area-inset-left,0px))}::ng-deep .sd-table-mobile-filter-sheet .sd-modal-footer-left{display:none}::ng-deep .sd-table-mobile-filter-sheet .sd-modal-footer-right{flex:1 1 auto;margin-left:0}\n"], dependencies: [{ kind: "component", type: SdModal, selector: "sd-modal", inputs: ["autoId", "title", "color", "width", "height", "view", "modalClass", "lazyLoadContent", "hideClose", "enableBackdropClose", "disableBackdropClose", "beforeClose", "closeOnNavigation"], outputs: ["sdClosed", "sdCloseError"] }, { kind: "component", type: SdButton, selector: "sd-button", inputs: ["autoId", "type", "color", "size", "fontSet", "title", "width", "tooltip", "prefixIcon", "suffixIcon", "disabled", "openOnHover", "loading", "block", "htmlType", "indicator", "indicatorColor", "indicatorMax", "indicatorLabel"], outputs: ["click"] }, { kind: "component", type: SdTableMobileFilterFieldComponent, selector: "sd-table-mobile-filter-field", inputs: ["item", "value", "ctx", "revision", "cacheValues", "labels", "autoId"], outputs: ["changed"] }, { kind: "pipe", type: SdTranslatePipe, name: "sdTranslate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1989
2073
|
}
|
|
1990
2074
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: SdTableMobileFieldSheetComponent, decorators: [{
|
|
1991
2075
|
type: Component,
|
|
1992
|
-
args: [{ selector: 'sd-table-mobile-field-sheet', changeDetection: ChangeDetectionStrategy.OnPush, imports: [SdModal, SdButton, SdTranslatePipe, SdTableMobileFilterFieldComponent], template: "@let _item = item();\n@let _working = working();\n@let _ctx = ctx();\n@let _autoId = autoId();\n<sd-modal\n #sheet\n view=\"bottom-sheet\"\n [title]=\"_item?.label ?? ''\"\n [autoId]=\"_autoId ? _autoId + '-sheet' : undefined\"\n hideClose\n [disableBackdropClose]=\"false\"\n [closeOnNavigation]=\"false\"\n modalClass=\"sd-table-mobile-filter-sheet\"\n (sdClosed)=\"onClosed()\">\n <div sdHeaderLeft #head class=\"sd-mobile-sheet-head\">\n <span class=\"sd-mobile-sheet-handle\" aria-hidden=\"true\"></span>\n <div class=\"sd-mobile-sheet-title-row\">\n <!-- why: Material focuses the first tabbable element on open; the title keeps Clear from showing its focus fill. -->\n <h2 class=\"sd-mobile-sheet-title\" tabindex=\"-1\" cdkFocusInitial>{{ _item?.label }}</h2>\n <sd-button\n [autoId]=\"_autoId ? _autoId + '-clear' : null\"\n type=\"text\"\n color=\"primary\"\n size=\"md\"\n [title]=\"'core.component.table.mobile.clear-field' | sdTranslate\"\n (click)=\"clear()\"></sd-button>\n </div>\n </div>\n @if (_item && _working && _ctx) {\n <div class=\"sd-mobile-sheet-body\">\n <sd-table-mobile-filter-field\n [item]=\"_item\"\n [value]=\"_working\"\n [ctx]=\"_ctx\"\n [revision]=\"revision()\"\n [cacheValues]=\"table().cacheValues\"\n [labels]=\"labels()\"\n [autoId]=\"_autoId\"\n (changed)=\"onChanged()\"></sd-table-mobile-filter-field>\n </div>\n }\n <div sdFooterRight class=\"sd-mobile-sheet-footer\">\n <sd-button\n class=\"sd-mobile-sheet-cancel\"\n [autoId]=\"_autoId ? _autoId + '-cancel' : null\"\n type=\"outline\"\n size=\"md\"\n [title]=\"'core.common.cancel' | sdTranslate\"\n (click)=\"cancel()\"></sd-button>\n <sd-button\n class=\"sd-mobile-sheet-apply\"\n [autoId]=\"_autoId ? _autoId + '-apply' : null\"\n type=\"fill\"\n color=\"primary\"\n size=\"md\"\n [title]=\"'core.component.table.apply' | sdTranslate\"\n (click)=\"apply()\"></sd-button>\n </div>\n</sd-modal>\n", styles: [".sd-mobile-sheet-head{display:flex;flex-direction:column;width:100%;min-width:0;touch-action:none}.sd-mobile-sheet-handle{display:block;width:32px;height:4px;margin:10px auto 4px;border-radius:2px;background:var(--sd-border)}.sd-mobile-sheet-title-row{display:flex;align-items:center;gap:4px;min-height:48px;padding:0 8px 0 20px}.sd-mobile-sheet-title{flex:1 1 auto;min-width:0;margin:0;overflow:hidden;font-size:var(--sd-font-size-20, 20px);line-height:var(--sd-line-height-28, 28px);font-weight:var(--sd-font-weight-medium, 500);color:var(--sd-text);text-overflow:ellipsis;white-space:nowrap;outline:none}.sd-mobile-sheet-subtitle{font-size:var(--sd-font-size-13, 13px);line-height:var(--sd-line-height-18, 18px);color:var(--sd-text-secondary)}.sd-mobile-sheet-icon{flex:0 0 44px;width:44px;height:44px;padding:0;color:var(--sd-text-secondary);--mat-icon-button-state-layer-size: 44px;--mdc-icon-button-state-layer-size: 44px}.sd-mobile-sheet-body{display:flex;flex-direction:column;gap:12px;padding:4px 20px 16px}.sd-mobile-sheet-footer{display:flex;gap:8px;width:100%}.sd-mobile-sheet-cancel{flex:1 1 0}.sd-mobile-sheet-apply{flex:2 1 0}.sd-mobile-sheet-cancel,.sd-mobile-sheet-apply{min-width:0}.sd-mobile-sheet-cancel ::ng-deep button,.sd-mobile-sheet-apply ::ng-deep button{width:100%;height:40px;border-radius:var(--sd-radius-999, 999px)}::ng-deep .sd-table-mobile-filter-sheet.mat-bottom-sheet-container,::ng-deep .sd-table-mobile-filter-sheet.mat-mdc-bottom-sheet-container,::ng-deep .sd-table-mobile-filter-sheet .mat-bottom-sheet-container,::ng-deep .sd-table-mobile-filter-sheet .mat-mdc-bottom-sheet-container{max-height:85dvh;border-radius:28px 28px 0 0!important}::ng-deep .sd-table-mobile-filter-sheet .sd-modal-header{padding:0;border-bottom:0}::ng-deep .sd-table-mobile-filter-sheet .sd-modal-header-left{flex:1 1 auto;min-width:0}::ng-deep .sd-table-mobile-filter-sheet .sd-modal-body{padding:0}::ng-deep .sd-table-mobile-filter-sheet .sd-modal-footer{min-height:0;padding:12px 16px 16px}::ng-deep .sd-table-mobile-filter-sheet .sd-modal-footer-left{display:none}::ng-deep .sd-table-mobile-filter-sheet .sd-modal-footer-right{flex:1 1 auto;margin-left:0}\n"] }]
|
|
2076
|
+
args: [{ selector: 'sd-table-mobile-field-sheet', changeDetection: ChangeDetectionStrategy.OnPush, imports: [SdModal, SdButton, SdTranslatePipe, SdTableMobileFilterFieldComponent], template: "@let _item = item();\n@let _working = working();\n@let _ctx = ctx();\n@let _autoId = autoId();\n<sd-modal\n #sheet\n view=\"bottom-sheet\"\n [title]=\"_item?.label ?? ''\"\n [autoId]=\"_autoId ? _autoId + '-sheet' : undefined\"\n hideClose\n [disableBackdropClose]=\"false\"\n [closeOnNavigation]=\"false\"\n modalClass=\"sd-table-mobile-filter-sheet\"\n (sdClosed)=\"onClosed()\">\n <div sdHeaderLeft #head class=\"sd-mobile-sheet-head\">\n <span class=\"sd-mobile-sheet-handle\" aria-hidden=\"true\"></span>\n <div class=\"sd-mobile-sheet-title-row\">\n <!-- why: Material focuses the first tabbable element on open; the title keeps Clear from showing its focus fill. -->\n <h2 class=\"sd-mobile-sheet-title\" tabindex=\"-1\" cdkFocusInitial>{{ _item?.label }}</h2>\n <sd-button\n [autoId]=\"_autoId ? _autoId + '-clear' : null\"\n type=\"text\"\n color=\"primary\"\n size=\"md\"\n [title]=\"'core.component.table.mobile.clear-field' | sdTranslate\"\n (click)=\"clear()\"></sd-button>\n </div>\n </div>\n @if (_item && _working && _ctx) {\n <div class=\"sd-mobile-sheet-body\">\n <sd-table-mobile-filter-field\n [item]=\"_item\"\n [value]=\"_working\"\n [ctx]=\"_ctx\"\n [revision]=\"revision()\"\n [cacheValues]=\"table().cacheValues\"\n [labels]=\"labels()\"\n [autoId]=\"_autoId\"\n (changed)=\"onChanged()\"></sd-table-mobile-filter-field>\n </div>\n }\n <div sdFooterRight class=\"sd-mobile-sheet-footer\">\n <sd-button\n class=\"sd-mobile-sheet-cancel\"\n [autoId]=\"_autoId ? _autoId + '-cancel' : null\"\n type=\"outline\"\n size=\"md\"\n [title]=\"'core.common.cancel' | sdTranslate\"\n (click)=\"cancel()\"></sd-button>\n <sd-button\n class=\"sd-mobile-sheet-apply\"\n [autoId]=\"_autoId ? _autoId + '-apply' : null\"\n type=\"fill\"\n color=\"primary\"\n size=\"md\"\n [title]=\"'core.component.table.apply' | sdTranslate\"\n (click)=\"apply()\"></sd-button>\n </div>\n</sd-modal>\n", styles: [".sd-mobile-sheet-head{display:flex;flex-direction:column;width:100%;min-width:0;touch-action:none}.sd-mobile-sheet-handle{display:block;width:32px;height:4px;margin:10px auto 4px;border-radius:2px;background:var(--sd-border)}.sd-mobile-sheet-title-row{display:flex;align-items:center;gap:4px;min-height:48px;padding:0 8px 0 20px}.sd-mobile-sheet-title{flex:1 1 auto;min-width:0;margin:0;overflow:hidden;font-size:var(--sd-font-size-20, 20px);line-height:var(--sd-line-height-28, 28px);font-weight:var(--sd-font-weight-medium, 500);color:var(--sd-text);text-overflow:ellipsis;white-space:nowrap;outline:none}.sd-mobile-sheet-subtitle{font-size:var(--sd-font-size-13, 13px);line-height:var(--sd-line-height-18, 18px);color:var(--sd-text-secondary)}.sd-mobile-sheet-icon{flex:0 0 44px;width:44px;height:44px;padding:0;color:var(--sd-text-secondary);--mat-icon-button-state-layer-size: 44px;--mdc-icon-button-state-layer-size: 44px}.sd-mobile-sheet-body{display:flex;flex-direction:column;gap:12px;padding:4px 20px 16px}.sd-mobile-sheet-footer{display:flex;gap:8px;width:100%}.sd-mobile-sheet-cancel{flex:1 1 0}.sd-mobile-sheet-apply{flex:2 1 0}.sd-mobile-sheet-cancel,.sd-mobile-sheet-apply{min-width:0}.sd-mobile-sheet-cancel ::ng-deep button,.sd-mobile-sheet-apply ::ng-deep button{width:100%;height:40px;border-radius:var(--sd-radius-999, 999px)}::ng-deep .sd-table-mobile-filter-sheet.mat-bottom-sheet-container,::ng-deep .sd-table-mobile-filter-sheet.mat-mdc-bottom-sheet-container,::ng-deep .sd-table-mobile-filter-sheet .mat-bottom-sheet-container,::ng-deep .sd-table-mobile-filter-sheet .mat-mdc-bottom-sheet-container{max-height:85dvh;border-radius:28px 28px 0 0!important}::ng-deep .sd-table-mobile-filter-sheet .sd-modal-header{padding:0;border-bottom:0}::ng-deep .sd-table-mobile-filter-sheet .sd-modal-header-left{flex:1 1 auto;min-width:0}::ng-deep .sd-table-mobile-filter-sheet .sd-modal-body{padding:0}::ng-deep .sd-table-mobile-filter-sheet .sd-modal-footer{min-height:0;padding:12px max(16px,env(safe-area-inset-right,0px)) max(16px,env(safe-area-inset-bottom,0px)) max(16px,env(safe-area-inset-left,0px))}::ng-deep .sd-table-mobile-filter-sheet .sd-modal-footer-left{display:none}::ng-deep .sd-table-mobile-filter-sheet .sd-modal-footer-right{flex:1 1 auto;margin-left:0}\n"] }]
|
|
1993
2077
|
}], ctorParameters: () => [], propDecorators: { table: [{ type: i0.Input, args: [{ isSignal: true, alias: "table", required: true }] }], labels: [{ type: i0.Input, args: [{ isSignal: true, alias: "labels", required: false }] }], sheet: [{ type: i0.ViewChild, args: ['sheet', { isSignal: true }] }], head: [{ type: i0.ViewChild, args: ['head', { isSignal: true }] }], ctx: [{ type: i0.Input, args: [{ isSignal: true, alias: "ctx", required: false }] }] } });
|
|
1994
2078
|
|
|
1995
2079
|
const NO_DATA = ['NULL', 'NOT_NULL'];
|
|
@@ -2702,11 +2786,11 @@ class SdTableMobileToolsSheetComponent {
|
|
|
2702
2786
|
pending?.run?.();
|
|
2703
2787
|
}
|
|
2704
2788
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: SdTableMobileToolsSheetComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2705
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.25", type: SdTableMobileToolsSheetComponent, isStandalone: true, selector: "sd-table-mobile-tools-sheet", inputs: { table: { classPropertyName: "table", publicName: "table", isSignal: true, isRequired: true, transformFunction: null }, actions: { classPropertyName: "actions", publicName: "actions", isSignal: true, isRequired: true, transformFunction: null } }, viewQueries: [{ propertyName: "sheet", first: true, predicate: ["sheet"], descendants: true, isSignal: true }, { propertyName: "head", first: true, predicate: ["head"], descendants: true, isSignal: true }], ngImport: i0, template: "@let _autoId = table().autoId();\n@let _exports = exportTools();\n@let _others = tableTools();\n@let _exporting = exporting();\n@let _running = running();\n@let _title = 'core.component.table.mobile.tools-title' | sdTranslate;\n<sd-modal\n #sheet\n view=\"bottom-sheet\"\n [title]=\"_title\"\n [autoId]=\"_autoId ? _autoId + '-mobile-sheet' : undefined\"\n hideClose\n [disableBackdropClose]=\"false\"\n [closeOnNavigation]=\"false\"\n modalClass=\"sd-table-mobile-filter-sheet sd-table-mobile-tools-sheet\"\n (sdClosed)=\"onClosed()\">\n <div sdHeaderLeft #head class=\"sd-mobile-sheet-head\">\n <span class=\"sd-mobile-sheet-handle\" aria-hidden=\"true\"></span>\n <div class=\"sd-mobile-sheet-title-row\">\n <!-- why: Material focuses the first tabbable element on open; the title keeps the first tile from showing its focus. -->\n <h2 class=\"sd-mobile-sheet-title\" tabindex=\"-1\" cdkFocusInitial>{{ _title }}</h2>\n </div>\n </div>\n <div class=\"sd-mobile-tools\">\n @if (_exports.length) {\n <section class=\"sd-mobile-tools-section\" [attr.aria-labelledby]=\"ids.export\">\n <h3 class=\"sd-mobile-tools-label\" [id]=\"ids.export\">{{ 'core.component.table.mobile.tools-export' | sdTranslate }}</h3>\n <div class=\"sd-mobile-tools-tiles\" [class.sd-mobile-tools-tiles--single]=\"_exports.length === 1\">\n @for (tool of _exports; track tool.action.key) {\n @let _busy = _exporting && _running === tool.action.key;\n <button\n type=\"button\"\n class=\"sd-mobile-tool sd-mobile-tool-tile\"\n [attr.data-tone]=\"tool.tone\"\n [attr.data-autoid]=\"_autoId ? _autoId + '-mobile-' + tool.action.key : null\"\n [attr.aria-busy]=\"_busy || null\"\n [disabled]=\"_exporting || tool.action.disabled\"\n (click)=\"run(tool)\">\n <span class=\"sd-mobile-tool-icon\" aria-hidden=\"true\">\n @if (_busy) {\n <mat-spinner diameter=\"20\" strokeWidth=\"2.5\"></mat-spinner>\n } @else {\n <sd-icon [name]=\"tool.icon\" size=\"22px\"></sd-icon>\n }\n </span>\n <span class=\"sd-mobile-tool-text\">\n <span class=\"sd-mobile-tool-title\">{{ tool.title }}</span>\n <span class=\"sd-mobile-tool-hint\">{{ _busy ? progress() : tool.hint }}</span>\n </span>\n </button>\n }\n </div>\n <span class=\"sd-mobile-tools-status\" role=\"status\">{{ _running && _exporting ? progress() : '' }}</span>\n </section>\n }\n @if (_others.length) {\n <section class=\"sd-mobile-tools-section\" [attr.aria-labelledby]=\"ids.table\">\n <h3 class=\"sd-mobile-tools-label\" [id]=\"ids.table\">{{ 'core.component.table.mobile.tools-table' | sdTranslate }}</h3>\n @for (tool of _others; track tool.action.key) {\n <button\n type=\"button\"\n class=\"sd-mobile-tool sd-mobile-tool-row\"\n [attr.data-tone]=\"tool.tone\"\n [attr.data-autoid]=\"_autoId ? _autoId + '-mobile-' + tool.action.key : null\"\n [disabled]=\"tool.action.disabled\"\n (click)=\"run(tool)\">\n <span class=\"sd-mobile-tool-icon\" aria-hidden=\"true\"><sd-icon [name]=\"tool.icon\" size=\"22px\"></sd-icon></span>\n <span class=\"sd-mobile-tool-text\">\n <span class=\"sd-mobile-tool-title\">{{ tool.title }}</span>\n @if (tool.hint) {\n <span class=\"sd-mobile-tool-hint\">{{ tool.hint }}</span>\n }\n </span>\n @if (tool.badge) {\n <span class=\"sd-mobile-tool-badge\">{{ tool.badge }}</span>\n }\n <sd-icon class=\"sd-mobile-tool-chevron\" name=\"chevron_right\" size=\"22px\" aria-hidden=\"true\"></sd-icon>\n </button>\n }\n </section>\n }\n </div>\n</sd-modal>\n", styles: [".sd-mobile-sheet-head{display:flex;flex-direction:column;width:100%;min-width:0;touch-action:none}.sd-mobile-sheet-handle{display:block;width:32px;height:4px;margin:10px auto 4px;border-radius:2px;background:var(--sd-border)}.sd-mobile-sheet-title-row{display:flex;align-items:center;gap:4px;min-height:48px;padding:0 8px 0 20px}.sd-mobile-sheet-title{flex:1 1 auto;min-width:0;margin:0;overflow:hidden;font-size:var(--sd-font-size-20, 20px);line-height:var(--sd-line-height-28, 28px);font-weight:var(--sd-font-weight-medium, 500);color:var(--sd-text);text-overflow:ellipsis;white-space:nowrap;outline:none}.sd-mobile-sheet-subtitle{font-size:var(--sd-font-size-13, 13px);line-height:var(--sd-line-height-18, 18px);color:var(--sd-text-secondary)}.sd-mobile-sheet-icon{flex:0 0 44px;width:44px;height:44px;padding:0;color:var(--sd-text-secondary);--mat-icon-button-state-layer-size: 44px;--mdc-icon-button-state-layer-size: 44px}.sd-mobile-sheet-body{display:flex;flex-direction:column;gap:12px;padding:4px 20px 16px}.sd-mobile-sheet-footer{display:flex;gap:8px;width:100%}.sd-mobile-sheet-cancel{flex:1 1 0}.sd-mobile-sheet-apply{flex:2 1 0}.sd-mobile-sheet-cancel,.sd-mobile-sheet-apply{min-width:0}.sd-mobile-sheet-cancel ::ng-deep button,.sd-mobile-sheet-apply ::ng-deep button{width:100%;height:40px;border-radius:var(--sd-radius-999, 999px)}::ng-deep .sd-table-mobile-filter-sheet.mat-bottom-sheet-container,::ng-deep .sd-table-mobile-filter-sheet.mat-mdc-bottom-sheet-container,::ng-deep .sd-table-mobile-filter-sheet .mat-bottom-sheet-container,::ng-deep .sd-table-mobile-filter-sheet .mat-mdc-bottom-sheet-container{max-height:85dvh;border-radius:28px 28px 0 0!important}::ng-deep .sd-table-mobile-filter-sheet .sd-modal-header{padding:0;border-bottom:0}::ng-deep .sd-table-mobile-filter-sheet .sd-modal-header-left{flex:1 1 auto;min-width:0}::ng-deep .sd-table-mobile-filter-sheet .sd-modal-body{padding:0}::ng-deep .sd-table-mobile-filter-sheet .sd-modal-footer{min-height:0;padding:12px 16px 16px}::ng-deep .sd-table-mobile-filter-sheet .sd-modal-footer-left{display:none}::ng-deep .sd-table-mobile-filter-sheet .sd-modal-footer-right{flex:1 1 auto;margin-left:0}.sd-mobile-tools{display:flex;flex-direction:column;gap:20px;padding:4px 20px max(20px,env(safe-area-inset-bottom))}.sd-mobile-tools-section{display:flex;flex-direction:column;gap:10px}.sd-mobile-tools-label{margin:0;font-size:var(--sd-font-size-12, 12px);line-height:var(--sd-line-height-16, 16px);font-weight:var(--sd-font-weight-medium, 500);letter-spacing:.02em;color:var(--sd-text-secondary)}.sd-mobile-tools-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.sd-mobile-tools-tiles--single{grid-template-columns:minmax(0,1fr)}.sd-mobile-tools-status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.sd-mobile-tool{--sd-mobile-tool-bg: var(--sd-secondary-light);--sd-mobile-tool-fg: var(--sd-secondary-dark);appearance:none;min-width:0;margin:0;border:1px solid var(--sd-border);border-radius:var(--sd-radius-12, 12px);background:var(--sd-surface);color:var(--sd-text);font:inherit;text-align:start;cursor:pointer;transition:background-color .12s ease,border-color .12s ease}.sd-mobile-tool:hover:not(:disabled),.sd-mobile-tool:active:not(:disabled){border-color:color-mix(in srgb,var(--sd-mobile-tool-fg) 32%,var(--sd-border));background:color-mix(in srgb,var(--sd-mobile-tool-fg) 6%,var(--sd-surface))}.sd-mobile-tool:focus-visible{outline:var(--sd-focus-ring-width, 2px) solid var(--sd-focus-ring-color, var(--sd-primary));outline-offset:2px}.sd-mobile-tool:disabled{cursor:default}.sd-mobile-tool:disabled:not([aria-busy=true]){opacity:.5}.sd-mobile-tool[aria-busy=true]{border-color:color-mix(in srgb,var(--sd-mobile-tool-fg) 40%,var(--sd-border));background:color-mix(in srgb,var(--sd-mobile-tool-fg) 6%,var(--sd-surface))}.sd-mobile-tool[data-tone=success]{--sd-mobile-tool-bg: var(--sd-success-light);--sd-mobile-tool-fg: var(--sd-success-dark)}.sd-mobile-tool[data-tone=info]{--sd-mobile-tool-bg: var(--sd-info-light);--sd-mobile-tool-fg: var(--sd-info-dark)}.sd-mobile-tool[data-tone=primary]{--sd-mobile-tool-bg: var(--sd-primary-light);--sd-mobile-tool-fg: var(--sd-primary-dark)}.sd-mobile-tool-tile{display:flex;flex-direction:column;align-items:flex-start;gap:12px;min-height:112px;padding:14px}.sd-mobile-tool-row{display:flex;align-items:center;gap:14px;width:100%;min-height:64px;padding:10px 8px 10px 12px}.sd-mobile-tool-icon{display:grid;flex:0 0 40px;place-items:center;width:40px;height:40px;border-radius:var(--sd-radius-10, 10px);background:var(--sd-mobile-tool-bg);color:var(--sd-mobile-tool-fg);--mdc-circular-progress-active-indicator-color: var(--sd-mobile-tool-fg)}.sd-mobile-tool-text{display:flex;flex:1 1 auto;flex-direction:column;gap:2px;min-width:0}.sd-mobile-tool-title{font-size:var(--sd-font-size-15, 15px);line-height:var(--sd-line-height-20, 20px);font-weight:var(--sd-font-weight-medium, 500);overflow-wrap:anywhere}.sd-mobile-tool-hint{font-size:var(--sd-font-size-12, 12px);line-height:var(--sd-line-height-16, 16px);color:var(--sd-text-secondary);overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.sd-mobile-tool-badge{flex:0 0 auto;padding:2px 8px;border-radius:var(--sd-radius-full, 999px);background:var(--sd-primary-light);color:var(--sd-primary-dark);font-size:var(--sd-font-size-12, 12px);line-height:var(--sd-line-height-16, 16px);font-weight:var(--sd-font-weight-medium, 500);white-space:nowrap}.sd-mobile-tool-chevron{flex:0 0 auto;color:var(--sd-text-secondary)}@media(prefers-reduced-motion:reduce){.sd-mobile-tool{transition:none}}\n"], dependencies: [{ kind: "ngmodule", type: MatProgressSpinnerModule }, { kind: "component", type: i1$3.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }, { kind: "component", type: SdModal, selector: "sd-modal", inputs: ["autoId", "title", "color", "width", "height", "view", "modalClass", "lazyLoadContent", "hideClose", "disableBackdropClose", "beforeClose", "closeOnNavigation"], outputs: ["sdClosed", "sdCloseError"] }, { kind: "component", type: SdIcon, selector: "sd-icon", inputs: ["name", "fontIcon", "color", "set", "fontSet", "size", "strokeWidth", "absoluteStrokeWidth", "ariaLabel"] }, { kind: "pipe", type: SdTranslatePipe, name: "sdTranslate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
2789
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.25", type: SdTableMobileToolsSheetComponent, isStandalone: true, selector: "sd-table-mobile-tools-sheet", inputs: { table: { classPropertyName: "table", publicName: "table", isSignal: true, isRequired: true, transformFunction: null }, actions: { classPropertyName: "actions", publicName: "actions", isSignal: true, isRequired: true, transformFunction: null } }, viewQueries: [{ propertyName: "sheet", first: true, predicate: ["sheet"], descendants: true, isSignal: true }, { propertyName: "head", first: true, predicate: ["head"], descendants: true, isSignal: true }], ngImport: i0, template: "@let _autoId = table().autoId();\n@let _exports = exportTools();\n@let _others = tableTools();\n@let _exporting = exporting();\n@let _running = running();\n@let _title = 'core.component.table.mobile.tools-title' | sdTranslate;\n<sd-modal\n #sheet\n view=\"bottom-sheet\"\n [title]=\"_title\"\n [autoId]=\"_autoId ? _autoId + '-mobile-sheet' : undefined\"\n hideClose\n [disableBackdropClose]=\"false\"\n [closeOnNavigation]=\"false\"\n modalClass=\"sd-table-mobile-filter-sheet sd-table-mobile-tools-sheet\"\n (sdClosed)=\"onClosed()\">\n <div sdHeaderLeft #head class=\"sd-mobile-sheet-head\">\n <span class=\"sd-mobile-sheet-handle\" aria-hidden=\"true\"></span>\n <div class=\"sd-mobile-sheet-title-row\">\n <!-- why: Material focuses the first tabbable element on open; the title keeps the first tile from showing its focus. -->\n <h2 class=\"sd-mobile-sheet-title\" tabindex=\"-1\" cdkFocusInitial>{{ _title }}</h2>\n </div>\n </div>\n <div class=\"sd-mobile-tools\">\n @if (_exports.length) {\n <section class=\"sd-mobile-tools-section\" [attr.aria-labelledby]=\"ids.export\">\n <h3 class=\"sd-mobile-tools-label\" [id]=\"ids.export\">{{ 'core.component.table.mobile.tools-export' | sdTranslate }}</h3>\n <div class=\"sd-mobile-tools-tiles\" [class.sd-mobile-tools-tiles--single]=\"_exports.length === 1\">\n @for (tool of _exports; track tool.action.key) {\n @let _busy = _exporting && _running === tool.action.key;\n <button\n type=\"button\"\n class=\"sd-mobile-tool sd-mobile-tool-tile\"\n [attr.data-tone]=\"tool.tone\"\n [attr.data-autoid]=\"_autoId ? _autoId + '-mobile-' + tool.action.key : null\"\n [attr.aria-busy]=\"_busy || null\"\n [disabled]=\"_exporting || tool.action.disabled\"\n (click)=\"run(tool)\">\n <span class=\"sd-mobile-tool-icon\" aria-hidden=\"true\">\n @if (_busy) {\n <mat-spinner diameter=\"20\" strokeWidth=\"2.5\"></mat-spinner>\n } @else {\n <sd-icon [name]=\"tool.icon\" size=\"22px\"></sd-icon>\n }\n </span>\n <span class=\"sd-mobile-tool-text\">\n <span class=\"sd-mobile-tool-title\">{{ tool.title }}</span>\n <span class=\"sd-mobile-tool-hint\">{{ _busy ? progress() : tool.hint }}</span>\n </span>\n </button>\n }\n </div>\n <span class=\"sd-mobile-tools-status\" role=\"status\">{{ _running && _exporting ? progress() : '' }}</span>\n </section>\n }\n @if (_others.length) {\n <section class=\"sd-mobile-tools-section\" [attr.aria-labelledby]=\"ids.table\">\n <h3 class=\"sd-mobile-tools-label\" [id]=\"ids.table\">{{ 'core.component.table.mobile.tools-table' | sdTranslate }}</h3>\n @for (tool of _others; track tool.action.key) {\n <button\n type=\"button\"\n class=\"sd-mobile-tool sd-mobile-tool-row\"\n [attr.data-tone]=\"tool.tone\"\n [attr.data-autoid]=\"_autoId ? _autoId + '-mobile-' + tool.action.key : null\"\n [disabled]=\"tool.action.disabled\"\n (click)=\"run(tool)\">\n <span class=\"sd-mobile-tool-icon\" aria-hidden=\"true\"><sd-icon [name]=\"tool.icon\" size=\"22px\"></sd-icon></span>\n <span class=\"sd-mobile-tool-text\">\n <span class=\"sd-mobile-tool-title\">{{ tool.title }}</span>\n @if (tool.hint) {\n <span class=\"sd-mobile-tool-hint\">{{ tool.hint }}</span>\n }\n </span>\n @if (tool.badge) {\n <span class=\"sd-mobile-tool-badge\">{{ tool.badge }}</span>\n }\n <sd-icon class=\"sd-mobile-tool-chevron\" name=\"chevron_right\" size=\"22px\" aria-hidden=\"true\"></sd-icon>\n </button>\n }\n </section>\n }\n </div>\n</sd-modal>\n", styles: [".sd-mobile-sheet-head{display:flex;flex-direction:column;width:100%;min-width:0;touch-action:none}.sd-mobile-sheet-handle{display:block;width:32px;height:4px;margin:10px auto 4px;border-radius:2px;background:var(--sd-border)}.sd-mobile-sheet-title-row{display:flex;align-items:center;gap:4px;min-height:48px;padding:0 8px 0 20px}.sd-mobile-sheet-title{flex:1 1 auto;min-width:0;margin:0;overflow:hidden;font-size:var(--sd-font-size-20, 20px);line-height:var(--sd-line-height-28, 28px);font-weight:var(--sd-font-weight-medium, 500);color:var(--sd-text);text-overflow:ellipsis;white-space:nowrap;outline:none}.sd-mobile-sheet-subtitle{font-size:var(--sd-font-size-13, 13px);line-height:var(--sd-line-height-18, 18px);color:var(--sd-text-secondary)}.sd-mobile-sheet-icon{flex:0 0 44px;width:44px;height:44px;padding:0;color:var(--sd-text-secondary);--mat-icon-button-state-layer-size: 44px;--mdc-icon-button-state-layer-size: 44px}.sd-mobile-sheet-body{display:flex;flex-direction:column;gap:12px;padding:4px 20px 16px}.sd-mobile-sheet-footer{display:flex;gap:8px;width:100%}.sd-mobile-sheet-cancel{flex:1 1 0}.sd-mobile-sheet-apply{flex:2 1 0}.sd-mobile-sheet-cancel,.sd-mobile-sheet-apply{min-width:0}.sd-mobile-sheet-cancel ::ng-deep button,.sd-mobile-sheet-apply ::ng-deep button{width:100%;height:40px;border-radius:var(--sd-radius-999, 999px)}::ng-deep .sd-table-mobile-filter-sheet.mat-bottom-sheet-container,::ng-deep .sd-table-mobile-filter-sheet.mat-mdc-bottom-sheet-container,::ng-deep .sd-table-mobile-filter-sheet .mat-bottom-sheet-container,::ng-deep .sd-table-mobile-filter-sheet .mat-mdc-bottom-sheet-container{max-height:85dvh;border-radius:28px 28px 0 0!important}::ng-deep .sd-table-mobile-filter-sheet .sd-modal-header{padding:0;border-bottom:0}::ng-deep .sd-table-mobile-filter-sheet .sd-modal-header-left{flex:1 1 auto;min-width:0}::ng-deep .sd-table-mobile-filter-sheet .sd-modal-body{padding:0}::ng-deep .sd-table-mobile-filter-sheet .sd-modal-footer{min-height:0;padding:12px max(16px,env(safe-area-inset-right,0px)) max(16px,env(safe-area-inset-bottom,0px)) max(16px,env(safe-area-inset-left,0px))}::ng-deep .sd-table-mobile-filter-sheet .sd-modal-footer-left{display:none}::ng-deep .sd-table-mobile-filter-sheet .sd-modal-footer-right{flex:1 1 auto;margin-left:0}.sd-mobile-tools{display:flex;flex-direction:column;gap:20px;padding:4px 20px max(20px,env(safe-area-inset-bottom))}.sd-mobile-tools-section{display:flex;flex-direction:column;gap:10px}.sd-mobile-tools-label{margin:0;font-size:var(--sd-font-size-12, 12px);line-height:var(--sd-line-height-16, 16px);font-weight:var(--sd-font-weight-medium, 500);letter-spacing:.02em;color:var(--sd-text-secondary)}.sd-mobile-tools-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.sd-mobile-tools-tiles--single{grid-template-columns:minmax(0,1fr)}.sd-mobile-tools-status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.sd-mobile-tool{--sd-mobile-tool-bg: var(--sd-secondary-light);--sd-mobile-tool-fg: var(--sd-secondary-dark);appearance:none;min-width:0;margin:0;border:1px solid var(--sd-border);border-radius:var(--sd-radius-12, 12px);background:var(--sd-surface);color:var(--sd-text);font:inherit;text-align:start;cursor:pointer;transition:background-color .12s ease,border-color .12s ease}.sd-mobile-tool:hover:not(:disabled),.sd-mobile-tool:active:not(:disabled){border-color:color-mix(in srgb,var(--sd-mobile-tool-fg) 32%,var(--sd-border));background:color-mix(in srgb,var(--sd-mobile-tool-fg) 6%,var(--sd-surface))}.sd-mobile-tool:focus-visible{outline:var(--sd-focus-ring-width, 2px) solid var(--sd-focus-ring-color, var(--sd-primary));outline-offset:2px}.sd-mobile-tool:disabled{cursor:default}.sd-mobile-tool:disabled:not([aria-busy=true]){opacity:.5}.sd-mobile-tool[aria-busy=true]{border-color:color-mix(in srgb,var(--sd-mobile-tool-fg) 40%,var(--sd-border));background:color-mix(in srgb,var(--sd-mobile-tool-fg) 6%,var(--sd-surface))}.sd-mobile-tool[data-tone=success]{--sd-mobile-tool-bg: var(--sd-success-light);--sd-mobile-tool-fg: var(--sd-success-dark)}.sd-mobile-tool[data-tone=info]{--sd-mobile-tool-bg: var(--sd-info-light);--sd-mobile-tool-fg: var(--sd-info-dark)}.sd-mobile-tool[data-tone=primary]{--sd-mobile-tool-bg: var(--sd-primary-light);--sd-mobile-tool-fg: var(--sd-primary-dark)}.sd-mobile-tool-tile{display:flex;flex-direction:column;align-items:flex-start;gap:12px;min-height:112px;padding:14px}.sd-mobile-tool-row{display:flex;align-items:center;gap:14px;width:100%;min-height:64px;padding:10px 8px 10px 12px}.sd-mobile-tool-icon{display:grid;flex:0 0 40px;place-items:center;width:40px;height:40px;border-radius:var(--sd-radius-10, 10px);background:var(--sd-mobile-tool-bg);color:var(--sd-mobile-tool-fg);--mdc-circular-progress-active-indicator-color: var(--sd-mobile-tool-fg)}.sd-mobile-tool-text{display:flex;flex:1 1 auto;flex-direction:column;gap:2px;min-width:0}.sd-mobile-tool-title{font-size:var(--sd-font-size-15, 15px);line-height:var(--sd-line-height-20, 20px);font-weight:var(--sd-font-weight-medium, 500);overflow-wrap:anywhere}.sd-mobile-tool-hint{font-size:var(--sd-font-size-12, 12px);line-height:var(--sd-line-height-16, 16px);color:var(--sd-text-secondary);overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.sd-mobile-tool-badge{flex:0 0 auto;padding:2px 8px;border-radius:var(--sd-radius-full, 999px);background:var(--sd-primary-light);color:var(--sd-primary-dark);font-size:var(--sd-font-size-12, 12px);line-height:var(--sd-line-height-16, 16px);font-weight:var(--sd-font-weight-medium, 500);white-space:nowrap}.sd-mobile-tool-chevron{flex:0 0 auto;color:var(--sd-text-secondary)}@media(prefers-reduced-motion:reduce){.sd-mobile-tool{transition:none}}\n"], dependencies: [{ kind: "ngmodule", type: MatProgressSpinnerModule }, { kind: "component", type: i1$3.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }, { kind: "component", type: SdModal, selector: "sd-modal", inputs: ["autoId", "title", "color", "width", "height", "view", "modalClass", "lazyLoadContent", "hideClose", "enableBackdropClose", "disableBackdropClose", "beforeClose", "closeOnNavigation"], outputs: ["sdClosed", "sdCloseError"] }, { kind: "component", type: SdIcon, selector: "sd-icon", inputs: ["name", "fontIcon", "color", "set", "fontSet", "size", "strokeWidth", "absoluteStrokeWidth", "ariaLabel"] }, { kind: "pipe", type: SdTranslatePipe, name: "sdTranslate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
2706
2790
|
}
|
|
2707
2791
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: SdTableMobileToolsSheetComponent, decorators: [{
|
|
2708
2792
|
type: Component,
|
|
2709
|
-
args: [{ selector: 'sd-table-mobile-tools-sheet', changeDetection: ChangeDetectionStrategy.OnPush, imports: [MatProgressSpinnerModule, SdModal, SdIcon, SdTranslatePipe], template: "@let _autoId = table().autoId();\n@let _exports = exportTools();\n@let _others = tableTools();\n@let _exporting = exporting();\n@let _running = running();\n@let _title = 'core.component.table.mobile.tools-title' | sdTranslate;\n<sd-modal\n #sheet\n view=\"bottom-sheet\"\n [title]=\"_title\"\n [autoId]=\"_autoId ? _autoId + '-mobile-sheet' : undefined\"\n hideClose\n [disableBackdropClose]=\"false\"\n [closeOnNavigation]=\"false\"\n modalClass=\"sd-table-mobile-filter-sheet sd-table-mobile-tools-sheet\"\n (sdClosed)=\"onClosed()\">\n <div sdHeaderLeft #head class=\"sd-mobile-sheet-head\">\n <span class=\"sd-mobile-sheet-handle\" aria-hidden=\"true\"></span>\n <div class=\"sd-mobile-sheet-title-row\">\n <!-- why: Material focuses the first tabbable element on open; the title keeps the first tile from showing its focus. -->\n <h2 class=\"sd-mobile-sheet-title\" tabindex=\"-1\" cdkFocusInitial>{{ _title }}</h2>\n </div>\n </div>\n <div class=\"sd-mobile-tools\">\n @if (_exports.length) {\n <section class=\"sd-mobile-tools-section\" [attr.aria-labelledby]=\"ids.export\">\n <h3 class=\"sd-mobile-tools-label\" [id]=\"ids.export\">{{ 'core.component.table.mobile.tools-export' | sdTranslate }}</h3>\n <div class=\"sd-mobile-tools-tiles\" [class.sd-mobile-tools-tiles--single]=\"_exports.length === 1\">\n @for (tool of _exports; track tool.action.key) {\n @let _busy = _exporting && _running === tool.action.key;\n <button\n type=\"button\"\n class=\"sd-mobile-tool sd-mobile-tool-tile\"\n [attr.data-tone]=\"tool.tone\"\n [attr.data-autoid]=\"_autoId ? _autoId + '-mobile-' + tool.action.key : null\"\n [attr.aria-busy]=\"_busy || null\"\n [disabled]=\"_exporting || tool.action.disabled\"\n (click)=\"run(tool)\">\n <span class=\"sd-mobile-tool-icon\" aria-hidden=\"true\">\n @if (_busy) {\n <mat-spinner diameter=\"20\" strokeWidth=\"2.5\"></mat-spinner>\n } @else {\n <sd-icon [name]=\"tool.icon\" size=\"22px\"></sd-icon>\n }\n </span>\n <span class=\"sd-mobile-tool-text\">\n <span class=\"sd-mobile-tool-title\">{{ tool.title }}</span>\n <span class=\"sd-mobile-tool-hint\">{{ _busy ? progress() : tool.hint }}</span>\n </span>\n </button>\n }\n </div>\n <span class=\"sd-mobile-tools-status\" role=\"status\">{{ _running && _exporting ? progress() : '' }}</span>\n </section>\n }\n @if (_others.length) {\n <section class=\"sd-mobile-tools-section\" [attr.aria-labelledby]=\"ids.table\">\n <h3 class=\"sd-mobile-tools-label\" [id]=\"ids.table\">{{ 'core.component.table.mobile.tools-table' | sdTranslate }}</h3>\n @for (tool of _others; track tool.action.key) {\n <button\n type=\"button\"\n class=\"sd-mobile-tool sd-mobile-tool-row\"\n [attr.data-tone]=\"tool.tone\"\n [attr.data-autoid]=\"_autoId ? _autoId + '-mobile-' + tool.action.key : null\"\n [disabled]=\"tool.action.disabled\"\n (click)=\"run(tool)\">\n <span class=\"sd-mobile-tool-icon\" aria-hidden=\"true\"><sd-icon [name]=\"tool.icon\" size=\"22px\"></sd-icon></span>\n <span class=\"sd-mobile-tool-text\">\n <span class=\"sd-mobile-tool-title\">{{ tool.title }}</span>\n @if (tool.hint) {\n <span class=\"sd-mobile-tool-hint\">{{ tool.hint }}</span>\n }\n </span>\n @if (tool.badge) {\n <span class=\"sd-mobile-tool-badge\">{{ tool.badge }}</span>\n }\n <sd-icon class=\"sd-mobile-tool-chevron\" name=\"chevron_right\" size=\"22px\" aria-hidden=\"true\"></sd-icon>\n </button>\n }\n </section>\n }\n </div>\n</sd-modal>\n", styles: [".sd-mobile-sheet-head{display:flex;flex-direction:column;width:100%;min-width:0;touch-action:none}.sd-mobile-sheet-handle{display:block;width:32px;height:4px;margin:10px auto 4px;border-radius:2px;background:var(--sd-border)}.sd-mobile-sheet-title-row{display:flex;align-items:center;gap:4px;min-height:48px;padding:0 8px 0 20px}.sd-mobile-sheet-title{flex:1 1 auto;min-width:0;margin:0;overflow:hidden;font-size:var(--sd-font-size-20, 20px);line-height:var(--sd-line-height-28, 28px);font-weight:var(--sd-font-weight-medium, 500);color:var(--sd-text);text-overflow:ellipsis;white-space:nowrap;outline:none}.sd-mobile-sheet-subtitle{font-size:var(--sd-font-size-13, 13px);line-height:var(--sd-line-height-18, 18px);color:var(--sd-text-secondary)}.sd-mobile-sheet-icon{flex:0 0 44px;width:44px;height:44px;padding:0;color:var(--sd-text-secondary);--mat-icon-button-state-layer-size: 44px;--mdc-icon-button-state-layer-size: 44px}.sd-mobile-sheet-body{display:flex;flex-direction:column;gap:12px;padding:4px 20px 16px}.sd-mobile-sheet-footer{display:flex;gap:8px;width:100%}.sd-mobile-sheet-cancel{flex:1 1 0}.sd-mobile-sheet-apply{flex:2 1 0}.sd-mobile-sheet-cancel,.sd-mobile-sheet-apply{min-width:0}.sd-mobile-sheet-cancel ::ng-deep button,.sd-mobile-sheet-apply ::ng-deep button{width:100%;height:40px;border-radius:var(--sd-radius-999, 999px)}::ng-deep .sd-table-mobile-filter-sheet.mat-bottom-sheet-container,::ng-deep .sd-table-mobile-filter-sheet.mat-mdc-bottom-sheet-container,::ng-deep .sd-table-mobile-filter-sheet .mat-bottom-sheet-container,::ng-deep .sd-table-mobile-filter-sheet .mat-mdc-bottom-sheet-container{max-height:85dvh;border-radius:28px 28px 0 0!important}::ng-deep .sd-table-mobile-filter-sheet .sd-modal-header{padding:0;border-bottom:0}::ng-deep .sd-table-mobile-filter-sheet .sd-modal-header-left{flex:1 1 auto;min-width:0}::ng-deep .sd-table-mobile-filter-sheet .sd-modal-body{padding:0}::ng-deep .sd-table-mobile-filter-sheet .sd-modal-footer{min-height:0;padding:12px 16px 16px}::ng-deep .sd-table-mobile-filter-sheet .sd-modal-footer-left{display:none}::ng-deep .sd-table-mobile-filter-sheet .sd-modal-footer-right{flex:1 1 auto;margin-left:0}.sd-mobile-tools{display:flex;flex-direction:column;gap:20px;padding:4px 20px max(20px,env(safe-area-inset-bottom))}.sd-mobile-tools-section{display:flex;flex-direction:column;gap:10px}.sd-mobile-tools-label{margin:0;font-size:var(--sd-font-size-12, 12px);line-height:var(--sd-line-height-16, 16px);font-weight:var(--sd-font-weight-medium, 500);letter-spacing:.02em;color:var(--sd-text-secondary)}.sd-mobile-tools-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.sd-mobile-tools-tiles--single{grid-template-columns:minmax(0,1fr)}.sd-mobile-tools-status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.sd-mobile-tool{--sd-mobile-tool-bg: var(--sd-secondary-light);--sd-mobile-tool-fg: var(--sd-secondary-dark);appearance:none;min-width:0;margin:0;border:1px solid var(--sd-border);border-radius:var(--sd-radius-12, 12px);background:var(--sd-surface);color:var(--sd-text);font:inherit;text-align:start;cursor:pointer;transition:background-color .12s ease,border-color .12s ease}.sd-mobile-tool:hover:not(:disabled),.sd-mobile-tool:active:not(:disabled){border-color:color-mix(in srgb,var(--sd-mobile-tool-fg) 32%,var(--sd-border));background:color-mix(in srgb,var(--sd-mobile-tool-fg) 6%,var(--sd-surface))}.sd-mobile-tool:focus-visible{outline:var(--sd-focus-ring-width, 2px) solid var(--sd-focus-ring-color, var(--sd-primary));outline-offset:2px}.sd-mobile-tool:disabled{cursor:default}.sd-mobile-tool:disabled:not([aria-busy=true]){opacity:.5}.sd-mobile-tool[aria-busy=true]{border-color:color-mix(in srgb,var(--sd-mobile-tool-fg) 40%,var(--sd-border));background:color-mix(in srgb,var(--sd-mobile-tool-fg) 6%,var(--sd-surface))}.sd-mobile-tool[data-tone=success]{--sd-mobile-tool-bg: var(--sd-success-light);--sd-mobile-tool-fg: var(--sd-success-dark)}.sd-mobile-tool[data-tone=info]{--sd-mobile-tool-bg: var(--sd-info-light);--sd-mobile-tool-fg: var(--sd-info-dark)}.sd-mobile-tool[data-tone=primary]{--sd-mobile-tool-bg: var(--sd-primary-light);--sd-mobile-tool-fg: var(--sd-primary-dark)}.sd-mobile-tool-tile{display:flex;flex-direction:column;align-items:flex-start;gap:12px;min-height:112px;padding:14px}.sd-mobile-tool-row{display:flex;align-items:center;gap:14px;width:100%;min-height:64px;padding:10px 8px 10px 12px}.sd-mobile-tool-icon{display:grid;flex:0 0 40px;place-items:center;width:40px;height:40px;border-radius:var(--sd-radius-10, 10px);background:var(--sd-mobile-tool-bg);color:var(--sd-mobile-tool-fg);--mdc-circular-progress-active-indicator-color: var(--sd-mobile-tool-fg)}.sd-mobile-tool-text{display:flex;flex:1 1 auto;flex-direction:column;gap:2px;min-width:0}.sd-mobile-tool-title{font-size:var(--sd-font-size-15, 15px);line-height:var(--sd-line-height-20, 20px);font-weight:var(--sd-font-weight-medium, 500);overflow-wrap:anywhere}.sd-mobile-tool-hint{font-size:var(--sd-font-size-12, 12px);line-height:var(--sd-line-height-16, 16px);color:var(--sd-text-secondary);overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.sd-mobile-tool-badge{flex:0 0 auto;padding:2px 8px;border-radius:var(--sd-radius-full, 999px);background:var(--sd-primary-light);color:var(--sd-primary-dark);font-size:var(--sd-font-size-12, 12px);line-height:var(--sd-line-height-16, 16px);font-weight:var(--sd-font-weight-medium, 500);white-space:nowrap}.sd-mobile-tool-chevron{flex:0 0 auto;color:var(--sd-text-secondary)}@media(prefers-reduced-motion:reduce){.sd-mobile-tool{transition:none}}\n"] }]
|
|
2793
|
+
args: [{ selector: 'sd-table-mobile-tools-sheet', changeDetection: ChangeDetectionStrategy.OnPush, imports: [MatProgressSpinnerModule, SdModal, SdIcon, SdTranslatePipe], template: "@let _autoId = table().autoId();\n@let _exports = exportTools();\n@let _others = tableTools();\n@let _exporting = exporting();\n@let _running = running();\n@let _title = 'core.component.table.mobile.tools-title' | sdTranslate;\n<sd-modal\n #sheet\n view=\"bottom-sheet\"\n [title]=\"_title\"\n [autoId]=\"_autoId ? _autoId + '-mobile-sheet' : undefined\"\n hideClose\n [disableBackdropClose]=\"false\"\n [closeOnNavigation]=\"false\"\n modalClass=\"sd-table-mobile-filter-sheet sd-table-mobile-tools-sheet\"\n (sdClosed)=\"onClosed()\">\n <div sdHeaderLeft #head class=\"sd-mobile-sheet-head\">\n <span class=\"sd-mobile-sheet-handle\" aria-hidden=\"true\"></span>\n <div class=\"sd-mobile-sheet-title-row\">\n <!-- why: Material focuses the first tabbable element on open; the title keeps the first tile from showing its focus. -->\n <h2 class=\"sd-mobile-sheet-title\" tabindex=\"-1\" cdkFocusInitial>{{ _title }}</h2>\n </div>\n </div>\n <div class=\"sd-mobile-tools\">\n @if (_exports.length) {\n <section class=\"sd-mobile-tools-section\" [attr.aria-labelledby]=\"ids.export\">\n <h3 class=\"sd-mobile-tools-label\" [id]=\"ids.export\">{{ 'core.component.table.mobile.tools-export' | sdTranslate }}</h3>\n <div class=\"sd-mobile-tools-tiles\" [class.sd-mobile-tools-tiles--single]=\"_exports.length === 1\">\n @for (tool of _exports; track tool.action.key) {\n @let _busy = _exporting && _running === tool.action.key;\n <button\n type=\"button\"\n class=\"sd-mobile-tool sd-mobile-tool-tile\"\n [attr.data-tone]=\"tool.tone\"\n [attr.data-autoid]=\"_autoId ? _autoId + '-mobile-' + tool.action.key : null\"\n [attr.aria-busy]=\"_busy || null\"\n [disabled]=\"_exporting || tool.action.disabled\"\n (click)=\"run(tool)\">\n <span class=\"sd-mobile-tool-icon\" aria-hidden=\"true\">\n @if (_busy) {\n <mat-spinner diameter=\"20\" strokeWidth=\"2.5\"></mat-spinner>\n } @else {\n <sd-icon [name]=\"tool.icon\" size=\"22px\"></sd-icon>\n }\n </span>\n <span class=\"sd-mobile-tool-text\">\n <span class=\"sd-mobile-tool-title\">{{ tool.title }}</span>\n <span class=\"sd-mobile-tool-hint\">{{ _busy ? progress() : tool.hint }}</span>\n </span>\n </button>\n }\n </div>\n <span class=\"sd-mobile-tools-status\" role=\"status\">{{ _running && _exporting ? progress() : '' }}</span>\n </section>\n }\n @if (_others.length) {\n <section class=\"sd-mobile-tools-section\" [attr.aria-labelledby]=\"ids.table\">\n <h3 class=\"sd-mobile-tools-label\" [id]=\"ids.table\">{{ 'core.component.table.mobile.tools-table' | sdTranslate }}</h3>\n @for (tool of _others; track tool.action.key) {\n <button\n type=\"button\"\n class=\"sd-mobile-tool sd-mobile-tool-row\"\n [attr.data-tone]=\"tool.tone\"\n [attr.data-autoid]=\"_autoId ? _autoId + '-mobile-' + tool.action.key : null\"\n [disabled]=\"tool.action.disabled\"\n (click)=\"run(tool)\">\n <span class=\"sd-mobile-tool-icon\" aria-hidden=\"true\"><sd-icon [name]=\"tool.icon\" size=\"22px\"></sd-icon></span>\n <span class=\"sd-mobile-tool-text\">\n <span class=\"sd-mobile-tool-title\">{{ tool.title }}</span>\n @if (tool.hint) {\n <span class=\"sd-mobile-tool-hint\">{{ tool.hint }}</span>\n }\n </span>\n @if (tool.badge) {\n <span class=\"sd-mobile-tool-badge\">{{ tool.badge }}</span>\n }\n <sd-icon class=\"sd-mobile-tool-chevron\" name=\"chevron_right\" size=\"22px\" aria-hidden=\"true\"></sd-icon>\n </button>\n }\n </section>\n }\n </div>\n</sd-modal>\n", styles: [".sd-mobile-sheet-head{display:flex;flex-direction:column;width:100%;min-width:0;touch-action:none}.sd-mobile-sheet-handle{display:block;width:32px;height:4px;margin:10px auto 4px;border-radius:2px;background:var(--sd-border)}.sd-mobile-sheet-title-row{display:flex;align-items:center;gap:4px;min-height:48px;padding:0 8px 0 20px}.sd-mobile-sheet-title{flex:1 1 auto;min-width:0;margin:0;overflow:hidden;font-size:var(--sd-font-size-20, 20px);line-height:var(--sd-line-height-28, 28px);font-weight:var(--sd-font-weight-medium, 500);color:var(--sd-text);text-overflow:ellipsis;white-space:nowrap;outline:none}.sd-mobile-sheet-subtitle{font-size:var(--sd-font-size-13, 13px);line-height:var(--sd-line-height-18, 18px);color:var(--sd-text-secondary)}.sd-mobile-sheet-icon{flex:0 0 44px;width:44px;height:44px;padding:0;color:var(--sd-text-secondary);--mat-icon-button-state-layer-size: 44px;--mdc-icon-button-state-layer-size: 44px}.sd-mobile-sheet-body{display:flex;flex-direction:column;gap:12px;padding:4px 20px 16px}.sd-mobile-sheet-footer{display:flex;gap:8px;width:100%}.sd-mobile-sheet-cancel{flex:1 1 0}.sd-mobile-sheet-apply{flex:2 1 0}.sd-mobile-sheet-cancel,.sd-mobile-sheet-apply{min-width:0}.sd-mobile-sheet-cancel ::ng-deep button,.sd-mobile-sheet-apply ::ng-deep button{width:100%;height:40px;border-radius:var(--sd-radius-999, 999px)}::ng-deep .sd-table-mobile-filter-sheet.mat-bottom-sheet-container,::ng-deep .sd-table-mobile-filter-sheet.mat-mdc-bottom-sheet-container,::ng-deep .sd-table-mobile-filter-sheet .mat-bottom-sheet-container,::ng-deep .sd-table-mobile-filter-sheet .mat-mdc-bottom-sheet-container{max-height:85dvh;border-radius:28px 28px 0 0!important}::ng-deep .sd-table-mobile-filter-sheet .sd-modal-header{padding:0;border-bottom:0}::ng-deep .sd-table-mobile-filter-sheet .sd-modal-header-left{flex:1 1 auto;min-width:0}::ng-deep .sd-table-mobile-filter-sheet .sd-modal-body{padding:0}::ng-deep .sd-table-mobile-filter-sheet .sd-modal-footer{min-height:0;padding:12px max(16px,env(safe-area-inset-right,0px)) max(16px,env(safe-area-inset-bottom,0px)) max(16px,env(safe-area-inset-left,0px))}::ng-deep .sd-table-mobile-filter-sheet .sd-modal-footer-left{display:none}::ng-deep .sd-table-mobile-filter-sheet .sd-modal-footer-right{flex:1 1 auto;margin-left:0}.sd-mobile-tools{display:flex;flex-direction:column;gap:20px;padding:4px 20px max(20px,env(safe-area-inset-bottom))}.sd-mobile-tools-section{display:flex;flex-direction:column;gap:10px}.sd-mobile-tools-label{margin:0;font-size:var(--sd-font-size-12, 12px);line-height:var(--sd-line-height-16, 16px);font-weight:var(--sd-font-weight-medium, 500);letter-spacing:.02em;color:var(--sd-text-secondary)}.sd-mobile-tools-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.sd-mobile-tools-tiles--single{grid-template-columns:minmax(0,1fr)}.sd-mobile-tools-status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.sd-mobile-tool{--sd-mobile-tool-bg: var(--sd-secondary-light);--sd-mobile-tool-fg: var(--sd-secondary-dark);appearance:none;min-width:0;margin:0;border:1px solid var(--sd-border);border-radius:var(--sd-radius-12, 12px);background:var(--sd-surface);color:var(--sd-text);font:inherit;text-align:start;cursor:pointer;transition:background-color .12s ease,border-color .12s ease}.sd-mobile-tool:hover:not(:disabled),.sd-mobile-tool:active:not(:disabled){border-color:color-mix(in srgb,var(--sd-mobile-tool-fg) 32%,var(--sd-border));background:color-mix(in srgb,var(--sd-mobile-tool-fg) 6%,var(--sd-surface))}.sd-mobile-tool:focus-visible{outline:var(--sd-focus-ring-width, 2px) solid var(--sd-focus-ring-color, var(--sd-primary));outline-offset:2px}.sd-mobile-tool:disabled{cursor:default}.sd-mobile-tool:disabled:not([aria-busy=true]){opacity:.5}.sd-mobile-tool[aria-busy=true]{border-color:color-mix(in srgb,var(--sd-mobile-tool-fg) 40%,var(--sd-border));background:color-mix(in srgb,var(--sd-mobile-tool-fg) 6%,var(--sd-surface))}.sd-mobile-tool[data-tone=success]{--sd-mobile-tool-bg: var(--sd-success-light);--sd-mobile-tool-fg: var(--sd-success-dark)}.sd-mobile-tool[data-tone=info]{--sd-mobile-tool-bg: var(--sd-info-light);--sd-mobile-tool-fg: var(--sd-info-dark)}.sd-mobile-tool[data-tone=primary]{--sd-mobile-tool-bg: var(--sd-primary-light);--sd-mobile-tool-fg: var(--sd-primary-dark)}.sd-mobile-tool-tile{display:flex;flex-direction:column;align-items:flex-start;gap:12px;min-height:112px;padding:14px}.sd-mobile-tool-row{display:flex;align-items:center;gap:14px;width:100%;min-height:64px;padding:10px 8px 10px 12px}.sd-mobile-tool-icon{display:grid;flex:0 0 40px;place-items:center;width:40px;height:40px;border-radius:var(--sd-radius-10, 10px);background:var(--sd-mobile-tool-bg);color:var(--sd-mobile-tool-fg);--mdc-circular-progress-active-indicator-color: var(--sd-mobile-tool-fg)}.sd-mobile-tool-text{display:flex;flex:1 1 auto;flex-direction:column;gap:2px;min-width:0}.sd-mobile-tool-title{font-size:var(--sd-font-size-15, 15px);line-height:var(--sd-line-height-20, 20px);font-weight:var(--sd-font-weight-medium, 500);overflow-wrap:anywhere}.sd-mobile-tool-hint{font-size:var(--sd-font-size-12, 12px);line-height:var(--sd-line-height-16, 16px);color:var(--sd-text-secondary);overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.sd-mobile-tool-badge{flex:0 0 auto;padding:2px 8px;border-radius:var(--sd-radius-full, 999px);background:var(--sd-primary-light);color:var(--sd-primary-dark);font-size:var(--sd-font-size-12, 12px);line-height:var(--sd-line-height-16, 16px);font-weight:var(--sd-font-weight-medium, 500);white-space:nowrap}.sd-mobile-tool-chevron{flex:0 0 auto;color:var(--sd-text-secondary)}@media(prefers-reduced-motion:reduce){.sd-mobile-tool{transition:none}}\n"] }]
|
|
2710
2794
|
}], ctorParameters: () => [], propDecorators: { table: [{ type: i0.Input, args: [{ isSignal: true, alias: "table", required: true }] }], actions: [{ type: i0.Input, args: [{ isSignal: true, alias: "actions", required: true }] }], sheet: [{ type: i0.ViewChild, args: ['sheet', { isSignal: true }] }], head: [{ type: i0.ViewChild, args: ['head', { isSignal: true }] }] } });
|
|
2711
2795
|
|
|
2712
2796
|
/**
|
|
@@ -2778,11 +2862,11 @@ class SdTableMobileSortSheetComponent {
|
|
|
2778
2862
|
sort.sortChange.emit({ active, direction });
|
|
2779
2863
|
}
|
|
2780
2864
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: SdTableMobileSortSheetComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2781
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "20.3.25", type: SdTableMobileSortSheetComponent, isStandalone: true, selector: "sd-table-mobile-sort-sheet", inputs: { table: { classPropertyName: "table", publicName: "table", isSignal: true, isRequired: true, transformFunction: null } }, viewQueries: [{ propertyName: "sheet", first: true, predicate: ["sheet"], descendants: true, isSignal: true }, { propertyName: "head", first: true, predicate: ["head"], descendants: true, isSignal: true }], ngImport: i0, template: "@let _autoId = table().autoId();\n@let _active = active();\n<sd-modal\n #sheet\n view=\"bottom-sheet\"\n [title]=\"'core.component.table.mobile.sort' | sdTranslate\"\n [autoId]=\"_autoId ? _autoId + '-mobile-sort-sheet' : undefined\"\n hideClose\n [disableBackdropClose]=\"false\"\n [closeOnNavigation]=\"false\"\n modalClass=\"sd-table-mobile-filter-sheet sd-table-mobile-sort-sheet\"\n (sdClosed)=\"onClosed()\">\n <div sdHeaderLeft #head class=\"sd-mobile-sheet-head\">\n <span class=\"sd-mobile-sheet-handle\" aria-hidden=\"true\"></span>\n <div class=\"sd-mobile-sheet-title-row\">\n <!-- why: Material focuses the first tabbable element on open; the title keeps Clear sort from showing its focus fill. -->\n <h2 class=\"sd-mobile-sheet-title\" tabindex=\"-1\" cdkFocusInitial>{{ 'core.component.table.mobile.sort' | sdTranslate }}</h2>\n <sd-button\n [autoId]=\"_autoId ? _autoId + '-mobile-sort-clear' : null\"\n type=\"text\"\n color=\"primary\"\n size=\"md\"\n [disabled]=\"!_active\"\n [title]=\"'core.component.table.mobile.sort-clear' | sdTranslate\"\n (click)=\"clear()\"></sd-button>\n </div>\n </div>\n <div class=\"sd-mobile-sheet-body sd-mobile-sort-body\">\n <sd-segmented\n class=\"sd-mobile-sort-direction\"\n [autoId]=\"_autoId ? _autoId + '-mobile-sort-direction' : null\"\n [ariaLabel]=\"'core.component.table.mobile.sort' | sdTranslate\"\n [items]=\"directions()\"\n [option]=\"{ stretch: true }\"\n [model]=\"direction()\"\n (sdChange)=\"pickDirection($event)\"></sd-segmented>\n <sd-radio\n class=\"sd-mobile-sort-columns\"\n [autoId]=\"_autoId ? _autoId + '-mobile-sort-columns' : null\"\n [placeholder]=\"'core.component.table.mobile.sort' | sdTranslate\"\n display=\"column\"\n [items]=\"columns()\"\n valueField=\"value\"\n displayField=\"label\"\n [model]=\"_active || null\"\n (modelChange)=\"pickColumn($event)\"></sd-radio>\n </div>\n</sd-modal>\n", styles: [".sd-mobile-sheet-head{display:flex;flex-direction:column;width:100%;min-width:0;touch-action:none}.sd-mobile-sheet-handle{display:block;width:32px;height:4px;margin:10px auto 4px;border-radius:2px;background:var(--sd-border)}.sd-mobile-sheet-title-row{display:flex;align-items:center;gap:4px;min-height:48px;padding:0 8px 0 20px}.sd-mobile-sheet-title{flex:1 1 auto;min-width:0;margin:0;overflow:hidden;font-size:var(--sd-font-size-20, 20px);line-height:var(--sd-line-height-28, 28px);font-weight:var(--sd-font-weight-medium, 500);color:var(--sd-text);text-overflow:ellipsis;white-space:nowrap;outline:none}.sd-mobile-sheet-subtitle{font-size:var(--sd-font-size-13, 13px);line-height:var(--sd-line-height-18, 18px);color:var(--sd-text-secondary)}.sd-mobile-sheet-icon{flex:0 0 44px;width:44px;height:44px;padding:0;color:var(--sd-text-secondary);--mat-icon-button-state-layer-size: 44px;--mdc-icon-button-state-layer-size: 44px}.sd-mobile-sheet-body{display:flex;flex-direction:column;gap:12px;padding:4px 20px 16px}.sd-mobile-sheet-footer{display:flex;gap:8px;width:100%}.sd-mobile-sheet-cancel{flex:1 1 0}.sd-mobile-sheet-apply{flex:2 1 0}.sd-mobile-sheet-cancel,.sd-mobile-sheet-apply{min-width:0}.sd-mobile-sheet-cancel ::ng-deep button,.sd-mobile-sheet-apply ::ng-deep button{width:100%;height:40px;border-radius:var(--sd-radius-999, 999px)}::ng-deep .sd-table-mobile-filter-sheet.mat-bottom-sheet-container,::ng-deep .sd-table-mobile-filter-sheet.mat-mdc-bottom-sheet-container,::ng-deep .sd-table-mobile-filter-sheet .mat-bottom-sheet-container,::ng-deep .sd-table-mobile-filter-sheet .mat-mdc-bottom-sheet-container{max-height:85dvh;border-radius:28px 28px 0 0!important}::ng-deep .sd-table-mobile-filter-sheet .sd-modal-header{padding:0;border-bottom:0}::ng-deep .sd-table-mobile-filter-sheet .sd-modal-header-left{flex:1 1 auto;min-width:0}::ng-deep .sd-table-mobile-filter-sheet .sd-modal-body{padding:0}::ng-deep .sd-table-mobile-filter-sheet .sd-modal-footer{min-height:0;padding:12px 16px 16px}::ng-deep .sd-table-mobile-filter-sheet .sd-modal-footer-left{display:none}::ng-deep .sd-table-mobile-filter-sheet .sd-modal-footer-right{flex:1 1 auto;margin-left:0}.sd-mobile-sort-body{min-height:0;overflow-y:auto}.sd-mobile-sort-direction{display:block;width:100%}.sd-mobile-sort-columns ::ng-deep .mat-mdc-radio-button{display:flex;align-items:center;min-height:48px}\n"], dependencies: [{ kind: "component", type: SdModal, selector: "sd-modal", inputs: ["autoId", "title", "color", "width", "height", "view", "modalClass", "lazyLoadContent", "hideClose", "disableBackdropClose", "beforeClose", "closeOnNavigation"], outputs: ["sdClosed", "sdCloseError"] }, { kind: "component", type: SdButton, selector: "sd-button", inputs: ["autoId", "type", "color", "size", "fontSet", "title", "width", "tooltip", "prefixIcon", "suffixIcon", "disabled", "openOnHover", "loading", "block", "htmlType", "indicator", "indicatorColor", "indicatorMax", "indicatorLabel"], outputs: ["click"] }, { kind: "component", type: SdRadio, selector: "sd-radio", inputs: ["autoId", "name", "form", "label", "placeholder", "display", "items", "valueField", "displayField", "required", "inlineError", "disabled", "viewed", "color", "hyperlink", "model"], outputs: ["modelChange", "sdChange", "sdSelection"] }, { kind: "component", type: SdSegmentedComponent, selector: "sd-segmented", inputs: ["items", "option", "model", "label", "ariaLabel", "size", "color", "type", "disabled", "readonly", "loading", "required", "inlineError", "validator", "form", "name", "autoId"], outputs: ["modelChange", "sdChange"] }, { kind: "pipe", type: SdTranslatePipe, name: "sdTranslate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
2865
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "20.3.25", type: SdTableMobileSortSheetComponent, isStandalone: true, selector: "sd-table-mobile-sort-sheet", inputs: { table: { classPropertyName: "table", publicName: "table", isSignal: true, isRequired: true, transformFunction: null } }, viewQueries: [{ propertyName: "sheet", first: true, predicate: ["sheet"], descendants: true, isSignal: true }, { propertyName: "head", first: true, predicate: ["head"], descendants: true, isSignal: true }], ngImport: i0, template: "@let _autoId = table().autoId();\n@let _active = active();\n<sd-modal\n #sheet\n view=\"bottom-sheet\"\n [title]=\"'core.component.table.mobile.sort' | sdTranslate\"\n [autoId]=\"_autoId ? _autoId + '-mobile-sort-sheet' : undefined\"\n hideClose\n [disableBackdropClose]=\"false\"\n [closeOnNavigation]=\"false\"\n modalClass=\"sd-table-mobile-filter-sheet sd-table-mobile-sort-sheet\"\n (sdClosed)=\"onClosed()\">\n <div sdHeaderLeft #head class=\"sd-mobile-sheet-head\">\n <span class=\"sd-mobile-sheet-handle\" aria-hidden=\"true\"></span>\n <div class=\"sd-mobile-sheet-title-row\">\n <!-- why: Material focuses the first tabbable element on open; the title keeps Clear sort from showing its focus fill. -->\n <h2 class=\"sd-mobile-sheet-title\" tabindex=\"-1\" cdkFocusInitial>{{ 'core.component.table.mobile.sort' | sdTranslate }}</h2>\n <sd-button\n [autoId]=\"_autoId ? _autoId + '-mobile-sort-clear' : null\"\n type=\"text\"\n color=\"primary\"\n size=\"md\"\n [disabled]=\"!_active\"\n [title]=\"'core.component.table.mobile.sort-clear' | sdTranslate\"\n (click)=\"clear()\"></sd-button>\n </div>\n </div>\n <div class=\"sd-mobile-sheet-body sd-mobile-sort-body\">\n <sd-segmented\n class=\"sd-mobile-sort-direction\"\n [autoId]=\"_autoId ? _autoId + '-mobile-sort-direction' : null\"\n [ariaLabel]=\"'core.component.table.mobile.sort' | sdTranslate\"\n [items]=\"directions()\"\n [option]=\"{ stretch: true }\"\n [model]=\"direction()\"\n (sdChange)=\"pickDirection($event)\"></sd-segmented>\n <sd-radio\n class=\"sd-mobile-sort-columns\"\n [autoId]=\"_autoId ? _autoId + '-mobile-sort-columns' : null\"\n [placeholder]=\"'core.component.table.mobile.sort' | sdTranslate\"\n display=\"column\"\n [items]=\"columns()\"\n valueField=\"value\"\n displayField=\"label\"\n [model]=\"_active || null\"\n (modelChange)=\"pickColumn($event)\"></sd-radio>\n </div>\n</sd-modal>\n", styles: [".sd-mobile-sheet-head{display:flex;flex-direction:column;width:100%;min-width:0;touch-action:none}.sd-mobile-sheet-handle{display:block;width:32px;height:4px;margin:10px auto 4px;border-radius:2px;background:var(--sd-border)}.sd-mobile-sheet-title-row{display:flex;align-items:center;gap:4px;min-height:48px;padding:0 8px 0 20px}.sd-mobile-sheet-title{flex:1 1 auto;min-width:0;margin:0;overflow:hidden;font-size:var(--sd-font-size-20, 20px);line-height:var(--sd-line-height-28, 28px);font-weight:var(--sd-font-weight-medium, 500);color:var(--sd-text);text-overflow:ellipsis;white-space:nowrap;outline:none}.sd-mobile-sheet-subtitle{font-size:var(--sd-font-size-13, 13px);line-height:var(--sd-line-height-18, 18px);color:var(--sd-text-secondary)}.sd-mobile-sheet-icon{flex:0 0 44px;width:44px;height:44px;padding:0;color:var(--sd-text-secondary);--mat-icon-button-state-layer-size: 44px;--mdc-icon-button-state-layer-size: 44px}.sd-mobile-sheet-body{display:flex;flex-direction:column;gap:12px;padding:4px 20px 16px}.sd-mobile-sheet-footer{display:flex;gap:8px;width:100%}.sd-mobile-sheet-cancel{flex:1 1 0}.sd-mobile-sheet-apply{flex:2 1 0}.sd-mobile-sheet-cancel,.sd-mobile-sheet-apply{min-width:0}.sd-mobile-sheet-cancel ::ng-deep button,.sd-mobile-sheet-apply ::ng-deep button{width:100%;height:40px;border-radius:var(--sd-radius-999, 999px)}::ng-deep .sd-table-mobile-filter-sheet.mat-bottom-sheet-container,::ng-deep .sd-table-mobile-filter-sheet.mat-mdc-bottom-sheet-container,::ng-deep .sd-table-mobile-filter-sheet .mat-bottom-sheet-container,::ng-deep .sd-table-mobile-filter-sheet .mat-mdc-bottom-sheet-container{max-height:85dvh;border-radius:28px 28px 0 0!important}::ng-deep .sd-table-mobile-filter-sheet .sd-modal-header{padding:0;border-bottom:0}::ng-deep .sd-table-mobile-filter-sheet .sd-modal-header-left{flex:1 1 auto;min-width:0}::ng-deep .sd-table-mobile-filter-sheet .sd-modal-body{padding:0}::ng-deep .sd-table-mobile-filter-sheet .sd-modal-footer{min-height:0;padding:12px max(16px,env(safe-area-inset-right,0px)) max(16px,env(safe-area-inset-bottom,0px)) max(16px,env(safe-area-inset-left,0px))}::ng-deep .sd-table-mobile-filter-sheet .sd-modal-footer-left{display:none}::ng-deep .sd-table-mobile-filter-sheet .sd-modal-footer-right{flex:1 1 auto;margin-left:0}.sd-mobile-sort-body{min-height:0;overflow-y:auto}.sd-mobile-sort-direction{display:block;width:100%}.sd-mobile-sort-columns ::ng-deep .mat-mdc-radio-button{display:flex;align-items:center;min-height:48px}\n"], dependencies: [{ kind: "component", type: SdModal, selector: "sd-modal", inputs: ["autoId", "title", "color", "width", "height", "view", "modalClass", "lazyLoadContent", "hideClose", "enableBackdropClose", "disableBackdropClose", "beforeClose", "closeOnNavigation"], outputs: ["sdClosed", "sdCloseError"] }, { kind: "component", type: SdButton, selector: "sd-button", inputs: ["autoId", "type", "color", "size", "fontSet", "title", "width", "tooltip", "prefixIcon", "suffixIcon", "disabled", "openOnHover", "loading", "block", "htmlType", "indicator", "indicatorColor", "indicatorMax", "indicatorLabel"], outputs: ["click"] }, { kind: "component", type: SdRadio, selector: "sd-radio", inputs: ["autoId", "name", "form", "label", "placeholder", "display", "items", "valueField", "displayField", "required", "inlineError", "disabled", "viewed", "color", "hyperlink", "model"], outputs: ["modelChange", "sdChange", "sdSelection"] }, { kind: "component", type: SdSegmentedComponent, selector: "sd-segmented", inputs: ["items", "option", "model", "label", "ariaLabel", "size", "color", "type", "disabled", "readonly", "loading", "required", "inlineError", "validator", "form", "name", "autoId"], outputs: ["modelChange", "sdChange"] }, { kind: "pipe", type: SdTranslatePipe, name: "sdTranslate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
2782
2866
|
}
|
|
2783
2867
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: SdTableMobileSortSheetComponent, decorators: [{
|
|
2784
2868
|
type: Component,
|
|
2785
|
-
args: [{ selector: 'sd-table-mobile-sort-sheet', changeDetection: ChangeDetectionStrategy.OnPush, imports: [SdModal, SdButton, SdRadio, SdSegmentedComponent, SdTranslatePipe], template: "@let _autoId = table().autoId();\n@let _active = active();\n<sd-modal\n #sheet\n view=\"bottom-sheet\"\n [title]=\"'core.component.table.mobile.sort' | sdTranslate\"\n [autoId]=\"_autoId ? _autoId + '-mobile-sort-sheet' : undefined\"\n hideClose\n [disableBackdropClose]=\"false\"\n [closeOnNavigation]=\"false\"\n modalClass=\"sd-table-mobile-filter-sheet sd-table-mobile-sort-sheet\"\n (sdClosed)=\"onClosed()\">\n <div sdHeaderLeft #head class=\"sd-mobile-sheet-head\">\n <span class=\"sd-mobile-sheet-handle\" aria-hidden=\"true\"></span>\n <div class=\"sd-mobile-sheet-title-row\">\n <!-- why: Material focuses the first tabbable element on open; the title keeps Clear sort from showing its focus fill. -->\n <h2 class=\"sd-mobile-sheet-title\" tabindex=\"-1\" cdkFocusInitial>{{ 'core.component.table.mobile.sort' | sdTranslate }}</h2>\n <sd-button\n [autoId]=\"_autoId ? _autoId + '-mobile-sort-clear' : null\"\n type=\"text\"\n color=\"primary\"\n size=\"md\"\n [disabled]=\"!_active\"\n [title]=\"'core.component.table.mobile.sort-clear' | sdTranslate\"\n (click)=\"clear()\"></sd-button>\n </div>\n </div>\n <div class=\"sd-mobile-sheet-body sd-mobile-sort-body\">\n <sd-segmented\n class=\"sd-mobile-sort-direction\"\n [autoId]=\"_autoId ? _autoId + '-mobile-sort-direction' : null\"\n [ariaLabel]=\"'core.component.table.mobile.sort' | sdTranslate\"\n [items]=\"directions()\"\n [option]=\"{ stretch: true }\"\n [model]=\"direction()\"\n (sdChange)=\"pickDirection($event)\"></sd-segmented>\n <sd-radio\n class=\"sd-mobile-sort-columns\"\n [autoId]=\"_autoId ? _autoId + '-mobile-sort-columns' : null\"\n [placeholder]=\"'core.component.table.mobile.sort' | sdTranslate\"\n display=\"column\"\n [items]=\"columns()\"\n valueField=\"value\"\n displayField=\"label\"\n [model]=\"_active || null\"\n (modelChange)=\"pickColumn($event)\"></sd-radio>\n </div>\n</sd-modal>\n", styles: [".sd-mobile-sheet-head{display:flex;flex-direction:column;width:100%;min-width:0;touch-action:none}.sd-mobile-sheet-handle{display:block;width:32px;height:4px;margin:10px auto 4px;border-radius:2px;background:var(--sd-border)}.sd-mobile-sheet-title-row{display:flex;align-items:center;gap:4px;min-height:48px;padding:0 8px 0 20px}.sd-mobile-sheet-title{flex:1 1 auto;min-width:0;margin:0;overflow:hidden;font-size:var(--sd-font-size-20, 20px);line-height:var(--sd-line-height-28, 28px);font-weight:var(--sd-font-weight-medium, 500);color:var(--sd-text);text-overflow:ellipsis;white-space:nowrap;outline:none}.sd-mobile-sheet-subtitle{font-size:var(--sd-font-size-13, 13px);line-height:var(--sd-line-height-18, 18px);color:var(--sd-text-secondary)}.sd-mobile-sheet-icon{flex:0 0 44px;width:44px;height:44px;padding:0;color:var(--sd-text-secondary);--mat-icon-button-state-layer-size: 44px;--mdc-icon-button-state-layer-size: 44px}.sd-mobile-sheet-body{display:flex;flex-direction:column;gap:12px;padding:4px 20px 16px}.sd-mobile-sheet-footer{display:flex;gap:8px;width:100%}.sd-mobile-sheet-cancel{flex:1 1 0}.sd-mobile-sheet-apply{flex:2 1 0}.sd-mobile-sheet-cancel,.sd-mobile-sheet-apply{min-width:0}.sd-mobile-sheet-cancel ::ng-deep button,.sd-mobile-sheet-apply ::ng-deep button{width:100%;height:40px;border-radius:var(--sd-radius-999, 999px)}::ng-deep .sd-table-mobile-filter-sheet.mat-bottom-sheet-container,::ng-deep .sd-table-mobile-filter-sheet.mat-mdc-bottom-sheet-container,::ng-deep .sd-table-mobile-filter-sheet .mat-bottom-sheet-container,::ng-deep .sd-table-mobile-filter-sheet .mat-mdc-bottom-sheet-container{max-height:85dvh;border-radius:28px 28px 0 0!important}::ng-deep .sd-table-mobile-filter-sheet .sd-modal-header{padding:0;border-bottom:0}::ng-deep .sd-table-mobile-filter-sheet .sd-modal-header-left{flex:1 1 auto;min-width:0}::ng-deep .sd-table-mobile-filter-sheet .sd-modal-body{padding:0}::ng-deep .sd-table-mobile-filter-sheet .sd-modal-footer{min-height:0;padding:12px 16px 16px}::ng-deep .sd-table-mobile-filter-sheet .sd-modal-footer-left{display:none}::ng-deep .sd-table-mobile-filter-sheet .sd-modal-footer-right{flex:1 1 auto;margin-left:0}.sd-mobile-sort-body{min-height:0;overflow-y:auto}.sd-mobile-sort-direction{display:block;width:100%}.sd-mobile-sort-columns ::ng-deep .mat-mdc-radio-button{display:flex;align-items:center;min-height:48px}\n"] }]
|
|
2869
|
+
args: [{ selector: 'sd-table-mobile-sort-sheet', changeDetection: ChangeDetectionStrategy.OnPush, imports: [SdModal, SdButton, SdRadio, SdSegmentedComponent, SdTranslatePipe], template: "@let _autoId = table().autoId();\n@let _active = active();\n<sd-modal\n #sheet\n view=\"bottom-sheet\"\n [title]=\"'core.component.table.mobile.sort' | sdTranslate\"\n [autoId]=\"_autoId ? _autoId + '-mobile-sort-sheet' : undefined\"\n hideClose\n [disableBackdropClose]=\"false\"\n [closeOnNavigation]=\"false\"\n modalClass=\"sd-table-mobile-filter-sheet sd-table-mobile-sort-sheet\"\n (sdClosed)=\"onClosed()\">\n <div sdHeaderLeft #head class=\"sd-mobile-sheet-head\">\n <span class=\"sd-mobile-sheet-handle\" aria-hidden=\"true\"></span>\n <div class=\"sd-mobile-sheet-title-row\">\n <!-- why: Material focuses the first tabbable element on open; the title keeps Clear sort from showing its focus fill. -->\n <h2 class=\"sd-mobile-sheet-title\" tabindex=\"-1\" cdkFocusInitial>{{ 'core.component.table.mobile.sort' | sdTranslate }}</h2>\n <sd-button\n [autoId]=\"_autoId ? _autoId + '-mobile-sort-clear' : null\"\n type=\"text\"\n color=\"primary\"\n size=\"md\"\n [disabled]=\"!_active\"\n [title]=\"'core.component.table.mobile.sort-clear' | sdTranslate\"\n (click)=\"clear()\"></sd-button>\n </div>\n </div>\n <div class=\"sd-mobile-sheet-body sd-mobile-sort-body\">\n <sd-segmented\n class=\"sd-mobile-sort-direction\"\n [autoId]=\"_autoId ? _autoId + '-mobile-sort-direction' : null\"\n [ariaLabel]=\"'core.component.table.mobile.sort' | sdTranslate\"\n [items]=\"directions()\"\n [option]=\"{ stretch: true }\"\n [model]=\"direction()\"\n (sdChange)=\"pickDirection($event)\"></sd-segmented>\n <sd-radio\n class=\"sd-mobile-sort-columns\"\n [autoId]=\"_autoId ? _autoId + '-mobile-sort-columns' : null\"\n [placeholder]=\"'core.component.table.mobile.sort' | sdTranslate\"\n display=\"column\"\n [items]=\"columns()\"\n valueField=\"value\"\n displayField=\"label\"\n [model]=\"_active || null\"\n (modelChange)=\"pickColumn($event)\"></sd-radio>\n </div>\n</sd-modal>\n", styles: [".sd-mobile-sheet-head{display:flex;flex-direction:column;width:100%;min-width:0;touch-action:none}.sd-mobile-sheet-handle{display:block;width:32px;height:4px;margin:10px auto 4px;border-radius:2px;background:var(--sd-border)}.sd-mobile-sheet-title-row{display:flex;align-items:center;gap:4px;min-height:48px;padding:0 8px 0 20px}.sd-mobile-sheet-title{flex:1 1 auto;min-width:0;margin:0;overflow:hidden;font-size:var(--sd-font-size-20, 20px);line-height:var(--sd-line-height-28, 28px);font-weight:var(--sd-font-weight-medium, 500);color:var(--sd-text);text-overflow:ellipsis;white-space:nowrap;outline:none}.sd-mobile-sheet-subtitle{font-size:var(--sd-font-size-13, 13px);line-height:var(--sd-line-height-18, 18px);color:var(--sd-text-secondary)}.sd-mobile-sheet-icon{flex:0 0 44px;width:44px;height:44px;padding:0;color:var(--sd-text-secondary);--mat-icon-button-state-layer-size: 44px;--mdc-icon-button-state-layer-size: 44px}.sd-mobile-sheet-body{display:flex;flex-direction:column;gap:12px;padding:4px 20px 16px}.sd-mobile-sheet-footer{display:flex;gap:8px;width:100%}.sd-mobile-sheet-cancel{flex:1 1 0}.sd-mobile-sheet-apply{flex:2 1 0}.sd-mobile-sheet-cancel,.sd-mobile-sheet-apply{min-width:0}.sd-mobile-sheet-cancel ::ng-deep button,.sd-mobile-sheet-apply ::ng-deep button{width:100%;height:40px;border-radius:var(--sd-radius-999, 999px)}::ng-deep .sd-table-mobile-filter-sheet.mat-bottom-sheet-container,::ng-deep .sd-table-mobile-filter-sheet.mat-mdc-bottom-sheet-container,::ng-deep .sd-table-mobile-filter-sheet .mat-bottom-sheet-container,::ng-deep .sd-table-mobile-filter-sheet .mat-mdc-bottom-sheet-container{max-height:85dvh;border-radius:28px 28px 0 0!important}::ng-deep .sd-table-mobile-filter-sheet .sd-modal-header{padding:0;border-bottom:0}::ng-deep .sd-table-mobile-filter-sheet .sd-modal-header-left{flex:1 1 auto;min-width:0}::ng-deep .sd-table-mobile-filter-sheet .sd-modal-body{padding:0}::ng-deep .sd-table-mobile-filter-sheet .sd-modal-footer{min-height:0;padding:12px max(16px,env(safe-area-inset-right,0px)) max(16px,env(safe-area-inset-bottom,0px)) max(16px,env(safe-area-inset-left,0px))}::ng-deep .sd-table-mobile-filter-sheet .sd-modal-footer-left{display:none}::ng-deep .sd-table-mobile-filter-sheet .sd-modal-footer-right{flex:1 1 auto;margin-left:0}.sd-mobile-sort-body{min-height:0;overflow-y:auto}.sd-mobile-sort-direction{display:block;width:100%}.sd-mobile-sort-columns ::ng-deep .mat-mdc-radio-button{display:flex;align-items:center;min-height:48px}\n"] }]
|
|
2786
2870
|
}], ctorParameters: () => [], propDecorators: { table: [{ type: i0.Input, args: [{ isSignal: true, alias: "table", required: true }] }], sheet: [{ type: i0.ViewChild, args: ['sheet', { isSignal: true }] }], head: [{ type: i0.ViewChild, args: ['head', { isSignal: true }] }] } });
|
|
2787
2871
|
|
|
2788
2872
|
/**
|
|
@@ -3094,7 +3178,7 @@ class SdTableMobileActionsComponent {
|
|
|
3094
3178
|
owner.focus();
|
|
3095
3179
|
}
|
|
3096
3180
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: SdTableMobileActionsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3097
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.25", type: SdTableMobileActionsComponent, isStandalone: true, selector: "sd-table-mobile-actions", inputs: { actions: { classPropertyName: "actions", publicName: "actions", isSignal: true, isRequired: true, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: true, transformFunction: null }, selection: { classPropertyName: "selection", publicName: "selection", isSignal: true, isRequired: false, transformFunction: null }, count: { classPropertyName: "count", publicName: "count", isSignal: true, isRequired: false, transformFunction: null }, autoOpen: { classPropertyName: "autoOpen", publicName: "autoOpen", isSignal: true, isRequired: false, transformFunction: null }, autoId: { classPropertyName: "autoId", publicName: "autoId", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { end: "end" }, viewQueries: [{ propertyName: "sheet", first: true, predicate: ["sheet"], descendants: true, isSignal: true }], ngImport: i0, template: "@let _busy = busy();\n@let _error = error();\n@let _autoId = autoId();\n@let _title = title();\n@let _selection = selection();\n@if (_selection) {\n <div class=\"sd-mobile-actions\" role=\"region\" [attr.aria-label]=\"_title\">\n <sd-quick-action opened contained class=\"sd-mobile-quick-action\">\n <span sdMessage class=\"sd-mobile-selection-summary\" [attr.aria-label]=\"_title\">\n <span class=\"sd-mobile-selection-count T14M\">{{ count() }}</span>\n </span>\n <div sdAction class=\"sd-mobile-action-buttons\">\n <div class=\"sd-mobile-action-list\">\n @for (action of direct(); track action.key) {\n <span class=\"sd-mobile-action-direct\">\n <sd-button\n [autoId]=\"_autoId ? _autoId + '-mobile-action-' + action.key : null\"\n [title]=\"action.title\"\n [prefixIcon]=\"action.icon\"\n [fontSet]=\"action.fontSet\"\n [color]=\"action.color\"\n size=\"sm\"\n [type]=\"action.type || 'text'\"\n [disabled]=\"_busy || action.disabled\"\n (click)=\"run(action)\"></sd-button>\n </span>\n }\n @if (overflow().length) {\n <button\n mat-button\n type=\"button\"\n class=\"sd-mobile-more\"\n [disabled]=\"_busy\"\n aria-haspopup=\"dialog\"\n [attr.data-autoid]=\"_autoId ? _autoId + '-mobile-more' : null\"\n (click)=\"openMore()\">\n <sd-icon name=\"more_horiz\"></sd-icon><span>{{ 'core.component.table.mobile.more' | sdTranslate }}</span>\n </button>\n }\n </div>\n <button\n type=\"button\"\n class=\"sd-mobile-end sd-mobile-clear\"\n [attr.aria-label]=\"'core.component.table.clear-selection' | sdTranslate\"\n (click)=\"end.emit()\"\n [attr.data-autoid]=\"_autoId ? _autoId + '-mobile-end' : null\">\n <sd-icon name=\"close\"></sd-icon>\n </button>\n </div>\n </sd-quick-action>\n @if (_error; as message) {\n <p role=\"alert\">{{ message }}</p>\n }\n </div>\n}\n<sd-modal\n #sheet\n [autoId]=\"_autoId ? _autoId + '-mobile-sheet' : undefined\"\n [title]=\"_title\"\n view=\"bottom-sheet\"\n [disableBackdropClose]=\"false\"\n modalClass=\"sd-table-mobile-sheet-panel\"\n (sdClosed)=\"onSheetClosed()\">\n <div class=\"sd-mobile-sheet\">\n @for (action of sheetActions(); track action.key) {\n @if (action.children; as children) {\n <section [attr.aria-label]=\"action.title\" class=\"sd-mobile-action-group\">\n <h3 class=\"T12M\">{{ action.title }}</h3>\n @for (child of children; track child.key) {\n <button\n mat-button\n type=\"button\"\n class=\"sd-mobile-sheet-action\"\n [attr.data-autoid]=\"_autoId ? _autoId + '-mobile-' + child.key : null\"\n [disabled]=\"_busy || action.disabled || child.disabled\"\n (click)=\"runSheet(child)\">\n <sd-icon [name]=\"child.icon || 'chevron_right'\" [fontSet]=\"child.fontSet\" [color]=\"child.color\"></sd-icon>\n <span class=\"sd-mobile-sheet-label\"\n >{{ child.title }}\n @if (child.htmlTemplate) {\n <span [innerHTML]=\"child.htmlTemplate\"></span>\n }\n </span>\n </button>\n }\n </section>\n } @else {\n <button\n mat-button\n type=\"button\"\n class=\"sd-mobile-sheet-action\"\n [attr.data-autoid]=\"_autoId ? _autoId + '-mobile-' + action.key : null\"\n [disabled]=\"_busy || action.disabled\"\n (click)=\"runSheet(action)\">\n <sd-icon [name]=\"action.icon || 'chevron_right'\" [fontSet]=\"action.fontSet\" [color]=\"action.color\"></sd-icon>\n <span class=\"sd-mobile-sheet-label\"\n >{{ action.title }}\n @if (action.htmlTemplate) {\n <span [innerHTML]=\"action.htmlTemplate\"></span>\n }\n </span>\n </button>\n }\n }\n @if (_error; as message) {\n <p role=\"alert\">{{ message }}</p>\n }\n </div>\n</sd-modal>\n", styles: [":host{display:block;min-width:0}.sd-mobile-actions{min-width:0;padding:4px 12px max(8px,env(safe-area-inset-bottom))}.sd-mobile-selection-summary{display:flex;align-items:center}.sd-mobile-selection-count{display:inline-flex;align-items:center;justify-content:center;min-width:28px;height:28px;padding:0 6px;border-radius:var(--sd-radius-8, 8px);background:var(--sd-primary-light);color:var(--sd-primary-dark);font-variant-numeric:tabular-nums}.sd-mobile-action-buttons{display:grid;grid-template-columns:minmax(0,1fr) 40px;align-items:center;width:100%;min-width:0;gap:8px}.sd-mobile-action-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,72px),1fr));grid-auto-rows:minmax(40px,1fr);gap:4px 8px;min-width:0}.sd-mobile-action-direct{min-width:0}.sd-mobile-action-direct sd-button{width:100%;height:100%}.sd-mobile-more{display:inline-flex;align-items:center;justify-content:center;gap:4px;padding:0 6px;min-width:0;height:100%}.sd-mobile-end{display:grid;place-items:center;padding:0;width:40px;height:40px;border:0;border-radius:50%;background:transparent;color:var(--sd-text);line-height:0;cursor:pointer}.sd-mobile-end:hover{background:color-mix(in srgb,var(--sd-text) 8%,transparent)}button{min-height:40px;white-space:normal}button:focus-visible{outline:var(--sd-focus-ring-width, 2px) solid var(--sd-focus-ring-color, var(--sd-primary));outline-offset:2px}:host ::ng-deep .sd-mobile-quick-action .c-quick-action.contained{flex-wrap:nowrap;gap:8px;padding:4px 16px;border-radius:var(--sd-radius-12, 12px)}:host ::ng-deep .sd-mobile-quick-action .c-quick-action-message{flex:0 0 auto}:host ::ng-deep .sd-mobile-quick-action .c-quick-action-action{flex:1 1 auto}:host ::ng-deep .sd-mobile-quick-action .sd-mobile-more .mdc-button__label{display:inline-flex;align-items:center;gap:4px}:host ::ng-deep .sd-mobile-quick-action .sd-mobile-action-direct button{width:100%;height:100%;min-height:40px;padding:4px 6px!important;white-space:normal}:host ::ng-deep .sd-mobile-quick-action .sd-mobile-action-direct .c-title{white-space:normal;overflow:visible;overflow-wrap:anywhere;text-overflow:clip;line-height:var(--sd-line-height-18, 18px)}:host ::ng-deep .sd-mobile-quick-action .mat-mdc-button-touch-target{height:40px}:host ::ng-deep .sd-mobile-quick-action sd-icon,:host ::ng-deep .sd-mobile-quick-action sd-icon mat-icon{width:18px;height:18px;font-size:var(--sd-font-size-18, 18px);line-height:var(--sd-line-height-18, 18px)}:host ::ng-deep .sd-mobile-quick-action .sd-mobile-action-direct sd-icon mat-icon{width:16px;height:16px;font-size:var(--sd-font-size-16, 16px);line-height:var(--sd-line-height-16, 16px)}.sd-mobile-sheet{padding:0 12px max(12px,env(safe-area-inset-bottom));overflow-wrap:anywhere}.sd-mobile-action-group{padding:8px 0;border-top:1px solid var(--sd-border)}.sd-mobile-action-group:first-child{border-top:0;padding-top:0}.sd-mobile-action-group h3{margin:8px 12px 4px;color:var(--sd-text-secondary)}.sd-mobile-sheet-action{display:flex;align-items:center;justify-content:flex-start;gap:12px;width:100%;min-height:48px;padding:12px;text-align:start;border-radius:var(--sd-radius-10, 10px)}.sd-mobile-sheet-label{min-width:0;white-space:normal;overflow-wrap:anywhere;line-height:1.4}.sd-mobile-sheet-action sd-icon{flex:0 0 20px;display:inline-flex;align-items:center;justify-content:center}::ng-deep .sd-table-mobile-sheet-panel .sd-mobile-sheet-action .mdc-button__label{display:flex;align-items:center;gap:12px;width:100%}::ng-deep .sd-table-mobile-sheet-panel .sd-modal-title{overflow-wrap:anywhere;font-size:var(--sd-font-size-16, 16px);line-height:1.4}::ng-deep .sd-table-mobile-sheet-panel .sd-modal-header{min-height:64px;padding:12px 20px}::ng-deep .sd-table-mobile-sheet-panel .sd-modal-close-btn{width:40px;height:40px}\n"], dependencies: [{ kind: "component", type: SdQuickAction, selector: "sd-quick-action", inputs: ["opened", "contained"] }, { kind: "component", type: SdButton, selector: "sd-button", inputs: ["autoId", "type", "color", "size", "fontSet", "title", "width", "tooltip", "prefixIcon", "suffixIcon", "disabled", "openOnHover", "loading", "block", "htmlType", "indicator", "indicatorColor", "indicatorMax", "indicatorLabel"], outputs: ["click"] }, { kind: "component", type: SdModal, selector: "sd-modal", inputs: ["autoId", "title", "color", "width", "height", "view", "modalClass", "lazyLoadContent", "hideClose", "disableBackdropClose", "beforeClose", "closeOnNavigation"], outputs: ["sdClosed", "sdCloseError"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1$2.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: SdIcon, selector: "sd-icon", inputs: ["name", "fontIcon", "color", "set", "fontSet", "size", "strokeWidth", "absoluteStrokeWidth", "ariaLabel"] }, { kind: "pipe", type: SdTranslatePipe, name: "sdTranslate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
3181
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.25", type: SdTableMobileActionsComponent, isStandalone: true, selector: "sd-table-mobile-actions", inputs: { actions: { classPropertyName: "actions", publicName: "actions", isSignal: true, isRequired: true, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: true, transformFunction: null }, selection: { classPropertyName: "selection", publicName: "selection", isSignal: true, isRequired: false, transformFunction: null }, count: { classPropertyName: "count", publicName: "count", isSignal: true, isRequired: false, transformFunction: null }, autoOpen: { classPropertyName: "autoOpen", publicName: "autoOpen", isSignal: true, isRequired: false, transformFunction: null }, autoId: { classPropertyName: "autoId", publicName: "autoId", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { end: "end" }, viewQueries: [{ propertyName: "sheet", first: true, predicate: ["sheet"], descendants: true, isSignal: true }], ngImport: i0, template: "@let _busy = busy();\n@let _error = error();\n@let _autoId = autoId();\n@let _title = title();\n@let _selection = selection();\n@if (_selection) {\n <div class=\"sd-mobile-actions\" role=\"region\" [attr.aria-label]=\"_title\">\n <sd-quick-action opened contained class=\"sd-mobile-quick-action\">\n <span sdMessage class=\"sd-mobile-selection-summary\" [attr.aria-label]=\"_title\">\n <span class=\"sd-mobile-selection-count T14M\">{{ count() }}</span>\n </span>\n <div sdAction class=\"sd-mobile-action-buttons\">\n <div class=\"sd-mobile-action-list\">\n @for (action of direct(); track action.key) {\n <span class=\"sd-mobile-action-direct\">\n <sd-button\n [autoId]=\"_autoId ? _autoId + '-mobile-action-' + action.key : null\"\n [title]=\"action.title\"\n [prefixIcon]=\"action.icon\"\n [fontSet]=\"action.fontSet\"\n [color]=\"action.color\"\n size=\"sm\"\n [type]=\"action.type || 'text'\"\n [disabled]=\"_busy || action.disabled\"\n (click)=\"run(action)\"></sd-button>\n </span>\n }\n @if (overflow().length) {\n <button\n mat-button\n type=\"button\"\n class=\"sd-mobile-more\"\n [disabled]=\"_busy\"\n aria-haspopup=\"dialog\"\n [attr.data-autoid]=\"_autoId ? _autoId + '-mobile-more' : null\"\n (click)=\"openMore()\">\n <sd-icon name=\"more_horiz\"></sd-icon><span>{{ 'core.component.table.mobile.more' | sdTranslate }}</span>\n </button>\n }\n </div>\n <button\n type=\"button\"\n class=\"sd-mobile-end sd-mobile-clear\"\n [attr.aria-label]=\"'core.component.table.clear-selection' | sdTranslate\"\n (click)=\"end.emit()\"\n [attr.data-autoid]=\"_autoId ? _autoId + '-mobile-end' : null\">\n <sd-icon name=\"close\"></sd-icon>\n </button>\n </div>\n </sd-quick-action>\n @if (_error; as message) {\n <p role=\"alert\">{{ message }}</p>\n }\n </div>\n}\n<sd-modal\n #sheet\n [autoId]=\"_autoId ? _autoId + '-mobile-sheet' : undefined\"\n [title]=\"_title\"\n view=\"bottom-sheet\"\n [disableBackdropClose]=\"false\"\n modalClass=\"sd-table-mobile-sheet-panel\"\n (sdClosed)=\"onSheetClosed()\">\n <div class=\"sd-mobile-sheet\">\n @for (action of sheetActions(); track action.key) {\n @if (action.children; as children) {\n <section [attr.aria-label]=\"action.title\" class=\"sd-mobile-action-group\">\n <h3 class=\"T12M\">{{ action.title }}</h3>\n @for (child of children; track child.key) {\n <button\n mat-button\n type=\"button\"\n class=\"sd-mobile-sheet-action\"\n [attr.data-autoid]=\"_autoId ? _autoId + '-mobile-' + child.key : null\"\n [disabled]=\"_busy || action.disabled || child.disabled\"\n (click)=\"runSheet(child)\">\n <sd-icon [name]=\"child.icon || 'chevron_right'\" [fontSet]=\"child.fontSet\" [color]=\"child.color\"></sd-icon>\n <span class=\"sd-mobile-sheet-label\"\n >{{ child.title }}\n @if (child.htmlTemplate) {\n <span [innerHTML]=\"child.htmlTemplate\"></span>\n }\n </span>\n </button>\n }\n </section>\n } @else {\n <button\n mat-button\n type=\"button\"\n class=\"sd-mobile-sheet-action\"\n [attr.data-autoid]=\"_autoId ? _autoId + '-mobile-' + action.key : null\"\n [disabled]=\"_busy || action.disabled\"\n (click)=\"runSheet(action)\">\n <sd-icon [name]=\"action.icon || 'chevron_right'\" [fontSet]=\"action.fontSet\" [color]=\"action.color\"></sd-icon>\n <span class=\"sd-mobile-sheet-label\"\n >{{ action.title }}\n @if (action.htmlTemplate) {\n <span [innerHTML]=\"action.htmlTemplate\"></span>\n }\n </span>\n </button>\n }\n }\n @if (_error; as message) {\n <p role=\"alert\">{{ message }}</p>\n }\n </div>\n</sd-modal>\n", styles: [":host{display:block;min-width:0}.sd-mobile-actions{min-width:0;padding:4px 12px max(8px,env(safe-area-inset-bottom))}.sd-mobile-selection-summary{display:flex;align-items:center}.sd-mobile-selection-count{display:inline-flex;align-items:center;justify-content:center;min-width:28px;height:28px;padding:0 6px;border-radius:var(--sd-radius-8, 8px);background:var(--sd-primary-light);color:var(--sd-primary-dark);font-variant-numeric:tabular-nums}.sd-mobile-action-buttons{display:grid;grid-template-columns:minmax(0,1fr) 40px;align-items:center;width:100%;min-width:0;gap:8px}.sd-mobile-action-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,72px),1fr));grid-auto-rows:minmax(40px,1fr);gap:4px 8px;min-width:0}.sd-mobile-action-direct{min-width:0}.sd-mobile-action-direct sd-button{width:100%;height:100%}.sd-mobile-more{display:inline-flex;align-items:center;justify-content:center;gap:4px;padding:0 6px;min-width:0;height:100%}.sd-mobile-end{display:grid;place-items:center;padding:0;width:40px;height:40px;border:0;border-radius:50%;background:transparent;color:var(--sd-text);line-height:0;cursor:pointer}.sd-mobile-end:hover{background:color-mix(in srgb,var(--sd-text) 8%,transparent)}button{min-height:40px;white-space:normal}button:focus-visible{outline:var(--sd-focus-ring-width, 2px) solid var(--sd-focus-ring-color, var(--sd-primary));outline-offset:2px}:host ::ng-deep .sd-mobile-quick-action .c-quick-action.contained{flex-wrap:nowrap;gap:8px;padding:4px 16px;border-radius:var(--sd-radius-12, 12px)}:host ::ng-deep .sd-mobile-quick-action .c-quick-action-message{flex:0 0 auto}:host ::ng-deep .sd-mobile-quick-action .c-quick-action-action{flex:1 1 auto}:host ::ng-deep .sd-mobile-quick-action .sd-mobile-more .mdc-button__label{display:inline-flex;align-items:center;gap:4px}:host ::ng-deep .sd-mobile-quick-action .sd-mobile-action-direct button{width:100%;height:100%;min-height:40px;padding:4px 6px!important;white-space:normal}:host ::ng-deep .sd-mobile-quick-action .sd-mobile-action-direct .c-title{white-space:normal;overflow:visible;overflow-wrap:anywhere;text-overflow:clip;line-height:var(--sd-line-height-18, 18px)}:host ::ng-deep .sd-mobile-quick-action .mat-mdc-button-touch-target{height:40px}:host ::ng-deep .sd-mobile-quick-action sd-icon,:host ::ng-deep .sd-mobile-quick-action sd-icon mat-icon{width:18px;height:18px;font-size:var(--sd-font-size-18, 18px);line-height:var(--sd-line-height-18, 18px)}:host ::ng-deep .sd-mobile-quick-action .sd-mobile-action-direct sd-icon mat-icon{width:16px;height:16px;font-size:var(--sd-font-size-16, 16px);line-height:var(--sd-line-height-16, 16px)}.sd-mobile-sheet{padding:0 12px max(12px,env(safe-area-inset-bottom));overflow-wrap:anywhere}.sd-mobile-action-group{padding:8px 0;border-top:1px solid var(--sd-border)}.sd-mobile-action-group:first-child{border-top:0;padding-top:0}.sd-mobile-action-group h3{margin:8px 12px 4px;color:var(--sd-text-secondary)}.sd-mobile-sheet-action{display:flex;align-items:center;justify-content:flex-start;gap:12px;width:100%;min-height:48px;padding:12px;text-align:start;border-radius:var(--sd-radius-10, 10px)}.sd-mobile-sheet-label{min-width:0;white-space:normal;overflow-wrap:anywhere;line-height:1.4}.sd-mobile-sheet-action sd-icon{flex:0 0 20px;display:inline-flex;align-items:center;justify-content:center}::ng-deep .sd-table-mobile-sheet-panel .sd-mobile-sheet-action .mdc-button__label{display:flex;align-items:center;gap:12px;width:100%}::ng-deep .sd-table-mobile-sheet-panel .sd-modal-title{overflow-wrap:anywhere;font-size:var(--sd-font-size-16, 16px);line-height:1.4}::ng-deep .sd-table-mobile-sheet-panel .sd-modal-header{min-height:64px;padding:12px 20px}::ng-deep .sd-table-mobile-sheet-panel .sd-modal-close-btn{width:40px;height:40px}\n"], dependencies: [{ kind: "component", type: SdQuickAction, selector: "sd-quick-action", inputs: ["opened", "contained"] }, { kind: "component", type: SdButton, selector: "sd-button", inputs: ["autoId", "type", "color", "size", "fontSet", "title", "width", "tooltip", "prefixIcon", "suffixIcon", "disabled", "openOnHover", "loading", "block", "htmlType", "indicator", "indicatorColor", "indicatorMax", "indicatorLabel"], outputs: ["click"] }, { kind: "component", type: SdModal, selector: "sd-modal", inputs: ["autoId", "title", "color", "width", "height", "view", "modalClass", "lazyLoadContent", "hideClose", "enableBackdropClose", "disableBackdropClose", "beforeClose", "closeOnNavigation"], outputs: ["sdClosed", "sdCloseError"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1$2.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: SdIcon, selector: "sd-icon", inputs: ["name", "fontIcon", "color", "set", "fontSet", "size", "strokeWidth", "absoluteStrokeWidth", "ariaLabel"] }, { kind: "pipe", type: SdTranslatePipe, name: "sdTranslate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
3098
3182
|
}
|
|
3099
3183
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: SdTableMobileActionsComponent, decorators: [{
|
|
3100
3184
|
type: Component,
|
|
@@ -4027,7 +4111,7 @@ class SdTableUnknownTotalPaginator {
|
|
|
4027
4111
|
this.page.emit({ pageIndex: 0, pageSize });
|
|
4028
4112
|
}
|
|
4029
4113
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: SdTableUnknownTotalPaginator, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
4030
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.25", type: SdTableUnknownTotalPaginator, isStandalone: true, selector: "sd-table-unknown-total-paginator", inputs: { state: { classPropertyName: "state", publicName: "state", isSignal: true, isRequired: true, transformFunction: null }, pageSizeOptions: { classPropertyName: "pageSizeOptions", publicName: "pageSizeOptions", isSignal: true, isRequired: false, transformFunction: null }, hidePageSize: { classPropertyName: "hidePageSize", publicName: "hidePageSize", isSignal: true, isRequired: false, transformFunction: null }, showFirstButton: { classPropertyName: "showFirstButton", publicName: "showFirstButton", isSignal: true, isRequired: false, transformFunction: null }, autoId: { classPropertyName: "autoId", publicName: "autoId", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { page: "page" }, host: { attributes: { "role": "group" }, properties: { "attr.aria-busy": "state().busy ? \"true\" : null", "attr.data-autoid": "autoId() ? autoId() + \"-paginator\" : null" }, classAttribute: "mat-mdc-paginator sd-table-unknown-total-paginator" }, ngImport: i0, template: "@let _state = state();\n@let _autoId = autoId();\n<div class=\"mat-mdc-paginator-outer-container\">\n <div class=\"mat-mdc-paginator-container\">\n @if (!hidePageSize()) {\n <div class=\"mat-mdc-paginator-page-size\">\n <div class=\"mat-mdc-paginator-page-size-label\" [attr.id]=\"pageSizeLabelId\">\n {{ intl.itemsPerPageLabel }}\n </div>\n @if (displayedPageSizeOptions().length > 1) {\n <mat-form-field appearance=\"outline\" subscriptSizing=\"dynamic\" class=\"mat-mdc-paginator-page-size-select\">\n <mat-select\n [value]=\"_state.pageSize\"\n [disabled]=\"_state.busy\"\n [aria-labelledby]=\"pageSizeLabelId\"\n [attr.data-autoid]=\"_autoId ? _autoId + '-paginator-page-size' : null\"\n (selectionChange)=\"changePageSize($event.value)\"\n [panelClass]=\"['sd-select-panel', 'sd-table-page-size-panel']\"\n hideSingleSelectionIndicator>\n @for (pageSizeOption of displayedPageSizeOptions(); track pageSizeOption) {\n <mat-option [value]=\"pageSizeOption\">{{ pageSizeOption }}</mat-option>\n }\n </mat-select>\n </mat-form-field>\n } @else {\n <div class=\"mat-mdc-paginator-page-size-value\">{{ _state.pageSize }}</div>\n }\n </div>\n }\n\n <div class=\"mat-mdc-paginator-range-actions\">\n <div class=\"mat-mdc-paginator-range-label\" aria-live=\"polite\">{{ rangeLabel() }}</div>\n\n <!-- Same contract as mat-paginator: `disabledInteractive` keeps focus on a button that becomes\n disabled while its page loads, and tabindex -1 keeps disabled buttons out of the tab order. -->\n @if (showFirstButton()) {\n <button\n mat-icon-button\n type=\"button\"\n class=\"mat-mdc-paginator-navigation-first\"\n [attr.data-autoid]=\"_autoId ? _autoId + '-paginator-first' : null\"\n [attr.aria-label]=\"intl.firstPageLabel\"\n [matTooltip]=\"intl.firstPageLabel\"\n [matTooltipDisabled]=\"previousDisabled()\"\n matTooltipPosition=\"above\"\n [disabled]=\"previousDisabled()\"\n [tabindex]=\"previousDisabled() ? -1 : null\"\n disabledInteractive\n (click)=\"first()\">\n <svg class=\"mat-mdc-paginator-icon\" viewBox=\"0 0 24 24\" focusable=\"false\" aria-hidden=\"true\">\n <path d=\"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z\" />\n </svg>\n </button>\n }\n <button\n mat-icon-button\n type=\"button\"\n class=\"mat-mdc-paginator-navigation-previous\"\n [attr.data-autoid]=\"_autoId ? _autoId + '-paginator-previous' : null\"\n [attr.aria-label]=\"intl.previousPageLabel\"\n [matTooltip]=\"intl.previousPageLabel\"\n [matTooltipDisabled]=\"previousDisabled()\"\n matTooltipPosition=\"above\"\n [disabled]=\"previousDisabled()\"\n [tabindex]=\"previousDisabled() ? -1 : null\"\n disabledInteractive\n (click)=\"previous()\">\n <svg class=\"mat-mdc-paginator-icon\" viewBox=\"0 0 24 24\" focusable=\"false\" aria-hidden=\"true\">\n <path d=\"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z\" />\n </svg>\n </button>\n <button\n mat-icon-button\n type=\"button\"\n class=\"mat-mdc-paginator-navigation-next\"\n [attr.data-autoid]=\"_autoId ? _autoId + '-paginator-next' : null\"\n [attr.aria-label]=\"intl.nextPageLabel\"\n [matTooltip]=\"intl.nextPageLabel\"\n [matTooltipDisabled]=\"nextDisabled()\"\n matTooltipPosition=\"above\"\n [disabled]=\"nextDisabled()\"\n [tabindex]=\"nextDisabled() ? -1 : null\"\n disabledInteractive\n (click)=\"next()\">\n <svg class=\"mat-mdc-paginator-icon\" viewBox=\"0 0 24 24\" focusable=\"false\" aria-hidden=\"true\">\n <path d=\"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z\" />\n </svg>\n </button>\n </div>\n </div>\n</div>\n", styles: [":host{display:block;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-paginator-container-text-color, var(--mat-sys-on-surface));background-color:var(--mat-paginator-container-background-color, var(--mat-sys-surface));font-family:var(--mat-paginator-container-text-font, var(--mat-sys-body-small-font));line-height:var(--mat-paginator-container-text-line-height, var(--mat-sys-body-small-line-height));font-size:var(--mat-paginator-container-text-size, var(--mat-sys-body-small-size));font-weight:var(--mat-paginator-container-text-weight, var(--mat-sys-body-small-weight));letter-spacing:var(--mat-paginator-container-text-tracking, var(--mat-sys-body-small-tracking));--mat-form-field-container-height: var(--mat-paginator-form-field-container-height, 40px);--mat-form-field-container-vertical-padding: var(--mat-paginator-form-field-container-vertical-padding, 8px)}:host ::ng-deep .mat-mdc-select-value{font-size:var(--mat-paginator-select-trigger-text-size, var(--mat-sys-body-small-size))}:host ::ng-deep .mat-mdc-form-field-subscript-wrapper{display:none}:host ::ng-deep .mat-mdc-select{line-height:1.5}.mat-mdc-paginator-outer-container{display:flex}.mat-mdc-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap;width:100%;min-height:var(--mat-paginator-container-size, 56px)}.mat-mdc-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}:host-context([dir=rtl]) .mat-mdc-paginator-page-size{margin-right:0;margin-left:8px}.mat-mdc-paginator-page-size-label{margin:0 4px}.mat-mdc-paginator-page-size-select{margin:0 4px;width:84px}.mat-mdc-paginator-range-label{margin:0 32px 0 24px}.mat-mdc-paginator-range-actions{display:flex;align-items:center}.mat-mdc-paginator-icon{display:inline-block;width:28px;fill:var(--mat-paginator-enabled-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button[aria-disabled] .mat-mdc-paginator-icon{fill:var(--mat-paginator-disabled-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}:host-context([dir=rtl]) .mat-mdc-paginator-icon{transform:rotate(180deg)}@media(forced-colors:active){.mat-mdc-icon-button[aria-disabled] .mat-mdc-paginator-icon,.mat-mdc-paginator-icon{fill:currentColor}.mat-mdc-paginator-range-actions .mat-mdc-icon-button{outline:solid 1px}.mat-mdc-paginator-range-actions .mat-mdc-icon-button[aria-disabled]{color:GrayText}}\n"], dependencies: [{ kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1$2.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: i2
|
|
4114
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.25", type: SdTableUnknownTotalPaginator, isStandalone: true, selector: "sd-table-unknown-total-paginator", inputs: { state: { classPropertyName: "state", publicName: "state", isSignal: true, isRequired: true, transformFunction: null }, pageSizeOptions: { classPropertyName: "pageSizeOptions", publicName: "pageSizeOptions", isSignal: true, isRequired: false, transformFunction: null }, hidePageSize: { classPropertyName: "hidePageSize", publicName: "hidePageSize", isSignal: true, isRequired: false, transformFunction: null }, showFirstButton: { classPropertyName: "showFirstButton", publicName: "showFirstButton", isSignal: true, isRequired: false, transformFunction: null }, autoId: { classPropertyName: "autoId", publicName: "autoId", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { page: "page" }, host: { attributes: { "role": "group" }, properties: { "attr.aria-busy": "state().busy ? \"true\" : null", "attr.data-autoid": "autoId() ? autoId() + \"-paginator\" : null" }, classAttribute: "mat-mdc-paginator sd-table-unknown-total-paginator" }, ngImport: i0, template: "@let _state = state();\n@let _autoId = autoId();\n<div class=\"mat-mdc-paginator-outer-container\">\n <div class=\"mat-mdc-paginator-container\">\n @if (!hidePageSize()) {\n <div class=\"mat-mdc-paginator-page-size\">\n <div class=\"mat-mdc-paginator-page-size-label\" [attr.id]=\"pageSizeLabelId\">\n {{ intl.itemsPerPageLabel }}\n </div>\n @if (displayedPageSizeOptions().length > 1) {\n <mat-form-field appearance=\"outline\" subscriptSizing=\"dynamic\" class=\"mat-mdc-paginator-page-size-select\">\n <mat-select\n [value]=\"_state.pageSize\"\n [disabled]=\"_state.busy\"\n [aria-labelledby]=\"pageSizeLabelId\"\n [attr.data-autoid]=\"_autoId ? _autoId + '-paginator-page-size' : null\"\n (selectionChange)=\"changePageSize($event.value)\"\n [panelClass]=\"['sd-select-panel', 'sd-table-page-size-panel']\"\n hideSingleSelectionIndicator>\n @for (pageSizeOption of displayedPageSizeOptions(); track pageSizeOption) {\n <mat-option [value]=\"pageSizeOption\">{{ pageSizeOption }}</mat-option>\n }\n </mat-select>\n </mat-form-field>\n } @else {\n <div class=\"mat-mdc-paginator-page-size-value\">{{ _state.pageSize }}</div>\n }\n </div>\n }\n\n <div class=\"mat-mdc-paginator-range-actions\">\n <div class=\"mat-mdc-paginator-range-label\" aria-live=\"polite\">{{ rangeLabel() }}</div>\n\n <!-- Same contract as mat-paginator: `disabledInteractive` keeps focus on a button that becomes\n disabled while its page loads, and tabindex -1 keeps disabled buttons out of the tab order. -->\n @if (showFirstButton()) {\n <button\n mat-icon-button\n type=\"button\"\n class=\"mat-mdc-paginator-navigation-first\"\n [attr.data-autoid]=\"_autoId ? _autoId + '-paginator-first' : null\"\n [attr.aria-label]=\"intl.firstPageLabel\"\n [matTooltip]=\"intl.firstPageLabel\"\n [matTooltipDisabled]=\"previousDisabled()\"\n matTooltipPosition=\"above\"\n [disabled]=\"previousDisabled()\"\n [tabindex]=\"previousDisabled() ? -1 : null\"\n disabledInteractive\n (click)=\"first()\">\n <svg class=\"mat-mdc-paginator-icon\" viewBox=\"0 0 24 24\" focusable=\"false\" aria-hidden=\"true\">\n <path d=\"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z\" />\n </svg>\n </button>\n }\n <button\n mat-icon-button\n type=\"button\"\n class=\"mat-mdc-paginator-navigation-previous\"\n [attr.data-autoid]=\"_autoId ? _autoId + '-paginator-previous' : null\"\n [attr.aria-label]=\"intl.previousPageLabel\"\n [matTooltip]=\"intl.previousPageLabel\"\n [matTooltipDisabled]=\"previousDisabled()\"\n matTooltipPosition=\"above\"\n [disabled]=\"previousDisabled()\"\n [tabindex]=\"previousDisabled() ? -1 : null\"\n disabledInteractive\n (click)=\"previous()\">\n <svg class=\"mat-mdc-paginator-icon\" viewBox=\"0 0 24 24\" focusable=\"false\" aria-hidden=\"true\">\n <path d=\"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z\" />\n </svg>\n </button>\n <button\n mat-icon-button\n type=\"button\"\n class=\"mat-mdc-paginator-navigation-next\"\n [attr.data-autoid]=\"_autoId ? _autoId + '-paginator-next' : null\"\n [attr.aria-label]=\"intl.nextPageLabel\"\n [matTooltip]=\"intl.nextPageLabel\"\n [matTooltipDisabled]=\"nextDisabled()\"\n matTooltipPosition=\"above\"\n [disabled]=\"nextDisabled()\"\n [tabindex]=\"nextDisabled() ? -1 : null\"\n disabledInteractive\n (click)=\"next()\">\n <svg class=\"mat-mdc-paginator-icon\" viewBox=\"0 0 24 24\" focusable=\"false\" aria-hidden=\"true\">\n <path d=\"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z\" />\n </svg>\n </button>\n </div>\n </div>\n</div>\n", styles: [":host{display:block;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-paginator-container-text-color, var(--mat-sys-on-surface));background-color:var(--mat-paginator-container-background-color, var(--mat-sys-surface));font-family:var(--mat-paginator-container-text-font, var(--mat-sys-body-small-font));line-height:var(--mat-paginator-container-text-line-height, var(--mat-sys-body-small-line-height));font-size:var(--mat-paginator-container-text-size, var(--mat-sys-body-small-size));font-weight:var(--mat-paginator-container-text-weight, var(--mat-sys-body-small-weight));letter-spacing:var(--mat-paginator-container-text-tracking, var(--mat-sys-body-small-tracking));--mat-form-field-container-height: var(--mat-paginator-form-field-container-height, 40px);--mat-form-field-container-vertical-padding: var(--mat-paginator-form-field-container-vertical-padding, 8px)}:host ::ng-deep .mat-mdc-select-value{font-size:var(--mat-paginator-select-trigger-text-size, var(--mat-sys-body-small-size))}:host ::ng-deep .mat-mdc-form-field-subscript-wrapper{display:none}:host ::ng-deep .mat-mdc-select{line-height:1.5}.mat-mdc-paginator-outer-container{display:flex}.mat-mdc-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap;width:100%;min-height:var(--mat-paginator-container-size, 56px)}.mat-mdc-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}:host-context([dir=rtl]) .mat-mdc-paginator-page-size{margin-right:0;margin-left:8px}.mat-mdc-paginator-page-size-label{margin:0 4px}.mat-mdc-paginator-page-size-select{margin:0 4px;width:84px}.mat-mdc-paginator-range-label{margin:0 32px 0 24px}.mat-mdc-paginator-range-actions{display:flex;align-items:center}.mat-mdc-paginator-icon{display:inline-block;width:28px;fill:var(--mat-paginator-enabled-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button[aria-disabled] .mat-mdc-paginator-icon{fill:var(--mat-paginator-disabled-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}:host-context([dir=rtl]) .mat-mdc-paginator-icon{transform:rotate(180deg)}@media(forced-colors:active){.mat-mdc-icon-button[aria-disabled] .mat-mdc-paginator-icon,.mat-mdc-paginator-icon{fill:currentColor}.mat-mdc-paginator-range-actions .mat-mdc-icon-button{outline:solid 1px}.mat-mdc-paginator-range-actions .mat-mdc-icon-button[aria-disabled]{color:GrayText}}\n"], dependencies: [{ kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1$2.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: i2.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "ngmodule", type: MatSelectModule }, { kind: "component", type: i3$1.MatSelect, selector: "mat-select", inputs: ["aria-describedby", "panelClass", "disabled", "disableRipple", "tabIndex", "hideSingleSelectionIndicator", "placeholder", "required", "multiple", "disableOptionCentering", "compareWith", "value", "aria-label", "aria-labelledby", "errorStateMatcher", "typeaheadDebounceInterval", "sortComparator", "id", "panelWidth", "canSelectNullableOptions"], outputs: ["openedChange", "opened", "closed", "selectionChange", "valueChange"], exportAs: ["matSelect"] }, { kind: "component", type: i3$1.MatOption, selector: "mat-option", inputs: ["value", "id", "disabled"], outputs: ["onSelectionChange"], exportAs: ["matOption"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i1.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
4031
4115
|
}
|
|
4032
4116
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: SdTableUnknownTotalPaginator, decorators: [{
|
|
4033
4117
|
type: Component,
|
|
@@ -4845,6 +4929,9 @@ class ExternalFilterComponent {
|
|
|
4845
4929
|
};
|
|
4846
4930
|
onCheckboxChange = (event, externalFilter) => {
|
|
4847
4931
|
event?.stopPropagation();
|
|
4932
|
+
// Field bắt buộc luôn hiện: mục của nó bị khoá, và đường bấm vào ô chọn cũng không được đổi nó.
|
|
4933
|
+
if (externalFilter.required)
|
|
4934
|
+
return;
|
|
4848
4935
|
const next = { ...this.inlineExternal() };
|
|
4849
4936
|
next[externalFilter.field] = !next[externalFilter.field];
|
|
4850
4937
|
this.inlineExternal.set(next);
|
|
@@ -4872,14 +4959,12 @@ class ExternalFilterComponent {
|
|
|
4872
4959
|
});
|
|
4873
4960
|
};
|
|
4874
4961
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ExternalFilterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
4875
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.25", type: ExternalFilterComponent, isStandalone: true, selector: "external-filter", inputs: { autoIdInput: { classPropertyName: "autoIdInput", publicName: "autoId", isSignal: true, isRequired: false, transformFunction: null }, filter: { classPropertyName: "filter", publicName: "filter", isSignal: true, isRequired: false, transformFunction: null }, externalFilters: { classPropertyName: "externalFilters", publicName: "externalFilters", isSignal: true, isRequired: false, transformFunction: null }, filterRegister: { classPropertyName: "filterRegister", publicName: "filterRegister", isSignal: true, isRequired: false, transformFunction: null }, collapsedByDefault: { classPropertyName: "collapsedByDefault", publicName: "collapsedByDefault", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "@let _filter = filter();\n@let _autoId = autoId();\n@let _filterItems = filterItems();\n@let _externalFilter = externalFilter();\n@let _inlineExternal = inlineExternal();\n@let _filtered = filtered();\n@let _col = col();\n\n@if (!_filter?.disabled) {\n @if (!isMobileOrTablet && _filterItems.length) {\n <sd-section\n [hideHeader]=\"_filter?.hideExternalFilterToolbar\"\n icon=\"filter_alt\"\n iconColor=\"secondary\"\n [title]=\"'core.component.table.filter' | sdTranslate\"\n [collapsible]=\"_filter?.collapsible ?? true\"\n [(collapsed)]=\"collapsed\">\n <div class=\"d-flex gap-8 mr-4\" sdHeaderRight>\n <sd-button\n [autoId]=\"_autoId + 'clear'\"\n [disabled]=\"!_filtered\"\n type=\"text\"\n prefixIcon=\"cleaning_services\"\n [tooltip]=\"'core.component.table.clear-selection' | sdTranslate\"\n (click)=\"$event.stopPropagation(); clearFilter($event)\"></sd-button>\n <sd-button\n [autoId]=\"_autoId + 'setting'\"\n type=\"text\"\n prefixIcon=\"settings\"\n [tooltip]=\"'core.component.table.customize' | sdTranslate\"\n [matMenuTriggerFor]=\"menu\"\n (click)=\"$event.stopPropagation()\"></sd-button>\n <mat-menu #menu=\"matMenu\" class=\"sd-custom-panel-filter-configuration\" [attr.data-autoid]=\"_autoId + 'setting-menu'\">\n @for (externalFilter of _filterItems; track externalFilter.field) {\n <button\n [attr.data-autoid]=\"_autoId + 'setting-' + externalFilter.field\"\n mat-menu-item\n (click)=\"onCheckboxChange($event, externalFilter)\"\n [disabled]=\"externalFilter.required\">\n <sd-checkbox\n [autoId]=\"_autoId + 'setting-' + externalFilter.field + '-checkbox'\"\n [label]=\"externalFilter.title\"\n [model]=\"_inlineExternal[externalFilter.field]\"\n [disabled]=\"externalFilter.required\" />\n </button>\n }\n </mat-menu>\n </div>\n <div class=\"sd-external-filter-body\">\n <div class=\"row mx-0\" style=\"row-gap: 16px\">\n @for (item of _filterItems; track item.field) {\n @if (_inlineExternal[item.field]) {\n <div class=\"col-md-3 col-sm-6 px-8\" [class.col-lg-2]=\"_col === 2\" [class.col-lg-3]=\"_col === 3\">\n @if (item.type === 'string') {\n <sd-input\n [autoId]=\"_autoId + item.field\"\n size=\"sm\"\n [label]=\"item.title\"\n type=\"text\"\n [(model)]=\"_externalFilter[item.field]\"\n (keyupEnter)=\"onKeyupEnter()\"\n appearance=\"outline\"\n [form]=\"form\"\n [required]=\"item.required\"\n clearable\n hideInlineError>\n </sd-input>\n } @else if (item.type === 'number') {\n <sd-input-number\n [autoId]=\"_autoId + item.field\"\n size=\"sm\"\n [label]=\"item.title\"\n [(model)]=\"_externalFilter[item.field]\"\n (keyupEnter)=\"onKeyupEnter()\"\n appearance=\"outline\"\n [form]=\"form\"\n [required]=\"item.required\"\n clearable\n hideInlineError>\n </sd-input-number>\n } @else if (item.type === 'boolean') {\n <sd-select\n [autoId]=\"_autoId + item.field\"\n size=\"sm\"\n [label]=\"item.title\"\n [items]=\"[\n { value: true, display: item.option?.displayOnTrue || 'True' },\n { value: false, display: item.option?.displayOnFalse || 'False' },\n ]\"\n valueField=\"value\"\n displayField=\"display\"\n [(model)]=\"_externalFilter[item.field]\"\n (sdChange)=\"onFilter(item)\"\n appearance=\"outline\"\n [form]=\"form\"\n [required]=\"item.required\"\n hideInlineError>\n </sd-select>\n } @else if (item.type === 'date') {\n <sd-date\n [autoId]=\"_autoId + item.field\"\n size=\"sm\"\n [label]=\"item.title\"\n [(model)]=\"_externalFilter[item.field]\"\n (sdChange)=\"onFilter(item)\"\n appearance=\"outline\"\n [form]=\"form\"\n [required]=\"item.required\"\n [min]=\"item.minDate\"\n [max]=\"item.maxDate\"\n clearable\n hideInlineError>\n </sd-date>\n } @else if (item.type === 'datetime') {\n <sd-datetime\n [autoId]=\"_autoId + item.field\"\n size=\"sm\"\n [label]=\"item.title\"\n [(model)]=\"_externalFilter[item.field]\"\n (sdChange)=\"onFilter(item)\"\n appearance=\"outline\"\n [form]=\"form\"\n [required]=\"item.required\"\n [min]=\"item.minDate\"\n [max]=\"item.maxDate\"\n clearable\n hideInlineError>\n </sd-datetime>\n } @else if (item.type === 'daterange') {\n <sd-date-range\n [autoId]=\"_autoId + item.field\"\n size=\"sm\"\n [label]=\"item.title\"\n [(model)]=\"_externalFilter[item.field]\"\n (sdChange)=\"onFilter(item)\"\n [form]=\"form\"\n [required]=\"item.required\"\n [min]=\"item.minDate\"\n [max]=\"item.maxDate\"\n appearance=\"outline\"\n hideInlineError>\n </sd-date-range>\n } @else if (item.type === 'values') {\n @if (item.option.selection === 'MULTIPLE') {\n <sd-select\n [autoId]=\"_autoId + item.field\"\n size=\"sm\"\n [label]=\"item.title\"\n [items]=\"item.option.items | filterValues | async\"\n [valueField]=\"item.option.valueField\"\n [displayField]=\"item.option.displayField\"\n [(model)]=\"_externalFilter[item.field]\"\n (sdChange)=\"onFilter(item)\"\n appearance=\"outline\"\n multiple\n [form]=\"form\"\n [required]=\"item.required\"\n hideInlineError>\n </sd-select>\n } @else if (item.option.selection === 'AUTOCOMPLETE') {\n <sd-select\n [autoId]=\"_autoId + item.field\"\n size=\"sm\"\n [label]=\"item.title\"\n [items]=\"item.option.items | filterValues | async\"\n [valueField]=\"item.option.valueField\"\n [displayField]=\"item.option.displayField\"\n [(model)]=\"_externalFilter[item.field]\"\n (sdChange)=\"onFilter(item)\"\n appearance=\"outline\"\n [form]=\"form\"\n [required]=\"item.required\"\n hideInlineError>\n </sd-select>\n } @else if (item.option.selection === 'MULTIPLEAUTOCOMPLETE') {\n <sd-select\n [autoId]=\"_autoId + item.field\"\n size=\"sm\"\n [label]=\"item.title\"\n [items]=\"item.option.items | filterValues | async\"\n [valueField]=\"item.option.valueField\"\n [displayField]=\"item.option.displayField\"\n [(model)]=\"_externalFilter[item.field]\"\n (sdChange)=\"onFilter(item)\"\n appearance=\"outline\"\n multiple\n [form]=\"form\"\n [required]=\"item.required\"\n hideInlineError>\n </sd-select>\n } @else {\n <sd-select\n [autoId]=\"_autoId + item.field\"\n size=\"sm\"\n [label]=\"item.title\"\n [items]=\"item.option.items | filterValues | async\"\n [valueField]=\"item.option.valueField\"\n [displayField]=\"item.option.displayField\"\n [(model)]=\"_externalFilter[item.field]\"\n (sdChange)=\"onFilter(item)\"\n appearance=\"outline\"\n [form]=\"form\"\n [required]=\"item.required\"\n hideInlineError>\n </sd-select>\n }\n } @else if (item.type === 'lazy-values') {\n @if (item.option.selection === 'MULTIPLE') {\n <sd-select\n [autoId]=\"_autoId + item.field\"\n size=\"sm\"\n [label]=\"item.title\"\n [items]=\"item.option.items\"\n [valueField]=\"item.option.valueField\"\n [displayField]=\"item.option.displayField\"\n [(model)]=\"_externalFilter[item.field]\"\n (sdChange)=\"onFilter(item)\"\n appearance=\"outline\"\n multiple\n [form]=\"form\"\n [required]=\"item.required\"\n hideInlineError>\n </sd-select>\n } @else {\n <sd-select\n [autoId]=\"_autoId + item.field\"\n size=\"sm\"\n [label]=\"item.title\"\n [items]=\"item.option.items\"\n [valueField]=\"item.option.valueField\"\n [displayField]=\"item.option.displayField\"\n [(model)]=\"_externalFilter[item.field]\"\n (sdChange)=\"onFilter(item)\"\n appearance=\"outline\"\n [form]=\"form\"\n [required]=\"item.required\"\n hideInlineError>\n </sd-select>\n }\n } @else if (item.type === 'custom' && item.filterDef) {\n <ng-container\n *ngTemplateOutlet=\"\n item.filterDef;\n context: { form: form, externalFilter: _externalFilter, autoId: _autoId + item.field }\n \">\n </ng-container>\n }\n </div>\n }\n }\n </div>\n @if (_filter?.manualFilter) {\n <div class=\"d-flex justify-content-end mt-16 px-8\">\n <sd-button\n [autoId]=\"_autoId + 'submit'\"\n [disabled]=\"form.invalid\"\n type=\"fill\"\n color=\"primary\"\n [title]=\"'core.component.table.search' | sdTranslate\"\n prefixIcon=\"filter_alt\"\n (click)=\"onSubmit()\">\n </sd-button>\n </div>\n }\n </div>\n </sd-section>\n }\n}\n", styles: [":host{display:block;padding-left:0;padding-right:0}.sd-external-filter-body{padding:16px 8px}::ng-deep .sd-custom-panel-filter-configuration{width:240px;max-height:550px;overflow-y:auto}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: MatMenuModule }, { kind: "component", type: i2.MatMenu, selector: "mat-menu", inputs: ["backdropClass", "aria-label", "aria-labelledby", "aria-describedby", "xPosition", "yPosition", "overlapTrigger", "hasBackdrop", "class", "classList"], outputs: ["closed", "close"], exportAs: ["matMenu"] }, { kind: "component", type: i2.MatMenuItem, selector: "[mat-menu-item]", inputs: ["role", "disabled", "disableRipple"], exportAs: ["matMenuItem"] }, { kind: "directive", type: i2.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", inputs: ["mat-menu-trigger-for", "matMenuTriggerFor", "matMenuTriggerData", "matMenuTriggerRestoreFocus"], outputs: ["menuOpened", "onMenuOpen", "menuClosed", "onMenuClose"], exportAs: ["matMenuTrigger"] }, { kind: "ngmodule", type: MatCheckboxModule }, { kind: "component", type: SdSection, selector: "sd-section", inputs: ["title", "subTitle", "icon", "iconColor", "iconShape", "collapsed", "collapsible", "hideHeader"], outputs: ["collapsedChange"] }, { kind: "component", type: SdInput, selector: "sd-input", inputs: ["autoId", "name", "appearance", "floatLabel", "labelPlacement", "size", "operators", "operator", "form", "label", "helperText", "placeholder", "type", "mask", "inputmode", "autocomplete", "hideInlineError", "blurOnEnter", "clearable", "required", "readonly", "disabled", "viewed", "minlength", "maxlength", "pattern", "patternErrorMessage", "validator", "inlineError", "hyperlink", "model"], outputs: ["operatorChange", "modelChange", "sdChange", "sdFocus", "sdBlur", "keyupEnter", "cleared", "sdFocusForceBlur"] }, { kind: "component", type: SdInputNumber, selector: "sd-input-number", inputs: ["autoId", "name", "size", "operators", "operator", "form", "label", "helperText", "placeholder", "hideInlineError", "blurOnEnter", "clearable", "required", "readonly", "disabled", "viewed", "type", "precision", "format", "min", "max", "validator", "inlineError", "hyperlink", "appearance", "floatLabel", "labelPlacement", "inputmode", "model"], outputs: ["operatorChange", "modelChange", "sdChange", "sdFocus", "sdBlur", "keyupEnter", "cleared", "sdFocusForceBlur"] }, { kind: "component", type: SdSelect, selector: "sd-select", inputs: ["autoId", "name", "size", "operators", "operator", "form", "label", "helperText", "placeholder", "valueField", "displayField", "disabledField", "cacheChecksum", "limit", "virtualScroll", "itemSize", "hyperlink", "minWidthPanel", "hideInlineError", "hideReadError", "required", "disabled", "viewed", "multiple", "showSelectAll", "clearable", "validator", "inlineError", "appearance", "floatLabel", "labelPlacement", "items", "model"], outputs: ["operatorChange", "sdReadStateChange", "modelChange", "sdChange", "sdSelection"] }, { kind: "component", type: SdDate, selector: "sd-date", inputs: ["autoId", "name", "size", "operators", "operator", "form", "label", "helperText", "placeholder", "hideInlineError", "required", "disabled", "viewed", "clearable", "inlineError", "hyperlink", "appearance", "floatLabel", "labelPlacement", "min", "minDate", "max", "maxDate", "transform", "model"], outputs: ["operatorChange", "modelChange", "sdChange", "sdFocus"] }, { kind: "component", type: SdDatetime, selector: "sd-datetime", inputs: ["autoId", "name", "size", "form", "label", "helperText", "placeholder", "hideInlineError", "required", "disabled", "viewed", "showSeconds", "clearable", "inlineError", "hyperlink", "appearance", "floatLabel", "labelPlacement", "min", "minDate", "max", "maxDate", "transform", "model"], outputs: ["modelChange", "sdChange", "sdFocus"] }, { kind: "component", type: SdDateRange, selector: "sd-date-range", inputs: ["autoId", "name", "size", "operators", "operator", "form", "label", "helperText", "hideInlineError", "required", "disabled", "viewed", "clearable", "appearance", "floatLabel", "min", "max", "transform", "model"], outputs: ["operatorChange", "modelChange", "sdChange"] }, { kind: "component", type: SdButton, selector: "sd-button", inputs: ["autoId", "type", "color", "size", "fontSet", "title", "width", "tooltip", "prefixIcon", "suffixIcon", "disabled", "openOnHover", "loading", "block", "htmlType", "indicator", "indicatorColor", "indicatorMax", "indicatorLabel"], outputs: ["click"] }, { kind: "component", type: SdCheckbox, selector: "sd-checkbox", inputs: ["autoId", "name", "form", "label", "color", "disabled", "size", "viewed", "inlineError", "model"], outputs: ["modelChange", "sdChange"] }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }, { kind: "pipe", type: FilterValuesPipe, name: "filterValues" }, { kind: "pipe", type: SdTranslatePipe, name: "sdTranslate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
4962
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.25", type: ExternalFilterComponent, isStandalone: true, selector: "external-filter", inputs: { autoIdInput: { classPropertyName: "autoIdInput", publicName: "autoId", isSignal: true, isRequired: false, transformFunction: null }, filter: { classPropertyName: "filter", publicName: "filter", isSignal: true, isRequired: false, transformFunction: null }, externalFilters: { classPropertyName: "externalFilters", publicName: "externalFilters", isSignal: true, isRequired: false, transformFunction: null }, filterRegister: { classPropertyName: "filterRegister", publicName: "filterRegister", isSignal: true, isRequired: false, transformFunction: null }, collapsedByDefault: { classPropertyName: "collapsedByDefault", publicName: "collapsedByDefault", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "@let _filter = filter();\n@let _autoId = autoId();\n@let _filterItems = filterItems();\n@let _externalFilter = externalFilter();\n@let _inlineExternal = inlineExternal();\n@let _filtered = filtered();\n@let _col = col();\n\n@if (!_filter?.disabled) {\n @if (!isMobileOrTablet && _filterItems.length) {\n <sd-section\n [hideHeader]=\"_filter?.hideExternalFilterToolbar\"\n icon=\"filter_alt\"\n iconColor=\"secondary\"\n [title]=\"'core.component.table.filter' | sdTranslate\"\n [collapsible]=\"_filter?.collapsible ?? true\"\n [(collapsed)]=\"collapsed\">\n <div class=\"d-flex gap-8 mr-4\" sdHeaderRight>\n <sd-button\n [autoId]=\"_autoId + 'clear'\"\n [disabled]=\"!_filtered\"\n type=\"text\"\n prefixIcon=\"cleaning_services\"\n [tooltip]=\"'core.component.table.clear-selection' | sdTranslate\"\n (click)=\"$event.stopPropagation(); clearFilter($event)\"></sd-button>\n <sd-button\n [autoId]=\"_autoId + 'setting'\"\n type=\"text\"\n prefixIcon=\"settings\"\n [tooltip]=\"'core.component.table.customize' | sdTranslate\">\n <!-- why: m\u1EE5c b\u1EADt/t\u1EAFt (`checked`) gi\u1EEF menu m\u1EDF v\u1EDBi c\u1EA3 chu\u1ED9t l\u1EABn Enter/Space, nh\u01B0 menu c\u0169, v\u00E0 b\u00E1o tr\u1EA1ng th\u00E1i\n qua aria-checked (R2 N3). -->\n @for (externalFilter of _filterItems; track externalFilter.field) {\n <sd-button-item\n [autoId]=\"_autoId + 'setting-' + externalFilter.field\"\n [checked]=\"!!_inlineExternal[externalFilter.field]\"\n [disabled]=\"externalFilter.required\"\n (click)=\"onCheckboxChange($event, externalFilter)\"\n >{{ externalFilter.title }}</sd-button-item\n >\n }\n </sd-button>\n </div>\n <div class=\"sd-external-filter-body\">\n <div class=\"row mx-0\" style=\"row-gap: 16px\">\n @for (item of _filterItems; track item.field) {\n @if (_inlineExternal[item.field]) {\n <div class=\"col-md-3 col-sm-6 px-8\" [class.col-lg-2]=\"_col === 2\" [class.col-lg-3]=\"_col === 3\">\n @if (item.type === 'string') {\n <sd-input\n [autoId]=\"_autoId + item.field\"\n size=\"sm\"\n [label]=\"item.title\"\n type=\"text\"\n [(model)]=\"_externalFilter[item.field]\"\n (keyupEnter)=\"onKeyupEnter()\"\n appearance=\"outline\"\n [form]=\"form\"\n [required]=\"item.required\"\n clearable\n hideInlineError>\n </sd-input>\n } @else if (item.type === 'number') {\n <sd-input-number\n [autoId]=\"_autoId + item.field\"\n size=\"sm\"\n [label]=\"item.title\"\n [(model)]=\"_externalFilter[item.field]\"\n (keyupEnter)=\"onKeyupEnter()\"\n appearance=\"outline\"\n [form]=\"form\"\n [required]=\"item.required\"\n clearable\n hideInlineError>\n </sd-input-number>\n } @else if (item.type === 'boolean') {\n <sd-select\n [autoId]=\"_autoId + item.field\"\n size=\"sm\"\n [label]=\"item.title\"\n [items]=\"[\n { value: true, display: item.option?.displayOnTrue || 'True' },\n { value: false, display: item.option?.displayOnFalse || 'False' },\n ]\"\n valueField=\"value\"\n displayField=\"display\"\n [(model)]=\"_externalFilter[item.field]\"\n (sdChange)=\"onFilter(item)\"\n appearance=\"outline\"\n [form]=\"form\"\n [required]=\"item.required\"\n hideInlineError>\n </sd-select>\n } @else if (item.type === 'date') {\n <sd-date\n [autoId]=\"_autoId + item.field\"\n size=\"sm\"\n [label]=\"item.title\"\n [(model)]=\"_externalFilter[item.field]\"\n (sdChange)=\"onFilter(item)\"\n appearance=\"outline\"\n [form]=\"form\"\n [required]=\"item.required\"\n [min]=\"item.minDate\"\n [max]=\"item.maxDate\"\n clearable\n hideInlineError>\n </sd-date>\n } @else if (item.type === 'datetime') {\n <sd-datetime\n [autoId]=\"_autoId + item.field\"\n size=\"sm\"\n [label]=\"item.title\"\n [(model)]=\"_externalFilter[item.field]\"\n (sdChange)=\"onFilter(item)\"\n appearance=\"outline\"\n [form]=\"form\"\n [required]=\"item.required\"\n [min]=\"item.minDate\"\n [max]=\"item.maxDate\"\n clearable\n hideInlineError>\n </sd-datetime>\n } @else if (item.type === 'daterange') {\n <sd-date-range\n [autoId]=\"_autoId + item.field\"\n size=\"sm\"\n [label]=\"item.title\"\n [(model)]=\"_externalFilter[item.field]\"\n (sdChange)=\"onFilter(item)\"\n [form]=\"form\"\n [required]=\"item.required\"\n [min]=\"item.minDate\"\n [max]=\"item.maxDate\"\n appearance=\"outline\"\n hideInlineError>\n </sd-date-range>\n } @else if (item.type === 'values') {\n @if (item.option.selection === 'MULTIPLE') {\n <sd-select\n [autoId]=\"_autoId + item.field\"\n size=\"sm\"\n [label]=\"item.title\"\n [items]=\"item.option.items | filterValues | async\"\n [valueField]=\"item.option.valueField\"\n [displayField]=\"item.option.displayField\"\n [(model)]=\"_externalFilter[item.field]\"\n (sdChange)=\"onFilter(item)\"\n appearance=\"outline\"\n multiple\n [form]=\"form\"\n [required]=\"item.required\"\n hideInlineError>\n </sd-select>\n } @else if (item.option.selection === 'AUTOCOMPLETE') {\n <sd-select\n [autoId]=\"_autoId + item.field\"\n size=\"sm\"\n [label]=\"item.title\"\n [items]=\"item.option.items | filterValues | async\"\n [valueField]=\"item.option.valueField\"\n [displayField]=\"item.option.displayField\"\n [(model)]=\"_externalFilter[item.field]\"\n (sdChange)=\"onFilter(item)\"\n appearance=\"outline\"\n [form]=\"form\"\n [required]=\"item.required\"\n hideInlineError>\n </sd-select>\n } @else if (item.option.selection === 'MULTIPLEAUTOCOMPLETE') {\n <sd-select\n [autoId]=\"_autoId + item.field\"\n size=\"sm\"\n [label]=\"item.title\"\n [items]=\"item.option.items | filterValues | async\"\n [valueField]=\"item.option.valueField\"\n [displayField]=\"item.option.displayField\"\n [(model)]=\"_externalFilter[item.field]\"\n (sdChange)=\"onFilter(item)\"\n appearance=\"outline\"\n multiple\n [form]=\"form\"\n [required]=\"item.required\"\n hideInlineError>\n </sd-select>\n } @else {\n <sd-select\n [autoId]=\"_autoId + item.field\"\n size=\"sm\"\n [label]=\"item.title\"\n [items]=\"item.option.items | filterValues | async\"\n [valueField]=\"item.option.valueField\"\n [displayField]=\"item.option.displayField\"\n [(model)]=\"_externalFilter[item.field]\"\n (sdChange)=\"onFilter(item)\"\n appearance=\"outline\"\n [form]=\"form\"\n [required]=\"item.required\"\n hideInlineError>\n </sd-select>\n }\n } @else if (item.type === 'lazy-values') {\n @if (item.option.selection === 'MULTIPLE') {\n <sd-select\n [autoId]=\"_autoId + item.field\"\n size=\"sm\"\n [label]=\"item.title\"\n [items]=\"item.option.items\"\n [valueField]=\"item.option.valueField\"\n [displayField]=\"item.option.displayField\"\n [(model)]=\"_externalFilter[item.field]\"\n (sdChange)=\"onFilter(item)\"\n appearance=\"outline\"\n multiple\n [form]=\"form\"\n [required]=\"item.required\"\n hideInlineError>\n </sd-select>\n } @else {\n <sd-select\n [autoId]=\"_autoId + item.field\"\n size=\"sm\"\n [label]=\"item.title\"\n [items]=\"item.option.items\"\n [valueField]=\"item.option.valueField\"\n [displayField]=\"item.option.displayField\"\n [(model)]=\"_externalFilter[item.field]\"\n (sdChange)=\"onFilter(item)\"\n appearance=\"outline\"\n [form]=\"form\"\n [required]=\"item.required\"\n hideInlineError>\n </sd-select>\n }\n } @else if (item.type === 'custom' && item.filterDef) {\n <ng-container\n *ngTemplateOutlet=\"\n item.filterDef;\n context: { form: form, externalFilter: _externalFilter, autoId: _autoId + item.field }\n \">\n </ng-container>\n }\n </div>\n }\n }\n </div>\n @if (_filter?.manualFilter) {\n <div class=\"d-flex justify-content-end mt-16 px-8\">\n <sd-button\n [autoId]=\"_autoId + 'submit'\"\n [disabled]=\"form.invalid\"\n type=\"fill\"\n color=\"primary\"\n [title]=\"'core.component.table.search' | sdTranslate\"\n prefixIcon=\"filter_alt\"\n (click)=\"onSubmit()\">\n </sd-button>\n </div>\n }\n </div>\n </sd-section>\n }\n}\n", styles: [":host{display:block;padding-left:0;padding-right:0}.sd-external-filter-body{padding:16px 8px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: SdSection, selector: "sd-section", inputs: ["title", "subTitle", "icon", "iconColor", "iconShape", "collapsed", "collapsible", "hideHeader"], outputs: ["collapsedChange"] }, { kind: "component", type: SdInput, selector: "sd-input", inputs: ["autoId", "name", "appearance", "floatLabel", "labelPlacement", "size", "operators", "operator", "form", "label", "helperText", "placeholder", "type", "mask", "inputmode", "autocomplete", "hideInlineError", "blurOnEnter", "clearable", "required", "readonly", "disabled", "viewed", "minlength", "maxlength", "pattern", "patternErrorMessage", "validator", "inlineError", "hyperlink", "model"], outputs: ["operatorChange", "modelChange", "sdChange", "sdFocus", "sdBlur", "keyupEnter", "cleared", "sdFocusForceBlur"] }, { kind: "component", type: SdInputNumber, selector: "sd-input-number", inputs: ["autoId", "name", "size", "operators", "operator", "form", "label", "helperText", "placeholder", "hideInlineError", "blurOnEnter", "clearable", "required", "readonly", "disabled", "viewed", "type", "precision", "format", "min", "max", "validator", "inlineError", "hyperlink", "appearance", "floatLabel", "labelPlacement", "inputmode", "model"], outputs: ["operatorChange", "modelChange", "sdChange", "sdFocus", "sdBlur", "keyupEnter", "cleared", "sdFocusForceBlur"] }, { kind: "component", type: SdSelect, selector: "sd-select", inputs: ["autoId", "name", "size", "operators", "operator", "form", "label", "helperText", "placeholder", "valueField", "displayField", "disabledField", "cacheChecksum", "limit", "virtualScroll", "itemSize", "hyperlink", "minWidthPanel", "hideInlineError", "hideReadError", "required", "disabled", "viewed", "multiple", "showSelectAll", "clearable", "validator", "inlineError", "appearance", "floatLabel", "labelPlacement", "items", "model"], outputs: ["operatorChange", "sdReadStateChange", "modelChange", "sdChange", "sdSelection"] }, { kind: "component", type: SdDate, selector: "sd-date", inputs: ["autoId", "name", "size", "operators", "operator", "form", "label", "helperText", "placeholder", "hideInlineError", "required", "disabled", "viewed", "clearable", "inlineError", "hyperlink", "appearance", "floatLabel", "labelPlacement", "min", "minDate", "max", "maxDate", "transform", "model"], outputs: ["operatorChange", "modelChange", "sdChange", "sdFocus"] }, { kind: "component", type: SdDatetime, selector: "sd-datetime", inputs: ["autoId", "name", "size", "form", "label", "helperText", "placeholder", "hideInlineError", "required", "disabled", "viewed", "showSeconds", "clearable", "inlineError", "hyperlink", "appearance", "floatLabel", "labelPlacement", "min", "minDate", "max", "maxDate", "transform", "model"], outputs: ["modelChange", "sdChange", "sdFocus"] }, { kind: "component", type: SdDateRange, selector: "sd-date-range", inputs: ["autoId", "name", "size", "operators", "operator", "form", "label", "helperText", "hideInlineError", "required", "disabled", "viewed", "clearable", "appearance", "floatLabel", "min", "max", "transform", "model"], outputs: ["operatorChange", "modelChange", "sdChange"] }, { kind: "component", type: SdButton, selector: "sd-button", inputs: ["autoId", "type", "color", "size", "fontSet", "title", "width", "tooltip", "prefixIcon", "suffixIcon", "disabled", "openOnHover", "loading", "block", "htmlType", "indicator", "indicatorColor", "indicatorMax", "indicatorLabel"], outputs: ["click"] }, { kind: "component", type: SdButtonItem, selector: "sd-button-item", inputs: ["color", "prefixIcon", "suffixIcon", "fontSet", "disabled", "checked", "tooltip", "autoId"], outputs: ["click"] }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }, { kind: "pipe", type: FilterValuesPipe, name: "filterValues" }, { kind: "pipe", type: SdTranslatePipe, name: "sdTranslate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
4876
4963
|
}
|
|
4877
4964
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ExternalFilterComponent, decorators: [{
|
|
4878
4965
|
type: Component,
|
|
4879
4966
|
args: [{ selector: 'external-filter', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [
|
|
4880
4967
|
CommonModule,
|
|
4881
|
-
MatMenuModule,
|
|
4882
|
-
MatCheckboxModule,
|
|
4883
4968
|
SdSection,
|
|
4884
4969
|
SdInput,
|
|
4885
4970
|
SdInputNumber,
|
|
@@ -4888,13 +4973,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImpo
|
|
|
4888
4973
|
SdDatetime,
|
|
4889
4974
|
SdDateRange,
|
|
4890
4975
|
SdButton,
|
|
4976
|
+
SdButtonItem,
|
|
4891
4977
|
FilterValuesPipe,
|
|
4892
|
-
SdCheckbox,
|
|
4893
4978
|
SdTranslatePipe,
|
|
4894
|
-
], template: "@let _filter = filter();\n@let _autoId = autoId();\n@let _filterItems = filterItems();\n@let _externalFilter = externalFilter();\n@let _inlineExternal = inlineExternal();\n@let _filtered = filtered();\n@let _col = col();\n\n@if (!_filter?.disabled) {\n @if (!isMobileOrTablet && _filterItems.length) {\n <sd-section\n [hideHeader]=\"_filter?.hideExternalFilterToolbar\"\n icon=\"filter_alt\"\n iconColor=\"secondary\"\n [title]=\"'core.component.table.filter' | sdTranslate\"\n [collapsible]=\"_filter?.collapsible ?? true\"\n [(collapsed)]=\"collapsed\">\n <div class=\"d-flex gap-8 mr-4\" sdHeaderRight>\n <sd-button\n [autoId]=\"_autoId + 'clear'\"\n [disabled]=\"!_filtered\"\n type=\"text\"\n prefixIcon=\"cleaning_services\"\n [tooltip]=\"'core.component.table.clear-selection' | sdTranslate\"\n (click)=\"$event.stopPropagation(); clearFilter($event)\"></sd-button>\n <sd-button\n [autoId]=\"_autoId + 'setting'\"\n type=\"text\"\n prefixIcon=\"settings\"\n [tooltip]=\"'core.component.table.customize' | sdTranslate\"\n [matMenuTriggerFor]=\"menu\"\n (click)=\"$event.stopPropagation()\"></sd-button>\n <mat-menu #menu=\"matMenu\" class=\"sd-custom-panel-filter-configuration\" [attr.data-autoid]=\"_autoId + 'setting-menu'\">\n @for (externalFilter of _filterItems; track externalFilter.field) {\n <button\n [attr.data-autoid]=\"_autoId + 'setting-' + externalFilter.field\"\n mat-menu-item\n (click)=\"onCheckboxChange($event, externalFilter)\"\n [disabled]=\"externalFilter.required\">\n <sd-checkbox\n [autoId]=\"_autoId + 'setting-' + externalFilter.field + '-checkbox'\"\n [label]=\"externalFilter.title\"\n [model]=\"_inlineExternal[externalFilter.field]\"\n [disabled]=\"externalFilter.required\" />\n </button>\n }\n </mat-menu>\n </div>\n <div class=\"sd-external-filter-body\">\n <div class=\"row mx-0\" style=\"row-gap: 16px\">\n @for (item of _filterItems; track item.field) {\n @if (_inlineExternal[item.field]) {\n <div class=\"col-md-3 col-sm-6 px-8\" [class.col-lg-2]=\"_col === 2\" [class.col-lg-3]=\"_col === 3\">\n @if (item.type === 'string') {\n <sd-input\n [autoId]=\"_autoId + item.field\"\n size=\"sm\"\n [label]=\"item.title\"\n type=\"text\"\n [(model)]=\"_externalFilter[item.field]\"\n (keyupEnter)=\"onKeyupEnter()\"\n appearance=\"outline\"\n [form]=\"form\"\n [required]=\"item.required\"\n clearable\n hideInlineError>\n </sd-input>\n } @else if (item.type === 'number') {\n <sd-input-number\n [autoId]=\"_autoId + item.field\"\n size=\"sm\"\n [label]=\"item.title\"\n [(model)]=\"_externalFilter[item.field]\"\n (keyupEnter)=\"onKeyupEnter()\"\n appearance=\"outline\"\n [form]=\"form\"\n [required]=\"item.required\"\n clearable\n hideInlineError>\n </sd-input-number>\n } @else if (item.type === 'boolean') {\n <sd-select\n [autoId]=\"_autoId + item.field\"\n size=\"sm\"\n [label]=\"item.title\"\n [items]=\"[\n { value: true, display: item.option?.displayOnTrue || 'True' },\n { value: false, display: item.option?.displayOnFalse || 'False' },\n ]\"\n valueField=\"value\"\n displayField=\"display\"\n [(model)]=\"_externalFilter[item.field]\"\n (sdChange)=\"onFilter(item)\"\n appearance=\"outline\"\n [form]=\"form\"\n [required]=\"item.required\"\n hideInlineError>\n </sd-select>\n } @else if (item.type === 'date') {\n <sd-date\n [autoId]=\"_autoId + item.field\"\n size=\"sm\"\n [label]=\"item.title\"\n [(model)]=\"_externalFilter[item.field]\"\n (sdChange)=\"onFilter(item)\"\n appearance=\"outline\"\n [form]=\"form\"\n [required]=\"item.required\"\n [min]=\"item.minDate\"\n [max]=\"item.maxDate\"\n clearable\n hideInlineError>\n </sd-date>\n } @else if (item.type === 'datetime') {\n <sd-datetime\n [autoId]=\"_autoId + item.field\"\n size=\"sm\"\n [label]=\"item.title\"\n [(model)]=\"_externalFilter[item.field]\"\n (sdChange)=\"onFilter(item)\"\n appearance=\"outline\"\n [form]=\"form\"\n [required]=\"item.required\"\n [min]=\"item.minDate\"\n [max]=\"item.maxDate\"\n clearable\n hideInlineError>\n </sd-datetime>\n } @else if (item.type === 'daterange') {\n <sd-date-range\n [autoId]=\"_autoId + item.field\"\n size=\"sm\"\n [label]=\"item.title\"\n [(model)]=\"_externalFilter[item.field]\"\n (sdChange)=\"onFilter(item)\"\n [form]=\"form\"\n [required]=\"item.required\"\n [min]=\"item.minDate\"\n [max]=\"item.maxDate\"\n appearance=\"outline\"\n hideInlineError>\n </sd-date-range>\n } @else if (item.type === 'values') {\n @if (item.option.selection === 'MULTIPLE') {\n <sd-select\n [autoId]=\"_autoId + item.field\"\n size=\"sm\"\n [label]=\"item.title\"\n [items]=\"item.option.items | filterValues | async\"\n [valueField]=\"item.option.valueField\"\n [displayField]=\"item.option.displayField\"\n [(model)]=\"_externalFilter[item.field]\"\n (sdChange)=\"onFilter(item)\"\n appearance=\"outline\"\n multiple\n [form]=\"form\"\n [required]=\"item.required\"\n hideInlineError>\n </sd-select>\n } @else if (item.option.selection === 'AUTOCOMPLETE') {\n <sd-select\n [autoId]=\"_autoId + item.field\"\n size=\"sm\"\n [label]=\"item.title\"\n [items]=\"item.option.items | filterValues | async\"\n [valueField]=\"item.option.valueField\"\n [displayField]=\"item.option.displayField\"\n [(model)]=\"_externalFilter[item.field]\"\n (sdChange)=\"onFilter(item)\"\n appearance=\"outline\"\n [form]=\"form\"\n [required]=\"item.required\"\n hideInlineError>\n </sd-select>\n } @else if (item.option.selection === 'MULTIPLEAUTOCOMPLETE') {\n <sd-select\n [autoId]=\"_autoId + item.field\"\n size=\"sm\"\n [label]=\"item.title\"\n [items]=\"item.option.items | filterValues | async\"\n [valueField]=\"item.option.valueField\"\n [displayField]=\"item.option.displayField\"\n [(model)]=\"_externalFilter[item.field]\"\n (sdChange)=\"onFilter(item)\"\n appearance=\"outline\"\n multiple\n [form]=\"form\"\n [required]=\"item.required\"\n hideInlineError>\n </sd-select>\n } @else {\n <sd-select\n [autoId]=\"_autoId + item.field\"\n size=\"sm\"\n [label]=\"item.title\"\n [items]=\"item.option.items | filterValues | async\"\n [valueField]=\"item.option.valueField\"\n [displayField]=\"item.option.displayField\"\n [(model)]=\"_externalFilter[item.field]\"\n (sdChange)=\"onFilter(item)\"\n appearance=\"outline\"\n [form]=\"form\"\n [required]=\"item.required\"\n hideInlineError>\n </sd-select>\n }\n } @else if (item.type === 'lazy-values') {\n @if (item.option.selection === 'MULTIPLE') {\n <sd-select\n [autoId]=\"_autoId + item.field\"\n size=\"sm\"\n [label]=\"item.title\"\n [items]=\"item.option.items\"\n [valueField]=\"item.option.valueField\"\n [displayField]=\"item.option.displayField\"\n [(model)]=\"_externalFilter[item.field]\"\n (sdChange)=\"onFilter(item)\"\n appearance=\"outline\"\n multiple\n [form]=\"form\"\n [required]=\"item.required\"\n hideInlineError>\n </sd-select>\n } @else {\n <sd-select\n [autoId]=\"_autoId + item.field\"\n size=\"sm\"\n [label]=\"item.title\"\n [items]=\"item.option.items\"\n [valueField]=\"item.option.valueField\"\n [displayField]=\"item.option.displayField\"\n [(model)]=\"_externalFilter[item.field]\"\n (sdChange)=\"onFilter(item)\"\n appearance=\"outline\"\n [form]=\"form\"\n [required]=\"item.required\"\n hideInlineError>\n </sd-select>\n }\n } @else if (item.type === 'custom' && item.filterDef) {\n <ng-container\n *ngTemplateOutlet=\"\n item.filterDef;\n context: { form: form, externalFilter: _externalFilter, autoId: _autoId + item.field }\n \">\n </ng-container>\n }\n </div>\n }\n }\n </div>\n @if (_filter?.manualFilter) {\n <div class=\"d-flex justify-content-end mt-16 px-8\">\n <sd-button\n [autoId]=\"_autoId + 'submit'\"\n [disabled]=\"form.invalid\"\n type=\"fill\"\n color=\"primary\"\n [title]=\"'core.component.table.search' | sdTranslate\"\n prefixIcon=\"filter_alt\"\n (click)=\"onSubmit()\">\n </sd-button>\n </div>\n }\n </div>\n </sd-section>\n }\n}\n", styles: [":host{display:block;padding-left:0;padding-right:0}.sd-external-filter-body{padding:16px 8px}::ng-deep .sd-custom-panel-filter-configuration{width:240px;max-height:550px;overflow-y:auto}\n"] }]
|
|
4979
|
+
], template: "@let _filter = filter();\n@let _autoId = autoId();\n@let _filterItems = filterItems();\n@let _externalFilter = externalFilter();\n@let _inlineExternal = inlineExternal();\n@let _filtered = filtered();\n@let _col = col();\n\n@if (!_filter?.disabled) {\n @if (!isMobileOrTablet && _filterItems.length) {\n <sd-section\n [hideHeader]=\"_filter?.hideExternalFilterToolbar\"\n icon=\"filter_alt\"\n iconColor=\"secondary\"\n [title]=\"'core.component.table.filter' | sdTranslate\"\n [collapsible]=\"_filter?.collapsible ?? true\"\n [(collapsed)]=\"collapsed\">\n <div class=\"d-flex gap-8 mr-4\" sdHeaderRight>\n <sd-button\n [autoId]=\"_autoId + 'clear'\"\n [disabled]=\"!_filtered\"\n type=\"text\"\n prefixIcon=\"cleaning_services\"\n [tooltip]=\"'core.component.table.clear-selection' | sdTranslate\"\n (click)=\"$event.stopPropagation(); clearFilter($event)\"></sd-button>\n <sd-button\n [autoId]=\"_autoId + 'setting'\"\n type=\"text\"\n prefixIcon=\"settings\"\n [tooltip]=\"'core.component.table.customize' | sdTranslate\">\n <!-- why: m\u1EE5c b\u1EADt/t\u1EAFt (`checked`) gi\u1EEF menu m\u1EDF v\u1EDBi c\u1EA3 chu\u1ED9t l\u1EABn Enter/Space, nh\u01B0 menu c\u0169, v\u00E0 b\u00E1o tr\u1EA1ng th\u00E1i\n qua aria-checked (R2 N3). -->\n @for (externalFilter of _filterItems; track externalFilter.field) {\n <sd-button-item\n [autoId]=\"_autoId + 'setting-' + externalFilter.field\"\n [checked]=\"!!_inlineExternal[externalFilter.field]\"\n [disabled]=\"externalFilter.required\"\n (click)=\"onCheckboxChange($event, externalFilter)\"\n >{{ externalFilter.title }}</sd-button-item\n >\n }\n </sd-button>\n </div>\n <div class=\"sd-external-filter-body\">\n <div class=\"row mx-0\" style=\"row-gap: 16px\">\n @for (item of _filterItems; track item.field) {\n @if (_inlineExternal[item.field]) {\n <div class=\"col-md-3 col-sm-6 px-8\" [class.col-lg-2]=\"_col === 2\" [class.col-lg-3]=\"_col === 3\">\n @if (item.type === 'string') {\n <sd-input\n [autoId]=\"_autoId + item.field\"\n size=\"sm\"\n [label]=\"item.title\"\n type=\"text\"\n [(model)]=\"_externalFilter[item.field]\"\n (keyupEnter)=\"onKeyupEnter()\"\n appearance=\"outline\"\n [form]=\"form\"\n [required]=\"item.required\"\n clearable\n hideInlineError>\n </sd-input>\n } @else if (item.type === 'number') {\n <sd-input-number\n [autoId]=\"_autoId + item.field\"\n size=\"sm\"\n [label]=\"item.title\"\n [(model)]=\"_externalFilter[item.field]\"\n (keyupEnter)=\"onKeyupEnter()\"\n appearance=\"outline\"\n [form]=\"form\"\n [required]=\"item.required\"\n clearable\n hideInlineError>\n </sd-input-number>\n } @else if (item.type === 'boolean') {\n <sd-select\n [autoId]=\"_autoId + item.field\"\n size=\"sm\"\n [label]=\"item.title\"\n [items]=\"[\n { value: true, display: item.option?.displayOnTrue || 'True' },\n { value: false, display: item.option?.displayOnFalse || 'False' },\n ]\"\n valueField=\"value\"\n displayField=\"display\"\n [(model)]=\"_externalFilter[item.field]\"\n (sdChange)=\"onFilter(item)\"\n appearance=\"outline\"\n [form]=\"form\"\n [required]=\"item.required\"\n hideInlineError>\n </sd-select>\n } @else if (item.type === 'date') {\n <sd-date\n [autoId]=\"_autoId + item.field\"\n size=\"sm\"\n [label]=\"item.title\"\n [(model)]=\"_externalFilter[item.field]\"\n (sdChange)=\"onFilter(item)\"\n appearance=\"outline\"\n [form]=\"form\"\n [required]=\"item.required\"\n [min]=\"item.minDate\"\n [max]=\"item.maxDate\"\n clearable\n hideInlineError>\n </sd-date>\n } @else if (item.type === 'datetime') {\n <sd-datetime\n [autoId]=\"_autoId + item.field\"\n size=\"sm\"\n [label]=\"item.title\"\n [(model)]=\"_externalFilter[item.field]\"\n (sdChange)=\"onFilter(item)\"\n appearance=\"outline\"\n [form]=\"form\"\n [required]=\"item.required\"\n [min]=\"item.minDate\"\n [max]=\"item.maxDate\"\n clearable\n hideInlineError>\n </sd-datetime>\n } @else if (item.type === 'daterange') {\n <sd-date-range\n [autoId]=\"_autoId + item.field\"\n size=\"sm\"\n [label]=\"item.title\"\n [(model)]=\"_externalFilter[item.field]\"\n (sdChange)=\"onFilter(item)\"\n [form]=\"form\"\n [required]=\"item.required\"\n [min]=\"item.minDate\"\n [max]=\"item.maxDate\"\n appearance=\"outline\"\n hideInlineError>\n </sd-date-range>\n } @else if (item.type === 'values') {\n @if (item.option.selection === 'MULTIPLE') {\n <sd-select\n [autoId]=\"_autoId + item.field\"\n size=\"sm\"\n [label]=\"item.title\"\n [items]=\"item.option.items | filterValues | async\"\n [valueField]=\"item.option.valueField\"\n [displayField]=\"item.option.displayField\"\n [(model)]=\"_externalFilter[item.field]\"\n (sdChange)=\"onFilter(item)\"\n appearance=\"outline\"\n multiple\n [form]=\"form\"\n [required]=\"item.required\"\n hideInlineError>\n </sd-select>\n } @else if (item.option.selection === 'AUTOCOMPLETE') {\n <sd-select\n [autoId]=\"_autoId + item.field\"\n size=\"sm\"\n [label]=\"item.title\"\n [items]=\"item.option.items | filterValues | async\"\n [valueField]=\"item.option.valueField\"\n [displayField]=\"item.option.displayField\"\n [(model)]=\"_externalFilter[item.field]\"\n (sdChange)=\"onFilter(item)\"\n appearance=\"outline\"\n [form]=\"form\"\n [required]=\"item.required\"\n hideInlineError>\n </sd-select>\n } @else if (item.option.selection === 'MULTIPLEAUTOCOMPLETE') {\n <sd-select\n [autoId]=\"_autoId + item.field\"\n size=\"sm\"\n [label]=\"item.title\"\n [items]=\"item.option.items | filterValues | async\"\n [valueField]=\"item.option.valueField\"\n [displayField]=\"item.option.displayField\"\n [(model)]=\"_externalFilter[item.field]\"\n (sdChange)=\"onFilter(item)\"\n appearance=\"outline\"\n multiple\n [form]=\"form\"\n [required]=\"item.required\"\n hideInlineError>\n </sd-select>\n } @else {\n <sd-select\n [autoId]=\"_autoId + item.field\"\n size=\"sm\"\n [label]=\"item.title\"\n [items]=\"item.option.items | filterValues | async\"\n [valueField]=\"item.option.valueField\"\n [displayField]=\"item.option.displayField\"\n [(model)]=\"_externalFilter[item.field]\"\n (sdChange)=\"onFilter(item)\"\n appearance=\"outline\"\n [form]=\"form\"\n [required]=\"item.required\"\n hideInlineError>\n </sd-select>\n }\n } @else if (item.type === 'lazy-values') {\n @if (item.option.selection === 'MULTIPLE') {\n <sd-select\n [autoId]=\"_autoId + item.field\"\n size=\"sm\"\n [label]=\"item.title\"\n [items]=\"item.option.items\"\n [valueField]=\"item.option.valueField\"\n [displayField]=\"item.option.displayField\"\n [(model)]=\"_externalFilter[item.field]\"\n (sdChange)=\"onFilter(item)\"\n appearance=\"outline\"\n multiple\n [form]=\"form\"\n [required]=\"item.required\"\n hideInlineError>\n </sd-select>\n } @else {\n <sd-select\n [autoId]=\"_autoId + item.field\"\n size=\"sm\"\n [label]=\"item.title\"\n [items]=\"item.option.items\"\n [valueField]=\"item.option.valueField\"\n [displayField]=\"item.option.displayField\"\n [(model)]=\"_externalFilter[item.field]\"\n (sdChange)=\"onFilter(item)\"\n appearance=\"outline\"\n [form]=\"form\"\n [required]=\"item.required\"\n hideInlineError>\n </sd-select>\n }\n } @else if (item.type === 'custom' && item.filterDef) {\n <ng-container\n *ngTemplateOutlet=\"\n item.filterDef;\n context: { form: form, externalFilter: _externalFilter, autoId: _autoId + item.field }\n \">\n </ng-container>\n }\n </div>\n }\n }\n </div>\n @if (_filter?.manualFilter) {\n <div class=\"d-flex justify-content-end mt-16 px-8\">\n <sd-button\n [autoId]=\"_autoId + 'submit'\"\n [disabled]=\"form.invalid\"\n type=\"fill\"\n color=\"primary\"\n [title]=\"'core.component.table.search' | sdTranslate\"\n prefixIcon=\"filter_alt\"\n (click)=\"onSubmit()\">\n </sd-button>\n </div>\n }\n </div>\n </sd-section>\n }\n}\n", styles: [":host{display:block;padding-left:0;padding-right:0}.sd-external-filter-body{padding:16px 8px}\n"] }]
|
|
4895
4980
|
}], ctorParameters: () => [], propDecorators: { autoIdInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoId", required: false }] }], filter: [{ type: i0.Input, args: [{ isSignal: true, alias: "filter", required: false }] }], externalFilters: [{ type: i0.Input, args: [{ isSignal: true, alias: "externalFilters", required: false }] }], filterRegister: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterRegister", required: false }] }], collapsedByDefault: [{ type: i0.Input, args: [{ isSignal: true, alias: "collapsedByDefault", required: false }] }] } });
|
|
4896
4981
|
|
|
4897
|
-
const clone = (value) => (value ? JSON.parse(JSON.stringify(value)) : value);
|
|
4898
4982
|
/**
|
|
4899
4983
|
* Filter sheet of the phone (handoff table-mobile 5): one `sd-modal` bottom sheet with two levels — the list of
|
|
4900
4984
|
* filters with their summary, and the page of one filter. Works on a copy of the filter register: Done keeps the page's
|
|
@@ -4988,10 +5072,10 @@ class MobileFilterComponent {
|
|
|
4988
5072
|
open = () => {
|
|
4989
5073
|
const reg = this.filterRegister();
|
|
4990
5074
|
const val = reg?.value.get();
|
|
4991
|
-
|
|
4992
|
-
this.workingColumnFilter.set(
|
|
4993
|
-
this.workingColumnOperator.set(
|
|
4994
|
-
this.workingExternalFilter.set(
|
|
5075
|
+
// why: copy giữ `Date` — bản JSON biến default kiểu ngày thành chuỗi và làm lệch so sánh khi Áp dụng.
|
|
5076
|
+
this.workingColumnFilter.set(cloneTableFilterValue(val?.columnFilter));
|
|
5077
|
+
this.workingColumnOperator.set(cloneTableFilterValue(val?.columnOperator));
|
|
5078
|
+
this.workingExternalFilter.set(cloneTableFilterValue(val?.externalFilter));
|
|
4995
5079
|
this.page.set(undefined);
|
|
4996
5080
|
this.revision.update(value => value + 1);
|
|
4997
5081
|
this.sheet().open();
|
|
@@ -5017,8 +5101,22 @@ class MobileFilterComponent {
|
|
|
5017
5101
|
this.#leave(item);
|
|
5018
5102
|
}
|
|
5019
5103
|
onApply = () => {
|
|
5020
|
-
this.filterRegister()
|
|
5104
|
+
const register = this.filterRegister();
|
|
5105
|
+
const previous = cloneTableFilterValue(register?.value.get());
|
|
5106
|
+
const next = this.working();
|
|
5107
|
+
register?.value.set(next);
|
|
5021
5108
|
this.sheet().close();
|
|
5109
|
+
// why: control của sheet chỉ sửa bản nháp nên không gọi callback như query bar; gọi một lần cho mỗi filter đã đổi,
|
|
5110
|
+
// sau khi ghi. Cột custom dùng column-filter, đã tự gọi `filter.onChange` lúc sửa — không gọi lần hai.
|
|
5111
|
+
const customColumns = new Set((this.model()?.items ?? []).flatMap(item => (item.custom?.kind === 'column' ? [item.custom.column.field] : [])));
|
|
5112
|
+
runTableFilterCallbacks({
|
|
5113
|
+
previous,
|
|
5114
|
+
next,
|
|
5115
|
+
externalFilters: this.externalFilterItems(),
|
|
5116
|
+
columns: this.columnItems(),
|
|
5117
|
+
operatorChange: this.filter()?.operatorChange,
|
|
5118
|
+
columnOnChange: column => !customColumns.has(column.field),
|
|
5119
|
+
});
|
|
5022
5120
|
};
|
|
5023
5121
|
onCancel = () => {
|
|
5024
5122
|
// Local working state — không ghi gì khi cancel, chỉ đóng sheet.
|
|
@@ -5077,11 +5175,11 @@ class MobileFilterComponent {
|
|
|
5077
5175
|
}, { injector: this.#injector });
|
|
5078
5176
|
}
|
|
5079
5177
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: MobileFilterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
5080
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.25", type: MobileFilterComponent, isStandalone: true, selector: "mobile-filter", inputs: { autoIdInput: { classPropertyName: "autoIdInput", publicName: "autoId", isSignal: true, isRequired: false, transformFunction: null }, filter: { classPropertyName: "filter", publicName: "filter", isSignal: true, isRequired: false, transformFunction: null }, externalFilters: { classPropertyName: "externalFilters", publicName: "externalFilters", isSignal: true, isRequired: false, transformFunction: null }, columns: { classPropertyName: "columns", publicName: "columns", isSignal: true, isRequired: false, transformFunction: null }, filterDefs: { classPropertyName: "filterDefs", publicName: "filterDefs", isSignal: true, isRequired: false, transformFunction: null }, filterRegister: { classPropertyName: "filterRegister", publicName: "filterRegister", isSignal: true, isRequired: false, transformFunction: null }, cacheValues: { classPropertyName: "cacheValues", publicName: "cacheValues", isSignal: true, isRequired: false, transformFunction: null }, model: { classPropertyName: "model", publicName: "model", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "sheet", first: true, predicate: ["sheet"], descendants: true, isSignal: true }, { propertyName: "head", first: true, predicate: ["head"], descendants: true, isSignal: true }, { propertyName: "body", first: true, predicate: ["body"], descendants: true, isSignal: true }], ngImport: i0, template: "@let _autoId = autoId();\n@let _page = page();\n@let _count = activeCount();\n@let _model = model();\n<!-- One bottom sheet, two levels: the list of filters and the page of one filter (handoff table-mobile 5). -->\n<sd-modal\n #sheet\n view=\"bottom-sheet\"\n [title]=\"'core.component.table.filter' | sdTranslate\"\n [autoId]=\"_autoId ? _autoId + 'sheet' : undefined\"\n hideClose\n [disableBackdropClose]=\"false\"\n [closeOnNavigation]=\"false\"\n modalClass=\"sd-table-mobile-filter-sheet sd-table-mobile-filter-sheet--full\"\n (sdClosed)=\"onClosed()\">\n <div sdHeaderLeft #head class=\"sd-mobile-sheet-head\">\n <span class=\"sd-mobile-sheet-handle\" aria-hidden=\"true\"></span>\n <div class=\"sd-mobile-sheet-title-row\" [class.sd-mobile-filter-head]=\"!!_page\">\n @if (_page) {\n <button\n mat-icon-button\n type=\"button\"\n class=\"sd-mobile-sheet-icon\"\n [attr.aria-label]=\"'core.common.back' | sdTranslate\"\n [attr.data-autoid]=\"_autoId ? _autoId + 'back' : null\"\n (click)=\"back()\">\n <sd-icon name=\"arrow_back\" size=\"22px\"></sd-icon>\n </button>\n <h2 class=\"sd-mobile-sheet-title\" tabindex=\"-1\">{{ _page.label }}</h2>\n @if (_page.source || _page.custom?.kind === 'column' || _page.custom?.kind === 'external') {\n <sd-button\n [autoId]=\"_autoId ? _autoId + 'clear' : null\"\n type=\"text\"\n color=\"primary\"\n size=\"md\"\n [title]=\"'core.component.table.mobile.clear-field' | sdTranslate\"\n (click)=\"clearPage()\"></sd-button>\n }\n } @else {\n <!-- No \u2715 here: H\u1EE7y in the footer closes the sheet. -->\n <div class=\"sd-mobile-filter-heading\">\n <!-- why: Material focuses the first tabbable element on open; the title keeps Clear all from showing its focus fill. -->\n <h2 class=\"sd-mobile-sheet-title\" tabindex=\"-1\" cdkFocusInitial>{{ 'core.component.table.filter' | sdTranslate }}</h2>\n @if (_count) {\n <span class=\"sd-mobile-sheet-subtitle\">{{ 'core.component.table.mobile.filter-count' | sdTranslate: { count: _count } }}</span>\n }\n </div>\n <sd-button\n [autoId]=\"_autoId ? _autoId + 'clear-all' : null\"\n type=\"text\"\n color=\"primary\"\n size=\"md\"\n [disabled]=\"!_count\"\n [title]=\"'core.component.query-bar.clear' | sdTranslate\"\n (click)=\"clearAll()\"></sd-button>\n }\n </div>\n </div>\n <div #body class=\"sd-mobile-filter-body\">\n @if (_page && _model) {\n <div class=\"sd-mobile-sheet-body\">\n <sd-table-mobile-filter-field\n [item]=\"_page\"\n [value]=\"working()\"\n [ctx]=\"_model.ctx\"\n [revision]=\"revision()\"\n [cacheValues]=\"cacheValues()\"\n [labels]=\"labels\"\n [autoId]=\"_autoId ? _autoId + (_page.source?.field ?? _page.key) : undefined\"\n (changed)=\"onChanged()\"></sd-table-mobile-filter-field>\n </div>\n } @else {\n <ul class=\"sd-mobile-filter-list\" role=\"list\">\n @for (row of rows(); track row.item.key) {\n <li>\n <button\n type=\"button\"\n class=\"sd-mobile-filter-row\"\n [attr.data-filter-key]=\"row.item.key\"\n [attr.data-autoid]=\"_autoId ? _autoId + 'row-' + row.field : null\"\n (click)=\"enter(row.item)\">\n <span class=\"sd-mobile-filter-row-text\">\n <span class=\"sd-mobile-filter-row-label\">{{ row.item.label }}</span>\n @if (row.summary) {\n <span class=\"sd-mobile-filter-row-summary\" [class.sd-mobile-filter-row-summary--active]=\"row.active\">{{\n row.summary\n }}</span>\n }\n </span>\n <sd-icon name=\"chevron_right\" size=\"22px\"></sd-icon>\n </button>\n </li>\n }\n </ul>\n }\n </div>\n <div sdFooterRight class=\"sd-mobile-sheet-footer\">\n @if (_page) {\n <sd-button\n class=\"sd-mobile-sheet-apply\"\n [autoId]=\"_autoId ? _autoId + 'done' : null\"\n type=\"fill\"\n color=\"primary\"\n size=\"md\"\n [title]=\"'core.component.table.mobile.done' | sdTranslate\"\n (click)=\"back()\"></sd-button>\n } @else {\n <sd-button\n class=\"sd-mobile-sheet-cancel\"\n [autoId]=\"_autoId ? _autoId + 'cancel' : null\"\n type=\"outline\"\n size=\"md\"\n [title]=\"'core.common.cancel' | sdTranslate\"\n (click)=\"onCancel()\"></sd-button>\n <sd-button\n class=\"sd-mobile-sheet-apply\"\n [autoId]=\"_autoId ? _autoId + 'apply' : null\"\n type=\"fill\"\n color=\"primary\"\n size=\"md\"\n [title]=\"'core.component.table.apply' | sdTranslate\"\n (click)=\"onApply()\"></sd-button>\n }\n </div>\n</sd-modal>\n", styles: [".sd-mobile-sheet-head{display:flex;flex-direction:column;width:100%;min-width:0;touch-action:none}.sd-mobile-sheet-handle{display:block;width:32px;height:4px;margin:10px auto 4px;border-radius:2px;background:var(--sd-border)}.sd-mobile-sheet-title-row{display:flex;align-items:center;gap:4px;min-height:48px;padding:0 8px 0 20px}.sd-mobile-sheet-title{flex:1 1 auto;min-width:0;margin:0;overflow:hidden;font-size:var(--sd-font-size-20, 20px);line-height:var(--sd-line-height-28, 28px);font-weight:var(--sd-font-weight-medium, 500);color:var(--sd-text);text-overflow:ellipsis;white-space:nowrap;outline:none}.sd-mobile-sheet-subtitle{font-size:var(--sd-font-size-13, 13px);line-height:var(--sd-line-height-18, 18px);color:var(--sd-text-secondary)}.sd-mobile-sheet-icon{flex:0 0 44px;width:44px;height:44px;padding:0;color:var(--sd-text-secondary);--mat-icon-button-state-layer-size: 44px;--mdc-icon-button-state-layer-size: 44px}.sd-mobile-sheet-body{display:flex;flex-direction:column;gap:12px;padding:4px 20px 16px}.sd-mobile-sheet-footer{display:flex;gap:8px;width:100%}.sd-mobile-sheet-cancel{flex:1 1 0}.sd-mobile-sheet-apply{flex:2 1 0}.sd-mobile-sheet-cancel,.sd-mobile-sheet-apply{min-width:0}.sd-mobile-sheet-cancel ::ng-deep button,.sd-mobile-sheet-apply ::ng-deep button{width:100%;height:40px;border-radius:var(--sd-radius-999, 999px)}::ng-deep .sd-table-mobile-filter-sheet.mat-bottom-sheet-container,::ng-deep .sd-table-mobile-filter-sheet.mat-mdc-bottom-sheet-container,::ng-deep .sd-table-mobile-filter-sheet .mat-bottom-sheet-container,::ng-deep .sd-table-mobile-filter-sheet .mat-mdc-bottom-sheet-container{max-height:85dvh;border-radius:28px 28px 0 0!important}::ng-deep .sd-table-mobile-filter-sheet .sd-modal-header{padding:0;border-bottom:0}::ng-deep .sd-table-mobile-filter-sheet .sd-modal-header-left{flex:1 1 auto;min-width:0}::ng-deep .sd-table-mobile-filter-sheet .sd-modal-body{padding:0}::ng-deep .sd-table-mobile-filter-sheet .sd-modal-footer{min-height:0;padding:12px 16px 16px}::ng-deep .sd-table-mobile-filter-sheet .sd-modal-footer-left{display:none}::ng-deep .sd-table-mobile-filter-sheet .sd-modal-footer-right{flex:1 1 auto;margin-left:0}::ng-deep .sd-table-mobile-filter-sheet.sd-table-mobile-filter-sheet--full.mat-bottom-sheet-container,::ng-deep .sd-table-mobile-filter-sheet.sd-table-mobile-filter-sheet--full.mat-mdc-bottom-sheet-container,::ng-deep .sd-table-mobile-filter-sheet.sd-table-mobile-filter-sheet--full .mat-bottom-sheet-container,::ng-deep .sd-table-mobile-filter-sheet.sd-table-mobile-filter-sheet--full .mat-mdc-bottom-sheet-container{height:calc(100dvh - 40px);max-height:calc(100dvh - 40px)}::ng-deep .sd-table-mobile-filter-sheet.sd-table-mobile-filter-sheet--full .sd-modal-header{border-bottom:1px solid var(--sd-border)}::ng-deep .sd-table-mobile-filter-sheet.sd-table-mobile-filter-sheet--full .sd-modal-root{height:100%}::ng-deep .sd-table-mobile-filter-sheet.sd-table-mobile-filter-sheet--full .sd-modal-body{max-height:none}.sd-mobile-filter-head{padding-inline-start:4px}.sd-mobile-filter-heading{display:flex;flex:1 1 auto;flex-direction:column;min-width:0}.sd-mobile-filter-list{margin:0;padding:0;list-style:none}.sd-mobile-filter-row{display:flex;align-items:center;gap:8px;width:100%;min-height:60px;padding:0 12px 0 20px;border:0;border-bottom:1px solid var(--sd-surface-muted);background:transparent;color:var(--sd-text-secondary);text-align:start;cursor:pointer}.sd-mobile-filter-row:focus-visible{outline:var(--sd-focus-ring-width, 2px) solid var(--sd-focus-ring-color);outline-offset:-2px}.sd-mobile-filter-row-text{display:flex;flex:1 1 auto;flex-direction:column;min-width:0}.sd-mobile-filter-row-label{font-size:var(--sd-font-size-14, 14px);line-height:var(--sd-line-height-20, 20px);color:var(--sd-text)}.sd-mobile-filter-row-summary{overflow:hidden;font-size:var(--sd-font-size-13, 13px);line-height:var(--sd-line-height-18, 18px);color:var(--sd-text-secondary);white-space:nowrap;text-overflow:ellipsis}.sd-mobile-filter-row-summary--active{font-weight:var(--sd-font-weight-medium, 500);color:var(--sd-primary)}\n"], dependencies: [{ kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1$2.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: SdModal, selector: "sd-modal", inputs: ["autoId", "title", "color", "width", "height", "view", "modalClass", "lazyLoadContent", "hideClose", "disableBackdropClose", "beforeClose", "closeOnNavigation"], outputs: ["sdClosed", "sdCloseError"] }, { kind: "component", type: SdButton, selector: "sd-button", inputs: ["autoId", "type", "color", "size", "fontSet", "title", "width", "tooltip", "prefixIcon", "suffixIcon", "disabled", "openOnHover", "loading", "block", "htmlType", "indicator", "indicatorColor", "indicatorMax", "indicatorLabel"], outputs: ["click"] }, { kind: "component", type: SdIcon, selector: "sd-icon", inputs: ["name", "fontIcon", "color", "set", "fontSet", "size", "strokeWidth", "absoluteStrokeWidth", "ariaLabel"] }, { kind: "component", type: SdTableMobileFilterFieldComponent, selector: "sd-table-mobile-filter-field", inputs: ["item", "value", "ctx", "revision", "cacheValues", "labels", "autoId"], outputs: ["changed"] }, { kind: "pipe", type: SdTranslatePipe, name: "sdTranslate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
5178
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.25", type: MobileFilterComponent, isStandalone: true, selector: "mobile-filter", inputs: { autoIdInput: { classPropertyName: "autoIdInput", publicName: "autoId", isSignal: true, isRequired: false, transformFunction: null }, filter: { classPropertyName: "filter", publicName: "filter", isSignal: true, isRequired: false, transformFunction: null }, externalFilters: { classPropertyName: "externalFilters", publicName: "externalFilters", isSignal: true, isRequired: false, transformFunction: null }, columns: { classPropertyName: "columns", publicName: "columns", isSignal: true, isRequired: false, transformFunction: null }, filterDefs: { classPropertyName: "filterDefs", publicName: "filterDefs", isSignal: true, isRequired: false, transformFunction: null }, filterRegister: { classPropertyName: "filterRegister", publicName: "filterRegister", isSignal: true, isRequired: false, transformFunction: null }, cacheValues: { classPropertyName: "cacheValues", publicName: "cacheValues", isSignal: true, isRequired: false, transformFunction: null }, model: { classPropertyName: "model", publicName: "model", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "sheet", first: true, predicate: ["sheet"], descendants: true, isSignal: true }, { propertyName: "head", first: true, predicate: ["head"], descendants: true, isSignal: true }, { propertyName: "body", first: true, predicate: ["body"], descendants: true, isSignal: true }], ngImport: i0, template: "@let _autoId = autoId();\n@let _page = page();\n@let _count = activeCount();\n@let _model = model();\n<!-- One bottom sheet, two levels: the list of filters and the page of one filter (handoff table-mobile 5). -->\n<sd-modal\n #sheet\n view=\"bottom-sheet\"\n [title]=\"'core.component.table.filter' | sdTranslate\"\n [autoId]=\"_autoId ? _autoId + 'sheet' : undefined\"\n hideClose\n [disableBackdropClose]=\"false\"\n [closeOnNavigation]=\"false\"\n modalClass=\"sd-table-mobile-filter-sheet sd-table-mobile-filter-sheet--full\"\n (sdClosed)=\"onClosed()\">\n <div sdHeaderLeft #head class=\"sd-mobile-sheet-head\">\n <span class=\"sd-mobile-sheet-handle\" aria-hidden=\"true\"></span>\n <div class=\"sd-mobile-sheet-title-row\" [class.sd-mobile-filter-head]=\"!!_page\">\n @if (_page) {\n <button\n mat-icon-button\n type=\"button\"\n class=\"sd-mobile-sheet-icon\"\n [attr.aria-label]=\"'core.common.back' | sdTranslate\"\n [attr.data-autoid]=\"_autoId ? _autoId + 'back' : null\"\n (click)=\"back()\">\n <sd-icon name=\"arrow_back\" size=\"22px\"></sd-icon>\n </button>\n <h2 class=\"sd-mobile-sheet-title\" tabindex=\"-1\">{{ _page.label }}</h2>\n @if (_page.source || _page.custom?.kind === 'column' || _page.custom?.kind === 'external') {\n <sd-button\n [autoId]=\"_autoId ? _autoId + 'clear' : null\"\n type=\"text\"\n color=\"primary\"\n size=\"md\"\n [title]=\"'core.component.table.mobile.clear-field' | sdTranslate\"\n (click)=\"clearPage()\"></sd-button>\n }\n } @else {\n <!-- No \u2715 here: H\u1EE7y in the footer closes the sheet. -->\n <div class=\"sd-mobile-filter-heading\">\n <!-- why: Material focuses the first tabbable element on open; the title keeps Clear all from showing its focus fill. -->\n <h2 class=\"sd-mobile-sheet-title\" tabindex=\"-1\" cdkFocusInitial>{{ 'core.component.table.filter' | sdTranslate }}</h2>\n @if (_count) {\n <span class=\"sd-mobile-sheet-subtitle\">{{ 'core.component.table.mobile.filter-count' | sdTranslate: { count: _count } }}</span>\n }\n </div>\n <sd-button\n [autoId]=\"_autoId ? _autoId + 'clear-all' : null\"\n type=\"text\"\n color=\"primary\"\n size=\"md\"\n [disabled]=\"!_count\"\n [title]=\"'core.component.query-bar.clear' | sdTranslate\"\n (click)=\"clearAll()\"></sd-button>\n }\n </div>\n </div>\n <div #body class=\"sd-mobile-filter-body\">\n @if (_page && _model) {\n <div class=\"sd-mobile-sheet-body\">\n <sd-table-mobile-filter-field\n [item]=\"_page\"\n [value]=\"working()\"\n [ctx]=\"_model.ctx\"\n [revision]=\"revision()\"\n [cacheValues]=\"cacheValues()\"\n [labels]=\"labels\"\n [autoId]=\"_autoId ? _autoId + (_page.source?.field ?? _page.key) : undefined\"\n (changed)=\"onChanged()\"></sd-table-mobile-filter-field>\n </div>\n } @else {\n <ul class=\"sd-mobile-filter-list\" role=\"list\">\n @for (row of rows(); track row.item.key) {\n <li>\n <button\n type=\"button\"\n class=\"sd-mobile-filter-row\"\n [attr.data-filter-key]=\"row.item.key\"\n [attr.data-autoid]=\"_autoId ? _autoId + 'row-' + row.field : null\"\n (click)=\"enter(row.item)\">\n <span class=\"sd-mobile-filter-row-text\">\n <span class=\"sd-mobile-filter-row-label\">{{ row.item.label }}</span>\n @if (row.summary) {\n <span class=\"sd-mobile-filter-row-summary\" [class.sd-mobile-filter-row-summary--active]=\"row.active\">{{\n row.summary\n }}</span>\n }\n </span>\n <sd-icon name=\"chevron_right\" size=\"22px\"></sd-icon>\n </button>\n </li>\n }\n </ul>\n }\n </div>\n <div sdFooterRight class=\"sd-mobile-sheet-footer\">\n @if (_page) {\n <sd-button\n class=\"sd-mobile-sheet-apply\"\n [autoId]=\"_autoId ? _autoId + 'done' : null\"\n type=\"fill\"\n color=\"primary\"\n size=\"md\"\n [title]=\"'core.component.table.mobile.done' | sdTranslate\"\n (click)=\"back()\"></sd-button>\n } @else {\n <sd-button\n class=\"sd-mobile-sheet-cancel\"\n [autoId]=\"_autoId ? _autoId + 'cancel' : null\"\n type=\"outline\"\n size=\"md\"\n [title]=\"'core.common.cancel' | sdTranslate\"\n (click)=\"onCancel()\"></sd-button>\n <sd-button\n class=\"sd-mobile-sheet-apply\"\n [autoId]=\"_autoId ? _autoId + 'apply' : null\"\n type=\"fill\"\n color=\"primary\"\n size=\"md\"\n [title]=\"'core.component.table.apply' | sdTranslate\"\n (click)=\"onApply()\"></sd-button>\n }\n </div>\n</sd-modal>\n", styles: [".sd-mobile-sheet-head{display:flex;flex-direction:column;width:100%;min-width:0;touch-action:none}.sd-mobile-sheet-handle{display:block;width:32px;height:4px;margin:10px auto 4px;border-radius:2px;background:var(--sd-border)}.sd-mobile-sheet-title-row{display:flex;align-items:center;gap:4px;min-height:48px;padding:0 8px 0 20px}.sd-mobile-sheet-title{flex:1 1 auto;min-width:0;margin:0;overflow:hidden;font-size:var(--sd-font-size-20, 20px);line-height:var(--sd-line-height-28, 28px);font-weight:var(--sd-font-weight-medium, 500);color:var(--sd-text);text-overflow:ellipsis;white-space:nowrap;outline:none}.sd-mobile-sheet-subtitle{font-size:var(--sd-font-size-13, 13px);line-height:var(--sd-line-height-18, 18px);color:var(--sd-text-secondary)}.sd-mobile-sheet-icon{flex:0 0 44px;width:44px;height:44px;padding:0;color:var(--sd-text-secondary);--mat-icon-button-state-layer-size: 44px;--mdc-icon-button-state-layer-size: 44px}.sd-mobile-sheet-body{display:flex;flex-direction:column;gap:12px;padding:4px 20px 16px}.sd-mobile-sheet-footer{display:flex;gap:8px;width:100%}.sd-mobile-sheet-cancel{flex:1 1 0}.sd-mobile-sheet-apply{flex:2 1 0}.sd-mobile-sheet-cancel,.sd-mobile-sheet-apply{min-width:0}.sd-mobile-sheet-cancel ::ng-deep button,.sd-mobile-sheet-apply ::ng-deep button{width:100%;height:40px;border-radius:var(--sd-radius-999, 999px)}::ng-deep .sd-table-mobile-filter-sheet.mat-bottom-sheet-container,::ng-deep .sd-table-mobile-filter-sheet.mat-mdc-bottom-sheet-container,::ng-deep .sd-table-mobile-filter-sheet .mat-bottom-sheet-container,::ng-deep .sd-table-mobile-filter-sheet .mat-mdc-bottom-sheet-container{max-height:85dvh;border-radius:28px 28px 0 0!important}::ng-deep .sd-table-mobile-filter-sheet .sd-modal-header{padding:0;border-bottom:0}::ng-deep .sd-table-mobile-filter-sheet .sd-modal-header-left{flex:1 1 auto;min-width:0}::ng-deep .sd-table-mobile-filter-sheet .sd-modal-body{padding:0}::ng-deep .sd-table-mobile-filter-sheet .sd-modal-footer{min-height:0;padding:12px max(16px,env(safe-area-inset-right,0px)) max(16px,env(safe-area-inset-bottom,0px)) max(16px,env(safe-area-inset-left,0px))}::ng-deep .sd-table-mobile-filter-sheet .sd-modal-footer-left{display:none}::ng-deep .sd-table-mobile-filter-sheet .sd-modal-footer-right{flex:1 1 auto;margin-left:0}::ng-deep .sd-table-mobile-filter-sheet.sd-table-mobile-filter-sheet--full.mat-bottom-sheet-container,::ng-deep .sd-table-mobile-filter-sheet.sd-table-mobile-filter-sheet--full.mat-mdc-bottom-sheet-container,::ng-deep .sd-table-mobile-filter-sheet.sd-table-mobile-filter-sheet--full .mat-bottom-sheet-container,::ng-deep .sd-table-mobile-filter-sheet.sd-table-mobile-filter-sheet--full .mat-mdc-bottom-sheet-container{height:calc(100dvh - 40px);max-height:calc(100dvh - 40px)}::ng-deep .sd-table-mobile-filter-sheet.sd-table-mobile-filter-sheet--full .sd-modal-header{border-bottom:1px solid var(--sd-border)}::ng-deep .sd-table-mobile-filter-sheet.sd-table-mobile-filter-sheet--full .sd-modal-root{height:100%}::ng-deep .sd-table-mobile-filter-sheet.sd-table-mobile-filter-sheet--full .sd-modal-body{max-height:none}.sd-mobile-filter-head{padding-inline-start:4px}.sd-mobile-filter-heading{display:flex;flex:1 1 auto;flex-direction:column;min-width:0}.sd-mobile-filter-list{margin:0;padding:0;list-style:none}.sd-mobile-filter-row{display:flex;align-items:center;gap:8px;width:100%;min-height:60px;padding:0 12px 0 20px;border:0;border-bottom:1px solid var(--sd-surface-muted);background:transparent;color:var(--sd-text-secondary);text-align:start;cursor:pointer}.sd-mobile-filter-row:focus-visible{outline:var(--sd-focus-ring-width, 2px) solid var(--sd-focus-ring-color);outline-offset:-2px}.sd-mobile-filter-row-text{display:flex;flex:1 1 auto;flex-direction:column;min-width:0}.sd-mobile-filter-row-label{font-size:var(--sd-font-size-14, 14px);line-height:var(--sd-line-height-20, 20px);color:var(--sd-text)}.sd-mobile-filter-row-summary{overflow:hidden;font-size:var(--sd-font-size-13, 13px);line-height:var(--sd-line-height-18, 18px);color:var(--sd-text-secondary);white-space:nowrap;text-overflow:ellipsis}.sd-mobile-filter-row-summary--active{font-weight:var(--sd-font-weight-medium, 500);color:var(--sd-primary)}\n"], dependencies: [{ kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1$2.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: SdModal, selector: "sd-modal", inputs: ["autoId", "title", "color", "width", "height", "view", "modalClass", "lazyLoadContent", "hideClose", "enableBackdropClose", "disableBackdropClose", "beforeClose", "closeOnNavigation"], outputs: ["sdClosed", "sdCloseError"] }, { kind: "component", type: SdButton, selector: "sd-button", inputs: ["autoId", "type", "color", "size", "fontSet", "title", "width", "tooltip", "prefixIcon", "suffixIcon", "disabled", "openOnHover", "loading", "block", "htmlType", "indicator", "indicatorColor", "indicatorMax", "indicatorLabel"], outputs: ["click"] }, { kind: "component", type: SdIcon, selector: "sd-icon", inputs: ["name", "fontIcon", "color", "set", "fontSet", "size", "strokeWidth", "absoluteStrokeWidth", "ariaLabel"] }, { kind: "component", type: SdTableMobileFilterFieldComponent, selector: "sd-table-mobile-filter-field", inputs: ["item", "value", "ctx", "revision", "cacheValues", "labels", "autoId"], outputs: ["changed"] }, { kind: "pipe", type: SdTranslatePipe, name: "sdTranslate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
5081
5179
|
}
|
|
5082
5180
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: MobileFilterComponent, decorators: [{
|
|
5083
5181
|
type: Component,
|
|
5084
|
-
args: [{ selector: 'mobile-filter', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [MatButtonModule, SdModal, SdButton, SdIcon, SdTranslatePipe, SdTableMobileFilterFieldComponent], template: "@let _autoId = autoId();\n@let _page = page();\n@let _count = activeCount();\n@let _model = model();\n<!-- One bottom sheet, two levels: the list of filters and the page of one filter (handoff table-mobile 5). -->\n<sd-modal\n #sheet\n view=\"bottom-sheet\"\n [title]=\"'core.component.table.filter' | sdTranslate\"\n [autoId]=\"_autoId ? _autoId + 'sheet' : undefined\"\n hideClose\n [disableBackdropClose]=\"false\"\n [closeOnNavigation]=\"false\"\n modalClass=\"sd-table-mobile-filter-sheet sd-table-mobile-filter-sheet--full\"\n (sdClosed)=\"onClosed()\">\n <div sdHeaderLeft #head class=\"sd-mobile-sheet-head\">\n <span class=\"sd-mobile-sheet-handle\" aria-hidden=\"true\"></span>\n <div class=\"sd-mobile-sheet-title-row\" [class.sd-mobile-filter-head]=\"!!_page\">\n @if (_page) {\n <button\n mat-icon-button\n type=\"button\"\n class=\"sd-mobile-sheet-icon\"\n [attr.aria-label]=\"'core.common.back' | sdTranslate\"\n [attr.data-autoid]=\"_autoId ? _autoId + 'back' : null\"\n (click)=\"back()\">\n <sd-icon name=\"arrow_back\" size=\"22px\"></sd-icon>\n </button>\n <h2 class=\"sd-mobile-sheet-title\" tabindex=\"-1\">{{ _page.label }}</h2>\n @if (_page.source || _page.custom?.kind === 'column' || _page.custom?.kind === 'external') {\n <sd-button\n [autoId]=\"_autoId ? _autoId + 'clear' : null\"\n type=\"text\"\n color=\"primary\"\n size=\"md\"\n [title]=\"'core.component.table.mobile.clear-field' | sdTranslate\"\n (click)=\"clearPage()\"></sd-button>\n }\n } @else {\n <!-- No \u2715 here: H\u1EE7y in the footer closes the sheet. -->\n <div class=\"sd-mobile-filter-heading\">\n <!-- why: Material focuses the first tabbable element on open; the title keeps Clear all from showing its focus fill. -->\n <h2 class=\"sd-mobile-sheet-title\" tabindex=\"-1\" cdkFocusInitial>{{ 'core.component.table.filter' | sdTranslate }}</h2>\n @if (_count) {\n <span class=\"sd-mobile-sheet-subtitle\">{{ 'core.component.table.mobile.filter-count' | sdTranslate: { count: _count } }}</span>\n }\n </div>\n <sd-button\n [autoId]=\"_autoId ? _autoId + 'clear-all' : null\"\n type=\"text\"\n color=\"primary\"\n size=\"md\"\n [disabled]=\"!_count\"\n [title]=\"'core.component.query-bar.clear' | sdTranslate\"\n (click)=\"clearAll()\"></sd-button>\n }\n </div>\n </div>\n <div #body class=\"sd-mobile-filter-body\">\n @if (_page && _model) {\n <div class=\"sd-mobile-sheet-body\">\n <sd-table-mobile-filter-field\n [item]=\"_page\"\n [value]=\"working()\"\n [ctx]=\"_model.ctx\"\n [revision]=\"revision()\"\n [cacheValues]=\"cacheValues()\"\n [labels]=\"labels\"\n [autoId]=\"_autoId ? _autoId + (_page.source?.field ?? _page.key) : undefined\"\n (changed)=\"onChanged()\"></sd-table-mobile-filter-field>\n </div>\n } @else {\n <ul class=\"sd-mobile-filter-list\" role=\"list\">\n @for (row of rows(); track row.item.key) {\n <li>\n <button\n type=\"button\"\n class=\"sd-mobile-filter-row\"\n [attr.data-filter-key]=\"row.item.key\"\n [attr.data-autoid]=\"_autoId ? _autoId + 'row-' + row.field : null\"\n (click)=\"enter(row.item)\">\n <span class=\"sd-mobile-filter-row-text\">\n <span class=\"sd-mobile-filter-row-label\">{{ row.item.label }}</span>\n @if (row.summary) {\n <span class=\"sd-mobile-filter-row-summary\" [class.sd-mobile-filter-row-summary--active]=\"row.active\">{{\n row.summary\n }}</span>\n }\n </span>\n <sd-icon name=\"chevron_right\" size=\"22px\"></sd-icon>\n </button>\n </li>\n }\n </ul>\n }\n </div>\n <div sdFooterRight class=\"sd-mobile-sheet-footer\">\n @if (_page) {\n <sd-button\n class=\"sd-mobile-sheet-apply\"\n [autoId]=\"_autoId ? _autoId + 'done' : null\"\n type=\"fill\"\n color=\"primary\"\n size=\"md\"\n [title]=\"'core.component.table.mobile.done' | sdTranslate\"\n (click)=\"back()\"></sd-button>\n } @else {\n <sd-button\n class=\"sd-mobile-sheet-cancel\"\n [autoId]=\"_autoId ? _autoId + 'cancel' : null\"\n type=\"outline\"\n size=\"md\"\n [title]=\"'core.common.cancel' | sdTranslate\"\n (click)=\"onCancel()\"></sd-button>\n <sd-button\n class=\"sd-mobile-sheet-apply\"\n [autoId]=\"_autoId ? _autoId + 'apply' : null\"\n type=\"fill\"\n color=\"primary\"\n size=\"md\"\n [title]=\"'core.component.table.apply' | sdTranslate\"\n (click)=\"onApply()\"></sd-button>\n }\n </div>\n</sd-modal>\n", styles: [".sd-mobile-sheet-head{display:flex;flex-direction:column;width:100%;min-width:0;touch-action:none}.sd-mobile-sheet-handle{display:block;width:32px;height:4px;margin:10px auto 4px;border-radius:2px;background:var(--sd-border)}.sd-mobile-sheet-title-row{display:flex;align-items:center;gap:4px;min-height:48px;padding:0 8px 0 20px}.sd-mobile-sheet-title{flex:1 1 auto;min-width:0;margin:0;overflow:hidden;font-size:var(--sd-font-size-20, 20px);line-height:var(--sd-line-height-28, 28px);font-weight:var(--sd-font-weight-medium, 500);color:var(--sd-text);text-overflow:ellipsis;white-space:nowrap;outline:none}.sd-mobile-sheet-subtitle{font-size:var(--sd-font-size-13, 13px);line-height:var(--sd-line-height-18, 18px);color:var(--sd-text-secondary)}.sd-mobile-sheet-icon{flex:0 0 44px;width:44px;height:44px;padding:0;color:var(--sd-text-secondary);--mat-icon-button-state-layer-size: 44px;--mdc-icon-button-state-layer-size: 44px}.sd-mobile-sheet-body{display:flex;flex-direction:column;gap:12px;padding:4px 20px 16px}.sd-mobile-sheet-footer{display:flex;gap:8px;width:100%}.sd-mobile-sheet-cancel{flex:1 1 0}.sd-mobile-sheet-apply{flex:2 1 0}.sd-mobile-sheet-cancel,.sd-mobile-sheet-apply{min-width:0}.sd-mobile-sheet-cancel ::ng-deep button,.sd-mobile-sheet-apply ::ng-deep button{width:100%;height:40px;border-radius:var(--sd-radius-999, 999px)}::ng-deep .sd-table-mobile-filter-sheet.mat-bottom-sheet-container,::ng-deep .sd-table-mobile-filter-sheet.mat-mdc-bottom-sheet-container,::ng-deep .sd-table-mobile-filter-sheet .mat-bottom-sheet-container,::ng-deep .sd-table-mobile-filter-sheet .mat-mdc-bottom-sheet-container{max-height:85dvh;border-radius:28px 28px 0 0!important}::ng-deep .sd-table-mobile-filter-sheet .sd-modal-header{padding:0;border-bottom:0}::ng-deep .sd-table-mobile-filter-sheet .sd-modal-header-left{flex:1 1 auto;min-width:0}::ng-deep .sd-table-mobile-filter-sheet .sd-modal-body{padding:0}::ng-deep .sd-table-mobile-filter-sheet .sd-modal-footer{min-height:0;padding:12px 16px 16px}::ng-deep .sd-table-mobile-filter-sheet .sd-modal-footer-left{display:none}::ng-deep .sd-table-mobile-filter-sheet .sd-modal-footer-right{flex:1 1 auto;margin-left:0}::ng-deep .sd-table-mobile-filter-sheet.sd-table-mobile-filter-sheet--full.mat-bottom-sheet-container,::ng-deep .sd-table-mobile-filter-sheet.sd-table-mobile-filter-sheet--full.mat-mdc-bottom-sheet-container,::ng-deep .sd-table-mobile-filter-sheet.sd-table-mobile-filter-sheet--full .mat-bottom-sheet-container,::ng-deep .sd-table-mobile-filter-sheet.sd-table-mobile-filter-sheet--full .mat-mdc-bottom-sheet-container{height:calc(100dvh - 40px);max-height:calc(100dvh - 40px)}::ng-deep .sd-table-mobile-filter-sheet.sd-table-mobile-filter-sheet--full .sd-modal-header{border-bottom:1px solid var(--sd-border)}::ng-deep .sd-table-mobile-filter-sheet.sd-table-mobile-filter-sheet--full .sd-modal-root{height:100%}::ng-deep .sd-table-mobile-filter-sheet.sd-table-mobile-filter-sheet--full .sd-modal-body{max-height:none}.sd-mobile-filter-head{padding-inline-start:4px}.sd-mobile-filter-heading{display:flex;flex:1 1 auto;flex-direction:column;min-width:0}.sd-mobile-filter-list{margin:0;padding:0;list-style:none}.sd-mobile-filter-row{display:flex;align-items:center;gap:8px;width:100%;min-height:60px;padding:0 12px 0 20px;border:0;border-bottom:1px solid var(--sd-surface-muted);background:transparent;color:var(--sd-text-secondary);text-align:start;cursor:pointer}.sd-mobile-filter-row:focus-visible{outline:var(--sd-focus-ring-width, 2px) solid var(--sd-focus-ring-color);outline-offset:-2px}.sd-mobile-filter-row-text{display:flex;flex:1 1 auto;flex-direction:column;min-width:0}.sd-mobile-filter-row-label{font-size:var(--sd-font-size-14, 14px);line-height:var(--sd-line-height-20, 20px);color:var(--sd-text)}.sd-mobile-filter-row-summary{overflow:hidden;font-size:var(--sd-font-size-13, 13px);line-height:var(--sd-line-height-18, 18px);color:var(--sd-text-secondary);white-space:nowrap;text-overflow:ellipsis}.sd-mobile-filter-row-summary--active{font-weight:var(--sd-font-weight-medium, 500);color:var(--sd-primary)}\n"] }]
|
|
5182
|
+
args: [{ selector: 'mobile-filter', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [MatButtonModule, SdModal, SdButton, SdIcon, SdTranslatePipe, SdTableMobileFilterFieldComponent], template: "@let _autoId = autoId();\n@let _page = page();\n@let _count = activeCount();\n@let _model = model();\n<!-- One bottom sheet, two levels: the list of filters and the page of one filter (handoff table-mobile 5). -->\n<sd-modal\n #sheet\n view=\"bottom-sheet\"\n [title]=\"'core.component.table.filter' | sdTranslate\"\n [autoId]=\"_autoId ? _autoId + 'sheet' : undefined\"\n hideClose\n [disableBackdropClose]=\"false\"\n [closeOnNavigation]=\"false\"\n modalClass=\"sd-table-mobile-filter-sheet sd-table-mobile-filter-sheet--full\"\n (sdClosed)=\"onClosed()\">\n <div sdHeaderLeft #head class=\"sd-mobile-sheet-head\">\n <span class=\"sd-mobile-sheet-handle\" aria-hidden=\"true\"></span>\n <div class=\"sd-mobile-sheet-title-row\" [class.sd-mobile-filter-head]=\"!!_page\">\n @if (_page) {\n <button\n mat-icon-button\n type=\"button\"\n class=\"sd-mobile-sheet-icon\"\n [attr.aria-label]=\"'core.common.back' | sdTranslate\"\n [attr.data-autoid]=\"_autoId ? _autoId + 'back' : null\"\n (click)=\"back()\">\n <sd-icon name=\"arrow_back\" size=\"22px\"></sd-icon>\n </button>\n <h2 class=\"sd-mobile-sheet-title\" tabindex=\"-1\">{{ _page.label }}</h2>\n @if (_page.source || _page.custom?.kind === 'column' || _page.custom?.kind === 'external') {\n <sd-button\n [autoId]=\"_autoId ? _autoId + 'clear' : null\"\n type=\"text\"\n color=\"primary\"\n size=\"md\"\n [title]=\"'core.component.table.mobile.clear-field' | sdTranslate\"\n (click)=\"clearPage()\"></sd-button>\n }\n } @else {\n <!-- No \u2715 here: H\u1EE7y in the footer closes the sheet. -->\n <div class=\"sd-mobile-filter-heading\">\n <!-- why: Material focuses the first tabbable element on open; the title keeps Clear all from showing its focus fill. -->\n <h2 class=\"sd-mobile-sheet-title\" tabindex=\"-1\" cdkFocusInitial>{{ 'core.component.table.filter' | sdTranslate }}</h2>\n @if (_count) {\n <span class=\"sd-mobile-sheet-subtitle\">{{ 'core.component.table.mobile.filter-count' | sdTranslate: { count: _count } }}</span>\n }\n </div>\n <sd-button\n [autoId]=\"_autoId ? _autoId + 'clear-all' : null\"\n type=\"text\"\n color=\"primary\"\n size=\"md\"\n [disabled]=\"!_count\"\n [title]=\"'core.component.query-bar.clear' | sdTranslate\"\n (click)=\"clearAll()\"></sd-button>\n }\n </div>\n </div>\n <div #body class=\"sd-mobile-filter-body\">\n @if (_page && _model) {\n <div class=\"sd-mobile-sheet-body\">\n <sd-table-mobile-filter-field\n [item]=\"_page\"\n [value]=\"working()\"\n [ctx]=\"_model.ctx\"\n [revision]=\"revision()\"\n [cacheValues]=\"cacheValues()\"\n [labels]=\"labels\"\n [autoId]=\"_autoId ? _autoId + (_page.source?.field ?? _page.key) : undefined\"\n (changed)=\"onChanged()\"></sd-table-mobile-filter-field>\n </div>\n } @else {\n <ul class=\"sd-mobile-filter-list\" role=\"list\">\n @for (row of rows(); track row.item.key) {\n <li>\n <button\n type=\"button\"\n class=\"sd-mobile-filter-row\"\n [attr.data-filter-key]=\"row.item.key\"\n [attr.data-autoid]=\"_autoId ? _autoId + 'row-' + row.field : null\"\n (click)=\"enter(row.item)\">\n <span class=\"sd-mobile-filter-row-text\">\n <span class=\"sd-mobile-filter-row-label\">{{ row.item.label }}</span>\n @if (row.summary) {\n <span class=\"sd-mobile-filter-row-summary\" [class.sd-mobile-filter-row-summary--active]=\"row.active\">{{\n row.summary\n }}</span>\n }\n </span>\n <sd-icon name=\"chevron_right\" size=\"22px\"></sd-icon>\n </button>\n </li>\n }\n </ul>\n }\n </div>\n <div sdFooterRight class=\"sd-mobile-sheet-footer\">\n @if (_page) {\n <sd-button\n class=\"sd-mobile-sheet-apply\"\n [autoId]=\"_autoId ? _autoId + 'done' : null\"\n type=\"fill\"\n color=\"primary\"\n size=\"md\"\n [title]=\"'core.component.table.mobile.done' | sdTranslate\"\n (click)=\"back()\"></sd-button>\n } @else {\n <sd-button\n class=\"sd-mobile-sheet-cancel\"\n [autoId]=\"_autoId ? _autoId + 'cancel' : null\"\n type=\"outline\"\n size=\"md\"\n [title]=\"'core.common.cancel' | sdTranslate\"\n (click)=\"onCancel()\"></sd-button>\n <sd-button\n class=\"sd-mobile-sheet-apply\"\n [autoId]=\"_autoId ? _autoId + 'apply' : null\"\n type=\"fill\"\n color=\"primary\"\n size=\"md\"\n [title]=\"'core.component.table.apply' | sdTranslate\"\n (click)=\"onApply()\"></sd-button>\n }\n </div>\n</sd-modal>\n", styles: [".sd-mobile-sheet-head{display:flex;flex-direction:column;width:100%;min-width:0;touch-action:none}.sd-mobile-sheet-handle{display:block;width:32px;height:4px;margin:10px auto 4px;border-radius:2px;background:var(--sd-border)}.sd-mobile-sheet-title-row{display:flex;align-items:center;gap:4px;min-height:48px;padding:0 8px 0 20px}.sd-mobile-sheet-title{flex:1 1 auto;min-width:0;margin:0;overflow:hidden;font-size:var(--sd-font-size-20, 20px);line-height:var(--sd-line-height-28, 28px);font-weight:var(--sd-font-weight-medium, 500);color:var(--sd-text);text-overflow:ellipsis;white-space:nowrap;outline:none}.sd-mobile-sheet-subtitle{font-size:var(--sd-font-size-13, 13px);line-height:var(--sd-line-height-18, 18px);color:var(--sd-text-secondary)}.sd-mobile-sheet-icon{flex:0 0 44px;width:44px;height:44px;padding:0;color:var(--sd-text-secondary);--mat-icon-button-state-layer-size: 44px;--mdc-icon-button-state-layer-size: 44px}.sd-mobile-sheet-body{display:flex;flex-direction:column;gap:12px;padding:4px 20px 16px}.sd-mobile-sheet-footer{display:flex;gap:8px;width:100%}.sd-mobile-sheet-cancel{flex:1 1 0}.sd-mobile-sheet-apply{flex:2 1 0}.sd-mobile-sheet-cancel,.sd-mobile-sheet-apply{min-width:0}.sd-mobile-sheet-cancel ::ng-deep button,.sd-mobile-sheet-apply ::ng-deep button{width:100%;height:40px;border-radius:var(--sd-radius-999, 999px)}::ng-deep .sd-table-mobile-filter-sheet.mat-bottom-sheet-container,::ng-deep .sd-table-mobile-filter-sheet.mat-mdc-bottom-sheet-container,::ng-deep .sd-table-mobile-filter-sheet .mat-bottom-sheet-container,::ng-deep .sd-table-mobile-filter-sheet .mat-mdc-bottom-sheet-container{max-height:85dvh;border-radius:28px 28px 0 0!important}::ng-deep .sd-table-mobile-filter-sheet .sd-modal-header{padding:0;border-bottom:0}::ng-deep .sd-table-mobile-filter-sheet .sd-modal-header-left{flex:1 1 auto;min-width:0}::ng-deep .sd-table-mobile-filter-sheet .sd-modal-body{padding:0}::ng-deep .sd-table-mobile-filter-sheet .sd-modal-footer{min-height:0;padding:12px max(16px,env(safe-area-inset-right,0px)) max(16px,env(safe-area-inset-bottom,0px)) max(16px,env(safe-area-inset-left,0px))}::ng-deep .sd-table-mobile-filter-sheet .sd-modal-footer-left{display:none}::ng-deep .sd-table-mobile-filter-sheet .sd-modal-footer-right{flex:1 1 auto;margin-left:0}::ng-deep .sd-table-mobile-filter-sheet.sd-table-mobile-filter-sheet--full.mat-bottom-sheet-container,::ng-deep .sd-table-mobile-filter-sheet.sd-table-mobile-filter-sheet--full.mat-mdc-bottom-sheet-container,::ng-deep .sd-table-mobile-filter-sheet.sd-table-mobile-filter-sheet--full .mat-bottom-sheet-container,::ng-deep .sd-table-mobile-filter-sheet.sd-table-mobile-filter-sheet--full .mat-mdc-bottom-sheet-container{height:calc(100dvh - 40px);max-height:calc(100dvh - 40px)}::ng-deep .sd-table-mobile-filter-sheet.sd-table-mobile-filter-sheet--full .sd-modal-header{border-bottom:1px solid var(--sd-border)}::ng-deep .sd-table-mobile-filter-sheet.sd-table-mobile-filter-sheet--full .sd-modal-root{height:100%}::ng-deep .sd-table-mobile-filter-sheet.sd-table-mobile-filter-sheet--full .sd-modal-body{max-height:none}.sd-mobile-filter-head{padding-inline-start:4px}.sd-mobile-filter-heading{display:flex;flex:1 1 auto;flex-direction:column;min-width:0}.sd-mobile-filter-list{margin:0;padding:0;list-style:none}.sd-mobile-filter-row{display:flex;align-items:center;gap:8px;width:100%;min-height:60px;padding:0 12px 0 20px;border:0;border-bottom:1px solid var(--sd-surface-muted);background:transparent;color:var(--sd-text-secondary);text-align:start;cursor:pointer}.sd-mobile-filter-row:focus-visible{outline:var(--sd-focus-ring-width, 2px) solid var(--sd-focus-ring-color);outline-offset:-2px}.sd-mobile-filter-row-text{display:flex;flex:1 1 auto;flex-direction:column;min-width:0}.sd-mobile-filter-row-label{font-size:var(--sd-font-size-14, 14px);line-height:var(--sd-line-height-20, 20px);color:var(--sd-text)}.sd-mobile-filter-row-summary{overflow:hidden;font-size:var(--sd-font-size-13, 13px);line-height:var(--sd-line-height-18, 18px);color:var(--sd-text-secondary);white-space:nowrap;text-overflow:ellipsis}.sd-mobile-filter-row-summary--active{font-weight:var(--sd-font-weight-medium, 500);color:var(--sd-primary)}\n"] }]
|
|
5085
5183
|
}], ctorParameters: () => [], propDecorators: { autoIdInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoId", required: false }] }], filter: [{ type: i0.Input, args: [{ isSignal: true, alias: "filter", required: false }] }], externalFilters: [{ type: i0.Input, args: [{ isSignal: true, alias: "externalFilters", required: false }] }], columns: [{ type: i0.Input, args: [{ isSignal: true, alias: "columns", required: false }] }], filterDefs: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterDefs", required: false }] }], filterRegister: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterRegister", required: false }] }], cacheValues: [{ type: i0.Input, args: [{ isSignal: true, alias: "cacheValues", required: false }] }], model: [{ type: i0.Input, args: [{ isSignal: true, alias: "model", required: false }] }], sheet: [{ type: i0.ViewChild, args: ['sheet', { isSignal: true }] }], head: [{ type: i0.ViewChild, args: ['head', { isSignal: true }] }], body: [{ type: i0.ViewChild, args: ['body', { isSignal: true }] }] } });
|
|
5086
5184
|
|
|
5087
5185
|
class SelectorActionComponent {
|
|
@@ -5119,14 +5217,6 @@ class SelectorActionComponent {
|
|
|
5119
5217
|
// ==========================================
|
|
5120
5218
|
// 4. HANDLERS
|
|
5121
5219
|
// ==========================================
|
|
5122
|
-
directActions = computed(() => this.actions()
|
|
5123
|
-
.map((action, index) => ({ action, index }))
|
|
5124
|
-
.slice(0, 2), ...(ngDevMode ? [{ debugName: "directActions" }] : []));
|
|
5125
|
-
overflowActions = computed(() => this.actions()
|
|
5126
|
-
.map((action, index) => ({ action, index }))
|
|
5127
|
-
.slice(2), ...(ngDevMode ? [{ debugName: "overflowActions" }] : []));
|
|
5128
|
-
moreLabel = computed(() => this.#i18n.t('core.component.table.selector-action.more'), ...(ngDevMode ? [{ debugName: "moreLabel" }] : []));
|
|
5129
|
-
clearLabel = computed(() => this.#i18n.t('core.component.table.clear-selection'), ...(ngDevMode ? [{ debugName: "clearLabel" }] : []));
|
|
5130
5220
|
onClear = () => this.clear.emit();
|
|
5131
5221
|
onClickAction = (action) => {
|
|
5132
5222
|
if (action?.variant === 'normal' && action.click) {
|
|
@@ -5134,23 +5224,13 @@ class SelectorActionComponent {
|
|
|
5134
5224
|
}
|
|
5135
5225
|
};
|
|
5136
5226
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: SelectorActionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
5137
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.
|
|
5227
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.25", type: SelectorActionComponent, isStandalone: true, selector: "selector-action", inputs: { autoIdInput: { classPropertyName: "autoIdInput", publicName: "autoId", isSignal: true, isRequired: false, transformFunction: null }, tableOption: { classPropertyName: "tableOption", publicName: "tableOption", isSignal: true, isRequired: false, transformFunction: null }, selectedTableItems: { classPropertyName: "selectedTableItems", publicName: "selectedTableItems", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { clear: "clear" }, ngImport: i0, template: "<sd-selection-bar\n [opened]=\"opened()\"\n [message]=\"message()\"\n [actions]=\"actions()\"\n [autoId]=\"autoId() || null\"\n (action)=\"onClickAction($event)\"\n (clear)=\"onClear()\" />\n", styles: [":host{display:block;flex-shrink:0;min-width:0;padding-inline:8px;box-sizing:border-box}\n"], dependencies: [{ kind: "component", type: _SdSelectionBar, selector: "sd-selection-bar", inputs: ["opened", "message", "actions", "autoId", "actionAutoIdPrefix"], outputs: ["action", "clear"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
5138
5228
|
}
|
|
5139
5229
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: SelectorActionComponent, decorators: [{
|
|
5140
5230
|
type: Component,
|
|
5141
|
-
args: [{ selector: 'selector-action', changeDetection: ChangeDetectionStrategy.OnPush, imports: [
|
|
5231
|
+
args: [{ selector: 'selector-action', changeDetection: ChangeDetectionStrategy.OnPush, imports: [_SdSelectionBar], template: "<sd-selection-bar\n [opened]=\"opened()\"\n [message]=\"message()\"\n [actions]=\"actions()\"\n [autoId]=\"autoId() || null\"\n (action)=\"onClickAction($event)\"\n (clear)=\"onClear()\" />\n", styles: [":host{display:block;flex-shrink:0;min-width:0;padding-inline:8px;box-sizing:border-box}\n"] }]
|
|
5142
5232
|
}], propDecorators: { autoIdInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoId", required: false }] }], tableOption: [{ type: i0.Input, args: [{ isSignal: true, alias: "tableOption", required: false }] }], selectedTableItems: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectedTableItems", required: false }] }], clear: [{ type: i0.Output, args: ["clear"] }] } });
|
|
5143
5233
|
|
|
5144
|
-
const DEFAULT_TABLE_CONFIG = {
|
|
5145
|
-
paginate: {
|
|
5146
|
-
pageSize: 20,
|
|
5147
|
-
pages: [20, 50, 100, 200],
|
|
5148
|
-
},
|
|
5149
|
-
};
|
|
5150
|
-
const SD_TABLE_CONFIGURATION = new InjectionToken('sd-table.configuration');
|
|
5151
|
-
|
|
5152
|
-
const SD_TABLE_LAYOUT = new InjectionToken('SD_TABLE_LAYOUT');
|
|
5153
|
-
|
|
5154
5234
|
/** The column setup of an option before anyone changes it: every column that is not `hidden`, in option order. */
|
|
5155
5235
|
const defaultConfiguredTable = (option) => ({
|
|
5156
5236
|
columns: option?.columns
|
|
@@ -5250,7 +5330,6 @@ class ConfigService {
|
|
|
5250
5330
|
widthChange$ = this.#widthChange.asObservable();
|
|
5251
5331
|
storageService = inject(SdStorageService);
|
|
5252
5332
|
#destroyRef = inject(DestroyRef);
|
|
5253
|
-
tableConfiguration = inject(SD_TABLE_CONFIGURATION, { optional: true });
|
|
5254
5333
|
constructor() {
|
|
5255
5334
|
this.#destroyRef.onDestroy(() => {
|
|
5256
5335
|
this.#storage?.destroy();
|
|
@@ -5877,7 +5956,7 @@ class ConfigComponent {
|
|
|
5877
5956
|
#patch = (field, patch) => this.#update(column => (column.origin.field === field ? { ...column, ...patch } : column));
|
|
5878
5957
|
#update = (map) => this.configuration.update(cfg => cfg && { ...cfg, columns: cfg.columns?.map(map) });
|
|
5879
5958
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ConfigComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
5880
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.25", type: ConfigComponent, isStandalone: true, selector: "config", inputs: { autoIdInput: { classPropertyName: "autoIdInput", publicName: "autoId", isSignal: true, isRequired: false, transformFunction: null }, tableOption: { classPropertyName: "tableOption", publicName: "tableOption", isSignal: true, isRequired: false, transformFunction: null }, filterSetup: { classPropertyName: "filterSetup", publicName: "filterSetup", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { changes: "changes", defaultsRestored: "defaultsRestored", filterApplied: "filterApplied" }, providers: [ConfigService], viewQueries: [{ propertyName: "modal", first: true, predicate: SdModal, descendants: true, isSignal: true }, { propertyName: "handles", predicate: ["handle"], descendants: true, isSignal: true }], ngImport: i0, template: "@let _configuration = configuration();\n@let _autoId = autoId();\n@let _searching = searching();\n@let _expanded = expanded();\n@let _filterSetup = filterSetup();\n@let _tab = tab();\n\n<sd-modal width=\"sm\" [title]=\"'core.component.table.setup' | sdTranslate\" #modal>\n @if (_configuration) {\n <div class=\"c-container sd-table-config\">\n @if (_filterSetup) {\n <!-- why: ph\u00EDm m\u0169i t\u00EAn n\u1ED5i b\u1ECDt t\u1EEB tab \u0111ang focus (roving tabindex, m\u1EABu tablist c\u1EE7a APG). -->\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -->\n <div class=\"c-tabs\" role=\"tablist\" [attr.aria-label]=\"'core.component.table.setup' | sdTranslate\" (keydown)=\"onTabKeydown($event)\">\n @for (tabKey of tabs; track tabKey) {\n <button\n type=\"button\"\n role=\"tab\"\n class=\"c-tab\"\n [id]=\"tabId(tabKey)\"\n [attr.data-tab]=\"tabKey\"\n [attr.data-autoid]=\"_autoId ? _autoId + '-config-tab-' + tabKey : null\"\n [attr.aria-controls]=\"_tab === tabKey ? panelId(tabKey) : null\"\n [attr.aria-selected]=\"_tab === tabKey\"\n [attr.tabindex]=\"_tab === tabKey ? 0 : -1\"\n [class.c-tab--active]=\"_tab === tabKey\"\n (click)=\"selectTab(tabKey)\">\n {{ (tabKey === 'columns' ? 'core.component.table.config.tab-columns' : 'core.component.table.filter') | sdTranslate }}\n </button>\n }\n </div>\n }\n @if (_tab === 'columns') {\n <div\n class=\"c-panel\"\n [attr.role]=\"_filterSetup ? 'tabpanel' : null\"\n [attr.id]=\"_filterSetup ? panelId('columns') : null\"\n [attr.aria-labelledby]=\"_filterSetup ? tabId('columns') : null\"\n [attr.tabindex]=\"_filterSetup ? 0 : null\">\n <div class=\"c-toolbar\">\n @if (searchable()) {\n <sd-input\n class=\"c-find\"\n size=\"sm\"\n hideInlineError\n [autoId]=\"_autoId ? _autoId + '-config-find' : null\"\n [placeholder]=\"'core.component.table.config.find-column' | sdTranslate\"\n [model]=\"query()\"\n (modelChange)=\"onFind($event)\">\n <ng-template sdSuffixDef>\n <sd-icon class=\"c-find-icon\" name=\"search\" size=\"18px\" aria-hidden=\"true\"></sd-icon>\n </ng-template>\n </sd-input>\n }\n <div class=\"c-toolbar-end\">\n <span class=\"c-shown-count\">\n {{ 'core.component.table.config.shown-count' | sdTranslate: { shown: shownCount(), total: totalCount() } }}\n </span>\n <sd-button\n [autoId]=\"_autoId ? _autoId + '-config-show-all' : null\"\n type=\"text\"\n color=\"primary\"\n size=\"sm\"\n [title]=\"'core.component.table.config.show-all' | sdTranslate\"\n [disabled]=\"allShown()\"\n (click)=\"showAll()\">\n </sd-button>\n </div>\n </div>\n\n <!-- why: handle \u283F l\u00E0 c\u00E1ch duy nh\u1EA5t \u0111\u1EC3 \u0111\u1ED5i th\u1EE9 t\u1EF1 c\u1ED9t v\u00E0 t\u1EF1 n\u00F3 kh\u00F4ng n\u00F3i ra \u0111i\u1EC1u \u0111\u00F3 \u2014 d\u00F2ng g\u1EE3i \u00FD tr\u00E1nh vi\u1EC7c ng\u01B0\u1EDDi\n d\u00F9ng kh\u00F4ng bao gi\u1EDD ph\u00E1t hi\u1EC7n t\u00EDnh n\u0103ng. K\u00FD hi\u1EC7u \u283F n\u1EB1m s\u1EB5n trong chu\u1ED7i i18n n\u00EAn kh\u00F4ng k\u00E8m icon ri\u00EAng. -->\n <p class=\"c-hint\" [id]=\"hintId\">\n {{ (_searching ? 'core.component.table.config.drag-disabled-search' : 'core.component.table.config.drag-hint') | sdTranslate }}\n </p>\n\n <!-- why: v\u00F9ng live n\u1EB1m TRONG modal \u2014 v\u00F9ng n\u1EB1m ngo\u00E0i m\u1ED9t h\u1ED9p tho\u1EA1i aria-modal c\u00F3 th\u1EC3 b\u1ECB tr\u00ECnh \u0111\u1ECDc m\u00E0n h\u00ECnh b\u1ECF qua. -->\n <div class=\"c-live sd-visually-hidden\" aria-live=\"assertive\" aria-atomic=\"true\">{{ announcement() }}</div>\n\n <div\n class=\"c-list\"\n cdkDropList\n cdkDropListLockAxis=\"y\"\n [cdkDropListData]=\"columns()\"\n [cdkDropListDisabled]=\"_searching\"\n (cdkDropListDropped)=\"drop($event)\">\n @for (item of columns(); track item.origin.field) {\n @let _field = item.origin.field;\n @let _open = _expanded === _field;\n @let _hidden = isRowDisabled(item);\n @let _title = titleOf(item);\n <div\n class=\"c-item\"\n cdkDrag\n [cdkDragData]=\"item\"\n [attr.data-field]=\"_field\"\n [class.c-item--open]=\"_open\"\n [class.c-item--hidden]=\"_hidden\"\n [class.c-item--picked]=\"picked()?.field === _field\">\n <div class=\"c-row\">\n <button\n #handle\n type=\"button\"\n class=\"c-handle\"\n cdkDragHandle\n [disabled]=\"_searching\"\n [title]=\"'core.component.table.config.drag-handle' | sdTranslate\"\n [attr.aria-label]=\"('core.component.table.config.drag-handle' | sdTranslate) + ': ' + _title\"\n [attr.aria-describedby]=\"hintId\"\n (pointerdown)=\"onHandlePointerDown(_field)\"\n (keydown)=\"onHandleKeydown($event, _field)\"\n (blur)=\"onHandleBlur(_field)\">\n <sd-icon name=\"drag_indicator\" size=\"20px\" aria-hidden=\"true\"></sd-icon>\n </button>\n <!-- why: \u00F4 \"Hi\u1EC7n\" KH\u00D4NG bao gi\u1EDD b\u1ECB kho\u00E1 \u2014 n\u00F3 l\u00E0 \u0111\u01B0\u1EDDng duy nh\u1EA5t \u0111\u1EC3 b\u1EADt l\u1EA1i m\u1ED9t c\u1ED9t \u0111\u00E3 t\u1EAFt. Nh\u00E3n b\u1ECB \u1EA9n\n kh\u1ECFi m\u00E0n h\u00ECnh nh\u01B0ng v\u1EABn l\u00E0 t\u00EAn c\u1EE7a \u00F4 cho tr\u00ECnh \u0111\u1ECDc m\u00E0n h\u00ECnh. -->\n <sd-checkbox\n class=\"c-show\"\n [label]=\"('core.component.form-builder.display' | sdTranslate) + ': ' + _title\"\n [model]=\"!item.invisible\"\n (modelChange)=\"setShown(_field, !!$event)\">\n </sd-checkbox>\n <button\n type=\"button\"\n class=\"c-toggle\"\n [attr.aria-expanded]=\"_open\"\n [attr.aria-controls]=\"_open ? detailsId(_field) : null\"\n (click)=\"toggleRow(_field)\">\n <span class=\"c-title\">{{ _title }}</span>\n @if (!_hidden && item.fixed) {\n @let _fixedLabel = 'core.component.table.config.fixed-label' | sdTranslate;\n <sd-icon class=\"c-pin\" name=\"push_pin\" size=\"16px\" [title]=\"_fixedLabel\" [ariaLabel]=\"_fixedLabel\"></sd-icon>\n }\n @if (!_hidden && (item.truncate ?? item.origin.truncate)) {\n @let _truncateLabel = 'core.component.table.config.truncate-label' | sdTranslate;\n <sd-icon\n class=\"c-trunc\"\n name=\"short_text\"\n size=\"16px\"\n [title]=\"_truncateLabel\"\n [ariaLabel]=\"_truncateLabel\"></sd-icon>\n }\n <span class=\"c-width-meta\">{{ widthSummary(item) }}</span>\n <sd-icon class=\"c-chevron\" size=\"20px\" [name]=\"_open ? 'expand_less' : 'expand_more'\" aria-hidden=\"true\"></sd-icon>\n </button>\n </div>\n\n @if (_open) {\n <div class=\"c-details\" [id]=\"detailsId(_field)\">\n <div class=\"c-fields\">\n <div class=\"c-field-title\">\n <sd-input\n size=\"sm\"\n hideInlineError\n [label]=\"'core.component.table.column-header' | sdTranslate\"\n [placeholder]=\"item.origin.title\"\n [model]=\"item.title\"\n [disabled]=\"_hidden\"\n (modelChange)=\"setTitle(_field, $event)\">\n </sd-input>\n @if (renamed(item)) {\n <div class=\"c-origin\">\n {{ 'core.component.table.config.origin' | sdTranslate: { title: item.origin.title } }} \u00B7\n <button type=\"button\" class=\"c-restore\" [disabled]=\"_hidden\" (click)=\"restoreTitle(_field)\">\n {{ 'core.component.table.config.restore' | sdTranslate }}\n </button>\n </div>\n }\n </div>\n <div class=\"c-field-width\">\n @let _textWidth = widthIsText(item);\n <sd-input\n size=\"sm\"\n hideInlineError\n [type]=\"_textWidth ? 'text' : 'number'\"\n [label]=\"'core.component.table.width' | sdTranslate\"\n [placeholder]=\"widthPlaceholder(item)\"\n [model]=\"widthValue(item)\"\n [disabled]=\"_hidden\"\n (sdFocus)=\"onWidthFocus(item)\"\n (modelChange)=\"setWidth(_field, $event)\"\n (sdBlur)=\"commitWidth(_field)\">\n @if (!_textWidth) {\n <ng-template sdSuffixDef><span class=\"c-px\">px</span></ng-template>\n }\n </sd-input>\n </div>\n </div>\n <!-- why: m\u1ED7i tu\u1EF3 ch\u1ECDn m\u1ED9t h\u00E0ng \u2014 nh\u00E3n v\u00E0 m\u00F4 t\u1EA3 b\u00EAn tr\u00E1i, switch b\u00EAn ph\u1EA3i \u2014 \u0111\u1EC3 m\u00F4 t\u1EA3 c\u00F3 ch\u1ED7 ri\u00EAng v\u00E0 kh\u00F4ng \u0111\u1EA9y\n l\u1EC7ch tu\u1EF3 ch\u1ECDn b\u00EAn c\u1EA1nh. Nh\u00E3n n\u1EB1m trong switch n\u00EAn b\u1EA5m c\u1EA3 h\u00E0ng ch\u1EEF c\u0169ng b\u1EADt/t\u1EAFt \u0111\u01B0\u1EE3c. -->\n <div class=\"c-options\">\n <div class=\"c-option\">\n <sd-switch\n class=\"c-fixed\"\n size=\"sm\"\n [label]=\"'core.component.table.config.fixed-label' | sdTranslate\"\n [model]=\"!!item.fixed\"\n [disabled]=\"_hidden\"\n (modelChange)=\"setFixed(_field, !!$event)\">\n </sd-switch>\n <span class=\"c-option-hint\">{{ 'core.component.table.config.fixed-hint' | sdTranslate }}</span>\n </div>\n <div class=\"c-option\">\n <sd-switch\n class=\"c-truncate\"\n size=\"sm\"\n [label]=\"'core.component.table.config.truncate-label' | sdTranslate\"\n [model]=\"!!(item.truncate ?? item.origin.truncate)\"\n [disabled]=\"_hidden\"\n (modelChange)=\"setTruncate(_field, !!$event)\">\n </sd-switch>\n <span class=\"c-option-hint\">{{ 'core.component.table.config.truncate-hint' | sdTranslate }}</span>\n </div>\n </div>\n </div>\n }\n </div>\n }\n </div>\n </div>\n } @else {\n <!-- why: tabindex 0 \u2014 panel v\u1EABn nh\u1EADn focus khi m\u1ECDi switch \u0111\u1EC1u b\u1ECB kho\u00E1 (APG tabs). -->\n <div\n class=\"c-panel c-filter-panel\"\n role=\"tabpanel\"\n tabindex=\"0\"\n [id]=\"panelId('filters')\"\n [attr.aria-labelledby]=\"tabId('filters')\">\n @if (_filterSetup?.modeSelectable) {\n <!-- why: radio th\u1EADt trong t\u1EEBng th\u1EBB \u2014 \u2190 \u2192 / \u2191 \u2193 \u0111\u1ED5i l\u1EF1a ch\u1ECDn v\u00E0 tr\u00ECnh \u0111\u1ECDc m\u00E0n h\u00ECnh \u0111\u1ECDc \"1 tr\u00EAn 2\" kh\u00F4ng c\u1EA7n code\n ri\u00EAng. T\u00EAn l\u00E0 ti\u00EAu \u0111\u1EC1 th\u1EBB, m\u00F4 t\u1EA3 l\u00E0 d\u00F2ng ph\u1EE5. -->\n <fieldset class=\"c-modes\">\n <legend class=\"c-section-title\">{{ 'core.component.table.config.filter-kind' | sdTranslate }}</legend>\n <div class=\"c-mode-cards\">\n @for (mode of modes; track mode) {\n @let _on = filterMode() === mode;\n @let _blocked = mode === 'query-bar' && barBlockedBy();\n <label class=\"c-mode\" [class.c-mode--on]=\"_on\" [class.c-mode--disabled]=\"!!_blocked\" [attr.data-mode]=\"mode\">\n <input\n type=\"radio\"\n class=\"c-mode-radio\"\n [name]=\"modeName\"\n [value]=\"mode\"\n [checked]=\"_on\"\n [disabled]=\"!!_blocked\"\n [attr.data-autoid]=\"_autoId ? _autoId + '-config-mode-' + mode : null\"\n [attr.aria-labelledby]=\"modeName + '-' + mode\"\n [attr.aria-describedby]=\"modeName + '-' + mode + '-hint' + (_blocked ? ' ' + modeName + '-blocked' : '')\"\n (change)=\"pickMode(mode)\" />\n <span class=\"c-mode-text\">\n <span class=\"c-mode-title\" [id]=\"modeName + '-' + mode\">\n {{ 'core.component.table.config.mode-' + mode | sdTranslate }}\n </span>\n <span class=\"c-mode-desc\" [id]=\"modeName + '-' + mode + '-hint'\">\n {{ 'core.component.table.config.mode-' + mode + '-hint' | sdTranslate }}\n </span>\n @if (_blocked) {\n <span class=\"c-mode-blocked\" [id]=\"modeName + '-blocked'\">\n {{ 'core.component.table.config.mode-query-bar-blocked' | sdTranslate: { titles: _blocked } }}\n </span>\n }\n </span>\n </label>\n }\n </div>\n </fieldset>\n }\n @if (filterRows().length) {\n <section class=\"c-filter-list\" [attr.aria-labelledby]=\"panelId('filters') + '-list'\">\n <h3 class=\"c-section-title\" [id]=\"panelId('filters') + '-list'\">\n {{ 'core.component.table.config.filter-list' | sdTranslate }}\n </h3>\n <p class=\"c-hint c-filter-desc\">{{ filterListHint() | sdTranslate }}</p>\n @if (offBarWarning()) {\n <p class=\"c-filter-warning\">\n <sd-icon name=\"info\" size=\"16px\" aria-hidden=\"true\"></sd-icon>\n <span>{{ 'core.component.table.config.filters-off-bar-warning' | sdTranslate }}</span>\n </p>\n }\n <div class=\"c-options\">\n @for (row of filterRows(); track row.field) {\n <div class=\"c-option c-filter-row\" [attr.data-field]=\"row.field\">\n <sd-switch\n size=\"sm\"\n [autoId]=\"_autoId ? _autoId + '-config-filter-' + row.field : null\"\n [label]=\"row.title\"\n [model]=\"row.on\"\n [disabled]=\"row.locked\"\n (modelChange)=\"setInline(row.field, !!$event)\">\n </sd-switch>\n @if (row.note) {\n <span class=\"c-option-hint\">{{ row.note | sdTranslate }}</span>\n }\n </div>\n }\n </div>\n </section>\n }\n </div>\n }\n </div>\n }\n <ng-container sdFooterLeft>\n <sd-button\n [autoId]=\"_autoId ? _autoId + '-config-reset' : null\"\n type=\"text\"\n color=\"primary\"\n size=\"sm\"\n prefixIcon=\"restart_alt\"\n [title]=\"'core.component.table.config.reset' | sdTranslate\"\n (click)=\"onReset()\">\n </sd-button>\n </ng-container>\n <ng-container sdFooterRight>\n <sd-button\n [autoId]=\"_autoId ? _autoId + '-config-skip' : null\"\n type=\"outline\"\n size=\"sm\"\n [title]=\"'core.component.table.skip' | sdTranslate\"\n (click)=\"close()\">\n </sd-button>\n <sd-button\n [autoId]=\"_autoId ? _autoId + '-config-apply' : null\"\n type=\"fill\"\n color=\"primary\"\n size=\"sm\"\n [title]=\"'core.component.table.apply' | sdTranslate\"\n (click)=\"onSave()\">\n </sd-button>\n </ng-container>\n</sd-modal>\n", styles: [".c-container{position:relative;display:flex;flex-direction:column;gap:10px;min-height:200px}.c-tabs{display:flex;gap:4px;border-bottom:1px solid var(--sd-border)}.c-tab{position:relative;height:40px;padding:0 12px;border:0;border-radius:var(--sd-radius-4) var(--sd-radius-4) 0 0;background:transparent;color:var(--sd-text-secondary);font:inherit;font-size:var(--sd-font-size-14);font-weight:var(--sd-font-weight-medium);cursor:pointer}.c-tab:hover{color:var(--sd-text)}.c-tab:focus-visible{outline:2px solid var(--sd-focus-ring-color);outline-offset:-2px}.c-tab--active,.c-tab--active:hover{color:var(--sd-primary)}.c-tab--active:after{content:\"\";position:absolute;right:8px;bottom:-1px;left:8px;height:2px;border-radius:2px 2px 0 0;background:var(--sd-primary)}@media(forced-colors:active){.c-tab--active:after{border-bottom:2px solid Highlight}}.c-panel{display:flex;flex-direction:column;gap:10px}.c-filter-panel{gap:16px}.c-section-title{margin:0;padding:0;color:var(--sd-text);font-size:var(--sd-font-size-14);font-weight:var(--sd-font-weight-medium);line-height:var(--sd-line-height-20)}.c-modes{display:flex;flex-direction:column;gap:8px;min-width:0;margin:0;padding:0;border:0}.c-mode-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:8px}.c-mode{display:flex;align-items:flex-start;gap:10px;padding:10px 12px;border:1px solid var(--sd-border);border-radius:var(--sd-radius-8);background:var(--sd-surface);cursor:pointer;transition:border-color var(--sd-duration-fast) var(--sd-ease-standard),background-color var(--sd-duration-fast) var(--sd-ease-standard)}.c-mode:hover{border-color:var(--sd-border-strong)}.c-mode:has(.c-mode-radio:focus-visible){outline:2px solid var(--sd-focus-ring-color);outline-offset:2px}.c-mode--on,.c-mode--on:hover{border-color:var(--sd-primary);background:var(--sd-primary-light);box-shadow:inset 0 0 0 1px var(--sd-primary)}.c-mode-radio{flex:none;width:18px;height:18px;margin:1px 0 0;border:2px solid var(--sd-border-strong);border-radius:50%;background:transparent;cursor:pointer;appearance:none}.c-mode-radio:checked{border-color:var(--sd-primary);background:radial-gradient(circle,var(--sd-primary) 0 4px,transparent 4.5px)}.c-mode-radio:focus-visible{outline:none}@media(forced-colors:active){.c-mode-radio{appearance:auto}}.c-mode-text{display:flex;flex-direction:column;gap:2px;min-width:0}.c-mode-title{color:var(--sd-text);font-size:var(--sd-font-size-14);font-weight:var(--sd-font-weight-medium);line-height:var(--sd-line-height-20)}.c-mode-desc{color:var(--sd-text-secondary);font-size:var(--sd-font-size-12);line-height:var(--sd-line-height-16)}.c-mode--disabled{cursor:default}.c-mode--disabled:hover{border-color:var(--sd-border)}.c-mode--disabled .c-mode-radio{border-color:var(--sd-disabled-text);cursor:default}.c-mode--disabled .c-mode-title,.c-mode--disabled .c-mode-desc{color:var(--sd-disabled-text)}.c-mode-blocked{margin-top:2px;color:var(--sd-text);font-size:var(--sd-font-size-12);line-height:var(--sd-line-height-16)}.c-filter-warning{display:flex;align-items:flex-start;gap:6px;margin:0 0 4px;color:var(--sd-text);font-size:var(--sd-font-size-12);line-height:var(--sd-line-height-16)}.c-filter-warning sd-icon{flex:none;color:var(--sd-warning)}.c-filter-list{display:flex;flex-direction:column;gap:4px}.c-filter-list .c-filter-desc{margin-bottom:4px}.c-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;min-height:32px}.c-find{flex:none;width:220px}.c-find-icon{color:var(--sd-text-secondary)}.c-toolbar-end{display:flex;align-items:center;gap:8px;margin-left:auto}.c-shown-count{color:var(--sd-text-secondary);font-size:var(--sd-font-size-13);font-variant-numeric:tabular-nums;white-space:nowrap}.c-hint{margin:0;color:var(--sd-text-secondary);font-size:var(--sd-font-size-12);line-height:var(--sd-line-height-18)}.c-list{overflow-x:hidden;overflow-y:auto;max-height:min(400px,50vh);border:1px solid var(--sd-border);border-radius:var(--sd-radius-8)}.c-item+.c-item{border-top:1px solid var(--sd-border)}.c-item--open{background:color-mix(in srgb,var(--sd-text) 4%,transparent)}.c-row{display:flex;align-items:center;gap:10px;box-sizing:border-box;height:44px;padding:0 8px 0 12px}.c-handle{position:relative;z-index:1;display:inline-flex;flex:none;align-items:center;justify-content:center;padding:0;border:0;border-radius:var(--sd-radius-4);background:none;color:var(--sd-disabled-text);cursor:grab;transition:color var(--sd-duration-fast) var(--sd-ease-standard)}.c-handle:hover:not(:disabled),.c-handle:focus-visible{color:var(--sd-text-secondary)}.c-handle:focus-visible{outline:2px solid var(--sd-focus-ring-color);outline-offset:2px}.c-handle:active:not(:disabled){cursor:grabbing}.c-handle:disabled{cursor:default;opacity:.5}sd-checkbox{display:inline-flex;align-items:center}sd-checkbox ::ng-deep .mat-mdc-checkbox{display:flex}sd-checkbox ::ng-deep .mat-internal-form-field{margin:0}.c-show{flex:none}.c-show ::ng-deep .mdc-checkbox{margin:0 -11px}.c-show ::ng-deep .mdc-label{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.c-toggle{position:relative;z-index:1;display:flex;flex:1;align-items:center;gap:8px;min-width:0;height:44px;padding:0 4px 0 2px;border:0;border-radius:var(--sd-radius-4);background:transparent;color:var(--sd-text);font:inherit;font-size:var(--sd-font-size-14);text-align:left;cursor:pointer}.c-toggle:focus-visible{outline:2px solid var(--sd-focus-ring-color);outline-offset:-2px}.c-toggle:hover .c-chevron{color:var(--sd-text)}.c-title{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.c-item--hidden .c-title{color:var(--sd-disabled-text)}@media(forced-colors:active){.c-item--hidden .c-title{color:GrayText}}.c-pin{flex:none;color:var(--sd-primary)}.c-trunc{flex:none;color:var(--sd-text-secondary)}.c-width-meta{flex:none;min-width:58px;color:var(--sd-text-secondary);font-size:var(--sd-font-size-12);font-variant-numeric:tabular-nums;text-align:right;white-space:nowrap}.c-chevron{flex:none;color:var(--sd-text-secondary)}.c-details{display:flex;flex-direction:column;gap:12px;padding:8px 16px 14px 62px}.c-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,112px);gap:12px;align-items:start}.c-origin{margin-top:4px;padding-left:2px;color:var(--sd-text-secondary);font-size:var(--sd-font-size-12);line-height:var(--sd-line-height-16)}.c-restore{padding:0;border:0;border-radius:var(--sd-radius-2);background:none;color:var(--sd-primary);font:inherit;font-weight:var(--sd-font-weight-medium);cursor:pointer}.c-restore:hover:not(:disabled){text-decoration:underline}.c-restore:focus-visible{outline:2px solid var(--sd-focus-ring-color);outline-offset:2px}.c-restore:disabled{color:var(--sd-disabled-text);cursor:default}.c-px{padding-right:8px;color:var(--sd-text-secondary);font-size:var(--sd-font-size-12)}.c-options{border:1px solid var(--sd-border);border-radius:var(--sd-radius-8);background:var(--sd-surface)}.c-option{display:flex;flex-direction:column;gap:2px;padding:8px 12px}.c-option+.c-option{border-top:1px solid var(--sd-border)}.c-option sd-switch{display:block}.c-option sd-switch ::ng-deep .mat-mdc-slide-toggle{display:block}.c-option sd-switch ::ng-deep .mat-internal-form-field{display:flex;flex-direction:row-reverse;justify-content:space-between;gap:12px;width:100%;margin:0}.c-option sd-switch ::ng-deep .mdc-label{flex:1;min-width:0;padding:0;color:var(--sd-text);font-size:var(--sd-font-size-14)}.c-option-hint{color:var(--sd-text-secondary);font-size:var(--sd-font-size-12);line-height:var(--sd-line-height-16)}.cdk-drag-preview.c-item{box-sizing:border-box;border-radius:var(--sd-radius-8);background:var(--sd-surface);outline:1px solid var(--sd-primary);box-shadow:var(--sd-shadow-lg);opacity:.98}.cdk-drag-preview.c-item .c-handle{color:var(--sd-primary);cursor:grabbing}.cdk-drag-placeholder.c-item{background:var(--sd-primary-light);box-shadow:inset 0 1px 0 var(--sd-primary),inset 0 -1px 0 var(--sd-primary)}.cdk-drag-placeholder.c-item>*{visibility:hidden}.c-item--picked{position:relative;z-index:2;border-radius:var(--sd-radius-4);background:var(--sd-surface);outline:1px solid var(--sd-primary);outline-offset:-1px;box-shadow:var(--sd-shadow-md)}.c-item--picked .c-handle{color:var(--sd-primary)}.cdk-drag-animating,.c-list.cdk-drop-list-dragging .c-item:not(.cdk-drag-placeholder){transition:transform .22s cubic-bezier(0,0,.2,1)}@media(prefers-reduced-motion:reduce){.c-handle,.cdk-drag-animating,.c-list.cdk-drop-list-dragging .c-item:not(.cdk-drag-placeholder){transition:none}}\n"], dependencies: [{ kind: "ngmodule", type: DragDropModule }, { kind: "directive", type: i1$4.CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "cdkDropListData", "cdkDropListOrientation", "id", "cdkDropListLockAxis", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListAutoScrollDisabled", "cdkDropListAutoScrollStep", "cdkDropListElementContainer", "cdkDropListHasAnchor"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { kind: "directive", type: i1$4.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer", "cdkDragScale"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "directive", type: i1$4.CdkDragHandle, selector: "[cdkDragHandle]", inputs: ["cdkDragHandleDisabled"] }, { kind: "component", type: SdButton, selector: "sd-button", inputs: ["autoId", "type", "color", "size", "fontSet", "title", "width", "tooltip", "prefixIcon", "suffixIcon", "disabled", "openOnHover", "loading", "block", "htmlType", "indicator", "indicatorColor", "indicatorMax", "indicatorLabel"], outputs: ["click"] }, { kind: "component", type: SdCheckbox, selector: "sd-checkbox", inputs: ["autoId", "name", "form", "label", "color", "disabled", "size", "viewed", "inlineError", "model"], outputs: ["modelChange", "sdChange"] }, { kind: "component", type: SdIcon, selector: "sd-icon", inputs: ["name", "fontIcon", "color", "set", "fontSet", "size", "strokeWidth", "absoluteStrokeWidth", "ariaLabel"] }, { kind: "component", type: SdInput, selector: "sd-input", inputs: ["autoId", "name", "appearance", "floatLabel", "labelPlacement", "size", "operators", "operator", "form", "label", "helperText", "placeholder", "type", "mask", "inputmode", "autocomplete", "hideInlineError", "blurOnEnter", "clearable", "required", "readonly", "disabled", "viewed", "minlength", "maxlength", "pattern", "patternErrorMessage", "validator", "inlineError", "hyperlink", "model"], outputs: ["operatorChange", "modelChange", "sdChange", "sdFocus", "sdBlur", "keyupEnter", "cleared", "sdFocusForceBlur"] }, { kind: "component", type: SdModal, selector: "sd-modal", inputs: ["autoId", "title", "color", "width", "height", "view", "modalClass", "lazyLoadContent", "hideClose", "disableBackdropClose", "beforeClose", "closeOnNavigation"], outputs: ["sdClosed", "sdCloseError"] }, { kind: "directive", type: SdSuffixDefDirective, selector: "[sdSuffixDef]" }, { kind: "component", type: SdSwitch, selector: "sd-switch", inputs: ["autoId", "name", "form", "label", "size", "color", "disabled", "viewed", "hideInlineError", "required", "model"], outputs: ["modelChange", "sdChange"] }, { kind: "pipe", type: SdTranslatePipe, name: "sdTranslate" }] });
|
|
5959
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.25", type: ConfigComponent, isStandalone: true, selector: "config", inputs: { autoIdInput: { classPropertyName: "autoIdInput", publicName: "autoId", isSignal: true, isRequired: false, transformFunction: null }, tableOption: { classPropertyName: "tableOption", publicName: "tableOption", isSignal: true, isRequired: false, transformFunction: null }, filterSetup: { classPropertyName: "filterSetup", publicName: "filterSetup", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { changes: "changes", defaultsRestored: "defaultsRestored", filterApplied: "filterApplied" }, providers: [ConfigService], viewQueries: [{ propertyName: "modal", first: true, predicate: SdModal, descendants: true, isSignal: true }, { propertyName: "handles", predicate: ["handle"], descendants: true, isSignal: true }], ngImport: i0, template: "@let _configuration = configuration();\n@let _autoId = autoId();\n@let _searching = searching();\n@let _expanded = expanded();\n@let _filterSetup = filterSetup();\n@let _tab = tab();\n\n<sd-modal width=\"sm\" [title]=\"'core.component.table.setup' | sdTranslate\" #modal>\n @if (_configuration) {\n <div class=\"c-container sd-table-config\">\n @if (_filterSetup) {\n <!-- why: ph\u00EDm m\u0169i t\u00EAn n\u1ED5i b\u1ECDt t\u1EEB tab \u0111ang focus (roving tabindex, m\u1EABu tablist c\u1EE7a APG). -->\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -->\n <div class=\"c-tabs\" role=\"tablist\" [attr.aria-label]=\"'core.component.table.setup' | sdTranslate\" (keydown)=\"onTabKeydown($event)\">\n @for (tabKey of tabs; track tabKey) {\n <button\n type=\"button\"\n role=\"tab\"\n class=\"c-tab\"\n [id]=\"tabId(tabKey)\"\n [attr.data-tab]=\"tabKey\"\n [attr.data-autoid]=\"_autoId ? _autoId + '-config-tab-' + tabKey : null\"\n [attr.aria-controls]=\"_tab === tabKey ? panelId(tabKey) : null\"\n [attr.aria-selected]=\"_tab === tabKey\"\n [attr.tabindex]=\"_tab === tabKey ? 0 : -1\"\n [class.c-tab--active]=\"_tab === tabKey\"\n (click)=\"selectTab(tabKey)\">\n {{ (tabKey === 'columns' ? 'core.component.table.config.tab-columns' : 'core.component.table.filter') | sdTranslate }}\n </button>\n }\n </div>\n }\n @if (_tab === 'columns') {\n <div\n class=\"c-panel\"\n [attr.role]=\"_filterSetup ? 'tabpanel' : null\"\n [attr.id]=\"_filterSetup ? panelId('columns') : null\"\n [attr.aria-labelledby]=\"_filterSetup ? tabId('columns') : null\"\n [attr.tabindex]=\"_filterSetup ? 0 : null\">\n <div class=\"c-toolbar\">\n @if (searchable()) {\n <sd-input\n class=\"c-find\"\n size=\"sm\"\n hideInlineError\n [autoId]=\"_autoId ? _autoId + '-config-find' : null\"\n [placeholder]=\"'core.component.table.config.find-column' | sdTranslate\"\n [model]=\"query()\"\n (modelChange)=\"onFind($event)\">\n <ng-template sdSuffixDef>\n <sd-icon class=\"c-find-icon\" name=\"search\" size=\"18px\" aria-hidden=\"true\"></sd-icon>\n </ng-template>\n </sd-input>\n }\n <div class=\"c-toolbar-end\">\n <span class=\"c-shown-count\">\n {{ 'core.component.table.config.shown-count' | sdTranslate: { shown: shownCount(), total: totalCount() } }}\n </span>\n <sd-button\n [autoId]=\"_autoId ? _autoId + '-config-show-all' : null\"\n type=\"text\"\n color=\"primary\"\n size=\"sm\"\n [title]=\"'core.component.table.config.show-all' | sdTranslate\"\n [disabled]=\"allShown()\"\n (click)=\"showAll()\">\n </sd-button>\n </div>\n </div>\n\n <!-- why: handle \u283F l\u00E0 c\u00E1ch duy nh\u1EA5t \u0111\u1EC3 \u0111\u1ED5i th\u1EE9 t\u1EF1 c\u1ED9t v\u00E0 t\u1EF1 n\u00F3 kh\u00F4ng n\u00F3i ra \u0111i\u1EC1u \u0111\u00F3 \u2014 d\u00F2ng g\u1EE3i \u00FD tr\u00E1nh vi\u1EC7c ng\u01B0\u1EDDi\n d\u00F9ng kh\u00F4ng bao gi\u1EDD ph\u00E1t hi\u1EC7n t\u00EDnh n\u0103ng. K\u00FD hi\u1EC7u \u283F n\u1EB1m s\u1EB5n trong chu\u1ED7i i18n n\u00EAn kh\u00F4ng k\u00E8m icon ri\u00EAng. -->\n <p class=\"c-hint\" [id]=\"hintId\">\n {{ (_searching ? 'core.component.table.config.drag-disabled-search' : 'core.component.table.config.drag-hint') | sdTranslate }}\n </p>\n\n <!-- why: v\u00F9ng live n\u1EB1m TRONG modal \u2014 v\u00F9ng n\u1EB1m ngo\u00E0i m\u1ED9t h\u1ED9p tho\u1EA1i aria-modal c\u00F3 th\u1EC3 b\u1ECB tr\u00ECnh \u0111\u1ECDc m\u00E0n h\u00ECnh b\u1ECF qua. -->\n <div class=\"c-live sd-visually-hidden\" aria-live=\"assertive\" aria-atomic=\"true\">{{ announcement() }}</div>\n\n <div\n class=\"c-list\"\n cdkDropList\n cdkDropListLockAxis=\"y\"\n [cdkDropListData]=\"columns()\"\n [cdkDropListDisabled]=\"_searching\"\n (cdkDropListDropped)=\"drop($event)\">\n @for (item of columns(); track item.origin.field) {\n @let _field = item.origin.field;\n @let _open = _expanded === _field;\n @let _hidden = isRowDisabled(item);\n @let _title = titleOf(item);\n <div\n class=\"c-item\"\n cdkDrag\n [cdkDragData]=\"item\"\n [attr.data-field]=\"_field\"\n [class.c-item--open]=\"_open\"\n [class.c-item--hidden]=\"_hidden\"\n [class.c-item--picked]=\"picked()?.field === _field\">\n <div class=\"c-row\">\n <button\n #handle\n type=\"button\"\n class=\"c-handle\"\n cdkDragHandle\n [disabled]=\"_searching\"\n [title]=\"'core.component.table.config.drag-handle' | sdTranslate\"\n [attr.aria-label]=\"('core.component.table.config.drag-handle' | sdTranslate) + ': ' + _title\"\n [attr.aria-describedby]=\"hintId\"\n (pointerdown)=\"onHandlePointerDown(_field)\"\n (keydown)=\"onHandleKeydown($event, _field)\"\n (blur)=\"onHandleBlur(_field)\">\n <sd-icon name=\"drag_indicator\" size=\"20px\" aria-hidden=\"true\"></sd-icon>\n </button>\n <!-- why: \u00F4 \"Hi\u1EC7n\" KH\u00D4NG bao gi\u1EDD b\u1ECB kho\u00E1 \u2014 n\u00F3 l\u00E0 \u0111\u01B0\u1EDDng duy nh\u1EA5t \u0111\u1EC3 b\u1EADt l\u1EA1i m\u1ED9t c\u1ED9t \u0111\u00E3 t\u1EAFt. Nh\u00E3n b\u1ECB \u1EA9n\n kh\u1ECFi m\u00E0n h\u00ECnh nh\u01B0ng v\u1EABn l\u00E0 t\u00EAn c\u1EE7a \u00F4 cho tr\u00ECnh \u0111\u1ECDc m\u00E0n h\u00ECnh. -->\n <sd-checkbox\n class=\"c-show\"\n [label]=\"('core.component.form-builder.display' | sdTranslate) + ': ' + _title\"\n [model]=\"!item.invisible\"\n (modelChange)=\"setShown(_field, !!$event)\">\n </sd-checkbox>\n <button\n type=\"button\"\n class=\"c-toggle\"\n [attr.aria-expanded]=\"_open\"\n [attr.aria-controls]=\"_open ? detailsId(_field) : null\"\n (click)=\"toggleRow(_field)\">\n <span class=\"c-title\">{{ _title }}</span>\n @if (!_hidden && item.fixed) {\n @let _fixedLabel = 'core.component.table.config.fixed-label' | sdTranslate;\n <sd-icon class=\"c-pin\" name=\"push_pin\" size=\"16px\" [title]=\"_fixedLabel\" [ariaLabel]=\"_fixedLabel\"></sd-icon>\n }\n @if (!_hidden && (item.truncate ?? item.origin.truncate)) {\n @let _truncateLabel = 'core.component.table.config.truncate-label' | sdTranslate;\n <sd-icon\n class=\"c-trunc\"\n name=\"short_text\"\n size=\"16px\"\n [title]=\"_truncateLabel\"\n [ariaLabel]=\"_truncateLabel\"></sd-icon>\n }\n <span class=\"c-width-meta\">{{ widthSummary(item) }}</span>\n <sd-icon class=\"c-chevron\" size=\"20px\" [name]=\"_open ? 'expand_less' : 'expand_more'\" aria-hidden=\"true\"></sd-icon>\n </button>\n </div>\n\n @if (_open) {\n <div class=\"c-details\" [id]=\"detailsId(_field)\">\n <div class=\"c-fields\">\n <div class=\"c-field-title\">\n <sd-input\n size=\"sm\"\n hideInlineError\n [label]=\"'core.component.table.column-header' | sdTranslate\"\n [placeholder]=\"item.origin.title\"\n [model]=\"item.title\"\n [disabled]=\"_hidden\"\n (modelChange)=\"setTitle(_field, $event)\">\n </sd-input>\n @if (renamed(item)) {\n <div class=\"c-origin\">\n {{ 'core.component.table.config.origin' | sdTranslate: { title: item.origin.title } }} \u00B7\n <button type=\"button\" class=\"c-restore\" [disabled]=\"_hidden\" (click)=\"restoreTitle(_field)\">\n {{ 'core.component.table.config.restore' | sdTranslate }}\n </button>\n </div>\n }\n </div>\n <div class=\"c-field-width\">\n @let _textWidth = widthIsText(item);\n <sd-input\n size=\"sm\"\n hideInlineError\n [type]=\"_textWidth ? 'text' : 'number'\"\n [label]=\"'core.component.table.width' | sdTranslate\"\n [placeholder]=\"widthPlaceholder(item)\"\n [model]=\"widthValue(item)\"\n [disabled]=\"_hidden\"\n (sdFocus)=\"onWidthFocus(item)\"\n (modelChange)=\"setWidth(_field, $event)\"\n (sdBlur)=\"commitWidth(_field)\">\n @if (!_textWidth) {\n <ng-template sdSuffixDef><span class=\"c-px\">px</span></ng-template>\n }\n </sd-input>\n </div>\n </div>\n <!-- why: m\u1ED7i tu\u1EF3 ch\u1ECDn m\u1ED9t h\u00E0ng \u2014 nh\u00E3n v\u00E0 m\u00F4 t\u1EA3 b\u00EAn tr\u00E1i, switch b\u00EAn ph\u1EA3i \u2014 \u0111\u1EC3 m\u00F4 t\u1EA3 c\u00F3 ch\u1ED7 ri\u00EAng v\u00E0 kh\u00F4ng \u0111\u1EA9y\n l\u1EC7ch tu\u1EF3 ch\u1ECDn b\u00EAn c\u1EA1nh. Nh\u00E3n n\u1EB1m trong switch n\u00EAn b\u1EA5m c\u1EA3 h\u00E0ng ch\u1EEF c\u0169ng b\u1EADt/t\u1EAFt \u0111\u01B0\u1EE3c. -->\n <div class=\"c-options\">\n <div class=\"c-option\">\n <sd-switch\n class=\"c-fixed\"\n size=\"sm\"\n [label]=\"'core.component.table.config.fixed-label' | sdTranslate\"\n [model]=\"!!item.fixed\"\n [disabled]=\"_hidden\"\n (modelChange)=\"setFixed(_field, !!$event)\">\n </sd-switch>\n <span class=\"c-option-hint\">{{ 'core.component.table.config.fixed-hint' | sdTranslate }}</span>\n </div>\n <div class=\"c-option\">\n <sd-switch\n class=\"c-truncate\"\n size=\"sm\"\n [label]=\"'core.component.table.config.truncate-label' | sdTranslate\"\n [model]=\"!!(item.truncate ?? item.origin.truncate)\"\n [disabled]=\"_hidden\"\n (modelChange)=\"setTruncate(_field, !!$event)\">\n </sd-switch>\n <span class=\"c-option-hint\">{{ 'core.component.table.config.truncate-hint' | sdTranslate }}</span>\n </div>\n </div>\n </div>\n }\n </div>\n }\n </div>\n </div>\n } @else {\n <!-- why: tabindex 0 \u2014 panel v\u1EABn nh\u1EADn focus khi m\u1ECDi switch \u0111\u1EC1u b\u1ECB kho\u00E1 (APG tabs). -->\n <div\n class=\"c-panel c-filter-panel\"\n role=\"tabpanel\"\n tabindex=\"0\"\n [id]=\"panelId('filters')\"\n [attr.aria-labelledby]=\"tabId('filters')\">\n @if (_filterSetup?.modeSelectable) {\n <!-- why: radio th\u1EADt trong t\u1EEBng th\u1EBB \u2014 \u2190 \u2192 / \u2191 \u2193 \u0111\u1ED5i l\u1EF1a ch\u1ECDn v\u00E0 tr\u00ECnh \u0111\u1ECDc m\u00E0n h\u00ECnh \u0111\u1ECDc \"1 tr\u00EAn 2\" kh\u00F4ng c\u1EA7n code\n ri\u00EAng. T\u00EAn l\u00E0 ti\u00EAu \u0111\u1EC1 th\u1EBB, m\u00F4 t\u1EA3 l\u00E0 d\u00F2ng ph\u1EE5. -->\n <fieldset class=\"c-modes\">\n <legend class=\"c-section-title\">{{ 'core.component.table.config.filter-kind' | sdTranslate }}</legend>\n <div class=\"c-mode-cards\">\n @for (mode of modes; track mode) {\n @let _on = filterMode() === mode;\n @let _blocked = mode === 'query-bar' && barBlockedBy();\n <label class=\"c-mode\" [class.c-mode--on]=\"_on\" [class.c-mode--disabled]=\"!!_blocked\" [attr.data-mode]=\"mode\">\n <input\n type=\"radio\"\n class=\"c-mode-radio\"\n [name]=\"modeName\"\n [value]=\"mode\"\n [checked]=\"_on\"\n [disabled]=\"!!_blocked\"\n [attr.data-autoid]=\"_autoId ? _autoId + '-config-mode-' + mode : null\"\n [attr.aria-labelledby]=\"modeName + '-' + mode\"\n [attr.aria-describedby]=\"modeName + '-' + mode + '-hint' + (_blocked ? ' ' + modeName + '-blocked' : '')\"\n (change)=\"pickMode(mode)\" />\n <span class=\"c-mode-text\">\n <span class=\"c-mode-title\" [id]=\"modeName + '-' + mode\">\n {{ 'core.component.table.config.mode-' + mode | sdTranslate }}\n </span>\n <span class=\"c-mode-desc\" [id]=\"modeName + '-' + mode + '-hint'\">\n {{ 'core.component.table.config.mode-' + mode + '-hint' | sdTranslate }}\n </span>\n @if (_blocked) {\n <span class=\"c-mode-blocked\" [id]=\"modeName + '-blocked'\">\n {{ 'core.component.table.config.mode-query-bar-blocked' | sdTranslate: { titles: _blocked } }}\n </span>\n }\n </span>\n </label>\n }\n </div>\n </fieldset>\n }\n @if (filterRows().length) {\n <section class=\"c-filter-list\" [attr.aria-labelledby]=\"panelId('filters') + '-list'\">\n <h3 class=\"c-section-title\" [id]=\"panelId('filters') + '-list'\">\n {{ 'core.component.table.config.filter-list' | sdTranslate }}\n </h3>\n <p class=\"c-hint c-filter-desc\">{{ filterListHint() | sdTranslate }}</p>\n @if (offBarWarning()) {\n <p class=\"c-filter-warning\">\n <sd-icon name=\"info\" size=\"16px\" aria-hidden=\"true\"></sd-icon>\n <span>{{ 'core.component.table.config.filters-off-bar-warning' | sdTranslate }}</span>\n </p>\n }\n <div class=\"c-options\">\n @for (row of filterRows(); track row.field) {\n <div class=\"c-option c-filter-row\" [attr.data-field]=\"row.field\">\n <sd-switch\n size=\"sm\"\n [autoId]=\"_autoId ? _autoId + '-config-filter-' + row.field : null\"\n [label]=\"row.title\"\n [model]=\"row.on\"\n [disabled]=\"row.locked\"\n (modelChange)=\"setInline(row.field, !!$event)\">\n </sd-switch>\n @if (row.note) {\n <span class=\"c-option-hint\">{{ row.note | sdTranslate }}</span>\n }\n </div>\n }\n </div>\n </section>\n }\n </div>\n }\n </div>\n }\n <ng-container sdFooterLeft>\n <sd-button\n [autoId]=\"_autoId ? _autoId + '-config-reset' : null\"\n type=\"text\"\n color=\"primary\"\n size=\"sm\"\n prefixIcon=\"restart_alt\"\n [title]=\"'core.component.table.config.reset' | sdTranslate\"\n (click)=\"onReset()\">\n </sd-button>\n </ng-container>\n <ng-container sdFooterRight>\n <sd-button\n [autoId]=\"_autoId ? _autoId + '-config-skip' : null\"\n type=\"outline\"\n size=\"sm\"\n [title]=\"'core.component.table.skip' | sdTranslate\"\n (click)=\"close()\">\n </sd-button>\n <sd-button\n [autoId]=\"_autoId ? _autoId + '-config-apply' : null\"\n type=\"fill\"\n color=\"primary\"\n size=\"sm\"\n [title]=\"'core.component.table.apply' | sdTranslate\"\n (click)=\"onSave()\">\n </sd-button>\n </ng-container>\n</sd-modal>\n", styles: [".c-container{position:relative;display:flex;flex-direction:column;gap:10px;min-height:200px}.c-tabs{display:flex;gap:4px;border-bottom:1px solid var(--sd-border)}.c-tab{position:relative;height:40px;padding:0 12px;border:0;border-radius:var(--sd-radius-4) var(--sd-radius-4) 0 0;background:transparent;color:var(--sd-text-secondary);font:inherit;font-size:var(--sd-font-size-14);font-weight:var(--sd-font-weight-medium);cursor:pointer}.c-tab:hover{color:var(--sd-text)}.c-tab:focus-visible{outline:2px solid var(--sd-focus-ring-color);outline-offset:-2px}.c-tab--active,.c-tab--active:hover{color:var(--sd-primary)}.c-tab--active:after{content:\"\";position:absolute;right:8px;bottom:-1px;left:8px;height:2px;border-radius:2px 2px 0 0;background:var(--sd-primary)}@media(forced-colors:active){.c-tab--active:after{border-bottom:2px solid Highlight}}.c-panel{display:flex;flex-direction:column;gap:10px}.c-filter-panel{gap:16px}.c-section-title{margin:0;padding:0;color:var(--sd-text);font-size:var(--sd-font-size-14);font-weight:var(--sd-font-weight-medium);line-height:var(--sd-line-height-20)}.c-modes{display:flex;flex-direction:column;gap:8px;min-width:0;margin:0;padding:0;border:0}.c-mode-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:8px}.c-mode{display:flex;align-items:flex-start;gap:10px;padding:10px 12px;border:1px solid var(--sd-border);border-radius:var(--sd-radius-8);background:var(--sd-surface);cursor:pointer;transition:border-color var(--sd-duration-fast) var(--sd-ease-standard),background-color var(--sd-duration-fast) var(--sd-ease-standard)}.c-mode:hover{border-color:var(--sd-border-strong)}.c-mode:has(.c-mode-radio:focus-visible){outline:2px solid var(--sd-focus-ring-color);outline-offset:2px}.c-mode--on,.c-mode--on:hover{border-color:var(--sd-primary);background:var(--sd-primary-light);box-shadow:inset 0 0 0 1px var(--sd-primary)}.c-mode-radio{flex:none;width:18px;height:18px;margin:1px 0 0;border:2px solid var(--sd-border-strong);border-radius:50%;background:transparent;cursor:pointer;appearance:none}.c-mode-radio:checked{border-color:var(--sd-primary);background:radial-gradient(circle,var(--sd-primary) 0 4px,transparent 4.5px)}.c-mode-radio:focus-visible{outline:none}@media(forced-colors:active){.c-mode-radio{appearance:auto}}.c-mode-text{display:flex;flex-direction:column;gap:2px;min-width:0}.c-mode-title{color:var(--sd-text);font-size:var(--sd-font-size-14);font-weight:var(--sd-font-weight-medium);line-height:var(--sd-line-height-20)}.c-mode-desc{color:var(--sd-text-secondary);font-size:var(--sd-font-size-12);line-height:var(--sd-line-height-16)}.c-mode--disabled{cursor:default}.c-mode--disabled:hover{border-color:var(--sd-border)}.c-mode--disabled .c-mode-radio{border-color:var(--sd-disabled-text);cursor:default}.c-mode--disabled .c-mode-title,.c-mode--disabled .c-mode-desc{color:var(--sd-disabled-text)}.c-mode-blocked{margin-top:2px;color:var(--sd-text);font-size:var(--sd-font-size-12);line-height:var(--sd-line-height-16)}.c-filter-warning{display:flex;align-items:flex-start;gap:6px;margin:0 0 4px;color:var(--sd-text);font-size:var(--sd-font-size-12);line-height:var(--sd-line-height-16)}.c-filter-warning sd-icon{flex:none;color:var(--sd-warning)}.c-filter-list{display:flex;flex-direction:column;gap:4px}.c-filter-list .c-filter-desc{margin-bottom:4px}.c-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;min-height:32px}.c-find{flex:none;width:220px}.c-find-icon{color:var(--sd-text-secondary)}.c-toolbar-end{display:flex;align-items:center;gap:8px;margin-left:auto}.c-shown-count{color:var(--sd-text-secondary);font-size:var(--sd-font-size-13);font-variant-numeric:tabular-nums;white-space:nowrap}.c-hint{margin:0;color:var(--sd-text-secondary);font-size:var(--sd-font-size-12);line-height:var(--sd-line-height-18)}.c-list{overflow-x:hidden;overflow-y:auto;max-height:min(400px,50vh);border:1px solid var(--sd-border);border-radius:var(--sd-radius-8)}.c-item+.c-item{border-top:1px solid var(--sd-border)}.c-item--open{background:color-mix(in srgb,var(--sd-text) 4%,transparent)}.c-row{display:flex;align-items:center;gap:10px;box-sizing:border-box;height:44px;padding:0 8px 0 12px}.c-handle{position:relative;z-index:1;display:inline-flex;flex:none;align-items:center;justify-content:center;padding:0;border:0;border-radius:var(--sd-radius-4);background:none;color:var(--sd-disabled-text);cursor:grab;transition:color var(--sd-duration-fast) var(--sd-ease-standard)}.c-handle:hover:not(:disabled),.c-handle:focus-visible{color:var(--sd-text-secondary)}.c-handle:focus-visible{outline:2px solid var(--sd-focus-ring-color);outline-offset:2px}.c-handle:active:not(:disabled){cursor:grabbing}.c-handle:disabled{cursor:default;opacity:.5}sd-checkbox{display:inline-flex;align-items:center}sd-checkbox ::ng-deep .mat-mdc-checkbox{display:flex}sd-checkbox ::ng-deep .mat-internal-form-field{margin:0}.c-show{flex:none}.c-show ::ng-deep .mdc-checkbox{margin:0 -11px}.c-show ::ng-deep .mdc-label{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.c-toggle{position:relative;z-index:1;display:flex;flex:1;align-items:center;gap:8px;min-width:0;height:44px;padding:0 4px 0 2px;border:0;border-radius:var(--sd-radius-4);background:transparent;color:var(--sd-text);font:inherit;font-size:var(--sd-font-size-14);text-align:left;cursor:pointer}.c-toggle:focus-visible{outline:2px solid var(--sd-focus-ring-color);outline-offset:-2px}.c-toggle:hover .c-chevron{color:var(--sd-text)}.c-title{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.c-item--hidden .c-title{color:var(--sd-disabled-text)}@media(forced-colors:active){.c-item--hidden .c-title{color:GrayText}}.c-pin{flex:none;color:var(--sd-primary)}.c-trunc{flex:none;color:var(--sd-text-secondary)}.c-width-meta{flex:none;min-width:58px;color:var(--sd-text-secondary);font-size:var(--sd-font-size-12);font-variant-numeric:tabular-nums;text-align:right;white-space:nowrap}.c-chevron{flex:none;color:var(--sd-text-secondary)}.c-details{display:flex;flex-direction:column;gap:12px;padding:8px 16px 14px 62px}.c-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,112px);gap:12px;align-items:start}.c-origin{margin-top:4px;padding-left:2px;color:var(--sd-text-secondary);font-size:var(--sd-font-size-12);line-height:var(--sd-line-height-16)}.c-restore{padding:0;border:0;border-radius:var(--sd-radius-2);background:none;color:var(--sd-primary);font:inherit;font-weight:var(--sd-font-weight-medium);cursor:pointer}.c-restore:hover:not(:disabled){text-decoration:underline}.c-restore:focus-visible{outline:2px solid var(--sd-focus-ring-color);outline-offset:2px}.c-restore:disabled{color:var(--sd-disabled-text);cursor:default}.c-px{padding-right:8px;color:var(--sd-text-secondary);font-size:var(--sd-font-size-12)}.c-options{border:1px solid var(--sd-border);border-radius:var(--sd-radius-8);background:var(--sd-surface)}.c-option{display:flex;flex-direction:column;gap:2px;padding:8px 12px}.c-option+.c-option{border-top:1px solid var(--sd-border)}.c-option sd-switch{display:block}.c-option sd-switch ::ng-deep .mat-mdc-slide-toggle{display:block}.c-option sd-switch ::ng-deep .mat-internal-form-field{display:flex;flex-direction:row-reverse;justify-content:space-between;gap:12px;width:100%;margin:0}.c-option sd-switch ::ng-deep .mdc-label{flex:1;min-width:0;padding:0;color:var(--sd-text);font-size:var(--sd-font-size-14)}.c-option-hint{color:var(--sd-text-secondary);font-size:var(--sd-font-size-12);line-height:var(--sd-line-height-16)}.cdk-drag-preview.c-item{box-sizing:border-box;border-radius:var(--sd-radius-8);background:var(--sd-surface);outline:1px solid var(--sd-primary);box-shadow:var(--sd-shadow-lg);opacity:.98}.cdk-drag-preview.c-item .c-handle{color:var(--sd-primary);cursor:grabbing}.cdk-drag-placeholder.c-item{background:var(--sd-primary-light);box-shadow:inset 0 1px 0 var(--sd-primary),inset 0 -1px 0 var(--sd-primary)}.cdk-drag-placeholder.c-item>*{visibility:hidden}.c-item--picked{position:relative;z-index:2;border-radius:var(--sd-radius-4);background:var(--sd-surface);outline:1px solid var(--sd-primary);outline-offset:-1px;box-shadow:var(--sd-shadow-md)}.c-item--picked .c-handle{color:var(--sd-primary)}.cdk-drag-animating,.c-list.cdk-drop-list-dragging .c-item:not(.cdk-drag-placeholder){transition:transform .22s cubic-bezier(0,0,.2,1)}@media(prefers-reduced-motion:reduce){.c-handle,.cdk-drag-animating,.c-list.cdk-drop-list-dragging .c-item:not(.cdk-drag-placeholder){transition:none}}\n"], dependencies: [{ kind: "ngmodule", type: DragDropModule }, { kind: "directive", type: i1$4.CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "cdkDropListData", "cdkDropListOrientation", "id", "cdkDropListLockAxis", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListAutoScrollDisabled", "cdkDropListAutoScrollStep", "cdkDropListElementContainer", "cdkDropListHasAnchor"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { kind: "directive", type: i1$4.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer", "cdkDragScale"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "directive", type: i1$4.CdkDragHandle, selector: "[cdkDragHandle]", inputs: ["cdkDragHandleDisabled"] }, { kind: "component", type: SdButton, selector: "sd-button", inputs: ["autoId", "type", "color", "size", "fontSet", "title", "width", "tooltip", "prefixIcon", "suffixIcon", "disabled", "openOnHover", "loading", "block", "htmlType", "indicator", "indicatorColor", "indicatorMax", "indicatorLabel"], outputs: ["click"] }, { kind: "component", type: SdCheckbox, selector: "sd-checkbox", inputs: ["autoId", "name", "form", "label", "color", "disabled", "size", "viewed", "inlineError", "model"], outputs: ["modelChange", "sdChange"] }, { kind: "component", type: SdIcon, selector: "sd-icon", inputs: ["name", "fontIcon", "color", "set", "fontSet", "size", "strokeWidth", "absoluteStrokeWidth", "ariaLabel"] }, { kind: "component", type: SdInput, selector: "sd-input", inputs: ["autoId", "name", "appearance", "floatLabel", "labelPlacement", "size", "operators", "operator", "form", "label", "helperText", "placeholder", "type", "mask", "inputmode", "autocomplete", "hideInlineError", "blurOnEnter", "clearable", "required", "readonly", "disabled", "viewed", "minlength", "maxlength", "pattern", "patternErrorMessage", "validator", "inlineError", "hyperlink", "model"], outputs: ["operatorChange", "modelChange", "sdChange", "sdFocus", "sdBlur", "keyupEnter", "cleared", "sdFocusForceBlur"] }, { kind: "component", type: SdModal, selector: "sd-modal", inputs: ["autoId", "title", "color", "width", "height", "view", "modalClass", "lazyLoadContent", "hideClose", "enableBackdropClose", "disableBackdropClose", "beforeClose", "closeOnNavigation"], outputs: ["sdClosed", "sdCloseError"] }, { kind: "directive", type: SdSuffixDefDirective, selector: "[sdSuffixDef]" }, { kind: "component", type: SdSwitch, selector: "sd-switch", inputs: ["autoId", "name", "form", "label", "size", "color", "disabled", "viewed", "hideInlineError", "required", "model"], outputs: ["modelChange", "sdChange"] }, { kind: "pipe", type: SdTranslatePipe, name: "sdTranslate" }] });
|
|
5881
5960
|
}
|
|
5882
5961
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ConfigComponent, decorators: [{
|
|
5883
5962
|
type: Component,
|
|
@@ -5901,7 +5980,7 @@ class DesktopCommand {
|
|
|
5901
5980
|
}, ...(ngDevMode ? [{ debugName: "autoId" }] : []));
|
|
5902
5981
|
_commands = computed(() => this.commands() || [], ...(ngDevMode ? [{ debugName: "_commands" }] : []));
|
|
5903
5982
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: DesktopCommand, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
5904
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.25", type: DesktopCommand, isStandalone: true, selector: "desktop-command", inputs: { autoIdInput: { classPropertyName: "autoIdInput", publicName: "autoId", isSignal: true, isRequired: false, transformFunction: null }, item: { classPropertyName: "item", publicName: "item", isSignal: true, isRequired: true, transformFunction: null }, itemIndex: { classPropertyName: "itemIndex", publicName: "itemIndex", isSignal: true, isRequired: true, transformFunction: null }, commands: { classPropertyName: "commands", publicName: "commands", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "attr.data-autoid": "autoId()" } }, ngImport: i0, template: "@let _autoId = autoId();\n@let _item = item();\n@let filteredCommands = _item | filter: _commands() | async;\n\n@if (filteredCommands?.length) {\n @for (command of filteredCommands; track command.key) {\n @let _meta = _item | command: command;\n @if (command.type === 'normal') {\n <!-- why: b\u1ECF aria-hidden=\"true\" \u2014 \u0111\u00E2y l\u00E0 <button> TH\u1EACT, v\u1EABn nh\u1EADn tab focus nh\u01B0ng screen reader\n kh\u00F4ng \u0111\u1ECDc \u0111\u01B0\u1EE3c g\u00EC (n\u00FAt ch\u1EC9 c\u00F3 icon, kh\u00F4ng c\u00F3 text). Thay b\u1EB1ng aria-label l\u1EA5y t\u1EEB ch\u00EDnh\n ti\u00EAu \u0111\u1EC1 command \u0111ang hi\u1EC3n th\u1ECB \u1EDF tooltip. -->\n <button\n type=\"button\"\n [attr.data-autoid]=\"_autoId + '-' + command.key\"\n (click)=\"command.click(_item.data)\"\n [matTooltip]=\"_meta.title\"\n [attr.aria-label]=\"_meta.title\"\n [disabled]=\"_meta.disabled\"\n mat-icon-button>\n <sd-icon class=\"c-icon\" [color]=\"command.color || 'secondary'\" [fontSet]=\"command.fontSet\" [name]=\"_meta.icon\"></sd-icon>\n </button>\n } @else {\n <sd-button\n class=\"sd-command-trigger\"\n type=\"text\"\n size=\"sm\"\n [attr.data-autoid]=\"_autoId + '-' + command.key\"\n [tooltip]=\"_meta.title\"\n [disabled]=\"_meta.disabled\"\n [prefixIcon]=\"_meta.icon || 'more_vert'\"\n [fontSet]=\"command.fontSet\">\n @for (childCommand of command.children; track childCommand.key) {\n @let _childMeta = _item | command: childCommand;\n <sd-button-item\n [autoId]=\"_autoId + '-' + command.key + '-' + childCommand.key\"\n [disabled]=\"_childMeta.disabled\"\n [color]=\"childCommand.color\"\n [prefixIcon]=\"_childMeta.htmlTemplate ? null : _childMeta.icon\"\n [fontSet]=\"childCommand.fontSet\"\n (click)=\"childCommand.click(item().data)\">\n @if (_childMeta.htmlTemplate) {\n <span [innerHTML]=\"_childMeta.htmlTemplate\"></span>\n } @else {\n {{ _childMeta.title }}\n }\n </sd-button-item>\n }\n </sd-button>\n }\n }\n}\n", styles: [".text-primary{color:var(--sd-primary)!important}.bg-primary{background:var(--sd-primary)!important}.border-primary{border-color:var(--sd-primary)!important}.text-primary-light{color:var(--sd-primary-light)!important}.bg-primary-light{background:var(--sd-primary-light)!important}.border-primary-light{border-color:var(--sd-primary-light)!important}.text-primary-dark{color:var(--sd-primary-dark)!important}.bg-primary-dark{background:var(--sd-primary-dark)!important}.border-primary-dark{border-color:var(--sd-primary-dark)!important}.text-primary-contrast{color:var(--sd-primary-contrast)!important}.bg-primary-contrast{background:var(--sd-primary-contrast)!important}.border-primary-contrast{border-color:var(--sd-primary-contrast)!important}.text-secondary{color:var(--sd-secondary)!important}.bg-secondary{background:var(--sd-secondary)!important}.border-secondary{border-color:var(--sd-secondary)!important}.text-secondary-light{color:var(--sd-secondary-light)!important}.bg-secondary-light{background:var(--sd-secondary-light)!important}.border-secondary-light{border-color:var(--sd-secondary-light)!important}.text-secondary-dark{color:var(--sd-secondary-dark)!important}.bg-secondary-dark{background:var(--sd-secondary-dark)!important}.border-secondary-dark{border-color:var(--sd-secondary-dark)!important}.text-secondary-contrast{color:var(--sd-secondary-contrast)!important}.bg-secondary-contrast{background:var(--sd-secondary-contrast)!important}.border-secondary-contrast{border-color:var(--sd-secondary-contrast)!important}.text-info{color:var(--sd-info)!important}.bg-info{background:var(--sd-info)!important}.border-info{border-color:var(--sd-info)!important}.text-info-light{color:var(--sd-info-light)!important}.bg-info-light{background:var(--sd-info-light)!important}.border-info-light{border-color:var(--sd-info-light)!important}.text-info-dark{color:var(--sd-info-dark)!important}.bg-info-dark{background:var(--sd-info-dark)!important}.border-info-dark{border-color:var(--sd-info-dark)!important}.text-info-contrast{color:var(--sd-info-contrast)!important}.bg-info-contrast{background:var(--sd-info-contrast)!important}.border-info-contrast{border-color:var(--sd-info-contrast)!important}.text-success{color:var(--sd-success)!important}.bg-success{background:var(--sd-success)!important}.border-success{border-color:var(--sd-success)!important}.text-success-light{color:var(--sd-success-light)!important}.bg-success-light{background:var(--sd-success-light)!important}.border-success-light{border-color:var(--sd-success-light)!important}.text-success-dark{color:var(--sd-success-dark)!important}.bg-success-dark{background:var(--sd-success-dark)!important}.border-success-dark{border-color:var(--sd-success-dark)!important}.text-success-contrast{color:var(--sd-success-contrast)!important}.bg-success-contrast{background:var(--sd-success-contrast)!important}.border-success-contrast{border-color:var(--sd-success-contrast)!important}.text-warning{color:var(--sd-warning)!important}.bg-warning{background:var(--sd-warning)!important}.border-warning{border-color:var(--sd-warning)!important}.text-warning-light{color:var(--sd-warning-light)!important}.bg-warning-light{background:var(--sd-warning-light)!important}.border-warning-light{border-color:var(--sd-warning-light)!important}.text-warning-dark{color:var(--sd-warning-dark)!important}.bg-warning-dark{background:var(--sd-warning-dark)!important}.border-warning-dark{border-color:var(--sd-warning-dark)!important}.text-warning-contrast{color:var(--sd-warning-contrast)!important}.bg-warning-contrast{background:var(--sd-warning-contrast)!important}.border-warning-contrast{border-color:var(--sd-warning-contrast)!important}.text-error{color:var(--sd-error)!important}.bg-error{background:var(--sd-error)!important}.border-error{border-color:var(--sd-error)!important}.text-error-light{color:var(--sd-error-light)!important}.bg-error-light{background:var(--sd-error-light)!important}.border-error-light{border-color:var(--sd-error-light)!important}.text-error-dark{color:var(--sd-error-dark)!important}.bg-error-dark{background:var(--sd-error-dark)!important}.border-error-dark{border-color:var(--sd-error-dark)!important}.text-error-contrast{color:var(--sd-error-contrast)!important}.bg-error-contrast{background:var(--sd-error-contrast)!important}.border-error-contrast{border-color:var(--sd-error-contrast)!important}.text-surface{color:var(--sd-surface)!important}.bg-surface{background:var(--sd-surface)!important}.border-surface{border-color:var(--sd-surface)!important}.text-surface-muted{color:var(--sd-surface-muted)!important}.bg-surface-muted{background:var(--sd-surface-muted)!important}.border-surface-muted{border-color:var(--sd-surface-muted)!important}.text-text{color:var(--sd-text)!important}.bg-text{background:var(--sd-text)!important}.border-text{border-color:var(--sd-text)!important}.text-text-secondary{color:var(--sd-text-secondary)!important}.bg-text-secondary{background:var(--sd-text-secondary)!important}.border-text-secondary{border-color:var(--sd-text-secondary)!important}.text-text-muted{color:var(--sd-text-muted)!important}.bg-text-muted{background:var(--sd-text-muted)!important}.border-text-muted{border-color:var(--sd-text-muted)!important}.text-border{color:var(--sd-border)!important}.bg-border{background:var(--sd-border)!important}.border-border{border-color:var(--sd-border)!important}.text-border-strong{color:var(--sd-border-strong)!important}.bg-border-strong{background:var(--sd-border-strong)!important}.border-border-strong{border-color:var(--sd-border-strong)!important}.text-disabled-bg{color:var(--sd-disabled-bg)!important}.bg-disabled-bg{background:var(--sd-disabled-bg)!important}.border-disabled-bg{border-color:var(--sd-disabled-bg)!important}.text-disabled-text{color:var(--sd-disabled-text)!important}.bg-disabled-text{background:var(--sd-disabled-text)!important}.border-disabled-text{border-color:var(--sd-disabled-text)!important}.text-white{color:#fff!important}.bg-white{background:#fff!important}.border-white{border-color:#fff!important}.text-black{color:#000!important}.bg-black{background:#000!important}.border-black{border-color:#000!important}.text-secondary{color:var(--sd-text-secondary)!important}.text-muted{color:var(--sd-text-muted)!important}.text-body{color:var(--sd-text)!important}.bg-muted{background:var(--sd-surface-muted)!important}:host{display:flex;align-items:center}button[mat-icon-button]{width:24px;height:24px;line-height:var(--sd-line-height-24, 24px);padding:0}:host ::ng-deep button[mat-icon-button] .mat-mdc-button-touch-target{width:100%;height:100%}sd-icon.c-icon{color:var(--sd-text-secondary)!important;width:16px;height:16px;font-size:var(--sd-font-size-16, 16px);line-height:var(--sd-line-height-16, 16px)}button[mat-icon-button]:disabled sd-icon.c-icon{color:inherit!important}:host ::ng-deep .sd-command-trigger button.c-button{height:24px;width:24px;padding:0!important;max-width:24px}:host ::ng-deep .sd-command-trigger button.c-button .c-button-content-wrapper{gap:0}:host ::ng-deep .sd-command-trigger button.c-button .mat-mdc-button-touch-target{width:100%;height:100%}\n"], dependencies: [{ kind: "component", type: SdIcon, selector: "sd-icon", inputs: ["name", "fontIcon", "color", "set", "fontSet", "size", "strokeWidth", "absoluteStrokeWidth", "ariaLabel"] }, { kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i1.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "component", type: SdButton, selector: "sd-button", inputs: ["autoId", "type", "color", "size", "fontSet", "title", "width", "tooltip", "prefixIcon", "suffixIcon", "disabled", "openOnHover", "loading", "block", "htmlType", "indicator", "indicatorColor", "indicatorMax", "indicatorLabel"], outputs: ["click"] }, { kind: "component", type: SdButtonItem, selector: "sd-button-item", inputs: ["color", "prefixIcon", "suffixIcon", "fontSet", "disabled", "tooltip", "autoId"], outputs: ["click"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1$2.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }, { kind: "pipe", type: CommandPipe, name: "command" }, { kind: "pipe", type: CommandFilterPipe, name: "filter" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
5983
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.25", type: DesktopCommand, isStandalone: true, selector: "desktop-command", inputs: { autoIdInput: { classPropertyName: "autoIdInput", publicName: "autoId", isSignal: true, isRequired: false, transformFunction: null }, item: { classPropertyName: "item", publicName: "item", isSignal: true, isRequired: true, transformFunction: null }, itemIndex: { classPropertyName: "itemIndex", publicName: "itemIndex", isSignal: true, isRequired: true, transformFunction: null }, commands: { classPropertyName: "commands", publicName: "commands", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "attr.data-autoid": "autoId()" } }, ngImport: i0, template: "@let _autoId = autoId();\n@let _item = item();\n@let filteredCommands = _item | filter: _commands() | async;\n\n@if (filteredCommands?.length) {\n @for (command of filteredCommands; track command.key) {\n @let _meta = _item | command: command;\n @if (command.type === 'normal') {\n <!-- why: b\u1ECF aria-hidden=\"true\" \u2014 \u0111\u00E2y l\u00E0 <button> TH\u1EACT, v\u1EABn nh\u1EADn tab focus nh\u01B0ng screen reader\n kh\u00F4ng \u0111\u1ECDc \u0111\u01B0\u1EE3c g\u00EC (n\u00FAt ch\u1EC9 c\u00F3 icon, kh\u00F4ng c\u00F3 text). Thay b\u1EB1ng aria-label l\u1EA5y t\u1EEB ch\u00EDnh\n ti\u00EAu \u0111\u1EC1 command \u0111ang hi\u1EC3n th\u1ECB \u1EDF tooltip. -->\n <button\n type=\"button\"\n [attr.data-autoid]=\"_autoId + '-' + command.key\"\n (click)=\"command.click(_item.data)\"\n [matTooltip]=\"_meta.title\"\n [attr.aria-label]=\"_meta.title\"\n [disabled]=\"_meta.disabled\"\n mat-icon-button>\n <sd-icon class=\"c-icon\" [color]=\"command.color || 'secondary'\" [fontSet]=\"command.fontSet\" [name]=\"_meta.icon\"></sd-icon>\n </button>\n } @else {\n <sd-button\n class=\"sd-command-trigger\"\n type=\"text\"\n size=\"sm\"\n [attr.data-autoid]=\"_autoId + '-' + command.key\"\n [tooltip]=\"_meta.title\"\n [disabled]=\"_meta.disabled\"\n [prefixIcon]=\"_meta.icon || 'more_vert'\"\n [fontSet]=\"command.fontSet\">\n @for (childCommand of command.children; track childCommand.key) {\n @let _childMeta = _item | command: childCommand;\n <sd-button-item\n [autoId]=\"_autoId + '-' + command.key + '-' + childCommand.key\"\n [disabled]=\"_childMeta.disabled\"\n [color]=\"childCommand.color\"\n [prefixIcon]=\"_childMeta.htmlTemplate ? null : _childMeta.icon\"\n [fontSet]=\"childCommand.fontSet\"\n (click)=\"childCommand.click(item().data)\">\n @if (_childMeta.htmlTemplate) {\n <span [innerHTML]=\"_childMeta.htmlTemplate\"></span>\n } @else {\n {{ _childMeta.title }}\n }\n </sd-button-item>\n }\n </sd-button>\n }\n }\n}\n", styles: [".text-primary{color:var(--sd-primary)!important}.bg-primary{background:var(--sd-primary)!important}.border-primary{border-color:var(--sd-primary)!important}.text-primary-light{color:var(--sd-primary-light)!important}.bg-primary-light{background:var(--sd-primary-light)!important}.border-primary-light{border-color:var(--sd-primary-light)!important}.text-primary-dark{color:var(--sd-primary-dark)!important}.bg-primary-dark{background:var(--sd-primary-dark)!important}.border-primary-dark{border-color:var(--sd-primary-dark)!important}.text-primary-contrast{color:var(--sd-primary-contrast)!important}.bg-primary-contrast{background:var(--sd-primary-contrast)!important}.border-primary-contrast{border-color:var(--sd-primary-contrast)!important}.text-secondary{color:var(--sd-secondary)!important}.bg-secondary{background:var(--sd-secondary)!important}.border-secondary{border-color:var(--sd-secondary)!important}.text-secondary-light{color:var(--sd-secondary-light)!important}.bg-secondary-light{background:var(--sd-secondary-light)!important}.border-secondary-light{border-color:var(--sd-secondary-light)!important}.text-secondary-dark{color:var(--sd-secondary-dark)!important}.bg-secondary-dark{background:var(--sd-secondary-dark)!important}.border-secondary-dark{border-color:var(--sd-secondary-dark)!important}.text-secondary-contrast{color:var(--sd-secondary-contrast)!important}.bg-secondary-contrast{background:var(--sd-secondary-contrast)!important}.border-secondary-contrast{border-color:var(--sd-secondary-contrast)!important}.text-info{color:var(--sd-info)!important}.bg-info{background:var(--sd-info)!important}.border-info{border-color:var(--sd-info)!important}.text-info-light{color:var(--sd-info-light)!important}.bg-info-light{background:var(--sd-info-light)!important}.border-info-light{border-color:var(--sd-info-light)!important}.text-info-dark{color:var(--sd-info-dark)!important}.bg-info-dark{background:var(--sd-info-dark)!important}.border-info-dark{border-color:var(--sd-info-dark)!important}.text-info-contrast{color:var(--sd-info-contrast)!important}.bg-info-contrast{background:var(--sd-info-contrast)!important}.border-info-contrast{border-color:var(--sd-info-contrast)!important}.text-success{color:var(--sd-success)!important}.bg-success{background:var(--sd-success)!important}.border-success{border-color:var(--sd-success)!important}.text-success-light{color:var(--sd-success-light)!important}.bg-success-light{background:var(--sd-success-light)!important}.border-success-light{border-color:var(--sd-success-light)!important}.text-success-dark{color:var(--sd-success-dark)!important}.bg-success-dark{background:var(--sd-success-dark)!important}.border-success-dark{border-color:var(--sd-success-dark)!important}.text-success-contrast{color:var(--sd-success-contrast)!important}.bg-success-contrast{background:var(--sd-success-contrast)!important}.border-success-contrast{border-color:var(--sd-success-contrast)!important}.text-warning{color:var(--sd-warning)!important}.bg-warning{background:var(--sd-warning)!important}.border-warning{border-color:var(--sd-warning)!important}.text-warning-light{color:var(--sd-warning-light)!important}.bg-warning-light{background:var(--sd-warning-light)!important}.border-warning-light{border-color:var(--sd-warning-light)!important}.text-warning-dark{color:var(--sd-warning-dark)!important}.bg-warning-dark{background:var(--sd-warning-dark)!important}.border-warning-dark{border-color:var(--sd-warning-dark)!important}.text-warning-contrast{color:var(--sd-warning-contrast)!important}.bg-warning-contrast{background:var(--sd-warning-contrast)!important}.border-warning-contrast{border-color:var(--sd-warning-contrast)!important}.text-error{color:var(--sd-error)!important}.bg-error{background:var(--sd-error)!important}.border-error{border-color:var(--sd-error)!important}.text-error-light{color:var(--sd-error-light)!important}.bg-error-light{background:var(--sd-error-light)!important}.border-error-light{border-color:var(--sd-error-light)!important}.text-error-dark{color:var(--sd-error-dark)!important}.bg-error-dark{background:var(--sd-error-dark)!important}.border-error-dark{border-color:var(--sd-error-dark)!important}.text-error-contrast{color:var(--sd-error-contrast)!important}.bg-error-contrast{background:var(--sd-error-contrast)!important}.border-error-contrast{border-color:var(--sd-error-contrast)!important}.text-surface{color:var(--sd-surface)!important}.bg-surface{background:var(--sd-surface)!important}.border-surface{border-color:var(--sd-surface)!important}.text-surface-muted{color:var(--sd-surface-muted)!important}.bg-surface-muted{background:var(--sd-surface-muted)!important}.border-surface-muted{border-color:var(--sd-surface-muted)!important}.text-text{color:var(--sd-text)!important}.bg-text{background:var(--sd-text)!important}.border-text{border-color:var(--sd-text)!important}.text-text-secondary{color:var(--sd-text-secondary)!important}.bg-text-secondary{background:var(--sd-text-secondary)!important}.border-text-secondary{border-color:var(--sd-text-secondary)!important}.text-text-muted{color:var(--sd-text-muted)!important}.bg-text-muted{background:var(--sd-text-muted)!important}.border-text-muted{border-color:var(--sd-text-muted)!important}.text-border{color:var(--sd-border)!important}.bg-border{background:var(--sd-border)!important}.border-border{border-color:var(--sd-border)!important}.text-border-strong{color:var(--sd-border-strong)!important}.bg-border-strong{background:var(--sd-border-strong)!important}.border-border-strong{border-color:var(--sd-border-strong)!important}.text-disabled-bg{color:var(--sd-disabled-bg)!important}.bg-disabled-bg{background:var(--sd-disabled-bg)!important}.border-disabled-bg{border-color:var(--sd-disabled-bg)!important}.text-disabled-text{color:var(--sd-disabled-text)!important}.bg-disabled-text{background:var(--sd-disabled-text)!important}.border-disabled-text{border-color:var(--sd-disabled-text)!important}.text-white{color:#fff!important}.bg-white{background:#fff!important}.border-white{border-color:#fff!important}.text-black{color:#000!important}.bg-black{background:#000!important}.border-black{border-color:#000!important}.text-secondary{color:var(--sd-text-secondary)!important}.text-muted{color:var(--sd-text-muted)!important}.text-body{color:var(--sd-text)!important}.bg-muted{background:var(--sd-surface-muted)!important}:host{display:flex;align-items:center}button[mat-icon-button]{width:24px;height:24px;line-height:var(--sd-line-height-24, 24px);padding:0}:host ::ng-deep button[mat-icon-button] .mat-mdc-button-touch-target{width:100%;height:100%}sd-icon.c-icon{color:var(--sd-text-secondary)!important;width:16px;height:16px;font-size:var(--sd-font-size-16, 16px);line-height:var(--sd-line-height-16, 16px)}button[mat-icon-button]:disabled sd-icon.c-icon{color:inherit!important}:host ::ng-deep .sd-command-trigger button.c-button{height:24px;width:24px;padding:0!important;max-width:24px}:host ::ng-deep .sd-command-trigger button.c-button .c-button-content-wrapper{gap:0}:host ::ng-deep .sd-command-trigger button.c-button .mat-mdc-button-touch-target{width:100%;height:100%}\n"], dependencies: [{ kind: "component", type: SdIcon, selector: "sd-icon", inputs: ["name", "fontIcon", "color", "set", "fontSet", "size", "strokeWidth", "absoluteStrokeWidth", "ariaLabel"] }, { kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i1.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "component", type: SdButton, selector: "sd-button", inputs: ["autoId", "type", "color", "size", "fontSet", "title", "width", "tooltip", "prefixIcon", "suffixIcon", "disabled", "openOnHover", "loading", "block", "htmlType", "indicator", "indicatorColor", "indicatorMax", "indicatorLabel"], outputs: ["click"] }, { kind: "component", type: SdButtonItem, selector: "sd-button-item", inputs: ["color", "prefixIcon", "suffixIcon", "fontSet", "disabled", "checked", "tooltip", "autoId"], outputs: ["click"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1$2.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }, { kind: "pipe", type: CommandPipe, name: "command" }, { kind: "pipe", type: CommandFilterPipe, name: "filter" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
5905
5984
|
}
|
|
5906
5985
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: DesktopCommand, decorators: [{
|
|
5907
5986
|
type: Component,
|
|
@@ -6186,7 +6265,7 @@ class SdPopupExport {
|
|
|
6186
6265
|
return '';
|
|
6187
6266
|
};
|
|
6188
6267
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: SdPopupExport, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
6189
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.25", type: SdPopupExport, isStandalone: true, selector: "sd-popup-export", inputs: { _tableOption: { classPropertyName: "_tableOption", publicName: "tableOption", isSignal: false, isRequired: false, transformFunction: null }, configuration: { classPropertyName: "configuration", publicName: "configuration", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { export: "export" }, viewQueries: [{ propertyName: "modal", first: true, predicate: ["modal"], descendants: true }, { propertyName: "listGroups", first: true, predicate: ["listGroups"], descendants: true }], ngImport: i0, template: "<sd-modal width=\"907px\" [title]=\"'Exported template'\" #modal>\n <div class=\"row\">\n <div *ngIf=\"!files?.length\" class=\"col-12\">\n <div class=\"c-empty\">\n <img class=\"sd-image-data-empty\" alt=\"empty-image\" />\n <div class=\"T14R\">{{ 'There are no exported templates' }}</div>\n </div>\n </div>\n <ng-container *ngIf=\"files?.length\">\n <div class=\"col-12\">\n <div class=\"c-table\" style=\"max-height: 50vh\">\n <table mat-table [dataSource]=\"files\">\n <ng-container matColumnDef=\"stt\">\n <th mat-header-cell class=\"c-th text-center px-5\" *matHeaderCellDef style=\"width: 50px\">#</th>\n <td class=\"text-center px-5\" mat-cell *matCellDef=\"let item; let idx = index\">\n {{ idx + 1 }}\n </td>\n </ng-container>\n <ng-container matColumnDef=\"fileName\">\n <th mat-header-cell class=\"c-th px-5\" *matHeaderCellDef>\n {{ 'File name' }}\n </th>\n <td class=\"px-5\" mat-cell *matCellDef=\"let item\">\n {{ item.fileName }}\n </td>\n </ng-container>\n <ng-container matColumnDef=\"action\">\n <th mat-header-cell class=\"c-th px-5\" *matHeaderCellDef style=\"width: 80px\"></th>\n <td class=\"px-5\" mat-cell *matCellDef=\"let item\">\n <div class=\"d-flex\">\n <button mat-icon-button aria-label=\"delete\" (click)=\"removeFile(item)\">\n <sd-icon name=\"delete\"></sd-icon>\n </button>\n <button mat-icon-button aria-label=\"download\" (click)=\"onExport(item)\">\n <sd-icon name=\"download\"></sd-icon>\n </button>\n </div>\n </td>\n </ng-container>\n <tr mat-header-row *matHeaderRowDef=\"['stt', 'fileName', 'action']; sticky: true\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: ['stt', 'fileName', 'action']\"></tr>\n </table>\n </div>\n </div>\n <div *ngIf=\"files.length < 5\" class=\"col-12 mt-10\">\n <sd-button class=\"mr-4\" [title]=\"'New template'\" (click)=\"enableCreating = true\" color=\"info\" [disabled]=\"enableCreating\">\n </sd-button>\n <sd-button *ngIf=\"exportOption?.enableUpload\" [title]=\"'Upload template'\" (click)=\"uploadTemplate()\" type=\"outline\">\n </sd-button>\n </div>\n </ng-container>\n <ng-container *ngIf=\"enableCreating || !files?.length\">\n <div class=\"col-12 mt-20\">\n <div class=\"T14R\">{{ 'Select columns for creating template' }}:</div>\n </div>\n <div class=\"col-12\">\n <mat-chip-listbox selectable=\"true\" multiple=\"true\">\n <ng-container *ngFor=\"let column of columns\">\n <mat-chip-option [selected]=\"selected[column.field]\" (click)=\"selected[column.field] = !selected[column.field]\">\n {{ column.title }}\n </mat-chip-option>\n </ng-container>\n </mat-chip-listbox>\n </div>\n <div class=\"col-12 row\">\n <div class=\"col-10\">\n <sd-input [form]=\"form\" [label]=\"'Template name'\" [(model)]=\"templateName\" [validator]=\"templateNameValidator\"></sd-input>\n </div>\n <div class=\"col-2 mt-8\">\n <sd-button width=\"100%\" [title]=\"'Save'\" color=\"info\" (click)=\"createTemplate()\"> </sd-button>\n </div>\n </div>\n </ng-container>\n </div>\n</sd-modal>\n", styles: [".c-radio-group{display:flex;flex-direction:column;margin:15px 0}.c-radio-button{margin:5px}.c-empty{display:flex;flex-direction:column;justify-content:center;align-items:center;position:static;height:116px;background:var(--sd-table-export-panel-bg, #f6f6f6);border-radius:var(--sd-radius-4, 4px)}.c-table{position:relative;overflow:auto}.c-table table{width:100%}.c-table .c-th{font-weight:var(--sd-font-weight-medium, 500);font-size:var(--sd-font-size-14, 14px);line-height:var(--sd-line-height-20, 20px);color:var(--sd-table-export-text, #000000)}\n"], dependencies: [{ kind: "component", type: SdIcon, selector: "sd-icon", inputs: ["name", "fontIcon", "color", "set", "fontSet", "size", "strokeWidth", "absoluteStrokeWidth", "ariaLabel"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: MatTableModule }, { kind: "component", type: i4$1.MatTable, selector: "mat-table, table[mat-table]", exportAs: ["matTable"] }, { kind: "directive", type: i4$1.MatHeaderCellDef, selector: "[matHeaderCellDef]" }, { kind: "directive", type: i4$1.MatHeaderRowDef, selector: "[matHeaderRowDef]", inputs: ["matHeaderRowDef", "matHeaderRowDefSticky"] }, { kind: "directive", type: i4$1.MatColumnDef, selector: "[matColumnDef]", inputs: ["matColumnDef"] }, { kind: "directive", type: i4$1.MatCellDef, selector: "[matCellDef]" }, { kind: "directive", type: i4$1.MatRowDef, selector: "[matRowDef]", inputs: ["matRowDefColumns", "matRowDefWhen"] }, { kind: "directive", type: i4$1.MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { kind: "directive", type: i4$1.MatCell, selector: "mat-cell, td[mat-cell]" }, { kind: "component", type: i4$1.MatHeaderRow, selector: "mat-header-row, tr[mat-header-row]", exportAs: ["matHeaderRow"] }, { kind: "component", type: i4$1.MatRow, selector: "mat-row, tr[mat-row]", exportAs: ["matRow"] }, { kind: "ngmodule", type: MatChipsModule }, { kind: "component", type: i3$2.MatChipListbox, selector: "mat-chip-listbox", inputs: ["multiple", "aria-orientation", "selectable", "compareWith", "required", "hideSingleSelectionIndicator", "value"], outputs: ["change"] }, { kind: "component", type: i3$2.MatChipOption, selector: "mat-basic-chip-option, [mat-basic-chip-option], mat-chip-option, [mat-chip-option]", inputs: ["selectable", "selected"], outputs: ["selectionChange"] }, { kind: "component", type: SdButton, selector: "sd-button", inputs: ["autoId", "type", "color", "size", "fontSet", "title", "width", "tooltip", "prefixIcon", "suffixIcon", "disabled", "openOnHover", "loading", "block", "htmlType", "indicator", "indicatorColor", "indicatorMax", "indicatorLabel"], outputs: ["click"] }, { kind: "component", type: SdInput, selector: "sd-input", inputs: ["autoId", "name", "appearance", "floatLabel", "labelPlacement", "size", "operators", "operator", "form", "label", "helperText", "placeholder", "type", "mask", "inputmode", "autocomplete", "hideInlineError", "blurOnEnter", "clearable", "required", "readonly", "disabled", "viewed", "minlength", "maxlength", "pattern", "patternErrorMessage", "validator", "inlineError", "hyperlink", "model"], outputs: ["operatorChange", "modelChange", "sdChange", "sdFocus", "sdBlur", "keyupEnter", "cleared", "sdFocusForceBlur"] }, { kind: "component", type: SdModal, selector: "sd-modal", inputs: ["autoId", "title", "color", "width", "height", "view", "modalClass", "lazyLoadContent", "hideClose", "disableBackdropClose", "beforeClose", "closeOnNavigation"], outputs: ["sdClosed", "sdCloseError"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
6268
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.25", type: SdPopupExport, isStandalone: true, selector: "sd-popup-export", inputs: { _tableOption: { classPropertyName: "_tableOption", publicName: "tableOption", isSignal: false, isRequired: false, transformFunction: null }, configuration: { classPropertyName: "configuration", publicName: "configuration", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { export: "export" }, viewQueries: [{ propertyName: "modal", first: true, predicate: ["modal"], descendants: true }, { propertyName: "listGroups", first: true, predicate: ["listGroups"], descendants: true }], ngImport: i0, template: "<sd-modal width=\"907px\" [title]=\"'Exported template'\" #modal>\n <div class=\"row\">\n <div *ngIf=\"!files?.length\" class=\"col-12\">\n <div class=\"c-empty\">\n <img class=\"sd-image-data-empty\" alt=\"empty-image\" />\n <div class=\"T14R\">{{ 'There are no exported templates' }}</div>\n </div>\n </div>\n <ng-container *ngIf=\"files?.length\">\n <div class=\"col-12\">\n <div class=\"c-table\" style=\"max-height: 50vh\">\n <table mat-table [dataSource]=\"files\">\n <ng-container matColumnDef=\"stt\">\n <th mat-header-cell class=\"c-th text-center px-5\" *matHeaderCellDef style=\"width: 50px\">#</th>\n <td class=\"text-center px-5\" mat-cell *matCellDef=\"let item; let idx = index\">\n {{ idx + 1 }}\n </td>\n </ng-container>\n <ng-container matColumnDef=\"fileName\">\n <th mat-header-cell class=\"c-th px-5\" *matHeaderCellDef>\n {{ 'File name' }}\n </th>\n <td class=\"px-5\" mat-cell *matCellDef=\"let item\">\n {{ item.fileName }}\n </td>\n </ng-container>\n <ng-container matColumnDef=\"action\">\n <th mat-header-cell class=\"c-th px-5\" *matHeaderCellDef style=\"width: 80px\"></th>\n <td class=\"px-5\" mat-cell *matCellDef=\"let item\">\n <div class=\"d-flex\">\n <button mat-icon-button aria-label=\"delete\" (click)=\"removeFile(item)\">\n <sd-icon name=\"delete\"></sd-icon>\n </button>\n <button mat-icon-button aria-label=\"download\" (click)=\"onExport(item)\">\n <sd-icon name=\"download\"></sd-icon>\n </button>\n </div>\n </td>\n </ng-container>\n <tr mat-header-row *matHeaderRowDef=\"['stt', 'fileName', 'action']; sticky: true\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: ['stt', 'fileName', 'action']\"></tr>\n </table>\n </div>\n </div>\n <div *ngIf=\"files.length < 5\" class=\"col-12 mt-10\">\n <sd-button class=\"mr-4\" [title]=\"'New template'\" (click)=\"enableCreating = true\" color=\"info\" [disabled]=\"enableCreating\">\n </sd-button>\n <sd-button *ngIf=\"exportOption?.enableUpload\" [title]=\"'Upload template'\" (click)=\"uploadTemplate()\" type=\"outline\">\n </sd-button>\n </div>\n </ng-container>\n <ng-container *ngIf=\"enableCreating || !files?.length\">\n <div class=\"col-12 mt-20\">\n <div class=\"T14R\">{{ 'Select columns for creating template' }}:</div>\n </div>\n <div class=\"col-12\">\n <mat-chip-listbox selectable=\"true\" multiple=\"true\">\n <ng-container *ngFor=\"let column of columns\">\n <mat-chip-option [selected]=\"selected[column.field]\" (click)=\"selected[column.field] = !selected[column.field]\">\n {{ column.title }}\n </mat-chip-option>\n </ng-container>\n </mat-chip-listbox>\n </div>\n <div class=\"col-12 row\">\n <div class=\"col-10\">\n <sd-input [form]=\"form\" [label]=\"'Template name'\" [(model)]=\"templateName\" [validator]=\"templateNameValidator\"></sd-input>\n </div>\n <div class=\"col-2 mt-8\">\n <sd-button width=\"100%\" [title]=\"'Save'\" color=\"info\" (click)=\"createTemplate()\"> </sd-button>\n </div>\n </div>\n </ng-container>\n </div>\n</sd-modal>\n", styles: [".c-radio-group{display:flex;flex-direction:column;margin:15px 0}.c-radio-button{margin:5px}.c-empty{display:flex;flex-direction:column;justify-content:center;align-items:center;position:static;height:116px;background:var(--sd-table-export-panel-bg, #f6f6f6);border-radius:var(--sd-radius-4, 4px)}.c-table{position:relative;overflow:auto}.c-table table{width:100%}.c-table .c-th{font-weight:var(--sd-font-weight-medium, 500);font-size:var(--sd-font-size-14, 14px);line-height:var(--sd-line-height-20, 20px);color:var(--sd-table-export-text, #000000)}\n"], dependencies: [{ kind: "component", type: SdIcon, selector: "sd-icon", inputs: ["name", "fontIcon", "color", "set", "fontSet", "size", "strokeWidth", "absoluteStrokeWidth", "ariaLabel"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: MatTableModule }, { kind: "component", type: i4$1.MatTable, selector: "mat-table, table[mat-table]", exportAs: ["matTable"] }, { kind: "directive", type: i4$1.MatHeaderCellDef, selector: "[matHeaderCellDef]" }, { kind: "directive", type: i4$1.MatHeaderRowDef, selector: "[matHeaderRowDef]", inputs: ["matHeaderRowDef", "matHeaderRowDefSticky"] }, { kind: "directive", type: i4$1.MatColumnDef, selector: "[matColumnDef]", inputs: ["matColumnDef"] }, { kind: "directive", type: i4$1.MatCellDef, selector: "[matCellDef]" }, { kind: "directive", type: i4$1.MatRowDef, selector: "[matRowDef]", inputs: ["matRowDefColumns", "matRowDefWhen"] }, { kind: "directive", type: i4$1.MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { kind: "directive", type: i4$1.MatCell, selector: "mat-cell, td[mat-cell]" }, { kind: "component", type: i4$1.MatHeaderRow, selector: "mat-header-row, tr[mat-header-row]", exportAs: ["matHeaderRow"] }, { kind: "component", type: i4$1.MatRow, selector: "mat-row, tr[mat-row]", exportAs: ["matRow"] }, { kind: "ngmodule", type: MatChipsModule }, { kind: "component", type: i3$2.MatChipListbox, selector: "mat-chip-listbox", inputs: ["multiple", "aria-orientation", "selectable", "compareWith", "required", "hideSingleSelectionIndicator", "value"], outputs: ["change"] }, { kind: "component", type: i3$2.MatChipOption, selector: "mat-basic-chip-option, [mat-basic-chip-option], mat-chip-option, [mat-chip-option]", inputs: ["selectable", "selected"], outputs: ["selectionChange"] }, { kind: "component", type: SdButton, selector: "sd-button", inputs: ["autoId", "type", "color", "size", "fontSet", "title", "width", "tooltip", "prefixIcon", "suffixIcon", "disabled", "openOnHover", "loading", "block", "htmlType", "indicator", "indicatorColor", "indicatorMax", "indicatorLabel"], outputs: ["click"] }, { kind: "component", type: SdInput, selector: "sd-input", inputs: ["autoId", "name", "appearance", "floatLabel", "labelPlacement", "size", "operators", "operator", "form", "label", "helperText", "placeholder", "type", "mask", "inputmode", "autocomplete", "hideInlineError", "blurOnEnter", "clearable", "required", "readonly", "disabled", "viewed", "minlength", "maxlength", "pattern", "patternErrorMessage", "validator", "inlineError", "hyperlink", "model"], outputs: ["operatorChange", "modelChange", "sdChange", "sdFocus", "sdBlur", "keyupEnter", "cleared", "sdFocusForceBlur"] }, { kind: "component", type: SdModal, selector: "sd-modal", inputs: ["autoId", "title", "color", "width", "height", "view", "modalClass", "lazyLoadContent", "hideClose", "enableBackdropClose", "disableBackdropClose", "beforeClose", "closeOnNavigation"], outputs: ["sdClosed", "sdCloseError"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
6190
6269
|
}
|
|
6191
6270
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: SdPopupExport, decorators: [{
|
|
6192
6271
|
type: Component,
|
|
@@ -6202,6 +6281,91 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImpo
|
|
|
6202
6281
|
args: ['tableOption']
|
|
6203
6282
|
}], configuration: [{ type: i0.Input, args: [{ isSignal: true, alias: "configuration", required: false }] }] } });
|
|
6204
6283
|
|
|
6284
|
+
const DEFAULT_TABLE_CONFIG = {
|
|
6285
|
+
paginate: {
|
|
6286
|
+
pageSize: 20,
|
|
6287
|
+
pages: [20, 50, 100, 200],
|
|
6288
|
+
},
|
|
6289
|
+
filter: {
|
|
6290
|
+
// why: chỉ `string` và `number` có bộ mặc định — đó là hai type mà bảng thật sự dùng operator đã chọn, cả khi gửi
|
|
6291
|
+
// server (SdConvertToPagingReq) lẫn khi lọc local. boolean / date / datetime / time / values / lazy-values gửi
|
|
6292
|
+
// operator cố định (EQUAL / BETWEEN / IN) nên một danh sách chọn ở đó sẽ không có tác dụng.
|
|
6293
|
+
operator: {
|
|
6294
|
+
list: {
|
|
6295
|
+
string: ['CONTAIN', 'NOT_CONTAIN', 'EQUAL', 'NOT_EQUAL', 'START_WITH', 'END_WITH', 'NULL', 'NOT_NULL'],
|
|
6296
|
+
number: ['EQUAL', 'NOT_EQUAL', 'GREATER_THAN', 'GREATER_OR_EQUAL', 'LESS_THAN', 'LESS_OR_EQUAL', 'NULL', 'NOT_NULL'],
|
|
6297
|
+
},
|
|
6298
|
+
default: {
|
|
6299
|
+
string: 'CONTAIN',
|
|
6300
|
+
number: 'EQUAL',
|
|
6301
|
+
},
|
|
6302
|
+
},
|
|
6303
|
+
},
|
|
6304
|
+
};
|
|
6305
|
+
/**
|
|
6306
|
+
* Operator của một cột. Cột tự khai `filter.operator.list` thì dùng danh sách đó; không thì lấy theo `type`: cấu hình của ứng dụng (`SD_TABLE_CONFIGURATION`) thắng theo từng type, type không khai
|
|
6307
|
+
* thì dùng bộ mặc định của thư viện. Mảng rỗng trong cấu hình nghĩa là type đó không có operator.
|
|
6308
|
+
*
|
|
6309
|
+
* Operator chọn sẵn của thư viện chỉ đi cùng danh sách mặc định của thư viện. Cột hay ứng dụng tự khai danh sách mà
|
|
6310
|
+
* không khai `default` thì giữ như trước: không operator nào được chọn sẵn.
|
|
6311
|
+
*/
|
|
6312
|
+
const resolveTableColumnOperators = (type, configuration, columnList) => {
|
|
6313
|
+
const configured = configuration?.filter?.operator;
|
|
6314
|
+
const builtIn = DEFAULT_TABLE_CONFIG.filter?.operator;
|
|
6315
|
+
const declared = columnList?.length ? columnList : configured?.list?.[type];
|
|
6316
|
+
const list = [...(declared ?? builtIn?.list?.[type] ?? [])];
|
|
6317
|
+
return { list, default: configured?.default?.[type] ?? (declared ? undefined : builtIn?.default?.[type]) };
|
|
6318
|
+
};
|
|
6319
|
+
const isPlainObject$1 = (value) => {
|
|
6320
|
+
if (!value || typeof value !== 'object')
|
|
6321
|
+
return false;
|
|
6322
|
+
const prototype = Object.getPrototypeOf(value);
|
|
6323
|
+
return prototype === Object.prototype || prototype === null;
|
|
6324
|
+
};
|
|
6325
|
+
// why: gộp theo từng field để module chỉ khai phần khác với portal. Mảng (danh sách operator, `pages`) và giá trị không
|
|
6326
|
+
// phải object thuần được thay nguyên khối — nối hai danh sách operator sẽ đưa lại operator mà backend của module không hỗ trợ.
|
|
6327
|
+
const mergeConfiguration = (base, override) => {
|
|
6328
|
+
if (override === undefined)
|
|
6329
|
+
return base;
|
|
6330
|
+
if (!isPlainObject$1(base) || !isPlainObject$1(override))
|
|
6331
|
+
return override;
|
|
6332
|
+
const result = { ...base };
|
|
6333
|
+
for (const [field, value] of Object.entries(override)) {
|
|
6334
|
+
result[field] = mergeConfiguration(result[field], value);
|
|
6335
|
+
}
|
|
6336
|
+
return result;
|
|
6337
|
+
};
|
|
6338
|
+
/**
|
|
6339
|
+
* Cấu hình áp cho một bảng. `SD_TABLE_CONFIGURATION` nhận một cấu hình hoặc một mảng (`multi: true`), giống
|
|
6340
|
+
* `SD_UPLOAD_FILE_CONFIGURATION` và `SD_PERMISSION_CONFIGURATION`:
|
|
6341
|
+
* - cấu hình không `key` là mặc định của portal;
|
|
6342
|
+
* - cấu hình có `key` trùng `option.configurationKey` được gộp lên trên mặc định của portal, theo từng field;
|
|
6343
|
+
* - `key` không khớp cấu hình nào thì dùng mặc định của portal.
|
|
6344
|
+
*
|
|
6345
|
+
* Hai cấu hình trùng `key` (kể cả hai cấu hình không `key`) là lỗi khai báo: ném lỗi thay vì âm thầm chọn một.
|
|
6346
|
+
*/
|
|
6347
|
+
const resolveTableConfiguration = (source, key) => {
|
|
6348
|
+
const configurations = (Array.isArray(source) ? source : [source]).filter((configuration) => !!configuration);
|
|
6349
|
+
const seen = new Set();
|
|
6350
|
+
for (const configuration of configurations) {
|
|
6351
|
+
if (seen.has(configuration.key)) {
|
|
6352
|
+
throw new Error(`[sd-table] Duplicate table configuration key: ${configuration.key === undefined ? 'undefined' : configuration.key}`);
|
|
6353
|
+
}
|
|
6354
|
+
seen.add(configuration.key);
|
|
6355
|
+
}
|
|
6356
|
+
const portal = configurations.find(configuration => configuration.key === undefined);
|
|
6357
|
+
const keyed = key == null ? undefined : configurations.find(configuration => configuration.key === key);
|
|
6358
|
+
if (!keyed)
|
|
6359
|
+
return portal ?? null;
|
|
6360
|
+
return portal ? mergeConfiguration(portal, keyed) : keyed;
|
|
6361
|
+
};
|
|
6362
|
+
/**
|
|
6363
|
+
* 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`.
|
|
6364
|
+
*/
|
|
6365
|
+
const SD_TABLE_CONFIGURATION = new InjectionToken('sd-table.configuration');
|
|
6366
|
+
|
|
6367
|
+
const SD_TABLE_LAYOUT = new InjectionToken('SD_TABLE_LAYOUT');
|
|
6368
|
+
|
|
6205
6369
|
class SdTableColumnFilterDefDirective {
|
|
6206
6370
|
static ngTemplateContextGuard(_dir, _ctx) {
|
|
6207
6371
|
return true;
|
|
@@ -6941,6 +7105,152 @@ const buildColumnWidthMap = (column) => {
|
|
|
6941
7105
|
return result;
|
|
6942
7106
|
};
|
|
6943
7107
|
|
|
7108
|
+
const OPERATORS = new Set([
|
|
7109
|
+
'EQUAL',
|
|
7110
|
+
'NOT_EQUAL',
|
|
7111
|
+
'CONTAIN',
|
|
7112
|
+
'NOT_CONTAIN',
|
|
7113
|
+
'IN',
|
|
7114
|
+
'NOT_IN',
|
|
7115
|
+
'START_WITH',
|
|
7116
|
+
'NOT_START_WITH',
|
|
7117
|
+
'END_WITH',
|
|
7118
|
+
'NOT_END_WITH',
|
|
7119
|
+
'GREATER_THAN',
|
|
7120
|
+
'LESS_THAN',
|
|
7121
|
+
'GREATER_OR_EQUAL',
|
|
7122
|
+
'LESS_OR_EQUAL',
|
|
7123
|
+
'BETWEEN',
|
|
7124
|
+
'NULL',
|
|
7125
|
+
'NOT_NULL',
|
|
7126
|
+
]);
|
|
7127
|
+
/** Đúng định dạng `Date#toJSON` — chỉ chuỗi này được đọc lại thành `Date`. */
|
|
7128
|
+
const ISO_DATE = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$/;
|
|
7129
|
+
const isPlainObject = (value) => !!value && typeof value === 'object' && !Array.isArray(value) && !(value instanceof Date);
|
|
7130
|
+
/** Chuẩn hoá để so sánh/ghi: rỗng → null, Date → ISO, khoá object theo thứ tự chữ cái, bỏ `undefined`. */
|
|
7131
|
+
const canonical = (value) => {
|
|
7132
|
+
if (value === undefined || value === null || value === '')
|
|
7133
|
+
return null;
|
|
7134
|
+
if (value instanceof Date)
|
|
7135
|
+
return Number.isNaN(value.getTime()) ? null : value.toJSON();
|
|
7136
|
+
if (Array.isArray(value))
|
|
7137
|
+
return value.length ? value.map(item => canonical(item)) : null;
|
|
7138
|
+
if (isPlainObject(value)) {
|
|
7139
|
+
const entries = Object.keys(value)
|
|
7140
|
+
.sort()
|
|
7141
|
+
.map(key => [key, canonical(value[key])]);
|
|
7142
|
+
// Khoảng ngày không có đầu nào là rỗng.
|
|
7143
|
+
if (('from' in value || 'to' in value) && entries.every(([, item]) => item === null))
|
|
7144
|
+
return null;
|
|
7145
|
+
return Object.fromEntries(entries);
|
|
7146
|
+
}
|
|
7147
|
+
return value;
|
|
7148
|
+
};
|
|
7149
|
+
const same = (a, b) => JSON.stringify(canonical(a)) === JSON.stringify(canonical(b));
|
|
7150
|
+
/** Phần của `current` khác `defaults`; giá trị rỗng ghi `null`. */
|
|
7151
|
+
const diff = (current, defaults) => {
|
|
7152
|
+
const keys = [...new Set([...Object.keys(current), ...Object.keys(defaults)])].sort();
|
|
7153
|
+
const changed = keys.filter(key => !same(current[key], defaults[key]));
|
|
7154
|
+
return changed.length ? Object.fromEntries(changed.map(key => [key, canonical(current[key])])) : undefined;
|
|
7155
|
+
};
|
|
7156
|
+
const serializeTableQueryState = (state, context) => {
|
|
7157
|
+
const { defaults } = context;
|
|
7158
|
+
const encoded = {};
|
|
7159
|
+
if (defaults.quickSearch && state.quickSearch) {
|
|
7160
|
+
const quick = {};
|
|
7161
|
+
if (!same(state.quickSearch.term, defaults.quickSearch.term))
|
|
7162
|
+
quick['t'] = canonical(state.quickSearch.term);
|
|
7163
|
+
const filters = diff(state.quickSearch.filters || {}, defaults.quickSearch.filters || {});
|
|
7164
|
+
if (filters)
|
|
7165
|
+
quick['f'] = filters;
|
|
7166
|
+
if (Object.keys(quick).length)
|
|
7167
|
+
encoded['q'] = quick;
|
|
7168
|
+
}
|
|
7169
|
+
const columnFilter = diff(state.columnFilter, defaults.columnFilter);
|
|
7170
|
+
if (columnFilter)
|
|
7171
|
+
encoded['c'] = columnFilter;
|
|
7172
|
+
const columnOperator = diff(state.columnOperator, defaults.columnOperator);
|
|
7173
|
+
if (columnOperator)
|
|
7174
|
+
encoded['o'] = columnOperator;
|
|
7175
|
+
const externalFilter = diff(state.externalFilter, defaults.externalFilter);
|
|
7176
|
+
if (externalFilter)
|
|
7177
|
+
encoded['e'] = externalFilter;
|
|
7178
|
+
if (state.sort.active && state.sort.direction)
|
|
7179
|
+
encoded['s'] = [state.sort.active, state.sort.direction];
|
|
7180
|
+
if (context.pageIndex && state.pageIndex > 0)
|
|
7181
|
+
encoded['p'] = state.pageIndex + 1;
|
|
7182
|
+
if (state.pageSize !== defaults.pageSize)
|
|
7183
|
+
encoded['z'] = state.pageSize;
|
|
7184
|
+
return Object.keys(encoded).length ? JSON.stringify(encoded) : null;
|
|
7185
|
+
};
|
|
7186
|
+
const isPrimitive = (value) => value === null || value instanceof Date || ['string', 'number', 'boolean'].includes(typeof value);
|
|
7187
|
+
/** Chỉ nhận dạng giá trị mà control lọc tạo ra: primitive, mảng primitive, khoảng `{ from, to }`. */
|
|
7188
|
+
const isFilterValue = (value) => {
|
|
7189
|
+
if (isPrimitive(value))
|
|
7190
|
+
return true;
|
|
7191
|
+
if (Array.isArray(value))
|
|
7192
|
+
return value.every(isPrimitive);
|
|
7193
|
+
if (isPlainObject(value)) {
|
|
7194
|
+
const keys = Object.keys(value);
|
|
7195
|
+
return keys.length > 0 && keys.every(key => (key === 'from' || key === 'to') && isPrimitive(value[key]));
|
|
7196
|
+
}
|
|
7197
|
+
return false;
|
|
7198
|
+
};
|
|
7199
|
+
const pick = (source, allowed, accept, target) => {
|
|
7200
|
+
if (!isPlainObject(source))
|
|
7201
|
+
return target;
|
|
7202
|
+
for (const [key, value] of Object.entries(source)) {
|
|
7203
|
+
if (allowed.has(key) && accept(value, key))
|
|
7204
|
+
target[key] = value;
|
|
7205
|
+
}
|
|
7206
|
+
return target;
|
|
7207
|
+
};
|
|
7208
|
+
const clone = (value) => (value === undefined ? value : structuredClone(value));
|
|
7209
|
+
/** Đọc giá trị param. `undefined` khi không phải JSON object; field lạ / sai dạng bị bỏ, phần thiếu lấy mặc định. */
|
|
7210
|
+
const parseTableQueryState = (raw, context) => {
|
|
7211
|
+
let encoded;
|
|
7212
|
+
try {
|
|
7213
|
+
encoded = JSON.parse(raw, (_, value) => (typeof value === 'string' && ISO_DATE.test(value) ? new Date(value) : value));
|
|
7214
|
+
}
|
|
7215
|
+
catch {
|
|
7216
|
+
return undefined;
|
|
7217
|
+
}
|
|
7218
|
+
if (!isPlainObject(encoded))
|
|
7219
|
+
return undefined;
|
|
7220
|
+
const { defaults, fields } = context;
|
|
7221
|
+
let quickSearch;
|
|
7222
|
+
if (defaults.quickSearch) {
|
|
7223
|
+
quickSearch = clone(defaults.quickSearch);
|
|
7224
|
+
const quick = encoded['q'];
|
|
7225
|
+
if (isPlainObject(quick)) {
|
|
7226
|
+
if (typeof quick['t'] === 'string')
|
|
7227
|
+
quickSearch.term = quick['t'];
|
|
7228
|
+
pick(quick['f'], fields.quickSearch, isFilterValue, quickSearch.filters);
|
|
7229
|
+
}
|
|
7230
|
+
}
|
|
7231
|
+
const sort = { active: '', direction: '' };
|
|
7232
|
+
const encodedSort = encoded['s'];
|
|
7233
|
+
if (Array.isArray(encodedSort) &&
|
|
7234
|
+
encodedSort.length === 2 &&
|
|
7235
|
+
typeof encodedSort[0] === 'string' &&
|
|
7236
|
+
fields.sort.has(encodedSort[0]) &&
|
|
7237
|
+
(encodedSort[1] === 'asc' || encodedSort[1] === 'desc')) {
|
|
7238
|
+
sort.active = encodedSort[0];
|
|
7239
|
+
sort.direction = encodedSort[1];
|
|
7240
|
+
}
|
|
7241
|
+
const page = encoded['p'];
|
|
7242
|
+
const size = encoded['z'];
|
|
7243
|
+
return {
|
|
7244
|
+
quickSearch,
|
|
7245
|
+
columnFilter: pick(encoded['c'], fields.column, isFilterValue, clone(defaults.columnFilter)),
|
|
7246
|
+
columnOperator: pick(encoded['o'], fields.operator, (value, key) => typeof value === 'string' && OPERATORS.has(value) && !!fields.operator.get(key)?.has(value), clone(defaults.columnOperator)),
|
|
7247
|
+
externalFilter: pick(encoded['e'], fields.external, isFilterValue, clone(defaults.externalFilter)),
|
|
7248
|
+
sort,
|
|
7249
|
+
pageIndex: context.pageIndex && Number.isInteger(page) && page >= 1 ? page - 1 : 0,
|
|
7250
|
+
pageSize: Number.isInteger(size) && context.pageSizes.includes(size) ? size : defaults.pageSize,
|
|
7251
|
+
};
|
|
7252
|
+
};
|
|
7253
|
+
|
|
6944
7254
|
const sortValue = (value, type, dateTime) => {
|
|
6945
7255
|
if (value === null || value === undefined || value === '')
|
|
6946
7256
|
return null;
|
|
@@ -7743,6 +8053,12 @@ class SdTable {
|
|
|
7743
8053
|
option = input.required(...(ngDevMode ? [{ debugName: "option" }] : []));
|
|
7744
8054
|
/** Hide the integrated error region while retaining read state, events and retry. */
|
|
7745
8055
|
hideReadError = input(false, ...(ngDevMode ? [{ debugName: "hideReadError", transform: booleanAttribute }] : [{ transform: booleanAttribute }]));
|
|
8056
|
+
/**
|
|
8057
|
+
* Ghi filter (quick search, filter dưới cột + operator, external filter), sort và trang lên query param
|
|
8058
|
+
* `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
|
|
8059
|
+
* bị xoá. Mặc định tắt.
|
|
8060
|
+
*/
|
|
8061
|
+
syncQueryParams = input(false, ...(ngDevMode ? [{ debugName: "syncQueryParams", transform: booleanAttribute }] : [{ transform: booleanAttribute }]));
|
|
7746
8062
|
sdReadStateChange = output();
|
|
7747
8063
|
#read = new SdReadChannel('TABLE', state => {
|
|
7748
8064
|
if (!this.#destroyed) {
|
|
@@ -7920,6 +8236,13 @@ class SdTable {
|
|
|
7920
8236
|
return 'core.component.table.no-results';
|
|
7921
8237
|
return this.requireFiltered() ? 'core.component.table.choose-filter-hint' : 'core.component.table.no-data';
|
|
7922
8238
|
}, ...(ngDevMode ? [{ debugName: "#emptyKey" }] : []));
|
|
8239
|
+
/** Text of that block for the status region: the required hint wins over the title, as on screen. */
|
|
8240
|
+
#emptyText = computed(() => {
|
|
8241
|
+
const key = this.#emptyKey();
|
|
8242
|
+
if (!key)
|
|
8243
|
+
return '';
|
|
8244
|
+
return this.requiredHint() || this.#i18n.t(key);
|
|
8245
|
+
}, ...(ngDevMode ? [{ debugName: "#emptyText" }] : []));
|
|
7923
8246
|
/** Rows that fill a table with a fixed height, measured when the skeleton shows. */
|
|
7924
8247
|
#skeletonFill = signal(undefined, ...(ngDevMode ? [{ debugName: "#skeletonFill" }] : []));
|
|
7925
8248
|
/** Skeleton rows of the desktop table (`matNoDataRow`) while `loadingView()` is `skeleton`; empty otherwise. */
|
|
@@ -8165,9 +8488,31 @@ class SdTable {
|
|
|
8165
8488
|
/** Chip trên thanh (nháp của thanh) và ô tìm — gắn hai chiều với `sd-query-bar`. */
|
|
8166
8489
|
barFilters = signal([], ...(ngDevMode ? [{ debugName: "barFilters" }] : []));
|
|
8167
8490
|
barSearch = signal('', ...(ngDevMode ? [{ debugName: "barSearch" }] : []));
|
|
8168
|
-
|
|
8491
|
+
/** Id of the required hint in the empty block; `aria-describedby` of empty required chips and of the quick search input. */
|
|
8492
|
+
requiredHintId = `sd-table-${Utilities.generateUuid()}-required-hint`;
|
|
8169
8493
|
/** Giá trị lọc đã áp dụng, theo lần phát gần nhất của filter register. */
|
|
8170
8494
|
#appliedFilter = signal(undefined, ...(ngDevMode ? [{ debugName: "#appliedFilter" }] : []));
|
|
8495
|
+
// syncQueryParams: bật sau khi cấu hình + filter register sẵn sàng và state từ URL đã áp cho lần đọc đầu.
|
|
8496
|
+
#queryReady = signal(false, ...(ngDevMode ? [{ debugName: "#queryReady" }] : []));
|
|
8497
|
+
#queryParamState = _sdQueryParamState({
|
|
8498
|
+
selector: 'sd-table',
|
|
8499
|
+
prefix: 'table',
|
|
8500
|
+
enabled: this.syncQueryParams,
|
|
8501
|
+
autoId: this.autoIdInput,
|
|
8502
|
+
ready: this.#queryReady,
|
|
8503
|
+
state: () => {
|
|
8504
|
+
// why: filter register và paginator không phải signal; các signal dưới đây phát mỗi lần chúng đổi.
|
|
8505
|
+
this.#appliedFilter();
|
|
8506
|
+
this.sortState();
|
|
8507
|
+
this.pageRevision();
|
|
8508
|
+
this.#pageTarget();
|
|
8509
|
+
if (!this.#queryReady())
|
|
8510
|
+
return null;
|
|
8511
|
+
const context = this.#queryContext();
|
|
8512
|
+
return context ? serializeTableQueryState(this.#currentQueryState(), context) : null;
|
|
8513
|
+
},
|
|
8514
|
+
apply: value => this.#applyQueryState(value, false),
|
|
8515
|
+
});
|
|
8171
8516
|
#inlineExternal = signal({}, ...(ngDevMode ? [{ debugName: "#inlineExternal" }] : []));
|
|
8172
8517
|
// why: tách khỏi #inlineExternal (mặc định {}) — trước khi filter register phát lần đầu thì chưa biết, không được
|
|
8173
8518
|
// coi là "khác defaultShowing" mà bật chấm trên nút Thiết lập.
|
|
@@ -8270,17 +8615,23 @@ class SdTable {
|
|
|
8270
8615
|
}, ...(ngDevMode ? [{ debugName: "mobileFilterModel" }] : []));
|
|
8271
8616
|
/** Applied filter value (last emission of the filter register); the phone chips summarise it. */
|
|
8272
8617
|
mobileFilterValue = computed(() => this.#appliedFilter(), ...(ngDevMode ? [{ debugName: "mobileFilterValue" }] : []));
|
|
8273
|
-
/**
|
|
8618
|
+
/**
|
|
8619
|
+
* Giá trị đã áp dụng khác default (so trên các field của thanh) — bật nút Xoá lọc. Field bắt buộc không tính: Xoá lọc
|
|
8620
|
+
* giữ giá trị của chúng (handoff query bar mục 6.2).
|
|
8621
|
+
*/
|
|
8274
8622
|
#queryBarDirty = computed(() => {
|
|
8275
8623
|
const ctx = this.queryBarModel();
|
|
8276
8624
|
const value = this.#appliedFilter();
|
|
8277
8625
|
const defaults = this.filterRegister?.value.default?.();
|
|
8278
8626
|
if (!ctx || !value || !defaults)
|
|
8279
8627
|
return false;
|
|
8628
|
+
const required = new Set(ctx.fields.filter(field => field.required).map(field => field.key));
|
|
8280
8629
|
const snapshot = (input) => {
|
|
8281
8630
|
const query = tableFilterToQuery(input, ctx);
|
|
8282
8631
|
return Utilities.canonicalStringify({
|
|
8283
|
-
filters: query.filters
|
|
8632
|
+
filters: query.filters
|
|
8633
|
+
.filter(filter => !required.has(filter.field))
|
|
8634
|
+
.map(filter => [filter.field, filter.operator, filter.data]),
|
|
8284
8635
|
search: query.search ?? '',
|
|
8285
8636
|
});
|
|
8286
8637
|
};
|
|
@@ -8292,8 +8643,11 @@ class SdTable {
|
|
|
8292
8643
|
if (!ctx || !filter)
|
|
8293
8644
|
return undefined;
|
|
8294
8645
|
const autoId = this.autoId();
|
|
8646
|
+
const savedFiltersKey = filter.queryBar?.savedFilters?.key;
|
|
8295
8647
|
return {
|
|
8296
8648
|
autoId: autoId ? `${autoId}-query-bar` : undefined,
|
|
8649
|
+
// Bộ lọc đã lưu của thanh: áp đi qua (apply) → onQueryBarApply như mọi thay đổi của thanh, đọc một lần.
|
|
8650
|
+
...(savedFiltersKey ? { showSavedFilters: true, savedFiltersKey: `sd-table:${savedFiltersKey}` } : {}),
|
|
8297
8651
|
fields: ctx.fields,
|
|
8298
8652
|
mode: filter.queryBar?.editor ?? 'inline',
|
|
8299
8653
|
density: 'compact',
|
|
@@ -8304,7 +8658,7 @@ class SdTable {
|
|
|
8304
8658
|
appearance: 'flush',
|
|
8305
8659
|
onClearAll: this.#clearQueryBar,
|
|
8306
8660
|
clearDisabled: !this.#queryBarDirty(),
|
|
8307
|
-
invalidHintId: this.
|
|
8661
|
+
invalidHintId: this.requiredHintId,
|
|
8308
8662
|
};
|
|
8309
8663
|
}, ...(ngDevMode ? [{ debugName: "queryBarOption" }] : []));
|
|
8310
8664
|
/** 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. */
|
|
@@ -8330,17 +8684,26 @@ class SdTable {
|
|
|
8330
8684
|
openQueryBarField(key, trigger) {
|
|
8331
8685
|
this.queryBar()?.openField(key, trigger instanceof HTMLElement ? trigger : undefined);
|
|
8332
8686
|
}
|
|
8333
|
-
/**
|
|
8334
|
-
|
|
8335
|
-
|
|
8687
|
+
/**
|
|
8688
|
+
* "Chọn {label} để xem dữ liệu" for the required fields that are still empty, or `''`. The empty block of the body
|
|
8689
|
+
* shows it in place of `choose-filter-hint` (the read is blocked, so that block is on screen): a line under the
|
|
8690
|
+
* filter row would push the table down and back up once the value is chosen.
|
|
8691
|
+
* - Query-bar mode: empty required chips, hidden required quick filters, and required external filters the bar
|
|
8692
|
+
* cannot show (custom, filterDef, exclude…), which still block the read.
|
|
8693
|
+
* - Quick search: empty required quick filters, hidden ones included.
|
|
8694
|
+
* The external filter panel of the default mode marks its own required fields.
|
|
8695
|
+
*/
|
|
8696
|
+
requiredHint = computed(() => {
|
|
8697
|
+
const bar = this.queryBarMode();
|
|
8698
|
+
const labels = bar ? (this.queryBar()?.invalidFields() ?? []).map(field => field.label) : [];
|
|
8336
8699
|
const value = this.quickSearchValue();
|
|
8337
8700
|
for (const item of this.quickSearchOption()?.filters ?? []) {
|
|
8338
8701
|
const hidden = isSignal(item.hidden) ? item.hidden() : item.hidden;
|
|
8339
|
-
|
|
8702
|
+
// The bar lists its own chips; a visible quick filter is one of them.
|
|
8703
|
+
if (item.required && (!bar || hidden) && !hasQuickSearchValue(value.filters?.[item.field]))
|
|
8340
8704
|
labels.push(item.title);
|
|
8341
8705
|
}
|
|
8342
|
-
|
|
8343
|
-
const sources = this.queryBarModel()?.sources;
|
|
8706
|
+
const sources = bar ? this.queryBarModel()?.sources : undefined;
|
|
8344
8707
|
const external = this.#appliedFilter()?.externalFilter;
|
|
8345
8708
|
for (const item of this.tableOption()?.filter?.externalFilters ?? []) {
|
|
8346
8709
|
if (item.required && sources && !sources.has(`external:${item.field}`) && !isRawFilterSet(external?.[item.field])) {
|
|
@@ -8348,7 +8711,7 @@ class SdTable {
|
|
|
8348
8711
|
}
|
|
8349
8712
|
}
|
|
8350
8713
|
return labels.length ? this.#i18n.t('core.component.query-bar.required', { label: labels.join(', ') }) : '';
|
|
8351
|
-
}, ...(ngDevMode ? [{ debugName: "
|
|
8714
|
+
}, ...(ngDevMode ? [{ debugName: "requiredHint" }] : []));
|
|
8352
8715
|
key = Utilities.generateUuid();
|
|
8353
8716
|
columnOperator = {};
|
|
8354
8717
|
columnFilter = {};
|
|
@@ -8435,7 +8798,15 @@ class SdTable {
|
|
|
8435
8798
|
exporting = this.#tableExportService.exporting;
|
|
8436
8799
|
exportTitle = this.#tableExportService.exportTitle;
|
|
8437
8800
|
// 2. Public & Optional Token
|
|
8438
|
-
|
|
8801
|
+
// why: token nhận một cấu hình hoặc mảng cấu hình theo key (multi: true), nên kiểu thật rộng hơn kiểu của token.
|
|
8802
|
+
#tableConfigurations = inject(SD_TABLE_CONFIGURATION, {
|
|
8803
|
+
optional: true,
|
|
8804
|
+
});
|
|
8805
|
+
#tableConfiguration = computed(() => resolveTableConfiguration(this.#tableConfigurations, this.tableOption()?.configurationKey), ...(ngDevMode ? [{ debugName: "#tableConfiguration" }] : []));
|
|
8806
|
+
/** 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. */
|
|
8807
|
+
get tableConfiguration() {
|
|
8808
|
+
return this.#tableConfiguration();
|
|
8809
|
+
}
|
|
8439
8810
|
#host = inject(ElementRef).nativeElement;
|
|
8440
8811
|
#layout = inject(SD_TABLE_LAYOUT, { optional: true });
|
|
8441
8812
|
/**
|
|
@@ -8510,9 +8881,9 @@ class SdTable {
|
|
|
8510
8881
|
// the status region says it, also after a read too fast to show the loading layer. Defined after the loading
|
|
8511
8882
|
// effect, which clears the region when a read starts, so the same text is read again for the next empty result.
|
|
8512
8883
|
effect(() => {
|
|
8513
|
-
const
|
|
8514
|
-
if (
|
|
8515
|
-
untracked(() => this.#liveMessage.set(
|
|
8884
|
+
const text = this.#emptyText();
|
|
8885
|
+
if (text)
|
|
8886
|
+
untracked(() => this.#liveMessage.set(text));
|
|
8516
8887
|
});
|
|
8517
8888
|
// why: the progress bar sits in .c-container (so it does not scroll sideways with the table) right under the
|
|
8518
8889
|
// last header row; that row's bottom depends on grouped headers, the filter row and wrapping titles. Only
|
|
@@ -8733,10 +9104,8 @@ class SdTable {
|
|
|
8733
9104
|
this.#liveMessage.set(this.#i18n.t(count === 1 ? 'core.component.table.loaded-one' : 'core.component.table.loaded', { count }));
|
|
8734
9105
|
else if (failed && !!this.dataStateTemplate() && !this.hideReadError())
|
|
8735
9106
|
this.#liveMessage.set(this.#i18n.t('core.component.table.error-occurred'));
|
|
8736
|
-
else
|
|
8737
|
-
|
|
8738
|
-
this.#liveMessage.set(empty ? this.#i18n.t(empty) : '');
|
|
8739
|
-
}
|
|
9107
|
+
else
|
|
9108
|
+
this.#liveMessage.set(this.#emptyText());
|
|
8740
9109
|
}
|
|
8741
9110
|
/** Skeleton rows that fill a table with a fixed height (fill mode, `style.maxHeight`); `undefined` otherwise. */
|
|
8742
9111
|
#measureSkeletonFill() {
|
|
@@ -8836,6 +9205,7 @@ class SdTable {
|
|
|
8836
9205
|
this.#aggregateLoadedChildren.clear();
|
|
8837
9206
|
this.#aggregateFilteredItems = [];
|
|
8838
9207
|
this.#configurationReady = false;
|
|
9208
|
+
this.#queryReady.set(false);
|
|
8839
9209
|
this.#cancelReload();
|
|
8840
9210
|
this.#hydration = undefined;
|
|
8841
9211
|
this.#retryConfiguration = undefined;
|
|
@@ -8901,36 +9271,43 @@ class SdTable {
|
|
|
8901
9271
|
}
|
|
8902
9272
|
};
|
|
8903
9273
|
#initConfiguration = (option) => {
|
|
9274
|
+
// why: chạy trước khi tableOption nhận option mới, nên chọn cấu hình theo key của chính option đang khởi tạo.
|
|
9275
|
+
const tableConfiguration = resolveTableConfiguration(this.#tableConfigurations, option.configurationKey);
|
|
8904
9276
|
option.paginate = {
|
|
8905
9277
|
total: option?.paginate?.total,
|
|
8906
9278
|
hidden: option?.paginate?.hidden,
|
|
8907
|
-
pageSize: option?.paginate?.pageSize ??
|
|
8908
|
-
pages: option?.paginate?.pages ??
|
|
8909
|
-
showFirstLastButtons: option?.paginate?.showFirstLastButtons ??
|
|
9279
|
+
pageSize: option?.paginate?.pageSize ?? tableConfiguration?.paginate?.pageSize ?? DEFAULT_TABLE_CONFIG.paginate?.pageSize,
|
|
9280
|
+
pages: option?.paginate?.pages ?? tableConfiguration?.paginate?.pages ?? DEFAULT_TABLE_CONFIG.paginate?.pages,
|
|
9281
|
+
showFirstLastButtons: option?.paginate?.showFirstLastButtons ?? tableConfiguration?.paginate?.showFirstLastButtons ?? false,
|
|
8910
9282
|
hidePageSize: option?.paginate?.hidePageSize ?? false,
|
|
8911
9283
|
};
|
|
8912
9284
|
option.filter = option.filter || {};
|
|
8913
|
-
option.filter.hideInlineFilter = option?.filter?.hideInlineFilter ??
|
|
8914
|
-
option.filter.externalFilterPerRow = option?.filter?.externalFilterPerRow ??
|
|
8915
|
-
option.filter.manualFilter = option?.filter?.manualFilter ??
|
|
9285
|
+
option.filter.hideInlineFilter = option?.filter?.hideInlineFilter ?? tableConfiguration?.filter?.hideInlineFilter;
|
|
9286
|
+
option.filter.externalFilterPerRow = option?.filter?.externalFilterPerRow ?? tableConfiguration?.filter?.externalFilterPerRow;
|
|
9287
|
+
option.filter.manualFilter = option?.filter?.manualFilter ?? tableConfiguration?.filter?.manualFilter;
|
|
8916
9288
|
option.filter.hideExternalFilterToolbar =
|
|
8917
|
-
option?.filter?.hideExternalFilterToolbar ??
|
|
9289
|
+
option?.filter?.hideExternalFilterToolbar ?? tableConfiguration?.filter?.hideExternalFilterToolbar;
|
|
8918
9290
|
// why: chỉ ghi khi configuration có giá trị — bảng không dùng mode mới giữ nguyên object filter của consumer.
|
|
8919
|
-
const filterConfiguration =
|
|
9291
|
+
const filterConfiguration = tableConfiguration?.filter;
|
|
8920
9292
|
if (option.filter.mode === undefined && filterConfiguration?.mode)
|
|
8921
9293
|
option.filter.mode = filterConfiguration.mode;
|
|
8922
9294
|
if (option.filter.modeSelectable === undefined && filterConfiguration?.modeSelectable !== undefined) {
|
|
8923
9295
|
option.filter.modeSelectable = filterConfiguration.modeSelectable;
|
|
8924
9296
|
}
|
|
8925
|
-
if (filterConfiguration?.queryBar)
|
|
8926
|
-
|
|
9297
|
+
if (filterConfiguration?.queryBar) {
|
|
9298
|
+
// why: savedFilters không lấy từ cấu hình chung (kể cả khi bị ép kiểu) — một khoá chung sẽ trộn bộ lọc đã lưu của mọi
|
|
9299
|
+
// bảng (handoff query bar panels, Bước 0 điểm 4).
|
|
9300
|
+
const shared = { ...filterConfiguration.queryBar };
|
|
9301
|
+
delete shared.savedFilters;
|
|
9302
|
+
option.filter.queryBar = { ...shared, ...option.filter.queryBar };
|
|
9303
|
+
}
|
|
8927
9304
|
// why: cột con của header nhóm cũng có filter và operator riêng.
|
|
8928
9305
|
for (const column of leafColumns(option.columns)) {
|
|
8929
9306
|
if (column.filter?.operator?.enable) {
|
|
8930
|
-
|
|
8931
|
-
|
|
8932
|
-
|
|
8933
|
-
const defaultOperator =
|
|
9307
|
+
// why: cột không khai danh sách thì lấy theo type — cấu hình của ứng dụng trước, rồi bộ mặc định của thư viện.
|
|
9308
|
+
const typeOperators = resolveTableColumnOperators(column.type, tableConfiguration, column.filter.operator.list);
|
|
9309
|
+
column.filter.operator.list = typeOperators.list;
|
|
9310
|
+
const defaultOperator = typeOperators.default;
|
|
8934
9311
|
if (defaultOperator) {
|
|
8935
9312
|
this.columnOperator[column.field] = defaultOperator;
|
|
8936
9313
|
}
|
|
@@ -8968,7 +9345,12 @@ class SdTable {
|
|
|
8968
9345
|
this.#ref.detectChanges();
|
|
8969
9346
|
if (!valid())
|
|
8970
9347
|
return;
|
|
9348
|
+
// syncQueryParams: state trên URL thắng cache và vào ngay lần đọc đầu — không đọc hai lần.
|
|
9349
|
+
const queryValue = this.#queryParamState.value();
|
|
9350
|
+
if (queryValue)
|
|
9351
|
+
this.#applyQueryState(queryValue, true);
|
|
8971
9352
|
this.#configurationReady = true;
|
|
9353
|
+
this.#queryReady.set(true);
|
|
8972
9354
|
this.#requestReload(true);
|
|
8973
9355
|
}
|
|
8974
9356
|
catch (error) {
|
|
@@ -8985,6 +9367,99 @@ class SdTable {
|
|
|
8985
9367
|
this.#ref.markForCheck();
|
|
8986
9368
|
}
|
|
8987
9369
|
};
|
|
9370
|
+
/** Mặc định và field hợp lệ để serialize/parse state URL; `undefined` khi chưa có filter register. */
|
|
9371
|
+
#queryContext = () => {
|
|
9372
|
+
const option = this.tableOption();
|
|
9373
|
+
if (!option || !this.filterRegister)
|
|
9374
|
+
return undefined;
|
|
9375
|
+
const defaults = this.filterRegister.value.default?.() ?? {};
|
|
9376
|
+
const columns = leafColumns(option.columns);
|
|
9377
|
+
const quickSearch = this.quickSearchOption();
|
|
9378
|
+
const filterEnabled = !option.filter?.disabled;
|
|
9379
|
+
return {
|
|
9380
|
+
defaults: {
|
|
9381
|
+
quickSearch: quickSearch ? (defaults.quickSearch ?? { term: '', filters: {} }) : undefined,
|
|
9382
|
+
columnOperator: defaults.columnOperator || {},
|
|
9383
|
+
columnFilter: defaults.columnFilter || {},
|
|
9384
|
+
externalFilter: defaults.externalFilter || {},
|
|
9385
|
+
pageSize: option.paginate?.pageSize || 50,
|
|
9386
|
+
},
|
|
9387
|
+
// why: URL là input không tin cậy — chỉ nhận field người dùng tự lọc được trên màn hình (filter cột không bị
|
|
9388
|
+
// `disabled`, bảng không tắt filter) và operator nằm trong danh sách của chính cột đó.
|
|
9389
|
+
fields: {
|
|
9390
|
+
column: new Set(filterEnabled ? columns.filter(column => !column.filter?.disabled).map(column => column.field) : []),
|
|
9391
|
+
operator: new Map(filterEnabled
|
|
9392
|
+
? columns
|
|
9393
|
+
.filter(column => !column.filter?.disabled && column.filter?.operator?.enable)
|
|
9394
|
+
.map(column => [column.field, new Set(column.filter?.operator?.list ?? [])])
|
|
9395
|
+
: []),
|
|
9396
|
+
external: new Set(filterEnabled ? (option.filter?.externalFilters || []).map(filter => filter.field) : []),
|
|
9397
|
+
quickSearch: new Set((quickSearch?.filters || []).map(filter => filter.field)),
|
|
9398
|
+
sort: new Set(option.sort?.enable ? columns.filter(column => column.sortable).map(column => column.field) : []),
|
|
9399
|
+
},
|
|
9400
|
+
pageSizes: option.paginate?.pages || [],
|
|
9401
|
+
pageIndex: !this.unknownTotal(),
|
|
9402
|
+
};
|
|
9403
|
+
};
|
|
9404
|
+
#currentQueryState = () => {
|
|
9405
|
+
const value = this.filterRegister.value.get();
|
|
9406
|
+
const target = this.unknownTotal() ? this.#unknownTarget() : undefined;
|
|
9407
|
+
const paginator = this.paginator();
|
|
9408
|
+
const { active, direction } = this.sortState();
|
|
9409
|
+
return {
|
|
9410
|
+
quickSearch: this.quickSearchOption() ? value.quickSearch || { term: '', filters: {} } : undefined,
|
|
9411
|
+
columnOperator: value.columnOperator || {},
|
|
9412
|
+
columnFilter: value.columnFilter || {},
|
|
9413
|
+
externalFilter: value.externalFilter || {},
|
|
9414
|
+
sort: { active, direction },
|
|
9415
|
+
pageIndex: target ? target.pageIndex : paginator?.pageIndex || 0,
|
|
9416
|
+
pageSize: target ? target.pageSize : paginator?.pageSize || this.tableOption()?.paginate?.pageSize || 50,
|
|
9417
|
+
};
|
|
9418
|
+
};
|
|
9419
|
+
/**
|
|
9420
|
+
* Áp state từ query param `table-<autoId>`. `initial`: trước lần đọc đầu (lần đọc đó dùng luôn state này); sau đó thì
|
|
9421
|
+
* đọc lại đúng một lần. Giá trị hỏng hoặc trùng state hiện tại thì không làm gì.
|
|
9422
|
+
*/
|
|
9423
|
+
#applyQueryState = (raw, initial) => {
|
|
9424
|
+
const context = this.#queryContext();
|
|
9425
|
+
const parsed = context && parseTableQueryState(raw, context);
|
|
9426
|
+
if (!context || !parsed)
|
|
9427
|
+
return;
|
|
9428
|
+
if (serializeTableQueryState(parsed, context) === serializeTableQueryState(this.#currentQueryState(), context))
|
|
9429
|
+
return;
|
|
9430
|
+
// Giữ reference ổn định cho column-filter (xem #syncColumnFilterInPlace).
|
|
9431
|
+
this.#syncColumnFilterInPlace(parsed.columnFilter);
|
|
9432
|
+
this.filterRegister.value.set({
|
|
9433
|
+
columnOperator: parsed.columnOperator,
|
|
9434
|
+
columnFilter: parsed.columnFilter,
|
|
9435
|
+
externalFilter: parsed.externalFilter,
|
|
9436
|
+
...(parsed.quickSearch ? { quickSearch: parsed.quickSearch } : {}),
|
|
9437
|
+
// why: lần đọc do hàm này lên lịch (hoặc lần đọc đầu) — không để filter register tự hẹn thêm một lần đọc và về trang 1.
|
|
9438
|
+
notReload: true,
|
|
9439
|
+
});
|
|
9440
|
+
if (parsed.quickSearch)
|
|
9441
|
+
this.quickSearchControl()?.term.set(parsed.quickSearch.term || '');
|
|
9442
|
+
const sort = this.sort();
|
|
9443
|
+
if (sort) {
|
|
9444
|
+
sort.active = parsed.sort.active;
|
|
9445
|
+
sort.direction = parsed.sort.direction;
|
|
9446
|
+
}
|
|
9447
|
+
this.sortState.set({ ...parsed.sort });
|
|
9448
|
+
if (this.unknownTotal()) {
|
|
9449
|
+
this.#pageTarget.set({ pageIndex: 0, pageSize: parsed.pageSize });
|
|
9450
|
+
}
|
|
9451
|
+
else {
|
|
9452
|
+
const paginator = this.paginator();
|
|
9453
|
+
if (paginator) {
|
|
9454
|
+
paginator.pageSize = parsed.pageSize;
|
|
9455
|
+
paginator.pageIndex = parsed.pageIndex;
|
|
9456
|
+
}
|
|
9457
|
+
}
|
|
9458
|
+
this.pageRevision.update(n => n + 1);
|
|
9459
|
+
this.#ref.markForCheck();
|
|
9460
|
+
if (!initial)
|
|
9461
|
+
this.#requestReload(false);
|
|
9462
|
+
};
|
|
8988
9463
|
#loadFilterRegister = () => {
|
|
8989
9464
|
const opt = this.tableOption();
|
|
8990
9465
|
if (!opt || this.filterRegister)
|
|
@@ -9671,19 +10146,55 @@ class SdTable {
|
|
|
9671
10146
|
}
|
|
9672
10147
|
}
|
|
9673
10148
|
};
|
|
9674
|
-
/**
|
|
10149
|
+
/**
|
|
10150
|
+
* Nút Xoá lọc của thanh: về giá trị default như nút xoá của external filter, đọc lại một lần — trừ quick filter và
|
|
10151
|
+
* external filter bắt buộc, giữ nguyên giá trị như `SdQueryBar.clearAll()` giữ chip bắt buộc (handoff query bar mục
|
|
10152
|
+
* 6.2). Cột không có cờ bắt buộc.
|
|
10153
|
+
*/
|
|
9675
10154
|
#clearQueryBar = () => {
|
|
9676
10155
|
if (!this.filterRegister)
|
|
9677
10156
|
return;
|
|
10157
|
+
const kept = this.#requiredFilterValues();
|
|
10158
|
+
const defaults = this.filterRegister.value.default?.();
|
|
9678
10159
|
this.#barApplying = true;
|
|
9679
10160
|
try {
|
|
9680
|
-
|
|
10161
|
+
if (!kept || !defaults)
|
|
10162
|
+
this.clearFilter();
|
|
10163
|
+
else {
|
|
10164
|
+
// why: một lần set (không remove rồi set) — observer của filter register chỉ phát một lần nên chỉ đọc lại một lần.
|
|
10165
|
+
this.filterRegister.value.set({
|
|
10166
|
+
columnOperator: defaults.columnOperator,
|
|
10167
|
+
columnFilter: defaults.columnFilter,
|
|
10168
|
+
externalFilter: { ...defaults.externalFilter, ...kept.external },
|
|
10169
|
+
...(defaults.quickSearch
|
|
10170
|
+
? { quickSearch: { ...defaults.quickSearch, term: '', filters: { ...defaults.quickSearch.filters, ...kept.quick } } }
|
|
10171
|
+
: {}),
|
|
10172
|
+
});
|
|
10173
|
+
this.quickSearchControl()?.term.set('');
|
|
10174
|
+
}
|
|
9681
10175
|
}
|
|
9682
10176
|
finally {
|
|
9683
10177
|
this.#barApplying = false;
|
|
9684
10178
|
}
|
|
9685
10179
|
this.tableOption()?.filter?.onClearFilter?.();
|
|
9686
10180
|
};
|
|
10181
|
+
/** Giá trị đã áp dụng của quick filter và external filter bắt buộc (kể cả quick filter ẩn); `undefined` khi không có. */
|
|
10182
|
+
#requiredFilterValues = () => {
|
|
10183
|
+
const filter = this.tableOption()?.filter;
|
|
10184
|
+
const current = this.filterRegister.value.get();
|
|
10185
|
+
const quick = {};
|
|
10186
|
+
const external = {};
|
|
10187
|
+
for (const item of filter?.quickSearch?.filters ?? []) {
|
|
10188
|
+
if (item.required && current.quickSearch?.filters && item.field in current.quickSearch.filters) {
|
|
10189
|
+
quick[item.field] = current.quickSearch.filters[item.field];
|
|
10190
|
+
}
|
|
10191
|
+
}
|
|
10192
|
+
for (const item of filter?.externalFilters ?? []) {
|
|
10193
|
+
if (item.required && current.externalFilter && item.field in current.externalFilter)
|
|
10194
|
+
external[item.field] = current.externalFilter[item.field];
|
|
10195
|
+
}
|
|
10196
|
+
return Object.keys(quick).length || Object.keys(external).length ? { quick, external } : undefined;
|
|
10197
|
+
};
|
|
9687
10198
|
/**
|
|
9688
10199
|
* Raw → thanh. Không đặt lại `barFilters` khi kết quả y hệt (chip giữ identity, không vòng lặp: thanh chỉ phát
|
|
9689
10200
|
* `apply` khi người dùng thao tác). Đang mở popover / dựng chip thì hoãn tới khi đóng.
|
|
@@ -10117,7 +10628,7 @@ class SdTable {
|
|
|
10117
10628
|
this.#refreshAggregate();
|
|
10118
10629
|
}
|
|
10119
10630
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: SdTable, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
10120
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.25", type: SdTable, isStandalone: true, selector: "sd-table", inputs: { autoIdInput: { classPropertyName: "autoIdInput", publicName: "autoId", isSignal: true, isRequired: false, transformFunction: null }, option: { classPropertyName: "option", publicName: "option", isSignal: true, isRequired: true, transformFunction: null }, hideReadError: { classPropertyName: "hideReadError", publicName: "hideReadError", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { sdReadStateChange: "sdReadStateChange" }, host: { attributes: { "tabindex": "0" }, properties: { "attr.data-autoid": "autoId()", "attr.data-loading": "loading() ? \"true\" : \"false\"", "attr.data-loading-view": "loadingView()", "attr.data-filter-mode": "effectiveFilterMode()", "class.sd-table--fill": "fill()", "class.sd-table--cards": "mobileCards()" } }, providers: [
|
|
10631
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.25", type: SdTable, isStandalone: true, selector: "sd-table", inputs: { autoIdInput: { classPropertyName: "autoIdInput", publicName: "autoId", isSignal: true, isRequired: false, transformFunction: null }, option: { classPropertyName: "option", publicName: "option", isSignal: true, isRequired: true, transformFunction: null }, hideReadError: { classPropertyName: "hideReadError", publicName: "hideReadError", isSignal: true, isRequired: false, transformFunction: null }, syncQueryParams: { classPropertyName: "syncQueryParams", publicName: "syncQueryParams", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { sdReadStateChange: "sdReadStateChange" }, host: { attributes: { "tabindex": "0" }, properties: { "attr.data-autoid": "autoId()", "attr.data-loading": "loading() ? \"true\" : \"false\"", "attr.data-loading-view": "loadingView()", "attr.data-filter-mode": "effectiveFilterMode()", "class.sd-table--fill": "fill()", "class.sd-table--cards": "mobileCards()" } }, providers: [
|
|
10121
10632
|
DatePipe,
|
|
10122
10633
|
DecimalPipe,
|
|
10123
10634
|
CdkColumnDef,
|
|
@@ -10129,7 +10640,7 @@ class SdTable {
|
|
|
10129
10640
|
provide: MatPaginatorIntl,
|
|
10130
10641
|
useClass: SdTablePaginatorIntl,
|
|
10131
10642
|
},
|
|
10132
|
-
], queries: [{ propertyName: "dataStateTemplate", first: true, predicate: SdDataStateTemplateDirective, descendants: true, isSignal: true }, { propertyName: "sdSubInformation", first: true, predicate: SdTableExpandDefDirective, descendants: true, isSignal: true }, { propertyName: "sdGroupDef", first: true, predicate: SdTableGroupDefDirective, descendants: true, isSignal: true }, { propertyName: "sdCellDefs", predicate: SdTableCellDefDirective, isSignal: true }, { propertyName: "sdCommandHeaderDef", first: true, predicate: SdTableCommandHeaderDefDirective, descendants: true, isSignal: true }, { propertyName: "sdQuickSearchRightDef", first: true, predicate: SdTableQuickSearchRightDefDirective, descendants: true, isSignal: true }, { propertyName: "sdFooterDefs", predicate: SdMaterialFooterDefDirective, isSignal: true }, { propertyName: "sdFilterDefs", predicate: SdTableFilterDefDirective, isSignal: true }, { propertyName: "sdTitleDefs", predicate: SdTableTitleDefDirective, isSignal: true }, { propertyName: "sdRowMobileDef", first: true, predicate: SdTableRowMobileDefDirective, isSignal: true }], viewQueries: [{ propertyName: "table", first: true, predicate: MatTable, descendants: true, isSignal: true }, { propertyName: "configComponent", first: true, predicate: ConfigComponent, descendants: true, isSignal: true }, { propertyName: "sdPopupExport", first: true, predicate: SdPopupExport, descendants: true, isSignal: true }, { propertyName: "scroll", first: true, predicate: SdScrollDirective, descendants: true, isSignal: true }, { propertyName: "quickAction", first: true, predicate: SdQuickAction, descendants: true, isSignal: true }, { propertyName: "externalFilter", first: true, predicate: ExternalFilterComponent, descendants: true, isSignal: true }, { propertyName: "mobileFilter", first: true, predicate: MobileFilterComponent, descendants: true, isSignal: true }, { propertyName: "paginator", first: true, predicate: MatPaginator, descendants: true, isSignal: true }, { propertyName: "sort", first: true, predicate: MatSort, descendants: true, isSignal: true }, { propertyName: "quickSearchControl", first: true, predicate: TableQuickSearchComponent, descendants: true, isSignal: true }, { propertyName: "queryBar", first: true, predicate: SdQueryBar, descendants: true, isSignal: true }], ngImport: i0, template: "@let _visibleSelectAll = visibleSelectAll();\n@let _isSelectIndeterminate = isSelectIndeterminate();\n@let _isSelectAll = isSelectAll();\n@let _configuration = configuration();\n@let _tableOption = tableOption()!;\n@let _loading = loading();\n@let _loadingView = loadingView();\n@let _readState = readState();\n@let _hideReadError = hideReadError();\n@let _dataStateTemplate = dataStateTemplate();\n@let _items = items();\n@let _total = total();\n@let _isFiltered = isFiltered();\n@let _requireFiltered = requireFiltered();\n@let _export = _tableOption?.export;\n@let _exporting = exporting();\n@let _titleDef = titleDef();\n@let _autoId = autoId();\n@let _exportTitle = exportTitle();\n@let _cellDef = cellDef();\n@let _footerDef = footerDef();\n@let _sdSubInformation = sdSubInformation();\n@let _configComponent = configComponent();\n@let _mobileFilter = mobileFilter();\n@let _selectedTableItems = selectedTableItems();\n@let _rowCommands = rowCommands();\n@let _mobileCards = mobileCards();\n@let _isMobile = isMobile();\n@let _queryBarMode = queryBarMode();\n@let _queryBarKeys = queryBarModel()?.columnKeys;\n@let _queryBarActive = queryBarActiveKeys();\n@let _showInlineFilter =\n !_queryBarMode &&\n !_isMobile &&\n !_tableOption?.filter?.disabled &&\n _tableOption?.filter?.hideInlineFilter !== true &&\n !(_tableOption?.filter?.hideInlineFilter === 'auto' && !_isFiltered && knownRowCount()! <= 10);\n@let _commandHeaderDef = sdCommandHeaderDef();\n@let _quickSearch = quickSearchOption();\n@let _aggregate = aggregateSnapshot();\n@let _aggregateColumns = aggregateColumns();\n@let _aggregateColumnIds = aggregateColumnIds();\n@let _headerFilterColumns = headerFilterColumns();\n<!-- why: tree kh\u00F4ng c\u00F2n c\u1ED9t ri\u00EAng \u2014 khi KH\u00D4NG c\u00F3 c\u1ED9t Index, icon expand nh\u00FAng v\u00E0o\n c\u1ED9t data \u0111\u1EA7u ti\u00EAn. \u0110\u00E2y l\u00E0 field c\u1EE7a c\u1ED9t \u0111\u00F3 (null n\u1EBFu c\u00F3 Index ho\u1EB7c kh\u00F4ng tree). -->\n@let _treeFirstField = _tableOption?.tree && !_tableOption.index?.enabled ? _configuration?.firstColumns?.[0]?.field : null;\n\n<!-- why: v\u00F9ng status lu\u00F4n c\u00F3 trong DOM, k\u1EC3 c\u1EA3 tr\u01B0\u1EDBc khi c\u00F3 configuration. V\u00F9ng ch\u1EC9 render trong l\u00FAc t\u1EA3i b\u1ECB g\u1EE1\n tr\u01B0\u1EDBc khi screen reader k\u1ECBp \u0111\u1ECDc v\u00E0 kh\u00F4ng b\u00E1o \u0111\u01B0\u1EE3c \"\u0111\u00E3 t\u1EA3i xong\". -->\n<span class=\"sd-table-live\" role=\"status\" aria-live=\"polite\" aria-atomic=\"true\">{{ liveMessage() }}</span>\n@if (_configuration) {\n @if (\n !_queryBarMode && !_mobileCards && !_tableOption.filter?.disabled && !!_tableOption.filter?.externalFilters?.length && filterRegister\n ) {\n <external-filter\n class=\"mb-16\"\n [autoId]=\"_autoId\"\n [filterRegister]=\"filterRegister\"\n [filter]=\"_tableOption.filter!\"\n [externalFilters]=\"_tableOption.filter?.externalFilters!\"\n [collapsedByDefault]=\"externalFilterCollapsedByDefault()\">\n </external-filter>\n }\n @let groupedItems = _items | sdTree: _tableOption.tree : treeRevision() | sdGroup: _tableOption : groupExpandState : groupHost;\n @let renderItems = groupedItems | sdAggregateRows: _aggregate : _tableOption : aggregateRenderHost;\n\n <ng-template #aggregateCell let-cell>\n @if (cell) {\n @if (cell.templateRef) {\n <ng-container *ngTemplateOutlet=\"cell.templateRef; context: cell.context\"></ng-container>\n } @else {\n <span [attr.data-complete]=\"cell.context.isComplete\">{{ cell.text }}</span>\n }\n }\n </ng-template>\n <ng-template #inlineColumnFilter let-column>\n <column-filter\n [autoId]=\"_autoId\"\n [value]=\"columnFilter?.[column.field!]!\"\n [operator]=\"columnOperator[column.field]\"\n (operatorChange)=\"columnOperator[column.field] = $event!; onOperatorChange(column, $event)\"\n [columnFilter]=\"columnFilter!\"\n [cacheValues]=\"cacheValues\"\n [column]=\"column\"\n (filterChange)=\"onFilterChange()\"\n (filterCommit)=\"onFilterCommit()\">\n </column-filter>\n </ng-template>\n <!-- Icon l\u1ECDc \u1EDF header c\u1ED9t (mode query-bar): m\u1EDF chip c\u1EE7a field tr\u00EAn thanh. why: n\u1EB1m c\u1EA1nh .c-header-title ch\u1EE9 kh\u00F4ng\n n\u1EB1m trong \u2014 title sort \u0111\u01B0\u1EE3c l\u00E0 role=button v\u00E0 b\u1EAFt Enter, l\u1ED3ng button v\u00E0o s\u1EBD th\u00E0nh nested-interactive v\u00E0 Enter\n tr\u00EAn icon s\u1EBD sort. Ch\u1EB7n mousedown/click \u0111\u1EC3 kh\u00F4ng sort, kh\u00F4ng b\u1EAFt \u0111\u1EA7u k\u00E9o c\u1ED9t. aria-haspopup theo \u0111\u00FAng th\u1EE9 m\u1EDF ra:\n menu c\u1EE7a chip (popover), ho\u1EB7c v\u1EDBi editor inline th\u00EC kh\u00F4ng g\u00EC (chip \u0111\u00E3 c\u00F3, ch\u1EC9 focus) / menu to\u00E1n t\u1EED / b\u1ED9 ch\u1ECDn\n gi\u00E1 tr\u1ECB c\u1EE7a chip \u0111ang d\u1EF1ng. -->\n <ng-template #queryBarTrigger let-column>\n @let _triggerKey = _queryBarKeys?.get(column.field);\n @if (_triggerKey) {\n @let _triggerActive = _queryBarActive.has(_triggerKey);\n <button\n type=\"button\"\n class=\"sd-table-filter-trigger\"\n [class.sd-table-filter-trigger--active]=\"_triggerActive\"\n [attr.data-autoid]=\"_autoId ? _autoId + '-filter-trigger-' + column.field : null\"\n [attr.aria-label]=\"filterTriggerLabel(column, _triggerActive)\"\n [attr.aria-haspopup]=\"queryBarTriggerPopup(_triggerKey)\"\n (mousedown)=\"$event.stopPropagation()\"\n (click)=\"$event.stopPropagation(); openQueryBarField(_triggerKey, $event.currentTarget)\">\n <sd-icon name=\"filter_alt\" aria-hidden=\"true\"></sd-icon>\n </button>\n }\n </ng-template>\n <ng-template #mobileAggregate let-summary=\"summary\">\n <div class=\"sd-mobile-aggregate p-12\" role=\"region\" [attr.aria-label]=\"'core.component.table.mobile.summary' | sdTranslate\">\n @for (entry of _aggregateColumns; track entry.field) {\n @let cell = summary.cells.get(entry.field);\n @if (cell && entry.column) {\n <div class=\"d-flex align-items-center flex-wrap gap-8 py-8\">\n <column-title [column]=\"entry.column\" [titleDef]=\"_titleDef[entry.field]\"></column-title>\n <ng-container *ngTemplateOutlet=\"aggregateCell; context: { $implicit: cell }\"></ng-container>\n </div>\n }\n }\n </div>\n </ng-template>\n\n <!-- Tree toggle d\u00F9ng chung: indent (theo c\u1EA5p) + slot chevron/spinner. Nh\u00FAng v\u00E0o\n c\u1ED9t Index ho\u1EB7c c\u1ED9t data \u0111\u1EA7u qua *ngTemplateOutlet (context: { row }). -->\n <ng-template #sdTreeToggle let-row=\"row\">\n @let _tree = row?.meta?.tree;\n @if (_tree) {\n <span class=\"sd-tree-indent\" [style.width.px]=\"(_tree.level ?? 0) * (_tableOption.tree?.indentSize ?? 20)\"></span>\n <span class=\"sd-tree-toggle-slot\">\n @if (_tree.hasChildren) {\n @let _aid = _autoId;\n @let _expanding = !!_tree.isExpanding;\n <!-- why: n\u00FAt lu\u00F4n n\u1EB1m trong DOM, ch\u1EC9 \u0111\u1ED5i icon th\u00E0nh spinner khi \u0111ang t\u1EA3i con; g\u1EE1 n\u00FAt l\u00E0m focus b\u00E0n ph\u00EDm r\u01A1i\n v\u1EC1 body. Click trong l\u00FAc t\u1EA3i b\u1ECB onTreeToggle b\u1ECF qua. -->\n <button\n type=\"button\"\n class=\"sd-tree-toggle-btn\"\n [attr.data-autoid]=\"_aid ? _aid + '-tree-toggle-' + row.meta.id : null\"\n [attr.aria-label]=\"'core.component.table.tree-toggle' | sdTranslate\"\n [attr.aria-expanded]=\"!!_tree.isExpanded\"\n [attr.aria-busy]=\"_expanding ? 'true' : null\"\n [attr.aria-disabled]=\"_expanding ? 'true' : null\"\n (click)=\"onTreeToggle(row); $event.stopPropagation()\">\n @if (_expanding) {\n <span class=\"sd-table-spinner\" aria-hidden=\"true\"></span>\n } @else {\n <sd-icon [name]=\"_tree.isExpanded ? 'expand_more' : 'chevron_right'\"></sd-icon>\n }\n </button>\n }\n </span>\n }\n </ng-template>\n\n <ng-template #sdGroupHeader let-item=\"item\">\n <div class=\"sd-group-row d-flex align-items-center py-8\">\n @if (_tableOption.selector?.visible && !_tableOption.selector?.single) {\n <div class=\"sd-group-selection-slot d-flex align-items-center justify-content-center\">\n <mat-checkbox\n class=\"c-selection\"\n color=\"primary\"\n [checked]=\"isGroupAllSelected(item)\"\n [indeterminate]=\"isGroupIndeterminate(item)\"\n (change)=\"onSelectGroup(item, $event.checked)\">\n </mat-checkbox>\n </div>\n } @else {\n <div class=\"sd-group-selection-slot\"></div>\n }\n @if (_tableOption.group?.collapsible) {\n <sd-button\n [autoId]=\"_autoId ? _autoId + '-group-toggle-' + (item.meta.group?.key || item.meta.id) : null\"\n type=\"text\"\n [prefixIcon]=\"item.meta.group.isExpanded ? 'expand_more' : 'chevron_right'\"\n width=\"32px\"\n (click)=\"toggleGroupExpand(item)\">\n </sd-button>\n }\n @if (sdGroupDef()?.templateRef; as tpl) {\n <ng-container *ngTemplateOutlet=\"tpl; context: groupContext(item)\"></ng-container>\n } @else {\n <span class=\"T14R\">{{ item.meta.group.values | json }}</span>\n }\n </div>\n </ng-template>\n\n <ng-content select=\"[sdTableTop]\"></ng-content>\n @let _queryBarOption = queryBarOption();\n <div\n class=\"sd-table-surface\"\n [class.sd-table-surface--quick-search]=\"!!_quickSearch && !_queryBarMode\"\n [class.sd-table-surface--query-bar]=\"_queryBarMode && !!_queryBarOption\">\n @if (_queryBarMode) {\n <!-- why: thanh n\u1EB1m tr\u00EAn .c-container, ngo\u00E0i l\u1EDBp loading (l\u00E0m m\u1EDD .c-table) \u2014 lu\u00F4n b\u1EA5m \u0111\u01B0\u1EE3c khi \u0111ang t\u1EA3i. -->\n @if (_queryBarOption) {\n @let _queryBarHint = queryBarHint();\n <sd-query-bar\n class=\"sd-table-query-bar\"\n role=\"search\"\n [attr.aria-label]=\"'core.component.table.filter' | sdTranslate\"\n [attr.data-autoid]=\"_autoId ? _autoId + '-query-bar' : null\"\n [option]=\"_queryBarOption\"\n [(filters)]=\"barFilters\"\n [(search)]=\"barSearch\"\n (apply)=\"onQueryBarApply($event)\">\n @if (sdQuickSearchRightDef(); as _right) {\n <div sdQueryBarEnd class=\"sd-table-query-bar-end\"><ng-container [ngTemplateOutlet]=\"_right.templateRef\" /></div>\n }\n </sd-query-bar>\n @if (_queryBarHint) {\n <p class=\"sd-table-query-bar-hint\" [id]=\"queryBarHintId\">\n <sd-icon name=\"error_outline\" aria-hidden=\"true\"></sd-icon>\n <span>{{ _queryBarHint }}</span>\n </p>\n }\n }\n } @else if (_quickSearch && !_mobileCards) {\n <sd-table-quick-search\n [option]=\"_quickSearch\"\n [value]=\"quickSearchValue()\"\n [autoId]=\"_autoId\"\n [rightTemplate]=\"sdQuickSearchRightDef()?.templateRef\"\n (valueChange)=\"onQuickSearchChange($event)\" />\n }\n @if (_mobileCards) {\n @let _tools = mobileToolsActions();\n @let _hasChips = !!mobileFilterModel()?.items?.length;\n @let _sortable = mobileSortAvailable();\n <!-- Phone top row (handoff table-mobile 2): the search, Reload for keyboards (shown on focus), the sort button\n when there is no chip row, and \u22EE Tools. -->\n <div\n class=\"sd-mobile-top\"\n [class.sd-mobile-top--chips]=\"_hasChips\"\n [class.sd-mobile-top--no-search]=\"!_quickSearch\"\n [class.sd-mobile-top--empty]=\"!_quickSearch && (_hasChips || !_sortable) && !_tools.length\">\n @if (_quickSearch) {\n <sd-table-quick-search\n class=\"sd-mobile-top-search\"\n [option]=\"_quickSearch\"\n [value]=\"quickSearchValue()\"\n [autoId]=\"_autoId\"\n [rightTemplate]=\"sdQuickSearchRightDef()?.templateRef\"\n (valueChange)=\"onQuickSearchChange($event)\" />\n }\n @if (_tableOption.reload?.visible) {\n <button\n mat-icon-button\n type=\"button\"\n class=\"sd-mobile-top-button sd-mobile-reload\"\n [attr.aria-label]=\"'core.component.table.reload' | sdTranslate\"\n [attr.data-autoid]=\"_autoId ? _autoId + '-mobile-reload' : null\"\n (click)=\"reload()\">\n <sd-icon name=\"refresh\" size=\"22px\"></sd-icon>\n </button>\n }\n @if (!_hasChips && _sortable) {\n <button\n mat-icon-button\n type=\"button\"\n class=\"sd-mobile-top-button\"\n aria-haspopup=\"dialog\"\n [attr.aria-label]=\"mobileSortLabel()\"\n [attr.data-autoid]=\"_autoId ? _autoId + '-mobile-sort' : null\"\n (click)=\"mobileSortSheet.open()\">\n <sd-icon name=\"swap_vert\" size=\"22px\"></sd-icon>\n </button>\n }\n @if (_tools.length) {\n <button\n mat-icon-button\n type=\"button\"\n class=\"sd-mobile-top-button\"\n aria-haspopup=\"dialog\"\n [attr.aria-label]=\"'core.component.table.mobile.tools' | sdTranslate\"\n [attr.data-autoid]=\"_autoId ? _autoId + '-mobile-tools' : null\"\n (click)=\"mobileTools.open()\">\n <sd-icon name=\"more_vert\" size=\"22px\"></sd-icon>\n </button>\n <sd-table-mobile-tools-sheet #mobileTools [table]=\"this\" [actions]=\"_tools\"></sd-table-mobile-tools-sheet>\n }\n </div>\n @if (_hasChips) {\n <!-- Phone: filter chips under the search (handoff table-mobile 3). -->\n <sd-table-mobile-filter-chips\n [table]=\"this\"\n [model]=\"mobileFilterModel()\"\n [value]=\"mobileFilterValue()\"\n [sortAvailable]=\"_sortable\"\n [sortLabel]=\"mobileSortLabel()\"\n (sortOpen)=\"mobileSortSheet.open()\"></sd-table-mobile-filter-chips>\n }\n <sd-table-mobile-sort-sheet #mobileSortSheet [table]=\"this\"></sd-table-mobile-sort-sheet>\n }\n <div class=\"c-container\" [class.sd-table-mobile]=\"_mobileCards\">\n <!-- why: l\u1EDBp loading kh\u00F4ng ph\u1EE7 l\u00EAn b\u1EA3ng: header, filter, sort v\u00E0 thanh cu\u1ED9n lu\u00F4n d\u00F9ng \u0111\u01B0\u1EE3c. Ch\u01B0a c\u00F3 d\u00F2ng th\u00EC\n khung x\u01B0\u01A1ng (matNoDataRow); \u0111\u00E3 c\u00F3 d\u00F2ng th\u00EC gi\u1EEF d\u00F2ng c\u0169, qu\u00E1 showDelay m\u1EDBi l\u00E0m m\u1EDD d\u00F2ng v\u00E0 hi\u1EC7n thanh ti\u1EBFn\n tr\u00ECnh. aria-busy v\u1EABn theo loading() th\u1EADt; v\u00F9ng .sd-table-live b\u00E1o \"\u0111ang t\u1EA3i\"/\"\u0111\u00E3 t\u1EA3i xong\". -->\n <div\n #cTable\n class=\"c-table\"\n sdScroll\n stickyShadow\n matSort\n [matSortDisabled]=\"!_tableOption.sort?.enable\"\n [class.c-table--dim]=\"_loadingView === 'refresh' && loadingSettings().dim\"\n [attr.aria-busy]=\"_loading ? 'true' : null\"\n [style.max-height]=\"_tableOption.style?.maxHeight\"\n [style.min-height]=\"_tableOption.style?.minHeight\">\n @if (_mobileCards) {\n <!-- Pull to refresh replaces Reload on phones (handoff table-mobile 7). -->\n <sd-table-pull-refresh\n [target]=\"cTable\"\n [enabled]=\"!!_tableOption.reload?.visible\"\n [loading]=\"_loading\"\n (refresh)=\"reload()\"></sd-table-pull-refresh>\n @if (_commandHeaderDef) {\n <div class=\"sd-mobile-command-header\"><ng-container *ngTemplateOutlet=\"_commandHeaderDef.templateRef\"></ng-container></div>\n }\n @if (_loadingView === 'refresh') {\n <!-- Mobile: kh\u00F4ng c\u00F3 header b\u1EA3ng; thanh n\u1EB1m \u1EDF m\u00E9p tr\u00EAn danh s\u00E1ch th\u1EBB, d\u01B0\u1EDBi command header. Anchor cao 0\n n\u00EAn thanh hi\u1EC7n/\u1EA9n kh\u00F4ng \u0111\u1EA9y th\u1EBB. -->\n <div class=\"sd-table-progress-anchor\">\n <div class=\"sd-table-progress\" aria-hidden=\"true\"></div>\n </div>\n }\n <sd-table-mobile-cards\n [table]=\"this\"\n [body]=\"mobileBody()\"\n [rows]=\"renderItems\"\n [dataRows]=\"groupedItems\"\n [groupTemplate]=\"sdGroupHeader\"\n [aggregateTemplate]=\"mobileAggregate\"></sd-table-mobile-cards>\n @if (_aggregate.total; as summary) {\n <ng-container *ngTemplateOutlet=\"mobileAggregate; context: { summary: summary }\"></ng-container>\n }\n @if (hasFooter()) {\n <div class=\"sd-mobile-footer p-12\" role=\"region\" [attr.aria-label]=\"'core.component.table.mobile.summary' | sdTranslate\">\n @for (column of mobileFooterColumns(); track column.field) {\n <div class=\"d-flex align-items-center flex-wrap gap-8 py-8\">\n <column-title [column]=\"column\" [titleDef]=\"_titleDef[column.field]\"></column-title>\n <ng-container\n *ngTemplateOutlet=\"_footerDef[column.field].templateRef; context: { items: _items, column: column }\"></ng-container>\n </div>\n }\n </div>\n }\n } @else {\n <table\n mat-table\n [class.sd-table-grouped-header]=\"_configuration.multipleHeader\"\n sdAggregateLayout\n [dataSource]=\"renderItems\"\n [trackBy]=\"trackBy\"\n multiTemplateDataRows\n cdkDropList\n [cdkDropListData]=\"groupedItems\"\n [cdkDropListDisabled]=\"!_tableOption.rowReorder?.enabled\"\n [cdkDropListSortPredicate]=\"reorderSortPredicate\"\n (cdkDropListDropped)=\"onReorderDrop($event)\">\n @if (_tableOption.rowReorder?.enabled) {\n <ng-container matColumnDef=\"sdReorder\">\n <th mat-header-cell *matHeaderCellDef class=\"sd-reorder-header\" [attr.rowspan]=\"_configuration.multipleHeader ? 2 : 1\"></th>\n <td mat-cell *matCellDef=\"let row\" class=\"sd-reorder-cell\">\n @if (!row.meta?.group?.items?.length) {\n <sd-icon\n cdkDragHandle\n [class.sd-reorder-disabled]=\"isReorderDisabled(row)\"\n [name]=\"_tableOption.rowReorder?.icon || 'drag_indicator'\"></sd-icon>\n }\n </td>\n <td mat-footer-cell *matFooterCellDef></td>\n </ng-container>\n }\n\n <ng-container matColumnDef=\"sdSubInformation\" sticky>\n <td class=\"p-0\" mat-cell *matCellDef=\"let item\" [attr.colspan]=\"_configuration.displayedColumns.length\">\n @if (_sdSubInformation?.templateRef) {\n @if (_tableOption.expand?.always) {\n <ng-container *ngTemplateOutlet=\"_sdSubInformation?.templateRef!; context: { item: item }\"> </ng-container>\n } @else {\n <div [@detailExpand]=\"item.meta.expand?.isExpanded ? 'expanded' : 'collapsed'\">\n @if (item.meta.expand?.isExpanded) {\n <ng-container *ngTemplateOutlet=\"_sdSubInformation?.templateRef!; context: { item: item }\"> </ng-container>\n }\n </div>\n }\n }\n </td>\n <td mat-footer-cell *matFooterCellDef></td>\n </ng-container>\n\n <ng-container matColumnDef=\"sdSubInformationAction\" stickyEnd>\n <th\n class=\"p-0\"\n mat-header-cell\n *matHeaderCellDef\n style=\"width: 1px\"\n [attr.rowspan]=\"_configuration.multipleHeader ? 2 : 1\"></th>\n <td mat-cell *matCellDef=\"let element\">\n @if (!_tableOption.expand?.always) {\n @let _expanding = !!element.meta.expand?.isExpanding;\n <!-- why: n\u00FAt 35px gi\u1EEF nguy\u00EAn khi \u0111ang t\u1EA3i ([loading] thay prefix icon b\u1EB1ng spinner) \u0111\u1EC3 focus b\u00E0n ph\u00EDm\n kh\u00F4ng m\u1EA5t; onExpand b\u1ECF qua click trong l\u00FAc t\u1EA3i. color primary ch\u1EC9 \u0111\u1EC3 spinner theo m\u00E0u nh\u1EA5n. -->\n <sd-button\n [autoId]=\"_autoId ? _autoId + '-expand-' + element.meta.id : null\"\n type=\"text\"\n [color]=\"_expanding ? 'primary' : null\"\n [loading]=\"_expanding\"\n [attr.aria-busy]=\"_expanding ? 'true' : null\"\n [prefixIcon]=\"element.meta.expand?.isExpanded ? 'expand_less' : 'expand_more'\"\n (click)=\"onExpand(element)\"\n width=\"35px\">\n </sd-button>\n }\n </td>\n </ng-container>\n\n <ng-container matColumnDef=\"sdSelection\" sticky>\n <th class=\"sd-selection-cell p-0\" mat-header-cell *matHeaderCellDef [attr.rowspan]=\"_configuration.multipleHeader ? 2 : 1\">\n @if (_visibleSelectAll) {\n <mat-checkbox\n class=\"c-selection px-8\"\n color=\"primary\"\n [indeterminate]=\"_isSelectIndeterminate\"\n [ngModel]=\"_isSelectAll\"\n (ngModelChange)=\"isSelectAll.set($event)\"\n (change)=\"onSelectAll()\">\n </mat-checkbox>\n }\n </th>\n\n <td class=\"sd-selection-cell p-0\" mat-cell *matCellDef=\"let item\">\n @let visible = item.meta.selector?.visible;\n @if (visible) {\n @if (_tableOption.selector?.single) {\n <mat-radio-button\n class=\"c-selection px-8\"\n color=\"primary\"\n [checked]=\"item.meta.selector.isSelected\"\n (change)=\"item.meta.selector.isSelected = true; onSelect(item)\"\n [disabled]=\"item.meta.selector?.disabled\">\n </mat-radio-button>\n } @else {\n <mat-checkbox\n class=\"c-selection px-8\"\n color=\"primary\"\n [(ngModel)]=\"item.meta.selector.isSelected\"\n (change)=\"onSelect(item)\"\n [disabled]=\"item.meta.selector?.disabled\">\n </mat-checkbox>\n }\n }\n </td>\n <td mat-footer-cell *matFooterCellDef></td>\n </ng-container>\n @if (_tableOption.index?.enabled) {\n @let _pageOffset = pageOffset();\n @let _indexWidth = _tableOption.index?.width || '50px';\n <!-- why: khi tree, c\u1ED9t Index \"\u00F4m\" th\u00EAm chevron + indent. D\u00F9ng width:1px +\n nowrap (.sd-tree-index-cell) \u0111\u1EC3 c\u1ED9t co S\u00C1T n\u1ED9i dung, kh\u00F4ng chi\u1EBFm ch\u1ED7\n th\u1EEBa; header \"#\" canh tr\u00E1i l\u00F9i v\u00E0o (.sd-tree-index-header) cho th\u1EB3ng s\u1ED1. -->\n @let _treeIndex = !!_tableOption.tree;\n <ng-container matColumnDef=\"sdIndex\" sticky>\n <th\n [class.p-0]=\"!_treeIndex\"\n [class.text-center]=\"!_treeIndex\"\n [class.sd-tree-index-cell]=\"_treeIndex\"\n [class.sd-tree-index-header]=\"_treeIndex\"\n mat-header-cell\n *matHeaderCellDef\n [style.width]=\"_treeIndex ? '1px' : _indexWidth\"\n [style.min-width]=\"_treeIndex ? null : _indexWidth\"\n [style.max-width]=\"_treeIndex ? null : _indexWidth\"\n [attr.rowspan]=\"_configuration.multipleHeader ? 2 : 1\">\n {{ _tableOption.index?.title || '#' }}\n </th>\n <td\n [class.px-4]=\"!_treeIndex\"\n [class.text-center]=\"!_treeIndex\"\n [class.sd-tree-index-cell]=\"_treeIndex\"\n mat-cell\n *matCellDef=\"let item; let i = dataIndex\"\n [style.width]=\"_treeIndex ? '1px' : null\"\n [style.min-width]=\"_treeIndex ? null : _indexWidth\"\n [style.max-width]=\"_treeIndex ? null : _indexWidth\">\n @if (!item?.meta?.group?.isGroupHeader) {\n @if (_treeIndex) {\n <!-- why: tree \u2192 chevron + indent + STT ph\u00E2n c\u1EA5p (1, 1.2, 1.2.1). T\u00F4 \u0111\u1EADm root (level 0). -->\n <span class=\"sd-tree-line\">\n <ng-container *ngTemplateOutlet=\"sdTreeToggle; context: { row: item }\"></ng-container>\n @if (item?.meta?.tree?.indexPath?.length) {\n <span class=\"sd-tree-stt\" [class.sd-stt-root]=\"(item.meta.tree.level ?? 0) === 0\">\n {{ item.meta.tree.indexPath.join('.') }}\n </span>\n }\n </span>\n } @else {\n {{ _pageOffset + (aggregateRenderHost.indices.get(item) ?? i) + 1 }}\n }\n }\n </td>\n <td\n mat-footer-cell\n *matFooterCellDef\n [style.width]=\"_treeIndex ? '1px' : null\"\n [style.min-width]=\"_treeIndex ? null : _indexWidth\"\n [style.max-width]=\"_treeIndex ? null : _indexWidth\"></td>\n </ng-container>\n }\n <ng-container\n matColumnDef=\"sdCommand\"\n [sticky]=\"_tableOption.command?.align !== 'right'\"\n [stickyEnd]=\"_tableOption.command?.align === 'right'\">\n <!-- why: \u00F4 header c\u1EE7a c\u1ED9t command v\u1ED1n \u0111\u1EC3 tr\u1ED1ng. Cho consumer chi\u1EBFm ch\u1ED7 \u0111\u00F3 b\u1EB1ng\n `sdTableCommandHeaderDef` (th\u01B0\u1EDDng l\u00E0 n\u00FAt th\u00EAm d\u00F2ng) th\u00EC h\u00E0nh \u0111\u1ED9ng c\u1EA5p b\u1EA3ng n\u1EB1m ngay\n tr\u00EAn c\u1EE5m n\u00FAt c\u1EE7a t\u1EEBng d\u00F2ng, thay v\u00EC ph\u1EA3i d\u1EF1ng th\u00EAm m\u1ED9t d\u1EA3i ri\u00EAng d\u01B0\u1EDBi b\u1EA3ng. -->\n <th class=\"p-0\" mat-header-cell *matHeaderCellDef style=\"width: 50px\" [attr.rowspan]=\"_configuration.multipleHeader ? 2 : 1\">\n @if (_commandHeaderDef) {\n <div class=\"sd-command-header d-flex align-items-center justify-content-center\">\n <ng-container *ngTemplateOutlet=\"_commandHeaderDef.templateRef\"></ng-container>\n </div>\n }\n </th>\n <!-- why: `dataIndex` do CDK c\u1EA5p s\u1EB5n. B\u1EA3n c\u0169 d\u00F9ng `groupedItems.indexOf(item)` \u2014\n qu\u00E9t to\u00E0n m\u1EA3ng cho M\u1ED6I d\u00F2ng render \u1EDF M\u1ED6I CD pass (O(n\u00B2) tr\u00EAn \u0111\u01B0\u1EDDng render),\n v\u00E0 c\u00F2n tr\u1EA3 sai index khi 2 d\u00F2ng tr\u00F9ng reference. -->\n <td class=\"px-8\" mat-cell *matCellDef=\"let item; let i = dataIndex\">\n <desktop-command\n [autoId]=\"_autoId\"\n [commands]=\"_rowCommands\"\n [item]=\"item\"\n [itemIndex]=\"aggregateRenderHost.indices.get(item) ?? i\"></desktop-command>\n </td>\n <td mat-footer-cell *matFooterCellDef></td>\n </ng-container>\n <!-- why: group header row d\u00F9ng matRowDef RI\u00CANG v\u1EDBi column list ['sdGroupHeader']\n qua predicate when:isGroupHeaderRow. Cell colspan = displayedColumns.length \u0111\u1EC3\n span TO\u00C0N B\u1ED8 width data row. Tr\u00E1nh colspan trick overflow row khi c\u00E1c TD kh\u00E1c render. -->\n <ng-container matColumnDef=\"sdGroupHeader\">\n <td class=\"p-0 sd-group-header-cell\" mat-cell *matCellDef=\"let item\" [attr.colspan]=\"sdGroupColspan()\">\n <ng-container *ngTemplateOutlet=\"sdGroupHeader; context: { item: item }\"></ng-container>\n </td>\n </ng-container>\n <!-- why: filler column \u1EDF cu\u1ED1i h\u1EA5p th\u1EE5 leftover space khi t\u1ED5ng width c\u00E1c c\u1ED9t data < container \u2014 gi\u1EEF cho selection/STT/command kh\u00F4ng b\u1ECB d\u00E3n. -->\n <ng-container matColumnDef=\"sdFiller\">\n <th class=\"sd-filler-cell p-0\" mat-header-cell *matHeaderCellDef [attr.rowspan]=\"_configuration.multipleHeader ? 2 : 1\"></th>\n <td class=\"sd-filler-cell p-0\" mat-cell *matCellDef=\"let item\"></td>\n <td class=\"sd-filler-cell p-0\" mat-footer-cell *matFooterCellDef></td>\n </ng-container>\n @for (column of _configuration.firstColumns; track column.field) {\n <ng-container [matColumnDef]=\"column.field\" [sticky]=\"_configuration.fixedColumn[column.field]\">\n <th\n mat-header-cell\n *matHeaderCellDef\n class=\"px-8 c-th\"\n [class.sd-column-group]=\"column.type === 'children'\"\n [attr.scope]=\"column.type === 'children' ? 'colgroup' : 'col'\"\n [sdColumnResize]=\"!!_tableOption.config?.resizable && column.type !== 'children'\"\n [minWidth]=\"column.minWidth\"\n [maxWidth]=\"column.maxWidth\"\n (resizeEnd)=\"onColumnResize(column.field, $event)\"\n [style.width]=\"column.width\"\n [style.min-width]=\"column.minWidth || column.width\"\n [style.max-width]=\"column.maxWidth\"\n [attr.rowspan]=\"_configuration.multipleHeader && column.type !== 'children' ? 2 : 1\"\n [attr.colspan]=\"column.type === 'children' ? column.children.length : 1\"\n [attr.aria-sort]=\"\n _tableOption.sort?.enable && column.type !== 'children' && column.sortable ? getSortAria(column.field) : null\n \">\n <div\n [class.sd-table-header-cell--trigger]=\"_queryBarMode && column.type !== 'children'\"\n [class.sd-table-header-cell--end]=\"_queryBarMode && column.align === 'right'\">\n <!-- why: sort control ch\u1EC9 \u00F4m title; filter l\u00E0 sibling n\u00EAn kh\u00F4ng th\u00E0nh interactive\n descendant. aria-sort thu\u1ED9c semantic <th>, kh\u00F4ng thu\u1ED9c control n\u00E0y. -->\n @if (column.type === 'children') {\n <div class=\"c-header-title sd-column-group-title\">\n <column-title [column]=\"column\" [titleDef]=\"_titleDef[column.field]\"></column-title>\n </div>\n } @else {\n @if (_tableOption.sort?.enable && column.sortable) {\n <div\n [sdTableSortHeader]=\"column.field\"\n class=\"c-header-title\"\n [class.justify-content-end]=\"column.align === 'right'\"\n [class.text-right]=\"column.align === 'right'\">\n <column-title [column]=\"column\" [titleDef]=\"_titleDef[column.field]\"></column-title>\n </div>\n } @else {\n <div\n class=\"c-header-title\"\n [class.justify-content-end]=\"column.align === 'right'\"\n [class.text-right]=\"column.align === 'right'\">\n <column-title [column]=\"column\" [titleDef]=\"_titleDef[column.field]\"></column-title>\n </div>\n }\n @if (_queryBarMode) {\n <ng-container *ngTemplateOutlet=\"queryBarTrigger; context: { $implicit: column }\"></ng-container>\n }\n @if (_showInlineFilter && !_configuration.multipleHeader) {\n <ng-container *ngTemplateOutlet=\"inlineColumnFilter; context: { $implicit: column }\"></ng-container>\n }\n }\n </div>\n </th>\n <td\n class=\"c-td px-0\"\n [class.d-none]=\"column.type === 'children'\"\n mat-cell\n *matCellDef=\"let item\"\n [sdHoverCopy]=\"(item.data && item.data[column.field]) || ''\"\n [sdHoverCopyDisabled]=\"!column.cell?.copiable\">\n @if (column.type !== 'children' && !item?.meta?.group?.isGroupHeader) {\n @if (_treeFirstField && column.field === _treeFirstField) {\n <!-- why: kh\u00F4ng c\u00F3 c\u1ED9t Index \u2192 chevron + indent nh\u00FAng v\u00E0o c\u1ED9t data \u0111\u1EA7u (nh\u01B0 file explorer). -->\n <span class=\"sd-tree-line px-8\">\n <ng-container *ngTemplateOutlet=\"sdTreeToggle; context: { row: item }\"></ng-container>\n <desktop-cell class=\"d-block\" [column]=\"column\" [item]=\"item\" [cellDef]=\"_cellDef\"></desktop-cell>\n </span>\n } @else {\n <desktop-cell class=\"d-block px-8\" [column]=\"column\" [item]=\"item\" [cellDef]=\"_cellDef\"> </desktop-cell>\n }\n }\n </td>\n <td mat-footer-cell *matFooterCellDef [class.d-none]=\"column.type === 'children'\">\n <ng-container *ngIf=\"_footerDef[column.field]\">\n <ng-container *ngTemplateOutlet=\"_footerDef[column.field].templateRef; context: { items: _items, column: column }\">\n </ng-container>\n </ng-container>\n </td>\n </ng-container>\n }\n @for (column of _configuration.secondColumns; track column.field) {\n <ng-container [matColumnDef]=\"column.field\" [sticky]=\"_configuration.fixedColumn[column.field]\">\n <th\n mat-header-cell\n *matHeaderCellDef\n class=\"c-th px-8\"\n scope=\"col\"\n [style.width]=\"column.width\"\n [style.min-width]=\"column.minWidth || column.width\"\n [style.max-width]=\"column.maxWidth\"\n [attr.aria-sort]=\"_tableOption.sort?.enable && column.sortable ? getSortAria(column.field) : null\">\n <div\n [class.sd-table-header-cell--trigger]=\"_queryBarMode\"\n [class.sd-table-header-cell--end]=\"_queryBarMode && column.align === 'right'\">\n @if (_tableOption.sort?.enable && column.sortable) {\n <div\n [sdTableSortHeader]=\"column.field\"\n class=\"c-header-title\"\n [class.justify-content-end]=\"column.align === 'right'\"\n [class.text-right]=\"column.align === 'right'\">\n <column-title [column]=\"column\" [titleDef]=\"_titleDef[column.field]\"></column-title>\n </div>\n } @else {\n <div\n class=\"c-header-title\"\n [class.justify-content-end]=\"column.align === 'right'\"\n [class.text-right]=\"column.align === 'right'\">\n <column-title [column]=\"column\" [titleDef]=\"_titleDef[column.field]\"></column-title>\n </div>\n }\n @if (_queryBarMode) {\n <ng-container *ngTemplateOutlet=\"queryBarTrigger; context: { $implicit: column }\"></ng-container>\n }\n </div>\n </th>\n <td\n class=\"c-td px-0\"\n mat-cell\n *matCellDef=\"let item\"\n [sdHoverCopy]=\"item[column.field]\"\n [sdHoverCopyDisabled]=\"!column.cell?.copiable\">\n @if (column.type !== 'children') {\n <desktop-cell class=\"d-block px-8\" [column]=\"column\" [item]=\"item\" [cellDef]=\"_cellDef\"> </desktop-cell>\n }\n </td>\n <td mat-footer-cell *matFooterCellDef>\n <ng-container *ngIf=\"_footerDef[column.field]\">\n <ng-container *ngTemplateOutlet=\"_footerDef[column.field].templateRef; context: { items: _items, column: column }\">\n </ng-container>\n </ng-container>\n </td>\n </ng-container>\n }\n <tr class=\"c-first-header\" mat-header-row *matHeaderRowDef=\"_configuration.firstHeaders; sticky: true\"></tr>\n @for (entry of _aggregateColumns; track entry.id) {\n <ng-container [matColumnDef]=\"entry.id\" [sticky]=\"entry.sticky\" [stickyEnd]=\"entry.stickyEnd\">\n <td\n mat-cell\n *matCellDef=\"let row\"\n class=\"sd-aggregate-cell px-8 py-8\"\n [class.d-none]=\"entry.hidden\"\n [style.text-align]=\"entry.column?.align\"\n [style.width]=\"entry.column?.width\"\n [style.min-width]=\"entry.column?.minWidth || entry.column?.width\">\n <ng-container\n *ngTemplateOutlet=\"\n aggregateCell;\n context: { $implicit: aggregateRenderHost.rows.get(row)?.cells?.get(entry.field) }\n \"></ng-container>\n </td>\n <td\n mat-footer-cell\n *matFooterCellDef\n class=\"sd-aggregate-cell px-8 py-8\"\n [class.d-none]=\"entry.hidden\"\n [style.text-align]=\"entry.column?.align\"\n [style.width]=\"entry.column?.width\"\n [style.min-width]=\"entry.column?.minWidth || entry.column?.width\">\n <ng-container\n *ngTemplateOutlet=\"aggregateCell; context: { $implicit: _aggregate.total?.cells?.get(entry.field) }\"></ng-container>\n </td>\n </ng-container>\n }\n <tr mat-row *matRowDef=\"let row; columns: _aggregateColumnIds; when: isAggregateRow\" class=\"sd-aggregate-row\"></tr>\n @if (!!_configuration.secondHeaders.length) {\n <tr class=\"c-second-header\" mat-header-row *matHeaderRowDef=\"_configuration.secondHeaders; sticky: true\"></tr>\n }\n @if (_configuration.multipleHeader) {\n @for (entry of _headerFilterColumns; track entry.id) {\n <ng-container [matColumnDef]=\"entry.id\" [sticky]=\"entry.sticky\" [stickyEnd]=\"entry.stickyEnd\">\n <th\n mat-header-cell\n *matHeaderCellDef\n class=\"c-th sd-filter-header\"\n [class.px-8]=\"!!entry.column\"\n [class.p-0]=\"!entry.column\"\n [class.sd-filler-cell]=\"entry.field === 'sdFiller'\"\n scope=\"col\">\n @if (_showInlineFilter && entry.column) {\n <ng-container *ngTemplateOutlet=\"inlineColumnFilter; context: { $implicit: entry.column }\"></ng-container>\n }\n </th>\n </ng-container>\n }\n <!-- why: gi\u1EEF row definition \u1ED5n \u0111\u1ECBnh; CDK c\u1EADp nh\u1EADt columns \u0111\u1EC3 b\u1ECF controls/sticky offsets khi \u1EA9n filter. -->\n <tr\n class=\"c-filter-header\"\n [style.display]=\"_showInlineFilter ? null : 'none'\"\n mat-header-row\n *matHeaderRowDef=\"_showInlineFilter ? headerFilterColumnIds() : []; sticky: _showInlineFilter\"></tr>\n }\n <!-- Group header row \u2014 ch\u1EC9 1 cell sdGroupHeader colspan to\u00E0n width. -->\n <tr mat-row *matRowDef=\"let row; columns: ['sdGroupHeader']; when: isGroupHeaderRow\" class=\"c-group-row-tr\"></tr>\n\n <!-- Data row \u2014 d\u00F9ng displayedColumns \u0111\u1EA7y \u0111\u1EE7; when isDataRow \u0111\u1EC3 lo\u1EA1i tr\u1EEB group header. -->\n <!-- why: [ngStyle] \u0111\u1ECDc meta.rowStyle \u2014 style.rowCss \u0111\u00E3 \u0111\u01B0\u1EE3c resolve 1 l\u1EA7n m\u1ED7i l\u1EA7n\n render. B\u1EA3n c\u0169 g\u1ECDi rowStyle(row) ngay trong binding \u2192 ch\u1EA1y callback c\u1EE7a consumer\n cho T\u1EEANG d\u00F2ng \u1EDF M\u1ED6I CD pass, v\u00E0 v\u00EC tr\u1EA3 object M\u1EDAI n\u00EAn NgStyle ph\u1EA3i ch\u1EA1y l\u1EA1i\n KeyValueDiffer tr\u00EAn m\u1ECDi d\u00F2ng \u1EDF m\u1ECDi pass. -->\n <tr\n mat-row\n cdkDrag\n [cdkDragData]=\"row\"\n [cdkDragDisabled]=\"\n !_tableOption.rowReorder?.enabled ||\n !!row.meta?.group?.items?.length ||\n (row.meta?.tree?.level ?? 0) > 0 ||\n isReorderDisabled(row)\n \"\n *matRowDef=\"let row; columns: _configuration.displayedColumns; when: isDataRow\"\n matRipple\n class=\"c-row\"\n [class.sd-tree-row]=\"!!_tableOption.tree\"\n [ngClass]=\"_tableOption.tree ? 'sd-tree-level-' + (row.meta?.tree?.level ?? 0) : null\"\n [ngStyle]=\"row.meta.rowStyle\"\n [class.selected]=\"row.meta.selector.isSelected\"></tr>\n\n <!-- Sub-information row \u2014 also gated b\u1EDFi isDataRow \u0111\u1EC3 KH\u00D4NG render empty expand row d\u01B0\u1EDBi group header. -->\n <tr mat-row *matRowDef=\"let row; columns: ['sdSubInformation']; when: isDataRow\" class=\"c-detail-row\"></tr>\n @if (_aggregate.total) {\n <tr mat-footer-row *sdTableFooterRowDef=\"_aggregateColumnIds; sticky: true\" class=\"sd-aggregate-total\"></tr>\n }\n @if (hasFooter() && !!_configuration.displayedFooters.length) {\n <tr mat-footer-row *sdTableFooterRowDef=\"_configuration.displayedFooters; sticky: true\"></tr>\n }\n <!-- why: khung x\u01B0\u01A1ng l\u00E0 d\u00F2ng th\u1EADt trong tbody (matNoDataRow ch\u1EC9 hi\u1EC7n khi kh\u00F4ng c\u00F3 d\u00F2ng d\u1EEF li\u1EC7u) n\u00EAn \u00F4 th\u1EB3ng\n c\u1ED9t v\u1EDBi header, k\u1EC3 c\u1EA3 header nh\u00F3m, m\u00E0 kh\u00F4ng ph\u1EA3i \u0111o; footer v\u1EABn n\u1EB1m d\u01B0\u1EDBi; dataSource kh\u00F4ng \u0111\u1ED5i. -->\n <ng-template matNoDataRow>\n @for (cells of skeleton(); track $index) {\n <tr class=\"sd-table-skeleton-row\" aria-hidden=\"true\">\n @for (cell of cells; track cell.field) {\n <td class=\"sd-table-skeleton-cell\" [class.d-none]=\"cell.hidden\">\n @if (cell.shape !== 'none') {\n <span\n class=\"sd-table-skeleton-bar\"\n [attr.data-shape]=\"cell.shape\"\n [attr.data-align]=\"cell.align\"\n [style.width]=\"cell.width\"\n [style.max-width]=\"cell.maxWidth\"></span>\n }\n </td>\n }\n </tr>\n }\n </ng-template>\n </table>\n }\n @let _readError = _readState.status === 'error';\n <!-- why: d\u00F2ng c\u0169 b\u1ECB g\u1EE1 khi l\u1EA7n \u0111\u1ECDc hi\u1EC7n h\u00E0nh l\u1ED7i, n\u00EAn v\u00F9ng l\u1ED7i/empty ch\u1EC9 hi\u1EC7n khi b\u1EA3ng kh\u00F4ng c\u00F2n d\u00F2ng n\u00E0o\n \u2014 end user kh\u00F4ng bao gi\u1EDD th\u1EA5y d\u1EEF li\u1EC7u v\u00E0 l\u1ED7i c\u00F9ng l\u00FAc (NSP-4877). -->\n @let _noRows = !_readError && !_loading && !_total && !_items.length && _loadingView === 'none';\n @if ((_readError && !_hideReadError) || (_noRows && _readState.status === 'empty' && !!_dataStateTemplate)) {\n <sd-data-state [state]=\"_readError ? 'error' : 'empty'\" [retryable]=\"_readError\" (sdRetry)=\"retryRead()\">\n @if (_dataStateTemplate; as custom) {\n <ng-template sdDataStateTemplate let-current let-retry=\"retry\" let-action=\"action\">\n <ng-container\n [ngTemplateOutlet]=\"custom.template\"\n [ngTemplateOutletContext]=\"{ $implicit: current, state: current, retry: retry, action: action }\"></ng-container>\n </ng-template>\n }\n </sd-data-state>\n } @else if (!_loading && loadError() && !_hideReadError) {\n <!-- why: b\u1EA3ng local l\u1ED7i d\u00F9ng c\u00F9ng giao di\u1EC7n l\u1ED7i v\u1EDBi b\u1EA3ng server (sd-data-state, role=\"alert\") v\u00E0 c\u00F9ng\n sdDataStateTemplate; th\u1EED l\u1EA1i = reload() v\u00EC local kh\u00F4ng c\u00F3 snapshot \u0111\u1ECDc \u0111\u1EC3 retryRead(). -->\n <sd-data-state state=\"error\" [retryable]=\"true\" (sdRetry)=\"reload()\">\n @if (_dataStateTemplate; as custom) {\n <ng-template sdDataStateTemplate let-current let-retry=\"retry\" let-action=\"action\">\n <ng-container\n [ngTemplateOutlet]=\"custom.template\"\n [ngTemplateOutletContext]=\"{ $implicit: current, state: current, retry: retry, action: action }\"></ng-container>\n </ng-template>\n }\n </sd-data-state>\n } @else if (_noRows && !loadError()) {\n <!-- why: empty m\u1EB7c \u0111\u1ECBnh gi\u1EEF 3 tr\u1EA1ng th\u00E1i (filter kh\u00F4ng c\u00F3 k\u1EBFt qu\u1EA3 / ch\u01B0a ch\u1ECDn filter b\u1EAFt bu\u1ED9c / ch\u01B0a c\u00F3 d\u1EEF li\u1EC7u)\n c\u00F9ng \u1EA3nh c\u1EA5u h\u00ECnh qua SD_TABLE_CONFIGURATION.images, cho c\u1EA3 b\u1EA3ng server (NSP-5551). Kh\u00F4ng c\u00F3 role live:\n v\u00F9ng .sd-table-live (lu\u00F4n c\u00F3 trong DOM) \u0111\u1ECDc ti\u00EAu \u0111\u1EC1 c\u1EE7a kh\u1ED1i n\u00E0y. -->\n <div class=\"c-no-data-row\">\n @if (_isFiltered) {\n @if (tableConfiguration?.images?.filterEmpty) {\n <img class=\"c-image\" [src]=\"tableConfiguration!.images!.filterEmpty\" alt=\"filter-empty\" />\n } @else {\n <img class=\"c-image sd-image-filter-empty\" alt=\"filter-empty\" />\n }\n <div class=\"T16M\">{{ 'core.component.table.no-results' | sdTranslate }}</div>\n <div class=\"T16R text-secondary\">{{ 'core.component.table.no-results-hint' | sdTranslate }}</div>\n } @else {\n @if (_requireFiltered) {\n @if (tableConfiguration?.images?.filterRequired) {\n <img class=\"c-image\" [src]=\"tableConfiguration!.images!.filterRequired\" alt=\"filter-required\" />\n } @else {\n <img class=\"c-image sd-image-filter-required\" alt=\"filter-required\" />\n }\n <div class=\"T16R text-secondary\">{{ 'core.component.table.choose-filter-hint' | sdTranslate }}</div>\n } @else {\n @if (tableConfiguration?.images?.dataEmpty) {\n <img class=\"c-image\" [src]=\"tableConfiguration!.images!.dataEmpty\" alt=\"data-empty\" />\n } @else {\n <img class=\"c-image sd-image-data-empty\" alt=\"data-empty\" />\n }\n <div class=\"T16R text-secondary\">{{ 'core.component.table.no-data' | sdTranslate }}</div>\n }\n }\n </div>\n }\n </div>\n @if (_loadingView === 'refresh' && !_mobileCards) {\n <!-- N\u1EB1m trong .c-container, kh\u00F4ng trong .c-table, \u0111\u1EC3 kh\u00F4ng cu\u1ED9n ngang theo b\u1EA3ng; top = --sd-table-head-h (\u0111o). -->\n <div class=\"sd-table-progress\" aria-hidden=\"true\"></div>\n }\n @if (!_mobileCards) {\n <selector-action\n [autoId]=\"_autoId\"\n [tableOption]=\"_tableOption\"\n [selectedTableItems]=\"_selectedTableItems\"\n (clear)=\"onClearSelection()\" />\n }\n <div class=\"c-paginator\">\n <div class=\"c-action\">\n @if (!_mobileCards) {\n @if (_tableOption.reload?.visible) {\n <sd-button\n [autoId]=\"_autoId ? _autoId + '-reload' : null\"\n class=\"mr-8\"\n [title]=\"'core.component.table.reload' | sdTranslate\"\n prefixIcon=\"refresh\"\n (click)=\"reload()\"\n type=\"text\">\n </sd-button>\n }\n @if (_export && _items.length) {\n @if (_export.type === 'custom') {\n <sd-button\n [autoId]=\"_autoId ? _autoId + '-export' : null\"\n class=\"mr-8\"\n [title]=\"_exportTitle\"\n prefixIcon=\"get_app\"\n (click)=\"exportCustom()\"\n type=\"text\">\n </sd-button>\n } @else {\n @if (_export.visible) {\n @if (_exporting) {\n <sd-button\n [autoId]=\"_autoId ? _autoId + '-export' : null\"\n class=\"mr-8\"\n [loading]=\"_exporting\"\n [title]=\"_exportTitle\"\n prefixIcon=\"get_app\"\n type=\"text\">\n </sd-button>\n } @else {\n @if (_export.visible === 'ALL' || !_export.visible) {\n <sd-button\n [autoId]=\"_autoId ? _autoId + '-export' : null\"\n class=\"mr-8\"\n [title]=\"_exportTitle\"\n prefixIcon=\"get_app\"\n type=\"text\">\n <sd-button-item\n [autoId]=\"_autoId ? _autoId + '-export-excel' : null\"\n prefixIcon=\"file_download\"\n (click)=\"exportExcel()\"\n >{{ 'core.component.table.export-excel' | sdTranslate }}</sd-button-item\n >\n <sd-button-item\n [autoId]=\"_autoId ? _autoId + '-export-csv' : null\"\n prefixIcon=\"file_download\"\n (click)=\"exportCSV()\"\n >{{ 'core.component.table.export-csv' | sdTranslate }}</sd-button-item\n >\n </sd-button>\n } @else if (_export.visible === 'EXCEL') {\n <sd-button\n [autoId]=\"_autoId ? _autoId + '-export-excel' : null\"\n class=\"mr-8\"\n [title]=\"_exportTitle\"\n prefixIcon=\"get_app\"\n (click)=\"exportExcel()\"\n type=\"text\">\n </sd-button>\n } @else if (_export.visible === 'CSV') {\n <sd-button\n [autoId]=\"_autoId ? _autoId + '-export-csv' : null\"\n class=\"mr-8\"\n [title]=\"_exportTitle\"\n prefixIcon=\"get_app\"\n (click)=\"exportCSV()\"\n type=\"text\">\n </sd-button>\n }\n }\n }\n }\n }\n\n @if (_configComponent) {\n <sd-button\n [autoId]=\"_autoId ? _autoId + '-config' : null\"\n class=\"mr-8\"\n [title]=\"'core.component.table.setup-short' | sdTranslate\"\n prefixIcon=\"settings\"\n [indicator]=\"!_isMobile && hasCustomSetup()\"\n indicatorColor=\"primary\"\n [indicatorLabel]=\"'core.component.table.config.customized' | sdTranslate\"\n (click)=\"_configComponent.open()\"\n type=\"text\">\n </sd-button>\n }\n <!-- Mobile: n\u00FAt Filter m\u1EDF mobile-filter drawer (inline filter \u1EA9n tr\u00EAn mobile) -->\n @if (_isMobile) {\n @if (!_tableOption.filter?.disabled && _mobileFilter) {\n <sd-button\n [autoId]=\"_autoId ? _autoId + '-mobile-filter-open' : null\"\n class=\"mr-8\"\n prefixIcon=\"filter_alt\"\n [title]=\"_mobileCards ? ('core.component.table.filter' | sdTranslate) : undefined\"\n (click)=\"_mobileFilter.open()\"\n type=\"text\">\n </sd-button>\n }\n }\n }\n </div>\n @let _unknownTotalPager = unknownTotalPager();\n @if (_unknownTotalPager) {\n <!-- paginate.total 'unknown': no total exists, so mat-paginator (which derives Next/Last and the\n range from `length`) is replaced by a pager that renders only the rows actually shown. -->\n @if (!_tableOption.paginate?.hidden && unknownTotalPagerVisible()) {\n <sd-table-unknown-total-paginator\n [class.sd-mobile-paginator]=\"_mobileCards\"\n [state]=\"_unknownTotalPager\"\n [pageSizeOptions]=\"_tableOption.paginate?.pages\"\n [hidePageSize]=\"_isMobile || !!_tableOption.paginate?.hidePageSize\"\n [showFirstButton]=\"!_isMobile && !!_tableOption.paginate?.showFirstLastButtons\"\n [autoId]=\"_autoId\"\n (page)=\"onUnknownTotalPage($event)\"></sd-table-unknown-total-paginator>\n } @else if (!_isMobile && !_tableOption.paginate?.hidden && unknownTotalSingleCount()) {\n <div class=\"T14R c-summary\">\n {{ 'core.component.table.showing' | sdTranslate }} <span class=\"T14M ml-2\">1-{{ unknownTotalSingleCount() }}</span>\n </div>\n }\n } @else {\n @let hidePaginator = !_tableOption.paginate?.pageSize || _total === undefined || _total <= _tableOption.paginate?.pageSize!;\n <mat-paginator\n [class.sd-mobile-paginator]=\"_mobileCards\"\n [class.d-none]=\"_tableOption.paginate?.hidden || hidePaginator\"\n [length]=\"_total\"\n [pageSize]=\"_tableOption.paginate?.pageSize\"\n [pageSizeOptions]=\"_tableOption.paginate?.pages!\"\n [showFirstLastButtons]=\"!_isMobile && _tableOption.paginate?.showFirstLastButtons\"\n [hidePageSize]=\"_isMobile || _tableOption.paginate?.hidePageSize\"\n [selectConfig]=\"{ panelClass: ['sd-select-panel', 'sd-table-page-size-panel'] }\"></mat-paginator>\n <!-- \"\u0110ang hi\u1EC3n th\u1ECB...\" ch\u1EC9 desktop -->\n @if (!_isMobile) {\n @if (!_tableOption.paginate?.hidden && hidePaginator && _total !== undefined && _total > 0) {\n <div class=\"T14R c-summary\">\n {{ 'core.component.table.showing' | sdTranslate }} <span class=\"T14M ml-2\">1-{{ _total }}/{{ _total }}</span>\n </div>\n }\n }\n }\n </div>\n </div>\n </div>\n\n @if (_tableOption.config?.visible) {\n <config\n [autoId]=\"_autoId\"\n [tableOption]=\"_tableOption\"\n [filterSetup]=\"configFilter()\"\n (defaultsRestored)=\"onConfigDefaultsRestored()\"\n (filterApplied)=\"onConfigFilterApplied($event)\" />\n }\n <!-- Mobile filter sheet (bottom sheet, two levels) \u2014 opened by the Filters chip or the footer filter button -->\n @if (!_tableOption.filter?.disabled && filterRegister) {\n <mobile-filter\n [autoId]=\"_autoId\"\n [filter]=\"_tableOption.filter!\"\n [externalFilters]=\"_tableOption.filter?.externalFilters!\"\n [columns]=\"mobileColumns()\"\n [filterDefs]=\"sdFilterDefs()\"\n [filterRegister]=\"filterRegister\"\n [cacheValues]=\"cacheValues\"\n [model]=\"mobileFilterModel()\">\n </mobile-filter>\n }\n} @else if (_readState.status === 'error' && !_hideReadError) {\n <!-- why: lookup c\u00F3 th\u1EC3 l\u1ED7i tr\u01B0\u1EDBc khi c\u00F3 configuration; v\u1EABn ph\u1EA3i c\u00F3 l\u1ED1i retry v\u00E0 custom error template. -->\n <sd-data-state state=\"error\" [retryable]=\"true\" (sdRetry)=\"retryRead()\">\n @if (_dataStateTemplate; as custom) {\n <ng-template sdDataStateTemplate let-current let-retry=\"retry\" let-action=\"action\">\n <ng-container\n [ngTemplateOutlet]=\"custom.template\"\n [ngTemplateOutletContext]=\"{ $implicit: current, state: current, retry: retry, action: action }\"></ng-container>\n </ng-template>\n }\n </sd-data-state>\n} @else if (_loadingView === 'skeleton') {\n <!-- why: lookup c\u1ED9t (values/lazy-values) c\u00F3 th\u1EC3 ch\u1EADm; ch\u01B0a c\u00F3 configuration n\u00EAn ch\u01B0a bi\u1EBFt c\u1ED9t, v\u1EBD khung x\u01B0\u01A1ng chung\n thay v\u00EC \u0111\u1EC3 tr\u1ED1ng. Hydrate kh\u00F4ng c\u00F3 lookup xong trong microtask n\u00EAn kh\u1ED1i n\u00E0y kh\u00F4ng k\u1ECBp hi\u1EC7n. -->\n <div class=\"sd-table-skeleton-block\" aria-hidden=\"true\">\n @for (cells of genericSkeleton; track $index) {\n <div class=\"sd-table-skeleton-block-row\">\n @for (cell of cells; track cell.field) {\n <span class=\"sd-table-skeleton-cell\">\n <span class=\"sd-table-skeleton-bar\" [style.width]=\"cell.width\" [style.max-width]=\"cell.maxWidth\"></span>\n </span>\n }\n </div>\n }\n </div>\n}\n", styles: [":host{display:flex;flex-direction:column;overflow:auto;width:100%;height:100%;--mat-table-row-item-container-height: 36px}:host:focus-visible{outline:var(--sd-focus-ring-width, 2px) solid var(--sd-focus-ring-color, var(--sd-primary));outline-offset:2px}:host .sd-table-live{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}:host .c-header-title{height:40px;display:flex;align-items:center}:host .sd-table-surface{display:flex;flex:1;flex-direction:column;min-width:0;min-height:0;background:var(--sd-surface, #fff);border-radius:var(--sd-radius-6, 6px)}:host .c-container{position:relative;min-height:50px;display:flex;flex-direction:column;flex:1;isolation:isolate}:host .c-container .c-table{position:relative;flex:1;display:flex;flex-direction:column}:host .c-container .c-table table{border-collapse:separate;width:100%}:host .c-container .c-table table tr.c-first-header.mat-mdc-header-row{height:40px}:host .c-container .c-table table tr.c-second-header.mat-mdc-header-row{height:40px}:host .c-container .c-table table.sd-table-grouped-header th.c-th{vertical-align:middle;padding-block:4px}:host .c-container .c-table table.sd-table-grouped-header tr.c-first-header.mat-mdc-header-row{height:32px}:host .c-container .c-table table.sd-table-grouped-header tr.c-filter-header.mat-mdc-header-row{height:auto}:host .c-container .c-table table.sd-table-grouped-header th.sd-filter-header{padding-block:0 8px;vertical-align:bottom}:host .c-container .c-table table.sd-table-grouped-header column-filter{display:flex;align-items:center;min-height:36px}:host .c-container .c-table table.sd-table-grouped-header th.sd-column-group{padding-block:4px;vertical-align:middle;background-color:color-mix(in srgb,var(--sd-border, #c4c6d0) 18%,var(--sd-table-group-header-mix, #f2f3f4));box-shadow:inset 0 -1px var(--sd-border, #c4c6d0)}:host .c-container .c-table table.sd-table-grouped-header th.sd-column-group .sd-column-group-title{height:auto;min-height:24px;justify-content:center;text-align:center;font-weight:var(--sd-font-weight-semibold, 600)}:host .c-container .c-table table tr.c-detail-row{height:0}:host .c-container .c-table table tr.c-row.activated{background-color:var(--sd-table-row-activated-bg, #e5ecff)}:host .c-container .c-table table tr.c-row.selected{background-color:var(--sd-table-row-selected-bg, #eef2ff)}:host .c-container .c-table table tr.c-row:not(.selected):not(.activated):hover{background-color:var(--sd-table-row-hover-bg, #f5f5f5)}:host .c-container .c-table table tr.c-row td{border-bottom-width:0}:host .c-container .c-table table tr.c-row.c-expandable{cursor:pointer}:host .c-container .c-table table tr.c-row.c-expandable:hover{background:var(--sd-table-row-hover-bg, #f5f5f5)}:host .c-container .c-table table th.mat-mdc-header-cell{background-color:var(--sd-table-header-bg, #f2f3f4);border-bottom:0!important}:host .c-container .c-table table td.mat-mdc-cell,:host .c-container .c-table table td.mat-mdc-footer-cell,:host .c-container .c-table table th.mat-mdc-header-cell{border-bottom-color:var(--sd-table-row-divider, #f2f2f2)!important}:host .c-container .c-table .c-th{vertical-align:middle;padding-block:8px;font-weight:var(--sd-font-weight-medium, 500);font-size:var(--sd-font-size-14, 14px);line-height:var(--sd-line-height-20, 20px);color:var(--sd-table-header-text, #212121)}:host .c-container .c-table .c-th.sd-col-resize-host{position:relative}:host .c-container .c-table .c-th.sd-resizing{-webkit-user-select:none;user-select:none}:host .c-container .c-table .c-th .sd-col-resize-handle{position:absolute;top:0;right:0;width:6px;height:100%;cursor:col-resize;-webkit-user-select:none;user-select:none;z-index:2}:host .c-container .c-table .c-th .sd-col-resize-handle:hover{background:color-mix(in srgb,var(--sd-text) 8%,transparent)}:host .c-container .c-table .c-td:first{padding-left:10px}:host .c-container .c-table .c-no-data-row{flex:1;width:100%;position:sticky;left:0;display:flex;flex-direction:column;align-items:center;justify-content:center}:host .c-container .c-table .c-no-data-row .c-image{margin-bottom:16px;width:96px}:host .c-container .c-paginator{display:flex;flex-direction:row;justify-content:space-between;align-items:center;background-color:var(--sd-table-bg, #ffffff)}:host .c-container .c-paginator .mat-mdc-paginator{background:transparent;--mat-paginator-container-size: 40px;--mat-icon-button-state-layer-size: 32px;--mdc-icon-button-state-layer-size: 32px;--mdc-icon-button-icon-size: 20px}:host .c-container .c-paginator .c-action{padding:0}:host .c-container .c-paginator .c-action sd-button{margin:8px 5px}:host .c-container .c-paginator .c-summary{padding:8px 16px}:host .c-container .c-empty{text-align:center;background-color:var(--sd-table-bg, #ffffff);border:none!important}:host .c-container .c-empty sd-icon{font-size:150px;margin-top:30px;margin-bottom:30px;opacity:.2;width:auto;height:auto}:host button.c-btn-add{background-color:var(--sd-table-bg, #ffffff);box-shadow:var(--sd-shadow-sm)}:host .sd-reorder-header,:host .sd-reorder-cell{width:40px;min-width:40px;padding:0 4px;box-sizing:border-box}:host .sd-reorder-cell sd-icon{cursor:grab;color:var(--sd-text-muted);display:flex;align-items:center}:host .sd-reorder-cell sd-icon:active{cursor:grabbing}:host .sd-reorder-cell sd-icon.sd-reorder-disabled{opacity:.3;cursor:not-allowed;pointer-events:none}:host ::ng-deep .sd-mobile-paginator .mat-mdc-paginator-range-label{margin-inline:4px;white-space:nowrap}:host .c-container:not(.sd-table-mobile)>.c-table{border-radius:6px 6px 0 0}:host .c-container:not(.sd-table-mobile)>.c-paginator{border-radius:0}:host .sd-mobile-command-header{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px;padding:4px}:host .c-container.sd-table-mobile .c-paginator{flex-wrap:wrap;gap:4px;min-height:48px}:host .c-container.sd-table-mobile .c-action{display:flex;align-items:center;min-width:0}:host .c-container.sd-table-mobile .sd-mobile-paginator{margin-inline-start:auto}:host .c-container.sd-table-mobile .c-paginator,:host .c-container.sd-table-mobile .c-empty{background-color:var(--sd-surface);color:var(--sd-text)}:host .c-container.sd-table-mobile .c-paginator{background-color:var(--sd-table-bg, #ffffff)}:host ::ng-deep .sd-table-mobile .c-paginator button{min-width:44px;min-height:44px}:host .c-container.sd-table-mobile .c-paginator .sd-mobile-paginator{--mat-icon-button-state-layer-size: 44px;--mdc-icon-button-state-layer-size: 44px}:host ::ng-deep .mat-select-arrow{color:var(--sd-table-select-arrow, #a6a6a6)}:host ::ng-deep .sd-table-sort-header{cursor:pointer;outline:none}:host ::ng-deep .sd-table-sort-header:focus-visible{border-bottom:solid 1px currentColor}:host ::ng-deep th[aria-sort] .sd-table-sort-header{position:relative;padding-right:24px}:host ::ng-deep th[aria-sort] .sd-table-sort-header:after{content:\"\";position:absolute;top:50%;right:0;width:16px;height:16px;transform:translateY(-50%);background-color:var(--sd-text-secondary);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:center;mask-position:center;-webkit-mask-size:16px 16px;mask-size:16px 16px;pointer-events:none}:host ::ng-deep th[aria-sort=ascending] .sd-table-sort-header:after,:host ::ng-deep th[aria-sort=descending] .sd-table-sort-header:after{background-color:var(--sd-text)}:host ::ng-deep th[aria-sort=none] .sd-table-sort-header:after{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24px' viewBox='0 0 24 24' width='24px' fill='%23000000'%3E%3Cpath d='M0 0h24v24H0V0z' fill='none'/%3E%3Cpath fill='%237A7A7A' d='M12 5.83L15.17 9l1.41-1.41L12 3 7.41 7.59 8.83 9 12 5.83zm0 12.34L8.83 15l-1.41 1.41L12 21l4.59-4.59L15.17 15 12 18.17z'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24px' viewBox='0 0 24 24' width='24px' fill='%23000000'%3E%3Cpath d='M0 0h24v24H0V0z' fill='none'/%3E%3Cpath fill='%237A7A7A' d='M12 5.83L15.17 9l1.41-1.41L12 3 7.41 7.59 8.83 9 12 5.83zm0 12.34L8.83 15l-1.41 1.41L12 21l4.59-4.59L15.17 15 12 18.17z'/%3E%3C/svg%3E\")}:host ::ng-deep th[aria-sort=ascending] .sd-table-sort-header:after{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24px' viewBox='0 0 24 24' width='24px' fill='%23000000'%3E%3Cpath d='M0 0h24v24H0V0z' fill='none'/%3E%3Cpath fill='%237A7A7A' d='M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24px' viewBox='0 0 24 24' width='24px' fill='%23000000'%3E%3Cpath d='M0 0h24v24H0V0z' fill='none'/%3E%3Cpath fill='%237A7A7A' d='M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z'/%3E%3C/svg%3E\")}:host ::ng-deep th[aria-sort=descending] .sd-table-sort-header:after{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24px' viewBox='0 0 24 24' width='24px' fill='%23000000'%3E%3Cpath d='M0 0h24v24H0V0z' fill='none'/%3E%3Cpath fill='%237A7A7A' d='M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24px' viewBox='0 0 24 24' width='24px' fill='%23000000'%3E%3Cpath d='M0 0h24v24H0V0z' fill='none'/%3E%3Cpath fill='%237A7A7A' d='M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z'/%3E%3C/svg%3E\")}:host ::ng-deep .c-paginator .mat-mdc-paginator-range-label{margin:0 4px}:host ::ng-deep .c-paginator .mat-mdc-paginator-page-size{align-items:center}:host ::ng-deep .c-paginator .mat-mdc-paginator-page-size-select{--mat-select-trigger-text-size: var(--sd-font-size-14, 14px);--mat-paginator-select-trigger-text-size: var(--sd-font-size-14, 14px)}:host ::ng-deep .c-paginator .mat-mdc-paginator-page-size-select .mat-mdc-form-field-infix{display:flex;align-items:center;height:32px;min-height:32px;padding-top:0;padding-bottom:0}:host ::ng-deep .c-paginator .mat-mdc-paginator-page-size-select.mat-mdc-form-field .mat-mdc-form-field-infix mat-select.mat-mdc-select{margin-top:0}:host ::ng-deep .c-paginator .mat-mdc-paginator-page-size-select .mat-mdc-text-field-wrapper{padding-right:8px}:host ::ng-deep .c-paginator .mat-mdc-paginator-page-size-select .mat-mdc-select-arrow-wrapper{width:20px;justify-content:center}:host ::ng-deep .c-paginator .mat-mdc-paginator-page-size-select .mat-mdc-select-arrow{width:16px;height:16px;color:var(--sd-text-secondary);background-color:currentColor;mask:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z'/%3E%3C/svg%3E\") center/16px 16px no-repeat}:host ::ng-deep .c-paginator .mat-mdc-paginator-page-size-select .mat-mdc-select-arrow svg{display:none}:host ::ng-deep .c-paginator .mat-mdc-paginator-page-size-select .mat-mdc-form-field-flex:hover .mat-mdc-select-arrow{color:var(--sd-text)}::ng-deep .mat-mdc-select-panel.sd-select-panel.sd-table-page-size-panel .mat-mdc-option{min-height:36px;padding:7px 12px}:host ::ng-deep .cdk-drag-preview{box-shadow:var(--sd-shadow-md);background:var(--sd-table-bg);display:table;width:100%}:host ::ng-deep .cdk-drag-preview td{padding:0 8px;border-bottom:1px solid var(--sd-table-row-divider)}:host ::ng-deep .cdk-drag-placeholder{opacity:0}:host ::ng-deep .cdk-drop-list-dragging tr.c-row:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}:host ::ng-deep .sd-selection-cell{width:42px;min-width:42px;max-width:42px}:host ::ng-deep .sd-filler-cell{width:auto;min-width:0;padding:0!important;border:0}:host ::ng-deep .sd-group-header-cell{background:var(--sd-table-group-row-bg, #f5f7fc);border-top:1px solid var(--sd-table-group-row-border, #e6e9f2);border-bottom:1px solid var(--sd-table-group-row-border, #e6e9f2)}:host ::ng-deep .sd-group-row{min-height:36px}:host ::ng-deep .sd-group-selection-slot{width:42px;min-width:42px;max-width:42px}:host ::ng-deep .c-selection{transform:scale(.85);transform-origin:center}:host ::ng-deep .sd-tree-line{display:inline-flex;align-items:center;min-height:32px}:host ::ng-deep .sd-tree-indent{flex:0 0 auto}:host ::ng-deep .sd-tree-toggle-slot{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px}:host ::ng-deep .sd-tree-toggle-btn{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;padding:0;border:0;background:transparent;border-radius:50%;cursor:pointer;color:var(--sd-text-secondary, #5b6472);transition:background-color .15s ease}:host ::ng-deep .sd-tree-toggle-btn sd-icon{font-size:var(--sd-font-size-18, 18px);width:18px;height:18px;line-height:var(--sd-line-height-18, 18px)}:host ::ng-deep .sd-tree-toggle-btn:hover{background-color:color-mix(in srgb,var(--sd-text) 8%,transparent)}:host ::ng-deep .sd-tree-toggle-btn[aria-busy=true]{cursor:progress}:host ::ng-deep .sd-tree-stt{margin-left:2px;white-space:nowrap}:host ::ng-deep .sd-tree-index-cell{text-align:left!important;white-space:nowrap;padding-left:8px;padding-right:8px}:host ::ng-deep .sd-tree-index-header{padding-left:32px}:host ::ng-deep tr.c-row.sd-tree-row.sd-tree-level-0{background:var(--sd-table-tree-level-0-bg, #fbfcfe)}:host ::ng-deep tr.c-row.sd-tree-row.sd-tree-level-0>td{font-weight:var(--sd-font-weight-medium, 500)}:host ::ng-deep tr.c-row.sd-tree-row.sd-tree-level-1{background:var(--sd-table-tree-level-1-bg, #ffffff)}:host ::ng-deep tr.c-row.sd-tree-row.sd-tree-level-2{background:var(--sd-table-tree-level-2-bg, #fafbfd)}:host ::ng-deep tr.c-row.sd-tree-row.sd-tree-level-3{background:var(--sd-table-tree-level-3-bg, #f6f8fb)}:host ::ng-deep .sd-stt-root{font-weight:var(--sd-font-weight-bold, 700);color:var(--sd-table-tree-root-text, #1f2330)}:host .sd-mobile-top{display:flex;align-items:center;gap:4px;min-width:0;padding:4px 4px 10px 16px}:host .sd-mobile-top--chips{padding-bottom:4px}:host .sd-mobile-top--no-search{justify-content:flex-end}:host .sd-mobile-top--empty:not(:focus-within){padding:0}:host .sd-mobile-top-search{flex:1 1 auto;min-width:0}:host .sd-mobile-top-button{flex:0 0 44px;width:44px;height:44px;padding:0;color:var(--sd-text-secondary);--mat-icon-button-state-layer-size: 44px;--mdc-icon-button-state-layer-size: 44px}:host .sd-mobile-reload:not(:focus-visible){position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}:host .sd-table-surface--quick-search>.c-container:not(.sd-table-mobile)>.c-table,:host .sd-table-surface--query-bar>.c-container:not(.sd-table-mobile)>.c-table{border-top-left-radius:0;border-top-right-radius:0}:host .sd-table-query-bar{display:block;flex:0 0 auto;min-width:0;background:var(--sd-table-bg, #ffffff);border-top-left-radius:var(--sd-radius-6, 6px);border-top-right-radius:var(--sd-radius-6, 6px);--sd-control-label-bg: var(--sd-table-bg, #ffffff)}:host .sd-table-query-bar-end{flex:none;display:flex;align-items:center;align-self:flex-start;padding-left:8px}:host .sd-table-header-cell--trigger{display:flex;align-items:center;gap:4px;min-width:0}:host .sd-table-header-cell--trigger>.c-header-title{flex:0 1 auto;min-width:0}:host .sd-table-header-cell--trigger.sd-table-header-cell--end{flex-direction:row-reverse;justify-content:flex-start}:host .sd-table-filter-trigger{flex:none;display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;padding:0;border:0;border-radius:var(--sd-radius-4, 4px);background:transparent;color:var(--sd-text-secondary);cursor:pointer;opacity:0;transition:opacity var(--sd-duration-fast, .12s) ease,background-color var(--sd-duration-fast, .12s) ease}:host .sd-table-filter-trigger sd-icon{width:15px;height:15px;font-size:15px}:host .sd-table-filter-trigger:hover{background:var(--sd-table-row-hover-bg)}:host .sd-table-filter-trigger:focus-visible{opacity:1;outline:2px solid var(--sd-focus-ring-color);outline-offset:1px}:host .sd-table-filter-trigger.sd-table-filter-trigger--active{opacity:1;color:var(--sd-primary)}:host th:hover .sd-table-filter-trigger,:host th:focus-within .sd-table-filter-trigger{opacity:1}@media(pointer:coarse){:host .sd-table-filter-trigger{opacity:1}}@media(prefers-reduced-motion:reduce){:host .sd-table-filter-trigger{transition:none}}@media(forced-colors:active){:host .sd-table-filter-trigger{color:ButtonText}:host .sd-table-filter-trigger--active{color:Highlight}}:host .sd-table-query-bar-hint{display:flex;align-items:center;gap:6px;margin:0;padding:0 12px 8px;background:var(--sd-table-bg, #ffffff);font-size:var(--sd-font-size-12, 12px);line-height:var(--sd-line-height-18, 18px);color:var(--sd-error)}:host .sd-table-query-bar-hint sd-icon{flex:none;width:16px;height:16px;font-size:var(--sd-font-size-16, 16px)}@keyframes sd-table-skeleton-sweep{to{background-position:480px 0}}@keyframes sd-table-progress-run{0%{transform:translate(-100%)}to{transform:translate(285.7142857143%)}}@keyframes sd-table-spin{to{transform:rotate(360deg)}}:host tr.sd-table-skeleton-row{height:var(--mat-table-row-item-container-height, 36px)}:host .sd-table-skeleton-cell{padding:0 8px;border-bottom:1px solid var(--sd-table-row-divider);vertical-align:middle}:host .sd-table-skeleton-bar{display:block;height:12px;border-radius:var(--sd-radius-4, 4px);background:linear-gradient(90deg,var(--sd-table-skeleton-bg) 0,var(--sd-table-skeleton-highlight) 40%,var(--sd-table-skeleton-bg) 80%) 0 0/480px 100%;animation:sd-table-skeleton-sweep 1.4s linear infinite}@media(prefers-reduced-motion:reduce){:host .sd-table-skeleton-bar{animation:none}}@media(forced-colors:active){:host .sd-table-skeleton-bar{forced-color-adjust:none;background:GrayText}}:host .sd-table-skeleton-bar[data-align=end]{margin-inline-start:auto}:host .sd-table-skeleton-bar[data-align=center]{margin-inline:auto}:host .sd-table-skeleton-bar[data-shape=pill]{height:20px;border-radius:999px}:host .sd-table-skeleton-bar[data-shape=box]{width:14px;height:14px;border-radius:3px}:host .sd-table-skeleton-block{overflow:hidden;border-radius:var(--sd-radius-6, 6px);background:var(--sd-surface)}:host .sd-table-skeleton-block-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:center;height:var(--mat-table-row-item-container-height, 36px);border-bottom:1px solid var(--sd-table-row-divider)}:host .sd-table-skeleton-block-row>.sd-table-skeleton-cell{border-bottom:0}:host .c-table>table>::ng-deep tbody{transition:opacity var(--sd-duration-fast, .12s)}@media(prefers-reduced-motion:reduce){:host .c-table>table>::ng-deep tbody{transition:none}}:host .c-table.c-table--dim{cursor:progress}:host .c-table.c-table--dim>table>::ng-deep thead,:host .c-table.c-table--dim>table>::ng-deep tfoot{cursor:auto}:host .c-table.c-table--dim>table>::ng-deep tbody{opacity:var(--sd-table-loading-dim, .55)}:host .c-table.c-table--dim>table>::ng-deep tbody,:host .c-table.c-table--dim>table>::ng-deep tbody *{pointer-events:none!important}:host .sd-table-progress{position:absolute;top:var(--sd-table-head-h, 0px);right:0;left:0;z-index:20;height:2px;overflow:hidden;pointer-events:none;background:var(--sd-table-progress-track)}:host .sd-table-progress:before{content:\"\";position:absolute;inset:0 auto 0 0;width:35%;background:var(--sd-table-spinner);animation:sd-table-progress-run 1.1s ease-in-out infinite}@media(prefers-reduced-motion:reduce){:host .sd-table-progress:before{width:100%;opacity:.6;animation:none}}@media(forced-colors:active){:host .sd-table-progress{forced-color-adjust:none;box-sizing:content-box;border:1px solid CanvasText;background:Canvas}:host .sd-table-progress:before{background:Highlight}}:host .sd-table-spinner{display:inline-block;flex:0 0 auto;vertical-align:middle;box-sizing:border-box;width:16px;height:16px;border:2px solid var(--sd-table-progress-track);border-top-color:var(--sd-table-spinner);border-radius:50%;animation:sd-table-spin .8s linear infinite}@media(prefers-reduced-motion:reduce){:host .sd-table-spinner{animation:none}}@media(forced-colors:active){:host .sd-table-spinner{forced-color-adjust:none;border-color:GrayText;border-top-color:Highlight}}:host .sd-table-progress-anchor{position:sticky;top:0;z-index:20;height:0}:host .sd-table-progress-anchor>.sd-table-progress{top:0}.sd-aggregate-row,.sd-aggregate-total,.sd-mobile-aggregate{background:color-mix(in srgb,var(--sd-surface-muted) 35%,var(--sd-surface));color:var(--sd-text);font-weight:var(--sd-font-weight-medium, 500)}.sd-aggregate-cell{background:inherit;border-top:1px solid var(--sd-border)}:host(.sd-table--cards){height:auto;overflow:visible}:host(.sd-table--fill){flex:1 1 0;height:auto;min-height:var(--sd-table-fill-min, 0px);overflow:visible}:host(.sd-table--fill) .c-container{min-height:0}:host(.sd-table--fill) .c-container>.c-table{min-height:calc(var(--sd-table-fill-head, 40px) + 5 * var(--mat-table-row-item-container-height, 36px))}:host(.sd-table--fill) .c-container>.c-paginator{flex:none;min-height:48px}\n", ":host ::ng-deep .sticky-shadow-right{overflow:visible!important}:host ::ng-deep .sticky-shadow-right:after{content:\"\";position:absolute;top:0;right:0;bottom:0;width:8px;transform:translate(100%);background:linear-gradient(to right,rgba(0,0,0,.12),transparent);pointer-events:none}:host ::ng-deep .sticky-shadow-left{overflow:visible!important}:host ::ng-deep .sticky-shadow-left:after{content:\"\";position:absolute;top:0;left:0;bottom:0;width:8px;transform:translate(-100%);background:linear-gradient(to left,rgba(0,0,0,.12),transparent);pointer-events:none}\n"], dependencies: [{ kind: "component", type: SdIcon, selector: "sd-icon", inputs: ["name", "fontIcon", "color", "set", "fontSet", "size", "strokeWidth", "absoluteStrokeWidth", "ariaLabel"] }, { kind: "component", type: SdDataState, selector: "sd-data-state", inputs: ["state", "title", "message", "icon", "fontSet", "iconShape", "retryable", "retryLabel", "actionLabel", "compact", "fullPage"], outputs: ["sdRetry", "sdAction"] }, { kind: "directive", type: SdDataStateTemplateDirective, selector: "ng-template[sdDataStateTemplate]" }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1$1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: MatPaginatorModule }, { kind: "component", type: i3$3.MatPaginator, selector: "mat-paginator", inputs: ["color", "pageIndex", "length", "pageSize", "pageSizeOptions", "hidePageSize", "showFirstLastButtons", "selectConfig", "disabled"], outputs: ["page"], exportAs: ["matPaginator"] }, { kind: "ngmodule", type: MatTableModule }, { kind: "component", type: i4$1.MatTable, selector: "mat-table, table[mat-table]", exportAs: ["matTable"] }, { kind: "directive", type: i4$1.MatHeaderCellDef, selector: "[matHeaderCellDef]" }, { kind: "directive", type: i4$1.MatHeaderRowDef, selector: "[matHeaderRowDef]", inputs: ["matHeaderRowDef", "matHeaderRowDefSticky"] }, { kind: "directive", type: i4$1.MatColumnDef, selector: "[matColumnDef]", inputs: ["matColumnDef"] }, { kind: "directive", type: i4$1.MatCellDef, selector: "[matCellDef]" }, { kind: "directive", type: i4$1.MatRowDef, selector: "[matRowDef]", inputs: ["matRowDefColumns", "matRowDefWhen"] }, { kind: "directive", type: i4$1.MatFooterCellDef, selector: "[matFooterCellDef]" }, { kind: "directive", type: i4$1.MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { kind: "directive", type: i4$1.MatCell, selector: "mat-cell, td[mat-cell]" }, { kind: "directive", type: i4$1.MatFooterCell, selector: "mat-footer-cell, td[mat-footer-cell]" }, { kind: "component", type: i4$1.MatHeaderRow, selector: "mat-header-row, tr[mat-header-row]", exportAs: ["matHeaderRow"] }, { kind: "component", type: i4$1.MatRow, selector: "mat-row, tr[mat-row]", exportAs: ["matRow"] }, { kind: "component", type: i4$1.MatFooterRow, selector: "mat-footer-row, tr[mat-footer-row]", exportAs: ["matFooterRow"] }, { kind: "directive", type: i4$1.MatNoDataRow, selector: "ng-template[matNoDataRow]" }, { kind: "ngmodule", type: MatSortModule }, { kind: "directive", type: i5.MatSort, selector: "[matSort]", inputs: ["matSortActive", "matSortStart", "matSortDirection", "matSortDisableClear", "matSortDisabled"], outputs: ["matSortChange"], exportAs: ["matSort"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1$2.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatCheckboxModule }, { kind: "component", type: i3.MatCheckbox, selector: "mat-checkbox", inputs: ["aria-label", "aria-labelledby", "aria-describedby", "aria-expanded", "aria-controls", "aria-owns", "id", "required", "labelPosition", "name", "value", "disableRipple", "tabIndex", "color", "disabledInteractive", "checked", "disabled", "indeterminate"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }, { kind: "ngmodule", type: MatRadioModule }, { kind: "component", type: i4.MatRadioButton, selector: "mat-radio-button", inputs: ["id", "name", "aria-label", "aria-labelledby", "aria-describedby", "disableRipple", "tabIndex", "checked", "value", "labelPosition", "disabled", "required", "color", "disabledInteractive"], outputs: ["change"], exportAs: ["matRadioButton"] }, { kind: "ngmodule", type: DragDropModule }, { kind: "directive", type: i1$4.CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "cdkDropListData", "cdkDropListOrientation", "id", "cdkDropListLockAxis", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListAutoScrollDisabled", "cdkDropListAutoScrollStep", "cdkDropListElementContainer", "cdkDropListHasAnchor"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { kind: "directive", type: i1$4.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer", "cdkDragScale"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "directive", type: i1$4.CdkDragHandle, selector: "[cdkDragHandle]", inputs: ["cdkDragHandleDisabled"] }, { kind: "component", type: SdButton, selector: "sd-button", inputs: ["autoId", "type", "color", "size", "fontSet", "title", "width", "tooltip", "prefixIcon", "suffixIcon", "disabled", "openOnHover", "loading", "block", "htmlType", "indicator", "indicatorColor", "indicatorMax", "indicatorLabel"], outputs: ["click"] }, { kind: "component", type: SdButtonItem, selector: "sd-button-item", inputs: ["color", "prefixIcon", "suffixIcon", "fontSet", "disabled", "tooltip", "autoId"], outputs: ["click"] }, { kind: "component", type: DesktopCommand, selector: "desktop-command", inputs: ["autoId", "item", "itemIndex", "commands"] }, { kind: "component", type: DesktopCellComponent, selector: "desktop-cell", inputs: ["column", "item", "cellDef"] }, { kind: "component", type: ColumnTitleComponent, selector: "column-title", inputs: ["column", "titleDef"] }, { kind: "component", type: ExternalFilterComponent, selector: "external-filter", inputs: ["autoId", "filter", "externalFilters", "filterRegister", "collapsedByDefault"] }, { kind: "component", type: TableQuickSearchComponent, selector: "sd-table-quick-search", inputs: ["option", "value", "autoId", "rightTemplate"], outputs: ["valueChange"] }, { kind: "component", type: SdQueryBar, selector: "sd-query-bar", inputs: ["option", "autoId", "fields", "filters", "logic", "search", "mode", "density", "showSearch", "showSavedFilters", "savedFiltersKey", "showLogicToggle", "showClearAll", "showOperatorOnChip"], outputs: ["filtersChange", "logicChange", "searchChange", "queryChange", "apply"] }, { kind: "component", type: ConfigComponent, selector: "config", inputs: ["autoId", "tableOption", "filterSetup"], outputs: ["changes", "defaultsRestored", "filterApplied"] }, { kind: "component", type: ColumnFilterComponent, selector: "column-filter", inputs: ["autoId", "column", "columnFilter", "cacheValues", "value", "operator", "isMobile"], outputs: ["operatorChange", "filterChange", "filterCommit"] }, { kind: "component", type: MobileFilterComponent, selector: "mobile-filter", inputs: ["autoId", "filter", "externalFilters", "columns", "filterDefs", "filterRegister", "cacheValues", "model"] }, { kind: "directive", type: SdAggregateLayoutDirective, selector: "table[sdAggregateLayout]" }, { kind: "directive", type: SdTableFooterRowDefDirective, selector: "[sdTableFooterRowDef]", inputs: ["sdTableFooterRowDef", "sdTableFooterRowDefSticky"] }, { kind: "directive", type: SdScrollDirective, selector: "[sdScroll]" }, { kind: "directive", type: SdHoverCopyDirective, selector: "[sdHoverCopy]", inputs: ["sdHoverCopy", "sdHoverCopyDisabled"] }, { kind: "component", type: SelectorActionComponent, selector: "selector-action", inputs: ["autoId", "tableOption", "selectedTableItems"], outputs: ["clear"] }, { kind: "directive", type: StickyShadowDirective, selector: "[stickyShadow]" }, { kind: "directive", type: SdColumnResizeDirective, selector: "[sdColumnResize]", inputs: ["sdColumnResize", "minWidth", "maxWidth"], outputs: ["resizeEnd"] }, { kind: "directive", type: SdTableSortHeaderDirective, selector: "[sdTableSortHeader]", inputs: ["sdTableSortHeader"] }, { kind: "component", type: SdTableMobileCardsComponent, selector: "sd-table-mobile-cards", inputs: ["table", "body", "rows", "dataRows", "aggregateTemplate", "groupTemplate"] }, { kind: "component", type: SdTableMobileFilterChipsComponent, selector: "sd-table-mobile-filter-chips", inputs: ["table", "model", "value", "sortAvailable", "sortLabel"], outputs: ["sortOpen"] }, { kind: "component", type: SdTablePullRefreshComponent, selector: "sd-table-pull-refresh", inputs: ["target", "enabled", "loading"], outputs: ["refresh"] }, { kind: "component", type: SdTableMobileToolsSheetComponent, selector: "sd-table-mobile-tools-sheet", inputs: ["table", "actions"] }, { kind: "component", type: SdTableMobileSortSheetComponent, selector: "sd-table-mobile-sort-sheet", inputs: ["table"] }, { kind: "component", type: SdTableUnknownTotalPaginator, selector: "sd-table-unknown-total-paginator", inputs: ["state", "pageSizeOptions", "hidePageSize", "showFirstButton", "autoId"], outputs: ["page"] }, { kind: "pipe", type: i1$1.JsonPipe, name: "json" }, { kind: "pipe", type: SdGroupPipe, name: "sdGroup" }, { kind: "pipe", type: SdTreePipe, name: "sdTree" }, { kind: "pipe", type: SdAggregateRowsPipe, name: "sdAggregateRows" }, { kind: "pipe", type: SdTranslatePipe, name: "sdTranslate" }], animations: [
|
|
10643
|
+
], queries: [{ propertyName: "dataStateTemplate", first: true, predicate: SdDataStateTemplateDirective, descendants: true, isSignal: true }, { propertyName: "sdSubInformation", first: true, predicate: SdTableExpandDefDirective, descendants: true, isSignal: true }, { propertyName: "sdGroupDef", first: true, predicate: SdTableGroupDefDirective, descendants: true, isSignal: true }, { propertyName: "sdCellDefs", predicate: SdTableCellDefDirective, isSignal: true }, { propertyName: "sdCommandHeaderDef", first: true, predicate: SdTableCommandHeaderDefDirective, descendants: true, isSignal: true }, { propertyName: "sdQuickSearchRightDef", first: true, predicate: SdTableQuickSearchRightDefDirective, descendants: true, isSignal: true }, { propertyName: "sdFooterDefs", predicate: SdMaterialFooterDefDirective, isSignal: true }, { propertyName: "sdFilterDefs", predicate: SdTableFilterDefDirective, isSignal: true }, { propertyName: "sdTitleDefs", predicate: SdTableTitleDefDirective, isSignal: true }, { propertyName: "sdRowMobileDef", first: true, predicate: SdTableRowMobileDefDirective, isSignal: true }], viewQueries: [{ propertyName: "table", first: true, predicate: MatTable, descendants: true, isSignal: true }, { propertyName: "configComponent", first: true, predicate: ConfigComponent, descendants: true, isSignal: true }, { propertyName: "sdPopupExport", first: true, predicate: SdPopupExport, descendants: true, isSignal: true }, { propertyName: "scroll", first: true, predicate: SdScrollDirective, descendants: true, isSignal: true }, { propertyName: "quickAction", first: true, predicate: SdQuickAction, descendants: true, isSignal: true }, { propertyName: "externalFilter", first: true, predicate: ExternalFilterComponent, descendants: true, isSignal: true }, { propertyName: "mobileFilter", first: true, predicate: MobileFilterComponent, descendants: true, isSignal: true }, { propertyName: "paginator", first: true, predicate: MatPaginator, descendants: true, isSignal: true }, { propertyName: "sort", first: true, predicate: MatSort, descendants: true, isSignal: true }, { propertyName: "quickSearchControl", first: true, predicate: TableQuickSearchComponent, descendants: true, isSignal: true }, { propertyName: "queryBar", first: true, predicate: SdQueryBar, descendants: true, isSignal: true }], ngImport: i0, template: "@let _visibleSelectAll = visibleSelectAll();\n@let _isSelectIndeterminate = isSelectIndeterminate();\n@let _isSelectAll = isSelectAll();\n@let _configuration = configuration();\n@let _tableOption = tableOption()!;\n@let _loading = loading();\n@let _loadingView = loadingView();\n@let _readState = readState();\n@let _hideReadError = hideReadError();\n@let _dataStateTemplate = dataStateTemplate();\n@let _items = items();\n@let _total = total();\n@let _isFiltered = isFiltered();\n@let _requireFiltered = requireFiltered();\n@let _export = _tableOption?.export;\n@let _exporting = exporting();\n@let _titleDef = titleDef();\n@let _autoId = autoId();\n@let _exportTitle = exportTitle();\n@let _cellDef = cellDef();\n@let _footerDef = footerDef();\n@let _sdSubInformation = sdSubInformation();\n@let _configComponent = configComponent();\n@let _mobileFilter = mobileFilter();\n@let _selectedTableItems = selectedTableItems();\n@let _rowCommands = rowCommands();\n@let _mobileCards = mobileCards();\n@let _isMobile = isMobile();\n@let _queryBarMode = queryBarMode();\n@let _queryBarKeys = queryBarModel()?.columnKeys;\n@let _queryBarActive = queryBarActiveKeys();\n@let _showInlineFilter =\n !_queryBarMode &&\n !_isMobile &&\n !_tableOption?.filter?.disabled &&\n _tableOption?.filter?.hideInlineFilter !== true &&\n !(_tableOption?.filter?.hideInlineFilter === 'auto' && !_isFiltered && knownRowCount()! <= 10);\n@let _commandHeaderDef = sdCommandHeaderDef();\n@let _quickSearch = quickSearchOption();\n@let _aggregate = aggregateSnapshot();\n@let _aggregateColumns = aggregateColumns();\n@let _aggregateColumnIds = aggregateColumnIds();\n@let _headerFilterColumns = headerFilterColumns();\n<!-- why: tree kh\u00F4ng c\u00F2n c\u1ED9t ri\u00EAng \u2014 khi KH\u00D4NG c\u00F3 c\u1ED9t Index, icon expand nh\u00FAng v\u00E0o\n c\u1ED9t data \u0111\u1EA7u ti\u00EAn. \u0110\u00E2y l\u00E0 field c\u1EE7a c\u1ED9t \u0111\u00F3 (null n\u1EBFu c\u00F3 Index ho\u1EB7c kh\u00F4ng tree). -->\n@let _treeFirstField = _tableOption?.tree && !_tableOption.index?.enabled ? _configuration?.firstColumns?.[0]?.field : null;\n\n<!-- why: v\u00F9ng status lu\u00F4n c\u00F3 trong DOM, k\u1EC3 c\u1EA3 tr\u01B0\u1EDBc khi c\u00F3 configuration. V\u00F9ng ch\u1EC9 render trong l\u00FAc t\u1EA3i b\u1ECB g\u1EE1\n tr\u01B0\u1EDBc khi screen reader k\u1ECBp \u0111\u1ECDc v\u00E0 kh\u00F4ng b\u00E1o \u0111\u01B0\u1EE3c \"\u0111\u00E3 t\u1EA3i xong\". -->\n<span class=\"sd-table-live\" role=\"status\" aria-live=\"polite\" aria-atomic=\"true\">{{ liveMessage() }}</span>\n@if (_configuration) {\n @if (\n !_queryBarMode && !_mobileCards && !_tableOption.filter?.disabled && !!_tableOption.filter?.externalFilters?.length && filterRegister\n ) {\n <external-filter\n class=\"mb-16\"\n [autoId]=\"_autoId\"\n [filterRegister]=\"filterRegister\"\n [filter]=\"_tableOption.filter!\"\n [externalFilters]=\"_tableOption.filter?.externalFilters!\"\n [collapsedByDefault]=\"externalFilterCollapsedByDefault()\">\n </external-filter>\n }\n @let groupedItems = _items | sdTree: _tableOption.tree : treeRevision() | sdGroup: _tableOption : groupExpandState : groupHost;\n @let renderItems = groupedItems | sdAggregateRows: _aggregate : _tableOption : aggregateRenderHost;\n\n <ng-template #aggregateCell let-cell>\n @if (cell) {\n @if (cell.templateRef) {\n <ng-container *ngTemplateOutlet=\"cell.templateRef; context: cell.context\"></ng-container>\n } @else {\n <span [attr.data-complete]=\"cell.context.isComplete\">{{ cell.text }}</span>\n }\n }\n </ng-template>\n <ng-template #inlineColumnFilter let-column>\n <column-filter\n [autoId]=\"_autoId\"\n [value]=\"columnFilter?.[column.field!]!\"\n [operator]=\"columnOperator[column.field]\"\n (operatorChange)=\"columnOperator[column.field] = $event!; onOperatorChange(column, $event)\"\n [columnFilter]=\"columnFilter!\"\n [cacheValues]=\"cacheValues\"\n [column]=\"column\"\n (filterChange)=\"onFilterChange()\"\n (filterCommit)=\"onFilterCommit()\">\n </column-filter>\n </ng-template>\n <!-- Icon l\u1ECDc \u1EDF header c\u1ED9t (mode query-bar): m\u1EDF chip c\u1EE7a field tr\u00EAn thanh. why: n\u1EB1m c\u1EA1nh .c-header-title ch\u1EE9 kh\u00F4ng\n n\u1EB1m trong \u2014 title sort \u0111\u01B0\u1EE3c l\u00E0 role=button v\u00E0 b\u1EAFt Enter, l\u1ED3ng button v\u00E0o s\u1EBD th\u00E0nh nested-interactive v\u00E0 Enter\n tr\u00EAn icon s\u1EBD sort. Ch\u1EB7n mousedown/click \u0111\u1EC3 kh\u00F4ng sort, kh\u00F4ng b\u1EAFt \u0111\u1EA7u k\u00E9o c\u1ED9t. aria-haspopup theo \u0111\u00FAng th\u1EE9 m\u1EDF ra:\n menu c\u1EE7a chip (popover), ho\u1EB7c v\u1EDBi editor inline th\u00EC kh\u00F4ng g\u00EC (chip \u0111\u00E3 c\u00F3, ch\u1EC9 focus) / menu to\u00E1n t\u1EED / b\u1ED9 ch\u1ECDn\n gi\u00E1 tr\u1ECB c\u1EE7a chip \u0111ang d\u1EF1ng. -->\n <ng-template #queryBarTrigger let-column>\n @let _triggerKey = _queryBarKeys?.get(column.field);\n @if (_triggerKey) {\n @let _triggerActive = _queryBarActive.has(_triggerKey);\n <button\n type=\"button\"\n class=\"sd-table-filter-trigger\"\n [class.sd-table-filter-trigger--active]=\"_triggerActive\"\n [attr.data-autoid]=\"_autoId ? _autoId + '-filter-trigger-' + column.field : null\"\n [attr.aria-label]=\"filterTriggerLabel(column, _triggerActive)\"\n [attr.aria-haspopup]=\"queryBarTriggerPopup(_triggerKey)\"\n (mousedown)=\"$event.stopPropagation()\"\n (click)=\"$event.stopPropagation(); openQueryBarField(_triggerKey, $event.currentTarget)\">\n <sd-icon name=\"filter_alt\" aria-hidden=\"true\"></sd-icon>\n </button>\n }\n </ng-template>\n <ng-template #mobileAggregate let-summary=\"summary\">\n <div class=\"sd-mobile-aggregate p-12\" role=\"region\" [attr.aria-label]=\"'core.component.table.mobile.summary' | sdTranslate\">\n @for (entry of _aggregateColumns; track entry.field) {\n @let cell = summary.cells.get(entry.field);\n @if (cell && entry.column) {\n <div class=\"d-flex align-items-center flex-wrap gap-8 py-8\">\n <column-title [column]=\"entry.column\" [titleDef]=\"_titleDef[entry.field]\"></column-title>\n <ng-container *ngTemplateOutlet=\"aggregateCell; context: { $implicit: cell }\"></ng-container>\n </div>\n }\n }\n </div>\n </ng-template>\n\n <!-- Tree toggle d\u00F9ng chung: indent (theo c\u1EA5p) + slot chevron/spinner. Nh\u00FAng v\u00E0o\n c\u1ED9t Index ho\u1EB7c c\u1ED9t data \u0111\u1EA7u qua *ngTemplateOutlet (context: { row }). -->\n <ng-template #sdTreeToggle let-row=\"row\">\n @let _tree = row?.meta?.tree;\n @if (_tree) {\n <span class=\"sd-tree-indent\" [style.width.px]=\"(_tree.level ?? 0) * (_tableOption.tree?.indentSize ?? 20)\"></span>\n <span class=\"sd-tree-toggle-slot\">\n @if (_tree.hasChildren) {\n @let _aid = _autoId;\n @let _expanding = !!_tree.isExpanding;\n <!-- why: n\u00FAt lu\u00F4n n\u1EB1m trong DOM, ch\u1EC9 \u0111\u1ED5i icon th\u00E0nh spinner khi \u0111ang t\u1EA3i con; g\u1EE1 n\u00FAt l\u00E0m focus b\u00E0n ph\u00EDm r\u01A1i\n v\u1EC1 body. Click trong l\u00FAc t\u1EA3i b\u1ECB onTreeToggle b\u1ECF qua. -->\n <button\n type=\"button\"\n class=\"sd-tree-toggle-btn\"\n [attr.data-autoid]=\"_aid ? _aid + '-tree-toggle-' + row.meta.id : null\"\n [attr.aria-label]=\"'core.component.table.tree-toggle' | sdTranslate\"\n [attr.aria-expanded]=\"!!_tree.isExpanded\"\n [attr.aria-busy]=\"_expanding ? 'true' : null\"\n [attr.aria-disabled]=\"_expanding ? 'true' : null\"\n (click)=\"onTreeToggle(row); $event.stopPropagation()\">\n @if (_expanding) {\n <span class=\"sd-table-spinner\" aria-hidden=\"true\"></span>\n } @else {\n <sd-icon [name]=\"_tree.isExpanded ? 'expand_more' : 'chevron_right'\"></sd-icon>\n }\n </button>\n }\n </span>\n }\n </ng-template>\n\n <ng-template #sdGroupHeader let-item=\"item\">\n <div class=\"sd-group-row d-flex align-items-center py-8\">\n @if (_tableOption.selector?.visible && !_tableOption.selector?.single) {\n <div class=\"sd-group-selection-slot d-flex align-items-center justify-content-center\">\n <mat-checkbox\n class=\"c-selection\"\n color=\"primary\"\n [checked]=\"isGroupAllSelected(item)\"\n [indeterminate]=\"isGroupIndeterminate(item)\"\n (change)=\"onSelectGroup(item, $event.checked)\">\n </mat-checkbox>\n </div>\n } @else {\n <div class=\"sd-group-selection-slot\"></div>\n }\n @if (_tableOption.group?.collapsible) {\n <sd-button\n [autoId]=\"_autoId ? _autoId + '-group-toggle-' + (item.meta.group?.key || item.meta.id) : null\"\n type=\"text\"\n [prefixIcon]=\"item.meta.group.isExpanded ? 'expand_more' : 'chevron_right'\"\n width=\"32px\"\n (click)=\"toggleGroupExpand(item)\">\n </sd-button>\n }\n @if (sdGroupDef()?.templateRef; as tpl) {\n <ng-container *ngTemplateOutlet=\"tpl; context: groupContext(item)\"></ng-container>\n } @else {\n <span class=\"T14R\">{{ item.meta.group.values | json }}</span>\n }\n </div>\n </ng-template>\n\n <ng-content select=\"[sdTableTop]\"></ng-content>\n @let _queryBarOption = queryBarOption();\n <div\n class=\"sd-table-surface\"\n [class.sd-table-surface--quick-search]=\"!!_quickSearch && !_queryBarMode\"\n [class.sd-table-surface--query-bar]=\"_queryBarMode && !!_queryBarOption\">\n @if (_queryBarMode) {\n <!-- why: thanh n\u1EB1m tr\u00EAn .c-container, ngo\u00E0i l\u1EDBp loading (l\u00E0m m\u1EDD .c-table) \u2014 lu\u00F4n b\u1EA5m \u0111\u01B0\u1EE3c khi \u0111ang t\u1EA3i. -->\n @if (_queryBarOption) {\n <sd-query-bar\n class=\"sd-table-query-bar\"\n role=\"search\"\n [attr.aria-label]=\"'core.component.table.filter' | sdTranslate\"\n [attr.data-autoid]=\"_autoId ? _autoId + '-query-bar' : null\"\n [option]=\"_queryBarOption\"\n [(filters)]=\"barFilters\"\n [(search)]=\"barSearch\"\n (apply)=\"onQueryBarApply($event)\">\n @if (sdQuickSearchRightDef(); as _right) {\n <div sdQueryBarEnd class=\"sd-table-query-bar-end\"><ng-container [ngTemplateOutlet]=\"_right.templateRef\" /></div>\n }\n </sd-query-bar>\n }\n } @else if (_quickSearch && !_mobileCards) {\n <sd-table-quick-search\n [option]=\"_quickSearch\"\n [value]=\"quickSearchValue()\"\n [autoId]=\"_autoId\"\n [rightTemplate]=\"sdQuickSearchRightDef()?.templateRef\"\n [requiredHintId]=\"requiredHintId\"\n (valueChange)=\"onQuickSearchChange($event)\" />\n }\n @if (_mobileCards) {\n @let _tools = mobileToolsActions();\n @let _hasChips = !!mobileFilterModel()?.items?.length;\n @let _sortable = mobileSortAvailable();\n <!-- Phone top row (handoff table-mobile 2): the search, Reload for keyboards (shown on focus), the sort button\n when there is no chip row, and \u22EE Tools. -->\n <div\n class=\"sd-mobile-top\"\n [class.sd-mobile-top--chips]=\"_hasChips\"\n [class.sd-mobile-top--no-search]=\"!_quickSearch\"\n [class.sd-mobile-top--empty]=\"!_quickSearch && (_hasChips || !_sortable) && !_tools.length\">\n @if (_quickSearch) {\n <sd-table-quick-search\n class=\"sd-mobile-top-search\"\n [option]=\"_quickSearch\"\n [value]=\"quickSearchValue()\"\n [autoId]=\"_autoId\"\n [rightTemplate]=\"sdQuickSearchRightDef()?.templateRef\"\n [requiredHintId]=\"requiredHintId\"\n (valueChange)=\"onQuickSearchChange($event)\" />\n }\n @if (_tableOption.reload?.visible) {\n <button\n mat-icon-button\n type=\"button\"\n class=\"sd-mobile-top-button sd-mobile-reload\"\n [attr.aria-label]=\"'core.component.table.reload' | sdTranslate\"\n [attr.data-autoid]=\"_autoId ? _autoId + '-mobile-reload' : null\"\n (click)=\"reload()\">\n <sd-icon name=\"refresh\" size=\"22px\"></sd-icon>\n </button>\n }\n @if (!_hasChips && _sortable) {\n <button\n mat-icon-button\n type=\"button\"\n class=\"sd-mobile-top-button\"\n aria-haspopup=\"dialog\"\n [attr.aria-label]=\"mobileSortLabel()\"\n [attr.data-autoid]=\"_autoId ? _autoId + '-mobile-sort' : null\"\n (click)=\"mobileSortSheet.open()\">\n <sd-icon name=\"swap_vert\" size=\"22px\"></sd-icon>\n </button>\n }\n @if (_tools.length) {\n <button\n mat-icon-button\n type=\"button\"\n class=\"sd-mobile-top-button\"\n aria-haspopup=\"dialog\"\n [attr.aria-label]=\"'core.component.table.mobile.tools' | sdTranslate\"\n [attr.data-autoid]=\"_autoId ? _autoId + '-mobile-tools' : null\"\n (click)=\"mobileTools.open()\">\n <sd-icon name=\"more_vert\" size=\"22px\"></sd-icon>\n </button>\n <sd-table-mobile-tools-sheet #mobileTools [table]=\"this\" [actions]=\"_tools\"></sd-table-mobile-tools-sheet>\n }\n </div>\n @if (_hasChips) {\n <!-- Phone: filter chips under the search (handoff table-mobile 3). -->\n <sd-table-mobile-filter-chips\n [table]=\"this\"\n [model]=\"mobileFilterModel()\"\n [value]=\"mobileFilterValue()\"\n [sortAvailable]=\"_sortable\"\n [sortLabel]=\"mobileSortLabel()\"\n (sortOpen)=\"mobileSortSheet.open()\"></sd-table-mobile-filter-chips>\n }\n <sd-table-mobile-sort-sheet #mobileSortSheet [table]=\"this\"></sd-table-mobile-sort-sheet>\n }\n <div class=\"c-container\" [class.sd-table-mobile]=\"_mobileCards\">\n <!-- why: l\u1EDBp loading kh\u00F4ng ph\u1EE7 l\u00EAn b\u1EA3ng: header, filter, sort v\u00E0 thanh cu\u1ED9n lu\u00F4n d\u00F9ng \u0111\u01B0\u1EE3c. Ch\u01B0a c\u00F3 d\u00F2ng th\u00EC\n khung x\u01B0\u01A1ng (matNoDataRow); \u0111\u00E3 c\u00F3 d\u00F2ng th\u00EC gi\u1EEF d\u00F2ng c\u0169, qu\u00E1 showDelay m\u1EDBi l\u00E0m m\u1EDD d\u00F2ng v\u00E0 hi\u1EC7n thanh ti\u1EBFn\n tr\u00ECnh. aria-busy v\u1EABn theo loading() th\u1EADt; v\u00F9ng .sd-table-live b\u00E1o \"\u0111ang t\u1EA3i\"/\"\u0111\u00E3 t\u1EA3i xong\". -->\n <div\n #cTable\n class=\"c-table\"\n sdScroll\n stickyShadow\n matSort\n [matSortDisabled]=\"!_tableOption.sort?.enable\"\n [class.c-table--dim]=\"_loadingView === 'refresh' && loadingSettings().dim\"\n [attr.aria-busy]=\"_loading ? 'true' : null\"\n [style.max-height]=\"_tableOption.style?.maxHeight\"\n [style.min-height]=\"_tableOption.style?.minHeight\">\n @if (_mobileCards) {\n <!-- Pull to refresh replaces Reload on phones (handoff table-mobile 7). -->\n <sd-table-pull-refresh\n [target]=\"cTable\"\n [enabled]=\"!!_tableOption.reload?.visible\"\n [loading]=\"_loading\"\n (refresh)=\"reload()\"></sd-table-pull-refresh>\n @if (_commandHeaderDef) {\n <div class=\"sd-mobile-command-header\"><ng-container *ngTemplateOutlet=\"_commandHeaderDef.templateRef\"></ng-container></div>\n }\n @if (_loadingView === 'refresh') {\n <!-- Mobile: kh\u00F4ng c\u00F3 header b\u1EA3ng; thanh n\u1EB1m \u1EDF m\u00E9p tr\u00EAn danh s\u00E1ch th\u1EBB, d\u01B0\u1EDBi command header. Anchor cao 0\n n\u00EAn thanh hi\u1EC7n/\u1EA9n kh\u00F4ng \u0111\u1EA9y th\u1EBB. -->\n <div class=\"sd-table-progress-anchor\">\n <div class=\"sd-table-progress\" aria-hidden=\"true\"></div>\n </div>\n }\n <sd-table-mobile-cards\n [table]=\"this\"\n [body]=\"mobileBody()\"\n [rows]=\"renderItems\"\n [dataRows]=\"groupedItems\"\n [groupTemplate]=\"sdGroupHeader\"\n [aggregateTemplate]=\"mobileAggregate\"></sd-table-mobile-cards>\n @if (_aggregate.total; as summary) {\n <ng-container *ngTemplateOutlet=\"mobileAggregate; context: { summary: summary }\"></ng-container>\n }\n @if (hasFooter()) {\n <div class=\"sd-mobile-footer p-12\" role=\"region\" [attr.aria-label]=\"'core.component.table.mobile.summary' | sdTranslate\">\n @for (column of mobileFooterColumns(); track column.field) {\n <div class=\"d-flex align-items-center flex-wrap gap-8 py-8\">\n <column-title [column]=\"column\" [titleDef]=\"_titleDef[column.field]\"></column-title>\n <ng-container\n *ngTemplateOutlet=\"_footerDef[column.field].templateRef; context: { items: _items, column: column }\"></ng-container>\n </div>\n }\n </div>\n }\n } @else {\n <table\n mat-table\n [class.sd-table-grouped-header]=\"_configuration.multipleHeader\"\n sdAggregateLayout\n [dataSource]=\"renderItems\"\n [trackBy]=\"trackBy\"\n multiTemplateDataRows\n cdkDropList\n [cdkDropListData]=\"groupedItems\"\n [cdkDropListDisabled]=\"!_tableOption.rowReorder?.enabled\"\n [cdkDropListSortPredicate]=\"reorderSortPredicate\"\n (cdkDropListDropped)=\"onReorderDrop($event)\">\n @if (_tableOption.rowReorder?.enabled) {\n <ng-container matColumnDef=\"sdReorder\">\n <th mat-header-cell *matHeaderCellDef class=\"sd-reorder-header\" [attr.rowspan]=\"_configuration.multipleHeader ? 2 : 1\"></th>\n <td mat-cell *matCellDef=\"let row\" class=\"sd-reorder-cell\">\n @if (!row.meta?.group?.items?.length) {\n <sd-icon\n cdkDragHandle\n [class.sd-reorder-disabled]=\"isReorderDisabled(row)\"\n [name]=\"_tableOption.rowReorder?.icon || 'drag_indicator'\"></sd-icon>\n }\n </td>\n <td mat-footer-cell *matFooterCellDef></td>\n </ng-container>\n }\n\n <ng-container matColumnDef=\"sdSubInformation\" sticky>\n <td class=\"p-0\" mat-cell *matCellDef=\"let item\" [attr.colspan]=\"_configuration.displayedColumns.length\">\n @if (_sdSubInformation?.templateRef) {\n @if (_tableOption.expand?.always) {\n <ng-container *ngTemplateOutlet=\"_sdSubInformation?.templateRef!; context: { item: item }\"> </ng-container>\n } @else {\n <div [@detailExpand]=\"item.meta.expand?.isExpanded ? 'expanded' : 'collapsed'\">\n @if (item.meta.expand?.isExpanded) {\n <ng-container *ngTemplateOutlet=\"_sdSubInformation?.templateRef!; context: { item: item }\"> </ng-container>\n }\n </div>\n }\n }\n </td>\n <td mat-footer-cell *matFooterCellDef></td>\n </ng-container>\n\n <ng-container matColumnDef=\"sdSubInformationAction\" stickyEnd>\n <th\n class=\"p-0\"\n mat-header-cell\n *matHeaderCellDef\n style=\"width: 1px\"\n [attr.rowspan]=\"_configuration.multipleHeader ? 2 : 1\"></th>\n <td mat-cell *matCellDef=\"let element\">\n @if (!_tableOption.expand?.always) {\n @let _expanding = !!element.meta.expand?.isExpanding;\n <!-- why: n\u00FAt 35px gi\u1EEF nguy\u00EAn khi \u0111ang t\u1EA3i ([loading] thay prefix icon b\u1EB1ng spinner) \u0111\u1EC3 focus b\u00E0n ph\u00EDm\n kh\u00F4ng m\u1EA5t; onExpand b\u1ECF qua click trong l\u00FAc t\u1EA3i. color primary ch\u1EC9 \u0111\u1EC3 spinner theo m\u00E0u nh\u1EA5n. -->\n <sd-button\n [autoId]=\"_autoId ? _autoId + '-expand-' + element.meta.id : null\"\n type=\"text\"\n [color]=\"_expanding ? 'primary' : null\"\n [loading]=\"_expanding\"\n [attr.aria-busy]=\"_expanding ? 'true' : null\"\n [prefixIcon]=\"element.meta.expand?.isExpanded ? 'expand_less' : 'expand_more'\"\n (click)=\"onExpand(element)\"\n width=\"35px\">\n </sd-button>\n }\n </td>\n </ng-container>\n\n <ng-container matColumnDef=\"sdSelection\" sticky>\n <th class=\"sd-selection-cell p-0\" mat-header-cell *matHeaderCellDef [attr.rowspan]=\"_configuration.multipleHeader ? 2 : 1\">\n @if (_visibleSelectAll) {\n <mat-checkbox\n class=\"c-selection px-8\"\n color=\"primary\"\n [indeterminate]=\"_isSelectIndeterminate\"\n [ngModel]=\"_isSelectAll\"\n (ngModelChange)=\"isSelectAll.set($event)\"\n (change)=\"onSelectAll()\">\n </mat-checkbox>\n }\n </th>\n\n <td class=\"sd-selection-cell p-0\" mat-cell *matCellDef=\"let item\">\n @let visible = item.meta.selector?.visible;\n @if (visible) {\n @if (_tableOption.selector?.single) {\n <mat-radio-button\n class=\"c-selection px-8\"\n color=\"primary\"\n [checked]=\"item.meta.selector.isSelected\"\n (change)=\"item.meta.selector.isSelected = true; onSelect(item)\"\n [disabled]=\"item.meta.selector?.disabled\">\n </mat-radio-button>\n } @else {\n <mat-checkbox\n class=\"c-selection px-8\"\n color=\"primary\"\n [(ngModel)]=\"item.meta.selector.isSelected\"\n (change)=\"onSelect(item)\"\n [disabled]=\"item.meta.selector?.disabled\">\n </mat-checkbox>\n }\n }\n </td>\n <td mat-footer-cell *matFooterCellDef></td>\n </ng-container>\n @if (_tableOption.index?.enabled) {\n @let _pageOffset = pageOffset();\n @let _indexWidth = _tableOption.index?.width || '50px';\n <!-- why: khi tree, c\u1ED9t Index \"\u00F4m\" th\u00EAm chevron + indent. D\u00F9ng width:1px +\n nowrap (.sd-tree-index-cell) \u0111\u1EC3 c\u1ED9t co S\u00C1T n\u1ED9i dung, kh\u00F4ng chi\u1EBFm ch\u1ED7\n th\u1EEBa; header \"#\" canh tr\u00E1i l\u00F9i v\u00E0o (.sd-tree-index-header) cho th\u1EB3ng s\u1ED1. -->\n @let _treeIndex = !!_tableOption.tree;\n <ng-container matColumnDef=\"sdIndex\" sticky>\n <th\n [class.p-0]=\"!_treeIndex\"\n [class.text-center]=\"!_treeIndex\"\n [class.sd-tree-index-cell]=\"_treeIndex\"\n [class.sd-tree-index-header]=\"_treeIndex\"\n mat-header-cell\n *matHeaderCellDef\n [style.width]=\"_treeIndex ? '1px' : _indexWidth\"\n [style.min-width]=\"_treeIndex ? null : _indexWidth\"\n [style.max-width]=\"_treeIndex ? null : _indexWidth\"\n [attr.rowspan]=\"_configuration.multipleHeader ? 2 : 1\">\n {{ _tableOption.index?.title || '#' }}\n </th>\n <td\n [class.px-4]=\"!_treeIndex\"\n [class.text-center]=\"!_treeIndex\"\n [class.sd-tree-index-cell]=\"_treeIndex\"\n mat-cell\n *matCellDef=\"let item; let i = dataIndex\"\n [style.width]=\"_treeIndex ? '1px' : null\"\n [style.min-width]=\"_treeIndex ? null : _indexWidth\"\n [style.max-width]=\"_treeIndex ? null : _indexWidth\">\n @if (!item?.meta?.group?.isGroupHeader) {\n @if (_treeIndex) {\n <!-- why: tree \u2192 chevron + indent + STT ph\u00E2n c\u1EA5p (1, 1.2, 1.2.1). T\u00F4 \u0111\u1EADm root (level 0). -->\n <span class=\"sd-tree-line\">\n <ng-container *ngTemplateOutlet=\"sdTreeToggle; context: { row: item }\"></ng-container>\n @if (item?.meta?.tree?.indexPath?.length) {\n <span class=\"sd-tree-stt\" [class.sd-stt-root]=\"(item.meta.tree.level ?? 0) === 0\">\n {{ item.meta.tree.indexPath.join('.') }}\n </span>\n }\n </span>\n } @else {\n {{ _pageOffset + (aggregateRenderHost.indices.get(item) ?? i) + 1 }}\n }\n }\n </td>\n <td\n mat-footer-cell\n *matFooterCellDef\n [style.width]=\"_treeIndex ? '1px' : null\"\n [style.min-width]=\"_treeIndex ? null : _indexWidth\"\n [style.max-width]=\"_treeIndex ? null : _indexWidth\"></td>\n </ng-container>\n }\n <ng-container\n matColumnDef=\"sdCommand\"\n [sticky]=\"_tableOption.command?.align !== 'right'\"\n [stickyEnd]=\"_tableOption.command?.align === 'right'\">\n <!-- why: \u00F4 header c\u1EE7a c\u1ED9t command v\u1ED1n \u0111\u1EC3 tr\u1ED1ng. Cho consumer chi\u1EBFm ch\u1ED7 \u0111\u00F3 b\u1EB1ng\n `sdTableCommandHeaderDef` (th\u01B0\u1EDDng l\u00E0 n\u00FAt th\u00EAm d\u00F2ng) th\u00EC h\u00E0nh \u0111\u1ED9ng c\u1EA5p b\u1EA3ng n\u1EB1m ngay\n tr\u00EAn c\u1EE5m n\u00FAt c\u1EE7a t\u1EEBng d\u00F2ng, thay v\u00EC ph\u1EA3i d\u1EF1ng th\u00EAm m\u1ED9t d\u1EA3i ri\u00EAng d\u01B0\u1EDBi b\u1EA3ng. -->\n <th class=\"p-0\" mat-header-cell *matHeaderCellDef style=\"width: 50px\" [attr.rowspan]=\"_configuration.multipleHeader ? 2 : 1\">\n @if (_commandHeaderDef) {\n <div class=\"sd-command-header d-flex align-items-center justify-content-center\">\n <ng-container *ngTemplateOutlet=\"_commandHeaderDef.templateRef\"></ng-container>\n </div>\n }\n </th>\n <!-- why: `dataIndex` do CDK c\u1EA5p s\u1EB5n. B\u1EA3n c\u0169 d\u00F9ng `groupedItems.indexOf(item)` \u2014\n qu\u00E9t to\u00E0n m\u1EA3ng cho M\u1ED6I d\u00F2ng render \u1EDF M\u1ED6I CD pass (O(n\u00B2) tr\u00EAn \u0111\u01B0\u1EDDng render),\n v\u00E0 c\u00F2n tr\u1EA3 sai index khi 2 d\u00F2ng tr\u00F9ng reference. -->\n <td class=\"px-8\" mat-cell *matCellDef=\"let item; let i = dataIndex\">\n <desktop-command\n [autoId]=\"_autoId\"\n [commands]=\"_rowCommands\"\n [item]=\"item\"\n [itemIndex]=\"aggregateRenderHost.indices.get(item) ?? i\"></desktop-command>\n </td>\n <td mat-footer-cell *matFooterCellDef></td>\n </ng-container>\n <!-- why: group header row d\u00F9ng matRowDef RI\u00CANG v\u1EDBi column list ['sdGroupHeader']\n qua predicate when:isGroupHeaderRow. Cell colspan = displayedColumns.length \u0111\u1EC3\n span TO\u00C0N B\u1ED8 width data row. Tr\u00E1nh colspan trick overflow row khi c\u00E1c TD kh\u00E1c render. -->\n <ng-container matColumnDef=\"sdGroupHeader\">\n <td class=\"p-0 sd-group-header-cell\" mat-cell *matCellDef=\"let item\" [attr.colspan]=\"sdGroupColspan()\">\n <ng-container *ngTemplateOutlet=\"sdGroupHeader; context: { item: item }\"></ng-container>\n </td>\n </ng-container>\n <!-- why: filler column \u1EDF cu\u1ED1i h\u1EA5p th\u1EE5 leftover space khi t\u1ED5ng width c\u00E1c c\u1ED9t data < container \u2014 gi\u1EEF cho selection/STT/command kh\u00F4ng b\u1ECB d\u00E3n. -->\n <ng-container matColumnDef=\"sdFiller\">\n <th class=\"sd-filler-cell p-0\" mat-header-cell *matHeaderCellDef [attr.rowspan]=\"_configuration.multipleHeader ? 2 : 1\"></th>\n <td class=\"sd-filler-cell p-0\" mat-cell *matCellDef=\"let item\"></td>\n <td class=\"sd-filler-cell p-0\" mat-footer-cell *matFooterCellDef></td>\n </ng-container>\n @for (column of _configuration.firstColumns; track column.field) {\n <ng-container [matColumnDef]=\"column.field\" [sticky]=\"_configuration.fixedColumn[column.field]\">\n <th\n mat-header-cell\n *matHeaderCellDef\n class=\"px-8 c-th\"\n [class.sd-column-group]=\"column.type === 'children'\"\n [attr.scope]=\"column.type === 'children' ? 'colgroup' : 'col'\"\n [sdColumnResize]=\"!!_tableOption.config?.resizable && column.type !== 'children'\"\n [minWidth]=\"column.minWidth\"\n [maxWidth]=\"column.maxWidth\"\n (resizeEnd)=\"onColumnResize(column.field, $event)\"\n [style.width]=\"column.width\"\n [style.min-width]=\"column.minWidth || column.width\"\n [style.max-width]=\"column.maxWidth\"\n [attr.rowspan]=\"_configuration.multipleHeader && column.type !== 'children' ? 2 : 1\"\n [attr.colspan]=\"column.type === 'children' ? column.children.length : 1\"\n [attr.aria-sort]=\"\n _tableOption.sort?.enable && column.type !== 'children' && column.sortable ? getSortAria(column.field) : null\n \">\n <div\n [class.sd-table-header-cell--trigger]=\"_queryBarMode && column.type !== 'children'\"\n [class.sd-table-header-cell--end]=\"_queryBarMode && column.align === 'right'\">\n <!-- why: sort control ch\u1EC9 \u00F4m title; filter l\u00E0 sibling n\u00EAn kh\u00F4ng th\u00E0nh interactive\n descendant. aria-sort thu\u1ED9c semantic <th>, kh\u00F4ng thu\u1ED9c control n\u00E0y. -->\n @if (column.type === 'children') {\n <div class=\"c-header-title sd-column-group-title\">\n <column-title [column]=\"column\" [titleDef]=\"_titleDef[column.field]\"></column-title>\n </div>\n } @else {\n @if (_tableOption.sort?.enable && column.sortable) {\n <div\n [sdTableSortHeader]=\"column.field\"\n class=\"c-header-title\"\n [class.justify-content-end]=\"column.align === 'right'\"\n [class.text-right]=\"column.align === 'right'\">\n <column-title [column]=\"column\" [titleDef]=\"_titleDef[column.field]\"></column-title>\n </div>\n } @else {\n <div\n class=\"c-header-title\"\n [class.justify-content-end]=\"column.align === 'right'\"\n [class.text-right]=\"column.align === 'right'\">\n <column-title [column]=\"column\" [titleDef]=\"_titleDef[column.field]\"></column-title>\n </div>\n }\n @if (_queryBarMode) {\n <ng-container *ngTemplateOutlet=\"queryBarTrigger; context: { $implicit: column }\"></ng-container>\n }\n @if (_showInlineFilter && !_configuration.multipleHeader) {\n <ng-container *ngTemplateOutlet=\"inlineColumnFilter; context: { $implicit: column }\"></ng-container>\n }\n }\n </div>\n </th>\n <td\n class=\"c-td px-0\"\n [class.d-none]=\"column.type === 'children'\"\n mat-cell\n *matCellDef=\"let item\"\n [sdHoverCopy]=\"(item.data && item.data[column.field]) || ''\"\n [sdHoverCopyDisabled]=\"!column.cell?.copiable\">\n @if (column.type !== 'children' && !item?.meta?.group?.isGroupHeader) {\n @if (_treeFirstField && column.field === _treeFirstField) {\n <!-- why: kh\u00F4ng c\u00F3 c\u1ED9t Index \u2192 chevron + indent nh\u00FAng v\u00E0o c\u1ED9t data \u0111\u1EA7u (nh\u01B0 file explorer). -->\n <span class=\"sd-tree-line px-8\">\n <ng-container *ngTemplateOutlet=\"sdTreeToggle; context: { row: item }\"></ng-container>\n <desktop-cell class=\"d-block\" [column]=\"column\" [item]=\"item\" [cellDef]=\"_cellDef\"></desktop-cell>\n </span>\n } @else {\n <desktop-cell class=\"d-block px-8\" [column]=\"column\" [item]=\"item\" [cellDef]=\"_cellDef\"> </desktop-cell>\n }\n }\n </td>\n <td mat-footer-cell *matFooterCellDef [class.d-none]=\"column.type === 'children'\">\n <ng-container *ngIf=\"_footerDef[column.field]\">\n <ng-container *ngTemplateOutlet=\"_footerDef[column.field].templateRef; context: { items: _items, column: column }\">\n </ng-container>\n </ng-container>\n </td>\n </ng-container>\n }\n @for (column of _configuration.secondColumns; track column.field) {\n <ng-container [matColumnDef]=\"column.field\" [sticky]=\"_configuration.fixedColumn[column.field]\">\n <th\n mat-header-cell\n *matHeaderCellDef\n class=\"c-th px-8\"\n scope=\"col\"\n [style.width]=\"column.width\"\n [style.min-width]=\"column.minWidth || column.width\"\n [style.max-width]=\"column.maxWidth\"\n [attr.aria-sort]=\"_tableOption.sort?.enable && column.sortable ? getSortAria(column.field) : null\">\n <div\n [class.sd-table-header-cell--trigger]=\"_queryBarMode\"\n [class.sd-table-header-cell--end]=\"_queryBarMode && column.align === 'right'\">\n @if (_tableOption.sort?.enable && column.sortable) {\n <div\n [sdTableSortHeader]=\"column.field\"\n class=\"c-header-title\"\n [class.justify-content-end]=\"column.align === 'right'\"\n [class.text-right]=\"column.align === 'right'\">\n <column-title [column]=\"column\" [titleDef]=\"_titleDef[column.field]\"></column-title>\n </div>\n } @else {\n <div\n class=\"c-header-title\"\n [class.justify-content-end]=\"column.align === 'right'\"\n [class.text-right]=\"column.align === 'right'\">\n <column-title [column]=\"column\" [titleDef]=\"_titleDef[column.field]\"></column-title>\n </div>\n }\n @if (_queryBarMode) {\n <ng-container *ngTemplateOutlet=\"queryBarTrigger; context: { $implicit: column }\"></ng-container>\n }\n </div>\n </th>\n <td\n class=\"c-td px-0\"\n mat-cell\n *matCellDef=\"let item\"\n [sdHoverCopy]=\"item[column.field]\"\n [sdHoverCopyDisabled]=\"!column.cell?.copiable\">\n @if (column.type !== 'children') {\n <desktop-cell class=\"d-block px-8\" [column]=\"column\" [item]=\"item\" [cellDef]=\"_cellDef\"> </desktop-cell>\n }\n </td>\n <td mat-footer-cell *matFooterCellDef>\n <ng-container *ngIf=\"_footerDef[column.field]\">\n <ng-container *ngTemplateOutlet=\"_footerDef[column.field].templateRef; context: { items: _items, column: column }\">\n </ng-container>\n </ng-container>\n </td>\n </ng-container>\n }\n <tr class=\"c-first-header\" mat-header-row *matHeaderRowDef=\"_configuration.firstHeaders; sticky: true\"></tr>\n @for (entry of _aggregateColumns; track entry.id) {\n <ng-container [matColumnDef]=\"entry.id\" [sticky]=\"entry.sticky\" [stickyEnd]=\"entry.stickyEnd\">\n <td\n mat-cell\n *matCellDef=\"let row\"\n class=\"sd-aggregate-cell px-8 py-8\"\n [class.d-none]=\"entry.hidden\"\n [style.text-align]=\"entry.column?.align\"\n [style.width]=\"entry.column?.width\"\n [style.min-width]=\"entry.column?.minWidth || entry.column?.width\">\n <ng-container\n *ngTemplateOutlet=\"\n aggregateCell;\n context: { $implicit: aggregateRenderHost.rows.get(row)?.cells?.get(entry.field) }\n \"></ng-container>\n </td>\n <td\n mat-footer-cell\n *matFooterCellDef\n class=\"sd-aggregate-cell px-8 py-8\"\n [class.d-none]=\"entry.hidden\"\n [style.text-align]=\"entry.column?.align\"\n [style.width]=\"entry.column?.width\"\n [style.min-width]=\"entry.column?.minWidth || entry.column?.width\">\n <ng-container\n *ngTemplateOutlet=\"aggregateCell; context: { $implicit: _aggregate.total?.cells?.get(entry.field) }\"></ng-container>\n </td>\n </ng-container>\n }\n <tr mat-row *matRowDef=\"let row; columns: _aggregateColumnIds; when: isAggregateRow\" class=\"sd-aggregate-row\"></tr>\n @if (!!_configuration.secondHeaders.length) {\n <tr class=\"c-second-header\" mat-header-row *matHeaderRowDef=\"_configuration.secondHeaders; sticky: true\"></tr>\n }\n @if (_configuration.multipleHeader) {\n @for (entry of _headerFilterColumns; track entry.id) {\n <ng-container [matColumnDef]=\"entry.id\" [sticky]=\"entry.sticky\" [stickyEnd]=\"entry.stickyEnd\">\n <th\n mat-header-cell\n *matHeaderCellDef\n class=\"c-th sd-filter-header\"\n [class.px-8]=\"!!entry.column\"\n [class.p-0]=\"!entry.column\"\n [class.sd-filler-cell]=\"entry.field === 'sdFiller'\"\n scope=\"col\">\n @if (_showInlineFilter && entry.column) {\n <ng-container *ngTemplateOutlet=\"inlineColumnFilter; context: { $implicit: entry.column }\"></ng-container>\n }\n </th>\n </ng-container>\n }\n <!-- why: gi\u1EEF row definition \u1ED5n \u0111\u1ECBnh; CDK c\u1EADp nh\u1EADt columns \u0111\u1EC3 b\u1ECF controls/sticky offsets khi \u1EA9n filter. -->\n <tr\n class=\"c-filter-header\"\n [style.display]=\"_showInlineFilter ? null : 'none'\"\n mat-header-row\n *matHeaderRowDef=\"_showInlineFilter ? headerFilterColumnIds() : []; sticky: _showInlineFilter\"></tr>\n }\n <!-- Group header row \u2014 ch\u1EC9 1 cell sdGroupHeader colspan to\u00E0n width. -->\n <tr mat-row *matRowDef=\"let row; columns: ['sdGroupHeader']; when: isGroupHeaderRow\" class=\"c-group-row-tr\"></tr>\n\n <!-- Data row \u2014 d\u00F9ng displayedColumns \u0111\u1EA7y \u0111\u1EE7; when isDataRow \u0111\u1EC3 lo\u1EA1i tr\u1EEB group header. -->\n <!-- why: [ngStyle] \u0111\u1ECDc meta.rowStyle \u2014 style.rowCss \u0111\u00E3 \u0111\u01B0\u1EE3c resolve 1 l\u1EA7n m\u1ED7i l\u1EA7n\n render. B\u1EA3n c\u0169 g\u1ECDi rowStyle(row) ngay trong binding \u2192 ch\u1EA1y callback c\u1EE7a consumer\n cho T\u1EEANG d\u00F2ng \u1EDF M\u1ED6I CD pass, v\u00E0 v\u00EC tr\u1EA3 object M\u1EDAI n\u00EAn NgStyle ph\u1EA3i ch\u1EA1y l\u1EA1i\n KeyValueDiffer tr\u00EAn m\u1ECDi d\u00F2ng \u1EDF m\u1ECDi pass. -->\n <tr\n mat-row\n cdkDrag\n [cdkDragData]=\"row\"\n [cdkDragDisabled]=\"\n !_tableOption.rowReorder?.enabled ||\n !!row.meta?.group?.items?.length ||\n (row.meta?.tree?.level ?? 0) > 0 ||\n isReorderDisabled(row)\n \"\n *matRowDef=\"let row; columns: _configuration.displayedColumns; when: isDataRow\"\n matRipple\n class=\"c-row\"\n [class.sd-tree-row]=\"!!_tableOption.tree\"\n [ngClass]=\"_tableOption.tree ? 'sd-tree-level-' + (row.meta?.tree?.level ?? 0) : null\"\n [ngStyle]=\"row.meta.rowStyle\"\n [class.selected]=\"row.meta.selector.isSelected\"></tr>\n\n <!-- Sub-information row \u2014 also gated b\u1EDFi isDataRow \u0111\u1EC3 KH\u00D4NG render empty expand row d\u01B0\u1EDBi group header. -->\n <tr mat-row *matRowDef=\"let row; columns: ['sdSubInformation']; when: isDataRow\" class=\"c-detail-row\"></tr>\n @if (_aggregate.total) {\n <tr mat-footer-row *sdTableFooterRowDef=\"_aggregateColumnIds; sticky: true\" class=\"sd-aggregate-total\"></tr>\n }\n @if (hasFooter() && !!_configuration.displayedFooters.length) {\n <tr mat-footer-row *sdTableFooterRowDef=\"_configuration.displayedFooters; sticky: true\"></tr>\n }\n <!-- why: khung x\u01B0\u01A1ng l\u00E0 d\u00F2ng th\u1EADt trong tbody (matNoDataRow ch\u1EC9 hi\u1EC7n khi kh\u00F4ng c\u00F3 d\u00F2ng d\u1EEF li\u1EC7u) n\u00EAn \u00F4 th\u1EB3ng\n c\u1ED9t v\u1EDBi header, k\u1EC3 c\u1EA3 header nh\u00F3m, m\u00E0 kh\u00F4ng ph\u1EA3i \u0111o; footer v\u1EABn n\u1EB1m d\u01B0\u1EDBi; dataSource kh\u00F4ng \u0111\u1ED5i. -->\n <ng-template matNoDataRow>\n @for (cells of skeleton(); track $index) {\n <tr class=\"sd-table-skeleton-row\" aria-hidden=\"true\">\n @for (cell of cells; track cell.field) {\n <td class=\"sd-table-skeleton-cell\" [class.d-none]=\"cell.hidden\">\n @if (cell.shape !== 'none') {\n <span\n class=\"sd-table-skeleton-bar\"\n [attr.data-shape]=\"cell.shape\"\n [attr.data-align]=\"cell.align\"\n [style.width]=\"cell.width\"\n [style.max-width]=\"cell.maxWidth\"></span>\n }\n </td>\n }\n </tr>\n }\n </ng-template>\n </table>\n }\n @let _readError = _readState.status === 'error';\n <!-- why: d\u00F2ng c\u0169 b\u1ECB g\u1EE1 khi l\u1EA7n \u0111\u1ECDc hi\u1EC7n h\u00E0nh l\u1ED7i, n\u00EAn v\u00F9ng l\u1ED7i/empty ch\u1EC9 hi\u1EC7n khi b\u1EA3ng kh\u00F4ng c\u00F2n d\u00F2ng n\u00E0o\n \u2014 end user kh\u00F4ng bao gi\u1EDD th\u1EA5y d\u1EEF li\u1EC7u v\u00E0 l\u1ED7i c\u00F9ng l\u00FAc (NSP-4877). -->\n @let _noRows = !_readError && !_loading && !_total && !_items.length && _loadingView === 'none';\n @if ((_readError && !_hideReadError) || (_noRows && _readState.status === 'empty' && !!_dataStateTemplate)) {\n <sd-data-state [state]=\"_readError ? 'error' : 'empty'\" [retryable]=\"_readError\" (sdRetry)=\"retryRead()\">\n @if (_dataStateTemplate; as custom) {\n <ng-template sdDataStateTemplate let-current let-retry=\"retry\" let-action=\"action\">\n <ng-container\n [ngTemplateOutlet]=\"custom.template\"\n [ngTemplateOutletContext]=\"{ $implicit: current, state: current, retry: retry, action: action }\"></ng-container>\n </ng-template>\n }\n </sd-data-state>\n } @else if (!_loading && loadError() && !_hideReadError) {\n <!-- why: b\u1EA3ng local l\u1ED7i d\u00F9ng c\u00F9ng giao di\u1EC7n l\u1ED7i v\u1EDBi b\u1EA3ng server (sd-data-state, role=\"alert\") v\u00E0 c\u00F9ng\n sdDataStateTemplate; th\u1EED l\u1EA1i = reload() v\u00EC local kh\u00F4ng c\u00F3 snapshot \u0111\u1ECDc \u0111\u1EC3 retryRead(). -->\n <sd-data-state state=\"error\" [retryable]=\"true\" (sdRetry)=\"reload()\">\n @if (_dataStateTemplate; as custom) {\n <ng-template sdDataStateTemplate let-current let-retry=\"retry\" let-action=\"action\">\n <ng-container\n [ngTemplateOutlet]=\"custom.template\"\n [ngTemplateOutletContext]=\"{ $implicit: current, state: current, retry: retry, action: action }\"></ng-container>\n </ng-template>\n }\n </sd-data-state>\n } @else if (_noRows && !loadError()) {\n <!-- why: empty m\u1EB7c \u0111\u1ECBnh gi\u1EEF 3 tr\u1EA1ng th\u00E1i (filter kh\u00F4ng c\u00F3 k\u1EBFt qu\u1EA3 / ch\u01B0a ch\u1ECDn filter b\u1EAFt bu\u1ED9c / ch\u01B0a c\u00F3 d\u1EEF li\u1EC7u)\n c\u00F9ng \u1EA3nh c\u1EA5u h\u00ECnh qua SD_TABLE_CONFIGURATION.images, cho c\u1EA3 b\u1EA3ng server (NSP-5551). Kh\u00F4ng c\u00F3 role live:\n v\u00F9ng .sd-table-live (lu\u00F4n c\u00F3 trong DOM) \u0111\u1ECDc ti\u00EAu \u0111\u1EC1 c\u1EE7a kh\u1ED1i n\u00E0y. -->\n @let _requiredHint = requiredHint();\n <div class=\"c-no-data-row\">\n @if (_requiredHint) {\n <!-- why: field b\u1EAFt bu\u1ED9c c\u00F2n r\u1ED7ng th\u00EC b\u1EA3ng kh\u00F4ng \u0111\u1ECDc. C\u00E2u nh\u1EAFc n\u1EB1m \u1EDF \u0111\u00E2y, ch\u1ED7 c\u00E1c d\u00F2ng s\u1EBD hi\u1EC7n, ch\u1EE9 kh\u00F4ng ch\u00E8n\n d\u01B0\u1EDBi thanh l\u1ECDc: d\u00F2ng ch\u00E8n th\u00EAm \u0111\u1EA9y b\u1EA3ng xu\u1ED1ng r\u1ED3i k\u00E9o l\u00EAn khi ng\u01B0\u1EDDi d\u00F9ng ch\u1ECDn xong. Th\u1EAFng c\u1EA3 \"kh\u00F4ng c\u00F3\n k\u1EBFt qu\u1EA3\" v\u00EC c\u00E1c b\u1ED9 l\u1ECDc kh\u00E1c ch\u01B0a \u0111\u01B0\u1EE3c \u00E1p d\u1EE5ng. -->\n @if (tableConfiguration?.images?.filterRequired) {\n <img class=\"c-image\" [src]=\"tableConfiguration!.images!.filterRequired\" alt=\"filter-required\" />\n } @else {\n <img class=\"c-image sd-image-filter-required\" alt=\"filter-required\" />\n }\n <div class=\"T16R text-secondary sd-table-required-hint\" [id]=\"requiredHintId\">{{ _requiredHint }}</div>\n } @else if (_isFiltered) {\n @if (tableConfiguration?.images?.filterEmpty) {\n <img class=\"c-image\" [src]=\"tableConfiguration!.images!.filterEmpty\" alt=\"filter-empty\" />\n } @else {\n <img class=\"c-image sd-image-filter-empty\" alt=\"filter-empty\" />\n }\n <div class=\"T16M\">{{ 'core.component.table.no-results' | sdTranslate }}</div>\n <div class=\"T16R text-secondary\">{{ 'core.component.table.no-results-hint' | sdTranslate }}</div>\n } @else {\n @if (_requireFiltered) {\n @if (tableConfiguration?.images?.filterRequired) {\n <img class=\"c-image\" [src]=\"tableConfiguration!.images!.filterRequired\" alt=\"filter-required\" />\n } @else {\n <img class=\"c-image sd-image-filter-required\" alt=\"filter-required\" />\n }\n <div class=\"T16R text-secondary\">{{ 'core.component.table.choose-filter-hint' | sdTranslate }}</div>\n } @else {\n @if (tableConfiguration?.images?.dataEmpty) {\n <img class=\"c-image\" [src]=\"tableConfiguration!.images!.dataEmpty\" alt=\"data-empty\" />\n } @else {\n <img class=\"c-image sd-image-data-empty\" alt=\"data-empty\" />\n }\n <div class=\"T16R text-secondary\">{{ 'core.component.table.no-data' | sdTranslate }}</div>\n }\n }\n </div>\n }\n </div>\n @if (_loadingView === 'refresh' && !_mobileCards) {\n <!-- N\u1EB1m trong .c-container, kh\u00F4ng trong .c-table, \u0111\u1EC3 kh\u00F4ng cu\u1ED9n ngang theo b\u1EA3ng; top = --sd-table-head-h (\u0111o). -->\n <div class=\"sd-table-progress\" aria-hidden=\"true\"></div>\n }\n @if (!_mobileCards) {\n <selector-action\n [autoId]=\"_autoId\"\n [tableOption]=\"_tableOption\"\n [selectedTableItems]=\"_selectedTableItems\"\n (clear)=\"onClearSelection()\" />\n }\n <div class=\"c-paginator\">\n <div class=\"c-action\">\n @if (!_mobileCards) {\n @if (_tableOption.reload?.visible) {\n <sd-button\n [autoId]=\"_autoId ? _autoId + '-reload' : null\"\n class=\"mr-8\"\n [title]=\"'core.component.table.reload' | sdTranslate\"\n prefixIcon=\"refresh\"\n (click)=\"reload()\"\n type=\"text\">\n </sd-button>\n }\n @if (_export && _items.length) {\n @if (_export.type === 'custom') {\n <sd-button\n [autoId]=\"_autoId ? _autoId + '-export' : null\"\n class=\"mr-8\"\n [title]=\"_exportTitle\"\n prefixIcon=\"get_app\"\n (click)=\"exportCustom()\"\n type=\"text\">\n </sd-button>\n } @else {\n @if (_export.visible) {\n @if (_exporting) {\n <sd-button\n [autoId]=\"_autoId ? _autoId + '-export' : null\"\n class=\"mr-8\"\n [loading]=\"_exporting\"\n [title]=\"_exportTitle\"\n prefixIcon=\"get_app\"\n type=\"text\">\n </sd-button>\n } @else {\n @if (_export.visible === 'ALL' || !_export.visible) {\n <sd-button\n [autoId]=\"_autoId ? _autoId + '-export' : null\"\n class=\"mr-8\"\n [title]=\"_exportTitle\"\n prefixIcon=\"get_app\"\n type=\"text\">\n <sd-button-item\n [autoId]=\"_autoId ? _autoId + '-export-excel' : null\"\n prefixIcon=\"file_download\"\n (click)=\"exportExcel()\"\n >{{ 'core.component.table.export-excel' | sdTranslate }}</sd-button-item\n >\n <sd-button-item\n [autoId]=\"_autoId ? _autoId + '-export-csv' : null\"\n prefixIcon=\"file_download\"\n (click)=\"exportCSV()\"\n >{{ 'core.component.table.export-csv' | sdTranslate }}</sd-button-item\n >\n </sd-button>\n } @else if (_export.visible === 'EXCEL') {\n <sd-button\n [autoId]=\"_autoId ? _autoId + '-export-excel' : null\"\n class=\"mr-8\"\n [title]=\"_exportTitle\"\n prefixIcon=\"get_app\"\n (click)=\"exportExcel()\"\n type=\"text\">\n </sd-button>\n } @else if (_export.visible === 'CSV') {\n <sd-button\n [autoId]=\"_autoId ? _autoId + '-export-csv' : null\"\n class=\"mr-8\"\n [title]=\"_exportTitle\"\n prefixIcon=\"get_app\"\n (click)=\"exportCSV()\"\n type=\"text\">\n </sd-button>\n }\n }\n }\n }\n }\n\n @if (_configComponent) {\n <sd-button\n [autoId]=\"_autoId ? _autoId + '-config' : null\"\n class=\"mr-8\"\n [title]=\"'core.component.table.setup-short' | sdTranslate\"\n prefixIcon=\"settings\"\n [indicator]=\"!_isMobile && hasCustomSetup()\"\n indicatorColor=\"primary\"\n [indicatorLabel]=\"'core.component.table.config.customized' | sdTranslate\"\n (click)=\"_configComponent.open()\"\n type=\"text\">\n </sd-button>\n }\n <!-- Mobile: n\u00FAt Filter m\u1EDF mobile-filter drawer (inline filter \u1EA9n tr\u00EAn mobile) -->\n @if (_isMobile) {\n @if (!_tableOption.filter?.disabled && _mobileFilter) {\n <sd-button\n [autoId]=\"_autoId ? _autoId + '-mobile-filter-open' : null\"\n class=\"mr-8\"\n prefixIcon=\"filter_alt\"\n [title]=\"_mobileCards ? ('core.component.table.filter' | sdTranslate) : undefined\"\n (click)=\"_mobileFilter.open()\"\n type=\"text\">\n </sd-button>\n }\n }\n }\n </div>\n @let _unknownTotalPager = unknownTotalPager();\n @if (_unknownTotalPager) {\n <!-- paginate.total 'unknown': no total exists, so mat-paginator (which derives Next/Last and the\n range from `length`) is replaced by a pager that renders only the rows actually shown. -->\n @if (!_tableOption.paginate?.hidden && unknownTotalPagerVisible()) {\n <sd-table-unknown-total-paginator\n [class.sd-mobile-paginator]=\"_mobileCards\"\n [state]=\"_unknownTotalPager\"\n [pageSizeOptions]=\"_tableOption.paginate?.pages\"\n [hidePageSize]=\"_isMobile || !!_tableOption.paginate?.hidePageSize\"\n [showFirstButton]=\"!_isMobile && !!_tableOption.paginate?.showFirstLastButtons\"\n [autoId]=\"_autoId\"\n (page)=\"onUnknownTotalPage($event)\"></sd-table-unknown-total-paginator>\n } @else if (!_isMobile && !_tableOption.paginate?.hidden && unknownTotalSingleCount()) {\n <div class=\"T14R c-summary\">\n {{ 'core.component.table.showing' | sdTranslate }} <span class=\"T14M ml-2\">1-{{ unknownTotalSingleCount() }}</span>\n </div>\n }\n } @else {\n @let hidePaginator = !_tableOption.paginate?.pageSize || _total === undefined || _total <= _tableOption.paginate?.pageSize!;\n <mat-paginator\n [class.sd-mobile-paginator]=\"_mobileCards\"\n [class.d-none]=\"_tableOption.paginate?.hidden || hidePaginator\"\n [length]=\"_total\"\n [pageSize]=\"_tableOption.paginate?.pageSize\"\n [pageSizeOptions]=\"_tableOption.paginate?.pages!\"\n [showFirstLastButtons]=\"!_isMobile && _tableOption.paginate?.showFirstLastButtons\"\n [hidePageSize]=\"_isMobile || _tableOption.paginate?.hidePageSize\"\n [selectConfig]=\"{ panelClass: ['sd-select-panel', 'sd-table-page-size-panel'] }\"></mat-paginator>\n <!-- \"\u0110ang hi\u1EC3n th\u1ECB...\" ch\u1EC9 desktop -->\n @if (!_isMobile) {\n @if (!_tableOption.paginate?.hidden && hidePaginator && _total !== undefined && _total > 0) {\n <div class=\"T14R c-summary\">\n {{ 'core.component.table.showing' | sdTranslate }} <span class=\"T14M ml-2\">1-{{ _total }}/{{ _total }}</span>\n </div>\n }\n }\n }\n </div>\n </div>\n </div>\n\n @if (_tableOption.config?.visible) {\n <config\n [autoId]=\"_autoId\"\n [tableOption]=\"_tableOption\"\n [filterSetup]=\"configFilter()\"\n (defaultsRestored)=\"onConfigDefaultsRestored()\"\n (filterApplied)=\"onConfigFilterApplied($event)\" />\n }\n <!-- Mobile filter sheet (bottom sheet, two levels) \u2014 opened by the Filters chip or the footer filter button -->\n @if (!_tableOption.filter?.disabled && filterRegister) {\n <mobile-filter\n [autoId]=\"_autoId\"\n [filter]=\"_tableOption.filter!\"\n [externalFilters]=\"_tableOption.filter?.externalFilters!\"\n [columns]=\"mobileColumns()\"\n [filterDefs]=\"sdFilterDefs()\"\n [filterRegister]=\"filterRegister\"\n [cacheValues]=\"cacheValues\"\n [model]=\"mobileFilterModel()\">\n </mobile-filter>\n }\n} @else if (_readState.status === 'error' && !_hideReadError) {\n <!-- why: lookup c\u00F3 th\u1EC3 l\u1ED7i tr\u01B0\u1EDBc khi c\u00F3 configuration; v\u1EABn ph\u1EA3i c\u00F3 l\u1ED1i retry v\u00E0 custom error template. -->\n <sd-data-state state=\"error\" [retryable]=\"true\" (sdRetry)=\"retryRead()\">\n @if (_dataStateTemplate; as custom) {\n <ng-template sdDataStateTemplate let-current let-retry=\"retry\" let-action=\"action\">\n <ng-container\n [ngTemplateOutlet]=\"custom.template\"\n [ngTemplateOutletContext]=\"{ $implicit: current, state: current, retry: retry, action: action }\"></ng-container>\n </ng-template>\n }\n </sd-data-state>\n} @else if (_loadingView === 'skeleton') {\n <!-- why: lookup c\u1ED9t (values/lazy-values) c\u00F3 th\u1EC3 ch\u1EADm; ch\u01B0a c\u00F3 configuration n\u00EAn ch\u01B0a bi\u1EBFt c\u1ED9t, v\u1EBD khung x\u01B0\u01A1ng chung\n thay v\u00EC \u0111\u1EC3 tr\u1ED1ng. Hydrate kh\u00F4ng c\u00F3 lookup xong trong microtask n\u00EAn kh\u1ED1i n\u00E0y kh\u00F4ng k\u1ECBp hi\u1EC7n. -->\n <div class=\"sd-table-skeleton-block\" aria-hidden=\"true\">\n @for (cells of genericSkeleton; track $index) {\n <div class=\"sd-table-skeleton-block-row\">\n @for (cell of cells; track cell.field) {\n <span class=\"sd-table-skeleton-cell\">\n <span class=\"sd-table-skeleton-bar\" [style.width]=\"cell.width\" [style.max-width]=\"cell.maxWidth\"></span>\n </span>\n }\n </div>\n }\n </div>\n}\n", styles: [":host{display:flex;flex-direction:column;overflow:auto;width:100%;height:100%;--mat-table-row-item-container-height: 36px}:host:focus-visible{outline:var(--sd-focus-ring-width, 2px) solid var(--sd-focus-ring-color, var(--sd-primary));outline-offset:2px}:host .sd-table-live{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}:host .c-header-title{height:40px;display:flex;align-items:center}:host .sd-table-surface{display:flex;flex:1;flex-direction:column;min-width:0;min-height:0;background:var(--sd-surface, #fff);border-radius:var(--sd-radius-6, 6px)}:host .c-container{position:relative;min-height:50px;display:flex;flex-direction:column;flex:1;isolation:isolate}:host .c-container .c-table{position:relative;flex:1;display:flex;flex-direction:column}:host .c-container .c-table table{border-collapse:separate;width:100%}:host .c-container .c-table table tr.c-first-header.mat-mdc-header-row{height:40px}:host .c-container .c-table table tr.c-second-header.mat-mdc-header-row{height:40px}:host .c-container .c-table table.sd-table-grouped-header th.c-th{vertical-align:middle;padding-block:4px}:host .c-container .c-table table.sd-table-grouped-header tr.c-first-header.mat-mdc-header-row{height:32px}:host .c-container .c-table table.sd-table-grouped-header tr.c-filter-header.mat-mdc-header-row{height:auto}:host .c-container .c-table table.sd-table-grouped-header th.sd-filter-header{padding-block:0 8px;vertical-align:bottom}:host .c-container .c-table table.sd-table-grouped-header column-filter{display:flex;align-items:center;min-height:36px}:host .c-container .c-table table.sd-table-grouped-header th.sd-column-group{padding-block:4px;vertical-align:middle;background-color:color-mix(in srgb,var(--sd-border, #c4c6d0) 18%,var(--sd-table-group-header-mix, #f2f3f4));box-shadow:inset 0 -1px var(--sd-border, #c4c6d0)}:host .c-container .c-table table.sd-table-grouped-header th.sd-column-group .sd-column-group-title{height:auto;min-height:24px;justify-content:center;text-align:center;font-weight:var(--sd-font-weight-semibold, 600)}:host .c-container .c-table table tr.c-detail-row{height:0}:host .c-container .c-table table tr.c-row.activated{background-color:var(--sd-table-row-activated-bg, #e5ecff)}:host .c-container .c-table table tr.c-row.selected{background-color:var(--sd-table-row-selected-bg, #eef2ff)}:host .c-container .c-table table tr.c-row:not(.selected):not(.activated):hover{background-color:var(--sd-table-row-hover-bg, #f5f5f5)}:host .c-container .c-table table tr.c-row td{border-bottom-width:0}:host .c-container .c-table table tr.c-row.c-expandable{cursor:pointer}:host .c-container .c-table table tr.c-row.c-expandable:hover{background:var(--sd-table-row-hover-bg, #f5f5f5)}:host .c-container .c-table table th.mat-mdc-header-cell{background-color:var(--sd-table-header-bg, #f2f3f4);border-bottom:0!important}:host .c-container .c-table table td.mat-mdc-cell,:host .c-container .c-table table td.mat-mdc-footer-cell,:host .c-container .c-table table th.mat-mdc-header-cell{border-bottom-color:var(--sd-table-row-divider, #f2f2f2)!important}:host .c-container .c-table .c-th{vertical-align:middle;padding-block:8px;font-weight:var(--sd-font-weight-medium, 500);font-size:var(--sd-font-size-14, 14px);line-height:var(--sd-line-height-20, 20px);color:var(--sd-table-header-text, #212121)}:host .c-container .c-table .c-th.sd-col-resize-host{position:relative}:host .c-container .c-table .c-th.sd-resizing{-webkit-user-select:none;user-select:none}:host .c-container .c-table .c-th .sd-col-resize-handle{position:absolute;top:0;right:0;width:6px;height:100%;cursor:col-resize;-webkit-user-select:none;user-select:none;z-index:2}:host .c-container .c-table .c-th .sd-col-resize-handle:hover{background:color-mix(in srgb,var(--sd-text) 8%,transparent)}:host .c-container .c-table .c-td:first{padding-left:10px}:host .c-container .c-table .c-no-data-row{flex:1;width:100%;position:sticky;left:0;display:flex;flex-direction:column;align-items:center;justify-content:center}:host .c-container .c-table .c-no-data-row .c-image{margin-bottom:16px;width:96px}:host .c-container .c-paginator{display:flex;flex-direction:row;justify-content:space-between;align-items:center;background-color:var(--sd-table-bg, #ffffff)}:host .c-container .c-paginator .mat-mdc-paginator{background:transparent;--mat-paginator-container-size: 40px;--mat-icon-button-state-layer-size: 32px;--mdc-icon-button-state-layer-size: 32px;--mdc-icon-button-icon-size: 20px}:host .c-container .c-paginator .c-action{padding:0}:host .c-container .c-paginator .c-action sd-button{margin:8px 5px}:host .c-container .c-paginator .c-summary{padding:8px 16px}:host .c-container .c-empty{text-align:center;background-color:var(--sd-table-bg, #ffffff);border:none!important}:host .c-container .c-empty sd-icon{font-size:150px;margin-top:30px;margin-bottom:30px;opacity:.2;width:auto;height:auto}:host button.c-btn-add{background-color:var(--sd-table-bg, #ffffff);box-shadow:var(--sd-shadow-sm)}:host .sd-reorder-header,:host .sd-reorder-cell{width:40px;min-width:40px;padding:0 4px;box-sizing:border-box}:host .sd-reorder-cell sd-icon{cursor:grab;color:var(--sd-text-muted);display:flex;align-items:center}:host .sd-reorder-cell sd-icon:active{cursor:grabbing}:host .sd-reorder-cell sd-icon.sd-reorder-disabled{opacity:.3;cursor:not-allowed;pointer-events:none}:host ::ng-deep .sd-mobile-paginator .mat-mdc-paginator-range-label{margin-inline:4px;white-space:nowrap}:host .c-container:not(.sd-table-mobile)>.c-table{border-radius:6px 6px 0 0}:host .c-container:not(.sd-table-mobile)>.c-paginator{border-radius:0}:host .sd-mobile-command-header{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px;padding:4px}:host .c-container.sd-table-mobile .c-paginator{flex-wrap:wrap;gap:4px;min-height:48px}:host .c-container.sd-table-mobile .c-action{display:flex;align-items:center;min-width:0}:host .c-container.sd-table-mobile .sd-mobile-paginator{margin-inline-start:auto}:host .c-container.sd-table-mobile .c-paginator,:host .c-container.sd-table-mobile .c-empty{background-color:var(--sd-surface);color:var(--sd-text)}:host .c-container.sd-table-mobile .c-paginator{background-color:var(--sd-table-bg, #ffffff)}:host ::ng-deep .sd-table-mobile .c-paginator button{min-width:44px;min-height:44px}:host .c-container.sd-table-mobile .c-paginator .sd-mobile-paginator{--mat-icon-button-state-layer-size: 44px;--mdc-icon-button-state-layer-size: 44px}:host ::ng-deep .mat-select-arrow{color:var(--sd-table-select-arrow, #a6a6a6)}:host ::ng-deep .sd-table-sort-header{cursor:pointer;outline:none}:host ::ng-deep .sd-table-sort-header:focus-visible{border-bottom:solid 1px currentColor}:host ::ng-deep th[aria-sort] .sd-table-sort-header{position:relative;padding-right:24px}:host ::ng-deep th[aria-sort] .sd-table-sort-header:after{content:\"\";position:absolute;top:50%;right:0;width:16px;height:16px;transform:translateY(-50%);background-color:var(--sd-text-secondary);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:center;mask-position:center;-webkit-mask-size:16px 16px;mask-size:16px 16px;pointer-events:none}:host ::ng-deep th[aria-sort=ascending] .sd-table-sort-header:after,:host ::ng-deep th[aria-sort=descending] .sd-table-sort-header:after{background-color:var(--sd-text)}:host ::ng-deep th[aria-sort=none] .sd-table-sort-header:after{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24px' viewBox='0 0 24 24' width='24px' fill='%23000000'%3E%3Cpath d='M0 0h24v24H0V0z' fill='none'/%3E%3Cpath fill='%237A7A7A' d='M12 5.83L15.17 9l1.41-1.41L12 3 7.41 7.59 8.83 9 12 5.83zm0 12.34L8.83 15l-1.41 1.41L12 21l4.59-4.59L15.17 15 12 18.17z'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24px' viewBox='0 0 24 24' width='24px' fill='%23000000'%3E%3Cpath d='M0 0h24v24H0V0z' fill='none'/%3E%3Cpath fill='%237A7A7A' d='M12 5.83L15.17 9l1.41-1.41L12 3 7.41 7.59 8.83 9 12 5.83zm0 12.34L8.83 15l-1.41 1.41L12 21l4.59-4.59L15.17 15 12 18.17z'/%3E%3C/svg%3E\")}:host ::ng-deep th[aria-sort=ascending] .sd-table-sort-header:after{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24px' viewBox='0 0 24 24' width='24px' fill='%23000000'%3E%3Cpath d='M0 0h24v24H0V0z' fill='none'/%3E%3Cpath fill='%237A7A7A' d='M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24px' viewBox='0 0 24 24' width='24px' fill='%23000000'%3E%3Cpath d='M0 0h24v24H0V0z' fill='none'/%3E%3Cpath fill='%237A7A7A' d='M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z'/%3E%3C/svg%3E\")}:host ::ng-deep th[aria-sort=descending] .sd-table-sort-header:after{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24px' viewBox='0 0 24 24' width='24px' fill='%23000000'%3E%3Cpath d='M0 0h24v24H0V0z' fill='none'/%3E%3Cpath fill='%237A7A7A' d='M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24px' viewBox='0 0 24 24' width='24px' fill='%23000000'%3E%3Cpath d='M0 0h24v24H0V0z' fill='none'/%3E%3Cpath fill='%237A7A7A' d='M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z'/%3E%3C/svg%3E\")}:host ::ng-deep .c-paginator .mat-mdc-paginator-range-label{margin:0 4px}:host ::ng-deep .c-paginator .mat-mdc-paginator-page-size{align-items:center}:host ::ng-deep .c-paginator .mat-mdc-paginator-page-size-select{--mat-select-trigger-text-size: var(--sd-font-size-14, 14px);--mat-paginator-select-trigger-text-size: var(--sd-font-size-14, 14px)}:host ::ng-deep .c-paginator .mat-mdc-paginator-page-size-select .mat-mdc-form-field-infix{display:flex;align-items:center;height:32px;min-height:32px;padding-top:0;padding-bottom:0}:host ::ng-deep .c-paginator .mat-mdc-paginator-page-size-select.mat-mdc-form-field .mat-mdc-form-field-infix mat-select.mat-mdc-select{margin-top:0}:host ::ng-deep .c-paginator .mat-mdc-paginator-page-size-select .mat-mdc-text-field-wrapper{padding-right:8px}:host ::ng-deep .c-paginator .mat-mdc-paginator-page-size-select .mat-mdc-select-arrow-wrapper{width:20px;justify-content:center}:host ::ng-deep .c-paginator .mat-mdc-paginator-page-size-select .mat-mdc-select-arrow{width:16px;height:16px;color:var(--sd-text-secondary);background-color:currentColor;mask:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z'/%3E%3C/svg%3E\") center/16px 16px no-repeat}:host ::ng-deep .c-paginator .mat-mdc-paginator-page-size-select .mat-mdc-select-arrow svg{display:none}:host ::ng-deep .c-paginator .mat-mdc-paginator-page-size-select .mat-mdc-form-field-flex:hover .mat-mdc-select-arrow{color:var(--sd-text)}::ng-deep .mat-mdc-select-panel.sd-select-panel.sd-table-page-size-panel .mat-mdc-option{min-height:36px;padding:7px 12px}:host ::ng-deep .cdk-drag-preview{box-shadow:var(--sd-shadow-md);background:var(--sd-table-bg);display:table;width:100%}:host ::ng-deep .cdk-drag-preview td{padding:0 8px;border-bottom:1px solid var(--sd-table-row-divider)}:host ::ng-deep .cdk-drag-placeholder{opacity:0}:host ::ng-deep .cdk-drop-list-dragging tr.c-row:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}:host ::ng-deep .sd-selection-cell{width:42px;min-width:42px;max-width:42px}:host ::ng-deep .sd-filler-cell{width:auto;min-width:0;padding:0!important;border:0}:host ::ng-deep .sd-group-header-cell{background:var(--sd-table-group-row-bg, #f5f7fc);border-top:1px solid var(--sd-table-group-row-border, #e6e9f2);border-bottom:1px solid var(--sd-table-group-row-border, #e6e9f2)}:host ::ng-deep .sd-group-row{min-height:36px}:host ::ng-deep .sd-group-selection-slot{width:42px;min-width:42px;max-width:42px}:host ::ng-deep .c-selection{transform:scale(.85);transform-origin:center}:host ::ng-deep .sd-tree-line{display:inline-flex;align-items:center;min-height:32px}:host ::ng-deep .sd-tree-indent{flex:0 0 auto}:host ::ng-deep .sd-tree-toggle-slot{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px}:host ::ng-deep .sd-tree-toggle-btn{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;padding:0;border:0;background:transparent;border-radius:50%;cursor:pointer;color:var(--sd-text-secondary, #5b6472);transition:background-color .15s ease}:host ::ng-deep .sd-tree-toggle-btn sd-icon{font-size:var(--sd-font-size-18, 18px);width:18px;height:18px;line-height:var(--sd-line-height-18, 18px)}:host ::ng-deep .sd-tree-toggle-btn:hover{background-color:color-mix(in srgb,var(--sd-text) 8%,transparent)}:host ::ng-deep .sd-tree-toggle-btn[aria-busy=true]{cursor:progress}:host ::ng-deep .sd-tree-stt{margin-left:2px;white-space:nowrap}:host ::ng-deep .sd-tree-index-cell{text-align:left!important;white-space:nowrap;padding-left:8px;padding-right:8px}:host ::ng-deep .sd-tree-index-header{padding-left:32px}:host ::ng-deep tr.c-row.sd-tree-row.sd-tree-level-0{background:var(--sd-table-tree-level-0-bg, #fbfcfe)}:host ::ng-deep tr.c-row.sd-tree-row.sd-tree-level-0>td{font-weight:var(--sd-font-weight-medium, 500)}:host ::ng-deep tr.c-row.sd-tree-row.sd-tree-level-1{background:var(--sd-table-tree-level-1-bg, #ffffff)}:host ::ng-deep tr.c-row.sd-tree-row.sd-tree-level-2{background:var(--sd-table-tree-level-2-bg, #fafbfd)}:host ::ng-deep tr.c-row.sd-tree-row.sd-tree-level-3{background:var(--sd-table-tree-level-3-bg, #f6f8fb)}:host ::ng-deep .sd-stt-root{font-weight:var(--sd-font-weight-bold, 700);color:var(--sd-table-tree-root-text, #1f2330)}:host .sd-mobile-top{display:flex;align-items:center;gap:4px;min-width:0;padding:4px 4px 10px 16px}:host .sd-mobile-top--chips{padding-bottom:4px}:host .sd-mobile-top--no-search{justify-content:flex-end}:host .sd-mobile-top--empty:not(:focus-within){padding:0}:host .sd-mobile-top-search{flex:1 1 auto;min-width:0}:host .sd-mobile-top-button{flex:0 0 44px;width:44px;height:44px;padding:0;color:var(--sd-text-secondary);--mat-icon-button-state-layer-size: 44px;--mdc-icon-button-state-layer-size: 44px}:host .sd-mobile-reload:not(:focus-visible){position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}:host .sd-table-surface--quick-search>.c-container:not(.sd-table-mobile)>.c-table,:host .sd-table-surface--query-bar>.c-container:not(.sd-table-mobile)>.c-table{border-top-left-radius:0;border-top-right-radius:0}:host .sd-table-query-bar{display:block;flex:0 0 auto;min-width:0;background:var(--sd-table-bg, #ffffff);border-top-left-radius:var(--sd-radius-6, 6px);border-top-right-radius:var(--sd-radius-6, 6px);--sd-control-label-bg: var(--sd-table-bg, #ffffff)}:host .sd-table-query-bar-end{flex:none;display:flex;align-items:center;align-self:flex-start;padding-left:8px}:host .sd-table-header-cell--trigger{display:flex;align-items:center;gap:4px;min-width:0}:host .sd-table-header-cell--trigger>.c-header-title{flex:0 1 auto;min-width:0}:host .sd-table-header-cell--trigger.sd-table-header-cell--end{flex-direction:row-reverse;justify-content:flex-start}:host .sd-table-filter-trigger{flex:none;display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;padding:0;border:0;border-radius:var(--sd-radius-4, 4px);background:transparent;color:var(--sd-text-secondary);cursor:pointer;opacity:0;transition:opacity var(--sd-duration-fast, .12s) ease,background-color var(--sd-duration-fast, .12s) ease}:host .sd-table-filter-trigger sd-icon{width:15px;height:15px;font-size:15px}:host .sd-table-filter-trigger:hover{background:var(--sd-table-row-hover-bg)}:host .sd-table-filter-trigger:focus-visible{opacity:1;outline:2px solid var(--sd-focus-ring-color);outline-offset:1px}:host .sd-table-filter-trigger.sd-table-filter-trigger--active{opacity:1;color:var(--sd-primary)}:host th:hover .sd-table-filter-trigger,:host th:focus-within .sd-table-filter-trigger{opacity:1}@media(pointer:coarse){:host .sd-table-filter-trigger{opacity:1}}@media(prefers-reduced-motion:reduce){:host .sd-table-filter-trigger{transition:none}}@media(forced-colors:active){:host .sd-table-filter-trigger{color:ButtonText}:host .sd-table-filter-trigger--active{color:Highlight}}@keyframes sd-table-skeleton-sweep{to{background-position:480px 0}}@keyframes sd-table-progress-run{0%{transform:translate(-100%)}to{transform:translate(285.7142857143%)}}@keyframes sd-table-spin{to{transform:rotate(360deg)}}:host tr.sd-table-skeleton-row{height:var(--mat-table-row-item-container-height, 36px)}:host .sd-table-skeleton-cell{padding:0 8px;border-bottom:1px solid var(--sd-table-row-divider);vertical-align:middle}:host .sd-table-skeleton-bar{display:block;height:12px;border-radius:var(--sd-radius-4, 4px);background:linear-gradient(90deg,var(--sd-table-skeleton-bg) 0,var(--sd-table-skeleton-highlight) 40%,var(--sd-table-skeleton-bg) 80%) 0 0/480px 100%;animation:sd-table-skeleton-sweep 1.4s linear infinite}@media(prefers-reduced-motion:reduce){:host .sd-table-skeleton-bar{animation:none}}@media(forced-colors:active){:host .sd-table-skeleton-bar{forced-color-adjust:none;background:GrayText}}:host .sd-table-skeleton-bar[data-align=end]{margin-inline-start:auto}:host .sd-table-skeleton-bar[data-align=center]{margin-inline:auto}:host .sd-table-skeleton-bar[data-shape=pill]{height:20px;border-radius:999px}:host .sd-table-skeleton-bar[data-shape=box]{width:14px;height:14px;border-radius:3px}:host .sd-table-skeleton-block{overflow:hidden;border-radius:var(--sd-radius-6, 6px);background:var(--sd-surface)}:host .sd-table-skeleton-block-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:center;height:var(--mat-table-row-item-container-height, 36px);border-bottom:1px solid var(--sd-table-row-divider)}:host .sd-table-skeleton-block-row>.sd-table-skeleton-cell{border-bottom:0}:host .c-table>table>::ng-deep tbody{transition:opacity var(--sd-duration-fast, .12s)}@media(prefers-reduced-motion:reduce){:host .c-table>table>::ng-deep tbody{transition:none}}:host .c-table.c-table--dim{cursor:progress}:host .c-table.c-table--dim>table>::ng-deep thead,:host .c-table.c-table--dim>table>::ng-deep tfoot{cursor:auto}:host .c-table.c-table--dim>table>::ng-deep tbody{opacity:var(--sd-table-loading-dim, .55)}:host .c-table.c-table--dim>table>::ng-deep tbody,:host .c-table.c-table--dim>table>::ng-deep tbody *{pointer-events:none!important}:host .sd-table-progress{position:absolute;top:var(--sd-table-head-h, 0px);right:0;left:0;z-index:20;height:2px;overflow:hidden;pointer-events:none;background:var(--sd-table-progress-track)}:host .sd-table-progress:before{content:\"\";position:absolute;inset:0 auto 0 0;width:35%;background:var(--sd-table-spinner);animation:sd-table-progress-run 1.1s ease-in-out infinite}@media(prefers-reduced-motion:reduce){:host .sd-table-progress:before{width:100%;opacity:.6;animation:none}}@media(forced-colors:active){:host .sd-table-progress{forced-color-adjust:none;box-sizing:content-box;border:1px solid CanvasText;background:Canvas}:host .sd-table-progress:before{background:Highlight}}:host .sd-table-spinner{display:inline-block;flex:0 0 auto;vertical-align:middle;box-sizing:border-box;width:16px;height:16px;border:2px solid var(--sd-table-progress-track);border-top-color:var(--sd-table-spinner);border-radius:50%;animation:sd-table-spin .8s linear infinite}@media(prefers-reduced-motion:reduce){:host .sd-table-spinner{animation:none}}@media(forced-colors:active){:host .sd-table-spinner{forced-color-adjust:none;border-color:GrayText;border-top-color:Highlight}}:host .sd-table-progress-anchor{position:sticky;top:0;z-index:20;height:0}:host .sd-table-progress-anchor>.sd-table-progress{top:0}.sd-aggregate-row,.sd-aggregate-total,.sd-mobile-aggregate{background:color-mix(in srgb,var(--sd-surface-muted) 35%,var(--sd-surface));color:var(--sd-text);font-weight:var(--sd-font-weight-medium, 500)}.sd-aggregate-cell{background:inherit;border-top:1px solid var(--sd-border)}:host(.sd-table--cards){height:auto;overflow:visible}:host(.sd-table--fill){flex:1 1 0;height:auto;min-height:var(--sd-table-fill-min, 0px);overflow:visible}:host(.sd-table--fill) .c-container{min-height:0}:host(.sd-table--fill) .c-container>.c-table{min-height:calc(var(--sd-table-fill-head, 40px) + 5 * var(--mat-table-row-item-container-height, 36px))}:host(.sd-table--fill) .c-container>.c-paginator{flex:none;min-height:48px}\n", ":host ::ng-deep .sticky-shadow-right{overflow:visible!important}:host ::ng-deep .sticky-shadow-right:after{content:\"\";position:absolute;top:0;right:0;bottom:0;width:8px;transform:translate(100%);background:linear-gradient(to right,rgba(0,0,0,.12),transparent);pointer-events:none}:host ::ng-deep .sticky-shadow-left{overflow:visible!important}:host ::ng-deep .sticky-shadow-left:after{content:\"\";position:absolute;top:0;left:0;bottom:0;width:8px;transform:translate(-100%);background:linear-gradient(to left,rgba(0,0,0,.12),transparent);pointer-events:none}\n"], dependencies: [{ kind: "component", type: SdIcon, selector: "sd-icon", inputs: ["name", "fontIcon", "color", "set", "fontSet", "size", "strokeWidth", "absoluteStrokeWidth", "ariaLabel"] }, { kind: "component", type: SdDataState, selector: "sd-data-state", inputs: ["state", "title", "message", "icon", "fontSet", "iconShape", "retryable", "retryLabel", "actionLabel", "compact", "fullPage"], outputs: ["sdRetry", "sdAction"] }, { kind: "directive", type: SdDataStateTemplateDirective, selector: "ng-template[sdDataStateTemplate]" }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1$1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: MatPaginatorModule }, { kind: "component", type: i3$3.MatPaginator, selector: "mat-paginator", inputs: ["color", "pageIndex", "length", "pageSize", "pageSizeOptions", "hidePageSize", "showFirstLastButtons", "selectConfig", "disabled"], outputs: ["page"], exportAs: ["matPaginator"] }, { kind: "ngmodule", type: MatTableModule }, { kind: "component", type: i4$1.MatTable, selector: "mat-table, table[mat-table]", exportAs: ["matTable"] }, { kind: "directive", type: i4$1.MatHeaderCellDef, selector: "[matHeaderCellDef]" }, { kind: "directive", type: i4$1.MatHeaderRowDef, selector: "[matHeaderRowDef]", inputs: ["matHeaderRowDef", "matHeaderRowDefSticky"] }, { kind: "directive", type: i4$1.MatColumnDef, selector: "[matColumnDef]", inputs: ["matColumnDef"] }, { kind: "directive", type: i4$1.MatCellDef, selector: "[matCellDef]" }, { kind: "directive", type: i4$1.MatRowDef, selector: "[matRowDef]", inputs: ["matRowDefColumns", "matRowDefWhen"] }, { kind: "directive", type: i4$1.MatFooterCellDef, selector: "[matFooterCellDef]" }, { kind: "directive", type: i4$1.MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { kind: "directive", type: i4$1.MatCell, selector: "mat-cell, td[mat-cell]" }, { kind: "directive", type: i4$1.MatFooterCell, selector: "mat-footer-cell, td[mat-footer-cell]" }, { kind: "component", type: i4$1.MatHeaderRow, selector: "mat-header-row, tr[mat-header-row]", exportAs: ["matHeaderRow"] }, { kind: "component", type: i4$1.MatRow, selector: "mat-row, tr[mat-row]", exportAs: ["matRow"] }, { kind: "component", type: i4$1.MatFooterRow, selector: "mat-footer-row, tr[mat-footer-row]", exportAs: ["matFooterRow"] }, { kind: "directive", type: i4$1.MatNoDataRow, selector: "ng-template[matNoDataRow]" }, { kind: "ngmodule", type: MatSortModule }, { kind: "directive", type: i5.MatSort, selector: "[matSort]", inputs: ["matSortActive", "matSortStart", "matSortDirection", "matSortDisableClear", "matSortDisabled"], outputs: ["matSortChange"], exportAs: ["matSort"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1$2.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatCheckboxModule }, { kind: "component", type: i3.MatCheckbox, selector: "mat-checkbox", inputs: ["aria-label", "aria-labelledby", "aria-describedby", "aria-expanded", "aria-controls", "aria-owns", "id", "required", "labelPosition", "name", "value", "disableRipple", "tabIndex", "color", "disabledInteractive", "checked", "disabled", "indeterminate"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }, { kind: "ngmodule", type: MatRadioModule }, { kind: "component", type: i4.MatRadioButton, selector: "mat-radio-button", inputs: ["id", "name", "aria-label", "aria-labelledby", "aria-describedby", "disableRipple", "tabIndex", "checked", "value", "labelPosition", "disabled", "required", "color", "disabledInteractive"], outputs: ["change"], exportAs: ["matRadioButton"] }, { kind: "ngmodule", type: DragDropModule }, { kind: "directive", type: i1$4.CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "cdkDropListData", "cdkDropListOrientation", "id", "cdkDropListLockAxis", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListAutoScrollDisabled", "cdkDropListAutoScrollStep", "cdkDropListElementContainer", "cdkDropListHasAnchor"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { kind: "directive", type: i1$4.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer", "cdkDragScale"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "directive", type: i1$4.CdkDragHandle, selector: "[cdkDragHandle]", inputs: ["cdkDragHandleDisabled"] }, { kind: "component", type: SdButton, selector: "sd-button", inputs: ["autoId", "type", "color", "size", "fontSet", "title", "width", "tooltip", "prefixIcon", "suffixIcon", "disabled", "openOnHover", "loading", "block", "htmlType", "indicator", "indicatorColor", "indicatorMax", "indicatorLabel"], outputs: ["click"] }, { kind: "component", type: SdButtonItem, selector: "sd-button-item", inputs: ["color", "prefixIcon", "suffixIcon", "fontSet", "disabled", "checked", "tooltip", "autoId"], outputs: ["click"] }, { kind: "component", type: DesktopCommand, selector: "desktop-command", inputs: ["autoId", "item", "itemIndex", "commands"] }, { kind: "component", type: DesktopCellComponent, selector: "desktop-cell", inputs: ["column", "item", "cellDef"] }, { kind: "component", type: ColumnTitleComponent, selector: "column-title", inputs: ["column", "titleDef"] }, { kind: "component", type: ExternalFilterComponent, selector: "external-filter", inputs: ["autoId", "filter", "externalFilters", "filterRegister", "collapsedByDefault"] }, { kind: "component", type: TableQuickSearchComponent, selector: "sd-table-quick-search", inputs: ["option", "value", "autoId", "rightTemplate", "requiredHintId"], outputs: ["valueChange"] }, { kind: "component", type: SdQueryBar, selector: "sd-query-bar", inputs: ["option", "autoId", "fields", "filters", "logic", "search", "mode", "density", "showSearch", "showSavedFilters", "savedFiltersKey", "showLogicToggle", "showClearAll", "showOperatorOnChip"], outputs: ["filtersChange", "logicChange", "searchChange", "queryChange", "apply"] }, { kind: "component", type: ConfigComponent, selector: "config", inputs: ["autoId", "tableOption", "filterSetup"], outputs: ["changes", "defaultsRestored", "filterApplied"] }, { kind: "component", type: ColumnFilterComponent, selector: "column-filter", inputs: ["autoId", "column", "columnFilter", "cacheValues", "value", "operator", "isMobile"], outputs: ["operatorChange", "filterChange", "filterCommit"] }, { kind: "component", type: MobileFilterComponent, selector: "mobile-filter", inputs: ["autoId", "filter", "externalFilters", "columns", "filterDefs", "filterRegister", "cacheValues", "model"] }, { kind: "directive", type: SdAggregateLayoutDirective, selector: "table[sdAggregateLayout]" }, { kind: "directive", type: SdTableFooterRowDefDirective, selector: "[sdTableFooterRowDef]", inputs: ["sdTableFooterRowDef", "sdTableFooterRowDefSticky"] }, { kind: "directive", type: SdScrollDirective, selector: "[sdScroll]" }, { kind: "directive", type: SdHoverCopyDirective, selector: "[sdHoverCopy]", inputs: ["sdHoverCopy", "sdHoverCopyDisabled"] }, { kind: "component", type: SelectorActionComponent, selector: "selector-action", inputs: ["autoId", "tableOption", "selectedTableItems"], outputs: ["clear"] }, { kind: "directive", type: StickyShadowDirective, selector: "[stickyShadow]" }, { kind: "directive", type: SdColumnResizeDirective, selector: "[sdColumnResize]", inputs: ["sdColumnResize", "minWidth", "maxWidth"], outputs: ["resizeEnd"] }, { kind: "directive", type: SdTableSortHeaderDirective, selector: "[sdTableSortHeader]", inputs: ["sdTableSortHeader"] }, { kind: "component", type: SdTableMobileCardsComponent, selector: "sd-table-mobile-cards", inputs: ["table", "body", "rows", "dataRows", "aggregateTemplate", "groupTemplate"] }, { kind: "component", type: SdTableMobileFilterChipsComponent, selector: "sd-table-mobile-filter-chips", inputs: ["table", "model", "value", "sortAvailable", "sortLabel"], outputs: ["sortOpen"] }, { kind: "component", type: SdTablePullRefreshComponent, selector: "sd-table-pull-refresh", inputs: ["target", "enabled", "loading"], outputs: ["refresh"] }, { kind: "component", type: SdTableMobileToolsSheetComponent, selector: "sd-table-mobile-tools-sheet", inputs: ["table", "actions"] }, { kind: "component", type: SdTableMobileSortSheetComponent, selector: "sd-table-mobile-sort-sheet", inputs: ["table"] }, { kind: "component", type: SdTableUnknownTotalPaginator, selector: "sd-table-unknown-total-paginator", inputs: ["state", "pageSizeOptions", "hidePageSize", "showFirstButton", "autoId"], outputs: ["page"] }, { kind: "pipe", type: i1$1.JsonPipe, name: "json" }, { kind: "pipe", type: SdGroupPipe, name: "sdGroup" }, { kind: "pipe", type: SdTreePipe, name: "sdTree" }, { kind: "pipe", type: SdAggregateRowsPipe, name: "sdAggregateRows" }, { kind: "pipe", type: SdTranslatePipe, name: "sdTranslate" }], animations: [
|
|
10133
10644
|
trigger('detailExpand', [
|
|
10134
10645
|
state('collapsed', style({ height: '0', minHeight: '0', visibility: 'hidden' })),
|
|
10135
10646
|
state('expanded', style({ height: '*', visibility: 'visible' })),
|
|
@@ -10208,8 +10719,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImpo
|
|
|
10208
10719
|
SdTableMobileToolsSheetComponent,
|
|
10209
10720
|
SdTableMobileSortSheetComponent,
|
|
10210
10721
|
SdTableUnknownTotalPaginator,
|
|
10211
|
-
], template: "@let _visibleSelectAll = visibleSelectAll();\n@let _isSelectIndeterminate = isSelectIndeterminate();\n@let _isSelectAll = isSelectAll();\n@let _configuration = configuration();\n@let _tableOption = tableOption()!;\n@let _loading = loading();\n@let _loadingView = loadingView();\n@let _readState = readState();\n@let _hideReadError = hideReadError();\n@let _dataStateTemplate = dataStateTemplate();\n@let _items = items();\n@let _total = total();\n@let _isFiltered = isFiltered();\n@let _requireFiltered = requireFiltered();\n@let _export = _tableOption?.export;\n@let _exporting = exporting();\n@let _titleDef = titleDef();\n@let _autoId = autoId();\n@let _exportTitle = exportTitle();\n@let _cellDef = cellDef();\n@let _footerDef = footerDef();\n@let _sdSubInformation = sdSubInformation();\n@let _configComponent = configComponent();\n@let _mobileFilter = mobileFilter();\n@let _selectedTableItems = selectedTableItems();\n@let _rowCommands = rowCommands();\n@let _mobileCards = mobileCards();\n@let _isMobile = isMobile();\n@let _queryBarMode = queryBarMode();\n@let _queryBarKeys = queryBarModel()?.columnKeys;\n@let _queryBarActive = queryBarActiveKeys();\n@let _showInlineFilter =\n !_queryBarMode &&\n !_isMobile &&\n !_tableOption?.filter?.disabled &&\n _tableOption?.filter?.hideInlineFilter !== true &&\n !(_tableOption?.filter?.hideInlineFilter === 'auto' && !_isFiltered && knownRowCount()! <= 10);\n@let _commandHeaderDef = sdCommandHeaderDef();\n@let _quickSearch = quickSearchOption();\n@let _aggregate = aggregateSnapshot();\n@let _aggregateColumns = aggregateColumns();\n@let _aggregateColumnIds = aggregateColumnIds();\n@let _headerFilterColumns = headerFilterColumns();\n<!-- why: tree kh\u00F4ng c\u00F2n c\u1ED9t ri\u00EAng \u2014 khi KH\u00D4NG c\u00F3 c\u1ED9t Index, icon expand nh\u00FAng v\u00E0o\n c\u1ED9t data \u0111\u1EA7u ti\u00EAn. \u0110\u00E2y l\u00E0 field c\u1EE7a c\u1ED9t \u0111\u00F3 (null n\u1EBFu c\u00F3 Index ho\u1EB7c kh\u00F4ng tree). -->\n@let _treeFirstField = _tableOption?.tree && !_tableOption.index?.enabled ? _configuration?.firstColumns?.[0]?.field : null;\n\n<!-- why: v\u00F9ng status lu\u00F4n c\u00F3 trong DOM, k\u1EC3 c\u1EA3 tr\u01B0\u1EDBc khi c\u00F3 configuration. V\u00F9ng ch\u1EC9 render trong l\u00FAc t\u1EA3i b\u1ECB g\u1EE1\n tr\u01B0\u1EDBc khi screen reader k\u1ECBp \u0111\u1ECDc v\u00E0 kh\u00F4ng b\u00E1o \u0111\u01B0\u1EE3c \"\u0111\u00E3 t\u1EA3i xong\". -->\n<span class=\"sd-table-live\" role=\"status\" aria-live=\"polite\" aria-atomic=\"true\">{{ liveMessage() }}</span>\n@if (_configuration) {\n @if (\n !_queryBarMode && !_mobileCards && !_tableOption.filter?.disabled && !!_tableOption.filter?.externalFilters?.length && filterRegister\n ) {\n <external-filter\n class=\"mb-16\"\n [autoId]=\"_autoId\"\n [filterRegister]=\"filterRegister\"\n [filter]=\"_tableOption.filter!\"\n [externalFilters]=\"_tableOption.filter?.externalFilters!\"\n [collapsedByDefault]=\"externalFilterCollapsedByDefault()\">\n </external-filter>\n }\n @let groupedItems = _items | sdTree: _tableOption.tree : treeRevision() | sdGroup: _tableOption : groupExpandState : groupHost;\n @let renderItems = groupedItems | sdAggregateRows: _aggregate : _tableOption : aggregateRenderHost;\n\n <ng-template #aggregateCell let-cell>\n @if (cell) {\n @if (cell.templateRef) {\n <ng-container *ngTemplateOutlet=\"cell.templateRef; context: cell.context\"></ng-container>\n } @else {\n <span [attr.data-complete]=\"cell.context.isComplete\">{{ cell.text }}</span>\n }\n }\n </ng-template>\n <ng-template #inlineColumnFilter let-column>\n <column-filter\n [autoId]=\"_autoId\"\n [value]=\"columnFilter?.[column.field!]!\"\n [operator]=\"columnOperator[column.field]\"\n (operatorChange)=\"columnOperator[column.field] = $event!; onOperatorChange(column, $event)\"\n [columnFilter]=\"columnFilter!\"\n [cacheValues]=\"cacheValues\"\n [column]=\"column\"\n (filterChange)=\"onFilterChange()\"\n (filterCommit)=\"onFilterCommit()\">\n </column-filter>\n </ng-template>\n <!-- Icon l\u1ECDc \u1EDF header c\u1ED9t (mode query-bar): m\u1EDF chip c\u1EE7a field tr\u00EAn thanh. why: n\u1EB1m c\u1EA1nh .c-header-title ch\u1EE9 kh\u00F4ng\n n\u1EB1m trong \u2014 title sort \u0111\u01B0\u1EE3c l\u00E0 role=button v\u00E0 b\u1EAFt Enter, l\u1ED3ng button v\u00E0o s\u1EBD th\u00E0nh nested-interactive v\u00E0 Enter\n tr\u00EAn icon s\u1EBD sort. Ch\u1EB7n mousedown/click \u0111\u1EC3 kh\u00F4ng sort, kh\u00F4ng b\u1EAFt \u0111\u1EA7u k\u00E9o c\u1ED9t. aria-haspopup theo \u0111\u00FAng th\u1EE9 m\u1EDF ra:\n menu c\u1EE7a chip (popover), ho\u1EB7c v\u1EDBi editor inline th\u00EC kh\u00F4ng g\u00EC (chip \u0111\u00E3 c\u00F3, ch\u1EC9 focus) / menu to\u00E1n t\u1EED / b\u1ED9 ch\u1ECDn\n gi\u00E1 tr\u1ECB c\u1EE7a chip \u0111ang d\u1EF1ng. -->\n <ng-template #queryBarTrigger let-column>\n @let _triggerKey = _queryBarKeys?.get(column.field);\n @if (_triggerKey) {\n @let _triggerActive = _queryBarActive.has(_triggerKey);\n <button\n type=\"button\"\n class=\"sd-table-filter-trigger\"\n [class.sd-table-filter-trigger--active]=\"_triggerActive\"\n [attr.data-autoid]=\"_autoId ? _autoId + '-filter-trigger-' + column.field : null\"\n [attr.aria-label]=\"filterTriggerLabel(column, _triggerActive)\"\n [attr.aria-haspopup]=\"queryBarTriggerPopup(_triggerKey)\"\n (mousedown)=\"$event.stopPropagation()\"\n (click)=\"$event.stopPropagation(); openQueryBarField(_triggerKey, $event.currentTarget)\">\n <sd-icon name=\"filter_alt\" aria-hidden=\"true\"></sd-icon>\n </button>\n }\n </ng-template>\n <ng-template #mobileAggregate let-summary=\"summary\">\n <div class=\"sd-mobile-aggregate p-12\" role=\"region\" [attr.aria-label]=\"'core.component.table.mobile.summary' | sdTranslate\">\n @for (entry of _aggregateColumns; track entry.field) {\n @let cell = summary.cells.get(entry.field);\n @if (cell && entry.column) {\n <div class=\"d-flex align-items-center flex-wrap gap-8 py-8\">\n <column-title [column]=\"entry.column\" [titleDef]=\"_titleDef[entry.field]\"></column-title>\n <ng-container *ngTemplateOutlet=\"aggregateCell; context: { $implicit: cell }\"></ng-container>\n </div>\n }\n }\n </div>\n </ng-template>\n\n <!-- Tree toggle d\u00F9ng chung: indent (theo c\u1EA5p) + slot chevron/spinner. Nh\u00FAng v\u00E0o\n c\u1ED9t Index ho\u1EB7c c\u1ED9t data \u0111\u1EA7u qua *ngTemplateOutlet (context: { row }). -->\n <ng-template #sdTreeToggle let-row=\"row\">\n @let _tree = row?.meta?.tree;\n @if (_tree) {\n <span class=\"sd-tree-indent\" [style.width.px]=\"(_tree.level ?? 0) * (_tableOption.tree?.indentSize ?? 20)\"></span>\n <span class=\"sd-tree-toggle-slot\">\n @if (_tree.hasChildren) {\n @let _aid = _autoId;\n @let _expanding = !!_tree.isExpanding;\n <!-- why: n\u00FAt lu\u00F4n n\u1EB1m trong DOM, ch\u1EC9 \u0111\u1ED5i icon th\u00E0nh spinner khi \u0111ang t\u1EA3i con; g\u1EE1 n\u00FAt l\u00E0m focus b\u00E0n ph\u00EDm r\u01A1i\n v\u1EC1 body. Click trong l\u00FAc t\u1EA3i b\u1ECB onTreeToggle b\u1ECF qua. -->\n <button\n type=\"button\"\n class=\"sd-tree-toggle-btn\"\n [attr.data-autoid]=\"_aid ? _aid + '-tree-toggle-' + row.meta.id : null\"\n [attr.aria-label]=\"'core.component.table.tree-toggle' | sdTranslate\"\n [attr.aria-expanded]=\"!!_tree.isExpanded\"\n [attr.aria-busy]=\"_expanding ? 'true' : null\"\n [attr.aria-disabled]=\"_expanding ? 'true' : null\"\n (click)=\"onTreeToggle(row); $event.stopPropagation()\">\n @if (_expanding) {\n <span class=\"sd-table-spinner\" aria-hidden=\"true\"></span>\n } @else {\n <sd-icon [name]=\"_tree.isExpanded ? 'expand_more' : 'chevron_right'\"></sd-icon>\n }\n </button>\n }\n </span>\n }\n </ng-template>\n\n <ng-template #sdGroupHeader let-item=\"item\">\n <div class=\"sd-group-row d-flex align-items-center py-8\">\n @if (_tableOption.selector?.visible && !_tableOption.selector?.single) {\n <div class=\"sd-group-selection-slot d-flex align-items-center justify-content-center\">\n <mat-checkbox\n class=\"c-selection\"\n color=\"primary\"\n [checked]=\"isGroupAllSelected(item)\"\n [indeterminate]=\"isGroupIndeterminate(item)\"\n (change)=\"onSelectGroup(item, $event.checked)\">\n </mat-checkbox>\n </div>\n } @else {\n <div class=\"sd-group-selection-slot\"></div>\n }\n @if (_tableOption.group?.collapsible) {\n <sd-button\n [autoId]=\"_autoId ? _autoId + '-group-toggle-' + (item.meta.group?.key || item.meta.id) : null\"\n type=\"text\"\n [prefixIcon]=\"item.meta.group.isExpanded ? 'expand_more' : 'chevron_right'\"\n width=\"32px\"\n (click)=\"toggleGroupExpand(item)\">\n </sd-button>\n }\n @if (sdGroupDef()?.templateRef; as tpl) {\n <ng-container *ngTemplateOutlet=\"tpl; context: groupContext(item)\"></ng-container>\n } @else {\n <span class=\"T14R\">{{ item.meta.group.values | json }}</span>\n }\n </div>\n </ng-template>\n\n <ng-content select=\"[sdTableTop]\"></ng-content>\n @let _queryBarOption = queryBarOption();\n <div\n class=\"sd-table-surface\"\n [class.sd-table-surface--quick-search]=\"!!_quickSearch && !_queryBarMode\"\n [class.sd-table-surface--query-bar]=\"_queryBarMode && !!_queryBarOption\">\n @if (_queryBarMode) {\n <!-- why: thanh n\u1EB1m tr\u00EAn .c-container, ngo\u00E0i l\u1EDBp loading (l\u00E0m m\u1EDD .c-table) \u2014 lu\u00F4n b\u1EA5m \u0111\u01B0\u1EE3c khi \u0111ang t\u1EA3i. -->\n @if (_queryBarOption) {\n @let _queryBarHint = queryBarHint();\n <sd-query-bar\n class=\"sd-table-query-bar\"\n role=\"search\"\n [attr.aria-label]=\"'core.component.table.filter' | sdTranslate\"\n [attr.data-autoid]=\"_autoId ? _autoId + '-query-bar' : null\"\n [option]=\"_queryBarOption\"\n [(filters)]=\"barFilters\"\n [(search)]=\"barSearch\"\n (apply)=\"onQueryBarApply($event)\">\n @if (sdQuickSearchRightDef(); as _right) {\n <div sdQueryBarEnd class=\"sd-table-query-bar-end\"><ng-container [ngTemplateOutlet]=\"_right.templateRef\" /></div>\n }\n </sd-query-bar>\n @if (_queryBarHint) {\n <p class=\"sd-table-query-bar-hint\" [id]=\"queryBarHintId\">\n <sd-icon name=\"error_outline\" aria-hidden=\"true\"></sd-icon>\n <span>{{ _queryBarHint }}</span>\n </p>\n }\n }\n } @else if (_quickSearch && !_mobileCards) {\n <sd-table-quick-search\n [option]=\"_quickSearch\"\n [value]=\"quickSearchValue()\"\n [autoId]=\"_autoId\"\n [rightTemplate]=\"sdQuickSearchRightDef()?.templateRef\"\n (valueChange)=\"onQuickSearchChange($event)\" />\n }\n @if (_mobileCards) {\n @let _tools = mobileToolsActions();\n @let _hasChips = !!mobileFilterModel()?.items?.length;\n @let _sortable = mobileSortAvailable();\n <!-- Phone top row (handoff table-mobile 2): the search, Reload for keyboards (shown on focus), the sort button\n when there is no chip row, and \u22EE Tools. -->\n <div\n class=\"sd-mobile-top\"\n [class.sd-mobile-top--chips]=\"_hasChips\"\n [class.sd-mobile-top--no-search]=\"!_quickSearch\"\n [class.sd-mobile-top--empty]=\"!_quickSearch && (_hasChips || !_sortable) && !_tools.length\">\n @if (_quickSearch) {\n <sd-table-quick-search\n class=\"sd-mobile-top-search\"\n [option]=\"_quickSearch\"\n [value]=\"quickSearchValue()\"\n [autoId]=\"_autoId\"\n [rightTemplate]=\"sdQuickSearchRightDef()?.templateRef\"\n (valueChange)=\"onQuickSearchChange($event)\" />\n }\n @if (_tableOption.reload?.visible) {\n <button\n mat-icon-button\n type=\"button\"\n class=\"sd-mobile-top-button sd-mobile-reload\"\n [attr.aria-label]=\"'core.component.table.reload' | sdTranslate\"\n [attr.data-autoid]=\"_autoId ? _autoId + '-mobile-reload' : null\"\n (click)=\"reload()\">\n <sd-icon name=\"refresh\" size=\"22px\"></sd-icon>\n </button>\n }\n @if (!_hasChips && _sortable) {\n <button\n mat-icon-button\n type=\"button\"\n class=\"sd-mobile-top-button\"\n aria-haspopup=\"dialog\"\n [attr.aria-label]=\"mobileSortLabel()\"\n [attr.data-autoid]=\"_autoId ? _autoId + '-mobile-sort' : null\"\n (click)=\"mobileSortSheet.open()\">\n <sd-icon name=\"swap_vert\" size=\"22px\"></sd-icon>\n </button>\n }\n @if (_tools.length) {\n <button\n mat-icon-button\n type=\"button\"\n class=\"sd-mobile-top-button\"\n aria-haspopup=\"dialog\"\n [attr.aria-label]=\"'core.component.table.mobile.tools' | sdTranslate\"\n [attr.data-autoid]=\"_autoId ? _autoId + '-mobile-tools' : null\"\n (click)=\"mobileTools.open()\">\n <sd-icon name=\"more_vert\" size=\"22px\"></sd-icon>\n </button>\n <sd-table-mobile-tools-sheet #mobileTools [table]=\"this\" [actions]=\"_tools\"></sd-table-mobile-tools-sheet>\n }\n </div>\n @if (_hasChips) {\n <!-- Phone: filter chips under the search (handoff table-mobile 3). -->\n <sd-table-mobile-filter-chips\n [table]=\"this\"\n [model]=\"mobileFilterModel()\"\n [value]=\"mobileFilterValue()\"\n [sortAvailable]=\"_sortable\"\n [sortLabel]=\"mobileSortLabel()\"\n (sortOpen)=\"mobileSortSheet.open()\"></sd-table-mobile-filter-chips>\n }\n <sd-table-mobile-sort-sheet #mobileSortSheet [table]=\"this\"></sd-table-mobile-sort-sheet>\n }\n <div class=\"c-container\" [class.sd-table-mobile]=\"_mobileCards\">\n <!-- why: l\u1EDBp loading kh\u00F4ng ph\u1EE7 l\u00EAn b\u1EA3ng: header, filter, sort v\u00E0 thanh cu\u1ED9n lu\u00F4n d\u00F9ng \u0111\u01B0\u1EE3c. Ch\u01B0a c\u00F3 d\u00F2ng th\u00EC\n khung x\u01B0\u01A1ng (matNoDataRow); \u0111\u00E3 c\u00F3 d\u00F2ng th\u00EC gi\u1EEF d\u00F2ng c\u0169, qu\u00E1 showDelay m\u1EDBi l\u00E0m m\u1EDD d\u00F2ng v\u00E0 hi\u1EC7n thanh ti\u1EBFn\n tr\u00ECnh. aria-busy v\u1EABn theo loading() th\u1EADt; v\u00F9ng .sd-table-live b\u00E1o \"\u0111ang t\u1EA3i\"/\"\u0111\u00E3 t\u1EA3i xong\". -->\n <div\n #cTable\n class=\"c-table\"\n sdScroll\n stickyShadow\n matSort\n [matSortDisabled]=\"!_tableOption.sort?.enable\"\n [class.c-table--dim]=\"_loadingView === 'refresh' && loadingSettings().dim\"\n [attr.aria-busy]=\"_loading ? 'true' : null\"\n [style.max-height]=\"_tableOption.style?.maxHeight\"\n [style.min-height]=\"_tableOption.style?.minHeight\">\n @if (_mobileCards) {\n <!-- Pull to refresh replaces Reload on phones (handoff table-mobile 7). -->\n <sd-table-pull-refresh\n [target]=\"cTable\"\n [enabled]=\"!!_tableOption.reload?.visible\"\n [loading]=\"_loading\"\n (refresh)=\"reload()\"></sd-table-pull-refresh>\n @if (_commandHeaderDef) {\n <div class=\"sd-mobile-command-header\"><ng-container *ngTemplateOutlet=\"_commandHeaderDef.templateRef\"></ng-container></div>\n }\n @if (_loadingView === 'refresh') {\n <!-- Mobile: kh\u00F4ng c\u00F3 header b\u1EA3ng; thanh n\u1EB1m \u1EDF m\u00E9p tr\u00EAn danh s\u00E1ch th\u1EBB, d\u01B0\u1EDBi command header. Anchor cao 0\n n\u00EAn thanh hi\u1EC7n/\u1EA9n kh\u00F4ng \u0111\u1EA9y th\u1EBB. -->\n <div class=\"sd-table-progress-anchor\">\n <div class=\"sd-table-progress\" aria-hidden=\"true\"></div>\n </div>\n }\n <sd-table-mobile-cards\n [table]=\"this\"\n [body]=\"mobileBody()\"\n [rows]=\"renderItems\"\n [dataRows]=\"groupedItems\"\n [groupTemplate]=\"sdGroupHeader\"\n [aggregateTemplate]=\"mobileAggregate\"></sd-table-mobile-cards>\n @if (_aggregate.total; as summary) {\n <ng-container *ngTemplateOutlet=\"mobileAggregate; context: { summary: summary }\"></ng-container>\n }\n @if (hasFooter()) {\n <div class=\"sd-mobile-footer p-12\" role=\"region\" [attr.aria-label]=\"'core.component.table.mobile.summary' | sdTranslate\">\n @for (column of mobileFooterColumns(); track column.field) {\n <div class=\"d-flex align-items-center flex-wrap gap-8 py-8\">\n <column-title [column]=\"column\" [titleDef]=\"_titleDef[column.field]\"></column-title>\n <ng-container\n *ngTemplateOutlet=\"_footerDef[column.field].templateRef; context: { items: _items, column: column }\"></ng-container>\n </div>\n }\n </div>\n }\n } @else {\n <table\n mat-table\n [class.sd-table-grouped-header]=\"_configuration.multipleHeader\"\n sdAggregateLayout\n [dataSource]=\"renderItems\"\n [trackBy]=\"trackBy\"\n multiTemplateDataRows\n cdkDropList\n [cdkDropListData]=\"groupedItems\"\n [cdkDropListDisabled]=\"!_tableOption.rowReorder?.enabled\"\n [cdkDropListSortPredicate]=\"reorderSortPredicate\"\n (cdkDropListDropped)=\"onReorderDrop($event)\">\n @if (_tableOption.rowReorder?.enabled) {\n <ng-container matColumnDef=\"sdReorder\">\n <th mat-header-cell *matHeaderCellDef class=\"sd-reorder-header\" [attr.rowspan]=\"_configuration.multipleHeader ? 2 : 1\"></th>\n <td mat-cell *matCellDef=\"let row\" class=\"sd-reorder-cell\">\n @if (!row.meta?.group?.items?.length) {\n <sd-icon\n cdkDragHandle\n [class.sd-reorder-disabled]=\"isReorderDisabled(row)\"\n [name]=\"_tableOption.rowReorder?.icon || 'drag_indicator'\"></sd-icon>\n }\n </td>\n <td mat-footer-cell *matFooterCellDef></td>\n </ng-container>\n }\n\n <ng-container matColumnDef=\"sdSubInformation\" sticky>\n <td class=\"p-0\" mat-cell *matCellDef=\"let item\" [attr.colspan]=\"_configuration.displayedColumns.length\">\n @if (_sdSubInformation?.templateRef) {\n @if (_tableOption.expand?.always) {\n <ng-container *ngTemplateOutlet=\"_sdSubInformation?.templateRef!; context: { item: item }\"> </ng-container>\n } @else {\n <div [@detailExpand]=\"item.meta.expand?.isExpanded ? 'expanded' : 'collapsed'\">\n @if (item.meta.expand?.isExpanded) {\n <ng-container *ngTemplateOutlet=\"_sdSubInformation?.templateRef!; context: { item: item }\"> </ng-container>\n }\n </div>\n }\n }\n </td>\n <td mat-footer-cell *matFooterCellDef></td>\n </ng-container>\n\n <ng-container matColumnDef=\"sdSubInformationAction\" stickyEnd>\n <th\n class=\"p-0\"\n mat-header-cell\n *matHeaderCellDef\n style=\"width: 1px\"\n [attr.rowspan]=\"_configuration.multipleHeader ? 2 : 1\"></th>\n <td mat-cell *matCellDef=\"let element\">\n @if (!_tableOption.expand?.always) {\n @let _expanding = !!element.meta.expand?.isExpanding;\n <!-- why: n\u00FAt 35px gi\u1EEF nguy\u00EAn khi \u0111ang t\u1EA3i ([loading] thay prefix icon b\u1EB1ng spinner) \u0111\u1EC3 focus b\u00E0n ph\u00EDm\n kh\u00F4ng m\u1EA5t; onExpand b\u1ECF qua click trong l\u00FAc t\u1EA3i. color primary ch\u1EC9 \u0111\u1EC3 spinner theo m\u00E0u nh\u1EA5n. -->\n <sd-button\n [autoId]=\"_autoId ? _autoId + '-expand-' + element.meta.id : null\"\n type=\"text\"\n [color]=\"_expanding ? 'primary' : null\"\n [loading]=\"_expanding\"\n [attr.aria-busy]=\"_expanding ? 'true' : null\"\n [prefixIcon]=\"element.meta.expand?.isExpanded ? 'expand_less' : 'expand_more'\"\n (click)=\"onExpand(element)\"\n width=\"35px\">\n </sd-button>\n }\n </td>\n </ng-container>\n\n <ng-container matColumnDef=\"sdSelection\" sticky>\n <th class=\"sd-selection-cell p-0\" mat-header-cell *matHeaderCellDef [attr.rowspan]=\"_configuration.multipleHeader ? 2 : 1\">\n @if (_visibleSelectAll) {\n <mat-checkbox\n class=\"c-selection px-8\"\n color=\"primary\"\n [indeterminate]=\"_isSelectIndeterminate\"\n [ngModel]=\"_isSelectAll\"\n (ngModelChange)=\"isSelectAll.set($event)\"\n (change)=\"onSelectAll()\">\n </mat-checkbox>\n }\n </th>\n\n <td class=\"sd-selection-cell p-0\" mat-cell *matCellDef=\"let item\">\n @let visible = item.meta.selector?.visible;\n @if (visible) {\n @if (_tableOption.selector?.single) {\n <mat-radio-button\n class=\"c-selection px-8\"\n color=\"primary\"\n [checked]=\"item.meta.selector.isSelected\"\n (change)=\"item.meta.selector.isSelected = true; onSelect(item)\"\n [disabled]=\"item.meta.selector?.disabled\">\n </mat-radio-button>\n } @else {\n <mat-checkbox\n class=\"c-selection px-8\"\n color=\"primary\"\n [(ngModel)]=\"item.meta.selector.isSelected\"\n (change)=\"onSelect(item)\"\n [disabled]=\"item.meta.selector?.disabled\">\n </mat-checkbox>\n }\n }\n </td>\n <td mat-footer-cell *matFooterCellDef></td>\n </ng-container>\n @if (_tableOption.index?.enabled) {\n @let _pageOffset = pageOffset();\n @let _indexWidth = _tableOption.index?.width || '50px';\n <!-- why: khi tree, c\u1ED9t Index \"\u00F4m\" th\u00EAm chevron + indent. D\u00F9ng width:1px +\n nowrap (.sd-tree-index-cell) \u0111\u1EC3 c\u1ED9t co S\u00C1T n\u1ED9i dung, kh\u00F4ng chi\u1EBFm ch\u1ED7\n th\u1EEBa; header \"#\" canh tr\u00E1i l\u00F9i v\u00E0o (.sd-tree-index-header) cho th\u1EB3ng s\u1ED1. -->\n @let _treeIndex = !!_tableOption.tree;\n <ng-container matColumnDef=\"sdIndex\" sticky>\n <th\n [class.p-0]=\"!_treeIndex\"\n [class.text-center]=\"!_treeIndex\"\n [class.sd-tree-index-cell]=\"_treeIndex\"\n [class.sd-tree-index-header]=\"_treeIndex\"\n mat-header-cell\n *matHeaderCellDef\n [style.width]=\"_treeIndex ? '1px' : _indexWidth\"\n [style.min-width]=\"_treeIndex ? null : _indexWidth\"\n [style.max-width]=\"_treeIndex ? null : _indexWidth\"\n [attr.rowspan]=\"_configuration.multipleHeader ? 2 : 1\">\n {{ _tableOption.index?.title || '#' }}\n </th>\n <td\n [class.px-4]=\"!_treeIndex\"\n [class.text-center]=\"!_treeIndex\"\n [class.sd-tree-index-cell]=\"_treeIndex\"\n mat-cell\n *matCellDef=\"let item; let i = dataIndex\"\n [style.width]=\"_treeIndex ? '1px' : null\"\n [style.min-width]=\"_treeIndex ? null : _indexWidth\"\n [style.max-width]=\"_treeIndex ? null : _indexWidth\">\n @if (!item?.meta?.group?.isGroupHeader) {\n @if (_treeIndex) {\n <!-- why: tree \u2192 chevron + indent + STT ph\u00E2n c\u1EA5p (1, 1.2, 1.2.1). T\u00F4 \u0111\u1EADm root (level 0). -->\n <span class=\"sd-tree-line\">\n <ng-container *ngTemplateOutlet=\"sdTreeToggle; context: { row: item }\"></ng-container>\n @if (item?.meta?.tree?.indexPath?.length) {\n <span class=\"sd-tree-stt\" [class.sd-stt-root]=\"(item.meta.tree.level ?? 0) === 0\">\n {{ item.meta.tree.indexPath.join('.') }}\n </span>\n }\n </span>\n } @else {\n {{ _pageOffset + (aggregateRenderHost.indices.get(item) ?? i) + 1 }}\n }\n }\n </td>\n <td\n mat-footer-cell\n *matFooterCellDef\n [style.width]=\"_treeIndex ? '1px' : null\"\n [style.min-width]=\"_treeIndex ? null : _indexWidth\"\n [style.max-width]=\"_treeIndex ? null : _indexWidth\"></td>\n </ng-container>\n }\n <ng-container\n matColumnDef=\"sdCommand\"\n [sticky]=\"_tableOption.command?.align !== 'right'\"\n [stickyEnd]=\"_tableOption.command?.align === 'right'\">\n <!-- why: \u00F4 header c\u1EE7a c\u1ED9t command v\u1ED1n \u0111\u1EC3 tr\u1ED1ng. Cho consumer chi\u1EBFm ch\u1ED7 \u0111\u00F3 b\u1EB1ng\n `sdTableCommandHeaderDef` (th\u01B0\u1EDDng l\u00E0 n\u00FAt th\u00EAm d\u00F2ng) th\u00EC h\u00E0nh \u0111\u1ED9ng c\u1EA5p b\u1EA3ng n\u1EB1m ngay\n tr\u00EAn c\u1EE5m n\u00FAt c\u1EE7a t\u1EEBng d\u00F2ng, thay v\u00EC ph\u1EA3i d\u1EF1ng th\u00EAm m\u1ED9t d\u1EA3i ri\u00EAng d\u01B0\u1EDBi b\u1EA3ng. -->\n <th class=\"p-0\" mat-header-cell *matHeaderCellDef style=\"width: 50px\" [attr.rowspan]=\"_configuration.multipleHeader ? 2 : 1\">\n @if (_commandHeaderDef) {\n <div class=\"sd-command-header d-flex align-items-center justify-content-center\">\n <ng-container *ngTemplateOutlet=\"_commandHeaderDef.templateRef\"></ng-container>\n </div>\n }\n </th>\n <!-- why: `dataIndex` do CDK c\u1EA5p s\u1EB5n. B\u1EA3n c\u0169 d\u00F9ng `groupedItems.indexOf(item)` \u2014\n qu\u00E9t to\u00E0n m\u1EA3ng cho M\u1ED6I d\u00F2ng render \u1EDF M\u1ED6I CD pass (O(n\u00B2) tr\u00EAn \u0111\u01B0\u1EDDng render),\n v\u00E0 c\u00F2n tr\u1EA3 sai index khi 2 d\u00F2ng tr\u00F9ng reference. -->\n <td class=\"px-8\" mat-cell *matCellDef=\"let item; let i = dataIndex\">\n <desktop-command\n [autoId]=\"_autoId\"\n [commands]=\"_rowCommands\"\n [item]=\"item\"\n [itemIndex]=\"aggregateRenderHost.indices.get(item) ?? i\"></desktop-command>\n </td>\n <td mat-footer-cell *matFooterCellDef></td>\n </ng-container>\n <!-- why: group header row d\u00F9ng matRowDef RI\u00CANG v\u1EDBi column list ['sdGroupHeader']\n qua predicate when:isGroupHeaderRow. Cell colspan = displayedColumns.length \u0111\u1EC3\n span TO\u00C0N B\u1ED8 width data row. Tr\u00E1nh colspan trick overflow row khi c\u00E1c TD kh\u00E1c render. -->\n <ng-container matColumnDef=\"sdGroupHeader\">\n <td class=\"p-0 sd-group-header-cell\" mat-cell *matCellDef=\"let item\" [attr.colspan]=\"sdGroupColspan()\">\n <ng-container *ngTemplateOutlet=\"sdGroupHeader; context: { item: item }\"></ng-container>\n </td>\n </ng-container>\n <!-- why: filler column \u1EDF cu\u1ED1i h\u1EA5p th\u1EE5 leftover space khi t\u1ED5ng width c\u00E1c c\u1ED9t data < container \u2014 gi\u1EEF cho selection/STT/command kh\u00F4ng b\u1ECB d\u00E3n. -->\n <ng-container matColumnDef=\"sdFiller\">\n <th class=\"sd-filler-cell p-0\" mat-header-cell *matHeaderCellDef [attr.rowspan]=\"_configuration.multipleHeader ? 2 : 1\"></th>\n <td class=\"sd-filler-cell p-0\" mat-cell *matCellDef=\"let item\"></td>\n <td class=\"sd-filler-cell p-0\" mat-footer-cell *matFooterCellDef></td>\n </ng-container>\n @for (column of _configuration.firstColumns; track column.field) {\n <ng-container [matColumnDef]=\"column.field\" [sticky]=\"_configuration.fixedColumn[column.field]\">\n <th\n mat-header-cell\n *matHeaderCellDef\n class=\"px-8 c-th\"\n [class.sd-column-group]=\"column.type === 'children'\"\n [attr.scope]=\"column.type === 'children' ? 'colgroup' : 'col'\"\n [sdColumnResize]=\"!!_tableOption.config?.resizable && column.type !== 'children'\"\n [minWidth]=\"column.minWidth\"\n [maxWidth]=\"column.maxWidth\"\n (resizeEnd)=\"onColumnResize(column.field, $event)\"\n [style.width]=\"column.width\"\n [style.min-width]=\"column.minWidth || column.width\"\n [style.max-width]=\"column.maxWidth\"\n [attr.rowspan]=\"_configuration.multipleHeader && column.type !== 'children' ? 2 : 1\"\n [attr.colspan]=\"column.type === 'children' ? column.children.length : 1\"\n [attr.aria-sort]=\"\n _tableOption.sort?.enable && column.type !== 'children' && column.sortable ? getSortAria(column.field) : null\n \">\n <div\n [class.sd-table-header-cell--trigger]=\"_queryBarMode && column.type !== 'children'\"\n [class.sd-table-header-cell--end]=\"_queryBarMode && column.align === 'right'\">\n <!-- why: sort control ch\u1EC9 \u00F4m title; filter l\u00E0 sibling n\u00EAn kh\u00F4ng th\u00E0nh interactive\n descendant. aria-sort thu\u1ED9c semantic <th>, kh\u00F4ng thu\u1ED9c control n\u00E0y. -->\n @if (column.type === 'children') {\n <div class=\"c-header-title sd-column-group-title\">\n <column-title [column]=\"column\" [titleDef]=\"_titleDef[column.field]\"></column-title>\n </div>\n } @else {\n @if (_tableOption.sort?.enable && column.sortable) {\n <div\n [sdTableSortHeader]=\"column.field\"\n class=\"c-header-title\"\n [class.justify-content-end]=\"column.align === 'right'\"\n [class.text-right]=\"column.align === 'right'\">\n <column-title [column]=\"column\" [titleDef]=\"_titleDef[column.field]\"></column-title>\n </div>\n } @else {\n <div\n class=\"c-header-title\"\n [class.justify-content-end]=\"column.align === 'right'\"\n [class.text-right]=\"column.align === 'right'\">\n <column-title [column]=\"column\" [titleDef]=\"_titleDef[column.field]\"></column-title>\n </div>\n }\n @if (_queryBarMode) {\n <ng-container *ngTemplateOutlet=\"queryBarTrigger; context: { $implicit: column }\"></ng-container>\n }\n @if (_showInlineFilter && !_configuration.multipleHeader) {\n <ng-container *ngTemplateOutlet=\"inlineColumnFilter; context: { $implicit: column }\"></ng-container>\n }\n }\n </div>\n </th>\n <td\n class=\"c-td px-0\"\n [class.d-none]=\"column.type === 'children'\"\n mat-cell\n *matCellDef=\"let item\"\n [sdHoverCopy]=\"(item.data && item.data[column.field]) || ''\"\n [sdHoverCopyDisabled]=\"!column.cell?.copiable\">\n @if (column.type !== 'children' && !item?.meta?.group?.isGroupHeader) {\n @if (_treeFirstField && column.field === _treeFirstField) {\n <!-- why: kh\u00F4ng c\u00F3 c\u1ED9t Index \u2192 chevron + indent nh\u00FAng v\u00E0o c\u1ED9t data \u0111\u1EA7u (nh\u01B0 file explorer). -->\n <span class=\"sd-tree-line px-8\">\n <ng-container *ngTemplateOutlet=\"sdTreeToggle; context: { row: item }\"></ng-container>\n <desktop-cell class=\"d-block\" [column]=\"column\" [item]=\"item\" [cellDef]=\"_cellDef\"></desktop-cell>\n </span>\n } @else {\n <desktop-cell class=\"d-block px-8\" [column]=\"column\" [item]=\"item\" [cellDef]=\"_cellDef\"> </desktop-cell>\n }\n }\n </td>\n <td mat-footer-cell *matFooterCellDef [class.d-none]=\"column.type === 'children'\">\n <ng-container *ngIf=\"_footerDef[column.field]\">\n <ng-container *ngTemplateOutlet=\"_footerDef[column.field].templateRef; context: { items: _items, column: column }\">\n </ng-container>\n </ng-container>\n </td>\n </ng-container>\n }\n @for (column of _configuration.secondColumns; track column.field) {\n <ng-container [matColumnDef]=\"column.field\" [sticky]=\"_configuration.fixedColumn[column.field]\">\n <th\n mat-header-cell\n *matHeaderCellDef\n class=\"c-th px-8\"\n scope=\"col\"\n [style.width]=\"column.width\"\n [style.min-width]=\"column.minWidth || column.width\"\n [style.max-width]=\"column.maxWidth\"\n [attr.aria-sort]=\"_tableOption.sort?.enable && column.sortable ? getSortAria(column.field) : null\">\n <div\n [class.sd-table-header-cell--trigger]=\"_queryBarMode\"\n [class.sd-table-header-cell--end]=\"_queryBarMode && column.align === 'right'\">\n @if (_tableOption.sort?.enable && column.sortable) {\n <div\n [sdTableSortHeader]=\"column.field\"\n class=\"c-header-title\"\n [class.justify-content-end]=\"column.align === 'right'\"\n [class.text-right]=\"column.align === 'right'\">\n <column-title [column]=\"column\" [titleDef]=\"_titleDef[column.field]\"></column-title>\n </div>\n } @else {\n <div\n class=\"c-header-title\"\n [class.justify-content-end]=\"column.align === 'right'\"\n [class.text-right]=\"column.align === 'right'\">\n <column-title [column]=\"column\" [titleDef]=\"_titleDef[column.field]\"></column-title>\n </div>\n }\n @if (_queryBarMode) {\n <ng-container *ngTemplateOutlet=\"queryBarTrigger; context: { $implicit: column }\"></ng-container>\n }\n </div>\n </th>\n <td\n class=\"c-td px-0\"\n mat-cell\n *matCellDef=\"let item\"\n [sdHoverCopy]=\"item[column.field]\"\n [sdHoverCopyDisabled]=\"!column.cell?.copiable\">\n @if (column.type !== 'children') {\n <desktop-cell class=\"d-block px-8\" [column]=\"column\" [item]=\"item\" [cellDef]=\"_cellDef\"> </desktop-cell>\n }\n </td>\n <td mat-footer-cell *matFooterCellDef>\n <ng-container *ngIf=\"_footerDef[column.field]\">\n <ng-container *ngTemplateOutlet=\"_footerDef[column.field].templateRef; context: { items: _items, column: column }\">\n </ng-container>\n </ng-container>\n </td>\n </ng-container>\n }\n <tr class=\"c-first-header\" mat-header-row *matHeaderRowDef=\"_configuration.firstHeaders; sticky: true\"></tr>\n @for (entry of _aggregateColumns; track entry.id) {\n <ng-container [matColumnDef]=\"entry.id\" [sticky]=\"entry.sticky\" [stickyEnd]=\"entry.stickyEnd\">\n <td\n mat-cell\n *matCellDef=\"let row\"\n class=\"sd-aggregate-cell px-8 py-8\"\n [class.d-none]=\"entry.hidden\"\n [style.text-align]=\"entry.column?.align\"\n [style.width]=\"entry.column?.width\"\n [style.min-width]=\"entry.column?.minWidth || entry.column?.width\">\n <ng-container\n *ngTemplateOutlet=\"\n aggregateCell;\n context: { $implicit: aggregateRenderHost.rows.get(row)?.cells?.get(entry.field) }\n \"></ng-container>\n </td>\n <td\n mat-footer-cell\n *matFooterCellDef\n class=\"sd-aggregate-cell px-8 py-8\"\n [class.d-none]=\"entry.hidden\"\n [style.text-align]=\"entry.column?.align\"\n [style.width]=\"entry.column?.width\"\n [style.min-width]=\"entry.column?.minWidth || entry.column?.width\">\n <ng-container\n *ngTemplateOutlet=\"aggregateCell; context: { $implicit: _aggregate.total?.cells?.get(entry.field) }\"></ng-container>\n </td>\n </ng-container>\n }\n <tr mat-row *matRowDef=\"let row; columns: _aggregateColumnIds; when: isAggregateRow\" class=\"sd-aggregate-row\"></tr>\n @if (!!_configuration.secondHeaders.length) {\n <tr class=\"c-second-header\" mat-header-row *matHeaderRowDef=\"_configuration.secondHeaders; sticky: true\"></tr>\n }\n @if (_configuration.multipleHeader) {\n @for (entry of _headerFilterColumns; track entry.id) {\n <ng-container [matColumnDef]=\"entry.id\" [sticky]=\"entry.sticky\" [stickyEnd]=\"entry.stickyEnd\">\n <th\n mat-header-cell\n *matHeaderCellDef\n class=\"c-th sd-filter-header\"\n [class.px-8]=\"!!entry.column\"\n [class.p-0]=\"!entry.column\"\n [class.sd-filler-cell]=\"entry.field === 'sdFiller'\"\n scope=\"col\">\n @if (_showInlineFilter && entry.column) {\n <ng-container *ngTemplateOutlet=\"inlineColumnFilter; context: { $implicit: entry.column }\"></ng-container>\n }\n </th>\n </ng-container>\n }\n <!-- why: gi\u1EEF row definition \u1ED5n \u0111\u1ECBnh; CDK c\u1EADp nh\u1EADt columns \u0111\u1EC3 b\u1ECF controls/sticky offsets khi \u1EA9n filter. -->\n <tr\n class=\"c-filter-header\"\n [style.display]=\"_showInlineFilter ? null : 'none'\"\n mat-header-row\n *matHeaderRowDef=\"_showInlineFilter ? headerFilterColumnIds() : []; sticky: _showInlineFilter\"></tr>\n }\n <!-- Group header row \u2014 ch\u1EC9 1 cell sdGroupHeader colspan to\u00E0n width. -->\n <tr mat-row *matRowDef=\"let row; columns: ['sdGroupHeader']; when: isGroupHeaderRow\" class=\"c-group-row-tr\"></tr>\n\n <!-- Data row \u2014 d\u00F9ng displayedColumns \u0111\u1EA7y \u0111\u1EE7; when isDataRow \u0111\u1EC3 lo\u1EA1i tr\u1EEB group header. -->\n <!-- why: [ngStyle] \u0111\u1ECDc meta.rowStyle \u2014 style.rowCss \u0111\u00E3 \u0111\u01B0\u1EE3c resolve 1 l\u1EA7n m\u1ED7i l\u1EA7n\n render. B\u1EA3n c\u0169 g\u1ECDi rowStyle(row) ngay trong binding \u2192 ch\u1EA1y callback c\u1EE7a consumer\n cho T\u1EEANG d\u00F2ng \u1EDF M\u1ED6I CD pass, v\u00E0 v\u00EC tr\u1EA3 object M\u1EDAI n\u00EAn NgStyle ph\u1EA3i ch\u1EA1y l\u1EA1i\n KeyValueDiffer tr\u00EAn m\u1ECDi d\u00F2ng \u1EDF m\u1ECDi pass. -->\n <tr\n mat-row\n cdkDrag\n [cdkDragData]=\"row\"\n [cdkDragDisabled]=\"\n !_tableOption.rowReorder?.enabled ||\n !!row.meta?.group?.items?.length ||\n (row.meta?.tree?.level ?? 0) > 0 ||\n isReorderDisabled(row)\n \"\n *matRowDef=\"let row; columns: _configuration.displayedColumns; when: isDataRow\"\n matRipple\n class=\"c-row\"\n [class.sd-tree-row]=\"!!_tableOption.tree\"\n [ngClass]=\"_tableOption.tree ? 'sd-tree-level-' + (row.meta?.tree?.level ?? 0) : null\"\n [ngStyle]=\"row.meta.rowStyle\"\n [class.selected]=\"row.meta.selector.isSelected\"></tr>\n\n <!-- Sub-information row \u2014 also gated b\u1EDFi isDataRow \u0111\u1EC3 KH\u00D4NG render empty expand row d\u01B0\u1EDBi group header. -->\n <tr mat-row *matRowDef=\"let row; columns: ['sdSubInformation']; when: isDataRow\" class=\"c-detail-row\"></tr>\n @if (_aggregate.total) {\n <tr mat-footer-row *sdTableFooterRowDef=\"_aggregateColumnIds; sticky: true\" class=\"sd-aggregate-total\"></tr>\n }\n @if (hasFooter() && !!_configuration.displayedFooters.length) {\n <tr mat-footer-row *sdTableFooterRowDef=\"_configuration.displayedFooters; sticky: true\"></tr>\n }\n <!-- why: khung x\u01B0\u01A1ng l\u00E0 d\u00F2ng th\u1EADt trong tbody (matNoDataRow ch\u1EC9 hi\u1EC7n khi kh\u00F4ng c\u00F3 d\u00F2ng d\u1EEF li\u1EC7u) n\u00EAn \u00F4 th\u1EB3ng\n c\u1ED9t v\u1EDBi header, k\u1EC3 c\u1EA3 header nh\u00F3m, m\u00E0 kh\u00F4ng ph\u1EA3i \u0111o; footer v\u1EABn n\u1EB1m d\u01B0\u1EDBi; dataSource kh\u00F4ng \u0111\u1ED5i. -->\n <ng-template matNoDataRow>\n @for (cells of skeleton(); track $index) {\n <tr class=\"sd-table-skeleton-row\" aria-hidden=\"true\">\n @for (cell of cells; track cell.field) {\n <td class=\"sd-table-skeleton-cell\" [class.d-none]=\"cell.hidden\">\n @if (cell.shape !== 'none') {\n <span\n class=\"sd-table-skeleton-bar\"\n [attr.data-shape]=\"cell.shape\"\n [attr.data-align]=\"cell.align\"\n [style.width]=\"cell.width\"\n [style.max-width]=\"cell.maxWidth\"></span>\n }\n </td>\n }\n </tr>\n }\n </ng-template>\n </table>\n }\n @let _readError = _readState.status === 'error';\n <!-- why: d\u00F2ng c\u0169 b\u1ECB g\u1EE1 khi l\u1EA7n \u0111\u1ECDc hi\u1EC7n h\u00E0nh l\u1ED7i, n\u00EAn v\u00F9ng l\u1ED7i/empty ch\u1EC9 hi\u1EC7n khi b\u1EA3ng kh\u00F4ng c\u00F2n d\u00F2ng n\u00E0o\n \u2014 end user kh\u00F4ng bao gi\u1EDD th\u1EA5y d\u1EEF li\u1EC7u v\u00E0 l\u1ED7i c\u00F9ng l\u00FAc (NSP-4877). -->\n @let _noRows = !_readError && !_loading && !_total && !_items.length && _loadingView === 'none';\n @if ((_readError && !_hideReadError) || (_noRows && _readState.status === 'empty' && !!_dataStateTemplate)) {\n <sd-data-state [state]=\"_readError ? 'error' : 'empty'\" [retryable]=\"_readError\" (sdRetry)=\"retryRead()\">\n @if (_dataStateTemplate; as custom) {\n <ng-template sdDataStateTemplate let-current let-retry=\"retry\" let-action=\"action\">\n <ng-container\n [ngTemplateOutlet]=\"custom.template\"\n [ngTemplateOutletContext]=\"{ $implicit: current, state: current, retry: retry, action: action }\"></ng-container>\n </ng-template>\n }\n </sd-data-state>\n } @else if (!_loading && loadError() && !_hideReadError) {\n <!-- why: b\u1EA3ng local l\u1ED7i d\u00F9ng c\u00F9ng giao di\u1EC7n l\u1ED7i v\u1EDBi b\u1EA3ng server (sd-data-state, role=\"alert\") v\u00E0 c\u00F9ng\n sdDataStateTemplate; th\u1EED l\u1EA1i = reload() v\u00EC local kh\u00F4ng c\u00F3 snapshot \u0111\u1ECDc \u0111\u1EC3 retryRead(). -->\n <sd-data-state state=\"error\" [retryable]=\"true\" (sdRetry)=\"reload()\">\n @if (_dataStateTemplate; as custom) {\n <ng-template sdDataStateTemplate let-current let-retry=\"retry\" let-action=\"action\">\n <ng-container\n [ngTemplateOutlet]=\"custom.template\"\n [ngTemplateOutletContext]=\"{ $implicit: current, state: current, retry: retry, action: action }\"></ng-container>\n </ng-template>\n }\n </sd-data-state>\n } @else if (_noRows && !loadError()) {\n <!-- why: empty m\u1EB7c \u0111\u1ECBnh gi\u1EEF 3 tr\u1EA1ng th\u00E1i (filter kh\u00F4ng c\u00F3 k\u1EBFt qu\u1EA3 / ch\u01B0a ch\u1ECDn filter b\u1EAFt bu\u1ED9c / ch\u01B0a c\u00F3 d\u1EEF li\u1EC7u)\n c\u00F9ng \u1EA3nh c\u1EA5u h\u00ECnh qua SD_TABLE_CONFIGURATION.images, cho c\u1EA3 b\u1EA3ng server (NSP-5551). Kh\u00F4ng c\u00F3 role live:\n v\u00F9ng .sd-table-live (lu\u00F4n c\u00F3 trong DOM) \u0111\u1ECDc ti\u00EAu \u0111\u1EC1 c\u1EE7a kh\u1ED1i n\u00E0y. -->\n <div class=\"c-no-data-row\">\n @if (_isFiltered) {\n @if (tableConfiguration?.images?.filterEmpty) {\n <img class=\"c-image\" [src]=\"tableConfiguration!.images!.filterEmpty\" alt=\"filter-empty\" />\n } @else {\n <img class=\"c-image sd-image-filter-empty\" alt=\"filter-empty\" />\n }\n <div class=\"T16M\">{{ 'core.component.table.no-results' | sdTranslate }}</div>\n <div class=\"T16R text-secondary\">{{ 'core.component.table.no-results-hint' | sdTranslate }}</div>\n } @else {\n @if (_requireFiltered) {\n @if (tableConfiguration?.images?.filterRequired) {\n <img class=\"c-image\" [src]=\"tableConfiguration!.images!.filterRequired\" alt=\"filter-required\" />\n } @else {\n <img class=\"c-image sd-image-filter-required\" alt=\"filter-required\" />\n }\n <div class=\"T16R text-secondary\">{{ 'core.component.table.choose-filter-hint' | sdTranslate }}</div>\n } @else {\n @if (tableConfiguration?.images?.dataEmpty) {\n <img class=\"c-image\" [src]=\"tableConfiguration!.images!.dataEmpty\" alt=\"data-empty\" />\n } @else {\n <img class=\"c-image sd-image-data-empty\" alt=\"data-empty\" />\n }\n <div class=\"T16R text-secondary\">{{ 'core.component.table.no-data' | sdTranslate }}</div>\n }\n }\n </div>\n }\n </div>\n @if (_loadingView === 'refresh' && !_mobileCards) {\n <!-- N\u1EB1m trong .c-container, kh\u00F4ng trong .c-table, \u0111\u1EC3 kh\u00F4ng cu\u1ED9n ngang theo b\u1EA3ng; top = --sd-table-head-h (\u0111o). -->\n <div class=\"sd-table-progress\" aria-hidden=\"true\"></div>\n }\n @if (!_mobileCards) {\n <selector-action\n [autoId]=\"_autoId\"\n [tableOption]=\"_tableOption\"\n [selectedTableItems]=\"_selectedTableItems\"\n (clear)=\"onClearSelection()\" />\n }\n <div class=\"c-paginator\">\n <div class=\"c-action\">\n @if (!_mobileCards) {\n @if (_tableOption.reload?.visible) {\n <sd-button\n [autoId]=\"_autoId ? _autoId + '-reload' : null\"\n class=\"mr-8\"\n [title]=\"'core.component.table.reload' | sdTranslate\"\n prefixIcon=\"refresh\"\n (click)=\"reload()\"\n type=\"text\">\n </sd-button>\n }\n @if (_export && _items.length) {\n @if (_export.type === 'custom') {\n <sd-button\n [autoId]=\"_autoId ? _autoId + '-export' : null\"\n class=\"mr-8\"\n [title]=\"_exportTitle\"\n prefixIcon=\"get_app\"\n (click)=\"exportCustom()\"\n type=\"text\">\n </sd-button>\n } @else {\n @if (_export.visible) {\n @if (_exporting) {\n <sd-button\n [autoId]=\"_autoId ? _autoId + '-export' : null\"\n class=\"mr-8\"\n [loading]=\"_exporting\"\n [title]=\"_exportTitle\"\n prefixIcon=\"get_app\"\n type=\"text\">\n </sd-button>\n } @else {\n @if (_export.visible === 'ALL' || !_export.visible) {\n <sd-button\n [autoId]=\"_autoId ? _autoId + '-export' : null\"\n class=\"mr-8\"\n [title]=\"_exportTitle\"\n prefixIcon=\"get_app\"\n type=\"text\">\n <sd-button-item\n [autoId]=\"_autoId ? _autoId + '-export-excel' : null\"\n prefixIcon=\"file_download\"\n (click)=\"exportExcel()\"\n >{{ 'core.component.table.export-excel' | sdTranslate }}</sd-button-item\n >\n <sd-button-item\n [autoId]=\"_autoId ? _autoId + '-export-csv' : null\"\n prefixIcon=\"file_download\"\n (click)=\"exportCSV()\"\n >{{ 'core.component.table.export-csv' | sdTranslate }}</sd-button-item\n >\n </sd-button>\n } @else if (_export.visible === 'EXCEL') {\n <sd-button\n [autoId]=\"_autoId ? _autoId + '-export-excel' : null\"\n class=\"mr-8\"\n [title]=\"_exportTitle\"\n prefixIcon=\"get_app\"\n (click)=\"exportExcel()\"\n type=\"text\">\n </sd-button>\n } @else if (_export.visible === 'CSV') {\n <sd-button\n [autoId]=\"_autoId ? _autoId + '-export-csv' : null\"\n class=\"mr-8\"\n [title]=\"_exportTitle\"\n prefixIcon=\"get_app\"\n (click)=\"exportCSV()\"\n type=\"text\">\n </sd-button>\n }\n }\n }\n }\n }\n\n @if (_configComponent) {\n <sd-button\n [autoId]=\"_autoId ? _autoId + '-config' : null\"\n class=\"mr-8\"\n [title]=\"'core.component.table.setup-short' | sdTranslate\"\n prefixIcon=\"settings\"\n [indicator]=\"!_isMobile && hasCustomSetup()\"\n indicatorColor=\"primary\"\n [indicatorLabel]=\"'core.component.table.config.customized' | sdTranslate\"\n (click)=\"_configComponent.open()\"\n type=\"text\">\n </sd-button>\n }\n <!-- Mobile: n\u00FAt Filter m\u1EDF mobile-filter drawer (inline filter \u1EA9n tr\u00EAn mobile) -->\n @if (_isMobile) {\n @if (!_tableOption.filter?.disabled && _mobileFilter) {\n <sd-button\n [autoId]=\"_autoId ? _autoId + '-mobile-filter-open' : null\"\n class=\"mr-8\"\n prefixIcon=\"filter_alt\"\n [title]=\"_mobileCards ? ('core.component.table.filter' | sdTranslate) : undefined\"\n (click)=\"_mobileFilter.open()\"\n type=\"text\">\n </sd-button>\n }\n }\n }\n </div>\n @let _unknownTotalPager = unknownTotalPager();\n @if (_unknownTotalPager) {\n <!-- paginate.total 'unknown': no total exists, so mat-paginator (which derives Next/Last and the\n range from `length`) is replaced by a pager that renders only the rows actually shown. -->\n @if (!_tableOption.paginate?.hidden && unknownTotalPagerVisible()) {\n <sd-table-unknown-total-paginator\n [class.sd-mobile-paginator]=\"_mobileCards\"\n [state]=\"_unknownTotalPager\"\n [pageSizeOptions]=\"_tableOption.paginate?.pages\"\n [hidePageSize]=\"_isMobile || !!_tableOption.paginate?.hidePageSize\"\n [showFirstButton]=\"!_isMobile && !!_tableOption.paginate?.showFirstLastButtons\"\n [autoId]=\"_autoId\"\n (page)=\"onUnknownTotalPage($event)\"></sd-table-unknown-total-paginator>\n } @else if (!_isMobile && !_tableOption.paginate?.hidden && unknownTotalSingleCount()) {\n <div class=\"T14R c-summary\">\n {{ 'core.component.table.showing' | sdTranslate }} <span class=\"T14M ml-2\">1-{{ unknownTotalSingleCount() }}</span>\n </div>\n }\n } @else {\n @let hidePaginator = !_tableOption.paginate?.pageSize || _total === undefined || _total <= _tableOption.paginate?.pageSize!;\n <mat-paginator\n [class.sd-mobile-paginator]=\"_mobileCards\"\n [class.d-none]=\"_tableOption.paginate?.hidden || hidePaginator\"\n [length]=\"_total\"\n [pageSize]=\"_tableOption.paginate?.pageSize\"\n [pageSizeOptions]=\"_tableOption.paginate?.pages!\"\n [showFirstLastButtons]=\"!_isMobile && _tableOption.paginate?.showFirstLastButtons\"\n [hidePageSize]=\"_isMobile || _tableOption.paginate?.hidePageSize\"\n [selectConfig]=\"{ panelClass: ['sd-select-panel', 'sd-table-page-size-panel'] }\"></mat-paginator>\n <!-- \"\u0110ang hi\u1EC3n th\u1ECB...\" ch\u1EC9 desktop -->\n @if (!_isMobile) {\n @if (!_tableOption.paginate?.hidden && hidePaginator && _total !== undefined && _total > 0) {\n <div class=\"T14R c-summary\">\n {{ 'core.component.table.showing' | sdTranslate }} <span class=\"T14M ml-2\">1-{{ _total }}/{{ _total }}</span>\n </div>\n }\n }\n }\n </div>\n </div>\n </div>\n\n @if (_tableOption.config?.visible) {\n <config\n [autoId]=\"_autoId\"\n [tableOption]=\"_tableOption\"\n [filterSetup]=\"configFilter()\"\n (defaultsRestored)=\"onConfigDefaultsRestored()\"\n (filterApplied)=\"onConfigFilterApplied($event)\" />\n }\n <!-- Mobile filter sheet (bottom sheet, two levels) \u2014 opened by the Filters chip or the footer filter button -->\n @if (!_tableOption.filter?.disabled && filterRegister) {\n <mobile-filter\n [autoId]=\"_autoId\"\n [filter]=\"_tableOption.filter!\"\n [externalFilters]=\"_tableOption.filter?.externalFilters!\"\n [columns]=\"mobileColumns()\"\n [filterDefs]=\"sdFilterDefs()\"\n [filterRegister]=\"filterRegister\"\n [cacheValues]=\"cacheValues\"\n [model]=\"mobileFilterModel()\">\n </mobile-filter>\n }\n} @else if (_readState.status === 'error' && !_hideReadError) {\n <!-- why: lookup c\u00F3 th\u1EC3 l\u1ED7i tr\u01B0\u1EDBc khi c\u00F3 configuration; v\u1EABn ph\u1EA3i c\u00F3 l\u1ED1i retry v\u00E0 custom error template. -->\n <sd-data-state state=\"error\" [retryable]=\"true\" (sdRetry)=\"retryRead()\">\n @if (_dataStateTemplate; as custom) {\n <ng-template sdDataStateTemplate let-current let-retry=\"retry\" let-action=\"action\">\n <ng-container\n [ngTemplateOutlet]=\"custom.template\"\n [ngTemplateOutletContext]=\"{ $implicit: current, state: current, retry: retry, action: action }\"></ng-container>\n </ng-template>\n }\n </sd-data-state>\n} @else if (_loadingView === 'skeleton') {\n <!-- why: lookup c\u1ED9t (values/lazy-values) c\u00F3 th\u1EC3 ch\u1EADm; ch\u01B0a c\u00F3 configuration n\u00EAn ch\u01B0a bi\u1EBFt c\u1ED9t, v\u1EBD khung x\u01B0\u01A1ng chung\n thay v\u00EC \u0111\u1EC3 tr\u1ED1ng. Hydrate kh\u00F4ng c\u00F3 lookup xong trong microtask n\u00EAn kh\u1ED1i n\u00E0y kh\u00F4ng k\u1ECBp hi\u1EC7n. -->\n <div class=\"sd-table-skeleton-block\" aria-hidden=\"true\">\n @for (cells of genericSkeleton; track $index) {\n <div class=\"sd-table-skeleton-block-row\">\n @for (cell of cells; track cell.field) {\n <span class=\"sd-table-skeleton-cell\">\n <span class=\"sd-table-skeleton-bar\" [style.width]=\"cell.width\" [style.max-width]=\"cell.maxWidth\"></span>\n </span>\n }\n </div>\n }\n </div>\n}\n", styles: [":host{display:flex;flex-direction:column;overflow:auto;width:100%;height:100%;--mat-table-row-item-container-height: 36px}:host:focus-visible{outline:var(--sd-focus-ring-width, 2px) solid var(--sd-focus-ring-color, var(--sd-primary));outline-offset:2px}:host .sd-table-live{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}:host .c-header-title{height:40px;display:flex;align-items:center}:host .sd-table-surface{display:flex;flex:1;flex-direction:column;min-width:0;min-height:0;background:var(--sd-surface, #fff);border-radius:var(--sd-radius-6, 6px)}:host .c-container{position:relative;min-height:50px;display:flex;flex-direction:column;flex:1;isolation:isolate}:host .c-container .c-table{position:relative;flex:1;display:flex;flex-direction:column}:host .c-container .c-table table{border-collapse:separate;width:100%}:host .c-container .c-table table tr.c-first-header.mat-mdc-header-row{height:40px}:host .c-container .c-table table tr.c-second-header.mat-mdc-header-row{height:40px}:host .c-container .c-table table.sd-table-grouped-header th.c-th{vertical-align:middle;padding-block:4px}:host .c-container .c-table table.sd-table-grouped-header tr.c-first-header.mat-mdc-header-row{height:32px}:host .c-container .c-table table.sd-table-grouped-header tr.c-filter-header.mat-mdc-header-row{height:auto}:host .c-container .c-table table.sd-table-grouped-header th.sd-filter-header{padding-block:0 8px;vertical-align:bottom}:host .c-container .c-table table.sd-table-grouped-header column-filter{display:flex;align-items:center;min-height:36px}:host .c-container .c-table table.sd-table-grouped-header th.sd-column-group{padding-block:4px;vertical-align:middle;background-color:color-mix(in srgb,var(--sd-border, #c4c6d0) 18%,var(--sd-table-group-header-mix, #f2f3f4));box-shadow:inset 0 -1px var(--sd-border, #c4c6d0)}:host .c-container .c-table table.sd-table-grouped-header th.sd-column-group .sd-column-group-title{height:auto;min-height:24px;justify-content:center;text-align:center;font-weight:var(--sd-font-weight-semibold, 600)}:host .c-container .c-table table tr.c-detail-row{height:0}:host .c-container .c-table table tr.c-row.activated{background-color:var(--sd-table-row-activated-bg, #e5ecff)}:host .c-container .c-table table tr.c-row.selected{background-color:var(--sd-table-row-selected-bg, #eef2ff)}:host .c-container .c-table table tr.c-row:not(.selected):not(.activated):hover{background-color:var(--sd-table-row-hover-bg, #f5f5f5)}:host .c-container .c-table table tr.c-row td{border-bottom-width:0}:host .c-container .c-table table tr.c-row.c-expandable{cursor:pointer}:host .c-container .c-table table tr.c-row.c-expandable:hover{background:var(--sd-table-row-hover-bg, #f5f5f5)}:host .c-container .c-table table th.mat-mdc-header-cell{background-color:var(--sd-table-header-bg, #f2f3f4);border-bottom:0!important}:host .c-container .c-table table td.mat-mdc-cell,:host .c-container .c-table table td.mat-mdc-footer-cell,:host .c-container .c-table table th.mat-mdc-header-cell{border-bottom-color:var(--sd-table-row-divider, #f2f2f2)!important}:host .c-container .c-table .c-th{vertical-align:middle;padding-block:8px;font-weight:var(--sd-font-weight-medium, 500);font-size:var(--sd-font-size-14, 14px);line-height:var(--sd-line-height-20, 20px);color:var(--sd-table-header-text, #212121)}:host .c-container .c-table .c-th.sd-col-resize-host{position:relative}:host .c-container .c-table .c-th.sd-resizing{-webkit-user-select:none;user-select:none}:host .c-container .c-table .c-th .sd-col-resize-handle{position:absolute;top:0;right:0;width:6px;height:100%;cursor:col-resize;-webkit-user-select:none;user-select:none;z-index:2}:host .c-container .c-table .c-th .sd-col-resize-handle:hover{background:color-mix(in srgb,var(--sd-text) 8%,transparent)}:host .c-container .c-table .c-td:first{padding-left:10px}:host .c-container .c-table .c-no-data-row{flex:1;width:100%;position:sticky;left:0;display:flex;flex-direction:column;align-items:center;justify-content:center}:host .c-container .c-table .c-no-data-row .c-image{margin-bottom:16px;width:96px}:host .c-container .c-paginator{display:flex;flex-direction:row;justify-content:space-between;align-items:center;background-color:var(--sd-table-bg, #ffffff)}:host .c-container .c-paginator .mat-mdc-paginator{background:transparent;--mat-paginator-container-size: 40px;--mat-icon-button-state-layer-size: 32px;--mdc-icon-button-state-layer-size: 32px;--mdc-icon-button-icon-size: 20px}:host .c-container .c-paginator .c-action{padding:0}:host .c-container .c-paginator .c-action sd-button{margin:8px 5px}:host .c-container .c-paginator .c-summary{padding:8px 16px}:host .c-container .c-empty{text-align:center;background-color:var(--sd-table-bg, #ffffff);border:none!important}:host .c-container .c-empty sd-icon{font-size:150px;margin-top:30px;margin-bottom:30px;opacity:.2;width:auto;height:auto}:host button.c-btn-add{background-color:var(--sd-table-bg, #ffffff);box-shadow:var(--sd-shadow-sm)}:host .sd-reorder-header,:host .sd-reorder-cell{width:40px;min-width:40px;padding:0 4px;box-sizing:border-box}:host .sd-reorder-cell sd-icon{cursor:grab;color:var(--sd-text-muted);display:flex;align-items:center}:host .sd-reorder-cell sd-icon:active{cursor:grabbing}:host .sd-reorder-cell sd-icon.sd-reorder-disabled{opacity:.3;cursor:not-allowed;pointer-events:none}:host ::ng-deep .sd-mobile-paginator .mat-mdc-paginator-range-label{margin-inline:4px;white-space:nowrap}:host .c-container:not(.sd-table-mobile)>.c-table{border-radius:6px 6px 0 0}:host .c-container:not(.sd-table-mobile)>.c-paginator{border-radius:0}:host .sd-mobile-command-header{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px;padding:4px}:host .c-container.sd-table-mobile .c-paginator{flex-wrap:wrap;gap:4px;min-height:48px}:host .c-container.sd-table-mobile .c-action{display:flex;align-items:center;min-width:0}:host .c-container.sd-table-mobile .sd-mobile-paginator{margin-inline-start:auto}:host .c-container.sd-table-mobile .c-paginator,:host .c-container.sd-table-mobile .c-empty{background-color:var(--sd-surface);color:var(--sd-text)}:host .c-container.sd-table-mobile .c-paginator{background-color:var(--sd-table-bg, #ffffff)}:host ::ng-deep .sd-table-mobile .c-paginator button{min-width:44px;min-height:44px}:host .c-container.sd-table-mobile .c-paginator .sd-mobile-paginator{--mat-icon-button-state-layer-size: 44px;--mdc-icon-button-state-layer-size: 44px}:host ::ng-deep .mat-select-arrow{color:var(--sd-table-select-arrow, #a6a6a6)}:host ::ng-deep .sd-table-sort-header{cursor:pointer;outline:none}:host ::ng-deep .sd-table-sort-header:focus-visible{border-bottom:solid 1px currentColor}:host ::ng-deep th[aria-sort] .sd-table-sort-header{position:relative;padding-right:24px}:host ::ng-deep th[aria-sort] .sd-table-sort-header:after{content:\"\";position:absolute;top:50%;right:0;width:16px;height:16px;transform:translateY(-50%);background-color:var(--sd-text-secondary);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:center;mask-position:center;-webkit-mask-size:16px 16px;mask-size:16px 16px;pointer-events:none}:host ::ng-deep th[aria-sort=ascending] .sd-table-sort-header:after,:host ::ng-deep th[aria-sort=descending] .sd-table-sort-header:after{background-color:var(--sd-text)}:host ::ng-deep th[aria-sort=none] .sd-table-sort-header:after{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24px' viewBox='0 0 24 24' width='24px' fill='%23000000'%3E%3Cpath d='M0 0h24v24H0V0z' fill='none'/%3E%3Cpath fill='%237A7A7A' d='M12 5.83L15.17 9l1.41-1.41L12 3 7.41 7.59 8.83 9 12 5.83zm0 12.34L8.83 15l-1.41 1.41L12 21l4.59-4.59L15.17 15 12 18.17z'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24px' viewBox='0 0 24 24' width='24px' fill='%23000000'%3E%3Cpath d='M0 0h24v24H0V0z' fill='none'/%3E%3Cpath fill='%237A7A7A' d='M12 5.83L15.17 9l1.41-1.41L12 3 7.41 7.59 8.83 9 12 5.83zm0 12.34L8.83 15l-1.41 1.41L12 21l4.59-4.59L15.17 15 12 18.17z'/%3E%3C/svg%3E\")}:host ::ng-deep th[aria-sort=ascending] .sd-table-sort-header:after{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24px' viewBox='0 0 24 24' width='24px' fill='%23000000'%3E%3Cpath d='M0 0h24v24H0V0z' fill='none'/%3E%3Cpath fill='%237A7A7A' d='M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24px' viewBox='0 0 24 24' width='24px' fill='%23000000'%3E%3Cpath d='M0 0h24v24H0V0z' fill='none'/%3E%3Cpath fill='%237A7A7A' d='M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z'/%3E%3C/svg%3E\")}:host ::ng-deep th[aria-sort=descending] .sd-table-sort-header:after{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24px' viewBox='0 0 24 24' width='24px' fill='%23000000'%3E%3Cpath d='M0 0h24v24H0V0z' fill='none'/%3E%3Cpath fill='%237A7A7A' d='M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24px' viewBox='0 0 24 24' width='24px' fill='%23000000'%3E%3Cpath d='M0 0h24v24H0V0z' fill='none'/%3E%3Cpath fill='%237A7A7A' d='M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z'/%3E%3C/svg%3E\")}:host ::ng-deep .c-paginator .mat-mdc-paginator-range-label{margin:0 4px}:host ::ng-deep .c-paginator .mat-mdc-paginator-page-size{align-items:center}:host ::ng-deep .c-paginator .mat-mdc-paginator-page-size-select{--mat-select-trigger-text-size: var(--sd-font-size-14, 14px);--mat-paginator-select-trigger-text-size: var(--sd-font-size-14, 14px)}:host ::ng-deep .c-paginator .mat-mdc-paginator-page-size-select .mat-mdc-form-field-infix{display:flex;align-items:center;height:32px;min-height:32px;padding-top:0;padding-bottom:0}:host ::ng-deep .c-paginator .mat-mdc-paginator-page-size-select.mat-mdc-form-field .mat-mdc-form-field-infix mat-select.mat-mdc-select{margin-top:0}:host ::ng-deep .c-paginator .mat-mdc-paginator-page-size-select .mat-mdc-text-field-wrapper{padding-right:8px}:host ::ng-deep .c-paginator .mat-mdc-paginator-page-size-select .mat-mdc-select-arrow-wrapper{width:20px;justify-content:center}:host ::ng-deep .c-paginator .mat-mdc-paginator-page-size-select .mat-mdc-select-arrow{width:16px;height:16px;color:var(--sd-text-secondary);background-color:currentColor;mask:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z'/%3E%3C/svg%3E\") center/16px 16px no-repeat}:host ::ng-deep .c-paginator .mat-mdc-paginator-page-size-select .mat-mdc-select-arrow svg{display:none}:host ::ng-deep .c-paginator .mat-mdc-paginator-page-size-select .mat-mdc-form-field-flex:hover .mat-mdc-select-arrow{color:var(--sd-text)}::ng-deep .mat-mdc-select-panel.sd-select-panel.sd-table-page-size-panel .mat-mdc-option{min-height:36px;padding:7px 12px}:host ::ng-deep .cdk-drag-preview{box-shadow:var(--sd-shadow-md);background:var(--sd-table-bg);display:table;width:100%}:host ::ng-deep .cdk-drag-preview td{padding:0 8px;border-bottom:1px solid var(--sd-table-row-divider)}:host ::ng-deep .cdk-drag-placeholder{opacity:0}:host ::ng-deep .cdk-drop-list-dragging tr.c-row:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}:host ::ng-deep .sd-selection-cell{width:42px;min-width:42px;max-width:42px}:host ::ng-deep .sd-filler-cell{width:auto;min-width:0;padding:0!important;border:0}:host ::ng-deep .sd-group-header-cell{background:var(--sd-table-group-row-bg, #f5f7fc);border-top:1px solid var(--sd-table-group-row-border, #e6e9f2);border-bottom:1px solid var(--sd-table-group-row-border, #e6e9f2)}:host ::ng-deep .sd-group-row{min-height:36px}:host ::ng-deep .sd-group-selection-slot{width:42px;min-width:42px;max-width:42px}:host ::ng-deep .c-selection{transform:scale(.85);transform-origin:center}:host ::ng-deep .sd-tree-line{display:inline-flex;align-items:center;min-height:32px}:host ::ng-deep .sd-tree-indent{flex:0 0 auto}:host ::ng-deep .sd-tree-toggle-slot{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px}:host ::ng-deep .sd-tree-toggle-btn{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;padding:0;border:0;background:transparent;border-radius:50%;cursor:pointer;color:var(--sd-text-secondary, #5b6472);transition:background-color .15s ease}:host ::ng-deep .sd-tree-toggle-btn sd-icon{font-size:var(--sd-font-size-18, 18px);width:18px;height:18px;line-height:var(--sd-line-height-18, 18px)}:host ::ng-deep .sd-tree-toggle-btn:hover{background-color:color-mix(in srgb,var(--sd-text) 8%,transparent)}:host ::ng-deep .sd-tree-toggle-btn[aria-busy=true]{cursor:progress}:host ::ng-deep .sd-tree-stt{margin-left:2px;white-space:nowrap}:host ::ng-deep .sd-tree-index-cell{text-align:left!important;white-space:nowrap;padding-left:8px;padding-right:8px}:host ::ng-deep .sd-tree-index-header{padding-left:32px}:host ::ng-deep tr.c-row.sd-tree-row.sd-tree-level-0{background:var(--sd-table-tree-level-0-bg, #fbfcfe)}:host ::ng-deep tr.c-row.sd-tree-row.sd-tree-level-0>td{font-weight:var(--sd-font-weight-medium, 500)}:host ::ng-deep tr.c-row.sd-tree-row.sd-tree-level-1{background:var(--sd-table-tree-level-1-bg, #ffffff)}:host ::ng-deep tr.c-row.sd-tree-row.sd-tree-level-2{background:var(--sd-table-tree-level-2-bg, #fafbfd)}:host ::ng-deep tr.c-row.sd-tree-row.sd-tree-level-3{background:var(--sd-table-tree-level-3-bg, #f6f8fb)}:host ::ng-deep .sd-stt-root{font-weight:var(--sd-font-weight-bold, 700);color:var(--sd-table-tree-root-text, #1f2330)}:host .sd-mobile-top{display:flex;align-items:center;gap:4px;min-width:0;padding:4px 4px 10px 16px}:host .sd-mobile-top--chips{padding-bottom:4px}:host .sd-mobile-top--no-search{justify-content:flex-end}:host .sd-mobile-top--empty:not(:focus-within){padding:0}:host .sd-mobile-top-search{flex:1 1 auto;min-width:0}:host .sd-mobile-top-button{flex:0 0 44px;width:44px;height:44px;padding:0;color:var(--sd-text-secondary);--mat-icon-button-state-layer-size: 44px;--mdc-icon-button-state-layer-size: 44px}:host .sd-mobile-reload:not(:focus-visible){position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}:host .sd-table-surface--quick-search>.c-container:not(.sd-table-mobile)>.c-table,:host .sd-table-surface--query-bar>.c-container:not(.sd-table-mobile)>.c-table{border-top-left-radius:0;border-top-right-radius:0}:host .sd-table-query-bar{display:block;flex:0 0 auto;min-width:0;background:var(--sd-table-bg, #ffffff);border-top-left-radius:var(--sd-radius-6, 6px);border-top-right-radius:var(--sd-radius-6, 6px);--sd-control-label-bg: var(--sd-table-bg, #ffffff)}:host .sd-table-query-bar-end{flex:none;display:flex;align-items:center;align-self:flex-start;padding-left:8px}:host .sd-table-header-cell--trigger{display:flex;align-items:center;gap:4px;min-width:0}:host .sd-table-header-cell--trigger>.c-header-title{flex:0 1 auto;min-width:0}:host .sd-table-header-cell--trigger.sd-table-header-cell--end{flex-direction:row-reverse;justify-content:flex-start}:host .sd-table-filter-trigger{flex:none;display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;padding:0;border:0;border-radius:var(--sd-radius-4, 4px);background:transparent;color:var(--sd-text-secondary);cursor:pointer;opacity:0;transition:opacity var(--sd-duration-fast, .12s) ease,background-color var(--sd-duration-fast, .12s) ease}:host .sd-table-filter-trigger sd-icon{width:15px;height:15px;font-size:15px}:host .sd-table-filter-trigger:hover{background:var(--sd-table-row-hover-bg)}:host .sd-table-filter-trigger:focus-visible{opacity:1;outline:2px solid var(--sd-focus-ring-color);outline-offset:1px}:host .sd-table-filter-trigger.sd-table-filter-trigger--active{opacity:1;color:var(--sd-primary)}:host th:hover .sd-table-filter-trigger,:host th:focus-within .sd-table-filter-trigger{opacity:1}@media(pointer:coarse){:host .sd-table-filter-trigger{opacity:1}}@media(prefers-reduced-motion:reduce){:host .sd-table-filter-trigger{transition:none}}@media(forced-colors:active){:host .sd-table-filter-trigger{color:ButtonText}:host .sd-table-filter-trigger--active{color:Highlight}}:host .sd-table-query-bar-hint{display:flex;align-items:center;gap:6px;margin:0;padding:0 12px 8px;background:var(--sd-table-bg, #ffffff);font-size:var(--sd-font-size-12, 12px);line-height:var(--sd-line-height-18, 18px);color:var(--sd-error)}:host .sd-table-query-bar-hint sd-icon{flex:none;width:16px;height:16px;font-size:var(--sd-font-size-16, 16px)}@keyframes sd-table-skeleton-sweep{to{background-position:480px 0}}@keyframes sd-table-progress-run{0%{transform:translate(-100%)}to{transform:translate(285.7142857143%)}}@keyframes sd-table-spin{to{transform:rotate(360deg)}}:host tr.sd-table-skeleton-row{height:var(--mat-table-row-item-container-height, 36px)}:host .sd-table-skeleton-cell{padding:0 8px;border-bottom:1px solid var(--sd-table-row-divider);vertical-align:middle}:host .sd-table-skeleton-bar{display:block;height:12px;border-radius:var(--sd-radius-4, 4px);background:linear-gradient(90deg,var(--sd-table-skeleton-bg) 0,var(--sd-table-skeleton-highlight) 40%,var(--sd-table-skeleton-bg) 80%) 0 0/480px 100%;animation:sd-table-skeleton-sweep 1.4s linear infinite}@media(prefers-reduced-motion:reduce){:host .sd-table-skeleton-bar{animation:none}}@media(forced-colors:active){:host .sd-table-skeleton-bar{forced-color-adjust:none;background:GrayText}}:host .sd-table-skeleton-bar[data-align=end]{margin-inline-start:auto}:host .sd-table-skeleton-bar[data-align=center]{margin-inline:auto}:host .sd-table-skeleton-bar[data-shape=pill]{height:20px;border-radius:999px}:host .sd-table-skeleton-bar[data-shape=box]{width:14px;height:14px;border-radius:3px}:host .sd-table-skeleton-block{overflow:hidden;border-radius:var(--sd-radius-6, 6px);background:var(--sd-surface)}:host .sd-table-skeleton-block-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:center;height:var(--mat-table-row-item-container-height, 36px);border-bottom:1px solid var(--sd-table-row-divider)}:host .sd-table-skeleton-block-row>.sd-table-skeleton-cell{border-bottom:0}:host .c-table>table>::ng-deep tbody{transition:opacity var(--sd-duration-fast, .12s)}@media(prefers-reduced-motion:reduce){:host .c-table>table>::ng-deep tbody{transition:none}}:host .c-table.c-table--dim{cursor:progress}:host .c-table.c-table--dim>table>::ng-deep thead,:host .c-table.c-table--dim>table>::ng-deep tfoot{cursor:auto}:host .c-table.c-table--dim>table>::ng-deep tbody{opacity:var(--sd-table-loading-dim, .55)}:host .c-table.c-table--dim>table>::ng-deep tbody,:host .c-table.c-table--dim>table>::ng-deep tbody *{pointer-events:none!important}:host .sd-table-progress{position:absolute;top:var(--sd-table-head-h, 0px);right:0;left:0;z-index:20;height:2px;overflow:hidden;pointer-events:none;background:var(--sd-table-progress-track)}:host .sd-table-progress:before{content:\"\";position:absolute;inset:0 auto 0 0;width:35%;background:var(--sd-table-spinner);animation:sd-table-progress-run 1.1s ease-in-out infinite}@media(prefers-reduced-motion:reduce){:host .sd-table-progress:before{width:100%;opacity:.6;animation:none}}@media(forced-colors:active){:host .sd-table-progress{forced-color-adjust:none;box-sizing:content-box;border:1px solid CanvasText;background:Canvas}:host .sd-table-progress:before{background:Highlight}}:host .sd-table-spinner{display:inline-block;flex:0 0 auto;vertical-align:middle;box-sizing:border-box;width:16px;height:16px;border:2px solid var(--sd-table-progress-track);border-top-color:var(--sd-table-spinner);border-radius:50%;animation:sd-table-spin .8s linear infinite}@media(prefers-reduced-motion:reduce){:host .sd-table-spinner{animation:none}}@media(forced-colors:active){:host .sd-table-spinner{forced-color-adjust:none;border-color:GrayText;border-top-color:Highlight}}:host .sd-table-progress-anchor{position:sticky;top:0;z-index:20;height:0}:host .sd-table-progress-anchor>.sd-table-progress{top:0}.sd-aggregate-row,.sd-aggregate-total,.sd-mobile-aggregate{background:color-mix(in srgb,var(--sd-surface-muted) 35%,var(--sd-surface));color:var(--sd-text);font-weight:var(--sd-font-weight-medium, 500)}.sd-aggregate-cell{background:inherit;border-top:1px solid var(--sd-border)}:host(.sd-table--cards){height:auto;overflow:visible}:host(.sd-table--fill){flex:1 1 0;height:auto;min-height:var(--sd-table-fill-min, 0px);overflow:visible}:host(.sd-table--fill) .c-container{min-height:0}:host(.sd-table--fill) .c-container>.c-table{min-height:calc(var(--sd-table-fill-head, 40px) + 5 * var(--mat-table-row-item-container-height, 36px))}:host(.sd-table--fill) .c-container>.c-paginator{flex:none;min-height:48px}\n", ":host ::ng-deep .sticky-shadow-right{overflow:visible!important}:host ::ng-deep .sticky-shadow-right:after{content:\"\";position:absolute;top:0;right:0;bottom:0;width:8px;transform:translate(100%);background:linear-gradient(to right,rgba(0,0,0,.12),transparent);pointer-events:none}:host ::ng-deep .sticky-shadow-left{overflow:visible!important}:host ::ng-deep .sticky-shadow-left:after{content:\"\";position:absolute;top:0;left:0;bottom:0;width:8px;transform:translate(-100%);background:linear-gradient(to left,rgba(0,0,0,.12),transparent);pointer-events:none}\n"] }]
|
|
10212
|
-
}], ctorParameters: () => [], propDecorators: { autoIdInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoId", required: false }] }], option: [{ type: i0.Input, args: [{ isSignal: true, alias: "option", required: true }] }], hideReadError: [{ type: i0.Input, args: [{ isSignal: true, alias: "hideReadError", required: false }] }], sdReadStateChange: [{ type: i0.Output, args: ["sdReadStateChange"] }], dataStateTemplate: [{ type: i0.ContentChild, args: [i0.forwardRef(() => SdDataStateTemplateDirective), { isSignal: true }] }], table: [{ type: i0.ViewChild, args: [i0.forwardRef(() => MatTable), { isSignal: true }] }], configComponent: [{ type: i0.ViewChild, args: [i0.forwardRef(() => ConfigComponent), { isSignal: true }] }], sdPopupExport: [{ type: i0.ViewChild, args: [i0.forwardRef(() => SdPopupExport), { isSignal: true }] }], scroll: [{ type: i0.ViewChild, args: [i0.forwardRef(() => SdScrollDirective), { isSignal: true }] }], quickAction: [{ type: i0.ViewChild, args: [i0.forwardRef(() => SdQuickAction), { isSignal: true }] }], externalFilter: [{ type: i0.ViewChild, args: [i0.forwardRef(() => ExternalFilterComponent), { isSignal: true }] }], mobileFilter: [{ type: i0.ViewChild, args: [i0.forwardRef(() => MobileFilterComponent), { isSignal: true }] }], paginator: [{ type: i0.ViewChild, args: [i0.forwardRef(() => MatPaginator), { isSignal: true }] }], sort: [{ type: i0.ViewChild, args: [i0.forwardRef(() => MatSort), { isSignal: true }] }], sdSubInformation: [{ type: i0.ContentChild, args: [i0.forwardRef(() => SdTableExpandDefDirective), { isSignal: true }] }], sdGroupDef: [{ type: i0.ContentChild, args: [i0.forwardRef(() => SdTableGroupDefDirective), { isSignal: true }] }], sdCellDefs: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => SdTableCellDefDirective), { isSignal: true }] }], sdCommandHeaderDef: [{ type: i0.ContentChild, args: [i0.forwardRef(() => SdTableCommandHeaderDefDirective), { isSignal: true }] }], sdQuickSearchRightDef: [{ type: i0.ContentChild, args: [i0.forwardRef(() => SdTableQuickSearchRightDefDirective), { isSignal: true }] }], sdFooterDefs: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => SdMaterialFooterDefDirective), { isSignal: true }] }], sdFilterDefs: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => SdTableFilterDefDirective), { isSignal: true }] }], sdTitleDefs: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => SdTableTitleDefDirective), { isSignal: true }] }], sdRowMobileDef: [{ type: i0.ContentChild, args: [i0.forwardRef(() => SdTableRowMobileDefDirective), { ...{ descendants: false }, isSignal: true }] }], quickSearchControl: [{ type: i0.ViewChild, args: [i0.forwardRef(() => TableQuickSearchComponent), { isSignal: true }] }], queryBar: [{ type: i0.ViewChild, args: [i0.forwardRef(() => SdQueryBar), { isSignal: true }] }] } });
|
|
10722
|
+
], template: "@let _visibleSelectAll = visibleSelectAll();\n@let _isSelectIndeterminate = isSelectIndeterminate();\n@let _isSelectAll = isSelectAll();\n@let _configuration = configuration();\n@let _tableOption = tableOption()!;\n@let _loading = loading();\n@let _loadingView = loadingView();\n@let _readState = readState();\n@let _hideReadError = hideReadError();\n@let _dataStateTemplate = dataStateTemplate();\n@let _items = items();\n@let _total = total();\n@let _isFiltered = isFiltered();\n@let _requireFiltered = requireFiltered();\n@let _export = _tableOption?.export;\n@let _exporting = exporting();\n@let _titleDef = titleDef();\n@let _autoId = autoId();\n@let _exportTitle = exportTitle();\n@let _cellDef = cellDef();\n@let _footerDef = footerDef();\n@let _sdSubInformation = sdSubInformation();\n@let _configComponent = configComponent();\n@let _mobileFilter = mobileFilter();\n@let _selectedTableItems = selectedTableItems();\n@let _rowCommands = rowCommands();\n@let _mobileCards = mobileCards();\n@let _isMobile = isMobile();\n@let _queryBarMode = queryBarMode();\n@let _queryBarKeys = queryBarModel()?.columnKeys;\n@let _queryBarActive = queryBarActiveKeys();\n@let _showInlineFilter =\n !_queryBarMode &&\n !_isMobile &&\n !_tableOption?.filter?.disabled &&\n _tableOption?.filter?.hideInlineFilter !== true &&\n !(_tableOption?.filter?.hideInlineFilter === 'auto' && !_isFiltered && knownRowCount()! <= 10);\n@let _commandHeaderDef = sdCommandHeaderDef();\n@let _quickSearch = quickSearchOption();\n@let _aggregate = aggregateSnapshot();\n@let _aggregateColumns = aggregateColumns();\n@let _aggregateColumnIds = aggregateColumnIds();\n@let _headerFilterColumns = headerFilterColumns();\n<!-- why: tree kh\u00F4ng c\u00F2n c\u1ED9t ri\u00EAng \u2014 khi KH\u00D4NG c\u00F3 c\u1ED9t Index, icon expand nh\u00FAng v\u00E0o\n c\u1ED9t data \u0111\u1EA7u ti\u00EAn. \u0110\u00E2y l\u00E0 field c\u1EE7a c\u1ED9t \u0111\u00F3 (null n\u1EBFu c\u00F3 Index ho\u1EB7c kh\u00F4ng tree). -->\n@let _treeFirstField = _tableOption?.tree && !_tableOption.index?.enabled ? _configuration?.firstColumns?.[0]?.field : null;\n\n<!-- why: v\u00F9ng status lu\u00F4n c\u00F3 trong DOM, k\u1EC3 c\u1EA3 tr\u01B0\u1EDBc khi c\u00F3 configuration. V\u00F9ng ch\u1EC9 render trong l\u00FAc t\u1EA3i b\u1ECB g\u1EE1\n tr\u01B0\u1EDBc khi screen reader k\u1ECBp \u0111\u1ECDc v\u00E0 kh\u00F4ng b\u00E1o \u0111\u01B0\u1EE3c \"\u0111\u00E3 t\u1EA3i xong\". -->\n<span class=\"sd-table-live\" role=\"status\" aria-live=\"polite\" aria-atomic=\"true\">{{ liveMessage() }}</span>\n@if (_configuration) {\n @if (\n !_queryBarMode && !_mobileCards && !_tableOption.filter?.disabled && !!_tableOption.filter?.externalFilters?.length && filterRegister\n ) {\n <external-filter\n class=\"mb-16\"\n [autoId]=\"_autoId\"\n [filterRegister]=\"filterRegister\"\n [filter]=\"_tableOption.filter!\"\n [externalFilters]=\"_tableOption.filter?.externalFilters!\"\n [collapsedByDefault]=\"externalFilterCollapsedByDefault()\">\n </external-filter>\n }\n @let groupedItems = _items | sdTree: _tableOption.tree : treeRevision() | sdGroup: _tableOption : groupExpandState : groupHost;\n @let renderItems = groupedItems | sdAggregateRows: _aggregate : _tableOption : aggregateRenderHost;\n\n <ng-template #aggregateCell let-cell>\n @if (cell) {\n @if (cell.templateRef) {\n <ng-container *ngTemplateOutlet=\"cell.templateRef; context: cell.context\"></ng-container>\n } @else {\n <span [attr.data-complete]=\"cell.context.isComplete\">{{ cell.text }}</span>\n }\n }\n </ng-template>\n <ng-template #inlineColumnFilter let-column>\n <column-filter\n [autoId]=\"_autoId\"\n [value]=\"columnFilter?.[column.field!]!\"\n [operator]=\"columnOperator[column.field]\"\n (operatorChange)=\"columnOperator[column.field] = $event!; onOperatorChange(column, $event)\"\n [columnFilter]=\"columnFilter!\"\n [cacheValues]=\"cacheValues\"\n [column]=\"column\"\n (filterChange)=\"onFilterChange()\"\n (filterCommit)=\"onFilterCommit()\">\n </column-filter>\n </ng-template>\n <!-- Icon l\u1ECDc \u1EDF header c\u1ED9t (mode query-bar): m\u1EDF chip c\u1EE7a field tr\u00EAn thanh. why: n\u1EB1m c\u1EA1nh .c-header-title ch\u1EE9 kh\u00F4ng\n n\u1EB1m trong \u2014 title sort \u0111\u01B0\u1EE3c l\u00E0 role=button v\u00E0 b\u1EAFt Enter, l\u1ED3ng button v\u00E0o s\u1EBD th\u00E0nh nested-interactive v\u00E0 Enter\n tr\u00EAn icon s\u1EBD sort. Ch\u1EB7n mousedown/click \u0111\u1EC3 kh\u00F4ng sort, kh\u00F4ng b\u1EAFt \u0111\u1EA7u k\u00E9o c\u1ED9t. aria-haspopup theo \u0111\u00FAng th\u1EE9 m\u1EDF ra:\n menu c\u1EE7a chip (popover), ho\u1EB7c v\u1EDBi editor inline th\u00EC kh\u00F4ng g\u00EC (chip \u0111\u00E3 c\u00F3, ch\u1EC9 focus) / menu to\u00E1n t\u1EED / b\u1ED9 ch\u1ECDn\n gi\u00E1 tr\u1ECB c\u1EE7a chip \u0111ang d\u1EF1ng. -->\n <ng-template #queryBarTrigger let-column>\n @let _triggerKey = _queryBarKeys?.get(column.field);\n @if (_triggerKey) {\n @let _triggerActive = _queryBarActive.has(_triggerKey);\n <button\n type=\"button\"\n class=\"sd-table-filter-trigger\"\n [class.sd-table-filter-trigger--active]=\"_triggerActive\"\n [attr.data-autoid]=\"_autoId ? _autoId + '-filter-trigger-' + column.field : null\"\n [attr.aria-label]=\"filterTriggerLabel(column, _triggerActive)\"\n [attr.aria-haspopup]=\"queryBarTriggerPopup(_triggerKey)\"\n (mousedown)=\"$event.stopPropagation()\"\n (click)=\"$event.stopPropagation(); openQueryBarField(_triggerKey, $event.currentTarget)\">\n <sd-icon name=\"filter_alt\" aria-hidden=\"true\"></sd-icon>\n </button>\n }\n </ng-template>\n <ng-template #mobileAggregate let-summary=\"summary\">\n <div class=\"sd-mobile-aggregate p-12\" role=\"region\" [attr.aria-label]=\"'core.component.table.mobile.summary' | sdTranslate\">\n @for (entry of _aggregateColumns; track entry.field) {\n @let cell = summary.cells.get(entry.field);\n @if (cell && entry.column) {\n <div class=\"d-flex align-items-center flex-wrap gap-8 py-8\">\n <column-title [column]=\"entry.column\" [titleDef]=\"_titleDef[entry.field]\"></column-title>\n <ng-container *ngTemplateOutlet=\"aggregateCell; context: { $implicit: cell }\"></ng-container>\n </div>\n }\n }\n </div>\n </ng-template>\n\n <!-- Tree toggle d\u00F9ng chung: indent (theo c\u1EA5p) + slot chevron/spinner. Nh\u00FAng v\u00E0o\n c\u1ED9t Index ho\u1EB7c c\u1ED9t data \u0111\u1EA7u qua *ngTemplateOutlet (context: { row }). -->\n <ng-template #sdTreeToggle let-row=\"row\">\n @let _tree = row?.meta?.tree;\n @if (_tree) {\n <span class=\"sd-tree-indent\" [style.width.px]=\"(_tree.level ?? 0) * (_tableOption.tree?.indentSize ?? 20)\"></span>\n <span class=\"sd-tree-toggle-slot\">\n @if (_tree.hasChildren) {\n @let _aid = _autoId;\n @let _expanding = !!_tree.isExpanding;\n <!-- why: n\u00FAt lu\u00F4n n\u1EB1m trong DOM, ch\u1EC9 \u0111\u1ED5i icon th\u00E0nh spinner khi \u0111ang t\u1EA3i con; g\u1EE1 n\u00FAt l\u00E0m focus b\u00E0n ph\u00EDm r\u01A1i\n v\u1EC1 body. Click trong l\u00FAc t\u1EA3i b\u1ECB onTreeToggle b\u1ECF qua. -->\n <button\n type=\"button\"\n class=\"sd-tree-toggle-btn\"\n [attr.data-autoid]=\"_aid ? _aid + '-tree-toggle-' + row.meta.id : null\"\n [attr.aria-label]=\"'core.component.table.tree-toggle' | sdTranslate\"\n [attr.aria-expanded]=\"!!_tree.isExpanded\"\n [attr.aria-busy]=\"_expanding ? 'true' : null\"\n [attr.aria-disabled]=\"_expanding ? 'true' : null\"\n (click)=\"onTreeToggle(row); $event.stopPropagation()\">\n @if (_expanding) {\n <span class=\"sd-table-spinner\" aria-hidden=\"true\"></span>\n } @else {\n <sd-icon [name]=\"_tree.isExpanded ? 'expand_more' : 'chevron_right'\"></sd-icon>\n }\n </button>\n }\n </span>\n }\n </ng-template>\n\n <ng-template #sdGroupHeader let-item=\"item\">\n <div class=\"sd-group-row d-flex align-items-center py-8\">\n @if (_tableOption.selector?.visible && !_tableOption.selector?.single) {\n <div class=\"sd-group-selection-slot d-flex align-items-center justify-content-center\">\n <mat-checkbox\n class=\"c-selection\"\n color=\"primary\"\n [checked]=\"isGroupAllSelected(item)\"\n [indeterminate]=\"isGroupIndeterminate(item)\"\n (change)=\"onSelectGroup(item, $event.checked)\">\n </mat-checkbox>\n </div>\n } @else {\n <div class=\"sd-group-selection-slot\"></div>\n }\n @if (_tableOption.group?.collapsible) {\n <sd-button\n [autoId]=\"_autoId ? _autoId + '-group-toggle-' + (item.meta.group?.key || item.meta.id) : null\"\n type=\"text\"\n [prefixIcon]=\"item.meta.group.isExpanded ? 'expand_more' : 'chevron_right'\"\n width=\"32px\"\n (click)=\"toggleGroupExpand(item)\">\n </sd-button>\n }\n @if (sdGroupDef()?.templateRef; as tpl) {\n <ng-container *ngTemplateOutlet=\"tpl; context: groupContext(item)\"></ng-container>\n } @else {\n <span class=\"T14R\">{{ item.meta.group.values | json }}</span>\n }\n </div>\n </ng-template>\n\n <ng-content select=\"[sdTableTop]\"></ng-content>\n @let _queryBarOption = queryBarOption();\n <div\n class=\"sd-table-surface\"\n [class.sd-table-surface--quick-search]=\"!!_quickSearch && !_queryBarMode\"\n [class.sd-table-surface--query-bar]=\"_queryBarMode && !!_queryBarOption\">\n @if (_queryBarMode) {\n <!-- why: thanh n\u1EB1m tr\u00EAn .c-container, ngo\u00E0i l\u1EDBp loading (l\u00E0m m\u1EDD .c-table) \u2014 lu\u00F4n b\u1EA5m \u0111\u01B0\u1EE3c khi \u0111ang t\u1EA3i. -->\n @if (_queryBarOption) {\n <sd-query-bar\n class=\"sd-table-query-bar\"\n role=\"search\"\n [attr.aria-label]=\"'core.component.table.filter' | sdTranslate\"\n [attr.data-autoid]=\"_autoId ? _autoId + '-query-bar' : null\"\n [option]=\"_queryBarOption\"\n [(filters)]=\"barFilters\"\n [(search)]=\"barSearch\"\n (apply)=\"onQueryBarApply($event)\">\n @if (sdQuickSearchRightDef(); as _right) {\n <div sdQueryBarEnd class=\"sd-table-query-bar-end\"><ng-container [ngTemplateOutlet]=\"_right.templateRef\" /></div>\n }\n </sd-query-bar>\n }\n } @else if (_quickSearch && !_mobileCards) {\n <sd-table-quick-search\n [option]=\"_quickSearch\"\n [value]=\"quickSearchValue()\"\n [autoId]=\"_autoId\"\n [rightTemplate]=\"sdQuickSearchRightDef()?.templateRef\"\n [requiredHintId]=\"requiredHintId\"\n (valueChange)=\"onQuickSearchChange($event)\" />\n }\n @if (_mobileCards) {\n @let _tools = mobileToolsActions();\n @let _hasChips = !!mobileFilterModel()?.items?.length;\n @let _sortable = mobileSortAvailable();\n <!-- Phone top row (handoff table-mobile 2): the search, Reload for keyboards (shown on focus), the sort button\n when there is no chip row, and \u22EE Tools. -->\n <div\n class=\"sd-mobile-top\"\n [class.sd-mobile-top--chips]=\"_hasChips\"\n [class.sd-mobile-top--no-search]=\"!_quickSearch\"\n [class.sd-mobile-top--empty]=\"!_quickSearch && (_hasChips || !_sortable) && !_tools.length\">\n @if (_quickSearch) {\n <sd-table-quick-search\n class=\"sd-mobile-top-search\"\n [option]=\"_quickSearch\"\n [value]=\"quickSearchValue()\"\n [autoId]=\"_autoId\"\n [rightTemplate]=\"sdQuickSearchRightDef()?.templateRef\"\n [requiredHintId]=\"requiredHintId\"\n (valueChange)=\"onQuickSearchChange($event)\" />\n }\n @if (_tableOption.reload?.visible) {\n <button\n mat-icon-button\n type=\"button\"\n class=\"sd-mobile-top-button sd-mobile-reload\"\n [attr.aria-label]=\"'core.component.table.reload' | sdTranslate\"\n [attr.data-autoid]=\"_autoId ? _autoId + '-mobile-reload' : null\"\n (click)=\"reload()\">\n <sd-icon name=\"refresh\" size=\"22px\"></sd-icon>\n </button>\n }\n @if (!_hasChips && _sortable) {\n <button\n mat-icon-button\n type=\"button\"\n class=\"sd-mobile-top-button\"\n aria-haspopup=\"dialog\"\n [attr.aria-label]=\"mobileSortLabel()\"\n [attr.data-autoid]=\"_autoId ? _autoId + '-mobile-sort' : null\"\n (click)=\"mobileSortSheet.open()\">\n <sd-icon name=\"swap_vert\" size=\"22px\"></sd-icon>\n </button>\n }\n @if (_tools.length) {\n <button\n mat-icon-button\n type=\"button\"\n class=\"sd-mobile-top-button\"\n aria-haspopup=\"dialog\"\n [attr.aria-label]=\"'core.component.table.mobile.tools' | sdTranslate\"\n [attr.data-autoid]=\"_autoId ? _autoId + '-mobile-tools' : null\"\n (click)=\"mobileTools.open()\">\n <sd-icon name=\"more_vert\" size=\"22px\"></sd-icon>\n </button>\n <sd-table-mobile-tools-sheet #mobileTools [table]=\"this\" [actions]=\"_tools\"></sd-table-mobile-tools-sheet>\n }\n </div>\n @if (_hasChips) {\n <!-- Phone: filter chips under the search (handoff table-mobile 3). -->\n <sd-table-mobile-filter-chips\n [table]=\"this\"\n [model]=\"mobileFilterModel()\"\n [value]=\"mobileFilterValue()\"\n [sortAvailable]=\"_sortable\"\n [sortLabel]=\"mobileSortLabel()\"\n (sortOpen)=\"mobileSortSheet.open()\"></sd-table-mobile-filter-chips>\n }\n <sd-table-mobile-sort-sheet #mobileSortSheet [table]=\"this\"></sd-table-mobile-sort-sheet>\n }\n <div class=\"c-container\" [class.sd-table-mobile]=\"_mobileCards\">\n <!-- why: l\u1EDBp loading kh\u00F4ng ph\u1EE7 l\u00EAn b\u1EA3ng: header, filter, sort v\u00E0 thanh cu\u1ED9n lu\u00F4n d\u00F9ng \u0111\u01B0\u1EE3c. Ch\u01B0a c\u00F3 d\u00F2ng th\u00EC\n khung x\u01B0\u01A1ng (matNoDataRow); \u0111\u00E3 c\u00F3 d\u00F2ng th\u00EC gi\u1EEF d\u00F2ng c\u0169, qu\u00E1 showDelay m\u1EDBi l\u00E0m m\u1EDD d\u00F2ng v\u00E0 hi\u1EC7n thanh ti\u1EBFn\n tr\u00ECnh. aria-busy v\u1EABn theo loading() th\u1EADt; v\u00F9ng .sd-table-live b\u00E1o \"\u0111ang t\u1EA3i\"/\"\u0111\u00E3 t\u1EA3i xong\". -->\n <div\n #cTable\n class=\"c-table\"\n sdScroll\n stickyShadow\n matSort\n [matSortDisabled]=\"!_tableOption.sort?.enable\"\n [class.c-table--dim]=\"_loadingView === 'refresh' && loadingSettings().dim\"\n [attr.aria-busy]=\"_loading ? 'true' : null\"\n [style.max-height]=\"_tableOption.style?.maxHeight\"\n [style.min-height]=\"_tableOption.style?.minHeight\">\n @if (_mobileCards) {\n <!-- Pull to refresh replaces Reload on phones (handoff table-mobile 7). -->\n <sd-table-pull-refresh\n [target]=\"cTable\"\n [enabled]=\"!!_tableOption.reload?.visible\"\n [loading]=\"_loading\"\n (refresh)=\"reload()\"></sd-table-pull-refresh>\n @if (_commandHeaderDef) {\n <div class=\"sd-mobile-command-header\"><ng-container *ngTemplateOutlet=\"_commandHeaderDef.templateRef\"></ng-container></div>\n }\n @if (_loadingView === 'refresh') {\n <!-- Mobile: kh\u00F4ng c\u00F3 header b\u1EA3ng; thanh n\u1EB1m \u1EDF m\u00E9p tr\u00EAn danh s\u00E1ch th\u1EBB, d\u01B0\u1EDBi command header. Anchor cao 0\n n\u00EAn thanh hi\u1EC7n/\u1EA9n kh\u00F4ng \u0111\u1EA9y th\u1EBB. -->\n <div class=\"sd-table-progress-anchor\">\n <div class=\"sd-table-progress\" aria-hidden=\"true\"></div>\n </div>\n }\n <sd-table-mobile-cards\n [table]=\"this\"\n [body]=\"mobileBody()\"\n [rows]=\"renderItems\"\n [dataRows]=\"groupedItems\"\n [groupTemplate]=\"sdGroupHeader\"\n [aggregateTemplate]=\"mobileAggregate\"></sd-table-mobile-cards>\n @if (_aggregate.total; as summary) {\n <ng-container *ngTemplateOutlet=\"mobileAggregate; context: { summary: summary }\"></ng-container>\n }\n @if (hasFooter()) {\n <div class=\"sd-mobile-footer p-12\" role=\"region\" [attr.aria-label]=\"'core.component.table.mobile.summary' | sdTranslate\">\n @for (column of mobileFooterColumns(); track column.field) {\n <div class=\"d-flex align-items-center flex-wrap gap-8 py-8\">\n <column-title [column]=\"column\" [titleDef]=\"_titleDef[column.field]\"></column-title>\n <ng-container\n *ngTemplateOutlet=\"_footerDef[column.field].templateRef; context: { items: _items, column: column }\"></ng-container>\n </div>\n }\n </div>\n }\n } @else {\n <table\n mat-table\n [class.sd-table-grouped-header]=\"_configuration.multipleHeader\"\n sdAggregateLayout\n [dataSource]=\"renderItems\"\n [trackBy]=\"trackBy\"\n multiTemplateDataRows\n cdkDropList\n [cdkDropListData]=\"groupedItems\"\n [cdkDropListDisabled]=\"!_tableOption.rowReorder?.enabled\"\n [cdkDropListSortPredicate]=\"reorderSortPredicate\"\n (cdkDropListDropped)=\"onReorderDrop($event)\">\n @if (_tableOption.rowReorder?.enabled) {\n <ng-container matColumnDef=\"sdReorder\">\n <th mat-header-cell *matHeaderCellDef class=\"sd-reorder-header\" [attr.rowspan]=\"_configuration.multipleHeader ? 2 : 1\"></th>\n <td mat-cell *matCellDef=\"let row\" class=\"sd-reorder-cell\">\n @if (!row.meta?.group?.items?.length) {\n <sd-icon\n cdkDragHandle\n [class.sd-reorder-disabled]=\"isReorderDisabled(row)\"\n [name]=\"_tableOption.rowReorder?.icon || 'drag_indicator'\"></sd-icon>\n }\n </td>\n <td mat-footer-cell *matFooterCellDef></td>\n </ng-container>\n }\n\n <ng-container matColumnDef=\"sdSubInformation\" sticky>\n <td class=\"p-0\" mat-cell *matCellDef=\"let item\" [attr.colspan]=\"_configuration.displayedColumns.length\">\n @if (_sdSubInformation?.templateRef) {\n @if (_tableOption.expand?.always) {\n <ng-container *ngTemplateOutlet=\"_sdSubInformation?.templateRef!; context: { item: item }\"> </ng-container>\n } @else {\n <div [@detailExpand]=\"item.meta.expand?.isExpanded ? 'expanded' : 'collapsed'\">\n @if (item.meta.expand?.isExpanded) {\n <ng-container *ngTemplateOutlet=\"_sdSubInformation?.templateRef!; context: { item: item }\"> </ng-container>\n }\n </div>\n }\n }\n </td>\n <td mat-footer-cell *matFooterCellDef></td>\n </ng-container>\n\n <ng-container matColumnDef=\"sdSubInformationAction\" stickyEnd>\n <th\n class=\"p-0\"\n mat-header-cell\n *matHeaderCellDef\n style=\"width: 1px\"\n [attr.rowspan]=\"_configuration.multipleHeader ? 2 : 1\"></th>\n <td mat-cell *matCellDef=\"let element\">\n @if (!_tableOption.expand?.always) {\n @let _expanding = !!element.meta.expand?.isExpanding;\n <!-- why: n\u00FAt 35px gi\u1EEF nguy\u00EAn khi \u0111ang t\u1EA3i ([loading] thay prefix icon b\u1EB1ng spinner) \u0111\u1EC3 focus b\u00E0n ph\u00EDm\n kh\u00F4ng m\u1EA5t; onExpand b\u1ECF qua click trong l\u00FAc t\u1EA3i. color primary ch\u1EC9 \u0111\u1EC3 spinner theo m\u00E0u nh\u1EA5n. -->\n <sd-button\n [autoId]=\"_autoId ? _autoId + '-expand-' + element.meta.id : null\"\n type=\"text\"\n [color]=\"_expanding ? 'primary' : null\"\n [loading]=\"_expanding\"\n [attr.aria-busy]=\"_expanding ? 'true' : null\"\n [prefixIcon]=\"element.meta.expand?.isExpanded ? 'expand_less' : 'expand_more'\"\n (click)=\"onExpand(element)\"\n width=\"35px\">\n </sd-button>\n }\n </td>\n </ng-container>\n\n <ng-container matColumnDef=\"sdSelection\" sticky>\n <th class=\"sd-selection-cell p-0\" mat-header-cell *matHeaderCellDef [attr.rowspan]=\"_configuration.multipleHeader ? 2 : 1\">\n @if (_visibleSelectAll) {\n <mat-checkbox\n class=\"c-selection px-8\"\n color=\"primary\"\n [indeterminate]=\"_isSelectIndeterminate\"\n [ngModel]=\"_isSelectAll\"\n (ngModelChange)=\"isSelectAll.set($event)\"\n (change)=\"onSelectAll()\">\n </mat-checkbox>\n }\n </th>\n\n <td class=\"sd-selection-cell p-0\" mat-cell *matCellDef=\"let item\">\n @let visible = item.meta.selector?.visible;\n @if (visible) {\n @if (_tableOption.selector?.single) {\n <mat-radio-button\n class=\"c-selection px-8\"\n color=\"primary\"\n [checked]=\"item.meta.selector.isSelected\"\n (change)=\"item.meta.selector.isSelected = true; onSelect(item)\"\n [disabled]=\"item.meta.selector?.disabled\">\n </mat-radio-button>\n } @else {\n <mat-checkbox\n class=\"c-selection px-8\"\n color=\"primary\"\n [(ngModel)]=\"item.meta.selector.isSelected\"\n (change)=\"onSelect(item)\"\n [disabled]=\"item.meta.selector?.disabled\">\n </mat-checkbox>\n }\n }\n </td>\n <td mat-footer-cell *matFooterCellDef></td>\n </ng-container>\n @if (_tableOption.index?.enabled) {\n @let _pageOffset = pageOffset();\n @let _indexWidth = _tableOption.index?.width || '50px';\n <!-- why: khi tree, c\u1ED9t Index \"\u00F4m\" th\u00EAm chevron + indent. D\u00F9ng width:1px +\n nowrap (.sd-tree-index-cell) \u0111\u1EC3 c\u1ED9t co S\u00C1T n\u1ED9i dung, kh\u00F4ng chi\u1EBFm ch\u1ED7\n th\u1EEBa; header \"#\" canh tr\u00E1i l\u00F9i v\u00E0o (.sd-tree-index-header) cho th\u1EB3ng s\u1ED1. -->\n @let _treeIndex = !!_tableOption.tree;\n <ng-container matColumnDef=\"sdIndex\" sticky>\n <th\n [class.p-0]=\"!_treeIndex\"\n [class.text-center]=\"!_treeIndex\"\n [class.sd-tree-index-cell]=\"_treeIndex\"\n [class.sd-tree-index-header]=\"_treeIndex\"\n mat-header-cell\n *matHeaderCellDef\n [style.width]=\"_treeIndex ? '1px' : _indexWidth\"\n [style.min-width]=\"_treeIndex ? null : _indexWidth\"\n [style.max-width]=\"_treeIndex ? null : _indexWidth\"\n [attr.rowspan]=\"_configuration.multipleHeader ? 2 : 1\">\n {{ _tableOption.index?.title || '#' }}\n </th>\n <td\n [class.px-4]=\"!_treeIndex\"\n [class.text-center]=\"!_treeIndex\"\n [class.sd-tree-index-cell]=\"_treeIndex\"\n mat-cell\n *matCellDef=\"let item; let i = dataIndex\"\n [style.width]=\"_treeIndex ? '1px' : null\"\n [style.min-width]=\"_treeIndex ? null : _indexWidth\"\n [style.max-width]=\"_treeIndex ? null : _indexWidth\">\n @if (!item?.meta?.group?.isGroupHeader) {\n @if (_treeIndex) {\n <!-- why: tree \u2192 chevron + indent + STT ph\u00E2n c\u1EA5p (1, 1.2, 1.2.1). T\u00F4 \u0111\u1EADm root (level 0). -->\n <span class=\"sd-tree-line\">\n <ng-container *ngTemplateOutlet=\"sdTreeToggle; context: { row: item }\"></ng-container>\n @if (item?.meta?.tree?.indexPath?.length) {\n <span class=\"sd-tree-stt\" [class.sd-stt-root]=\"(item.meta.tree.level ?? 0) === 0\">\n {{ item.meta.tree.indexPath.join('.') }}\n </span>\n }\n </span>\n } @else {\n {{ _pageOffset + (aggregateRenderHost.indices.get(item) ?? i) + 1 }}\n }\n }\n </td>\n <td\n mat-footer-cell\n *matFooterCellDef\n [style.width]=\"_treeIndex ? '1px' : null\"\n [style.min-width]=\"_treeIndex ? null : _indexWidth\"\n [style.max-width]=\"_treeIndex ? null : _indexWidth\"></td>\n </ng-container>\n }\n <ng-container\n matColumnDef=\"sdCommand\"\n [sticky]=\"_tableOption.command?.align !== 'right'\"\n [stickyEnd]=\"_tableOption.command?.align === 'right'\">\n <!-- why: \u00F4 header c\u1EE7a c\u1ED9t command v\u1ED1n \u0111\u1EC3 tr\u1ED1ng. Cho consumer chi\u1EBFm ch\u1ED7 \u0111\u00F3 b\u1EB1ng\n `sdTableCommandHeaderDef` (th\u01B0\u1EDDng l\u00E0 n\u00FAt th\u00EAm d\u00F2ng) th\u00EC h\u00E0nh \u0111\u1ED9ng c\u1EA5p b\u1EA3ng n\u1EB1m ngay\n tr\u00EAn c\u1EE5m n\u00FAt c\u1EE7a t\u1EEBng d\u00F2ng, thay v\u00EC ph\u1EA3i d\u1EF1ng th\u00EAm m\u1ED9t d\u1EA3i ri\u00EAng d\u01B0\u1EDBi b\u1EA3ng. -->\n <th class=\"p-0\" mat-header-cell *matHeaderCellDef style=\"width: 50px\" [attr.rowspan]=\"_configuration.multipleHeader ? 2 : 1\">\n @if (_commandHeaderDef) {\n <div class=\"sd-command-header d-flex align-items-center justify-content-center\">\n <ng-container *ngTemplateOutlet=\"_commandHeaderDef.templateRef\"></ng-container>\n </div>\n }\n </th>\n <!-- why: `dataIndex` do CDK c\u1EA5p s\u1EB5n. B\u1EA3n c\u0169 d\u00F9ng `groupedItems.indexOf(item)` \u2014\n qu\u00E9t to\u00E0n m\u1EA3ng cho M\u1ED6I d\u00F2ng render \u1EDF M\u1ED6I CD pass (O(n\u00B2) tr\u00EAn \u0111\u01B0\u1EDDng render),\n v\u00E0 c\u00F2n tr\u1EA3 sai index khi 2 d\u00F2ng tr\u00F9ng reference. -->\n <td class=\"px-8\" mat-cell *matCellDef=\"let item; let i = dataIndex\">\n <desktop-command\n [autoId]=\"_autoId\"\n [commands]=\"_rowCommands\"\n [item]=\"item\"\n [itemIndex]=\"aggregateRenderHost.indices.get(item) ?? i\"></desktop-command>\n </td>\n <td mat-footer-cell *matFooterCellDef></td>\n </ng-container>\n <!-- why: group header row d\u00F9ng matRowDef RI\u00CANG v\u1EDBi column list ['sdGroupHeader']\n qua predicate when:isGroupHeaderRow. Cell colspan = displayedColumns.length \u0111\u1EC3\n span TO\u00C0N B\u1ED8 width data row. Tr\u00E1nh colspan trick overflow row khi c\u00E1c TD kh\u00E1c render. -->\n <ng-container matColumnDef=\"sdGroupHeader\">\n <td class=\"p-0 sd-group-header-cell\" mat-cell *matCellDef=\"let item\" [attr.colspan]=\"sdGroupColspan()\">\n <ng-container *ngTemplateOutlet=\"sdGroupHeader; context: { item: item }\"></ng-container>\n </td>\n </ng-container>\n <!-- why: filler column \u1EDF cu\u1ED1i h\u1EA5p th\u1EE5 leftover space khi t\u1ED5ng width c\u00E1c c\u1ED9t data < container \u2014 gi\u1EEF cho selection/STT/command kh\u00F4ng b\u1ECB d\u00E3n. -->\n <ng-container matColumnDef=\"sdFiller\">\n <th class=\"sd-filler-cell p-0\" mat-header-cell *matHeaderCellDef [attr.rowspan]=\"_configuration.multipleHeader ? 2 : 1\"></th>\n <td class=\"sd-filler-cell p-0\" mat-cell *matCellDef=\"let item\"></td>\n <td class=\"sd-filler-cell p-0\" mat-footer-cell *matFooterCellDef></td>\n </ng-container>\n @for (column of _configuration.firstColumns; track column.field) {\n <ng-container [matColumnDef]=\"column.field\" [sticky]=\"_configuration.fixedColumn[column.field]\">\n <th\n mat-header-cell\n *matHeaderCellDef\n class=\"px-8 c-th\"\n [class.sd-column-group]=\"column.type === 'children'\"\n [attr.scope]=\"column.type === 'children' ? 'colgroup' : 'col'\"\n [sdColumnResize]=\"!!_tableOption.config?.resizable && column.type !== 'children'\"\n [minWidth]=\"column.minWidth\"\n [maxWidth]=\"column.maxWidth\"\n (resizeEnd)=\"onColumnResize(column.field, $event)\"\n [style.width]=\"column.width\"\n [style.min-width]=\"column.minWidth || column.width\"\n [style.max-width]=\"column.maxWidth\"\n [attr.rowspan]=\"_configuration.multipleHeader && column.type !== 'children' ? 2 : 1\"\n [attr.colspan]=\"column.type === 'children' ? column.children.length : 1\"\n [attr.aria-sort]=\"\n _tableOption.sort?.enable && column.type !== 'children' && column.sortable ? getSortAria(column.field) : null\n \">\n <div\n [class.sd-table-header-cell--trigger]=\"_queryBarMode && column.type !== 'children'\"\n [class.sd-table-header-cell--end]=\"_queryBarMode && column.align === 'right'\">\n <!-- why: sort control ch\u1EC9 \u00F4m title; filter l\u00E0 sibling n\u00EAn kh\u00F4ng th\u00E0nh interactive\n descendant. aria-sort thu\u1ED9c semantic <th>, kh\u00F4ng thu\u1ED9c control n\u00E0y. -->\n @if (column.type === 'children') {\n <div class=\"c-header-title sd-column-group-title\">\n <column-title [column]=\"column\" [titleDef]=\"_titleDef[column.field]\"></column-title>\n </div>\n } @else {\n @if (_tableOption.sort?.enable && column.sortable) {\n <div\n [sdTableSortHeader]=\"column.field\"\n class=\"c-header-title\"\n [class.justify-content-end]=\"column.align === 'right'\"\n [class.text-right]=\"column.align === 'right'\">\n <column-title [column]=\"column\" [titleDef]=\"_titleDef[column.field]\"></column-title>\n </div>\n } @else {\n <div\n class=\"c-header-title\"\n [class.justify-content-end]=\"column.align === 'right'\"\n [class.text-right]=\"column.align === 'right'\">\n <column-title [column]=\"column\" [titleDef]=\"_titleDef[column.field]\"></column-title>\n </div>\n }\n @if (_queryBarMode) {\n <ng-container *ngTemplateOutlet=\"queryBarTrigger; context: { $implicit: column }\"></ng-container>\n }\n @if (_showInlineFilter && !_configuration.multipleHeader) {\n <ng-container *ngTemplateOutlet=\"inlineColumnFilter; context: { $implicit: column }\"></ng-container>\n }\n }\n </div>\n </th>\n <td\n class=\"c-td px-0\"\n [class.d-none]=\"column.type === 'children'\"\n mat-cell\n *matCellDef=\"let item\"\n [sdHoverCopy]=\"(item.data && item.data[column.field]) || ''\"\n [sdHoverCopyDisabled]=\"!column.cell?.copiable\">\n @if (column.type !== 'children' && !item?.meta?.group?.isGroupHeader) {\n @if (_treeFirstField && column.field === _treeFirstField) {\n <!-- why: kh\u00F4ng c\u00F3 c\u1ED9t Index \u2192 chevron + indent nh\u00FAng v\u00E0o c\u1ED9t data \u0111\u1EA7u (nh\u01B0 file explorer). -->\n <span class=\"sd-tree-line px-8\">\n <ng-container *ngTemplateOutlet=\"sdTreeToggle; context: { row: item }\"></ng-container>\n <desktop-cell class=\"d-block\" [column]=\"column\" [item]=\"item\" [cellDef]=\"_cellDef\"></desktop-cell>\n </span>\n } @else {\n <desktop-cell class=\"d-block px-8\" [column]=\"column\" [item]=\"item\" [cellDef]=\"_cellDef\"> </desktop-cell>\n }\n }\n </td>\n <td mat-footer-cell *matFooterCellDef [class.d-none]=\"column.type === 'children'\">\n <ng-container *ngIf=\"_footerDef[column.field]\">\n <ng-container *ngTemplateOutlet=\"_footerDef[column.field].templateRef; context: { items: _items, column: column }\">\n </ng-container>\n </ng-container>\n </td>\n </ng-container>\n }\n @for (column of _configuration.secondColumns; track column.field) {\n <ng-container [matColumnDef]=\"column.field\" [sticky]=\"_configuration.fixedColumn[column.field]\">\n <th\n mat-header-cell\n *matHeaderCellDef\n class=\"c-th px-8\"\n scope=\"col\"\n [style.width]=\"column.width\"\n [style.min-width]=\"column.minWidth || column.width\"\n [style.max-width]=\"column.maxWidth\"\n [attr.aria-sort]=\"_tableOption.sort?.enable && column.sortable ? getSortAria(column.field) : null\">\n <div\n [class.sd-table-header-cell--trigger]=\"_queryBarMode\"\n [class.sd-table-header-cell--end]=\"_queryBarMode && column.align === 'right'\">\n @if (_tableOption.sort?.enable && column.sortable) {\n <div\n [sdTableSortHeader]=\"column.field\"\n class=\"c-header-title\"\n [class.justify-content-end]=\"column.align === 'right'\"\n [class.text-right]=\"column.align === 'right'\">\n <column-title [column]=\"column\" [titleDef]=\"_titleDef[column.field]\"></column-title>\n </div>\n } @else {\n <div\n class=\"c-header-title\"\n [class.justify-content-end]=\"column.align === 'right'\"\n [class.text-right]=\"column.align === 'right'\">\n <column-title [column]=\"column\" [titleDef]=\"_titleDef[column.field]\"></column-title>\n </div>\n }\n @if (_queryBarMode) {\n <ng-container *ngTemplateOutlet=\"queryBarTrigger; context: { $implicit: column }\"></ng-container>\n }\n </div>\n </th>\n <td\n class=\"c-td px-0\"\n mat-cell\n *matCellDef=\"let item\"\n [sdHoverCopy]=\"item[column.field]\"\n [sdHoverCopyDisabled]=\"!column.cell?.copiable\">\n @if (column.type !== 'children') {\n <desktop-cell class=\"d-block px-8\" [column]=\"column\" [item]=\"item\" [cellDef]=\"_cellDef\"> </desktop-cell>\n }\n </td>\n <td mat-footer-cell *matFooterCellDef>\n <ng-container *ngIf=\"_footerDef[column.field]\">\n <ng-container *ngTemplateOutlet=\"_footerDef[column.field].templateRef; context: { items: _items, column: column }\">\n </ng-container>\n </ng-container>\n </td>\n </ng-container>\n }\n <tr class=\"c-first-header\" mat-header-row *matHeaderRowDef=\"_configuration.firstHeaders; sticky: true\"></tr>\n @for (entry of _aggregateColumns; track entry.id) {\n <ng-container [matColumnDef]=\"entry.id\" [sticky]=\"entry.sticky\" [stickyEnd]=\"entry.stickyEnd\">\n <td\n mat-cell\n *matCellDef=\"let row\"\n class=\"sd-aggregate-cell px-8 py-8\"\n [class.d-none]=\"entry.hidden\"\n [style.text-align]=\"entry.column?.align\"\n [style.width]=\"entry.column?.width\"\n [style.min-width]=\"entry.column?.minWidth || entry.column?.width\">\n <ng-container\n *ngTemplateOutlet=\"\n aggregateCell;\n context: { $implicit: aggregateRenderHost.rows.get(row)?.cells?.get(entry.field) }\n \"></ng-container>\n </td>\n <td\n mat-footer-cell\n *matFooterCellDef\n class=\"sd-aggregate-cell px-8 py-8\"\n [class.d-none]=\"entry.hidden\"\n [style.text-align]=\"entry.column?.align\"\n [style.width]=\"entry.column?.width\"\n [style.min-width]=\"entry.column?.minWidth || entry.column?.width\">\n <ng-container\n *ngTemplateOutlet=\"aggregateCell; context: { $implicit: _aggregate.total?.cells?.get(entry.field) }\"></ng-container>\n </td>\n </ng-container>\n }\n <tr mat-row *matRowDef=\"let row; columns: _aggregateColumnIds; when: isAggregateRow\" class=\"sd-aggregate-row\"></tr>\n @if (!!_configuration.secondHeaders.length) {\n <tr class=\"c-second-header\" mat-header-row *matHeaderRowDef=\"_configuration.secondHeaders; sticky: true\"></tr>\n }\n @if (_configuration.multipleHeader) {\n @for (entry of _headerFilterColumns; track entry.id) {\n <ng-container [matColumnDef]=\"entry.id\" [sticky]=\"entry.sticky\" [stickyEnd]=\"entry.stickyEnd\">\n <th\n mat-header-cell\n *matHeaderCellDef\n class=\"c-th sd-filter-header\"\n [class.px-8]=\"!!entry.column\"\n [class.p-0]=\"!entry.column\"\n [class.sd-filler-cell]=\"entry.field === 'sdFiller'\"\n scope=\"col\">\n @if (_showInlineFilter && entry.column) {\n <ng-container *ngTemplateOutlet=\"inlineColumnFilter; context: { $implicit: entry.column }\"></ng-container>\n }\n </th>\n </ng-container>\n }\n <!-- why: gi\u1EEF row definition \u1ED5n \u0111\u1ECBnh; CDK c\u1EADp nh\u1EADt columns \u0111\u1EC3 b\u1ECF controls/sticky offsets khi \u1EA9n filter. -->\n <tr\n class=\"c-filter-header\"\n [style.display]=\"_showInlineFilter ? null : 'none'\"\n mat-header-row\n *matHeaderRowDef=\"_showInlineFilter ? headerFilterColumnIds() : []; sticky: _showInlineFilter\"></tr>\n }\n <!-- Group header row \u2014 ch\u1EC9 1 cell sdGroupHeader colspan to\u00E0n width. -->\n <tr mat-row *matRowDef=\"let row; columns: ['sdGroupHeader']; when: isGroupHeaderRow\" class=\"c-group-row-tr\"></tr>\n\n <!-- Data row \u2014 d\u00F9ng displayedColumns \u0111\u1EA7y \u0111\u1EE7; when isDataRow \u0111\u1EC3 lo\u1EA1i tr\u1EEB group header. -->\n <!-- why: [ngStyle] \u0111\u1ECDc meta.rowStyle \u2014 style.rowCss \u0111\u00E3 \u0111\u01B0\u1EE3c resolve 1 l\u1EA7n m\u1ED7i l\u1EA7n\n render. B\u1EA3n c\u0169 g\u1ECDi rowStyle(row) ngay trong binding \u2192 ch\u1EA1y callback c\u1EE7a consumer\n cho T\u1EEANG d\u00F2ng \u1EDF M\u1ED6I CD pass, v\u00E0 v\u00EC tr\u1EA3 object M\u1EDAI n\u00EAn NgStyle ph\u1EA3i ch\u1EA1y l\u1EA1i\n KeyValueDiffer tr\u00EAn m\u1ECDi d\u00F2ng \u1EDF m\u1ECDi pass. -->\n <tr\n mat-row\n cdkDrag\n [cdkDragData]=\"row\"\n [cdkDragDisabled]=\"\n !_tableOption.rowReorder?.enabled ||\n !!row.meta?.group?.items?.length ||\n (row.meta?.tree?.level ?? 0) > 0 ||\n isReorderDisabled(row)\n \"\n *matRowDef=\"let row; columns: _configuration.displayedColumns; when: isDataRow\"\n matRipple\n class=\"c-row\"\n [class.sd-tree-row]=\"!!_tableOption.tree\"\n [ngClass]=\"_tableOption.tree ? 'sd-tree-level-' + (row.meta?.tree?.level ?? 0) : null\"\n [ngStyle]=\"row.meta.rowStyle\"\n [class.selected]=\"row.meta.selector.isSelected\"></tr>\n\n <!-- Sub-information row \u2014 also gated b\u1EDFi isDataRow \u0111\u1EC3 KH\u00D4NG render empty expand row d\u01B0\u1EDBi group header. -->\n <tr mat-row *matRowDef=\"let row; columns: ['sdSubInformation']; when: isDataRow\" class=\"c-detail-row\"></tr>\n @if (_aggregate.total) {\n <tr mat-footer-row *sdTableFooterRowDef=\"_aggregateColumnIds; sticky: true\" class=\"sd-aggregate-total\"></tr>\n }\n @if (hasFooter() && !!_configuration.displayedFooters.length) {\n <tr mat-footer-row *sdTableFooterRowDef=\"_configuration.displayedFooters; sticky: true\"></tr>\n }\n <!-- why: khung x\u01B0\u01A1ng l\u00E0 d\u00F2ng th\u1EADt trong tbody (matNoDataRow ch\u1EC9 hi\u1EC7n khi kh\u00F4ng c\u00F3 d\u00F2ng d\u1EEF li\u1EC7u) n\u00EAn \u00F4 th\u1EB3ng\n c\u1ED9t v\u1EDBi header, k\u1EC3 c\u1EA3 header nh\u00F3m, m\u00E0 kh\u00F4ng ph\u1EA3i \u0111o; footer v\u1EABn n\u1EB1m d\u01B0\u1EDBi; dataSource kh\u00F4ng \u0111\u1ED5i. -->\n <ng-template matNoDataRow>\n @for (cells of skeleton(); track $index) {\n <tr class=\"sd-table-skeleton-row\" aria-hidden=\"true\">\n @for (cell of cells; track cell.field) {\n <td class=\"sd-table-skeleton-cell\" [class.d-none]=\"cell.hidden\">\n @if (cell.shape !== 'none') {\n <span\n class=\"sd-table-skeleton-bar\"\n [attr.data-shape]=\"cell.shape\"\n [attr.data-align]=\"cell.align\"\n [style.width]=\"cell.width\"\n [style.max-width]=\"cell.maxWidth\"></span>\n }\n </td>\n }\n </tr>\n }\n </ng-template>\n </table>\n }\n @let _readError = _readState.status === 'error';\n <!-- why: d\u00F2ng c\u0169 b\u1ECB g\u1EE1 khi l\u1EA7n \u0111\u1ECDc hi\u1EC7n h\u00E0nh l\u1ED7i, n\u00EAn v\u00F9ng l\u1ED7i/empty ch\u1EC9 hi\u1EC7n khi b\u1EA3ng kh\u00F4ng c\u00F2n d\u00F2ng n\u00E0o\n \u2014 end user kh\u00F4ng bao gi\u1EDD th\u1EA5y d\u1EEF li\u1EC7u v\u00E0 l\u1ED7i c\u00F9ng l\u00FAc (NSP-4877). -->\n @let _noRows = !_readError && !_loading && !_total && !_items.length && _loadingView === 'none';\n @if ((_readError && !_hideReadError) || (_noRows && _readState.status === 'empty' && !!_dataStateTemplate)) {\n <sd-data-state [state]=\"_readError ? 'error' : 'empty'\" [retryable]=\"_readError\" (sdRetry)=\"retryRead()\">\n @if (_dataStateTemplate; as custom) {\n <ng-template sdDataStateTemplate let-current let-retry=\"retry\" let-action=\"action\">\n <ng-container\n [ngTemplateOutlet]=\"custom.template\"\n [ngTemplateOutletContext]=\"{ $implicit: current, state: current, retry: retry, action: action }\"></ng-container>\n </ng-template>\n }\n </sd-data-state>\n } @else if (!_loading && loadError() && !_hideReadError) {\n <!-- why: b\u1EA3ng local l\u1ED7i d\u00F9ng c\u00F9ng giao di\u1EC7n l\u1ED7i v\u1EDBi b\u1EA3ng server (sd-data-state, role=\"alert\") v\u00E0 c\u00F9ng\n sdDataStateTemplate; th\u1EED l\u1EA1i = reload() v\u00EC local kh\u00F4ng c\u00F3 snapshot \u0111\u1ECDc \u0111\u1EC3 retryRead(). -->\n <sd-data-state state=\"error\" [retryable]=\"true\" (sdRetry)=\"reload()\">\n @if (_dataStateTemplate; as custom) {\n <ng-template sdDataStateTemplate let-current let-retry=\"retry\" let-action=\"action\">\n <ng-container\n [ngTemplateOutlet]=\"custom.template\"\n [ngTemplateOutletContext]=\"{ $implicit: current, state: current, retry: retry, action: action }\"></ng-container>\n </ng-template>\n }\n </sd-data-state>\n } @else if (_noRows && !loadError()) {\n <!-- why: empty m\u1EB7c \u0111\u1ECBnh gi\u1EEF 3 tr\u1EA1ng th\u00E1i (filter kh\u00F4ng c\u00F3 k\u1EBFt qu\u1EA3 / ch\u01B0a ch\u1ECDn filter b\u1EAFt bu\u1ED9c / ch\u01B0a c\u00F3 d\u1EEF li\u1EC7u)\n c\u00F9ng \u1EA3nh c\u1EA5u h\u00ECnh qua SD_TABLE_CONFIGURATION.images, cho c\u1EA3 b\u1EA3ng server (NSP-5551). Kh\u00F4ng c\u00F3 role live:\n v\u00F9ng .sd-table-live (lu\u00F4n c\u00F3 trong DOM) \u0111\u1ECDc ti\u00EAu \u0111\u1EC1 c\u1EE7a kh\u1ED1i n\u00E0y. -->\n @let _requiredHint = requiredHint();\n <div class=\"c-no-data-row\">\n @if (_requiredHint) {\n <!-- why: field b\u1EAFt bu\u1ED9c c\u00F2n r\u1ED7ng th\u00EC b\u1EA3ng kh\u00F4ng \u0111\u1ECDc. C\u00E2u nh\u1EAFc n\u1EB1m \u1EDF \u0111\u00E2y, ch\u1ED7 c\u00E1c d\u00F2ng s\u1EBD hi\u1EC7n, ch\u1EE9 kh\u00F4ng ch\u00E8n\n d\u01B0\u1EDBi thanh l\u1ECDc: d\u00F2ng ch\u00E8n th\u00EAm \u0111\u1EA9y b\u1EA3ng xu\u1ED1ng r\u1ED3i k\u00E9o l\u00EAn khi ng\u01B0\u1EDDi d\u00F9ng ch\u1ECDn xong. Th\u1EAFng c\u1EA3 \"kh\u00F4ng c\u00F3\n k\u1EBFt qu\u1EA3\" v\u00EC c\u00E1c b\u1ED9 l\u1ECDc kh\u00E1c ch\u01B0a \u0111\u01B0\u1EE3c \u00E1p d\u1EE5ng. -->\n @if (tableConfiguration?.images?.filterRequired) {\n <img class=\"c-image\" [src]=\"tableConfiguration!.images!.filterRequired\" alt=\"filter-required\" />\n } @else {\n <img class=\"c-image sd-image-filter-required\" alt=\"filter-required\" />\n }\n <div class=\"T16R text-secondary sd-table-required-hint\" [id]=\"requiredHintId\">{{ _requiredHint }}</div>\n } @else if (_isFiltered) {\n @if (tableConfiguration?.images?.filterEmpty) {\n <img class=\"c-image\" [src]=\"tableConfiguration!.images!.filterEmpty\" alt=\"filter-empty\" />\n } @else {\n <img class=\"c-image sd-image-filter-empty\" alt=\"filter-empty\" />\n }\n <div class=\"T16M\">{{ 'core.component.table.no-results' | sdTranslate }}</div>\n <div class=\"T16R text-secondary\">{{ 'core.component.table.no-results-hint' | sdTranslate }}</div>\n } @else {\n @if (_requireFiltered) {\n @if (tableConfiguration?.images?.filterRequired) {\n <img class=\"c-image\" [src]=\"tableConfiguration!.images!.filterRequired\" alt=\"filter-required\" />\n } @else {\n <img class=\"c-image sd-image-filter-required\" alt=\"filter-required\" />\n }\n <div class=\"T16R text-secondary\">{{ 'core.component.table.choose-filter-hint' | sdTranslate }}</div>\n } @else {\n @if (tableConfiguration?.images?.dataEmpty) {\n <img class=\"c-image\" [src]=\"tableConfiguration!.images!.dataEmpty\" alt=\"data-empty\" />\n } @else {\n <img class=\"c-image sd-image-data-empty\" alt=\"data-empty\" />\n }\n <div class=\"T16R text-secondary\">{{ 'core.component.table.no-data' | sdTranslate }}</div>\n }\n }\n </div>\n }\n </div>\n @if (_loadingView === 'refresh' && !_mobileCards) {\n <!-- N\u1EB1m trong .c-container, kh\u00F4ng trong .c-table, \u0111\u1EC3 kh\u00F4ng cu\u1ED9n ngang theo b\u1EA3ng; top = --sd-table-head-h (\u0111o). -->\n <div class=\"sd-table-progress\" aria-hidden=\"true\"></div>\n }\n @if (!_mobileCards) {\n <selector-action\n [autoId]=\"_autoId\"\n [tableOption]=\"_tableOption\"\n [selectedTableItems]=\"_selectedTableItems\"\n (clear)=\"onClearSelection()\" />\n }\n <div class=\"c-paginator\">\n <div class=\"c-action\">\n @if (!_mobileCards) {\n @if (_tableOption.reload?.visible) {\n <sd-button\n [autoId]=\"_autoId ? _autoId + '-reload' : null\"\n class=\"mr-8\"\n [title]=\"'core.component.table.reload' | sdTranslate\"\n prefixIcon=\"refresh\"\n (click)=\"reload()\"\n type=\"text\">\n </sd-button>\n }\n @if (_export && _items.length) {\n @if (_export.type === 'custom') {\n <sd-button\n [autoId]=\"_autoId ? _autoId + '-export' : null\"\n class=\"mr-8\"\n [title]=\"_exportTitle\"\n prefixIcon=\"get_app\"\n (click)=\"exportCustom()\"\n type=\"text\">\n </sd-button>\n } @else {\n @if (_export.visible) {\n @if (_exporting) {\n <sd-button\n [autoId]=\"_autoId ? _autoId + '-export' : null\"\n class=\"mr-8\"\n [loading]=\"_exporting\"\n [title]=\"_exportTitle\"\n prefixIcon=\"get_app\"\n type=\"text\">\n </sd-button>\n } @else {\n @if (_export.visible === 'ALL' || !_export.visible) {\n <sd-button\n [autoId]=\"_autoId ? _autoId + '-export' : null\"\n class=\"mr-8\"\n [title]=\"_exportTitle\"\n prefixIcon=\"get_app\"\n type=\"text\">\n <sd-button-item\n [autoId]=\"_autoId ? _autoId + '-export-excel' : null\"\n prefixIcon=\"file_download\"\n (click)=\"exportExcel()\"\n >{{ 'core.component.table.export-excel' | sdTranslate }}</sd-button-item\n >\n <sd-button-item\n [autoId]=\"_autoId ? _autoId + '-export-csv' : null\"\n prefixIcon=\"file_download\"\n (click)=\"exportCSV()\"\n >{{ 'core.component.table.export-csv' | sdTranslate }}</sd-button-item\n >\n </sd-button>\n } @else if (_export.visible === 'EXCEL') {\n <sd-button\n [autoId]=\"_autoId ? _autoId + '-export-excel' : null\"\n class=\"mr-8\"\n [title]=\"_exportTitle\"\n prefixIcon=\"get_app\"\n (click)=\"exportExcel()\"\n type=\"text\">\n </sd-button>\n } @else if (_export.visible === 'CSV') {\n <sd-button\n [autoId]=\"_autoId ? _autoId + '-export-csv' : null\"\n class=\"mr-8\"\n [title]=\"_exportTitle\"\n prefixIcon=\"get_app\"\n (click)=\"exportCSV()\"\n type=\"text\">\n </sd-button>\n }\n }\n }\n }\n }\n\n @if (_configComponent) {\n <sd-button\n [autoId]=\"_autoId ? _autoId + '-config' : null\"\n class=\"mr-8\"\n [title]=\"'core.component.table.setup-short' | sdTranslate\"\n prefixIcon=\"settings\"\n [indicator]=\"!_isMobile && hasCustomSetup()\"\n indicatorColor=\"primary\"\n [indicatorLabel]=\"'core.component.table.config.customized' | sdTranslate\"\n (click)=\"_configComponent.open()\"\n type=\"text\">\n </sd-button>\n }\n <!-- Mobile: n\u00FAt Filter m\u1EDF mobile-filter drawer (inline filter \u1EA9n tr\u00EAn mobile) -->\n @if (_isMobile) {\n @if (!_tableOption.filter?.disabled && _mobileFilter) {\n <sd-button\n [autoId]=\"_autoId ? _autoId + '-mobile-filter-open' : null\"\n class=\"mr-8\"\n prefixIcon=\"filter_alt\"\n [title]=\"_mobileCards ? ('core.component.table.filter' | sdTranslate) : undefined\"\n (click)=\"_mobileFilter.open()\"\n type=\"text\">\n </sd-button>\n }\n }\n }\n </div>\n @let _unknownTotalPager = unknownTotalPager();\n @if (_unknownTotalPager) {\n <!-- paginate.total 'unknown': no total exists, so mat-paginator (which derives Next/Last and the\n range from `length`) is replaced by a pager that renders only the rows actually shown. -->\n @if (!_tableOption.paginate?.hidden && unknownTotalPagerVisible()) {\n <sd-table-unknown-total-paginator\n [class.sd-mobile-paginator]=\"_mobileCards\"\n [state]=\"_unknownTotalPager\"\n [pageSizeOptions]=\"_tableOption.paginate?.pages\"\n [hidePageSize]=\"_isMobile || !!_tableOption.paginate?.hidePageSize\"\n [showFirstButton]=\"!_isMobile && !!_tableOption.paginate?.showFirstLastButtons\"\n [autoId]=\"_autoId\"\n (page)=\"onUnknownTotalPage($event)\"></sd-table-unknown-total-paginator>\n } @else if (!_isMobile && !_tableOption.paginate?.hidden && unknownTotalSingleCount()) {\n <div class=\"T14R c-summary\">\n {{ 'core.component.table.showing' | sdTranslate }} <span class=\"T14M ml-2\">1-{{ unknownTotalSingleCount() }}</span>\n </div>\n }\n } @else {\n @let hidePaginator = !_tableOption.paginate?.pageSize || _total === undefined || _total <= _tableOption.paginate?.pageSize!;\n <mat-paginator\n [class.sd-mobile-paginator]=\"_mobileCards\"\n [class.d-none]=\"_tableOption.paginate?.hidden || hidePaginator\"\n [length]=\"_total\"\n [pageSize]=\"_tableOption.paginate?.pageSize\"\n [pageSizeOptions]=\"_tableOption.paginate?.pages!\"\n [showFirstLastButtons]=\"!_isMobile && _tableOption.paginate?.showFirstLastButtons\"\n [hidePageSize]=\"_isMobile || _tableOption.paginate?.hidePageSize\"\n [selectConfig]=\"{ panelClass: ['sd-select-panel', 'sd-table-page-size-panel'] }\"></mat-paginator>\n <!-- \"\u0110ang hi\u1EC3n th\u1ECB...\" ch\u1EC9 desktop -->\n @if (!_isMobile) {\n @if (!_tableOption.paginate?.hidden && hidePaginator && _total !== undefined && _total > 0) {\n <div class=\"T14R c-summary\">\n {{ 'core.component.table.showing' | sdTranslate }} <span class=\"T14M ml-2\">1-{{ _total }}/{{ _total }}</span>\n </div>\n }\n }\n }\n </div>\n </div>\n </div>\n\n @if (_tableOption.config?.visible) {\n <config\n [autoId]=\"_autoId\"\n [tableOption]=\"_tableOption\"\n [filterSetup]=\"configFilter()\"\n (defaultsRestored)=\"onConfigDefaultsRestored()\"\n (filterApplied)=\"onConfigFilterApplied($event)\" />\n }\n <!-- Mobile filter sheet (bottom sheet, two levels) \u2014 opened by the Filters chip or the footer filter button -->\n @if (!_tableOption.filter?.disabled && filterRegister) {\n <mobile-filter\n [autoId]=\"_autoId\"\n [filter]=\"_tableOption.filter!\"\n [externalFilters]=\"_tableOption.filter?.externalFilters!\"\n [columns]=\"mobileColumns()\"\n [filterDefs]=\"sdFilterDefs()\"\n [filterRegister]=\"filterRegister\"\n [cacheValues]=\"cacheValues\"\n [model]=\"mobileFilterModel()\">\n </mobile-filter>\n }\n} @else if (_readState.status === 'error' && !_hideReadError) {\n <!-- why: lookup c\u00F3 th\u1EC3 l\u1ED7i tr\u01B0\u1EDBc khi c\u00F3 configuration; v\u1EABn ph\u1EA3i c\u00F3 l\u1ED1i retry v\u00E0 custom error template. -->\n <sd-data-state state=\"error\" [retryable]=\"true\" (sdRetry)=\"retryRead()\">\n @if (_dataStateTemplate; as custom) {\n <ng-template sdDataStateTemplate let-current let-retry=\"retry\" let-action=\"action\">\n <ng-container\n [ngTemplateOutlet]=\"custom.template\"\n [ngTemplateOutletContext]=\"{ $implicit: current, state: current, retry: retry, action: action }\"></ng-container>\n </ng-template>\n }\n </sd-data-state>\n} @else if (_loadingView === 'skeleton') {\n <!-- why: lookup c\u1ED9t (values/lazy-values) c\u00F3 th\u1EC3 ch\u1EADm; ch\u01B0a c\u00F3 configuration n\u00EAn ch\u01B0a bi\u1EBFt c\u1ED9t, v\u1EBD khung x\u01B0\u01A1ng chung\n thay v\u00EC \u0111\u1EC3 tr\u1ED1ng. Hydrate kh\u00F4ng c\u00F3 lookup xong trong microtask n\u00EAn kh\u1ED1i n\u00E0y kh\u00F4ng k\u1ECBp hi\u1EC7n. -->\n <div class=\"sd-table-skeleton-block\" aria-hidden=\"true\">\n @for (cells of genericSkeleton; track $index) {\n <div class=\"sd-table-skeleton-block-row\">\n @for (cell of cells; track cell.field) {\n <span class=\"sd-table-skeleton-cell\">\n <span class=\"sd-table-skeleton-bar\" [style.width]=\"cell.width\" [style.max-width]=\"cell.maxWidth\"></span>\n </span>\n }\n </div>\n }\n </div>\n}\n", styles: [":host{display:flex;flex-direction:column;overflow:auto;width:100%;height:100%;--mat-table-row-item-container-height: 36px}:host:focus-visible{outline:var(--sd-focus-ring-width, 2px) solid var(--sd-focus-ring-color, var(--sd-primary));outline-offset:2px}:host .sd-table-live{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}:host .c-header-title{height:40px;display:flex;align-items:center}:host .sd-table-surface{display:flex;flex:1;flex-direction:column;min-width:0;min-height:0;background:var(--sd-surface, #fff);border-radius:var(--sd-radius-6, 6px)}:host .c-container{position:relative;min-height:50px;display:flex;flex-direction:column;flex:1;isolation:isolate}:host .c-container .c-table{position:relative;flex:1;display:flex;flex-direction:column}:host .c-container .c-table table{border-collapse:separate;width:100%}:host .c-container .c-table table tr.c-first-header.mat-mdc-header-row{height:40px}:host .c-container .c-table table tr.c-second-header.mat-mdc-header-row{height:40px}:host .c-container .c-table table.sd-table-grouped-header th.c-th{vertical-align:middle;padding-block:4px}:host .c-container .c-table table.sd-table-grouped-header tr.c-first-header.mat-mdc-header-row{height:32px}:host .c-container .c-table table.sd-table-grouped-header tr.c-filter-header.mat-mdc-header-row{height:auto}:host .c-container .c-table table.sd-table-grouped-header th.sd-filter-header{padding-block:0 8px;vertical-align:bottom}:host .c-container .c-table table.sd-table-grouped-header column-filter{display:flex;align-items:center;min-height:36px}:host .c-container .c-table table.sd-table-grouped-header th.sd-column-group{padding-block:4px;vertical-align:middle;background-color:color-mix(in srgb,var(--sd-border, #c4c6d0) 18%,var(--sd-table-group-header-mix, #f2f3f4));box-shadow:inset 0 -1px var(--sd-border, #c4c6d0)}:host .c-container .c-table table.sd-table-grouped-header th.sd-column-group .sd-column-group-title{height:auto;min-height:24px;justify-content:center;text-align:center;font-weight:var(--sd-font-weight-semibold, 600)}:host .c-container .c-table table tr.c-detail-row{height:0}:host .c-container .c-table table tr.c-row.activated{background-color:var(--sd-table-row-activated-bg, #e5ecff)}:host .c-container .c-table table tr.c-row.selected{background-color:var(--sd-table-row-selected-bg, #eef2ff)}:host .c-container .c-table table tr.c-row:not(.selected):not(.activated):hover{background-color:var(--sd-table-row-hover-bg, #f5f5f5)}:host .c-container .c-table table tr.c-row td{border-bottom-width:0}:host .c-container .c-table table tr.c-row.c-expandable{cursor:pointer}:host .c-container .c-table table tr.c-row.c-expandable:hover{background:var(--sd-table-row-hover-bg, #f5f5f5)}:host .c-container .c-table table th.mat-mdc-header-cell{background-color:var(--sd-table-header-bg, #f2f3f4);border-bottom:0!important}:host .c-container .c-table table td.mat-mdc-cell,:host .c-container .c-table table td.mat-mdc-footer-cell,:host .c-container .c-table table th.mat-mdc-header-cell{border-bottom-color:var(--sd-table-row-divider, #f2f2f2)!important}:host .c-container .c-table .c-th{vertical-align:middle;padding-block:8px;font-weight:var(--sd-font-weight-medium, 500);font-size:var(--sd-font-size-14, 14px);line-height:var(--sd-line-height-20, 20px);color:var(--sd-table-header-text, #212121)}:host .c-container .c-table .c-th.sd-col-resize-host{position:relative}:host .c-container .c-table .c-th.sd-resizing{-webkit-user-select:none;user-select:none}:host .c-container .c-table .c-th .sd-col-resize-handle{position:absolute;top:0;right:0;width:6px;height:100%;cursor:col-resize;-webkit-user-select:none;user-select:none;z-index:2}:host .c-container .c-table .c-th .sd-col-resize-handle:hover{background:color-mix(in srgb,var(--sd-text) 8%,transparent)}:host .c-container .c-table .c-td:first{padding-left:10px}:host .c-container .c-table .c-no-data-row{flex:1;width:100%;position:sticky;left:0;display:flex;flex-direction:column;align-items:center;justify-content:center}:host .c-container .c-table .c-no-data-row .c-image{margin-bottom:16px;width:96px}:host .c-container .c-paginator{display:flex;flex-direction:row;justify-content:space-between;align-items:center;background-color:var(--sd-table-bg, #ffffff)}:host .c-container .c-paginator .mat-mdc-paginator{background:transparent;--mat-paginator-container-size: 40px;--mat-icon-button-state-layer-size: 32px;--mdc-icon-button-state-layer-size: 32px;--mdc-icon-button-icon-size: 20px}:host .c-container .c-paginator .c-action{padding:0}:host .c-container .c-paginator .c-action sd-button{margin:8px 5px}:host .c-container .c-paginator .c-summary{padding:8px 16px}:host .c-container .c-empty{text-align:center;background-color:var(--sd-table-bg, #ffffff);border:none!important}:host .c-container .c-empty sd-icon{font-size:150px;margin-top:30px;margin-bottom:30px;opacity:.2;width:auto;height:auto}:host button.c-btn-add{background-color:var(--sd-table-bg, #ffffff);box-shadow:var(--sd-shadow-sm)}:host .sd-reorder-header,:host .sd-reorder-cell{width:40px;min-width:40px;padding:0 4px;box-sizing:border-box}:host .sd-reorder-cell sd-icon{cursor:grab;color:var(--sd-text-muted);display:flex;align-items:center}:host .sd-reorder-cell sd-icon:active{cursor:grabbing}:host .sd-reorder-cell sd-icon.sd-reorder-disabled{opacity:.3;cursor:not-allowed;pointer-events:none}:host ::ng-deep .sd-mobile-paginator .mat-mdc-paginator-range-label{margin-inline:4px;white-space:nowrap}:host .c-container:not(.sd-table-mobile)>.c-table{border-radius:6px 6px 0 0}:host .c-container:not(.sd-table-mobile)>.c-paginator{border-radius:0}:host .sd-mobile-command-header{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px;padding:4px}:host .c-container.sd-table-mobile .c-paginator{flex-wrap:wrap;gap:4px;min-height:48px}:host .c-container.sd-table-mobile .c-action{display:flex;align-items:center;min-width:0}:host .c-container.sd-table-mobile .sd-mobile-paginator{margin-inline-start:auto}:host .c-container.sd-table-mobile .c-paginator,:host .c-container.sd-table-mobile .c-empty{background-color:var(--sd-surface);color:var(--sd-text)}:host .c-container.sd-table-mobile .c-paginator{background-color:var(--sd-table-bg, #ffffff)}:host ::ng-deep .sd-table-mobile .c-paginator button{min-width:44px;min-height:44px}:host .c-container.sd-table-mobile .c-paginator .sd-mobile-paginator{--mat-icon-button-state-layer-size: 44px;--mdc-icon-button-state-layer-size: 44px}:host ::ng-deep .mat-select-arrow{color:var(--sd-table-select-arrow, #a6a6a6)}:host ::ng-deep .sd-table-sort-header{cursor:pointer;outline:none}:host ::ng-deep .sd-table-sort-header:focus-visible{border-bottom:solid 1px currentColor}:host ::ng-deep th[aria-sort] .sd-table-sort-header{position:relative;padding-right:24px}:host ::ng-deep th[aria-sort] .sd-table-sort-header:after{content:\"\";position:absolute;top:50%;right:0;width:16px;height:16px;transform:translateY(-50%);background-color:var(--sd-text-secondary);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:center;mask-position:center;-webkit-mask-size:16px 16px;mask-size:16px 16px;pointer-events:none}:host ::ng-deep th[aria-sort=ascending] .sd-table-sort-header:after,:host ::ng-deep th[aria-sort=descending] .sd-table-sort-header:after{background-color:var(--sd-text)}:host ::ng-deep th[aria-sort=none] .sd-table-sort-header:after{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24px' viewBox='0 0 24 24' width='24px' fill='%23000000'%3E%3Cpath d='M0 0h24v24H0V0z' fill='none'/%3E%3Cpath fill='%237A7A7A' d='M12 5.83L15.17 9l1.41-1.41L12 3 7.41 7.59 8.83 9 12 5.83zm0 12.34L8.83 15l-1.41 1.41L12 21l4.59-4.59L15.17 15 12 18.17z'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24px' viewBox='0 0 24 24' width='24px' fill='%23000000'%3E%3Cpath d='M0 0h24v24H0V0z' fill='none'/%3E%3Cpath fill='%237A7A7A' d='M12 5.83L15.17 9l1.41-1.41L12 3 7.41 7.59 8.83 9 12 5.83zm0 12.34L8.83 15l-1.41 1.41L12 21l4.59-4.59L15.17 15 12 18.17z'/%3E%3C/svg%3E\")}:host ::ng-deep th[aria-sort=ascending] .sd-table-sort-header:after{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24px' viewBox='0 0 24 24' width='24px' fill='%23000000'%3E%3Cpath d='M0 0h24v24H0V0z' fill='none'/%3E%3Cpath fill='%237A7A7A' d='M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24px' viewBox='0 0 24 24' width='24px' fill='%23000000'%3E%3Cpath d='M0 0h24v24H0V0z' fill='none'/%3E%3Cpath fill='%237A7A7A' d='M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z'/%3E%3C/svg%3E\")}:host ::ng-deep th[aria-sort=descending] .sd-table-sort-header:after{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24px' viewBox='0 0 24 24' width='24px' fill='%23000000'%3E%3Cpath d='M0 0h24v24H0V0z' fill='none'/%3E%3Cpath fill='%237A7A7A' d='M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24px' viewBox='0 0 24 24' width='24px' fill='%23000000'%3E%3Cpath d='M0 0h24v24H0V0z' fill='none'/%3E%3Cpath fill='%237A7A7A' d='M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z'/%3E%3C/svg%3E\")}:host ::ng-deep .c-paginator .mat-mdc-paginator-range-label{margin:0 4px}:host ::ng-deep .c-paginator .mat-mdc-paginator-page-size{align-items:center}:host ::ng-deep .c-paginator .mat-mdc-paginator-page-size-select{--mat-select-trigger-text-size: var(--sd-font-size-14, 14px);--mat-paginator-select-trigger-text-size: var(--sd-font-size-14, 14px)}:host ::ng-deep .c-paginator .mat-mdc-paginator-page-size-select .mat-mdc-form-field-infix{display:flex;align-items:center;height:32px;min-height:32px;padding-top:0;padding-bottom:0}:host ::ng-deep .c-paginator .mat-mdc-paginator-page-size-select.mat-mdc-form-field .mat-mdc-form-field-infix mat-select.mat-mdc-select{margin-top:0}:host ::ng-deep .c-paginator .mat-mdc-paginator-page-size-select .mat-mdc-text-field-wrapper{padding-right:8px}:host ::ng-deep .c-paginator .mat-mdc-paginator-page-size-select .mat-mdc-select-arrow-wrapper{width:20px;justify-content:center}:host ::ng-deep .c-paginator .mat-mdc-paginator-page-size-select .mat-mdc-select-arrow{width:16px;height:16px;color:var(--sd-text-secondary);background-color:currentColor;mask:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z'/%3E%3C/svg%3E\") center/16px 16px no-repeat}:host ::ng-deep .c-paginator .mat-mdc-paginator-page-size-select .mat-mdc-select-arrow svg{display:none}:host ::ng-deep .c-paginator .mat-mdc-paginator-page-size-select .mat-mdc-form-field-flex:hover .mat-mdc-select-arrow{color:var(--sd-text)}::ng-deep .mat-mdc-select-panel.sd-select-panel.sd-table-page-size-panel .mat-mdc-option{min-height:36px;padding:7px 12px}:host ::ng-deep .cdk-drag-preview{box-shadow:var(--sd-shadow-md);background:var(--sd-table-bg);display:table;width:100%}:host ::ng-deep .cdk-drag-preview td{padding:0 8px;border-bottom:1px solid var(--sd-table-row-divider)}:host ::ng-deep .cdk-drag-placeholder{opacity:0}:host ::ng-deep .cdk-drop-list-dragging tr.c-row:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}:host ::ng-deep .sd-selection-cell{width:42px;min-width:42px;max-width:42px}:host ::ng-deep .sd-filler-cell{width:auto;min-width:0;padding:0!important;border:0}:host ::ng-deep .sd-group-header-cell{background:var(--sd-table-group-row-bg, #f5f7fc);border-top:1px solid var(--sd-table-group-row-border, #e6e9f2);border-bottom:1px solid var(--sd-table-group-row-border, #e6e9f2)}:host ::ng-deep .sd-group-row{min-height:36px}:host ::ng-deep .sd-group-selection-slot{width:42px;min-width:42px;max-width:42px}:host ::ng-deep .c-selection{transform:scale(.85);transform-origin:center}:host ::ng-deep .sd-tree-line{display:inline-flex;align-items:center;min-height:32px}:host ::ng-deep .sd-tree-indent{flex:0 0 auto}:host ::ng-deep .sd-tree-toggle-slot{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px}:host ::ng-deep .sd-tree-toggle-btn{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;padding:0;border:0;background:transparent;border-radius:50%;cursor:pointer;color:var(--sd-text-secondary, #5b6472);transition:background-color .15s ease}:host ::ng-deep .sd-tree-toggle-btn sd-icon{font-size:var(--sd-font-size-18, 18px);width:18px;height:18px;line-height:var(--sd-line-height-18, 18px)}:host ::ng-deep .sd-tree-toggle-btn:hover{background-color:color-mix(in srgb,var(--sd-text) 8%,transparent)}:host ::ng-deep .sd-tree-toggle-btn[aria-busy=true]{cursor:progress}:host ::ng-deep .sd-tree-stt{margin-left:2px;white-space:nowrap}:host ::ng-deep .sd-tree-index-cell{text-align:left!important;white-space:nowrap;padding-left:8px;padding-right:8px}:host ::ng-deep .sd-tree-index-header{padding-left:32px}:host ::ng-deep tr.c-row.sd-tree-row.sd-tree-level-0{background:var(--sd-table-tree-level-0-bg, #fbfcfe)}:host ::ng-deep tr.c-row.sd-tree-row.sd-tree-level-0>td{font-weight:var(--sd-font-weight-medium, 500)}:host ::ng-deep tr.c-row.sd-tree-row.sd-tree-level-1{background:var(--sd-table-tree-level-1-bg, #ffffff)}:host ::ng-deep tr.c-row.sd-tree-row.sd-tree-level-2{background:var(--sd-table-tree-level-2-bg, #fafbfd)}:host ::ng-deep tr.c-row.sd-tree-row.sd-tree-level-3{background:var(--sd-table-tree-level-3-bg, #f6f8fb)}:host ::ng-deep .sd-stt-root{font-weight:var(--sd-font-weight-bold, 700);color:var(--sd-table-tree-root-text, #1f2330)}:host .sd-mobile-top{display:flex;align-items:center;gap:4px;min-width:0;padding:4px 4px 10px 16px}:host .sd-mobile-top--chips{padding-bottom:4px}:host .sd-mobile-top--no-search{justify-content:flex-end}:host .sd-mobile-top--empty:not(:focus-within){padding:0}:host .sd-mobile-top-search{flex:1 1 auto;min-width:0}:host .sd-mobile-top-button{flex:0 0 44px;width:44px;height:44px;padding:0;color:var(--sd-text-secondary);--mat-icon-button-state-layer-size: 44px;--mdc-icon-button-state-layer-size: 44px}:host .sd-mobile-reload:not(:focus-visible){position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}:host .sd-table-surface--quick-search>.c-container:not(.sd-table-mobile)>.c-table,:host .sd-table-surface--query-bar>.c-container:not(.sd-table-mobile)>.c-table{border-top-left-radius:0;border-top-right-radius:0}:host .sd-table-query-bar{display:block;flex:0 0 auto;min-width:0;background:var(--sd-table-bg, #ffffff);border-top-left-radius:var(--sd-radius-6, 6px);border-top-right-radius:var(--sd-radius-6, 6px);--sd-control-label-bg: var(--sd-table-bg, #ffffff)}:host .sd-table-query-bar-end{flex:none;display:flex;align-items:center;align-self:flex-start;padding-left:8px}:host .sd-table-header-cell--trigger{display:flex;align-items:center;gap:4px;min-width:0}:host .sd-table-header-cell--trigger>.c-header-title{flex:0 1 auto;min-width:0}:host .sd-table-header-cell--trigger.sd-table-header-cell--end{flex-direction:row-reverse;justify-content:flex-start}:host .sd-table-filter-trigger{flex:none;display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;padding:0;border:0;border-radius:var(--sd-radius-4, 4px);background:transparent;color:var(--sd-text-secondary);cursor:pointer;opacity:0;transition:opacity var(--sd-duration-fast, .12s) ease,background-color var(--sd-duration-fast, .12s) ease}:host .sd-table-filter-trigger sd-icon{width:15px;height:15px;font-size:15px}:host .sd-table-filter-trigger:hover{background:var(--sd-table-row-hover-bg)}:host .sd-table-filter-trigger:focus-visible{opacity:1;outline:2px solid var(--sd-focus-ring-color);outline-offset:1px}:host .sd-table-filter-trigger.sd-table-filter-trigger--active{opacity:1;color:var(--sd-primary)}:host th:hover .sd-table-filter-trigger,:host th:focus-within .sd-table-filter-trigger{opacity:1}@media(pointer:coarse){:host .sd-table-filter-trigger{opacity:1}}@media(prefers-reduced-motion:reduce){:host .sd-table-filter-trigger{transition:none}}@media(forced-colors:active){:host .sd-table-filter-trigger{color:ButtonText}:host .sd-table-filter-trigger--active{color:Highlight}}@keyframes sd-table-skeleton-sweep{to{background-position:480px 0}}@keyframes sd-table-progress-run{0%{transform:translate(-100%)}to{transform:translate(285.7142857143%)}}@keyframes sd-table-spin{to{transform:rotate(360deg)}}:host tr.sd-table-skeleton-row{height:var(--mat-table-row-item-container-height, 36px)}:host .sd-table-skeleton-cell{padding:0 8px;border-bottom:1px solid var(--sd-table-row-divider);vertical-align:middle}:host .sd-table-skeleton-bar{display:block;height:12px;border-radius:var(--sd-radius-4, 4px);background:linear-gradient(90deg,var(--sd-table-skeleton-bg) 0,var(--sd-table-skeleton-highlight) 40%,var(--sd-table-skeleton-bg) 80%) 0 0/480px 100%;animation:sd-table-skeleton-sweep 1.4s linear infinite}@media(prefers-reduced-motion:reduce){:host .sd-table-skeleton-bar{animation:none}}@media(forced-colors:active){:host .sd-table-skeleton-bar{forced-color-adjust:none;background:GrayText}}:host .sd-table-skeleton-bar[data-align=end]{margin-inline-start:auto}:host .sd-table-skeleton-bar[data-align=center]{margin-inline:auto}:host .sd-table-skeleton-bar[data-shape=pill]{height:20px;border-radius:999px}:host .sd-table-skeleton-bar[data-shape=box]{width:14px;height:14px;border-radius:3px}:host .sd-table-skeleton-block{overflow:hidden;border-radius:var(--sd-radius-6, 6px);background:var(--sd-surface)}:host .sd-table-skeleton-block-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:center;height:var(--mat-table-row-item-container-height, 36px);border-bottom:1px solid var(--sd-table-row-divider)}:host .sd-table-skeleton-block-row>.sd-table-skeleton-cell{border-bottom:0}:host .c-table>table>::ng-deep tbody{transition:opacity var(--sd-duration-fast, .12s)}@media(prefers-reduced-motion:reduce){:host .c-table>table>::ng-deep tbody{transition:none}}:host .c-table.c-table--dim{cursor:progress}:host .c-table.c-table--dim>table>::ng-deep thead,:host .c-table.c-table--dim>table>::ng-deep tfoot{cursor:auto}:host .c-table.c-table--dim>table>::ng-deep tbody{opacity:var(--sd-table-loading-dim, .55)}:host .c-table.c-table--dim>table>::ng-deep tbody,:host .c-table.c-table--dim>table>::ng-deep tbody *{pointer-events:none!important}:host .sd-table-progress{position:absolute;top:var(--sd-table-head-h, 0px);right:0;left:0;z-index:20;height:2px;overflow:hidden;pointer-events:none;background:var(--sd-table-progress-track)}:host .sd-table-progress:before{content:\"\";position:absolute;inset:0 auto 0 0;width:35%;background:var(--sd-table-spinner);animation:sd-table-progress-run 1.1s ease-in-out infinite}@media(prefers-reduced-motion:reduce){:host .sd-table-progress:before{width:100%;opacity:.6;animation:none}}@media(forced-colors:active){:host .sd-table-progress{forced-color-adjust:none;box-sizing:content-box;border:1px solid CanvasText;background:Canvas}:host .sd-table-progress:before{background:Highlight}}:host .sd-table-spinner{display:inline-block;flex:0 0 auto;vertical-align:middle;box-sizing:border-box;width:16px;height:16px;border:2px solid var(--sd-table-progress-track);border-top-color:var(--sd-table-spinner);border-radius:50%;animation:sd-table-spin .8s linear infinite}@media(prefers-reduced-motion:reduce){:host .sd-table-spinner{animation:none}}@media(forced-colors:active){:host .sd-table-spinner{forced-color-adjust:none;border-color:GrayText;border-top-color:Highlight}}:host .sd-table-progress-anchor{position:sticky;top:0;z-index:20;height:0}:host .sd-table-progress-anchor>.sd-table-progress{top:0}.sd-aggregate-row,.sd-aggregate-total,.sd-mobile-aggregate{background:color-mix(in srgb,var(--sd-surface-muted) 35%,var(--sd-surface));color:var(--sd-text);font-weight:var(--sd-font-weight-medium, 500)}.sd-aggregate-cell{background:inherit;border-top:1px solid var(--sd-border)}:host(.sd-table--cards){height:auto;overflow:visible}:host(.sd-table--fill){flex:1 1 0;height:auto;min-height:var(--sd-table-fill-min, 0px);overflow:visible}:host(.sd-table--fill) .c-container{min-height:0}:host(.sd-table--fill) .c-container>.c-table{min-height:calc(var(--sd-table-fill-head, 40px) + 5 * var(--mat-table-row-item-container-height, 36px))}:host(.sd-table--fill) .c-container>.c-paginator{flex:none;min-height:48px}\n", ":host ::ng-deep .sticky-shadow-right{overflow:visible!important}:host ::ng-deep .sticky-shadow-right:after{content:\"\";position:absolute;top:0;right:0;bottom:0;width:8px;transform:translate(100%);background:linear-gradient(to right,rgba(0,0,0,.12),transparent);pointer-events:none}:host ::ng-deep .sticky-shadow-left{overflow:visible!important}:host ::ng-deep .sticky-shadow-left:after{content:\"\";position:absolute;top:0;left:0;bottom:0;width:8px;transform:translate(-100%);background:linear-gradient(to left,rgba(0,0,0,.12),transparent);pointer-events:none}\n"] }]
|
|
10723
|
+
}], ctorParameters: () => [], propDecorators: { autoIdInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoId", required: false }] }], option: [{ type: i0.Input, args: [{ isSignal: true, alias: "option", required: true }] }], hideReadError: [{ type: i0.Input, args: [{ isSignal: true, alias: "hideReadError", required: false }] }], syncQueryParams: [{ type: i0.Input, args: [{ isSignal: true, alias: "syncQueryParams", required: false }] }], sdReadStateChange: [{ type: i0.Output, args: ["sdReadStateChange"] }], dataStateTemplate: [{ type: i0.ContentChild, args: [i0.forwardRef(() => SdDataStateTemplateDirective), { isSignal: true }] }], table: [{ type: i0.ViewChild, args: [i0.forwardRef(() => MatTable), { isSignal: true }] }], configComponent: [{ type: i0.ViewChild, args: [i0.forwardRef(() => ConfigComponent), { isSignal: true }] }], sdPopupExport: [{ type: i0.ViewChild, args: [i0.forwardRef(() => SdPopupExport), { isSignal: true }] }], scroll: [{ type: i0.ViewChild, args: [i0.forwardRef(() => SdScrollDirective), { isSignal: true }] }], quickAction: [{ type: i0.ViewChild, args: [i0.forwardRef(() => SdQuickAction), { isSignal: true }] }], externalFilter: [{ type: i0.ViewChild, args: [i0.forwardRef(() => ExternalFilterComponent), { isSignal: true }] }], mobileFilter: [{ type: i0.ViewChild, args: [i0.forwardRef(() => MobileFilterComponent), { isSignal: true }] }], paginator: [{ type: i0.ViewChild, args: [i0.forwardRef(() => MatPaginator), { isSignal: true }] }], sort: [{ type: i0.ViewChild, args: [i0.forwardRef(() => MatSort), { isSignal: true }] }], sdSubInformation: [{ type: i0.ContentChild, args: [i0.forwardRef(() => SdTableExpandDefDirective), { isSignal: true }] }], sdGroupDef: [{ type: i0.ContentChild, args: [i0.forwardRef(() => SdTableGroupDefDirective), { isSignal: true }] }], sdCellDefs: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => SdTableCellDefDirective), { isSignal: true }] }], sdCommandHeaderDef: [{ type: i0.ContentChild, args: [i0.forwardRef(() => SdTableCommandHeaderDefDirective), { isSignal: true }] }], sdQuickSearchRightDef: [{ type: i0.ContentChild, args: [i0.forwardRef(() => SdTableQuickSearchRightDefDirective), { isSignal: true }] }], sdFooterDefs: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => SdMaterialFooterDefDirective), { isSignal: true }] }], sdFilterDefs: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => SdTableFilterDefDirective), { isSignal: true }] }], sdTitleDefs: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => SdTableTitleDefDirective), { isSignal: true }] }], sdRowMobileDef: [{ type: i0.ContentChild, args: [i0.forwardRef(() => SdTableRowMobileDefDirective), { ...{ descendants: false }, isSignal: true }] }], quickSearchControl: [{ type: i0.ViewChild, args: [i0.forwardRef(() => TableQuickSearchComponent), { isSignal: true }] }], queryBar: [{ type: i0.ViewChild, args: [i0.forwardRef(() => SdQueryBar), { isSignal: true }] }] } });
|
|
10213
10724
|
|
|
10214
10725
|
/**
|
|
10215
10726
|
* Generated bundle index. Do not edit.
|