@alfadocs/ui-kit 1.51.0 → 1.53.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 (829) hide show
  1. package/dist/_chunks/{actions-cell-renderer-DBI33cMp.js → actions-cell-renderer-DhmUGzRY.js} +4 -4
  2. package/dist/_chunks/{address-autocomplete-Dp5uMvKP.js → address-autocomplete-Bp816Mb1.js} +4 -4
  3. package/dist/_chunks/{address-fields-QfC-N3pw.js → address-fields-BIL6cvLS.js} +9 -9
  4. package/dist/_chunks/{agenda-card-CjjxlA9K.js → agenda-card-CakEvwnM.js} +4 -4
  5. package/dist/_chunks/{agenda-tray-CGhEEnFE.js → agenda-tray-C2a8OfKC.js} +4 -4
  6. package/dist/_chunks/{ai-credits-notice-C9K_ley1.js → ai-credits-notice-Da0fJPXO.js} +4 -4
  7. package/dist/_chunks/{ai-permission-notice-DMG1o4Qa.js → ai-permission-notice-C5q_uHBA.js} +6 -6
  8. package/dist/_chunks/{ai-prompt-input-ucwO-z8g.js → ai-prompt-input-IObcUWqB.js} +4 -4
  9. package/dist/_chunks/{alert-CiQ5Pa3Q.js → alert-BhCstf2h.js} +3 -3
  10. package/dist/_chunks/{alia-sidebar-K3gaNH94.js → alia-sidebar-DyQMsyiz.js} +21 -21
  11. package/dist/_chunks/{anamnesis-card-CPjry4ur.js → anamnesis-card-D4RWzQXP.js} +5 -5
  12. package/dist/_chunks/{anamnesis-summary-card-DPyScUMM.js → anamnesis-summary-card-Bv0CZ-mk.js} +3 -3
  13. package/dist/_chunks/anamnesis-summary-rows-CnHxtht-.js +20926 -0
  14. package/dist/_chunks/{annotation-marker-CsUJGZjQ.js → annotation-marker-D-M7y4R1.js} +2 -2
  15. package/dist/_chunks/{antenatal-schedule-timeline-8fm3vPSV.js → antenatal-schedule-timeline-BZzgjfyd.js} +13 -13
  16. package/dist/_chunks/apexcharts-theme-DNoXvgnZ.js +105 -0
  17. package/dist/_chunks/{app-frame-DIEMIC5V.js → app-frame-Cos-GSfw.js} +5 -5
  18. package/dist/_chunks/{appointment-card-DETaIfBb.js → appointment-card-CA2ynsmN.js} +8 -8
  19. package/dist/_chunks/{appointment-peek-B79v56Zc.js → appointment-peek-DpPzeYXm.js} +6 -6
  20. package/dist/_chunks/{appointment-timeline-tyJJPgVU.js → appointment-timeline-By-EwmJU.js} +6 -6
  21. package/dist/_chunks/{appointment-tray-Dq4zto_L.js → appointment-tray-7Z3A3Xz9.js} +9 -9
  22. package/dist/_chunks/{appointment-workflow-status-CS8ufF1f.js → appointment-workflow-status-DrWCNLbB.js} +2 -2
  23. package/dist/_chunks/{ar-BR1FGFP2.js → ar-pLopgMbL.js} +12 -12
  24. package/dist/_chunks/{audio-recorder-Ddlp5rVg.js → audio-recorder-BafA28cX.js} +5 -5
  25. package/dist/_chunks/{audio-visualiser-l6zPd0AG.js → audio-visualiser-CK2JyQW1.js} +2 -2
  26. package/dist/_chunks/{autocomplete-DSasZUf6.js → autocomplete-IfLaXwyb.js} +3 -3
  27. package/dist/_chunks/{avatar-BVvjKNTp.js → avatar-DYtwj1-R.js} +2 -2
  28. package/dist/_chunks/{badge-BAkd6_Pj.js → badge-hnBt8o7n.js} +6 -6
  29. package/dist/_chunks/{balance-badge-cell-BCEsdEOe.js → balance-badge-cell-BtiFfFRY.js} +8 -8
  30. package/dist/_chunks/{bishop-score-1NAiZh0K.js → bishop-score-BfDsm9HH.js} +6 -6
  31. package/dist/_chunks/{bmi-calculator-ZzzPZhhI.js → bmi-calculator-BNtmMzQy.js} +6 -6
  32. package/dist/_chunks/{booking-DmyX24Ls.js → booking-CFR7vU8X.js} +41 -40
  33. package/dist/_chunks/{breadcrumb-D3boYzD4.js → breadcrumb-xgVpPH2H.js} +4 -4
  34. package/dist/_chunks/{button-group-t9RrsCS6.js → button-group-DnSR6eN6.js} +29 -29
  35. package/dist/_chunks/{calculator-dialog-C0ixc3SU.js → calculator-dialog-BRjZMWuE.js} +2 -2
  36. package/dist/_chunks/{calendar-aqzmITxw.js → calendar-BwF5nQuW.js} +558 -502
  37. package/dist/_chunks/{calendar-event-card-DyFSIehr.js → calendar-event-card-DXAYWH6k.js} +2 -2
  38. package/dist/_chunks/{calendar-workspace-BqoPkCUp.js → calendar-workspace-LDuzo_Ie.js} +4406 -4395
  39. package/dist/_chunks/{care-plan-card-amX33mMF.js → care-plan-card-BanlKJZn.js} +8 -8
  40. package/dist/_chunks/{care-plan-entry-card-DNkEucjN.js → care-plan-entry-card-ByqT84_P.js} +9 -9
  41. package/dist/_chunks/{care-plan-header-CJi853Rf.js → care-plan-header-BwfUHMgM.js} +6 -6
  42. package/dist/_chunks/{carousel.agent-2EhJsAtl.js → carousel.agent-WKODAYVw.js} +5 -5
  43. package/dist/_chunks/{chart-B2HnwMP5.js → chart-D37VAIa-.js} +82 -82
  44. package/dist/_chunks/{chat-container-CYYego1W.js → chat-container-CAfyTxat.js} +3 -3
  45. package/dist/_chunks/{chat-input-CHUsUFOD.js → chat-input-DA10w969.js} +2 -2
  46. package/dist/_chunks/{chat-message-DTcRGhNo.js → chat-message-DoMjMa-M.js} +5 -5
  47. package/dist/_chunks/{checkbox-group-DomUzpkF.js → checkbox-group-C7czpHmJ.js} +2 -2
  48. package/dist/_chunks/{city-input-BGYc4lRV.js → city-input-CAnTVgBZ.js} +10 -10
  49. package/dist/_chunks/{clinical-note-card-B7s5BtEl.js → clinical-note-card-kvlUrmP-.js} +6 -6
  50. package/dist/_chunks/{code-block-BrwcZNPq.js → code-block-NtHjtagI.js} +5 -5
  51. package/dist/_chunks/{color-picker-Bl5f0iK1.js → color-picker-Yl99lHuF.js} +3 -3
  52. package/dist/_chunks/{combobox-B_rLwmSv.js → combobox-Iel8y3u6.js} +2 -2
  53. package/dist/_chunks/{command-palette-DhgGo7GJ.js → command-palette-D9TBzmOG.js} +4 -4
  54. package/dist/_chunks/{connection-status-DMheLE65.js → connection-status-Dz8o-Fui.js} +4 -4
  55. package/dist/_chunks/{contact-card-0hnFJwrz.js → contact-card-D2gXrxlL.js} +12 -12
  56. package/dist/_chunks/{contact-profile-card-zQLGGFKG.js → contact-profile-card-B7cXr8g5.js} +5 -5
  57. package/dist/_chunks/{control-room-rail-5iuM3jcm.js → control-room-rail-B446rHSL.js} +3 -3
  58. package/dist/_chunks/{copy-field-C-KvrgOG.js → copy-field-CiIuVbKe.js} +2 -2
  59. package/dist/_chunks/{country-select-C5jZjO8O.js → country-select-BYa4BrEi.js} +3 -3
  60. package/dist/_chunks/{cycle-calculator-DQMCeEzn.js → cycle-calculator-D_5f9VSN.js} +10 -10
  61. package/dist/_chunks/{dashboard-grid-H7uph3HO.js → dashboard-grid-DWNP02Ff.js} +3 -3
  62. package/dist/_chunks/data-table-CiVyhNXx.js +1989 -0
  63. package/dist/_chunks/{data-table-tabs-Dd_O1nPY.js → data-table-tabs-Dc6zvoI_.js} +5 -5
  64. package/dist/_chunks/{date-picker-6tFnKFty.js → date-picker-p9yz3pxc.js} +83 -80
  65. package/dist/_chunks/{date-picker-variants-B9NLAfUK.js → date-picker-variants-B3AFKDSu.js} +706 -658
  66. package/dist/_chunks/{date-range-picker-TpmECKRh.js → date-range-picker-DIy8gNY0.js} +153 -150
  67. package/dist/_chunks/{date-time-picker-DijEae25.js → date-time-picker-C3UVzqOm.js} +86 -77
  68. package/dist/_chunks/{de-3iM4rGqo.js → de-lVkJRPnh.js} +5 -5
  69. package/dist/_chunks/{dependent-selector-58hTg5rB.js → dependent-selector-CPiolWiw.js} +4 -4
  70. package/dist/_chunks/{description-list-DOPu69Jg.js → description-list-9rchqp5q.js} +2 -2
  71. package/dist/_chunks/{dialog-BJiLqhx6.js → dialog-D52AI4nF.js} +2 -2
  72. package/dist/_chunks/{document-preview-Dzh1YAz8.js → document-preview-VXOQZZvy.js} +6 -6
  73. package/dist/_chunks/{document-scanner-BSVwMR4V.js → document-scanner-T5jHiraQ.js} +4 -4
  74. package/dist/_chunks/{dropdown-menu-DIzxr_lp.js → dropdown-menu-B5mgV1kV.js} +2 -2
  75. package/dist/_chunks/{due-date-calculator-DUjw4w5O.js → due-date-calculator-iJXm6HOj.js} +11 -11
  76. package/dist/_chunks/{editable-currency-cell-renderer-Cch3RIJL.js → editable-currency-cell-renderer-DdMHme5y.js} +8 -8
  77. package/dist/_chunks/{editable-description-CRQib91p.js → editable-description-Cy3AZ5K2.js} +2 -2
  78. package/dist/_chunks/{editor-overlay-DsA7vR5C.js → editor-overlay-C0awV6ba.js} +2 -2
  79. package/dist/_chunks/{el-C96rGJvU.js → el-CHzxNWPj.js} +6 -6
  80. package/dist/_chunks/{email-input-Dpe63k0K.js → email-input-ebdovOmh.js} +3 -3
  81. package/dist/_chunks/{empty-state-Ck1wVWdN.js → empty-state-C62P_6kr.js} +59 -48
  82. package/dist/_chunks/en-GB-CwxYmmhU.js +45 -0
  83. package/dist/_chunks/{entity-summary-Cvs21xPr.js → entity-summary-oW3_jFhU.js} +6 -6
  84. package/dist/_chunks/{error-boundary-C_HAzVLO.js → error-boundary-Cvs23EzK.js} +3 -3
  85. package/dist/_chunks/error-page-BtxEOL6g.js +780 -0
  86. package/dist/_chunks/{es-Cxiqjx8r.js → es-Ck-oxbHW.js} +8 -8
  87. package/dist/_chunks/{face-scheme-DVZZTuXT.js → face-scheme-Dg7KcbW2.js} +9 -9
  88. package/dist/_chunks/{fetal-weight-B-lO-948.js → fetal-weight-BoIkl2t1.js} +6 -6
  89. package/dist/_chunks/{field-array-B3IDOct8.js → field-array-BF2nCmvt.js} +2 -2
  90. package/dist/_chunks/{file-manager-COUb-w8j.js → file-manager-BfG3usGk.js} +19 -19
  91. package/dist/_chunks/{file-upload-B242a_Y1.js → file-upload-OMlGHz70.js} +2 -2
  92. package/dist/_chunks/{finished-terminal-BrAWwfOw.js → finished-terminal-BguGAUdg.js} +2 -2
  93. package/dist/_chunks/{fiscal-code-input-CwUwhUZy.js → fiscal-code-input-CuuE8_dt.js} +2 -2
  94. package/dist/_chunks/{floating-action-button-pojvb9gG.js → floating-action-button-BesoUmO_.js} +6 -6
  95. package/dist/_chunks/{form-field-CahJzTxp.js → form-field-YUJl_U5l.js} +2 -2
  96. package/dist/_chunks/{format-4HNwNGrN.js → format-D-1gTdHF.js} +47 -43
  97. package/dist/_chunks/{fr-Bhr6SYKj.js → fr-fWRnDcSD.js} +13 -13
  98. package/dist/_chunks/{freemium-paywall-DiPJrL18.js → freemium-paywall-BhxKSEJD.js} +4 -4
  99. package/dist/_chunks/{gestational-age-calculator-BVPtrWKf.js → gestational-age-calculator-CjZ7v-8x.js} +13 -13
  100. package/dist/_chunks/{hcg-doubling-CPktiA3H.js → hcg-doubling-BYMogA0e.js} +15 -15
  101. package/dist/_chunks/{header-C8NbLgVq.js → header-CzJbtTGQ.js} +4 -4
  102. package/dist/_chunks/{header-settings-D0M3WNTS.js → header-settings-BqdBe4zk.js} +6 -6
  103. package/dist/_chunks/{help-me-write-templates-CYAKuXZ3.js → help-me-write-templates-DcR-e_90.js} +15 -15
  104. package/dist/_chunks/{hi-BxXX26d_.js → hi-B5uX0h3V.js} +14 -14
  105. package/dist/_chunks/{hover-card-BM0vNmq4.js → hover-card-DEMPFs9M.js} +2 -2
  106. package/dist/_chunks/{iban-input-DXIA8Ln_.js → iban-input-D88HRGZo.js} +2 -2
  107. package/dist/_chunks/{icon-button-group-ud2BLmxe.js → icon-button-group-DHRz90jY.js} +3 -3
  108. package/dist/_chunks/{icon-picker-B1PwkUHy.js → icon-picker-C5Fhx1-3.js} +4 -4
  109. package/dist/_chunks/{image-cropper-DM6hpXUw.js → image-cropper-CNBGkG7P.js} +2 -2
  110. package/dist/_chunks/{index.modern-Zta-A4Jm.js → index.modern-BeRXQVdc.js} +3 -2
  111. package/dist/_chunks/{info-tip-CywkQ1NX.js → info-tip-DfmEvyAF.js} +3 -3
  112. package/dist/_chunks/{insert-result-Fu9AHxR6.js → insert-result-BuWQl11Z.js} +2 -2
  113. package/dist/_chunks/intl-locale-CXM-B8EP.js +16 -0
  114. package/dist/_chunks/{isSameWeek-B73MagWB.js → isSameWeek-u81Z-J7h.js} +2 -2
  115. package/dist/_chunks/{it-Xmjomvyj.js → it-DBoNIelY.js} +17 -17
  116. package/dist/_chunks/{ja-mfZvt1ZV.js → ja-Du8gfg8p.js} +6 -6
  117. package/dist/_chunks/{kbd-D855ZXIW.js → kbd-BLovyx1R.js} +2 -2
  118. package/dist/_chunks/{key-value-pair-BL1J3_Km.js → key-value-pair-DZH8ESsc.js} +2 -2
  119. package/dist/_chunks/{kit-extensions-B9Qn6VIc.js → kit-extensions-CF5mDF_Z.js} +6 -6
  120. package/dist/_chunks/{link-CPb_pZPr.js → link-BlVUIKk1.js} +2 -2
  121. package/dist/_chunks/{link-cell-renderer-BcW3F1j9.js → link-cell-renderer-DvcbSHyp.js} +11 -11
  122. package/dist/_chunks/{list-DgE1xWBM.js → list-RRN2TJ_7.js} +2 -2
  123. package/dist/_chunks/{locale-picker-Z42P8T-i.js → locale-picker-DYDppQdZ.js} +6 -6
  124. package/dist/_chunks/{map-view-DxYPJjM9.js → map-view-CQmqQJwK.js} +158 -129
  125. package/dist/_chunks/{marketplace-app-shell-rTTvWRrE.js → marketplace-app-shell-rd1bSSm4.js} +137 -128
  126. package/dist/_chunks/{message-card-CUBPPn4Z.js → message-card-Dub3790J.js} +4 -4
  127. package/dist/_chunks/{message-tray-uy3DAIbn.js → message-tray-CTd6CsnG.js} +4 -4
  128. package/dist/_chunks/{money-BXLBIRVO.js → money-GypsuFk2.js} +2 -2
  129. package/dist/_chunks/{multi-select-N4Smh-gj.js → multi-select-Bx0_cgPI.js} +2 -2
  130. package/dist/_chunks/{muscle-scheme-CH-vQ7Ch.js → muscle-scheme-X2bdmsQt.js} +4 -4
  131. package/dist/_chunks/{nav-grid-gRudLsPX.js → nav-grid-BnY0Ilet.js} +2 -2
  132. package/dist/_chunks/{navigation-menu-D3VndouD.js → navigation-menu-DbaSlvdO.js} +25 -25
  133. package/dist/_chunks/{nl-DDs-KEnD.js → nl-BCBwxYi8.js} +9 -9
  134. package/dist/_chunks/{note-attachment-CGjNTrAC.js → note-attachment-CpPRIfSn.js} +4 -4
  135. package/dist/_chunks/{note-timeline-CVnKL0p6.js → note-timeline-CZUmobcn.js} +3 -3
  136. package/dist/_chunks/{notes-panel-Dka4Z2M7.js → notes-panel-CPfxz-1j.js} +8 -8
  137. package/dist/_chunks/{notification-card-Hy8w3UWx.js → notification-card-B39g86vM.js} +11 -11
  138. package/dist/_chunks/{notification-tray-VuV3XXB8.js → notification-tray-WsP7c1jf.js} +4 -4
  139. package/dist/_chunks/{number-input-Cgu2TtA8.js → number-input-BLrx3utH.js} +2 -2
  140. package/dist/_chunks/{operator-hero-DyrNLoRO.js → operator-hero-BnBPxwOi.js} +10 -10
  141. package/dist/_chunks/{optical-prescription-C2n6d0HO.js → optical-prescription-x--Rpmmx.js} +6 -6
  142. package/dist/_chunks/{otp-input-DzBQ-CpE.js → otp-input-Dz8WMg4F.js} +2 -2
  143. package/dist/_chunks/{pagination-B0N2qGy_.js → pagination-CzEkpfti.js} +6 -6
  144. package/dist/_chunks/{parse-DPqj4JtD.js → parse-DeDYl04y.js} +32 -32
  145. package/dist/_chunks/{parseISO-fOGpHKXm.js → parseISO-y3LncvfO.js} +2 -2
  146. package/dist/_chunks/{patient-details-D9sAM3qh.js → patient-details-BSAMAd3I.js} +6 -6
  147. package/dist/_chunks/{patient-field-row-CT04C_lZ.js → patient-field-row-dUF2cW2G.js} +27 -27
  148. package/dist/_chunks/{patient-search-DkIukAMQ.js → patient-search-CXl0FNfN.js} +13 -13
  149. package/dist/_chunks/{patient-summary-card-DI0BH-Fe.js → patient-summary-card-DF-Mxcma.js} +9 -9
  150. package/dist/_chunks/{payment-automation-upsell-vQBIyUky.js → payment-automation-upsell-DNiraNhF.js} +5 -5
  151. package/dist/_chunks/{payment-form-DqJFiplX.js → payment-form-DxsjXYHJ.js} +6 -6
  152. package/dist/_chunks/{payment-request-card-BSaJzhxz.js → payment-request-card-BFsmHLtf.js} +8 -8
  153. package/dist/_chunks/{pdf-viewer-DUKdn5iq.js → pdf-viewer-hzfM5pZf.js} +6 -6
  154. package/dist/_chunks/{periodontal-chart-BcTcOc79.js → periodontal-chart-Bvii6uOg.js} +3 -3
  155. package/dist/_chunks/{periodontal-chart-card-NS_nToBf.js → periodontal-chart-card-DTbvFQO7.js} +4 -4
  156. package/dist/_chunks/{periodontal-diagnosis-B8WqI0eU.js → periodontal-diagnosis-BqEo0usu.js} +3 -3
  157. package/dist/_chunks/{periodontal-risk-chart-DsFRFFSz.js → periodontal-risk-chart-C1Y5f-md.js} +3 -3
  158. package/dist/_chunks/{permission-matrix-VdAXjjHU.js → permission-matrix-DHKECaNW.js} +3 -3
  159. package/dist/_chunks/{phone-input-sQj-zi59.js → phone-input-opMMHkyh.js} +2 -2
  160. package/dist/_chunks/{pl-BYYMnEWP.js → pl-HwLM6gPs.js} +7 -7
  161. package/dist/_chunks/{popover-SASSeAdY.js → popover-CGYPYIVi.js} +2 -2
  162. package/dist/_chunks/{position-grid-CcvqHaKN.js → position-grid-D2D5_Tze.js} +2 -2
  163. package/dist/_chunks/{postal-code-input-BznBxVxf.js → postal-code-input-Dv02t5MD.js} +3 -3
  164. package/dist/_chunks/{practice-profile-hero-B-WcJYNH.js → practice-profile-hero-Bc3AyBiM.js} +4 -4
  165. package/dist/_chunks/{practice-results-C3ifcObw.js → practice-results-B9uV0TT8.js} +28 -28
  166. package/dist/_chunks/{pregnancy-dating-CpJ3iYvD.js → pregnancy-dating-CcPxK3S3.js} +14 -14
  167. package/dist/_chunks/{pregnancy-weight-gain-kDOhA2vZ.js → pregnancy-weight-gain-tGbbravi.js} +6 -6
  168. package/dist/_chunks/{privacy-lock-CEyvNpC8.js → privacy-lock-Bh4O7Y7g.js} +15 -15
  169. package/dist/_chunks/{privacy-mask-TzMlEu3Q.js → privacy-mask-CK-9sxeI.js} +24 -24
  170. package/dist/_chunks/{product-hub-panel-b70i9Hi1.js → product-hub-panel-D87kbz5j.js} +23 -23
  171. package/dist/_chunks/{progress-CK8otcQ-.js → progress-TIAsNHQW.js} +4 -4
  172. package/dist/_chunks/{province-select-BiszMRRY.js → province-select-BZtM0RSR.js} +3 -3
  173. package/dist/_chunks/{pt-BSPnVrQ7.js → pt-BxhT5ZQH.js} +10 -10
  174. package/dist/_chunks/{public-footer.agent-BKkK3T3V.js → public-footer.agent-CVYmHY94.js} +4 -4
  175. package/dist/_chunks/{public-header.agent-D0ApOrmx.js → public-header.agent-1mcrQqIM.js} +3 -3
  176. package/dist/_chunks/{qr-code-DOJs4suh.js → qr-code-C3m9o7om.js} +2 -2
  177. package/dist/_chunks/{radiograph-panel.agent-jhwaIW8U.js → radiograph-panel.agent-BWBaxJ8e.js} +12 -12
  178. package/dist/_chunks/{rating-BYbUowdK.js → rating-C1Vrmpsi.js} +2 -2
  179. package/dist/_chunks/{recaptcha-widget-BC-4To9b.js → recaptcha-widget-BNAeSTCo.js} +2 -2
  180. package/dist/_chunks/{resizable-DVGcfOrk.js → resizable-BKkNmZCl.js} +2 -2
  181. package/dist/_chunks/{reviews-panel-B5QC4FIp.js → reviews-panel-DUgqU-Wr.js} +7 -7
  182. package/dist/_chunks/{rich-text-editor-DoBXdwmx.js → rich-text-editor-C7N4Cem6.js} +1707 -1617
  183. package/dist/_chunks/{ro-BbiylGmG.js → ro-Do9W55ae.js} +2 -2
  184. package/dist/_chunks/{ru-BX_qsV67.js → ru-PDBX5gdf.js} +13 -13
  185. package/dist/_chunks/{search-bar-6bHatpYJ.js → search-bar-Blq_QeSe.js} +4 -4
  186. package/dist/_chunks/{search-input-B7GmlPIE.js → search-input-DfsAu3P2.js} +4 -4
  187. package/dist/_chunks/{select-upNAltly.js → select-Br88h070.js} +2 -2
  188. package/dist/_chunks/{session-countdown-26XB5u38.js → session-countdown-DWUVDDox.js} +3 -3
  189. package/dist/_chunks/{sheet-CwhNzxbr.js → sheet-BE6oi30q.js} +2 -2
  190. package/dist/_chunks/{sidebar-DbZXLl8h.js → sidebar-2GBc0ZUa.js} +7 -7
  191. package/dist/_chunks/{sign-document-CRQuAn4W.js → sign-document-Buw-zC_7.js} +4 -4
  192. package/dist/_chunks/{sign-in-with-alfadocs-button-jxbze77L.js → sign-in-with-alfadocs-button-Bd4VPGQh.js} +3 -3
  193. package/dist/_chunks/{signature-capture-D6ut9_IR.js → signature-capture-F6KViBF_.js} +2 -2
  194. package/dist/_chunks/{signature-field-0rFODJlW.js → signature-field-DBIGiY-J.js} +3 -3
  195. package/dist/_chunks/{signature-request-BorHf3CY.js → signature-request-DqZkn-iB.js} +154 -154
  196. package/dist/_chunks/{signature-status-chip-Dz6sS2oA.js → signature-status-chip-DP3qRijv.js} +3 -3
  197. package/dist/_chunks/{skip-link-BaSMtPwB.js → skip-link-BOQzBUVb.js} +2 -2
  198. package/dist/_chunks/{slider-DN1CWkKB.js → slider-BRq2lL-l.js} +2 -2
  199. package/dist/_chunks/{slot-grid-xgf2UKLS.js → slot-grid-kq7bDdrx.js} +5 -5
  200. package/dist/_chunks/{smart-date-CsPlilQA.js → smart-date-pYK6WmM_.js} +2 -2
  201. package/dist/_chunks/{social-sign-in-button-dlpPI5l7.js → social-sign-in-button-Bb2UQpsA.js} +8 -8
  202. package/dist/_chunks/{sparkline-Dx_sxK3J.js → sparkline-pkGPCXbl.js} +80 -80
  203. package/dist/_chunks/{spinner-hbwuKwMf.js → spinner-DxjSZLD-.js} +2 -2
  204. package/dist/_chunks/{sq-i9UOk4P7.js → sq-DnvsgyIh.js} +6 -6
  205. package/dist/_chunks/{stat-Bs80Z6Yv.js → stat-Ce9ymEKm.js} +3 -3
  206. package/dist/_chunks/{stepper-accordion-jMR8NaOB.js → stepper-accordion-BPNS6J6B.js} +2 -2
  207. package/dist/_chunks/{stepper-progress-Bv0njx4g.js → stepper-progress-D6H8wQiV.js} +2 -2
  208. package/dist/_chunks/{streaming-text-Cos2fVTw.js → streaming-text-D0IJeRBg.js} +2 -2
  209. package/dist/_chunks/subDays-XBMBTVOO.js +8 -0
  210. package/dist/_chunks/{suggestion-chip-Bk4PmYTg.js → suggestion-chip-BNRWZL51.js} +2 -2
  211. package/dist/_chunks/{sv-CpTdtmDQ.js → sv-CpFSK8xS.js} +4 -4
  212. package/dist/_chunks/{switch-OILsBLWo.js → switch-DXGD2Drz.js} +2 -2
  213. package/dist/_chunks/{tab-bar-BrkMUW0c.js → tab-bar-DRKiomgj.js} +4 -4
  214. package/dist/_chunks/{tabs-tK22Mz7r.js → tabs-DLXVEDsa.js} +4 -4
  215. package/dist/_chunks/{tag-B65tLWvD.js → tag-CS5cXpfx.js} +2 -2
  216. package/dist/_chunks/{task-card-CLpHmqEY.js → task-card-Cfl08MCS.js} +3 -3
  217. package/dist/_chunks/{task-editor-B4UGsU7l.js → task-editor-CxF-sBnu.js} +15 -15
  218. package/dist/_chunks/{task-tray-dsmYgjVb.js → task-tray-rAGslT2C.js} +4 -4
  219. package/dist/_chunks/{tasks-panel-CwwVw491.js → tasks-panel-Dkm8SnmV.js} +9 -9
  220. package/dist/_chunks/{text-area-Bt3p7Pt0.js → text-area-Cjtw7mna.js} +2 -2
  221. package/dist/_chunks/{text-input-CUvCb6ST.js → text-input-CLaItY93.js} +2 -2
  222. package/dist/_chunks/{theme-toggle-jyoyhbJL.js → theme-toggle-Byg0x2vB.js} +9 -9
  223. package/dist/_chunks/{time-picker-D0RS391l.js → time-picker-BG7G3ujX.js} +2 -2
  224. package/dist/_chunks/{timeline-ChY7iZrs.js → timeline-CVLjybJ3.js} +4 -4
  225. package/dist/_chunks/{timestamp-BV2lC-wV.js → timestamp-DPLDWdxA.js} +2 -2
  226. package/dist/_chunks/{toast-FijDyPnv.js → toast-6wbpghjF.js} +2 -2
  227. package/dist/_chunks/{token-insert-menu-Cjf99IdN.js → token-insert-menu-DgtBIbNu.js} +2 -2
  228. package/dist/_chunks/{tool-rail-DphMl1hX.js → tool-rail-CXcLzxPb.js} +3 -3
  229. package/dist/_chunks/{tooth-finding-palette-vqC-D2Ye.js → tooth-finding-palette-DNQ3G2Tz.js} +2 -2
  230. package/dist/_chunks/{tooth-scheme-BaCJnyg9.js → tooth-scheme-BLbwUVer.js} +5 -5
  231. package/dist/_chunks/{tr-DXG2QN1K.js → tr-DW4oQYHT.js} +5 -5
  232. package/dist/_chunks/{transaction-chip-CwgcJiqF.js → transaction-chip-CohY6sTA.js} +6 -6
  233. package/dist/_chunks/{transcript-panel-u2HHxZB6.js → transcript-panel-Dve7bsm7.js} +3 -3
  234. package/dist/_chunks/{treatment-receipt-C-gWZ6uv.js → treatment-receipt-DF2Slh-x.js} +5 -5
  235. package/dist/_chunks/{typing-indicator-DHeVN4ob.js → typing-indicator-BmwMQSxw.js} +9 -9
  236. package/dist/_chunks/{unit-converter-CGpOgarU.js → unit-converter-D8WnJbZm.js} +6 -6
  237. package/dist/_chunks/use-appointment-details-read-W6h4oTHx.js +2198 -0
  238. package/dist/_chunks/{use-edge-resize-BHesP0kg.js → use-edge-resize-DHbyQwu8.js} +15 -15
  239. package/dist/_chunks/use-locale-BExNy9Dl.js +16 -0
  240. package/dist/_chunks/{use-password-requirements-Bwtqx1qN.js → use-password-requirements-DK4hV1Ik.js} +4 -4
  241. package/dist/_chunks/{variables-menu-aJLKJ_cu.js → variables-menu-DQl8H4Gh.js} +2 -2
  242. package/dist/_chunks/{wallet-pay-button--dnR6NfJ.js → wallet-pay-button-C-GFl7RO.js} +3 -3
  243. package/dist/_chunks/{warning-stack-7Hffm7K1.js → warning-stack-CzKSeB5v.js} +3 -3
  244. package/dist/_chunks/{whatsapp-button-Ai4YAVkl.js → whatsapp-button-DV9JFmtq.js} +2 -2
  245. package/dist/_chunks/{widget-picker-CilQvcNL.js → widget-picker-b5NCHxFe.js} +28 -28
  246. package/dist/_chunks/{workflow-map-Jfe9L9Wt.js → workflow-map-C1OjRhM3.js} +197 -205
  247. package/dist/_chunks/{workflow-status-jHfsIDzi.js → workflow-status-DDnsIrLt.js} +4 -4
  248. package/dist/_chunks/{zh-CN-vPkPEK6H.js → zh-CN-QGEs29fQ.js} +7 -7
  249. package/dist/agent-catalog.json +51 -7
  250. package/dist/agent-i18n/en.json +9 -3
  251. package/dist/components/_shared/date-locale.d.ts +2 -2
  252. package/dist/components/_shared/day-picker-labels.d.ts +6 -0
  253. package/dist/components/_shared/index.d.ts +1 -0
  254. package/dist/components/_shared/intl-locale.d.ts +10 -0
  255. package/dist/components/_shared/is-development.d.ts +8 -0
  256. package/dist/components/_shared/use-keep-apex-tooltip-inside.d.ts +3 -0
  257. package/dist/components/address-autocomplete/index.js +1 -1
  258. package/dist/components/address-fields/index.js +1 -1
  259. package/dist/components/agenda-card/index.js +1 -1
  260. package/dist/components/agenda-tray/index.js +1 -1
  261. package/dist/components/ai-credits-notice/index.js +1 -1
  262. package/dist/components/ai-permission-notice/index.js +1 -1
  263. package/dist/components/ai-prompt-input/index.js +1 -1
  264. package/dist/components/alert/index.js +1 -1
  265. package/dist/components/anamnesis-card/index.js +1 -1
  266. package/dist/components/anamnesis-summary-card/index.js +1 -1
  267. package/dist/components/annotation-marker/index.js +1 -1
  268. package/dist/components/app-frame/index.js +1 -1
  269. package/dist/components/appointment-card/index.js +2 -2
  270. package/dist/components/appointment-details-panel/appointment-details-panel.d.ts +3 -0
  271. package/dist/components/appointment-details-panel/appointment-details-panel.history.d.ts +19 -5
  272. package/dist/components/appointment-details-panel/appointment-details-panel.sections.d.ts +6 -2
  273. package/dist/components/appointment-details-panel/appointment-details-panel.types.d.ts +51 -1
  274. package/dist/components/appointment-details-panel/index.d.ts +1 -1
  275. package/dist/components/appointment-details-panel/index.js +1 -1
  276. package/dist/components/appointment-peek/index.js +1 -1
  277. package/dist/components/appointment-timeline/index.js +1 -1
  278. package/dist/components/audio-recorder/index.js +1 -1
  279. package/dist/components/audio-visualiser/index.js +1 -1
  280. package/dist/components/autocomplete/index.js +1 -1
  281. package/dist/components/avatar/index.js +1 -1
  282. package/dist/components/badge/index.js +1 -1
  283. package/dist/components/bishop-score/index.js +1 -1
  284. package/dist/components/bmi-calculator/index.js +1 -1
  285. package/dist/components/booking/index.js +1 -1
  286. package/dist/components/breadcrumb/index.js +1 -1
  287. package/dist/components/button-group/index.js +1 -1
  288. package/dist/components/calculator-dialog/index.js +1 -1
  289. package/dist/components/calendar/calendar-locale.d.ts +5 -0
  290. package/dist/components/calendar/calendar.d.ts +1 -1
  291. package/dist/components/calendar/index.js +1 -1
  292. package/dist/components/calendar-event-card/index.js +1 -1
  293. package/dist/components/care-plan-card/index.js +1 -1
  294. package/dist/components/care-plan-entry-card/index.js +1 -1
  295. package/dist/components/care-plan-header/index.js +1 -1
  296. package/dist/components/carousel/index.js +1 -1
  297. package/dist/components/chart/index.js +1 -1
  298. package/dist/components/chat-container/index.js +1 -1
  299. package/dist/components/chat-input/index.js +1 -1
  300. package/dist/components/chat-message/index.js +1 -1
  301. package/dist/components/checkbox-group/index.js +1 -1
  302. package/dist/components/city-input/index.js +1 -1
  303. package/dist/components/clinical-note-card/index.js +1 -1
  304. package/dist/components/color-picker/index.js +1 -1
  305. package/dist/components/combobox/index.js +1 -1
  306. package/dist/components/command-palette/index.js +1 -1
  307. package/dist/components/connection-status/index.js +1 -1
  308. package/dist/components/contact-card/index.js +1 -1
  309. package/dist/components/contact-profile-card/index.js +1 -1
  310. package/dist/components/control-room-rail/index.js +1 -1
  311. package/dist/components/copy-field/index.js +1 -1
  312. package/dist/components/country-select/index.js +1 -1
  313. package/dist/components/cycle-calculator/index.js +1 -1
  314. package/dist/components/dashboard-grid/index.js +1 -1
  315. package/dist/components/data-table/ag-grid-locale.d.ts +5 -0
  316. package/dist/components/data-table/index.js +4 -4
  317. package/dist/components/data-table-tabs/index.js +1 -1
  318. package/dist/components/date-picker/index.js +1 -1
  319. package/dist/components/date-range-picker/index.js +1 -1
  320. package/dist/components/date-time-picker/index.js +1 -1
  321. package/dist/components/dependent-selector/index.js +1 -1
  322. package/dist/components/description-list/index.js +1 -1
  323. package/dist/components/dialog/index.js +1 -1
  324. package/dist/components/document-preview/index.js +1 -1
  325. package/dist/components/document-scanner/index.js +1 -1
  326. package/dist/components/dropdown-menu/index.js +1 -1
  327. package/dist/components/due-date-calculator/index.js +2 -2
  328. package/dist/components/editable-description/index.js +1 -1
  329. package/dist/components/editor-overlay/index.js +1 -1
  330. package/dist/components/email-input/index.js +1 -1
  331. package/dist/components/empty-state/empty-state.d.ts +6 -0
  332. package/dist/components/empty-state/index.js +1 -1
  333. package/dist/components/entity-summary/index.js +1 -1
  334. package/dist/components/error-boundary/index.js +1 -1
  335. package/dist/components/face-scheme/index.js +1 -1
  336. package/dist/components/fetal-weight/index.js +1 -1
  337. package/dist/components/field-array/index.js +1 -1
  338. package/dist/components/file-manager/index.js +1 -1
  339. package/dist/components/file-upload/index.js +1 -1
  340. package/dist/components/finished-terminal/index.js +1 -1
  341. package/dist/components/fiscal-code-input/index.js +1 -1
  342. package/dist/components/floating-action-button/index.js +1 -1
  343. package/dist/components/form-field/index.js +1 -1
  344. package/dist/components/freemium-paywall/index.js +1 -1
  345. package/dist/components/gestational-age-calculator/index.js +1 -1
  346. package/dist/components/hcg-doubling/hcg.d.ts +1 -1
  347. package/dist/components/hcg-doubling/index.js +1 -1
  348. package/dist/components/header/index.js +1 -1
  349. package/dist/components/header-settings/index.js +1 -1
  350. package/dist/components/hover-card/index.js +1 -1
  351. package/dist/components/iban-input/index.js +1 -1
  352. package/dist/components/icon-button-group/index.js +1 -1
  353. package/dist/components/icon-picker/index.js +1 -1
  354. package/dist/components/image-cropper/index.js +1 -1
  355. package/dist/components/index.d.ts +1 -0
  356. package/dist/components/info-tip/index.js +1 -1
  357. package/dist/components/kbd/index.js +1 -1
  358. package/dist/components/key-value-pair/index.js +1 -1
  359. package/dist/components/link/index.js +1 -1
  360. package/dist/components/list/index.js +1 -1
  361. package/dist/components/locale-picker/index.js +1 -1
  362. package/dist/components/map-view/index.js +1 -1
  363. package/dist/components/map-view/map-view.d.ts +8 -5
  364. package/dist/components/message-card/index.js +1 -1
  365. package/dist/components/message-tray/index.js +1 -1
  366. package/dist/components/money/index.js +1 -1
  367. package/dist/components/multi-select/index.js +1 -1
  368. package/dist/components/muscle-scheme/index.js +1 -1
  369. package/dist/components/nav-grid/index.js +1 -1
  370. package/dist/components/navigation-menu/index.js +2 -2
  371. package/dist/components/note-timeline/index.js +1 -1
  372. package/dist/components/notes-panel/index.js +1 -1
  373. package/dist/components/notification-card/index.js +1 -1
  374. package/dist/components/notification-tray/index.js +1 -1
  375. package/dist/components/number-input/index.js +1 -1
  376. package/dist/components/operator-hero/index.js +1 -1
  377. package/dist/components/optical-prescription/index.js +1 -1
  378. package/dist/components/otp-input/index.js +1 -1
  379. package/dist/components/pagination/index.js +1 -1
  380. package/dist/components/password-input/index.js +1 -1
  381. package/dist/components/patient-details/index.js +1 -1
  382. package/dist/components/patient-search/index.js +1 -1
  383. package/dist/components/patient-summary-card/index.js +1 -1
  384. package/dist/components/patient-table/index.js +1 -1
  385. package/dist/components/payment-card/index.js +1 -1
  386. package/dist/components/payment-form/index.js +1 -1
  387. package/dist/components/pdf-viewer/index.js +1 -1
  388. package/dist/components/periodontal-chart/index.js +1 -1
  389. package/dist/components/periodontal-chart-card/index.js +1 -1
  390. package/dist/components/periodontal-diagnosis/index.js +1 -1
  391. package/dist/components/periodontal-risk-chart/index.js +1 -1
  392. package/dist/components/permission-matrix/index.js +1 -1
  393. package/dist/components/phone-input/index.js +1 -1
  394. package/dist/components/popover/index.js +1 -1
  395. package/dist/components/position-grid/index.js +1 -1
  396. package/dist/components/postal-code-input/index.js +1 -1
  397. package/dist/components/practice-profile-hero/index.js +1 -1
  398. package/dist/components/practice-results/index.js +1 -1
  399. package/dist/components/pregnancy-dating/index.js +1 -1
  400. package/dist/components/pregnancy-weight-gain/index.js +1 -1
  401. package/dist/components/privacy-lock/index.js +1 -1
  402. package/dist/components/product-hub-tray/index.js +1 -1
  403. package/dist/components/progress/index.js +1 -1
  404. package/dist/components/province-select/index.js +1 -1
  405. package/dist/components/public-footer/index.js +1 -1
  406. package/dist/components/public-header/index.js +1 -1
  407. package/dist/components/qr-code/index.js +1 -1
  408. package/dist/components/radiograph-panel/index.js +1 -1
  409. package/dist/components/rating/index.js +1 -1
  410. package/dist/components/recaptcha-widget/index.js +1 -1
  411. package/dist/components/resizable/index.js +1 -1
  412. package/dist/components/reviews-panel/index.js +1 -1
  413. package/dist/components/rich-text-editor/index.js +2 -2
  414. package/dist/components/rich-text-editor/redactor-locale.d.ts +4 -0
  415. package/dist/components/rich-text-editor/rich-text-editor.d.ts +8 -3
  416. package/dist/components/search-bar/index.js +1 -1
  417. package/dist/components/search-input/index.js +1 -1
  418. package/dist/components/select/index.js +1 -1
  419. package/dist/components/session-countdown/index.js +1 -1
  420. package/dist/components/sheet/index.js +1 -1
  421. package/dist/components/sidebar/index.js +1 -1
  422. package/dist/components/sign-document/index.js +1 -1
  423. package/dist/components/sign-in-with-alfadocs-button/index.js +1 -1
  424. package/dist/components/signature-capture/index.js +1 -1
  425. package/dist/components/signature-field/index.js +1 -1
  426. package/dist/components/signature-status-chip/index.js +1 -1
  427. package/dist/components/skeleton-scheme/index.js +3 -3
  428. package/dist/components/skip-link/index.js +1 -1
  429. package/dist/components/skip-link/skip-link.d.ts +1 -1
  430. package/dist/components/slider/index.js +1 -1
  431. package/dist/components/slot-grid/index.js +1 -1
  432. package/dist/components/smart-date/index.js +1 -1
  433. package/dist/components/smart-date/smart-date.d.ts +1 -1
  434. package/dist/components/social-sign-in-button/index.js +1 -1
  435. package/dist/components/sparkline/index.js +1 -1
  436. package/dist/components/spinner/index.js +1 -1
  437. package/dist/components/stat/index.js +1 -1
  438. package/dist/components/stepper-accordion/index.js +1 -1
  439. package/dist/components/stepper-progress/index.js +1 -1
  440. package/dist/components/streaming-text/index.js +1 -1
  441. package/dist/components/suggestion-chip/index.js +1 -1
  442. package/dist/components/switch/index.js +1 -1
  443. package/dist/components/tab-bar/index.js +1 -1
  444. package/dist/components/tabs/index.js +1 -1
  445. package/dist/components/tag/index.js +1 -1
  446. package/dist/components/task-card/index.js +1 -1
  447. package/dist/components/task-editor/index.js +1 -1
  448. package/dist/components/task-tray/index.js +1 -1
  449. package/dist/components/tasks-panel/index.js +1 -1
  450. package/dist/components/text-area/index.js +1 -1
  451. package/dist/components/text-input/index.js +1 -1
  452. package/dist/components/theme-toggle/index.js +1 -1
  453. package/dist/components/time-picker/index.js +1 -1
  454. package/dist/components/timeline/index.js +1 -1
  455. package/dist/components/timestamp/index.js +1 -1
  456. package/dist/components/toast/index.js +1 -1
  457. package/dist/components/token-insert-menu/index.js +1 -1
  458. package/dist/components/tool-rail/index.js +1 -1
  459. package/dist/components/tooth-finding-palette/index.js +1 -1
  460. package/dist/components/tooth-scheme/index.js +1 -1
  461. package/dist/components/transaction-chip/index.js +1 -1
  462. package/dist/components/transcript-panel/index.js +1 -1
  463. package/dist/components/treatment-receipt/index.js +1 -1
  464. package/dist/components/typing-indicator/index.js +1 -1
  465. package/dist/components/unit-converter/index.js +1 -1
  466. package/dist/components/variables-menu/index.js +1 -1
  467. package/dist/components/wallet-pay-button/index.js +1 -1
  468. package/dist/components/warning-stack/index.js +1 -1
  469. package/dist/components/whatsapp-button/index.js +1 -1
  470. package/dist/components/widget-picker/index.js +1 -1
  471. package/dist/components/workflow/index.js +1 -1
  472. package/dist/components/workflow-status/index.js +2 -2
  473. package/dist/error-pages/400.ar.html +41 -0
  474. package/dist/error-pages/400.de.html +41 -0
  475. package/dist/error-pages/400.el.html +41 -0
  476. package/dist/error-pages/400.en.html +41 -0
  477. package/dist/error-pages/400.es.html +41 -0
  478. package/dist/error-pages/400.fr.html +41 -0
  479. package/dist/error-pages/400.hi.html +41 -0
  480. package/dist/error-pages/400.html +41 -0
  481. package/dist/error-pages/400.it.html +41 -0
  482. package/dist/error-pages/400.ja.html +41 -0
  483. package/dist/error-pages/400.nl.html +41 -0
  484. package/dist/error-pages/400.pl.html +41 -0
  485. package/dist/error-pages/400.pt.html +41 -0
  486. package/dist/error-pages/400.ro.html +41 -0
  487. package/dist/error-pages/400.ru.html +41 -0
  488. package/dist/error-pages/400.sq.html +41 -0
  489. package/dist/error-pages/400.sv.html +41 -0
  490. package/dist/error-pages/400.tr.html +41 -0
  491. package/dist/error-pages/400.zh.html +41 -0
  492. package/dist/error-pages/401.ar.html +41 -0
  493. package/dist/error-pages/401.de.html +41 -0
  494. package/dist/error-pages/401.el.html +41 -0
  495. package/dist/error-pages/401.en.html +41 -0
  496. package/dist/error-pages/401.es.html +41 -0
  497. package/dist/error-pages/401.fr.html +41 -0
  498. package/dist/error-pages/401.hi.html +41 -0
  499. package/dist/error-pages/401.html +41 -0
  500. package/dist/error-pages/401.it.html +41 -0
  501. package/dist/error-pages/401.ja.html +41 -0
  502. package/dist/error-pages/401.nl.html +41 -0
  503. package/dist/error-pages/401.pl.html +41 -0
  504. package/dist/error-pages/401.pt.html +41 -0
  505. package/dist/error-pages/401.ro.html +41 -0
  506. package/dist/error-pages/401.ru.html +41 -0
  507. package/dist/error-pages/401.sq.html +41 -0
  508. package/dist/error-pages/401.sv.html +41 -0
  509. package/dist/error-pages/401.tr.html +41 -0
  510. package/dist/error-pages/401.zh.html +41 -0
  511. package/dist/error-pages/403.ar.html +41 -0
  512. package/dist/error-pages/403.de.html +41 -0
  513. package/dist/error-pages/403.el.html +41 -0
  514. package/dist/error-pages/403.en.html +41 -0
  515. package/dist/error-pages/403.es.html +41 -0
  516. package/dist/error-pages/403.fr.html +41 -0
  517. package/dist/error-pages/403.hi.html +41 -0
  518. package/dist/error-pages/403.html +41 -0
  519. package/dist/error-pages/403.it.html +41 -0
  520. package/dist/error-pages/403.ja.html +41 -0
  521. package/dist/error-pages/403.nl.html +41 -0
  522. package/dist/error-pages/403.pl.html +41 -0
  523. package/dist/error-pages/403.pt.html +41 -0
  524. package/dist/error-pages/403.ro.html +41 -0
  525. package/dist/error-pages/403.ru.html +41 -0
  526. package/dist/error-pages/403.sq.html +41 -0
  527. package/dist/error-pages/403.sv.html +41 -0
  528. package/dist/error-pages/403.tr.html +41 -0
  529. package/dist/error-pages/403.zh.html +41 -0
  530. package/dist/error-pages/404.ar.html +41 -0
  531. package/dist/error-pages/404.de.html +41 -0
  532. package/dist/error-pages/404.el.html +41 -0
  533. package/dist/error-pages/404.en.html +41 -0
  534. package/dist/error-pages/404.es.html +41 -0
  535. package/dist/error-pages/404.fr.html +41 -0
  536. package/dist/error-pages/404.hi.html +41 -0
  537. package/dist/error-pages/404.html +41 -0
  538. package/dist/error-pages/404.it.html +41 -0
  539. package/dist/error-pages/404.ja.html +41 -0
  540. package/dist/error-pages/404.nl.html +41 -0
  541. package/dist/error-pages/404.pl.html +41 -0
  542. package/dist/error-pages/404.pt.html +41 -0
  543. package/dist/error-pages/404.ro.html +41 -0
  544. package/dist/error-pages/404.ru.html +41 -0
  545. package/dist/error-pages/404.sq.html +41 -0
  546. package/dist/error-pages/404.sv.html +41 -0
  547. package/dist/error-pages/404.tr.html +41 -0
  548. package/dist/error-pages/404.zh.html +41 -0
  549. package/dist/error-pages/405.ar.html +41 -0
  550. package/dist/error-pages/405.de.html +41 -0
  551. package/dist/error-pages/405.el.html +41 -0
  552. package/dist/error-pages/405.en.html +41 -0
  553. package/dist/error-pages/405.es.html +41 -0
  554. package/dist/error-pages/405.fr.html +41 -0
  555. package/dist/error-pages/405.hi.html +41 -0
  556. package/dist/error-pages/405.html +41 -0
  557. package/dist/error-pages/405.it.html +41 -0
  558. package/dist/error-pages/405.ja.html +41 -0
  559. package/dist/error-pages/405.nl.html +41 -0
  560. package/dist/error-pages/405.pl.html +41 -0
  561. package/dist/error-pages/405.pt.html +41 -0
  562. package/dist/error-pages/405.ro.html +41 -0
  563. package/dist/error-pages/405.ru.html +41 -0
  564. package/dist/error-pages/405.sq.html +41 -0
  565. package/dist/error-pages/405.sv.html +41 -0
  566. package/dist/error-pages/405.tr.html +41 -0
  567. package/dist/error-pages/405.zh.html +41 -0
  568. package/dist/error-pages/410.ar.html +41 -0
  569. package/dist/error-pages/410.de.html +41 -0
  570. package/dist/error-pages/410.el.html +41 -0
  571. package/dist/error-pages/410.en.html +41 -0
  572. package/dist/error-pages/410.es.html +41 -0
  573. package/dist/error-pages/410.fr.html +41 -0
  574. package/dist/error-pages/410.hi.html +41 -0
  575. package/dist/error-pages/410.html +41 -0
  576. package/dist/error-pages/410.it.html +41 -0
  577. package/dist/error-pages/410.ja.html +41 -0
  578. package/dist/error-pages/410.nl.html +41 -0
  579. package/dist/error-pages/410.pl.html +41 -0
  580. package/dist/error-pages/410.pt.html +41 -0
  581. package/dist/error-pages/410.ro.html +41 -0
  582. package/dist/error-pages/410.ru.html +41 -0
  583. package/dist/error-pages/410.sq.html +41 -0
  584. package/dist/error-pages/410.sv.html +41 -0
  585. package/dist/error-pages/410.tr.html +41 -0
  586. package/dist/error-pages/410.zh.html +41 -0
  587. package/dist/error-pages/419.ar.html +42 -0
  588. package/dist/error-pages/419.de.html +42 -0
  589. package/dist/error-pages/419.el.html +42 -0
  590. package/dist/error-pages/419.en.html +42 -0
  591. package/dist/error-pages/419.es.html +42 -0
  592. package/dist/error-pages/419.fr.html +42 -0
  593. package/dist/error-pages/419.hi.html +42 -0
  594. package/dist/error-pages/419.html +42 -0
  595. package/dist/error-pages/419.it.html +42 -0
  596. package/dist/error-pages/419.ja.html +42 -0
  597. package/dist/error-pages/419.nl.html +42 -0
  598. package/dist/error-pages/419.pl.html +42 -0
  599. package/dist/error-pages/419.pt.html +42 -0
  600. package/dist/error-pages/419.ro.html +42 -0
  601. package/dist/error-pages/419.ru.html +42 -0
  602. package/dist/error-pages/419.sq.html +42 -0
  603. package/dist/error-pages/419.sv.html +42 -0
  604. package/dist/error-pages/419.tr.html +42 -0
  605. package/dist/error-pages/419.zh.html +42 -0
  606. package/dist/error-pages/429.ar.html +42 -0
  607. package/dist/error-pages/429.de.html +42 -0
  608. package/dist/error-pages/429.el.html +42 -0
  609. package/dist/error-pages/429.en.html +42 -0
  610. package/dist/error-pages/429.es.html +42 -0
  611. package/dist/error-pages/429.fr.html +42 -0
  612. package/dist/error-pages/429.hi.html +42 -0
  613. package/dist/error-pages/429.html +42 -0
  614. package/dist/error-pages/429.it.html +42 -0
  615. package/dist/error-pages/429.ja.html +42 -0
  616. package/dist/error-pages/429.nl.html +42 -0
  617. package/dist/error-pages/429.pl.html +42 -0
  618. package/dist/error-pages/429.pt.html +42 -0
  619. package/dist/error-pages/429.ro.html +42 -0
  620. package/dist/error-pages/429.ru.html +42 -0
  621. package/dist/error-pages/429.sq.html +42 -0
  622. package/dist/error-pages/429.sv.html +42 -0
  623. package/dist/error-pages/429.tr.html +42 -0
  624. package/dist/error-pages/429.zh.html +42 -0
  625. package/dist/error-pages/500.ar.html +41 -0
  626. package/dist/error-pages/500.de.html +41 -0
  627. package/dist/error-pages/500.el.html +41 -0
  628. package/dist/error-pages/500.en.html +41 -0
  629. package/dist/error-pages/500.es.html +41 -0
  630. package/dist/error-pages/500.fr.html +41 -0
  631. package/dist/error-pages/500.hi.html +41 -0
  632. package/dist/error-pages/500.html +41 -0
  633. package/dist/error-pages/500.it.html +41 -0
  634. package/dist/error-pages/500.ja.html +41 -0
  635. package/dist/error-pages/500.nl.html +41 -0
  636. package/dist/error-pages/500.pl.html +41 -0
  637. package/dist/error-pages/500.pt.html +41 -0
  638. package/dist/error-pages/500.ro.html +41 -0
  639. package/dist/error-pages/500.ru.html +41 -0
  640. package/dist/error-pages/500.sq.html +41 -0
  641. package/dist/error-pages/500.sv.html +41 -0
  642. package/dist/error-pages/500.tr.html +41 -0
  643. package/dist/error-pages/500.zh.html +41 -0
  644. package/dist/error-pages/502.ar.html +41 -0
  645. package/dist/error-pages/502.de.html +41 -0
  646. package/dist/error-pages/502.el.html +41 -0
  647. package/dist/error-pages/502.en.html +41 -0
  648. package/dist/error-pages/502.es.html +41 -0
  649. package/dist/error-pages/502.fr.html +41 -0
  650. package/dist/error-pages/502.hi.html +41 -0
  651. package/dist/error-pages/502.html +41 -0
  652. package/dist/error-pages/502.it.html +41 -0
  653. package/dist/error-pages/502.ja.html +41 -0
  654. package/dist/error-pages/502.nl.html +41 -0
  655. package/dist/error-pages/502.pl.html +41 -0
  656. package/dist/error-pages/502.pt.html +41 -0
  657. package/dist/error-pages/502.ro.html +41 -0
  658. package/dist/error-pages/502.ru.html +41 -0
  659. package/dist/error-pages/502.sq.html +41 -0
  660. package/dist/error-pages/502.sv.html +41 -0
  661. package/dist/error-pages/502.tr.html +41 -0
  662. package/dist/error-pages/502.zh.html +41 -0
  663. package/dist/error-pages/503.ar.html +41 -0
  664. package/dist/error-pages/503.de.html +41 -0
  665. package/dist/error-pages/503.el.html +41 -0
  666. package/dist/error-pages/503.en.html +41 -0
  667. package/dist/error-pages/503.es.html +41 -0
  668. package/dist/error-pages/503.fr.html +41 -0
  669. package/dist/error-pages/503.hi.html +41 -0
  670. package/dist/error-pages/503.html +41 -0
  671. package/dist/error-pages/503.it.html +41 -0
  672. package/dist/error-pages/503.ja.html +41 -0
  673. package/dist/error-pages/503.nl.html +41 -0
  674. package/dist/error-pages/503.pl.html +41 -0
  675. package/dist/error-pages/503.pt.html +41 -0
  676. package/dist/error-pages/503.ro.html +41 -0
  677. package/dist/error-pages/503.ru.html +41 -0
  678. package/dist/error-pages/503.sq.html +41 -0
  679. package/dist/error-pages/503.sv.html +41 -0
  680. package/dist/error-pages/503.tr.html +41 -0
  681. package/dist/error-pages/503.zh.html +41 -0
  682. package/dist/error-pages/504.ar.html +41 -0
  683. package/dist/error-pages/504.de.html +41 -0
  684. package/dist/error-pages/504.el.html +41 -0
  685. package/dist/error-pages/504.en.html +41 -0
  686. package/dist/error-pages/504.es.html +41 -0
  687. package/dist/error-pages/504.fr.html +41 -0
  688. package/dist/error-pages/504.hi.html +41 -0
  689. package/dist/error-pages/504.html +41 -0
  690. package/dist/error-pages/504.it.html +41 -0
  691. package/dist/error-pages/504.ja.html +41 -0
  692. package/dist/error-pages/504.nl.html +41 -0
  693. package/dist/error-pages/504.pl.html +41 -0
  694. package/dist/error-pages/504.pt.html +41 -0
  695. package/dist/error-pages/504.ro.html +41 -0
  696. package/dist/error-pages/504.ru.html +41 -0
  697. package/dist/error-pages/504.sq.html +41 -0
  698. package/dist/error-pages/504.sv.html +41 -0
  699. package/dist/error-pages/504.tr.html +41 -0
  700. package/dist/error-pages/504.zh.html +41 -0
  701. package/dist/error-pages/maintenance.ar.html +41 -0
  702. package/dist/error-pages/maintenance.de.html +41 -0
  703. package/dist/error-pages/maintenance.el.html +41 -0
  704. package/dist/error-pages/maintenance.en.html +41 -0
  705. package/dist/error-pages/maintenance.es.html +41 -0
  706. package/dist/error-pages/maintenance.fr.html +41 -0
  707. package/dist/error-pages/maintenance.hi.html +41 -0
  708. package/dist/error-pages/maintenance.html +41 -0
  709. package/dist/error-pages/maintenance.it.html +41 -0
  710. package/dist/error-pages/maintenance.ja.html +41 -0
  711. package/dist/error-pages/maintenance.nl.html +41 -0
  712. package/dist/error-pages/maintenance.pl.html +41 -0
  713. package/dist/error-pages/maintenance.pt.html +41 -0
  714. package/dist/error-pages/maintenance.ro.html +41 -0
  715. package/dist/error-pages/maintenance.ru.html +41 -0
  716. package/dist/error-pages/maintenance.sq.html +41 -0
  717. package/dist/error-pages/maintenance.sv.html +41 -0
  718. package/dist/error-pages/maintenance.tr.html +41 -0
  719. package/dist/error-pages/maintenance.zh.html +41 -0
  720. package/dist/hooks/index.js +2 -2
  721. package/dist/hooks/use-locale.d.ts +2 -16
  722. package/dist/host-compat.css +13 -1
  723. package/dist/i18n/config.d.ts +17 -13
  724. package/dist/i18n/config.js +127 -62
  725. package/dist/i18n/locale-meta.d.ts +1 -1
  726. package/dist/i18n/locales/ar.d.ts +981 -661
  727. package/dist/i18n/locales/ar.js +982 -666
  728. package/dist/i18n/locales/de.d.ts +788 -480
  729. package/dist/i18n/locales/de.js +789 -485
  730. package/dist/i18n/locales/el.d.ts +1030 -722
  731. package/dist/i18n/locales/el.js +1030 -726
  732. package/dist/i18n/locales/en.d.ts +373 -65
  733. package/dist/i18n/locales/en.js +374 -70
  734. package/dist/i18n/locales/es.d.ts +852 -541
  735. package/dist/i18n/locales/es.js +853 -546
  736. package/dist/i18n/locales/fr.d.ts +795 -484
  737. package/dist/i18n/locales/fr.js +796 -489
  738. package/dist/i18n/locales/hi.d.ts +940 -632
  739. package/dist/i18n/locales/hi.js +941 -637
  740. package/dist/i18n/locales/it.d.ts +1003 -692
  741. package/dist/i18n/locales/it.js +1009 -697
  742. package/dist/i18n/locales/ja.d.ts +763 -455
  743. package/dist/i18n/locales/ja.js +764 -460
  744. package/dist/i18n/locales/nl.d.ts +788 -480
  745. package/dist/i18n/locales/nl.js +789 -485
  746. package/dist/i18n/locales/pl.d.ts +1084 -770
  747. package/dist/i18n/locales/pl.js +1084 -774
  748. package/dist/i18n/locales/pt.d.ts +876 -562
  749. package/dist/i18n/locales/pt.js +877 -567
  750. package/dist/i18n/locales/ro.d.ts +1125 -814
  751. package/dist/i18n/locales/ro.js +1126 -819
  752. package/dist/i18n/locales/ru.d.ts +1102 -788
  753. package/dist/i18n/locales/ru.js +1097 -787
  754. package/dist/i18n/locales/sq.d.ts +1354 -1046
  755. package/dist/i18n/locales/sq.js +1354 -1050
  756. package/dist/i18n/locales/sv.d.ts +874 -566
  757. package/dist/i18n/locales/sv.js +875 -571
  758. package/dist/i18n/locales/tr.d.ts +833 -525
  759. package/dist/i18n/locales/tr.js +834 -530
  760. package/dist/i18n/locales/zh.d.ts +822 -514
  761. package/dist/i18n/locales/zh.js +823 -519
  762. package/dist/i18n/registerUiBundle.d.ts +3 -2
  763. package/dist/i18n/resources.d.ts +2 -7
  764. package/dist/i18n/supported-locales.d.ts +8 -0
  765. package/dist/index.js +300 -294
  766. package/dist/locales/ar.json +986 -666
  767. package/dist/locales/de.json +793 -485
  768. package/dist/locales/el.json +1035 -727
  769. package/dist/locales/en.json +378 -70
  770. package/dist/locales/es.json +857 -546
  771. package/dist/locales/fr.json +800 -489
  772. package/dist/locales/hi.json +945 -637
  773. package/dist/locales/it.json +1008 -697
  774. package/dist/locales/ja.json +768 -460
  775. package/dist/locales/nl.json +793 -485
  776. package/dist/locales/pl.json +1089 -775
  777. package/dist/locales/pt.json +881 -567
  778. package/dist/locales/ro.json +1130 -819
  779. package/dist/locales/ru.json +1107 -793
  780. package/dist/locales/sq.json +1359 -1051
  781. package/dist/locales/sv.json +879 -571
  782. package/dist/locales/tr.json +838 -530
  783. package/dist/locales/zh.json +827 -519
  784. package/dist/patterns/alia-assistant/index.js +1 -1
  785. package/dist/patterns/anamnesis/anamnesis-format.d.ts +1 -1
  786. package/dist/patterns/anamnesis/anamnesis-i18n.d.ts +3 -2
  787. package/dist/patterns/anamnesis/index.js +1 -1
  788. package/dist/patterns/anamnesis/locales/ar.d.ts +776 -0
  789. package/dist/patterns/anamnesis/locales/de.d.ts +740 -0
  790. package/dist/patterns/anamnesis/locales/el.d.ts +740 -0
  791. package/dist/patterns/anamnesis/locales/en.d.ts +740 -0
  792. package/dist/patterns/anamnesis/locales/es.d.ts +749 -0
  793. package/dist/patterns/anamnesis/locales/fr.d.ts +749 -0
  794. package/dist/patterns/anamnesis/locales/hi.d.ts +740 -0
  795. package/dist/patterns/anamnesis/locales/it.d.ts +749 -0
  796. package/dist/patterns/anamnesis/locales/ja.d.ts +740 -0
  797. package/dist/patterns/anamnesis/locales/nl.d.ts +740 -0
  798. package/dist/patterns/anamnesis/locales/pl.d.ts +758 -0
  799. package/dist/patterns/anamnesis/locales/pt.d.ts +758 -0
  800. package/dist/patterns/anamnesis/locales/ro.d.ts +749 -0
  801. package/dist/patterns/anamnesis/locales/ru.d.ts +758 -0
  802. package/dist/patterns/anamnesis/locales/sq.d.ts +740 -0
  803. package/dist/patterns/anamnesis/locales/sv.d.ts +740 -0
  804. package/dist/patterns/anamnesis/locales/tr.d.ts +740 -0
  805. package/dist/patterns/anamnesis/locales/zh.d.ts +740 -0
  806. package/dist/patterns/calendar/calendar-appointment-details.d.ts +4 -1
  807. package/dist/patterns/calendar/calendar-workspace.d.ts +5 -0
  808. package/dist/patterns/calendar/calendar.sheets.d.ts +4 -1
  809. package/dist/patterns/calendar/calendar.types.d.ts +3 -1
  810. package/dist/patterns/calendar/index.d.ts +1 -1
  811. package/dist/patterns/calendar/index.js +1 -1
  812. package/dist/patterns/error-page/error-page-illustration.d.ts +6 -0
  813. package/dist/patterns/error-page/error-page-locale.d.ts +32 -0
  814. package/dist/patterns/error-page/error-page-statuses.d.ts +16 -0
  815. package/dist/patterns/error-page/error-page.d.ts +48 -0
  816. package/dist/patterns/error-page/index.d.ts +5 -0
  817. package/dist/patterns/error-page/index.js +9 -0
  818. package/dist/patterns/help-me-write-templates/index.js +1 -1
  819. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  820. package/dist/patterns/payment-automation-upsell/index.js +1 -1
  821. package/dist/patterns/signature-request/index.js +1 -1
  822. package/dist/tokens.css +5 -2
  823. package/package.json +20 -3
  824. package/dist/_chunks/anamnesis-summary-rows-D9LZZHLw.js +0 -9416
  825. package/dist/_chunks/apexcharts-theme-B_AxGC_h.js +0 -72
  826. package/dist/_chunks/data-table-C4yPR89K.js +0 -1824
  827. package/dist/_chunks/subDays-HPvBuvq3.js +0 -8
  828. package/dist/_chunks/use-appointment-details-read-uEnJLVfA.js +0 -2045
  829. package/dist/_chunks/use-locale-BkCIHujH.js +0 -20
