@alfadocs/ui-kit-debug 0.72.2 → 0.75.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 (687) hide show
  1. package/dist/_chunks/actions-cell-renderer-DLrcSTK_.js +1546 -0
  2. package/dist/_chunks/actions-cell-renderer-DLrcSTK_.js.map +1 -0
  3. package/dist/_chunks/{agenda-tray-loL2A3Cx.js → agenda-tray-CVf-jfWU.js} +3 -3
  4. package/dist/_chunks/{agenda-tray-loL2A3Cx.js.map → agenda-tray-CVf-jfWU.js.map} +1 -1
  5. package/dist/_chunks/{ai-consent-banner-Bke9m8VS.js → ai-consent-banner-DUhr1yNj.js} +2 -2
  6. package/dist/_chunks/{ai-consent-banner-Bke9m8VS.js.map → ai-consent-banner-DUhr1yNj.js.map} +1 -1
  7. package/dist/_chunks/{ai-prompt-input-TVI95hJD.js → ai-prompt-input-DziJCGLe.js} +3 -3
  8. package/dist/_chunks/{ai-prompt-input-TVI95hJD.js.map → ai-prompt-input-DziJCGLe.js.map} +1 -1
  9. package/dist/_chunks/{alia-sidebar-BV5lBSFR.js → alia-sidebar-w6B0TEx7.js} +8 -8
  10. package/dist/_chunks/{alia-sidebar-BV5lBSFR.js.map → alia-sidebar-w6B0TEx7.js.map} +1 -1
  11. package/dist/_chunks/{anamnesis-card-CWO4Ui9c.js → anamnesis-card-CJ5MNbkc.js} +2 -2
  12. package/dist/_chunks/{anamnesis-card-CWO4Ui9c.js.map → anamnesis-card-CJ5MNbkc.js.map} +1 -1
  13. package/dist/_chunks/{antenatal-schedule-timeline-CY-VsLok.js → antenatal-schedule-timeline-BzJZqS-8.js} +3 -3
  14. package/dist/_chunks/{antenatal-schedule-timeline-CY-VsLok.js.map → antenatal-schedule-timeline-BzJZqS-8.js.map} +1 -1
  15. package/dist/_chunks/{appointment-card-Cy4FOkGP.js → appointment-card-DgKI5QKD.js} +2 -2
  16. package/dist/_chunks/{appointment-card-Cy4FOkGP.js.map → appointment-card-DgKI5QKD.js.map} +1 -1
  17. package/dist/_chunks/{appointment-timeline-BWAPPk8F.js → appointment-timeline-DQTG0btW.js} +6 -6
  18. package/dist/_chunks/{appointment-timeline-BWAPPk8F.js.map → appointment-timeline-DQTG0btW.js.map} +1 -1
  19. package/dist/_chunks/{appointment-tray-D3mk04TT.js → appointment-tray-ezyCZN8v.js} +4 -4
  20. package/dist/_chunks/{appointment-tray-D3mk04TT.js.map → appointment-tray-ezyCZN8v.js.map} +1 -1
  21. package/dist/_chunks/{ar-BOqyIfoY.js → ar-B1GhtlBP.js} +2 -2
  22. package/dist/_chunks/{ar-BOqyIfoY.js.map → ar-B1GhtlBP.js.map} +1 -1
  23. package/dist/_chunks/{columns-2-8lq4-b8e.js → arrow-up-right-C2v_MKsK.js} +5 -5
  24. package/dist/_chunks/arrow-up-right-C2v_MKsK.js.map +1 -0
  25. package/dist/_chunks/{audio-recorder-BbjG55dP.js → audio-recorder-Cc3KuL9y.js} +4 -4
  26. package/dist/_chunks/{audio-recorder-BbjG55dP.js.map → audio-recorder-Cc3KuL9y.js.map} +1 -1
  27. package/dist/_chunks/{benefit-card-Xnxj4Gmo.js → benefit-card-DB1Kdrmc.js} +4 -2
  28. package/dist/_chunks/benefit-card-DB1Kdrmc.js.map +1 -0
  29. package/dist/_chunks/{bishop-score-C6eoak_j.js → bishop-score-DDW5-gb9.js} +3 -3
  30. package/dist/_chunks/{bishop-score-C6eoak_j.js.map → bishop-score-DDW5-gb9.js.map} +1 -1
  31. package/dist/_chunks/{bmi-calculator-BmQfoEGP.js → bmi-calculator-Bk2GAju7.js} +2 -2
  32. package/dist/_chunks/{bmi-calculator-BmQfoEGP.js.map → bmi-calculator-Bk2GAju7.js.map} +1 -1
  33. package/dist/_chunks/{booking-B62CMY5k.js → booking-B1Qkcl3c.js} +9 -9
  34. package/dist/_chunks/{booking-B62CMY5k.js.map → booking-B1Qkcl3c.js.map} +1 -1
  35. package/dist/_chunks/{button-DD_0Xdmr.js → button-CPGiR_bH.js} +56 -35
  36. package/dist/_chunks/button-CPGiR_bH.js.map +1 -0
  37. package/dist/_chunks/button-group-DzV5wgnx.js +289 -0
  38. package/dist/_chunks/button-group-DzV5wgnx.js.map +1 -0
  39. package/dist/_chunks/camera-VSklPDCv.js +21 -0
  40. package/dist/_chunks/camera-VSklPDCv.js.map +1 -0
  41. package/dist/_chunks/{care-plan-card-DhXbfGzE.js → care-plan-card-BrwhyIJI.js} +3 -3
  42. package/dist/_chunks/{care-plan-card-DhXbfGzE.js.map → care-plan-card-BrwhyIJI.js.map} +1 -1
  43. package/dist/_chunks/{care-plan-entry-card-D3YGD6rj.js → care-plan-entry-card-DWEdCQM3.js} +3 -3
  44. package/dist/_chunks/{care-plan-entry-card-D3YGD6rj.js.map → care-plan-entry-card-DWEdCQM3.js.map} +1 -1
  45. package/dist/_chunks/{care-plan-header-DtQxyfOb.js → care-plan-header-BXvRpGG8.js} +2 -2
  46. package/dist/_chunks/{care-plan-header-DtQxyfOb.js.map → care-plan-header-BXvRpGG8.js.map} +1 -1
  47. package/dist/_chunks/{carousel.agent-j7hWxJWr.js → carousel.agent-CtAAdsAd.js} +2 -2
  48. package/dist/_chunks/{carousel.agent-j7hWxJWr.js.map → carousel.agent-CtAAdsAd.js.map} +1 -1
  49. package/dist/_chunks/{chat-container-BVCoN06N.js → chat-container-HlFnoEIl.js} +4 -2
  50. package/dist/_chunks/{chat-container-BVCoN06N.js.map → chat-container-HlFnoEIl.js.map} +1 -1
  51. package/dist/_chunks/{chat-input-Btq_uuMZ.js → chat-input-BTCDqUDX.js} +2 -2
  52. package/dist/_chunks/{chat-input-Btq_uuMZ.js.map → chat-input-BTCDqUDX.js.map} +1 -1
  53. package/dist/_chunks/{chat-message-DXjjM8z9.js → chat-message-CdjWqZjo.js} +3 -3
  54. package/dist/_chunks/{chat-message-DXjjM8z9.js.map → chat-message-CdjWqZjo.js.map} +1 -1
  55. package/dist/_chunks/{code-block-Cwi7e3HM.js → code-block-BwanBjRh.js} +2 -2
  56. package/dist/_chunks/{code-block-Cwi7e3HM.js.map → code-block-BwanBjRh.js.map} +1 -1
  57. package/dist/_chunks/{connection-status-0HajXMXM.js → connection-status-oEUyrvev.js} +3 -3
  58. package/dist/_chunks/{connection-status-0HajXMXM.js.map → connection-status-oEUyrvev.js.map} +1 -1
  59. package/dist/_chunks/{contact-profile-card-IggiUVpN.js → contact-profile-card-veMV3W4J.js} +2 -2
  60. package/dist/_chunks/{contact-profile-card-IggiUVpN.js.map → contact-profile-card-veMV3W4J.js.map} +1 -1
  61. package/dist/_chunks/{control-room-rail-DaGcsdZ6.js → control-room-rail-CdfrZ6Vr.js} +3 -3
  62. package/dist/_chunks/{control-room-rail-DaGcsdZ6.js.map → control-room-rail-CdfrZ6Vr.js.map} +1 -1
  63. package/dist/_chunks/{copy-field-PAp0-Wr5.js → copy-field-DBc9QquW.js} +2 -2
  64. package/dist/_chunks/{copy-field-PAp0-Wr5.js.map → copy-field-DBc9QquW.js.map} +1 -1
  65. package/dist/_chunks/{cycle-calculator-BNILyVas.js → cycle-calculator-OQp8Ik5U.js} +4 -4
  66. package/dist/_chunks/{cycle-calculator-BNILyVas.js.map → cycle-calculator-OQp8Ik5U.js.map} +1 -1
  67. package/dist/_chunks/data-table-tabs-BEUXiRlu.js +710 -0
  68. package/dist/_chunks/data-table-tabs-BEUXiRlu.js.map +1 -0
  69. package/dist/_chunks/{date-picker-CVkD_lOi.js → date-picker-DzQS8mvt.js} +2 -2
  70. package/dist/_chunks/{date-picker-CVkD_lOi.js.map → date-picker-DzQS8mvt.js.map} +1 -1
  71. package/dist/_chunks/{date-picker-variants-DLg-ZrIo.js → date-picker-variants-CYQAm1Gk.js} +116 -115
  72. package/dist/_chunks/{date-picker-variants-DLg-ZrIo.js.map → date-picker-variants-CYQAm1Gk.js.map} +1 -1
  73. package/dist/_chunks/{date-range-picker-Dw12DgV8.js → date-range-picker-Cbz1SKhm.js} +3 -3
  74. package/dist/_chunks/{date-range-picker-Dw12DgV8.js.map → date-range-picker-Cbz1SKhm.js.map} +1 -1
  75. package/dist/_chunks/{date-time-picker-Cd_OJtOy.js → date-time-picker-B5IpU-nd.js} +2 -2
  76. package/dist/_chunks/{date-time-picker-Cd_OJtOy.js.map → date-time-picker-B5IpU-nd.js.map} +1 -1
  77. package/dist/_chunks/{de-DFLsUxeV.js → de-DETDHQ0o.js} +2 -2
  78. package/dist/_chunks/{de-DFLsUxeV.js.map → de-DETDHQ0o.js.map} +1 -1
  79. package/dist/_chunks/{description-list-CmBVxIF5.js → description-list-ClNLdRMy.js} +2 -2
  80. package/dist/_chunks/{description-list-CmBVxIF5.js.map → description-list-ClNLdRMy.js.map} +1 -1
  81. package/dist/_chunks/document-preview-CGSM_au9.js +181 -0
  82. package/dist/_chunks/document-preview-CGSM_au9.js.map +1 -0
  83. package/dist/_chunks/{document-scanner-B23j4w7X.js → document-scanner-B6h1Ir56.js} +198 -230
  84. package/dist/_chunks/document-scanner-B6h1Ir56.js.map +1 -0
  85. package/dist/_chunks/{due-date-calculator-CmdAl_JO.js → due-date-calculator-DASNRgnH.js} +4 -4
  86. package/dist/_chunks/{due-date-calculator-CmdAl_JO.js.map → due-date-calculator-DASNRgnH.js.map} +1 -1
  87. package/dist/_chunks/{editable-currency-cell-renderer-z9fJFw6Z.js → editable-currency-cell-renderer-GwfA9tTR.js} +3 -3
  88. package/dist/_chunks/{editable-currency-cell-renderer-z9fJFw6Z.js.map → editable-currency-cell-renderer-GwfA9tTR.js.map} +1 -1
  89. package/dist/_chunks/{editor-overlay-BIOzr8v7.js → editor-overlay-DE3esyio.js} +2 -2
  90. package/dist/_chunks/{editor-overlay-BIOzr8v7.js.map → editor-overlay-DE3esyio.js.map} +1 -1
  91. package/dist/_chunks/{el-OVjBKytp.js → el-HV3jOI0z.js} +2 -2
  92. package/dist/_chunks/{el-OVjBKytp.js.map → el-HV3jOI0z.js.map} +1 -1
  93. package/dist/_chunks/{empty-state-BLy7tigq.js → empty-state-CrLsi0XI.js} +2 -2
  94. package/dist/_chunks/{empty-state-BLy7tigq.js.map → empty-state-CrLsi0XI.js.map} +1 -1
  95. package/dist/_chunks/{entity-summary-DpGziDv5.js → entity-summary--vP698Jn.js} +3 -3
  96. package/dist/_chunks/{entity-summary-DpGziDv5.js.map → entity-summary--vP698Jn.js.map} +1 -1
  97. package/dist/_chunks/eraser-CHOGQfVv.js +21 -0
  98. package/dist/_chunks/eraser-CHOGQfVv.js.map +1 -0
  99. package/dist/_chunks/{es-DKDNrHXG.js → es-Dpo7Olwo.js} +2 -2
  100. package/dist/_chunks/{es-DKDNrHXG.js.map → es-Dpo7Olwo.js.map} +1 -1
  101. package/dist/_chunks/face-scheme-C0rk21gg.js +3146 -0
  102. package/dist/_chunks/face-scheme-C0rk21gg.js.map +1 -0
  103. package/dist/_chunks/{fetal-weight-CVAH8sJ3.js → fetal-weight-1F9N4IMx.js} +2 -2
  104. package/dist/_chunks/{fetal-weight-CVAH8sJ3.js.map → fetal-weight-1F9N4IMx.js.map} +1 -1
  105. package/dist/_chunks/{field-array-CDzc3hTM.js → field-array-DH3Mb1i8.js} +3 -3
  106. package/dist/_chunks/{field-array-CDzc3hTM.js.map → field-array-DH3Mb1i8.js.map} +1 -1
  107. package/dist/_chunks/{field-value-Dj3i52H2.js → field-value-DHG6gEKS.js} +5 -5
  108. package/dist/_chunks/{field-value-Dj3i52H2.js.map → field-value-DHG6gEKS.js.map} +1 -1
  109. package/dist/_chunks/file-Cwe9VC1A.js +40 -0
  110. package/dist/_chunks/file-Cwe9VC1A.js.map +1 -0
  111. package/dist/_chunks/file-manager-UF8dkQF1.js +1776 -0
  112. package/dist/_chunks/file-manager-UF8dkQF1.js.map +1 -0
  113. package/dist/_chunks/{file-upload-Kw1rdvFw.js → file-upload-DENvuhfs.js} +101 -139
  114. package/dist/_chunks/file-upload-DENvuhfs.js.map +1 -0
  115. package/dist/_chunks/{finished-terminal-Di4gtZ50.js → finished-terminal-C0_mefrf.js} +11 -11
  116. package/dist/_chunks/finished-terminal-C0_mefrf.js.map +1 -0
  117. package/dist/_chunks/{fiscal-code-input-DKNXFXs3.js → fiscal-code-input-DWA6C8x8.js} +2 -2
  118. package/dist/_chunks/{fiscal-code-input-DKNXFXs3.js.map → fiscal-code-input-DWA6C8x8.js.map} +1 -1
  119. package/dist/_chunks/{fr-BfMvQh-v.js → fr-CgD4Jvtq.js} +2 -2
  120. package/dist/_chunks/{fr-BfMvQh-v.js.map → fr-CgD4Jvtq.js.map} +1 -1
  121. package/dist/_chunks/{freemium-paywall-DFoeedwh.js → freemium-paywall-CmV642PA.js} +7 -3
  122. package/dist/_chunks/freemium-paywall-CmV642PA.js.map +1 -0
  123. package/dist/_chunks/{gestational-age-calculator-BwCBPAGX.js → gestational-age-calculator-BpYw-WF-.js} +7 -7
  124. package/dist/_chunks/{gestational-age-calculator-BwCBPAGX.js.map → gestational-age-calculator-BpYw-WF-.js.map} +1 -1
  125. package/dist/_chunks/{hcg-doubling-CSsWxEJc.js → hcg-doubling-Dqj-EqMT.js} +3 -3
  126. package/dist/_chunks/{hcg-doubling-CSsWxEJc.js.map → hcg-doubling-Dqj-EqMT.js.map} +1 -1
  127. package/dist/_chunks/{header-DaXWDw0M.js → header-CjwasYnn.js} +88 -79
  128. package/dist/_chunks/header-CjwasYnn.js.map +1 -0
  129. package/dist/_chunks/{header-settings-B0G_u-wV.js → header-settings-4cwQzeFc.js} +4 -4
  130. package/dist/_chunks/{header-settings-B0G_u-wV.js.map → header-settings-4cwQzeFc.js.map} +1 -1
  131. package/dist/_chunks/{hi-C0GEMwlD.js → hi-Bf8CAP6b.js} +2 -2
  132. package/dist/_chunks/{hi-C0GEMwlD.js.map → hi-Bf8CAP6b.js.map} +1 -1
  133. package/dist/_chunks/highlighter-DSkckT2Q.js +15 -0
  134. package/dist/_chunks/highlighter-DSkckT2Q.js.map +1 -0
  135. package/dist/_chunks/{icon-button-LqoiKcUN.js → icon-button-C_kbcd7I.js} +2 -2
  136. package/dist/_chunks/{icon-button-LqoiKcUN.js.map → icon-button-C_kbcd7I.js.map} +1 -1
  137. package/dist/_chunks/icon-button-group-C_lqXTAj.js +391 -0
  138. package/dist/_chunks/icon-button-group-C_lqXTAj.js.map +1 -0
  139. package/dist/_chunks/{icon-picker-Di6uYDG-.js → icon-picker-CM9ubkew.js} +3 -3
  140. package/dist/_chunks/{icon-picker-Di6uYDG-.js.map → icon-picker-CM9ubkew.js.map} +1 -1
  141. package/dist/_chunks/{image-cropper-CdmWFrMC.js → image-cropper-DKe4AORY.js} +2 -2
  142. package/dist/_chunks/{image-cropper-CdmWFrMC.js.map → image-cropper-DKe4AORY.js.map} +1 -1
  143. package/dist/_chunks/{insert-result-C7xSDb8q.js → insert-result-D074GtHX.js} +58 -68
  144. package/dist/_chunks/insert-result-D074GtHX.js.map +1 -0
  145. package/dist/_chunks/{isSameWeek-HddDAyJG.js → isSameWeek-BYl5poz_.js} +2 -2
  146. package/dist/_chunks/{isSameWeek-HddDAyJG.js.map → isSameWeek-BYl5poz_.js.map} +1 -1
  147. package/dist/_chunks/{it-5f4hiT2e.js → it-mt1V2DFS.js} +3 -3
  148. package/dist/_chunks/{it-5f4hiT2e.js.map → it-mt1V2DFS.js.map} +1 -1
  149. package/dist/_chunks/{ja-U0_2inl_.js → ja-CbOHn2TO.js} +2 -2
  150. package/dist/_chunks/{ja-U0_2inl_.js.map → ja-CbOHn2TO.js.map} +1 -1
  151. package/dist/_chunks/{key-value-pair-Byyyc_9J.js → key-value-pair-LHKfDT_9.js} +2 -2
  152. package/dist/_chunks/{key-value-pair-Byyyc_9J.js.map → key-value-pair-LHKfDT_9.js.map} +1 -1
  153. package/dist/_chunks/link-cell-renderer-BQGUs45d.js +711 -0
  154. package/dist/_chunks/link-cell-renderer-BQGUs45d.js.map +1 -0
  155. package/dist/_chunks/{locale-picker-DzF7Q5Y8.js → locale-picker-GNF3lo8K.js} +3 -3
  156. package/dist/_chunks/{locale-picker-DzF7Q5Y8.js.map → locale-picker-GNF3lo8K.js.map} +1 -1
  157. package/dist/_chunks/{map-view-ByPvWG_9.js → map-view-CsaHfoo6.js} +2 -2
  158. package/dist/_chunks/{map-view-ByPvWG_9.js.map → map-view-CsaHfoo6.js.map} +1 -1
  159. package/dist/_chunks/{marketplace-app-shell-BCYiOvKZ.js → marketplace-app-shell-D_1tF4La.js} +6 -6
  160. package/dist/_chunks/marketplace-app-shell-D_1tF4La.js.map +1 -0
  161. package/dist/_chunks/{message-card-BZnnffyB.js → message-card-ievotOFa.js} +3 -3
  162. package/dist/_chunks/{message-card-BZnnffyB.js.map → message-card-ievotOFa.js.map} +1 -1
  163. package/dist/_chunks/{message-tray-cUHOCdU0.js → message-tray-BFlu8clI.js} +4 -4
  164. package/dist/_chunks/{message-tray-cUHOCdU0.js.map → message-tray-BFlu8clI.js.map} +1 -1
  165. package/dist/_chunks/{muscle-scheme-B9MIkuj0.js → muscle-scheme-CFBE2dme.js} +6 -14
  166. package/dist/_chunks/{muscle-scheme-B9MIkuj0.js.map → muscle-scheme-CFBE2dme.js.map} +1 -1
  167. package/dist/_chunks/{nl-CDVnnx1U.js → nl-C6Y0QXnm.js} +2 -2
  168. package/dist/_chunks/{nl-CDVnnx1U.js.map → nl-C6Y0QXnm.js.map} +1 -1
  169. package/dist/_chunks/{notes-panel-CMyjUXD4.js → notes-panel-Cvdp818a.js} +3 -3
  170. package/dist/_chunks/{notes-panel-CMyjUXD4.js.map → notes-panel-Cvdp818a.js.map} +1 -1
  171. package/dist/_chunks/{notification-card-BHJ07FkH.js → notification-card-D29_sVA1.js} +3 -3
  172. package/dist/_chunks/{notification-card-BHJ07FkH.js.map → notification-card-D29_sVA1.js.map} +1 -1
  173. package/dist/_chunks/{notification-tray-Dzm1c3Wy.js → notification-tray-CzIzz3bX.js} +4 -4
  174. package/dist/_chunks/{notification-tray-Dzm1c3Wy.js.map → notification-tray-CzIzz3bX.js.map} +1 -1
  175. package/dist/_chunks/optical-prescription-BEjYQjiO.js +1260 -0
  176. package/dist/_chunks/optical-prescription-BEjYQjiO.js.map +1 -0
  177. package/dist/_chunks/{patient-details-pU_E5xM2.js → patient-details-DP4wKyq4.js} +7 -7
  178. package/dist/_chunks/{patient-details-pU_E5xM2.js.map → patient-details-DP4wKyq4.js.map} +1 -1
  179. package/dist/_chunks/{patient-search-X9SUZGpy.js → patient-search-BaUJ_Y-N.js} +47 -45
  180. package/dist/_chunks/patient-search-BaUJ_Y-N.js.map +1 -0
  181. package/dist/_chunks/{patient-summary-card--t3BjTdU.js → patient-summary-card-D6kgdTNn.js} +4 -4
  182. package/dist/_chunks/{patient-summary-card--t3BjTdU.js.map → patient-summary-card-D6kgdTNn.js.map} +1 -1
  183. package/dist/_chunks/{patient-table-BgWgNIMf.js → patient-table-DweKjiXg.js} +122 -118
  184. package/dist/_chunks/patient-table-DweKjiXg.js.map +1 -0
  185. package/dist/_chunks/{payment-request-card-2ts7ITxd.js → payment-request-card-C0fqlKqO.js} +25 -24
  186. package/dist/_chunks/{payment-request-card-2ts7ITxd.js.map → payment-request-card-C0fqlKqO.js.map} +1 -1
  187. package/dist/_chunks/pen-line-D0De5zdl.js +21 -0
  188. package/dist/_chunks/pen-line-D0De5zdl.js.map +1 -0
  189. package/dist/_chunks/periodontal-chart-D8hOFmde.js +1173 -0
  190. package/dist/_chunks/periodontal-chart-D8hOFmde.js.map +1 -0
  191. package/dist/_chunks/{periodontal-chart-card-6c6Lt4ws.js → periodontal-chart-card-WVjJAheq.js} +2 -2
  192. package/dist/_chunks/{periodontal-chart-card-6c6Lt4ws.js.map → periodontal-chart-card-WVjJAheq.js.map} +1 -1
  193. package/dist/_chunks/periodontal-diagnosis-cco40xTa.js +345 -0
  194. package/dist/_chunks/periodontal-diagnosis-cco40xTa.js.map +1 -0
  195. package/dist/_chunks/periodontal-risk-chart-bUGkMwDg.js +334 -0
  196. package/dist/_chunks/periodontal-risk-chart-bUGkMwDg.js.map +1 -0
  197. package/dist/_chunks/{pl-BWNumNrg.js → pl-BdazJAOp.js} +3 -3
  198. package/dist/_chunks/{pl-BWNumNrg.js.map → pl-BdazJAOp.js.map} +1 -1
  199. package/dist/_chunks/{popover-uJ6BvEU3.js → popover-Cc0a69sw.js} +32 -29
  200. package/dist/_chunks/{popover-uJ6BvEU3.js.map → popover-Cc0a69sw.js.map} +1 -1
  201. package/dist/_chunks/{practice-results-CSEHTH2V.js → practice-results-BCr7jMt1.js} +5 -5
  202. package/dist/_chunks/{practice-results-CSEHTH2V.js.map → practice-results-BCr7jMt1.js.map} +1 -1
  203. package/dist/_chunks/{pregnancy-dating-CxVAA6_4.js → pregnancy-dating-msMl_6wz.js} +7 -7
  204. package/dist/_chunks/{pregnancy-dating-CxVAA6_4.js.map → pregnancy-dating-msMl_6wz.js.map} +1 -1
  205. package/dist/_chunks/{pregnancy-weight-gain-C7zyrwow.js → pregnancy-weight-gain-B-CkVYnU.js} +2 -2
  206. package/dist/_chunks/{pregnancy-weight-gain-C7zyrwow.js.map → pregnancy-weight-gain-B-CkVYnU.js.map} +1 -1
  207. package/dist/_chunks/{privacy-lock-DrRmK8C7.js → privacy-lock-YYBiI_bY.js} +3 -3
  208. package/dist/_chunks/{privacy-lock-DrRmK8C7.js.map → privacy-lock-YYBiI_bY.js.map} +1 -1
  209. package/dist/_chunks/{product-hub-panel-CaZqttvm.js → product-hub-panel-CTld1r5V.js} +3 -3
  210. package/dist/_chunks/{product-hub-panel-CaZqttvm.js.map → product-hub-panel-CTld1r5V.js.map} +1 -1
  211. package/dist/_chunks/{pt-zqdQuryr.js → pt-B3UKvhHp.js} +2 -2
  212. package/dist/_chunks/{pt-zqdQuryr.js.map → pt-B3UKvhHp.js.map} +1 -1
  213. package/dist/_chunks/{public-header.agent-C-opZaOw.js → public-header.agent-rX_VA6hd.js} +107 -103
  214. package/dist/_chunks/public-header.agent-rX_VA6hd.js.map +1 -0
  215. package/dist/_chunks/{radiograph-panel.agent-D1x33moc.js → radiograph-panel.agent-CxF9pVxd.js} +40 -57
  216. package/dist/_chunks/radiograph-panel.agent-CxF9pVxd.js.map +1 -0
  217. package/dist/_chunks/{reviews-panel-liUj6OPX.js → reviews-panel-DmOjvmyH.js} +4 -4
  218. package/dist/_chunks/{reviews-panel-liUj6OPX.js.map → reviews-panel-DmOjvmyH.js.map} +1 -1
  219. package/dist/_chunks/{rich-text-editor-DUgznqOf.js → rich-text-editor-CCWjNkbx.js} +26 -26
  220. package/dist/_chunks/rich-text-editor-CCWjNkbx.js.map +1 -0
  221. package/dist/_chunks/{ro-CornQr64.js → ro-DVTEQpPK.js} +2 -2
  222. package/dist/_chunks/{ro-CornQr64.js.map → ro-DVTEQpPK.js.map} +1 -1
  223. package/dist/_chunks/{ru-CKAXNYVD.js → ru-C-Mp40SC.js} +3 -3
  224. package/dist/_chunks/{ru-CKAXNYVD.js.map → ru-C-Mp40SC.js.map} +1 -1
  225. package/dist/_chunks/{select-BmCbJMJS.js → select-BW5ecXlX.js} +13 -13
  226. package/dist/_chunks/{select-BmCbJMJS.js.map → select-BW5ecXlX.js.map} +1 -1
  227. package/dist/_chunks/{session-countdown-qr8EO5QY.js → session-countdown-C8AsE072.js} +2 -2
  228. package/dist/_chunks/{session-countdown-qr8EO5QY.js.map → session-countdown-C8AsE072.js.map} +1 -1
  229. package/dist/_chunks/{sheet-B_X54aZo.js → sheet-D5K0LB3q.js} +2 -2
  230. package/dist/_chunks/{sheet-B_X54aZo.js.map → sheet-D5K0LB3q.js.map} +1 -1
  231. package/dist/_chunks/{sidebar-B0OBmJrC.js → sidebar-C0PbwJBc.js} +375 -335
  232. package/dist/_chunks/sidebar-C0PbwJBc.js.map +1 -0
  233. package/dist/_chunks/{sign-document-nK03S73h.js → sign-document-Bfk0WpWV.js} +2 -2
  234. package/dist/_chunks/{sign-document-nK03S73h.js.map → sign-document-Bfk0WpWV.js.map} +1 -1
  235. package/dist/_chunks/{sign-in-with-alfadocs-button-LppxjlFt.js → sign-in-with-alfadocs-button-UlYefZpI.js} +2 -2
  236. package/dist/_chunks/{sign-in-with-alfadocs-button-LppxjlFt.js.map → sign-in-with-alfadocs-button-UlYefZpI.js.map} +1 -1
  237. package/dist/_chunks/{signature-capture-Ct_4Md4e.js → signature-capture-DN52VNKL.js} +206 -189
  238. package/dist/_chunks/signature-capture-DN52VNKL.js.map +1 -0
  239. package/dist/_chunks/{signature-field-jgwYgUhO.js → signature-field-0rFODJlW.js} +47 -41
  240. package/dist/_chunks/signature-field-0rFODJlW.js.map +1 -0
  241. package/dist/_chunks/signature-request-C-mskXwi.js +318 -0
  242. package/dist/_chunks/signature-request-C-mskXwi.js.map +1 -0
  243. package/dist/_chunks/{slot-grid-FsqumOaS.js → slot-grid-CQSULZjd.js} +4 -4
  244. package/dist/_chunks/{slot-grid-FsqumOaS.js.map → slot-grid-CQSULZjd.js.map} +1 -1
  245. package/dist/_chunks/{sq-CIIvqXZv.js → sq-DierVlw-.js} +2 -2
  246. package/dist/_chunks/{sq-CIIvqXZv.js.map → sq-DierVlw-.js.map} +1 -1
  247. package/dist/_chunks/{streaming-text-Cedc05ya.js → streaming-text-C5bYz7LL.js} +2 -2
  248. package/dist/_chunks/{streaming-text-Cedc05ya.js.map → streaming-text-C5bYz7LL.js.map} +1 -1
  249. package/dist/_chunks/subDays-DIKRViZm.js +8 -0
  250. package/dist/_chunks/{subDays-DGSOp9d9.js.map → subDays-DIKRViZm.js.map} +1 -1
  251. package/dist/_chunks/{sv-Kpk1pzjz.js → sv-gQWo_19z.js} +2 -2
  252. package/dist/_chunks/{sv-Kpk1pzjz.js.map → sv-gQWo_19z.js.map} +1 -1
  253. package/dist/_chunks/{tabs-DVQ941Sj.js → tabs-CVTukWRD.js} +2 -2
  254. package/dist/_chunks/{tabs-DVQ941Sj.js.map → tabs-CVTukWRD.js.map} +1 -1
  255. package/dist/_chunks/{task-tray-DP5A3Qnc.js → task-tray-Br3vc0O1.js} +3 -3
  256. package/dist/_chunks/{task-tray-DP5A3Qnc.js.map → task-tray-Br3vc0O1.js.map} +1 -1
  257. package/dist/_chunks/{tasks-panel-BuxaYtEF.js → tasks-panel-CjGAhIN8.js} +6 -6
  258. package/dist/_chunks/{tasks-panel-BuxaYtEF.js.map → tasks-panel-CjGAhIN8.js.map} +1 -1
  259. package/dist/_chunks/{theme-toggle-dtdy5EaL.js → theme-toggle-BJCz_UOi.js} +3 -3
  260. package/dist/_chunks/{theme-toggle-dtdy5EaL.js.map → theme-toggle-BJCz_UOi.js.map} +1 -1
  261. package/dist/_chunks/{toast.agent-BSxl057x.js → toast.agent-uV8CeAy6.js} +2 -2
  262. package/dist/_chunks/{toast.agent-BSxl057x.js.map → toast.agent-uV8CeAy6.js.map} +1 -1
  263. package/dist/_chunks/{token-insert-menu-Pok4nExI.js → token-insert-menu-BYv6yoZI.js} +2 -2
  264. package/dist/_chunks/{token-insert-menu-Pok4nExI.js.map → token-insert-menu-BYv6yoZI.js.map} +1 -1
  265. package/dist/_chunks/{tool-rail-BZx0-yIr.js → tool-rail-AaTqxkIM.js} +2 -2
  266. package/dist/_chunks/{tool-rail-BZx0-yIr.js.map → tool-rail-AaTqxkIM.js.map} +1 -1
  267. package/dist/_chunks/tooth-data-BwuoKFf4.js +660 -0
  268. package/dist/_chunks/tooth-data-BwuoKFf4.js.map +1 -0
  269. package/dist/_chunks/tooth-scheme-BzJ6rcte.js +1483 -0
  270. package/dist/_chunks/tooth-scheme-BzJ6rcte.js.map +1 -0
  271. package/dist/_chunks/{tr-DHaeLFxG.js → tr-Btm6M3Km.js} +2 -2
  272. package/dist/_chunks/{tr-DHaeLFxG.js.map → tr-Btm6M3Km.js.map} +1 -1
  273. package/dist/_chunks/{transaction-chip-B6iWoVmU.js → transaction-chip-DJCstquX.js} +41 -51
  274. package/dist/_chunks/transaction-chip-DJCstquX.js.map +1 -0
  275. package/dist/_chunks/type-ggmfVs23.js +16 -0
  276. package/dist/_chunks/type-ggmfVs23.js.map +1 -0
  277. package/dist/_chunks/{unit-converter-fEqluT8b.js → unit-converter-CSLWFDQh.js} +3 -3
  278. package/dist/_chunks/{unit-converter-fEqluT8b.js.map → unit-converter-CSLWFDQh.js.map} +1 -1
  279. package/dist/_chunks/upload-BfT2hzMg.js +16 -0
  280. package/dist/_chunks/upload-BfT2hzMg.js.map +1 -0
  281. package/dist/_chunks/use-priority-overflow-c9SjxZkZ.js +101 -0
  282. package/dist/_chunks/use-priority-overflow-c9SjxZkZ.js.map +1 -0
  283. package/dist/_chunks/use-visual-viewport-pin-ChurOsHM.js +31 -0
  284. package/dist/_chunks/use-visual-viewport-pin-ChurOsHM.js.map +1 -0
  285. package/dist/_chunks/{warning-stack-BaMI7-n7.js → warning-stack-BlG_Ujy3.js} +3 -3
  286. package/dist/_chunks/{warning-stack-BaMI7-n7.js.map → warning-stack-BlG_Ujy3.js.map} +1 -1
  287. package/dist/_chunks/{workflow-map-qWsgCldq.js → workflow-map-C643Q43h.js} +5 -5
  288. package/dist/_chunks/{workflow-map-qWsgCldq.js.map → workflow-map-C643Q43h.js.map} +1 -1
  289. package/dist/_chunks/{zh-CN-BncsTBwM.js → zh-CN-DkVN4vsB.js} +3 -3
  290. package/dist/_chunks/{zh-CN-BncsTBwM.js.map → zh-CN-DkVN4vsB.js.map} +1 -1
  291. package/dist/agent-catalog.json +4081 -3201
  292. package/dist/agent-i18n/en.json +121 -69
  293. package/dist/brand/product-lockup/product-lockup.d.ts +1 -1
  294. package/dist/components/_shared/calendar-class-names.d.ts.map +1 -1
  295. package/dist/components/_shared/entity-card/entity-card.d.ts +1 -1
  296. package/dist/components/agenda-tray/index.js +1 -1
  297. package/dist/components/ai-consent-banner/index.js +1 -1
  298. package/dist/components/ai-prompt-input/index.js +1 -1
  299. package/dist/components/anamnesis-card/anamnesis-card.d.ts +1 -1
  300. package/dist/components/anamnesis-card/index.js +1 -1
  301. package/dist/components/appointment-card/appointment-card.d.ts +1 -1
  302. package/dist/components/appointment-card/index.js +2 -2
  303. package/dist/components/appointment-timeline/index.js +1 -1
  304. package/dist/components/audio-recorder/index.js +1 -1
  305. package/dist/components/benefit-card/benefit-card.d.ts.map +1 -1
  306. package/dist/components/benefit-card/index.js +1 -1
  307. package/dist/components/bishop-score/index.js +1 -1
  308. package/dist/components/bmi-calculator/index.js +1 -1
  309. package/dist/components/booking/index.js +1 -1
  310. package/dist/components/button/button.d.ts +8 -1
  311. package/dist/components/button/button.d.ts.map +1 -1
  312. package/dist/components/button/index.js +2 -2
  313. package/dist/components/button-group/button-group.d.ts +16 -0
  314. package/dist/components/button-group/button-group.d.ts.map +1 -1
  315. package/dist/components/button-group/index.js +1 -1
  316. package/dist/components/card/card.d.ts +1 -1
  317. package/dist/components/care-plan-card/index.js +1 -1
  318. package/dist/components/care-plan-entry-card/index.js +1 -1
  319. package/dist/components/care-plan-header/index.js +1 -1
  320. package/dist/components/carousel/index.js +1 -1
  321. package/dist/components/chat-container/chat-container.d.ts.map +1 -1
  322. package/dist/components/chat-container/index.js +1 -1
  323. package/dist/components/chat-input/index.js +1 -1
  324. package/dist/components/chat-message/index.js +1 -1
  325. package/dist/components/clinical-note-card/clinical-note-card.d.ts +1 -1
  326. package/dist/components/connection-status/index.js +1 -1
  327. package/dist/components/contact-profile-card/contact-profile-card.d.ts +1 -1
  328. package/dist/components/contact-profile-card/index.js +1 -1
  329. package/dist/components/control-room-rail/index.js +1 -1
  330. package/dist/components/copy-field/index.js +1 -1
  331. package/dist/components/counter/counter.d.ts +1 -1
  332. package/dist/components/cycle-calculator/index.js +1 -1
  333. package/dist/components/data-table/data-table.d.ts +2 -8
  334. package/dist/components/data-table/data-table.d.ts.map +1 -1
  335. package/dist/components/data-table/filters/number-filter.d.ts.map +1 -1
  336. package/dist/components/data-table/index.js +35 -34
  337. package/dist/components/data-table/index.js.map +1 -1
  338. package/dist/components/data-table/toolbar.d.ts +5 -11
  339. package/dist/components/data-table/toolbar.d.ts.map +1 -1
  340. package/dist/components/data-table-tabs/data-table-tabs.agent.d.ts +4 -0
  341. package/dist/components/data-table-tabs/data-table-tabs.agent.d.ts.map +1 -0
  342. package/dist/components/data-table-tabs/data-table-tabs.d.ts +93 -0
  343. package/dist/components/data-table-tabs/data-table-tabs.d.ts.map +1 -0
  344. package/dist/components/data-table-tabs/index.d.ts +5 -0
  345. package/dist/components/data-table-tabs/index.d.ts.map +1 -0
  346. package/dist/components/data-table-tabs/index.js +8 -0
  347. package/dist/components/data-table-tabs/use-data-table-filter-tabs.d.ts +63 -0
  348. package/dist/components/data-table-tabs/use-data-table-filter-tabs.d.ts.map +1 -0
  349. package/dist/components/date-picker/index.js +1 -1
  350. package/dist/components/date-range-picker/index.js +1 -1
  351. package/dist/components/date-time-picker/index.js +1 -1
  352. package/dist/components/description-list/index.js +1 -1
  353. package/dist/components/document-preview/document-preview.agent.d.ts +4 -0
  354. package/dist/components/document-preview/document-preview.agent.d.ts.map +1 -0
  355. package/dist/components/document-preview/document-preview.d.ts +41 -0
  356. package/dist/components/document-preview/document-preview.d.ts.map +1 -0
  357. package/dist/components/document-preview/index.d.ts +4 -0
  358. package/dist/components/document-preview/index.d.ts.map +1 -0
  359. package/dist/components/document-preview/index.js +6 -0
  360. package/dist/components/document-preview/index.js.map +1 -0
  361. package/dist/components/document-scanner/document-scanner.d.ts.map +1 -1
  362. package/dist/components/document-scanner/index.js +1 -1
  363. package/dist/components/due-date-calculator/index.js +2 -2
  364. package/dist/components/editor-overlay/index.js +1 -1
  365. package/dist/components/empty-state/index.js +1 -1
  366. package/dist/components/entity-summary/index.js +1 -1
  367. package/dist/components/face-scheme/face-scheme-data.d.ts +167 -0
  368. package/dist/components/face-scheme/face-scheme-data.d.ts.map +1 -1
  369. package/dist/components/face-scheme/face-scheme.agent.d.ts.map +1 -1
  370. package/dist/components/face-scheme/face-scheme.d.ts +112 -2
  371. package/dist/components/face-scheme/face-scheme.d.ts.map +1 -1
  372. package/dist/components/face-scheme/index.d.ts +2 -2
  373. package/dist/components/face-scheme/index.d.ts.map +1 -1
  374. package/dist/components/face-scheme/index.js +25 -14
  375. package/dist/components/fetal-weight/index.js +1 -1
  376. package/dist/components/field-array/index.js +1 -1
  377. package/dist/components/file-manager/dialogs.d.ts +48 -0
  378. package/dist/components/file-manager/dialogs.d.ts.map +1 -0
  379. package/dist/components/file-manager/file-manager.agent.d.ts +4 -0
  380. package/dist/components/file-manager/file-manager.agent.d.ts.map +1 -0
  381. package/dist/components/file-manager/file-manager.d.ts +82 -0
  382. package/dist/components/file-manager/file-manager.d.ts.map +1 -0
  383. package/dist/components/file-manager/folder-tree.d.ts +12 -0
  384. package/dist/components/file-manager/folder-tree.d.ts.map +1 -0
  385. package/dist/components/file-manager/index.d.ts +5 -0
  386. package/dist/components/file-manager/index.d.ts.map +1 -0
  387. package/dist/components/file-manager/index.js +6 -0
  388. package/dist/components/file-manager/index.js.map +1 -0
  389. package/dist/components/file-manager/list-view.d.ts +49 -0
  390. package/dist/components/file-manager/list-view.d.ts.map +1 -0
  391. package/dist/components/file-manager/toolbar.d.ts +15 -0
  392. package/dist/components/file-manager/toolbar.d.ts.map +1 -0
  393. package/dist/components/file-manager/types.d.ts +167 -0
  394. package/dist/components/file-manager/types.d.ts.map +1 -0
  395. package/dist/components/file-manager/utils.d.ts +34 -0
  396. package/dist/components/file-manager/utils.d.ts.map +1 -0
  397. package/dist/components/file-upload/file-upload.d.ts +1 -0
  398. package/dist/components/file-upload/file-upload.d.ts.map +1 -1
  399. package/dist/components/file-upload/index.d.ts +1 -1
  400. package/dist/components/file-upload/index.d.ts.map +1 -1
  401. package/dist/components/file-upload/index.js +4 -3
  402. package/dist/components/finished-terminal/finished-terminal.d.ts.map +1 -1
  403. package/dist/components/finished-terminal/index.js +1 -1
  404. package/dist/components/fiscal-code-input/index.js +1 -1
  405. package/dist/components/flag/flag.d.ts +1 -1
  406. package/dist/components/freemium-paywall/freemium-paywall.d.ts.map +1 -1
  407. package/dist/components/freemium-paywall/index.js +1 -1
  408. package/dist/components/gestational-age-calculator/index.js +1 -1
  409. package/dist/components/hcg-doubling/index.js +1 -1
  410. package/dist/components/header/header.d.ts.map +1 -1
  411. package/dist/components/header/index.js +1 -1
  412. package/dist/components/header-settings/index.js +1 -1
  413. package/dist/components/icon-button/index.js +1 -1
  414. package/dist/components/icon-button-group/icon-button-group.d.ts +6 -0
  415. package/dist/components/icon-button-group/icon-button-group.d.ts.map +1 -1
  416. package/dist/components/icon-button-group/index.js +1 -1
  417. package/dist/components/icon-picker/index.js +1 -1
  418. package/dist/components/image-cropper/index.js +1 -1
  419. package/dist/components/index.d.ts +7 -1
  420. package/dist/components/index.d.ts.map +1 -1
  421. package/dist/components/key-value-pair/index.js +1 -1
  422. package/dist/components/link/link.d.ts +1 -1
  423. package/dist/components/locale-picker/index.js +1 -1
  424. package/dist/components/map-view/index.js +1 -1
  425. package/dist/components/matrix-rain/matrix-rain.d.ts +1 -1
  426. package/dist/components/message-card/index.js +1 -1
  427. package/dist/components/message-card/message-card.d.ts +1 -1
  428. package/dist/components/message-tray/index.js +1 -1
  429. package/dist/components/muscle-scheme/index.js +1 -1
  430. package/dist/components/muscle-scheme/muscle-scheme.d.ts.map +1 -1
  431. package/dist/components/notes-panel/index.js +1 -1
  432. package/dist/components/notification-card/index.js +1 -1
  433. package/dist/components/notification-card/notification-card.d.ts +1 -1
  434. package/dist/components/notification-tray/index.js +1 -1
  435. package/dist/components/operator-hero/operator-hero.d.ts +1 -1
  436. package/dist/components/optical-prescription/index.d.ts +4 -2
  437. package/dist/components/optical-prescription/index.d.ts.map +1 -1
  438. package/dist/components/optical-prescription/index.js +29 -26
  439. package/dist/components/optical-prescription/optical-prescription-charts.d.ts +78 -0
  440. package/dist/components/optical-prescription/optical-prescription-charts.d.ts.map +1 -0
  441. package/dist/components/optical-prescription/optical-prescription-data.d.ts +29 -0
  442. package/dist/components/optical-prescription/optical-prescription-data.d.ts.map +1 -1
  443. package/dist/components/optical-prescription/optical-prescription.agent.d.ts.map +1 -1
  444. package/dist/components/optical-prescription/optical-prescription.d.ts +9 -0
  445. package/dist/components/optical-prescription/optical-prescription.d.ts.map +1 -1
  446. package/dist/components/patient-details/index.js +1 -1
  447. package/dist/components/patient-search/index.js +1 -1
  448. package/dist/components/patient-search/patient-search.d.ts.map +1 -1
  449. package/dist/components/patient-summary-card/index.js +1 -1
  450. package/dist/components/patient-summary-card/patient-summary-card.d.ts +1 -1
  451. package/dist/components/patient-table/columns.d.ts.map +1 -1
  452. package/dist/components/patient-table/index.js +1 -1
  453. package/dist/components/payment-card/index.js +1 -1
  454. package/dist/components/payment-card/payment-card.d.ts +1 -1
  455. package/dist/components/payment-card/payment-request-card.d.ts +1 -1
  456. package/dist/components/periodontal-chart/index.d.ts +6 -0
  457. package/dist/components/periodontal-chart/index.d.ts.map +1 -0
  458. package/dist/components/periodontal-chart/index.js +22 -0
  459. package/dist/components/periodontal-chart/index.js.map +1 -0
  460. package/dist/components/periodontal-chart/periodontal-chart-data.d.ts +119 -0
  461. package/dist/components/periodontal-chart/periodontal-chart-data.d.ts.map +1 -0
  462. package/dist/components/periodontal-chart/periodontal-chart.agent.d.ts +4 -0
  463. package/dist/components/periodontal-chart/periodontal-chart.agent.d.ts.map +1 -0
  464. package/dist/components/periodontal-chart/periodontal-chart.d.ts +69 -0
  465. package/dist/components/periodontal-chart/periodontal-chart.d.ts.map +1 -0
  466. package/dist/components/periodontal-chart-card/index.js +1 -1
  467. package/dist/components/periodontal-chart-card/periodontal-chart-card.d.ts +1 -1
  468. package/dist/components/periodontal-diagnosis/index.d.ts +6 -0
  469. package/dist/components/periodontal-diagnosis/index.d.ts.map +1 -0
  470. package/dist/components/periodontal-diagnosis/index.js +13 -0
  471. package/dist/components/periodontal-diagnosis/index.js.map +1 -0
  472. package/dist/components/periodontal-diagnosis/periodontal-diagnosis-data.d.ts +30 -0
  473. package/dist/components/periodontal-diagnosis/periodontal-diagnosis-data.d.ts.map +1 -0
  474. package/dist/components/periodontal-diagnosis/periodontal-diagnosis.agent.d.ts +4 -0
  475. package/dist/components/periodontal-diagnosis/periodontal-diagnosis.agent.d.ts.map +1 -0
  476. package/dist/components/periodontal-diagnosis/periodontal-diagnosis.d.ts +44 -0
  477. package/dist/components/periodontal-diagnosis/periodontal-diagnosis.d.ts.map +1 -0
  478. package/dist/components/periodontal-risk-chart/index.d.ts +6 -0
  479. package/dist/components/periodontal-risk-chart/index.d.ts.map +1 -0
  480. package/dist/components/periodontal-risk-chart/index.js +9 -0
  481. package/dist/components/periodontal-risk-chart/index.js.map +1 -0
  482. package/dist/components/periodontal-risk-chart/periodontal-risk-chart.agent.d.ts +4 -0
  483. package/dist/components/periodontal-risk-chart/periodontal-risk-chart.agent.d.ts.map +1 -0
  484. package/dist/components/periodontal-risk-chart/periodontal-risk-chart.d.ts +28 -0
  485. package/dist/components/periodontal-risk-chart/periodontal-risk-chart.d.ts.map +1 -0
  486. package/dist/components/periodontal-risk-chart/periodontal-risk-data.d.ts +47 -0
  487. package/dist/components/periodontal-risk-chart/periodontal-risk-data.d.ts.map +1 -0
  488. package/dist/components/popover/index.js +1 -1
  489. package/dist/components/popover/popover.d.ts +1 -0
  490. package/dist/components/popover/popover.d.ts.map +1 -1
  491. package/dist/components/practice-results/index.js +1 -1
  492. package/dist/components/pregnancy-dating/index.js +1 -1
  493. package/dist/components/pregnancy-weight-gain/index.js +1 -1
  494. package/dist/components/privacy-lock/index.js +1 -1
  495. package/dist/components/product-hub-tray/index.js +1 -1
  496. package/dist/components/product-hub-tray/product-hub-panel.d.ts +1 -1
  497. package/dist/components/public-header/index.js +1 -1
  498. package/dist/components/public-header/public-header.d.ts +1 -1
  499. package/dist/components/public-header/public-header.d.ts.map +1 -1
  500. package/dist/components/radiograph-panel/index.js +1 -1
  501. package/dist/components/radiograph-panel/radiograph-panel.d.ts +2 -2
  502. package/dist/components/radiograph-panel/radiograph-panel.d.ts.map +1 -1
  503. package/dist/components/reviews-panel/index.js +1 -1
  504. package/dist/components/rich-text-editor/index.js +1 -1
  505. package/dist/components/select/index.js +1 -1
  506. package/dist/components/select/select.d.ts.map +1 -1
  507. package/dist/components/session-countdown/index.js +1 -1
  508. package/dist/components/sheet/index.js +1 -1
  509. package/dist/components/sidebar/index.js +1 -1
  510. package/dist/components/sidebar/sidebar.d.ts +9 -0
  511. package/dist/components/sidebar/sidebar.d.ts.map +1 -1
  512. package/dist/components/sign-document/index.js +1 -1
  513. package/dist/components/sign-in-with-alfadocs-button/index.js +1 -1
  514. package/dist/components/signature-capture/index.js +1 -1
  515. package/dist/components/signature-capture/signature-capture.d.ts.map +1 -1
  516. package/dist/components/signature-field/index.js +1 -1
  517. package/dist/components/signature-field/signature-field.d.ts +7 -0
  518. package/dist/components/signature-field/signature-field.d.ts.map +1 -1
  519. package/dist/components/skeleton-scheme/index.js +1186 -0
  520. package/dist/components/skeleton-scheme/index.js.map +1 -0
  521. package/dist/components/slot-grid/index.js +1 -1
  522. package/dist/components/stat/stat.d.ts +1 -1
  523. package/dist/components/streaming-text/index.js +1 -1
  524. package/dist/components/tabs/index.js +1 -1
  525. package/dist/components/task-tray/index.js +1 -1
  526. package/dist/components/tasks-panel/index.js +1 -1
  527. package/dist/components/theme-toggle/index.js +1 -1
  528. package/dist/components/toast/index.js +1 -1
  529. package/dist/components/token-insert-menu/index.js +1 -1
  530. package/dist/components/tool-rail/index.js +1 -1
  531. package/dist/components/tooth-scheme/index.js +29 -28
  532. package/dist/components/tooth-scheme/index.js.map +1 -1
  533. package/dist/components/transaction-chip/index.js +1 -1
  534. package/dist/components/unit-converter/index.js +1 -1
  535. package/dist/components/warning-stack/index.js +1 -1
  536. package/dist/components/workflow/index.js +1 -1
  537. package/dist/hooks/index.d.ts +2 -0
  538. package/dist/hooks/index.d.ts.map +1 -1
  539. package/dist/hooks/index.js +40 -35
  540. package/dist/hooks/index.js.map +1 -1
  541. package/dist/hooks/use-priority-overflow.d.ts +63 -0
  542. package/dist/hooks/use-priority-overflow.d.ts.map +1 -0
  543. package/dist/hooks/use-visual-viewport-pin.d.ts +32 -0
  544. package/dist/hooks/use-visual-viewport-pin.d.ts.map +1 -0
  545. package/dist/i18n/locales/ar.d.ts +490 -9
  546. package/dist/i18n/locales/ar.d.ts.map +1 -1
  547. package/dist/i18n/locales/ar.js +493 -12
  548. package/dist/i18n/locales/ar.js.map +1 -1
  549. package/dist/i18n/locales/de.d.ts +490 -9
  550. package/dist/i18n/locales/de.d.ts.map +1 -1
  551. package/dist/i18n/locales/de.js +493 -12
  552. package/dist/i18n/locales/de.js.map +1 -1
  553. package/dist/i18n/locales/el.d.ts +490 -9
  554. package/dist/i18n/locales/el.d.ts.map +1 -1
  555. package/dist/i18n/locales/el.js +493 -12
  556. package/dist/i18n/locales/el.js.map +1 -1
  557. package/dist/i18n/locales/en.d.ts +490 -9
  558. package/dist/i18n/locales/en.d.ts.map +1 -1
  559. package/dist/i18n/locales/en.js +493 -12
  560. package/dist/i18n/locales/en.js.map +1 -1
  561. package/dist/i18n/locales/es.d.ts +490 -9
  562. package/dist/i18n/locales/es.d.ts.map +1 -1
  563. package/dist/i18n/locales/es.js +493 -12
  564. package/dist/i18n/locales/es.js.map +1 -1
  565. package/dist/i18n/locales/fr.d.ts +490 -9
  566. package/dist/i18n/locales/fr.d.ts.map +1 -1
  567. package/dist/i18n/locales/fr.js +493 -12
  568. package/dist/i18n/locales/fr.js.map +1 -1
  569. package/dist/i18n/locales/hi.d.ts +490 -9
  570. package/dist/i18n/locales/hi.d.ts.map +1 -1
  571. package/dist/i18n/locales/hi.js +493 -12
  572. package/dist/i18n/locales/hi.js.map +1 -1
  573. package/dist/i18n/locales/it.d.ts +490 -9
  574. package/dist/i18n/locales/it.d.ts.map +1 -1
  575. package/dist/i18n/locales/it.js +493 -12
  576. package/dist/i18n/locales/it.js.map +1 -1
  577. package/dist/i18n/locales/ja.d.ts +490 -9
  578. package/dist/i18n/locales/ja.d.ts.map +1 -1
  579. package/dist/i18n/locales/ja.js +493 -12
  580. package/dist/i18n/locales/ja.js.map +1 -1
  581. package/dist/i18n/locales/nl.d.ts +490 -9
  582. package/dist/i18n/locales/nl.d.ts.map +1 -1
  583. package/dist/i18n/locales/nl.js +493 -12
  584. package/dist/i18n/locales/nl.js.map +1 -1
  585. package/dist/i18n/locales/pl.d.ts +490 -9
  586. package/dist/i18n/locales/pl.d.ts.map +1 -1
  587. package/dist/i18n/locales/pl.js +493 -12
  588. package/dist/i18n/locales/pl.js.map +1 -1
  589. package/dist/i18n/locales/pt.d.ts +490 -9
  590. package/dist/i18n/locales/pt.d.ts.map +1 -1
  591. package/dist/i18n/locales/pt.js +493 -12
  592. package/dist/i18n/locales/pt.js.map +1 -1
  593. package/dist/i18n/locales/ro.d.ts +490 -9
  594. package/dist/i18n/locales/ro.d.ts.map +1 -1
  595. package/dist/i18n/locales/ro.js +493 -12
  596. package/dist/i18n/locales/ro.js.map +1 -1
  597. package/dist/i18n/locales/ru.d.ts +490 -9
  598. package/dist/i18n/locales/ru.d.ts.map +1 -1
  599. package/dist/i18n/locales/ru.js +493 -12
  600. package/dist/i18n/locales/ru.js.map +1 -1
  601. package/dist/i18n/locales/sq.d.ts +490 -9
  602. package/dist/i18n/locales/sq.d.ts.map +1 -1
  603. package/dist/i18n/locales/sq.js +493 -12
  604. package/dist/i18n/locales/sq.js.map +1 -1
  605. package/dist/i18n/locales/sv.d.ts +490 -9
  606. package/dist/i18n/locales/sv.d.ts.map +1 -1
  607. package/dist/i18n/locales/sv.js +493 -12
  608. package/dist/i18n/locales/sv.js.map +1 -1
  609. package/dist/i18n/locales/tr.d.ts +490 -9
  610. package/dist/i18n/locales/tr.d.ts.map +1 -1
  611. package/dist/i18n/locales/tr.js +493 -12
  612. package/dist/i18n/locales/tr.js.map +1 -1
  613. package/dist/i18n/locales/zh.d.ts +490 -9
  614. package/dist/i18n/locales/zh.d.ts.map +1 -1
  615. package/dist/i18n/locales/zh.js +493 -12
  616. package/dist/i18n/locales/zh.js.map +1 -1
  617. package/dist/index.js +872 -809
  618. package/dist/index.js.map +1 -1
  619. package/dist/locales/ar.json +493 -12
  620. package/dist/locales/de.json +493 -12
  621. package/dist/locales/el.json +493 -12
  622. package/dist/locales/en.json +493 -12
  623. package/dist/locales/es.json +493 -12
  624. package/dist/locales/fr.json +493 -12
  625. package/dist/locales/hi.json +493 -12
  626. package/dist/locales/it.json +493 -12
  627. package/dist/locales/ja.json +493 -12
  628. package/dist/locales/nl.json +493 -12
  629. package/dist/locales/pl.json +493 -12
  630. package/dist/locales/pt.json +493 -12
  631. package/dist/locales/ro.json +493 -12
  632. package/dist/locales/ru.json +493 -12
  633. package/dist/locales/sq.json +493 -12
  634. package/dist/locales/sv.json +493 -12
  635. package/dist/locales/tr.json +493 -12
  636. package/dist/locales/zh.json +493 -12
  637. package/dist/patterns/alia-assistant/index.js +1 -1
  638. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  639. package/dist/patterns/marketplace-app-shell/marketplace-app-shell.d.ts +1 -1
  640. package/dist/patterns/signature-request/index.d.ts +3 -0
  641. package/dist/patterns/signature-request/index.d.ts.map +1 -0
  642. package/dist/patterns/signature-request/index.js +5 -0
  643. package/dist/patterns/signature-request/index.js.map +1 -0
  644. package/dist/patterns/signature-request/signature-request.d.ts +81 -0
  645. package/dist/patterns/signature-request/signature-request.d.ts.map +1 -0
  646. package/dist/tokens.css +2 -2
  647. package/package.json +32 -4
  648. package/dist/_chunks/benefit-card-Xnxj4Gmo.js.map +0 -1
  649. package/dist/_chunks/button-DD_0Xdmr.js.map +0 -1
  650. package/dist/_chunks/button-group-CvEnVzY7.js +0 -119
  651. package/dist/_chunks/button-group-CvEnVzY7.js.map +0 -1
  652. package/dist/_chunks/columns-2-8lq4-b8e.js.map +0 -1
  653. package/dist/_chunks/document-scanner-B23j4w7X.js.map +0 -1
  654. package/dist/_chunks/face-scheme-BT9_KdL0.js +0 -1450
  655. package/dist/_chunks/face-scheme-BT9_KdL0.js.map +0 -1
  656. package/dist/_chunks/file-upload-Kw1rdvFw.js.map +0 -1
  657. package/dist/_chunks/finished-terminal-Di4gtZ50.js.map +0 -1
  658. package/dist/_chunks/freemium-paywall-DFoeedwh.js.map +0 -1
  659. package/dist/_chunks/header-DaXWDw0M.js.map +0 -1
  660. package/dist/_chunks/icon-button-group-C48khLE0.js +0 -206
  661. package/dist/_chunks/icon-button-group-C48khLE0.js.map +0 -1
  662. package/dist/_chunks/insert-result-C7xSDb8q.js.map +0 -1
  663. package/dist/_chunks/link-cell-renderer-BCppbMec.js +0 -2185
  664. package/dist/_chunks/link-cell-renderer-BCppbMec.js.map +0 -1
  665. package/dist/_chunks/marketplace-app-shell-BCYiOvKZ.js.map +0 -1
  666. package/dist/_chunks/optical-prescription-Bmlbuopi.js +0 -653
  667. package/dist/_chunks/optical-prescription-Bmlbuopi.js.map +0 -1
  668. package/dist/_chunks/patient-search-X9SUZGpy.js.map +0 -1
  669. package/dist/_chunks/patient-shell-oiIRqEAl.js +0 -162
  670. package/dist/_chunks/patient-shell-oiIRqEAl.js.map +0 -1
  671. package/dist/_chunks/patient-table-BgWgNIMf.js.map +0 -1
  672. package/dist/_chunks/public-header.agent-C-opZaOw.js.map +0 -1
  673. package/dist/_chunks/radiograph-panel.agent-D1x33moc.js.map +0 -1
  674. package/dist/_chunks/rich-text-editor-DUgznqOf.js.map +0 -1
  675. package/dist/_chunks/sidebar-B0OBmJrC.js.map +0 -1
  676. package/dist/_chunks/signature-capture-Ct_4Md4e.js.map +0 -1
  677. package/dist/_chunks/signature-field-jgwYgUhO.js.map +0 -1
  678. package/dist/_chunks/subDays-DGSOp9d9.js +0 -8
  679. package/dist/_chunks/tooth-scheme-D_rso4uu.js +0 -2133
  680. package/dist/_chunks/tooth-scheme-D_rso4uu.js.map +0 -1
  681. package/dist/_chunks/transaction-chip-B6iWoVmU.js.map +0 -1
  682. package/dist/patterns/patient-shell/index.d.ts +0 -12
  683. package/dist/patterns/patient-shell/index.d.ts.map +0 -1
  684. package/dist/patterns/patient-shell/index.js +0 -5
  685. package/dist/patterns/patient-shell/patient-shell.d.ts +0 -62
  686. package/dist/patterns/patient-shell/patient-shell.d.ts.map +0 -1
  687. /package/dist/{patterns/patient-shell → components/data-table-tabs}/index.js.map +0 -0
