@sdcorejs/angular 22.3.5 → 22.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.
Files changed (235) hide show
  1. package/assets/STYLE-GUIDE.md +78 -1
  2. package/assets/THEME.md +45 -3
  3. package/assets/scss/core/_popover-panel.scss +90 -0
  4. package/assets/scss/core/form.scss +5 -2
  5. package/assets/scss/core/utilities/_grid.scss +15 -0
  6. package/assets/scss/core/utilities/_sizing.scss +4 -0
  7. package/assets/scss/themes/_component-tokens.scss +9 -4
  8. package/assets/scss/themes/_semantic.scss +6 -5
  9. package/fesm2022/sdcorejs-angular-components-anchor.mjs +64 -3
  10. package/fesm2022/sdcorejs-angular-components-anchor.mjs.map +1 -1
  11. package/fesm2022/sdcorejs-angular-components-button.mjs +14 -6
  12. package/fesm2022/sdcorejs-angular-components-button.mjs.map +1 -1
  13. package/fesm2022/sdcorejs-angular-components-calendar.mjs +2565 -0
  14. package/fesm2022/sdcorejs-angular-components-calendar.mjs.map +1 -0
  15. package/fesm2022/sdcorejs-angular-components-card.mjs +521 -23
  16. package/fesm2022/sdcorejs-angular-components-card.mjs.map +1 -1
  17. package/fesm2022/sdcorejs-angular-components-editor-engine.mjs +1 -1
  18. package/fesm2022/sdcorejs-angular-components-editor-engine.mjs.map +1 -1
  19. package/fesm2022/sdcorejs-angular-components-file-explorer.mjs +4 -18
  20. package/fesm2022/sdcorejs-angular-components-file-explorer.mjs.map +1 -1
  21. package/fesm2022/sdcorejs-angular-components-form-generic.mjs +7 -7
  22. package/fesm2022/sdcorejs-angular-components-form-generic.mjs.map +1 -1
  23. package/fesm2022/sdcorejs-angular-components-import-excel.mjs +1 -1
  24. package/fesm2022/sdcorejs-angular-components-import-excel.mjs.map +1 -1
  25. package/fesm2022/sdcorejs-angular-components-kanban.mjs +849 -157
  26. package/fesm2022/sdcorejs-angular-components-kanban.mjs.map +1 -1
  27. package/fesm2022/sdcorejs-angular-components-modal.mjs +23 -7
  28. package/fesm2022/sdcorejs-angular-components-modal.mjs.map +1 -1
  29. package/fesm2022/sdcorejs-angular-components-query-bar.mjs +1362 -229
  30. package/fesm2022/sdcorejs-angular-components-query-bar.mjs.map +1 -1
  31. package/fesm2022/sdcorejs-angular-components-quick-action.mjs +78 -2
  32. package/fesm2022/sdcorejs-angular-components-quick-action.mjs.map +1 -1
  33. package/fesm2022/sdcorejs-angular-components-scheduler.mjs +2006 -0
  34. package/fesm2022/sdcorejs-angular-components-scheduler.mjs.map +1 -0
  35. package/fesm2022/sdcorejs-angular-components-side-drawer.mjs +2 -2
  36. package/fesm2022/sdcorejs-angular-components-side-drawer.mjs.map +1 -1
  37. package/fesm2022/sdcorejs-angular-components-tab-router.mjs +126 -26
  38. package/fesm2022/sdcorejs-angular-components-tab-router.mjs.map +1 -1
  39. package/fesm2022/sdcorejs-angular-components-tab.mjs +31 -2
  40. package/fesm2022/sdcorejs-angular-components-tab.mjs.map +1 -1
  41. package/fesm2022/sdcorejs-angular-components-table.mjs +619 -108
  42. package/fesm2022/sdcorejs-angular-components-table.mjs.map +1 -1
  43. package/fesm2022/sdcorejs-angular-components-timeline.mjs +501 -0
  44. package/fesm2022/sdcorejs-angular-components-timeline.mjs.map +1 -0
  45. package/fesm2022/sdcorejs-angular-components-tree.mjs +613 -36
  46. package/fesm2022/sdcorejs-angular-components-tree.mjs.map +1 -1
  47. package/fesm2022/sdcorejs-angular-components-upload-file.mjs +2 -4
  48. package/fesm2022/sdcorejs-angular-components-upload-file.mjs.map +1 -1
  49. package/fesm2022/sdcorejs-angular-components.mjs +3 -1
  50. package/fesm2022/sdcorejs-angular-components.mjs.map +1 -1
  51. package/fesm2022/sdcorejs-angular-directives.mjs +110 -22
  52. package/fesm2022/sdcorejs-angular-directives.mjs.map +1 -1
  53. package/fesm2022/sdcorejs-angular-forms-date.mjs +142 -43
  54. package/fesm2022/sdcorejs-angular-forms-date.mjs.map +1 -1
  55. package/fesm2022/sdcorejs-angular-forms-datetime.mjs +71 -22
  56. package/fesm2022/sdcorejs-angular-forms-datetime.mjs.map +1 -1
  57. package/fesm2022/sdcorejs-angular-forms-directives.mjs +4 -3
  58. package/fesm2022/sdcorejs-angular-forms-directives.mjs.map +1 -1
  59. package/fesm2022/sdcorejs-angular-forms-entity-picker.mjs +1 -1
  60. package/fesm2022/sdcorejs-angular-forms-entity-picker.mjs.map +1 -1
  61. package/fesm2022/sdcorejs-angular-forms-tree-select.mjs +1 -1
  62. package/fesm2022/sdcorejs-angular-forms-tree-select.mjs.map +1 -1
  63. package/fesm2022/sdcorejs-angular-i18n.mjs +622 -52
  64. package/fesm2022/sdcorejs-angular-i18n.mjs.map +1 -1
  65. package/fesm2022/{sdcorejs-angular-modules-generic-generic-configuration.page-SJIWI1dX.mjs → sdcorejs-angular-modules-generic-generic-configuration.page-j_thIw4L.mjs} +3 -3
  66. package/fesm2022/{sdcorejs-angular-modules-generic-generic-configuration.page-SJIWI1dX.mjs.map → sdcorejs-angular-modules-generic-generic-configuration.page-j_thIw4L.mjs.map} +1 -1
  67. package/fesm2022/{sdcorejs-angular-modules-generic-generic-form-host.page-BPhMLVbv.mjs → sdcorejs-angular-modules-generic-generic-form-host.page-DLsJ_8NR.mjs} +2 -2
  68. package/fesm2022/{sdcorejs-angular-modules-generic-generic-form-host.page-BPhMLVbv.mjs.map → sdcorejs-angular-modules-generic-generic-form-host.page-DLsJ_8NR.mjs.map} +1 -1
  69. package/fesm2022/{sdcorejs-angular-modules-generic-generic-list.page-aGhowe9Y.mjs → sdcorejs-angular-modules-generic-generic-list.page-CkYR7Y-b.mjs} +3 -3
  70. package/fesm2022/{sdcorejs-angular-modules-generic-generic-list.page-aGhowe9Y.mjs.map → sdcorejs-angular-modules-generic-generic-list.page-CkYR7Y-b.mjs.map} +1 -1
  71. package/fesm2022/{sdcorejs-angular-modules-generic-sdcorejs-angular-modules-generic-N8_oGpqD.mjs → sdcorejs-angular-modules-generic-sdcorejs-angular-modules-generic-Ddytu3Gb.mjs} +4 -4
  72. package/fesm2022/{sdcorejs-angular-modules-generic-sdcorejs-angular-modules-generic-N8_oGpqD.mjs.map → sdcorejs-angular-modules-generic-sdcorejs-angular-modules-generic-Ddytu3Gb.mjs.map} +1 -1
  73. package/fesm2022/sdcorejs-angular-modules-generic.mjs +1 -1
  74. package/fesm2022/sdcorejs-angular-modules-layout.mjs +7 -2
  75. package/fesm2022/sdcorejs-angular-modules-layout.mjs.map +1 -1
  76. package/fesm2022/{sdcorejs-angular-modules-pattern-base-api.service-C2o5xPVB.mjs → sdcorejs-angular-modules-pattern-base-api.service-vMdkWmw-.mjs} +2 -2
  77. package/fesm2022/{sdcorejs-angular-modules-pattern-base-api.service-C2o5xPVB.mjs.map → sdcorejs-angular-modules-pattern-base-api.service-vMdkWmw-.mjs.map} +1 -1
  78. package/fesm2022/{sdcorejs-angular-modules-pattern-create.component-RBvVv88D.mjs → sdcorejs-angular-modules-pattern-create.component--cdb_2ub.mjs} +11 -7
  79. package/fesm2022/sdcorejs-angular-modules-pattern-create.component--cdb_2ub.mjs.map +1 -0
  80. package/fesm2022/{sdcorejs-angular-modules-pattern-create.component-CxicczH7.mjs → sdcorejs-angular-modules-pattern-create.component-BmKRynOI.mjs} +2 -2
  81. package/fesm2022/{sdcorejs-angular-modules-pattern-create.component-CxicczH7.mjs.map → sdcorejs-angular-modules-pattern-create.component-BmKRynOI.mjs.map} +1 -1
  82. package/fesm2022/{sdcorejs-angular-modules-pattern-create.component-D3MzNJ3F.mjs → sdcorejs-angular-modules-pattern-create.component-DoilYt0j.mjs} +2 -2
  83. package/fesm2022/{sdcorejs-angular-modules-pattern-create.component-D3MzNJ3F.mjs.map → sdcorejs-angular-modules-pattern-create.component-DoilYt0j.mjs.map} +1 -1
  84. package/fesm2022/{sdcorejs-angular-modules-pattern-customer.service-3hWkJClX.mjs → sdcorejs-angular-modules-pattern-customer.service-DpPC-tV2.mjs} +2 -2
  85. package/fesm2022/{sdcorejs-angular-modules-pattern-customer.service-3hWkJClX.mjs.map → sdcorejs-angular-modules-pattern-customer.service-DpPC-tV2.mjs.map} +1 -1
  86. package/fesm2022/{sdcorejs-angular-modules-pattern-detail.component-CcpYULut.mjs → sdcorejs-angular-modules-pattern-detail.component-Bh_rvQnq.mjs} +61 -55
  87. package/fesm2022/sdcorejs-angular-modules-pattern-detail.component-Bh_rvQnq.mjs.map +1 -0
  88. package/fesm2022/{sdcorejs-angular-modules-pattern-detail.component-CEhbU12j.mjs → sdcorejs-angular-modules-pattern-detail.component-Dk1bomUT.mjs} +2 -2
  89. package/fesm2022/{sdcorejs-angular-modules-pattern-detail.component-CEhbU12j.mjs.map → sdcorejs-angular-modules-pattern-detail.component-Dk1bomUT.mjs.map} +1 -1
  90. package/fesm2022/{sdcorejs-angular-modules-pattern-flow.component-G5lHfG81.mjs → sdcorejs-angular-modules-pattern-flow.component-BarNCjsh.mjs} +3 -3
  91. package/fesm2022/{sdcorejs-angular-modules-pattern-flow.component-G5lHfG81.mjs.map → sdcorejs-angular-modules-pattern-flow.component-BarNCjsh.mjs.map} +1 -1
  92. package/fesm2022/{sdcorejs-angular-modules-pattern-index.component-CosbQK0W.mjs → sdcorejs-angular-modules-pattern-index.component--rIi-QIQ.mjs} +2 -2
  93. package/fesm2022/{sdcorejs-angular-modules-pattern-index.component-CosbQK0W.mjs.map → sdcorejs-angular-modules-pattern-index.component--rIi-QIQ.mjs.map} +1 -1
  94. package/fesm2022/{sdcorejs-angular-modules-pattern-lines-table-form.component-DmmVKrgM.mjs → sdcorejs-angular-modules-pattern-lines-table-form.component-G9Li--QF.mjs} +5 -5
  95. package/fesm2022/{sdcorejs-angular-modules-pattern-lines-table-form.component-DmmVKrgM.mjs.map → sdcorejs-angular-modules-pattern-lines-table-form.component-G9Li--QF.mjs.map} +1 -1
  96. package/fesm2022/sdcorejs-angular-modules-pattern-list.component-2AZxTu9a.mjs +522 -0
  97. package/fesm2022/sdcorejs-angular-modules-pattern-list.component-2AZxTu9a.mjs.map +1 -0
  98. package/fesm2022/sdcorejs-angular-modules-pattern-list.component-CDM4V05g.mjs +520 -0
  99. package/fesm2022/sdcorejs-angular-modules-pattern-list.component-CDM4V05g.mjs.map +1 -0
  100. package/fesm2022/{sdcorejs-angular-modules-pattern-list.component-C_pVqRcC.mjs → sdcorejs-angular-modules-pattern-list.component-DS9DROp-.mjs} +3 -3
  101. package/fesm2022/{sdcorejs-angular-modules-pattern-list.component-C_pVqRcC.mjs.map → sdcorejs-angular-modules-pattern-list.component-DS9DROp-.mjs.map} +1 -1
  102. package/fesm2022/{sdcorejs-angular-modules-pattern-list.component-CNVqk3JC.mjs → sdcorejs-angular-modules-pattern-list.component-DbF9z3da.mjs} +30 -39
  103. package/fesm2022/sdcorejs-angular-modules-pattern-list.component-DbF9z3da.mjs.map +1 -0
  104. package/fesm2022/{sdcorejs-angular-modules-pattern-list.component-EaNDEtCn.mjs → sdcorejs-angular-modules-pattern-list.component-DlF3i6ai.mjs} +3 -3
  105. package/fesm2022/{sdcorejs-angular-modules-pattern-list.component-EaNDEtCn.mjs.map → sdcorejs-angular-modules-pattern-list.component-DlF3i6ai.mjs.map} +1 -1
  106. package/fesm2022/{sdcorejs-angular-modules-pattern-mock-backend.factory-CFljqhjv.mjs → sdcorejs-angular-modules-pattern-mock-backend.factory-BpECki9p.mjs} +2 -2
  107. package/fesm2022/{sdcorejs-angular-modules-pattern-mock-backend.factory-CFljqhjv.mjs.map → sdcorejs-angular-modules-pattern-mock-backend.factory-BpECki9p.mjs.map} +1 -1
  108. package/fesm2022/{sdcorejs-angular-modules-pattern-pattern-source-viewer-BqHwKfoc.mjs → sdcorejs-angular-modules-pattern-pattern-source-viewer-DuhyXsGn.mjs} +4 -22
  109. package/fesm2022/sdcorejs-angular-modules-pattern-pattern-source-viewer-DuhyXsGn.mjs.map +1 -0
  110. package/fesm2022/{sdcorejs-angular-modules-pattern-pattern-source.generated-CIiLOizq.mjs → sdcorejs-angular-modules-pattern-pattern-source.generated-bfpj85ke.mjs} +26 -27
  111. package/fesm2022/sdcorejs-angular-modules-pattern-pattern-source.generated-bfpj85ke.mjs.map +1 -0
  112. package/fesm2022/{sdcorejs-angular-modules-pattern-product.service-DitXmlr1.mjs → sdcorejs-angular-modules-pattern-product.service-DEAQ4oro.mjs} +2 -2
  113. package/fesm2022/{sdcorejs-angular-modules-pattern-product.service-DitXmlr1.mjs.map → sdcorejs-angular-modules-pattern-product.service-DEAQ4oro.mjs.map} +1 -1
  114. package/fesm2022/{sdcorejs-angular-modules-pattern-profile.component-Dxw7Ix9d.mjs → sdcorejs-angular-modules-pattern-profile.component-D-dJk5vb.mjs} +27 -14
  115. package/fesm2022/sdcorejs-angular-modules-pattern-profile.component-D-dJk5vb.mjs.map +1 -0
  116. package/fesm2022/{sdcorejs-angular-modules-pattern-routes-BxXgJVsW.mjs → sdcorejs-angular-modules-pattern-routes-Brr61WQo.mjs} +4 -4
  117. package/fesm2022/{sdcorejs-angular-modules-pattern-routes-BxXgJVsW.mjs.map → sdcorejs-angular-modules-pattern-routes-Brr61WQo.mjs.map} +1 -1
  118. package/fesm2022/{sdcorejs-angular-modules-pattern-routes-CWixJ2If.mjs → sdcorejs-angular-modules-pattern-routes-CPVcXcfq.mjs} +3 -3
  119. package/fesm2022/{sdcorejs-angular-modules-pattern-routes-CWixJ2If.mjs.map → sdcorejs-angular-modules-pattern-routes-CPVcXcfq.mjs.map} +1 -1
  120. package/fesm2022/{sdcorejs-angular-modules-pattern-routes-w4VY9P_H.mjs → sdcorejs-angular-modules-pattern-routes-CWCtuZ4z.mjs} +8 -8
  121. package/fesm2022/{sdcorejs-angular-modules-pattern-routes-w4VY9P_H.mjs.map → sdcorejs-angular-modules-pattern-routes-CWCtuZ4z.mjs.map} +1 -1
  122. package/fesm2022/{sdcorejs-angular-modules-pattern-routes-BOiWZHqg.mjs → sdcorejs-angular-modules-pattern-routes-CfXmYmCp.mjs} +3 -3
  123. package/fesm2022/{sdcorejs-angular-modules-pattern-routes-BOiWZHqg.mjs.map → sdcorejs-angular-modules-pattern-routes-CfXmYmCp.mjs.map} +1 -1
  124. package/fesm2022/sdcorejs-angular-modules-pattern-routes-CuDWVZ4I.mjs +56 -0
  125. package/fesm2022/sdcorejs-angular-modules-pattern-routes-CuDWVZ4I.mjs.map +1 -0
  126. package/fesm2022/{sdcorejs-angular-modules-pattern-routes-CJ-RAMa5.mjs → sdcorejs-angular-modules-pattern-routes-D8W_NHEH.mjs} +5 -5
  127. package/fesm2022/{sdcorejs-angular-modules-pattern-routes-CJ-RAMa5.mjs.map → sdcorejs-angular-modules-pattern-routes-D8W_NHEH.mjs.map} +1 -1
  128. package/fesm2022/sdcorejs-angular-modules-pattern-routes-Db0ceW1C.mjs +66 -0
  129. package/fesm2022/sdcorejs-angular-modules-pattern-routes-Db0ceW1C.mjs.map +1 -0
  130. package/fesm2022/{sdcorejs-angular-modules-pattern-routes-C43Q4Wtq.mjs → sdcorejs-angular-modules-pattern-routes-DdmOGRpF.mjs} +3 -3
  131. package/fesm2022/{sdcorejs-angular-modules-pattern-routes-C43Q4Wtq.mjs.map → sdcorejs-angular-modules-pattern-routes-DdmOGRpF.mjs.map} +1 -1
  132. package/fesm2022/{sdcorejs-angular-modules-pattern-sdcorejs-angular-modules-pattern-BQCWgQsr.mjs → sdcorejs-angular-modules-pattern-sdcorejs-angular-modules-pattern-JWx3RaLo.mjs} +12 -12
  133. package/fesm2022/{sdcorejs-angular-modules-pattern-sdcorejs-angular-modules-pattern-BQCWgQsr.mjs.map → sdcorejs-angular-modules-pattern-sdcorejs-angular-modules-pattern-JWx3RaLo.mjs.map} +1 -1
  134. package/fesm2022/{sdcorejs-angular-modules-pattern-shell.component-BOjJteMd.mjs → sdcorejs-angular-modules-pattern-shell.component-DMJpUhpn.mjs} +4 -4
  135. package/fesm2022/{sdcorejs-angular-modules-pattern-shell.component-BOjJteMd.mjs.map → sdcorejs-angular-modules-pattern-shell.component-DMJpUhpn.mjs.map} +1 -1
  136. package/fesm2022/sdcorejs-angular-modules-pattern-update-side-drawer.component-BHDd7D8y.mjs +498 -0
  137. package/fesm2022/sdcorejs-angular-modules-pattern-update-side-drawer.component-BHDd7D8y.mjs.map +1 -0
  138. package/fesm2022/{sdcorejs-angular-modules-pattern-update.component-lGwicZKW.mjs → sdcorejs-angular-modules-pattern-update.component-Bx2zgc86.mjs} +2 -2
  139. package/fesm2022/{sdcorejs-angular-modules-pattern-update.component-lGwicZKW.mjs.map → sdcorejs-angular-modules-pattern-update.component-Bx2zgc86.mjs.map} +1 -1
  140. package/fesm2022/{sdcorejs-angular-modules-pattern-update.component-CS3jlV-R.mjs → sdcorejs-angular-modules-pattern-update.component-Cb29tp1H.mjs} +2 -2
  141. package/fesm2022/{sdcorejs-angular-modules-pattern-update.component-CS3jlV-R.mjs.map → sdcorejs-angular-modules-pattern-update.component-Cb29tp1H.mjs.map} +1 -1
  142. package/fesm2022/{sdcorejs-angular-modules-pattern-update.component-CUgQPcR4.mjs → sdcorejs-angular-modules-pattern-update.component-e5BaHrDk.mjs} +9 -6
  143. package/fesm2022/sdcorejs-angular-modules-pattern-update.component-e5BaHrDk.mjs.map +1 -0
  144. package/fesm2022/sdcorejs-angular-modules-pattern.mjs +1 -1
  145. package/fesm2022/sdcorejs-angular-services-confirm.mjs +171 -158
  146. package/fesm2022/sdcorejs-angular-services-confirm.mjs.map +1 -1
  147. package/fesm2022/sdcorejs-angular-services-query-params.mjs +227 -0
  148. package/fesm2022/sdcorejs-angular-services-query-params.mjs.map +1 -0
  149. package/fesm2022/sdcorejs-angular-utilities-extensions.mjs +24 -1
  150. package/fesm2022/sdcorejs-angular-utilities-extensions.mjs.map +1 -1
  151. package/modules/pattern/README.md +5 -4
  152. package/modules/pattern/docs/detail.md +18 -9
  153. package/modules/pattern/docs/drawer.md +185 -83
  154. package/modules/pattern/docs/header-actions.md +1 -1
  155. package/modules/pattern/docs/list.md +3 -3
  156. package/modules/pattern/docs/states.md +1 -1
  157. package/modules/pattern/features/category/components/create-side-drawer/create-side-drawer.component.ts +12 -16
  158. package/modules/pattern/features/category/components/update-side-drawer/update-side-drawer.component.ts +58 -29
  159. package/modules/pattern/features/category/pages/list/list.component.html +11 -3
  160. package/modules/pattern/features/category/pages/list/list.component.ts +36 -10
  161. package/modules/pattern/features/category/routes.ts +5 -22
  162. package/modules/pattern/features/customer/components/create-side-drawer/create-side-drawer.component.ts +7 -11
  163. package/modules/pattern/features/customer/components/detail-side-drawer/detail-side-drawer.component.ts +70 -27
  164. package/modules/pattern/features/customer/components/summary-cards/summary-cards.component.ts +9 -53
  165. package/modules/pattern/features/customer/components/update-side-drawer/update-side-drawer.component.ts +53 -19
  166. package/modules/pattern/features/customer/entity.resolver.ts +1 -1
  167. package/modules/pattern/features/customer/pages/list/list.component.html +18 -3
  168. package/modules/pattern/features/customer/pages/list/list.component.ts +43 -16
  169. package/modules/pattern/features/customer/pages/profile/profile.component.ts +17 -8
  170. package/modules/pattern/features/customer/routes.ts +6 -27
  171. package/modules/pattern/features/order/components/approval-steps/approval-steps.component.ts +37 -56
  172. package/modules/pattern/features/order/components/summary-cards/summary-cards.component.ts +14 -76
  173. package/modules/pattern/features/order/pages/create/create.component.ts +7 -3
  174. package/modules/pattern/features/order/pages/detail/detail.component.ts +1 -1
  175. package/modules/pattern/features/order/pages/update/update.component.ts +5 -2
  176. package/package.json +17 -5
  177. package/types/sdcorejs-angular-components-anchor.d.ts +6 -1
  178. package/types/sdcorejs-angular-components-button.d.ts +7 -1
  179. package/types/sdcorejs-angular-components-calendar.d.ts +1092 -0
  180. package/types/sdcorejs-angular-components-card.d.ts +247 -9
  181. package/types/sdcorejs-angular-components-kanban.d.ts +191 -74
  182. package/types/sdcorejs-angular-components-modal.d.ts +10 -1
  183. package/types/sdcorejs-angular-components-query-bar.d.ts +176 -36
  184. package/types/sdcorejs-angular-components-quick-action.d.ts +65 -1
  185. package/types/sdcorejs-angular-components-scheduler.d.ts +544 -0
  186. package/types/sdcorejs-angular-components-tab.d.ts +6 -1
  187. package/types/sdcorejs-angular-components-table.d.ts +56 -7
  188. package/types/sdcorejs-angular-components-timeline.d.ts +216 -0
  189. package/types/sdcorejs-angular-components-tree.d.ts +119 -6
  190. package/types/sdcorejs-angular-components.d.ts +3 -1
  191. package/types/sdcorejs-angular-directives.d.ts +4 -2
  192. package/types/sdcorejs-angular-forms-date.d.ts +2 -0
  193. package/types/sdcorejs-angular-forms-directives.d.ts +1 -1
  194. package/types/sdcorejs-angular-i18n.d.ts +121 -9
  195. package/types/sdcorejs-angular-modules-layout.d.ts +2 -1
  196. package/types/sdcorejs-angular-services-confirm.d.ts +22 -81
  197. package/types/sdcorejs-angular-services-query-params.d.ts +67 -0
  198. package/types/sdcorejs-angular-utilities-extensions.d.ts +10 -1
  199. package/fesm2022/sdcorejs-angular-components-history.mjs +0 -54
  200. package/fesm2022/sdcorejs-angular-components-history.mjs.map +0 -1
  201. package/fesm2022/sdcorejs-angular-modules-pattern-create-side-drawer.component-CRc9T7rb.mjs +0 -146
  202. package/fesm2022/sdcorejs-angular-modules-pattern-create-side-drawer.component-CRc9T7rb.mjs.map +0 -1
  203. package/fesm2022/sdcorejs-angular-modules-pattern-create-side-drawer.component-Cz-MjRG0.mjs +0 -148
  204. package/fesm2022/sdcorejs-angular-modules-pattern-create-side-drawer.component-Cz-MjRG0.mjs.map +0 -1
  205. package/fesm2022/sdcorejs-angular-modules-pattern-create.component-RBvVv88D.mjs.map +0 -1
  206. package/fesm2022/sdcorejs-angular-modules-pattern-customer.model-C3fr4yNw.mjs +0 -18
  207. package/fesm2022/sdcorejs-angular-modules-pattern-customer.model-C3fr4yNw.mjs.map +0 -1
  208. package/fesm2022/sdcorejs-angular-modules-pattern-detail-side-drawer.component-DzDAX3B7.mjs +0 -152
  209. package/fesm2022/sdcorejs-angular-modules-pattern-detail-side-drawer.component-DzDAX3B7.mjs.map +0 -1
  210. package/fesm2022/sdcorejs-angular-modules-pattern-detail.component-CcpYULut.mjs.map +0 -1
  211. package/fesm2022/sdcorejs-angular-modules-pattern-general-information-form.component-D8-WXUAE.mjs +0 -92
  212. package/fesm2022/sdcorejs-angular-modules-pattern-general-information-form.component-D8-WXUAE.mjs.map +0 -1
  213. package/fesm2022/sdcorejs-angular-modules-pattern-general-information-form.component-DHTxzjRN.mjs +0 -242
  214. package/fesm2022/sdcorejs-angular-modules-pattern-general-information-form.component-DHTxzjRN.mjs.map +0 -1
  215. package/fesm2022/sdcorejs-angular-modules-pattern-general-information-view.component-CTgHdGeQ.mjs +0 -72
  216. package/fesm2022/sdcorejs-angular-modules-pattern-general-information-view.component-CTgHdGeQ.mjs.map +0 -1
  217. package/fesm2022/sdcorejs-angular-modules-pattern-list.component-BjehcQEk.mjs +0 -172
  218. package/fesm2022/sdcorejs-angular-modules-pattern-list.component-BjehcQEk.mjs.map +0 -1
  219. package/fesm2022/sdcorejs-angular-modules-pattern-list.component-CNVqk3JC.mjs.map +0 -1
  220. package/fesm2022/sdcorejs-angular-modules-pattern-list.component-jB3E20UF.mjs +0 -120
  221. package/fesm2022/sdcorejs-angular-modules-pattern-list.component-jB3E20UF.mjs.map +0 -1
  222. package/fesm2022/sdcorejs-angular-modules-pattern-pattern-source-viewer-BqHwKfoc.mjs.map +0 -1
  223. package/fesm2022/sdcorejs-angular-modules-pattern-pattern-source.generated-CIiLOizq.mjs.map +0 -1
  224. package/fesm2022/sdcorejs-angular-modules-pattern-profile.component-Dxw7Ix9d.mjs.map +0 -1
  225. package/fesm2022/sdcorejs-angular-modules-pattern-routes-BWZxOMhB.mjs +0 -74
  226. package/fesm2022/sdcorejs-angular-modules-pattern-routes-BWZxOMhB.mjs.map +0 -1
  227. package/fesm2022/sdcorejs-angular-modules-pattern-routes-CophQH_L.mjs +0 -100
  228. package/fesm2022/sdcorejs-angular-modules-pattern-routes-CophQH_L.mjs.map +0 -1
  229. package/fesm2022/sdcorejs-angular-modules-pattern-update-side-drawer.component-BT2PzXTG.mjs +0 -135
  230. package/fesm2022/sdcorejs-angular-modules-pattern-update-side-drawer.component-BT2PzXTG.mjs.map +0 -1
  231. package/fesm2022/sdcorejs-angular-modules-pattern-update-side-drawer.component-qmGn2tCI.mjs +0 -146
  232. package/fesm2022/sdcorejs-angular-modules-pattern-update-side-drawer.component-qmGn2tCI.mjs.map +0 -1
  233. package/fesm2022/sdcorejs-angular-modules-pattern-update.component-CUgQPcR4.mjs.map +0 -1
  234. package/modules/pattern/features/category/entity.resolver.ts +0 -27
  235. package/types/sdcorejs-angular-components-history.d.ts +0 -23
