@alfadocs/ui-kit 1.115.0 → 1.117.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 (339) hide show
  1. package/dist/_chunks/accessible-target-D3j6F-AG.js +7 -0
  2. package/dist/_chunks/{actions-cell-renderer-bI27uXXC.js → actions-cell-renderer-DTaIQKp9.js} +3 -3
  3. package/dist/_chunks/{address-autocomplete-DC-H-MZw.js → address-autocomplete-Bnc9ieKO.js} +2 -2
  4. package/dist/_chunks/{address-fields-D5Ije0S2.js → address-fields-RIaGnpnm.js} +4 -4
  5. package/dist/_chunks/{anamnesis-card-Ddnrdfx3.js → anamnesis-card-sUFT0dpF.js} +2 -2
  6. package/dist/_chunks/{anamnesis-summary-card-S1H_AARG.js → anamnesis-summary-card-BtFPpegp.js} +2 -2
  7. package/dist/_chunks/{anamnesis-summary-rows-BZ36ULQk.js → anamnesis-summary-rows-BbAREK-3.js} +7 -7
  8. package/dist/_chunks/{antenatal-schedule-timeline-va9zx7tJ.js → antenatal-schedule-timeline-86YVlMYJ.js} +2 -2
  9. package/dist/_chunks/{appointment-card-D_-aBrx5.js → appointment-card-0PebvrOS.js} +3 -3
  10. package/dist/_chunks/{appointment-peek-DWfcpoGy.js → appointment-peek-DdUhqfEi.js} +2 -2
  11. package/dist/_chunks/{appointment-timeline-DxLu3afn.js → appointment-timeline-CC7nmBOH.js} +3 -3
  12. package/dist/_chunks/{appointment-tray-BhXOJpIJ.js → appointment-tray-B04zKY7g.js} +2 -2
  13. package/dist/_chunks/arrow-down-left-DECv-dJt.js +15 -0
  14. package/dist/_chunks/{balance-badge-cell-CXHihM22.js → balance-badge-cell-DPjab0eJ.js} +6 -6
  15. package/dist/_chunks/bill-line-table-vCnVo7_a.js +1565 -0
  16. package/dist/_chunks/{bishop-score-QJu-sM1y.js → bishop-score-CKztphVz.js} +2 -2
  17. package/dist/_chunks/{bmi-calculator-Ba4yoR31.js → bmi-calculator-rri5vvMt.js} +3 -3
  18. package/dist/_chunks/{button-group-CUnNnt8a.js → button-group-B2MJo0Se.js} +2 -2
  19. package/dist/_chunks/{calculator-dialog-D4TyJwqy.js → calculator-dialog-BGX5XQCM.js} +2 -2
  20. package/dist/_chunks/{calendar-appointment-editor-dialog-BVzFi4hH.js → calendar-appointment-editor-dialog-BEmBcb61.js} +18 -18
  21. package/dist/_chunks/{card-DVO3x8E-.js → card-n6W6LW-N.js} +78 -47
  22. package/dist/_chunks/{care-plan-card-BA3MfdfZ.js → care-plan-card-bGTIliXc.js} +3 -3
  23. package/dist/_chunks/{care-plan-entry-card-CUtFZ813.js → care-plan-entry-card-cdojypxu.js} +3 -3
  24. package/dist/_chunks/{chart-DebrFZ6L.js → chart-Aue_2dMb.js} +2 -2
  25. package/dist/_chunks/circle-off-DuT9pVy2.js +16 -0
  26. package/dist/_chunks/{clinical-note-card-Zz5_GEz-.js → clinical-note-card-DHn5W_bv.js} +2 -2
  27. package/dist/_chunks/combobox-BBCVQS-S.js +935 -0
  28. package/dist/_chunks/{compact-editor-fields-cP6yh7xv.js → compact-editor-fields-6sTWRLtf.js} +3 -3
  29. package/dist/_chunks/{connection-status-DjarASoU.js → connection-status-DWClakYw.js} +2 -2
  30. package/dist/_chunks/{contact-card-Cv-Nwvac.js → contact-card-CGpbYuxl.js} +2 -2
  31. package/dist/_chunks/{contact-profile-card-DMXWBBkU.js → contact-profile-card-BubJPyRB.js} +3 -3
  32. package/dist/_chunks/{country-select-CUuGOAoZ.js → country-select-C2GdvRtS.js} +2 -2
  33. package/dist/_chunks/{cycle-calculator-C68V9rdH.js → cycle-calculator-C8nWAeTk.js} +3 -3
  34. package/dist/_chunks/{dashboard-grid-DrOkTtya.js → dashboard-grid-CaxgaEgI.js} +2 -2
  35. package/dist/_chunks/{toolbar-Bc3pjfG5.js → data-grid-DiBSbN2Y.js} +3017 -3106
  36. package/dist/_chunks/{data-grid-tabs-CsLbIv0h.js → data-grid-tabs-D9Y4DeeH.js} +2 -2
  37. package/dist/_chunks/{data-table-DXaE2Ret.js → data-table-DhYx-hCD.js} +101 -100
  38. package/dist/_chunks/{date-range-panel-CBFfkgmz.js → date-range-panel-CT6nXjRM.js} +7 -7
  39. package/dist/_chunks/default-tabs-CD285u0C.js +2250 -0
  40. package/dist/_chunks/dialog-CIUn5oLb.js +348 -0
  41. package/dist/_chunks/{document-preview-WvJKHJOP.js → document-preview-BWDTCEHI.js} +3 -3
  42. package/dist/_chunks/dropdown-menu-Dw6sgQwJ.js +679 -0
  43. package/dist/_chunks/{due-date-calculator-C1UA5jpS.js → due-date-calculator-c1NJPw9F.js} +4 -4
  44. package/dist/_chunks/{editable-currency-cell-renderer-CtlMhLai.js → editable-currency-cell-renderer-BlK-8A7b.js} +2 -2
  45. package/dist/_chunks/{entity-summary-DGCBQDt1.js → entity-summary-BanguTa6.js} +2 -2
  46. package/dist/_chunks/export-files-BByoK9Cg.js +248 -0
  47. package/dist/_chunks/{face-scheme-DkoxiDCh.js → face-scheme-Bt07zQJU.js} +20 -19
  48. package/dist/_chunks/{fetal-weight-DmZzMRzB.js → fetal-weight-D0KofJJw.js} +3 -3
  49. package/dist/_chunks/{file-manager-DFFExyym.js → file-manager-CV1_GtjC.js} +5 -5
  50. package/dist/_chunks/{finished-terminal-BKTFUk3S.js → finished-terminal-FR8uc_Ws.js} +2 -2
  51. package/dist/_chunks/{forgot-password-form-Bc_UPax6.js → forgot-password-form-YvI9vX-G.js} +2 -2
  52. package/dist/_chunks/format-price-CIX0YJZn.js +179 -0
  53. package/dist/_chunks/{gestational-age-calculator-60y1RyQL.js → gestational-age-calculator-Cg4Gq42R.js} +3 -3
  54. package/dist/_chunks/{grid-context-AwsLJRhH.js → grid-context-jn9y8tNE.js} +4 -4
  55. package/dist/_chunks/{hcg-doubling-CC-dbKE8.js → hcg-doubling-BjTa_77t.js} +3 -3
  56. package/dist/_chunks/{header-settings-Df9q1uHt.js → header-settings-DsvheAOt.js} +160 -147
  57. package/dist/_chunks/{heatmap-eXdtmEoU.js → heatmap-BurtKmeu.js} +3 -3
  58. package/dist/_chunks/{help-me-write-templates-CWxgjDZl.js → help-me-write-templates-C28E_rOt.js} +2 -2
  59. package/dist/_chunks/highlighter-DSkckT2Q.js +15 -0
  60. package/dist/_chunks/{icon-button-group-C9mPK-bX.js → icon-button-group-BKtkVZ1W.js} +2 -2
  61. package/dist/_chunks/{kit-extensions-CzG0RmhQ.js → kit-extensions-C3oL0WTp.js} +7 -7
  62. package/dist/_chunks/{link-cell-renderer-Ditt5mvT.js → link-cell-renderer-NFNGdAGt.js} +4 -4
  63. package/dist/_chunks/{login-dev-card-CPndtWdz.js → login-dev-card-Dz3ezx1o.js} +2 -2
  64. package/dist/_chunks/map-view-Frj8vE7n.js +1105 -0
  65. package/dist/_chunks/{maps-core-gate-DkNqGkm3.js → maps-core-gate-Dgs7jXxy.js} +6 -6
  66. package/dist/_chunks/{marketplace-app-shell-CcEHJgDd.js → marketplace-app-shell-BOBWmzoT.js} +6 -6
  67. package/dist/_chunks/money-OE6_oDPH.js +138 -0
  68. package/dist/_chunks/{muscle-scheme-BkmDUTmk.js → muscle-scheme-C9dnSxzw.js} +2 -2
  69. package/dist/_chunks/{notes-panel-BVYG_MJE.js → notes-panel-CHR-Jv6N.js} +5 -5
  70. package/dist/_chunks/{notification-card-CPW4poUr.js → notification-card-DRMv2_pW.js} +20 -20
  71. package/dist/_chunks/{notification-tray-CQK3lw87.js → notification-tray-mlCfxNRH.js} +2 -2
  72. package/dist/_chunks/number-input-DUSvP7Dq.js +625 -0
  73. package/dist/_chunks/{operator-hero-BWayX73x.js → operator-hero-CnfWckNQ.js} +2 -2
  74. package/dist/_chunks/{optical-prescription-CvbN8yD2.js → optical-prescription-Da_r8pMr.js} +2 -2
  75. package/dist/_chunks/parts-CcyRkB8t.js +869 -0
  76. package/dist/_chunks/{patient-details-DlT-vpSe.js → patient-details-C4dHR4iu.js} +3 -3
  77. package/dist/_chunks/{patient-field-row-B54uzvu-.js → patient-field-row-0QP8KCVp.js} +5 -5
  78. package/dist/_chunks/{patient-search-DDRDCjZi.js → patient-search-D_S7joff.js} +3 -3
  79. package/dist/_chunks/{patient-summary-card-Dy9-CzON.js → patient-summary-card-x0-AhCyC.js} +4 -4
  80. package/dist/_chunks/{payment-automation-upsell-D7yaD4u1.js → payment-automation-upsell-CGdG2Mwk.js} +2 -2
  81. package/dist/_chunks/{payment-request-card-BmV2pLoM.js → payment-request-card-CEIalOtr.js} +15 -14
  82. package/dist/_chunks/{periodontal-chart-Bjz7O4wT.js → periodontal-chart-DqHrQY4e.js} +2 -2
  83. package/dist/_chunks/{periodontal-chart-card-CxEXHl2x.js → periodontal-chart-card-q9WSHRC2.js} +2 -2
  84. package/dist/_chunks/{periodontal-diagnosis-DnZuZD14.js → periodontal-diagnosis-CJPWluQU.js} +2 -2
  85. package/dist/_chunks/{periodontal-risk-chart-BBPB9wf1.js → periodontal-risk-chart-CKkyOROk.js} +2 -2
  86. package/dist/_chunks/{practice-profile-hero-Cw4NZp0A.js → practice-profile-hero-BFS6lO2a.js} +2 -2
  87. package/dist/_chunks/{practice-results-BlxfBx-D.js → practice-results-CzHWprX4.js} +922 -787
  88. package/dist/_chunks/{pregnancy-dating-qZpw3zj8.js → pregnancy-dating-BO6diQMZ.js} +4 -4
  89. package/dist/_chunks/{pregnancy-weight-gain-DQoOM8QV.js → pregnancy-weight-gain-DkGcEc_l.js} +3 -3
  90. package/dist/_chunks/{privacy-mask-BlJK51MD.js → privacy-mask-DJ1gee4c.js} +2 -2
  91. package/dist/_chunks/{province-select-cVOlwEc5.js → province-select-CTM8A9SM.js} +2 -2
  92. package/dist/_chunks/{radiograph-panel.agent-C1LGeX-G.js → radiograph-panel.agent-9jwXlOXB.js} +2 -2
  93. package/dist/_chunks/{registration-form-DW-0X7S4.js → registration-form-CMXefBnC.js} +2 -2
  94. package/dist/_chunks/{reserved.agent-6p3Hm4oH.js → reserved.agent-TaZfI3yj.js} +5 -5
  95. package/dist/_chunks/{reset-password-form-C93SH0Tx.js → reset-password-form-D_TePSM1.js} +2 -2
  96. package/dist/_chunks/{reviews-panel-CfJPEkH7.js → reviews-panel-CdHUSndF.js} +2 -2
  97. package/dist/_chunks/{rich-text-editor-efaMWbYz.js → rich-text-editor-CMPA5Wgy.js} +12 -11
  98. package/dist/_chunks/row-actions-Dpf9CrCP.js +213 -0
  99. package/dist/_chunks/{section-card-DFr2wGal.js → section-card-CYfeQ6EQ.js} +2 -2
  100. package/dist/_chunks/{send-registration-link-form-DWxWa_cJ.js → send-registration-link-form-DuZQuKnI.js} +2 -2
  101. package/dist/_chunks/{signature-request-BnTihryS.js → signature-request-Dzs0jZsd.js} +3 -3
  102. package/dist/_chunks/{tab-bar-C_pggqVr.js → tab-bar-CF8R38Og.js} +2 -2
  103. package/dist/_chunks/{tabs-CXYjr_8O.js → tabs-P4qFmxk5.js} +2 -2
  104. package/dist/_chunks/{task-editor-CSa6vQ9r.js → task-editor-WdDCqbIL.js} +168 -178
  105. package/dist/_chunks/{tasks-panel-CVjY1d7Q.js → tasks-panel-DBSm3WjK.js} +2 -2
  106. package/dist/_chunks/{theme-toggle-CObX2Ffa.js → theme-toggle-CeKl8f_f.js} +3 -3
  107. package/dist/_chunks/{timeline-AMqE-c2T.js → timeline-DXko0M1t.js} +2 -2
  108. package/dist/_chunks/{token-insert-menu-Dl3x2ekR.js → token-insert-menu-BrK5NQIq.js} +2 -2
  109. package/dist/_chunks/toolbar-z8vXnpXz.js +159 -0
  110. package/dist/_chunks/{tooth-scheme-C-ALCHaV.js → tooth-scheme-DHRxV2sE.js} +2 -2
  111. package/dist/_chunks/{transaction-chip-CohY6sTA.js → transaction-chip-CkYd-3ky.js} +47 -57
  112. package/dist/_chunks/{treatment-receipt-BydbojdD.js → treatment-receipt-1VnuinhY.js} +2 -2
  113. package/dist/_chunks/undo-2-EBxWjj1W.js +15 -0
  114. package/dist/_chunks/{unit-converter-D77vmlzN.js → unit-converter-YKlHyUC2.js} +2 -2
  115. package/dist/_chunks/{use-appointment-details-read-BMAiQYo6.js → use-appointment-details-read-B-SXnszJ.js} +10 -10
  116. package/dist/_chunks/{verify-identity-types-C85EXNzy.js → verify-identity-types-D_LdByCp.js} +2 -2
  117. package/dist/_chunks/{widget-picker-U4JsEhQE.js → widget-picker-DrxJjEkv.js} +2 -2
  118. package/dist/_chunks/{workflow-map-B4XkcET0.js → workflow-map-DCjkRuS_.js} +3 -3
  119. package/dist/_chunks/{workflow-status-9wb7iWUd.js → workflow-status-D0avpoeS.js} +2 -2
  120. package/dist/_chunks/{workflow-webhook-action-DNSe65yd.js → workflow-webhook-action-dgUjv9T7.js} +3 -3
  121. package/dist/agent-catalog.json +1080 -1
  122. package/dist/agent-i18n/en.json +50 -0
  123. package/dist/browser-support.js +2 -0
  124. package/dist/components/_shared/accessible-target.d.ts +19 -0
  125. package/dist/components/_shared/decimal.d.ts +171 -0
  126. package/dist/components/_shared/focus-visible.d.ts +8 -0
  127. package/dist/components/_shared/format-price.d.ts +54 -2
  128. package/dist/components/address-autocomplete/index.js +1 -1
  129. package/dist/components/address-fields/index.js +1 -1
  130. package/dist/components/anamnesis-card/index.js +1 -1
  131. package/dist/components/anamnesis-summary-card/index.js +1 -1
  132. package/dist/components/appointment-card/index.js +2 -2
  133. package/dist/components/appointment-details-panel/index.js +1 -1
  134. package/dist/components/appointment-peek/index.js +1 -1
  135. package/dist/components/appointment-timeline/index.js +1 -1
  136. package/dist/components/bill-line-table/bill-line-table.agent.d.ts +4 -0
  137. package/dist/components/bill-line-table/bill-line-table.columns.d.ts +49 -0
  138. package/dist/components/bill-line-table/bill-line-table.d.ts +4 -0
  139. package/dist/components/bill-line-table/bill-line-table.model.d.ts +173 -0
  140. package/dist/components/bill-line-table/bill-line-table.types.d.ts +443 -0
  141. package/dist/components/bill-line-table/bill-line-table.variants.d.ts +36 -0
  142. package/dist/components/bill-line-table/index.d.ts +6 -0
  143. package/dist/components/bill-line-table/index.js +23 -0
  144. package/dist/components/bill-table/bill-table.agent.d.ts +4 -0
  145. package/dist/components/bill-table/bill-table.d.ts +13 -0
  146. package/dist/components/bill-table/bill-table.variants.d.ts +55 -0
  147. package/dist/components/bill-table/cells.d.ts +89 -0
  148. package/dist/components/bill-table/columns.d.ts +21 -0
  149. package/dist/components/bill-table/default-tabs.d.ts +21 -0
  150. package/dist/components/bill-table/handle.d.ts +19 -0
  151. package/dist/components/bill-table/index.d.ts +7 -0
  152. package/dist/components/bill-table/index.js +19 -0
  153. package/dist/components/bill-table/model.d.ts +103 -0
  154. package/dist/components/bill-table/row-actions.d.ts +27 -0
  155. package/dist/components/bill-table/status-maps.d.ts +225 -0
  156. package/dist/components/bill-table/types.d.ts +542 -0
  157. package/dist/components/bishop-score/index.js +1 -1
  158. package/dist/components/bmi-calculator/index.js +1 -1
  159. package/dist/components/booking/index.js +1 -1
  160. package/dist/components/button-group/index.js +1 -1
  161. package/dist/components/calculator-dialog/index.js +1 -1
  162. package/dist/components/card/card.d.ts +9 -2
  163. package/dist/components/card/index.js +1 -1
  164. package/dist/components/care-plan-card/index.js +1 -1
  165. package/dist/components/care-plan-entry-card/index.js +1 -1
  166. package/dist/components/chart/index.js +1 -1
  167. package/dist/components/clinical-note-card/index.js +1 -1
  168. package/dist/components/combobox/combobox.d.ts +59 -1
  169. package/dist/components/combobox/index.d.ts +1 -1
  170. package/dist/components/combobox/index.js +1 -1
  171. package/dist/components/connection-status/index.js +1 -1
  172. package/dist/components/contact-card/index.js +1 -1
  173. package/dist/components/contact-profile-card/index.js +1 -1
  174. package/dist/components/country-select/index.js +1 -1
  175. package/dist/components/cycle-calculator/index.js +1 -1
  176. package/dist/components/dashboard-grid/index.js +1 -1
  177. package/dist/components/data-grid/body.d.ts +6 -0
  178. package/dist/components/data-grid/data-grid.variants.d.ts +1 -9
  179. package/dist/components/data-grid/editors.d.ts +7 -1
  180. package/dist/components/data-grid/index.js +9 -8
  181. package/dist/components/data-grid/selection.d.ts +10 -0
  182. package/dist/components/data-grid/types.d.ts +61 -11
  183. package/dist/components/data-grid-tabs/index.js +1 -1
  184. package/dist/components/data-table/index.js +4 -4
  185. package/dist/components/dialog/focus-return.d.ts +12 -0
  186. package/dist/components/dialog/index.js +1 -1
  187. package/dist/components/document-preview/index.js +1 -1
  188. package/dist/components/dropdown-menu/dropdown-menu.d.ts +11 -0
  189. package/dist/components/dropdown-menu/index.js +1 -1
  190. package/dist/components/due-date-calculator/index.js +2 -2
  191. package/dist/components/entity-summary/index.js +1 -1
  192. package/dist/components/face-scheme/index.js +1 -1
  193. package/dist/components/fetal-weight/index.js +1 -1
  194. package/dist/components/file-manager/index.js +1 -1
  195. package/dist/components/finished-terminal/index.js +1 -1
  196. package/dist/components/gestational-age-calculator/index.js +1 -1
  197. package/dist/components/hcg-doubling/index.js +1 -1
  198. package/dist/components/header-settings/header-settings.d.ts +7 -3
  199. package/dist/components/header-settings/index.js +1 -1
  200. package/dist/components/heatmap/index.js +1 -1
  201. package/dist/components/icon-button-group/index.js +1 -1
  202. package/dist/components/index.d.ts +6 -0
  203. package/dist/components/map-view/index.d.ts +1 -1
  204. package/dist/components/map-view/index.js +1 -1
  205. package/dist/components/map-view/map-view.d.ts +48 -0
  206. package/dist/components/money/index.js +1 -1
  207. package/dist/components/money/money.d.ts +39 -6
  208. package/dist/components/muscle-scheme/index.js +1 -1
  209. package/dist/components/notes-panel/index.js +1 -1
  210. package/dist/components/notification-card/index.js +1 -1
  211. package/dist/components/notification-card/notification-card.d.ts +2 -1
  212. package/dist/components/notification-tray/index.js +1 -1
  213. package/dist/components/number-input/index.d.ts +2 -2
  214. package/dist/components/number-input/index.js +1 -1
  215. package/dist/components/number-input/number-input.d.ts +43 -2
  216. package/dist/components/number-input/use-locale-number.d.ts +67 -3
  217. package/dist/components/operator-hero/index.js +1 -1
  218. package/dist/components/optical-prescription/index.js +1 -1
  219. package/dist/components/patient-details/index.js +1 -1
  220. package/dist/components/patient-search/index.js +1 -1
  221. package/dist/components/patient-summary-card/index.js +1 -1
  222. package/dist/components/patient-table/index.js +1 -1
  223. package/dist/components/payment-card/index.js +1 -1
  224. package/dist/components/periodontal-chart/index.js +1 -1
  225. package/dist/components/periodontal-chart-card/index.js +1 -1
  226. package/dist/components/periodontal-diagnosis/index.js +1 -1
  227. package/dist/components/periodontal-risk-chart/index.js +1 -1
  228. package/dist/components/practice-profile-hero/index.js +1 -1
  229. package/dist/components/practice-results/index.js +1 -1
  230. package/dist/components/practice-results/practice-results.d.ts +20 -0
  231. package/dist/components/pregnancy-dating/index.js +1 -1
  232. package/dist/components/pregnancy-weight-gain/index.js +1 -1
  233. package/dist/components/province-select/index.js +1 -1
  234. package/dist/components/radiograph-panel/index.js +1 -1
  235. package/dist/components/reviews-panel/index.js +1 -1
  236. package/dist/components/rich-text-editor/index.js +2 -2
  237. package/dist/components/row-actions/index.d.ts +3 -0
  238. package/dist/components/row-actions/index.js +5 -0
  239. package/dist/components/row-actions/row-actions.d.ts +63 -0
  240. package/dist/components/section-card/index.js +1 -1
  241. package/dist/components/skeleton-scheme/index.js +1 -1
  242. package/dist/components/smart-date/smart-date.d.ts +1 -1
  243. package/dist/components/tab-bar/index.js +1 -1
  244. package/dist/components/tabs/index.js +1 -1
  245. package/dist/components/task-editor/index.js +1 -1
  246. package/dist/components/tasks-panel/index.js +1 -1
  247. package/dist/components/theme-toggle/index.js +1 -1
  248. package/dist/components/timeline/index.js +1 -1
  249. package/dist/components/token-insert-menu/index.js +1 -1
  250. package/dist/components/tooth-scheme/index.js +1 -1
  251. package/dist/components/transaction-chip/index.js +1 -1
  252. package/dist/components/transaction-chip/transaction-chip.d.ts +1 -1
  253. package/dist/components/treatment-receipt/index.js +1 -1
  254. package/dist/components/unit-converter/index.js +1 -1
  255. package/dist/components/widget-picker/index.js +1 -1
  256. package/dist/components/workflow/index.js +1 -1
  257. package/dist/components/workflow-status/index.js +1 -1
  258. package/dist/core.css +1 -1
  259. package/dist/decimal/index.js +149 -0
  260. package/dist/host-compat.css +7 -1
  261. package/dist/i18n/locales/ar.d.ts +262 -0
  262. package/dist/i18n/locales/ar.js +263 -1
  263. package/dist/i18n/locales/de.d.ts +262 -0
  264. package/dist/i18n/locales/de.js +263 -1
  265. package/dist/i18n/locales/el.d.ts +262 -0
  266. package/dist/i18n/locales/el.js +263 -1
  267. package/dist/i18n/locales/en.d.ts +262 -0
  268. package/dist/i18n/locales/en.js +263 -1
  269. package/dist/i18n/locales/es.d.ts +262 -0
  270. package/dist/i18n/locales/es.js +263 -1
  271. package/dist/i18n/locales/fr.d.ts +262 -0
  272. package/dist/i18n/locales/fr.js +263 -1
  273. package/dist/i18n/locales/hi.d.ts +262 -0
  274. package/dist/i18n/locales/hi.js +263 -1
  275. package/dist/i18n/locales/it.d.ts +262 -0
  276. package/dist/i18n/locales/it.js +263 -1
  277. package/dist/i18n/locales/ja.d.ts +262 -0
  278. package/dist/i18n/locales/ja.js +263 -1
  279. package/dist/i18n/locales/nl.d.ts +262 -0
  280. package/dist/i18n/locales/nl.js +263 -1
  281. package/dist/i18n/locales/pl.d.ts +262 -0
  282. package/dist/i18n/locales/pl.js +263 -1
  283. package/dist/i18n/locales/pt.d.ts +262 -0
  284. package/dist/i18n/locales/pt.js +263 -1
  285. package/dist/i18n/locales/ro.d.ts +262 -0
  286. package/dist/i18n/locales/ro.js +263 -1
  287. package/dist/i18n/locales/ru.d.ts +262 -0
  288. package/dist/i18n/locales/ru.js +263 -1
  289. package/dist/i18n/locales/sq.d.ts +262 -0
  290. package/dist/i18n/locales/sq.js +263 -1
  291. package/dist/i18n/locales/sv.d.ts +262 -0
  292. package/dist/i18n/locales/sv.js +263 -1
  293. package/dist/i18n/locales/tr.d.ts +262 -0
  294. package/dist/i18n/locales/tr.js +263 -1
  295. package/dist/i18n/locales/zh.d.ts +262 -0
  296. package/dist/i18n/locales/zh.js +263 -1
  297. package/dist/index.js +1298 -1246
  298. package/dist/locales/ar.json +263 -1
  299. package/dist/locales/de.json +263 -1
  300. package/dist/locales/el.json +263 -1
  301. package/dist/locales/en.json +263 -1
  302. package/dist/locales/es.json +263 -1
  303. package/dist/locales/fr.json +263 -1
  304. package/dist/locales/hi.json +263 -1
  305. package/dist/locales/it.json +263 -1
  306. package/dist/locales/ja.json +263 -1
  307. package/dist/locales/nl.json +263 -1
  308. package/dist/locales/pl.json +263 -1
  309. package/dist/locales/pt.json +263 -1
  310. package/dist/locales/ro.json +263 -1
  311. package/dist/locales/ru.json +263 -1
  312. package/dist/locales/sq.json +263 -1
  313. package/dist/locales/sv.json +263 -1
  314. package/dist/locales/tr.json +263 -1
  315. package/dist/locales/zh.json +263 -1
  316. package/dist/patterns/anamnesis/index.js +1 -1
  317. package/dist/patterns/calendar/index.js +1 -1
  318. package/dist/patterns/forgot-password-form/index.js +1 -1
  319. package/dist/patterns/help-me-write-templates/index.js +1 -1
  320. package/dist/patterns/login-form/index.js +1 -1
  321. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  322. package/dist/patterns/payment-automation-upsell/index.js +1 -1
  323. package/dist/patterns/registration-form/index.js +1 -1
  324. package/dist/patterns/reset-password-form/index.js +1 -1
  325. package/dist/patterns/send-registration-link-form/index.js +1 -1
  326. package/dist/patterns/signature-request/index.js +1 -1
  327. package/dist/patterns/verify-identity/index.js +1 -1
  328. package/dist/patterns/workflow-webhook-action/index.js +1 -1
  329. package/dist/tokens.css +1 -1
  330. package/package.json +22 -3
  331. package/dist/_chunks/combobox-duuDRI1t.js +0 -688
  332. package/dist/_chunks/dialog-BTjSQjdY.js +0 -274
  333. package/dist/_chunks/dropdown-menu-CqxBthww.js +0 -595
  334. package/dist/_chunks/format-price-BcFBa-WP.js +0 -52
  335. package/dist/_chunks/map-view-Bny79cWa.js +0 -856
  336. package/dist/_chunks/money-Tsczpjfz.js +0 -102
  337. package/dist/_chunks/number-input-CVwI1ltI.js +0 -423
  338. package/dist/_chunks/parts-Wz2LeGnH.js +0 -1113
  339. package/dist/_chunks/undo-2-CYNAzclj.js +0 -26
