@alfadocs/ui-kit 1.114.0 → 1.115.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 (290) hide show
  1. package/dist/_chunks/{actions-cell-renderer-BVn3vDTg.js → actions-cell-renderer-bI27uXXC.js} +2 -2
  2. package/dist/_chunks/{ai-permission-notice-BkgcGmu8.js → ai-permission-notice-C-xR2_iS.js} +2 -2
  3. package/dist/_chunks/{alia-sidebar-CKkg3gc8.js → alia-sidebar-BBxbMRmX.js} +2 -2
  4. package/dist/_chunks/{anamnesis-summary-rows-DaS-j8Jd.js → anamnesis-summary-rows-BZ36ULQk.js} +4 -4
  5. package/dist/_chunks/{antenatal-schedule-timeline-DmlXxevC.js → antenatal-schedule-timeline-va9zx7tJ.js} +11 -11
  6. package/dist/_chunks/{appointment-card-FKOnH1uJ.js → appointment-card-D_-aBrx5.js} +2 -2
  7. package/dist/_chunks/{appointment-timeline-eOi-y8m3.js → appointment-timeline-DxLu3afn.js} +3 -3
  8. package/dist/_chunks/{appointment-tray-C6oBvsG5.js → appointment-tray-BhXOJpIJ.js} +2 -2
  9. package/dist/_chunks/{ar-C4YQVTH6.js → ar-BFvUBJ_g.js} +10 -10
  10. package/dist/_chunks/{balance-badge-cell-BAZynD--.js → balance-badge-cell-CXHihM22.js} +28 -27
  11. package/dist/_chunks/buildMatchPatternFn-jbaE1-W0.js +68 -0
  12. package/dist/_chunks/{calendar-appointment-editor-dialog-iyh9QqNw.js → calendar-appointment-editor-dialog-BVzFi4hH.js} +519 -531
  13. package/dist/_chunks/{care-plan-card-DMjlYlFc.js → care-plan-card-BA3MfdfZ.js} +2 -2
  14. package/dist/_chunks/{care-plan-entry-card-3hguBW45.js → care-plan-entry-card-CUtFZ813.js} +2 -2
  15. package/dist/_chunks/{chart-bddVIElM.js → chart-DebrFZ6L.js} +2 -2
  16. package/dist/_chunks/{chat-container-baxzy8k8.js → chat-container-B83b4hut.js} +2 -2
  17. package/dist/_chunks/checkbox-DV4sNDeB.js +282 -0
  18. package/dist/_chunks/{checkbox-group-eGdv9fZc.js → checkbox-group-EfinQS1h.js} +2 -2
  19. package/dist/_chunks/chevrons-up-down-CgiVAHb7.js +15 -0
  20. package/dist/_chunks/compact-editor-fields-cP6yh7xv.js +21 -0
  21. package/dist/_chunks/{cycle-calculator-Dd-XbKmZ.js → cycle-calculator-C68V9rdH.js} +5 -5
  22. package/dist/_chunks/data-grid-tabs-CsLbIv0h.js +365 -0
  23. package/dist/_chunks/data-table-DXaE2Ret.js +1693 -0
  24. package/dist/_chunks/data-table-tabs-NYLhD8_Z.js +242 -0
  25. package/dist/_chunks/date-locale-OG-MupVD.js +83 -0
  26. package/dist/_chunks/{date-picker-CdhXlgVI.js → date-picker-DBVTj6lO.js} +21 -20
  27. package/dist/_chunks/{date-picker-variants-Dt6UbonG.js → date-picker-variants-J1EeAhIH.js} +601 -678
  28. package/dist/_chunks/date-range-panel-CBFfkgmz.js +62 -0
  29. package/dist/_chunks/{date-range-picker-DCADIR8o.js → date-range-picker-PTRpDkXT.js} +72 -70
  30. package/dist/_chunks/{date-time-picker-CT2bC7-A.js → date-time-picker-CJnqiQoT.js} +22 -21
  31. package/dist/_chunks/{de-B1B3PIgY.js → de-i9wbjGPc.js} +2 -2
  32. package/dist/_chunks/{due-date-calculator-Dl6SyMHO.js → due-date-calculator-C1UA5jpS.js} +6 -6
  33. package/dist/_chunks/{editable-currency-cell-renderer-BUdFMh67.js → editable-currency-cell-renderer-CtlMhLai.js} +3 -3
  34. package/dist/_chunks/{el-iLqGpapg.js → el-Cm-rWthb.js} +20 -20
  35. package/dist/_chunks/{en-GB-CxPRQbD6.js → en-GB-BHn82gW8.js} +11 -10
  36. package/dist/_chunks/en-US-C4QKhzhA.js +46 -0
  37. package/dist/_chunks/{es-Bg1oqwDs.js → es-B_6Z19UA.js} +4 -4
  38. package/dist/_chunks/{face-scheme-DlcQaQVR.js → face-scheme-DkoxiDCh.js} +2 -2
  39. package/dist/_chunks/{file-manager-LG7B_UHB.js → file-manager-DFFExyym.js} +4 -4
  40. package/dist/_chunks/format-ql5WTsYT.js +846 -0
  41. package/dist/_chunks/{fr-DpGxyOGI.js → fr-gTba51QO.js} +7 -7
  42. package/dist/_chunks/funnel-DpPV3Qkd.js +20 -0
  43. package/dist/_chunks/{gestational-age-calculator-DmzYdW5e.js → gestational-age-calculator-60y1RyQL.js} +7 -7
  44. package/dist/_chunks/grid-context-AwsLJRhH.js +46 -0
  45. package/dist/_chunks/{hcg-doubling-Tr72PetS.js → hcg-doubling-CC-dbKE8.js} +6 -5
  46. package/dist/_chunks/{heatmap-CNxCDl0D.js → heatmap-eXdtmEoU.js} +4 -4
  47. package/dist/_chunks/{hi-3Dtsksrw.js → hi-BIHq9ncx.js} +10 -10
  48. package/dist/_chunks/icon-button-group-C9mPK-bX.js +442 -0
  49. package/dist/_chunks/{index-CJE9uQmb.js → index-Bze5jCG_.js} +2 -1
  50. package/dist/_chunks/{isSameWeek-DyVftHWi.js → isSameWeek-CZOtDcsd.js} +2 -2
  51. package/dist/_chunks/{it-Cp0CA13d.js → it-DaCPWJ9Y.js} +11 -11
  52. package/dist/_chunks/{ja-9FOyR1lb.js → ja-BRCpkD95.js} +26 -26
  53. package/dist/_chunks/{kit-extensions-DZJRmDI6.js → kit-extensions-CzG0RmhQ.js} +4 -4
  54. package/dist/_chunks/link-cell-renderer-Ditt5mvT.js +800 -0
  55. package/dist/_chunks/{login-dev-card-D7orCfJT.js → login-dev-card-CPndtWdz.js} +2 -2
  56. package/dist/_chunks/{marketplace-app-shell-CPNVBVLH.js → marketplace-app-shell-CcEHJgDd.js} +2 -2
  57. package/dist/_chunks/match-BATShpSX.js +336 -0
  58. package/dist/_chunks/{nl-sfx-zJgR.js → nl-5tAwYo00.js} +6 -6
  59. package/dist/_chunks/normalizeDates-BBNNIR-v.js +36 -0
  60. package/dist/_chunks/{notes-panel-DXMTObBv.js → notes-panel-BVYG_MJE.js} +2 -2
  61. package/dist/_chunks/{parse-B0s7bY4d.js → parse-BLBWPIgE.js} +63 -61
  62. package/dist/_chunks/{parseISO-DZZ5a-zK.js → parseISO-Dl4T9peU.js} +2 -2
  63. package/dist/_chunks/parts-Wz2LeGnH.js +1113 -0
  64. package/dist/_chunks/{patient-details-DdtXBNjt.js → patient-details-DlT-vpSe.js} +2 -2
  65. package/dist/_chunks/{patient-field-row-D9rb-QJH.js → patient-field-row-B54uzvu-.js} +3 -3
  66. package/dist/_chunks/{patient-summary-card-CGHz-Bvm.js → patient-summary-card-Dy9-CzON.js} +3 -3
  67. package/dist/_chunks/{periodontal-diagnosis-xheWfi4g.js → periodontal-diagnosis-DnZuZD14.js} +2 -2
  68. package/dist/_chunks/{permission-matrix-BJ6sg3Zp.js → permission-matrix-BXmhICzN.js} +3 -3
  69. package/dist/_chunks/{pl-BLh7KO-s.js → pl-mLYbfByR.js} +7 -7
  70. package/dist/_chunks/{pregnancy-dating-BvorzHrd.js → pregnancy-dating-qZpw3zj8.js} +7 -7
  71. package/dist/_chunks/privacy-mask-BlJK51MD.js +78 -0
  72. package/dist/_chunks/privacy-mask-text-B8YfzB7L.js +7 -0
  73. package/dist/_chunks/{pt-CPKOrOLj.js → pt-CgaqtlD9.js} +6 -6
  74. package/dist/_chunks/{radiograph-panel.agent-CXah49KM.js → radiograph-panel.agent-C1LGeX-G.js} +3 -3
  75. package/dist/_chunks/{registration-form-Lw9T7IXr.js → registration-form-DW-0X7S4.js} +2 -2
  76. package/dist/_chunks/{reserved.agent-D2jwJPac.js → reserved.agent-6p3Hm4oH.js} +9 -9
  77. package/dist/_chunks/{rich-text-editor-BLS2cK-u.js → rich-text-editor-efaMWbYz.js} +3 -3
  78. package/dist/_chunks/{ro-Dc-oNqbF.js → ro-CpDg1-8v.js} +2 -2
  79. package/dist/_chunks/{ru-BtNpDZRR.js → ru-B7VMyjud.js} +9 -9
  80. package/dist/_chunks/saved-view-tabs-DLWm88Eq.js +932 -0
  81. package/dist/_chunks/{send-registration-link-form-DfbTjrEK.js → send-registration-link-form-DWxWa_cJ.js} +5 -5
  82. package/dist/_chunks/{sidebar-2VsPlNkZ.js → sidebar-D5DFYN5K.js} +326 -335
  83. package/dist/_chunks/{slot-grid-BhjaLJ0o.js → slot-grid-b4eZXokb.js} +3 -3
  84. package/dist/_chunks/{sq-D4c7olaV.js → sq-B0Ree_9P.js} +2 -2
  85. package/dist/_chunks/subDays-Bsoy023P.js +8 -0
  86. package/dist/_chunks/{sv-Bf_dHPvh.js → sv-D9fP66O7.js} +4 -4
  87. package/dist/_chunks/{tag-DOZGz0fT.js → tag-BNlcEJfE.js} +70 -67
  88. package/dist/_chunks/{task-card-DqVoitRk.js → task-card-BNbkwIYM.js} +2 -2
  89. package/dist/_chunks/{task-editor-D--LwVrg.js → task-editor-CSa6vQ9r.js} +377 -391
  90. package/dist/_chunks/{task-tray-C6j8HVMv.js → task-tray-Bmi9wCHq.js} +2 -2
  91. package/dist/_chunks/{tasks-panel-D6PuF4MQ.js → tasks-panel-CVjY1d7Q.js} +2 -2
  92. package/dist/_chunks/{theme-toggle-Czq3K9jB.js → theme-toggle-CObX2Ffa.js} +2 -2
  93. package/dist/_chunks/toolbar-Bc3pjfG5.js +9907 -0
  94. package/dist/_chunks/{tr-xqQ6cbGY.js → tr-Bcz5LCHZ.js} +2 -2
  95. package/dist/_chunks/{transcript-panel-A781Pkzr.js → transcript-panel-Wr8e4Zgi.js} +2 -2
  96. package/dist/_chunks/{treatment-receipt-pFqWFyD_.js → treatment-receipt-BydbojdD.js} +2 -2
  97. package/dist/_chunks/{use-appointment-details-read-BK_Gw1GG.js → use-appointment-details-read-BMAiQYo6.js} +4 -4
  98. package/dist/_chunks/{voice-control-panel-BGiX4sqB.js → voice-control-panel-Be_c0CQ0.js} +2 -2
  99. package/dist/_chunks/{workflow-webhook-action-CtBn5JvO.js → workflow-webhook-action-DNSe65yd.js} +2 -2
  100. package/dist/_chunks/{zh-CN-C657DBCO.js → zh-CN-B7Ek17US.js} +11 -11
  101. package/dist/agent-catalog.json +717 -6
  102. package/dist/agent-i18n/en.json +50 -2
  103. package/dist/components/_shared/privacy-mask-text.d.ts +4 -0
  104. package/dist/components/_shared/privacy-mask.d.ts +2 -4
  105. package/dist/components/_shared/saved-view-tabs/saved-tab.d.ts +54 -0
  106. package/dist/components/_shared/saved-view-tabs/saved-view-tabs.d.ts +93 -0
  107. package/dist/components/_shared/saved-view-tabs/use-saved-view-tabs.d.ts +59 -0
  108. package/dist/components/_shared/saved-view-tabs/view-adapter.d.ts +69 -0
  109. package/dist/components/_shared/table-filters/calendar-day.d.ts +27 -0
  110. package/dist/components/_shared/table-filters/predicates.d.ts +56 -0
  111. package/dist/components/_shared/table-toolbar/context.d.ts +28 -0
  112. package/dist/components/_shared/table-toolbar/describe-filter.d.ts +42 -0
  113. package/dist/components/_shared/table-toolbar/export-files.d.ts +47 -0
  114. package/dist/components/{data-table/xlsx-export.d.ts → _shared/table-toolbar/export-xlsx.d.ts} +2 -2
  115. package/dist/components/_shared/table-toolbar/parts.d.ts +125 -0
  116. package/dist/components/_shared/table-toolbar/seam.d.ts +261 -0
  117. package/dist/components/ai-permission-notice/index.js +1 -1
  118. package/dist/components/appointment-card/index.js +2 -2
  119. package/dist/components/appointment-details-panel/index.js +1 -1
  120. package/dist/components/appointment-timeline/index.js +1 -1
  121. package/dist/components/booking/index.js +1 -1
  122. package/dist/components/care-plan-card/index.js +1 -1
  123. package/dist/components/care-plan-entry-card/index.js +1 -1
  124. package/dist/components/chart/index.js +1 -1
  125. package/dist/components/chat-container/index.js +1 -1
  126. package/dist/components/checkbox/checkbox.d.ts +66 -6
  127. package/dist/components/checkbox/index.js +1 -1
  128. package/dist/components/checkbox-group/index.js +1 -1
  129. package/dist/components/cycle-calculator/index.js +1 -1
  130. package/dist/components/data-grid/announcer.d.ts +27 -0
  131. package/dist/components/data-grid/body.d.ts +95 -0
  132. package/dist/components/data-grid/columns.d.ts +96 -0
  133. package/dist/components/data-grid/data-grid.agent.d.ts +2 -1
  134. package/dist/components/data-grid/data-grid.d.ts +11 -27
  135. package/dist/components/data-grid/data-grid.variants.d.ts +118 -0
  136. package/dist/components/data-grid/editors.d.ts +8 -0
  137. package/dist/components/data-grid/export-snapshot.d.ts +3 -0
  138. package/dist/components/data-grid/features.d.ts +56 -0
  139. package/dist/components/data-grid/filter-fns.d.ts +23 -0
  140. package/dist/components/data-grid/filters/date-range-panel.d.ts +8 -0
  141. package/dist/components/data-grid/filters/filter-panels.d.ts +27 -0
  142. package/dist/components/data-grid/filters/filter-trigger.d.ts +7 -0
  143. package/dist/components/data-grid/footer.d.ts +10 -0
  144. package/dist/components/data-grid/grid-context.d.ts +18 -0
  145. package/dist/components/data-grid/handle.d.ts +60 -0
  146. package/dist/components/data-grid/header.d.ts +12 -0
  147. package/dist/components/data-grid/index.d.ts +3 -0
  148. package/dist/components/data-grid/index.js +10 -3
  149. package/dist/components/data-grid/keyboard.d.ts +76 -0
  150. package/dist/components/data-grid/pager.d.ts +18 -0
  151. package/dist/components/data-grid/persistence.d.ts +60 -0
  152. package/dist/components/data-grid/print.d.ts +10 -0
  153. package/dist/components/data-grid/responsive.d.ts +36 -0
  154. package/dist/components/data-grid/selection.d.ts +58 -0
  155. package/dist/components/data-grid/state.d.ts +119 -0
  156. package/dist/components/data-grid/states.d.ts +34 -0
  157. package/dist/components/data-grid/toolbar-seam.d.ts +7 -0
  158. package/dist/components/data-grid/toolbar.d.ts +41 -0
  159. package/dist/components/data-grid/types.d.ts +1346 -0
  160. package/dist/components/data-grid/use-data-grid-engine.d.ts +9 -0
  161. package/dist/components/data-grid/virtual-rows.d.ts +43 -0
  162. package/dist/components/data-grid-tabs/data-grid-tabs.agent.d.ts +9 -0
  163. package/dist/components/data-grid-tabs/data-grid-tabs.d.ts +4 -0
  164. package/dist/components/data-grid-tabs/grid-view-adapter.d.ts +15 -0
  165. package/dist/components/data-grid-tabs/index.d.ts +5 -0
  166. package/dist/components/data-grid-tabs/index.js +8 -0
  167. package/dist/components/data-grid-tabs/types.d.ts +220 -0
  168. package/dist/components/data-table/ag-toolbar-seam.d.ts +35 -0
  169. package/dist/components/data-table/calendar-day.d.ts +4 -21
  170. package/dist/components/data-table/data-table.d.ts +10 -6
  171. package/dist/components/data-table/filters/date-range-filter.d.ts +5 -9
  172. package/dist/components/data-table/filters/filter-kind.d.ts +6 -0
  173. package/dist/components/data-table/filters/number-filter.d.ts +6 -10
  174. package/dist/components/data-table/filters/select-filter.d.ts +2 -4
  175. package/dist/components/data-table/filters/text-filter.d.ts +2 -5
  176. package/dist/components/data-table/index.js +4 -4
  177. package/dist/components/data-table/toolbar.d.ts +25 -21
  178. package/dist/components/data-table-tabs/ag-view-adapter.d.ts +17 -0
  179. package/dist/components/data-table-tabs/data-table-tabs.d.ts +34 -33
  180. package/dist/components/data-table-tabs/index.js +1 -1
  181. package/dist/components/data-table-tabs/use-data-table-filter-tabs.d.ts +11 -66
  182. package/dist/components/date-picker/index.js +1 -1
  183. package/dist/components/date-range-picker/index.js +1 -1
  184. package/dist/components/date-time-picker/index.js +1 -1
  185. package/dist/components/due-date-calculator/index.js +2 -2
  186. package/dist/components/face-scheme/index.js +1 -1
  187. package/dist/components/file-manager/index.js +1 -1
  188. package/dist/components/gestational-age-calculator/index.js +1 -1
  189. package/dist/components/hcg-doubling/index.js +1 -1
  190. package/dist/components/heatmap/index.js +1 -1
  191. package/dist/components/icon-button-group/icon-button-group.d.ts +19 -1
  192. package/dist/components/icon-button-group/index.d.ts +1 -1
  193. package/dist/components/icon-button-group/index.js +1 -1
  194. package/dist/components/index.d.ts +1 -0
  195. package/dist/components/notes-panel/index.js +1 -1
  196. package/dist/components/patient-details/index.js +1 -1
  197. package/dist/components/patient-summary-card/index.js +1 -1
  198. package/dist/components/patient-table/index.js +1 -1
  199. package/dist/components/periodontal-diagnosis/index.js +1 -1
  200. package/dist/components/permission-matrix/index.js +1 -1
  201. package/dist/components/pregnancy-dating/index.js +1 -1
  202. package/dist/components/radiograph-panel/index.js +1 -1
  203. package/dist/components/rich-text-editor/index.js +2 -2
  204. package/dist/components/sidebar/index.js +1 -1
  205. package/dist/components/slot-grid/index.js +1 -1
  206. package/dist/components/tag/index.js +1 -1
  207. package/dist/components/task-card/index.js +1 -1
  208. package/dist/components/task-editor/index.js +1 -1
  209. package/dist/components/task-tray/index.js +1 -1
  210. package/dist/components/tasks-panel/index.js +1 -1
  211. package/dist/components/theme-toggle/index.js +1 -1
  212. package/dist/components/transcript-panel/index.js +1 -1
  213. package/dist/components/treatment-receipt/index.js +1 -1
  214. package/dist/components/voice-control-panel/index.js +1 -1
  215. package/dist/core.css +1 -1
  216. package/dist/host-compat.css +33 -2
  217. package/dist/i18n/locales/ar.d.ts +94 -0
  218. package/dist/i18n/locales/ar.js +96 -2
  219. package/dist/i18n/locales/de.d.ts +94 -0
  220. package/dist/i18n/locales/de.js +96 -2
  221. package/dist/i18n/locales/el.d.ts +94 -0
  222. package/dist/i18n/locales/el.js +96 -2
  223. package/dist/i18n/locales/en.d.ts +94 -0
  224. package/dist/i18n/locales/en.js +97 -2
  225. package/dist/i18n/locales/es.d.ts +94 -0
  226. package/dist/i18n/locales/es.js +96 -2
  227. package/dist/i18n/locales/fr.d.ts +94 -0
  228. package/dist/i18n/locales/fr.js +96 -2
  229. package/dist/i18n/locales/hi.d.ts +94 -0
  230. package/dist/i18n/locales/hi.js +96 -2
  231. package/dist/i18n/locales/it.d.ts +94 -0
  232. package/dist/i18n/locales/it.js +96 -2
  233. package/dist/i18n/locales/ja.d.ts +94 -0
  234. package/dist/i18n/locales/ja.js +96 -2
  235. package/dist/i18n/locales/nl.d.ts +94 -0
  236. package/dist/i18n/locales/nl.js +96 -2
  237. package/dist/i18n/locales/pl.d.ts +94 -0
  238. package/dist/i18n/locales/pl.js +96 -2
  239. package/dist/i18n/locales/pt.d.ts +94 -0
  240. package/dist/i18n/locales/pt.js +96 -2
  241. package/dist/i18n/locales/ro.d.ts +94 -0
  242. package/dist/i18n/locales/ro.js +96 -2
  243. package/dist/i18n/locales/ru.d.ts +94 -0
  244. package/dist/i18n/locales/ru.js +96 -2
  245. package/dist/i18n/locales/sq.d.ts +94 -0
  246. package/dist/i18n/locales/sq.js +96 -2
  247. package/dist/i18n/locales/sv.d.ts +94 -0
  248. package/dist/i18n/locales/sv.js +96 -2
  249. package/dist/i18n/locales/tr.d.ts +94 -0
  250. package/dist/i18n/locales/tr.js +96 -2
  251. package/dist/i18n/locales/zh.d.ts +94 -0
  252. package/dist/i18n/locales/zh.js +96 -2
  253. package/dist/index.js +1044 -1032
  254. package/dist/locales/ar.json +96 -2
  255. package/dist/locales/de.json +96 -2
  256. package/dist/locales/el.json +96 -2
  257. package/dist/locales/en.json +96 -2
  258. package/dist/locales/es.json +96 -2
  259. package/dist/locales/fr.json +96 -2
  260. package/dist/locales/hi.json +96 -2
  261. package/dist/locales/it.json +96 -2
  262. package/dist/locales/ja.json +96 -2
  263. package/dist/locales/nl.json +96 -2
  264. package/dist/locales/pl.json +96 -2
  265. package/dist/locales/pt.json +96 -2
  266. package/dist/locales/ro.json +96 -2
  267. package/dist/locales/ru.json +96 -2
  268. package/dist/locales/sq.json +96 -2
  269. package/dist/locales/sv.json +96 -2
  270. package/dist/locales/tr.json +96 -2
  271. package/dist/locales/zh.json +96 -2
  272. package/dist/patterns/alia-assistant/index.js +1 -1
  273. package/dist/patterns/anamnesis/index.js +1 -1
  274. package/dist/patterns/calendar/index.js +1 -1
  275. package/dist/patterns/login-form/index.js +1 -1
  276. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  277. package/dist/patterns/registration-form/index.js +1 -1
  278. package/dist/patterns/send-registration-link-form/index.js +1 -1
  279. package/dist/patterns/workflow-webhook-action/index.js +1 -1
  280. package/dist/tokens.css +1 -1
  281. package/package.json +5 -1
  282. package/dist/_chunks/checkbox-a7Sh-dXb.js +0 -227
  283. package/dist/_chunks/data-grid.agent-CASyEAnb.js +0 -1773
  284. package/dist/_chunks/data-table-C9idMvs0.js +0 -2042
  285. package/dist/_chunks/data-table-tabs-Db7zToFD.js +0 -728
  286. package/dist/_chunks/format--x5jypvH.js +0 -1319
  287. package/dist/_chunks/icon-button-group-mXvYDaba.js +0 -427
  288. package/dist/_chunks/link-cell-renderer-_Fv3WEmb.js +0 -867
  289. package/dist/_chunks/privacy-mask-Dc3kdkCR.js +0 -81
  290. package/dist/_chunks/subDays-DKISP2nE.js +0 -8