@@ -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, InjectionToken, viewChildren, ViewChild, Renderer2, NgZone, contentChild } 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, 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, SdButtonItemDivider } from '@sdcorejs/angular/components/button';
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$1 from '@angular/material/form-field';
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$2 from '@angular/forms';
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) {
@@ -650,6 +649,9 @@ class TableQuickSearchComponent {
650
649
  ...(ngDevMode ? [undefined, { debugName: "autoId" }] : /* istanbul ignore next */ []));
651
650
  rightTemplate = input(/* @ts-ignore */
652
651
  ...(ngDevMode ? [undefined, { debugName: "rightTemplate" }] : /* istanbul ignore next */ []));
652
+ /** Id of the table's required hint (in its empty block); described by it while a required filter is empty. */
653
+ requiredHintId = input(/* @ts-ignore */
654
+ ...(ngDevMode ? [undefined, { debugName: "requiredHintId" }] : /* istanbul ignore next */ []));
653
655
  valueChange = output();
654
656
  term = signal('', /* @ts-ignore */
655
657
  ...(ngDevMode ? [{ debugName: "term" }] : /* istanbul ignore next */ []));
@@ -697,7 +699,7 @@ class TableQuickSearchComponent {
697
699
  item.onChange?.(value);
698
700
  }
699
701
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: TableQuickSearchComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
700
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", 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 + (_valid ? '-hint' : '-required')\"\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@if (!_valid) {\n <p class=\"sd-quick-search-hint\" [id]=\"_inputId + '-required'\">\n {{ 'core.component.table.quick-search.required' | sdTranslate }}\n </p>\n}\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}.sd-quick-search-hint{margin:6px 0 0;font-size:var(--sd-font-size-12, 12px);line-height:var(--sd-line-height-18, 18px);color:var(--sd-text-secondary, #626872)}@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 });
702
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", 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 });
701
703
  }
