@alfadocs/ui-kit 1.114.0 → 1.115.0

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 (290) hide show
  1. package/dist/_chunks/{actions-cell-renderer-BVn3vDTg.js → actions-cell-renderer-bI27uXXC.js} +2 -2
  2. package/dist/_chunks/{ai-permission-notice-BkgcGmu8.js → ai-permission-notice-C-xR2_iS.js} +2 -2
  3. package/dist/_chunks/{alia-sidebar-CKkg3gc8.js → alia-sidebar-BBxbMRmX.js} +2 -2
  4. package/dist/_chunks/{anamnesis-summary-rows-DaS-j8Jd.js → anamnesis-summary-rows-BZ36ULQk.js} +4 -4
  5. package/dist/_chunks/{antenatal-schedule-timeline-DmlXxevC.js → antenatal-schedule-timeline-va9zx7tJ.js} +11 -11
  6. package/dist/_chunks/{appointment-card-FKOnH1uJ.js → appointment-card-D_-aBrx5.js} +2 -2
  7. package/dist/_chunks/{appointment-timeline-eOi-y8m3.js → appointment-timeline-DxLu3afn.js} +3 -3
  8. package/dist/_chunks/{appointment-tray-C6oBvsG5.js → appointment-tray-BhXOJpIJ.js} +2 -2
  9. package/dist/_chunks/{ar-C4YQVTH6.js → ar-BFvUBJ_g.js} +10 -10
  10. package/dist/_chunks/{balance-badge-cell-BAZynD--.js → balance-badge-cell-CXHihM22.js} +28 -27
  11. package/dist/_chunks/buildMatchPatternFn-jbaE1-W0.js +68 -0
  12. package/dist/_chunks/{calendar-appointment-editor-dialog-iyh9QqNw.js → calendar-appointment-editor-dialog-BVzFi4hH.js} +519 -531
  13. package/dist/_chunks/{care-plan-card-DMjlYlFc.js → care-plan-card-BA3MfdfZ.js} +2 -2
  14. package/dist/_chunks/{care-plan-entry-card-3hguBW45.js → care-plan-entry-card-CUtFZ813.js} +2 -2
  15. package/dist/_chunks/{chart-bddVIElM.js → chart-DebrFZ6L.js} +2 -2
  16. package/dist/_chunks/{chat-container-baxzy8k8.js → chat-container-B83b4hut.js} +2 -2
  17. package/dist/_chunks/checkbox-DV4sNDeB.js +282 -0
  18. package/dist/_chunks/{checkbox-group-eGdv9fZc.js → checkbox-group-EfinQS1h.js} +2 -2
  19. package/dist/_chunks/chevrons-up-down-CgiVAHb7.js +15 -0
  20. package/dist/_chunks/compact-editor-fields-cP6yh7xv.js +21 -0
  21. package/dist/_chunks/{cycle-calculator-Dd-XbKmZ.js → cycle-calculator-C68V9rdH.js} +5 -5
  22. package/dist/_chunks/data-grid-tabs-CsLbIv0h.js +365 -0
  23. package/dist/_chunks/data-table-DXaE2Ret.js +1693 -0
  24. package/dist/_chunks/data-table-tabs-NYLhD8_Z.js +242 -0
  25. package/dist/_chunks/date-locale-OG-MupVD.js +83 -0
  26. package/dist/_chunks/{date-picker-CdhXlgVI.js → date-picker-DBVTj6lO.js} +21 -20
  27. package/dist/_chunks/{date-picker-variants-Dt6UbonG.js → date-picker-variants-J1EeAhIH.js} +601 -678
  28. package/dist/_chunks/date-range-panel-CBFfkgmz.js +62 -0
  29. package/dist/_chunks/{date-range-picker-DCADIR8o.js → date-range-picker-PTRpDkXT.js} +72 -70
  30. package/dist/_chunks/{date-time-picker-CT2bC7-A.js → date-time-picker-CJnqiQoT.js} +22 -21
  31. package/dist/_chunks/{de-B1B3PIgY.js → de-i9wbjGPc.js} +2 -2
  32. package/dist/_chunks/{due-date-calculator-Dl6SyMHO.js → due-date-calculator-C1UA5jpS.js} +6 -6
  33. package/dist/_chunks/{editable-currency-cell-renderer-BUdFMh67.js → editable-currency-cell-renderer-CtlMhLai.js} +3 -3
  34. package/dist/_chunks/{el-iLqGpapg.js → el-Cm-rWthb.js} +20 -20
  35. package/dist/_chunks/{en-GB-CxPRQbD6.js → en-GB-BHn82gW8.js} +11 -10
  36. package/dist/_chunks/en-US-C4QKhzhA.js +46 -0
  37. package/dist/_chunks/{es-Bg1oqwDs.js → es-B_6Z19UA.js} +4 -4
  38. package/dist/_chunks/{face-scheme-DlcQaQVR.js → face-scheme-DkoxiDCh.js} +2 -2
  39. package/dist/_chunks/{file-manager-LG7B_UHB.js → file-manager-DFFExyym.js} +4 -4
  40. package/dist/_chunks/format-ql5WTsYT.js +846 -0
  41. package/dist/_chunks/{fr-DpGxyOGI.js → fr-gTba51QO.js} +7 -7
  42. package/dist/_chunks/funnel-DpPV3Qkd.js +20 -0
  43. package/dist/_chunks/{gestational-age-calculator-DmzYdW5e.js → gestational-age-calculator-60y1RyQL.js} +7 -7
  44. package/dist/_chunks/grid-context-AwsLJRhH.js +46 -0
  45. package/dist/_chunks/{hcg-doubling-Tr72PetS.js → hcg-doubling-CC-dbKE8.js} +6 -5
  46. package/dist/_chunks/{heatmap-CNxCDl0D.js → heatmap-eXdtmEoU.js} +4 -4
  47. package/dist/_chunks/{hi-3Dtsksrw.js → hi-BIHq9ncx.js} +10 -10
  48. package/dist/_chunks/icon-button-group-C9mPK-bX.js +442 -0
  49. package/dist/_chunks/{index-CJE9uQmb.js → index-Bze5jCG_.js} +2 -1
  50. package/dist/_chunks/{isSameWeek-DyVftHWi.js → isSameWeek-CZOtDcsd.js} +2 -2
  51. package/dist/_chunks/{it-Cp0CA13d.js → it-DaCPWJ9Y.js} +11 -11
  52. package/dist/_chunks/{ja-9FOyR1lb.js → ja-BRCpkD95.js} +26 -26
  53. package/dist/_chunks/{kit-extensions-DZJRmDI6.js → kit-extensions-CzG0RmhQ.js} +4 -4
  54. package/dist/_chunks/link-cell-renderer-Ditt5mvT.js +800 -0
  55. package/dist/_chunks/{login-dev-card-D7orCfJT.js → login-dev-card-CPndtWdz.js} +2 -2
  56. package/dist/_chunks/{marketplace-app-shell-CPNVBVLH.js → marketplace-app-shell-CcEHJgDd.js} +2 -2
  57. package/dist/_chunks/match-BATShpSX.js +336 -0
  58. package/dist/_chunks/{nl-sfx-zJgR.js → nl-5tAwYo00.js} +6 -6
  59. package/dist/_chunks/normalizeDates-BBNNIR-v.js +36 -0
  60. package/dist/_chunks/{notes-panel-DXMTObBv.js → notes-panel-BVYG_MJE.js} +2 -2
  61. package/dist/_chunks/{parse-B0s7bY4d.js → parse-BLBWPIgE.js} +63 -61
  62. package/dist/_chunks/{parseISO-DZZ5a-zK.js → parseISO-Dl4T9peU.js} +2 -2
  63. package/dist/_chunks/parts-Wz2LeGnH.js +1113 -0
  64. package/dist/_chunks/{patient-details-DdtXBNjt.js → patient-details-DlT-vpSe.js} +2 -2
  65. package/dist/_chunks/{patient-field-row-D9rb-QJH.js → patient-field-row-B54uzvu-.js} +3 -3
  66. package/dist/_chunks/{patient-summary-card-CGHz-Bvm.js → patient-summary-card-Dy9-CzON.js} +3 -3
  67. package/dist/_chunks/{periodontal-diagnosis-xheWfi4g.js → periodontal-diagnosis-DnZuZD14.js} +2 -2
  68. package/dist/_chunks/{permission-matrix-BJ6sg3Zp.js → permission-matrix-BXmhICzN.js} +3 -3
  69. package/dist/_chunks/{pl-BLh7KO-s.js → pl-mLYbfByR.js} +7 -7
  70. package/dist/_chunks/{pregnancy-dating-BvorzHrd.js → pregnancy-dating-qZpw3zj8.js} +7 -7
  71. package/dist/_chunks/privacy-mask-BlJK51MD.js +78 -0
  72. package/dist/_chunks/privacy-mask-text-B8YfzB7L.js +7 -0
  73. package/dist/_chunks/{pt-CPKOrOLj.js → pt-CgaqtlD9.js} +6 -6
  74. package/dist/_chunks/{radiograph-panel.agent-CXah49KM.js → radiograph-panel.agent-C1LGeX-G.js} +3 -3
  75. package/dist/_chunks/{registration-form-Lw9T7IXr.js → registration-form-DW-0X7S4.js} +2 -2
  76. package/dist/_chunks/{reserved.agent-D2jwJPac.js → reserved.agent-6p3Hm4oH.js} +9 -9
  77. package/dist/_chunks/{rich-text-editor-BLS2cK-u.js → rich-text-editor-efaMWbYz.js} +3 -3
  78. package/dist/_chunks/{ro-Dc-oNqbF.js → ro-CpDg1-8v.js} +2 -2
  79. package/dist/_chunks/{ru-BtNpDZRR.js → ru-B7VMyjud.js} +9 -9
  80. package/dist/_chunks/saved-view-tabs-DLWm88Eq.js +932 -0
  81. package/dist/_chunks/{send-registration-link-form-DfbTjrEK.js → send-registration-link-form-DWxWa_cJ.js} +5 -5
  82. package/dist/_chunks/{sidebar-2VsPlNkZ.js → sidebar-D5DFYN5K.js} +326 -335
  83. package/dist/_chunks/{slot-grid-BhjaLJ0o.js → slot-grid-b4eZXokb.js} +3 -3
  84. package/dist/_chunks/{sq-D4c7olaV.js → sq-B0Ree_9P.js} +2 -2
  85. package/dist/_chunks/subDays-Bsoy023P.js +8 -0
  86. package/dist/_chunks/{sv-Bf_dHPvh.js → sv-D9fP66O7.js} +4 -4
  87. package/dist/_chunks/{tag-DOZGz0fT.js → tag-BNlcEJfE.js} +70 -67
  88. package/dist/_chunks/{task-card-DqVoitRk.js → task-card-BNbkwIYM.js} +2 -2
  89. package/dist/_chunks/{task-editor-D--LwVrg.js → task-editor-CSa6vQ9r.js} +377 -391
  90. package/dist/_chunks/{task-tray-C6j8HVMv.js → task-tray-Bmi9wCHq.js} +2 -2
  91. package/dist/_chunks/{tasks-panel-D6PuF4MQ.js → tasks-panel-CVjY1d7Q.js} +2 -2
  92. package/dist/_chunks/{theme-toggle-Czq3K9jB.js → theme-toggle-CObX2Ffa.js} +2 -2
  93. package/dist/_chunks/toolbar-Bc3pjfG5.js +9907 -0
  94. package/dist/_chunks/{tr-xqQ6cbGY.js → tr-Bcz5LCHZ.js} +2 -2
  95. package/dist/_chunks/{transcript-panel-A781Pkzr.js → transcript-panel-Wr8e4Zgi.js} +2 -2
  96. package/dist/_chunks/{treatment-receipt-pFqWFyD_.js → treatment-receipt-BydbojdD.js} +2 -2
  97. package/dist/_chunks/{use-appointment-details-read-BK_Gw1GG.js → use-appointment-details-read-BMAiQYo6.js} +4 -4
  98. package/dist/_chunks/{voice-control-panel-BGiX4sqB.js → voice-control-panel-Be_c0CQ0.js} +2 -2
  99. package/dist/_chunks/{workflow-webhook-action-CtBn5JvO.js → workflow-webhook-action-DNSe65yd.js} +2 -2
  100. package/dist/_chunks/{zh-CN-C657DBCO.js → zh-CN-B7Ek17US.js} +11 -11
  101. package/dist/agent-catalog.json +717 -6
  102. package/dist/agent-i18n/en.json +50 -2
  103. package/dist/components/_shared/privacy-mask-text.d.ts +4 -0
  104. package/dist/components/_shared/privacy-mask.d.ts +2 -4
  105. package/dist/components/_shared/saved-view-tabs/saved-tab.d.ts +54 -0
  106. package/dist/components/_shared/saved-view-tabs/saved-view-tabs.d.ts +93 -0
  107. package/dist/components/_shared/saved-view-tabs/use-saved-view-tabs.d.ts +59 -0
  108. package/dist/components/_shared/saved-view-tabs/view-adapter.d.ts +69 -0
  109. package/dist/components/_shared/table-filters/calendar-day.d.ts +27 -0
  110. package/dist/components/_shared/table-filters/predicates.d.ts +56 -0
  111. package/dist/components/_shared/table-toolbar/context.d.ts +28 -0
  112. package/dist/components/_shared/table-toolbar/describe-filter.d.ts +42 -0
  113. package/dist/components/_shared/table-toolbar/export-files.d.ts +47 -0
  114. package/dist/components/{data-table/xlsx-export.d.ts → _shared/table-toolbar/export-xlsx.d.ts} +2 -2
  115. package/dist/components/_shared/table-toolbar/parts.d.ts +125 -0
  116. package/dist/components/_shared/table-toolbar/seam.d.ts +261 -0
  117. package/dist/components/ai-permission-notice/index.js +1 -1
  118. package/dist/components/appointment-card/index.js +2 -2
  119. package/dist/components/appointment-details-panel/index.js +1 -1
  120. package/dist/components/appointment-timeline/index.js +1 -1
  121. package/dist/components/booking/index.js +1 -1
  122. package/dist/components/care-plan-card/index.js +1 -1
  123. package/dist/components/care-plan-entry-card/index.js +1 -1
  124. package/dist/components/chart/index.js +1 -1
  125. package/dist/components/chat-container/index.js +1 -1
  126. package/dist/components/checkbox/checkbox.d.ts +66 -6
  127. package/dist/components/checkbox/index.js +1 -1
  128. package/dist/components/checkbox-group/index.js +1 -1
  129. package/dist/components/cycle-calculator/index.js +1 -1
  130. package/dist/components/data-grid/announcer.d.ts +27 -0
  131. package/dist/components/data-grid/body.d.ts +95 -0
  132. package/dist/components/data-grid/columns.d.ts +96 -0
  133. package/dist/components/data-grid/data-grid.agent.d.ts +2 -1
  134. package/dist/components/data-grid/data-grid.d.ts +11 -27
  135. package/dist/components/data-grid/data-grid.variants.d.ts +118 -0
  136. package/dist/components/data-grid/editors.d.ts +8 -0
  137. package/dist/components/data-grid/export-snapshot.d.ts +3 -0
  138. package/dist/components/data-grid/features.d.ts +56 -0
  139. package/dist/components/data-grid/filter-fns.d.ts +23 -0
  140. package/dist/components/data-grid/filters/date-range-panel.d.ts +8 -0
  141. package/dist/components/data-grid/filters/filter-panels.d.ts +27 -0
  142. package/dist/components/data-grid/filters/filter-trigger.d.ts +7 -0
  143. package/dist/components/data-grid/footer.d.ts +10 -0
  144. package/dist/components/data-grid/grid-context.d.ts +18 -0
  145. package/dist/components/data-grid/handle.d.ts +60 -0
  146. package/dist/components/data-grid/header.d.ts +12 -0
  147. package/dist/components/data-grid/index.d.ts +3 -0
  148. package/dist/components/data-grid/index.js +10 -3
  149. package/dist/components/data-grid/keyboard.d.ts +76 -0
  150. package/dist/components/data-grid/pager.d.ts +18 -0
  151. package/dist/components/data-grid/persistence.d.ts +60 -0
  152. package/dist/components/data-grid/print.d.ts +10 -0
  153. package/dist/components/data-grid/responsive.d.ts +36 -0
  154. package/dist/components/data-grid/selection.d.ts +58 -0
  155. package/dist/components/data-grid/state.d.ts +119 -0
  156. package/dist/components/data-grid/states.d.ts +34 -0
  157. package/dist/components/data-grid/toolbar-seam.d.ts +7 -0
  158. package/dist/components/data-grid/toolbar.d.ts +41 -0
  159. package/dist/components/data-grid/types.d.ts +1346 -0
  160. package/dist/components/data-grid/use-data-grid-engine.d.ts +9 -0
  161. package/dist/components/data-grid/virtual-rows.d.ts +43 -0
  162. package/dist/components/data-grid-tabs/data-grid-tabs.agent.d.ts +9 -0
  163. package/dist/components/data-grid-tabs/data-grid-tabs.d.ts +4 -0
  164. package/dist/components/data-grid-tabs/grid-view-adapter.d.ts +15 -0
  165. package/dist/components/data-grid-tabs/index.d.ts +5 -0
  166. package/dist/components/data-grid-tabs/index.js +8 -0
  167. package/dist/components/data-grid-tabs/types.d.ts +220 -0
  168. package/dist/components/data-table/ag-toolbar-seam.d.ts +35 -0
  169. package/dist/components/data-table/calendar-day.d.ts +4 -21
  170. package/dist/components/data-table/data-table.d.ts +10 -6
  171. package/dist/components/data-table/filters/date-range-filter.d.ts +5 -9
  172. package/dist/components/data-table/filters/filter-kind.d.ts +6 -0
  173. package/dist/components/data-table/filters/number-filter.d.ts +6 -10
  174. package/dist/components/data-table/filters/select-filter.d.ts +2 -4
  175. package/dist/components/data-table/filters/text-filter.d.ts +2 -5
  176. package/dist/components/data-table/index.js +4 -4
  177. package/dist/components/data-table/toolbar.d.ts +25 -21
  178. package/dist/components/data-table-tabs/ag-view-adapter.d.ts +17 -0
  179. package/dist/components/data-table-tabs/data-table-tabs.d.ts +34 -33
  180. package/dist/components/data-table-tabs/index.js +1 -1
  181. package/dist/components/data-table-tabs/use-data-table-filter-tabs.d.ts +11 -66
  182. package/dist/components/date-picker/index.js +1 -1
  183. package/dist/components/date-range-picker/index.js +1 -1
  184. package/dist/components/date-time-picker/index.js +1 -1
  185. package/dist/components/due-date-calculator/index.js +2 -2
  186. package/dist/components/face-scheme/index.js +1 -1
  187. package/dist/components/file-manager/index.js +1 -1
  188. package/dist/components/gestational-age-calculator/index.js +1 -1
  189. package/dist/components/hcg-doubling/index.js +1 -1
  190. package/dist/components/heatmap/index.js +1 -1
  191. package/dist/components/icon-button-group/icon-button-group.d.ts +19 -1
  192. package/dist/components/icon-button-group/index.d.ts +1 -1
  193. package/dist/components/icon-button-group/index.js +1 -1
  194. package/dist/components/index.d.ts +1 -0
  195. package/dist/components/notes-panel/index.js +1 -1
  196. package/dist/components/patient-details/index.js +1 -1
  197. package/dist/components/patient-summary-card/index.js +1 -1
  198. package/dist/components/patient-table/index.js +1 -1
  199. package/dist/components/periodontal-diagnosis/index.js +1 -1
  200. package/dist/components/permission-matrix/index.js +1 -1
  201. package/dist/components/pregnancy-dating/index.js +1 -1
  202. package/dist/components/radiograph-panel/index.js +1 -1
  203. package/dist/components/rich-text-editor/index.js +2 -2
  204. package/dist/components/sidebar/index.js +1 -1
  205. package/dist/components/slot-grid/index.js +1 -1
  206. package/dist/components/tag/index.js +1 -1
  207. package/dist/components/task-card/index.js +1 -1
  208. package/dist/components/task-editor/index.js +1 -1
  209. package/dist/components/task-tray/index.js +1 -1
  210. package/dist/components/tasks-panel/index.js +1 -1
  211. package/dist/components/theme-toggle/index.js +1 -1
  212. package/dist/components/transcript-panel/index.js +1 -1
  213. package/dist/components/treatment-receipt/index.js +1 -1
  214. package/dist/components/voice-control-panel/index.js +1 -1
  215. package/dist/core.css +1 -1
  216. package/dist/host-compat.css +33 -2
  217. package/dist/i18n/locales/ar.d.ts +94 -0
  218. package/dist/i18n/locales/ar.js +96 -2
  219. package/dist/i18n/locales/de.d.ts +94 -0
  220. package/dist/i18n/locales/de.js +96 -2
  221. package/dist/i18n/locales/el.d.ts +94 -0
  222. package/dist/i18n/locales/el.js +96 -2
  223. package/dist/i18n/locales/en.d.ts +94 -0
  224. package/dist/i18n/locales/en.js +97 -2
  225. package/dist/i18n/locales/es.d.ts +94 -0
  226. package/dist/i18n/locales/es.js +96 -2
  227. package/dist/i18n/locales/fr.d.ts +94 -0
  228. package/dist/i18n/locales/fr.js +96 -2
  229. package/dist/i18n/locales/hi.d.ts +94 -0
  230. package/dist/i18n/locales/hi.js +96 -2
  231. package/dist/i18n/locales/it.d.ts +94 -0
  232. package/dist/i18n/locales/it.js +96 -2
  233. package/dist/i18n/locales/ja.d.ts +94 -0
  234. package/dist/i18n/locales/ja.js +96 -2
  235. package/dist/i18n/locales/nl.d.ts +94 -0
  236. package/dist/i18n/locales/nl.js +96 -2
  237. package/dist/i18n/locales/pl.d.ts +94 -0
  238. package/dist/i18n/locales/pl.js +96 -2
  239. package/dist/i18n/locales/pt.d.ts +94 -0
  240. package/dist/i18n/locales/pt.js +96 -2
  241. package/dist/i18n/locales/ro.d.ts +94 -0
  242. package/dist/i18n/locales/ro.js +96 -2
  243. package/dist/i18n/locales/ru.d.ts +94 -0
  244. package/dist/i18n/locales/ru.js +96 -2
  245. package/dist/i18n/locales/sq.d.ts +94 -0
  246. package/dist/i18n/locales/sq.js +96 -2
  247. package/dist/i18n/locales/sv.d.ts +94 -0
  248. package/dist/i18n/locales/sv.js +96 -2
  249. package/dist/i18n/locales/tr.d.ts +94 -0
  250. package/dist/i18n/locales/tr.js +96 -2
  251. package/dist/i18n/locales/zh.d.ts +94 -0
  252. package/dist/i18n/locales/zh.js +96 -2
  253. package/dist/index.js +1044 -1032
  254. package/dist/locales/ar.json +96 -2
  255. package/dist/locales/de.json +96 -2
  256. package/dist/locales/el.json +96 -2
  257. package/dist/locales/en.json +96 -2
  258. package/dist/locales/es.json +96 -2
  259. package/dist/locales/fr.json +96 -2
  260. package/dist/locales/hi.json +96 -2
  261. package/dist/locales/it.json +96 -2
  262. package/dist/locales/ja.json +96 -2
  263. package/dist/locales/nl.json +96 -2
  264. package/dist/locales/pl.json +96 -2
  265. package/dist/locales/pt.json +96 -2
  266. package/dist/locales/ro.json +96 -2
  267. package/dist/locales/ru.json +96 -2
  268. package/dist/locales/sq.json +96 -2
  269. package/dist/locales/sv.json +96 -2
  270. package/dist/locales/tr.json +96 -2
  271. package/dist/locales/zh.json +96 -2
  272. package/dist/patterns/alia-assistant/index.js +1 -1
  273. package/dist/patterns/anamnesis/index.js +1 -1
  274. package/dist/patterns/calendar/index.js +1 -1
  275. package/dist/patterns/login-form/index.js +1 -1
  276. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  277. package/dist/patterns/registration-form/index.js +1 -1
  278. package/dist/patterns/send-registration-link-form/index.js +1 -1
  279. package/dist/patterns/workflow-webhook-action/index.js +1 -1
  280. package/dist/tokens.css +1 -1
  281. package/package.json +5 -1
  282. package/dist/_chunks/checkbox-a7Sh-dXb.js +0 -227
  283. package/dist/_chunks/data-grid.agent-CASyEAnb.js +0 -1773
  284. package/dist/_chunks/data-table-C9idMvs0.js +0 -2042
  285. package/dist/_chunks/data-table-tabs-Db7zToFD.js +0 -728
  286. package/dist/_chunks/format--x5jypvH.js +0 -1319
  287. package/dist/_chunks/icon-button-group-mXvYDaba.js +0 -427
  288. package/dist/_chunks/link-cell-renderer-_Fv3WEmb.js +0 -867
  289. package/dist/_chunks/privacy-mask-Dc3kdkCR.js +0 -81
  290. package/dist/_chunks/subDays-DKISP2nE.js +0 -8