@@ -1,2185 +0,0 @@
1
- import { jsx as n, jsxs as I } from "react/jsx-runtime";
2
- import { useMemo as E, forwardRef as G, useState as R, useCallback as M, useEffect as z, useRef as xe, createContext as Se, useContext as we, isValidElement as Ne, cloneElement as Fe, useImperativeHandle as bt } from "react";
3
- import { S as ht } from "./skeleton-CZbwyJAA.js";
4
- import { E as vt } from "./empty-state-BLy7tigq.js";
5
- import { c as Tt } from "./index-D2ZczOXr.js";
6
- import { useTranslation as F } from "react-i18next";
7
- import { useGridFilter as X, AgGridReact as yt } from "ag-grid-react";
8
- import { ModuleRegistry as Ct, AllCommunityModule as xt } from "ag-grid-community";
9
- import { B as j } from "./button-DD_0Xdmr.js";
10
- import { I as V } from "./icon-button-LqoiKcUN.js";
11
- import { P as Z } from "./popover-uJ6BvEU3.js";
12
- import { C as Re } from "./checkbox-BuZ1u__2.js";
13
- import { T as pe } from "./text-input-CUvCb6ST.js";
14
- import { T as te } from "./tag-3wgkwwDB.js";
15
- import { D as _ } from "./dropdown-menu-DU-Hrf33.js";
16
- import { X as De } from "./x-B5YnXwCz.js";
17
- import { R as St } from "./refresh-cw-DnI0cLFC.js";
18
- import { S as fe } from "./search-QbWPlY5f.js";
19
- import { C as wt } from "./columns-2-8lq4-b8e.js";
20
- import { G as Nt } from "./grip-vertical-onSb1JXO.js";
21
- import { P as Ft } from "./printer-rkK0T1gi.js";
22
- import { F as Ie } from "./file-text-5yv6r2ls.js";
23
- import { D as ae } from "./download-CfYKJO_j.js";
24
- import { F as Rt } from "./file-spreadsheet-DmwyfV4O.js";
25
- import Dt from "i18next";
26
- import { S as ke } from "./select-BmCbJMJS.js";
27
- import { u as It } from "./registry-DvAUVLHh.js";
28
- import { u as kt } from "./use-prefers-reduced-motion-BMwIQRjB.js";
29
- import { u as Et } from "./use-theme-CAuo6EYT.js";
30
- import { D as Ee } from "./date-range-picker-Dw12DgV8.js";
31
- import { M as At } from "./multi-select-D5QLBJM1.js";
32
- import { S as Ot } from "./scroll-area-BZOvUhwQ.js";
33
- import { A as Ae } from "./autocomplete-BrONKN8l.js";
34
- import { N as Y } from "./number-input-DjWzmlEY.js";
35
- import { B as zt } from "./badge-DCOqV9mI.js";
36
- import { A as Oe } from "./avatar-BNQNhoyL.js";
37
- import { T as Pt } from "./tooltip-DvmfrNvB.js";
38
- import { T as he } from "./timestamp-BV2lC-wV.js";
39
- import { I as Mt } from "./icon-button-group-C48khLE0.js";
40
- import { E as qt } from "./ellipsis-dRo9ouSU.js";
41
- function Lt(t) {
42
- if (!Ne(t)) return t;
43
- const e = t, a = e.props.className ?? "", r = /\bsize-|\bw-|\bh-/.test(a) ? a : `${a} ds:size-4`.trim();
44
- return Fe(e, { className: r, size: e.props.size ?? 16 });
45
- }
46
- const ze = Se(null);
47
- function B(t) {
48
- const e = we(ze);
49
- if (!e)
50
- throw new Error(
51
- `${t} must be rendered inside <DataTable.Toolbar> as a descendant of <DataTable>.`
52
- );
53
- return e;
54
- }
55
- function jt({
56
- getApi: t,
57
- selectionCount: e,
58
- onPrint: a,
59
- children: r
60
- }) {
61
- const o = E(
62
- () => ({ getApi: t, selectionCount: e, onPrint: a }),
63
- [t, e, a]
64
- );
65
- return /* @__PURE__ */ n(ze.Provider, { value: o, children: r });
66
- }
67
- const Gt = [
68
- "data-table-toolbar",
69
- // Mobile (<sm) keeps `flex-wrap` so a wide QuickSearch can flow above the
70
- // Actions cluster on narrow screens. From `sm` (≥640px) we switch to
71
- // `flex-nowrap` + `min-w-0` so the row stays single-line at every common
72
- // desktop width (1024 / 1280 / 1440) — the QuickSearch slot shrinks via
73
- // its own `min-w-0` instead of pushing the trailing Actions to a new row.
74
- "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-sm)]",
75
- "ds:sm:flex-nowrap ds:min-w-0",
76
- // Brand-polish: give the toolbar its own card surface so it doesn't
77
- // sit flush above the grid as a bare row. The `--card` token resolves to
78
- // `--background` on the default light theme (white), which makes a
79
- // shadow-only chrome invisible on the page — pair the card fill with the
80
- // standard `--card-border` outline (same recipe as `<Card>`) so the
81
- // toolbar reads as a discrete surface in both light and dark themes.
82
- "ds:bg-[var(--card)] ds:rounded-[var(--radius-md)]",
83
- "ds:border ds:border-[color:var(--card-border)]",
84
- "ds:shadow-[var(--shadow-sm)]",
85
- "ds:py-[var(--spacing-sm)] ds:px-[var(--spacing-md)]"
86
- ].join(" "), Pe = G(
87
- ({ className: t, children: e, ...a }, r) => /* @__PURE__ */ n(
88
- "div",
89
- {
90
- ref: r,
91
- role: "toolbar",
92
- className: [Gt, t ?? ""].join(" ").trim(),
93
- ...a,
94
- children: e
95
- }
96
- )
97
- );
98
- Pe.displayName = "DataTable.Toolbar";
99
- const Me = G(
100
- ({ className: t, children: e, ...a }, r) => /* @__PURE__ */ n(
101
- "div",
102
- {
103
- ref: r,
104
- className: [
105
- "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-sm)]",
106
- // `grow` lets FilterBar absorb the free space; `min-w-0` lets the
107
- // QuickSearch slot inside shrink below its intrinsic width when the
108
- // toolbar runs `flex-nowrap` at `sm` and above, so the trailing
109
- // Actions cluster stays pinned on a single row.
110
- "ds:grow ds:min-w-0",
111
- t ?? ""
112
- ].join(" ").trim(),
113
- ...a,
114
- children: e
115
- }
116
- )
117
- );
118
- Me.displayName = "DataTable.Toolbar.FilterBar";
119
- const qe = G(
120
- ({ className: t, children: e, ...a }, r) => /* @__PURE__ */ n(
121
- "div",
122
- {
123
- ref: r,
124
- className: [
125
- "ds:flex ds:items-center ds:gap-[var(--spacing-xs)]",
126
- "ds:ms-auto",
127
- t ?? ""
128
- ].join(" ").trim(),
129
- ...a,
130
- children: e
131
- }
132
- )
133
- );
134
- qe.displayName = "DataTable.Toolbar.Actions";
135
- const Le = G(
136
- ({ label: t, onExport: e, intent: a = "outline", ...r }, o) => {
137
- const { t: s } = F(), { getApi: i } = B("DataTable.Toolbar.ExportCsv"), p = M(() => {
138
- const l = i();
139
- l && (e ? e(l) : l.exportDataAsCsv());
140
- }, [i, e]);
141
- return /* @__PURE__ */ n(
142
- V,
143
- {
144
- ref: o,
145
- type: "button",
146
- intent: a,
147
- icon: /* @__PURE__ */ n(ae, { "aria-hidden": !0 }),
148
- tooltip: t ?? s("dataTable.exportCsv"),
149
- onClick: p,
150
- ...r
151
- }
152
- );
153
- }
154
- );
155
- Le.displayName = "DataTable.Toolbar.ExportCsv";
156
- function Q(t, e = [30, 30, 30]) {
157
- if (typeof document > "u") return e;
158
- const a = document.createElement("span");
159
- a.style.color = `hsl(var(${t}))`, a.style.position = "absolute", a.style.visibility = "hidden", document.body.appendChild(a);
160
- const r = getComputedStyle(a).color;
161
- document.body.removeChild(a);
162
- const o = r.match(/rgba?\(\s*(\d+)[,\s]+(\d+)[,\s]+(\d+)/i);
163
- return o ? [Number(o[1]), Number(o[2]), Number(o[3])] : e;
164
- }
165
- async function je(t, e) {
166
- if (!t) return;
167
- const [{ jsPDF: a }, { default: r }] = await Promise.all([
168
- import("./jspdf.es.min-DaapWjR1.js").then((g) => g.j),
169
- import("./jspdf.plugin.autotable-CSiDNyPn.js")
170
- ]), s = (t.getColumns() ?? []).filter((g) => g.isVisible()), i = [
171
- s.map((g) => t.getDisplayNameForColumn(g, null) ?? "")
172
- ], p = [];
173
- t.forEachNodeAfterFilterAndSort((g) => {
174
- if (!g.data) return;
175
- const T = s.map((C) => {
176
- const S = t.getCellValue({
177
- rowNode: g,
178
- colKey: C,
179
- useFormatter: !0
180
- });
181
- return S == null ? "" : String(S);
182
- });
183
- p.push(T);
184
- });
185
- const l = Q("--muted", [240, 240, 240]), d = Q("--foreground", [30, 30, 30]), c = Q("--card-foreground", [30, 30, 30]), u = Q("--card", [250, 250, 250]), y = new a({ orientation: "landscape" });
186
- r(y, {
187
- head: i,
188
- body: p,
189
- headStyles: { fillColor: l, textColor: d },
190
- bodyStyles: { textColor: c },
191
- alternateRowStyles: { fillColor: u },
192
- styles: {
193
- font: "helvetica",
194
- fontSize: 10,
195
- cellPadding: 4
196
- }
197
- }), y.save(e.fileName);
198
- }
199
- const Ge = G(
200
- ({ label: t, onClick: e, fileName: a, intent: r = "outline", ...o }, s) => {
201
- const { t: i } = F(), { getApi: p } = B("DataTable.Toolbar.ExportPdf"), l = M(() => {
202
- const d = p();
203
- if (e) {
204
- e(d);
205
- return;
206
- }
207
- je(d, {
208
- fileName: a ?? "data-table-export.pdf"
209
- });
210
- }, [p, e, a]);
211
- return /* @__PURE__ */ n(
212
- V,
213
- {
214
- ref: s,
215
- type: "button",
216
- intent: r,
217
- icon: /* @__PURE__ */ n(Ie, { "aria-hidden": !0 }),
218
- tooltip: t ?? i("dataTable.exportPdf"),
219
- onClick: l,
220
- ...o
221
- }
222
- );
223
- }
224
- );
225
- Ge.displayName = "DataTable.Toolbar.ExportPdf";
226
- const Be = G(
227
- ({ label: t, intent: e = "outline", ...a }, r) => {
228
- const { t: o } = F(), { onPrint: s } = B("DataTable.Toolbar.Print");
229
- return /* @__PURE__ */ n(
230
- V,
231
- {
232
- ref: r,
233
- type: "button",
234
- intent: e,
235
- icon: /* @__PURE__ */ n(Ft, { "aria-hidden": !0 }),
236
- tooltip: t ?? o("dataTable.print"),
237
- onClick: s,
238
- ...a
239
- }
240
- );
241
- }
242
- );
243
- Be.displayName = "DataTable.Toolbar.Print";
244
- const $e = ({ placeholder: t, debounceMs: e = 150 }) => {
245
- const { t: a } = F(), { getApi: r } = B("DataTable.Toolbar.QuickSearch"), [o, s] = R(""), i = xe(void 0);
246
- return z(() => (i.current && window.clearTimeout(i.current), i.current = window.setTimeout(() => {
247
- const p = r();
248
- p && p.setGridOption("quickFilterText", o);
249
- }, e), () => {
250
- i.current && window.clearTimeout(i.current);
251
- }), [o, e, r]), // Slot wrapper caps the search at a sensible legible width on desktop —
252
- // without this, TextInput's `w-full` lets the QuickSearch absorb the
253
- // entire FilterBar row and push trailing Actions onto a second line at
254
- // 1024 / 1280 / 1440. `min-w-0` lets the slot shrink below `24rem` when
255
- // the toolbar is squeezed on narrow viewports. There is no
256
- // `--toolbar-search-max` token in the kit yet — see this component's
257
- // summary for a follow-up note recommending we add one.
258
- /* @__PURE__ */ n("div", { className: "ds:w-full ds:max-w-[24rem] ds:min-w-0", children: /* @__PURE__ */ n(
259
- pe,
260
- {
261
- type: "search",
262
- size: "sm",
263
- value: o,
264
- onChange: (p) => s(p.target.value),
265
- placeholder: t ?? a("dataTable.quickSearch.placeholder", "Search…"),
266
- startAdornment: /* @__PURE__ */ n(fe, { "aria-hidden": !0, className: "ds:size-4" }),
267
- clearable: !0,
268
- onClear: () => s(""),
269
- "aria-label": a("dataTable.quickSearch.label", "Quick search")
270
- }
271
- ) });
272
- };
273
- $e.displayName = "DataTable.Toolbar.QuickSearch";
274
- const _e = G(
275
- ({ onRefresh: t, label: e, intent: a = "outline", ...r }, o) => {
276
- const { t: s } = F();
277
- return /* @__PURE__ */ n(
278
- V,
279
- {
280
- ref: o,
281
- type: "button",
282
- intent: a,
283
- icon: /* @__PURE__ */ n(St, { "aria-hidden": !0 }),
284
- tooltip: e ?? s("dataTable.refresh", "Refresh"),
285
- onClick: t,
286
- ...r
287
- }
288
- );
289
- }
290
- );
291
- _e.displayName = "DataTable.Toolbar.Refresh";
292
- function Bt(t) {
293
- if (!t || typeof t != "object") return "";
294
- const e = t;
295
- if (typeof e.filter == "string" || typeof e.filter == "number") {
296
- const a = typeof e.type == "string" ? e.type : "", r = typeof e.filterTo == "string" || typeof e.filterTo == "number" ? String(e.filterTo) : "";
297
- return a === "inRange" && r ? `${e.filter} – ${r}` : a ? `${a} ${e.filter}` : String(e.filter);
298
- }
299
- return typeof e.dateFrom == "string" ? typeof e.dateTo == "string" && e.dateTo ? `${e.dateFrom} – ${e.dateTo}` : String(e.dateFrom) : Array.isArray(e.values) ? e.values.map(String).join(", ") : "";
300
- }
301
- const Ve = () => {
302
- const { t } = F(), { getApi: e } = B("DataTable.Toolbar.FilterChips"), [a, r] = R([]), [o, s] = R(""), i = M(() => {
303
- const c = e();
304
- if (!c) {
305
- r([]), s("");
306
- return;
307
- }
308
- const u = c.getFilterModel() ?? {}, y = c.getColumns() ?? [], g = [];
309
- for (const C of Object.keys(u)) {
310
- const S = y.find((m) => m.getColId() === C), f = c.getDisplayNameForColumn(S, null) ?? C;
311
- g.push({
312
- colId: C,
313
- headerName: f,
314
- text: Bt(u[C])
315
- });
316
- }
317
- r(g);
318
- const T = c.getGridOption("quickFilterText");
319
- s(typeof T == "string" ? T : "");
320
- }, [e]);
321
- if (z(() => {
322
- let c;
323
- const u = (T) => i(), y = (T) => {
324
- T.addEventListener("filterChanged", u), i(), c = () => T.removeEventListener("filterChanged", u);
325
- }, g = e();
326
- if (g)
327
- y(g);
328
- else {
329
- const T = window.setInterval(() => {
330
- const C = e();
331
- C && (window.clearInterval(T), y(C));
332
- }, 50);
333
- c = () => window.clearInterval(T);
334
- }
335
- return () => c == null ? void 0 : c();
336
- }, [e, i]), a.length + (o ? 1 : 0) === 0) return null;
337
- function l(c) {
338
- const u = e();
339
- u && u.destroyFilter(c);
340
- }
341
- function d() {
342
- const c = e();
343
- c && (c.setFilterModel(null), c.setGridOption("quickFilterText", ""), s(""));
344
- }
345
- return /* @__PURE__ */ I(
346
- "div",
347
- {
348
- role: "group",
349
- "aria-label": t("dataTable.filterChips.label", "Active filters"),
350
- className: "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]",
351
- children: [
352
- o && /* @__PURE__ */ n(
353
- te,
354
- {
355
- label: `${t("dataTable.quickSearch.label", "Quick search")}: ${o}`,
356
- size: "sm",
357
- fill: "outline",
358
- onRemove: () => {
359
- const c = e();
360
- c == null || c.setGridOption("quickFilterText", ""), s("");
361
- }
362
- }
363
- ),
364
- a.map((c) => /* @__PURE__ */ n(
365
- te,
366
- {
367
- label: c.text ? `${c.headerName}: ${c.text}` : c.headerName,
368
- size: "sm",
369
- fill: "outline",
370
- onRemove: () => l(c.colId)
371
- },
372
- c.colId
373
- )),
374
- /* @__PURE__ */ n(
375
- j,
376
- {
377
- type: "button",
378
- intent: "ghost",
379
- size: "sm",
380
- onClick: d,
381
- startIcon: /* @__PURE__ */ n(De, { "aria-hidden": !0, className: "ds:size-4" }),
382
- children: t("dataTable.filterChips.clearAll", "Clear all")
383
- }
384
- )
385
- ]
386
- }
387
- );
388
- };
389
- Ve.displayName = "DataTable.Toolbar.FilterChips";
390
- const We = ({
391
- field: t,
392
- options: e,
393
- label: a
394
- }) => {
395
- const { t: r } = F(), { getApi: o } = B("DataTable.Toolbar.FacetFilter"), [s, i] = R(null);
396
- function p(l) {
397
- i(l);
398
- const d = o();
399
- if (d) {
400
- if (l === null) {
401
- d.destroyFilter(t);
402
- return;
403
- }
404
- d.setColumnFilterModel(t, {
405
- type: "equals",
406
- filter: l
407
- }), d.onFilterChanged();
408
- }
409
- }
410
- return /* @__PURE__ */ n(
411
- "div",
412
- {
413
- role: "group",
414
- "aria-label": a ?? r("dataTable.facetFilter.label", "Filter"),
415
- className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)]",
416
- children: e.map((l) => {
417
- const d = s === l.value;
418
- return /* @__PURE__ */ n(
419
- j,
420
- {
421
- type: "button",
422
- size: "sm",
423
- intent: d ? "primary" : "secondary",
424
- "aria-pressed": d,
425
- onClick: () => p(l.value),
426
- children: l.label
427
- },
428
- String(l.value)
429
- );
430
- })
431
- }
432
- );
433
- };
434
- We.displayName = "DataTable.Toolbar.FacetFilter";
435
- const $t = ["csv", "xlsx", "pdf"];
436
- async function _t(t, e) {
437
- if (!t) return;
438
- const a = await import("./exceljs.min-DUJ-5CGx.js").then((C) => C.e), r = new a.Workbook(), o = r.addWorksheet("Sheet1"), i = (t.getColumns() ?? []).filter((C) => C.isVisible());
439
- o.addRow(
440
- i.map(
441
- (C) => t.getDisplayNameForColumn(C, null) ?? C.getColId()
442
- )
443
- ), t.forEachNodeAfterFilterAndSort((C) => {
444
- C.data && o.addRow(
445
- i.map((S) => {
446
- const f = t.getCellValue({
447
- rowNode: C,
448
- colKey: S,
449
- useFormatter: !0
450
- });
451
- return f ?? "";
452
- })
453
- );
454
- });
455
- const p = Q("--muted", [240, 240, 240]), l = Q("--foreground", [30, 30, 30]), d = o.getRow(1), c = ([C, S, f]) => `${C.toString(16).padStart(2, "0")}${S.toString(16).padStart(2, "0")}${f.toString(16).padStart(2, "0")}`.toUpperCase();
456
- d.eachCell((C) => {
457
- C.font = { bold: !0, color: { argb: `FF${c(l)}` } }, C.fill = {
458
- type: "pattern",
459
- pattern: "solid",
460
- fgColor: { argb: `FF${c(p)}` }
461
- };
462
- });
463
- const u = await r.xlsx.writeBuffer(), y = new Blob([u], {
464
- type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
465
- }), g = URL.createObjectURL(y), T = document.createElement("a");
466
- T.href = g, T.download = e.fileName, document.body.appendChild(T), T.click(), document.body.removeChild(T), URL.revokeObjectURL(g);
467
- }
468
- const Ke = Se(null);
469
- function Vt() {
470
- const t = we(Ke);
471
- if (!t)
472
- throw new Error(
473
- "DataTable.Toolbar.ExportMenu.Item must be rendered inside DataTable.Toolbar.ExportMenu."
474
- );
475
- return t;
476
- }
477
- const Ue = ({ children: t, label: e }) => {
478
- const { t: a } = F(), { getApi: r } = B("DataTable.Toolbar.ExportMenu"), o = E(() => ({ getApi: r }), [r]), s = t ?? $t.map((i) => /* @__PURE__ */ n(me, { format: i }, i));
479
- return /* @__PURE__ */ n(Ke.Provider, { value: o, children: /* @__PURE__ */ I(_.Root, { children: [
480
- /* @__PURE__ */ n(_.Trigger, { asChild: !0, children: /* @__PURE__ */ n(
481
- V,
482
- {
483
- type: "button",
484
- intent: "outline",
485
- icon: /* @__PURE__ */ n(ae, { "aria-hidden": !0 }),
486
- tooltip: e ?? a("dataTable.export.menu", "Export"),
487
- "aria-label": e ?? a("dataTable.export.menu", "Export"),
488
- "aria-haspopup": "menu"
489
- }
490
- ) }),
491
- /* @__PURE__ */ n(_.Content, { align: "end", sideOffset: 4, children: s })
492
- ] }) });
493
- };
494
- Ue.displayName = "DataTable.Toolbar.ExportMenu";
495
- function Wt(t, e) {
496
- return e === "csv" ? t("dataTable.export.csv", "Export CSV") : e === "xlsx" ? t("dataTable.export.xlsx", "Export Excel") : e === "pdf" ? t("dataTable.export.pdf", "Export PDF") : t("dataTable.export.custom", "Export");
497
- }
498
- function Kt(t) {
499
- return t === "csv" ? /* @__PURE__ */ n(ae, { "aria-hidden": !0, className: "ds:size-4" }) : t === "xlsx" ? /* @__PURE__ */ n(Rt, { "aria-hidden": !0, className: "ds:size-4" }) : t === "pdf" ? /* @__PURE__ */ n(Ie, { "aria-hidden": !0, className: "ds:size-4" }) : /* @__PURE__ */ n(ae, { "aria-hidden": !0, className: "ds:size-4" });
500
- }
501
- const me = ({
502
- format: t,
503
- label: e,
504
- onClick: a,
505
- fileName: r
506
- }) => {
507
- const { t: o } = F(), { getApi: s } = Vt(), i = M(() => {
508
- const p = s();
509
- if (t === "csv") {
510
- p == null || p.exportDataAsCsv();
511
- return;
512
- }
513
- if (t === "pdf") {
514
- je(p, {
515
- fileName: r ?? "data-table-export.pdf"
516
- });
517
- return;
518
- }
519
- if (t === "xlsx") {
520
- _t(p, {
521
- fileName: r ?? "data-table-export.xlsx"
522
- });
523
- return;
524
- }
525
- a == null || a(p);
526
- }, [t, r, a, s]);
527
- return /* @__PURE__ */ n(_.Item, { onSelect: i, children: /* @__PURE__ */ I("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
528
- Kt(t),
529
- /* @__PURE__ */ n("span", { children: e ?? Wt(o, t) })
530
- ] }) });
531
- };
532
- me.displayName = "DataTable.Toolbar.ExportMenu.Item";
533
- function Ut(t) {
534
- return t ? (t.getAllGridColumns() ?? []).map((a) => a.getColDef().hide === void 0 && a.getColId().startsWith("ag-Grid-") ? null : {
535
- colId: a.getColId(),
536
- displayName: t.getDisplayNameForColumn(a, null) || a.getColId(),
537
- visible: a.isVisible()
538
- }).filter((a) => a !== null) : [];
539
- }
540
- const He = ({ label: t, icon: e, footer: a, header: r }) => {
541
- const { t: o } = F(), { getApi: s } = B("DataTable.Toolbar.ColumnToggle"), [i, p] = R(!1), [l, d] = R([]), [c, u] = R(null), [y, g] = R(null);
542
- z(() => {
543
- i && d(Ut(s()));
544
- }, [i, s]);
545
- const T = M(
546
- (f, m) => {
547
- const b = s();
548
- b && (b.setColumnsVisible([f], m), d(
549
- (h) => h.map(
550
- (w) => w.colId === f ? { ...w, visible: m } : w
551
- )
552
- ));
553
- },
554
- [s]
555
- ), C = M(
556
- (f, m) => {
557
- if (f === m) return;
558
- const b = s();
559
- if (!b) return;
560
- d((w) => {
561
- const A = w.findIndex((W) => W.colId === f), k = w.findIndex((W) => W.colId === m);
562
- if (A < 0 || k < 0) return w;
563
- const $ = [...w], [D] = $.splice(A, 1);
564
- return $.splice(k, 0, D), $;
565
- });
566
- const h = l.findIndex((w) => w.colId === m);
567
- h >= 0 && b.moveColumns([f], h);
568
- },
569
- [s, l]
570
- ), S = t ?? o("dataTable.columnToggle");
571
- return /* @__PURE__ */ I(Z.Root, { open: i, onOpenChange: p, children: [
572
- /* @__PURE__ */ n(Z.Trigger, { asChild: !0, children: /* @__PURE__ */ n(
573
- V,
574
- {
575
- type: "button",
576
- intent: "outline",
577
- icon: e ?? /* @__PURE__ */ n(wt, { "aria-hidden": !0 }),
578
- "aria-label": S,
579
- "aria-haspopup": "dialog"
580
- }
581
- ) }),
582
- /* @__PURE__ */ I(Z.Content, { size: "sm", align: "end", children: [
583
- /* @__PURE__ */ n(Z.Heading, { children: S }),
584
- r ? /* @__PURE__ */ n("div", { className: "ds:mb-[var(--spacing-xs)] ds:border-b ds:border-[color:var(--border)] ds:pb-[var(--spacing-sm)]", children: r }) : null,
585
- /* @__PURE__ */ n(
586
- "ul",
587
- {
588
- className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]",
589
- "aria-label": S,
590
- children: l.map((f) => {
591
- const m = c === f.colId, b = y === f.colId && c !== f.colId;
592
- return /* @__PURE__ */ I(
593
- "li",
594
- {
595
- draggable: !0,
596
- onDragStart: (h) => {
597
- u(f.colId), h.dataTransfer.effectAllowed = "move", h.dataTransfer.setData("text/plain", f.colId);
598
- },
599
- onDragOver: (h) => {
600
- h.preventDefault(), h.dataTransfer.dropEffect = "move", g(f.colId);
601
- },
602
- onDragLeave: () => {
603
- g((h) => h === f.colId ? null : h);
604
- },
605
- onDrop: (h) => {
606
- h.preventDefault();
607
- const w = h.dataTransfer.getData("text/plain");
608
- w && C(w, f.colId), u(null), g(null);
609
- },
610
- onDragEnd: () => {
611
- u(null), g(null);
612
- },
613
- className: [
614
- "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",
615
- m ? "ds:opacity-50" : "",
616
- b ? "ds:bg-[color:color-mix(in_srgb,var(--primary)_8%,transparent)]" : ""
617
- ].filter(Boolean).join(" "),
618
- children: [
619
- /* @__PURE__ */ n(
620
- "span",
621
- {
622
- "aria-hidden": "true",
623
- className: "ds:cursor-grab ds:text-[color:var(--muted-foreground)] ds:active:cursor-grabbing",
624
- children: /* @__PURE__ */ n(Nt, { className: "ds:size-4" })
625
- }
626
- ),
627
- /* @__PURE__ */ n(
628
- Re,
629
- {
630
- label: f.displayName,
631
- checked: f.visible,
632
- onCheckedChange: (h) => T(f.colId, h === !0)
633
- }
634
- )
635
- ]
636
- },
637
- f.colId
638
- );
639
- })
640
- }
641
- ),
642
- a ? /* @__PURE__ */ n("div", { className: "ds:mt-[var(--spacing-xs)] ds:border-t ds:border-[color:var(--border)] ds:pt-[var(--spacing-sm)]", children: a }) : null
643
- ] })
644
- ] });
645
- };
646
- He.displayName = "DataTable.Toolbar.ColumnToggle";
647
- const Qe = G(
648
- ({ label: t, icon: e, onClick: a, variant: r = "default", size: o = "sm", ...s }, i) => {
649
- const { t: p } = F(), { getApi: l, selectionCount: d } = B(
650
- "DataTable.Toolbar.BulkAction"
651
- );
652
- return d === 0 ? null : /* @__PURE__ */ I(
653
- j,
654
- {
655
- ref: i,
656
- type: "button",
657
- intent: r === "destructive" ? "destructive" : "secondary",
658
- size: o,
659
- startIcon: Lt(e),
660
- onClick: () => a(l()),
661
- "aria-label": `${t} (${p("dataTable.bulkAction", { count: d })})`,
662
- ...s,
663
- children: [
664
- /* @__PURE__ */ n("span", { children: t }),
665
- /* @__PURE__ */ n(
666
- "span",
667
- {
668
- "aria-hidden": "true",
669
- className: "ds:ms-[var(--spacing-xs)] ds:opacity-80",
670
- children: p("dataTable.bulkAction", { count: d })
671
- }
672
- )
673
- ]
674
- }
675
- );
676
- }
677
- );
678
- Qe.displayName = "DataTable.Toolbar.BulkAction";
679
- const Ht = Object.assign(Ue, {
680
- Item: me
681
- }), ee = Object.assign(Pe, {
682
- FilterBar: Me,
683
- Actions: qe,
684
- /** @deprecated Use `Toolbar.ExportMenu` with a `csv` item. */
685
- ExportCsv: Le,
686
- /** @deprecated Use `Toolbar.ExportMenu` with a `pdf` item. */
687
- ExportPdf: Ge,
688
- Print: Be,
689
- ColumnToggle: He,
690
- BulkAction: Qe,
691
- QuickSearch: $e,
692
- Refresh: _e,
693
- FilterChips: Ve,
694
- FacetFilter: We,
695
- ExportMenu: Ht
696
- }), Qt = [
697
- "contains",
698
- "equals",
699
- "startsWith",
700
- "endsWith",
701
- "notContains"
702
- ];
703
- function Jt(t) {
704
- const e = new Intl.Collator(t, {
705
- sensitivity: "base",
706
- usage: "search"
707
- });
708
- function a(r, o) {
709
- if (o.length === 0) return 0;
710
- if (o.length > r.length) return -1;
711
- for (let s = 0; s <= r.length - o.length; s += 1)
712
- if (e.compare(r.slice(s, s + o.length), o) === 0)
713
- return s;
714
- return -1;
715
- }
716
- return {
717
- equals: (r, o) => e.compare(r, o) === 0,
718
- contains: (r, o) => a(r, o) !== -1,
719
- startsWith: (r, o) => o.length <= r.length && e.compare(r.slice(0, o.length), o) === 0,
720
- endsWith: (r, o) => o.length <= r.length && e.compare(
721
- r.slice(r.length - o.length),
722
- o
723
- ) === 0
724
- };
725
- }
726
- function Xt(t) {
727
- return t == null ? null : typeof t == "string" ? t : String(t);
728
- }
729
- function Zt(t) {
730
- const { model: e, onModelChange: a, getValue: r, placeholder: o, defaultOperator: s } = t, { t: i } = F("ui"), p = (e == null ? void 0 : e.type) ?? s ?? "contains", [l, d] = R(p), [c, u] = R((e == null ? void 0 : e.filter) ?? "");
731
- z(() => {
732
- d((e == null ? void 0 : e.type) ?? s ?? "contains"), u((e == null ? void 0 : e.filter) ?? "");
733
- }, [e, s]);
734
- const y = E(() => Jt(Dt.language), []);
735
- X({
736
- doesFilterPass: (f) => {
737
- const m = e;
738
- if (!m || m.filter === "") return !0;
739
- const b = Xt(r(f.node));
740
- if (b === null) return !1;
741
- switch (m.type) {
742
- case "equals":
743
- return y.equals(b, m.filter);
744
- case "contains":
745
- return y.contains(b, m.filter);
746
- case "startsWith":
747
- return y.startsWith(b, m.filter);
748
- case "endsWith":
749
- return y.endsWith(b, m.filter);
750
- case "notContains":
751
- return !y.contains(b, m.filter);
752
- default:
753
- return !0;
754
- }
755
- }
756
- });
757
- function g() {
758
- if (c.trim() === "") {
759
- a(null);
760
- return;
761
- }
762
- a({ type: l, filter: c });
763
- }
764
- function T() {
765
- u(""), d(s ?? "contains"), a(null);
766
- }
767
- const C = Qt.map(
768
- (f) => ({
769
- value: f,
770
- label: i(`dataTable.textFilter.operators.${f}`)
771
- })
772
- ), S = o ?? i("dataTable.textFilter.placeholder");
773
- return /* @__PURE__ */ I(
774
- "div",
775
- {
776
- "data-component": "text-filter",
777
- className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-sm)] ds:min-w-[240px]",
778
- children: [
779
- /* @__PURE__ */ n(
780
- ke,
781
- {
782
- size: "sm",
783
- options: C,
784
- value: l,
785
- onValueChange: (f) => {
786
- f !== "" && d(f);
787
- },
788
- "aria-label": i("dataTable.textFilter.operators.contains")
789
- }
790
- ),
791
- /* @__PURE__ */ n(
792
- pe,
793
- {
794
- size: "sm",
795
- value: c,
796
- onChange: (f) => u(f.target.value),
797
- onKeyDown: (f) => {
798
- f.key === "Enter" && (f.preventDefault(), g());
799
- },
800
- placeholder: S,
801
- "aria-label": S,
802
- startAdornment: /* @__PURE__ */ n(fe, { "aria-hidden": "true", className: "ds:size-4" })
803
- }
804
- ),
805
- /* @__PURE__ */ I("div", { className: "ds:flex ds:items-center ds:justify-end ds:gap-[var(--spacing-xs)] ds:pt-[var(--spacing-xs)] ds:border-t ds:border-[var(--border)]", children: [
806
- /* @__PURE__ */ n(j, { intent: "ghost", size: "sm", onClick: T, type: "button", children: i("dataTable.textFilter.clear") }),
807
- /* @__PURE__ */ n(j, { intent: "primary", size: "sm", onClick: g, type: "button", children: i("dataTable.textFilter.apply") })
808
- ] })
809
- ]
810
- }
811
- );
812
- }
813
- function Yt(t) {
814
- var u, y;
815
- const { model: e, onModelChange: a, column: r } = t, { t: o } = F("ui"), s = ((y = (u = r == null ? void 0 : r.getColDef) == null ? void 0 : u.call(r)) == null ? void 0 : y.filterParams) ?? {}, i = s.defaultOperator ?? "contains", p = s.placeholder ?? o("dataTable.textFilter.placeholder"), [l, d] = R((e == null ? void 0 : e.filter) ?? "");
816
- z(() => {
817
- d((e == null ? void 0 : e.filter) ?? "");
818
- }, [e == null ? void 0 : e.filter]), z(() => {
819
- if (l === ((e == null ? void 0 : e.filter) ?? "")) return;
820
- const g = setTimeout(() => {
821
- if (l === "") {
822
- e && a(null);
823
- return;
824
- }
825
- a({ type: i, filter: l });
826
- }, 200);
827
- return () => clearTimeout(g);
828
- }, [l, i, e, a]);
829
- function c() {
830
- d(""), e && a(null);
831
- }
832
- return /* @__PURE__ */ n("div", { "data-component": "text-floating-filter", className: "ds:w-full", children: /* @__PURE__ */ n(
833
- pe,
834
- {
835
- size: "sm",
836
- value: l,
837
- onChange: (g) => d(g.target.value),
838
- placeholder: p,
839
- "aria-label": p,
840
- startAdornment: /* @__PURE__ */ n(fe, { "aria-hidden": "true", className: "ds:size-4" }),
841
- endAdornment: l.length > 0 ? /* @__PURE__ */ n(
842
- "button",
843
- {
844
- type: "button",
845
- "aria-label": o("dataTable.textFilter.clear"),
846
- onClick: c,
847
- 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",
848
- children: /* @__PURE__ */ n(De, { "aria-hidden": "true", className: "ds:size-4" })
849
- }
850
- ) : void 0
851
- }
852
- ) });
853
- }
854
- const ea = {
855
- id: "data-table",
856
- capabilities: [
857
- "select_single",
858
- "select_multiple",
859
- "range_pick",
860
- "filter",
861
- "sort",
862
- "paginate"
863
- ],
864
- state: {
865
- selection: {
866
- type: "string[]",
867
- descriptionKey: "ui.agent.dataTable.state.selection",
868
- description: "Row ids of currently-selected rows.",
869
- read: (t) => t.getSelection()
870
- },
871
- filter: {
872
- type: "object",
873
- descriptionKey: "ui.agent.dataTable.state.filter",
874
- description: "Current ag-grid filter model, keyed by column id.",
875
- read: (t) => t.getFilter()
876
- },
877
- sort: {
878
- type: "Array<{ colId, sort }>",
879
- descriptionKey: "ui.agent.dataTable.state.sort",
880
- description: "Active sort, in priority order.",
881
- read: (t) => t.getSort()
882
- },
883
- currentPage: {
884
- type: "number",
885
- descriptionKey: "ui.agent.dataTable.state.currentPage",
886
- description: "Zero-indexed page number.",
887
- read: (t) => t.getCurrentPage()
888
- }
889
- },
890
- actions: {
891
- select_rows: {
892
- // Transient grid selection (data-table convention) — stays read.
893
- safety: "read",
894
- argsType: "{ ids: string[] }",
895
- argsSchema: {
896
- type: "object",
897
- properties: {
898
- ids: {
899
- type: "array",
900
- items: { type: "string" },
901
- description: "Row ids to select (replaces the current selection)."
902
- }
903
- },
904
- required: ["ids"]
905
- },
906
- idempotent: !0,
907
- descriptionKey: "ui.agent.dataTable.actions.selectRows",
908
- description: "Replace the current selection with the given row ids.",
909
- examples: [
910
- { args: { ids: ["r-1", "r-2"] }, note: "Select the first two rows." }
911
- ],
912
- invoke: (t, e) => {
913
- t.setSelection(e.ids);
914
- }
915
- },
916
- select_range: {
917
- safety: "read",
918
- argsType: "{ fromId: string, toId: string }",
919
- argsSchema: {
920
- type: "object",
921
- properties: {
922
- fromId: { type: "string", description: "Start row id (inclusive)." },
923
- toId: { type: "string", description: "End row id (inclusive)." }
924
- },
925
- required: ["fromId", "toId"]
926
- },
927
- idempotent: !0,
928
- descriptionKey: "ui.agent.dataTable.actions.selectRange",
929
- description: "Select every row between fromId and toId, inclusive, in current sort order.",
930
- invoke: (t, e) => {
931
- t.selectRange(e.fromId, e.toId);
932
- }
933
- },
934
- clear_selection: {
935
- safety: "read",
936
- idempotent: !0,
937
- descriptionKey: "ui.agent.dataTable.actions.clearSelection",
938
- description: "Deselect all rows.",
939
- invoke: (t) => {
940
- t.clearSelection();
941
- }
942
- },
943
- get_selection: {
944
- safety: "read",
945
- returns: "string[]",
946
- returnsSchema: { type: "array", items: { type: "string" } },
947
- idempotent: !0,
948
- descriptionKey: "ui.agent.dataTable.actions.getSelection",
949
- description: "Return the row ids of the currently-selected rows.",
950
- invoke: (t) => t.getSelection()
951
- },
952
- apply_filter: {
953
- safety: "read",
954
- argsType: "{ model: Record<string, unknown> }",
955
- argsSchema: {
956
- type: "object",
957
- properties: {
958
- model: {
959
- type: "object",
960
- description: "ag-grid filter model keyed by column id. Opaque per-column filter shapes; replaces the current model.",
961
- additionalProperties: !0
962
- }
963
- },
964
- required: ["model"]
965
- },
966
- idempotent: !0,
967
- descriptionKey: "ui.agent.dataTable.actions.applyFilter",
968
- description: "Replace the filter model with the given object.",
969
- invoke: (t, e) => {
970
- t.setFilter(e.model);
971
- }
972
- },
973
- sort_by: {
974
- safety: "read",
975
- argsType: "{ model: DataTableSortEntry[] }",
976
- argsSchema: {
977
- type: "object",
978
- properties: {
979
- model: {
980
- type: "array",
981
- description: "Sort entries in priority order.",
982
- items: {
983
- type: "object",
984
- properties: {
985
- colId: { type: "string", description: "Column id to sort by." },
986
- sort: { enum: ["asc", "desc"], description: "Sort direction." }
987
- },
988
- required: ["colId", "sort"]
989
- }
990
- }
991
- },
992
- required: ["model"]
993
- },
994
- idempotent: !0,
995
- descriptionKey: "ui.agent.dataTable.actions.sortBy",
996
- description: "Replace the active sort with the given list (priority order).",
997
- examples: [
998
- {
999
- args: { model: [{ colId: "name", sort: "asc" }] },
1000
- note: "Sort by name ascending."
1001
- }
1002
- ],
1003
- invoke: (t, e) => {
1004
- t.setSort(e.model);
1005
- }
1006
- },
1007
- go_to_page: {
1008
- safety: "read",
1009
- argsType: "{ page: number }",
1010
- argsSchema: {
1011
- type: "object",
1012
- properties: {
1013
- page: {
1014
- type: "integer",
1015
- minimum: 0,
1016
- description: "Zero-indexed page number."
1017
- }
1018
- },
1019
- required: ["page"]
1020
- },
1021
- idempotent: !0,
1022
- descriptionKey: "ui.agent.dataTable.actions.goToPage",
1023
- description: "Navigate to the given zero-indexed page.",
1024
- invoke: (t, e) => {
1025
- t.goToPage(e.page);
1026
- }
1027
- }
1028
- },
1029
- domHooks: {
1030
- root: {
1031
- attr: "data-component",
1032
- value: "data-table",
1033
- description: "Marks the DataTable wrapper."
1034
- },
1035
- instanceId: {
1036
- attr: "data-component-id",
1037
- sourceProp: "gridId",
1038
- description: "Sourced from the gridId prop. Required to address a specific table from the agent."
1039
- },
1040
- item: {
1041
- attr: "row-id",
1042
- description: "Native ag-grid row-id attribute on each rendered row. Selection is performed via the curated handle, not by DOM mutation."
1043
- }
1044
- }
1045
- };
1046
- Ct.registerModules([xt]);
1047
- const ta = Tt("ag-theme-alfadocs ds:w-full", {
1048
- variants: {
1049
- density: {
1050
- default: "",
1051
- compact: "data-table-compact",
1052
- expanded: "data-table-expanded"
1053
- },
1054
- bordered: {
1055
- true: "",
1056
- false: "ds:[--ag-borders:none]"
1057
- }
1058
- },
1059
- defaultVariants: {
1060
- density: "default",
1061
- bordered: !0
1062
- }
1063
- });
1064
- function aa() {
1065
- const { t } = F();
1066
- return E(
1067
- () => ({
1068
- // Filter strings
1069
- contains: t("dataTable.agGrid.contains"),
1070
- notContains: t("dataTable.agGrid.notContains"),
1071
- equals: t("dataTable.agGrid.equals"),
1072
- notEqual: t("dataTable.agGrid.notEqual"),
1073
- startsWith: t("dataTable.agGrid.startsWith"),
1074
- endsWith: t("dataTable.agGrid.endsWith"),
1075
- lessThan: t("dataTable.agGrid.lessThan"),
1076
- greaterThan: t("dataTable.agGrid.greaterThan"),
1077
- inRange: t("dataTable.agGrid.inRange"),
1078
- blank: t("dataTable.agGrid.blank"),
1079
- notBlank: t("dataTable.agGrid.notBlank"),
1080
- filterOoo: t("dataTable.agGrid.filterOoo"),
1081
- applyFilter: t("dataTable.agGrid.applyFilter"),
1082
- resetFilter: t("dataTable.agGrid.resetFilter"),
1083
- noRowsToShow: t("dataTable.agGrid.noRowsToShow"),
1084
- selectAll: t("dataTable.agGrid.selectAll"),
1085
- // Pagination
1086
- page: t("dataTable.page"),
1087
- of: t("dataTable.of"),
1088
- to: t("dataTable.to"),
1089
- nextPage: t("dataTable.nextPage"),
1090
- previousPage: t("dataTable.previousPage"),
1091
- firstPage: t("dataTable.firstPage"),
1092
- lastPage: t("dataTable.lastPage"),
1093
- pageSize: t("dataTable.pageSize")
1094
- }),
1095
- [t]
1096
- );
1097
- }
1098
- function ra() {
1099
- return /* @__PURE__ */ n(
1100
- "div",
1101
- {
1102
- role: "status",
1103
- "aria-live": "polite",
1104
- className: "ds:flex ds:w-full ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-md)]",
1105
- children: Array.from({ length: 5 }).map((t, e) => /* @__PURE__ */ n(
1106
- ht,
1107
- {
1108
- variant: "rectangular",
1109
- className: "ds:h-[var(--min-target-size)] ds:w-full"
1110
- },
1111
- e
1112
- ))
1113
- }
1114
- );
1115
- }
1116
- function na() {
1117
- const { t } = F();
1118
- return /* @__PURE__ */ n(
1119
- vt,
1120
- {
1121
- variant: "no-results",
1122
- size: "sm",
1123
- title: t("dataTable.noRows"),
1124
- description: t("dataTable.noRowsDescription")
1125
- }
1126
- );
1127
- }
1128
- function oa(t) {
1129
- try {
1130
- const e = localStorage.getItem(`data-table-col-state:${t}`);
1131
- return e ? JSON.parse(e) : null;
1132
- } catch {
1133
- return null;
1134
- }
1135
- }
1136
- function sa(t, e) {
1137
- try {
1138
- localStorage.setItem(
1139
- `data-table-col-state:${t}`,
1140
- JSON.stringify(e.getColumnState())
1141
- );
1142
- } catch {
1143
- }
1144
- }
1145
- function ia(t, e) {
1146
- const {
1147
- columnDefs: a,
1148
- rowData: r,
1149
- rowSelection: o,
1150
- pagination: s = !1,
1151
- paginationPageSize: i = 25,
1152
- paginationPageSizeSelector: p = [10, 25, 50, 100],
1153
- gridId: l,
1154
- onSelectionChanged: d,
1155
- onSortChanged: c,
1156
- onFilterChanged: u,
1157
- noRowsOverlay: y,
1158
- loadingOverlay: g,
1159
- gridOptions: T,
1160
- density: C,
1161
- bordered: S,
1162
- heightClass: f = "ds:h-[500px]",
1163
- className: m,
1164
- getRowClass: b,
1165
- pinnedBottomRowData: h,
1166
- printMode: w = !1,
1167
- children: A
1168
- } = t, { t: k, i18n: $ } = F(), D = xe(null), [W, Xe] = R(0), [ne, oe] = R(""), Ze = aa(), se = E(
1169
- () => ({
1170
- getSelection: () => {
1171
- var N;
1172
- const v = (N = D.current) == null ? void 0 : N.api;
1173
- if (!v) return [];
1174
- const x = [];
1175
- for (const P of v.getSelectedNodes())
1176
- P.id != null && x.push(P.id);
1177
- return x;
1178
- },
1179
- setSelection: (v) => {
1180
- var P;
1181
- const x = (P = D.current) == null ? void 0 : P.api;
1182
- if (!x) return;
1183
- const N = new Set(v);
1184
- x.forEachNode((O) => {
1185
- O.id != null && O.setSelected(N.has(O.id));
1186
- });
1187
- },
1188
- selectRange: (v, x) => {
1189
- var be;
1190
- const N = (be = D.current) == null ? void 0 : be.api;
1191
- if (!N) return;
1192
- const P = [];
1193
- N.forEachNodeAfterFilterAndSort((U) => {
1194
- U.id != null && P.push(U.id);
1195
- });
1196
- const O = P.indexOf(v), q = P.indexOf(x);
1197
- if (O < 0 || q < 0) return;
1198
- const [K, le] = O <= q ? [O, q] : [q, O], ce = new Set(P.slice(K, le + 1));
1199
- N.forEachNode((U) => {
1200
- U.id != null && U.setSelected(ce.has(U.id));
1201
- });
1202
- },
1203
- clearSelection: () => {
1204
- var v, x;
1205
- (x = (v = D.current) == null ? void 0 : v.api) == null || x.deselectAll();
1206
- },
1207
- getFilter: () => {
1208
- var v, x;
1209
- return ((x = (v = D.current) == null ? void 0 : v.api) == null ? void 0 : x.getFilterModel()) ?? {};
1210
- },
1211
- setFilter: (v) => {
1212
- var x, N;
1213
- (N = (x = D.current) == null ? void 0 : x.api) == null || N.setFilterModel(v);
1214
- },
1215
- getSort: () => {
1216
- var x;
1217
- const v = (x = D.current) == null ? void 0 : x.api;
1218
- return v ? v.getColumnState().filter((N) => N.sort === "asc" || N.sort === "desc").map((N) => ({ colId: N.colId, sort: N.sort })) : [];
1219
- },
1220
- setSort: (v) => {
1221
- var P;
1222
- const x = (P = D.current) == null ? void 0 : P.api;
1223
- if (!x) return;
1224
- const N = x.getColumnState().map((O) => {
1225
- const q = v.find((K) => K.colId === O.colId);
1226
- return { ...O, sort: q ? q.sort : null };
1227
- });
1228
- x.applyColumnState({ state: N, defaultState: { sort: null } });
1229
- },
1230
- getCurrentPage: () => {
1231
- var v, x;
1232
- return ((x = (v = D.current) == null ? void 0 : v.api) == null ? void 0 : x.paginationGetCurrentPage()) ?? 0;
1233
- },
1234
- goToPage: (v) => {
1235
- var x, N;
1236
- (N = (x = D.current) == null ? void 0 : x.api) == null || N.paginationGoToPage(v);
1237
- },
1238
- getRawApi: () => {
1239
- var v;
1240
- return (v = D.current) == null ? void 0 : v.api;
1241
- }
1242
- }),
1243
- []
1244
- );
1245
- bt(e, () => se, [se]), It(ea, se, l);
1246
- const Ye = $.dir() === "rtl", et = r === void 0, tt = kt(), { resolvedTheme: ge } = Et(), at = (ge === "light-accessible" || ge === "dark-accessible") && C === "compact" ? "default" : C, rt = E(() => {
1247
- if (o)
1248
- return o === "single" ? { mode: "singleRow" } : {
1249
- mode: "multiRow",
1250
- headerCheckbox: !0,
1251
- checkboxes: !0
1252
- };
1253
- }, [o]), nt = M(() => {
1254
- var x;
1255
- if (!l || !((x = D.current) != null && x.api)) return;
1256
- const v = oa(l);
1257
- v && D.current.api.applyColumnState({
1258
- state: v,
1259
- applyOrder: !0
1260
- });
1261
- }, [l]), ie = M(() => {
1262
- var v;
1263
- l && ((v = D.current) != null && v.api) && sa(l, D.current.api);
1264
- }, [l]), ot = E(() => {
1265
- if (!T) return;
1266
- const v = { ...T };
1267
- return delete v.defaultColDef, v;
1268
- }, [T]), st = M(() => {
1269
- var N;
1270
- const v = (N = D.current) == null ? void 0 : N.api;
1271
- if (!v) return;
1272
- const x = v.getSelectedRows();
1273
- Xe(x.length), d == null || d(x);
1274
- }, [d]), it = M(
1275
- (v) => {
1276
- var N;
1277
- const x = (N = D.current) == null ? void 0 : N.api;
1278
- if (x) {
1279
- const O = x.getColumnState().find((q) => q.sort);
1280
- if (O) {
1281
- const q = O.colId, K = x.getColumnDef(q), le = (K == null ? void 0 : K.headerName) ?? q, ce = O.sort === "asc" ? "dataTable.sortAscending" : "dataTable.sortDescending";
1282
- oe(
1283
- k("dataTable.sortAnnounce", {
1284
- column: le,
1285
- direction: k(ce)
1286
- })
1287
- );
1288
- } else
1289
- oe("");
1290
- }
1291
- c == null || c(v);
1292
- },
1293
- [c, k]
1294
- ), lt = M(
1295
- (v) => {
1296
- u == null || u(v);
1297
- },
1298
- [u]
1299
- );
1300
- z(() => {
1301
- if (!ne) return;
1302
- const v = setTimeout(() => oe(""), 3e3);
1303
- return () => clearTimeout(v);
1304
- }, [ne]);
1305
- const ct = y ?? na, dt = g ?? ra, ut = M(
1306
- () => {
1307
- var v;
1308
- return (v = D.current) == null ? void 0 : v.api;
1309
- },
1310
- []
1311
- ), pt = M(() => {
1312
- typeof window < "u" && window.print();
1313
- }, []), ft = ta({
1314
- density: at,
1315
- bordered: S,
1316
- className: m
1317
- }), mt = A ?? /* @__PURE__ */ n(ee, { children: /* @__PURE__ */ n(ee.Actions, { children: /* @__PURE__ */ n(ee.ExportMenu, {}) }) }), gt = w ? !1 : s;
1318
- return /* @__PURE__ */ I(
1319
- "div",
1320
- {
1321
- className: "ds:flex ds:w-full ds:min-h-0 ds:flex-1 ds:flex-col ds:gap-[var(--spacing-sm)]",
1322
- "aria-busy": et ? "true" : void 0,
1323
- "data-component": "data-table",
1324
- "data-component-id": l,
1325
- "data-print-mode": w ? "true" : void 0,
1326
- children: [
1327
- !w && /* @__PURE__ */ n(
1328
- jt,
1329
- {
1330
- getApi: ut,
1331
- selectionCount: W,
1332
- onPrint: pt,
1333
- children: mt
1334
- }
1335
- ),
1336
- /* @__PURE__ */ n(
1337
- "div",
1338
- {
1339
- className: [ft, w ? "" : f].join(" ").trim(),
1340
- children: /* @__PURE__ */ n(
1341
- yt,
1342
- {
1343
- ref: D,
1344
- theme: "legacy",
1345
- columnDefs: a,
1346
- rowData: r,
1347
- defaultColDef: {
1348
- sortable: !0,
1349
- // Default filter = DS-styled text filter so untyped columns
1350
- // (no explicit `filter:` override) inherit the kit's form
1351
- // language instead of AG Grid's stock browser-skinned input.
1352
- // Number / date / select columns opt into their dedicated
1353
- // wrapper per-column.
1354
- filter: Zt,
1355
- floatingFilterComponent: Yt,
1356
- resizable: !0,
1357
- floatingFilter: !0,
1358
- // §13d — faint sort icon advertises which columns are
1359
- // sortable. v33+ moved this from grid-level to defaultColDef.
1360
- unSortIcon: !0,
1361
- ...T == null ? void 0 : T.defaultColDef
1362
- },
1363
- rowSelection: rt,
1364
- pagination: gt,
1365
- paginationPageSize: i,
1366
- paginationPageSizeSelector: p,
1367
- paginationNumberFormatter: (v) => new Intl.NumberFormat($.language).format(v.value),
1368
- animateRows: !tt,
1369
- enableRtl: Ye,
1370
- ensureDomOrder: !0,
1371
- enableCellSpan: !0,
1372
- enableCellTextSelection: !0,
1373
- copyHeadersToClipboard: !0,
1374
- accentedSort: !0,
1375
- multiSortKey: "ctrl",
1376
- suppressDragLeaveHidesColumns: !0,
1377
- suppressRowClickSelection: o ? !0 : void 0,
1378
- tooltipShowDelay: 500,
1379
- tooltipHideDelay: 5e3,
1380
- tooltipInteraction: !0,
1381
- stopEditingWhenCellsLoseFocus: !0,
1382
- maintainColumnOrder: !0,
1383
- undoRedoCellEditing: !0,
1384
- undoRedoCellEditingLimit: 20,
1385
- suppressCellFocus: !1,
1386
- rowBuffer: 10,
1387
- localeText: Ze,
1388
- noRowsOverlayComponent: ct,
1389
- loadingOverlayComponent: dt,
1390
- getRowClass: b,
1391
- pinnedBottomRowData: h,
1392
- domLayout: w ? "autoHeight" : void 0,
1393
- onGridReady: nt,
1394
- onColumnMoved: ie,
1395
- onColumnResized: ie,
1396
- onColumnPinned: ie,
1397
- onSortChanged: it,
1398
- onFilterChanged: lt,
1399
- onSelectionChanged: st,
1400
- ...ot
1401
- }
1402
- )
1403
- }
1404
- ),
1405
- !w && /* @__PURE__ */ n("div", { className: "ds:flex ds:items-center ds:justify-between type-body-sm ds:text-[color:var(--muted-foreground)]", children: W > 0 ? /* @__PURE__ */ n("span", { children: k("dataTable.selected", { count: W }) }) : /* @__PURE__ */ n("span", {}) }),
1406
- /* @__PURE__ */ n("span", { role: "status", "aria-live": "polite", className: "ds:sr-only", children: ne })
1407
- ]
1408
- }
1409
- );
1410
- }
1411
- const Je = G(ia);
1412
- Je.displayName = "DataTable";
1413
- const sr = Object.assign(Je, {
1414
- Toolbar: ee
1415
- });
1416
- function re(t) {
1417
- return t ? t.toISOString().slice(0, 10) : null;
1418
- }
1419
- function L(t) {
1420
- if (!t) return;
1421
- const e = new Date(t);
1422
- return Number.isNaN(e.getTime()) ? void 0 : e;
1423
- }
1424
- function ir(t) {
1425
- const { model: e, onModelChange: a, getValue: r, doesRowPassOtherFilter: o } = t, [s, i] = R(() => ({
1426
- from: L(e == null ? void 0 : e.dateFrom),
1427
- to: L(e == null ? void 0 : e.dateTo)
1428
- }));
1429
- z(() => {
1430
- i({
1431
- from: L(e == null ? void 0 : e.dateFrom),
1432
- to: L(e == null ? void 0 : e.dateTo)
1433
- });
1434
- }, [e == null ? void 0 : e.dateFrom, e == null ? void 0 : e.dateTo]), X({
1435
- doesFilterPass: (l) => {
1436
- const d = L(e == null ? void 0 : e.dateFrom), c = L(e == null ? void 0 : e.dateTo);
1437
- if (!d && !c) return !0;
1438
- const u = r(l.node);
1439
- if (!u) return !1;
1440
- const y = u instanceof Date ? u : L(String(u));
1441
- return !(!y || d && y < d || c && y > c);
1442
- }
1443
- });
1444
- function p(l) {
1445
- if (i(l), !l.from && !l.to) {
1446
- a(null);
1447
- return;
1448
- }
1449
- a({
1450
- type: "inRange",
1451
- dateFrom: re(l.from),
1452
- dateTo: re(l.to)
1453
- });
1454
- }
1455
- return /* @__PURE__ */ n("div", { className: "ds:p-[var(--spacing-sm)] ds:min-w-[280px]", children: /* @__PURE__ */ n(Ee, { value: s, onChange: p, size: "sm" }) });
1456
- }
1457
- function lr(t) {
1458
- var l, d;
1459
- const { model: e, onModelChange: a, column: r } = t, o = ((d = (l = r == null ? void 0 : r.getColDef) == null ? void 0 : l.call(r)) == null ? void 0 : d.filterParams) ?? {}, [s, i] = R(() => ({
1460
- from: L(e == null ? void 0 : e.dateFrom),
1461
- to: L(e == null ? void 0 : e.dateTo)
1462
- }));
1463
- z(() => {
1464
- i({
1465
- from: L(e == null ? void 0 : e.dateFrom),
1466
- to: L(e == null ? void 0 : e.dateTo)
1467
- });
1468
- }, [e == null ? void 0 : e.dateFrom, e == null ? void 0 : e.dateTo]);
1469
- function p(c) {
1470
- if (i(c), !c.from && !c.to) {
1471
- a(null);
1472
- return;
1473
- }
1474
- a({
1475
- type: "inRange",
1476
- dateFrom: re(c.from),
1477
- dateTo: re(c.to)
1478
- });
1479
- }
1480
- return /* @__PURE__ */ n("div", { "data-component": "date-range-floating-filter", className: "ds:w-full", children: /* @__PURE__ */ n(
1481
- Ee,
1482
- {
1483
- value: s,
1484
- onChange: p,
1485
- size: "sm",
1486
- placeholder: o.placeholder
1487
- }
1488
- ) });
1489
- }
1490
- function H(t) {
1491
- return typeof t == "number" ? `n:${t}` : `s:${t}`;
1492
- }
1493
- function cr(t) {
1494
- const { model: e, onModelChange: a, getValue: r, api: o, column: s, options: i, placeholder: p } = t, { t: l } = F("ui"), d = E(() => {
1495
- if (i && i.length > 0) return i;
1496
- if (!o || !s) return [];
1497
- const f = /* @__PURE__ */ new Map();
1498
- return o.forEachNode((m) => {
1499
- const b = r(m);
1500
- if (b == null) return;
1501
- const h = typeof b == "string" || typeof b == "number" ? b : String(b), w = H(h);
1502
- f.has(w) || f.set(w, { value: h, label: String(h) });
1503
- }), Array.from(f.values()).sort(
1504
- (m, b) => String(m.label).localeCompare(String(b.label))
1505
- );
1506
- }, [i, o, s, r]), c = E(() => {
1507
- const f = /* @__PURE__ */ new Set(), m = (e == null ? void 0 : e.values) ?? [];
1508
- for (const b of m) f.add(H(b));
1509
- return f;
1510
- }, [e]), [u, y] = R(c);
1511
- z(() => {
1512
- y(c);
1513
- }, [c]), X({
1514
- doesFilterPass: (f) => {
1515
- const m = e == null ? void 0 : e.values;
1516
- if (!m || m.length === 0) return !0;
1517
- const b = r(f.node);
1518
- if (b == null) return !1;
1519
- const h = typeof b == "string" || typeof b == "number" ? b : String(b), w = H(h);
1520
- return m.some((A) => H(A) === w);
1521
- }
1522
- });
1523
- function g(f) {
1524
- y((m) => {
1525
- const b = new Set(m);
1526
- return b.has(f) ? b.delete(f) : b.add(f), b;
1527
- });
1528
- }
1529
- function T() {
1530
- if (u.size === 0) {
1531
- a(null);
1532
- return;
1533
- }
1534
- const f = [];
1535
- for (const m of d)
1536
- u.has(H(m.value)) && f.push(m.value);
1537
- a({ type: "set", values: f });
1538
- }
1539
- function C() {
1540
- y(/* @__PURE__ */ new Set()), a(null);
1541
- }
1542
- const S = p ?? l("dataTable.selectFilter.all");
1543
- return /* @__PURE__ */ I(
1544
- "div",
1545
- {
1546
- "data-component": "select-filter",
1547
- className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-sm)] ds:min-w-[200px] ds:max-w-[260px]",
1548
- children: [
1549
- /* @__PURE__ */ n(Ot, { orientation: "vertical", className: "ds:max-h-[240px]", children: /* @__PURE__ */ n(
1550
- "div",
1551
- {
1552
- role: "group",
1553
- "aria-label": S,
1554
- className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]",
1555
- children: d.length === 0 ? /* @__PURE__ */ n("p", { className: "ds:text-[length:var(--font-size-sm)] ds:text-[var(--muted-foreground)] ds:py-[var(--spacing-xs)]", children: l("dataTable.agGrid.noRowsToShow") }) : d.map((f) => {
1556
- const m = H(f.value);
1557
- return /* @__PURE__ */ n(
1558
- Re,
1559
- {
1560
- size: "sm",
1561
- label: f.label,
1562
- checked: u.has(m),
1563
- onCheckedChange: () => g(m)
1564
- },
1565
- m
1566
- );
1567
- })
1568
- }
1569
- ) }),
1570
- /* @__PURE__ */ I("div", { className: "ds:flex ds:items-center ds:justify-end ds:gap-[var(--spacing-xs)] ds:pt-[var(--spacing-xs)] ds:border-t ds:border-[var(--border)]", children: [
1571
- /* @__PURE__ */ n(j, { intent: "ghost", size: "sm", onClick: C, type: "button", children: l("dataTable.selectFilter.clear") }),
1572
- /* @__PURE__ */ n(j, { intent: "primary", size: "sm", onClick: T, type: "button", children: l("dataTable.selectFilter.apply") })
1573
- ] })
1574
- ]
1575
- }
1576
- );
1577
- }
1578
- function dr(t) {
1579
- var y;
1580
- const { model: e, onModelChange: a, column: r } = t, o = (y = r == null ? void 0 : r.getColDef) == null ? void 0 : y.call(r), s = (o == null ? void 0 : o.filterParams) ?? {}, i = s.options ?? [], p = s.placeholder ?? (typeof (o == null ? void 0 : o.headerName) == "string" ? o.headerName : void 0), l = E(() => {
1581
- const g = /* @__PURE__ */ new Map();
1582
- for (const T of i) g.set(String(T.value), T.value);
1583
- return g;
1584
- }, [i]), d = E(
1585
- () => i.map((g) => ({
1586
- value: String(g.value),
1587
- label: g.label
1588
- })),
1589
- [i]
1590
- ), c = E(
1591
- () => ((e == null ? void 0 : e.values) ?? []).map((g) => String(g)),
1592
- [e]
1593
- );
1594
- function u(g) {
1595
- if (g.length === 0) {
1596
- a(null);
1597
- return;
1598
- }
1599
- const T = [];
1600
- for (const C of g) {
1601
- const S = l.get(C);
1602
- S !== void 0 && T.push(S);
1603
- }
1604
- a({ type: "set", values: T });
1605
- }
1606
- return /* @__PURE__ */ n("div", { "data-component": "select-floating-filter", className: "ds:w-full", children: /* @__PURE__ */ n(
1607
- At,
1608
- {
1609
- size: "sm",
1610
- options: d,
1611
- value: c,
1612
- onChange: u,
1613
- placeholder: s.placeholder,
1614
- "aria-label": p,
1615
- allowClear: !0
1616
- }
1617
- ) });
1618
- }
1619
- function J(t) {
1620
- return t.trim().toLocaleLowerCase();
1621
- }
1622
- function ur(t) {
1623
- const {
1624
- model: e,
1625
- onModelChange: a,
1626
- getValue: r,
1627
- api: o,
1628
- column: s,
1629
- options: i,
1630
- loadOptions: p,
1631
- placeholder: l
1632
- } = t, { t: d } = F("ui"), c = E(() => {
1633
- if (i && i.length > 0) return i;
1634
- if (!o || !s) return [];
1635
- const m = /* @__PURE__ */ new Map();
1636
- return o.forEachNode((b) => {
1637
- const h = r(b);
1638
- if (h == null) return;
1639
- const w = typeof h == "string" ? h : String(h);
1640
- m.has(w) || m.set(w, { value: w, label: w });
1641
- }), Array.from(m.values()).sort(
1642
- (b, h) => b.label.localeCompare(h.label)
1643
- );
1644
- }, [i, o, s, r]), u = E(() => async (m, b) => {
1645
- if (p)
1646
- return (await p(m, b)).map((k) => ({ value: k.value, label: k.label }));
1647
- const h = J(m);
1648
- return (h ? c.filter((A) => J(A.label).includes(h)) : c).slice(0, 50).map((A) => ({ value: A.value, label: A.label }));
1649
- }, [p, c]), [y, g] = R((e == null ? void 0 : e.value) ?? "");
1650
- z(() => {
1651
- g((e == null ? void 0 : e.value) ?? "");
1652
- }, [e == null ? void 0 : e.value]), X({
1653
- doesFilterPass: (m) => {
1654
- const b = e == null ? void 0 : e.value;
1655
- if (!b) return !0;
1656
- const h = r(m.node);
1657
- if (h == null) return !1;
1658
- const w = typeof h == "string" ? h : String(h);
1659
- return J(w) === J(b);
1660
- }
1661
- });
1662
- function T(m) {
1663
- g(m.label), a({ type: "equals", value: m.value });
1664
- }
1665
- function C(m) {
1666
- g(m), m === "" && e && a(null);
1667
- }
1668
- function S() {
1669
- g(""), a(null);
1670
- }
1671
- const f = l ?? d("dataTable.typeaheadFilter.placeholder");
1672
- return /* @__PURE__ */ I(
1673
- "div",
1674
- {
1675
- "data-component": "typeahead-filter",
1676
- className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-sm)] ds:min-w-[240px]",
1677
- children: [
1678
- /* @__PURE__ */ n(
1679
- Ae,
1680
- {
1681
- size: "sm",
1682
- value: y,
1683
- onChange: C,
1684
- onSelect: T,
1685
- loadOptions: u,
1686
- placeholder: f,
1687
- "aria-label": f
1688
- }
1689
- ),
1690
- /* @__PURE__ */ n("div", { className: "ds:flex ds:items-center ds:justify-end ds:pt-[var(--spacing-xs)] ds:border-t ds:border-[var(--border)]", children: /* @__PURE__ */ n(j, { intent: "ghost", size: "sm", onClick: S, type: "button", children: d("dataTable.typeaheadFilter.clear") }) })
1691
- ]
1692
- }
1693
- );
1694
- }
1695
- function pr(t) {
1696
- var T, C;
1697
- const { model: e, onModelChange: a, column: r } = t, { t: o } = F("ui"), s = ((C = (T = r == null ? void 0 : r.getColDef) == null ? void 0 : T.call(r)) == null ? void 0 : C.filterParams) ?? {}, i = s.options ?? [], p = s.loadOptions, l = s.placeholder ?? o("dataTable.typeaheadFilter.placeholder"), d = E(() => async (S, f) => {
1698
- if (p)
1699
- return (await p(S, f)).map((w) => ({ value: w.value, label: w.label }));
1700
- const m = J(S);
1701
- return (m ? i.filter((h) => J(h.label).includes(m)) : i).slice(0, 50).map((h) => ({ value: h.value, label: h.label }));
1702
- }, [p, i]), [c, u] = R((e == null ? void 0 : e.value) ?? "");
1703
- z(() => {
1704
- u((e == null ? void 0 : e.value) ?? "");
1705
- }, [e == null ? void 0 : e.value]);
1706
- function y(S) {
1707
- u(S.label), a({ type: "equals", value: S.value });
1708
- }
1709
- function g(S) {
1710
- u(S), S === "" && e && a(null);
1711
- }
1712
- return /* @__PURE__ */ n("div", { "data-component": "typeahead-floating-filter", className: "ds:w-full", children: /* @__PURE__ */ n(
1713
- Ae,
1714
- {
1715
- size: "sm",
1716
- value: c,
1717
- onChange: g,
1718
- onSelect: y,
1719
- loadOptions: d,
1720
- placeholder: l,
1721
- "aria-label": l
1722
- }
1723
- ) });
1724
- }
1725
- const la = [
1726
- "equals",
1727
- "notEqual",
1728
- "greaterThan",
1729
- "greaterThanOrEqual",
1730
- "lessThan",
1731
- "lessThanOrEqual",
1732
- "inRange",
1733
- "blank",
1734
- "notBlank"
1735
- ];
1736
- function ve(t) {
1737
- return t !== "blank" && t !== "notBlank";
1738
- }
1739
- function Te(t) {
1740
- return t === "inRange";
1741
- }
1742
- function ca(t, e, a, r) {
1743
- if (t === "blank") return e === null;
1744
- if (t === "notBlank") return e !== null;
1745
- if (e === null) return !1;
1746
- if (a === null) return !0;
1747
- switch (t) {
1748
- case "equals":
1749
- return e === a;
1750
- case "notEqual":
1751
- return e !== a;
1752
- case "greaterThan":
1753
- return e > a;
1754
- case "greaterThanOrEqual":
1755
- return e >= a;
1756
- case "lessThan":
1757
- return e < a;
1758
- case "lessThanOrEqual":
1759
- return e <= a;
1760
- case "inRange": {
1761
- if (r === null) return e >= a;
1762
- const o = Math.min(a, r), s = Math.max(a, r);
1763
- return e >= o && e <= s;
1764
- }
1765
- default:
1766
- return !0;
1767
- }
1768
- }
1769
- function da(t) {
1770
- if (t == null || t === "") return null;
1771
- const e = typeof t == "number" ? t : Number(t);
1772
- return Number.isNaN(e) ? null : e;
1773
- }
1774
- function fr(t) {
1775
- const {
1776
- model: e,
1777
- onModelChange: a,
1778
- getValue: r,
1779
- defaultOperator: o,
1780
- min: s,
1781
- max: i,
1782
- step: p,
1783
- placeholder: l
1784
- } = t, { t: d } = F("ui"), c = (e == null ? void 0 : e.type) ?? o ?? "equals", [u, y] = R(c), [g, T] = R((e == null ? void 0 : e.filter) ?? null), [C, S] = R(
1785
- (e == null ? void 0 : e.filterTo) ?? null
1786
- );
1787
- z(() => {
1788
- if (e === null) {
1789
- y(o ?? "equals"), T(null), S(null);
1790
- return;
1791
- }
1792
- y(e.type), T(e.filter ?? null), S(e.filterTo ?? null);
1793
- }, [e, o]), X({
1794
- doesFilterPass: (k) => {
1795
- if (!e) return !0;
1796
- const $ = da(r(k.node));
1797
- return ca(
1798
- e.type,
1799
- $,
1800
- e.filter ?? null,
1801
- e.filterTo ?? null
1802
- );
1803
- }
1804
- });
1805
- const f = E(
1806
- () => la.map((k) => ({
1807
- value: k,
1808
- label: d(`dataTable.numberFilter.operators.${k}`)
1809
- })),
1810
- [d]
1811
- ), m = l ?? d("dataTable.numberFilter.placeholder");
1812
- function b() {
1813
- if (!ve(u)) {
1814
- a({ type: u, filter: 0 });
1815
- return;
1816
- }
1817
- if (g === null) {
1818
- a(null);
1819
- return;
1820
- }
1821
- if (Te(u)) {
1822
- a({
1823
- type: u,
1824
- filter: g,
1825
- filterTo: C ?? void 0
1826
- });
1827
- return;
1828
- }
1829
- a({ type: u, filter: g });
1830
- }
1831
- function h() {
1832
- y(o ?? "equals"), T(null), S(null), a(null);
1833
- }
1834
- const w = ve(u), A = Te(u);
1835
- return /* @__PURE__ */ I(
1836
- "div",
1837
- {
1838
- "data-component": "number-filter",
1839
- className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-sm)] ds:min-w-[240px]",
1840
- children: [
1841
- /* @__PURE__ */ n(
1842
- ke,
1843
- {
1844
- size: "sm",
1845
- options: f,
1846
- value: u,
1847
- onValueChange: (k) => {
1848
- k !== "" && y(k);
1849
- },
1850
- "aria-label": d("dataTable.numberFilter.operators.equals")
1851
- }
1852
- ),
1853
- w && !A && /* @__PURE__ */ n(
1854
- Y,
1855
- {
1856
- size: "sm",
1857
- value: g,
1858
- onChange: T,
1859
- min: s,
1860
- max: i,
1861
- step: p,
1862
- placeholder: m,
1863
- "aria-label": m
1864
- }
1865
- ),
1866
- A && /* @__PURE__ */ I("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
1867
- /* @__PURE__ */ n(
1868
- Y,
1869
- {
1870
- size: "sm",
1871
- value: g,
1872
- onChange: T,
1873
- min: s,
1874
- max: i,
1875
- step: p,
1876
- placeholder: d("dataTable.numberFilter.from"),
1877
- "aria-label": d("dataTable.numberFilter.from")
1878
- }
1879
- ),
1880
- /* @__PURE__ */ n(
1881
- Y,
1882
- {
1883
- size: "sm",
1884
- value: C,
1885
- onChange: S,
1886
- min: s,
1887
- max: i,
1888
- step: p,
1889
- placeholder: d("dataTable.numberFilter.to"),
1890
- "aria-label": d("dataTable.numberFilter.to")
1891
- }
1892
- )
1893
- ] }),
1894
- /* @__PURE__ */ I("div", { className: "ds:flex ds:items-center ds:justify-end ds:gap-[var(--spacing-xs)] ds:pt-[var(--spacing-xs)] ds:border-t ds:border-[var(--border)]", children: [
1895
- /* @__PURE__ */ n(j, { intent: "ghost", size: "sm", onClick: h, type: "button", children: d("dataTable.numberFilter.clear") }),
1896
- /* @__PURE__ */ n(j, { intent: "primary", size: "sm", onClick: b, type: "button", children: d("dataTable.numberFilter.apply") })
1897
- ] })
1898
- ]
1899
- }
1900
- );
1901
- }
1902
- function mr(t) {
1903
- var c, u;
1904
- const { model: e, onModelChange: a, column: r } = t, { t: o } = F("ui"), s = ((u = (c = r == null ? void 0 : r.getColDef) == null ? void 0 : c.call(r)) == null ? void 0 : u.filterParams) ?? {}, i = s.defaultOperator ?? "equals", p = s.placeholder ?? o("dataTable.numberFilter.placeholder"), [l, d] = R((e == null ? void 0 : e.filter) ?? null);
1905
- return z(() => {
1906
- d((e == null ? void 0 : e.filter) ?? null);
1907
- }, [e == null ? void 0 : e.filter]), z(() => {
1908
- if (l === ((e == null ? void 0 : e.filter) ?? null)) return;
1909
- const y = setTimeout(() => {
1910
- if (l === null || Number.isNaN(l)) {
1911
- a(null);
1912
- return;
1913
- }
1914
- a({ type: i, filter: l });
1915
- }, 200);
1916
- return () => clearTimeout(y);
1917
- }, [l, i]), /* @__PURE__ */ n("div", { "data-component": "number-floating-filter", className: "ds:w-full", children: /* @__PURE__ */ n(
1918
- Y,
1919
- {
1920
- size: "sm",
1921
- value: l,
1922
- onChange: d,
1923
- min: s.min,
1924
- max: s.max,
1925
- step: s.step,
1926
- placeholder: p,
1927
- "aria-label": p
1928
- }
1929
- ) });
1930
- }
1931
- function gr(t) {
1932
- const { value: e, variantMap: a } = t, r = (a == null ? void 0 : a[e]) ?? "neutral";
1933
- return /* @__PURE__ */ n(zt, { variant: r, withDot: !0, size: "sm", children: String(e ?? "") });
1934
- }
1935
- function br(t) {
1936
- const { value: e } = t;
1937
- return e ? /* @__PURE__ */ I("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
1938
- /* @__PURE__ */ n(Oe, { name: e.name, src: e.src, size: "sm" }),
1939
- /* @__PURE__ */ n("span", { children: e.name })
1940
- ] }) : null;
1941
- }
1942
- const ua = {
1943
- sm: "ds:size-8",
1944
- md: "ds:size-10",
1945
- lg: "ds:size-12"
1946
- }, pa = {
1947
- square: "ds:rounded-none",
1948
- rounded: "ds:rounded-[var(--radius-md)]",
1949
- circle: "ds:rounded-[var(--radius-full)]"
1950
- };
1951
- function de(t, e) {
1952
- if (!t || typeof t != "object") return;
1953
- const a = t[e];
1954
- return typeof a == "string" ? a : void 0;
1955
- }
1956
- const fa = /^(?:https?:|data:image\/)/i;
1957
- function ma(t) {
1958
- if (!t) return;
1959
- const e = t.trim();
1960
- if (e.length !== 0)
1961
- return fa.test(e) ? e : void 0;
1962
- }
1963
- function hr(t) {
1964
- const {
1965
- data: e,
1966
- srcField: a,
1967
- altField: r,
1968
- fallbackField: o,
1969
- size: s = "md",
1970
- shape: i = "rounded"
1971
- } = t;
1972
- if (!e) return null;
1973
- const p = de(e, a), l = ma(p), d = r ? de(e, r) ?? "" : "", c = o ? de(e, o) : void 0;
1974
- return l ? /* @__PURE__ */ n(
1975
- "img",
1976
- {
1977
- src: l,
1978
- alt: d,
1979
- loading: "lazy",
1980
- decoding: "async",
1981
- className: ["ds:object-cover", ua[s], pa[i]].join(
1982
- " "
1983
- )
1984
- }
1985
- ) : c ? /* @__PURE__ */ n(Oe, { name: c, size: s }) : null;
1986
- }
1987
- function vr(t) {
1988
- const { value: e, maxVisible: a = 3 } = t, { t: r } = F();
1989
- if (!Array.isArray(e) || e.length === 0) return null;
1990
- const o = e.slice(0, a), s = e.length - a;
1991
- return /* @__PURE__ */ I("span", { className: "ds:inline-flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]", children: [
1992
- o.map((i) => /* @__PURE__ */ n(te, { label: i, size: "sm" }, i)),
1993
- s > 0 && /* @__PURE__ */ n(Pt, { label: e.slice(a).join(", "), children: /* @__PURE__ */ n(
1994
- te,
1995
- {
1996
- label: r("inputs.multiSelect.overflow", { count: s }),
1997
- size: "sm",
1998
- variant: "neutral",
1999
- fill: "outline"
2000
- }
2001
- ) })
2002
- ] });
2003
- }
2004
- const ga = {
2005
- date: { year: "numeric", month: "short", day: "numeric" },
2006
- time: { hour: "2-digit", minute: "2-digit" },
2007
- datetime: {
2008
- year: "numeric",
2009
- month: "short",
2010
- day: "numeric",
2011
- hour: "2-digit",
2012
- minute: "2-digit"
2013
- }
2014
- };
2015
- function Tr(t) {
2016
- const { value: e, format: a = "date", options: r } = t;
2017
- return e == null || e === "" ? null : a === "relative" && !r ? /* @__PURE__ */ n(he, { value: e, shape: "bare" }) : /* @__PURE__ */ n(
2018
- he,
2019
- {
2020
- value: e,
2021
- format: "absolute",
2022
- shape: "bare",
2023
- absoluteFormat: r ?? ga[a === "relative" ? "date" : a]
2024
- }
2025
- );
2026
- }
2027
- function ba(t) {
2028
- if (t == null || t === "") return null;
2029
- const e = typeof t == "number" ? t : Number(t);
2030
- return Number.isFinite(e) ? e : null;
2031
- }
2032
- function yr(t) {
2033
- const {
2034
- value: e,
2035
- currency: a = "EUR",
2036
- colorNegative: r,
2037
- strikethrough: o,
2038
- options: s
2039
- } = t, { i18n: i } = F(), p = ba(e);
2040
- if (p === null) return null;
2041
- const l = i.language || "en", d = new Intl.NumberFormat(l, {
2042
- style: "currency",
2043
- currency: a,
2044
- ...s
2045
- }).format(p), c = ["ds:tabular-nums"];
2046
- return r && p < 0 && c.push("ds:text-[color:var(--destructive)]"), o && c.push("line-through"), /* @__PURE__ */ n("span", { className: c.join(" "), children: d });
2047
- }
2048
- function ye(t) {
2049
- if (!Ne(t)) return t;
2050
- const e = t, a = e.props.className ?? "", r = /\bsize-|\bw-|\bh-/.test(a) ? a : `${a} size-4`.trim();
2051
- return Fe(e, { className: r, size: e.props.size ?? 16 });
2052
- }
2053
- function Cr(t) {
2054
- return Math.max(1, t) * 32 + 26;
2055
- }
2056
- function ue(t, e) {
2057
- return typeof t == "function" ? t(e) : !!t;
2058
- }
2059
- const ha = "ds:text-[color:var(--destructive)] ds:hover:text-[color:var(--destructive-hover)]";
2060
- function xr(t) {
2061
- const { data: e, actions: a, intent: r = "ghost", group: o, label: s, collapsed: i } = t, { t: p } = F();
2062
- if (!e) return null;
2063
- const l = a.filter((u) => !ue(u.hidden, e));
2064
- if (typeof i == "function" ? i() : !!i)
2065
- return /* @__PURE__ */ I(_.Root, { children: [
2066
- /* @__PURE__ */ n(_.Trigger, { asChild: !0, children: /* @__PURE__ */ n(
2067
- V,
2068
- {
2069
- size: "sm",
2070
- intent: r,
2071
- icon: /* @__PURE__ */ n(qt, { "aria-hidden": !0 }),
2072
- "aria-label": s ?? p("dataTable.actions", "Actions")
2073
- }
2074
- ) }),
2075
- /* @__PURE__ */ n(_.Content, { align: "end", children: l.map((u, y) => /* @__PURE__ */ n(
2076
- _.Item,
2077
- {
2078
- startIcon: ye(u.icon),
2079
- disabled: ue(u.disabled, e),
2080
- onSelect: () => u.onClick(e),
2081
- className: u.variant === "destructive" ? "ds:text-[color:var(--destructive)]" : void 0,
2082
- children: u.label
2083
- },
2084
- y
2085
- )) })
2086
- ] });
2087
- const c = l.map((u, y) => {
2088
- const g = ue(u.disabled, e), T = g && u.disabledReason ? u.disabledReason : u.label;
2089
- return /* @__PURE__ */ n(
2090
- V,
2091
- {
2092
- size: "sm",
2093
- intent: r,
2094
- icon: ye(u.icon),
2095
- tooltip: T,
2096
- "aria-label": u.label,
2097
- disabled: g,
2098
- onClick: (C) => {
2099
- C.stopPropagation(), u.onClick(e);
2100
- },
2101
- className: u.variant === "destructive" ? ha : void 0
2102
- },
2103
- y
2104
- );
2105
- });
2106
- return o ? /* @__PURE__ */ n(
2107
- Mt,
2108
- {
2109
- "aria-label": s ?? p("dataTable.actions", "Actions"),
2110
- size: "sm",
2111
- children: c
2112
- }
2113
- ) : /* @__PURE__ */ n("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]", children: c });
2114
- }
2115
- function Ce(t, e) {
2116
- return typeof t == "function" ? t(e) : t;
2117
- }
2118
- function va(t) {
2119
- return /^(https?:\/\/|\/|#|mailto:|tel:)/i.test(t) ? t : "#";
2120
- }
2121
- function Sr(t) {
2122
- const { value: e, data: a, href: r, onClick: o, secondary: s } = t;
2123
- if (!a) return null;
2124
- const i = Ce(r, a), p = Ce(s, a), l = e == null || e === "" ? "" : String(e), d = [
2125
- "ds:text-[color:var(--primary)]",
2126
- "ds:hover:underline",
2127
- "ds:focus-visible:outline-[length:var(--focus-ring-width)]",
2128
- "ds:focus-visible:outline-solid",
2129
- "ds:focus-visible:outline-[color:var(--ring)]",
2130
- "ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
2131
- "ds:rounded-[var(--radius-sm)]"
2132
- ].join(" "), c = (u) => {
2133
- o && (i || u.preventDefault(), u.stopPropagation(), o(a));
2134
- };
2135
- return /* @__PURE__ */ I("span", { className: "ds:flex ds:flex-col ds:leading-tight", children: [
2136
- i ? /* @__PURE__ */ n(
2137
- "a",
2138
- {
2139
- href: va(i),
2140
- onClick: c,
2141
- className: d,
2142
- children: l
2143
- }
2144
- ) : /* @__PURE__ */ n(
2145
- "button",
2146
- {
2147
- type: "button",
2148
- onClick: c,
2149
- className: [
2150
- "ds:appearance-none ds:bg-transparent ds:p-0 ds:text-start",
2151
- d
2152
- ].join(" "),
2153
- children: l
2154
- }
2155
- ),
2156
- p ? /* @__PURE__ */ n("span", { className: "type-meta ds:text-[color:var(--muted-foreground)]", children: p }) : null
2157
- ] });
2158
- }
2159
- export {
2160
- xr as A,
2161
- yr as C,
2162
- sr as D,
2163
- hr as I,
2164
- Sr as L,
2165
- fr as N,
2166
- cr as S,
2167
- vr as T,
2168
- br as U,
2169
- Tr as a,
2170
- ir as b,
2171
- lr as c,
2172
- mr as d,
2173
- dr as e,
2174
- gr as f,
2175
- Zt as g,
2176
- Yt as h,
2177
- ee as i,
2178
- jt as j,
2179
- ur as k,
2180
- pr as l,
2181
- Cr as m,
2182
- ea as n,
2183
- je as o
2184
- };
2185
- //# sourceMappingURL=link-cell-renderer-BCppbMec.js.map