@@ -0,0 +1,869 @@
1
+ import { jsx as r, jsxs as G, Fragment as De } from "react/jsx-runtime";
2
+ import { useMemo as Pe, createContext as $e, useState as A, useEffect as X, useContext as Se, forwardRef as V, useRef as _, useCallback as se, useLayoutEffect as ze, useId as Ge, useReducer as Ae, isValidElement as Oe, cloneElement as Be } from "react";
3
+ import { useTranslation as q } from "react-i18next";
4
+ import { c as Z } from "./index-D2ZczOXr.js";
5
+ import { B as ie } from "./button-DohK_Ak_.js";
6
+ import { I as H } from "./icon-button-S8_weU3g.js";
7
+ import { P as oe } from "./popover-CN5IsOeS.js";
8
+ import { C as Ve } from "./checkbox-DV4sNDeB.js";
9
+ import { T as Qe } from "./text-input-B6iAgCr3.js";
10
+ import { T as xe } from "./tag-BNlcEJfE.js";
11
+ import { D as U } from "./dropdown-menu-Dw6sgQwJ.js";
12
+ import { a as me } from "./format-number-DdzqwMs1.js";
13
+ import { g as Le } from "./date-locale-OG-MupVD.js";
14
+ import { f as We } from "./export-files-BByoK9Cg.js";
15
+ import { P as ye } from "./printer-rkK0T1gi.js";
16
+ import { R as ke } from "./refresh-cw-DnI0cLFC.js";
17
+ import { D as Ce } from "./download-CfYKJO_j.js";
18
+ import { c as je } from "./createLucideIcon-DhHxpK9K.js";
19
+ import { G as He } from "./grip-vertical-onSb1JXO.js";
20
+ import { A as _e, a as Ue } from "./arrow-up-BYvcvTkB.js";
21
+ import { R as Xe } from "./rotate-ccw-BBQnIVTr.js";
22
+ import { S as Ye } from "./search-QbWPlY5f.js";
23
+ import { X as Fe } from "./x-B5YnXwCz.js";
24
+ import { F as Je } from "./file-spreadsheet-DmwyfV4O.js";
25
+ import { F as Ke } from "./file-text-5yv6r2ls.js";
26
+ /**
27
+ * @license lucide-react v1.22.0 - ISC
28
+ *
29
+ * This source code is licensed under the ISC license.
30
+ * See the LICENSE file in the root directory of this source tree.
31
+ */
32
+ const Ze = [
33
+ ["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" }],
34
+ ["path", { d: "m14.3 19.6 1-.4", key: "11sv9r" }],
35
+ ["path", { d: "M15 3v7.5", key: "7lm50a" }],
36
+ ["path", { d: "m15.2 16.9-.9-.3", key: "1t7mvx" }],
37
+ ["path", { d: "m16.6 21.7.3-.9", key: "1j67ps" }],
38
+ ["path", { d: "m16.8 15.3-.4-1", key: "1ei7r6" }],
39
+ ["path", { d: "m19.1 15.2.3-.9", key: "18r7jp" }],
40
+ ["path", { d: "m19.6 21.7-.4-1", key: "z2vh2" }],
41
+ ["path", { d: "m20.7 16.8 1-.4", key: "19m87a" }],
42
+ ["path", { d: "m21.7 19.4-.9-.3", key: "1qgwi9" }],
43
+ ["path", { d: "M9 3v18", key: "fh3hqa" }],
44
+ ["circle", { cx: "18", cy: "18", r: "3", key: "1xkwt0" }]
45
+ ], et = je("columns-3-cog", Ze), Ee = $e(
46
+ null
47
+ );
48
+ function Bt({
49
+ seam: a,
50
+ children: e
51
+ }) {
52
+ const d = Pe(() => ({ seam: a }), [a]);
53
+ return /* @__PURE__ */ r(Ee.Provider, { value: d, children: e });
54
+ }
55
+ function tt(a, e) {
56
+ const d = Se(Ee), t = (d == null ? void 0 : d.seam) ?? e;
57
+ if (!t) throw new Error(a);
58
+ return t;
59
+ }
60
+ function K(a, e) {
61
+ const [d, t] = A(0), u = e.join(" ");
62
+ return X(() => {
63
+ const F = new Set(u.split(" "));
64
+ return a.subscribe((E) => {
65
+ F.has(E) && t((I) => I + 1);
66
+ });
67
+ }, [a, u]), d;
68
+ }
69
+ function rt(a, e) {
70
+ const d = (t, u) => String(t).padStart(u, "0");
71
+ return e.replace(/yyyy|MM|dd/g, (t) => {
72
+ if (t === "dd") return d(a.getDate(), 2);
73
+ if (t === "MM") return d(a.getMonth() + 1, 2);
74
+ const u = a.getFullYear();
75
+ return d(u > 0 ? u : 1 - u, 4);
76
+ });
77
+ }
78
+ function nt(a, e, d) {
79
+ const t = a.filterOptions;
80
+ return e ? {
81
+ kitWording: !0,
82
+ optionLabel: t ? (u) => {
83
+ var F;
84
+ return (F = t.find((E) => E.value === u)) == null ? void 0 : F.label;
85
+ } : void 0,
86
+ number: (u) => me(u, d),
87
+ day: (u) => {
88
+ const F = We(u);
89
+ return F ? rt(F, Le(d ?? "en")) : u;
90
+ }
91
+ } : {};
92
+ }
93
+ function at(a) {
94
+ return a === "contains" || a === "notContains" || a === "equals" || a === "startsWith" || a === "endsWith";
95
+ }
96
+ function st(a, e) {
97
+ switch (a) {
98
+ case "contains":
99
+ return e("dataTable.textFilter.operators.contains", "Contains");
100
+ case "notContains":
101
+ return e(
102
+ "dataTable.textFilter.operators.notContains",
103
+ "Does not contain"
104
+ );
105
+ case "equals":
106
+ return e("dataTable.textFilter.operators.equals", "Equals");
107
+ case "startsWith":
108
+ return e("dataTable.textFilter.operators.startsWith", "Starts with");
109
+ case "endsWith":
110
+ return e("dataTable.textFilter.operators.endsWith", "Ends with");
111
+ }
112
+ }
113
+ function it(a, e) {
114
+ switch (a) {
115
+ case "contains":
116
+ return e("dataTable.agGrid.contains", "Contains");
117
+ case "notContains":
118
+ return e("dataTable.agGrid.notContains", "Does not contain");
119
+ case "startsWith":
120
+ return e("dataTable.agGrid.startsWith", "Starts with");
121
+ case "endsWith":
122
+ return e("dataTable.agGrid.endsWith", "Ends with");
123
+ case "equals":
124
+ return e("dataTable.agGrid.equals", "Equals");
125
+ case "notEqual":
126
+ return e("dataTable.agGrid.notEqual", "Not equal");
127
+ case "greaterThan":
128
+ return e("dataTable.agGrid.greaterThan", "Greater than");
129
+ case "greaterThanOrEqual":
130
+ return e(
131
+ "dataTable.agGrid.greaterThanOrEqual",
132
+ "Greater than or equal to"
133
+ );
134
+ case "lessThan":
135
+ return e("dataTable.agGrid.lessThan", "Less than");
136
+ case "lessThanOrEqual":
137
+ return e("dataTable.agGrid.lessThanOrEqual", "Less than or equal to");
138
+ case "inRange":
139
+ return e("dataTable.agGrid.inRange", "In range");
140
+ case "blank":
141
+ return e("dataTable.agGrid.blank", "Blank");
142
+ case "notBlank":
143
+ return e("dataTable.agGrid.notBlank", "Not blank");
144
+ default:
145
+ return a;
146
+ }
147
+ }
148
+ function ot(a, e, d = {}) {
149
+ if (!a || typeof a != "object") return "";
150
+ const t = a, u = typeof t.type == "string" ? t.type : "", F = d.kitWording === !0, E = (x) => F && typeof t.filter == "string" && at(x) ? st(x, e) : it(x, e), I = (x) => typeof x == "number" && d.number ? d.number(x) : String(x), M = (x) => d.day ? d.day(x) : x, N = e("dataTable.numberFilter.from", "From"), Y = e("dataTable.numberFilter.to", "To");
151
+ if (u === "blank" || u === "notBlank") return E(u);
152
+ const Q = typeof t.filter == "string" || typeof t.filter == "number", ee = typeof t.filterTo == "string" || typeof t.filterTo == "number";
153
+ if (u === "inRange" && (Q || ee))
154
+ return Q && ee ? `${I(t.filter)} – ${I(t.filterTo)}` : Q ? `${N} ${I(t.filter)}` : `${Y} ${I(t.filterTo)}`;
155
+ if (Q)
156
+ return u ? `${E(u)} ${I(t.filter)}` : I(t.filter);
157
+ if (F) {
158
+ const x = typeof t.dateFrom == "string" && t.dateFrom ? t.dateFrom : "", D = typeof t.dateTo == "string" && t.dateTo ? t.dateTo : "", L = u === "inRange" || u === "";
159
+ if (x && D) return `${M(x)} – ${M(D)}`;
160
+ if (x)
161
+ return L ? `${N} ${M(x)}` : `${E(u)} ${M(x)}`;
162
+ if (D) return `${Y} ${M(D)}`;
163
+ } else if (typeof t.dateFrom == "string")
164
+ return typeof t.dateTo == "string" && t.dateTo ? `${t.dateFrom} – ${t.dateTo}` : String(t.dateFrom);
165
+ return Array.isArray(t.values) ? t.values.map((D) => {
166
+ var L;
167
+ return ((L = d.optionLabel) == null ? void 0 : L.call(d, D)) ?? I(D);
168
+ }).join(", ") : "";
169
+ }
170
+ function lt(a) {
171
+ if (!Oe(a)) return a;
172
+ const e = a, d = e.props.className ?? "", t = /\bsize-|\bw-|\bh-/.test(d) ? d : `${d} ds:size-4`.trim();
173
+ return Be(e, { className: t, size: e.props.size ?? 16 });
174
+ }
175
+ function we(a) {
176
+ return a.getColumns().some((e) => e.masked === !0);
177
+ }
178
+ function Ne(a, e, d) {
179
+ const t = a[e], u = a[d];
180
+ if (!t || !u || !t.canMove || t.canPin === !1 && u.pinned !== t.pinned) return !1;
181
+ const F = a.filter((M, N) => N !== e);
182
+ F.splice(d, 0, t);
183
+ const E = /* @__PURE__ */ new Set();
184
+ let I = null;
185
+ for (const M of F) {
186
+ const N = M.groupId ?? null;
187
+ if (N !== I) {
188
+ if (N !== null && E.has(N)) return !1;
189
+ N !== null && E.add(N), I = N;
190
+ }
191
+ }
192
+ return !0;
193
+ }
194
+ function dt(a) {
195
+ return {
196
+ selectedRowIds: a.getSelectedRowIds(),
197
+ getExportSnapshot: () => a.getExportSnapshot()
198
+ };
199
+ }
200
+ const ct = Z([
201
+ "data-table-toolbar",
202
+ // Mobile (<sm) keeps `flex-wrap` so a wide QuickSearch can flow above the
203
+ // Actions cluster on narrow screens. From `sm` (≥640px) we switch to
204
+ // `flex-nowrap` + `min-w-0` so the row stays single-line at every common
205
+ // desktop width (1024 / 1280 / 1440): the QuickSearch slot shrinks via
206
+ // its own `min-w-0` instead of pushing the trailing Actions to a new row.
207
+ "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-sm)]",
208
+ "ds:sm:flex-nowrap ds:min-w-0"
209
+ // No card surface: the toolbar sits directly on the page background,
210
+ // matching the header-tools layout the Patients / Care Plan List
211
+ // patterns established.
212
+ ]), ut = Z([
213
+ "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-sm)]",
214
+ // `grow` lets FilterBar absorb the free space; `min-w-0` lets the
215
+ // QuickSearch slot inside shrink below its intrinsic width when the
216
+ // toolbar runs `flex-nowrap` at `sm` and above, so the trailing
217
+ // Actions cluster stays pinned on a single row.
218
+ "ds:grow ds:min-w-0"
219
+ ]), pt = Z("ds:w-full ds:max-w-[24rem] ds:min-w-0", {
220
+ variants: {
221
+ // The masked "Search applied" state adds a Clear button beside the box.
222
+ hiddenQuery: {
223
+ true: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)] ds:[&>[data-component=text-input]]:min-w-0 ds:[&>[data-component=text-input]]:grow",
224
+ false: ""
225
+ }
226
+ },
227
+ defaultVariants: { hiddenQuery: !1 }
228
+ }), mt = Z([
229
+ "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]",
230
+ "ds:ms-auto"
231
+ ]), ft = Z(
232
+ "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",
233
+ {
234
+ variants: {
235
+ dragging: { true: "ds:opacity-50", false: "" },
236
+ dragOver: {
237
+ true: "ds:bg-[color:color-mix(in_srgb,var(--primary)_8%,transparent)]",
238
+ false: ""
239
+ }
240
+ },
241
+ defaultVariants: { dragging: !1, dragOver: !1 }
242
+ }
243
+ );
244
+ function Vt(a) {
245
+ const { prefix: e } = a, d = a.useEngineSeam ?? (() => null), t = (n) => tt(
246
+ a.missingProvider(`${e}.${n}`),
247
+ d()
248
+ ), u = V(
249
+ ({ className: n, children: c, ...i }, o) => /* @__PURE__ */ r(
250
+ "div",
251
+ {
252
+ ref: o,
253
+ role: "toolbar",
254
+ className: ct({ className: n }),
255
+ ...i,
256
+ children: c
257
+ }
258
+ )
259
+ );
260
+ u.displayName = e;
261
+ const F = V(
262
+ ({ className: n, children: c, ...i }, o) => /* @__PURE__ */ r(
263
+ "div",
264
+ {
265
+ ref: o,
266
+ className: ut({ className: n }),
267
+ ...i,
268
+ children: c
269
+ }
270
+ )
271
+ );
272
+ F.displayName = `${e}.FilterBar`;
273
+ const E = V(
274
+ ({ className: n, children: c, ...i }, o) => /* @__PURE__ */ r(
275
+ "div",
276
+ {
277
+ ref: o,
278
+ className: mt({ className: n }),
279
+ ...i,
280
+ children: c
281
+ }
282
+ )
283
+ );
284
+ E.displayName = `${e}.Actions`;
285
+ function I(n) {
286
+ return n;
287
+ }
288
+ const M = V(
289
+ ({ label: n, intent: c = "outline", ...i }, o) => {
290
+ const { t: l } = q("ui"), v = t("Print"), { onClick: b, ...k } = i;
291
+ return /* @__PURE__ */ r(
292
+ H,
293
+ {
294
+ ref: o,
295
+ type: "button",
296
+ intent: c,
297
+ icon: /* @__PURE__ */ r(ye, { "aria-hidden": !0 }),
298
+ tooltip: n ?? l("dataTable.print"),
299
+ ...k,
300
+ onClick: (m) => {
301
+ b == null || b(m), m.defaultPrevented || v.print();
302
+ }
303
+ }
304
+ );
305
+ }
306
+ );
307
+ M.displayName = `${e}.Print`;
308
+ const N = V(
309
+ ({ onRefresh: n, label: c, intent: i = "outline", ...o }, l) => {
310
+ const { t: v } = q("ui"), { onClick: b, ...k } = o;
311
+ return /* @__PURE__ */ r(
312
+ H,
313
+ {
314
+ ref: l,
315
+ type: "button",
316
+ intent: i,
317
+ icon: /* @__PURE__ */ r(ke, { "aria-hidden": !0 }),
318
+ tooltip: c ?? v("dataTable.refresh", "Refresh"),
319
+ ...k,
320
+ onClick: (m) => {
321
+ b == null || b(m), m.defaultPrevented || n();
322
+ }
323
+ }
324
+ );
325
+ }
326
+ );
327
+ N.displayName = `${e}.Refresh`;
328
+ const Y = ({
329
+ childProps: n,
330
+ disabled: c
331
+ }) => {
332
+ const { t: i } = q("ui"), o = t("Print"), l = n.label;
333
+ return /* @__PURE__ */ r(
334
+ U.Item,
335
+ {
336
+ startIcon: /* @__PURE__ */ r(ye, { "aria-hidden": !0, className: "ds:size-4" }),
337
+ disabled: c,
338
+ onSelect: () => void o.print(),
339
+ children: typeof l == "string" ? l : i("dataTable.print")
340
+ }
341
+ );
342
+ };
343
+ Y.displayName = `${e}.Print.MenuItem`;
344
+ const Q = ({
345
+ childProps: n,
346
+ disabled: c
347
+ }) => {
348
+ const { t: i } = q("ui"), { label: o, onRefresh: l } = n;
349
+ return /* @__PURE__ */ r(
350
+ U.Item,
351
+ {
352
+ startIcon: /* @__PURE__ */ r(ke, { "aria-hidden": !0, className: "ds:size-4" }),
353
+ disabled: c,
354
+ onSelect: () => l == null ? void 0 : l(),
355
+ children: o ?? i("dataTable.refresh", "Refresh")
356
+ }
357
+ );
358
+ };
359
+ Q.displayName = `${e}.Refresh.MenuItem`;
360
+ const ee = Object.assign(M, {
361
+ overflowMenuItem: Y
362
+ }), x = Object.assign(N, {
363
+ overflowMenuItem: Q
364
+ }), D = ({
365
+ placeholder: n,
366
+ debounceMs: c = 150
367
+ }) => {
368
+ const { t: i } = q("ui"), o = t("QuickSearch"), l = o.features.syncsFilterInputs, v = K(
369
+ o,
370
+ l ? ["quickFilter", "filter", "columns"] : []
371
+ ), b = l && we(o), [k, m] = A(
372
+ () => l && !we(o) ? o.getQuickFilter() : ""
373
+ ), T = _(l ? o.getQuickFilter() : ""), f = _(b), y = _(void 0), [$, S] = A(!1), W = Ge(), g = _(null);
374
+ X(() => {
375
+ if (!l) return;
376
+ const h = o.getQuickFilter();
377
+ if (f.current !== b) {
378
+ f.current = b, T.current = h, m(b ? "" : h);
379
+ return;
380
+ }
381
+ h !== T.current && (y.current && (window.clearTimeout(y.current), y.current = void 0, S(!1)), T.current = h, m(b && h !== "" ? "" : h));
382
+ }, [l, o, v, b]), X(
383
+ () => () => {
384
+ y.current && window.clearTimeout(y.current);
385
+ },
386
+ []
387
+ );
388
+ const R = (h) => {
389
+ y.current && window.clearTimeout(y.current), S(!0), y.current = window.setTimeout(() => {
390
+ if (y.current = void 0, S(!1), l) {
391
+ if (o.getQuickFilter() !== T.current || h === T.current) return;
392
+ T.current = h;
393
+ }
394
+ o.setQuickFilter(h);
395
+ }, c);
396
+ }, O = (h) => {
397
+ m(h), R(h);
398
+ }, w = b && !$ && k === "" && o.getQuickFilter() !== "";
399
+ return (
400
+ // Slot wrapper caps the search at a legible width on desktop: without
401
+ // it, TextInput's `w-full` lets the QuickSearch absorb the entire
402
+ // FilterBar row and push trailing Actions onto a second line at
403
+ // 1024 / 1280 / 1440. `min-w-0` lets the slot shrink below `24rem`
404
+ // when the toolbar is squeezed on narrow viewports.
405
+ /* @__PURE__ */ G("div", { className: pt({ hiddenQuery: w }), children: [
406
+ /* @__PURE__ */ r(
407
+ Qe,
408
+ {
409
+ ref: g,
410
+ type: "search",
411
+ size: "sm",
412
+ ...l ? { value: k } : {},
413
+ onChange: (h) => O(h.target.value),
414
+ placeholder: w ? i("dataTable.quickSearch.appliedHidden", "Search applied") : n ?? i("dataTable.quickSearch.placeholder", "Search…"),
415
+ startAdornment: /* @__PURE__ */ r(Ye, { "aria-hidden": !0, className: "ds:size-4" }),
416
+ clearable: !0,
417
+ onClear: () => O(""),
418
+ "aria-label": i("dataTable.quickSearch.label", "Quick search"),
419
+ "aria-describedby": w ? W : void 0
420
+ }
421
+ ),
422
+ w ? /* @__PURE__ */ G(De, { children: [
423
+ /* @__PURE__ */ r("span", { id: W, className: "ds:sr-only", children: i(
424
+ "dataTable.quickSearch.appliedHiddenDescription",
425
+ "A search is applied. Its text is hidden in privacy mode."
426
+ ) }),
427
+ /* @__PURE__ */ r(
428
+ H,
429
+ {
430
+ type: "button",
431
+ size: "sm",
432
+ intent: "ghost",
433
+ icon: /* @__PURE__ */ r(Fe, { "aria-hidden": !0 }),
434
+ tooltip: i("dataTable.quickSearch.clearApplied", "Clear search"),
435
+ onClick: () => {
436
+ var h;
437
+ O(""), (h = g.current) == null || h.focus();
438
+ }
439
+ }
440
+ )
441
+ ] }) : null
442
+ ] })
443
+ );
444
+ };
445
+ D.displayName = `${e}.QuickSearch`;
446
+ const L = () => {
447
+ var W;
448
+ const { t: n, i18n: c } = q("ui"), i = t("FilterChips");
449
+ K(i, ["filter", "quickFilter", "columns"]);
450
+ const [, o] = Ae((g) => g + 1, 0), l = i.getFilterModel() ?? {}, v = i.getColumns(), b = new Map(
451
+ v.map((g) => [g.id, g])
452
+ ), k = i.features.formatsFilterValues === !0, m = (g, R) => k ? n("dataTable.filterChips.chip", { column: g, value: R }) : `${g}: ${R}`, T = [];
453
+ for (const g of Object.keys(l)) {
454
+ const R = b.get(g);
455
+ if (!R) {
456
+ const h = (W = i.getFilterLabel) == null ? void 0 : W.call(i, g);
457
+ T.push({ key: g, label: h ?? g });
458
+ continue;
459
+ }
460
+ const O = R.masked ? "" : ot(
461
+ l[g],
462
+ n,
463
+ nt(R, k, c.language)
464
+ ), w = R.label || g;
465
+ T.push({ key: g, label: O ? m(w, O) : w });
466
+ }
467
+ const f = i.getQuickFilter(), y = n("dataTable.quickSearch.label", "Quick search"), $ = v.some((g) => g.masked === !0) ? y : m(y, f);
468
+ return T.length + (f ? 1 : 0) === 0 ? null : /* @__PURE__ */ G(
469
+ "div",
470
+ {
471
+ role: "group",
472
+ "aria-label": n("dataTable.filterChips.label", "Active filters"),
473
+ className: "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]",
474
+ children: [
475
+ f && /* @__PURE__ */ r(
476
+ xe,
477
+ {
478
+ label: $,
479
+ size: "sm",
480
+ variant: "brand",
481
+ fill: "solid",
482
+ onRemove: () => {
483
+ i.setQuickFilter(""), o();
484
+ }
485
+ }
486
+ ),
487
+ T.map((g) => /* @__PURE__ */ r(
488
+ xe,
489
+ {
490
+ label: g.label,
491
+ size: "sm",
492
+ variant: "brand",
493
+ fill: "solid",
494
+ onRemove: () => {
495
+ i.setColumnFilter(g.key, null), o();
496
+ }
497
+ },
498
+ g.key
499
+ )),
500
+ /* @__PURE__ */ r(
501
+ ie,
502
+ {
503
+ type: "button",
504
+ intent: "ghost",
505
+ size: "sm",
506
+ onClick: () => {
507
+ i.clearAllFilters(), o();
508
+ },
509
+ startIcon: /* @__PURE__ */ r(Fe, { "aria-hidden": !0, className: "ds:size-4" }),
510
+ children: n("dataTable.filterChips.clearAll", "Clear all")
511
+ }
512
+ )
513
+ ]
514
+ }
515
+ );
516
+ };
517
+ L.displayName = `${e}.FilterChips`;
518
+ const fe = ({ field: n, options: c, label: i }) => {
519
+ var y;
520
+ const { t: o } = q("ui"), l = t("FacetFilter"), v = l.features.syncsFilterInputs && !!l.getFacet, b = K(l, v ? ["filter"] : []), [k, m] = A(null);
521
+ X(() => {
522
+ v && m(null);
523
+ }, [v, b]);
524
+ const T = k ? k.value : v ? ((y = l.getFacet) == null ? void 0 : y.call(l, n)) ?? null : null;
525
+ function f($) {
526
+ m({ value: $ }), l.setFacet(n, $);
527
+ }
528
+ return /* @__PURE__ */ r(
529
+ "div",
530
+ {
531
+ role: "group",
532
+ "aria-label": i ?? o("dataTable.facetFilter.label", "Filter"),
533
+ className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)]",
534
+ children: c.map(($) => {
535
+ const S = T === $.value;
536
+ return /* @__PURE__ */ r(
537
+ ie,
538
+ {
539
+ type: "button",
540
+ size: "sm",
541
+ intent: S ? "primary" : "secondary",
542
+ "aria-pressed": S,
543
+ onClick: () => f($.value),
544
+ children: $.label
545
+ },
546
+ String($.value)
547
+ );
548
+ })
549
+ }
550
+ );
551
+ };
552
+ fe.displayName = `${e}.FacetFilter`;
553
+ const ge = $e(!1), le = V(
554
+ ({ children: n, label: c, intent: i = "outline", ...o }, l) => {
555
+ const { t: v } = q("ui");
556
+ return t("ExportMenu"), /* @__PURE__ */ r(ge.Provider, { value: !0, children: /* @__PURE__ */ G(U.Root, { children: [
557
+ /* @__PURE__ */ r(U.Trigger, { asChild: !0, children: /* @__PURE__ */ r(
558
+ H,
559
+ {
560
+ ref: l,
561
+ type: "button",
562
+ intent: i,
563
+ icon: /* @__PURE__ */ r(Ce, { "aria-hidden": !0 }),
564
+ tooltip: c ?? v("dataTable.export.menu", "Export"),
565
+ "aria-label": c ?? v("dataTable.export.menu", "Export"),
566
+ "aria-haspopup": "menu",
567
+ ...o
568
+ }
569
+ ) }),
570
+ /* @__PURE__ */ r(U.Content, { align: "end", sideOffset: 4, children: n })
571
+ ] }) });
572
+ }
573
+ );
574
+ le.displayName = `${e}.ExportMenu`;
575
+ function Ie(n, c) {
576
+ return c === "csv" ? n("dataTable.export.csv", "Export CSV") : c === "xlsx" ? n("dataTable.export.xlsx", "Export Excel") : c === "pdf" ? n("dataTable.export.pdf", "Export PDF") : n("dataTable.export.custom", "Export");
577
+ }
578
+ function Re(n) {
579
+ return n === "xlsx" ? /* @__PURE__ */ r(Je, { "aria-hidden": !0, className: "ds:size-4" }) : n === "pdf" ? /* @__PURE__ */ r(Ke, { "aria-hidden": !0, className: "ds:size-4" }) : /* @__PURE__ */ r(Ce, { "aria-hidden": !0, className: "ds:size-4" });
580
+ }
581
+ const he = ({
582
+ format: n,
583
+ label: c,
584
+ onSelect: i,
585
+ disabled: o,
586
+ description: l
587
+ }) => {
588
+ const { t: v } = q("ui");
589
+ if (!Se(ge))
590
+ throw new Error(
591
+ `${e}.ExportMenu.Item must be rendered inside ${e}.ExportMenu.`
592
+ );
593
+ return /* @__PURE__ */ r(
594
+ U.Item,
595
+ {
596
+ onSelect: i,
597
+ disabled: o,
598
+ description: l,
599
+ children: /* @__PURE__ */ G("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
600
+ Re(n),
601
+ /* @__PURE__ */ r("span", { children: c ?? Ie(v, n) })
602
+ ] })
603
+ }
604
+ );
605
+ };
606
+ he.displayName = `${e}.ExportMenu.Item`;
607
+ const de = V(
608
+ function({ label: c, icon: i, footer: o, header: l, intent: v = "outline", ...b }, k) {
609
+ const { t: m, i18n: T } = q("ui"), f = t("ColumnToggle"), y = f.features.keyboardReorder, $ = f.features.toolbarAnnouncesColumnMoves === !0, [S, W] = A(!1), [g, R] = A(""), O = K(f, S ? ["columns"] : []), [w, h] = A([]), [ve, ce] = A(null), [Me, te] = A(null), J = _(/* @__PURE__ */ new Map()), re = _(
610
+ null
611
+ ), j = se(
612
+ () => f.getColumns().filter((s) => s.hiddenByPrivacy !== !0),
613
+ [f]
614
+ );
615
+ X(() => {
616
+ S && h(j());
617
+ }, [S, j, O]), X(() => {
618
+ S && R("");
619
+ }, [S]), ze(() => {
620
+ var p;
621
+ const s = re.current;
622
+ if (!s) return;
623
+ re.current = null;
624
+ const C = w.findIndex((z) => z.id === s.id);
625
+ if (C < 0) return;
626
+ const P = (s.dir === "up" ? C === 0 : C === w.length - 1) ? s.dir === "up" ? "down" : "up" : s.dir;
627
+ (p = J.current.get(`${s.id}:${P}`)) == null || p.focus();
628
+ }, [w]);
629
+ const qe = se(
630
+ (s, C) => {
631
+ f.isReady() && (f.setColumnVisible(s, C), h(j()));
632
+ },
633
+ [f, j]
634
+ ), Te = se(
635
+ (s, C) => {
636
+ if (!f.isReady()) return;
637
+ const B = f.getColumns().find((pe) => pe.id === s);
638
+ f.moveColumn(s, C);
639
+ const P = j();
640
+ if (h(P), !$ || !B) return;
641
+ const p = P.findIndex((pe) => pe.id === s), z = P[p];
642
+ if (!z) return;
643
+ const ae = z.label || s;
644
+ if (z.pinned !== B.pinned) {
645
+ R(
646
+ z.pinned === "start" ? m("dataGrid.announce.columnPinnedStart", { column: ae }) : z.pinned === "end" ? m("dataGrid.announce.columnPinnedEnd", { column: ae }) : m("dataGrid.announce.columnUnpinned", { column: ae })
647
+ );
648
+ return;
649
+ }
650
+ R(
651
+ m("dataGrid.announce.columnMoved", {
652
+ column: ae,
653
+ position: me(p + 1, T.language),
654
+ total: me(P.length, T.language)
655
+ })
656
+ );
657
+ },
658
+ [f, j, $, m, T.language]
659
+ ), ue = se(
660
+ (s, C) => {
661
+ if (s === C) return;
662
+ const B = f.getColumns().findIndex((P) => P.id === C);
663
+ B < 0 || Te(s, B);
664
+ },
665
+ [f, Te]
666
+ ), ne = c ?? m("dataTable.columnToggle");
667
+ return /* @__PURE__ */ G(oe.Root, { open: S, onOpenChange: W, children: [
668
+ /* @__PURE__ */ r(oe.Trigger, { asChild: !0, children: /* @__PURE__ */ r(
669
+ H,
670
+ {
671
+ ref: k,
672
+ type: "button",
673
+ intent: v,
674
+ icon: i ?? /* @__PURE__ */ r(et, { "aria-hidden": !0 }),
675
+ tooltip: ne,
676
+ "aria-label": ne,
677
+ "aria-haspopup": "dialog",
678
+ ...b
679
+ }
680
+ ) }),
681
+ /* @__PURE__ */ G(
682
+ oe.Content,
683
+ {
684
+ size: "sm",
685
+ align: "end",
686
+ className: "ds:flex ds:max-h-[var(--radix-popover-content-available-height)] ds:flex-col",
687
+ children: [
688
+ /* @__PURE__ */ r(oe.Heading, { children: ne }),
689
+ l ? /* @__PURE__ */ r("div", { className: "ds:mb-[var(--spacing-xs)] ds:border-b ds:border-[color:var(--border)] ds:pb-[var(--spacing-sm)]", children: l }) : null,
690
+ /* @__PURE__ */ r(
691
+ "ul",
692
+ {
693
+ className: "ds:flex ds:min-h-0 ds:flex-col ds:gap-[var(--spacing-xs)] ds:overflow-y-auto",
694
+ "aria-label": ne,
695
+ children: w.map((s, C) => {
696
+ const B = ve === s.id, P = Me === s.id && ve !== s.id;
697
+ return /* @__PURE__ */ G(
698
+ "li",
699
+ {
700
+ draggable: !0,
701
+ onDragStart: (p) => {
702
+ ce(s.id), p.dataTransfer.effectAllowed = "move", p.dataTransfer.setData("text/plain", s.id);
703
+ },
704
+ onDragOver: (p) => {
705
+ p.preventDefault(), p.dataTransfer.dropEffect = "move", te(s.id);
706
+ },
707
+ onDragLeave: () => {
708
+ te((p) => p === s.id ? null : p);
709
+ },
710
+ onDrop: (p) => {
711
+ p.preventDefault();
712
+ const z = p.dataTransfer.getData("text/plain");
713
+ z && ue(z, s.id), ce(null), te(null);
714
+ },
715
+ onDragEnd: () => {
716
+ ce(null), te(null);
717
+ },
718
+ className: ft({
719
+ dragging: B,
720
+ dragOver: P
721
+ }),
722
+ children: [
723
+ /* @__PURE__ */ r(
724
+ "span",
725
+ {
726
+ "aria-hidden": "true",
727
+ className: "ds:cursor-grab ds:text-[color:var(--muted-foreground)] ds:active:cursor-grabbing",
728
+ children: /* @__PURE__ */ r(He, { className: "ds:size-4" })
729
+ }
730
+ ),
731
+ /* @__PURE__ */ r(
732
+ Ve,
733
+ {
734
+ label: s.label,
735
+ checked: s.visible,
736
+ disabled: s.canHide === !1,
737
+ onCheckedChange: (p) => qe(s.id, p === !0)
738
+ }
739
+ ),
740
+ y ? /* @__PURE__ */ G("span", { className: "ds:ms-auto ds:flex ds:items-center", children: [
741
+ /* @__PURE__ */ r(
742
+ H,
743
+ {
744
+ ref: (p) => {
745
+ p ? J.current.set(`${s.id}:up`, p) : J.current.delete(`${s.id}:up`);
746
+ },
747
+ type: "button",
748
+ size: "sm",
749
+ intent: "ghost",
750
+ icon: /* @__PURE__ */ r(_e, { "aria-hidden": !0 }),
751
+ "aria-label": m("dataGrid.toolbar.moveColumnUp", {
752
+ column: s.label
753
+ }),
754
+ disabled: !Ne(w, C, C - 1),
755
+ onClick: () => {
756
+ re.current = { id: s.id, dir: "up" };
757
+ const p = w[C - 1];
758
+ p && ue(s.id, p.id);
759
+ }
760
+ }
761
+ ),
762
+ /* @__PURE__ */ r(
763
+ H,
764
+ {
765
+ ref: (p) => {
766
+ p ? J.current.set(`${s.id}:down`, p) : J.current.delete(`${s.id}:down`);
767
+ },
768
+ type: "button",
769
+ size: "sm",
770
+ intent: "ghost",
771
+ icon: /* @__PURE__ */ r(Ue, { "aria-hidden": !0 }),
772
+ "aria-label": m("dataGrid.toolbar.moveColumnDown", {
773
+ column: s.label
774
+ }),
775
+ disabled: !Ne(w, C, C + 1),
776
+ onClick: () => {
777
+ re.current = { id: s.id, dir: "down" };
778
+ const p = w[C + 1];
779
+ p && ue(s.id, p.id);
780
+ }
781
+ }
782
+ )
783
+ ] }) : null
784
+ ]
785
+ },
786
+ s.id
787
+ );
788
+ })
789
+ }
790
+ ),
791
+ $ ? /* @__PURE__ */ r("span", { role: "status", className: "ds:sr-only", children: g }) : null,
792
+ y && f.resetColumns ? /* @__PURE__ */ r("div", { className: "ds:mt-[var(--spacing-xs)] ds:border-t ds:border-[color:var(--border)] ds:pt-[var(--spacing-sm)]", children: /* @__PURE__ */ r(
793
+ ie,
794
+ {
795
+ type: "button",
796
+ intent: "ghost",
797
+ size: "sm",
798
+ startIcon: /* @__PURE__ */ r(Xe, { "aria-hidden": !0, className: "ds:size-4" }),
799
+ onClick: () => {
800
+ var s;
801
+ (s = f.resetColumns) == null || s.call(f), h(j());
802
+ },
803
+ children: m("dataGrid.toolbar.resetColumns")
804
+ }
805
+ ) }) : null,
806
+ o ? /* @__PURE__ */ r("div", { className: "ds:mt-[var(--spacing-xs)] ds:border-t ds:border-[color:var(--border)] ds:pt-[var(--spacing-sm)]", children: o }) : null
807
+ ]
808
+ }
809
+ )
810
+ ] });
811
+ }
812
+ );
813
+ de.displayName = `${e}.ColumnToggle`;
814
+ const be = V(
815
+ ({ label: n, icon: c, onAction: i, variant: o = "default", size: l = "sm", ...v }, b) => {
816
+ const { t: k } = q("ui"), m = t("BulkAction");
817
+ K(m, ["selection"]);
818
+ const T = m.getSelectionCount();
819
+ return T === 0 ? null : /* @__PURE__ */ G(
820
+ ie,
821
+ {
822
+ ref: b,
823
+ type: "button",
824
+ intent: o === "destructive" ? "destructive" : "secondary",
825
+ size: l,
826
+ startIcon: lt(c),
827
+ onClick: () => i(dt(m)),
828
+ "aria-label": `${n} (${k("dataTable.bulkAction", { count: T })})`,
829
+ ...v,
830
+ children: [
831
+ /* @__PURE__ */ r("span", { children: n }),
832
+ /* @__PURE__ */ r(
833
+ "span",
834
+ {
835
+ "aria-hidden": "true",
836
+ className: "ds:ms-[var(--spacing-xs)] ds:opacity-80",
837
+ children: k("dataTable.bulkAction", { count: T })
838
+ }
839
+ )
840
+ ]
841
+ }
842
+ );
843
+ }
844
+ );
845
+ be.displayName = `${e}.BulkAction`;
846
+ for (const n of [M, N, le, de])
847
+ n.rendersIconButton = !0;
848
+ return {
849
+ Root: u,
850
+ FilterBar: F,
851
+ Actions: E,
852
+ Print: ee,
853
+ Refresh: x,
854
+ QuickSearch: D,
855
+ FilterChips: L,
856
+ FacetFilter: fe,
857
+ ExportMenu: le,
858
+ ExportMenuItemBase: he,
859
+ ColumnToggle: de,
860
+ BulkAction: be,
861
+ useSeam: t
862
+ };
863
+ }
864
+ export {
865
+ Bt as T,
866
+ dt as a,
867
+ Vt as c
868
+ };
869
+ //# sourceMappingURL=parts-CcyRkB8t.js.map