@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,95 @@
1
+ import { type CSSProperties, type KeyboardEvent as ReactKeyboardEvent, type ReactNode, type RefObject } from 'react';
2
+ import type { Cell, Column, Row, Table } from '@tanstack/react-table';
3
+ import type { DataGridFeatures } from './features';
4
+ import type { DataGridColumn, DataGridColumnGroup, DataGridSelectionApi, DataGridStore, DataGridTableMeta } from './types';
5
+ export type DgTable<TData extends object> = Table<DataGridFeatures, TData>;
6
+ export type DgRow<TData extends object> = Row<DataGridFeatures, TData>;
7
+ export type DgColumn<TData extends object> = Column<DataGridFeatures, TData, unknown>;
8
+ export type DgCell<TData extends object> = Cell<DataGridFeatures, TData, unknown>;
9
+ /** How a pinned column sticks: the first on a side at the edge, later ones
10
+ * at an offset; the divider on the boundary column. */
11
+ export interface DataGridPinPresentation {
12
+ pin: 'none' | 'start' | 'end' | 'startOffset' | 'endOffset';
13
+ divider: 'none' | 'start' | 'end';
14
+ /** px from the edge for `startOffset` / `endOffset` (measured). */
15
+ offset: number | null;
16
+ }
17
+ export declare const NO_PIN: DataGridPinPresentation;
18
+ /** Everything the header, body and footer read. Built once per render by
19
+ * `data-grid.tsx` from the engine. */
20
+ export interface DataGridRenderModel<TData extends object> {
21
+ table: DgTable<TData>;
22
+ store: DataGridStore;
23
+ kitColumns: ReadonlyMap<string, DataGridColumn<TData>>;
24
+ kitGroups: ReadonlyMap<string, DataGridColumnGroup>;
25
+ selection: DataGridSelectionApi;
26
+ meta: DataGridTableMeta;
27
+ /** `useId()` of the grid: prefix of every generated id. */
28
+ idBase: string;
29
+ density: 'default' | 'compact';
30
+ dataMode: 'client' | 'server';
31
+ direction: 'ltr' | 'rtl';
32
+ privacyMode: boolean;
33
+ pins: ReadonlyMap<string, DataGridPinPresentation>;
34
+ /** Visible leaf columns in DOM order (start-pinned, centre, end-pinned),
35
+ * the order `row.getVisibleCells()` uses. */
36
+ visibleColumns: readonly DgColumn<TData>[];
37
+ /** Their ids joined: a memoised body row compares this, not the array. */
38
+ visibleColumnsKey: string;
39
+ /** The model of the last committed render. Event handlers in a memoised
40
+ * row read it, so a row that did not re-render never acts on a stale
41
+ * selection or table state. */
42
+ latest: {
43
+ readonly current: DataGridRenderModel<TData> | null;
44
+ };
45
+ /** The data column whose cells are `<th scope="row">`. */
46
+ rowHeaderColumnId: string | null;
47
+ renderDetail?: (row: TData) => ReactNode;
48
+ /** `DataGridProps.readOnly`: the reason every selectable box gives while
49
+ * the whole grid is read-only, or `null`. */
50
+ readOnlyReason: string | null;
51
+ }
52
+ /** One body item: a row, or the detail panel under an expanded row. */
53
+ export type DataGridBodyItem<TData extends object> = {
54
+ kind: 'row';
55
+ key: string;
56
+ row: DgRow<TData>;
57
+ } | {
58
+ kind: 'detail';
59
+ key: string;
60
+ row: DgRow<TData>;
61
+ };
62
+ /** Utility column kinds from the v9 column meta. */
63
+ export declare function columnKind<TData extends object>(column: DgColumn<TData>): 'data' | 'group' | 'select' | 'expand';
64
+ /** The CSS custom property a pinned cell needs, if any. Inline style only
65
+ * under 23-constraints §Runtime-computed dimensions (case 1 setter, case 2
66
+ * value: measured from the pinned header cells). */
67
+ export declare function pinStyle(presentation: DataGridPinPresentation): CSSProperties | undefined;
68
+ /** Is this kit column printed? Utility columns never are. */
69
+ export declare function isPrintable<TData>(kind: 'data' | 'group' | 'select' | 'expand', kit: DataGridColumn<TData> | undefined): boolean;
70
+ export declare const nameId: (idBase: string, itemIndex: number, cellIndex: number) => string;
71
+ export declare const detailId: (idBase: string, itemIndex: number) => string;
72
+ export interface DataGridBodyProps<TData extends object> {
73
+ model: DataGridRenderModel<TData>;
74
+ bodyRef: RefObject<HTMLTableSectionElement | null>;
75
+ /** Every body item on this page, in display order. */
76
+ items: readonly DataGridBodyItem<TData>[];
77
+ /** Mounted item indexes and gaps (all of them when not virtualised). */
78
+ mounted: readonly {
79
+ index: number;
80
+ gapBefore: number;
81
+ }[];
82
+ virtualised: boolean;
83
+ padStart: number;
84
+ padEnd: number;
85
+ measureElement: (node: HTMLTableRowElement | null) => void;
86
+ columnCount: number;
87
+ /** `aria-rowindex` of an item, or `undefined` when every row is in the
88
+ * DOM. */
89
+ ariaRowIndexOf: (itemIndex: number) => number | undefined;
90
+ onKeyDown: (event: ReactKeyboardEvent<HTMLElement>) => void;
91
+ /** Replaces the rows (states: skeleton, empty, error). */
92
+ stateRows?: ReactNode;
93
+ }
94
+ export declare function DataGridBody<TData extends object>({ model, bodyRef, items, mounted, virtualised, padStart, padEnd, measureElement, columnCount, ariaRowIndexOf, onKeyDown, stateRows, }: DataGridBodyProps<TData>): import("react/jsx-runtime").JSX.Element;
95
+ //# sourceMappingURL=body.d.ts.map
@@ -0,0 +1,96 @@
1
+ import type { ColumnDef } from '@tanstack/react-table';
2
+ import { type DataGridFeatures, type DataGridSortFnName } from './features';
3
+ import type { DataGridFilterFnName } from './filter-fns';
4
+ import type { DataGridColumn, DataGridColumnFilter, DataGridColumnGroup, DataGridColumnPinning, DataGridOption } from './types';
5
+ /** A v9 column def over the kit feature set. */
6
+ export type DataGridColumnDef<TData extends object> = ColumnDef<DataGridFeatures, TData, unknown>;
7
+ /** Ids starting with this are reserved for utility columns. */
8
+ export declare const DATA_GRID_RESERVED_PREFIX = "__";
9
+ /** Utility column ids in their fixed start-pinned order. */
10
+ export declare const DATA_GRID_UTILITY_IDS: readonly string[];
11
+ export declare function isUtilityColumnId(id: string): boolean;
12
+ /** Plain column name: `headerLabel`, a string or number `header`, else the
13
+ * id (with a DEV warning, because the id is a developer constant). */
14
+ export declare function getDataGridColumnLabel<TData>(column: Pick<DataGridColumn<TData>, 'id' | 'header' | 'headerLabel'>): string;
15
+ /** Whole-column rule (types.ts `DataGridColumnPrivacy`): under privacy
16
+ * mode, a column with any `privacy` leaves sorting, filtering, quick
17
+ * search and facets for every row. */
18
+ export declare function isDataGridColumnMasked<TData>(column: Pick<DataGridColumn<TData>, 'privacy'>, privacyMode: boolean): boolean;
19
+ /** Is this one cell masked (shows the mask instead of `cell`)? */
20
+ export declare function isDataGridCellMasked<TData>(column: Pick<DataGridColumn<TData>, 'privacy'>, row: TData, privacyMode: boolean): boolean;
21
+ /** The host mask text for a masked cell, or `undefined` (bullets). */
22
+ export declare function getDataGridHostMask<TData>(column: Pick<DataGridColumn<TData>, 'privacy'>, row: TData): string | undefined;
23
+ /** `privacy: 'hide'` under privacy mode: hidden and cannot be shown. */
24
+ export declare function isDataGridColumnPrivacyHidden<TData>(column: Pick<DataGridColumn<TData>, 'privacy'>, privacyMode: boolean): boolean;
25
+ /**
26
+ * A select filter's options: the column's own, else (client mode) the
27
+ * distinct values of every core row, sorted for `locale`, so other filters
28
+ * do not shrink the list. Shared by the header panel and the toolbar seam.
29
+ */
30
+ export declare function getDataGridSelectOptions<TData>(column: Pick<DataGridColumn<TData>, 'filter' | 'value'>, coreRows: ReadonlyArray<{
31
+ original: TData;
32
+ }>, dataMode: 'client' | 'server', locale: string | undefined): readonly DataGridOption[];
33
+ export declare function resolveDataGridSortFn<TData>(sort: DataGridColumn<TData>['sort']): DataGridSortFnName | ((a: TData, b: TData) => number) | null;
34
+ export declare function resolveDataGridFilterFn(filter: DataGridColumnFilter): DataGridFilterFnName;
35
+ /** Is the column sortable in principle (ignoring privacy)? */
36
+ export declare function isDataGridColumnSortable<TData>(column: DataGridColumn<TData>): boolean;
37
+ /** Does the column filter in principle (ignoring privacy)? */
38
+ export declare function isDataGridColumnFilterable<TData>(column: DataGridColumn<TData>): boolean;
39
+ /** Does the column join quick search in principle (ignoring privacy)? */
40
+ export declare function isDataGridColumnSearchable<TData>(column: DataGridColumn<TData>): boolean;
41
+ export interface DataGridColumnRules {
42
+ canHide: boolean;
43
+ canMove: boolean;
44
+ canPin: boolean;
45
+ minSize: number;
46
+ maxSize: number;
47
+ }
48
+ /** Hide, move, pin and size defaults (types.ts `DataGridColumn`). */
49
+ export declare function getDataGridColumnRules<TData>(column: DataGridColumn<TData>, defaultRowHeaderId: string | null, privacyMode: boolean): DataGridColumnRules;
50
+ /** Clamps a width to the column's bounds; `null` for a non-finite value. */
51
+ export declare function clampDataGridColumnSize<TData>(column: DataGridColumn<TData>, px: number): number | null;
52
+ /**
53
+ * The row-header column: the first visible column with `rowHeader`, else
54
+ * the first visible data column (today's rule), wherever it moved.
55
+ */
56
+ export declare function resolveDataGridRowHeaderId<TData>(kitColumns: ReadonlyMap<string, DataGridColumn<TData>>, visibleOrderedIds: readonly string[]): string | null;
57
+ /**
58
+ * Completes a (possibly partial or stale) leaf order: unknown ids are
59
+ * dropped, and declared columns missing from it keep their declared
60
+ * position (each goes straight after its declared predecessor).
61
+ */
62
+ export declare function resolveDataGridColumnOrder(order: readonly string[], declared: readonly string[]): string[];
63
+ export interface BuildDataGridColumnsInput<TData> {
64
+ columns: readonly DataGridColumn<TData>[];
65
+ columnGroups?: readonly DataGridColumnGroup[];
66
+ selectionMode: 'none' | 'single' | 'multiple';
67
+ /** Sub-rows or a detail panel: adds `__expand`. */
68
+ expandable: boolean;
69
+ privacyMode: boolean;
70
+ /** The grid's `columnResizing` (each column's default). */
71
+ columnResizing: boolean;
72
+ }
73
+ export interface DataGridColumnModel<TData extends object> {
74
+ /** v9 defs: utility columns first, then data columns and groups. */
75
+ defs: DataGridColumnDef<TData>[];
76
+ /** Valid data columns by id. */
77
+ kitColumns: Map<string, DataGridColumn<TData>>;
78
+ /** Valid groups (at least one known leaf) by id. */
79
+ kitGroups: Map<string, DataGridColumnGroup>;
80
+ /** Leaf id to group id. */
81
+ groupOf: Map<string, string>;
82
+ /** Data leaf ids in declared order (group members pulled together). */
83
+ declaredOrder: string[];
84
+ /** Utility ids present, in their pinned order. */
85
+ utilityIds: string[];
86
+ /** `rowHeader` column, else the first declared data column. */
87
+ defaultRowHeaderId: string | null;
88
+ /** From each column's `pin`, minus pins that would split a group. */
89
+ declaredPinning: DataGridColumnPinning;
90
+ }
91
+ /**
92
+ * Builds the column model. Memoise on `columns`, `columnGroups`,
93
+ * `selectionMode`, `expandable`, `privacyMode` and `columnResizing`.
94
+ */
95
+ export declare function buildDataGridColumns<TData extends object>(input: BuildDataGridColumnsInput<TData>): DataGridColumnModel<TData>;
96
+ //# sourceMappingURL=columns.d.ts.map
@@ -1,3 +1,4 @@
1
1
  import type { AgentAdapter } from '../../agent/types';
