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