702
704
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: TableQuickSearchComponent, decorators: [{
703
705
  type: Component,
@@ -710,8 +712,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImpor
710
712
  FilterValuesPipe,
711
713
  _SdSearchField,
712
714
  _SdSearchFieldInputDirective,
713
- ], 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 + (_valid ? '-hint' : '-required')\"\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@if (!_valid) {\n <p class=\"sd-quick-search-hint\" [id]=\"_inputId + '-required'\">\n {{ 'core.component.table.quick-search.required' | sdTranslate }}\n </p>\n}\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}.sd-quick-search-hint{margin:6px 0 0;font-size:var(--sd-font-size-12, 12px);line-height:var(--sd-line-height-18, 18px);color:var(--sd-text-secondary, #626872)}@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"] }]
714
- }], 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"] }] } });
715
+ ], 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"] }]
716
+ }], 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"] }] } });
715
717
 
716
718
  /**
717
719
  * Leaf columns: each grouped header (`type: 'children'`) is replaced by its children. Filtering, sorting and the
@@ -808,13 +810,13 @@ const valuesField = (type, option, items = option.items) => type === 'lazy-value
808
810
  : { type, option: { items, valueField: option.valueField, displayField: option.displayField } };
809
811
  /**
810
812
  * `aria-haspopup` of the header filter icon: what `SdQueryBar.openField` shows for `field` (same steps as `beginBuild`).
811
- * The popover editor opens the chip menu. The inline editor only focuses an existing chip; for a field without a chip it
813
+ * 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
812
814
  * builds one, which opens the operator menu, or the value picker of a values / date field (a date skips the operator
813
815
  * step when its default operator is allowed).
814
816
  */
815
817
  const sdTableQueryTriggerPopup = (field, editor, hasChip) => {
816
818
  if (editor === 'popover')
817
- return 'menu';
819
+ return 'dialog';
818
820
  if (hasChip)
819
821
  return null;
820
822
  const allowed = sdQueryAllowedOperators(field);
@@ -1355,6 +1357,81 @@ const sdTableMobileFilterClear = (item, value, ctx) => {
1355
1357
  return next;
1356
1358
  };
1357
1359
 
1360
+ /**
1361
+ * Deep copy of a filter value for a working copy (mobile filter drawer).
1362
+ * 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
1363
+ * đổ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.
1364
+ */
1365
+ const cloneTableFilterValue = (value) => {
1366
+ if (value === null || value === undefined)
1367
+ return {};
1368
+ return copy(value);
1369
+ };
1370
+ const copy = (value) => {
1371
+ if (value instanceof Date)
1372
+ return new Date(value.getTime());
1373
+ if (Array.isArray(value))
1374
+ return value.map(item => copy(item));
1375
+ if (value && typeof value === 'object' && Object.getPrototypeOf(value) === Object.prototype) {
1376
+ const result = {};
1377
+ for (const key of Object.keys(value))
1378
+ result[key] = copy(value[key]);
1379
+ return result;
1380
+ }
1381
+ return value;
1382
+ };
1383
+ const same$1 = (a, b) => {
1384
+ if (a === b)
1385
+ return true;
1386
+ try {
1387
+ return Utilities.hash({ value: a }) === Utilities.hash({ value: b });
1388
+ }
1389
+ catch {
1390
+ return false;
1391
+ }
1392
+ };
1393
+ const safely = (callback) => {
1394
+ try {
1395
+ callback();
1396
+ }
1397
+ catch (error) {
1398
+ // why: callback của app lỗi không được chặn các callback còn lại hay việc đóng drawer.
1399
+ console.error(error);
1400
+ }
1401
+ };
1402
+ /**
1403
+ * Callbacks of the filters a commit changed, for UIs that edit a working copy and write it once (mobile filter
1404
+ * drawer). The desktop controls call them on each change; here they run once per changed filter, after the write.
1405
+ * - external filter `onChange(value)` — every type except `custom` (its template owns its events);
1406
+ * - `filter.operatorChange(column, operator)` for a column whose operator changed;
1407
+ * - column `filter.onChange(value, column, columnFilter)` only when `columnOnChange(column)` says so (a control that
1408
+ * already called it while editing, such as `column-filter`, must not call it twice).
1409
+ */
1410
+ const runTableFilterCallbacks = (args) => {
1411
+ const { previous, next } = args;
1412
+ for (const item of args.externalFilters ?? []) {
1413
+ if (item.type === 'custom' || !item.onChange)
1414
+ continue;
1415
+ const value = next?.externalFilter?.[item.field];
1416
+ if (same$1(previous?.externalFilter?.[item.field], value))
1417
+ continue;
1418
+ safely(() => item.onChange(value));
1419
+ }
1420
+ for (const column of args.columns ?? []) {
1421
+ const operator = next?.columnOperator?.[column.field];
1422
+ if (args.operatorChange && operator && !same$1(previous?.columnOperator?.[column.field], operator)) {
1423
+ safely(() => args.operatorChange(column, operator));
1424
+ }
1425
+ const onChange = column.filter?.onChange;
1426
+ if (!onChange || !args.columnOnChange?.(column))
1427
+ continue;
1428
+ const value = next?.columnFilter?.[column.field];
1429
+ if (same$1(previous?.columnFilter?.[column.field], value))
1430
+ continue;
1431
+ safely(() => onChange(value, column, next?.columnFilter ?? {}));
1432
+ }
1433
+ };
1434
+
1358
1435
  /** Drag distance after which a released handle closes the sheet. */
1359
1436
  const SD_TABLE_SHEET_DISMISS_DISTANCE = 80;
1360
1437
  /**
@@ -1567,7 +1644,7 @@ class ColumnFilterComponent {
1567
1644
  if (!col?.filter?.disabled && col?.filter?.operator?.enable) {
1568
1645
  const out = [];
1569
1646
  for (const value of col.filter.operator.list ?? []) {
1570
- const entry = OPERATORS.find(e => e.value === value);
1647
+ const entry = OPERATORS$1.find(e => e.value === value);
1571
1648
  if (entry)
1572
1649
  out.push(entry);
1573
1650
  }
@@ -1926,14 +2003,14 @@ class SdTableMobileFilterFieldComponent {
1926
2003
  });
1927
2004
  }
1928
2005
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: SdTableMobileFilterFieldComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1929
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", 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 });
2006
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", 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 });
1930
2007
  }
1931
2008
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: SdTableMobileFilterFieldComponent, decorators: [{
1932
2009
  type: Component,
1933
2010
  args: [{ selector: 'sd-table-mobile-filter-field', changeDetection: ChangeDetectionStrategy.OnPush, imports: [
1934
2011
  NgTemplateOutlet,
1935
- MatButtonModule,
1936
- MatMenuModule,
2012
+ SdButton,
2013
+ SdButtonItem,
1937
2014
  SdCheckbox,
1938
2015
  SdDate,
1939
2016
  SdDatetime,
@@ -1943,10 +2020,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImpor
1943
2020
  SdIcon,
1944
2021
  SdTranslatePipe,
1945
2022
  ColumnFilterComponent,
1946
- ], 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"] }]
2023
+ ], 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"] }]
1947
2024
  }], 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"] }] } });
1948
2025
 
1949
- const clone$1 = (value) => (value ? JSON.parse(JSON.stringify(value)) : value);
1950
2026
  /**
1951
2027
  * Sheet of one filter, opened from its chip (handoff table-mobile 4). Works on a copy: Apply writes that filter and
1952
2028
  * reads once; Cancel, the scrim, a swipe down, Escape and Back drop the copy.
@@ -1989,7 +2065,7 @@ class SdTableMobileFieldSheetComponent {
1989
2065
  if (!register || !item.source)
1990
2066
  return;
1991
2067
  this.item.set(item);
1992
- this.working.set(clone$1(register.value.get()));
2068
+ this.working.set(cloneTableFilterValue(register.value.get()));
1993
2069
  this.revision.update(value => value + 1);
1994
2070
  // why: render the title first; Material puts the focus on the title (cdkFocusInitial) as soon as the sheet attaches.
1995
2071
  this.#changes.detectChanges();
@@ -2034,6 +2110,15 @@ class SdTableMobileFieldSheetComponent {
2034
2110
  }
2035
2111
  this.sheet().close();
2036
2112
  register.value.set(next);
2113
+ // 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.
2114
+ runTableFilterCallbacks({
2115
+ previous: current,
2116
+ next,
2117
+ externalFilters: source.external ? [source.external] : [],
2118
+ columns: source.column ? [source.column] : [],
2119
+ operatorChange: this.table().tableOption()?.filter?.operatorChange,
2120
+ columnOnChange: () => true,
2121
+ });
2037
2122
  }
2038
2123
  /** Every close path ends here: drop the history entry the sheet pushed and the copy. */
2039
2124
  onClosed() {
@@ -2045,11 +2130,11 @@ class SdTableMobileFieldSheetComponent {
2045
2130
  this.revision.update(value => value + 1);
2046
2131
  }
2047
2132
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: SdTableMobileFieldSheetComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2048
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", 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 });
2133
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", 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 });
2049
2134
  }
2050
2135
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: SdTableMobileFieldSheetComponent, decorators: [{
2051
2136
  type: Component,
2052
- 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"] }]
2137
+ 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"] }]
2053
2138
  }], 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 }] }] } });