2
- export declare const dataGridAgent: AgentAdapter;
2
+ import type { DataGridHandle } from './types';
3
+ export declare const dataGridAgent: AgentAdapter<DataGridHandle>;
3
4
  //# sourceMappingURL=data-grid.agent.d.ts.map
@@ -1,28 +1,12 @@
1
- import { type HTMLAttributes, type ReactNode } from 'react';
2
- export interface DataGridColumn<TData> {
3
- /** Unique within the grid. */
4
- id: string;
5
- header: ReactNode;
6
- /** The column's plain name, when `header` holds more than text, such as an
7
- * InfoTip. Without it, the tip's name joins every cell's announcement. */
8
- headerLabel?: string;
9
- /** What this column shows for a row. */
10
- cell: (row: TData) => ReactNode;
11
- /** This column's cell in the totals row. The row appears when any column
12
- * has a footer. */
13
- footer?: ReactNode;
14
- /** Amounts go `end`, so a column lines up on the decimal. */
15
- align?: 'start' | 'end';
16
- /** Keeps the column in view while the others scroll sideways. */
17
- pin?: 'start' | 'end';
18
- }
19
- export interface DataGridProps<TData> extends Omit<HTMLAttributes<HTMLDivElement>, 'children' | 'dir'> {
20
- columns: DataGridColumn<TData>[];
21
- rows: TData[];
22
- getRowId: (row: TData) => string;
23
- /** Names the table for screen readers. Pass a translated string. */
24
- caption: string;
25
- }
26
- /** The first column is the row header, so name each row with it. */
27
- export declare function DataGrid<TData extends object>({ columns, rows, getRowId, caption, className, ...rest }: DataGridProps<TData>): import("react/jsx-runtime").JSX.Element;
1
+ import { type ReactElement, type Ref } from 'react';
2
+ import { type DataGridHandle, type DataGridProps } from './types';
3
+ export type { DataGridColumn, DataGridProps } from './types';
4
+ /**
5
+ * The kit's TanStack table. Pass `ref` for the curated `DataGridHandle`.
6
+ * `forwardRef` with the generic cast DataTable uses (`data-table.tsx:1146`),
7
+ * keeping `TData extends object` because v9 needs `RowData`.
8
+ */
9
+ export declare const DataGrid: <TData extends object>(props: DataGridProps<TData> & {
10
+ ref?: Ref<DataGridHandle>;
11
+ }) => ReactElement;
28
12
  //# sourceMappingURL=data-grid.d.ts.map
