@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
@@ -1,2042 +0,0 @@
1
- import { jsx as d, jsxs as q } from "react/jsx-runtime";
2
- import { useMemo as z, forwardRef as $, useState as L, useCallback as G, useEffect as B, useRef as _, createContext as Ge, useContext as Fe, isValidElement as qt, cloneElement as Wt, useImperativeHandle as jt } from "react";
3
- import { S as Bt } from "./skeleton-tTWJpvAq.js";
4
- import { E as $t } from "./empty-state-DwJ5YNzz.js";
5
- import { c as Ut } from "./index-D2ZczOXr.js";
6
- import { useTranslation as A } from "react-i18next";
7
- import { useGridFilter as Ht, AgGridReact as Kt } from "ag-grid-react";
8
- import { ModuleRegistry as Qt, AllCommunityModule as Xt } from "ag-grid-community";
9
- import { I as Yt } from "./icon-button-group-mXvYDaba.js";
10
- import { u as Zt } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
11
- import { B as ce } from "./button-DohK_Ak_.js";
12
- import { I as oe } from "./icon-button-S8_weU3g.js";
13
- import { P as Te } from "./popover-CN5IsOeS.js";
14
- import { C as Jt } from "./checkbox-a7Sh-dXb.js";
15
- import { T as ea } from "./text-input-B6iAgCr3.js";
16
- import { T as He } from "./tag-DOZGz0fT.js";
17
- import { D as xe } from "./dropdown-menu-CqxBthww.js";
18
- import { X as Qe } from "./x-B5YnXwCz.js";
19
- import { R as ta } from "./refresh-cw-DnI0cLFC.js";
20
- import { S as Ie } from "./search-QbWPlY5f.js";
21
- import { c as aa } from "./createLucideIcon-DhHxpK9K.js";
22
- import { G as ra } from "./grip-vertical-onSb1JXO.js";
23
- import { P as na } from "./printer-rkK0T1gi.js";
24
- import { F as Xe } from "./file-text-5yv6r2ls.js";
25
- import { D as Ce } from "./download-CfYKJO_j.js";
26
- import { F as oa } from "./file-spreadsheet-DmwyfV4O.js";
27
- import ia from "i18next";
28
- import { S as Ye } from "./state-backed-text-input-DVETOhSS.js";
29
- import { S as la } from "./select-uESzXTX6.js";
30
- import { u as sa } from "./registry-DvAUVLHh.js";
31
- import { u as da } from "./use-prefers-reduced-motion-BMwIQRjB.js";
32
- import { u as ca } from "./use-theme-CYGyzFgZ.js";
33
- import { f as ua } from "./intl-locale-FWh-Y5_3.js";
34
- /**
35
- * @license lucide-react v1.22.0 - ISC
36
- *
37
- * This source code is licensed under the ISC license.
38
- * See the LICENSE file in the root directory of this source tree.
39
- */
40
- const pa = [
41
- ["path", { d: "M10.5 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v5.5", key: "1g2yzs" }],
42
- ["path", { d: "m14.3 19.6 1-.4", key: "11sv9r" }],
43
- ["path", { d: "M15 3v7.5", key: "7lm50a" }],
44
- ["path", { d: "m15.2 16.9-.9-.3", key: "1t7mvx" }],
45
- ["path", { d: "m16.6 21.7.3-.9", key: "1j67ps" }],
46
- ["path", { d: "m16.8 15.3-.4-1", key: "1ei7r6" }],
47
- ["path", { d: "m19.1 15.2.3-.9", key: "18r7jp" }],
48
- ["path", { d: "m19.6 21.7-.4-1", key: "z2vh2" }],
49
- ["path", { d: "m20.7 16.8 1-.4", key: "19m87a" }],
50
- ["path", { d: "m21.7 19.4-.9-.3", key: "1qgwi9" }],
51
- ["path", { d: "M9 3v18", key: "fh3hqa" }],
52
- ["circle", { cx: "18", cy: "18", r: "3", key: "1xkwt0" }]
53
- ], ma = aa("columns-3-cog", pa), fa = 52;
54
- function ga(e) {
55
- let t = "";
56
- for (const n of e.split(/\s+/))
57
- n.length > t.length && (t = n);
58
- return t;
59
- }
60
- function Ze(e, t) {
61
- return t ? e.map((n) => {
62
- if ("children" in n && n.children)
63
- return { ...n, children: Ze(n.children, t) };
64
- const a = n;
65
- if (!a.wrapHeaderText || typeof a.headerName != "string") return a;
66
- const i = ga(a.headerName);
67
- if (!i) return a;
68
- const s = Math.ceil(t(i)) + fa;
69
- return s > (a.minWidth ?? 0) ? { ...a, minWidth: s } : a;
70
- }) : e;
71
- }
72
- function ba(e) {
73
- return (t) => {
74
- const n = document.createElement("span");
75
- 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);
76
- const a = n.getBoundingClientRect().width;
77
- return n.remove(), a;
78
- };
79
- }
80
- const ha = "yyyy-mm-dd hh:mm";
81
- function Ta(e) {
82
- return e == null ? "" : typeof e == "number" ? Number.isFinite(e) ? e : String(e) : typeof e == "string" || typeof e == "boolean" ? e : e instanceof Date && !Number.isNaN(e.getTime()) ? { value: e, type: Date, format: ha } : String(e);
83
- }
84
- async function ya(e, t, n) {
85
- const { default: a } = await import("./index-CpVcVNBu.js"), i = [
86
- e.map((s) => ({
87
- value: s,
88
- fontWeight: "bold",
89
- textColor: n.text,
90
- backgroundColor: n.fill
91
- })),
92
- ...t.map((s) => s.map(Ta))
93
- ];
94
- return a(i, { sheet: "Sheet1" }).toBlob();
95
- }
96
- function xa(e) {
97
- if (!qt(e)) return e;
98
- const t = e, n = t.props.className ?? "", a = /\bsize-|\bw-|\bh-/.test(n) ? n : `${n} ds:size-4`.trim();
99
- return Wt(t, { className: a, size: t.props.size ?? 16 });
100
- }
101
- const Je = Ge(null);
102
- function Q(e) {
103
- const t = Fe(Je);
104
- if (!t)
105
- throw new Error(
106
- `${e} must be rendered inside <DataTable.Toolbar> as a descendant of <DataTable>.`
107
- );
108
- return t;
109
- }
110
- function wa({
111
- getApi: e,
112
- selectionCount: t,
113
- onPrint: n,
114
- markColumnsUserTouched: a,
115
- children: i
116
- }) {
117
- const s = z(
118
- () => ({ getApi: e, selectionCount: t, onPrint: n, markColumnsUserTouched: a }),
119
- [e, t, n, a]
120
- );
121
- return /* @__PURE__ */ d(Je.Provider, { value: s, children: i });
122
- }
123
- const Ca = [
124
- "data-table-toolbar",
125
- // Mobile (<sm) keeps `flex-wrap` so a wide QuickSearch can flow above the
126
- // Actions cluster on narrow screens. From `sm` (≥640px) we switch to
127
- // `flex-nowrap` + `min-w-0` so the row stays single-line at every common
128
- // desktop width (1024 / 1280 / 1440) — the QuickSearch slot shrinks via
129
- // its own `min-w-0` instead of pushing the trailing Actions to a new row.
130
- "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-sm)]",
131
- "ds:sm:flex-nowrap ds:min-w-0"
132
- // No card surface: the toolbar sits directly on the page background,
133
- // matching the header-tools layout the Patients / Care Plan List
134
- // patterns established (the old bg-card + border + shadow bar is gone).
135
- ].join(" "), et = $(
136
- ({ className: e, children: t, ...n }, a) => /* @__PURE__ */ d(
137
- "div",
138
- {
139
- ref: a,
140
- role: "toolbar",
141
- className: [Ca, e ?? ""].join(" ").trim(),
142
- ...n,
143
- children: t
144
- }
145
- )
146
- );
147
- et.displayName = "DataTable.Toolbar";
148
- const tt = $(
149
- ({ className: e, children: t, ...n }, a) => /* @__PURE__ */ d(
150
- "div",
151
- {
152
- ref: a,
153
- className: [
154
- "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-sm)]",
155
- // `grow` lets FilterBar absorb the free space; `min-w-0` lets the
156
- // QuickSearch slot inside shrink below its intrinsic width when the
157
- // toolbar runs `flex-nowrap` at `sm` and above, so the trailing
158
- // Actions cluster stays pinned on a single row.
159
- "ds:grow ds:min-w-0",
160
- e ?? ""
161
- ].join(" ").trim(),
162
- ...n,
163
- children: t
164
- }
165
- )
166
- );
167
- tt.displayName = "DataTable.Toolbar.FilterBar";
168
- const at = $(
169
- ({ className: e, children: t, ...n }, a) => /* @__PURE__ */ d(
170
- "div",
171
- {
172
- ref: a,
173
- className: [
174
- "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]",
175
- "ds:ms-auto",
176
- e ?? ""
177
- ].join(" ").trim(),
178
- ...n,
179
- children: t
180
- }
181
- )
182
- );
183
- at.displayName = "DataTable.Toolbar.Actions";
184
- const Ne = $(
185
- ({ label: e, onExport: t, intent: n = "outline", ...a }, i) => {
186
- const { t: s } = A("ui"), { getApi: g } = Q("DataTable.Toolbar.ExportCsv"), l = G(() => {
187
- const m = g();
188
- m && (t ? t(m) : m.exportDataAsCsv());
189
- }, [g, t]);
190
- return /* @__PURE__ */ d(
191
- oe,
192
- {
193
- ref: i,
194
- type: "button",
195
- intent: n,
196
- icon: /* @__PURE__ */ d(Ce, { "aria-hidden": !0 }),
197
- tooltip: e ?? s("dataTable.exportCsv"),
198
- onClick: l,
199
- ...a
200
- }
201
- );
202
- }
203
- );
204
- Ne.displayName = "DataTable.Toolbar.ExportCsv";
205
- function re(e, t = [30, 30, 30]) {
206
- if (typeof document > "u") return t;
207
- const n = document.createElement("div");
208
- n.className = "theme-light", n.style.position = "absolute", n.style.visibility = "hidden";
209
- const a = document.createElement("span");
210
- a.style.color = `var(${e})`, n.appendChild(a), document.body.appendChild(n);
211
- const i = getComputedStyle(a).color;
212
- document.body.removeChild(n);
213
- const s = i.match(/rgba?\(\s*(\d+)[,\s]+(\d+)[,\s]+(\d+)/i);
214
- return s ? [Number(s[1]), Number(s[2]), Number(s[3])] : t;
215
- }
216
- async function rt(e, t) {
217
- if (!e) return;
218
- const [{ jsPDF: n }, { default: a }] = await Promise.all([
219
- import("./jspdf.es.min-BW7y6yhl.js").then((w) => w.j),
220
- import("./jspdf.plugin.autotable-CSiDNyPn.js")
221
- ]), s = (e.getColumns() ?? []).filter((w) => w.isVisible()), g = [
222
- s.map((w) => e.getDisplayNameForColumn(w, null) ?? "")
223
- ], l = [];
224
- e.forEachNodeAfterFilterAndSort((w) => {
225
- if (!w.data) return;
226
- const p = s.map((T) => {
227
- const S = e.getCellValue({
228
- rowNode: w,
229
- colKey: T,
230
- useFormatter: !0
231
- });
232
- return S == null ? "" : String(S);
233
- });
234
- l.push(p);
235
- });
236
- const m = re("--muted", [240, 240, 240]), f = re("--foreground", [30, 30, 30]), u = re("--card-foreground", [30, 30, 30]), h = re("--card", [250, 250, 250]), v = new n({ orientation: "landscape" });
237
- a(v, {
238
- head: g,
239
- body: l,
240
- headStyles: { fillColor: m, textColor: f },
241
- bodyStyles: { textColor: u },
242
- alternateRowStyles: { fillColor: h },
243
- styles: {
244
- font: "helvetica",
245
- fontSize: 10,
246
- cellPadding: 4
247
- }
248
- }), v.save(t.fileName);
249
- }
250
- const ke = $(
251
- ({ label: e, onClick: t, fileName: n, intent: a = "outline", ...i }, s) => {
252
- const { t: g } = A("ui"), { getApi: l } = Q("DataTable.Toolbar.ExportPdf"), m = G(() => {
253
- const f = l();
254
- if (t) {
255
- t(f);
256
- return;
257
- }
258
- rt(f, {
259
- fileName: n ?? "data-table-export.pdf"
260
- });
261
- }, [l, t, n]);
262
- return /* @__PURE__ */ d(
263
- oe,
264
- {
265
- ref: s,
266
- type: "button",
267
- intent: a,
268
- icon: /* @__PURE__ */ d(Xe, { "aria-hidden": !0 }),
269
- tooltip: e ?? g("dataTable.exportPdf"),
270
- onClick: m,
271
- ...i
272
- }
273
- );
274
- }
275
- );
276
- ke.displayName = "DataTable.Toolbar.ExportPdf";
277
- const Pe = $(
278
- ({ label: e, intent: t = "outline", ...n }, a) => {
279
- const { t: i } = A("ui"), { onPrint: s } = Q("DataTable.Toolbar.Print");
280
- return /* @__PURE__ */ d(
281
- oe,
282
- {
283
- ref: a,
284
- type: "button",
285
- intent: t,
286
- icon: /* @__PURE__ */ d(na, { "aria-hidden": !0 }),
287
- tooltip: e ?? i("dataTable.print"),
288
- onClick: s,
289
- ...n
290
- }
291
- );
292
- }
293
- );
294
- Pe.displayName = "DataTable.Toolbar.Print";
295
- const nt = ({ placeholder: e, debounceMs: t = 150 }) => {
296
- const { t: n } = A("ui"), { getApi: a } = Q("DataTable.Toolbar.QuickSearch"), [i, s] = L(""), g = _(void 0);
297
- return B(() => (g.current && window.clearTimeout(g.current), g.current = window.setTimeout(() => {
298
- const l = a();
299
- l && l.setGridOption("quickFilterText", i);
300
- }, t), () => {
301
- g.current && window.clearTimeout(g.current);
302
- }), [i, t, a]), // Slot wrapper caps the search at a sensible legible width on desktop —
303
- // without this, TextInput's `w-full` lets the QuickSearch absorb the
304
- // entire FilterBar row and push trailing Actions onto a second line at
305
- // 1024 / 1280 / 1440. `min-w-0` lets the slot shrink below `24rem` when
306
- // the toolbar is squeezed on narrow viewports. There is no
307
- // `--toolbar-search-max` token in the kit yet — see this component's
308
- // summary for a follow-up note recommending we add one.
309
- /* @__PURE__ */ d("div", { className: "ds:w-full ds:max-w-[24rem] ds:min-w-0", children: /* @__PURE__ */ d(
310
- ea,
311
- {
312
- type: "search",
313
- size: "sm",
314
- onChange: (l) => s(l.target.value),
315
- placeholder: e ?? n("dataTable.quickSearch.placeholder", "Search…"),
316
- startAdornment: /* @__PURE__ */ d(Ie, { "aria-hidden": !0, className: "ds:size-4" }),
317
- clearable: !0,
318
- onClear: () => s(""),
319
- "aria-label": n("dataTable.quickSearch.label", "Quick search")
320
- }
321
- ) });
322
- };
323
- nt.displayName = "DataTable.Toolbar.QuickSearch";
324
- const Ae = $(
325
- ({ onRefresh: e, label: t, intent: n = "outline", ...a }, i) => {
326
- const { t: s } = A("ui");
327
- return /* @__PURE__ */ d(
328
- oe,
329
- {
330
- ref: i,
331
- type: "button",
332
- intent: n,
333
- icon: /* @__PURE__ */ d(ta, { "aria-hidden": !0 }),
334
- tooltip: t ?? s("dataTable.refresh", "Refresh"),
335
- onClick: e,
336
- ...a
337
- }
338
- );
339
- }
340
- );
341
- Ae.displayName = "DataTable.Toolbar.Refresh";
342
- function va(e, t) {
343
- if (!e || typeof e != "object") return "";
344
- const n = e, a = typeof n.type == "string" ? n.type : "", i = (l) => t(
345
- `dataTable.agGrid.${l}`,
346
- t(`dataTable.numberFilter.operators.${l}`, l)
347
- );
348
- if (a === "blank" || a === "notBlank") return i(a);
349
- const s = typeof n.filter == "string" || typeof n.filter == "number", g = typeof n.filterTo == "string" || typeof n.filterTo == "number";
350
- return a === "inRange" && (s || g) ? s && g ? `${n.filter} – ${n.filterTo}` : s ? `${t("dataTable.numberFilter.from", "From")} ${n.filter}` : `${t("dataTable.numberFilter.to", "To")} ${n.filterTo}` : s ? a ? `${i(a)} ${n.filter}` : String(n.filter) : typeof n.dateFrom == "string" ? typeof n.dateTo == "string" && n.dateTo ? `${n.dateFrom} – ${n.dateTo}` : String(n.dateFrom) : Array.isArray(n.values) ? n.values.map(String).join(", ") : "";
351
- }
352
- const ot = () => {
353
- const { t: e } = A("ui"), { getApi: t } = Q("DataTable.Toolbar.FilterChips"), [n, a] = L([]), [i, s] = L(""), g = G(() => {
354
- const u = t();
355
- if (!u) {
356
- a([]), s("");
357
- return;
358
- }
359
- const h = u.getFilterModel() ?? {}, v = u.getColumns() ?? [], w = [];
360
- for (const T of Object.keys(h)) {
361
- const S = v.find((C) => C.getColId() === T), R = u.getDisplayNameForColumn(S, null) ?? T;
362
- w.push({
363
- colId: T,
364
- headerName: R,
365
- text: va(h[T], e)
366
- });
367
- }
368
- a(w);
369
- const p = u.getGridOption("quickFilterText");
370
- s(typeof p == "string" ? p : "");
371
- }, [t, e]);
372
- if (B(() => {
373
- let u;
374
- const h = (p) => g(), v = (p) => {
375
- p.addEventListener("filterChanged", h), g(), u = () => p.removeEventListener("filterChanged", h);
376
- }, w = t();
377
- if (w)
378
- v(w);
379
- else {
380
- const p = window.setInterval(() => {
381
- const T = t();
382
- T && (window.clearInterval(p), v(T));
383
- }, 50);
384
- u = () => window.clearInterval(p);
385
- }
386
- return () => u == null ? void 0 : u();
387
- }, [t, g]), n.length + (i ? 1 : 0) === 0) return null;
388
- function m(u) {
389
- const h = t();
390
- h && (h.setColumnFilterModel(u, null), h.onFilterChanged());
391
- }
392
- function f() {
393
- const u = t();
394
- u && (u.setFilterModel(null), u.setGridOption("quickFilterText", ""), s(""));
395
- }
396
- return /* @__PURE__ */ q(
397
- "div",
398
- {
399
- role: "group",
400
- "aria-label": e("dataTable.filterChips.label", "Active filters"),
401
- className: "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]",
402
- children: [
403
- i && /* @__PURE__ */ d(
404
- He,
405
- {
406
- label: `${e("dataTable.quickSearch.label", "Quick search")}: ${i}`,
407
- size: "sm",
408
- variant: "brand",
409
- fill: "solid",
410
- onRemove: () => {
411
- const u = t();
412
- u == null || u.setGridOption("quickFilterText", ""), s("");
413
- }
414
- }
415
- ),
416
- n.map((u) => /* @__PURE__ */ d(
417
- He,
418
- {
419
- label: u.text ? `${u.headerName}: ${u.text}` : u.headerName,
420
- size: "sm",
421
- variant: "brand",
422
- fill: "solid",
423
- onRemove: () => m(u.colId)
424
- },
425
- u.colId
426
- )),
427
- /* @__PURE__ */ d(
428
- ce,
429
- {
430
- type: "button",
431
- intent: "ghost",
432
- size: "sm",
433
- onClick: f,
434
- startIcon: /* @__PURE__ */ d(Qe, { "aria-hidden": !0, className: "ds:size-4" }),
435
- children: e("dataTable.filterChips.clearAll", "Clear all")
436
- }
437
- )
438
- ]
439
- }
440
- );
441
- };
442
- ot.displayName = "DataTable.Toolbar.FilterChips";
443
- const it = ({
444
- field: e,
445
- options: t,
446
- label: n
447
- }) => {
448
- const { t: a } = A("ui"), { getApi: i } = Q("DataTable.Toolbar.FacetFilter"), [s, g] = L(null);
449
- function l(m) {
450
- g(m);
451
- const f = i();
452
- if (f) {
453
- if (m === null) {
454
- f.setColumnFilterModel(e, null), f.onFilterChanged();
455
- return;
456
- }
457
- f.setColumnFilterModel(e, {
458
- type: "equals",
459
- filter: m
460
- }), f.onFilterChanged();
461
- }
462
- }
463
- return /* @__PURE__ */ d(
464
- "div",
465
- {
466
- role: "group",
467
- "aria-label": n ?? a("dataTable.facetFilter.label", "Filter"),
468
- className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)]",
469
- children: t.map((m) => {
470
- const f = s === m.value;
471
- return /* @__PURE__ */ d(
472
- ce,
473
- {
474
- type: "button",
475
- size: "sm",
476
- intent: f ? "primary" : "secondary",
477
- "aria-pressed": f,
478
- onClick: () => l(m.value),
479
- children: m.label
480
- },
481
- String(m.value)
482
- );
483
- })
484
- }
485
- );
486
- };
487
- it.displayName = "DataTable.Toolbar.FacetFilter";
488
- const Sa = ["csv", "xlsx", "pdf"];
489
- async function Ra(e, t) {
490
- if (!e) return;
491
- const a = (e.getColumns() ?? []).filter((u) => u.isVisible()), i = a.map(
492
- (u) => e.getDisplayNameForColumn(u, null) ?? u.getColId()
493
- ), s = [];
494
- e.forEachNodeAfterFilterAndSort((u) => {
495
- u.data && s.push(
496
- a.map(
497
- (h) => e.getCellValue({ rowNode: u, colKey: h, useFormatter: !0 })
498
- )
499
- );
500
- });
501
- const g = ([u, h, v]) => `#${[u, h, v].map((w) => w.toString(16).padStart(2, "0")).join("")}`.toUpperCase(), l = await ya(i, s, {
502
- fill: g(re("--muted", [240, 240, 240])),
503
- text: g(re("--foreground", [30, 30, 30]))
504
- }), m = URL.createObjectURL(l), f = document.createElement("a");
505
- f.href = m, f.download = t.fileName, document.body.appendChild(f), f.click(), document.body.removeChild(f), URL.revokeObjectURL(m);
506
- }
507
- const lt = Ge(null);
508
- function Da() {
509
- const e = Fe(lt);
510
- if (!e)
511
- throw new Error(
512
- "DataTable.Toolbar.ExportMenu.Item must be rendered inside DataTable.Toolbar.ExportMenu."
513
- );
514
- return e;
515
- }
516
- const Me = $(
517
- ({ children: e, label: t, intent: n = "outline", ...a }, i) => {
518
- const { t: s } = A("ui"), { getApi: g } = Q("DataTable.Toolbar.ExportMenu"), l = z(() => ({ getApi: g }), [g]), m = e ?? Sa.map((f) => /* @__PURE__ */ d(Oe, { format: f }, f));
519
- return /* @__PURE__ */ d(lt.Provider, { value: l, children: /* @__PURE__ */ q(xe.Root, { children: [
520
- /* @__PURE__ */ d(xe.Trigger, { asChild: !0, children: /* @__PURE__ */ d(
521
- oe,
522
- {
523
- ref: i,
524
- type: "button",
525
- intent: n,
526
- icon: /* @__PURE__ */ d(Ce, { "aria-hidden": !0 }),
527
- tooltip: t ?? s("dataTable.export.menu", "Export"),
528
- "aria-label": t ?? s("dataTable.export.menu", "Export"),
529
- "aria-haspopup": "menu",
530
- ...a
531
- }
532
- ) }),
533
- /* @__PURE__ */ d(xe.Content, { align: "end", sideOffset: 4, children: m })
534
- ] }) });
535
- }
536
- );
537
- Me.displayName = "DataTable.Toolbar.ExportMenu";
538
- function Ea(e, t) {
539
- return t === "csv" ? e("dataTable.export.csv", "Export CSV") : t === "xlsx" ? e("dataTable.export.xlsx", "Export Excel") : t === "pdf" ? e("dataTable.export.pdf", "Export PDF") : e("dataTable.export.custom", "Export");
540
- }
541
- function Ga(e) {
542
- return e === "csv" ? /* @__PURE__ */ d(Ce, { "aria-hidden": !0, className: "ds:size-4" }) : e === "xlsx" ? /* @__PURE__ */ d(oa, { "aria-hidden": !0, className: "ds:size-4" }) : e === "pdf" ? /* @__PURE__ */ d(Xe, { "aria-hidden": !0, className: "ds:size-4" }) : /* @__PURE__ */ d(Ce, { "aria-hidden": !0, className: "ds:size-4" });
543
- }
544
- const Oe = ({
545
- format: e,
546
- label: t,
547
- onClick: n,
548
- fileName: a
549
- }) => {
550
- const { t: i } = A("ui"), { getApi: s } = Da(), g = G(() => {
551
- const l = s();
552
- if (e === "csv") {
553
- l == null || l.exportDataAsCsv();
554
- return;
555
- }
556
- if (e === "pdf") {
557
- rt(l, {
558
- fileName: a ?? "data-table-export.pdf"
559
- });
560
- return;
561
- }
562
- if (e === "xlsx") {
563
- Ra(l, {
564
- fileName: a ?? "data-table-export.xlsx"
565
- });
566
- return;
567
- }
568
- n == null || n(l);
569
- }, [e, a, n, s]);
570
- return /* @__PURE__ */ d(xe.Item, { onSelect: g, children: /* @__PURE__ */ q("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
571
- Ga(e),
572
- /* @__PURE__ */ d("span", { children: t ?? Ea(i, e) })
573
- ] }) });
574
- };
575
- Oe.displayName = "DataTable.Toolbar.ExportMenu.Item";
576
- function Fa(e) {
577
- if (!e) return [];
578
- const t = (a) => a.getPinned() === "left" ? 0 : a.getPinned() === "right" ? 2 : 1;
579
- return [...e.getAllGridColumns() ?? []].sort(
580
- (a, i) => t(a) - t(i)
581
- ).map((a) => a.getColDef().hide === void 0 && a.getColId().startsWith("ag-Grid-") ? null : {
582
- colId: a.getColId(),
583
- displayName: e.getDisplayNameForColumn(a, null) || a.getColId(),
584
- visible: a.isVisible()
585
- }).filter((a) => a !== null);
586
- }
587
- const Le = $(
588
- function({ label: t, icon: n, footer: a, header: i, intent: s = "outline", ...g }, l) {
589
- const { t: m } = A("ui"), { getApi: f, markColumnsUserTouched: u } = Q(
590
- "DataTable.Toolbar.ColumnToggle"
591
- ), [h, v] = L(!1), [w, p] = L([]), [T, S] = L(null), [R, C] = L(null);
592
- B(() => {
593
- h && p(Fa(f()));
594
- }, [h, f]);
595
- const D = G(
596
- (x, k) => {
597
- const V = f();
598
- V && (V.setColumnsVisible([x], k), u == null || u([x]), p(
599
- (I) => I.map(
600
- (W) => W.colId === x ? { ...W, visible: k } : W
601
- )
602
- ));
603
- },
604
- [f, u]
605
- ), te = G(
606
- (x, k) => {
607
- if (x === k) return;
608
- const V = f();
609
- if (!V) return;
610
- p((N) => {
611
- const O = N.findIndex((le) => le.colId === x), E = N.findIndex((le) => le.colId === k);
612
- if (O < 0 || E < 0) return N;
613
- const X = [...N], [ie] = X.splice(O, 1);
614
- return X.splice(E, 0, ie), X;
615
- });
616
- const I = V.getAllGridColumns(), W = I.find((N) => N.getColId() === x), M = I.find((N) => N.getColId() === k);
617
- if (!W || !M) return;
618
- W.getPinned() !== M.getPinned() && V.setColumnsPinned([x], M.getPinned() ?? null);
619
- const U = V.getAllGridColumns().findIndex((N) => N.getColId() === k);
620
- U >= 0 && V.moveColumns([x], U);
621
- },
622
- [f]
623
- ), Z = t ?? m("dataTable.columnToggle");
624
- return /* @__PURE__ */ q(Te.Root, { open: h, onOpenChange: v, children: [
625
- /* @__PURE__ */ d(Te.Trigger, { asChild: !0, children: /* @__PURE__ */ d(
626
- oe,
627
- {
628
- ref: l,
629
- type: "button",
630
- intent: s,
631
- icon: n ?? /* @__PURE__ */ d(ma, { "aria-hidden": !0 }),
632
- tooltip: Z,
633
- "aria-label": Z,
634
- "aria-haspopup": "dialog",
635
- ...g
636
- }
637
- ) }),
638
- /* @__PURE__ */ q(
639
- Te.Content,
640
- {
641
- size: "sm",
642
- align: "end",
643
- className: "ds:flex ds:max-h-[var(--radix-popover-content-available-height)] ds:flex-col",
644
- children: [
645
- /* @__PURE__ */ d(Te.Heading, { children: Z }),
646
- i ? /* @__PURE__ */ d("div", { className: "ds:mb-[var(--spacing-xs)] ds:border-b ds:border-[color:var(--border)] ds:pb-[var(--spacing-sm)]", children: i }) : null,
647
- /* @__PURE__ */ d(
648
- "ul",
649
- {
650
- className: "ds:flex ds:min-h-0 ds:flex-col ds:gap-[var(--spacing-xs)] ds:overflow-y-auto",
651
- "aria-label": Z,
652
- children: w.map((x) => {
653
- const k = T === x.colId, V = R === x.colId && T !== x.colId;
654
- return /* @__PURE__ */ q(
655
- "li",
656
- {
657
- draggable: !0,
658
- onDragStart: (I) => {
659
- S(x.colId), I.dataTransfer.effectAllowed = "move", I.dataTransfer.setData("text/plain", x.colId);
660
- },
661
- onDragOver: (I) => {
662
- I.preventDefault(), I.dataTransfer.dropEffect = "move", C(x.colId);
663
- },
664
- onDragLeave: () => {
665
- C(
666
- (I) => I === x.colId ? null : I
667
- );
668
- },
669
- onDrop: (I) => {
670
- I.preventDefault();
671
- const W = I.dataTransfer.getData("text/plain");
672
- W && te(W, x.colId), S(null), C(null);
673
- },
674
- onDragEnd: () => {
675
- S(null), C(null);
676
- },
677
- className: [
678
- "ds:flex ds:items-center ds:gap-[var(--spacing-xs)] ds:rounded-[var(--radius-sm)] ds:px-[var(--spacing-xs)] ds:py-[var(--spacing-2xs,var(--spacing-xs))] ds:transition-colors",
679
- k ? "ds:opacity-50" : "",
680
- V ? "ds:bg-[color:color-mix(in_srgb,var(--primary)_8%,transparent)]" : ""
681
- ].filter(Boolean).join(" "),
682
- children: [
683
- /* @__PURE__ */ d(
684
- "span",
685
- {
686
- "aria-hidden": "true",
687
- className: "ds:cursor-grab ds:text-[color:var(--muted-foreground)] ds:active:cursor-grabbing",
688
- children: /* @__PURE__ */ d(ra, { className: "ds:size-4" })
689
- }
690
- ),
691
- /* @__PURE__ */ d(
692
- Jt,
693
- {
694
- label: x.displayName,
695
- checked: x.visible,
696
- onCheckedChange: (I) => D(x.colId, I === !0)
697
- }
698
- )
699
- ]
700
- },
701
- x.colId
702
- );
703
- })
704
- }
705
- ),
706
- a ? /* @__PURE__ */ d("div", { className: "ds:mt-[var(--spacing-xs)] ds:border-t ds:border-[color:var(--border)] ds:pt-[var(--spacing-sm)]", children: a }) : null
707
- ]
708
- }
709
- )
710
- ] });
711
- }
712
- );
713
- Le.displayName = "DataTable.Toolbar.ColumnToggle";
714
- const st = $(
715
- ({ label: e, icon: t, onClick: n, variant: a = "default", size: i = "sm", ...s }, g) => {
716
- const { t: l } = A("ui"), { getApi: m, selectionCount: f } = Q(
717
- "DataTable.Toolbar.BulkAction"
718
- );
719
- return f === 0 ? null : /* @__PURE__ */ q(
720
- ce,
721
- {
722
- ref: g,
723
- type: "button",
724
- intent: a === "destructive" ? "destructive" : "secondary",
725
- size: i,
726
- startIcon: xa(t),
727
- onClick: () => n(m()),
728
- "aria-label": `${e} (${l("dataTable.bulkAction", { count: f })})`,
729
- ...s,
730
- children: [
731
- /* @__PURE__ */ d("span", { children: e }),
732
- /* @__PURE__ */ d(
733
- "span",
734
- {
735
- "aria-hidden": "true",
736
- className: "ds:ms-[var(--spacing-xs)] ds:opacity-80",
737
- children: l("dataTable.bulkAction", { count: f })
738
- }
739
- )
740
- ]
741
- }
742
- );
743
- }
744
- );
745
- st.displayName = "DataTable.Toolbar.BulkAction";
746
- for (const e of [
747
- Ne,
748
- ke,
749
- Pe,
750
- Ae,
751
- Me,
752
- Le
753
- ])
754
- e.rendersIconButton = !0;
755
- const Ia = Object.assign(Me, {
756
- Item: Oe
757
- }), we = Object.assign(et, {
758
- FilterBar: tt,
759
- Actions: at,
760
- /** @deprecated Use `Toolbar.ExportMenu` with a `csv` item. */
761
- ExportCsv: Ne,
762
- /** @deprecated Use `Toolbar.ExportMenu` with a `pdf` item. */
763
- ExportPdf: ke,
764
- Print: Pe,
765
- ColumnToggle: Le,
766
- BulkAction: st,
767
- QuickSearch: nt,
768
- Refresh: Ae,
769
- FilterChips: ot,
770
- FacetFilter: it,
771
- ExportMenu: Ia
772
- }), Na = [
773
- "contains",
774
- "equals",
775
- "startsWith",
776
- "endsWith",
777
- "notContains"
778
- ];
779
- function ka(e) {
780
- const t = new Intl.Collator(e, {
781
- sensitivity: "base",
782
- usage: "search"
783
- });
784
- function n(a, i) {
785
- if (i.length === 0) return 0;
786
- if (i.length > a.length) return -1;
787
- for (let s = 0; s <= a.length - i.length; s += 1)
788
- if (t.compare(a.slice(s, s + i.length), i) === 0)
789
- return s;
790
- return -1;
791
- }
792
- return {
793
- equals: (a, i) => t.compare(a, i) === 0,
794
- contains: (a, i) => n(a, i) !== -1,
795
- startsWith: (a, i) => i.length <= a.length && t.compare(a.slice(0, i.length), i) === 0,
796
- endsWith: (a, i) => i.length <= a.length && t.compare(
797
- a.slice(a.length - i.length),
798
- i
799
- ) === 0
800
- };
801
- }
802
- function Pa(e) {
803
- return e == null ? null : typeof e == "string" ? e : String(e);
804
- }
805
- function Aa(e) {
806
- const { model: t, onModelChange: n, getValue: a, placeholder: i, defaultOperator: s } = e, { t: g } = A("ui"), l = (t == null ? void 0 : t.type) ?? s ?? "contains", [m, f] = L(l), [u, h] = L((t == null ? void 0 : t.filter) ?? "");
807
- B(() => {
808
- f((t == null ? void 0 : t.type) ?? s ?? "contains"), h((t == null ? void 0 : t.filter) ?? "");
809
- }, [t, s]);
810
- const v = z(() => ka(ia.language), []);
811
- Ht({
812
- doesFilterPass: (R) => {
813
- const C = t;
814
- if (!C || C.filter === "") return !0;
815
- const D = Pa(a(R.node));
816
- if (D === null) return !1;
817
- switch (C.type) {
818
- case "equals":
819
- return v.equals(D, C.filter);
820
- case "contains":
821
- return v.contains(D, C.filter);
822
- case "startsWith":
823
- return v.startsWith(D, C.filter);
824
- case "endsWith":
825
- return v.endsWith(D, C.filter);
826
- case "notContains":
827
- return !v.contains(D, C.filter);
828
- default:
829
- return !0;
830
- }
831
- }
832
- });
833
- function w() {
834
- if (u.trim() === "") {
835
- n(null);
836
- return;
837
- }
838
- n({ type: m, filter: u });
839
- }
840
- function p() {
841
- h(""), f(s ?? "contains"), n(null);
842
- }
843
- const T = Na.map(
844
- (R) => ({
845
- value: R,
846
- label: g(`dataTable.textFilter.operators.${R}`)
847
- })
848
- ), S = i ?? g("dataTable.textFilter.placeholder");
849
- return /* @__PURE__ */ q(
850
- "div",
851
- {
852
- "data-component": "text-filter",
853
- className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-sm)] ds:min-w-[240px]",
854
- children: [
855
- /* @__PURE__ */ d(
856
- la,
857
- {
858
- size: "sm",
859
- options: T,
860
- value: m,
861
- onValueChange: (R) => {
862
- R !== "" && f(R);
863
- },
864
- "aria-label": g("dataTable.textFilter.operators.contains")
865
- }
866
- ),
867
- /* @__PURE__ */ d(
868
- Ye,
869
- {
870
- size: "sm",
871
- value: u,
872
- onChange: (R) => h(R.target.value),
873
- onKeyDown: (R) => {
874
- R.key === "Enter" && (R.preventDefault(), w());
875
- },
876
- placeholder: S,
877
- "aria-label": S,
878
- startAdornment: /* @__PURE__ */ d(Ie, { "aria-hidden": "true", className: "ds:size-4" })
879
- }
880
- ),
881
- /* @__PURE__ */ q("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: [
882
- /* @__PURE__ */ d(ce, { intent: "ghost", size: "sm", onClick: p, type: "button", children: g("dataTable.textFilter.clear") }),
883
- /* @__PURE__ */ d(ce, { intent: "primary", size: "sm", onClick: w, type: "button", children: g("dataTable.textFilter.apply") })
884
- ] })
885
- ]
886
- }
887
- );
888
- }
889
- function Ma(e) {
890
- var h, v;
891
- const { model: t, onModelChange: n, column: a } = e, { t: i } = A("ui"), s = ((v = (h = a == null ? void 0 : a.getColDef) == null ? void 0 : h.call(a)) == null ? void 0 : v.filterParams) ?? {}, g = s.defaultOperator ?? "contains", l = s.placeholder ?? i("dataTable.textFilter.placeholder"), [m, f] = L((t == null ? void 0 : t.filter) ?? "");
892
- B(() => {
893
- f((t == null ? void 0 : t.filter) ?? "");
894
- }, [t == null ? void 0 : t.filter]), B(() => {
895
- if (m === ((t == null ? void 0 : t.filter) ?? "")) return;
896
- const w = setTimeout(() => {
897
- if (m === "") {
898
- t && n(null);
899
- return;
900
- }
901
- n({ type: g, filter: m });
902
- }, 200);
903
- return () => clearTimeout(w);
904
- }, [m, g, t, n]);
905
- function u() {
906
- f(""), t && n(null);
907
- }
908
- return /* @__PURE__ */ d("div", { "data-component": "text-floating-filter", className: "ds:w-full", children: /* @__PURE__ */ d(
909
- Ye,
910
- {
911
- size: "sm",
912
- value: m,
913
- onChange: (w) => f(w.target.value),
914
- placeholder: l,
915
- "aria-label": l,
916
- startAdornment: /* @__PURE__ */ d(Ie, { "aria-hidden": "true", className: "ds:size-4" }),
917
- endAdornment: m.length > 0 ? /* @__PURE__ */ d(
918
- "button",
919
- {
920
- type: "button",
921
- "aria-label": i("dataTable.textFilter.clear"),
922
- onClick: u,
923
- 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",
924
- children: /* @__PURE__ */ d(Qe, { "aria-hidden": "true", className: "ds:size-4" })
925
- }
926
- ) : void 0
927
- }
928
- ) });
929
- }
930
- const Oa = /* @__PURE__ */ new Set(["presentation", "none"]), Ke = '[role="presentation"][aria-hidden], [role="none"][aria-hidden]';
931
- function ye(e) {
932
- const t = e.getAttribute("role");
933
- t === null || !Oa.has(t) || e.getAttribute("aria-hidden") === "false" && e.removeAttribute("aria-hidden");
934
- }
935
- function La(e, t = !0) {
936
- B(() => {
937
- const n = e.current;
938
- if (!t || !n || typeof MutationObserver > "u") return;
939
- (() => {
940
- for (const s of n.querySelectorAll(Ke)) ye(s);
941
- })();
942
- const i = new MutationObserver((s) => {
943
- for (const g of s)
944
- if (g.type === "attributes")
945
- ye(g.target);
946
- else
947
- for (const l of g.addedNodes)
948
- if (l instanceof Element) {
949
- ye(l);
950
- for (const m of l.querySelectorAll(Ke))
951
- ye(m);
952
- }
953
- });
954
- return i.observe(n, {
955
- subtree: !0,
956
- childList: !0,
957
- attributes: !0,
958
- attributeFilter: ["aria-hidden"]
959
- }), () => i.disconnect();
960
- }, [e, t]);
961
- }
962
- const ne = "__dsDetailOf", Va = "ds-data-table-expanded-row", dt = "::detail", za = 'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])';
963
- function j(e) {
964
- return typeof e == "object" && e !== null && typeof e[ne] == "string";
965
- }
966
- function _a(e) {
967
- return `${e}${dt}`;
968
- }
969
- function Mr(e) {
970
- return e.endsWith(dt);
971
- }
972
- function qa(e, t) {
973
- return { ...e, [ne]: t };
974
- }
975
- const ct = Ge(
976
- null
977
- );
978
- function Wa(e) {
979
- var p;
980
- const t = Fe(
981
- ct
982
- ), { t: n } = A("ui"), a = _(null), { data: i, node: s, api: g } = e, l = j(i), m = t == null ? void 0 : t.heights, f = s.id, u = _(t);
983
- if (u.current = t, B(() => {
984
- const T = a.current;
985
- if (!T || !l || !m || f == null) return;
986
- let S = m.get(f) ?? 0;
987
- const R = () => {
988
- const D = Math.ceil(T.getBoundingClientRect().height);
989
- D <= 0 || D === S || (S = D, m.set(f, D), s.setRowHeight(D), g.onRowHeightChanged());
990
- };
991
- R();
992
- const C = new ResizeObserver(R);
993
- return C.observe(T), () => C.disconnect();
994
- }, [g, f, m, l, s]), B(() => {
995
- const T = a.current, S = T == null ? void 0 : T.parentElement;
996
- if (!T || !S || !l) return;
997
- const R = (C) => {
998
- var D, te;
999
- C.target !== S || C.defaultPrevented || (C.key === "Escape" ? (C.stopPropagation(), (te = (D = u.current) == null ? void 0 : D.onExpandedRowChange) == null || te.call(D, null)) : C.key === "Enter" && (C.preventDefault(), (T.querySelector(za) ?? T).focus()));
1000
- };
1001
- return S.addEventListener("keydown", R), () => S.removeEventListener("keydown", R);
1002
- }, [l]), !l) {
1003
- const T = t == null ? void 0 : t.fallbackRenderer;
1004
- return T ? /* @__PURE__ */ d(T, { ...e }) : null;
1005
- }
1006
- const h = i[ne];
1007
- let v;
1008
- if (t != null && t.expanded && t.expanded.id === h)
1009
- v = t.expanded.row;
1010
- else {
1011
- const { [ne]: T, ...S } = i;
1012
- v = S;
1013
- }
1014
- return /* @__PURE__ */ q(
1015
- "div",
1016
- {
1017
- ref: a,
1018
- role: "gridcell",
1019
- tabIndex: -1,
1020
- "data-component": "data-table-expanded-row",
1021
- "data-expanded-row-of": h,
1022
- className: "ds-data-table-expanded-row-surface",
1023
- onKeyDown: (T) => {
1024
- var S;
1025
- T.key !== "Escape" || T.defaultPrevented || (T.stopPropagation(), (S = t == null ? void 0 : t.onExpandedRowChange) == null || S.call(t, null));
1026
- },
1027
- children: [
1028
- /* @__PURE__ */ d("span", { className: "ds:sr-only", children: n("dataTable.expandedRow") }),
1029
- (p = t == null ? void 0 : t.renderExpandedRow) == null ? void 0 : p.call(t, v)
1030
- ]
1031
- }
1032
- );
1033
- }
1034
- const ja = {
1035
- id: "data-table",
1036
- capabilities: [
1037
- "select_single",
1038
- "select_multiple",
1039
- "range_pick",
1040
- "filter",
1041
- "sort",
1042
- "paginate"
1043
- ],
1044
- state: {
1045
- selection: {
1046
- type: "string[]",
1047
- descriptionKey: "ui.agent.dataTable.state.selection",
1048
- description: "Row ids of currently-selected rows.",
1049
- read: (e) => e.getSelection()
1050
- },
1051
- filter: {
1052
- type: "object",
1053
- descriptionKey: "ui.agent.dataTable.state.filter",
1054
- description: "Current ag-grid filter model, keyed by column id.",
1055
- read: (e) => e.getFilter()
1056
- },
1057
- sort: {
1058
- type: "Array<{ colId, sort }>",
1059
- descriptionKey: "ui.agent.dataTable.state.sort",
1060
- description: "Active sort, in priority order.",
1061
- read: (e) => e.getSort()
1062
- },
1063
- currentPage: {
1064
- type: "number",
1065
- descriptionKey: "ui.agent.dataTable.state.currentPage",
1066
- description: "Zero-indexed page number.",
1067
- read: (e) => e.getCurrentPage()
1068
- },
1069
- expandedRowId: {
1070
- type: "string | null",
1071
- descriptionKey: "ui.agent.dataTable.state.expandedRowId",
1072
- description: "Id of the row whose inline detail is open (expandable row), or null.",
1073
- read: (e) => e.getExpandedRowId()
1074
- }
1075
- },
1076
- actions: {
1077
- select_rows: {
1078
- // Transient grid selection (data-table convention) — stays read.
1079
- safety: "read",
1080
- argsType: "{ ids: string[] }",
1081
- argsSchema: {
1082
- type: "object",
1083
- properties: {
1084
- ids: {
1085
- type: "array",
1086
- items: { type: "string" },
1087
- description: "Row ids to select (replaces the current selection)."
1088
- }
1089
- },
1090
- required: ["ids"]
1091
- },
1092
- idempotent: !0,
1093
- descriptionKey: "ui.agent.dataTable.actions.selectRows",
1094
- description: "Replace the current selection with the given row ids.",
1095
- examples: [
1096
- { args: { ids: ["r-1", "r-2"] }, note: "Select the first two rows." }
1097
- ],
1098
- invoke: (e, t) => {
1099
- e.setSelection(t.ids);
1100
- }
1101
- },
1102
- select_range: {
1103
- safety: "read",
1104
- argsType: "{ fromId: string, toId: string }",
1105
- argsSchema: {
1106
- type: "object",
1107
- properties: {
1108
- fromId: { type: "string", description: "Start row id (inclusive)." },
1109
- toId: { type: "string", description: "End row id (inclusive)." }
1110
- },
1111
- required: ["fromId", "toId"]
1112
- },
1113
- idempotent: !0,
1114
- descriptionKey: "ui.agent.dataTable.actions.selectRange",
1115
- description: "Select every row between fromId and toId, inclusive, in current sort order.",
1116
- invoke: (e, t) => {
1117
- e.selectRange(t.fromId, t.toId);
1118
- }
1119
- },
1120
- clear_selection: {
1121
- safety: "read",
1122
- idempotent: !0,
1123
- descriptionKey: "ui.agent.dataTable.actions.clearSelection",
1124
- description: "Deselect all rows.",
1125
- invoke: (e) => {
1126
- e.clearSelection();
1127
- }
1128
- },
1129
- get_selection: {
1130
- safety: "read",
1131
- returns: "string[]",
1132
- returnsSchema: { type: "array", items: { type: "string" } },
1133
- idempotent: !0,
1134
- descriptionKey: "ui.agent.dataTable.actions.getSelection",
1135
- description: "Return the row ids of the currently-selected rows.",
1136
- invoke: (e) => e.getSelection()
1137
- },
1138
- apply_filter: {
1139
- safety: "read",
1140
- argsType: "{ model: Record<string, unknown> }",
1141
- argsSchema: {
1142
- type: "object",
1143
- properties: {
1144
- model: {
1145
- type: "object",
1146
- description: "ag-grid filter model keyed by column id. Opaque per-column filter shapes; replaces the current model.",
1147
- additionalProperties: !0
1148
- }
1149
- },
1150
- required: ["model"]
1151
- },
1152
- idempotent: !0,
1153
- descriptionKey: "ui.agent.dataTable.actions.applyFilter",
1154
- description: "Replace the filter model with the given object.",
1155
- invoke: (e, t) => {
1156
- e.setFilter(t.model);
1157
- }
1158
- },
1159
- sort_by: {
1160
- safety: "read",
1161
- argsType: "{ model: DataTableSortEntry[] }",
1162
- argsSchema: {
1163
- type: "object",
1164
- properties: {
1165
- model: {
1166
- type: "array",
1167
- description: "Sort entries in priority order.",
1168
- items: {
1169
- type: "object",
1170
- properties: {
1171
- colId: { type: "string", description: "Column id to sort by." },
1172
- sort: { enum: ["asc", "desc"], description: "Sort direction." }
1173
- },
1174
- required: ["colId", "sort"]
1175
- }
1176
- }
1177
- },
1178
- required: ["model"]
1179
- },
1180
- idempotent: !0,
1181
- descriptionKey: "ui.agent.dataTable.actions.sortBy",
1182
- description: "Replace the active sort with the given list (priority order).",
1183
- examples: [
1184
- {
1185
- args: { model: [{ colId: "name", sort: "asc" }] },
1186
- note: "Sort by name ascending."
1187
- }
1188
- ],
1189
- invoke: (e, t) => {
1190
- e.setSort(t.model);
1191
- }
1192
- },
1193
- go_to_page: {
1194
- safety: "read",
1195
- argsType: "{ page: number }",
1196
- argsSchema: {
1197
- type: "object",
1198
- properties: {
1199
- page: {
1200
- type: "integer",
1201
- minimum: 0,
1202
- description: "Zero-indexed page number."
1203
- }
1204
- },
1205
- required: ["page"]
1206
- },
1207
- idempotent: !0,
1208
- descriptionKey: "ui.agent.dataTable.actions.goToPage",
1209
- description: "Navigate to the given zero-indexed page.",
1210
- invoke: (e, t) => {
1211
- e.goToPage(t.page);
1212
- }
1213
- }
1214
- },
1215
- domHooks: {
1216
- root: {
1217
- attr: "data-component",
1218
- value: "data-table",
1219
- description: "Marks the DataTable wrapper."
1220
- },
1221
- instanceId: {
1222
- attr: "data-component-id",
1223
- sourceProp: "gridId",
1224
- description: "Sourced from the gridId prop. Required to address a specific table from the agent."
1225
- },
1226
- item: {
1227
- attr: "row-id",
1228
- 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.'
1229
- }
1230
- }
1231
- };
1232
- function Ba(e, t, n) {
1233
- const a = ua(t), i = new Intl.DateTimeFormat(a, {
1234
- calendar: "gregory",
1235
- month: "long",
1236
- timeZone: "UTC"
1237
- }), s = new Intl.NumberFormat(a).formatToParts(1000.1), g = {
1238
- ariaIndeterminate: () => e("dataTable.agGrid.ariaIndeterminate"),
1239
- ariaChecked: () => e("dataTable.agGrid.ariaChecked"),
1240
- ariaUnchecked: () => e("dataTable.agGrid.ariaUnchecked"),
1241
- applyFilter: () => e("dataTable.agGrid.applyFilter"),
1242
- clearFilter: () => e("dataTable.agGrid.clearFilter"),
1243
- resetFilter: () => e("dataTable.agGrid.resetFilter"),
1244
- cancelFilter: () => e("dataTable.agGrid.cancelFilter"),
1245
- textFilter: () => e("dataTable.agGrid.textFilter"),
1246
- numberFilter: () => e("dataTable.agGrid.numberFilter"),
1247
- bigintFilter: () => e("dataTable.agGrid.bigintFilter"),
1248
- dateFilter: () => e("dataTable.agGrid.dateFilter"),
1249
- setFilter: () => e("dataTable.agGrid.setFilter"),
1250
- filterOoo: () => e("dataTable.agGrid.filterOoo"),
1251
- empty: () => e("dataTable.agGrid.empty"),
1252
- equals: () => e("dataTable.agGrid.equals"),
1253
- notEqual: () => e("dataTable.agGrid.notEqual"),
1254
- lessThan: () => e("dataTable.agGrid.lessThan"),
1255
- greaterThan: () => e("dataTable.agGrid.greaterThan"),
1256
- inRange: () => e("dataTable.agGrid.inRange"),
1257
- inRangeStart: () => e("dataTable.agGrid.inRangeStart"),
1258
- inRangeEnd: () => e("dataTable.agGrid.inRangeEnd"),
1259
- lessThanOrEqual: () => e("dataTable.agGrid.lessThanOrEqual"),
1260
- greaterThanOrEqual: () => e("dataTable.agGrid.greaterThanOrEqual"),
1261
- contains: () => e("dataTable.agGrid.contains"),
1262
- notContains: () => e("dataTable.agGrid.notContains"),
1263
- startsWith: () => e("dataTable.agGrid.startsWith"),
1264
- endsWith: () => e("dataTable.agGrid.endsWith"),
1265
- blank: () => e("dataTable.agGrid.blank"),
1266
- notBlank: () => e("dataTable.agGrid.notBlank"),
1267
- before: () => e("dataTable.agGrid.before"),
1268
- after: () => e("dataTable.agGrid.after"),
1269
- andCondition: () => e("dataTable.agGrid.andCondition"),
1270
- orCondition: () => e("dataTable.agGrid.orCondition"),
1271
- dateFormatOoo: () => "yyyy-mm-dd",
1272
- filterSummaryInactive: () => e("dataTable.agGrid.filterSummaryInactive"),
1273
- filterSummaryContains: () => e("dataTable.agGrid.filterSummaryContains"),
1274
- filterSummaryNotContains: () => e("dataTable.agGrid.filterSummaryNotContains"),
1275
- filterSummaryTextEquals: () => e("dataTable.agGrid.filterSummaryTextEquals"),
1276
- filterSummaryTextNotEqual: () => e("dataTable.agGrid.filterSummaryTextNotEqual"),
1277
- filterSummaryStartsWith: () => e("dataTable.agGrid.filterSummaryStartsWith"),
1278
- filterSummaryEndsWith: () => e("dataTable.agGrid.filterSummaryEndsWith"),
1279
- filterSummaryBlank: () => e("dataTable.agGrid.filterSummaryBlank"),
1280
- filterSummaryNotBlank: () => e("dataTable.agGrid.filterSummaryNotBlank"),
1281
- filterSummaryEquals: () => "=",
1282
- filterSummaryNotEqual: () => "!=",
1283
- filterSummaryGreaterThan: () => ">",
1284
- filterSummaryGreaterThanOrEqual: () => ">=",
1285
- filterSummaryLessThan: () => "<",
1286
- filterSummaryLessThanOrEqual: () => "<=",
1287
- filterSummaryInRange: () => e("dataTable.agGrid.filterSummaryInRange"),
1288
- yesterday: () => e("dataTable.agGrid.yesterday"),
1289
- today: () => e("dataTable.agGrid.today"),
1290
- tomorrow: () => e("dataTable.agGrid.tomorrow"),
1291
- last7Days: () => e("dataTable.agGrid.last7Days"),
1292
- lastWeek: () => e("dataTable.agGrid.lastWeek"),
1293
- thisWeek: () => e("dataTable.agGrid.thisWeek"),
1294
- nextWeek: () => e("dataTable.agGrid.nextWeek"),
1295
- last30Days: () => e("dataTable.agGrid.last30Days"),
1296
- lastMonth: () => e("dataTable.agGrid.lastMonth"),
1297
- thisMonth: () => e("dataTable.agGrid.thisMonth"),
1298
- nextMonth: () => e("dataTable.agGrid.nextMonth"),
1299
- last90Days: () => e("dataTable.agGrid.last90Days"),
1300
- lastQuarter: () => e("dataTable.agGrid.lastQuarter"),
1301
- thisQuarter: () => e("dataTable.agGrid.thisQuarter"),
1302
- nextQuarter: () => e("dataTable.agGrid.nextQuarter"),
1303
- lastYear: () => e("dataTable.agGrid.lastYear"),
1304
- thisYear: () => e("dataTable.agGrid.thisYear"),
1305
- yearToDate: () => e("dataTable.agGrid.yearToDate"),
1306
- nextYear: () => e("dataTable.agGrid.nextYear"),
1307
- last6Months: () => e("dataTable.agGrid.last6Months"),
1308
- last12Months: () => e("dataTable.agGrid.last12Months"),
1309
- last24Months: () => e("dataTable.agGrid.last24Months"),
1310
- filterSummaryInRangeValues: (l) => `(${l[0]}, ${l[1]})`,
1311
- filterSummaryTextQuote: (l) => `"${l[0]}"`,
1312
- minDateValidation: (l) => e("dataTable.agGrid.minDateValidation", { var0: l[0] }),
1313
- maxDateValidation: (l) => e("dataTable.agGrid.maxDateValidation", { var0: l[0] }),
1314
- strictMinValueValidation: (l) => e("dataTable.agGrid.strictMinValueValidation", { var0: l[0] }),
1315
- strictMaxValueValidation: (l) => e("dataTable.agGrid.strictMaxValueValidation", { var0: l[0] }),
1316
- ariaSortableColumn: () => e("dataTable.agGrid.ariaSortableColumn"),
1317
- ariaMenuColumn: () => e("dataTable.agGrid.ariaMenuColumn"),
1318
- ariaFilterColumn: () => e("dataTable.agGrid.ariaFilterColumn"),
1319
- ariaColumnFiltered: () => e("dataTable.agGrid.ariaColumnFiltered"),
1320
- ariaColumnCellSelection: () => e("dataTable.agGrid.ariaColumnCellSelection"),
1321
- rowDragRows: () => e("dataTable.agGrid.rowDragRows"),
1322
- rowDragRow: () => e("dataTable.agGrid.rowDragRow"),
1323
- ariaColumnGroupCellSelection: () => e("dataTable.agGrid.ariaColumnGroupCellSelection"),
1324
- ariaToggleCellValue: () => e("dataTable.agGrid.ariaToggleCellValue"),
1325
- loadingError: () => e("dataTable.agGrid.loadingError"),
1326
- ariaSkeletonCellLoadingFailed: () => e("dataTable.agGrid.ariaSkeletonCellLoadingFailed"),
1327
- ariaDeferSkeletonCellLoading: () => e("dataTable.agGrid.ariaDeferSkeletonCellLoading"),
1328
- ariaSkeletonCellLoading: () => e("dataTable.agGrid.ariaSkeletonCellLoading"),
1329
- invalidDate: () => e("dataTable.agGrid.invalidDate"),
1330
- invalidNumber: () => e("dataTable.agGrid.invalidNumber"),
1331
- invalidBigInt: () => e("dataTable.agGrid.invalidBigInt"),
1332
- ariaValidationErrorPrefix: () => e("dataTable.agGrid.ariaValidationErrorPrefix"),
1333
- exportingOoo: () => e("dataTable.agGrid.exportingOoo"),
1334
- loadingOoo: () => e("dataTable.agGrid.loadingOoo"),
1335
- noMatchingRows: () => e("dataTable.agGrid.noMatchingRows"),
1336
- noRowsToShow: () => e("dataTable.agGrid.noRowsToShow"),
1337
- ariaLabelTooltip: () => e("dataTable.agGrid.ariaLabelTooltip"),
1338
- tooltipValidationErrorSeparator: () => ". ",
1339
- ariaInputEditor: () => e("dataTable.agGrid.ariaInputEditor"),
1340
- maxLengthValidation: (l) => e("dataTable.agGrid.maxLengthValidation", { var0: l[0] }),
1341
- minValueValidation: (l) => e("dataTable.agGrid.minValueValidation", { var0: l[0] }),
1342
- maxValueValidation: (l) => e("dataTable.agGrid.maxValueValidation", { var0: l[0] }),
1343
- invalidSelectionValidation: () => e("dataTable.agGrid.invalidSelectionValidation"),
1344
- ariaPendingChange: () => e("dataTable.agGrid.ariaPendingChange"),
1345
- ariaFilterMenuOpen: () => e("dataTable.agGrid.ariaFilterMenuOpen"),
1346
- january: () => i.format(new Date(Date.UTC(2026, 0, 1))),
1347
- february: () => i.format(new Date(Date.UTC(2026, 1, 1))),
1348
- march: () => i.format(new Date(Date.UTC(2026, 2, 1))),
1349
- april: () => i.format(new Date(Date.UTC(2026, 3, 1))),
1350
- may: () => i.format(new Date(Date.UTC(2026, 4, 1))),
1351
- june: () => i.format(new Date(Date.UTC(2026, 5, 1))),
1352
- july: () => i.format(new Date(Date.UTC(2026, 6, 1))),
1353
- august: () => i.format(new Date(Date.UTC(2026, 7, 1))),
1354
- september: () => i.format(new Date(Date.UTC(2026, 8, 1))),
1355
- october: () => i.format(new Date(Date.UTC(2026, 9, 1))),
1356
- november: () => i.format(new Date(Date.UTC(2026, 10, 1))),
1357
- december: () => i.format(new Date(Date.UTC(2026, 11, 1))),
1358
- ariaLabelColumnMenu: () => e("dataTable.agGrid.ariaLabelColumnMenu"),
1359
- ariaLabelColumnFilter: () => e("dataTable.agGrid.ariaLabelColumnFilter"),
1360
- ariaFilterInput: () => e("dataTable.agGrid.ariaFilterInput"),
1361
- ariaFilterFromValue: () => e("dataTable.agGrid.ariaFilterFromValue"),
1362
- ariaFilterValue: () => e("dataTable.agGrid.ariaFilterValue"),
1363
- ariaFilterToValue: () => e("dataTable.agGrid.ariaFilterToValue"),
1364
- ariaFilteringOperator: () => e("dataTable.agGrid.ariaFilteringOperator"),
1365
- ariaDateFilterInput: () => e("dataTable.agGrid.ariaDateFilterInput"),
1366
- thousandSeparator: () => {
1367
- var l;
1368
- return ((l = s.find((m) => m.type === "group")) == null ? void 0 : l.value) ?? "";
1369
- },
1370
- decimalSeparator: () => {
1371
- var l;
1372
- return ((l = s.find((m) => m.type === "decimal")) == null ? void 0 : l.value) ?? "";
1373
- },
1374
- pageSizeSelectorLabel: () => e("dataTable.agGrid.pageSizeSelectorLabel"),
1375
- ariaPageSizeSelectorLabel: () => e("dataTable.agGrid.ariaPageSizeSelectorLabel"),
1376
- to: () => e("dataTable.to"),
1377
- of: () => e("dataTable.of"),
1378
- firstPage: () => e("dataTable.firstPage"),
1379
- previousPage: () => e("dataTable.previousPage"),
1380
- page: () => e("dataTable.page"),
1381
- nextPage: () => e("dataTable.nextPage"),
1382
- lastPage: () => e("dataTable.lastPage"),
1383
- pageLastRowUnknown: () => "?",
1384
- more: () => e("dataTable.agGrid.more"),
1385
- ariaRowSelectAll: () => e("dataTable.agGrid.ariaRowSelectAll"),
1386
- ariaHeaderSelection: () => e("dataTable.agGrid.ariaHeaderSelection"),
1387
- ariaLabelSelectField: () => e("dataTable.agGrid.ariaLabelSelectField"),
1388
- ariaRowToggleSelection: () => e("dataTable.agGrid.ariaRowToggleSelection"),
1389
- ariaRowSelectionDisabled: () => e("dataTable.agGrid.ariaRowSelectionDisabled"),
1390
- ariaRowDeselect: () => e("dataTable.agGrid.ariaRowDeselect"),
1391
- ariaRowSelect: () => e("dataTable.agGrid.ariaRowSelect")
1392
- };
1393
- return ({ key: l, defaultValue: m, variableValues: f = [] }) => {
1394
- if (n && Object.hasOwn(n, l)) {
1395
- let u = 0;
1396
- return n[l].replace(
1397
- /\$\{variable\}/g,
1398
- (h) => f[u++] ?? h
1399
- );
1400
- }
1401
- return Object.hasOwn(g, l) ? g[l](f) : m;
1402
- };
1403
- }
1404
- Qt.registerModules([Xt]);
1405
- const $a = Ut("ag-theme-alfadocs ds:w-full", {
1406
- variants: {
1407
- density: {
1408
- default: "",
1409
- compact: "data-table-compact",
1410
- expanded: "data-table-expanded"
1411
- },
1412
- bordered: {
1413
- true: "",
1414
- false: "ds:[--ag-borders:none]"
1415
- }
1416
- },
1417
- defaultVariants: {
1418
- density: "default",
1419
- bordered: !0
1420
- }
1421
- });
1422
- function Ua() {
1423
- return /* @__PURE__ */ d(
1424
- "div",
1425
- {
1426
- role: "status",
1427
- "aria-live": "polite",
1428
- className: "ds:flex ds:w-full ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-md)]",
1429
- children: Array.from({ length: 5 }).map((e, t) => /* @__PURE__ */ d(
1430
- Bt,
1431
- {
1432
- variant: "rectangular",
1433
- className: "ds:h-[var(--min-target-size)] ds:w-full"
1434
- },
1435
- t
1436
- ))
1437
- }
1438
- );
1439
- }
1440
- function Ha() {
1441
- const { t: e } = A("ui");
1442
- return /* @__PURE__ */ d(
1443
- $t,
1444
- {
1445
- variant: "no-results",
1446
- size: "sm",
1447
- title: e("dataTable.noRows"),
1448
- description: e("dataTable.noRowsDescription")
1449
- }
1450
- );
1451
- }
1452
- function Ka(e) {
1453
- return e.map(({ pinned: t, ...n }) => n);
1454
- }
1455
- function Qa(e) {
1456
- return e.map(({ hide: t, pinned: n, ...a }) => a);
1457
- }
1458
- function Xa(e, t) {
1459
- try {
1460
- const n = localStorage.getItem(`data-table-col-state:${e}`);
1461
- if (!n) return null;
1462
- const a = JSON.parse(n);
1463
- if (Array.isArray(a))
1464
- return {
1465
- state: Qa(a),
1466
- touched: []
1467
- };
1468
- if (typeof a != "object" || a === null) return null;
1469
- const i = a;
1470
- return i.v !== 2 || !Array.isArray(i.state) ? null : {
1471
- state: i.dir === t ? i.state : Ka(i.state),
1472
- touched: Array.isArray(i.touched) ? i.touched.filter((s) => typeof s == "string") : []
1473
- };
1474
- } catch {
1475
- return null;
1476
- }
1477
- }
1478
- function Ya(e, t, n, a) {
1479
- try {
1480
- const i = {
1481
- v: 2,
1482
- dir: n,
1483
- state: t.getColumnState(),
1484
- touched: [...a]
1485
- };
1486
- localStorage.setItem(
1487
- `data-table-col-state:${e}`,
1488
- JSON.stringify(i)
1489
- );
1490
- } catch {
1491
- }
1492
- }
1493
- const Za = /* @__PURE__ */ new Set([
1494
- "api",
1495
- "flex",
1496
- "gridInitializing",
1497
- "gridOptionsChanged",
1498
- "autosizeColumns",
1499
- "sizeColumnsToFit"
1500
- ]);
1501
- function Ja(e, t) {
1502
- const {
1503
- columnDefs: n,
1504
- rowData: a,
1505
- rowSelection: i,
1506
- pagination: s = !1,
1507
- paginationPageSize: g = 25,
1508
- paginationPageSizeSelector: l = [10, 25, 50, 100],
1509
- gridId: m,
1510
- onSelectionChanged: f,
1511
- onSortChanged: u,
1512
- onFilterChanged: h,
1513
- noRowsOverlay: v,
1514
- loadingOverlay: w,
1515
- gridOptions: p,
1516
- density: T,
1517
- bordered: S,
1518
- heightClass: R = "ds:h-[500px]",
1519
- className: C,
1520
- getRowClass: D,
1521
- pinnedBottomRowData: te,
1522
- hidePinnedWhenEmpty: Z = !1,
1523
- printMode: x = !1,
1524
- expandedRowId: k,
1525
- renderExpandedRow: V,
1526
- onExpandedRowChange: I,
1527
- children: W
1528
- } = e, M = k !== void 0 || V !== void 0, U = p == null ? void 0 : p.getRowId;
1529
- if (M && !U)
1530
- throw new Error(
1531
- "DataTable: `expandedRowId` / `renderExpandedRow` require `gridOptions.getRowId` — the expanded row is addressed by row id, not by index."
1532
- );
1533
- const { t: N, i18n: O } = A("ui"), E = _(null), X = _(null);
1534
- La(X);
1535
- const [ie, le] = L(0), [ve, Se] = L(""), ue = _(void 0), pt = z(
1536
- () => Ba(N, O.language, p == null ? void 0 : p.localeText),
1537
- [N, O.language, p == null ? void 0 : p.localeText]
1538
- ), [pe, mt] = L(O.language);
1539
- B(() => {
1540
- if (pe === O.language) return;
1541
- const r = window.setTimeout(() => {
1542
- var b, y;
1543
- const o = (b = E.current) == null ? void 0 : b.api;
1544
- o == null || o.stopEditing();
1545
- const c = o == null ? void 0 : o.getState();
1546
- if (c) {
1547
- const { focusedCell: F, columnPinning: P, ...Y } = c, K = ((y = X.current) == null ? void 0 : y.contains(document.activeElement)) ?? !1, he = O.dir(pe) === O.dir(O.language);
1548
- ue.current = {
1549
- ...Y,
1550
- ...K ? { focusedCell: F } : {},
1551
- ...he ? { columnPinning: P } : {}
1552
- };
1553
- } else ue.current = void 0;
1554
- mt(O.language);
1555
- }, 0);
1556
- return () => window.clearTimeout(r);
1557
- }, [pe, O, O.language]);
1558
- const Ve = _(k);
1559
- Ve.current = k;
1560
- const Re = z(
1561
- () => ({
1562
- getSelection: () => {
1563
- var c;
1564
- const r = (c = E.current) == null ? void 0 : c.api;
1565
- if (!r) return [];
1566
- const o = [];
1567
- for (const b of r.getSelectedNodes())
1568
- b.id != null && !j(b.data) && o.push(b.id);
1569
- return o;
1570
- },
1571
- setSelection: (r) => {
1572
- var b;
1573
- const o = (b = E.current) == null ? void 0 : b.api;
1574
- if (!o) return;
1575
- const c = new Set(r);
1576
- o.forEachNode((y) => {
1577
- y.id != null && y.setSelected(c.has(y.id));
1578
- });
1579
- },
1580
- selectRange: (r, o) => {
1581
- var he;
1582
- const c = (he = E.current) == null ? void 0 : he.api;
1583
- if (!c) return;
1584
- const b = [];
1585
- c.forEachNodeAfterFilterAndSort((ee) => {
1586
- ee.id != null && !j(ee.data) && b.push(ee.id);
1587
- });
1588
- const y = b.indexOf(r), F = b.indexOf(o);
1589
- if (y < 0 || F < 0) return;
1590
- const [P, Y] = y <= F ? [y, F] : [F, y], K = new Set(b.slice(P, Y + 1));
1591
- c.forEachNode((ee) => {
1592
- ee.id != null && ee.setSelected(K.has(ee.id));
1593
- });
1594
- },
1595
- clearSelection: () => {
1596
- var r, o;
1597
- (o = (r = E.current) == null ? void 0 : r.api) == null || o.deselectAll();
1598
- },
1599
- getFilter: () => {
1600
- var r, o;
1601
- return ((o = (r = E.current) == null ? void 0 : r.api) == null ? void 0 : o.getFilterModel()) ?? {};
1602
- },
1603
- setFilter: (r) => {
1604
- var o, c;
1605
- (c = (o = E.current) == null ? void 0 : o.api) == null || c.setFilterModel(r);
1606
- },
1607
- getSort: () => {
1608
- var o;
1609
- const r = (o = E.current) == null ? void 0 : o.api;
1610
- return r ? r.getColumnState().filter((c) => c.sort === "asc" || c.sort === "desc").map((c) => ({ colId: c.colId, sort: c.sort })) : [];
1611
- },
1612
- setSort: (r) => {
1613
- var b;
1614
- const o = (b = E.current) == null ? void 0 : b.api;
1615
- if (!o) return;
1616
- const c = o.getColumnState().map((y) => {
1617
- const F = r.find((P) => P.colId === y.colId);
1618
- return { ...y, sort: F ? F.sort : null };
1619
- });
1620
- o.applyColumnState({ state: c, defaultState: { sort: null } });
1621
- },
1622
- getCurrentPage: () => {
1623
- var r, o;
1624
- return ((o = (r = E.current) == null ? void 0 : r.api) == null ? void 0 : o.paginationGetCurrentPage()) ?? 0;
1625
- },
1626
- goToPage: (r) => {
1627
- var o, c;
1628
- (c = (o = E.current) == null ? void 0 : o.api) == null || c.paginationGoToPage(r);
1629
- },
1630
- getExpandedRowId: () => Ve.current ?? null,
1631
- getUserTouchedColumns: () => [...ae.current],
1632
- markColumnsUserTouched: (r) => ze.current(r),
1633
- getRawApi: () => {
1634
- var r;
1635
- return (r = E.current) == null ? void 0 : r.api;
1636
- }
1637
- }),
1638
- []
1639
- ), me = _(/* @__PURE__ */ new Map()), ae = _(/* @__PURE__ */ new Set()), ze = _(
1640
- () => {
1641
- }
1642
- );
1643
- jt(t, () => Re, [Re]), sa(ja, Re, m);
1644
- const _e = O.dir() === "rtl", ft = a === void 0, gt = da(), { resolvedTheme: qe } = ca(), bt = (qe === "light-accessible" || qe === "dark-accessible") && T === "compact" ? "default" : T, ht = z(() => {
1645
- if (!i) return;
1646
- const r = (o) => !j(o.data);
1647
- return i === "single" ? {
1648
- mode: "singleRow",
1649
- enableClickSelection: !1,
1650
- isRowSelectable: r
1651
- } : {
1652
- mode: "multiRow",
1653
- headerCheckbox: !0,
1654
- checkboxes: !0,
1655
- enableClickSelection: !1,
1656
- isRowSelectable: r
1657
- };
1658
- }, [i]), fe = _e ? "rtl" : "ltr", H = G(
1659
- (r, o, c) => {
1660
- const b = new Set(o);
1661
- for (const y of r.getColumnState()) {
1662
- if (!b.has(y.colId)) continue;
1663
- const F = me.current.get(y.colId) ?? {};
1664
- for (const P of c) F[P] = y[P];
1665
- me.current.set(y.colId, F);
1666
- }
1667
- },
1668
- []
1669
- ), se = G(
1670
- (r) => {
1671
- m && Ya(m, r, fe, ae.current);
1672
- },
1673
- [m, fe]
1674
- ), We = G(
1675
- (r) => {
1676
- var c;
1677
- for (const b of r) ae.current.add(b);
1678
- const o = (c = E.current) == null ? void 0 : c.api;
1679
- o && (H(o, r, ["hide"]), se(o));
1680
- },
1681
- [se, H]
1682
- );
1683
- ze.current = We;
1684
- const Tt = G(() => {
1685
- var c;
1686
- if (!((c = E.current) != null && c.api)) return;
1687
- const r = E.current.api, o = m ? Xa(m, fe) : null;
1688
- if (!(!o || ue.current)) {
1689
- for (const b of o.touched) ae.current.add(b);
1690
- r.applyColumnState({
1691
- state: o.state,
1692
- applyOrder: !0
1693
- }), H(r, o.touched, ["hide"]);
1694
- }
1695
- }, [m, fe, H]), yt = G(
1696
- (r) => {
1697
- var c;
1698
- if (r.source !== "gridOptionsChanged") return;
1699
- const o = (c = E.current) == null ? void 0 : c.api;
1700
- !o || me.current.size === 0 || o.applyColumnState({
1701
- state: [...me.current].map(([b, y]) => ({
1702
- colId: b,
1703
- ...y
1704
- }))
1705
- });
1706
- },
1707
- []
1708
- ), ge = G(
1709
- (r) => {
1710
- var b;
1711
- const o = (b = E.current) == null ? void 0 : b.api;
1712
- if (!o) return;
1713
- const c = (r.columns ?? (r.column ? [r.column] : [])).map((y) => y.getColId());
1714
- if (r.source && Za.has(r.source)) {
1715
- if (r.source === "api" && "visible" in r) {
1716
- const y = c.filter(
1717
- (F) => ae.current.has(F)
1718
- );
1719
- y.length > 0 && (H(o, y, ["hide"]), se(o));
1720
- }
1721
- return;
1722
- }
1723
- if ("visible" in r) {
1724
- for (const y of c) ae.current.add(y);
1725
- H(o, c, ["hide"]);
1726
- } else "pinned" in r ? H(o, c, ["pinned"]) : "flexColumns" in r && H(o, c, ["width", "flex"]);
1727
- se(o);
1728
- },
1729
- [se, H]
1730
- ), xt = z(() => {
1731
- if (!p) return;
1732
- const r = { ...p };
1733
- return delete r.defaultColDef, delete r.initialState, M && (delete r.getRowId, delete r.isFullWidthRow, delete r.fullWidthCellRenderer, delete r.getRowHeight, delete r.postSortRows, delete r.getRowClass, delete r.defaultCsvExportParams, delete r.defaultExcelExportParams), r;
1734
- }, [M, p]), je = _(/* @__PURE__ */ new Map()), de = _(p);
1735
- de.current = p;
1736
- const Be = G(
1737
- (r) => {
1738
- var o;
1739
- return U == null ? void 0 : U({
1740
- data: r,
1741
- level: 0,
1742
- api: (o = E.current) == null ? void 0 : o.api,
1743
- context: p == null ? void 0 : p.context
1744
- });
1745
- },
1746
- [U, p == null ? void 0 : p.context]
1747
- ), J = z(() => {
1748
- if (!M || k == null || !a) return null;
1749
- const r = a.find((o) => Be(o) === k);
1750
- return r === void 0 ? null : { id: k, row: r };
1751
- }, [M, k, Be, a]), De = z(() => {
1752
- if (!J || !a) return a;
1753
- const r = a.indexOf(J.row), o = qa(J.row, J.id);
1754
- return [
1755
- ...a.slice(0, r + 1),
1756
- o,
1757
- ...a.slice(r + 1)
1758
- ];
1759
- }, [J, a]), wt = G(
1760
- (r) => j(r.data) ? _a(r.data[ne]) : U(r),
1761
- [U]
1762
- ), Ct = G(
1763
- (r) => {
1764
- var o, c;
1765
- return j(r.rowNode.data) || (((c = (o = de.current) == null ? void 0 : o.isFullWidthRow) == null ? void 0 : c.call(o, r)) ?? !1);
1766
- },
1767
- []
1768
- ), vt = G(
1769
- (r) => {
1770
- var o, c;
1771
- return j(r.data) ? je.current.get(r.node.id ?? "") : (c = (o = de.current) == null ? void 0 : o.getRowHeight) == null ? void 0 : c.call(o, r);
1772
- },
1773
- []
1774
- ), St = G(
1775
- (r) => {
1776
- var P, Y;
1777
- (Y = (P = de.current) == null ? void 0 : P.postSortRows) == null || Y.call(P, r);
1778
- const { nodes: o } = r, c = o.findIndex((K) => j(K.data));
1779
- if (c < 0) return;
1780
- const [b] = o.splice(c, 1), y = b.data[ne], F = o.findIndex((K) => K.id === y);
1781
- o.splice(F < 0 ? o.length : F + 1, 0, b);
1782
- },
1783
- []
1784
- ), Rt = G(
1785
- (r) => {
1786
- var o, c;
1787
- return j(r.data) ? Va : ((c = (o = de.current) == null ? void 0 : o.getRowClass) == null ? void 0 : c.call(o, r)) ?? (D == null ? void 0 : D(r));
1788
- },
1789
- [D]
1790
- ), be = G(
1791
- (r) => j(r.node.data),
1792
- []
1793
- ), Dt = z(() => {
1794
- if (!M) return;
1795
- const r = p == null ? void 0 : p.defaultCsvExportParams;
1796
- return {
1797
- ...r,
1798
- shouldRowBeSkipped: (o) => {
1799
- var c;
1800
- return be(o) || (((c = r == null ? void 0 : r.shouldRowBeSkipped) == null ? void 0 : c.call(r, o)) ?? !1);
1801
- }
1802
- };
1803
- }, [M, p == null ? void 0 : p.defaultCsvExportParams, be]), Et = z(() => {
1804
- if (!M) return;
1805
- const r = p == null ? void 0 : p.defaultExcelExportParams;
1806
- return {
1807
- ...r,
1808
- shouldRowBeSkipped: (o) => {
1809
- var c;
1810
- return be(o) || (((c = r == null ? void 0 : r.shouldRowBeSkipped) == null ? void 0 : c.call(r, o)) ?? !1);
1811
- }
1812
- };
1813
- }, [M, p == null ? void 0 : p.defaultExcelExportParams, be]), Ee = p == null ? void 0 : p.fullWidthCellRenderer, Gt = z(
1814
- () => ({
1815
- renderExpandedRow: V,
1816
- onExpandedRowChange: I,
1817
- expanded: J,
1818
- heights: je.current,
1819
- fallbackRenderer: typeof Ee == "function" ? Ee : void 0
1820
- }),
1821
- [
1822
- Ee,
1823
- J,
1824
- I,
1825
- V
1826
- ]
1827
- ), Ft = G(() => {
1828
- var c;
1829
- const r = (c = E.current) == null ? void 0 : c.api;
1830
- if (!r) return;
1831
- const o = r.getSelectedRows().filter((b) => !j(b));
1832
- le(o.length), f == null || f(o);
1833
- }, [f]), It = G(
1834
- (r) => {
1835
- var c;
1836
- const o = (c = E.current) == null ? void 0 : c.api;
1837
- if (o) {
1838
- const y = o.getColumnState().find((F) => F.sort);
1839
- if (y) {
1840
- const F = y.colId, P = o.getColumnDef(F), Y = (P == null ? void 0 : P.headerName) ?? F, K = y.sort === "asc" ? "dataTable.sortAscending" : "dataTable.sortDescending";
1841
- Se(
1842
- N("dataTable.sortAnnounce", {
1843
- column: Y,
1844
- direction: N(K)
1845
- })
1846
- );
1847
- } else
1848
- Se("");
1849
- }
1850
- u == null || u(r);
1851
- },
1852
- [u, N]
1853
- ), Nt = G(
1854
- (r) => {
1855
- h == null || h(r);
1856
- },
1857
- [h]
1858
- );
1859
- B(() => {
1860
- if (!ve) return;
1861
- const r = setTimeout(() => Se(""), 3e3);
1862
- return () => clearTimeout(r);
1863
- }, [ve]);
1864
- const kt = v ?? Ha, Pt = w ?? Ua, At = G(
1865
- () => {
1866
- var r;
1867
- return (r = E.current) == null ? void 0 : r.api;
1868
- },
1869
- []
1870
- ), Mt = G(() => {
1871
- typeof window < "u" && window.print();
1872
- }, []), Ot = $a({
1873
- density: bt,
1874
- bordered: S,
1875
- className: C
1876
- }), Lt = W ?? /* @__PURE__ */ d("div", { className: "data-table-toolbar ds:flex ds:justify-end", children: /* @__PURE__ */ q(
1877
- Yt,
1878
- {
1879
- role: "toolbar",
1880
- "aria-label": N("dataTable.tableActions"),
1881
- className: "ds:bg-[var(--background)]",
1882
- children: [
1883
- /* @__PURE__ */ d(we.ExportMenu, {}),
1884
- /* @__PURE__ */ d(we.Print, {}),
1885
- /* @__PURE__ */ d(we.ColumnToggle, {})
1886
- ]
1887
- }
1888
- ) }), Vt = x ? !1 : s, $e = De !== void 0 && De.length === 0, [Ue, zt] = L(null);
1889
- Zt(() => {
1890
- var b;
1891
- const r = X.current;
1892
- if (!r) return;
1893
- let o = !0;
1894
- const c = () => {
1895
- o && zt(() => ba(r));
1896
- };
1897
- return c(), (b = document.fonts) == null || b.ready.then(c), () => {
1898
- o = !1;
1899
- };
1900
- }, []);
1901
- const _t = z(
1902
- () => Ze(n, Ue),
1903
- [n, Ue]
1904
- );
1905
- return /* @__PURE__ */ q(
1906
- "div",
1907
- {
1908
- className: "ds:flex ds:w-full ds:min-h-0 ds:flex-1 ds:flex-col ds:gap-[var(--spacing-sm)]",
1909
- "aria-busy": ft ? "true" : void 0,
1910
- "data-component": "data-table",
1911
- "data-component-id": m,
1912
- "data-print-mode": x ? "true" : void 0,
1913
- children: [
1914
- !x && /* @__PURE__ */ d(
1915
- wa,
1916
- {
1917
- getApi: At,
1918
- selectionCount: ie,
1919
- onPrint: Mt,
1920
- markColumnsUserTouched: We,
1921
- children: Lt
1922
- }
1923
- ),
1924
- /* @__PURE__ */ d(
1925
- "div",
1926
- {
1927
- ref: X,
1928
- "data-empty": $e ? "true" : void 0,
1929
- className: [Ot, x ? "" : R].join(" ").trim(),
1930
- children: /* @__PURE__ */ d(
1931
- ct.Provider,
1932
- {
1933
- value: Gt,
1934
- children: /* @__PURE__ */ d(
1935
- Kt,
1936
- {
1937
- ref: E,
1938
- initialState: ue.current ?? (p == null ? void 0 : p.initialState),
1939
- theme: "legacy",
1940
- columnDefs: _t,
1941
- rowData: De,
1942
- defaultColDef: {
1943
- sortable: !0,
1944
- // Default filter = DS-styled text filter so untyped columns
1945
- // (no explicit `filter:` override) inherit the kit's form
1946
- // language instead of AG Grid's stock browser-skinned input.
1947
- // Number / date / select columns opt into their dedicated
1948
- // wrapper per-column.
1949
- filter: Aa,
1950
- floatingFilterComponent: Ma,
1951
- resizable: !0,
1952
- floatingFilter: !0,
1953
- // §13d — faint sort icon advertises which columns are
1954
- // sortable. v33+ moved this from grid-level to defaultColDef.
1955
- unSortIcon: !0,
1956
- ...p == null ? void 0 : p.defaultColDef
1957
- },
1958
- rowSelection: ht,
1959
- pagination: Vt,
1960
- paginationPageSize: g,
1961
- paginationPageSizeSelector: l,
1962
- paginationNumberFormatter: (r) => new Intl.NumberFormat(O.language).format(r.value),
1963
- animateRows: !gt,
1964
- enableRtl: _e,
1965
- ensureDomOrder: !0,
1966
- enableCellSpan: !0,
1967
- enableCellTextSelection: !0,
1968
- copyHeadersToClipboard: !0,
1969
- accentedSort: !0,
1970
- multiSortKey: "ctrl",
1971
- suppressDragLeaveHidesColumns: !0,
1972
- tooltipShowDelay: 500,
1973
- tooltipHideDelay: 5e3,
1974
- tooltipInteraction: !0,
1975
- stopEditingWhenCellsLoseFocus: !0,
1976
- maintainColumnOrder: !0,
1977
- undoRedoCellEditing: !0,
1978
- undoRedoCellEditingLimit: 20,
1979
- suppressCellFocus: !1,
1980
- rowBuffer: 10,
1981
- getLocaleText: pt,
1982
- rowDragText: (r, o) => N("dataTable.dragRows", { count: o }),
1983
- noRowsOverlayComponent: kt,
1984
- loadingOverlayComponent: Pt,
1985
- getRowClass: M ? Rt : D,
1986
- pinnedBottomRowData: Z && $e ? void 0 : te,
1987
- domLayout: x ? "autoHeight" : void 0,
1988
- onGridReady: Tt,
1989
- onNewColumnsLoaded: yt,
1990
- onColumnMoved: ge,
1991
- onColumnResized: ge,
1992
- onColumnPinned: ge,
1993
- onColumnVisible: ge,
1994
- onSortChanged: It,
1995
- onFilterChanged: Nt,
1996
- onSelectionChanged: Ft,
1997
- ...xt,
1998
- ...M ? {
1999
- getRowId: wt,
2000
- isFullWidthRow: Ct,
2001
- fullWidthCellRenderer: Wa,
2002
- getRowHeight: vt,
2003
- postSortRows: St,
2004
- defaultCsvExportParams: Dt,
2005
- defaultExcelExportParams: Et
2006
- } : {}
2007
- },
2008
- pe
2009
- )
2010
- }
2011
- )
2012
- }
2013
- ),
2014
- !x && ie > 0 && /* @__PURE__ */ d("div", { className: "ds:flex ds:items-center ds:justify-between type-body-sm ds:text-[color:var(--muted-foreground)]", children: /* @__PURE__ */ d("span", { children: N("dataTable.selected", { count: ie }) }) }),
2015
- /* @__PURE__ */ d("span", { role: "status", "aria-live": "polite", className: "ds:sr-only", children: ve })
2016
- ]
2017
- }
2018
- );
2019
- }
2020
- const ut = $(Ja);
2021
- ut.displayName = "DataTable";
2022
- const er = Object.assign(ut, {
2023
- Toolbar: we
2024
- }), Or = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2025
- __proto__: null,
2026
- DataTable: er
2027
- }, Symbol.toStringTag, { value: "Module" }));
2028
- export {
2029
- er as D,
2030
- Va as E,
2031
- Aa as T,
2032
- Ma as a,
2033
- we as b,
2034
- wa as c,
2035
- ja as d,
2036
- rt as e,
2037
- _a as f,
2038
- Mr as g,
2039
- Or as h,
2040
- j as i
2041
- };
2042
- //# sourceMappingURL=data-table-C9idMvs0.js.map