@@ -0,0 +1,1693 @@
1
+ import { jsx as y, jsxs as ee } from "react/jsx-runtime";
2
+ import { createContext as At, useContext as kt, useRef as k, useEffect as V, useState as q, useMemo as N, forwardRef as te, useCallback as D, useImperativeHandle as Mt } from "react";
3
+ import { S as Nt } from "./skeleton-tTWJpvAq.js";
4
+ import { E as Lt } from "./empty-state-DwJ5YNzz.js";
5
+ import { c as Ot } from "./index-D2ZczOXr.js";
6
+ import { useTranslation as H } from "react-i18next";
7
+ import { useGridFilter as Vt, AgGridReact as _t } from "ag-grid-react";
8
+ import { ModuleRegistry as Wt, AllCommunityModule as qt } from "ag-grid-community";
9
+ import { I as Bt } from "./icon-button-group-C9mPK-bX.js";
10
+ import { u as Ut } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
11
+ import { I as We } from "./icon-button-S8_weU3g.js";
12
+ import { m as jt, b as Kt, T as zt, w as Ht, e as Qt, g as Xt } from "./parts-Wz2LeGnH.js";
13
+ import $t from "i18next";
14
+ import { S as qe } from "./state-backed-text-input-DVETOhSS.js";
15
+ import { S as Yt } from "./select-uESzXTX6.js";
16
+ import { B as Ne } from "./button-DohK_Ak_.js";
17
+ import { S as Be } from "./search-QbWPlY5f.js";
18
+ import { X as Zt } from "./x-B5YnXwCz.js";
19
+ import { F as Jt } from "./file-text-5yv6r2ls.js";
20
+ import { D as ea } from "./download-CfYKJO_j.js";
21
+ import { u as ta } from "./registry-DvAUVLHh.js";
22
+ import { u as aa } from "./use-prefers-reduced-motion-BMwIQRjB.js";
23
+ import { u as ra } from "./use-theme-CYGyzFgZ.js";
24
+ import { f as na } from "./intl-locale-FWh-Y5_3.js";
25
+ const oa = 52;
26
+ function ia(e) {
27
+ let t = "";
28
+ for (const n of e.split(/\s+/))
29
+ n.length > t.length && (t = n);
30
+ return t;
31
+ }
32
+ function Ue(e, t) {
33
+ return t ? e.map((n) => {
34
+ if ("children" in n && n.children)
35
+ return { ...n, children: Ue(n.children, t) };
36
+ const l = n;
37
+ if (!l.wrapHeaderText || typeof l.headerName != "string") return l;
38
+ const d = ia(l.headerName);
39
+ if (!d) return l;
40
+ const p = Math.ceil(t(d)) + oa;
41
+ return p > (l.minWidth ?? 0) ? { ...l, minWidth: p } : l;
42
+ }) : e;
43
+ }
44
+ function la(e) {
45
+ return (t) => {
46
+ const n = document.createElement("span");
47
+ n.className = "ag-header-cell-text", n.textContent = t, n.style.cssText = "position:absolute;visibility:hidden;white-space:nowrap;inline-size:auto;", e.appendChild(n);
48
+ const l = n.getBoundingClientRect().width;
49
+ return n.remove(), l;
50
+ };
51
+ }
52
+ const sa = {
53
+ syncsFilterInputs: !0,
54
+ exportsAllRows: !0,
55
+ keyboardReorder: !0,
56
+ toolbarAnnouncesColumnMoves: !0
57
+ }, Y = "__dsDetailOf", da = "ds-data-table-expanded-row", je = "::detail", ca = 'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])';
58
+ function P(e) {
59
+ return typeof e == "object" && e !== null && typeof e[Y] == "string";
60
+ }
61
+ function ua(e) {
62
+ return `${e}${je}`;
63
+ }
64
+ function ur(e) {
65
+ return e.endsWith(je);
66
+ }
67
+ function pa(e, t) {
68
+ return { ...e, [Y]: t };
69
+ }
70
+ const Ke = At(
71
+ null
72
+ );
73
+ function ga(e) {
74
+ var i;
75
+ const t = kt(
76
+ Ke
77
+ ), { t: n } = H("ui"), l = k(null), { data: d, node: p, api: f } = e, u = P(d), m = t == null ? void 0 : t.heights, x = p.id, E = k(t);
78
+ if (E.current = t, V(() => {
79
+ const h = l.current;
80
+ if (!h || !u || !m || x == null) return;
81
+ let T = m.get(x) ?? 0;
82
+ const S = () => {
83
+ const C = Math.ceil(h.getBoundingClientRect().height);
84
+ C <= 0 || C === T || (T = C, m.set(x, C), p.setRowHeight(C), f.onRowHeightChanged());
85
+ };
86
+ S();
87
+ const v = new ResizeObserver(S);
88
+ return v.observe(h), () => v.disconnect();
89
+ }, [f, x, m, u, p]), V(() => {
90
+ const h = l.current, T = h == null ? void 0 : h.parentElement;
91
+ if (!h || !T || !u) return;
92
+ const S = (v) => {
93
+ var C, B;
94
+ v.target !== T || v.defaultPrevented || (v.key === "Escape" ? (v.stopPropagation(), (B = (C = E.current) == null ? void 0 : C.onExpandedRowChange) == null || B.call(C, null)) : v.key === "Enter" && (v.preventDefault(), (h.querySelector(ca) ?? h).focus()));
95
+ };
96
+ return T.addEventListener("keydown", S), () => T.removeEventListener("keydown", S);
97
+ }, [u]), !u) {
98
+ const h = t == null ? void 0 : t.fallbackRenderer;
99
+ return h ? /* @__PURE__ */ y(h, { ...e }) : null;
100
+ }
101
+ const o = d[Y];
102
+ let c;
103
+ if (t != null && t.expanded && t.expanded.id === o)
104
+ c = t.expanded.row;
105
+ else {
106
+ const { [Y]: h, ...T } = d;
107
+ c = T;
108
+ }
109
+ return /* @__PURE__ */ ee(
110
+ "div",
111
+ {
112
+ ref: l,
113
+ role: "gridcell",
114
+ tabIndex: -1,
115
+ "data-component": "data-table-expanded-row",
116
+ "data-expanded-row-of": o,
117
+ className: "ds-data-table-expanded-row-surface",
118
+ onKeyDown: (h) => {
119
+ var T;
120
+ h.key !== "Escape" || h.defaultPrevented || (h.stopPropagation(), (T = t == null ? void 0 : t.onExpandedRowChange) == null || T.call(t, null));
121
+ },
122
+ children: [
123
+ /* @__PURE__ */ y("span", { className: "ds:sr-only", children: n("dataTable.expandedRow") }),
124
+ (i = t == null ? void 0 : t.renderExpandedRow) == null ? void 0 : i.call(t, c)
125
+ ]
126
+ }
127
+ );
128
+ }
129
+ const ze = /* @__PURE__ */ new WeakMap();
130
+ function pr(e, t) {
131
+ ze.set(e, t);
132
+ }
133
+ function He(e) {
134
+ return typeof e != "function" && (typeof e != "object" || !e) ? null : ze.get(e) ?? null;
135
+ }
136
+ const fa = [
137
+ "contains",
138
+ "equals",
139
+ "startsWith",
140
+ "endsWith",
141
+ "notContains"
142
+ ];
143
+ function Qe(e) {
144
+ const { model: t, onModelChange: n, getValue: l, placeholder: d, defaultOperator: p } = e, { t: f } = H("ui"), u = (t == null ? void 0 : t.type) ?? p ?? "contains", [m, x] = q(u), [E, o] = q((t == null ? void 0 : t.filter) ?? "");
145
+ V(() => {
146
+ x((t == null ? void 0 : t.type) ?? p ?? "contains"), o((t == null ? void 0 : t.filter) ?? "");
147
+ }, [t, p]);
148
+ const c = N(() => jt($t.language), []);
149
+ Vt({
150
+ doesFilterPass: (S) => {
151
+ const v = t;
152
+ if (!v || v.filter === "") return !0;
153
+ const C = Kt(l(S.node));
154
+ if (C === null) return !1;
155
+ switch (v.type) {
156
+ case "equals":
157
+ return c.equals(C, v.filter);
158
+ case "contains":
159
+ return c.contains(C, v.filter);
160
+ case "startsWith":
161
+ return c.startsWith(C, v.filter);
162
+ case "endsWith":
163
+ return c.endsWith(C, v.filter);
164
+ case "notContains":
165
+ return !c.contains(C, v.filter);
166
+ default:
167
+ return !0;
168
+ }
169
+ }
170
+ });
171
+ function g() {
172
+ if (E.trim() === "") {
173
+ n(null);
174
+ return;
175
+ }
176
+ n({ type: m, filter: E });
177
+ }
178
+ function i() {
179
+ o(""), x(p ?? "contains"), n(null);
180
+ }
181
+ const h = fa.map(
182
+ (S) => ({
183
+ value: S,
184
+ label: f(`dataTable.textFilter.operators.${S}`)
185
+ })
186
+ ), T = d ?? f("dataTable.textFilter.placeholder");
187
+ return /* @__PURE__ */ ee(
188
+ "div",
189
+ {
190
+ "data-component": "text-filter",
191
+ className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-sm)] ds:min-w-[240px]",
192
+ children: [
193
+ /* @__PURE__ */ y(
194
+ Yt,
195
+ {
196
+ size: "sm",
197
+ options: h,
198
+ value: m,
199
+ onValueChange: (S) => {
200
+ S !== "" && x(S);
201
+ },
202
+ "aria-label": f("dataTable.textFilter.operators.contains")
203
+ }
204
+ ),
205
+ /* @__PURE__ */ y(
206
+ qe,
207
+ {
208
+ size: "sm",
209
+ value: E,
210
+ onChange: (S) => o(S.target.value),
211
+ onKeyDown: (S) => {
212
+ S.key === "Enter" && (S.preventDefault(), g());
213
+ },
214
+ placeholder: T,
215
+ "aria-label": T,
216
+ startAdornment: /* @__PURE__ */ y(Be, { "aria-hidden": "true", className: "ds:size-4" })
217
+ }
218
+ ),
219
+ /* @__PURE__ */ ee("div", { className: "ds:flex ds:flex-wrap ds:items-center ds:justify-end ds:gap-[var(--spacing-xs)] ds:pt-[var(--spacing-xs)] ds:border-t ds:border-[var(--border)]", children: [
220
+ /* @__PURE__ */ y(Ne, { intent: "ghost", size: "sm", onClick: i, type: "button", children: f("dataTable.textFilter.clear") }),
221
+ /* @__PURE__ */ y(Ne, { intent: "primary", size: "sm", onClick: g, type: "button", children: f("dataTable.textFilter.apply") })
222
+ ] })
223
+ ]
224
+ }
225
+ );
226
+ }
227
+ function ma(e) {
228
+ var o, c;
229
+ const { model: t, onModelChange: n, column: l } = e, { t: d } = H("ui"), p = ((c = (o = l == null ? void 0 : l.getColDef) == null ? void 0 : o.call(l)) == null ? void 0 : c.filterParams) ?? {}, f = p.defaultOperator ?? "contains", u = p.placeholder ?? d("dataTable.textFilter.placeholder"), [m, x] = q((t == null ? void 0 : t.filter) ?? "");
230
+ V(() => {
231
+ x((t == null ? void 0 : t.filter) ?? "");
232
+ }, [t == null ? void 0 : t.filter]), V(() => {
233
+ if (m === ((t == null ? void 0 : t.filter) ?? "")) return;
234
+ const g = setTimeout(() => {
235
+ if (m === "") {
236
+ t && n(null);
237
+ return;
238
+ }
239
+ n({ type: f, filter: m });
240
+ }, 200);
241
+ return () => clearTimeout(g);
242
+ }, [m, f, t, n]);
243
+ function E() {
244
+ x(""), t && n(null);
245
+ }
246
+ return /* @__PURE__ */ y("div", { "data-component": "text-floating-filter", className: "ds:w-full", children: /* @__PURE__ */ y(
247
+ qe,
248
+ {
249
+ size: "sm",
250
+ value: m,
251
+ onChange: (g) => x(g.target.value),
252
+ placeholder: u,
253
+ "aria-label": u,
254
+ startAdornment: /* @__PURE__ */ y(Be, { "aria-hidden": "true", className: "ds:size-4" }),
255
+ endAdornment: m.length > 0 ? /* @__PURE__ */ y(
256
+ "button",
257
+ {
258
+ type: "button",
259
+ "aria-label": d("dataTable.textFilter.clear"),
260
+ onClick: E,
261
+ className: "ds:pointer-events-auto ds:flex ds:items-center ds:text-[var(--muted-foreground)] ds:hover:text-[var(--foreground)] ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none",
262
+ children: /* @__PURE__ */ y(Zt, { "aria-hidden": "true", className: "ds:size-4" })
263
+ }
264
+ ) : void 0
265
+ }
266
+ ) });
267
+ }
268
+ const ba = 50, Xe = /* @__PURE__ */ new WeakMap();
269
+ function pe(e) {
270
+ var t;
271
+ return (t = Xe.get(e)) == null ? void 0 : t();
272
+ }
273
+ const ha = [
274
+ "filter",
275
+ "quickFilter",
276
+ "selection",
277
+ "columns",
278
+ "rows"
279
+ ];
280
+ function Ta(e) {
281
+ const t = e == null ? void 0 : e.filter;
282
+ return t ? t === Qe || t === "agTextColumnFilter" ? "text" : t === "agNumberColumnFilter" ? "number" : He(t) : null;
283
+ }
284
+ function Le(e) {
285
+ return !(e != null && e.suppressMovable) && !(e != null && e.lockPosition);
286
+ }
287
+ function Oe(e) {
288
+ return !(e != null && e.lockPinned);
289
+ }
290
+ function ya(e) {
291
+ const t = e.getPinned();
292
+ return t === "left" ? "start" : t === "right" ? "end" : !1;
293
+ }
294
+ function we(e) {
295
+ const t = (n) => n.getPinned() === "left" ? 0 : n.getPinned() === "right" ? 2 : 1;
296
+ return [...e.getAllGridColumns() ?? []].sort((n, l) => t(n) - t(l)).filter(
297
+ (n) => !(n.getColDef().hide === void 0 && n.getColId().startsWith("ag-Grid-"))
298
+ );
299
+ }
300
+ function Ve(e) {
301
+ return e == null ? null : typeof e == "number" ? Number.isFinite(e) ? e : null : String(e);
302
+ }
303
+ function wa(e) {
304
+ const t = e == null ? void 0 : e.type, n = Array.isArray(t) ? t : t ? [t] : [];
305
+ return n.includes("numericColumn") || n.includes("rightAligned") ? "end" : "start";
306
+ }
307
+ function Ca(e) {
308
+ let t = e;
309
+ const n = () => {
310
+ const o = t.getApi();
311
+ return o && !o.isDestroyed() ? o : void 0;
312
+ }, l = /* @__PURE__ */ new Set();
313
+ let d = null, p;
314
+ const f = (o) => {
315
+ for (const c of [...l]) c(o);
316
+ }, u = (o) => {
317
+ const c = () => {
318
+ f("filter"), f("quickFilter");
319
+ }, g = () => f("columns"), i = () => f("rows");
320
+ o.addEventListener("filterChanged", c), o.addEventListener("columnVisible", g), o.addEventListener("columnMoved", g), o.addEventListener("columnPinned", g), o.addEventListener("modelUpdated", i), d = {
321
+ api: o,
322
+ detach: () => {
323
+ o.isDestroyed() || (o.removeEventListener("filterChanged", c), o.removeEventListener("columnVisible", g), o.removeEventListener("columnMoved", g), o.removeEventListener("columnPinned", g), o.removeEventListener("modelUpdated", i));
324
+ }
325
+ };
326
+ for (const h of ha) f(h);
327
+ }, m = () => {
328
+ const o = n();
329
+ if (!(d && d.api === o)) {
330
+ if (d && (d.detach(), d = null), o) {
331
+ p !== void 0 && (window.clearInterval(p), p = void 0), u(o);
332
+ return;
333
+ }
334
+ p === void 0 && typeof window < "u" && (p = window.setInterval(() => {
335
+ n() && m();
336
+ }, ba));
337
+ }
338
+ }, x = () => {
339
+ l.size > 0 || (p !== void 0 && (window.clearInterval(p), p = void 0), d == null || d.detach(), d = null);
340
+ }, E = {
341
+ features: sa,
342
+ isReady: () => n() !== void 0,
343
+ subscribe(o) {
344
+ return l.add(o), m(), () => {
345
+ l.delete(o), x();
346
+ };
347
+ },
348
+ getColumns() {
349
+ const o = n();
350
+ return o ? we(o).map((c) => {
351
+ const g = c.getColDef();
352
+ return {
353
+ id: c.getColId(),
354
+ label: o.getDisplayNameForColumn(c, null) || c.getColId(),
355
+ visible: c.isVisible(),
356
+ canHide: !0,
357
+ canMove: Le(g),
358
+ canPin: Oe(g),
359
+ pinned: ya(c),
360
+ filterKind: Ta(g)
361
+ };
362
+ }) : [];
363
+ },
364
+ setColumnVisible(o, c) {
365
+ var i;
366
+ const g = n();
367
+ g && (g.setColumnsVisible([o], c), (i = t.markColumnsUserTouched) == null || i.call(t, [o]));
368
+ },
369
+ moveColumn(o, c) {
370
+ const g = n();
371
+ if (!g) return;
372
+ const i = we(g)[c];
373
+ if (!i || i.getColId() === o) return;
374
+ const h = i.getColId(), S = g.getAllGridColumns().find((Q) => Q.getColId() === o);
375
+ if (!S) return;
376
+ const v = S.getColDef();
377
+ if (!Le(v)) return;
378
+ const C = (S.getPinned() ?? null) !== (i.getPinned() ?? null);
379
+ if (C && !Oe(v)) return;
380
+ C && g.setColumnsPinned([o], i.getPinned() ?? null);
381
+ const B = g.getAllGridColumns().findIndex((Q) => Q.getColId() === h);
382
+ B >= 0 && g.moveColumns([o], B);
383
+ },
384
+ getQuickFilter() {
385
+ var c;
386
+ const o = (c = n()) == null ? void 0 : c.getGridOption("quickFilterText");
387
+ return typeof o == "string" ? o : "";
388
+ },
389
+ setQuickFilter(o) {
390
+ var c;
391
+ (c = n()) == null || c.setGridOption("quickFilterText", o);
392
+ },
393
+ getFilterModel() {
394
+ var o;
395
+ return ((o = n()) == null ? void 0 : o.getFilterModel()) ?? {};
396
+ },
397
+ setColumnFilter(o, c) {
398
+ const g = n();
399
+ g && (g.setColumnFilterModel(o, c), g.onFilterChanged());
400
+ },
401
+ clearAllFilters() {
402
+ const o = n();
403
+ o && (o.setFilterModel(null), o.setGridOption("quickFilterText", ""));
404
+ },
405
+ setFacet(o, c) {
406
+ var T;
407
+ const g = n();
408
+ if (!g) return;
409
+ if (c === null) {
410
+ g.setColumnFilterModel(o, null), g.onFilterChanged();
411
+ return;
412
+ }
413
+ const i = (T = g.getColumn(o)) == null ? void 0 : T.getColDef(), h = He(i == null ? void 0 : i.filter) === "select" && (typeof c == "string" || typeof c == "number") ? { type: "set", values: [c] } : { type: "equals", filter: c };
414
+ g.setColumnFilterModel(o, h), g.onFilterChanged();
415
+ },
416
+ getFacet(o) {
417
+ var g;
418
+ const c = (g = n()) == null ? void 0 : g.getColumnFilterModel(o);
419
+ if (!c || typeof c != "object") return null;
420
+ if (c.type === "set") {
421
+ const i = c.values;
422
+ if (Array.isArray(i) && i.length === 1) {
423
+ const h = i[0];
424
+ return typeof h == "string" || typeof h == "number" ? h : null;
425
+ }
426
+ return null;
427
+ }
428
+ if (c.type === "equals" && "filter" in c) {
429
+ const i = c.filter;
430
+ return typeof i == "string" || typeof i == "number" || typeof i == "boolean" ? i : null;
431
+ }
432
+ return null;
433
+ },
434
+ getSelectionCount: () => t.selectionCount,
435
+ getSelectedRowIds() {
436
+ const o = n();
437
+ return o ? o.getSelectedNodes().filter((c) => !P(c.data)).map((c) => c.id).filter((c) => typeof c == "string") : [];
438
+ },
439
+ getExportSnapshot() {
440
+ const o = n();
441
+ if (!o) return;
442
+ const c = we(o).filter((T) => T.isVisible()), g = (T) => c.map((S) => {
443
+ const v = o.getCellValue({ rowNode: T, colKey: S }), C = o.getCellValue({
444
+ rowNode: T,
445
+ colKey: S,
446
+ useFormatter: !0
447
+ });
448
+ return typeof v == "number" && String(v) === String(C) ? Ve(v) : Ve(C);
449
+ }), i = [];
450
+ o.forEachNodeAfterFilterAndSort((T) => {
451
+ !T.data || P(T.data) || i.push({ id: T.id ?? "", cells: g(T) });
452
+ });
453
+ const h = o.getPinnedBottomRowCount() > 0 ? o.getPinnedBottomRow(0) : void 0;
454
+ return {
455
+ scope: "all-filtered",
456
+ columns: c.map((T) => ({
457
+ id: T.getColId(),
458
+ label: o.getDisplayNameForColumn(T, null) ?? T.getColId(),
459
+ align: wa(T.getColDef())
460
+ })),
461
+ rows: i,
462
+ totals: h ? g(h) : null
463
+ };
464
+ },
465
+ exportCsv(o) {
466
+ const c = n();
467
+ c && (o ? c.exportDataAsCsv({ fileName: o }) : c.exportDataAsCsv());
468
+ },
469
+ print: () => t.onPrint()
470
+ };
471
+ return Xe.set(E, n), {
472
+ seam: E,
473
+ update(o) {
474
+ t = o;
475
+ },
476
+ notify: f
477
+ };
478
+ }
479
+ const I = Qt({
480
+ prefix: "DataTable.Toolbar",
481
+ missingProvider: (e) => `${e} must be rendered inside <DataTable.Toolbar> as a descendant of <DataTable>.`
482
+ });
483
+ function Sa({
484
+ getApi: e,
485
+ selectionCount: t,
486
+ onPrint: n,
487
+ markColumnsUserTouched: l,
488
+ children: d
489
+ }) {
490
+ const p = { getApi: e, selectionCount: t, onPrint: n, markColumnsUserTouched: l }, [f] = q(() => Ca(p));
491
+ f.update(p);
492
+ const u = k(!1);
493
+ return V(() => {
494
+ if (!u.current) {
495
+ u.current = !0;
496
+ return;
497
+ }
498
+ f.notify("selection");
499
+ }, [f, t]), /* @__PURE__ */ y(zt, { seam: f.seam, children: d });
500
+ }
501
+ function $e(e, t) {
502
+ const n = (e.getColumns() ?? []).filter(
503
+ (p) => p.isVisible()
504
+ ), l = n.map(
505
+ (p) => e.getDisplayNameForColumn(p, null) ?? (t === "colId" ? p.getColId() : "")
506
+ ), d = [];
507
+ return e.forEachNodeAfterFilterAndSort((p) => {
508
+ p.data && d.push(
509
+ n.map(
510
+ (f) => e.getCellValue({ rowNode: p, colKey: f, useFormatter: !0 })
511
+ )
512
+ );
513
+ }), { headers: l, rows: d };
514
+ }
515
+ async function Ye(e, t) {
516
+ e && await Ht($e(e, "empty"), t);
517
+ }
518
+ async function xa(e, t) {
519
+ e && await Xt($e(e, "colId"), t);
520
+ }
521
+ const Ce = te(
522
+ ({ label: e, onExport: t, intent: n = "outline", ...l }, d) => {
523
+ const { t: p } = H("ui"), f = I.useSeam("ExportCsv"), { onClick: u, ...m } = l, x = D(
524
+ (E) => {
525
+ if (u == null || u(E), E.defaultPrevented) return;
526
+ const o = pe(f);
527
+ o && (t ? t(o) : f.exportCsv());
528
+ },
529
+ [f, t, u]
530
+ );
531
+ return /* @__PURE__ */ y(
532
+ We,
533
+ {
534
+ ref: d,
535
+ type: "button",
536
+ intent: n,
537
+ icon: /* @__PURE__ */ y(ea, { "aria-hidden": !0 }),
538
+ tooltip: e ?? p("dataTable.exportCsv"),
539
+ ...m,
540
+ onClick: x
541
+ }
542
+ );
543
+ }
544
+ );
545
+ Ce.displayName = "DataTable.Toolbar.ExportCsv";
546
+ const Se = te(
547
+ ({ label: e, onClick: t, fileName: n, intent: l = "outline", ...d }, p) => {
548
+ const { t: f } = H("ui"), u = I.useSeam("ExportPdf"), m = D(() => {
549
+ const x = pe(u);
550
+ if (t) {
551
+ t(x);
552
+ return;
553
+ }
554
+ Ye(x, {
555
+ fileName: n ?? "data-table-export.pdf"
556
+ });
557
+ }, [u, t, n]);
558
+ return /* @__PURE__ */ y(
559
+ We,
560
+ {
561
+ ref: p,
562
+ type: "button",
563
+ intent: l,
564
+ icon: /* @__PURE__ */ y(Jt, { "aria-hidden": !0 }),
565
+ tooltip: e ?? f("dataTable.exportPdf"),
566
+ onClick: m,
567
+ ...d
568
+ }
569
+ );
570
+ }
571
+ );
572
+ Se.displayName = "DataTable.Toolbar.ExportPdf";
573
+ const Ze = ({
574
+ field: e,
575
+ options: t,
576
+ label: n
577
+ }) => /* @__PURE__ */ y(I.FacetFilter, { field: e, options: t, label: n });
578
+ Ze.displayName = "DataTable.Toolbar.FacetFilter";
579
+ const va = ["csv", "xlsx", "pdf"], xe = ({
580
+ format: e,
581
+ label: t,
582
+ onClick: n,
583
+ fileName: l
584
+ }) => {
585
+ const d = I.useSeam("ExportMenu.Item"), p = D(() => {
586
+ const f = pe(d);
587
+ if (e === "csv") {
588
+ d.exportCsv(l);
589
+ return;
590
+ }
591
+ if (e === "pdf") {
592
+ Ye(f, {
593
+ fileName: l ?? "data-table-export.pdf"
594
+ });
595
+ return;
596
+ }
597
+ if (e === "xlsx") {
598
+ xa(f, {
599
+ fileName: l ?? "data-table-export.xlsx"
600
+ });
601
+ return;
602
+ }
603
+ n == null || n(f);
604
+ }, [d, e, l, n]);
605
+ return /* @__PURE__ */ y(
606
+ I.ExportMenuItemBase,
607
+ {
608
+ format: e,
609
+ label: t,
610
+ onSelect: p
611
+ }
612
+ );
613
+ };
614
+ xe.displayName = "DataTable.Toolbar.ExportMenu.Item";
615
+ const ve = te(
616
+ ({ children: e, ...t }, n) => /* @__PURE__ */ y(I.ExportMenu, { ref: n, ...t, children: e ?? va.map((l) => /* @__PURE__ */ y(xe, { format: l }, l)) })
617
+ );
618
+ ve.displayName = "DataTable.Toolbar.ExportMenu";
619
+ const Je = te(
620
+ ({ onClick: e, ...t }, n) => {
621
+ const l = I.useSeam("BulkAction");
622
+ return /* @__PURE__ */ y(
623
+ I.BulkAction,
624
+ {
625
+ ref: n,
626
+ onAction: () => e(pe(l)),
627
+ ...t
628
+ }
629
+ );
630
+ }
631
+ );
632
+ Je.displayName = "DataTable.Toolbar.BulkAction";
633
+ for (const e of [Ce, Se, ve])
634
+ e.rendersIconButton = !0;
635
+ const Ra = Object.assign(ve, {
636
+ Item: xe
637
+ }), ue = Object.assign(I.Root, {
638
+ FilterBar: I.FilterBar,
639
+ Actions: I.Actions,
640
+ /** @deprecated Use `Toolbar.ExportMenu` with a `csv` item. */
641
+ ExportCsv: Ce,
642
+ /** @deprecated Use `Toolbar.ExportMenu` with a `pdf` item. */
643
+ ExportPdf: Se,
644
+ Print: I.Print,
645
+ ColumnToggle: I.ColumnToggle,
646
+ BulkAction: Je,
647
+ QuickSearch: I.QuickSearch,
648
+ Refresh: I.Refresh,
649
+ FilterChips: I.FilterChips,
650
+ FacetFilter: Ze,
651
+ ExportMenu: Ra
652
+ }), Ga = /* @__PURE__ */ new Set(["presentation", "none"]), _e = '[role="presentation"][aria-hidden], [role="none"][aria-hidden]';
653
+ function ce(e) {
654
+ const t = e.getAttribute("role");
655
+ t === null || !Ga.has(t) || e.getAttribute("aria-hidden") === "false" && e.removeAttribute("aria-hidden");
656
+ }
657
+ function Ea(e, t = !0) {
658
+ V(() => {
659
+ const n = e.current;
660
+ if (!t || !n || typeof MutationObserver > "u") return;
661
+ (() => {
662
+ for (const p of n.querySelectorAll(_e)) ce(p);
663
+ })();
664
+ const d = new MutationObserver((p) => {
665
+ for (const f of p)
666
+ if (f.type === "attributes")
667
+ ce(f.target);
668
+ else
669
+ for (const u of f.addedNodes)
670
+ if (u instanceof Element) {
671
+ ce(u);
672
+ for (const m of u.querySelectorAll(_e))
673
+ ce(m);
674
+ }
675
+ });
676
+ return d.observe(n, {
677
+ subtree: !0,
678
+ childList: !0,
679
+ attributes: !0,
680
+ attributeFilter: ["aria-hidden"]
681
+ }), () => d.disconnect();
682
+ }, [e, t]);
683
+ }
684
+ const Da = {
685
+ id: "data-table",
686
+ capabilities: [
687
+ "select_single",
688
+ "select_multiple",
689
+ "range_pick",
690
+ "filter",
691
+ "sort",
692
+ "paginate"
693
+ ],
694
+ state: {
695
+ selection: {
696
+ type: "string[]",
697
+ descriptionKey: "ui.agent.dataTable.state.selection",
698
+ description: "Row ids of currently-selected rows.",
699
+ read: (e) => e.getSelection()
700
+ },
701
+ filter: {
702
+ type: "object",
703
+ descriptionKey: "ui.agent.dataTable.state.filter",
704
+ description: "Current ag-grid filter model, keyed by column id.",
705
+ read: (e) => e.getFilter()
706
+ },
707
+ sort: {
708
+ type: "Array<{ colId, sort }>",
709
+ descriptionKey: "ui.agent.dataTable.state.sort",
710
+ description: "Active sort, in priority order.",
711
+ read: (e) => e.getSort()
712
+ },
713
+ currentPage: {
714
+ type: "number",
715
+ descriptionKey: "ui.agent.dataTable.state.currentPage",
716
+ description: "Zero-indexed page number.",
717
+ read: (e) => e.getCurrentPage()
718
+ },
719
+ expandedRowId: {
720
+ type: "string | null",
721
+ descriptionKey: "ui.agent.dataTable.state.expandedRowId",
722
+ description: "Id of the row whose inline detail is open (expandable row), or null.",
723
+ read: (e) => e.getExpandedRowId()
724
+ }
725
+ },
726
+ actions: {
727
+ select_rows: {
728
+ // Transient grid selection (data-table convention) — stays read.
729
+ safety: "read",
730
+ argsType: "{ ids: string[] }",
731
+ argsSchema: {
732
+ type: "object",
733
+ properties: {
734
+ ids: {
735
+ type: "array",
736
+ items: { type: "string" },
737
+ description: "Row ids to select (replaces the current selection)."
738
+ }
739
+ },
740
+ required: ["ids"]
741
+ },
742
+ idempotent: !0,
743
+ descriptionKey: "ui.agent.dataTable.actions.selectRows",
744
+ description: "Replace the current selection with the given row ids.",
745
+ examples: [
746
+ { args: { ids: ["r-1", "r-2"] }, note: "Select the first two rows." }
747
+ ],
748
+ invoke: (e, t) => {
749
+ e.setSelection(t.ids);
750
+ }
751
+ },
752
+ select_range: {
753
+ safety: "read",
754
+ argsType: "{ fromId: string, toId: string }",
755
+ argsSchema: {
756
+ type: "object",
757
+ properties: {
758
+ fromId: { type: "string", description: "Start row id (inclusive)." },
759
+ toId: { type: "string", description: "End row id (inclusive)." }
760
+ },
761
+ required: ["fromId", "toId"]
762
+ },
763
+ idempotent: !0,
764
+ descriptionKey: "ui.agent.dataTable.actions.selectRange",
765
+ description: "Select every row between fromId and toId, inclusive, in current sort order.",
766
+ invoke: (e, t) => {
767
+ e.selectRange(t.fromId, t.toId);
768
+ }
769
+ },
770
+ clear_selection: {
771
+ safety: "read",
772
+ idempotent: !0,
773
+ descriptionKey: "ui.agent.dataTable.actions.clearSelection",
774
+ description: "Deselect all rows.",
775
+ invoke: (e) => {
776
+ e.clearSelection();
777
+ }
778
+ },
779
+ get_selection: {
780
+ safety: "read",
781
+ returns: "string[]",
782
+ returnsSchema: { type: "array", items: { type: "string" } },
783
+ idempotent: !0,
784
+ descriptionKey: "ui.agent.dataTable.actions.getSelection",
785
+ description: "Return the row ids of the currently-selected rows.",
786
+ invoke: (e) => e.getSelection()
787
+ },
788
+ apply_filter: {
789
+ safety: "read",
790
+ argsType: "{ model: Record<string, unknown> }",
791
+ argsSchema: {
792
+ type: "object",
793
+ properties: {
794
+ model: {
795
+ type: "object",
796
+ description: "ag-grid filter model keyed by column id. Opaque per-column filter shapes; replaces the current model.",
797
+ additionalProperties: !0
798
+ }
799
+ },
800
+ required: ["model"]
801
+ },
802
+ idempotent: !0,
803
+ descriptionKey: "ui.agent.dataTable.actions.applyFilter",
804
+ description: "Replace the filter model with the given object.",
805
+ invoke: (e, t) => {
806
+ e.setFilter(t.model);
807
+ }
808
+ },
809
+ sort_by: {
810
+ safety: "read",
811
+ argsType: "{ model: DataTableSortEntry[] }",
812
+ argsSchema: {
813
+ type: "object",
814
+ properties: {
815
+ model: {
816
+ type: "array",
817
+ description: "Sort entries in priority order.",
818
+ items: {
819
+ type: "object",
820
+ properties: {
821
+ colId: { type: "string", description: "Column id to sort by." },
822
+ sort: { enum: ["asc", "desc"], description: "Sort direction." }
823
+ },
824
+ required: ["colId", "sort"]
825
+ }
826
+ }
827
+ },
828
+ required: ["model"]
829
+ },
830
+ idempotent: !0,
831
+ descriptionKey: "ui.agent.dataTable.actions.sortBy",
832
+ description: "Replace the active sort with the given list (priority order).",
833
+ examples: [
834
+ {
835
+ args: { model: [{ colId: "name", sort: "asc" }] },
836
+ note: "Sort by name ascending."
837
+ }
838
+ ],
839
+ invoke: (e, t) => {
840
+ e.setSort(t.model);
841
+ }
842
+ },
843
+ go_to_page: {
844
+ safety: "read",
845
+ argsType: "{ page: number }",
846
+ argsSchema: {
847
+ type: "object",
848
+ properties: {
849
+ page: {
850
+ type: "integer",
851
+ minimum: 0,
852
+ description: "Zero-indexed page number."
853
+ }
854
+ },
855
+ required: ["page"]
856
+ },
857
+ idempotent: !0,
858
+ descriptionKey: "ui.agent.dataTable.actions.goToPage",
859
+ description: "Navigate to the given zero-indexed page.",
860
+ invoke: (e, t) => {
861
+ e.goToPage(t.page);
862
+ }
863
+ }
864
+ },
865
+ domHooks: {
866
+ root: {
867
+ attr: "data-component",
868
+ value: "data-table",
869
+ description: "Marks the DataTable wrapper."
870
+ },
871
+ instanceId: {
872
+ attr: "data-component-id",
873
+ sourceProp: "gridId",
874
+ description: "Sourced from the gridId prop. Required to address a specific table from the agent."
875
+ },
876
+ item: {
877
+ attr: "row-id",
878
+ description: 'Native ag-grid row-id attribute on each rendered record row. When an expandable row is open, one extra full-width row with row-id `<parentId>::detail` is the accordion detail, not a record — its cell carries data-component="data-table-expanded-row" and data-expanded-row-of="<parentId>"; skip it when enumerating rows (isExpandedRowDetailId). Selection is performed via the curated handle, not by DOM mutation.'
879
+ }
880
+ }
881
+ };
882
+ function Fa(e, t, n) {
883
+ const l = na(t), d = new Intl.DateTimeFormat(l, {
884
+ calendar: "gregory",
885
+ month: "long",
886
+ timeZone: "UTC"
887
+ }), p = new Intl.NumberFormat(l).formatToParts(1000.1), f = {
888
+ ariaIndeterminate: () => e("dataTable.agGrid.ariaIndeterminate"),
889
+ ariaChecked: () => e("dataTable.agGrid.ariaChecked"),
890
+ ariaUnchecked: () => e("dataTable.agGrid.ariaUnchecked"),
891
+ applyFilter: () => e("dataTable.agGrid.applyFilter"),
892
+ clearFilter: () => e("dataTable.agGrid.clearFilter"),
893
+ resetFilter: () => e("dataTable.agGrid.resetFilter"),
894
+ cancelFilter: () => e("dataTable.agGrid.cancelFilter"),
895
+ textFilter: () => e("dataTable.agGrid.textFilter"),
896
+ numberFilter: () => e("dataTable.agGrid.numberFilter"),
897
+ bigintFilter: () => e("dataTable.agGrid.bigintFilter"),
898
+ dateFilter: () => e("dataTable.agGrid.dateFilter"),
899
+ setFilter: () => e("dataTable.agGrid.setFilter"),
900
+ filterOoo: () => e("dataTable.agGrid.filterOoo"),
901
+ empty: () => e("dataTable.agGrid.empty"),
902
+ equals: () => e("dataTable.agGrid.equals"),
903
+ notEqual: () => e("dataTable.agGrid.notEqual"),
904
+ lessThan: () => e("dataTable.agGrid.lessThan"),
905
+ greaterThan: () => e("dataTable.agGrid.greaterThan"),
906
+ inRange: () => e("dataTable.agGrid.inRange"),
907
+ inRangeStart: () => e("dataTable.agGrid.inRangeStart"),
908
+ inRangeEnd: () => e("dataTable.agGrid.inRangeEnd"),
909
+ lessThanOrEqual: () => e("dataTable.agGrid.lessThanOrEqual"),
910
+ greaterThanOrEqual: () => e("dataTable.agGrid.greaterThanOrEqual"),
911
+ contains: () => e("dataTable.agGrid.contains"),
912
+ notContains: () => e("dataTable.agGrid.notContains"),
913
+ startsWith: () => e("dataTable.agGrid.startsWith"),
914
+ endsWith: () => e("dataTable.agGrid.endsWith"),
915
+ blank: () => e("dataTable.agGrid.blank"),
916
+ notBlank: () => e("dataTable.agGrid.notBlank"),
917
+ before: () => e("dataTable.agGrid.before"),
918
+ after: () => e("dataTable.agGrid.after"),
919
+ andCondition: () => e("dataTable.agGrid.andCondition"),
920
+ orCondition: () => e("dataTable.agGrid.orCondition"),
921
+ dateFormatOoo: () => "yyyy-mm-dd",
922
+ filterSummaryInactive: () => e("dataTable.agGrid.filterSummaryInactive"),
923
+ filterSummaryContains: () => e("dataTable.agGrid.filterSummaryContains"),
924
+ filterSummaryNotContains: () => e("dataTable.agGrid.filterSummaryNotContains"),
925
+ filterSummaryTextEquals: () => e("dataTable.agGrid.filterSummaryTextEquals"),
926
+ filterSummaryTextNotEqual: () => e("dataTable.agGrid.filterSummaryTextNotEqual"),
927
+ filterSummaryStartsWith: () => e("dataTable.agGrid.filterSummaryStartsWith"),
928
+ filterSummaryEndsWith: () => e("dataTable.agGrid.filterSummaryEndsWith"),
929
+ filterSummaryBlank: () => e("dataTable.agGrid.filterSummaryBlank"),
930
+ filterSummaryNotBlank: () => e("dataTable.agGrid.filterSummaryNotBlank"),
931
+ filterSummaryEquals: () => "=",
932
+ filterSummaryNotEqual: () => "!=",
933
+ filterSummaryGreaterThan: () => ">",
934
+ filterSummaryGreaterThanOrEqual: () => ">=",
935
+ filterSummaryLessThan: () => "<",
936
+ filterSummaryLessThanOrEqual: () => "<=",
937
+ filterSummaryInRange: () => e("dataTable.agGrid.filterSummaryInRange"),
938
+ yesterday: () => e("dataTable.agGrid.yesterday"),
939
+ today: () => e("dataTable.agGrid.today"),
940
+ tomorrow: () => e("dataTable.agGrid.tomorrow"),
941
+ last7Days: () => e("dataTable.agGrid.last7Days"),
942
+ lastWeek: () => e("dataTable.agGrid.lastWeek"),
943
+ thisWeek: () => e("dataTable.agGrid.thisWeek"),
944
+ nextWeek: () => e("dataTable.agGrid.nextWeek"),
945
+ last30Days: () => e("dataTable.agGrid.last30Days"),
946
+ lastMonth: () => e("dataTable.agGrid.lastMonth"),
947
+ thisMonth: () => e("dataTable.agGrid.thisMonth"),
948
+ nextMonth: () => e("dataTable.agGrid.nextMonth"),
949
+ last90Days: () => e("dataTable.agGrid.last90Days"),
950
+ lastQuarter: () => e("dataTable.agGrid.lastQuarter"),
951
+ thisQuarter: () => e("dataTable.agGrid.thisQuarter"),
952
+ nextQuarter: () => e("dataTable.agGrid.nextQuarter"),
953
+ lastYear: () => e("dataTable.agGrid.lastYear"),
954
+ thisYear: () => e("dataTable.agGrid.thisYear"),
955
+ yearToDate: () => e("dataTable.agGrid.yearToDate"),
956
+ nextYear: () => e("dataTable.agGrid.nextYear"),
957
+ last6Months: () => e("dataTable.agGrid.last6Months"),
958
+ last12Months: () => e("dataTable.agGrid.last12Months"),
959
+ last24Months: () => e("dataTable.agGrid.last24Months"),
960
+ filterSummaryInRangeValues: (u) => `(${u[0]}, ${u[1]})`,
961
+ filterSummaryTextQuote: (u) => `"${u[0]}"`,
962
+ minDateValidation: (u) => e("dataTable.agGrid.minDateValidation", { var0: u[0] }),
963
+ maxDateValidation: (u) => e("dataTable.agGrid.maxDateValidation", { var0: u[0] }),
964
+ strictMinValueValidation: (u) => e("dataTable.agGrid.strictMinValueValidation", { var0: u[0] }),
965
+ strictMaxValueValidation: (u) => e("dataTable.agGrid.strictMaxValueValidation", { var0: u[0] }),
966
+ ariaSortableColumn: () => e("dataTable.agGrid.ariaSortableColumn"),
967
+ ariaMenuColumn: () => e("dataTable.agGrid.ariaMenuColumn"),
968
+ ariaFilterColumn: () => e("dataTable.agGrid.ariaFilterColumn"),
969
+ ariaColumnFiltered: () => e("dataTable.agGrid.ariaColumnFiltered"),
970
+ ariaColumnCellSelection: () => e("dataTable.agGrid.ariaColumnCellSelection"),
971
+ rowDragRows: () => e("dataTable.agGrid.rowDragRows"),
972
+ rowDragRow: () => e("dataTable.agGrid.rowDragRow"),
973
+ ariaColumnGroupCellSelection: () => e("dataTable.agGrid.ariaColumnGroupCellSelection"),
974
+ ariaToggleCellValue: () => e("dataTable.agGrid.ariaToggleCellValue"),
975
+ loadingError: () => e("dataTable.agGrid.loadingError"),
976
+ ariaSkeletonCellLoadingFailed: () => e("dataTable.agGrid.ariaSkeletonCellLoadingFailed"),
977
+ ariaDeferSkeletonCellLoading: () => e("dataTable.agGrid.ariaDeferSkeletonCellLoading"),
978
+ ariaSkeletonCellLoading: () => e("dataTable.agGrid.ariaSkeletonCellLoading"),
979
+ invalidDate: () => e("dataTable.agGrid.invalidDate"),
980
+ invalidNumber: () => e("dataTable.agGrid.invalidNumber"),
981
+ invalidBigInt: () => e("dataTable.agGrid.invalidBigInt"),
982
+ ariaValidationErrorPrefix: () => e("dataTable.agGrid.ariaValidationErrorPrefix"),
983
+ exportingOoo: () => e("dataTable.agGrid.exportingOoo"),
984
+ loadingOoo: () => e("dataTable.agGrid.loadingOoo"),
985
+ noMatchingRows: () => e("dataTable.agGrid.noMatchingRows"),
986
+ noRowsToShow: () => e("dataTable.agGrid.noRowsToShow"),
987
+ ariaLabelTooltip: () => e("dataTable.agGrid.ariaLabelTooltip"),
988
+ tooltipValidationErrorSeparator: () => ". ",
989
+ ariaInputEditor: () => e("dataTable.agGrid.ariaInputEditor"),
990
+ maxLengthValidation: (u) => e("dataTable.agGrid.maxLengthValidation", { var0: u[0] }),
991
+ minValueValidation: (u) => e("dataTable.agGrid.minValueValidation", { var0: u[0] }),
992
+ maxValueValidation: (u) => e("dataTable.agGrid.maxValueValidation", { var0: u[0] }),
993
+ invalidSelectionValidation: () => e("dataTable.agGrid.invalidSelectionValidation"),
994
+ ariaPendingChange: () => e("dataTable.agGrid.ariaPendingChange"),
995
+ ariaFilterMenuOpen: () => e("dataTable.agGrid.ariaFilterMenuOpen"),
996
+ january: () => d.format(new Date(Date.UTC(2026, 0, 1))),
997
+ february: () => d.format(new Date(Date.UTC(2026, 1, 1))),
998
+ march: () => d.format(new Date(Date.UTC(2026, 2, 1))),
999
+ april: () => d.format(new Date(Date.UTC(2026, 3, 1))),
1000
+ may: () => d.format(new Date(Date.UTC(2026, 4, 1))),
1001
+ june: () => d.format(new Date(Date.UTC(2026, 5, 1))),
1002
+ july: () => d.format(new Date(Date.UTC(2026, 6, 1))),
1003
+ august: () => d.format(new Date(Date.UTC(2026, 7, 1))),
1004
+ september: () => d.format(new Date(Date.UTC(2026, 8, 1))),
1005
+ october: () => d.format(new Date(Date.UTC(2026, 9, 1))),
1006
+ november: () => d.format(new Date(Date.UTC(2026, 10, 1))),
1007
+ december: () => d.format(new Date(Date.UTC(2026, 11, 1))),
1008
+ ariaLabelColumnMenu: () => e("dataTable.agGrid.ariaLabelColumnMenu"),
1009
+ ariaLabelColumnFilter: () => e("dataTable.agGrid.ariaLabelColumnFilter"),
1010
+ ariaFilterInput: () => e("dataTable.agGrid.ariaFilterInput"),
1011
+ ariaFilterFromValue: () => e("dataTable.agGrid.ariaFilterFromValue"),
1012
+ ariaFilterValue: () => e("dataTable.agGrid.ariaFilterValue"),
1013
+ ariaFilterToValue: () => e("dataTable.agGrid.ariaFilterToValue"),
1014
+ ariaFilteringOperator: () => e("dataTable.agGrid.ariaFilteringOperator"),
1015
+ ariaDateFilterInput: () => e("dataTable.agGrid.ariaDateFilterInput"),
1016
+ thousandSeparator: () => {
1017
+ var u;
1018
+ return ((u = p.find((m) => m.type === "group")) == null ? void 0 : u.value) ?? "";
1019
+ },
1020
+ decimalSeparator: () => {
1021
+ var u;
1022
+ return ((u = p.find((m) => m.type === "decimal")) == null ? void 0 : u.value) ?? "";
1023
+ },
1024
+ pageSizeSelectorLabel: () => e("dataTable.agGrid.pageSizeSelectorLabel"),
1025
+ ariaPageSizeSelectorLabel: () => e("dataTable.agGrid.ariaPageSizeSelectorLabel"),
1026
+ to: () => e("dataTable.to"),
1027
+ of: () => e("dataTable.of"),
1028
+ firstPage: () => e("dataTable.firstPage"),
1029
+ previousPage: () => e("dataTable.previousPage"),
1030
+ page: () => e("dataTable.page"),
1031
+ nextPage: () => e("dataTable.nextPage"),
1032
+ lastPage: () => e("dataTable.lastPage"),
1033
+ pageLastRowUnknown: () => "?",
1034
+ more: () => e("dataTable.agGrid.more"),
1035
+ ariaRowSelectAll: () => e("dataTable.agGrid.ariaRowSelectAll"),
1036
+ ariaHeaderSelection: () => e("dataTable.agGrid.ariaHeaderSelection"),
1037
+ ariaLabelSelectField: () => e("dataTable.agGrid.ariaLabelSelectField"),
1038
+ ariaRowToggleSelection: () => e("dataTable.agGrid.ariaRowToggleSelection"),
1039
+ ariaRowSelectionDisabled: () => e("dataTable.agGrid.ariaRowSelectionDisabled"),
1040
+ ariaRowDeselect: () => e("dataTable.agGrid.ariaRowDeselect"),
1041
+ ariaRowSelect: () => e("dataTable.agGrid.ariaRowSelect")
1042
+ };
1043
+ return ({ key: u, defaultValue: m, variableValues: x = [] }) => {
1044
+ if (n && Object.hasOwn(n, u)) {
1045
+ let E = 0;
1046
+ return n[u].replace(
1047
+ /\$\{variable\}/g,
1048
+ (o) => x[E++] ?? o
1049
+ );
1050
+ }
1051
+ return Object.hasOwn(f, u) ? f[u](x) : m;
1052
+ };
1053
+ }
1054
+ Wt.registerModules([qt]);
1055
+ const Ia = Ot("ag-theme-alfadocs ds:w-full", {
1056
+ variants: {
1057
+ density: {
1058
+ default: "",
1059
+ compact: "data-table-compact",
1060
+ expanded: "data-table-expanded"
1061
+ },
1062
+ bordered: {
1063
+ true: "",
1064
+ false: "ds:[--ag-borders:none]"
1065
+ }
1066
+ },
1067
+ defaultVariants: {
1068
+ density: "default",
1069
+ bordered: !0
1070
+ }
1071
+ });
1072
+ function Pa() {
1073
+ return /* @__PURE__ */ y(
1074
+ "div",
1075
+ {
1076
+ role: "status",
1077
+ "aria-live": "polite",
1078
+ className: "ds:flex ds:w-full ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-md)]",
1079
+ children: Array.from({ length: 5 }).map((e, t) => /* @__PURE__ */ y(
1080
+ Nt,
1081
+ {
1082
+ variant: "rectangular",
1083
+ className: "ds:h-[var(--min-target-size)] ds:w-full"
1084
+ },
1085
+ t
1086
+ ))
1087
+ }
1088
+ );
1089
+ }
1090
+ function Aa() {
1091
+ const { t: e } = H("ui");
1092
+ return /* @__PURE__ */ y(
1093
+ Lt,
1094
+ {
1095
+ variant: "no-results",
1096
+ size: "sm",
1097
+ title: e("dataTable.noRows"),
1098
+ description: e("dataTable.noRowsDescription")
1099
+ }
1100
+ );
1101
+ }
1102
+ function ka(e) {
1103
+ return e.map(({ pinned: t, ...n }) => n);
1104
+ }
1105
+ function Ma(e) {
1106
+ return e.map(({ hide: t, pinned: n, ...l }) => l);
1107
+ }
1108
+ function Na(e, t) {
1109
+ try {
1110
+ const n = localStorage.getItem(`data-table-col-state:${e}`);
1111
+ if (!n) return null;
1112
+ const l = JSON.parse(n);
1113
+ if (Array.isArray(l))
1114
+ return {
1115
+ state: Ma(l),
1116
+ touched: []
1117
+ };
1118
+ if (typeof l != "object" || l === null) return null;
1119
+ const d = l;
1120
+ return d.v !== 2 || !Array.isArray(d.state) ? null : {
1121
+ state: d.dir === t ? d.state : ka(d.state),
1122
+ touched: Array.isArray(d.touched) ? d.touched.filter((p) => typeof p == "string") : []
1123
+ };
1124
+ } catch {
1125
+ return null;
1126
+ }
1127
+ }
1128
+ function La(e, t, n, l) {
1129
+ try {
1130
+ const d = {
1131
+ v: 2,
1132
+ dir: n,
1133
+ state: t.getColumnState(),
1134
+ touched: [...l]
1135
+ };
1136
+ localStorage.setItem(
1137
+ `data-table-col-state:${e}`,
1138
+ JSON.stringify(d)
1139
+ );
1140
+ } catch {
1141
+ }
1142
+ }
1143
+ const Oa = /* @__PURE__ */ new Set([
1144
+ "api",
1145
+ "flex",
1146
+ "gridInitializing",
1147
+ "gridOptionsChanged",
1148
+ "autosizeColumns",
1149
+ "sizeColumnsToFit"
1150
+ ]);
1151
+ function Va(e, t) {
1152
+ const {
1153
+ columnDefs: n,
1154
+ rowData: l,
1155
+ rowSelection: d,
1156
+ pagination: p = !1,
1157
+ paginationPageSize: f = 25,
1158
+ paginationPageSizeSelector: u = [10, 25, 50, 100],
1159
+ gridId: m,
1160
+ onSelectionChanged: x,
1161
+ onSortChanged: E,
1162
+ onFilterChanged: o,
1163
+ noRowsOverlay: c,
1164
+ loadingOverlay: g,
1165
+ gridOptions: i,
1166
+ density: h,
1167
+ bordered: T,
1168
+ heightClass: S = "ds:h-[500px]",
1169
+ className: v,
1170
+ getRowClass: C,
1171
+ pinnedBottomRowData: B,
1172
+ hidePinnedWhenEmpty: Q = !1,
1173
+ printMode: X = !1,
1174
+ expandedRowId: U,
1175
+ renderExpandedRow: ge,
1176
+ onExpandedRowChange: Re,
1177
+ children: tt
1178
+ } = e, M = U !== void 0 || ge !== void 0, j = i == null ? void 0 : i.getRowId;
1179
+ if (M && !j)
1180
+ throw new Error(
1181
+ "DataTable: `expandedRowId` / `renderExpandedRow` require `gridOptions.getRowId` — the expanded row is addressed by row id, not by index."
1182
+ );
1183
+ const { t: _, i18n: A } = H("ui"), R = k(null), ae = k(null);
1184
+ Ea(ae);
1185
+ const [fe, at] = q(0), [me, be] = q(""), re = k(void 0), rt = N(
1186
+ () => Fa(_, A.language, i == null ? void 0 : i.localeText),
1187
+ [_, A.language, i == null ? void 0 : i.localeText]
1188
+ ), [ne, nt] = q(A.language);
1189
+ V(() => {
1190
+ if (ne === A.language) return;
1191
+ const a = window.setTimeout(() => {
1192
+ var b, w;
1193
+ const r = (b = R.current) == null ? void 0 : b.api;
1194
+ r == null || r.stopEditing();
1195
+ const s = r == null ? void 0 : r.getState();
1196
+ if (s) {
1197
+ const { focusedCell: G, columnPinning: F, ...W } = s, O = ((w = ae.current) == null ? void 0 : w.contains(document.activeElement)) ?? !1, de = A.dir(ne) === A.dir(A.language);
1198
+ re.current = {
1199
+ ...W,
1200
+ ...O ? { focusedCell: G } : {},
1201
+ ...de ? { columnPinning: F } : {}
1202
+ };
1203
+ } else re.current = void 0;
1204
+ nt(A.language);
1205
+ }, 0);
1206
+ return () => window.clearTimeout(a);
1207
+ }, [ne, A, A.language]);
1208
+ const Ge = k(U);
1209
+ Ge.current = U;
1210
+ const he = N(
1211
+ () => ({
1212
+ getSelection: () => {
1213
+ var s;
1214
+ const a = (s = R.current) == null ? void 0 : s.api;
1215
+ if (!a) return [];
1216
+ const r = [];
1217
+ for (const b of a.getSelectedNodes())
1218
+ b.id != null && !P(b.data) && r.push(b.id);
1219
+ return r;
1220
+ },
1221
+ setSelection: (a) => {
1222
+ var b;
1223
+ const r = (b = R.current) == null ? void 0 : b.api;
1224
+ if (!r) return;
1225
+ const s = new Set(a);
1226
+ r.forEachNode((w) => {
1227
+ w.id != null && w.setSelected(s.has(w.id));
1228
+ });
1229
+ },
1230
+ selectRange: (a, r) => {
1231
+ var de;
1232
+ const s = (de = R.current) == null ? void 0 : de.api;
1233
+ if (!s) return;
1234
+ const b = [];
1235
+ s.forEachNodeAfterFilterAndSort((z) => {
1236
+ z.id != null && !P(z.data) && b.push(z.id);
1237
+ });
1238
+ const w = b.indexOf(a), G = b.indexOf(r);
1239
+ if (w < 0 || G < 0) return;
1240
+ const [F, W] = w <= G ? [w, G] : [G, w], O = new Set(b.slice(F, W + 1));
1241
+ s.forEachNode((z) => {
1242
+ z.id != null && z.setSelected(O.has(z.id));
1243
+ });
1244
+ },
1245
+ clearSelection: () => {
1246
+ var a, r;
1247
+ (r = (a = R.current) == null ? void 0 : a.api) == null || r.deselectAll();
1248
+ },
1249
+ getFilter: () => {
1250
+ var a, r;
1251
+ return ((r = (a = R.current) == null ? void 0 : a.api) == null ? void 0 : r.getFilterModel()) ?? {};
1252
+ },
1253
+ setFilter: (a) => {
1254
+ var r, s;
1255
+ (s = (r = R.current) == null ? void 0 : r.api) == null || s.setFilterModel(a);
1256
+ },
1257
+ getSort: () => {
1258
+ var r;
1259
+ const a = (r = R.current) == null ? void 0 : r.api;
1260
+ return a ? a.getColumnState().filter((s) => s.sort === "asc" || s.sort === "desc").map((s) => ({ colId: s.colId, sort: s.sort })) : [];
1261
+ },
1262
+ setSort: (a) => {
1263
+ var b;
1264
+ const r = (b = R.current) == null ? void 0 : b.api;
1265
+ if (!r) return;
1266
+ const s = r.getColumnState().map((w) => {
1267
+ const G = a.find((F) => F.colId === w.colId);
1268
+ return { ...w, sort: G ? G.sort : null };
1269
+ });
1270
+ r.applyColumnState({ state: s, defaultState: { sort: null } });
1271
+ },
1272
+ getCurrentPage: () => {
1273
+ var a, r;
1274
+ return ((r = (a = R.current) == null ? void 0 : a.api) == null ? void 0 : r.paginationGetCurrentPage()) ?? 0;
1275
+ },
1276
+ goToPage: (a) => {
1277
+ var r, s;
1278
+ (s = (r = R.current) == null ? void 0 : r.api) == null || s.paginationGoToPage(a);
1279
+ },
1280
+ getExpandedRowId: () => Ge.current ?? null,
1281
+ getUserTouchedColumns: () => [...$.current],
1282
+ markColumnsUserTouched: (a) => Ee.current(a),
1283
+ getRawApi: () => {
1284
+ var a;
1285
+ return (a = R.current) == null ? void 0 : a.api;
1286
+ }
1287
+ }),
1288
+ []
1289
+ ), oe = k(/* @__PURE__ */ new Map()), $ = k(/* @__PURE__ */ new Set()), Ee = k(
1290
+ () => {
1291
+ }
1292
+ );
1293
+ Mt(t, () => he, [he]), ta(Da, he, m);
1294
+ const De = A.dir() === "rtl", ot = l === void 0, it = aa(), { resolvedTheme: Fe } = ra(), lt = (Fe === "light-accessible" || Fe === "dark-accessible") && h === "compact" ? "default" : h, st = N(() => {
1295
+ if (!d) return;
1296
+ const a = (r) => !P(r.data);
1297
+ return d === "single" ? {
1298
+ mode: "singleRow",
1299
+ enableClickSelection: !1,
1300
+ isRowSelectable: a
1301
+ } : {
1302
+ mode: "multiRow",
1303
+ headerCheckbox: !0,
1304
+ checkboxes: !0,
1305
+ enableClickSelection: !1,
1306
+ isRowSelectable: a
1307
+ };
1308
+ }, [d]), ie = De ? "rtl" : "ltr", L = D(
1309
+ (a, r, s) => {
1310
+ const b = new Set(r);
1311
+ for (const w of a.getColumnState()) {
1312
+ if (!b.has(w.colId)) continue;
1313
+ const G = oe.current.get(w.colId) ?? {};
1314
+ for (const F of s) G[F] = w[F];
1315
+ oe.current.set(w.colId, G);
1316
+ }
1317
+ },
1318
+ []
1319
+ ), Z = D(
1320
+ (a) => {
1321
+ m && La(m, a, ie, $.current);
1322
+ },
1323
+ [m, ie]
1324
+ ), Ie = D(
1325
+ (a) => {
1326
+ var s;
1327
+ for (const b of a) $.current.add(b);
1328
+ const r = (s = R.current) == null ? void 0 : s.api;
1329
+ r && (L(r, a, ["hide"]), Z(r));
1330
+ },
1331
+ [Z, L]
1332
+ );
1333
+ Ee.current = Ie;
1334
+ const dt = D(() => {
1335
+ var s;
1336
+ if (!((s = R.current) != null && s.api)) return;
1337
+ const a = R.current.api, r = m ? Na(m, ie) : null;
1338
+ if (!(!r || re.current)) {
1339
+ for (const b of r.touched) $.current.add(b);
1340
+ a.applyColumnState({
1341
+ state: r.state,
1342
+ applyOrder: !0
1343
+ }), L(a, r.touched, ["hide"]);
1344
+ }
1345
+ }, [m, ie, L]), ct = D(
1346
+ (a) => {
1347
+ var s;
1348
+ if (a.source !== "gridOptionsChanged") return;
1349
+ const r = (s = R.current) == null ? void 0 : s.api;
1350
+ !r || oe.current.size === 0 || r.applyColumnState({
1351
+ state: [...oe.current].map(([b, w]) => ({
1352
+ colId: b,
1353
+ ...w
1354
+ }))
1355
+ });
1356
+ },
1357
+ []
1358
+ ), le = D(
1359
+ (a) => {
1360
+ var b;
1361
+ const r = (b = R.current) == null ? void 0 : b.api;
1362
+ if (!r) return;
1363
+ const s = (a.columns ?? (a.column ? [a.column] : [])).map((w) => w.getColId());
1364
+ if (a.source && Oa.has(a.source)) {
1365
+ if (a.source === "api" && "visible" in a) {
1366
+ const w = s.filter(
1367
+ (G) => $.current.has(G)
1368
+ );
1369
+ w.length > 0 && (L(r, w, ["hide"]), Z(r));
1370
+ }
1371
+ return;
1372
+ }
1373
+ if ("visible" in a) {
1374
+ for (const w of s) $.current.add(w);
1375
+ L(r, s, ["hide"]);
1376
+ } else "pinned" in a ? L(r, s, ["pinned"]) : "flexColumns" in a && L(r, s, ["width", "flex"]);
1377
+ Z(r);
1378
+ },
1379
+ [Z, L]
1380
+ ), ut = N(() => {
1381
+ if (!i) return;
1382
+ const a = { ...i };
1383
+ return delete a.defaultColDef, delete a.initialState, M && (delete a.getRowId, delete a.isFullWidthRow, delete a.fullWidthCellRenderer, delete a.getRowHeight, delete a.postSortRows, delete a.getRowClass, delete a.defaultCsvExportParams, delete a.defaultExcelExportParams), a;
1384
+ }, [M, i]), Pe = k(/* @__PURE__ */ new Map()), J = k(i);
1385
+ J.current = i;
1386
+ const Ae = D(
1387
+ (a) => {
1388
+ var r;
1389
+ return j == null ? void 0 : j({
1390
+ data: a,
1391
+ level: 0,
1392
+ api: (r = R.current) == null ? void 0 : r.api,
1393
+ context: i == null ? void 0 : i.context
1394
+ });
1395
+ },
1396
+ [j, i == null ? void 0 : i.context]
1397
+ ), K = N(() => {
1398
+ if (!M || U == null || !l) return null;
1399
+ const a = l.find((r) => Ae(r) === U);
1400
+ return a === void 0 ? null : { id: U, row: a };
1401
+ }, [M, U, Ae, l]), Te = N(() => {
1402
+ if (!K || !l) return l;
1403
+ const a = l.indexOf(K.row), r = pa(K.row, K.id);
1404
+ return [
1405
+ ...l.slice(0, a + 1),
1406
+ r,
1407
+ ...l.slice(a + 1)
1408
+ ];
1409
+ }, [K, l]), pt = D(
1410
+ (a) => P(a.data) ? ua(a.data[Y]) : j(a),
1411
+ [j]
1412
+ ), gt = D(
1413
+ (a) => {
1414
+ var r, s;
1415
+ return P(a.rowNode.data) || (((s = (r = J.current) == null ? void 0 : r.isFullWidthRow) == null ? void 0 : s.call(r, a)) ?? !1);
1416
+ },
1417
+ []
1418
+ ), ft = D(
1419
+ (a) => {
1420
+ var r, s;
1421
+ return P(a.data) ? Pe.current.get(a.node.id ?? "") : (s = (r = J.current) == null ? void 0 : r.getRowHeight) == null ? void 0 : s.call(r, a);
1422
+ },
1423
+ []
1424
+ ), mt = D(
1425
+ (a) => {
1426
+ var F, W;
1427
+ (W = (F = J.current) == null ? void 0 : F.postSortRows) == null || W.call(F, a);
1428
+ const { nodes: r } = a, s = r.findIndex((O) => P(O.data));
1429
+ if (s < 0) return;
1430
+ const [b] = r.splice(s, 1), w = b.data[Y], G = r.findIndex((O) => O.id === w);
1431
+ r.splice(G < 0 ? r.length : G + 1, 0, b);
1432
+ },
1433
+ []
1434
+ ), bt = D(
1435
+ (a) => {
1436
+ var r, s;
1437
+ return P(a.data) ? da : ((s = (r = J.current) == null ? void 0 : r.getRowClass) == null ? void 0 : s.call(r, a)) ?? (C == null ? void 0 : C(a));
1438
+ },
1439
+ [C]
1440
+ ), se = D(
1441
+ (a) => P(a.node.data),
1442
+ []
1443
+ ), ht = N(() => {
1444
+ if (!M) return;
1445
+ const a = i == null ? void 0 : i.defaultCsvExportParams;
1446
+ return {
1447
+ ...a,
1448
+ shouldRowBeSkipped: (r) => {
1449
+ var s;
1450
+ return se(r) || (((s = a == null ? void 0 : a.shouldRowBeSkipped) == null ? void 0 : s.call(a, r)) ?? !1);
1451
+ }
1452
+ };
1453
+ }, [M, i == null ? void 0 : i.defaultCsvExportParams, se]), Tt = N(() => {
1454
+ if (!M) return;
1455
+ const a = i == null ? void 0 : i.defaultExcelExportParams;
1456
+ return {
1457
+ ...a,
1458
+ shouldRowBeSkipped: (r) => {
1459
+ var s;
1460
+ return se(r) || (((s = a == null ? void 0 : a.shouldRowBeSkipped) == null ? void 0 : s.call(a, r)) ?? !1);
1461
+ }
1462
+ };
1463
+ }, [M, i == null ? void 0 : i.defaultExcelExportParams, se]), ye = i == null ? void 0 : i.fullWidthCellRenderer, yt = N(
1464
+ () => ({
1465
+ renderExpandedRow: ge,
1466
+ onExpandedRowChange: Re,
1467
+ expanded: K,
1468
+ heights: Pe.current,
1469
+ fallbackRenderer: typeof ye == "function" ? ye : void 0
1470
+ }),
1471
+ [
1472
+ ye,
1473
+ K,
1474
+ Re,
1475
+ ge
1476
+ ]
1477
+ ), wt = D(() => {
1478
+ var s;
1479
+ const a = (s = R.current) == null ? void 0 : s.api;
1480
+ if (!a) return;
1481
+ const r = a.getSelectedRows().filter((b) => !P(b));
1482
+ at(r.length), x == null || x(r);
1483
+ }, [x]), Ct = D(
1484
+ (a) => {
1485
+ var s;
1486
+ const r = (s = R.current) == null ? void 0 : s.api;
1487
+ if (r) {
1488
+ const w = r.getColumnState().find((G) => G.sort);
1489
+ if (w) {
1490
+ const G = w.colId, F = r.getColumnDef(G), W = (F == null ? void 0 : F.headerName) ?? G, O = w.sort === "asc" ? "dataTable.sortAscending" : "dataTable.sortDescending";
1491
+ be(
1492
+ _("dataTable.sortAnnounce", {
1493
+ column: W,
1494
+ direction: _(O)
1495
+ })
1496
+ );
1497
+ } else
1498
+ be("");
1499
+ }
1500
+ E == null || E(a);
1501
+ },
1502
+ [E, _]
1503
+ ), St = D(
1504
+ (a) => {
1505
+ o == null || o(a);
1506
+ },
1507
+ [o]
1508
+ );
1509
+ V(() => {
1510
+ if (!me) return;
1511
+ const a = setTimeout(() => be(""), 3e3);
1512
+ return () => clearTimeout(a);
1513
+ }, [me]);
1514
+ const xt = c ?? Aa, vt = g ?? Pa, Rt = D(
1515
+ () => {
1516
+ var a;
1517
+ return (a = R.current) == null ? void 0 : a.api;
1518
+ },
1519
+ []
1520
+ ), Gt = D(() => {
1521
+ typeof window < "u" && window.print();
1522
+ }, []), Et = Ia({
1523
+ density: lt,
1524
+ bordered: T,
1525
+ className: v
1526
+ }), Dt = tt ?? /* @__PURE__ */ y("div", { className: "data-table-toolbar ds:flex ds:justify-end", children: /* @__PURE__ */ ee(
1527
+ Bt,
1528
+ {
1529
+ role: "toolbar",
1530
+ "aria-label": _("dataTable.tableActions"),
1531
+ className: "ds:bg-[var(--background)]",
1532
+ children: [
1533
+ /* @__PURE__ */ y(ue.ExportMenu, {}),
1534
+ /* @__PURE__ */ y(ue.Print, {}),
1535
+ /* @__PURE__ */ y(ue.ColumnToggle, {})
1536
+ ]
1537
+ }
1538
+ ) }), Ft = X ? !1 : p, ke = Te !== void 0 && Te.length === 0, [Me, It] = q(null);
1539
+ Ut(() => {
1540
+ var b;
1541
+ const a = ae.current;
1542
+ if (!a) return;
1543
+ let r = !0;
1544
+ const s = () => {
1545
+ r && It(() => la(a));
1546
+ };
1547
+ return s(), (b = document.fonts) == null || b.ready.then(s), () => {
1548
+ r = !1;
1549
+ };
1550
+ }, []);
1551
+ const Pt = N(
1552
+ () => Ue(n, Me),
1553
+ [n, Me]
1554
+ );
1555
+ return /* @__PURE__ */ ee(
1556
+ "div",
1557
+ {
1558
+ className: "ds:flex ds:w-full ds:min-h-0 ds:flex-1 ds:flex-col ds:gap-[var(--spacing-sm)]",
1559
+ "aria-busy": ot ? "true" : void 0,
1560
+ "data-component": "data-table",
1561
+ "data-component-id": m,
1562
+ "data-print-mode": X ? "true" : void 0,
1563
+ children: [
1564
+ !X && /* @__PURE__ */ y(
1565
+ Sa,
1566
+ {
1567
+ getApi: Rt,
1568
+ selectionCount: fe,
1569
+ onPrint: Gt,
1570
+ markColumnsUserTouched: Ie,
1571
+ children: Dt
1572
+ }
1573
+ ),
1574
+ /* @__PURE__ */ y(
1575
+ "div",
1576
+ {
1577
+ ref: ae,
1578
+ "data-empty": ke ? "true" : void 0,
1579
+ className: [Et, X ? "" : S].join(" ").trim(),
1580
+ children: /* @__PURE__ */ y(
1581
+ Ke.Provider,
1582
+ {
1583
+ value: yt,
1584
+ children: /* @__PURE__ */ y(
1585
+ _t,
1586
+ {
1587
+ ref: R,
1588
+ initialState: re.current ?? (i == null ? void 0 : i.initialState),
1589
+ theme: "legacy",
1590
+ columnDefs: Pt,
1591
+ rowData: Te,
1592
+ defaultColDef: {
1593
+ sortable: !0,
1594
+ // Default filter = DS-styled text filter so untyped columns
1595
+ // (no explicit `filter:` override) inherit the kit's form
1596
+ // language instead of AG Grid's stock browser-skinned input.
1597
+ // Number / date / select columns opt into their dedicated
1598
+ // wrapper per-column.
1599
+ filter: Qe,
1600
+ floatingFilterComponent: ma,
1601
+ resizable: !0,
1602
+ floatingFilter: !0,
1603
+ // §13d — faint sort icon advertises which columns are
1604
+ // sortable. v33+ moved this from grid-level to defaultColDef.
1605
+ unSortIcon: !0,
1606
+ ...i == null ? void 0 : i.defaultColDef
1607
+ },
1608
+ rowSelection: st,
1609
+ pagination: Ft,
1610
+ paginationPageSize: f,
1611
+ paginationPageSizeSelector: u,
1612
+ paginationNumberFormatter: (a) => new Intl.NumberFormat(A.language).format(a.value),
1613
+ animateRows: !it,
1614
+ enableRtl: De,
1615
+ ensureDomOrder: !0,
1616
+ enableCellSpan: !0,
1617
+ enableCellTextSelection: !0,
1618
+ copyHeadersToClipboard: !0,
1619
+ accentedSort: !0,
1620
+ multiSortKey: "ctrl",
1621
+ suppressDragLeaveHidesColumns: !0,
1622
+ tooltipShowDelay: 500,
1623
+ tooltipHideDelay: 5e3,
1624
+ tooltipInteraction: !0,
1625
+ stopEditingWhenCellsLoseFocus: !0,
1626
+ maintainColumnOrder: !0,
1627
+ undoRedoCellEditing: !0,
1628
+ undoRedoCellEditingLimit: 20,
1629
+ suppressCellFocus: !1,
1630
+ rowBuffer: 10,
1631
+ getLocaleText: rt,
1632
+ rowDragText: (a, r) => _("dataTable.dragRows", { count: r }),
1633
+ noRowsOverlayComponent: xt,
1634
+ loadingOverlayComponent: vt,
1635
+ getRowClass: M ? bt : C,
1636
+ pinnedBottomRowData: Q && ke ? void 0 : B,
1637
+ domLayout: X ? "autoHeight" : void 0,
1638
+ onGridReady: dt,
1639
+ onNewColumnsLoaded: ct,
1640
+ onColumnMoved: le,
1641
+ onColumnResized: le,
1642
+ onColumnPinned: le,
1643
+ onColumnVisible: le,
1644
+ onSortChanged: Ct,
1645
+ onFilterChanged: St,
1646
+ onSelectionChanged: wt,
1647
+ ...ut,
1648
+ ...M ? {
1649
+ getRowId: pt,
1650
+ isFullWidthRow: gt,
1651
+ fullWidthCellRenderer: ga,
1652
+ getRowHeight: ft,
1653
+ postSortRows: mt,
1654
+ defaultCsvExportParams: ht,
1655
+ defaultExcelExportParams: Tt
1656
+ } : {}
1657
+ },
1658
+ ne
1659
+ )
1660
+ }
1661
+ )
1662
+ }
1663
+ ),
1664
+ !X && fe > 0 && /* @__PURE__ */ y("div", { className: "ds:flex ds:items-center ds:justify-between type-body-sm ds:text-[color:var(--muted-foreground)]", children: /* @__PURE__ */ y("span", { children: _("dataTable.selected", { count: fe }) }) }),
1665
+ /* @__PURE__ */ y("span", { role: "status", "aria-live": "polite", className: "ds:sr-only", children: me })
1666
+ ]
1667
+ }
1668
+ );
1669
+ }
1670
+ const et = te(Va);
1671
+ et.displayName = "DataTable";
1672
+ const _a = Object.assign(et, {
1673
+ Toolbar: ue
1674
+ }), gr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1675
+ __proto__: null,
1676
+ DataTable: _a
1677
+ }, Symbol.toStringTag, { value: "Module" }));
1678
+ export {
1679
+ _a as D,
1680
+ da as E,
1681
+ Qe as T,
1682
+ ma as a,
1683
+ ue as b,
1684
+ Sa as c,
1685
+ Da as d,
1686
+ Ye as e,
1687
+ ua as f,
1688
+ ur as g,
1689
+ gr as h,
1690
+ P as i,
1691
+ pr as r
1692
+ };
1693
+ //# sourceMappingURL=data-table-DXaE2Ret.js.map