@@ -0,0 +1,118 @@
1
+ /** Frame shape root (toolbar or pagination): a flex column holding the
2
+ * toolbar slot, the scroll region and the pager slot. */
3
+ export declare const frameVariants: (props?: ({
4
+ height?: "auto" | "fill" | null | undefined;
5
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
6
+ /** The scroll region. In the no-chrome shape it is also the root, so it
7
+ * carries the card surface. */
8
+ export declare const scrollerVariants: (props?: ({
9
+ chrome?: boolean | null | undefined;
10
+ pinned?: boolean | null | undefined;
11
+ height?: "auto" | "fill" | null | undefined;
12
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
13
+ /** Toolbar and pager slots in the frame shape. Never printed. */
14
+ export declare const slotVariants: (props?: ({
15
+ slot?: "toolbar" | "pager" | null | undefined;
16
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
17
+ /** Range text beside the pager ("Rows 26 to 50 of 312"). */
18
+ export declare const pagerRangeVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
19
+ /** Spinner holder in the no-chrome shape while loading with rows. */
20
+ export declare const busyVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
21
+ export declare const tableVariants: (props?: ({
22
+ fixed?: boolean | null | undefined;
23
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
24
+ /** `<col>` widths in fixed layout. */
25
+ export declare const colVariants: (props?: ({
26
+ kind?: "number" | "text" | "date" | "utility" | "sized" | null | undefined;
27
+ printable?: boolean | null | undefined;
28
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
29
+ /** Spacer rows of the virtual window: one cell spanning every column. */
30
+ export declare const spacerVariants: (props?: ({
31
+ edge?: "end" | "start" | "gap" | null | undefined;
32
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
33
+ /** Every grid cell. */
34
+ export declare const cellVariants: (props?: ({
35
+ section?: "body" | "head" | "group" | "foot" | "detail" | null | undefined;
36
+ density?: "default" | "compact" | null | undefined;
37
+ stick?: "top" | "none" | "below" | null | undefined;
38
+ align?: "end" | "start" | null | undefined;
39
+ pin?: "end" | "start" | "none" | "startOffset" | "endOffset" | null | undefined;
40
+ divider?: "end" | "start" | "none" | null | undefined;
41
+ utility?: boolean | null | undefined;
42
+ editable?: boolean | null | undefined;
43
+ selected?: boolean | null | undefined;
44
+ wrap?: boolean | null | undefined;
45
+ printable?: boolean | null | undefined;
46
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
47
+ /** Sub-row indent on the row-header cell (`--dg-depth` set per cell). */
48
+ export declare const depthVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
49
+ /** Label, tip, filter and separator inside a leaf header. */
50
+ export declare const headerContentVariants: (props?: ({
51
+ align?: "end" | "start" | null | undefined;
52
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
53
+ /**
54
+ * 05:9 under the accessible themes (WCAG 2.5.5, AAA): a compact control
55
+ * grows to `--min-target-size` where `--accessible-target-floor` is set
56
+ * (`.theme-accessible`) and keeps its compact size elsewhere. The calendar
57
+ * toolbar's precedent (`ACCESSIBLE_TARGET_SQUARE_CLASS`).
58
+ */
59
+ export declare const accessibleTargetBlockClass = "ds:[min-block-size:var(--accessible-target-floor,auto)]";
60
+ /** The same floor on both axes, for icon-only buttons. */
61
+ export declare const accessibleTargetSquareClass = "ds:[min-block-size:var(--accessible-target-floor,auto)] ds:[min-inline-size:var(--accessible-target-floor,auto)]";
62
+ /** The sort button: the header label and the direction glyph. */
63
+ export declare const sortButtonVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
64
+ /** The direction glyph; muted while the column is unsorted. */
65
+ export declare const sortIconVariants: (props?: ({
66
+ active?: boolean | null | undefined;
67
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
68
+ /** Sort level number from the second level on. */
69
+ export declare const sortPriorityVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
70
+ /** The resize separator at the header's inline-end edge (WCAG 2.5.8 and
71
+ * the kit's 05:9 rule, as `accessibleTargetSquareClass`):
72
+ * - hit area `--spacing-lg` (24 px) wide by the header's full block size
73
+ * (`--min-target-size`), raised to `--min-target-size` on both axes in
74
+ * the accessible themes through `--accessible-target-floor`;
75
+ * - it sits inside its own header cell (`end-0`), never over the next
76
+ * column, and `resizableHeadCellClass` reserves exactly its width as the
77
+ * cell's inline-end padding in every theme, so the sort button and
78
+ * filter trigger never sit under it;
79
+ * - not wider in the default theme: centring a 44 px area on the column
80
+ * edge would cover the next header's sort button, and a 44 px padding
81
+ * would leave a 64 px column no room for its label. */
82
+ export declare const separatorVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
83
+ /** A resizable leaf header cell: its inline-end padding is the
84
+ * separator's width in every theme (24 px, or `--min-target-size` in the
85
+ * accessible themes), so the sort button and filter trigger never sit
86
+ * under the separator. */
87
+ export declare const resizableHeadCellClass = "ds:pe-[var(--accessible-target-floor,var(--spacing-lg))]";
88
+ /** The expander chevron: rotates when open, flips in RTL while closed. */
89
+ export declare const expanderIconVariants: (props?: ({
90
+ expanded?: boolean | null | undefined;
91
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
92
+ /** The muted dash for a row that cannot be selected. */
93
+ export declare const noneMarkVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
94
+ /** The detail panel cell stays in view when scrolled sideways. */
95
+ export declare const detailContentVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
96
+ /** A skeleton row's placeholder bar. */
97
+ export declare const skeletonBarVariants: (props?: ({
98
+ width?: "long" | "medium" | "short" | null | undefined;
99
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
100
+ /** The EmptyState holder row: one cell over every column. */
101
+ export declare const stateCellVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
102
+ /** Built-in editors fill their cell. */
103
+ export declare const editorVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
104
+ /** Wraps a built-in editor: the kit's compact field exception (32 px,
105
+ * raised to `--min-target-size` under the accessible themes and on touch
106
+ * widths) instead of `size="sm"`, so a Select's menu keeps the target. */
107
+ export declare const editorFieldVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
108
+ /** An editor's error text under the input. */
109
+ export declare const editorErrorVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
110
+ /** Text read as part of its cell's name but not shown, kept inline: the
111
+ * name algorithm adds no space around an inline span (it does around the
112
+ * block-level `sr-only` box), and font size 0 gives it no width. Used for
113
+ * a sub-row's ", level 2" so the row header reads "Alginate 500 g,
114
+ * level 2". `print:hidden` keeps it off paper. */
115
+ export declare const inlineHiddenTextClass = "ds:inline ds:[font-size:0] ds:leading-none ds:print:hidden";
116
+ /** Visually hidden level text and similar inline extras. */
117
+ export declare const maskVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
118
+ //# sourceMappingURL=data-grid.variants.d.ts.map
@@ -0,0 +1,8 @@
1
+ import type { DataGridColumnEdit, DataGridEditContext } from './types';
2
+ export interface DataGridEditorProps<TData> {
3
+ edit: DataGridColumnEdit<TData>;
4
+ row: TData;
5
+ context: DataGridEditContext;
6
+ }
7
+ export declare function DataGridEditor<TData>({ edit, row, context, }: DataGridEditorProps<TData>): import("react/jsx-runtime").JSX.Element;
8
+ //# sourceMappingURL=editors.d.ts.map
@@ -0,0 +1,3 @@
1
+ import type { BuildDataGridExportSnapshot } from './types';
2
+ export declare const buildDataGridExportSnapshot: BuildDataGridExportSnapshot;
3
+ //# sourceMappingURL=export-snapshot.d.ts.map
@@ -0,0 +1,56 @@
1
+ import type { DataGridColumnMeta, DataGridTableMeta } from './types';
2
+ /** One `Intl.Collator` per locale: numeric, accent- and case-insensitive. */
3
+ export declare function getDataGridCollator(locale: string | undefined): Intl.Collator;
4
+ /** Compares two plain cell values for `sort: 'text'`. */
5
+ export declare function compareDataGridText(a: unknown, b: unknown, locale?: string): number;
6
+ /** Compares two plain cell values for `sort: 'number'`. */
7
+ export declare function compareDataGridNumber(a: unknown, b: unknown): number;
8
+ /** Compares two plain cell values for `sort: 'date'` (Date or ISO text). */
9
+ export declare function compareDataGridDate(a: unknown, b: unknown): number;
10
+ /** `sort: true`: picks the comparison from the two values' types. */
11
+ export declare function compareDataGridValues(a: unknown, b: unknown, locale?: string): number;
12
+ export declare const dataGridFeatures: {
13
+ rowSortingFeature: import("@tanstack/table-core").TableFeature;
14
+ columnFilteringFeature: import("@tanstack/table-core").TableFeature;
15
+ globalFilteringFeature: import("@tanstack/table-core").TableFeature;
16
+ rowPaginationFeature: import("@tanstack/table-core").TableFeature;
17
+ rowSelectionFeature: import("@tanstack/table-core").TableFeature;
18
+ rowExpandingFeature: import("@tanstack/table-core").TableFeature;
19
+ columnVisibilityFeature: import("@tanstack/table-core").TableFeature;
20
+ columnPinningFeature: import("@tanstack/table-core").TableFeature;
21
+ columnOrderingFeature: import("@tanstack/table-core").TableFeature;
22
+ columnSizingFeature: import("@tanstack/table-core").TableFeature;
23
+ columnResizingFeature: import("@tanstack/table-core").TableFeature;
24
+ sortedRowModel: (table: import("@tanstack/table-core").Table<any, any>) => () => import("@tanstack/table-core").RowModel<any, any>;
25
+ filteredRowModel: (table: import("@tanstack/table-core").Table<any, any>) => () => import("@tanstack/table-core").RowModel<any, any>;
26
+ paginatedRowModel: (table: import("@tanstack/table-core").Table<any, any>) => () => import("@tanstack/table-core").RowModel<any, any>;
27
+ expandedRowModel: (table: import("@tanstack/table-core").Table<any, any>) => () => import("@tanstack/table-core").RowModel<any, any>;
28
+ sortFns: {
29
+ kitText: import("@tanstack/table-core").CreatedSortFn<any, any>;
30
+ kitNumber: import("@tanstack/table-core").CreatedSortFn<any, any>;
31
+ kitDate: import("@tanstack/table-core").CreatedSortFn<any, any>;
32
+ kitAuto: import("@tanstack/table-core").CreatedSortFn<any, any>;
33
+ alphanumeric: import("@tanstack/table-core").CreatedSortFn<any, any>;
34
+ datetime: import("@tanstack/table-core").CreatedSortFn<any, any>;
35
+ basic: import("@tanstack/table-core").CreatedSortFn<any, any>;
36
+ };
37
+ filterFns: {
38
+ kitText: import("@tanstack/table-core").CreatedFilterFn<any, any>;
39
+ kitNumber: import("@tanstack/table-core").CreatedFilterFn<any, any>;
40
+ kitSet: import("@tanstack/table-core").CreatedFilterFn<any, any>;
41
+ kitDateRange: import("@tanstack/table-core").CreatedFilterFn<any, any>;
42
+ kitQuick: import("@tanstack/table-core").CreatedFilterFn<any, any>;
43
+ };
44
+ tableMeta: DataGridTableMeta;
45
+ columnMeta: DataGridColumnMeta;
46
+ };
47
+ export type DataGridFeatures = typeof dataGridFeatures;
48
+ /** A registered kit sort function name. */
49
+ export type DataGridSortFnName = 'kitText' | 'kitNumber' | 'kitDate' | 'kitAuto';
50
+ /** Utility column ids (design § 2.1, `columns.ts`). */
51
+ export declare const DATA_GRID_SELECT_COLUMN_ID = "__select";
52
+ export declare const DATA_GRID_EXPAND_COLUMN_ID = "__expand";
53
+ /** Default column size bounds (types.ts `minSize`, `maxSize`). */
54
+ export declare const DATA_GRID_DEFAULT_MIN_SIZE = 64;
55
+ export declare const DATA_GRID_DEFAULT_MAX_SIZE = 960;
56
+ //# sourceMappingURL=features.d.ts.map
@@ -0,0 +1,23 @@
1
+ /**
2
+ * The five kit filter functions, registered on `dataGridFeatures.filterFns`
3
+ * (design § 2.2). Keys are the only names columns and `globalFilterFn` may
4
+ * use:
5
+ *
6
+ * - `kitText`: `TextFilterModel` (column `filter.kind: 'text'`).
7
+ * - `kitNumber`: `NumberFilterModel` (`'number'`).
8
+ * - `kitSet`: `SelectFilterModel` (`'select'`; also FacetFilter's model).
9
+ * - `kitDateRange`: `DateRangeFilterModel` (`'dateRange'`).
10
+ * - `kitQuick`: the quick search (`globalFilterFn: 'kitQuick'`):
11
+ * accent-folded, case-insensitive "contains" on what the cell shows:
12
+ * the column's `exportValue`, else its `value`.
13
+ */
14
+ export declare const dataGridFilterFns: {
15
+ kitText: import("@tanstack/table-core").CreatedFilterFn<any, any>;
16
+ kitNumber: import("@tanstack/table-core").CreatedFilterFn<any, any>;
17
+ kitSet: import("@tanstack/table-core").CreatedFilterFn<any, any>;
18
+ kitDateRange: import("@tanstack/table-core").CreatedFilterFn<any, any>;
19
+ kitQuick: import("@tanstack/table-core").CreatedFilterFn<any, any>;
20
+ };
21
+ /** A registered kit filter function name. */
22
+ export type DataGridFilterFnName = keyof typeof dataGridFilterFns;
23
+ //# sourceMappingURL=filter-fns.d.ts.map
@@ -0,0 +1,8 @@
1
+ import type { DataGridColumnFilter } from '../types';
2
+ import type { DataGridFilterPanelProps } from './filter-panels';
3
+ export declare function DateRangeFilterPanel({ columnLabel, value, dataMode, onApply, config, }: DataGridFilterPanelProps & {
4
+ config: Extract<DataGridColumnFilter, {
5
+ kind: 'dateRange';
6
+ }>;
7
+ }): import("react/jsx-runtime").JSX.Element;
8
+ //# sourceMappingURL=date-range-panel.d.ts.map
@@ -0,0 +1,27 @@
1
+ import type { DataGridColumnFilter, DataGridColumnFilterModel, DataGridOption } from '../types';
2
+ /** What every panel gets from the trigger. */
3
+ export interface DataGridFilterPanelProps {
4
+ columnId: string;
5
+ columnLabel: string;
6
+ value: DataGridColumnFilterModel | undefined;
7
+ options: readonly DataGridOption[];
8
+ dataMode: 'client' | 'server';
9
+ /** Commit (`null` clears) and close. */
10
+ onApply: (model: DataGridColumnFilterModel | null) => void;
11
+ }
12
+ export declare function TextFilterPanel({ columnLabel, value, onApply, config, }: DataGridFilterPanelProps & {
13
+ config: Extract<DataGridColumnFilter, {
14
+ kind: 'text';
15
+ }>;
16
+ }): import("react/jsx-runtime").JSX.Element;
17
+ export declare function NumberFilterPanel({ columnLabel, value, onApply, config, }: DataGridFilterPanelProps & {
18
+ config: Extract<DataGridColumnFilter, {
19
+ kind: 'number';
20
+ }>;
21
+ }): import("react/jsx-runtime").JSX.Element;
22
+ export declare function SelectFilterPanel({ columnLabel, value, options, onApply, }: DataGridFilterPanelProps & {
23
+ config: Extract<DataGridColumnFilter, {
24
+ kind: 'select';
25
+ }>;
26
+ }): import("react/jsx-runtime").JSX.Element;
27
+ //# sourceMappingURL=filter-panels.d.ts.map
@@ -0,0 +1,7 @@
1
+ import type { DataGridFilterTriggerProps } from '../types';
2
+ /**
3
+ * The header's filter control for one column. `value` is the column's
4
+ * current model; `onChange(null)` clears it.
5
+ */
6
+ export declare function DataGridFilterTrigger({ columnId, columnLabel, config, value, onChange, options, dataMode, }: DataGridFilterTriggerProps): import("react/jsx-runtime").JSX.Element;
7
+ //# sourceMappingURL=filter-trigger.d.ts.map
@@ -0,0 +1,10 @@
1
+ import { type DataGridRenderModel } from './body';
2
+ import type { DataGridFooterContext } from './types';
3
+ export interface DataGridFooterProps<TData extends object> {
4
+ model: DataGridRenderModel<TData>;
5
+ footRef: (node: HTMLTableSectionElement | null) => void;
6
+ getFooterContext: () => DataGridFooterContext<TData>;
7
+ ariaRowIndex: number | undefined;
8
+ }
9
+ export declare function DataGridFooter<TData extends object>({ model, footRef, getFooterContext, ariaRowIndex, }: DataGridFooterProps<TData>): import("react/jsx-runtime").JSX.Element;
10
+ //# sourceMappingURL=footer.d.ts.map
@@ -0,0 +1,18 @@
1
+ import type { TableToolbarSeam } from '../_shared/table-toolbar/seam';
2
+ import type { DataGridContextValue, DataGridHandle, DataGridMountSignal, DataGridRegistry } from './types';
3
+ /** The grid's handle and seam, for the `toolbar` slot. `null` outside a grid. */
4
+ export declare const DataGridContext: import("react").Context<DataGridContextValue | null>;
5
+ /** Reads `DataGridContext`; `null` outside a grid. */
6
+ export declare function useDataGridContext(): DataGridContextValue | null;
7
+ /** Provided by DataGridTabs; a DataGrid inside registers its handle. */
8
+ export declare const DataGridRegistryContext: import("react").Context<DataGridRegistry | null>;
9
+ /** Reads `DataGridRegistryContext`; `null` when no DataGridTabs is above. */
10
+ export declare function useDataGridRegistry(): DataGridRegistry | null;
11
+ /** Called by DataGrid when its engine exists; returns an unregister. */
12
+ export declare function registerDataGridToolbarSeam(handle: DataGridHandle, seam: TableToolbarSeam): () => void;
13
+ /** The toolbar seam for a handle a host got from a ref, or `null` when that
14
+ * grid is not mounted. Used by `DataGridToolbarProvider`. */
15
+ export declare function getDataGridToolbarSeam(handle: DataGridHandle | null | undefined): TableToolbarSeam | null;
16
+ /** Module-level: every DataGrid calls `notify()` after mount and unmount. */
17
+ export declare const dataGridMountSignal: DataGridMountSignal;
18
+ //# sourceMappingURL=grid-context.d.ts.map
@@ -0,0 +1,60 @@
1
+ import { type DataGridColumnModel } from './columns';
2
+ import { type DataGridSelectionAnchor, type DataGridSelectionRuntime } from './selection';
3
+ import { type DataGridStoreImpl } from './state';
4
+ import type { DataGridColumnPinning, DataGridFeatureInfo, DataGridHandle, DataGridRendererBindings, DataGridSlices } from './types';
5
+ /** The column slices `resetColumnState` restores. */
6
+ export type DataGridColumnDefaults = Pick<DataGridSlices, 'columnVisibility' | 'columnPinning' | 'columnSizing' | 'columnOrder'>;
7
+ /** Live facts the handle reads at call time (the engine refreshes them on
8
+ * every render). Plain values and closures over ids only. */
9
+ export interface DataGridHandleRuntime<TData extends object> {
10
+ store: DataGridStoreImpl;
11
+ model: DataGridColumnModel<TData>;
12
+ selection: DataGridSelectionRuntime;
13
+ anchor: DataGridSelectionAnchor;
14
+ features: DataGridFeatureInfo;
15
+ privacyMode: boolean;
16
+ /** `pagination` is on. */
17
+ paginated: boolean;
18
+ /** `multiSort ? maxSortLevels : 1`. */
19
+ maxSortLevels: number;
20
+ expandMode: 'single' | 'multiple';
21
+ /** Fixed table layout (widths are px). */
22
+ fixedLayout: boolean;
23
+ /** Effective visibility of every data column. */
24
+ getEffectiveVisibility: () => Record<string, boolean>;
25
+ getPageCount: () => number;
26
+ getRowCount: () => number;
27
+ getRowIds: () => string[];
28
+ /** `null` when the row is unknown (client) or not on the page (server). */
29
+ canExpand: (rowId: string) => boolean | null;
30
+ /** Ancestors of a row, root first (empty for top-level rows). */
31
+ getAncestorIds: (rowId: string) => string[];
32
+ isKnownRowId: (rowId: string) => boolean;
33
+ getColumnDefaults: () => DataGridColumnDefaults;
34
+ /** Removes the saved column state for `gridId`, if any. */
35
+ clearSavedColumnState: () => void;
36
+ getBindings: () => DataGridRendererBindings | null;
37
+ }
38
+ /** One data column in display order with its pin side. */
39
+ export interface DataGridDisplayColumn {
40
+ id: string;
41
+ pinned: 'start' | 'end' | false;
42
+ }
43
+ /** Data columns in display order: start-pinned (pinning order), then the
44
+ * rest by `columnOrder`, then end-pinned. Hidden columns included. */
45
+ export declare function getDataGridDisplayColumns<TData extends object>(model: DataGridColumnModel<TData>, order: readonly string[], pinning: DataGridColumnPinning): DataGridDisplayColumn[];
46
+ /**
47
+ * `moveColumn` maths (types.ts): `toIndex` is the final index; the column
48
+ * takes the pin side of the column at `toIndex` before the move. Returns
49
+ * the new order and pinning, or `null` when the move is refused.
50
+ */
51
+ export declare function planDataGridColumnMove<TData extends object>(model: DataGridColumnModel<TData>, list: readonly DataGridDisplayColumn[], id: string, toIndex: number, privacyMode: boolean): {
52
+ order: string[];
53
+ pinning: DataGridColumnPinning;
54
+ } | null;
55
+ /**
56
+ * Builds a handle over the live runtime. `defaultSource` is `'api'` for the
57
+ * public handle and `'user'` for the toolbar seam's.
58
+ */
59
+ export declare function createDataGridHandle<TData extends object>(getRuntime: () => DataGridHandleRuntime<TData>, defaultSource: 'api' | 'user'): DataGridHandle;
60
+ //# sourceMappingURL=handle.d.ts.map
@@ -0,0 +1,12 @@
1
+ import { type Ref } from 'react';
2
+ import { type DataGridRenderModel } from './body';
3
+ export interface DataGridHeaderProps<TData extends object> {
4
+ model: DataGridRenderModel<TData>;
5
+ headRef: Ref<HTMLTableSectionElement>;
6
+ /** Called with each pinned leaf header cell (measured offsets). */
7
+ measurePinned: (columnId: string, node: HTMLElement | null) => void;
8
+ /** `aria-rowindex` of header row `index` (0-based), when set. */
9
+ ariaRowIndexOf: (index: number) => number | undefined;
10
+ }
11
+ export declare function DataGridHeader<TData extends object>({ model, headRef, measurePinned, ariaRowIndexOf, }: DataGridHeaderProps<TData>): import("react/jsx-runtime").JSX.Element;
12
+ //# sourceMappingURL=header.d.ts.map
@@ -1,4 +1,7 @@
1
1
  export { DataGrid } from './data-grid';
2
2
  export type { DataGridColumn, DataGridProps } from './data-grid';
3
3
  export { dataGridAgent } from './data-grid.agent';
4
+ export { DataGridToolbar, DataGridToolbarProvider } from './toolbar';
5
+ export { DATA_GRID_DEFAULT_PAGE_SIZE, DATA_GRID_MAX_SORT_LEVELS, DATA_GRID_PAGE_SIZE_OPTIONS, DATA_GRID_RESPONSIVE_BREAKPOINTS, DATA_GRID_VIRTUALIZE_ABOVE, } from './types';
6
+ export type { DataGridBulkActionHandler, DataGridCellContext, DataGridCellValue, DataGridChange, DataGridChangeEvent, DataGridChangeSource, DataGridColumnEdit, DataGridColumnFilter, DataGridColumnFilterModel, DataGridColumnGroup, DataGridColumnInfo, DataGridColumnPinning, DataGridColumnPrivacy, DataGridColumnStateEnvelopeV1, DataGridCustomEdit, DataGridCustomExportHandler, DataGridDateRangeFilterModel, DataGridEditContext, DataGridExportFormat, DataGridFeatureInfo, DataGridFilterModel, DataGridFooterContext, DataGridHandle, DataGridNumberEdit, DataGridNumberFilterModel, DataGridNumberFilterOperator, DataGridOption, DataGridPagination, DataGridPaginationConfig, DataGridQuery, DataGridRowSelectability, DataGridSelectEdit, DataGridSelectFilterModel, DataGridSortEntry, DataGridTextEdit, DataGridTextFilterModel, DataGridTextFilterOperator, DataGridToolbarBulkActionProps, DataGridToolbarColumnToggleProps, DataGridToolbarExportMenuItemProps, DataGridToolbarExportMenuProps, DataGridToolbarFacetFilterProps, DataGridToolbarFacetOption, DataGridToolbarFilterChipsProps, DataGridToolbarPrintProps, DataGridToolbarProviderProps, DataGridToolbarQuickSearchProps, DataGridToolbarRefreshProps, DataGridToolbarRootProps, DataGridWriteOptions, } from './types';
4
7
  //# sourceMappingURL=index.d.ts.map