@@ -1,1824 +0,0 @@
1
- import { jsx as s, jsxs as L } from "react/jsx-runtime";
2
- import { useMemo as j, forwardRef as B, useState as G, useCallback as D, useEffect as K, useRef as W, createContext as Ce, useContext as Re, isValidElement as At, cloneElement as Pt, useImperativeHandle as Ot } from "react";
3
- import { S as Mt } from "./skeleton-B1KTdJ4N.js";
4
- import { E as zt } from "./empty-state-Ck1wVWdN.js";
5
- import { c as Gt } from "./index-D2ZczOXr.js";
6
- import { useTranslation as A } from "react-i18next";
7
- import { useGridFilter as _t, AgGridReact as jt } from "ag-grid-react";
8
- import { ModuleRegistry as Lt, AllCommunityModule as qt } from "ag-grid-community";
9
- import { I as $t } from "./icon-button-group-ud2BLmxe.js";
10
- import { B as de } from "./button-CYPx2xFq.js";
11
- import { I as oe } from "./icon-button-JAXAkqWC.js";
12
- import { P as me } from "./popover-SASSeAdY.js";
13
- import { C as Wt } from "./checkbox-CZkipDn7.js";
14
- import { T as Se } from "./text-input-CUvCb6ST.js";
15
- import { T as $e } from "./tag-B65tLWvD.js";
16
- import { D as be } from "./dropdown-menu-DIzxr_lp.js";
17
- import { X as Be } from "./x-B5YnXwCz.js";
18
- import { R as Bt } from "./refresh-cw-DnI0cLFC.js";
19
- import { S as Ie } from "./search-QbWPlY5f.js";
20
- import { c as Kt } from "./createLucideIcon-DhHxpK9K.js";
21
- import { G as Ht } from "./grip-vertical-onSb1JXO.js";
22
- import { P as Vt } from "./printer-rkK0T1gi.js";
23
- import { F as Ke } from "./file-text-5yv6r2ls.js";
24
- import { D as ye } from "./download-CfYKJO_j.js";
25
- import { F as Ut } from "./file-spreadsheet-DmwyfV4O.js";
26
- import Xt from "i18next";
27
- import { S as Qt } from "./select-upNAltly.js";
28
- import { u as Jt } from "./registry-DvAUVLHh.js";
29
- import { u as Zt } from "./use-prefers-reduced-motion-BMwIQRjB.js";
30
- import { u as Yt } from "./use-theme-CAuo6EYT.js";
31
- /**
32
- * @license lucide-react v1.22.0 - ISC
33
- *
34
- * This source code is licensed under the ISC license.
35
- * See the LICENSE file in the root directory of this source tree.
36
- */
37
- const er = [
38
- ["path", { d: "M10.5 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v5.5", key: "1g2yzs" }],
39
- ["path", { d: "m14.3 19.6 1-.4", key: "11sv9r" }],
40
- ["path", { d: "M15 3v7.5", key: "7lm50a" }],
41
- ["path", { d: "m15.2 16.9-.9-.3", key: "1t7mvx" }],
42
- ["path", { d: "m16.6 21.7.3-.9", key: "1j67ps" }],
43
- ["path", { d: "m16.8 15.3-.4-1", key: "1ei7r6" }],
44
- ["path", { d: "m19.1 15.2.3-.9", key: "18r7jp" }],
45
- ["path", { d: "m19.6 21.7-.4-1", key: "z2vh2" }],
46
- ["path", { d: "m20.7 16.8 1-.4", key: "19m87a" }],
47
- ["path", { d: "m21.7 19.4-.9-.3", key: "1qgwi9" }],
48
- ["path", { d: "M9 3v18", key: "fh3hqa" }],
49
- ["circle", { cx: "18", cy: "18", r: "3", key: "1xkwt0" }]
50
- ], tr = Kt("columns-3-cog", er);
51
- function rr(e) {
52
- if (!At(e)) return e;
53
- const t = e, n = t.props.className ?? "", a = /\bsize-|\bw-|\bh-/.test(n) ? n : `${n} ds:size-4`.trim();
54
- return Pt(t, { className: a, size: t.props.size ?? 16 });
55
- }
56
- const He = Ce(null);
57
- function V(e) {
58
- const t = Re(He);
59
- if (!t)
60
- throw new Error(
61
- `${e} must be rendered inside <DataTable.Toolbar> as a descendant of <DataTable>.`
62
- );
63
- return t;
64
- }
65
- function ar({
66
- getApi: e,
67
- selectionCount: t,
68
- onPrint: n,
69
- markColumnsUserTouched: a,
70
- children: i
71
- }) {
72
- const l = j(
73
- () => ({ getApi: e, selectionCount: t, onPrint: n, markColumnsUserTouched: a }),
74
- [e, t, n, a]
75
- );
76
- return /* @__PURE__ */ s(He.Provider, { value: l, children: i });
77
- }
78
- const nr = [
79
- "data-table-toolbar",
80
- // Mobile (<sm) keeps `flex-wrap` so a wide QuickSearch can flow above the
81
- // Actions cluster on narrow screens. From `sm` (≥640px) we switch to
82
- // `flex-nowrap` + `min-w-0` so the row stays single-line at every common
83
- // desktop width (1024 / 1280 / 1440) — the QuickSearch slot shrinks via
84
- // its own `min-w-0` instead of pushing the trailing Actions to a new row.
85
- "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-sm)]",
86
- "ds:sm:flex-nowrap ds:min-w-0"
87
- // No card surface: the toolbar sits directly on the page background,
88
- // matching the header-tools layout the Patients / Care Plan List
89
- // patterns established (the old bg-card + border + shadow bar is gone).
90
- ].join(" "), Ve = B(
91
- ({ className: e, children: t, ...n }, a) => /* @__PURE__ */ s(
92
- "div",
93
- {
94
- ref: a,
95
- role: "toolbar",
96
- className: [nr, e ?? ""].join(" ").trim(),
97
- ...n,
98
- children: t
99
- }
100
- )
101
- );
102
- Ve.displayName = "DataTable.Toolbar";
103
- const Ue = B(
104
- ({ className: e, children: t, ...n }, a) => /* @__PURE__ */ s(
105
- "div",
106
- {
107
- ref: a,
108
- className: [
109
- "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-sm)]",
110
- // `grow` lets FilterBar absorb the free space; `min-w-0` lets the
111
- // QuickSearch slot inside shrink below its intrinsic width when the
112
- // toolbar runs `flex-nowrap` at `sm` and above, so the trailing
113
- // Actions cluster stays pinned on a single row.
114
- "ds:grow ds:min-w-0",
115
- e ?? ""
116
- ].join(" ").trim(),
117
- ...n,
118
- children: t
119
- }
120
- )
121
- );
122
- Ue.displayName = "DataTable.Toolbar.FilterBar";
123
- const Xe = B(
124
- ({ className: e, children: t, ...n }, a) => /* @__PURE__ */ s(
125
- "div",
126
- {
127
- ref: a,
128
- className: [
129
- "ds:flex ds:items-center ds:gap-[var(--spacing-xs)]",
130
- "ds:ms-auto",
131
- e ?? ""
132
- ].join(" ").trim(),
133
- ...n,
134
- children: t
135
- }
136
- )
137
- );
138
- Xe.displayName = "DataTable.Toolbar.Actions";
139
- const Ee = B(
140
- ({ label: e, onExport: t, intent: n = "outline", ...a }, i) => {
141
- const { t: l } = A(), { getApi: m } = V("DataTable.Toolbar.ExportCsv"), u = D(() => {
142
- const f = m();
143
- f && (t ? t(f) : f.exportDataAsCsv());
144
- }, [m, t]);
145
- return /* @__PURE__ */ s(
146
- oe,
147
- {
148
- ref: i,
149
- type: "button",
150
- intent: n,
151
- icon: /* @__PURE__ */ s(ye, { "aria-hidden": !0 }),
152
- tooltip: e ?? l("dataTable.exportCsv"),
153
- onClick: u,
154
- ...a
155
- }
156
- );
157
- }
158
- );
159
- Ee.displayName = "DataTable.Toolbar.ExportCsv";
160
- function ae(e, t = [30, 30, 30]) {
161
- if (typeof document > "u") return t;
162
- const n = document.createElement("span");
163
- n.style.color = `hsl(var(${e}))`, n.style.position = "absolute", n.style.visibility = "hidden", document.body.appendChild(n);
164
- const a = getComputedStyle(n).color;
165
- document.body.removeChild(n);
166
- const i = a.match(/rgba?\(\s*(\d+)[,\s]+(\d+)[,\s]+(\d+)/i);
167
- return i ? [Number(i[1]), Number(i[2]), Number(i[3])] : t;
168
- }
169
- async function Qe(e, t) {
170
- if (!e) return;
171
- const [{ jsPDF: n }, { default: a }] = await Promise.all([
172
- import("./jspdf.es.min-DaapWjR1.js").then((C) => C.j),
173
- import("./jspdf.plugin.autotable-CSiDNyPn.js")
174
- ]), l = (e.getColumns() ?? []).filter((C) => C.isVisible()), m = [
175
- l.map((C) => e.getDisplayNameForColumn(C, null) ?? "")
176
- ], u = [];
177
- e.forEachNodeAfterFilterAndSort((C) => {
178
- if (!C.data) return;
179
- const c = l.map((g) => {
180
- const T = e.getCellValue({
181
- rowNode: C,
182
- colKey: g,
183
- useFormatter: !0
184
- });
185
- return T == null ? "" : String(T);
186
- });
187
- u.push(c);
188
- });
189
- const f = ae("--muted", [240, 240, 240]), b = ae("--foreground", [30, 30, 30]), p = ae("--card-foreground", [30, 30, 30]), h = ae("--card", [250, 250, 250]), S = new n({ orientation: "landscape" });
190
- a(S, {
191
- head: m,
192
- body: u,
193
- headStyles: { fillColor: f, textColor: b },
194
- bodyStyles: { textColor: p },
195
- alternateRowStyles: { fillColor: h },
196
- styles: {
197
- font: "helvetica",
198
- fontSize: 10,
199
- cellPadding: 4
200
- }
201
- }), S.save(t.fileName);
202
- }
203
- const De = B(
204
- ({ label: e, onClick: t, fileName: n, intent: a = "outline", ...i }, l) => {
205
- const { t: m } = A(), { getApi: u } = V("DataTable.Toolbar.ExportPdf"), f = D(() => {
206
- const b = u();
207
- if (t) {
208
- t(b);
209
- return;
210
- }
211
- Qe(b, {
212
- fileName: n ?? "data-table-export.pdf"
213
- });
214
- }, [u, t, n]);
215
- return /* @__PURE__ */ s(
216
- oe,
217
- {
218
- ref: l,
219
- type: "button",
220
- intent: a,
221
- icon: /* @__PURE__ */ s(Ke, { "aria-hidden": !0 }),
222
- tooltip: e ?? m("dataTable.exportPdf"),
223
- onClick: f,
224
- ...i
225
- }
226
- );
227
- }
228
- );
229
- De.displayName = "DataTable.Toolbar.ExportPdf";
230
- const Fe = B(
231
- ({ label: e, intent: t = "outline", ...n }, a) => {
232
- const { t: i } = A(), { onPrint: l } = V("DataTable.Toolbar.Print");
233
- return /* @__PURE__ */ s(
234
- oe,
235
- {
236
- ref: a,
237
- type: "button",
238
- intent: t,
239
- icon: /* @__PURE__ */ s(Vt, { "aria-hidden": !0 }),
240
- tooltip: e ?? i("dataTable.print"),
241
- onClick: l,
242
- ...n
243
- }
244
- );
245
- }
246
- );
247
- Fe.displayName = "DataTable.Toolbar.Print";
248
- const Je = ({ placeholder: e, debounceMs: t = 150 }) => {
249
- const { t: n } = A(), { getApi: a } = V("DataTable.Toolbar.QuickSearch"), [i, l] = G(""), m = W(void 0);
250
- return K(() => (m.current && window.clearTimeout(m.current), m.current = window.setTimeout(() => {
251
- const u = a();
252
- u && u.setGridOption("quickFilterText", i);
253
- }, t), () => {
254
- m.current && window.clearTimeout(m.current);
255
- }), [i, t, a]), // Slot wrapper caps the search at a sensible legible width on desktop —
256
- // without this, TextInput's `w-full` lets the QuickSearch absorb the
257
- // entire FilterBar row and push trailing Actions onto a second line at
258
- // 1024 / 1280 / 1440. `min-w-0` lets the slot shrink below `24rem` when
259
- // the toolbar is squeezed on narrow viewports. There is no
260
- // `--toolbar-search-max` token in the kit yet — see this component's
261
- // summary for a follow-up note recommending we add one.
262
- /* @__PURE__ */ s("div", { className: "ds:w-full ds:max-w-[24rem] ds:min-w-0", children: /* @__PURE__ */ s(
263
- Se,
264
- {
265
- type: "search",
266
- size: "sm",
267
- value: i,
268
- onChange: (u) => l(u.target.value),
269
- placeholder: e ?? n("dataTable.quickSearch.placeholder", "Search…"),
270
- startAdornment: /* @__PURE__ */ s(Ie, { "aria-hidden": !0, className: "ds:size-4" }),
271
- clearable: !0,
272
- onClear: () => l(""),
273
- "aria-label": n("dataTable.quickSearch.label", "Quick search")
274
- }
275
- ) });
276
- };
277
- Je.displayName = "DataTable.Toolbar.QuickSearch";
278
- const Ne = B(
279
- ({ onRefresh: e, label: t, intent: n = "outline", ...a }, i) => {
280
- const { t: l } = A();
281
- return /* @__PURE__ */ s(
282
- oe,
283
- {
284
- ref: i,
285
- type: "button",
286
- intent: n,
287
- icon: /* @__PURE__ */ s(Bt, { "aria-hidden": !0 }),
288
- tooltip: t ?? l("dataTable.refresh", "Refresh"),
289
- onClick: e,
290
- ...a
291
- }
292
- );
293
- }
294
- );
295
- Ne.displayName = "DataTable.Toolbar.Refresh";
296
- function or(e, t) {
297
- if (!e || typeof e != "object") return "";
298
- const n = e, a = typeof n.type == "string" ? n.type : "", i = (u) => t(
299
- `dataTable.agGrid.${u}`,
300
- t(`dataTable.numberFilter.operators.${u}`, u)
301
- );
302
- if (a === "blank" || a === "notBlank") return i(a);
303
- const l = typeof n.filter == "string" || typeof n.filter == "number", m = typeof n.filterTo == "string" || typeof n.filterTo == "number";
304
- return a === "inRange" && (l || m) ? l && m ? `${n.filter} – ${n.filterTo}` : l ? `${t("dataTable.numberFilter.from", "From")} ${n.filter}` : `${t("dataTable.numberFilter.to", "To")} ${n.filterTo}` : l ? a ? `${i(a)} ${n.filter}` : String(n.filter) : typeof n.dateFrom == "string" ? typeof n.dateTo == "string" && n.dateTo ? `${n.dateFrom} – ${n.dateTo}` : String(n.dateFrom) : Array.isArray(n.values) ? n.values.map(String).join(", ") : "";
305
- }
306
- const Ze = () => {
307
- const { t: e } = A("ui"), { getApi: t } = V("DataTable.Toolbar.FilterChips"), [n, a] = G([]), [i, l] = G(""), m = D(() => {
308
- const p = t();
309
- if (!p) {
310
- a([]), l("");
311
- return;
312
- }
313
- const h = p.getFilterModel() ?? {}, S = p.getColumns() ?? [], C = [];
314
- for (const g of Object.keys(h)) {
315
- const T = S.find((R) => R.getColId() === g), w = p.getDisplayNameForColumn(T, null) ?? g;
316
- C.push({
317
- colId: g,
318
- headerName: w,
319
- text: or(h[g], e)
320
- });
321
- }
322
- a(C);
323
- const c = p.getGridOption("quickFilterText");
324
- l(typeof c == "string" ? c : "");
325
- }, [t, e]);
326
- if (K(() => {
327
- let p;
328
- const h = (c) => m(), S = (c) => {
329
- c.addEventListener("filterChanged", h), m(), p = () => c.removeEventListener("filterChanged", h);
330
- }, C = t();
331
- if (C)
332
- S(C);
333
- else {
334
- const c = window.setInterval(() => {
335
- const g = t();
336
- g && (window.clearInterval(c), S(g));
337
- }, 50);
338
- p = () => window.clearInterval(c);
339
- }
340
- return () => p == null ? void 0 : p();
341
- }, [t, m]), n.length + (i ? 1 : 0) === 0) return null;
342
- function f(p) {
343
- const h = t();
344
- h && (h.setColumnFilterModel(p, null), h.onFilterChanged());
345
- }
346
- function b() {
347
- const p = t();
348
- p && (p.setFilterModel(null), p.setGridOption("quickFilterText", ""), l(""));
349
- }
350
- return /* @__PURE__ */ L(
351
- "div",
352
- {
353
- role: "group",
354
- "aria-label": e("dataTable.filterChips.label", "Active filters"),
355
- className: "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]",
356
- children: [
357
- i && /* @__PURE__ */ s(
358
- $e,
359
- {
360
- label: `${e("dataTable.quickSearch.label", "Quick search")}: ${i}`,
361
- size: "sm",
362
- variant: "brand",
363
- fill: "solid",
364
- onRemove: () => {
365
- const p = t();
366
- p == null || p.setGridOption("quickFilterText", ""), l("");
367
- }
368
- }
369
- ),
370
- n.map((p) => /* @__PURE__ */ s(
371
- $e,
372
- {
373
- label: p.text ? `${p.headerName}: ${p.text}` : p.headerName,
374
- size: "sm",
375
- variant: "brand",
376
- fill: "solid",
377
- onRemove: () => f(p.colId)
378
- },
379
- p.colId
380
- )),
381
- /* @__PURE__ */ s(
382
- de,
383
- {
384
- type: "button",
385
- intent: "ghost",
386
- size: "sm",
387
- onClick: b,
388
- startIcon: /* @__PURE__ */ s(Be, { "aria-hidden": !0, className: "ds:size-4" }),
389
- children: e("dataTable.filterChips.clearAll", "Clear all")
390
- }
391
- )
392
- ]
393
- }
394
- );
395
- };
396
- Ze.displayName = "DataTable.Toolbar.FilterChips";
397
- const Ye = ({
398
- field: e,
399
- options: t,
400
- label: n
401
- }) => {
402
- const { t: a } = A(), { getApi: i } = V("DataTable.Toolbar.FacetFilter"), [l, m] = G(null);
403
- function u(f) {
404
- m(f);
405
- const b = i();
406
- if (b) {
407
- if (f === null) {
408
- b.setColumnFilterModel(e, null), b.onFilterChanged();
409
- return;
410
- }
411
- b.setColumnFilterModel(e, {
412
- type: "equals",
413
- filter: f
414
- }), b.onFilterChanged();
415
- }
416
- }
417
- return /* @__PURE__ */ s(
418
- "div",
419
- {
420
- role: "group",
421
- "aria-label": n ?? a("dataTable.facetFilter.label", "Filter"),
422
- className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)]",
423
- children: t.map((f) => {
424
- const b = l === f.value;
425
- return /* @__PURE__ */ s(
426
- de,
427
- {
428
- type: "button",
429
- size: "sm",
430
- intent: b ? "primary" : "secondary",
431
- "aria-pressed": b,
432
- onClick: () => u(f.value),
433
- children: f.label
434
- },
435
- String(f.value)
436
- );
437
- })
438
- }
439
- );
440
- };
441
- Ye.displayName = "DataTable.Toolbar.FacetFilter";
442
- const ir = ["csv", "xlsx", "pdf"];
443
- async function sr(e, t) {
444
- if (!e) return;
445
- const n = await import("./exceljs.min-D2MHbJsF.js").then((g) => g.e), a = new n.Workbook(), i = a.addWorksheet("Sheet1"), m = (e.getColumns() ?? []).filter((g) => g.isVisible());
446
- i.addRow(
447
- m.map(
448
- (g) => e.getDisplayNameForColumn(g, null) ?? g.getColId()
449
- )
450
- ), e.forEachNodeAfterFilterAndSort((g) => {
451
- g.data && i.addRow(
452
- m.map((T) => {
453
- const w = e.getCellValue({
454
- rowNode: g,
455
- colKey: T,
456
- useFormatter: !0
457
- });
458
- return w ?? "";
459
- })
460
- );
461
- });
462
- const u = ae("--muted", [240, 240, 240]), f = ae("--foreground", [30, 30, 30]), b = i.getRow(1), p = ([g, T, w]) => `${g.toString(16).padStart(2, "0")}${T.toString(16).padStart(2, "0")}${w.toString(16).padStart(2, "0")}`.toUpperCase();
463
- b.eachCell((g) => {
464
- g.font = { bold: !0, color: { argb: `FF${p(f)}` } }, g.fill = {
465
- type: "pattern",
466
- pattern: "solid",
467
- fgColor: { argb: `FF${p(u)}` }
468
- };
469
- });
470
- const h = await a.xlsx.writeBuffer(), S = new Blob([h], {
471
- type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
472
- }), C = URL.createObjectURL(S), c = document.createElement("a");
473
- c.href = C, c.download = t.fileName, document.body.appendChild(c), c.click(), document.body.removeChild(c), URL.revokeObjectURL(C);
474
- }
475
- const et = Ce(null);
476
- function lr() {
477
- const e = Re(et);
478
- if (!e)
479
- throw new Error(
480
- "DataTable.Toolbar.ExportMenu.Item must be rendered inside DataTable.Toolbar.ExportMenu."
481
- );
482
- return e;
483
- }
484
- const ke = B(
485
- ({ children: e, label: t, intent: n = "outline", ...a }, i) => {
486
- const { t: l } = A(), { getApi: m } = V("DataTable.Toolbar.ExportMenu"), u = j(() => ({ getApi: m }), [m]), f = e ?? ir.map((b) => /* @__PURE__ */ s(Ae, { format: b }, b));
487
- return /* @__PURE__ */ s(et.Provider, { value: u, children: /* @__PURE__ */ L(be.Root, { children: [
488
- /* @__PURE__ */ s(be.Trigger, { asChild: !0, children: /* @__PURE__ */ s(
489
- oe,
490
- {
491
- ref: i,
492
- type: "button",
493
- intent: n,
494
- icon: /* @__PURE__ */ s(ye, { "aria-hidden": !0 }),
495
- tooltip: t ?? l("dataTable.export.menu", "Export"),
496
- "aria-label": t ?? l("dataTable.export.menu", "Export"),
497
- "aria-haspopup": "menu",
498
- ...a
499
- }
500
- ) }),
501
- /* @__PURE__ */ s(be.Content, { align: "end", sideOffset: 4, children: f })
502
- ] }) });
503
- }
504
- );
505
- ke.displayName = "DataTable.Toolbar.ExportMenu";
506
- function dr(e, t) {
507
- return t === "csv" ? e("dataTable.export.csv", "Export CSV") : t === "xlsx" ? e("dataTable.export.xlsx", "Export Excel") : t === "pdf" ? e("dataTable.export.pdf", "Export PDF") : e("dataTable.export.custom", "Export");
508
- }
509
- function cr(e) {
510
- return e === "csv" ? /* @__PURE__ */ s(ye, { "aria-hidden": !0, className: "ds:size-4" }) : e === "xlsx" ? /* @__PURE__ */ s(Ut, { "aria-hidden": !0, className: "ds:size-4" }) : e === "pdf" ? /* @__PURE__ */ s(Ke, { "aria-hidden": !0, className: "ds:size-4" }) : /* @__PURE__ */ s(ye, { "aria-hidden": !0, className: "ds:size-4" });
511
- }
512
- const Ae = ({
513
- format: e,
514
- label: t,
515
- onClick: n,
516
- fileName: a
517
- }) => {
518
- const { t: i } = A(), { getApi: l } = lr(), m = D(() => {
519
- const u = l();
520
- if (e === "csv") {
521
- u == null || u.exportDataAsCsv();
522
- return;
523
- }
524
- if (e === "pdf") {
525
- Qe(u, {
526
- fileName: a ?? "data-table-export.pdf"
527
- });
528
- return;
529
- }
530
- if (e === "xlsx") {
531
- sr(u, {
532
- fileName: a ?? "data-table-export.xlsx"
533
- });
534
- return;
535
- }
536
- n == null || n(u);
537
- }, [e, a, n, l]);
538
- return /* @__PURE__ */ s(be.Item, { onSelect: m, children: /* @__PURE__ */ L("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
539
- cr(e),
540
- /* @__PURE__ */ s("span", { children: t ?? dr(i, e) })
541
- ] }) });
542
- };
543
- Ae.displayName = "DataTable.Toolbar.ExportMenu.Item";
544
- function ur(e) {
545
- if (!e) return [];
546
- const t = (a) => a.getPinned() === "left" ? 0 : a.getPinned() === "right" ? 2 : 1;
547
- return [...e.getAllGridColumns() ?? []].sort(
548
- (a, i) => t(a) - t(i)
549
- ).map((a) => a.getColDef().hide === void 0 && a.getColId().startsWith("ag-Grid-") ? null : {
550
- colId: a.getColId(),
551
- displayName: e.getDisplayNameForColumn(a, null) || a.getColId(),
552
- visible: a.isVisible()
553
- }).filter((a) => a !== null);
554
- }
555
- const Pe = B(
556
- function({ label: t, icon: n, footer: a, header: i, intent: l = "outline", ...m }, u) {
557
- const { t: f } = A(), { getApi: b, markColumnsUserTouched: p } = V(
558
- "DataTable.Toolbar.ColumnToggle"
559
- ), [h, S] = G(!1), [C, c] = G([]), [g, T] = G(null), [w, R] = G(null);
560
- K(() => {
561
- h && c(ur(b()));
562
- }, [h, b]);
563
- const I = D(
564
- (v, O) => {
565
- const M = b();
566
- M && (M.setColumnsVisible([v], O), p == null || p([v]), c(
567
- (N) => N.map(
568
- (F) => F.colId === v ? { ...F, visible: O } : F
569
- )
570
- ));
571
- },
572
- [b, p]
573
- ), ee = D(
574
- (v, O) => {
575
- if (v === O) return;
576
- const M = b();
577
- if (!M) return;
578
- c((z) => {
579
- const E = z.findIndex((Q) => Q.colId === v), ie = z.findIndex((Q) => Q.colId === O);
580
- if (E < 0 || ie < 0) return z;
581
- const X = [...z], [xe] = X.splice(E, 1);
582
- return X.splice(ie, 0, xe), X;
583
- });
584
- const N = M.getAllGridColumns(), F = N.find((z) => z.getColId() === v), q = N.find((z) => z.getColId() === O);
585
- if (!F || !q) return;
586
- F.getPinned() !== q.getPinned() && M.setColumnsPinned([v], q.getPinned() ?? null);
587
- const U = M.getAllGridColumns().findIndex((z) => z.getColId() === O);
588
- U >= 0 && M.moveColumns([v], U);
589
- },
590
- [b]
591
- ), _ = t ?? f("dataTable.columnToggle");
592
- return /* @__PURE__ */ L(me.Root, { open: h, onOpenChange: S, children: [
593
- /* @__PURE__ */ s(me.Trigger, { asChild: !0, children: /* @__PURE__ */ s(
594
- oe,
595
- {
596
- ref: u,
597
- type: "button",
598
- intent: l,
599
- icon: n ?? /* @__PURE__ */ s(tr, { "aria-hidden": !0 }),
600
- tooltip: _,
601
- "aria-label": _,
602
- "aria-haspopup": "dialog",
603
- ...m
604
- }
605
- ) }),
606
- /* @__PURE__ */ L(
607
- me.Content,
608
- {
609
- size: "sm",
610
- align: "end",
611
- className: "ds:flex ds:max-h-[var(--radix-popover-content-available-height)] ds:flex-col",
612
- children: [
613
- /* @__PURE__ */ s(me.Heading, { children: _ }),
614
- i ? /* @__PURE__ */ s("div", { className: "ds:mb-[var(--spacing-xs)] ds:border-b ds:border-[color:var(--border)] ds:pb-[var(--spacing-sm)]", children: i }) : null,
615
- /* @__PURE__ */ s(
616
- "ul",
617
- {
618
- className: "ds:flex ds:min-h-0 ds:flex-col ds:gap-[var(--spacing-xs)] ds:overflow-y-auto",
619
- "aria-label": _,
620
- children: C.map((v) => {
621
- const O = g === v.colId, M = w === v.colId && g !== v.colId;
622
- return /* @__PURE__ */ L(
623
- "li",
624
- {
625
- draggable: !0,
626
- onDragStart: (N) => {
627
- T(v.colId), N.dataTransfer.effectAllowed = "move", N.dataTransfer.setData("text/plain", v.colId);
628
- },
629
- onDragOver: (N) => {
630
- N.preventDefault(), N.dataTransfer.dropEffect = "move", R(v.colId);
631
- },
632
- onDragLeave: () => {
633
- R(
634
- (N) => N === v.colId ? null : N
635
- );
636
- },
637
- onDrop: (N) => {
638
- N.preventDefault();
639
- const F = N.dataTransfer.getData("text/plain");
640
- F && ee(F, v.colId), T(null), R(null);
641
- },
642
- onDragEnd: () => {
643
- T(null), R(null);
644
- },
645
- className: [
646
- "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",
647
- O ? "ds:opacity-50" : "",
648
- M ? "ds:bg-[color:color-mix(in_srgb,var(--primary)_8%,transparent)]" : ""
649
- ].filter(Boolean).join(" "),
650
- children: [
651
- /* @__PURE__ */ s(
652
- "span",
653
- {
654
- "aria-hidden": "true",
655
- className: "ds:cursor-grab ds:text-[color:var(--muted-foreground)] ds:active:cursor-grabbing",
656
- children: /* @__PURE__ */ s(Ht, { className: "ds:size-4" })
657
- }
658
- ),
659
- /* @__PURE__ */ s(
660
- Wt,
661
- {
662
- label: v.displayName,
663
- checked: v.visible,
664
- onCheckedChange: (N) => I(v.colId, N === !0)
665
- }
666
- )
667
- ]
668
- },
669
- v.colId
670
- );
671
- })
672
- }
673
- ),
674
- a ? /* @__PURE__ */ s("div", { className: "ds:mt-[var(--spacing-xs)] ds:border-t ds:border-[color:var(--border)] ds:pt-[var(--spacing-sm)]", children: a }) : null
675
- ]
676
- }
677
- )
678
- ] });
679
- }
680
- );
681
- Pe.displayName = "DataTable.Toolbar.ColumnToggle";
682
- const tt = B(
683
- ({ label: e, icon: t, onClick: n, variant: a = "default", size: i = "sm", ...l }, m) => {
684
- const { t: u } = A(), { getApi: f, selectionCount: b } = V(
685
- "DataTable.Toolbar.BulkAction"
686
- );
687
- return b === 0 ? null : /* @__PURE__ */ L(
688
- de,
689
- {
690
- ref: m,
691
- type: "button",
692
- intent: a === "destructive" ? "destructive" : "secondary",
693
- size: i,
694
- startIcon: rr(t),
695
- onClick: () => n(f()),
696
- "aria-label": `${e} (${u("dataTable.bulkAction", { count: b })})`,
697
- ...l,
698
- children: [
699
- /* @__PURE__ */ s("span", { children: e }),
700
- /* @__PURE__ */ s(
701
- "span",
702
- {
703
- "aria-hidden": "true",
704
- className: "ds:ms-[var(--spacing-xs)] ds:opacity-80",
705
- children: u("dataTable.bulkAction", { count: b })
706
- }
707
- )
708
- ]
709
- }
710
- );
711
- }
712
- );
713
- tt.displayName = "DataTable.Toolbar.BulkAction";
714
- for (const e of [
715
- Ee,
716
- De,
717
- Fe,
718
- Ne,
719
- ke,
720
- Pe
721
- ])
722
- e.rendersIconButton = !0;
723
- const pr = Object.assign(ke, {
724
- Item: Ae
725
- }), he = Object.assign(Ve, {
726
- FilterBar: Ue,
727
- Actions: Xe,
728
- /** @deprecated Use `Toolbar.ExportMenu` with a `csv` item. */
729
- ExportCsv: Ee,
730
- /** @deprecated Use `Toolbar.ExportMenu` with a `pdf` item. */
731
- ExportPdf: De,
732
- Print: Fe,
733
- ColumnToggle: Pe,
734
- BulkAction: tt,
735
- QuickSearch: Je,
736
- Refresh: Ne,
737
- FilterChips: Ze,
738
- FacetFilter: Ye,
739
- ExportMenu: pr
740
- }), fr = [
741
- "contains",
742
- "equals",
743
- "startsWith",
744
- "endsWith",
745
- "notContains"
746
- ];
747
- function mr(e) {
748
- const t = new Intl.Collator(e, {
749
- sensitivity: "base",
750
- usage: "search"
751
- });
752
- function n(a, i) {
753
- if (i.length === 0) return 0;
754
- if (i.length > a.length) return -1;
755
- for (let l = 0; l <= a.length - i.length; l += 1)
756
- if (t.compare(a.slice(l, l + i.length), i) === 0)
757
- return l;
758
- return -1;
759
- }
760
- return {
761
- equals: (a, i) => t.compare(a, i) === 0,
762
- contains: (a, i) => n(a, i) !== -1,
763
- startsWith: (a, i) => i.length <= a.length && t.compare(a.slice(0, i.length), i) === 0,
764
- endsWith: (a, i) => i.length <= a.length && t.compare(
765
- a.slice(a.length - i.length),
766
- i
767
- ) === 0
768
- };
769
- }
770
- function gr(e) {
771
- return e == null ? null : typeof e == "string" ? e : String(e);
772
- }
773
- function br(e) {
774
- const { model: t, onModelChange: n, getValue: a, placeholder: i, defaultOperator: l } = e, { t: m } = A("ui"), u = (t == null ? void 0 : t.type) ?? l ?? "contains", [f, b] = G(u), [p, h] = G((t == null ? void 0 : t.filter) ?? "");
775
- K(() => {
776
- b((t == null ? void 0 : t.type) ?? l ?? "contains"), h((t == null ? void 0 : t.filter) ?? "");
777
- }, [t, l]);
778
- const S = j(() => mr(Xt.language), []);
779
- _t({
780
- doesFilterPass: (w) => {
781
- const R = t;
782
- if (!R || R.filter === "") return !0;
783
- const I = gr(a(w.node));
784
- if (I === null) return !1;
785
- switch (R.type) {
786
- case "equals":
787
- return S.equals(I, R.filter);
788
- case "contains":
789
- return S.contains(I, R.filter);
790
- case "startsWith":
791
- return S.startsWith(I, R.filter);
792
- case "endsWith":
793
- return S.endsWith(I, R.filter);
794
- case "notContains":
795
- return !S.contains(I, R.filter);
796
- default:
797
- return !0;
798
- }
799
- }
800
- });
801
- function C() {
802
- if (p.trim() === "") {
803
- n(null);
804
- return;
805
- }
806
- n({ type: f, filter: p });
807
- }
808
- function c() {
809
- h(""), b(l ?? "contains"), n(null);
810
- }
811
- const g = fr.map(
812
- (w) => ({
813
- value: w,
814
- label: m(`dataTable.textFilter.operators.${w}`)
815
- })
816
- ), T = i ?? m("dataTable.textFilter.placeholder");
817
- return /* @__PURE__ */ L(
818
- "div",
819
- {
820
- "data-component": "text-filter",
821
- className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-sm)] ds:min-w-[240px]",
822
- children: [
823
- /* @__PURE__ */ s(
824
- Qt,
825
- {
826
- size: "sm",
827
- options: g,
828
- value: f,
829
- onValueChange: (w) => {
830
- w !== "" && b(w);
831
- },
832
- "aria-label": m("dataTable.textFilter.operators.contains")
833
- }
834
- ),
835
- /* @__PURE__ */ s(
836
- Se,
837
- {
838
- size: "sm",
839
- value: p,
840
- onChange: (w) => h(w.target.value),
841
- onKeyDown: (w) => {
842
- w.key === "Enter" && (w.preventDefault(), C());
843
- },
844
- placeholder: T,
845
- "aria-label": T,
846
- startAdornment: /* @__PURE__ */ s(Ie, { "aria-hidden": "true", className: "ds:size-4" })
847
- }
848
- ),
849
- /* @__PURE__ */ L("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: [
850
- /* @__PURE__ */ s(de, { intent: "ghost", size: "sm", onClick: c, type: "button", children: m("dataTable.textFilter.clear") }),
851
- /* @__PURE__ */ s(de, { intent: "primary", size: "sm", onClick: C, type: "button", children: m("dataTable.textFilter.apply") })
852
- ] })
853
- ]
854
- }
855
- );
856
- }
857
- function hr(e) {
858
- var h, S;
859
- const { model: t, onModelChange: n, column: a } = e, { t: i } = A("ui"), l = ((S = (h = a == null ? void 0 : a.getColDef) == null ? void 0 : h.call(a)) == null ? void 0 : S.filterParams) ?? {}, m = l.defaultOperator ?? "contains", u = l.placeholder ?? i("dataTable.textFilter.placeholder"), [f, b] = G((t == null ? void 0 : t.filter) ?? "");
860
- K(() => {
861
- b((t == null ? void 0 : t.filter) ?? "");
862
- }, [t == null ? void 0 : t.filter]), K(() => {
863
- if (f === ((t == null ? void 0 : t.filter) ?? "")) return;
864
- const C = setTimeout(() => {
865
- if (f === "") {
866
- t && n(null);
867
- return;
868
- }
869
- n({ type: m, filter: f });
870
- }, 200);
871
- return () => clearTimeout(C);
872
- }, [f, m, t, n]);
873
- function p() {
874
- b(""), t && n(null);
875
- }
876
- return /* @__PURE__ */ s("div", { "data-component": "text-floating-filter", className: "ds:w-full", children: /* @__PURE__ */ s(
877
- Se,
878
- {
879
- size: "sm",
880
- value: f,
881
- onChange: (C) => b(C.target.value),
882
- placeholder: u,
883
- "aria-label": u,
884
- startAdornment: /* @__PURE__ */ s(Ie, { "aria-hidden": "true", className: "ds:size-4" }),
885
- endAdornment: f.length > 0 ? /* @__PURE__ */ s(
886
- "button",
887
- {
888
- type: "button",
889
- "aria-label": i("dataTable.textFilter.clear"),
890
- onClick: p,
891
- 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",
892
- children: /* @__PURE__ */ s(Be, { "aria-hidden": "true", className: "ds:size-4" })
893
- }
894
- ) : void 0
895
- }
896
- ) });
897
- }
898
- const yr = /* @__PURE__ */ new Set(["presentation", "none"]), We = '[role="presentation"][aria-hidden], [role="none"][aria-hidden]';
899
- function ge(e) {
900
- const t = e.getAttribute("role");
901
- t === null || !yr.has(t) || e.getAttribute("aria-hidden") === "false" && e.removeAttribute("aria-hidden");
902
- }
903
- function xr(e, t = !0) {
904
- K(() => {
905
- const n = e.current;
906
- if (!t || !n || typeof MutationObserver > "u") return;
907
- (() => {
908
- for (const l of n.querySelectorAll(We)) ge(l);
909
- })();
910
- const i = new MutationObserver((l) => {
911
- for (const m of l)
912
- if (m.type === "attributes")
913
- ge(m.target);
914
- else
915
- for (const u of m.addedNodes)
916
- if (u instanceof Element) {
917
- ge(u);
918
- for (const f of u.querySelectorAll(We))
919
- ge(f);
920
- }
921
- });
922
- return i.observe(n, {
923
- subtree: !0,
924
- childList: !0,
925
- attributes: !0,
926
- attributeFilter: ["aria-hidden"]
927
- }), () => i.disconnect();
928
- }, [e, t]);
929
- }
930
- const ne = "__dsDetailOf", Tr = "ds-data-table-expanded-row", rt = "::detail", wr = 'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])';
931
- function $(e) {
932
- return typeof e == "object" && e !== null && typeof e[ne] == "string";
933
- }
934
- function vr(e) {
935
- return `${e}${rt}`;
936
- }
937
- function fa(e) {
938
- return e.endsWith(rt);
939
- }
940
- function Cr(e, t) {
941
- return { ...e, [ne]: t };
942
- }
943
- const at = Ce(
944
- null
945
- );
946
- function Rr(e) {
947
- var c;
948
- const t = Re(
949
- at
950
- ), { t: n } = A(), a = W(null), { data: i, node: l, api: m } = e, u = $(i), f = t == null ? void 0 : t.heights, b = l.id, p = W(t);
951
- if (p.current = t, K(() => {
952
- const g = a.current;
953
- if (!g || !u || !f || b == null) return;
954
- let T = f.get(b) ?? 0;
955
- const w = () => {
956
- const I = Math.ceil(g.getBoundingClientRect().height);
957
- I <= 0 || I === T || (T = I, f.set(b, I), l.setRowHeight(I), m.onRowHeightChanged());
958
- };
959
- w();
960
- const R = new ResizeObserver(w);
961
- return R.observe(g), () => R.disconnect();
962
- }, [m, b, f, u, l]), K(() => {
963
- const g = a.current, T = g == null ? void 0 : g.parentElement;
964
- if (!g || !T || !u) return;
965
- const w = (R) => {
966
- var I, ee;
967
- R.target !== T || R.defaultPrevented || (R.key === "Escape" ? (R.stopPropagation(), (ee = (I = p.current) == null ? void 0 : I.onExpandedRowChange) == null || ee.call(I, null)) : R.key === "Enter" && (R.preventDefault(), (g.querySelector(wr) ?? g).focus()));
968
- };
969
- return T.addEventListener("keydown", w), () => T.removeEventListener("keydown", w);
970
- }, [u]), !u) {
971
- const g = t == null ? void 0 : t.fallbackRenderer;
972
- return g ? /* @__PURE__ */ s(g, { ...e }) : null;
973
- }
974
- const h = i[ne];
975
- let S;
976
- if (t != null && t.expanded && t.expanded.id === h)
977
- S = t.expanded.row;
978
- else {
979
- const { [ne]: g, ...T } = i;
980
- S = T;
981
- }
982
- return /* @__PURE__ */ L(
983
- "div",
984
- {
985
- ref: a,
986
- role: "gridcell",
987
- tabIndex: -1,
988
- "data-component": "data-table-expanded-row",
989
- "data-expanded-row-of": h,
990
- className: "ds-data-table-expanded-row-surface",
991
- onKeyDown: (g) => {
992
- var T;
993
- g.key !== "Escape" || g.defaultPrevented || (g.stopPropagation(), (T = t == null ? void 0 : t.onExpandedRowChange) == null || T.call(t, null));
994
- },
995
- children: [
996
- /* @__PURE__ */ s("span", { className: "ds:sr-only", children: n("dataTable.expandedRow") }),
997
- (c = t == null ? void 0 : t.renderExpandedRow) == null ? void 0 : c.call(t, S)
998
- ]
999
- }
1000
- );
1001
- }
1002
- const Sr = {
1003
- id: "data-table",
1004
- capabilities: [
1005
- "select_single",
1006
- "select_multiple",
1007
- "range_pick",
1008
- "filter",
1009
- "sort",
1010
- "paginate"
1011
- ],
1012
- state: {
1013
- selection: {
1014
- type: "string[]",
1015
- descriptionKey: "ui.agent.dataTable.state.selection",
1016
- description: "Row ids of currently-selected rows.",
1017
- read: (e) => e.getSelection()
1018
- },
1019
- filter: {
1020
- type: "object",
1021
- descriptionKey: "ui.agent.dataTable.state.filter",
1022
- description: "Current ag-grid filter model, keyed by column id.",
1023
- read: (e) => e.getFilter()
1024
- },
1025
- sort: {
1026
- type: "Array<{ colId, sort }>",
1027
- descriptionKey: "ui.agent.dataTable.state.sort",
1028
- description: "Active sort, in priority order.",
1029
- read: (e) => e.getSort()
1030
- },
1031
- currentPage: {
1032
- type: "number",
1033
- descriptionKey: "ui.agent.dataTable.state.currentPage",
1034
- description: "Zero-indexed page number.",
1035
- read: (e) => e.getCurrentPage()
1036
- },
1037
- expandedRowId: {
1038
- type: "string | null",
1039
- descriptionKey: "ui.agent.dataTable.state.expandedRowId",
1040
- description: "Id of the row whose inline detail is open (expandable row), or null.",
1041
- read: (e) => e.getExpandedRowId()
1042
- }
1043
- },
1044
- actions: {
1045
- select_rows: {
1046
- // Transient grid selection (data-table convention) — stays read.
1047
- safety: "read",
1048
- argsType: "{ ids: string[] }",
1049
- argsSchema: {
1050
- type: "object",
1051
- properties: {
1052
- ids: {
1053
- type: "array",
1054
- items: { type: "string" },
1055
- description: "Row ids to select (replaces the current selection)."
1056
- }
1057
- },
1058
- required: ["ids"]
1059
- },
1060
- idempotent: !0,
1061
- descriptionKey: "ui.agent.dataTable.actions.selectRows",
1062
- description: "Replace the current selection with the given row ids.",
1063
- examples: [
1064
- { args: { ids: ["r-1", "r-2"] }, note: "Select the first two rows." }
1065
- ],
1066
- invoke: (e, t) => {
1067
- e.setSelection(t.ids);
1068
- }
1069
- },
1070
- select_range: {
1071
- safety: "read",
1072
- argsType: "{ fromId: string, toId: string }",
1073
- argsSchema: {
1074
- type: "object",
1075
- properties: {
1076
- fromId: { type: "string", description: "Start row id (inclusive)." },
1077
- toId: { type: "string", description: "End row id (inclusive)." }
1078
- },
1079
- required: ["fromId", "toId"]
1080
- },
1081
- idempotent: !0,
1082
- descriptionKey: "ui.agent.dataTable.actions.selectRange",
1083
- description: "Select every row between fromId and toId, inclusive, in current sort order.",
1084
- invoke: (e, t) => {
1085
- e.selectRange(t.fromId, t.toId);
1086
- }
1087
- },
1088
- clear_selection: {
1089
- safety: "read",
1090
- idempotent: !0,
1091
- descriptionKey: "ui.agent.dataTable.actions.clearSelection",
1092
- description: "Deselect all rows.",
1093
- invoke: (e) => {
1094
- e.clearSelection();
1095
- }
1096
- },
1097
- get_selection: {
1098
- safety: "read",
1099
- returns: "string[]",
1100
- returnsSchema: { type: "array", items: { type: "string" } },
1101
- idempotent: !0,
1102
- descriptionKey: "ui.agent.dataTable.actions.getSelection",
1103
- description: "Return the row ids of the currently-selected rows.",
1104
- invoke: (e) => e.getSelection()
1105
- },
1106
- apply_filter: {
1107
- safety: "read",
1108
- argsType: "{ model: Record<string, unknown> }",
1109
- argsSchema: {
1110
- type: "object",
1111
- properties: {
1112
- model: {
1113
- type: "object",
1114
- description: "ag-grid filter model keyed by column id. Opaque per-column filter shapes; replaces the current model.",
1115
- additionalProperties: !0
1116
- }
1117
- },
1118
- required: ["model"]
1119
- },
1120
- idempotent: !0,
1121
- descriptionKey: "ui.agent.dataTable.actions.applyFilter",
1122
- description: "Replace the filter model with the given object.",
1123
- invoke: (e, t) => {
1124
- e.setFilter(t.model);
1125
- }
1126
- },
1127
- sort_by: {
1128
- safety: "read",
1129
- argsType: "{ model: DataTableSortEntry[] }",
1130
- argsSchema: {
1131
- type: "object",
1132
- properties: {
1133
- model: {
1134
- type: "array",
1135
- description: "Sort entries in priority order.",
1136
- items: {
1137
- type: "object",
1138
- properties: {
1139
- colId: { type: "string", description: "Column id to sort by." },
1140
- sort: { enum: ["asc", "desc"], description: "Sort direction." }
1141
- },
1142
- required: ["colId", "sort"]
1143
- }
1144
- }
1145
- },
1146
- required: ["model"]
1147
- },
1148
- idempotent: !0,
1149
- descriptionKey: "ui.agent.dataTable.actions.sortBy",
1150
- description: "Replace the active sort with the given list (priority order).",
1151
- examples: [
1152
- {
1153
- args: { model: [{ colId: "name", sort: "asc" }] },
1154
- note: "Sort by name ascending."
1155
- }
1156
- ],
1157
- invoke: (e, t) => {
1158
- e.setSort(t.model);
1159
- }
1160
- },
1161
- go_to_page: {
1162
- safety: "read",
1163
- argsType: "{ page: number }",
1164
- argsSchema: {
1165
- type: "object",
1166
- properties: {
1167
- page: {
1168
- type: "integer",
1169
- minimum: 0,
1170
- description: "Zero-indexed page number."
1171
- }
1172
- },
1173
- required: ["page"]
1174
- },
1175
- idempotent: !0,
1176
- descriptionKey: "ui.agent.dataTable.actions.goToPage",
1177
- description: "Navigate to the given zero-indexed page.",
1178
- invoke: (e, t) => {
1179
- e.goToPage(t.page);
1180
- }
1181
- }
1182
- },
1183
- domHooks: {
1184
- root: {
1185
- attr: "data-component",
1186
- value: "data-table",
1187
- description: "Marks the DataTable wrapper."
1188
- },
1189
- instanceId: {
1190
- attr: "data-component-id",
1191
- sourceProp: "gridId",
1192
- description: "Sourced from the gridId prop. Required to address a specific table from the agent."
1193
- },
1194
- item: {
1195
- attr: "row-id",
1196
- description: 'Native ag-grid row-id attribute on each rendered record row. When an expandable row is open, one extra full-width row with row-id `<parentId>::detail` is the accordion detail, not a record — its cell carries data-component="data-table-expanded-row" and data-expanded-row-of="<parentId>"; skip it when enumerating rows (isExpandedRowDetailId). Selection is performed via the curated handle, not by DOM mutation.'
1197
- }
1198
- }
1199
- };
1200
- Lt.registerModules([qt]);
1201
- const Ir = Gt("ag-theme-alfadocs ds:w-full", {
1202
- variants: {
1203
- density: {
1204
- default: "",
1205
- compact: "data-table-compact",
1206
- expanded: "data-table-expanded"
1207
- },
1208
- bordered: {
1209
- true: "",
1210
- false: "ds:[--ag-borders:none]"
1211
- }
1212
- },
1213
- defaultVariants: {
1214
- density: "default",
1215
- bordered: !0
1216
- }
1217
- });
1218
- function Er() {
1219
- const { t: e } = A();
1220
- return j(
1221
- () => ({
1222
- // Filter strings
1223
- contains: e("dataTable.agGrid.contains"),
1224
- notContains: e("dataTable.agGrid.notContains"),
1225
- equals: e("dataTable.agGrid.equals"),
1226
- notEqual: e("dataTable.agGrid.notEqual"),
1227
- startsWith: e("dataTable.agGrid.startsWith"),
1228
- endsWith: e("dataTable.agGrid.endsWith"),
1229
- lessThan: e("dataTable.agGrid.lessThan"),
1230
- greaterThan: e("dataTable.agGrid.greaterThan"),
1231
- inRange: e("dataTable.agGrid.inRange"),
1232
- blank: e("dataTable.agGrid.blank"),
1233
- notBlank: e("dataTable.agGrid.notBlank"),
1234
- filterOoo: e("dataTable.agGrid.filterOoo"),
1235
- applyFilter: e("dataTable.agGrid.applyFilter"),
1236
- resetFilter: e("dataTable.agGrid.resetFilter"),
1237
- noRowsToShow: e("dataTable.agGrid.noRowsToShow"),
1238
- selectAll: e("dataTable.agGrid.selectAll"),
1239
- // Pagination
1240
- page: e("dataTable.page"),
1241
- of: e("dataTable.of"),
1242
- to: e("dataTable.to"),
1243
- nextPage: e("dataTable.nextPage"),
1244
- previousPage: e("dataTable.previousPage"),
1245
- firstPage: e("dataTable.firstPage"),
1246
- lastPage: e("dataTable.lastPage"),
1247
- pageSize: e("dataTable.pageSize")
1248
- }),
1249
- [e]
1250
- );
1251
- }
1252
- function Dr() {
1253
- return /* @__PURE__ */ s(
1254
- "div",
1255
- {
1256
- role: "status",
1257
- "aria-live": "polite",
1258
- className: "ds:flex ds:w-full ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-md)]",
1259
- children: Array.from({ length: 5 }).map((e, t) => /* @__PURE__ */ s(
1260
- Mt,
1261
- {
1262
- variant: "rectangular",
1263
- className: "ds:h-[var(--min-target-size)] ds:w-full"
1264
- },
1265
- t
1266
- ))
1267
- }
1268
- );
1269
- }
1270
- function Fr() {
1271
- const { t: e } = A();
1272
- return /* @__PURE__ */ s(
1273
- zt,
1274
- {
1275
- variant: "no-results",
1276
- size: "sm",
1277
- title: e("dataTable.noRows"),
1278
- description: e("dataTable.noRowsDescription")
1279
- }
1280
- );
1281
- }
1282
- function Nr(e) {
1283
- return e.map(({ pinned: t, ...n }) => n);
1284
- }
1285
- function kr(e) {
1286
- return e.map(({ hide: t, pinned: n, ...a }) => a);
1287
- }
1288
- function Ar(e, t) {
1289
- try {
1290
- const n = localStorage.getItem(`data-table-col-state:${e}`);
1291
- if (!n) return null;
1292
- const a = JSON.parse(n);
1293
- if (Array.isArray(a))
1294
- return {
1295
- state: kr(a),
1296
- touched: []
1297
- };
1298
- if (typeof a != "object" || a === null) return null;
1299
- const i = a;
1300
- return i.v !== 2 || !Array.isArray(i.state) ? null : {
1301
- state: i.dir === t ? i.state : Nr(i.state),
1302
- touched: Array.isArray(i.touched) ? i.touched.filter((l) => typeof l == "string") : []
1303
- };
1304
- } catch {
1305
- return null;
1306
- }
1307
- }
1308
- function Pr(e, t, n, a) {
1309
- try {
1310
- const i = {
1311
- v: 2,
1312
- dir: n,
1313
- state: t.getColumnState(),
1314
- touched: [...a]
1315
- };
1316
- localStorage.setItem(
1317
- `data-table-col-state:${e}`,
1318
- JSON.stringify(i)
1319
- );
1320
- } catch {
1321
- }
1322
- }
1323
- const Or = /* @__PURE__ */ new Set([
1324
- "api",
1325
- "flex",
1326
- "gridInitializing",
1327
- "gridOptionsChanged",
1328
- "autosizeColumns",
1329
- "sizeColumnsToFit"
1330
- ]);
1331
- function Mr(e, t) {
1332
- const {
1333
- columnDefs: n,
1334
- rowData: a,
1335
- rowSelection: i,
1336
- pagination: l = !1,
1337
- paginationPageSize: m = 25,
1338
- paginationPageSizeSelector: u = [10, 25, 50, 100],
1339
- gridId: f,
1340
- onSelectionChanged: b,
1341
- onSortChanged: p,
1342
- onFilterChanged: h,
1343
- noRowsOverlay: S,
1344
- loadingOverlay: C,
1345
- gridOptions: c,
1346
- density: g,
1347
- bordered: T,
1348
- heightClass: w = "ds:h-[500px]",
1349
- className: R,
1350
- getRowClass: I,
1351
- pinnedBottomRowData: ee,
1352
- printMode: _ = !1,
1353
- expandedRowId: v,
1354
- renderExpandedRow: O,
1355
- onExpandedRowChange: M,
1356
- children: N
1357
- } = e, F = v !== void 0 || O !== void 0, q = c == null ? void 0 : c.getRowId;
1358
- if (F && !q)
1359
- throw new Error(
1360
- "DataTable: `expandedRowId` / `renderExpandedRow` require `gridOptions.getRowId` — the expanded row is addressed by row id, not by index."
1361
- );
1362
- const { t: U, i18n: z } = A(), E = W(null), ie = W(null);
1363
- xr(ie);
1364
- const [X, xe] = G(0), [Q, Te] = G(""), ot = Er(), Oe = W(v);
1365
- Oe.current = v;
1366
- const we = j(
1367
- () => ({
1368
- getSelection: () => {
1369
- var d;
1370
- const r = (d = E.current) == null ? void 0 : d.api;
1371
- if (!r) return [];
1372
- const o = [];
1373
- for (const y of r.getSelectedNodes())
1374
- y.id != null && !$(y.data) && o.push(y.id);
1375
- return o;
1376
- },
1377
- setSelection: (r) => {
1378
- var y;
1379
- const o = (y = E.current) == null ? void 0 : y.api;
1380
- if (!o) return;
1381
- const d = new Set(r);
1382
- o.forEachNode((x) => {
1383
- x.id != null && x.setSelected(d.has(x.id));
1384
- });
1385
- },
1386
- selectRange: (r, o) => {
1387
- var qe;
1388
- const d = (qe = E.current) == null ? void 0 : qe.api;
1389
- if (!d) return;
1390
- const y = [];
1391
- d.forEachNodeAfterFilterAndSort((Y) => {
1392
- Y.id != null && !$(Y.data) && y.push(Y.id);
1393
- });
1394
- const x = y.indexOf(r), k = y.indexOf(o);
1395
- if (x < 0 || k < 0) return;
1396
- const [P, re] = x <= k ? [x, k] : [k, x], Z = new Set(y.slice(P, re + 1));
1397
- d.forEachNode((Y) => {
1398
- Y.id != null && Y.setSelected(Z.has(Y.id));
1399
- });
1400
- },
1401
- clearSelection: () => {
1402
- var r, o;
1403
- (o = (r = E.current) == null ? void 0 : r.api) == null || o.deselectAll();
1404
- },
1405
- getFilter: () => {
1406
- var r, o;
1407
- return ((o = (r = E.current) == null ? void 0 : r.api) == null ? void 0 : o.getFilterModel()) ?? {};
1408
- },
1409
- setFilter: (r) => {
1410
- var o, d;
1411
- (d = (o = E.current) == null ? void 0 : o.api) == null || d.setFilterModel(r);
1412
- },
1413
- getSort: () => {
1414
- var o;
1415
- const r = (o = E.current) == null ? void 0 : o.api;
1416
- return r ? r.getColumnState().filter((d) => d.sort === "asc" || d.sort === "desc").map((d) => ({ colId: d.colId, sort: d.sort })) : [];
1417
- },
1418
- setSort: (r) => {
1419
- var y;
1420
- const o = (y = E.current) == null ? void 0 : y.api;
1421
- if (!o) return;
1422
- const d = o.getColumnState().map((x) => {
1423
- const k = r.find((P) => P.colId === x.colId);
1424
- return { ...x, sort: k ? k.sort : null };
1425
- });
1426
- o.applyColumnState({ state: d, defaultState: { sort: null } });
1427
- },
1428
- getCurrentPage: () => {
1429
- var r, o;
1430
- return ((o = (r = E.current) == null ? void 0 : r.api) == null ? void 0 : o.paginationGetCurrentPage()) ?? 0;
1431
- },
1432
- goToPage: (r) => {
1433
- var o, d;
1434
- (d = (o = E.current) == null ? void 0 : o.api) == null || d.paginationGoToPage(r);
1435
- },
1436
- getExpandedRowId: () => Oe.current ?? null,
1437
- getUserTouchedColumns: () => [...te.current],
1438
- markColumnsUserTouched: (r) => Me.current(r),
1439
- getRawApi: () => {
1440
- var r;
1441
- return (r = E.current) == null ? void 0 : r.api;
1442
- }
1443
- }),
1444
- []
1445
- ), ce = W(/* @__PURE__ */ new Map()), te = W(/* @__PURE__ */ new Set()), Me = W(
1446
- () => {
1447
- }
1448
- );
1449
- Ot(t, () => we, [we]), Jt(Sr, we, f);
1450
- const ze = z.dir() === "rtl", it = a === void 0, st = Zt(), { resolvedTheme: Ge } = Yt(), lt = (Ge === "light-accessible" || Ge === "dark-accessible") && g === "compact" ? "default" : g, dt = j(() => {
1451
- if (!i) return;
1452
- const r = (o) => !$(o.data);
1453
- return i === "single" ? {
1454
- mode: "singleRow",
1455
- enableClickSelection: !1,
1456
- isRowSelectable: r
1457
- } : {
1458
- mode: "multiRow",
1459
- headerCheckbox: !0,
1460
- checkboxes: !0,
1461
- enableClickSelection: !1,
1462
- isRowSelectable: r
1463
- };
1464
- }, [i]), ue = ze ? "rtl" : "ltr", H = D(
1465
- (r, o, d) => {
1466
- const y = new Set(o);
1467
- for (const x of r.getColumnState()) {
1468
- if (!y.has(x.colId)) continue;
1469
- const k = ce.current.get(x.colId) ?? {};
1470
- for (const P of d) k[P] = x[P];
1471
- ce.current.set(x.colId, k);
1472
- }
1473
- },
1474
- []
1475
- ), se = D(
1476
- (r) => {
1477
- f && Pr(f, r, ue, te.current);
1478
- },
1479
- [f, ue]
1480
- ), _e = D(
1481
- (r) => {
1482
- var d;
1483
- for (const y of r) te.current.add(y);
1484
- const o = (d = E.current) == null ? void 0 : d.api;
1485
- o && (H(o, r, ["hide"]), se(o));
1486
- },
1487
- [se, H]
1488
- );
1489
- Me.current = _e;
1490
- const ct = D(() => {
1491
- var d;
1492
- if (!((d = E.current) != null && d.api)) return;
1493
- const r = E.current.api, o = f ? Ar(f, ue) : null;
1494
- if (o) {
1495
- for (const y of o.touched) te.current.add(y);
1496
- r.applyColumnState({
1497
- state: o.state,
1498
- applyOrder: !0
1499
- }), H(r, o.touched, ["hide"]);
1500
- }
1501
- }, [f, ue, H]), ut = D(
1502
- (r) => {
1503
- var d;
1504
- if (r.source !== "gridOptionsChanged") return;
1505
- const o = (d = E.current) == null ? void 0 : d.api;
1506
- !o || ce.current.size === 0 || o.applyColumnState({
1507
- state: [...ce.current].map(([y, x]) => ({
1508
- colId: y,
1509
- ...x
1510
- }))
1511
- });
1512
- },
1513
- []
1514
- ), pe = D(
1515
- (r) => {
1516
- var y;
1517
- const o = (y = E.current) == null ? void 0 : y.api;
1518
- if (!o) return;
1519
- const d = (r.columns ?? (r.column ? [r.column] : [])).map((x) => x.getColId());
1520
- if (r.source && Or.has(r.source)) {
1521
- if (r.source === "api" && "visible" in r) {
1522
- const x = d.filter(
1523
- (k) => te.current.has(k)
1524
- );
1525
- x.length > 0 && (H(o, x, ["hide"]), se(o));
1526
- }
1527
- return;
1528
- }
1529
- if ("visible" in r) {
1530
- for (const x of d) te.current.add(x);
1531
- H(o, d, ["hide"]);
1532
- } else "pinned" in r ? H(o, d, ["pinned"]) : "flexColumns" in r && H(o, d, ["width", "flex"]);
1533
- se(o);
1534
- },
1535
- [se, H]
1536
- ), pt = j(() => {
1537
- if (!c) return;
1538
- const r = { ...c };
1539
- return delete r.defaultColDef, F && (delete r.getRowId, delete r.isFullWidthRow, delete r.fullWidthCellRenderer, delete r.getRowHeight, delete r.postSortRows, delete r.getRowClass, delete r.defaultCsvExportParams, delete r.defaultExcelExportParams), r;
1540
- }, [F, c]), je = W(/* @__PURE__ */ new Map()), le = W(c);
1541
- le.current = c;
1542
- const Le = D(
1543
- (r) => {
1544
- var o;
1545
- return q == null ? void 0 : q({
1546
- data: r,
1547
- level: 0,
1548
- api: (o = E.current) == null ? void 0 : o.api,
1549
- context: c == null ? void 0 : c.context
1550
- });
1551
- },
1552
- [q, c == null ? void 0 : c.context]
1553
- ), J = j(() => {
1554
- if (!F || v == null || !a) return null;
1555
- const r = a.find((o) => Le(o) === v);
1556
- return r === void 0 ? null : { id: v, row: r };
1557
- }, [F, v, Le, a]), ft = j(() => {
1558
- if (!J || !a) return a;
1559
- const r = a.indexOf(J.row), o = Cr(J.row, J.id);
1560
- return [
1561
- ...a.slice(0, r + 1),
1562
- o,
1563
- ...a.slice(r + 1)
1564
- ];
1565
- }, [J, a]), mt = D(
1566
- (r) => $(r.data) ? vr(r.data[ne]) : q(r),
1567
- [q]
1568
- ), gt = D(
1569
- (r) => {
1570
- var o, d;
1571
- return $(r.rowNode.data) || (((d = (o = le.current) == null ? void 0 : o.isFullWidthRow) == null ? void 0 : d.call(o, r)) ?? !1);
1572
- },
1573
- []
1574
- ), bt = D(
1575
- (r) => {
1576
- var o, d;
1577
- return $(r.data) ? je.current.get(r.node.id ?? "") : (d = (o = le.current) == null ? void 0 : o.getRowHeight) == null ? void 0 : d.call(o, r);
1578
- },
1579
- []
1580
- ), ht = D(
1581
- (r) => {
1582
- var P, re;
1583
- (re = (P = le.current) == null ? void 0 : P.postSortRows) == null || re.call(P, r);
1584
- const { nodes: o } = r, d = o.findIndex((Z) => $(Z.data));
1585
- if (d < 0) return;
1586
- const [y] = o.splice(d, 1), x = y.data[ne], k = o.findIndex((Z) => Z.id === x);
1587
- o.splice(k < 0 ? o.length : k + 1, 0, y);
1588
- },
1589
- []
1590
- ), yt = D(
1591
- (r) => {
1592
- var o, d;
1593
- return $(r.data) ? Tr : ((d = (o = le.current) == null ? void 0 : o.getRowClass) == null ? void 0 : d.call(o, r)) ?? (I == null ? void 0 : I(r));
1594
- },
1595
- [I]
1596
- ), fe = D(
1597
- (r) => $(r.node.data),
1598
- []
1599
- ), xt = j(() => {
1600
- if (!F) return;
1601
- const r = c == null ? void 0 : c.defaultCsvExportParams;
1602
- return {
1603
- ...r,
1604
- shouldRowBeSkipped: (o) => {
1605
- var d;
1606
- return fe(o) || (((d = r == null ? void 0 : r.shouldRowBeSkipped) == null ? void 0 : d.call(r, o)) ?? !1);
1607
- }
1608
- };
1609
- }, [F, c == null ? void 0 : c.defaultCsvExportParams, fe]), Tt = j(() => {
1610
- if (!F) return;
1611
- const r = c == null ? void 0 : c.defaultExcelExportParams;
1612
- return {
1613
- ...r,
1614
- shouldRowBeSkipped: (o) => {
1615
- var d;
1616
- return fe(o) || (((d = r == null ? void 0 : r.shouldRowBeSkipped) == null ? void 0 : d.call(r, o)) ?? !1);
1617
- }
1618
- };
1619
- }, [F, c == null ? void 0 : c.defaultExcelExportParams, fe]), ve = c == null ? void 0 : c.fullWidthCellRenderer, wt = j(
1620
- () => ({
1621
- renderExpandedRow: O,
1622
- onExpandedRowChange: M,
1623
- expanded: J,
1624
- heights: je.current,
1625
- fallbackRenderer: typeof ve == "function" ? ve : void 0
1626
- }),
1627
- [
1628
- ve,
1629
- J,
1630
- M,
1631
- O
1632
- ]
1633
- ), vt = D(() => {
1634
- var d;
1635
- const r = (d = E.current) == null ? void 0 : d.api;
1636
- if (!r) return;
1637
- const o = r.getSelectedRows().filter((y) => !$(y));
1638
- xe(o.length), b == null || b(o);
1639
- }, [b]), Ct = D(
1640
- (r) => {
1641
- var d;
1642
- const o = (d = E.current) == null ? void 0 : d.api;
1643
- if (o) {
1644
- const x = o.getColumnState().find((k) => k.sort);
1645
- if (x) {
1646
- const k = x.colId, P = o.getColumnDef(k), re = (P == null ? void 0 : P.headerName) ?? k, Z = x.sort === "asc" ? "dataTable.sortAscending" : "dataTable.sortDescending";
1647
- Te(
1648
- U("dataTable.sortAnnounce", {
1649
- column: re,
1650
- direction: U(Z)
1651
- })
1652
- );
1653
- } else
1654
- Te("");
1655
- }
1656
- p == null || p(r);
1657
- },
1658
- [p, U]
1659
- ), Rt = D(
1660
- (r) => {
1661
- h == null || h(r);
1662
- },
1663
- [h]
1664
- );
1665
- K(() => {
1666
- if (!Q) return;
1667
- const r = setTimeout(() => Te(""), 3e3);
1668
- return () => clearTimeout(r);
1669
- }, [Q]);
1670
- const St = S ?? Fr, It = C ?? Dr, Et = D(
1671
- () => {
1672
- var r;
1673
- return (r = E.current) == null ? void 0 : r.api;
1674
- },
1675
- []
1676
- ), Dt = D(() => {
1677
- typeof window < "u" && window.print();
1678
- }, []), Ft = Ir({
1679
- density: lt,
1680
- bordered: T,
1681
- className: R
1682
- }), Nt = N ?? /* @__PURE__ */ s("div", { className: "data-table-toolbar ds:flex ds:justify-end", children: /* @__PURE__ */ L(
1683
- $t,
1684
- {
1685
- role: "toolbar",
1686
- "aria-label": U("dataTable.tableActions"),
1687
- className: "ds:bg-[var(--background)]",
1688
- children: [
1689
- /* @__PURE__ */ s(he.ExportMenu, {}),
1690
- /* @__PURE__ */ s(he.Print, {}),
1691
- /* @__PURE__ */ s(he.ColumnToggle, {})
1692
- ]
1693
- }
1694
- ) }), kt = _ ? !1 : l;
1695
- return /* @__PURE__ */ L(
1696
- "div",
1697
- {
1698
- className: "ds:flex ds:w-full ds:min-h-0 ds:flex-1 ds:flex-col ds:gap-[var(--spacing-sm)]",
1699
- "aria-busy": it ? "true" : void 0,
1700
- "data-component": "data-table",
1701
- "data-component-id": f,
1702
- "data-print-mode": _ ? "true" : void 0,
1703
- children: [
1704
- !_ && /* @__PURE__ */ s(
1705
- ar,
1706
- {
1707
- getApi: Et,
1708
- selectionCount: X,
1709
- onPrint: Dt,
1710
- markColumnsUserTouched: _e,
1711
- children: Nt
1712
- }
1713
- ),
1714
- /* @__PURE__ */ s(
1715
- "div",
1716
- {
1717
- ref: ie,
1718
- className: [Ft, _ ? "" : w].join(" ").trim(),
1719
- children: /* @__PURE__ */ s(
1720
- at.Provider,
1721
- {
1722
- value: wt,
1723
- children: /* @__PURE__ */ s(
1724
- jt,
1725
- {
1726
- ref: E,
1727
- theme: "legacy",
1728
- columnDefs: n,
1729
- rowData: ft,
1730
- defaultColDef: {
1731
- sortable: !0,
1732
- // Default filter = DS-styled text filter so untyped columns
1733
- // (no explicit `filter:` override) inherit the kit's form
1734
- // language instead of AG Grid's stock browser-skinned input.
1735
- // Number / date / select columns opt into their dedicated
1736
- // wrapper per-column.
1737
- filter: br,
1738
- floatingFilterComponent: hr,
1739
- resizable: !0,
1740
- floatingFilter: !0,
1741
- // §13d — faint sort icon advertises which columns are
1742
- // sortable. v33+ moved this from grid-level to defaultColDef.
1743
- unSortIcon: !0,
1744
- ...c == null ? void 0 : c.defaultColDef
1745
- },
1746
- rowSelection: dt,
1747
- pagination: kt,
1748
- paginationPageSize: m,
1749
- paginationPageSizeSelector: u,
1750
- paginationNumberFormatter: (r) => new Intl.NumberFormat(z.language).format(r.value),
1751
- animateRows: !st,
1752
- enableRtl: ze,
1753
- ensureDomOrder: !0,
1754
- enableCellSpan: !0,
1755
- enableCellTextSelection: !0,
1756
- copyHeadersToClipboard: !0,
1757
- accentedSort: !0,
1758
- multiSortKey: "ctrl",
1759
- suppressDragLeaveHidesColumns: !0,
1760
- tooltipShowDelay: 500,
1761
- tooltipHideDelay: 5e3,
1762
- tooltipInteraction: !0,
1763
- stopEditingWhenCellsLoseFocus: !0,
1764
- maintainColumnOrder: !0,
1765
- undoRedoCellEditing: !0,
1766
- undoRedoCellEditingLimit: 20,
1767
- suppressCellFocus: !1,
1768
- rowBuffer: 10,
1769
- localeText: ot,
1770
- noRowsOverlayComponent: St,
1771
- loadingOverlayComponent: It,
1772
- getRowClass: F ? yt : I,
1773
- pinnedBottomRowData: ee,
1774
- domLayout: _ ? "autoHeight" : void 0,
1775
- onGridReady: ct,
1776
- onNewColumnsLoaded: ut,
1777
- onColumnMoved: pe,
1778
- onColumnResized: pe,
1779
- onColumnPinned: pe,
1780
- onColumnVisible: pe,
1781
- onSortChanged: Ct,
1782
- onFilterChanged: Rt,
1783
- onSelectionChanged: vt,
1784
- ...pt,
1785
- ...F ? {
1786
- getRowId: mt,
1787
- isFullWidthRow: gt,
1788
- fullWidthCellRenderer: Rr,
1789
- getRowHeight: bt,
1790
- postSortRows: ht,
1791
- defaultCsvExportParams: xt,
1792
- defaultExcelExportParams: Tt
1793
- } : {}
1794
- }
1795
- )
1796
- }
1797
- )
1798
- }
1799
- ),
1800
- !_ && /* @__PURE__ */ s("div", { className: "ds:flex ds:items-center ds:justify-between type-body-sm ds:text-[color:var(--muted-foreground)]", children: X > 0 ? /* @__PURE__ */ s("span", { children: U("dataTable.selected", { count: X }) }) : /* @__PURE__ */ s("span", {}) }),
1801
- /* @__PURE__ */ s("span", { role: "status", "aria-live": "polite", className: "ds:sr-only", children: Q })
1802
- ]
1803
- }
1804
- );
1805
- }
1806
- const nt = B(Mr);
1807
- nt.displayName = "DataTable";
1808
- const ma = Object.assign(nt, {
1809
- Toolbar: he
1810
- });
1811
- export {
1812
- ma as D,
1813
- Tr as E,
1814
- br as T,
1815
- hr as a,
1816
- he as b,
1817
- ar as c,
1818
- Sr as d,
1819
- Qe as e,
1820
- vr as f,
1821
- fa as g,
1822
- $ as i
1823
- };
1824
- //# sourceMappingURL=data-table-C4yPR89K.js.map