@@ -0,0 +1,800 @@
1
+ import { jsx as c, jsxs as z } from "react/jsx-runtime";
2
+ import { useState as x, useEffect as w, useCallback as ee, useMemo as k, useRef as te } from "react";
3
+ import { useGridFilter as B } from "ag-grid-react";
4
+ import { D as ae } from "./date-range-picker-PTRpDkXT.js";
5
+ import { f as L, d as le, t as q, s as se, a as oe, c as ie, n as ce, i as ue } from "./parts-Wz2LeGnH.js";
6
+ import { r as I } from "./data-table-DXaE2Ret.js";
7
+ import { useTranslation as M } from "react-i18next";
8
+ import { C as de } from "./checkbox-DV4sNDeB.js";
9
+ import { B as j } from "./button-DohK_Ak_.js";
10
+ import { M as fe } from "./multi-select-Df3R8lv_.js";
11
+ import { S as me } from "./scroll-area-CY5SLYNw.js";
12
+ import { A as ne } from "./autocomplete-D10ydpgi.js";
13
+ import { N as E } from "./number-input-CVwI1ltI.js";
14
+ import { S as pe } from "./select-uESzXTX6.js";
15
+ import { B as he } from "./badge-BUk4RjTS.js";
16
+ import { A as H } from "./avatar-Dp5apm1d.js";
17
+ import { T as Q } from "./tag-BNlcEJfE.js";
18
+ import { T as ge } from "./tooltip-uEBdD1-5.js";
19
+ import { T as W } from "./timestamp-DPLDWdxA.js";
20
+ function ve(t) {
21
+ var u;
22
+ const { model: e, onModelChange: a, getValue: n, doesRowPassOtherFilter: l } = t, r = ((u = t.colDef) == null ? void 0 : u.filterParams) ?? {}, [s, i] = x(() => ({
23
+ from: L(e == null ? void 0 : e.dateFrom),
24
+ to: L(e == null ? void 0 : e.dateTo)
25
+ }));
26
+ w(() => {
27
+ i({
28
+ from: L(e == null ? void 0 : e.dateFrom),
29
+ to: L(e == null ? void 0 : e.dateTo)
30
+ });
31
+ }, [e == null ? void 0 : e.dateFrom, e == null ? void 0 : e.dateTo]), B({
32
+ doesFilterPass: (o) => le(n(o.node), e == null ? void 0 : e.dateFrom, e == null ? void 0 : e.dateTo)
33
+ });
34
+ function f(o) {
35
+ if (i(o), !o.from && !o.to) {
36
+ a(null);
37
+ return;
38
+ }
39
+ a({
40
+ type: "inRange",
41
+ dateFrom: q(o.from),
42
+ dateTo: q(o.to)
43
+ });
44
+ }
45
+ return /* @__PURE__ */ c(
46
+ "div",
47
+ {
48
+ "data-component": "date-range-filter",
49
+ className: "ds:p-[var(--spacing-sm)] ds:min-w-[280px]",
50
+ children: /* @__PURE__ */ c(
51
+ ae,
52
+ {
53
+ value: s,
54
+ onChange: f,
55
+ commitMode: r.commitMode,
56
+ size: "sm",
57
+ compact: !0
58
+ }
59
+ )
60
+ }
61
+ );
62
+ }
63
+ I(ve, "dateRange");
64
+ function Qe(t) {
65
+ var f, u;
66
+ const { model: e, onModelChange: a, column: n } = t, l = ((u = (f = n == null ? void 0 : n.getColDef) == null ? void 0 : f.call(n)) == null ? void 0 : u.filterParams) ?? {}, [r, s] = x(() => ({
67
+ from: L(e == null ? void 0 : e.dateFrom),
68
+ to: L(e == null ? void 0 : e.dateTo)
69
+ }));
70
+ w(() => {
71
+ s({
72
+ from: L(e == null ? void 0 : e.dateFrom),
73
+ to: L(e == null ? void 0 : e.dateTo)
74
+ });
75
+ }, [e == null ? void 0 : e.dateFrom, e == null ? void 0 : e.dateTo]);
76
+ function i(o) {
77
+ if (s(o), !o.from && !o.to) {
78
+ a(null);
79
+ return;
80
+ }
81
+ a({
82
+ type: "inRange",
83
+ dateFrom: q(o.from),
84
+ dateTo: q(o.to)
85
+ });
86
+ }
87
+ return /* @__PURE__ */ c("div", { "data-component": "date-range-floating-filter", className: "ds:w-full", children: /* @__PURE__ */ c(
88
+ ae,
89
+ {
90
+ value: r,
91
+ onChange: i,
92
+ commitMode: l.commitMode,
93
+ size: "sm",
94
+ placeholder: l.placeholder,
95
+ compact: !0
96
+ }
97
+ ) });
98
+ }
99
+ const A = oe, be = new Intl.Collator(void 0, { numeric: !0 });
100
+ function ye(t, e) {
101
+ if (!t) return [];
102
+ const a = /* @__PURE__ */ new Map();
103
+ return t.forEachNode((n) => {
104
+ const l = e(n);
105
+ if (l == null) return;
106
+ const r = typeof l == "string" || typeof l == "number" ? l : String(l), s = A(r);
107
+ a.has(s) || a.set(s, { value: r, label: String(r) });
108
+ }), Array.from(a.values()).sort(
109
+ (n, l) => be.compare(String(n.label), String(l.label))
110
+ );
111
+ }
112
+ function Te(t, e) {
113
+ return t.length !== e.length ? !1 : t.every(
114
+ (a, n) => A(a.value) === A(e[n].value) && a.label === e[n].label
115
+ );
116
+ }
117
+ function re(t, e, a) {
118
+ const n = e, l = n !== void 0, [r, s] = x([]), i = te(a);
119
+ return w(() => {
120
+ i.current = a;
121
+ }), w(() => {
122
+ if (l || !t) return;
123
+ const f = () => {
124
+ s((u) => {
125
+ const o = ye(t, i.current);
126
+ return Te(u, o) ? u : o;
127
+ });
128
+ };
129
+ return f(), t.addEventListener("modelUpdated", f), t.addEventListener("cellValueChanged", f), () => {
130
+ t.isDestroyed() || (t.removeEventListener("modelUpdated", f), t.removeEventListener("cellValueChanged", f));
131
+ };
132
+ }, [t, l]), n ?? r;
133
+ }
134
+ function Fe(t) {
135
+ const { model: e, onModelChange: a, getValue: n, api: l, options: r, placeholder: s } = t, { t: i } = M("ui"), f = ee(
136
+ (p) => n(p),
137
+ [n]
138
+ ), u = re(l, r, f), o = k(() => {
139
+ const p = /* @__PURE__ */ new Set(), d = (e == null ? void 0 : e.values) ?? [];
140
+ for (const T of d) p.add(A(T));
141
+ return p;
142
+ }, [e]), [h, F] = x(o);
143
+ w(() => {
144
+ F(o);
145
+ }, [o]), B({
146
+ doesFilterPass: (p) => se(e, n(p.node))
147
+ });
148
+ function y(p) {
149
+ F((d) => {
150
+ const T = new Set(d);
151
+ return T.has(p) ? T.delete(p) : T.add(p), T;
152
+ });
153
+ }
154
+ function b() {
155
+ if (h.size === 0) {
156
+ a(null);
157
+ return;
158
+ }
159
+ const p = [];
160
+ for (const d of u)
161
+ h.has(A(d.value)) && p.push(d.value);
162
+ if (p.length === 0) {
163
+ a(null);
164
+ return;
165
+ }
166
+ a({ type: "set", values: p });
167
+ }
168
+ function v() {
169
+ F(/* @__PURE__ */ new Set()), a(null);
170
+ }
171
+ const g = s ?? i("dataTable.selectFilter.all");
172
+ return /* @__PURE__ */ z(
173
+ "div",
174
+ {
175
+ "data-component": "select-filter",
176
+ className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-sm)] ds:min-w-[200px] ds:max-w-[260px]",
177
+ children: [
178
+ /* @__PURE__ */ c(me, { orientation: "vertical", className: "ds:max-h-[240px]", children: /* @__PURE__ */ c(
179
+ "div",
180
+ {
181
+ role: "group",
182
+ "aria-label": g,
183
+ className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]",
184
+ children: u.length === 0 ? /* @__PURE__ */ c("p", { className: "ds:text-[length:var(--font-size-sm)] ds:text-[var(--muted-foreground)] ds:py-[var(--spacing-xs)]", children: i("dataTable.agGrid.noRowsToShow") }) : u.map((p) => {
185
+ const d = A(p.value);
186
+ return /* @__PURE__ */ c(
187
+ de,
188
+ {
189
+ size: "sm",
190
+ label: p.label,
191
+ checked: h.has(d),
192
+ onCheckedChange: () => y(d)
193
+ },
194
+ d
195
+ );
196
+ })
197
+ }
198
+ ) }),
199
+ /* @__PURE__ */ z("div", { className: "ds:flex ds:flex-wrap ds:items-center ds:justify-end ds:gap-[var(--spacing-xs)] ds:pt-[var(--spacing-xs)] ds:border-t ds:border-[var(--border)]", children: [
200
+ /* @__PURE__ */ c(j, { intent: "ghost", size: "sm", onClick: v, type: "button", children: i("dataTable.selectFilter.clear") }),
201
+ /* @__PURE__ */ c(j, { intent: "primary", size: "sm", onClick: b, type: "button", children: i("dataTable.selectFilter.apply") })
202
+ ] })
203
+ ]
204
+ }
205
+ );
206
+ }
207
+ I(Fe, "select");
208
+ function We(t) {
209
+ var b;
210
+ const { model: e, onModelChange: a, column: n, api: l } = t, r = (b = n == null ? void 0 : n.getColDef) == null ? void 0 : b.call(n), s = (r == null ? void 0 : r.filterParams) ?? {}, i = ee(
211
+ (v) => l && n ? l.getCellValue({
212
+ rowNode: v,
213
+ colKey: n
214
+ }) : void 0,
215
+ [l, n]
216
+ ), f = re(
217
+ l,
218
+ s.options,
219
+ i
220
+ ), u = s.placeholder ?? (typeof (r == null ? void 0 : r.headerName) == "string" ? r.headerName : void 0), o = k(() => {
221
+ const v = /* @__PURE__ */ new Map();
222
+ for (const g of f) v.set(String(g.value), g.value);
223
+ return v;
224
+ }, [f]), h = k(
225
+ () => f.map((v) => ({
226
+ value: String(v.value),
227
+ label: v.label
228
+ })),
229
+ [f]
230
+ ), F = k(
231
+ () => ((e == null ? void 0 : e.values) ?? []).map((v) => String(v)),
232
+ [e]
233
+ );
234
+ function y(v) {
235
+ if (v.length === 0) {
236
+ a(null);
237
+ return;
238
+ }
239
+ const g = [];
240
+ for (const p of v) {
241
+ const d = o.get(p);
242
+ d !== void 0 && g.push(d);
243
+ }
244
+ if (g.length === 0) {
245
+ a(null);
246
+ return;
247
+ }
248
+ a({ type: "set", values: g });
249
+ }
250
+ return /* @__PURE__ */ c("div", { "data-component": "select-floating-filter", className: "ds:w-full", children: /* @__PURE__ */ c(
251
+ fe,
252
+ {
253
+ size: "sm",
254
+ options: h,
255
+ value: F,
256
+ onChange: y,
257
+ placeholder: s.placeholder,
258
+ "aria-label": u,
259
+ allowClear: !0
260
+ }
261
+ ) });
262
+ }
263
+ function V(t) {
264
+ return t.trim().toLocaleLowerCase();
265
+ }
266
+ function Ce(t) {
267
+ const {
268
+ model: e,
269
+ onModelChange: a,
270
+ getValue: n,
271
+ api: l,
272
+ column: r,
273
+ options: s,
274
+ loadOptions: i,
275
+ placeholder: f
276
+ } = t, { t: u } = M("ui"), o = k(() => {
277
+ if (s && s.length > 0) return s;
278
+ if (!l || !r) return [];
279
+ const d = /* @__PURE__ */ new Map();
280
+ return l.forEachNode((T) => {
281
+ const m = n(T);
282
+ if (m == null) return;
283
+ const C = typeof m == "string" ? m : String(m);
284
+ d.has(C) || d.set(C, { value: C, label: C });
285
+ }), Array.from(d.values()).sort(
286
+ (T, m) => T.label.localeCompare(m.label)
287
+ );
288
+ }, [s, l, r, n]), h = k(() => async (d, T) => {
289
+ if (i)
290
+ return (await i(d, T)).map((S) => ({ value: S.value, label: S.label }));
291
+ const m = V(d);
292
+ return (m ? o.filter((N) => V(N.label).includes(m)) : o).slice(0, 50).map((N) => ({ value: N.value, label: N.label }));
293
+ }, [i, o]), [F, y] = x((e == null ? void 0 : e.value) ?? "");
294
+ w(() => {
295
+ y((e == null ? void 0 : e.value) ?? "");
296
+ }, [e == null ? void 0 : e.value]), B({
297
+ doesFilterPass: (d) => {
298
+ const T = e == null ? void 0 : e.value;
299
+ if (!T) return !0;
300
+ const m = n(d.node);
301
+ if (m == null) return !1;
302
+ const C = typeof m == "string" ? m : String(m);
303
+ return V(C) === V(T);
304
+ }
305
+ });
306
+ function b(d) {
307
+ y(d.label), a({ type: "equals", value: d.value });
308
+ }
309
+ function v(d) {
310
+ y(d), d === "" && e && a(null);
311
+ }
312
+ function g() {
313
+ y(""), a(null);
314
+ }
315
+ const p = f ?? u("dataTable.typeaheadFilter.placeholder");
316
+ return /* @__PURE__ */ z(
317
+ "div",
318
+ {
319
+ "data-component": "typeahead-filter",
320
+ className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-sm)] ds:min-w-[240px]",
321
+ children: [
322
+ /* @__PURE__ */ c(
323
+ ne,
324
+ {
325
+ size: "sm",
326
+ value: F,
327
+ onChange: v,
328
+ onSelect: b,
329
+ loadOptions: h,
330
+ placeholder: p,
331
+ "aria-label": p
332
+ }
333
+ ),
334
+ /* @__PURE__ */ c("div", { className: "ds:flex ds:items-center ds:justify-end ds:pt-[var(--spacing-xs)] ds:border-t ds:border-[var(--border)]", children: /* @__PURE__ */ c(j, { intent: "ghost", size: "sm", onClick: g, type: "button", children: u("dataTable.typeaheadFilter.clear") }) })
335
+ ]
336
+ }
337
+ );
338
+ }
339
+ I(Ce, "typeahead");
340
+ function Xe(t) {
341
+ var b, v;
342
+ const { model: e, onModelChange: a, column: n } = t, { t: l } = M("ui"), r = ((v = (b = n == null ? void 0 : n.getColDef) == null ? void 0 : b.call(n)) == null ? void 0 : v.filterParams) ?? {}, s = r.options ?? [], i = r.loadOptions, f = r.placeholder ?? l("dataTable.typeaheadFilter.placeholder"), u = k(() => async (g, p) => {
343
+ if (i)
344
+ return (await i(g, p)).map((C) => ({ value: C.value, label: C.label }));
345
+ const d = V(g);
346
+ return (d ? s.filter((m) => V(m.label).includes(d)) : s).slice(0, 50).map((m) => ({ value: m.value, label: m.label }));
347
+ }, [i, s]), [o, h] = x((e == null ? void 0 : e.value) ?? "");
348
+ w(() => {
349
+ h((e == null ? void 0 : e.value) ?? "");
350
+ }, [e == null ? void 0 : e.value]);
351
+ function F(g) {
352
+ h(g.label), a({ type: "equals", value: g.value });
353
+ }
354
+ function y(g) {
355
+ h(g), g === "" && e && a(null);
356
+ }
357
+ return /* @__PURE__ */ c("div", { "data-component": "typeahead-floating-filter", className: "ds:w-full", children: /* @__PURE__ */ c(
358
+ ne,
359
+ {
360
+ size: "sm",
361
+ value: o,
362
+ onChange: y,
363
+ onSelect: F,
364
+ loadOptions: u,
365
+ placeholder: f,
366
+ "aria-label": f
367
+ }
368
+ ) });
369
+ }
370
+ const Ne = [
371
+ "equals",
372
+ "notEqual",
373
+ "greaterThan",
374
+ "greaterThanOrEqual",
375
+ "lessThan",
376
+ "lessThanOrEqual",
377
+ "inRange",
378
+ "blank",
379
+ "notBlank"
380
+ ];
381
+ function K(t) {
382
+ return t !== "blank" && t !== "notBlank";
383
+ }
384
+ function G(t) {
385
+ return t === "inRange";
386
+ }
387
+ function X(t) {
388
+ return typeof t == "string" && t.trim() !== "" ? t : void 0;
389
+ }
390
+ function Se(t) {
391
+ const {
392
+ model: e,
393
+ onModelChange: a,
394
+ getValue: n,
395
+ defaultOperator: l,
396
+ min: r,
397
+ max: s,
398
+ step: i,
399
+ placeholder: f
400
+ } = t, { t: u } = M("ui"), o = (e == null ? void 0 : e.type) ?? l ?? "equals", [h, F] = x(o), [y, b] = x((e == null ? void 0 : e.filter) ?? null), [v, g] = x(
401
+ (e == null ? void 0 : e.filterTo) ?? null
402
+ );
403
+ w(() => {
404
+ if (e == null) {
405
+ F(l ?? "equals"), b(null), g(null);
406
+ return;
407
+ }
408
+ F(e.type), b(e.filter ?? null), g(e.filterTo ?? null);
409
+ }, [e, l]), B({
410
+ doesFilterPass: (S) => {
411
+ if (!e) return !0;
412
+ const D = ie(n(S.node));
413
+ return ce(
414
+ e.type,
415
+ D,
416
+ e.filter ?? null,
417
+ e.filterTo ?? null
418
+ );
419
+ }
420
+ });
421
+ const p = k(
422
+ () => Ne.map((S) => ({
423
+ value: S,
424
+ label: u(`dataTable.numberFilter.operators.${S}`)
425
+ })),
426
+ [u]
427
+ ), d = f ?? u("dataTable.numberFilter.placeholder");
428
+ function T() {
429
+ if (!K(h)) {
430
+ a({ type: h, filter: 0 });
431
+ return;
432
+ }
433
+ if (G(h)) {
434
+ if (y === null && v === null) {
435
+ a(null);
436
+ return;
437
+ }
438
+ a({
439
+ type: h,
440
+ filter: y ?? void 0,
441
+ filterTo: v ?? void 0
442
+ });
443
+ return;
444
+ }
445
+ if (y === null) {
446
+ a(null);
447
+ return;
448
+ }
449
+ a({ type: h, filter: y });
450
+ }
451
+ function m() {
452
+ F(l ?? "equals"), b(null), g(null), a(null);
453
+ }
454
+ const C = K(h), N = G(h);
455
+ return /* @__PURE__ */ z(
456
+ "div",
457
+ {
458
+ "data-component": "number-filter",
459
+ className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-sm)] ds:min-w-[240px]",
460
+ children: [
461
+ /* @__PURE__ */ c(
462
+ pe,
463
+ {
464
+ size: "sm",
465
+ options: p,
466
+ value: h,
467
+ onValueChange: (S) => {
468
+ S !== "" && F(S);
469
+ },
470
+ "aria-label": u("dataTable.numberFilter.operatorLabel")
471
+ }
472
+ ),
473
+ C && !N && /* @__PURE__ */ c(
474
+ E,
475
+ {
476
+ size: "sm",
477
+ mode: "decimal",
478
+ value: y,
479
+ onChange: b,
480
+ min: r,
481
+ max: s,
482
+ step: i,
483
+ placeholder: d,
484
+ "aria-label": d
485
+ }
486
+ ),
487
+ N && /* @__PURE__ */ z("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
488
+ /* @__PURE__ */ c(
489
+ E,
490
+ {
491
+ size: "sm",
492
+ mode: "decimal",
493
+ value: y,
494
+ onChange: b,
495
+ min: r,
496
+ max: s,
497
+ step: i,
498
+ placeholder: u("dataTable.numberFilter.from"),
499
+ "aria-label": u("dataTable.numberFilter.from")
500
+ }
501
+ ),
502
+ /* @__PURE__ */ c(
503
+ E,
504
+ {
505
+ size: "sm",
506
+ mode: "decimal",
507
+ value: v,
508
+ onChange: g,
509
+ min: r,
510
+ max: s,
511
+ step: i,
512
+ placeholder: u("dataTable.numberFilter.to"),
513
+ "aria-label": u("dataTable.numberFilter.to")
514
+ }
515
+ )
516
+ ] }),
517
+ /* @__PURE__ */ z("div", { className: "ds:flex ds:flex-wrap ds:items-center ds:justify-end ds:gap-[var(--spacing-xs)] ds:pt-[var(--spacing-xs)] ds:border-t ds:border-[var(--border)]", children: [
518
+ /* @__PURE__ */ c(j, { intent: "ghost", size: "sm", onClick: m, type: "button", children: u("dataTable.numberFilter.clear") }),
519
+ /* @__PURE__ */ c(j, { intent: "primary", size: "sm", onClick: T, type: "button", children: u("dataTable.numberFilter.apply") })
520
+ ] })
521
+ ]
522
+ }
523
+ );
524
+ }
525
+ I(Se, "number");
526
+ function Ye(t) {
527
+ var Z;
528
+ const { model: e, onModelChange: a, column: n, api: l } = t, { t: r } = M("ui"), s = (Z = n == null ? void 0 : n.getColDef) == null ? void 0 : Z.call(n), i = (s == null ? void 0 : s.filterParams) ?? {}, [f, u] = x(
529
+ null
530
+ ), o = (e == null ? void 0 : e.type) ?? f ?? i.defaultOperator ?? "equals", h = G(o), F = K(o), y = i.placeholder ?? r("dataTable.numberFilter.placeholder"), b = X(n ? l == null ? void 0 : l.getDisplayNameForColumn(n, "header") : null) ?? X(s == null ? void 0 : s.headerName), v = r("dataTable.numberFilter.from"), g = r("dataTable.numberFilter.to"), p = b ? r("dataTable.numberFilter.columnFrom", { column: b }) : v, d = b ? r("dataTable.numberFilter.columnTo", { column: b }) : g, T = b ? r("dataTable.numberFilter.columnFilter", { column: b }) : y, [m, C] = x((e == null ? void 0 : e.filter) ?? null), [N, S] = x((e == null ? void 0 : e.filterTo) ?? null), D = te(
531
+ null
532
+ );
533
+ if (w(() => {
534
+ const R = { from: (e == null ? void 0 : e.filter) ?? null, to: (e == null ? void 0 : e.filterTo) ?? null }, O = D.current;
535
+ D.current = null, !(O && O.from === R.from && O.to === R.to) && (C(R.from), S(R.to));
536
+ }, [e == null ? void 0 : e.filter, e == null ? void 0 : e.filterTo]), w(() => {
537
+ e != null && u(null);
538
+ }, [e]), w(() => {
539
+ if (!F || m === ((e == null ? void 0 : e.filter) ?? null) && N === ((e == null ? void 0 : e.filterTo) ?? null))
540
+ return;
541
+ const R = setTimeout(() => {
542
+ const O = m === null || Number.isNaN(m) ? null : m, $ = N === null || Number.isNaN(N) ? null : N, _ = (P) => {
543
+ D.current = {
544
+ from: (P == null ? void 0 : P.filter) ?? null,
545
+ to: (P == null ? void 0 : P.filterTo) ?? null
546
+ }, a(P);
547
+ }, J = () => {
548
+ u(o), _(null);
549
+ };
550
+ if (!h) {
551
+ O === null ? J() : _({ type: o, filter: O });
552
+ return;
553
+ }
554
+ if (O === null && $ === null) {
555
+ J();
556
+ return;
557
+ }
558
+ _({
559
+ type: "inRange",
560
+ filter: O ?? void 0,
561
+ filterTo: $ ?? void 0
562
+ });
563
+ }, 200);
564
+ return () => clearTimeout(R);
565
+ }, [m, N, o, h, F]), !F) {
566
+ const R = r(`dataTable.numberFilter.operators.${o}`);
567
+ return /* @__PURE__ */ c("div", { "data-component": "number-floating-filter", className: "ds:w-full", children: /* @__PURE__ */ c(
568
+ E,
569
+ {
570
+ size: "sm",
571
+ variant: "plain",
572
+ value: null,
573
+ disabled: !0,
574
+ placeholder: R,
575
+ "aria-label": b ? r("dataTable.numberFilter.columnOperator", {
576
+ column: b,
577
+ operator: R
578
+ }) : R
579
+ }
580
+ ) });
581
+ }
582
+ return h ? /* @__PURE__ */ z(
583
+ "div",
584
+ {
585
+ "data-component": "number-floating-filter",
586
+ className: "ds:flex ds:w-full ds:items-center ds:gap-[var(--spacing-xs)]",
587
+ children: [
588
+ /* @__PURE__ */ c(
589
+ E,
590
+ {
591
+ size: "sm",
592
+ variant: "plain",
593
+ mode: "decimal",
594
+ className: "ds:min-w-0 ds:flex-1",
595
+ value: m,
596
+ onChange: C,
597
+ min: i.min,
598
+ max: i.max,
599
+ step: i.step,
600
+ placeholder: v,
601
+ "aria-label": p
602
+ }
603
+ ),
604
+ /* @__PURE__ */ c(
605
+ E,
606
+ {
607
+ size: "sm",
608
+ variant: "plain",
609
+ mode: "decimal",
610
+ className: "ds:min-w-0 ds:flex-1",
611
+ value: N,
612
+ onChange: S,
613
+ min: i.min,
614
+ max: i.max,
615
+ step: i.step,
616
+ placeholder: g,
617
+ "aria-label": d
618
+ }
619
+ )
620
+ ]
621
+ }
622
+ ) : /* @__PURE__ */ c("div", { "data-component": "number-floating-filter", className: "ds:w-full", children: /* @__PURE__ */ c(
623
+ E,
624
+ {
625
+ size: "sm",
626
+ mode: "decimal",
627
+ value: m,
628
+ onChange: C,
629
+ min: i.min,
630
+ max: i.max,
631
+ step: i.step,
632
+ placeholder: y,
633
+ "aria-label": T
634
+ }
635
+ ) });
636
+ }
637
+ function et(t) {
638
+ const { value: e, variantMap: a } = t, n = (a == null ? void 0 : a[e]) ?? "neutral";
639
+ return /* @__PURE__ */ c(he, { variant: n, withDot: !0, size: "sm", children: String(e ?? "") });
640
+ }
641
+ function tt(t) {
642
+ const { value: e } = t;
643
+ return e ? /* @__PURE__ */ z("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
644
+ /* @__PURE__ */ c(H, { name: e.name, src: e.src, size: "sm" }),
645
+ /* @__PURE__ */ c("span", { children: e.name })
646
+ ] }) : null;
647
+ }
648
+ const xe = {
649
+ sm: "ds:size-8",
650
+ md: "ds:size-10",
651
+ lg: "ds:size-12"
652
+ }, we = {
653
+ square: "ds:rounded-none",
654
+ rounded: "ds:rounded-[var(--radius-md)]",
655
+ circle: "ds:rounded-[var(--radius-full)]"
656
+ };
657
+ function U(t, e) {
658
+ if (!t || typeof t != "object") return;
659
+ const a = t[e];
660
+ return typeof a == "string" ? a : void 0;
661
+ }
662
+ const Re = /^(?:https?:|data:image\/|\/(?!\/))/i;
663
+ function ze(t) {
664
+ if (!t) return;
665
+ const e = t.trim();
666
+ if (e.length !== 0)
667
+ return Re.test(e) ? e : void 0;
668
+ }
669
+ function at(t) {
670
+ const {
671
+ data: e,
672
+ srcField: a,
673
+ altField: n,
674
+ fallbackField: l,
675
+ size: r = "md",
676
+ shape: s = "rounded"
677
+ } = t;
678
+ if (!e) return null;
679
+ const i = U(e, a), f = ze(i), u = n ? U(e, n) ?? "" : "", o = l ? U(e, l) : void 0;
680
+ return s === "circle" && o ? /* @__PURE__ */ c(H, { src: f, name: o, size: r }) : f ? /* @__PURE__ */ c(
681
+ "img",
682
+ {
683
+ src: f,
684
+ alt: u,
685
+ loading: "lazy",
686
+ decoding: "async",
687
+ className: ["ds:object-cover", xe[r], we[s]].join(
688
+ " "
689
+ )
690
+ }
691
+ ) : o ? /* @__PURE__ */ c(H, { name: o, size: r }) : null;
692
+ }
693
+ function nt(t) {
694
+ const { value: e, maxVisible: a = 3 } = t, { t: n } = M("ui");
695
+ if (!Array.isArray(e) || e.length === 0) return null;
696
+ const l = e.slice(0, a), r = e.length - a;
697
+ return /* @__PURE__ */ z("span", { className: "ds:inline-flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]", children: [
698
+ l.map((s) => /* @__PURE__ */ c(Q, { label: s, size: "sm" }, s)),
699
+ r > 0 && /* @__PURE__ */ c(ge, { label: e.slice(a).join(", "), children: /* @__PURE__ */ c(
700
+ Q,
701
+ {
702
+ label: n("inputs.multiSelect.overflow", { count: r }),
703
+ size: "sm",
704
+ variant: "neutral",
705
+ fill: "outline"
706
+ }
707
+ ) })
708
+ ] });
709
+ }
710
+ const Le = {
711
+ date: { year: "numeric", month: "short", day: "numeric" },
712
+ time: { hour: "2-digit", minute: "2-digit" },
713
+ datetime: {
714
+ year: "numeric",
715
+ month: "short",
716
+ day: "numeric",
717
+ hour: "2-digit",
718
+ minute: "2-digit"
719
+ }
720
+ };
721
+ function rt(t) {
722
+ const { value: e, format: a = "date", options: n } = t;
723
+ if (e == null || e === "") return null;
724
+ const l = ue(e);
725
+ if (a === "relative" && !n) {
726
+ const s = l ? L(e) ?? e : e;
727
+ return /* @__PURE__ */ c(W, { value: s, shape: "bare" });
728
+ }
729
+ const r = n ?? Le[a === "relative" ? "date" : a];
730
+ return /* @__PURE__ */ c(
731
+ W,
732
+ {
733
+ value: e,
734
+ format: "absolute",
735
+ shape: "bare",
736
+ absoluteFormat: l ? { ...r, timeZone: "UTC" } : r
737
+ }
738
+ );
739
+ }
740
+ function Y(t, e) {
741
+ return typeof t == "function" ? t(e) : t;
742
+ }
743
+ function Oe(t) {
744
+ return /^(https?:\/\/|\/|#|mailto:|tel:)/i.test(t) ? t : "#";
745
+ }
746
+ function lt(t) {
747
+ const { value: e, data: a, href: n, onClick: l, secondary: r } = t;
748
+ if (!a) return null;
749
+ const s = Y(n, a), i = Y(r, a), f = e == null || e === "" ? "" : String(e), u = [
750
+ "ds:text-[color:var(--primary)]",
751
+ "ds:hover:underline",
752
+ "ds:focus-visible:outline-[length:var(--focus-ring-width)]",
753
+ "ds:focus-visible:outline-solid",
754
+ "ds:focus-visible:outline-[color:var(--ring)]",
755
+ "ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
756
+ "ds:rounded-[var(--radius-sm)]"
757
+ ].join(" "), o = (h) => {
758
+ l && (s || h.preventDefault(), h.stopPropagation(), l(a));
759
+ };
760
+ return /* @__PURE__ */ z("span", { className: "ds:flex ds:flex-col ds:leading-tight", children: [
761
+ s ? /* @__PURE__ */ c(
762
+ "a",
763
+ {
764
+ href: Oe(s),
765
+ onClick: o,
766
+ className: u,
767
+ children: f
768
+ }
769
+ ) : /* @__PURE__ */ c(
770
+ "button",
771
+ {
772
+ type: "button",
773
+ onClick: o,
774
+ className: [
775
+ "ds:appearance-none ds:bg-transparent ds:p-0 ds:text-start",
776
+ u
777
+ ].join(" "),
778
+ children: f
779
+ }
780
+ ),
781
+ i ? /* @__PURE__ */ c("span", { className: "type-meta ds:text-[color:var(--muted-foreground)]", children: i }) : null
782
+ ] });
783
+ }
784
+ export {
785
+ rt as D,
786
+ at as I,
787
+ lt as L,
788
+ Se as N,
789
+ Fe as S,
790
+ nt as T,
791
+ tt as U,
792
+ ve as a,
793
+ Qe as b,
794
+ Ye as c,
795
+ We as d,
796
+ et as e,
797
+ Ce as f,
798
+ Xe as g
799
+ };
800
+ //# sourceMappingURL=link-cell-renderer-Ditt5mvT.js.map