2054
2139
 
2055
2140
  const NO_DATA = ['NULL', 'NOT_NULL'];
@@ -2790,11 +2875,11 @@ class SdTableMobileToolsSheetComponent {
2790
2875
  pending?.run?.();
2791
2876
  }
2792
2877
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: SdTableMobileToolsSheetComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2793
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", 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 });
2878
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", 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 });
2794
2879
  }
2795
2880
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: SdTableMobileToolsSheetComponent, decorators: [{
2796
2881
  type: Component,
2797
- 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"] }]
2882
+ 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"] }]
2798
2883
  }], 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 }] }] } });
2799
2884
 
2800
2885
  /**
@@ -2875,11 +2960,11 @@ class SdTableMobileSortSheetComponent {
2875
2960
  sort.sortChange.emit({ active, direction });
2876
2961
  }
2877
2962
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: SdTableMobileSortSheetComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2878
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.1.5", 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 });
2963
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.1.5", 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 });
2879
2964
  }
2880
2965
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: SdTableMobileSortSheetComponent, decorators: [{
2881
2966
  type: Component,
2882
- 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"] }]
2967
+ 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"] }]
2883
2968
  }], 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 }] }] } });
2884
2969
 
2885
2970
  /**
@@ -3204,7 +3289,7 @@ class SdTableMobileActionsComponent {
3204
3289
  owner.focus();
3205
3290
  }
3206
3291
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: SdTableMobileActionsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
3207
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", 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 });
3292
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", 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 });
3208
3293
  }
3209
3294
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: SdTableMobileActionsComponent, decorators: [{
3210
3295
  type: Component,
@@ -4197,7 +4282,7 @@ class SdTableUnknownTotalPaginator {
4197
4282
  this.page.emit({ pageIndex: 0, pageSize });
4198
4283
  }
4199
4284
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: SdTableUnknownTotalPaginator, deps: [], target: i0.ɵɵFactoryTarget.Component });
4200
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", 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$1.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 });
4285
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", 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 });
4201
4286
  }
4202
4287
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: SdTableUnknownTotalPaginator, decorators: [{
4203
4288
  type: Component,
@@ -5030,6 +5115,9 @@ class ExternalFilterComponent {
5030
5115
  };
5031
5116
  onCheckboxChange = (event, externalFilter) => {
5032
5117
  event?.stopPropagation();
5118
+ // 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ó.
5119
+ if (externalFilter.required)
5120
+ return;
5033
5121
  const next = { ...this.inlineExternal() };
5034
5122
  next[externalFilter.field] = !next[externalFilter.field];
5035
5123
  this.inlineExternal.set(next);
@@ -5057,14 +5145,12 @@ class ExternalFilterComponent {
5057
5145
  });
5058
5146
  };
5059
5147
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: ExternalFilterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
5060
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", 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 });
5148
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", 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 });
5061
5149
  }
5062
5150
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: ExternalFilterComponent, decorators: [{
5063
5151
  type: Component,
5064
5152
  args: [{ selector: 'external-filter', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [
5065
5153
  CommonModule,
5066
- MatMenuModule,
5067
- MatCheckboxModule,
5068
5154
  SdSection,
5069
5155
  SdInput,
5070
5156
  SdInputNumber,
@@ -5073,13 +5159,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImpor
5073
5159
  SdDatetime,
5074
5160
  SdDateRange,
5075
5161
  SdButton,
5162
+ SdButtonItem,
5076
5163
  FilterValuesPipe,
5077
- SdCheckbox,
5078
5164
  SdTranslatePipe,
5079
- ], 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"] }]
5165
+ ], 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"] }]
5080
5166
  }], 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 }] }] } });
5081
5167
 
5082
- const clone = (value) => (value ? JSON.parse(JSON.stringify(value)) : value);
5083
5168
  /**
5084
5169
  * Filter sheet of the phone (handoff table-mobile 5): one `sd-modal` bottom sheet with two levels — the list of
5085
5170
  * filters with their summary, and the page of one filter. Works on a copy of the filter register: Done keeps the page's
@@ -5195,10 +5280,10 @@ class MobileFilterComponent {
5195
5280
  open = () => {
5196
5281
  const reg = this.filterRegister();
5197
5282
  const val = reg?.value.get();
5198
- const cloned = (o) => (o ? clone(o) : {});
5199
- this.workingColumnFilter.set(cloned(val?.columnFilter));
5200
- this.workingColumnOperator.set(cloned(val?.columnOperator));
5201
- this.workingExternalFilter.set(cloned(val?.externalFilter));
5283
+ // 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.
5284
+ this.workingColumnFilter.set(cloneTableFilterValue(val?.columnFilter));
5285
+ this.workingColumnOperator.set(cloneTableFilterValue(val?.columnOperator));
5286
+ this.workingExternalFilter.set(cloneTableFilterValue(val?.externalFilter));
5202
5287
  this.page.set(undefined);
5203
5288
  this.revision.update(value => value + 1);
5204
5289
  this.sheet().open();
@@ -5224,8 +5309,22 @@ class MobileFilterComponent {
5224
5309
  this.#leave(item);
5225
5310
  }
5226
5311
  onApply = () => {
5227
- this.filterRegister()?.value.set(this.working());
5312
+ const register = this.filterRegister();
5313
+ const previous = cloneTableFilterValue(register?.value.get());
5314
+ const next = this.working();
5315
+ register?.value.set(next);
5228
5316
  this.sheet().close();
5317
+ // 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,
5318
+ // 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.
5319
+ const customColumns = new Set((this.model()?.items ?? []).flatMap(item => (item.custom?.kind === 'column' ? [item.custom.column.field] : [])));
5320
+ runTableFilterCallbacks({
5321
+ previous,
5322
+ next,
5323
+ externalFilters: this.externalFilterItems(),
5324
+ columns: this.columnItems(),
5325
+ operatorChange: this.filter()?.operatorChange,
5326
+ columnOnChange: column => !customColumns.has(column.field),
5327
+ });
5229
5328
  };
5230
5329
  onCancel = () => {
5231
5330
  // Local working state — không ghi gì khi cancel, chỉ đóng sheet.
@@ -5284,11 +5383,11 @@ class MobileFilterComponent {
5284
5383
  }, { injector: this.#injector });
5285
5384
  }
5286
5385
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: MobileFilterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
5287
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", 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 });
5386
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", 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 });
5288
5387
  }
5289
5388
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: MobileFilterComponent, decorators: [{
5290
5389
  type: Component,
5291
- 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"] }]
5390
+ 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"] }]
5292
5391
  }], 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 }] }] } });
5293
5392
 
5294
5393
  class SelectorActionComponent {
@@ -5332,18 +5431,6 @@ class SelectorActionComponent {
5332
5431
  // ==========================================
5333
5432
  // 4. HANDLERS
5334
5433
  // ==========================================
5335
- directActions = computed(() => this.actions()
5336
- .map((action, index) => ({ action, index }))
5337
- .slice(0, 2), /* @ts-ignore */
5338
- ...(ngDevMode ? [{ debugName: "directActions" }] : /* istanbul ignore next */ []));
5339
- overflowActions = computed(() => this.actions()
5340
- .map((action, index) => ({ action, index }))
5341
- .slice(2), /* @ts-ignore */
5342
- ...(ngDevMode ? [{ debugName: "overflowActions" }] : /* istanbul ignore next */ []));
5343
- moreLabel = computed(() => this.#i18n.t('core.component.table.selector-action.more'), /* @ts-ignore */
5344
- ...(ngDevMode ? [{ debugName: "moreLabel" }] : /* istanbul ignore next */ []));
5345
- clearLabel = computed(() => this.#i18n.t('core.component.table.clear-selection'), /* @ts-ignore */
5346
- ...(ngDevMode ? [{ debugName: "clearLabel" }] : /* istanbul ignore next */ []));
5347
5434
  onClear = () => this.clear.emit();
5348
5435
  onClickAction = (action) => {
5349
5436
  if (action?.variant === 'normal' && action.click) {
@@ -5351,23 +5438,13 @@ class SelectorActionComponent {
5351
5438
  }
5352
5439
  };
5353
5440
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: SelectorActionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
5354
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", 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: "@let _autoId = autoId();\n@let _moreLabel = moreLabel();\n@let _direct = directActions();\n@let _overflow = overflowActions();\n@if (opened()) {\n <sd-quick-action opened contained>\n <div class=\"sd-selection-message\" sdMessage role=\"status\">\n <span class=\"sd-selection-icon\" aria-hidden=\"true\"><sd-icon name=\"check_circle_outline\" /></span>\n <span>{{ message() }}</span>\n </div>\n <div class=\"sd-selection-actions\" sdAction>\n @for (entry of _direct; track entry.index) {\n @let action = entry.action;\n @if (action.variant === 'normal') {\n <sd-button\n class=\"sd-selection-direct\"\n size=\"sm\"\n [autoId]=\"_autoId ? _autoId + '-action-' + entry.index : null\"\n [tooltip]=\"action.tooltip\"\n [prefixIcon]=\"action.icon\"\n [color]=\"action.color\"\n [type]=\"action.type || 'light'\"\n [fontSet]=\"action.fontSet\"\n [title]=\"action.title\"\n (click)=\"onClickAction(action)\" />\n } @else {\n <sd-button\n class=\"sd-selection-direct\"\n size=\"sm\"\n [autoId]=\"_autoId ? _autoId + '-action-' + entry.index : null\"\n [tooltip]=\"action.tooltip\"\n [prefixIcon]=\"action.icon || 'more_horiz'\"\n [color]=\"action.color || 'secondary'\"\n [type]=\"action.type || 'light'\"\n [fontSet]=\"action.fontSet\"\n [title]=\"action.title\">\n @for (child of action.children; track $index) {\n <sd-button-item\n [autoId]=\"_autoId ? _autoId + '-action-' + entry.index + '-' + $index : null\"\n [prefixIcon]=\"child.icon\"\n [fontSet]=\"child.fontSet\"\n [color]=\"child.color\"\n [tooltip]=\"child.tooltip\"\n (click)=\"onClickAction(child)\"\n >{{ child.title }}</sd-button-item\n >\n }\n </sd-button>\n }\n }\n @if (_overflow.length) {\n <sd-button\n class=\"sd-selection-more\"\n size=\"sm\"\n suffixIcon=\"more_horiz\"\n [title]=\"_moreLabel\"\n color=\"secondary\"\n type=\"light\"\n [autoId]=\"_autoId ? _autoId + '-more-actions' : null\">\n @for (entry of _overflow; track entry.index) {\n @let action = entry.action;\n @if (action.variant === 'normal') {\n <sd-button-item\n [autoId]=\"_autoId ? _autoId + '-action-' + entry.index : null\"\n [prefixIcon]=\"action.icon\"\n [fontSet]=\"action.fontSet\"\n [color]=\"action.color\"\n [tooltip]=\"action.tooltip\"\n (click)=\"onClickAction(action)\"\n >{{ action.title }}</sd-button-item\n >\n } @else {\n <sd-button-item-divider [title]=\"action.title\" />\n @for (child of action.children; track $index) {\n <sd-button-item\n [autoId]=\"_autoId ? _autoId + '-action-' + entry.index + '-' + $index : null\"\n [prefixIcon]=\"child.icon\"\n [fontSet]=\"child.fontSet\"\n [color]=\"child.color\"\n [tooltip]=\"child.tooltip\"\n (click)=\"onClickAction(child)\"\n >{{ child.title }}</sd-button-item\n >\n }\n }\n }\n </sd-button>\n }\n <button\n type=\"button\"\n class=\"sd-selection-clear\"\n [attr.aria-label]=\"clearLabel()\"\n [attr.data-autoid]=\"_autoId ? 'components-button-' + _autoId + '-clear-selection' : null\"\n (click)=\"onClear()\">\n <sd-icon name=\"close\" aria-hidden=\"true\" />\n </button>\n </div>\n </sd-quick-action>\n}\n", styles: [":host{display:block;flex-shrink:0;min-width:0;padding-inline:8px;box-sizing:border-box}.sd-selection-message{display:flex;align-items:center;gap:8px;min-width:0;font-size:var(--sd-font-size-13, 13px);line-height:var(--sd-line-height-20, 20px)}.sd-selection-message>span:last-child{overflow-wrap:anywhere}.sd-selection-icon{display:flex;align-items:center;justify-content:center;flex:0 0 28px;height:28px;border-radius:var(--sd-radius-8, 8px);background:var(--sd-success-light, #e8f5e9);color:var(--sd-success-dark, #2e7d32)}.sd-selection-icon sd-icon,.sd-selection-icon mat-icon{width:18px;height:18px;font-size:var(--sd-font-size-18, 18px)}.sd-selection-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.sd-selection-clear{display:inline-flex;align-items:center;justify-content:center;flex:0 0 32px;height:32px;border:0;border-radius:var(--sd-radius-8, 8px);color:var(--sd-text-secondary, #62676d);background:transparent;cursor:pointer}.sd-selection-clear:hover{background:var(--sd-surface-variant, #eef0f3)}.sd-selection-clear:focus-visible{outline:var(--sd-focus-ring-width, 2px) solid var(--sd-focus-ring-color, var(--sd-primary));outline-offset:2px}.sd-selection-clear sd-icon,.sd-selection-clear mat-icon{width:18px;height:18px;font-size:var(--sd-font-size-18, 18px)}.sd-selection-menu-heading{padding:6px 12px 4px;color:var(--sd-text-secondary, #62676d);font-size:var(--sd-font-size-12, 12px);font-weight:var(--sd-font-weight-semibold, 600)}:host ::ng-deep sd-quick-action .c-quick-action.contained{flex-wrap:nowrap;gap:16px;padding:10px 12px;margin:8px 0;border:1px solid var(--sd-border, #dfe2e7);border-radius:var(--sd-radius-10, 10px);box-shadow:none}:host ::ng-deep sd-quick-action .c-quick-action.contained .c-quick-action-action{flex:0 0 auto!important}@media(max-width:600px){:host ::ng-deep sd-quick-action .c-quick-action.contained{flex-wrap:wrap;gap:8px}:host ::ng-deep sd-quick-action .c-quick-action.contained .c-quick-action-action{flex:1 1 100%!important}.sd-selection-actions{width:100%;gap:6px}.sd-selection-message{padding-right:36px}.sd-selection-actions sd-button{flex:1 1 auto}:host ::ng-deep .sd-selection-actions sd-button button{width:100%;min-height:40px}.sd-selection-clear{position:absolute;top:4px;right:8px;width:40px;flex-basis:40px;height:40px}}\n"], dependencies: [{ kind: "component", type: SdIcon, selector: "sd-icon", inputs: ["name", "fontIcon", "color", "set", "fontSet", "size", "strokeWidth", "absoluteStrokeWidth", "ariaLabel"] }, { 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: SdButtonItemDivider, selector: "sd-button-item-divider", inputs: ["title"] }, { kind: "component", type: SdQuickAction, selector: "sd-quick-action", inputs: ["opened", "contained"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
5441
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.1.5", 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 });
5355
5442
  }
5356
5443
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: SelectorActionComponent, decorators: [{
5357
5444
  type: Component,
5358
- args: [{ selector: 'selector-action', changeDetection: ChangeDetectionStrategy.OnPush, imports: [SdIcon, SdButton, SdButtonItem, SdButtonItemDivider, SdQuickAction], template: "@let _autoId = autoId();\n@let _moreLabel = moreLabel();\n@let _direct = directActions();\n@let _overflow = overflowActions();\n@if (opened()) {\n <sd-quick-action opened contained>\n <div class=\"sd-selection-message\" sdMessage role=\"status\">\n <span class=\"sd-selection-icon\" aria-hidden=\"true\"><sd-icon name=\"check_circle_outline\" /></span>\n <span>{{ message() }}</span>\n </div>\n <div class=\"sd-selection-actions\" sdAction>\n @for (entry of _direct; track entry.index) {\n @let action = entry.action;\n @if (action.variant === 'normal') {\n <sd-button\n class=\"sd-selection-direct\"\n size=\"sm\"\n [autoId]=\"_autoId ? _autoId + '-action-' + entry.index : null\"\n [tooltip]=\"action.tooltip\"\n [prefixIcon]=\"action.icon\"\n [color]=\"action.color\"\n [type]=\"action.type || 'light'\"\n [fontSet]=\"action.fontSet\"\n [title]=\"action.title\"\n (click)=\"onClickAction(action)\" />\n } @else {\n <sd-button\n class=\"sd-selection-direct\"\n size=\"sm\"\n [autoId]=\"_autoId ? _autoId + '-action-' + entry.index : null\"\n [tooltip]=\"action.tooltip\"\n [prefixIcon]=\"action.icon || 'more_horiz'\"\n [color]=\"action.color || 'secondary'\"\n [type]=\"action.type || 'light'\"\n [fontSet]=\"action.fontSet\"\n [title]=\"action.title\">\n @for (child of action.children; track $index) {\n <sd-button-item\n [autoId]=\"_autoId ? _autoId + '-action-' + entry.index + '-' + $index : null\"\n [prefixIcon]=\"child.icon\"\n [fontSet]=\"child.fontSet\"\n [color]=\"child.color\"\n [tooltip]=\"child.tooltip\"\n (click)=\"onClickAction(child)\"\n >{{ child.title }}</sd-button-item\n >\n }\n </sd-button>\n }\n }\n @if (_overflow.length) {\n <sd-button\n class=\"sd-selection-more\"\n size=\"sm\"\n suffixIcon=\"more_horiz\"\n [title]=\"_moreLabel\"\n color=\"secondary\"\n type=\"light\"\n [autoId]=\"_autoId ? _autoId + '-more-actions' : null\">\n @for (entry of _overflow; track entry.index) {\n @let action = entry.action;\n @if (action.variant === 'normal') {\n <sd-button-item\n [autoId]=\"_autoId ? _autoId + '-action-' + entry.index : null\"\n [prefixIcon]=\"action.icon\"\n [fontSet]=\"action.fontSet\"\n [color]=\"action.color\"\n [tooltip]=\"action.tooltip\"\n (click)=\"onClickAction(action)\"\n >{{ action.title }}</sd-button-item\n >\n } @else {\n <sd-button-item-divider [title]=\"action.title\" />\n @for (child of action.children; track $index) {\n <sd-button-item\n [autoId]=\"_autoId ? _autoId + '-action-' + entry.index + '-' + $index : null\"\n [prefixIcon]=\"child.icon\"\n [fontSet]=\"child.fontSet\"\n [color]=\"child.color\"\n [tooltip]=\"child.tooltip\"\n (click)=\"onClickAction(child)\"\n >{{ child.title }}</sd-button-item\n >\n }\n }\n }\n </sd-button>\n }\n <button\n type=\"button\"\n class=\"sd-selection-clear\"\n [attr.aria-label]=\"clearLabel()\"\n [attr.data-autoid]=\"_autoId ? 'components-button-' + _autoId + '-clear-selection' : null\"\n (click)=\"onClear()\">\n <sd-icon name=\"close\" aria-hidden=\"true\" />\n </button>\n </div>\n </sd-quick-action>\n}\n", styles: [":host{display:block;flex-shrink:0;min-width:0;padding-inline:8px;box-sizing:border-box}.sd-selection-message{display:flex;align-items:center;gap:8px;min-width:0;font-size:var(--sd-font-size-13, 13px);line-height:var(--sd-line-height-20, 20px)}.sd-selection-message>span:last-child{overflow-wrap:anywhere}.sd-selection-icon{display:flex;align-items:center;justify-content:center;flex:0 0 28px;height:28px;border-radius:var(--sd-radius-8, 8px);background:var(--sd-success-light, #e8f5e9);color:var(--sd-success-dark, #2e7d32)}.sd-selection-icon sd-icon,.sd-selection-icon mat-icon{width:18px;height:18px;font-size:var(--sd-font-size-18, 18px)}.sd-selection-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.sd-selection-clear{display:inline-flex;align-items:center;justify-content:center;flex:0 0 32px;height:32px;border:0;border-radius:var(--sd-radius-8, 8px);color:var(--sd-text-secondary, #62676d);background:transparent;cursor:pointer}.sd-selection-clear:hover{background:var(--sd-surface-variant, #eef0f3)}.sd-selection-clear:focus-visible{outline:var(--sd-focus-ring-width, 2px) solid var(--sd-focus-ring-color, var(--sd-primary));outline-offset:2px}.sd-selection-clear sd-icon,.sd-selection-clear mat-icon{width:18px;height:18px;font-size:var(--sd-font-size-18, 18px)}.sd-selection-menu-heading{padding:6px 12px 4px;color:var(--sd-text-secondary, #62676d);font-size:var(--sd-font-size-12, 12px);font-weight:var(--sd-font-weight-semibold, 600)}:host ::ng-deep sd-quick-action .c-quick-action.contained{flex-wrap:nowrap;gap:16px;padding:10px 12px;margin:8px 0;border:1px solid var(--sd-border, #dfe2e7);border-radius:var(--sd-radius-10, 10px);box-shadow:none}:host ::ng-deep sd-quick-action .c-quick-action.contained .c-quick-action-action{flex:0 0 auto!important}@media(max-width:600px){:host ::ng-deep sd-quick-action .c-quick-action.contained{flex-wrap:wrap;gap:8px}:host ::ng-deep sd-quick-action .c-quick-action.contained .c-quick-action-action{flex:1 1 100%!important}.sd-selection-actions{width:100%;gap:6px}.sd-selection-message{padding-right:36px}.sd-selection-actions sd-button{flex:1 1 auto}:host ::ng-deep .sd-selection-actions sd-button button{width:100%;min-height:40px}.sd-selection-clear{position:absolute;top:4px;right:8px;width:40px;flex-basis:40px;height:40px}}\n"] }]
5445
+ 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"] }]
5359
5446
  }], 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"] }] } });
5360
5447
 
5361
- const DEFAULT_TABLE_CONFIG = {
5362
- paginate: {
5363
- pageSize: 20,
5364
- pages: [20, 50, 100, 200],
5365
- },
5366
- };
5367
- const SD_TABLE_CONFIGURATION = new InjectionToken('sd-table.configuration');
5368
-
5369
- const SD_TABLE_LAYOUT = new InjectionToken('SD_TABLE_LAYOUT');
5370
-
5371
5448
  /** The column setup of an option before anyone changes it: every column that is not `hidden`, in option order. */
5372
5449
  const defaultConfiguredTable = (option) => ({
5373
5450
  columns: option?.columns
@@ -5467,7 +5544,6 @@ class ConfigService {
5467
5544
  widthChange$ = this.#widthChange.asObservable();
5468
5545
  storageService = inject(SdStorageService);
5469
5546
  #destroyRef = inject(DestroyRef);
5470
- tableConfiguration = inject(SD_TABLE_CONFIGURATION, { optional: true });
5471
5547
  constructor() {
5472
5548
  this.#destroyRef.onDestroy(() => {
5473
5549
  this.#storage?.destroy();
@@ -6121,7 +6197,7 @@ class ConfigComponent {
6121
6197
  #patch = (field, patch) => this.#update(column => (column.origin.field === field ? { ...column, ...patch } : column));
6122
6198
  #update = (map) => this.configuration.update(cfg => cfg && { ...cfg, columns: cfg.columns?.map(map) });
6123
6199
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: ConfigComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
6124
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", 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" }], changeDetection: i0.ChangeDetectionStrategy.Eager });
6200
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", 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" }], changeDetection: i0.ChangeDetectionStrategy.Eager });
6125
6201
  }
6126
6202
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: ConfigComponent, decorators: [{
6127
6203
  type: Component,
@@ -6151,7 +6227,7 @@ class DesktopCommand {
6151
6227
  _commands = computed(() => this.commands() || [], /* @ts-ignore */
6152
6228
  ...(ngDevMode ? [{ debugName: "_commands" }] : /* istanbul ignore next */ []));
6153
6229
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: DesktopCommand, deps: [], target: i0.ɵɵFactoryTarget.Component });
6154
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", 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 });
6230
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", 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 });
6155
6231
  }
6156
6232
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: DesktopCommand, decorators: [{
6157
6233
  type: Component,
@@ -6437,7 +6513,7 @@ class SdPopupExport {
6437
6513
  return '';
6438
6514
  };
6439
6515
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: SdPopupExport, deps: [], target: i0.ɵɵFactoryTarget.Component });
6440
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.1.5", 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 });
6516
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.1.5", 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 });
6441
6517
  }
6442
6518
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: SdPopupExport, decorators: [{
6443
6519
  type: Component,
@@ -6453,6 +6529,91 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImpor
6453
6529
  args: ['tableOption']
6454
6530
  }], configuration: [{ type: i0.Input, args: [{ isSignal: true, alias: "configuration", required: false }] }] } });
6455
6531
 
6532
+ const DEFAULT_TABLE_CONFIG = {
6533
+ paginate: {
6534
+ pageSize: 20,
6535
+ pages: [20, 50, 100, 200],
6536
+ },
6537
+ filter: {
6538
+ // 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
6539
+ // server (SdConvertToPagingReq) lẫn khi lọc local. boolean / date / datetime / time / values / lazy-values gửi
6540
+ // operator cố định (EQUAL / BETWEEN / IN) nên một danh sách chọn ở đó sẽ không có tác dụng.
6541
+ operator: {
6542
+ list: {
6543
+ string: ['CONTAIN', 'NOT_CONTAIN', 'EQUAL', 'NOT_EQUAL', 'START_WITH', 'END_WITH', 'NULL', 'NOT_NULL'],
6544
+ number: ['EQUAL', 'NOT_EQUAL', 'GREATER_THAN', 'GREATER_OR_EQUAL', 'LESS_THAN', 'LESS_OR_EQUAL', 'NULL', 'NOT_NULL'],
6545
+ },
6546
+ default: {
6547
+ string: 'CONTAIN',
6548
+ number: 'EQUAL',
6549
+ },
6550
+ },
6551
+ },
6552
+ };
6553
+ /**
6554
+ * 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
6555
+ * 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.
6556
+ *
6557
+ * 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à
6558
+ * không khai `default` thì giữ như trước: không operator nào được chọn sẵn.
6559
+ */
6560
+ const resolveTableColumnOperators = (type, configuration, columnList) => {
6561
+ const configured = configuration?.filter?.operator;
6562
+ const builtIn = DEFAULT_TABLE_CONFIG.filter?.operator;
6563
+ const declared = columnList?.length ? columnList : configured?.list?.[type];
6564
+ const list = [...(declared ?? builtIn?.list?.[type] ?? [])];
6565
+ return { list, default: configured?.default?.[type] ?? (declared ? undefined : builtIn?.default?.[type]) };
6566
+ };
6567
+ const isPlainObject$1 = (value) => {
6568
+ if (!value || typeof value !== 'object')
6569
+ return false;
6570
+ const prototype = Object.getPrototypeOf(value);
6571
+ return prototype === Object.prototype || prototype === null;
6572
+ };
6573
+ // 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
6574
+ // 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ợ.
6575
+ const mergeConfiguration = (base, override) => {
6576
+ if (override === undefined)
6577
+ return base;
6578
+ if (!isPlainObject$1(base) || !isPlainObject$1(override))
6579
+ return override;
6580
+ const result = { ...base };
6581
+ for (const [field, value] of Object.entries(override)) {
6582
+ result[field] = mergeConfiguration(result[field], value);
6583
+ }
6584
+ return result;
6585
+ };
6586
+ /**
6587
+ * 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
6588
+ * `SD_UPLOAD_FILE_CONFIGURATION` và `SD_PERMISSION_CONFIGURATION`:
6589
+ * - cấu hình không `key` là mặc định của portal;
6590
+ * - 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;
6591
+ * - `key` không khớp cấu hình nào thì dùng mặc định của portal.
6592
+ *
6593
+ * 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.
6594
+ */
6595
+ const resolveTableConfiguration = (source, key) => {
6596
+ const configurations = (Array.isArray(source) ? source : [source]).filter((configuration) => !!configuration);
6597
+ const seen = new Set();
6598
+ for (const configuration of configurations) {
6599
+ if (seen.has(configuration.key)) {
6600
+ throw new Error(`[sd-table] Duplicate table configuration key: ${configuration.key === undefined ? 'undefined' : configuration.key}`);
6601
+ }
6602
+ seen.add(configuration.key);
6603
+ }
6604
+ const portal = configurations.find(configuration => configuration.key === undefined);
6605
+ const keyed = key == null ? undefined : configurations.find(configuration => configuration.key === key);
6606
+ if (!keyed)
6607
+ return portal ?? null;
6608
+ return portal ? mergeConfiguration(portal, keyed) : keyed;
6609
+ };
6610
+ /**
6611
+ * 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`.
6612
+ */
6613
+ const SD_TABLE_CONFIGURATION = new InjectionToken('sd-table.configuration');
6614
+
6615
+ const SD_TABLE_LAYOUT = new InjectionToken('SD_TABLE_LAYOUT');
6616
+
6456
6617
  class SdTableColumnFilterDefDirective {
6457
6618
  static ngTemplateContextGuard(_dir, _ctx) {
6458
6619
  return true;
@@ -7196,6 +7357,152 @@ const buildColumnWidthMap = (column) => {
7196
7357
  return result;
7197
7358
  };
7198
7359
 
7360
+ const OPERATORS = new Set([
7361
+ 'EQUAL',
7362
+ 'NOT_EQUAL',
7363
+ 'CONTAIN',
7364
+ 'NOT_CONTAIN',
7365
+ 'IN',
7366
+ 'NOT_IN',
7367
+ 'START_WITH',
7368
+ 'NOT_START_WITH',
7369
+ 'END_WITH',
7370
+ 'NOT_END_WITH',
7371
+ 'GREATER_THAN',
7372
+ 'LESS_THAN',
7373
+ 'GREATER_OR_EQUAL',
7374
+ 'LESS_OR_EQUAL',
7375
+ 'BETWEEN',
7376
+ 'NULL',
7377
+ 'NOT_NULL',
7378
+ ]);
7379
+ /** Đúng định dạng `Date#toJSON` — chỉ chuỗi này được đọc lại thành `Date`. */
7380
+ const ISO_DATE = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$/;
7381
+ const isPlainObject = (value) => !!value && typeof value === 'object' && !Array.isArray(value) && !(value instanceof Date);
7382
+ /** Chuẩn hoá để so sánh/ghi: rỗng → null, Date → ISO, khoá object theo thứ tự chữ cái, bỏ `undefined`. */
7383
+ const canonical = (value) => {
7384
+ if (value === undefined || value === null || value === '')
7385
+ return null;
7386
+ if (value instanceof Date)
7387
+ return Number.isNaN(value.getTime()) ? null : value.toJSON();
7388
+ if (Array.isArray(value))
7389
+ return value.length ? value.map(item => canonical(item)) : null;
7390
+ if (isPlainObject(value)) {
7391
+ const entries = Object.keys(value)
7392
+ .sort()
7393
+ .map(key => [key, canonical(value[key])]);
7394
+ // Khoảng ngày không có đầu nào là rỗng.
7395
+ if (('from' in value || 'to' in value) && entries.every(([, item]) => item === null))
7396
+ return null;
7397
+ return Object.fromEntries(entries);
7398
+ }
7399
+ return value;
7400
+ };
7401
+ const same = (a, b) => JSON.stringify(canonical(a)) === JSON.stringify(canonical(b));
7402
+ /** Phần của `current` khác `defaults`; giá trị rỗng ghi `null`. */
7403
+ const diff = (current, defaults) => {
7404
+ const keys = [...new Set([...Object.keys(current), ...Object.keys(defaults)])].sort();
7405
+ const changed = keys.filter(key => !same(current[key], defaults[key]));
7406
+ return changed.length ? Object.fromEntries(changed.map(key => [key, canonical(current[key])])) : undefined;
7407
+ };
7408
+ const serializeTableQueryState = (state, context) => {
7409
+ const { defaults } = context;
7410
+ const encoded = {};
7411
+ if (defaults.quickSearch && state.quickSearch) {
7412
+ const quick = {};
7413
+ if (!same(state.quickSearch.term, defaults.quickSearch.term))
7414
+ quick['t'] = canonical(state.quickSearch.term);
7415
+ const filters = diff(state.quickSearch.filters || {}, defaults.quickSearch.filters || {});
7416
+ if (filters)
7417
+ quick['f'] = filters;
7418
+ if (Object.keys(quick).length)
7419
+ encoded['q'] = quick;
7420
+ }
7421
+ const columnFilter = diff(state.columnFilter, defaults.columnFilter);
7422
+ if (columnFilter)
7423
+ encoded['c'] = columnFilter;
7424
+ const columnOperator = diff(state.columnOperator, defaults.columnOperator);
7425
+ if (columnOperator)
7426
+ encoded['o'] = columnOperator;
7427
+ const externalFilter = diff(state.externalFilter, defaults.externalFilter);
7428
+ if (externalFilter)
7429
+ encoded['e'] = externalFilter;
7430
+ if (state.sort.active && state.sort.direction)
7431
+ encoded['s'] = [state.sort.active, state.sort.direction];
7432
+ if (context.pageIndex && state.pageIndex > 0)
7433
+ encoded['p'] = state.pageIndex + 1;
7434
+ if (state.pageSize !== defaults.pageSize)
7435
+ encoded['z'] = state.pageSize;
7436
+ return Object.keys(encoded).length ? JSON.stringify(encoded) : null;
7437
+ };
7438
+ const isPrimitive = (value) => value === null || value instanceof Date || ['string', 'number', 'boolean'].includes(typeof value);
7439
+ /** Chỉ nhận dạng giá trị mà control lọc tạo ra: primitive, mảng primitive, khoảng `{ from, to }`. */
7440
+ const isFilterValue = (value) => {
7441
+ if (isPrimitive(value))
7442
+ return true;
7443
+ if (Array.isArray(value))
7444
+ return value.every(isPrimitive);
7445
+ if (isPlainObject(value)) {
7446
+ const keys = Object.keys(value);
7447
+ return keys.length > 0 && keys.every(key => (key === 'from' || key === 'to') && isPrimitive(value[key]));
7448
+ }
7449
+ return false;
7450
+ };
7451
+ const pick = (source, allowed, accept, target) => {
7452
+ if (!isPlainObject(source))
7453
+ return target;
7454
+ for (const [key, value] of Object.entries(source)) {
7455
+ if (allowed.has(key) && accept(value, key))
7456
+ target[key] = value;
7457
+ }
7458
+ return target;
7459
+ };
7460
+ const clone = (value) => (value === undefined ? value : structuredClone(value));
7461
+ /** Đọ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. */
7462
+ const parseTableQueryState = (raw, context) => {
7463
+ let encoded;
7464
+ try {
7465
+ encoded = JSON.parse(raw, (_, value) => (typeof value === 'string' && ISO_DATE.test(value) ? new Date(value) : value));
7466
+ }
7467
+ catch {
7468
+ return undefined;
7469
+ }
7470
+ if (!isPlainObject(encoded))
7471
+ return undefined;
7472
+ const { defaults, fields } = context;
7473
+ let quickSearch;
7474
+ if (defaults.quickSearch) {
7475
+ quickSearch = clone(defaults.quickSearch);
7476
+ const quick = encoded['q'];
7477
+ if (isPlainObject(quick)) {
7478
+ if (typeof quick['t'] === 'string')
7479
+ quickSearch.term = quick['t'];
7480
+ pick(quick['f'], fields.quickSearch, isFilterValue, quickSearch.filters);
7481
+ }
7482
+ }
7483
+ const sort = { active: '', direction: '' };
7484
+ const encodedSort = encoded['s'];
7485
+ if (Array.isArray(encodedSort) &&
7486
+ encodedSort.length === 2 &&
7487
+ typeof encodedSort[0] === 'string' &&
7488
+ fields.sort.has(encodedSort[0]) &&
7489
+ (encodedSort[1] === 'asc' || encodedSort[1] === 'desc')) {
7490
+ sort.active = encodedSort[0];
7491
+ sort.direction = encodedSort[1];
7492
+ }
7493
+ const page = encoded['p'];
7494
+ const size = encoded['z'];
7495
+ return {
7496
+ quickSearch,
7497
+ columnFilter: pick(encoded['c'], fields.column, isFilterValue, clone(defaults.columnFilter)),
7498
+ columnOperator: pick(encoded['o'], fields.operator, (value, key) => typeof value === 'string' && OPERATORS.has(value) && !!fields.operator.get(key)?.has(value), clone(defaults.columnOperator)),
7499
+ externalFilter: pick(encoded['e'], fields.external, isFilterValue, clone(defaults.externalFilter)),
7500
+ sort,
7501
+ pageIndex: context.pageIndex && Number.isInteger(page) && page >= 1 ? page - 1 : 0,
7502
+ pageSize: Number.isInteger(size) && context.pageSizes.includes(size) ? size : defaults.pageSize,
7503
+ };
7504
+ };
7505
+
7199
7506
  const sortValue = (value, type, dateTime) => {
7200
7507
  if (value === null || value === undefined || value === '')
7201
7508
  return null;
@@ -8000,6 +8307,12 @@ class SdTable {
8000
8307
  ...(ngDevMode ? [{ debugName: "option" }] : /* istanbul ignore next */ []));
8001
8308
  /** Hide the integrated error region while retaining read state, events and retry. */
8002
8309
  hideReadError = input(false, { ...(ngDevMode ? { debugName: "hideReadError" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
8310
+ /**
8311
+ * Ghi filter (quick search, filter dưới cột + operator, external filter), sort và trang lên query param
8312
+ * `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
8313
+ * bị xoá. Mặc định tắt.
8314
+ */
8315
+ syncQueryParams = input(false, { ...(ngDevMode ? { debugName: "syncQueryParams" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
8003
8316
  sdReadStateChange = output();
8004
8317
  #read = new SdReadChannel('TABLE', state => {
8005
8318
  if (!this.#destroyed) {
@@ -8221,6 +8534,14 @@ class SdTable {
8221
8534
  return this.requireFiltered() ? 'core.component.table.choose-filter-hint' : 'core.component.table.no-data';
8222
8535
  }, /* @ts-ignore */
8223
8536
  ...(ngDevMode ? [{ debugName: "#emptyKey" }] : /* istanbul ignore next */ []));
8537
+ /** Text of that block for the status region: the required hint wins over the title, as on screen. */
8538
+ #emptyText = computed(() => {
8539
+ const key = this.#emptyKey();
8540
+ if (!key)
8541
+ return '';
8542
+ return this.requiredHint() || this.#i18n.t(key);
8543
+ }, /* @ts-ignore */
8544
+ ...(ngDevMode ? [{ debugName: "#emptyText" }] : /* istanbul ignore next */ []));
8224
8545
  /** Rows that fill a table with a fixed height, measured when the skeleton shows. */
8225
8546
  #skeletonFill = signal(undefined, /* @ts-ignore */
8226
8547
  ...(ngDevMode ? [{ debugName: "#skeletonFill" }] : /* istanbul ignore next */ []));
@@ -8504,10 +8825,33 @@ class SdTable {
8504
8825
  ...(ngDevMode ? [{ debugName: "barFilters" }] : /* istanbul ignore next */ []));
8505
8826
  barSearch = signal('', /* @ts-ignore */
8506
8827
  ...(ngDevMode ? [{ debugName: "barSearch" }] : /* istanbul ignore next */ []));
8507
- queryBarHintId = `sd-table-${Utilities.generateUuid()}-query-bar-hint`;
8828
+ /** Id of the required hint in the empty block; `aria-describedby` of empty required chips and of the quick search input. */
8829
+ requiredHintId = `sd-table-${Utilities.generateUuid()}-required-hint`;
8508
8830
  /** Giá trị lọc đã áp dụng, theo lần phát gần nhất của filter register. */
8509
8831
  #appliedFilter = signal(undefined, /* @ts-ignore */
8510
8832
  ...(ngDevMode ? [{ debugName: "#appliedFilter" }] : /* istanbul ignore next */ []));
8833
+ // 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.
8834
+ #queryReady = signal(false, /* @ts-ignore */
8835
+ ...(ngDevMode ? [{ debugName: "#queryReady" }] : /* istanbul ignore next */ []));
8836
+ #queryParamState = _sdQueryParamState({
8837
+ selector: 'sd-table',
8838
+ prefix: 'table',
8839
+ enabled: this.syncQueryParams,
8840
+ autoId: this.autoIdInput,
8841
+ ready: this.#queryReady,
8842
+ state: () => {
8843
+ // 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.
8844
+ this.#appliedFilter();
8845
+ this.sortState();
8846
+ this.pageRevision();
8847
+ this.#pageTarget();
8848
+ if (!this.#queryReady())
8849
+ return null;
8850
+ const context = this.#queryContext();
8851
+ return context ? serializeTableQueryState(this.#currentQueryState(), context) : null;
8852
+ },
8853
+ apply: value => this.#applyQueryState(value, false),
8854
+ });
8511
8855
  #inlineExternal = signal({}, /* @ts-ignore */
8512
8856
  ...(ngDevMode ? [{ debugName: "#inlineExternal" }] : /* istanbul ignore next */ []));
8513
8857
  // 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
@@ -8616,17 +8960,23 @@ class SdTable {
8616
8960
  /** Applied filter value (last emission of the filter register); the phone chips summarise it. */
8617
8961
  mobileFilterValue = computed(() => this.#appliedFilter(), /* @ts-ignore */
8618
8962
  ...(ngDevMode ? [{ debugName: "mobileFilterValue" }] : /* istanbul ignore next */ []));
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. */
8963
+ /**
8964
+ * 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
8965
+ * giữ giá trị của chúng (handoff query bar mục 6.2).
8966
+ */
8620
8967
  #queryBarDirty = computed(() => {
8621
8968
  const ctx = this.queryBarModel();
8622
8969
  const value = this.#appliedFilter();
8623
8970
  const defaults = this.filterRegister?.value.default?.();
8624
8971
  if (!ctx || !value || !defaults)
8625
8972
  return false;
8973
+ const required = new Set(ctx.fields.filter(field => field.required).map(field => field.key));
8626
8974
  const snapshot = (input) => {
8627
8975
  const query = tableFilterToQuery(input, ctx);
8628
8976
  return Utilities.canonicalStringify({
8629
- filters: query.filters.map(filter => [filter.field, filter.operator, filter.data]),
8977
+ filters: query.filters
8978
+ .filter(filter => !required.has(filter.field))
8979
+ .map(filter => [filter.field, filter.operator, filter.data]),
8630
8980
  search: query.search ?? '',
8631
8981
  });
8632
8982
  };
@@ -8639,8 +8989,11 @@ class SdTable {
8639
8989
  if (!ctx || !filter)
8640
8990
  return undefined;
8641
8991
  const autoId = this.autoId();
8992
+ const savedFiltersKey = filter.queryBar?.savedFilters?.key;
8642
8993
  return {
8643
8994
  autoId: autoId ? `${autoId}-query-bar` : undefined,
8995
+ // 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.
8996
+ ...(savedFiltersKey ? { showSavedFilters: true, savedFiltersKey: `sd-table:${savedFiltersKey}` } : {}),
8644
8997
  fields: ctx.fields,
8645
8998
  mode: filter.queryBar?.editor ?? 'inline',
8646
8999
  density: 'compact',
@@ -8651,7 +9004,7 @@ class SdTable {
8651
9004
  appearance: 'flush',
8652
9005
  onClearAll: this.#clearQueryBar,
8653
9006
  clearDisabled: !this.#queryBarDirty(),
8654
- invalidHintId: this.queryBarHintId,
9007
+ invalidHintId: this.requiredHintId,
8655
9008
  };
8656
9009
  }, /* @ts-ignore */
8657
9010
  ...(ngDevMode ? [{ debugName: "queryBarOption" }] : /* istanbul ignore next */ []));
@@ -8680,17 +9033,26 @@ class SdTable {
8680
9033
  openQueryBarField(key, trigger) {
8681
9034
  this.queryBar()?.openField(key, trigger instanceof HTMLElement ? trigger : undefined);
8682
9035
  }
8683
- /** Dòng nhắc dưới thanh: field bắt buộc còn rỗng, kể cả quick filter bị ẩn (vẫn chặn đọc). */
8684
- queryBarHint = computed(() => {
8685
- const labels = (this.queryBar()?.invalidFields() ?? []).map(field => field.label);
9036
+ /**
9037
+ * "Chọn {label} để xem dữ liệu" for the required fields that are still empty, or `''`. The empty block of the body
9038
+ * shows it in place of `choose-filter-hint` (the read is blocked, so that block is on screen): a line under the
9039
+ * filter row would push the table down and back up once the value is chosen.
9040
+ * - Query-bar mode: empty required chips, hidden required quick filters, and required external filters the bar
9041
+ * cannot show (custom, filterDef, exclude…), which still block the read.
9042
+ * - Quick search: empty required quick filters, hidden ones included.
9043
+ * The external filter panel of the default mode marks its own required fields.
9044
+ */
9045
+ requiredHint = computed(() => {
9046
+ const bar = this.queryBarMode();
9047
+ const labels = bar ? (this.queryBar()?.invalidFields() ?? []).map(field => field.label) : [];
8686
9048
  const value = this.quickSearchValue();
8687
9049
  for (const item of this.quickSearchOption()?.filters ?? []) {
8688
9050
  const hidden = isSignal(item.hidden) ? item.hidden() : item.hidden;
8689
- if (item.required && hidden && !hasQuickSearchValue(value.filters?.[item.field]))
9051
+ // The bar lists its own chips; a visible quick filter is one of them.
9052
+ if (item.required && (!bar || hidden) && !hasQuickSearchValue(value.filters?.[item.field]))
8690
9053
  labels.push(item.title);
8691
9054
  }
8692
- // why: external bắt buộc mà thanh không hiện được (custom, filterDef, exclude…) vẫn chặn đọc — phải nói ra.
8693
- const sources = this.queryBarModel()?.sources;
9055
+ const sources = bar ? this.queryBarModel()?.sources : undefined;
8694
9056
  const external = this.#appliedFilter()?.externalFilter;
8695
9057
  for (const item of this.tableOption()?.filter?.externalFilters ?? []) {
8696
9058
  if (item.required && sources && !sources.has(`external:${item.field}`) && !isRawFilterSet(external?.[item.field])) {
@@ -8699,7 +9061,7 @@ class SdTable {
8699
9061
  }
8700
9062
  return labels.length ? this.#i18n.t('core.component.query-bar.required', { label: labels.join(', ') }) : '';
8701
9063
  }, /* @ts-ignore */
8702
- ...(ngDevMode ? [{ debugName: "queryBarHint" }] : /* istanbul ignore next */ []));
9064
+ ...(ngDevMode ? [{ debugName: "requiredHint" }] : /* istanbul ignore next */ []));
8703
9065
  key = Utilities.generateUuid();
8704
9066
  columnOperator = {};
8705
9067
  columnFilter = {};
@@ -8788,7 +9150,16 @@ class SdTable {
8788
9150
  exporting = this.#tableExportService.exporting;
8789
9151
  exportTitle = this.#tableExportService.exportTitle;
8790
9152
  // 2. Public & Optional Token
8791
- tableConfiguration = inject(SD_TABLE_CONFIGURATION, { optional: true });
9153
+ // 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.
9154
+ #tableConfigurations = inject(SD_TABLE_CONFIGURATION, {
9155
+ optional: true,
9156
+ });
9157
+ #tableConfiguration = computed(() => resolveTableConfiguration(this.#tableConfigurations, this.tableOption()?.configurationKey), /* @ts-ignore */
9158
+ ...(ngDevMode ? [{ debugName: "#tableConfiguration" }] : /* istanbul ignore next */ []));
9159
+ /** 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. */
9160
+ get tableConfiguration() {
9161
+ return this.#tableConfiguration();
9162
+ }
8792
9163
  #host = inject(ElementRef).nativeElement;
8793
9164
  #layout = inject(SD_TABLE_LAYOUT, { optional: true });
8794
9165
  /**
@@ -8865,9 +9236,9 @@ class SdTable {
8865
9236
  // the status region says it, also after a read too fast to show the loading layer. Defined after the loading
8866
9237
  // effect, which clears the region when a read starts, so the same text is read again for the next empty result.
8867
9238
  effect(() => {
8868
- const key = this.#emptyKey();
8869
- if (key)
8870
- untracked(() => this.#liveMessage.set(this.#i18n.t(key)));
9239
+ const text = this.#emptyText();
9240
+ if (text)
9241
+ untracked(() => this.#liveMessage.set(text));
8871
9242
  });
8872
9243
  // why: the progress bar sits in .c-container (so it does not scroll sideways with the table) right under the
8873
9244
  // last header row; that row's bottom depends on grouped headers, the filter row and wrapping titles. Only
@@ -9088,10 +9459,8 @@ class SdTable {
9088
9459
  this.#liveMessage.set(this.#i18n.t(count === 1 ? 'core.component.table.loaded-one' : 'core.component.table.loaded', { count }));
9089
9460
  else if (failed && !!this.dataStateTemplate() && !this.hideReadError())
9090
9461
  this.#liveMessage.set(this.#i18n.t('core.component.table.error-occurred'));
9091
- else {
9092
- const empty = this.#emptyKey();
9093
- this.#liveMessage.set(empty ? this.#i18n.t(empty) : '');
9094
- }
9462
+ else
9463
+ this.#liveMessage.set(this.#emptyText());
9095
9464
  }
9096
9465
  /** Skeleton rows that fill a table with a fixed height (fill mode, `style.maxHeight`); `undefined` otherwise. */
9097
9466
  #measureSkeletonFill() {
@@ -9191,6 +9560,7 @@ class SdTable {
9191
9560
  this.#aggregateLoadedChildren.clear();
9192
9561
  this.#aggregateFilteredItems = [];
9193
9562
  this.#configurationReady = false;
9563
+ this.#queryReady.set(false);
9194
9564
  this.#cancelReload();
9195
9565
  this.#hydration = undefined;
9196
9566
  this.#retryConfiguration = undefined;
@@ -9256,36 +9626,43 @@ class SdTable {
9256
9626
  }
9257
9627
  };
9258
9628
  #initConfiguration = (option) => {
9629
+ // 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.
9630
+ const tableConfiguration = resolveTableConfiguration(this.#tableConfigurations, option.configurationKey);
9259
9631
  option.paginate = {
9260
9632
  total: option?.paginate?.total,
9261
9633
  hidden: option?.paginate?.hidden,
9262
- pageSize: option?.paginate?.pageSize ?? this.tableConfiguration?.paginate?.pageSize ?? DEFAULT_TABLE_CONFIG.paginate?.pageSize,
9263
- pages: option?.paginate?.pages ?? this.tableConfiguration?.paginate?.pages ?? DEFAULT_TABLE_CONFIG.paginate?.pages,
9264
- showFirstLastButtons: option?.paginate?.showFirstLastButtons ?? this.tableConfiguration?.paginate?.showFirstLastButtons ?? false,
9634
+ pageSize: option?.paginate?.pageSize ?? tableConfiguration?.paginate?.pageSize ?? DEFAULT_TABLE_CONFIG.paginate?.pageSize,
9635
+ pages: option?.paginate?.pages ?? tableConfiguration?.paginate?.pages ?? DEFAULT_TABLE_CONFIG.paginate?.pages,
9636
+ showFirstLastButtons: option?.paginate?.showFirstLastButtons ?? tableConfiguration?.paginate?.showFirstLastButtons ?? false,
9265
9637
  hidePageSize: option?.paginate?.hidePageSize ?? false,
9266
9638
  };
9267
9639
  option.filter = option.filter || {};
9268
- option.filter.hideInlineFilter = option?.filter?.hideInlineFilter ?? this.tableConfiguration?.filter?.hideInlineFilter;
9269
- option.filter.externalFilterPerRow = option?.filter?.externalFilterPerRow ?? this.tableConfiguration?.filter?.externalFilterPerRow;
9270
- option.filter.manualFilter = option?.filter?.manualFilter ?? this.tableConfiguration?.filter?.manualFilter;
9640
+ option.filter.hideInlineFilter = option?.filter?.hideInlineFilter ?? tableConfiguration?.filter?.hideInlineFilter;
9641
+ option.filter.externalFilterPerRow = option?.filter?.externalFilterPerRow ?? tableConfiguration?.filter?.externalFilterPerRow;
9642
+ option.filter.manualFilter = option?.filter?.manualFilter ?? tableConfiguration?.filter?.manualFilter;
9271
9643
  option.filter.hideExternalFilterToolbar =
9272
- option?.filter?.hideExternalFilterToolbar ?? this.tableConfiguration?.filter?.hideExternalFilterToolbar;
9644
+ option?.filter?.hideExternalFilterToolbar ?? tableConfiguration?.filter?.hideExternalFilterToolbar;
9273
9645
  // 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.
9274
- const filterConfiguration = this.tableConfiguration?.filter;
9646
+ const filterConfiguration = tableConfiguration?.filter;
9275
9647
  if (option.filter.mode === undefined && filterConfiguration?.mode)
9276
9648
  option.filter.mode = filterConfiguration.mode;
9277
9649
  if (option.filter.modeSelectable === undefined && filterConfiguration?.modeSelectable !== undefined) {
9278
9650
  option.filter.modeSelectable = filterConfiguration.modeSelectable;
9279
9651
  }
9280
- if (filterConfiguration?.queryBar)
9281
- option.filter.queryBar = { ...filterConfiguration.queryBar, ...option.filter.queryBar };
9652
+ if (filterConfiguration?.queryBar) {
9653
+ // 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
9654
+ // bảng (handoff query bar panels, Bước 0 điểm 4).
9655
+ const shared = { ...filterConfiguration.queryBar };
9656
+ delete shared.savedFilters;
9657
+ option.filter.queryBar = { ...shared, ...option.filter.queryBar };
9658
+ }
9282
9659
  // why: cột con của header nhóm cũng có filter và operator riêng.
9283
9660
  for (const column of leafColumns(option.columns)) {
9284
9661
  if (column.filter?.operator?.enable) {
9285
- if (!column.filter?.operator?.list?.length) {
9286
- column.filter.operator.list = this.tableConfiguration?.filter?.operator?.list?.[column.type] || [];
9287
- }
9288
- const defaultOperator = this.tableConfiguration?.filter?.operator?.default?.[column.type];
9662
+ // 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.
9663
+ const typeOperators = resolveTableColumnOperators(column.type, tableConfiguration, column.filter.operator.list);
9664
+ column.filter.operator.list = typeOperators.list;
9665
+ const defaultOperator = typeOperators.default;
9289
9666
  if (defaultOperator) {
9290
9667
  this.columnOperator[column.field] = defaultOperator;
9291
9668
  }
@@ -9323,7 +9700,12 @@ class SdTable {
9323
9700
  this.#ref.detectChanges();
9324
9701
  if (!valid())
9325
9702
  return;
9703
+ // syncQueryParams: state trên URL thắng cache và vào ngay lần đọc đầu — không đọc hai lần.
9704
+ const queryValue = this.#queryParamState.value();
9705
+ if (queryValue)
9706
+ this.#applyQueryState(queryValue, true);
9326
9707
  this.#configurationReady = true;
9708
+ this.#queryReady.set(true);
9327
9709
  this.#requestReload(true);
9328
9710
  }
9329
9711
  catch (error) {
@@ -9340,6 +9722,99 @@ class SdTable {
9340
9722
  this.#ref.markForCheck();
9341
9723
  }
9342
9724
  };
9725
+ /** Mặc định và field hợp lệ để serialize/parse state URL; `undefined` khi chưa có filter register. */
9726
+ #queryContext = () => {
9727
+ const option = this.tableOption();
9728
+ if (!option || !this.filterRegister)
9729
+ return undefined;
9730
+ const defaults = this.filterRegister.value.default?.() ?? {};
9731
+ const columns = leafColumns(option.columns);
9732
+ const quickSearch = this.quickSearchOption();
9733
+ const filterEnabled = !option.filter?.disabled;
9734
+ return {
9735
+ defaults: {
9736
+ quickSearch: quickSearch ? (defaults.quickSearch ?? { term: '', filters: {} }) : undefined,
9737
+ columnOperator: defaults.columnOperator || {},
9738
+ columnFilter: defaults.columnFilter || {},
9739
+ externalFilter: defaults.externalFilter || {},
9740
+ pageSize: option.paginate?.pageSize || 50,
9741
+ },
9742
+ // 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ị
9743
+ // `disabled`, bảng không tắt filter) và operator nằm trong danh sách của chính cột đó.
9744
+ fields: {
9745
+ column: new Set(filterEnabled ? columns.filter(column => !column.filter?.disabled).map(column => column.field) : []),
9746
+ operator: new Map(filterEnabled
9747
+ ? columns
9748
+ .filter(column => !column.filter?.disabled && column.filter?.operator?.enable)
9749
+ .map(column => [column.field, new Set(column.filter?.operator?.list ?? [])])
9750
+ : []),
9751
+ external: new Set(filterEnabled ? (option.filter?.externalFilters || []).map(filter => filter.field) : []),
9752
+ quickSearch: new Set((quickSearch?.filters || []).map(filter => filter.field)),
9753
+ sort: new Set(option.sort?.enable ? columns.filter(column => column.sortable).map(column => column.field) : []),
9754
+ },
9755
+ pageSizes: option.paginate?.pages || [],
9756
+ pageIndex: !this.unknownTotal(),
9757
+ };
9758
+ };
9759
+ #currentQueryState = () => {
9760
+ const value = this.filterRegister.value.get();
9761
+ const target = this.unknownTotal() ? this.#unknownTarget() : undefined;
9762
+ const paginator = this.paginator();
9763
+ const { active, direction } = this.sortState();
9764
+ return {
9765
+ quickSearch: this.quickSearchOption() ? value.quickSearch || { term: '', filters: {} } : undefined,
9766
+ columnOperator: value.columnOperator || {},
9767
+ columnFilter: value.columnFilter || {},
9768
+ externalFilter: value.externalFilter || {},
9769
+ sort: { active, direction },
9770
+ pageIndex: target ? target.pageIndex : paginator?.pageIndex || 0,
9771
+ pageSize: target ? target.pageSize : paginator?.pageSize || this.tableOption()?.paginate?.pageSize || 50,
9772
+ };
9773
+ };
9774
+ /**
9775
+ * Á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ì
9776
+ * đọ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ì.
9777
+ */
9778
+ #applyQueryState = (raw, initial) => {
9779
+ const context = this.#queryContext();
9780
+ const parsed = context && parseTableQueryState(raw, context);
9781
+ if (!context || !parsed)
9782
+ return;
9783
+ if (serializeTableQueryState(parsed, context) === serializeTableQueryState(this.#currentQueryState(), context))
9784
+ return;
9785
+ // Giữ reference ổn định cho column-filter (xem #syncColumnFilterInPlace).
9786
+ this.#syncColumnFilterInPlace(parsed.columnFilter);
9787
+ this.filterRegister.value.set({
9788
+ columnOperator: parsed.columnOperator,
9789
+ columnFilter: parsed.columnFilter,
9790
+ externalFilter: parsed.externalFilter,
9791
+ ...(parsed.quickSearch ? { quickSearch: parsed.quickSearch } : {}),
9792
+ // 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.
9793
+ notReload: true,
9794
+ });
9795
+ if (parsed.quickSearch)
9796
+ this.quickSearchControl()?.term.set(parsed.quickSearch.term || '');
9797
+ const sort = this.sort();
9798
+ if (sort) {
9799
+ sort.active = parsed.sort.active;
9800
+ sort.direction = parsed.sort.direction;
9801
+ }
9802
+ this.sortState.set({ ...parsed.sort });
9803
+ if (this.unknownTotal()) {
9804
+ this.#pageTarget.set({ pageIndex: 0, pageSize: parsed.pageSize });
9805
+ }
9806
+ else {
9807
+ const paginator = this.paginator();
9808
+ if (paginator) {
9809
+ paginator.pageSize = parsed.pageSize;
9810
+ paginator.pageIndex = parsed.pageIndex;
9811
+ }
9812
+ }
9813
+ this.pageRevision.update(n => n + 1);
9814
+ this.#ref.markForCheck();
9815
+ if (!initial)
9816
+ this.#requestReload(false);
9817
+ };
9343
9818
  #loadFilterRegister = () => {
9344
9819
  const opt = this.tableOption();
9345
9820
  if (!opt || this.filterRegister)
@@ -10026,19 +10501,55 @@ class SdTable {
10026
10501
  }
10027
10502
  }
10028
10503
  };
10029
- /** 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. */
10504
+ /**
10505
+ * 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à
10506
+ * 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
10507
+ * 6.2). Cột không có cờ bắt buộc.
10508
+ */
10030
10509
  #clearQueryBar = () => {
10031
10510
  if (!this.filterRegister)
10032
10511
  return;
10512
+ const kept = this.#requiredFilterValues();
10513
+ const defaults = this.filterRegister.value.default?.();
10033
10514
  this.#barApplying = true;
10034
10515
  try {
10035
- this.clearFilter();
10516
+ if (!kept || !defaults)
10517
+ this.clearFilter();
10518
+ else {
10519
+ // 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.
10520
+ this.filterRegister.value.set({
10521
+ columnOperator: defaults.columnOperator,
10522
+ columnFilter: defaults.columnFilter,
10523
+ externalFilter: { ...defaults.externalFilter, ...kept.external },
10524
+ ...(defaults.quickSearch
10525
+ ? { quickSearch: { ...defaults.quickSearch, term: '', filters: { ...defaults.quickSearch.filters, ...kept.quick } } }
10526
+ : {}),
10527
+ });
10528
+ this.quickSearchControl()?.term.set('');
10529
+ }
10036
10530
  }
10037
10531
  finally {
10038
10532
  this.#barApplying = false;
10039
10533
  }
10040
10534
  this.tableOption()?.filter?.onClearFilter?.();
10041
10535
  };
10536
+ /** 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ó. */
10537
+ #requiredFilterValues = () => {
10538
+ const filter = this.tableOption()?.filter;
10539
+ const current = this.filterRegister.value.get();
10540
+ const quick = {};
10541
+ const external = {};
10542
+ for (const item of filter?.quickSearch?.filters ?? []) {
10543
+ if (item.required && current.quickSearch?.filters && item.field in current.quickSearch.filters) {
10544
+ quick[item.field] = current.quickSearch.filters[item.field];
10545
+ }
10546
+ }
10547
+ for (const item of filter?.externalFilters ?? []) {
10548
+ if (item.required && current.externalFilter && item.field in current.externalFilter)
10549
+ external[item.field] = current.externalFilter[item.field];
10550
+ }
10551
+ return Object.keys(quick).length || Object.keys(external).length ? { quick, external } : undefined;
10552
+ };
10042
10553
  /**
10043
10554
  * 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
10044
10555
  * `apply` khi người dùng thao tác). Đang mở popover / dựng chip thì hoãn tới khi đóng.
@@ -10474,7 +10985,7 @@ class SdTable {
10474
10985
  this.#refreshAggregate();
10475
10986
  }
10476
10987
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: SdTable, deps: [], target: i0.ɵɵFactoryTarget.Component });
10477
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", 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: [
10988
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", 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: [
10478
10989
  DatePipe,
10479
10990
  DecimalPipe,
10480
10991
  CdkColumnDef,
@@ -10486,7 +10997,7 @@ class SdTable {
10486
10997
  provide: MatPaginatorIntl,
10487
10998
  useClass: SdTablePaginatorIntl,
10488
10999
  },
10489
- ], 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:focus-visible{outline:var(--sd-focus-ring-width, 2px) solid var(--sd-focus-ring-color, var(--sd-primary));outline-offset:2px}:host{display:flex;flex-direction:column;overflow:auto;width:100%;height:100%;--mat-table-row-item-container-height: 36px}: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;-webkit-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;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: [
11000
+ ], 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:focus-visible{outline:var(--sd-focus-ring-width, 2px) solid var(--sd-focus-ring-color, var(--sd-primary));outline-offset:2px}:host{display:flex;flex-direction:column;overflow:auto;width:100%;height:100%;--mat-table-row-item-container-height: 36px}: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;-webkit-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;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: [
10490
11001
  trigger('detailExpand', [
10491
11002
  state('collapsed', style({ height: '0', minHeight: '0', visibility: 'hidden' })),
10492
11003
  state('expanded', style({ height: '*', visibility: 'visible' })),
@@ -10565,8 +11076,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImpor
10565
11076
  SdTableMobileToolsSheetComponent,
10566
11077
  SdTableMobileSortSheetComponent,
10567
11078
  SdTableUnknownTotalPaginator,
10568
- ], 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:focus-visible{outline:var(--sd-focus-ring-width, 2px) solid var(--sd-focus-ring-color, var(--sd-primary));outline-offset:2px}:host{display:flex;flex-direction:column;overflow:auto;width:100%;height:100%;--mat-table-row-item-container-height: 36px}: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;-webkit-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;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"] }]
10569
- }], 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 }] }] } });
11079
+ ], 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:focus-visible{outline:var(--sd-focus-ring-width, 2px) solid var(--sd-focus-ring-color, var(--sd-primary));outline-offset:2px}:host{display:flex;flex-direction:column;overflow:auto;width:100%;height:100%;--mat-table-row-item-container-height: 36px}: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;-webkit-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;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"] }]
11080
+ }], 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 }] }] } });
10570
11081
 
10571
11082
  /**
10572
11083
  * Generated bundle index. Do not edit.