@slotted/react 0.1.0-beta.10 → 0.1.0-beta.11

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 (336) hide show
  1. package/dist/action-bar-z2DPc1Wy.js +285 -0
  2. package/dist/action-bar.js +1 -1
  3. package/dist/action-sheet-BnedGewu.js +360 -0
  4. package/dist/action-sheet.js +1 -1
  5. package/dist/{alert-BTcqbG8w.js → alert-BTAXJ69M.js} +5 -5
  6. package/dist/alert.js +1 -1
  7. package/dist/{app-shell-BlkqQrOx.js → app-shell-Cb_kDBeV.js} +232 -173
  8. package/dist/app-shell.js +1 -1
  9. package/dist/{attachment-zlOPJvIm.js → attachment-D1O4qS8H.js} +28 -28
  10. package/dist/attachment.js +1 -1
  11. package/dist/{breadcrumb-DCGynpkb.js → breadcrumb-CnFjxxI2.js} +10 -10
  12. package/dist/breadcrumb.js +1 -1
  13. package/dist/{button-BCVjdzkn.js → button-D31perSu.js} +2 -2
  14. package/dist/button.js +2 -2
  15. package/dist/{calendar-qGUJ-kAy.js → calendar-DZyC1gAT.js} +8 -8
  16. package/dist/calendar.js +1 -1
  17. package/dist/{carousel-CjRTu8m7.js → carousel-Dso3gcYd.js} +14 -14
  18. package/dist/carousel.js +1 -1
  19. package/dist/cascader-BbajBwsX.js +1157 -0
  20. package/dist/cascader.js +1 -1
  21. package/dist/{chart-CPFq3jIE.js → chart-Bb6ctahn.js} +9 -9
  22. package/dist/chart.js +1 -1
  23. package/dist/{checkbox-CMY2KIih.js → checkbox-C_8GVtjD.js} +3 -3
  24. package/dist/{checkbox-group-DzMtLF7f.js → checkbox-group-DXCcusol.js} +2 -2
  25. package/dist/checkbox-group.js +1 -1
  26. package/dist/checkbox.js +1 -1
  27. package/dist/{code-block-Bh_2Eg3M.js → code-block-C4mtsROE.js} +8 -8
  28. package/dist/code-block.js +1 -1
  29. package/dist/{color-picker-DlepH5co.js → color-picker-JZPnPb7s.js} +49 -49
  30. package/dist/color-picker.js +1 -1
  31. package/dist/{column-manager-CV9tCnKa.js → column-manager-BDUj-WIs.js} +31 -31
  32. package/dist/column-manager.js +1 -1
  33. package/dist/combobox-Dn69QwGX.js +904 -0
  34. package/dist/combobox.js +1 -1
  35. package/dist/command-palette-Dh1HKz_F.js +744 -0
  36. package/dist/command-palette.js +1 -1
  37. package/dist/{context-menu-Dbc0KkFp.js → context-menu-uJjEmAN3.js} +1 -1
  38. package/dist/context-menu.js +1 -1
  39. package/dist/{currency-field--wIfgVAx.js → currency-field-lHcrNJ7X.js} +13 -13
  40. package/dist/currency-field.js +1 -1
  41. package/dist/{dashboard-grid-D_LbWfdZ.js → dashboard-grid-z-SOm9H0.js} +65 -65
  42. package/dist/dashboard-grid.js +1 -1
  43. package/dist/{data-grid-XH5fGoGj.js → data-grid-DQCvXMJA.js} +1330 -1278
  44. package/dist/data-grid.js +1 -1
  45. package/dist/data-list-BgdkA3bD.js +587 -0
  46. package/dist/data-list.js +1 -1
  47. package/dist/{date-field-BrNyJBiJ.js → date-field-B2lQzE3p.js} +5 -5
  48. package/dist/date-field.js +1 -1
  49. package/dist/{date-picker-Nl55so0C.js → date-picker-DpTRb-Y1.js} +16 -16
  50. package/dist/date-picker.js +1 -1
  51. package/dist/{date-range-picker-DLkvfUJD.js → date-range-picker-CBUPJep5.js} +17 -17
  52. package/dist/date-range-picker.js +1 -1
  53. package/dist/{datetime-field-CZRhRDPb.js → datetime-field-BZ44uJ_B.js} +7 -7
  54. package/dist/datetime-field.js +1 -1
  55. package/dist/{datetime-picker-_GHra2WL.js → datetime-picker-BK_bV3Yr.js} +21 -21
  56. package/dist/datetime-picker.js +1 -1
  57. package/dist/{datetime-range-picker-Dy1A0Wqy.js → datetime-range-picker-ChdbRgzQ.js} +21 -21
  58. package/dist/datetime-range-picker.js +1 -1
  59. package/dist/{description-list-Cc4JYZ-3.js → description-list-CYlfHDwx.js} +11 -11
  60. package/dist/description-list.js +1 -1
  61. package/dist/{detail-panel-BI_wHSoz.js → detail-panel-DimjnPI8.js} +91 -91
  62. package/dist/detail-panel.js +1 -1
  63. package/dist/{dialog-B6MP7GYI.js → dialog-BB5MdJex.js} +108 -108
  64. package/dist/dialog.js +1 -1
  65. package/dist/docs/action-bar.json +4 -4
  66. package/dist/docs/action-bar.md +3 -3
  67. package/dist/docs/calendar.md +2 -2
  68. package/dist/docs/command-palette.json +1 -0
  69. package/dist/docs/command-palette.md +1 -1
  70. package/dist/docs/data-grid.examples.md +8 -2
  71. package/dist/docs/data-grid.json +25 -3
  72. package/dist/docs/data-grid.md +4 -1
  73. package/dist/docs/data-grid.props.md +2 -1
  74. package/dist/docs/detail-panel.json +4 -2
  75. package/dist/docs/detail-panel.md +15 -5
  76. package/dist/docs/dialog.json +1 -0
  77. package/dist/docs/dialog.md +1 -1
  78. package/dist/docs/drawer.json +6 -4
  79. package/dist/docs/drawer.md +3 -3
  80. package/dist/docs/event-calendar.md +2 -2
  81. package/dist/docs/guidelines/index.md +4 -3
  82. package/dist/docs/guidelines/layout-alignment.md +17 -7
  83. package/dist/docs/guidelines/list-pages.md +3 -3
  84. package/dist/docs/page-header.json +18 -2
  85. package/dist/docs/page-header.md +5 -3
  86. package/dist/docs/page.json +1 -0
  87. package/dist/docs/page.md +1 -1
  88. package/dist/docs/rating.md +1 -1
  89. package/dist/docs/section.json +1 -1
  90. package/dist/docs/section.md +1 -1
  91. package/dist/docs/skills/compose-screen/SKILL.md +12 -4
  92. package/dist/docs/skills/review-screen/SKILL.md +20 -18
  93. package/dist/docs/skills/theme-app/SKILL.md +12 -1
  94. package/dist/docs/toast.json +1 -0
  95. package/dist/docs/toast.md +1 -1
  96. package/dist/docs/tokens.md +1 -1
  97. package/dist/docs/toolbar.json +1 -1
  98. package/dist/docs/toolbar.md +1 -1
  99. package/dist/docs/typography.md +1 -1
  100. package/dist/{drawer-CkpFlKYa.js → drawer-fyPyxnYQ.js} +216 -206
  101. package/dist/drawer.js +1 -1
  102. package/dist/entity-picker-ClyhBTyK.js +1283 -0
  103. package/dist/entity-picker.js +1 -1
  104. package/dist/{event-calendar-BDjI5T44.js → event-calendar-COgC24UG.js} +23 -23
  105. package/dist/event-calendar.js +1 -1
  106. package/dist/{field-group-CCM2vPKL.js → field-group-Bj-EbPIU.js} +2 -2
  107. package/dist/field-group.js +1 -1
  108. package/dist/{field-CzSGs7wo.js → field-tnEZiRLg.js} +19 -19
  109. package/dist/field.js +1 -1
  110. package/dist/filter-bar-BRuCz79-.js +1342 -0
  111. package/dist/filter-bar.js +1 -1
  112. package/dist/{form-CDq04WDY.js → form-DEcJ7tHf.js} +1 -1
  113. package/dist/form.js +1 -1
  114. package/dist/{fullscreen-6GW4naDP.js → fullscreen-BwweNj3-.js} +13 -13
  115. package/dist/fullscreen.js +1 -1
  116. package/dist/{hover-card-aadyPXzF.js → hover-card-BWcU37Yp.js} +1 -1
  117. package/dist/hover-card.js +1 -1
  118. package/dist/{i18n-DpW8lqJ1.js → i18n-D7xXDd8-.js} +11 -4
  119. package/dist/i18n.js +1 -1
  120. package/dist/{icon-button-CRB218_z.js → icon-button-DbSZKGT4.js} +73 -71
  121. package/dist/{import-export-center-DUrNwRKP.js → import-export-center-CYf0Qxl_.js} +291 -289
  122. package/dist/import-export-center.js +1 -1
  123. package/dist/index.js +100 -100
  124. package/dist/{kbd-Z4YmSPRy.js → kbd-dNz8QHfL.js} +1 -1
  125. package/dist/kbd.js +1 -1
  126. package/dist/{link-BsSlZ1ts.js → link-DLPyg54C.js} +5 -5
  127. package/dist/link.js +1 -1
  128. package/dist/{listbox-VFcfZT70.js → listbox-BSqx_ARf.js} +1 -1
  129. package/dist/listbox.js +1 -1
  130. package/dist/{loading-overlay-BZPBDK4w.js → loading-overlay-BLIrcaoj.js} +9 -9
  131. package/dist/loading-overlay.js +1 -1
  132. package/dist/{markdown-BmCU_sOv.js → markdown-DccRb1xf.js} +17 -17
  133. package/dist/markdown.js +1 -1
  134. package/dist/{menu-parts-DS9JEUCt.js → menu-parts-CNNHRduK.js} +42 -42
  135. package/dist/menu.js +1 -1
  136. package/dist/{menubar-BV43BKep.js → menubar-Bdr6zigi.js} +1 -1
  137. package/dist/menubar.js +1 -1
  138. package/dist/message-BkTiWsUp.js +436 -0
  139. package/dist/message-scroller-akQEtQLn.js +218 -0
  140. package/dist/message-scroller.js +1 -1
  141. package/dist/message.js +1 -1
  142. package/dist/{multi-select-YaxhhH9y.js → multi-select-BvlJIEtz.js} +445 -443
  143. package/dist/multi-select.js +1 -1
  144. package/dist/{navigation-menu-parts-B64gKl8B.js → navigation-menu-parts-CEW4fgCo.js} +12 -12
  145. package/dist/navigation-menu.js +1 -1
  146. package/dist/{notification-center-Ci-OLWTO.js → notification-center-BQO0Ey3h.js} +40 -40
  147. package/dist/notification-center.js +1 -1
  148. package/dist/{number-field-BYQmPyM-.js → number-field-D1MqT8_A.js} +13 -13
  149. package/dist/number-field.js +1 -1
  150. package/dist/{otp-input-BKO0WPZc.js → otp-input-Cub9H9Di.js} +1 -1
  151. package/dist/otp-input.js +1 -1
  152. package/dist/{page-CfjGviUA.js → page-CwYmBoZQ.js} +1 -1
  153. package/dist/{page-header-w_PFLnLG.js → page-header-CMxCQqu_.js} +117 -114
  154. package/dist/page-header.js +1 -1
  155. package/dist/page.js +1 -1
  156. package/dist/{pagination-Cm9665gb.js → pagination-IEuos7H1.js} +12 -12
  157. package/dist/pagination.js +1 -1
  158. package/dist/{popover-D1krYeP-.js → popover-C7NpEzq6.js} +22 -22
  159. package/dist/popover.js +1 -1
  160. package/dist/prompt-composer-Cu8bj1Vb.js +276 -0
  161. package/dist/prompt-composer.js +1 -1
  162. package/dist/{prose-Bl5OjXTb.js → prose-CQN4Bqqh.js} +1 -1
  163. package/dist/prose.js +1 -1
  164. package/dist/{radio-group-D9VTBLUB.js → radio-group-BHlDgCLk.js} +2 -2
  165. package/dist/radio-group.js +1 -1
  166. package/dist/{rating-BRqsV5OF.js → rating-Cr0lXaAV.js} +15 -15
  167. package/dist/rating.js +1 -1
  168. package/dist/{saved-views-C_76obIv.js → saved-views-CyLSn8a2.js} +151 -151
  169. package/dist/saved-views.js +1 -1
  170. package/dist/{scroll-area-vrm2bbtZ.js → scroll-area-Fr0PmnRS.js} +1 -1
  171. package/dist/scroll-area.js +1 -1
  172. package/dist/{segmented-control-5DTOKO3g.js → segmented-control-uPnQYklX.js} +2 -2
  173. package/dist/segmented-control.js +1 -1
  174. package/dist/select-C0JYHwBy.js +1020 -0
  175. package/dist/select.js +1 -1
  176. package/dist/{side-navigation-MNMSkj9b.js → side-navigation-D8lRpHwj.js} +64 -64
  177. package/dist/side-navigation.js +1 -1
  178. package/dist/{skeleton-DyOwgYmF.js → skeleton-DeEOmm1y.js} +1 -1
  179. package/dist/skeleton.js +1 -1
  180. package/dist/{slider-OMe1DAC-.js → slider-BSI1xvjw.js} +2 -2
  181. package/dist/slider.js +1 -1
  182. package/dist/{sparkline-ChkaLVdY.js → sparkline-CYU4_lCD.js} +1 -1
  183. package/dist/sparkline.js +1 -1
  184. package/dist/spinner-ring-DyfaYloA.js +19 -0
  185. package/dist/{split-button-DbmRwfMC.js → split-button-CkbylOMN.js} +2 -2
  186. package/dist/split-button.js +1 -1
  187. package/dist/{stat-card-BSnsTmsq.js → stat-card-CAh4SdeY.js} +16 -16
  188. package/dist/stat-card.js +1 -1
  189. package/dist/{status-indicator-CyKhBdvN.js → status-indicator-BVMnpcm8.js} +4 -4
  190. package/dist/status-indicator.js +1 -1
  191. package/dist/{stepper-Cw1Auv3n.js → stepper-BLfvMz04.js} +16 -16
  192. package/dist/stepper.js +1 -1
  193. package/dist/styles/action-bar.css +1 -1
  194. package/dist/styles/action-sheet.css +2 -2
  195. package/dist/styles/button.css +2 -2
  196. package/dist/styles/cascader.css +2 -2
  197. package/dist/styles/chart.css +1 -1
  198. package/dist/styles/column-manager.css +3 -3
  199. package/dist/styles/command-palette.css +3 -3
  200. package/dist/styles/dashboard-grid.css +2 -2
  201. package/dist/styles/data-grid.css +3 -3
  202. package/dist/styles/data-list.css +2 -2
  203. package/dist/styles/detail-panel.css +4 -4
  204. package/dist/styles/dialog.css +1 -1
  205. package/dist/styles/drawer.css +1 -1
  206. package/dist/styles/entity-picker.css +1 -1
  207. package/dist/styles/event-calendar.css +1 -1
  208. package/dist/styles/filter-bar.css +3 -3
  209. package/dist/styles/import-export-center.css +4 -4
  210. package/dist/styles/index.css +12 -12
  211. package/dist/styles/markdown.css +2 -2
  212. package/dist/styles/multi-select.css +1 -1
  213. package/dist/styles/notification-center.css +3 -3
  214. package/dist/styles/page-header.css +2 -2
  215. package/dist/styles/page.css +1 -1
  216. package/dist/styles/prompt-composer.css +1 -1
  217. package/dist/styles/saved-views.css +2 -2
  218. package/dist/styles/split-button.css +2 -2
  219. package/dist/styles/table.css +2 -2
  220. package/dist/styles/tabs.css +1 -1
  221. package/dist/styles/timeline.css +1 -1
  222. package/dist/styles/toast.css +1 -1
  223. package/dist/styles/tour.css +2 -2
  224. package/dist/styles/transfer.css +2 -2
  225. package/dist/styles/upload.css +1 -1
  226. package/dist/styles/wizard.css +2 -2
  227. package/dist/styles.css +1 -1
  228. package/dist/{switch-CQ1rpuKa.js → switch-BHyKHqeI.js} +5 -5
  229. package/dist/switch.js +1 -1
  230. package/dist/{table-DpGTPtnb.js → table-C8zOHDcY.js} +30 -30
  231. package/dist/{table-of-contents-BFVERMZy.js → table-of-contents-BAIuPCdy.js} +8 -8
  232. package/dist/table-of-contents.js +1 -1
  233. package/dist/table.js +1 -1
  234. package/dist/{tag-aX7uyAN0.js → tag-XYGEPUHR.js} +14 -14
  235. package/dist/tag.js +1 -1
  236. package/dist/{tags-input-BgpS22sf.js → tags-input-ClYSd-No.js} +40 -40
  237. package/dist/tags-input.js +1 -1
  238. package/dist/text-field-Cguj75tn.js +205 -0
  239. package/dist/text-field.js +1 -1
  240. package/dist/{textarea-DNCjsQYd.js → textarea-BKsh_jAo.js} +1 -1
  241. package/dist/textarea.js +1 -1
  242. package/dist/{time-field-Cm6iBjwH.js → time-field-BIE4WMpS.js} +7 -7
  243. package/dist/time-field.js +1 -1
  244. package/dist/{time-picker-Ce18FSO2.js → time-picker-CNfafRDF.js} +18 -18
  245. package/dist/time-picker.js +1 -1
  246. package/dist/{time-range-picker-kDnw4PQ3.js → time-range-picker-D7gM_Wno.js} +20 -20
  247. package/dist/time-range-picker.js +1 -1
  248. package/dist/timeline-BLadNUkS.js +449 -0
  249. package/dist/timeline.js +1 -1
  250. package/dist/{toast-58ex8PDK.js → toast-CjbiXiza.js} +16 -16
  251. package/dist/toast.js +1 -1
  252. package/dist/{toggle-group-YxVJlCnI.js → toggle-group-BZmghKac.js} +1 -1
  253. package/dist/toggle-group.js +1 -1
  254. package/dist/toolbar-BI4ZepBs.js +243 -0
  255. package/dist/toolbar.js +1 -1
  256. package/dist/{top-navigation-DorkYBnR.js → top-navigation-BTZpx5VA.js} +13 -13
  257. package/dist/top-navigation.js +1 -1
  258. package/dist/{tour-CwK_m_Jp.js → tour-_CQ1kYov.js} +23 -23
  259. package/dist/tour.js +1 -1
  260. package/dist/{transfer-DxGDWIEt.js → transfer-BVhBdIGp.js} +59 -59
  261. package/dist/transfer.js +1 -1
  262. package/dist/tree-DfI9UWLA.js +794 -0
  263. package/dist/tree.js +1 -1
  264. package/dist/types/action-bar/action-bar-overflow.d.ts.map +1 -1
  265. package/dist/types/action-bar/action-bar.types.d.ts +2 -2
  266. package/dist/types/action-sheet/action-sheet-parts.d.ts.map +1 -1
  267. package/dist/types/app-shell/app-shell-parts.d.ts.map +1 -1
  268. package/dist/types/app-shell/app-shell.d.ts.map +1 -1
  269. package/dist/types/app-shell/app-shell.types.d.ts +21 -14
  270. package/dist/types/app-shell/app-shell.types.d.ts.map +1 -1
  271. package/dist/types/app-shell/index.d.ts +1 -1
  272. package/dist/types/app-shell/index.d.ts.map +1 -1
  273. package/dist/types/button/button-indicator.d.ts.map +1 -1
  274. package/dist/types/button/spinner-ring.d.ts +8 -0
  275. package/dist/types/button/spinner-ring.d.ts.map +1 -0
  276. package/dist/types/cascader/cascader-surface.d.ts.map +1 -1
  277. package/dist/types/cascader/cascader.d.ts.map +1 -1
  278. package/dist/types/combobox/combobox-parts.d.ts.map +1 -1
  279. package/dist/types/command-palette/command-palette.d.ts.map +1 -1
  280. package/dist/types/data-grid/data-grid-body.d.ts +7 -2
  281. package/dist/types/data-grid/data-grid-body.d.ts.map +1 -1
  282. package/dist/types/data-grid/data-grid-context.d.ts +2 -1
  283. package/dist/types/data-grid/data-grid-context.d.ts.map +1 -1
  284. package/dist/types/data-grid/data-grid-header.d.ts.map +1 -1
  285. package/dist/types/data-grid/data-grid.d.ts +1 -1
  286. package/dist/types/data-grid/data-grid.d.ts.map +1 -1
  287. package/dist/types/data-grid/data-grid.types.d.ts +12 -0
  288. package/dist/types/data-grid/data-grid.types.d.ts.map +1 -1
  289. package/dist/types/data-grid/index.d.ts +1 -1
  290. package/dist/types/data-grid/index.d.ts.map +1 -1
  291. package/dist/types/detail-panel/detail-panel-parts.d.ts +2 -1
  292. package/dist/types/detail-panel/detail-panel-parts.d.ts.map +1 -1
  293. package/dist/types/drawer/drawer-parts.d.ts.map +1 -1
  294. package/dist/types/entity-picker/entity-picker-control.d.ts.map +1 -1
  295. package/dist/types/filter-bar/filter-bar.d.ts.map +1 -1
  296. package/dist/types/i18n/slotted-provider.d.ts +6 -0
  297. package/dist/types/i18n/slotted-provider.d.ts.map +1 -1
  298. package/dist/types/import-export-center/import-export-center.d.ts.map +1 -1
  299. package/dist/types/message/message-parts.d.ts.map +1 -1
  300. package/dist/types/message-scroller/message-scroller.d.ts.map +1 -1
  301. package/dist/types/multi-select/multi-select-parts.d.ts.map +1 -1
  302. package/dist/types/page-header/page-header-defaults.d.ts +1 -1
  303. package/dist/types/page-header/page-header-defaults.d.ts.map +1 -1
  304. package/dist/types/page-header/page-header.d.ts +1 -1
  305. package/dist/types/page-header/page-header.d.ts.map +1 -1
  306. package/dist/types/page-header/page-header.types.d.ts +9 -0
  307. package/dist/types/page-header/page-header.types.d.ts.map +1 -1
  308. package/dist/types/prompt-composer/prompt-composer.d.ts.map +1 -1
  309. package/dist/types/select/select-parts.d.ts.map +1 -1
  310. package/dist/types/text-field/text-field.d.ts.map +1 -1
  311. package/dist/types/timeline/timeline-parts.d.ts.map +1 -1
  312. package/dist/types/timeline/timeline.d.ts.map +1 -1
  313. package/dist/types/toolbar/toolbar-overflow.d.ts.map +1 -1
  314. package/dist/types/toolbar/toolbar.types.d.ts +2 -2
  315. package/dist/types/tree/tree-parts.d.ts.map +1 -1
  316. package/dist/{upload-CEDsfMWz.js → upload-N2-nyO8x.js} +65 -65
  317. package/dist/upload.js +1 -1
  318. package/dist/{wizard-B3p7zCSj.js → wizard-CK1x2fs3.js} +16 -16
  319. package/dist/wizard.js +1 -1
  320. package/package.json +6 -6
  321. package/dist/action-bar-CJgBierN.js +0 -283
  322. package/dist/action-sheet-tRrjm7WQ.js +0 -358
  323. package/dist/cascader-DqlC1z5b.js +0 -1154
  324. package/dist/combobox-YWFkxaQ3.js +0 -902
  325. package/dist/command-palette-DXNq-zKN.js +0 -741
  326. package/dist/data-list-DZCN_uW1.js +0 -587
  327. package/dist/entity-picker-CFwLGQeU.js +0 -1281
  328. package/dist/filter-bar-G50WdRac.js +0 -1340
  329. package/dist/message-Dtck9RJy.js +0 -434
  330. package/dist/message-scroller-niUJ8RoL.js +0 -216
  331. package/dist/prompt-composer-sh_TXKYZ.js +0 -273
  332. package/dist/select-BFx5EgAa.js +0 -1018
  333. package/dist/text-field-DL_uhNXV.js +0 -203
  334. package/dist/timeline-pEL30Jp8.js +0 -446
  335. package/dist/toolbar-BtIyVbs4.js +0 -241
  336. package/dist/tree-DbLRyItM.js +0 -792
@@ -1,27 +1,27 @@
1
- import { n as e, t } from "./icon-DjqSEQ-o.js";
2
- import { _ as n, c as r, g as i, n as a, t as o } from "./menu-parts-DS9JEUCt.js";
3
- import { n as s, r as c } from "./i18n-DpW8lqJ1.js";
4
- import { n as l } from "./icon-button-CRB218_z.js";
1
+ import { n as e, r as t } from "./i18n-D7xXDd8-.js";
2
+ import { n, t as r } from "./icon-DjqSEQ-o.js";
3
+ import { _ as i, c as a, g as o, n as s, t as c } from "./menu-parts-CNNHRduK.js";
4
+ import { n as l } from "./icon-button-DbSZKGT4.js";
5
5
  import { a as u, i as d, n as f, r as p } from "./tooltip-DrFiRlH8.js";
6
- import { t as m } from "./checkbox-CMY2KIih.js";
7
- import { i as h } from "./skeleton-DyOwgYmF.js";
8
- import { t as g } from "./text-field-DL_uhNXV.js";
9
- import { a as _, d as ee, f as te, l as ne, r as re, t as ie } from "./popover-D1krYeP-.js";
6
+ import { t as m } from "./checkbox-C_8GVtjD.js";
7
+ import { i as h } from "./skeleton-DeEOmm1y.js";
8
+ import { t as g } from "./text-field-Cguj75tn.js";
9
+ import { a as _, d as ee, f as te, l as ne, r as re, t as ie } from "./popover-C7NpEzq6.js";
10
10
  import { t as v } from "./visually-hidden-BUSrFZ1_.js";
11
11
  import { i as ae, n as oe, o as se, r as ce, t as le } from "./result-state-BMYhelu1.js";
12
- import { t as ue } from "./date-picker-Nl55so0C.js";
13
- import { t as de } from "./date-field-BrNyJBiJ.js";
14
- import { t as fe } from "./date-range-picker-DLkvfUJD.js";
15
- import { t as pe } from "./datetime-picker-_GHra2WL.js";
16
- import { t as me } from "./datetime-field-CZRhRDPb.js";
17
- import { t as he } from "./datetime-range-picker-Dy1A0Wqy.js";
18
- import { a as ge, i as _e, n as ve, s as ye } from "./multi-select-YaxhhH9y.js";
19
- import { t as be } from "./number-field-BYQmPyM-.js";
20
- import { a as xe, t as Se } from "./segmented-control-5DTOKO3g.js";
21
- import { c as Ce, i as we, n as Te, o as Ee, s as De } from "./select-BFx5EgAa.js";
22
- import { t as Oe } from "./time-picker-Ce18FSO2.js";
23
- import { t as ke } from "./time-field-Cm6iBjwH.js";
24
- import { t as Ae } from "./time-range-picker-kDnw4PQ3.js";
12
+ import { t as ue } from "./date-picker-DpTRb-Y1.js";
13
+ import { t as de } from "./date-field-B2lQzE3p.js";
14
+ import { t as fe } from "./date-range-picker-CBUPJep5.js";
15
+ import { t as pe } from "./datetime-picker-BK_bV3Yr.js";
16
+ import { t as me } from "./datetime-field-BZ44uJ_B.js";
17
+ import { t as he } from "./datetime-range-picker-ChdbRgzQ.js";
18
+ import { a as ge, i as _e, n as ve, s as ye } from "./multi-select-BvlJIEtz.js";
19
+ import { t as be } from "./number-field-D1MqT8_A.js";
20
+ import { a as xe, t as Se } from "./segmented-control-uPnQYklX.js";
21
+ import { c as Ce, i as we, n as Te, o as Ee, s as De } from "./select-C0JYHwBy.js";
22
+ import { t as Oe } from "./time-picker-CNfafRDF.js";
23
+ import { t as ke } from "./time-field-BIE4WMpS.js";
24
+ import { t as Ae } from "./time-range-picker-D7gM_Wno.js";
25
25
  import { selectorKeyProps as je, withSelectorKey as Me } from "@slotted/core/selector-key";
26
26
  import { createControllable as Ne } from "@slotted/core/state";
27
27
  import { createContext as Pe, createElement as Fe, memo as Ie, useCallback as y, useContext as Le, useEffect as b, useId as Re, useImperativeHandle as ze, useLayoutEffect as Be, useMemo as x, useRef as S, useState as C, useSyncExternalStore as Ve } from "react";
@@ -34,15 +34,15 @@ import { isPlainDate as Je, isPlainDateTime as Ye, isPlainTime as Xe, parseISODa
34
34
  import { createRowMetrics as rt, nextSelection as it, virtualWindow as at } from "@slotted/core/collection";
35
35
  import { writeToClipboard as ot } from "@slotted/core/clipboard";
36
36
  import { createDragController as st } from "@slotted/core/drag";
37
- import { FILTER_ROW as ct, GROUP_ROW_PREFIX as lt, HEADER_ROW as ut, POPIN_COLUMN_ID as dt, RESIZE_STEP as ft, SUMMARY_ROW as pt, applyQuery as mt, cellText as ht, cellValue as gt, columnRange as _t, columnTemplate as vt, columnsOutOfSpace as yt, emptyGridView as bt, emptyQuery as xt, groupInOrder as St, isGroupCursorRow as Ct, moveCursor as wt, normalizeColumnState as Tt, parseGridView as Et, rangeBounds as Dt, rangeCells as Ot, rangeEdges as kt, rangeToText as At, resolveColumnOverflow as jt, resolveColumns as Mt, rowRange as Nt, sameCell as E, serializeGridView as Pt, serializeQuery as Ft, settleCursor as It, toCsv as Lt, wholeRange as Rt, withColumnFilter as zt, withColumnHidden as Bt, withColumnMoved as Vt, withColumnPinned as Ht, withColumnWidth as Ut, withSort as Wt, withSortPress as Gt, withoutFilters as Kt, zoneOf as qt } from "@slotted/core/grid";
38
- import { createFilterGroupPredicate as Jt, defaultOperator as Yt, describeFilter as Xt, emptyFilter as Zt, isConditionActive as Qt, isFilterActive as $t, normalizeFilter as en, operandCount as tn, operatorsFor as nn, ruleFor as rn, serializeFilter as an, withCondition as on, withJoin as sn, withoutRuleFor as cn } from "@slotted/core/filter";
37
+ import { FILTER_ROW as ct, GROUP_ROW_PREFIX as lt, HEADER_ROW as ut, POPIN_COLUMN_ID as dt, RESIZE_STEP as ft, SUMMARY_ROW as pt, applyQuery as mt, cellText as ht, cellValue as gt, clampWidth as _t, columnRange as vt, columnTemplate as yt, columnsOutOfSpace as bt, emptyGridView as xt, emptyQuery as St, groupInOrder as Ct, isGroupCursorRow as wt, moveCursor as Tt, normalizeColumnState as Et, parseGridView as Dt, rangeBounds as Ot, rangeCells as kt, rangeEdges as At, rangeToText as jt, resolveColumnOverflow as Mt, resolveColumns as Nt, rowRange as Pt, sameCell as E, serializeGridView as Ft, serializeQuery as It, settleCursor as Lt, toCsv as Rt, wholeRange as zt, withColumnFilter as Bt, withColumnHidden as Vt, withColumnMoved as Ht, withColumnPinned as Ut, withColumnWidth as Wt, withSort as Gt, withSortPress as Kt, withoutFilters as qt, zoneOf as Jt } from "@slotted/core/grid";
38
+ import { createFilterGroupPredicate as Yt, defaultOperator as Xt, describeFilter as Zt, emptyFilter as Qt, isConditionActive as $t, isFilterActive as en, normalizeFilter as tn, operandCount as nn, operatorsFor as rn, ruleFor as an, serializeFilter as on, withCondition as sn, withJoin as cn, withoutRuleFor as ln } from "@slotted/core/filter";
39
39
  //#region src/data-grid/data-grid-constants.ts
40
- var ln = "__selection", un = "__expander", dn = "__drag", fn = "a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"]), [contenteditable=\"true\"]";
41
- function pn(e, t) {
40
+ var un = "__selection", dn = "__expander", fn = "__drag", pn = "a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"]), [contenteditable=\"true\"]";
41
+ function mn(e, t) {
42
42
  let n = { "--slotted-data-grid-column": String(t) };
43
43
  return e.pinned && (n["--slotted-data-grid-pin-offset"] = `${e.pinOffset}px`), n;
44
44
  }
45
- function mn(e) {
45
+ function hn(e) {
46
46
  return {
47
47
  ...e.align ? { "data-align": e.align } : {},
48
48
  ...e.numeric ? { "data-numeric": "" } : {},
@@ -51,19 +51,19 @@ function mn(e) {
51
51
  "data-column": e.id
52
52
  };
53
53
  }
54
- function hn(e) {
54
+ function gn(e) {
55
55
  let t = e.currentTarget, n = e.target;
56
56
  if (!n || !t.contains(n)) return !0;
57
- let r = n.closest(fn);
57
+ let r = n.closest(pn);
58
58
  return r !== null && r !== t && t.contains(r);
59
59
  }
60
- var gn = 1200, _n = Pe(void 0);
60
+ var _n = 1200, vn = Pe(void 0);
61
61
  function D() {
62
- let e = Le(_n);
62
+ let e = Le(vn);
63
63
  if (e === void 0) throw Error("Every DataGrid part must be rendered inside DataGrid.");
64
64
  return e;
65
65
  }
66
- var vn = /* @__PURE__ */ new Set([
66
+ var yn = /* @__PURE__ */ new Set([
67
67
  "changedOf",
68
68
  "current",
69
69
  "detailId",
@@ -77,8 +77,8 @@ var vn = /* @__PURE__ */ new Set([
77
77
  "rangeBounds",
78
78
  "rangeInfo",
79
79
  "rowLabelOf"
80
- ]), yn = /* @__PURE__ */ new Set(/* @__PURE__ */ "activate.allState.announce.anchorToButton.attachDraggable.attachRowDraggable.autofit.beginRange.cancelEdit.commitEdit.extendRange.focused.hide.moveColumn.onCellBlur.onCellClick.onCellDoubleClick.onCellFocus.onCellKeyDown.onCellPointerDown.onCellPointerEnter.onHeaderContextMenu.onManageColumns.pin.pressSort.rangeDragging.rangeSummary.resizeBy.resizeTo.selectableCount.selectedCount.setCurrent.setDraft.setFilter.setFilterOpen.setMenuOpen.setResizing.setSort.startEdit.tabStop.toggleAll.toggleBranch.toggleExpanded.toggleGroup.toggleSelected".split("."));
81
- function bn(e) {
80
+ ]), bn = /* @__PURE__ */ new Set(/* @__PURE__ */ "activate.allState.announce.anchorToButton.attachDraggable.attachRowDraggable.autofit.beginRange.cancelEdit.commitEdit.extendRange.focused.hide.moveColumn.onCellBlur.onCellClick.onCellDoubleClick.onCellFocus.onCellKeyDown.onCellPointerDown.onCellPointerEnter.onHeaderContextMenu.onManageColumns.pin.pressSort.rangeDragging.rangeSummary.resizeBy.resizeTo.selectableCount.selectedCount.setCurrent.setDraft.setFilter.setFilterOpen.setMenuOpen.setResizing.setSort.startEdit.tabStop.toggleAll.toggleBranch.toggleExpanded.toggleGroup.toggleSelected".split("."));
81
+ function xn(e) {
82
82
  let t = e, n = 0, r = /* @__PURE__ */ new Set();
83
83
  return {
84
84
  grid: new Proxy({}, {
@@ -89,7 +89,7 @@ function bn(e) {
89
89
  set: (e) => {
90
90
  if (e === t) return;
91
91
  let r = t, i = e;
92
- for (let e of Object.keys(i)) if (!(vn.has(e) || yn.has(e)) && r[e] !== i[e]) {
92
+ for (let e of Object.keys(i)) if (!(yn.has(e) || bn.has(e)) && r[e] !== i[e]) {
93
93
  n += 1;
94
94
  break;
95
95
  }
@@ -116,7 +116,7 @@ function bn(e) {
116
116
  +!!t.hasPopinCell(e),
117
117
  +(t.draggingRow === e),
118
118
  r !== null && r.row === e ? r.column : "",
119
- i !== null && i.cell.row === e ? O(i) : "",
119
+ i !== null && i.cell.row === e ? wn(i) : "",
120
120
  t.detailId(e),
121
121
  t.rowLabelOf(e),
122
122
  a
@@ -124,48 +124,57 @@ function bn(e) {
124
124
  }
125
125
  };
126
126
  }
127
- var xn = /* @__PURE__ */ new WeakMap(), Sn = 0;
128
- function O(e) {
129
- let t = xn.get(e);
130
- return t === void 0 && (Sn += 1, t = Sn, xn.set(e, t)), t;
131
- }
132
- var Cn = Pe(void 0);
127
+ var Sn = /* @__PURE__ */ new WeakMap(), Cn = 0;
133
128
  function wn(e) {
134
- let t = Le(Cn);
129
+ let t = Sn.get(e);
130
+ return t === void 0 && (Cn += 1, t = Cn, Sn.set(e, t)), t;
131
+ }
132
+ var Tn = Pe(void 0);
133
+ function En(e) {
134
+ let t = Le(Tn);
135
135
  if (t === void 0) throw Error("Every DataGrid part must be rendered inside DataGrid.");
136
136
  let n = () => t.signature(e);
137
137
  return Ve(t.subscribe, n, n), t;
138
138
  }
139
139
  //#endregion
140
140
  //#region src/data-grid/data-grid-body.tsx
141
- function Tn({ allNodes: e, bodyStyle: t, firstIndex: n, headerRowCount: r, measureRow: i, nodes: a, heldRows: o }) {
142
- let s = o.map((t) => e.find((e) => e.key === t)).filter((e) => e !== void 0 && !a.includes(e));
143
- return /* @__PURE__ */ w("div", {
141
+ function Dn({ allNodes: e, bodyStyle: t, firstIndex: n, headerRowCount: r, measureRow: i, nodes: a, heldRows: o, loadMore: s }) {
142
+ let c = o.map((t) => e.find((e) => e.key === t)).filter((e) => e !== void 0 && !a.includes(e));
143
+ return /* @__PURE__ */ T("div", {
144
144
  "data-part": "body",
145
145
  "data-part-body": "",
146
146
  role: "rowgroup",
147
147
  style: t,
148
- children: [...a, ...s].map((e, t) => {
148
+ children: [[...a, ...c].map((e, t) => {
149
149
  let a = n + t, o = r + 1 + (e.kind === "row" ? e.index : a);
150
- return e.kind === "group" ? /* @__PURE__ */ w(j, {
150
+ return e.kind === "group" ? /* @__PURE__ */ w(Fn, {
151
151
  node: e,
152
152
  rowIndex: o
153
- }, `group:${e.key}`) : /* @__PURE__ */ w(kn, {
153
+ }, `group:${e.key}`) : /* @__PURE__ */ w(jn, {
154
154
  index: a,
155
155
  measure: i,
156
156
  node: e,
157
157
  rowIndex: o
158
158
  }, e.key);
159
- })
159
+ }), s ? /* @__PURE__ */ w("div", {
160
+ "aria-hidden": "true",
161
+ ref: s.ref,
162
+ style: {
163
+ bottom: 0,
164
+ inlineSize: 1,
165
+ position: "absolute",
166
+ top: s.top
167
+ }
168
+ }) : null]
160
169
  });
161
170
  }
162
- function En({ edge: e, firstRowIndex: t, nodes: n }) {
171
+ function On({ edge: e, firstRowIndex: t, nodes: n }) {
163
172
  return /* @__PURE__ */ w("div", {
164
173
  "data-edge": e,
165
174
  "data-part": "pinned-rows",
166
175
  "data-part-pinned-rows": "",
167
176
  role: "rowgroup",
168
- children: n.map((e, n) => /* @__PURE__ */ w(kn, {
177
+ children: n.map((e, n) => /* @__PURE__ */ w(jn, {
169
178
  index: -1,
170
179
  measure: void 0,
171
180
  node: e,
@@ -173,15 +182,15 @@ function En({ edge: e, firstRowIndex: t, nodes: n }) {
173
182
  }, e.key))
174
183
  });
175
184
  }
176
- function Dn({ children: e }) {
185
+ function kn({ children: e }) {
177
186
  return /* @__PURE__ */ w("div", {
178
187
  "data-part": "empty",
179
188
  "data-part-empty": "",
180
189
  children: e
181
190
  });
182
191
  }
183
- function On({ index: e, measure: t, node: n, rowIndex: r }) {
184
- let i = n.key, a = wn(i), o = a.latest(), s = o.isSelected(i), c = o.isDisabled(i), l = o.current !== null && o.current.row === i, u = o.isExpanded(i) && (o.treeColumn === null || n.childCount === 0), d = o.isLoadingChildren(i), f = o.edit !== null && o.edit.cell.row === i, p = y((n) => {
192
+ function An({ index: e, measure: t, node: n, rowIndex: r }) {
193
+ let i = n.key, a = En(i), o = a.latest(), s = o.isSelected(i), c = o.isDisabled(i), l = o.current !== null && o.current.row === i, u = o.isExpanded(i) && (o.treeColumn === null || n.childCount === 0), d = o.isLoadingChildren(i), f = o.edit !== null && o.edit.cell.row === i, p = y((n) => {
185
194
  t?.(e, n), a.grid.attachRowDraggable(n, i);
186
195
  }, [
187
196
  t,
@@ -207,14 +216,14 @@ function On({ index: e, measure: t, node: n, rowIndex: r }) {
207
216
  ...c ? { "data-disabled": "" } : {},
208
217
  ...f ? { "data-editing": "" } : {},
209
218
  children: [
210
- o.columnIds.includes("__selection") ? /* @__PURE__ */ w(An, { rowKey: i }) : null,
211
- o.columnIds.includes("__drag") ? /* @__PURE__ */ w(k, { node: n }) : null,
212
- o.columnIds.includes("__expander") ? /* @__PURE__ */ w(jn, { node: n }) : null,
213
- o.mountedColumns.map((e) => /* @__PURE__ */ w(A, {
219
+ o.columnIds.includes("__selection") ? /* @__PURE__ */ w(Mn, { rowKey: i }) : null,
220
+ o.columnIds.includes("__drag") ? /* @__PURE__ */ w(O, { node: n }) : null,
221
+ o.columnIds.includes("__expander") ? /* @__PURE__ */ w(Nn, { node: n }) : null,
222
+ o.mountedColumns.map((e) => /* @__PURE__ */ w(k, {
214
223
  column: e,
215
224
  node: n
216
225
  }, e.id)),
217
- o.popinColumns.length > 0 ? /* @__PURE__ */ w(Mn, { node: n }) : null
226
+ o.popinColumns.length > 0 ? /* @__PURE__ */ w(Pn, { node: n }) : null
218
227
  ]
219
228
  }), u && o.renderDetail ? /* @__PURE__ */ w("div", {
220
229
  "aria-rowindex": r + 1,
@@ -233,15 +242,15 @@ function On({ index: e, measure: t, node: n, rowIndex: r }) {
233
242
  })
234
243
  }) : null] });
235
244
  }
236
- var kn = Ie(On);
237
- function An({ rowKey: e }) {
245
+ var jn = Ie(An);
246
+ function Mn({ rowKey: e }) {
238
247
  let t = D(), n = {
239
248
  row: e,
240
- column: ln
249
+ column: un
241
250
  }, r = t.current !== null && t.current.row === e && t.current.column === "__selection", i = t.isDisabled(e);
242
251
  return /* @__PURE__ */ w("div", {
243
252
  "aria-colindex": 1,
244
- "data-column": ln,
253
+ "data-column": un,
245
254
  "data-part": "selection",
246
255
  "data-part-selection": "",
247
256
  role: "gridcell",
@@ -271,14 +280,14 @@ function An({ rowKey: e }) {
271
280
  })
272
281
  });
273
282
  }
274
- function k({ node: n }) {
275
- let r = D(), i = {
276
- row: n.key,
277
- column: dn
278
- }, a = r.columnIds.indexOf(dn) + 1, o = r.current !== null && r.current.row === n.key && r.current.column === "__drag";
283
+ function O({ node: e }) {
284
+ let t = D(), i = {
285
+ row: e.key,
286
+ column: fn
287
+ }, a = t.columnIds.indexOf(fn) + 1, o = t.current !== null && t.current.row === e.key && t.current.column === "__drag";
279
288
  return /* @__PURE__ */ w("div", {
280
289
  "aria-colindex": a,
281
- "data-column": dn,
290
+ "data-column": fn,
282
291
  "data-kind": "drag",
283
292
  "data-part": "cell",
284
293
  "data-part-cell": "",
@@ -286,31 +295,31 @@ function k({ node: n }) {
286
295
  style: { "--slotted-data-grid-column": String(a) },
287
296
  tabIndex: o ? 0 : -1,
288
297
  onFocus: (e) => {
289
- e.target === e.currentTarget && r.onCellFocus(i);
298
+ e.target === e.currentTarget && t.onCellFocus(i);
290
299
  },
291
- onKeyDown: (e) => r.onCellKeyDown(e, i),
292
- onPointerDown: (e) => r.onCellPointerDown(e, i),
300
+ onKeyDown: (e) => t.onCellKeyDown(e, i),
301
+ onPointerDown: (e) => t.onCellPointerDown(e, i),
293
302
  ...o ? { "data-current": "" } : {},
294
303
  children: /* @__PURE__ */ w("button", {
295
- "aria-disabled": !r.rowsReorderable || void 0,
296
- "aria-label": r.t("reorderRow", { row: r.rowLabelOf(n.key) }),
304
+ "aria-disabled": !t.rowsReorderable || void 0,
305
+ "aria-label": t.t("reorderRow", { row: t.rowLabelOf(e.key) }),
297
306
  "data-part": "row-handle",
298
307
  "data-part-row-handle": "",
299
- ...r.rowsReorderable ? {} : { "data-disabled": "" },
308
+ ...t.rowsReorderable ? {} : { "data-disabled": "" },
300
309
  tabIndex: o ? 0 : -1,
301
310
  type: "button",
302
- children: /* @__PURE__ */ w(t, { children: /* @__PURE__ */ w(e, { name: "grip-vertical" }) })
311
+ children: /* @__PURE__ */ w(r, { children: /* @__PURE__ */ w(n, { name: "grip-vertical" }) })
303
312
  })
304
313
  });
305
314
  }
306
- function jn({ node: n }) {
307
- let r = D(), i = {
308
- row: n.key,
309
- column: un
310
- }, a = r.columnIds.indexOf(un) + 1, o = r.current !== null && r.current.row === n.key && r.current.column === "__expander", s = r.isExpandable(n.row), c = r.isExpanded(n.key);
315
+ function Nn({ node: e }) {
316
+ let t = D(), i = {
317
+ row: e.key,
318
+ column: dn
319
+ }, a = t.columnIds.indexOf(dn) + 1, o = t.current !== null && t.current.row === e.key && t.current.column === "__expander", s = t.isExpandable(e.row), c = t.isExpanded(e.key);
311
320
  return /* @__PURE__ */ w("div", {
312
321
  "aria-colindex": a,
313
- "data-column": un,
322
+ "data-column": dn,
314
323
  "data-kind": "expander",
315
324
  "data-part": "cell",
316
325
  "data-part-cell": "",
@@ -318,43 +327,43 @@ function jn({ node: n }) {
318
327
  style: { "--slotted-data-grid-column": String(a) },
319
328
  tabIndex: o ? 0 : -1,
320
329
  onFocus: (e) => {
321
- e.target === e.currentTarget && r.onCellFocus(i);
330
+ e.target === e.currentTarget && t.onCellFocus(i);
322
331
  },
323
- onKeyDown: (e) => r.onCellKeyDown(e, i),
324
- onPointerDown: (e) => r.onCellPointerDown(e, i),
332
+ onKeyDown: (e) => t.onCellKeyDown(e, i),
333
+ onPointerDown: (e) => t.onCellPointerDown(e, i),
325
334
  ...o ? { "data-current": "" } : {},
326
335
  children: s ? /* @__PURE__ */ w("button", {
327
- "aria-controls": c ? r.detailId(n.key) : void 0,
336
+ "aria-controls": c ? t.detailId(e.key) : void 0,
328
337
  "aria-expanded": c,
329
- "aria-label": r.t(c ? "collapse" : "expand"),
338
+ "aria-label": t.t(c ? "collapse" : "expand"),
330
339
  "data-part": "expander",
331
340
  "data-part-expander": "",
332
- onClick: (e) => r.toggleExpanded(n.key, e),
341
+ onClick: (n) => t.toggleExpanded(e.key, n),
333
342
  tabIndex: o ? 0 : -1,
334
343
  type: "button",
335
- children: /* @__PURE__ */ w(t, { children: /* @__PURE__ */ w(e, { name: "chevron-right" }) })
344
+ children: /* @__PURE__ */ w(r, { children: /* @__PURE__ */ w(n, { name: "chevron-right" }) })
336
345
  }) : null
337
346
  });
338
347
  }
339
- function A({ column: n, node: r }) {
340
- let i = D(), a = r.key, o = {
348
+ function k({ column: e, node: t }) {
349
+ let i = D(), a = t.key, o = {
341
350
  row: a,
342
- column: n.id
343
- }, s = i.columnIds.indexOf(n.id) + 1, c = i.current !== null && i.current.row === a && i.current.column === n.id, l = i.isSelected(a), u = i.edit, d = u !== null && u.cell.row === a && u.columns.includes(n.id), f = i.valueOf(n.column, r.row), p = i.textOf(n.column, r.row), m = i.isEditable(n.column, r.row), h = i.rangeInfo(o), g = d ? u.messages[n.id] ?? null : null, _ = d && u.status === "invalid" && g !== null, ee = d && u.status === "pending", te = n.column.rowHeader ? "row-header" : "cell", ne = i.changedOf(o), re = i.treeColumn === n.id, ie = re && (r.childCount > 0 || r.open || i.isLoadingChildren(a) || i.hasChildren(r.row));
351
+ column: e.id
352
+ }, s = i.columnIds.indexOf(e.id) + 1, c = i.current !== null && i.current.row === a && i.current.column === e.id, l = i.isSelected(a), u = i.edit, d = u !== null && u.cell.row === a && u.columns.includes(e.id), f = i.valueOf(e.column, t.row), p = i.textOf(e.column, t.row), m = i.isEditable(e.column, t.row), h = i.rangeInfo(o), g = d ? u.messages[e.id] ?? null : null, _ = d && u.status === "invalid" && g !== null, ee = d && u.status === "pending", te = e.column.rowHeader ? "row-header" : "cell", ne = i.changedOf(o), re = i.treeColumn === e.id, ie = re && (t.childCount > 0 || t.open || i.isLoadingChildren(a) || i.hasChildren(t.row));
344
353
  return /* @__PURE__ */ T("div", {
345
- ...mn(n),
354
+ ...hn(e),
346
355
  "aria-colindex": s,
347
- "aria-readonly": i.anyEditable && !m && n.kind !== "actions" ? !0 : void 0,
356
+ "aria-readonly": i.anyEditable && !m && e.kind !== "actions" ? !0 : void 0,
348
357
  "aria-selected": i.selectionMode === "range" && h.inside ? !0 : void 0,
349
358
  "aria-invalid": _ ? !0 : void 0,
350
359
  "data-part": te,
351
360
  ...je("part", te),
352
- "data-text": n.text,
361
+ "data-text": e.text,
353
362
  role: te === "row-header" ? "rowheader" : "gridcell",
354
363
  style: re ? {
355
- ...pn(n, s),
356
- "--slotted-data-grid-level": String(r.level)
357
- } : pn(n, s),
364
+ ...mn(e, s),
365
+ "--slotted-data-grid-level": String(t.level)
366
+ } : mn(e, s),
358
367
  tabIndex: c ? 0 : -1,
359
368
  title: _ && g ? g : void 0,
360
369
  onClick: (e) => i.onCellClick(e, o),
@@ -372,11 +381,11 @@ function A({ column: n, node: r }) {
372
381
  ..._ ? { "data-invalid": "" } : {},
373
382
  ...ee ? { "data-loading": "" } : {},
374
383
  ...ne ? { "data-changed": ne } : {},
375
- ...i.anyEditable && !m && n.kind !== "actions" ? { "data-readonly": "" } : {},
384
+ ...i.anyEditable && !m && e.kind !== "actions" ? { "data-readonly": "" } : {},
376
385
  ...re ? { "data-tree": ie ? "branch" : "leaf" } : {},
377
386
  children: [re ? ie ? /* @__PURE__ */ w("button", {
378
- "aria-expanded": r.open,
379
- "aria-label": i.t(r.open ? "collapse" : "expand"),
387
+ "aria-expanded": t.open,
388
+ "aria-label": i.t(t.open ? "collapse" : "expand"),
380
389
  "data-part": "tree-toggle",
381
390
  "data-part-tree-toggle": "",
382
391
  onClick: (e) => {
@@ -386,7 +395,7 @@ function A({ column: n, node: r }) {
386
395
  tabIndex: -1,
387
396
  type: "button",
388
397
  ...i.isLoadingChildren(a) ? { "data-loading": "" } : {},
389
- children: /* @__PURE__ */ w(t, { children: /* @__PURE__ */ w(e, { name: i.isLoadingChildren(a) ? "loader-circle" : "chevron-right" }) })
398
+ children: /* @__PURE__ */ w(r, { children: /* @__PURE__ */ w(n, { name: i.isLoadingChildren(a) ? "loader-circle" : "chevron-right" }) })
390
399
  }) : /* @__PURE__ */ w("span", {
391
400
  "aria-hidden": !0,
392
401
  "data-part": "tree-toggle",
@@ -396,24 +405,24 @@ function A({ column: n, node: r }) {
396
405
  "data-part": "editor",
397
406
  "data-part-editor": "",
398
407
  children: i.renderEditorContent({
399
- row: r.row,
408
+ row: t.row,
400
409
  rowKey: a,
401
- column: n.column,
410
+ column: e.column,
402
411
  value: f,
403
412
  text: p,
404
413
  current: c,
405
414
  selected: l,
406
- draft: u.drafts[n.id],
407
- setDraft: (e) => i.setDraft(n.id, e),
415
+ draft: u.drafts[e.id],
416
+ setDraft: (t) => i.setDraft(e.id, t),
408
417
  commit: () => i.commitEdit("programmatic"),
409
418
  cancel: () => i.cancelEdit(),
410
419
  invalid: _,
411
420
  message: g
412
421
  })
413
422
  }) : i.renderCellContent({
414
- row: r.row,
423
+ row: t.row,
415
424
  rowKey: a,
416
- column: n.column,
425
+ column: e.column,
417
426
  value: f,
418
427
  text: p,
419
428
  current: c,
@@ -421,7 +430,7 @@ function A({ column: n, node: r }) {
421
430
  })]
422
431
  });
423
432
  }
424
- function Mn({ node: e }) {
433
+ function Pn({ node: e }) {
425
434
  let t = D(), n = e.key, r = {
426
435
  row: n,
427
436
  column: dt
@@ -467,20 +476,20 @@ function Mn({ node: e }) {
467
476
  }, r.id))
468
477
  });
469
478
  }
470
- function j({ node: n, rowIndex: r }) {
471
- let i = D(), a = `${lt}${n.key}`, o = i.columns.find((e) => e.id === n.column), s = i.resolved.filter((e) => e.column.aggregate !== void 0), c = s.length > 0 ? Math.min(...s.map((e) => i.columnIds.indexOf(e.id) + 1)) : i.columnIds.length + 1, l = (e) => ({
479
+ function Fn({ node: e, rowIndex: t }) {
480
+ let i = D(), a = `${lt}${e.key}`, o = i.columns.find((t) => t.id === e.column), s = i.resolved.filter((e) => e.column.aggregate !== void 0), c = s.length > 0 ? Math.min(...s.map((e) => i.columnIds.indexOf(e.id) + 1)) : i.columnIds.length + 1, l = (e) => ({
472
481
  row: a,
473
482
  column: e
474
- }), u = i.columnIds[0], d = i.current !== null && i.current.row === a, f = i.t("groupCount", { count: n.count });
483
+ }), u = i.columnIds[0], d = i.current !== null && i.current.row === a, f = i.t("groupCount", { count: e.count });
475
484
  return /* @__PURE__ */ T("div", {
476
- "aria-expanded": n.expanded,
477
- "aria-level": n.level,
478
- "aria-rowindex": r,
485
+ "aria-expanded": e.expanded,
486
+ "aria-level": e.level,
487
+ "aria-rowindex": t,
479
488
  "data-part": "group-row",
480
489
  "data-part-group-row": "",
481
490
  "data-row": a,
482
491
  role: "row",
483
- style: { "--slotted-data-grid-level": String(n.level) },
492
+ style: { "--slotted-data-grid-level": String(e.level) },
484
493
  ...d ? { "data-current": "" } : {},
485
494
  children: [/* @__PURE__ */ T("div", {
486
495
  "aria-colindex": 1,
@@ -497,38 +506,38 @@ function j({ node: n, rowIndex: r }) {
497
506
  onPointerDown: (e) => i.onCellPointerDown(e, l(u)),
498
507
  ...d && i.current?.column === u ? { "data-current": "" } : {},
499
508
  children: [/* @__PURE__ */ w("button", {
500
- "aria-expanded": n.expanded,
501
- "aria-label": i.t(n.expanded ? "collapseGroup" : "expandGroup", { group: n.text }),
509
+ "aria-expanded": e.expanded,
510
+ "aria-label": i.t(e.expanded ? "collapseGroup" : "expandGroup", { group: e.text }),
502
511
  "data-part": "group-toggle",
503
512
  "data-part-group-toggle": "",
504
- onClick: (e) => {
505
- e.stopPropagation(), i.toggleGroup(n.key, e);
513
+ onClick: (t) => {
514
+ t.stopPropagation(), i.toggleGroup(e.key, t);
506
515
  },
507
516
  tabIndex: -1,
508
517
  type: "button",
509
- children: /* @__PURE__ */ w(t, { children: /* @__PURE__ */ w(e, { name: "chevron-right" }) })
518
+ children: /* @__PURE__ */ w(r, { children: /* @__PURE__ */ w(n, { name: "chevron-right" }) })
510
519
  }), i.renderGroup && o ? i.renderGroup({
511
- node: n,
520
+ node: e,
512
521
  column: o,
513
- toggle: () => i.toggleGroup(n.key)
514
- }) : /* @__PURE__ */ T(He, { children: [/* @__PURE__ */ w("span", { children: n.text }), /* @__PURE__ */ w("span", {
522
+ toggle: () => i.toggleGroup(e.key)
523
+ }) : /* @__PURE__ */ T(He, { children: [/* @__PURE__ */ w("span", { children: e.text }), /* @__PURE__ */ w("span", {
515
524
  "data-count": "",
516
525
  children: f
517
526
  })] })]
518
- }), s.map((e) => {
519
- let t = i.columnIds.indexOf(e.id) + 1, r = n.aggregates[e.id], a = r == null ? "" : ht({
520
- ...e.column,
527
+ }), s.map((t) => {
528
+ let n = i.columnIds.indexOf(t.id) + 1, r = e.aggregates[t.id], a = r == null ? "" : ht({
529
+ ...t.column,
521
530
  accessor: () => r
522
- }, n.rows[0], {
531
+ }, e.rows[0], {
523
532
  locale: i.locale,
524
533
  booleans: i.booleans
525
- }), o = l(e.id), s = d && i.current?.column === e.id;
534
+ }), o = l(t.id), s = d && i.current?.column === t.id;
526
535
  return /* @__PURE__ */ Fe("div", {
527
- ...mn(e),
528
- "aria-colindex": t,
529
- key: e.id,
536
+ ...hn(t),
537
+ "aria-colindex": n,
538
+ key: t.id,
530
539
  role: "gridcell",
531
- style: pn(e, t),
540
+ style: mn(t, n),
532
541
  tabIndex: s ? 0 : -1,
533
542
  onFocus: (e) => {
534
543
  e.target === e.currentTarget && i.onCellFocus(o);
@@ -543,7 +552,7 @@ function j({ node: n, rowIndex: r }) {
543
552
  })]
544
553
  });
545
554
  }
546
- function Nn({ rows: e, rowSize: t }) {
555
+ function In({ rows: e, rowSize: t }) {
547
556
  let n = D(), r = n.columnIds.length - n.resolved.length;
548
557
  return /* @__PURE__ */ w("div", {
549
558
  "aria-hidden": !0,
@@ -572,7 +581,7 @@ function Nn({ rows: e, rowSize: t }) {
572
581
  }, t))
573
582
  });
574
583
  }
575
- function Pn({ aggregates: e, rowIndex: t }) {
584
+ function Ln({ aggregates: e, rowIndex: t }) {
576
585
  let n = D(), r = n.current !== null && n.current.row === pt, i = n.columnIds.length - n.resolved.length, a = (t) => {
577
586
  let r = e[t.id];
578
587
  return r == null ? "" : ht({
@@ -610,13 +619,13 @@ function Pn({ aggregates: e, rowIndex: t }) {
610
619
  column: e.id
611
620
  }, o = r && n.current?.column === e.id, s = a(e);
612
621
  return /* @__PURE__ */ Fe("div", {
613
- ...mn(e),
622
+ ...hn(e),
614
623
  "aria-colindex": t,
615
624
  "data-part": "summary-cell",
616
625
  "data-part-summary-cell": "",
617
626
  key: e.id,
618
627
  role: "gridcell",
619
- style: pn(e, t),
628
+ style: mn(e, t),
620
629
  tabIndex: o ? 0 : -1,
621
630
  onFocus: (e) => {
622
631
  e.target === e.currentTarget && n.onCellFocus(i);
@@ -661,29 +670,29 @@ function Pn({ aggregates: e, rowIndex: t }) {
661
670
  }
662
671
  //#endregion
663
672
  //#region src/data-grid/data-grid-defaults.tsx
664
- var Fn = Pe({});
665
- function In({ children: e, ...t }) {
666
- let n = { ...Le(Fn) };
673
+ var Rn = Pe({});
674
+ function zn({ children: e, ...t }) {
675
+ let n = { ...Le(Rn) };
667
676
  for (let [e, r] of Object.entries(t)) r !== void 0 && (n[e] = r);
668
677
  let r = x(() => n, [JSON.stringify(n)]);
669
- return /* @__PURE__ */ w(Fn.Provider, {
678
+ return /* @__PURE__ */ w(Rn.Provider, {
670
679
  value: r,
671
680
  children: e
672
681
  });
673
682
  }
674
- function Ln() {
675
- return Le(Fn);
683
+ function Bn() {
684
+ return Le(Rn);
676
685
  }
677
686
  //#endregion
678
687
  //#region src/data-grid/use-data-source.ts
679
- var Rn = 20, zn = [];
680
- function Bn(e, t) {
688
+ var Vn = 20, Hn = [];
689
+ function Un(e, t) {
681
690
  let [n, r] = C({
682
691
  key: null,
683
692
  result: null,
684
693
  loading: e !== void 0,
685
694
  error: null
686
- }), i = S(/* @__PURE__ */ new Map()), a = S(null), [o, s] = C(0), c = e ? Ft(t) : null;
695
+ }), i = S(/* @__PURE__ */ new Map()), a = S(null), [o, s] = C(0), c = e ? It(t) : null;
687
696
  b(() => {
688
697
  if (!e || c === null) return;
689
698
  let n = i.current.get(c);
@@ -704,7 +713,7 @@ function Bn(e, t) {
704
713
  error: null
705
714
  })), e.getRows(t, { signal: o.signal }).then((t) => {
706
715
  if (o.signal.aborted) return;
707
- let n = e.cacheSize ?? Rn;
716
+ let n = e.cacheSize ?? Vn;
708
717
  if (n > 0) for (i.current.set(c, t); i.current.size > n;) {
709
718
  let e = i.current.keys().next().value;
710
719
  if (e === void 0) break;
@@ -734,7 +743,7 @@ function Bn(e, t) {
734
743
  i.current.clear(), s((e) => e + 1);
735
744
  }, []);
736
745
  return {
737
- rows: n.result?.rows ?? zn,
746
+ rows: n.result?.rows ?? Hn,
738
747
  total: n.result?.total,
739
748
  hasMore: n.result?.hasMore,
740
749
  loading: n.loading,
@@ -745,26 +754,26 @@ function Bn(e, t) {
745
754
  }
746
755
  //#endregion
747
756
  //#region src/data-grid/data-grid-editors.tsx
748
- function Vn(e) {
757
+ function Wn(e) {
749
758
  return /* @__PURE__ */ w("span", {
750
759
  title: e.text,
751
760
  children: e.text
752
761
  });
753
762
  }
754
- function Hn(e) {
763
+ function Gn(e) {
755
764
  if (!e) return null;
756
765
  let t = String(e);
757
766
  return $e(/^\d{2}$/.test(t) ? `${t}:00` : t);
758
767
  }
759
- function Un(e) {
768
+ function Kn(e) {
760
769
  if (!e) return null;
761
770
  let t = String(e);
762
771
  return /^\d{4}-\d{2}-\d{2}$/.test(t) ? Qe(`${t}T00:00`) : /^\d{4}-\d{2}-\d{2}T\d{2}$/.test(t) ? Qe(`${t}:00`) : Qe(t);
763
772
  }
764
- function M(e) {
773
+ function qn(e) {
765
774
  return e ? Ze(String(e)) : null;
766
775
  }
767
- function Wn(e, t, n) {
776
+ function Jn(e, t, n) {
768
777
  let { column: r, draft: i, setDraft: a, invalid: o, message: s } = e, c = r.kind ?? "text", l = r.label, u = {
769
778
  "aria-label": l,
770
779
  autoFocus: !0,
@@ -792,19 +801,19 @@ function Wn(e, t, n) {
792
801
  case "date": return /* @__PURE__ */ w(de, {
793
802
  ...u,
794
803
  onValueChange: (e) => a(Je(e) ? et(e) : null),
795
- value: M(i),
804
+ value: qn(i),
796
805
  ...n === void 0 ? {} : { locale: n }
797
806
  });
798
807
  case "time": return /* @__PURE__ */ w(ke, {
799
808
  ...u,
800
809
  onValueChange: (e) => a(Xe(e) ? nt(e, "minute") : null),
801
- value: Hn(i),
810
+ value: Gn(i),
802
811
  ...n === void 0 ? {} : { locale: n }
803
812
  });
804
813
  case "datetime": return /* @__PURE__ */ w(me, {
805
814
  ...u,
806
815
  onValueChange: (e) => a(Ye(e) ? tt(e) : null),
807
- value: Un(i),
816
+ value: Kn(i),
808
817
  ...n === void 0 ? {} : { locale: n }
809
818
  });
810
819
  case "set": {
@@ -839,7 +848,7 @@ function Wn(e, t, n) {
839
848
  }
840
849
  //#endregion
841
850
  //#region src/data-grid/data-grid-filter.tsx
842
- var Gn = [
851
+ var Yn = [
843
852
  "text",
844
853
  "number",
845
854
  "date",
@@ -848,21 +857,21 @@ var Gn = [
848
857
  "boolean",
849
858
  "set"
850
859
  ];
851
- function Kn(e) {
852
- return Gn.includes(e.kind) ? e.kind : null;
860
+ function Xn(e) {
861
+ return Yn.includes(e.kind) ? e.kind : null;
853
862
  }
854
- function qn(e, t) {
855
- return an(e) === an(t);
863
+ function A(e, t) {
864
+ return on(e) === on(t);
856
865
  }
857
- var Jn = [
866
+ var j = [
858
867
  "date",
859
868
  "time",
860
869
  "datetime"
861
870
  ];
862
- function Yn(e, t) {
863
- return tn(t) === 2 && Jn.includes(e);
871
+ function Zn(e, t) {
872
+ return nn(t) === 2 && j.includes(e);
864
873
  }
865
- function Xn({ kind: e, start: t, end: n, onChange: r, t: i, locale: a, variant: o, autoFocus: s }) {
874
+ function Qn({ kind: e, start: t, end: n, onChange: r, t: i, locale: a, variant: o, autoFocus: s }) {
866
875
  let c = {
867
876
  size: "sm",
868
877
  variant: o,
@@ -877,16 +886,16 @@ function Xn({ kind: e, start: t, end: n, onChange: r, t: i, locale: a, variant:
877
886
  ...l,
878
887
  onValueChange: (e) => r(Xe(e?.start) ? nt(e.start, "minute") : null, Xe(e?.end) ? nt(e.end, "minute") : null),
879
888
  value: {
880
- start: Hn(t),
881
- end: Hn(n)
889
+ start: Gn(t),
890
+ end: Gn(n)
882
891
  }
883
892
  }) : e === "datetime" ? /* @__PURE__ */ w(he, {
884
893
  ...c,
885
894
  ...l,
886
895
  onValueChange: (e) => r(Ye(e?.start) ? tt(e.start) : null, Ye(e?.end) ? tt(e.end) : null),
887
896
  value: {
888
- start: Un(t),
889
- end: Un(n)
897
+ start: Kn(t),
898
+ end: Kn(n)
890
899
  }
891
900
  }) : /* @__PURE__ */ w(fe, {
892
901
  ...c,
@@ -896,12 +905,12 @@ function Xn({ kind: e, start: t, end: n, onChange: r, t: i, locale: a, variant:
896
905
  },
897
906
  onValueChange: (e) => r(Je(e?.start) ? et(e.start) : null, Je(e?.end) ? et(e.end) : null),
898
907
  value: {
899
- start: M(t),
900
- end: M(n)
908
+ start: qn(t),
909
+ end: qn(n)
901
910
  }
902
911
  });
903
912
  }
904
- function Zn({ autoFocus: e, column: t, counts: n, kind: r, label: i, t: a, locale: o, onChange: s, onKeyDown: c, placeholder: l, value: u, variant: d }) {
913
+ function $n({ autoFocus: e, column: t, counts: n, kind: r, label: i, t: a, locale: o, onChange: s, onKeyDown: c, placeholder: l, value: u, variant: d }) {
905
914
  let f = {
906
915
  "aria-label": i,
907
916
  size: "sm",
@@ -921,17 +930,17 @@ function Zn({ autoFocus: e, column: t, counts: n, kind: r, label: i, t: a, local
921
930
  case "date": return /* @__PURE__ */ w(ue, {
922
931
  ...f,
923
932
  onValueChange: (e) => s(Je(e) ? et(e) : null),
924
- value: M(u)
933
+ value: qn(u)
925
934
  });
926
935
  case "time": return /* @__PURE__ */ w(Oe, {
927
936
  ...f,
928
937
  onValueChange: (e) => s(Xe(e) ? nt(e, "minute") : null),
929
- value: Hn(u)
938
+ value: Gn(u)
930
939
  });
931
940
  case "datetime": return /* @__PURE__ */ w(pe, {
932
941
  ...f,
933
942
  onValueChange: (e) => s(Ye(e) ? tt(e) : null),
934
- value: Un(u)
943
+ value: Kn(u)
935
944
  });
936
945
  case "boolean": return /* @__PURE__ */ T(Ce, {
937
946
  fullWidth: !0,
@@ -999,10 +1008,10 @@ function Zn({ autoFocus: e, column: t, counts: n, kind: r, label: i, t: a, local
999
1008
  });
1000
1009
  }
1001
1010
  }
1002
- function Qn({ column: e, children: t }) {
1003
- let n = D(), r = Kn(e), i = n.filterOpen === e.id && r !== null, a = n.filterOf(e.id), o = n.t, s = S(null), c = y((e) => {
1011
+ function er({ column: e, children: t }) {
1012
+ let n = D(), r = Xn(e), i = n.filterOpen === e.id && r !== null, a = n.filterOf(e.id), o = n.t, s = S(null), c = y((e) => {
1004
1013
  s.current = e;
1005
- }, []), u = y(() => r ? Zt(r) : null, [r]), [d, f] = C(a ?? u()), p = S(!1);
1014
+ }, []), u = y(() => r ? Qt(r) : null, [r]), [d, f] = C(a ?? u()), p = S(!1);
1006
1015
  if (b(() => {
1007
1016
  i && !p.current && f(a ?? u()), p.current = i;
1008
1017
  }, [
@@ -1013,27 +1022,27 @@ function Qn({ column: e, children: t }) {
1013
1022
  let m = r, h = e.column.label, g = {
1014
1023
  join: (e) => o(`filterJoins.${e}`),
1015
1024
  operator: (e) => o(`filterOperators.${e}`)
1016
- }, ee = nn(r), re = r === "set" ? 1 : 2, v = d ?? u(), ae = (e) => v.conditions[e] ?? { operator: Yt(r) }, oe = re === 2 && Qt(r, ae(0));
1025
+ }, ee = rn(r), re = r === "set" ? 1 : 2, v = d ?? u(), ae = (e) => v.conditions[e] ?? { operator: Xt(r) }, oe = re === 2 && $t(r, ae(0));
1017
1026
  function se() {
1018
1027
  n.setFilterOpen(null);
1019
1028
  }
1020
1029
  function ce(t, r) {
1021
- let i = en(v);
1022
- qn(i, a) || n.setFilter(e.id, i, r, t), n.announce(i ? o("filterApplied", {
1030
+ let i = tn(v);
1031
+ A(i, a) || n.setFilter(e.id, i, r, t), n.announce(i ? o("filterApplied", {
1023
1032
  column: h,
1024
- filter: Xt(i, g)
1033
+ filter: Zt(i, g)
1025
1034
  }) : o("filterCleared", { column: h })), se();
1026
1035
  }
1027
1036
  function le(t) {
1028
1037
  f(u()), a && n.setFilter(e.id, null, "clear", t), n.announce(o("filterCleared", { column: h })), se();
1029
1038
  }
1030
1039
  function ue(e, t) {
1031
- let n = ae(e), r = tn(n.operator), i = tn(t), a = {
1040
+ let n = ae(e), r = nn(n.operator), i = nn(t), a = {
1032
1041
  operator: t,
1033
1042
  ...i >= 1 && r >= 1 ? { value: n.value } : {},
1034
1043
  ...i === 2 && r === 2 ? { end: n.end } : {}
1035
1044
  };
1036
- f(on(v, e, a));
1045
+ f(sn(v, e, a));
1037
1046
  }
1038
1047
  function de(e, t, n) {
1039
1048
  let r = ae(e), i = t === 0 ? {
@@ -1043,13 +1052,13 @@ function Qn({ column: e, children: t }) {
1043
1052
  ...r,
1044
1053
  end: n
1045
1054
  };
1046
- f(on(v, e, i));
1055
+ f(sn(v, e, i));
1047
1056
  }
1048
1057
  let fe = (e) => {
1049
1058
  e.key === "Enter" && !e.defaultPrevented && (e.preventDefault(), ce(e, "keyboard"));
1050
1059
  };
1051
1060
  function pe(t) {
1052
- let r = ae(t), i = tn(r.operator), a = n.renderFilterOperand;
1061
+ let r = ae(t), i = nn(r.operator), a = n.renderFilterOperand;
1053
1062
  return /* @__PURE__ */ T("div", {
1054
1063
  "data-operands": i,
1055
1064
  "data-part": "filter-condition",
@@ -1060,7 +1069,7 @@ function Qn({ column: e, children: t }) {
1060
1069
  "data-part-filter-join": "",
1061
1070
  children: /* @__PURE__ */ T(Se, {
1062
1071
  "aria-label": o("filterJoin"),
1063
- onValueChange: (e) => f(sn(v, e)),
1072
+ onValueChange: (e) => f(cn(v, e)),
1064
1073
  size: "sm",
1065
1074
  value: v.join,
1066
1075
  children: [/* @__PURE__ */ w(xe, {
@@ -1099,13 +1108,13 @@ function Qn({ column: e, children: t }) {
1099
1108
  "data-kind": m,
1100
1109
  "data-part": "filter-operand",
1101
1110
  "data-part-filter-operand": "",
1102
- ...i === 2 && !Yn(m, r.operator) ? { "data-range": "" } : {},
1103
- children: i === 0 ? null : !a && Yn(m, r.operator) ? /* @__PURE__ */ w(Xn, {
1111
+ ...i === 2 && !Zn(m, r.operator) ? { "data-range": "" } : {},
1112
+ children: i === 0 ? null : !a && Zn(m, r.operator) ? /* @__PURE__ */ w(Qn, {
1104
1113
  end: r.end ?? null,
1105
1114
  kind: m,
1106
1115
  t: o,
1107
1116
  locale: n.locale,
1108
- onChange: (e, n) => f(on(v, t, {
1117
+ onChange: (e, n) => f(sn(v, t, {
1109
1118
  ...r,
1110
1119
  value: e,
1111
1120
  end: n
@@ -1121,7 +1130,7 @@ function Qn({ column: e, children: t }) {
1121
1130
  setValue: (e) => de(t, s, e),
1122
1131
  apply: () => ce(null, "keyboard"),
1123
1132
  label: c
1124
- }) }, s) : /* @__PURE__ */ w(Zn, {
1133
+ }) }, s) : /* @__PURE__ */ w($n, {
1125
1134
  column: e,
1126
1135
  counts: m === "set" ? n.countsFor(e.id) : void 0,
1127
1136
  kind: m,
@@ -1165,7 +1174,7 @@ function Qn({ column: e, children: t }) {
1165
1174
  "data-part": "filter-actions",
1166
1175
  "data-part-filter-actions": "",
1167
1176
  children: [/* @__PURE__ */ w(l, {
1168
- disabled: !$t(v) && a === null,
1177
+ disabled: !en(v) && a === null,
1169
1178
  onClick: (e) => le(e),
1170
1179
  size: "sm",
1171
1180
  tone: "secondary",
@@ -1182,14 +1191,14 @@ function Qn({ column: e, children: t }) {
1182
1191
  }) }) : null]
1183
1192
  });
1184
1193
  }
1185
- function $n({ column: e }) {
1186
- let t = D(), i = Kn(e), s = t.columnIds.indexOf(e.id) + 1, c = {
1194
+ function tr({ column: e }) {
1195
+ let t = D(), n = Xn(e), r = t.columnIds.indexOf(e.id) + 1, o = {
1187
1196
  row: ct,
1188
1197
  column: e.id
1189
- }, l = t.current !== null && t.current.row === ct && t.current.column === e.id, u = t.filterOf(e.id), d = t.t, f = u?.conditions[0] ?? null, [p, m] = C(f?.operator ?? (i ? Yt(i) : "contains")), [h, g] = C({
1198
+ }, l = t.current !== null && t.current.row === ct && t.current.column === e.id, u = t.filterOf(e.id), d = t.t, f = u?.conditions[0] ?? null, [p, m] = C(f?.operator ?? (n ? Xt(n) : "contains")), [h, g] = C({
1190
1199
  value: f?.value ?? null,
1191
1200
  end: f?.end ?? null
1192
- }), _ = S(void 0), ee = an(u), te = S(ee);
1201
+ }), _ = S(void 0), ee = on(u), te = S(ee);
1193
1202
  if (b(() => {
1194
1203
  if (te.current === ee) return;
1195
1204
  te.current = ee;
@@ -1201,24 +1210,24 @@ function $n({ column: e }) {
1201
1210
  value: null,
1202
1211
  end: null
1203
1212
  });
1204
- }, [ee, u]), b(() => () => clearTimeout(_.current), []), !i || !e.filterable) return /* @__PURE__ */ w("div", {
1205
- ...mn(e),
1206
- "aria-colindex": s,
1213
+ }, [ee, u]), b(() => () => clearTimeout(_.current), []), !n || !e.filterable) return /* @__PURE__ */ w("div", {
1214
+ ...hn(e),
1215
+ "aria-colindex": r,
1207
1216
  "data-part": "filter-cell",
1208
1217
  "data-part-filter-cell": "",
1209
1218
  role: "gridcell",
1210
- style: pn(e, s),
1219
+ style: mn(e, r),
1211
1220
  tabIndex: l ? 0 : -1,
1212
1221
  onFocus: (e) => {
1213
- e.target === e.currentTarget && t.onCellFocus(c);
1222
+ e.target === e.currentTarget && t.onCellFocus(o);
1214
1223
  },
1215
- onKeyDown: (e) => t.onCellKeyDown(e, c),
1216
- onPointerDown: (e) => t.onCellPointerDown(e, c),
1224
+ onKeyDown: (e) => t.onCellKeyDown(e, o),
1225
+ onPointerDown: (e) => t.onCellPointerDown(e, o),
1217
1226
  ...l ? { "data-current": "" } : {}
1218
1227
  });
1219
- let ne = i, re = nn(i), ie = tn(p);
1228
+ let ne = n, re = rn(n), ie = nn(p);
1220
1229
  function v(n, r) {
1221
- let i = en({
1230
+ let i = tn({
1222
1231
  kind: ne,
1223
1232
  join: "and",
1224
1233
  conditions: [{
@@ -1227,19 +1236,19 @@ function $n({ column: e }) {
1227
1236
  end: n.end
1228
1237
  }]
1229
1238
  });
1230
- qn(i, u) || t.setFilter(e.id, i, r, void 0);
1239
+ A(i, u) || t.setFilter(e.id, i, r, void 0);
1231
1240
  }
1232
- function ae(e, n) {
1241
+ function ae(e, r) {
1233
1242
  g(e), clearTimeout(_.current);
1234
- let r = () => v({
1243
+ let i = () => v({
1235
1244
  operator: p,
1236
1245
  ...e
1237
1246
  }, "keyboard");
1238
- n || i !== "text" && i !== "number" ? r() : _.current = setTimeout(r, t.filterDebounce);
1247
+ r || n !== "text" && n !== "number" ? i() : _.current = setTimeout(i, t.filterDebounce);
1239
1248
  }
1240
1249
  function oe(e) {
1241
1250
  m(e);
1242
- let t = tn(e), n = {
1251
+ let t = nn(e), n = {
1243
1252
  value: t >= 1 ? h.value : null,
1244
1253
  end: t === 2 ? h.end : null
1245
1254
  };
@@ -1255,45 +1264,45 @@ function $n({ column: e }) {
1255
1264
  }, "keyboard"));
1256
1265
  }, ce = d(`filterSymbols.${p}`), le = t.renderFilterOperand;
1257
1266
  return /* @__PURE__ */ w("div", {
1258
- ...mn(e),
1259
- "aria-colindex": s,
1267
+ ...hn(e),
1268
+ "aria-colindex": r,
1260
1269
  "data-part": "filter-cell",
1261
1270
  "data-part-filter-cell": "",
1262
1271
  role: "gridcell",
1263
- style: pn(e, s),
1272
+ style: mn(e, r),
1264
1273
  tabIndex: l ? 0 : -1,
1265
1274
  onFocus: (e) => {
1266
- e.target === e.currentTarget && t.onCellFocus(c);
1275
+ e.target === e.currentTarget && t.onCellFocus(o);
1267
1276
  },
1268
- onKeyDown: (e) => t.onCellKeyDown(e, c),
1269
- onPointerDown: (e) => t.onCellPointerDown(e, c),
1277
+ onKeyDown: (e) => t.onCellKeyDown(e, o),
1278
+ onPointerDown: (e) => t.onCellPointerDown(e, o),
1270
1279
  ...u ? { "data-filtered": "" } : {},
1271
1280
  ...l ? { "data-current": "" } : {},
1272
1281
  children: /* @__PURE__ */ T("div", {
1273
- "data-kind": i,
1282
+ "data-kind": n,
1274
1283
  "data-part": "filter-operand",
1275
1284
  "data-part-filter-operand": "",
1276
- ...ie === 2 && !Yn(i, p) ? { "data-range": "" } : {},
1285
+ ...ie === 2 && !Zn(n, p) ? { "data-range": "" } : {},
1277
1286
  children: [/* @__PURE__ */ w("div", {
1278
1287
  "data-part": "filter-operator",
1279
1288
  "data-part-filter-operator": "",
1280
- children: /* @__PURE__ */ T(n, {
1289
+ children: /* @__PURE__ */ T(i, {
1281
1290
  size: "sm",
1282
- children: [/* @__PURE__ */ w(a, { render: (e) => /* @__PURE__ */ w("button", {
1291
+ children: [/* @__PURE__ */ w(s, { render: (e) => /* @__PURE__ */ w("button", {
1283
1292
  ...e,
1284
1293
  "aria-label": d("filterOperatorChosen", { operator: d(`filterOperators.${p}`) }),
1285
1294
  title: d(`filterOperators.${p}`),
1286
1295
  tabIndex: -1,
1287
1296
  type: "button",
1288
1297
  children: ce
1289
- }) }), /* @__PURE__ */ w(o, { children: re.map((e) => /* @__PURE__ */ w(r, {
1298
+ }) }), /* @__PURE__ */ w(c, { children: re.map((e) => /* @__PURE__ */ w(a, {
1290
1299
  onSelect: () => oe(e),
1291
1300
  children: d(`filterOperators.${e}`)
1292
1301
  }, e)) })]
1293
1302
  })
1294
- }), ie === 0 ? null : !le && Yn(i, p) ? /* @__PURE__ */ w(Xn, {
1303
+ }), ie === 0 ? null : !le && Zn(n, p) ? /* @__PURE__ */ w(Qn, {
1295
1304
  end: h.end,
1296
- kind: i,
1305
+ kind: n,
1297
1306
  t: d,
1298
1307
  locale: t.locale,
1299
1308
  onChange: (e, t) => ae({
@@ -1302,11 +1311,11 @@ function $n({ column: e }) {
1302
1311
  }, !0),
1303
1312
  start: h.value,
1304
1313
  variant: "plain"
1305
- }) : [0, 1].slice(0, ie).map((n) => {
1306
- let r = ie === 2 ? d("filterRange", {
1307
- bound: n === 0 ? "from" : "to",
1314
+ }) : [0, 1].slice(0, ie).map((r) => {
1315
+ let i = ie === 2 ? d("filterRange", {
1316
+ bound: r === 0 ? "from" : "to",
1308
1317
  column: e.column.label
1309
- }) : d("filterColumn", { column: e.column.label }), a = n === 0 ? h.value : h.end, o = (e, t = !1) => ae(n === 0 ? {
1318
+ }) : d("filterColumn", { column: e.column.label }), a = r === 0 ? h.value : h.end, o = (e, t = !1) => ae(r === 0 ? {
1310
1319
  ...h,
1311
1320
  value: e
1312
1321
  } : {
@@ -1322,29 +1331,29 @@ function $n({ column: e }) {
1322
1331
  operator: p,
1323
1332
  ...h
1324
1333
  }, "keyboard"),
1325
- label: r
1326
- }) }, n) : /* @__PURE__ */ w(Zn, {
1334
+ label: i
1335
+ }) }, r) : /* @__PURE__ */ w($n, {
1327
1336
  column: e,
1328
- counts: i === "set" ? t.countsFor(e.id) : void 0,
1329
- kind: i,
1330
- label: r,
1337
+ counts: n === "set" ? t.countsFor(e.id) : void 0,
1338
+ kind: n,
1339
+ label: i,
1331
1340
  t: d,
1332
1341
  locale: t.locale,
1333
- onChange: (e) => o(e, i !== "text" && i !== "number"),
1342
+ onChange: (e) => o(e, n !== "text" && n !== "number"),
1334
1343
  onKeyDown: se,
1335
1344
  operator: p,
1336
- placeholder: d(ie === 2 ? n === 0 ? "filterFrom" : "filterTo" : "filter"),
1345
+ placeholder: d(ie === 2 ? r === 0 ? "filterFrom" : "filterTo" : "filter"),
1337
1346
  value: a,
1338
1347
  variant: "plain"
1339
- }, n);
1348
+ }, r);
1340
1349
  })]
1341
1350
  })
1342
1351
  });
1343
1352
  }
1344
1353
  //#endregion
1345
1354
  //#region src/data-grid/data-grid-header.tsx
1346
- var er = 4;
1347
- function tr({ columnGroups: e, headerRowCount: t }) {
1355
+ var nr = 4;
1356
+ function rr({ columnGroups: e, headerRowCount: t }) {
1348
1357
  let n = D(), r = n.columnIds.length - n.resolved.length, i = e !== void 0 && e.length > 0;
1349
1358
  return /* @__PURE__ */ T("div", {
1350
1359
  "data-part": "head",
@@ -1356,7 +1365,7 @@ function tr({ columnGroups: e, headerRowCount: t }) {
1356
1365
  "data-part": "header-row",
1357
1366
  "data-part-header-row": "",
1358
1367
  role: "row",
1359
- children: N(n.mountedColumns, e, r)
1368
+ children: M(n.mountedColumns, e, r)
1360
1369
  }) : null,
1361
1370
  /* @__PURE__ */ T("div", {
1362
1371
  "aria-rowindex": i ? 2 : 1,
@@ -1365,28 +1374,28 @@ function tr({ columnGroups: e, headerRowCount: t }) {
1365
1374
  "data-row": ut,
1366
1375
  role: "row",
1367
1376
  children: [
1368
- n.columnIds.includes("__selection") ? /* @__PURE__ */ w(nr, {}) : null,
1377
+ n.columnIds.includes("__selection") ? /* @__PURE__ */ w(ir, {}) : null,
1369
1378
  n.columnIds.includes("__drag") ? /* @__PURE__ */ w("div", {
1370
- "aria-colindex": n.columnIds.indexOf(dn) + 1,
1371
- "data-column": dn,
1379
+ "aria-colindex": n.columnIds.indexOf(fn) + 1,
1380
+ "data-column": fn,
1372
1381
  "data-part": "column-header",
1373
1382
  "data-part-column-header": "",
1374
1383
  role: "columnheader",
1375
- style: { "--slotted-data-grid-column": String(n.columnIds.indexOf(dn) + 1) },
1384
+ style: { "--slotted-data-grid-column": String(n.columnIds.indexOf(fn) + 1) },
1376
1385
  tabIndex: -1,
1377
1386
  children: /* @__PURE__ */ w("span", {})
1378
1387
  }) : null,
1379
1388
  n.columnIds.includes("__expander") ? /* @__PURE__ */ w("div", {
1380
- "aria-colindex": n.columnIds.indexOf(un) + 1,
1381
- "data-column": un,
1389
+ "aria-colindex": n.columnIds.indexOf(dn) + 1,
1390
+ "data-column": dn,
1382
1391
  "data-part": "column-header",
1383
1392
  "data-part-column-header": "",
1384
1393
  role: "columnheader",
1385
- style: { "--slotted-data-grid-column": String(n.columnIds.indexOf(un) + 1) },
1394
+ style: { "--slotted-data-grid-column": String(n.columnIds.indexOf(dn) + 1) },
1386
1395
  tabIndex: -1,
1387
1396
  children: /* @__PURE__ */ w("span", {})
1388
1397
  }) : null,
1389
- n.mountedColumns.map((e) => /* @__PURE__ */ w(P, { column: e }, e.id)),
1398
+ n.mountedColumns.map((e) => /* @__PURE__ */ w(ar, { column: e }, e.id)),
1390
1399
  n.popinColumns.length > 0 ? /* @__PURE__ */ w("div", {
1391
1400
  "aria-colindex": n.popinIndex,
1392
1401
  "data-column": dt,
@@ -1406,35 +1415,35 @@ function tr({ columnGroups: e, headerRowCount: t }) {
1406
1415
  children: [
1407
1416
  n.columnIds.includes("__selection") ? /* @__PURE__ */ w("div", {
1408
1417
  "aria-colindex": 1,
1409
- "data-column": ln,
1418
+ "data-column": un,
1410
1419
  "data-part": "filter-cell",
1411
1420
  "data-part-filter-cell": "",
1412
1421
  role: "gridcell",
1413
1422
  tabIndex: -1
1414
1423
  }) : null,
1415
1424
  n.columnIds.includes("__drag") ? /* @__PURE__ */ w("div", {
1416
- "aria-colindex": n.columnIds.indexOf(dn) + 1,
1417
- "data-column": dn,
1425
+ "aria-colindex": n.columnIds.indexOf(fn) + 1,
1426
+ "data-column": fn,
1418
1427
  "data-part": "filter-cell",
1419
1428
  "data-part-filter-cell": "",
1420
1429
  role: "gridcell",
1421
1430
  tabIndex: -1
1422
1431
  }) : null,
1423
1432
  n.columnIds.includes("__expander") ? /* @__PURE__ */ w("div", {
1424
- "aria-colindex": n.columnIds.indexOf(un) + 1,
1425
- "data-column": un,
1433
+ "aria-colindex": n.columnIds.indexOf(dn) + 1,
1434
+ "data-column": dn,
1426
1435
  "data-part": "filter-cell",
1427
1436
  "data-part-filter-cell": "",
1428
1437
  role: "gridcell",
1429
1438
  tabIndex: -1
1430
1439
  }) : null,
1431
- n.mountedColumns.map((e) => /* @__PURE__ */ w($n, { column: e }, e.id))
1440
+ n.mountedColumns.map((e) => /* @__PURE__ */ w(tr, { column: e }, e.id))
1432
1441
  ]
1433
1442
  }) : null
1434
1443
  ]
1435
1444
  });
1436
1445
  }
1437
- function N(e, t, n) {
1446
+ function M(e, t, n) {
1438
1447
  let r = [], i = 0;
1439
1448
  for (; i < e.length;) {
1440
1449
  let a = e[i], o = t.find((e) => e.columns.includes(a.id)), s = 1;
@@ -1454,14 +1463,14 @@ function N(e, t, n) {
1454
1463
  }
1455
1464
  return r;
1456
1465
  }
1457
- function nr() {
1466
+ function ir() {
1458
1467
  let e = D(), t = {
1459
1468
  row: ut,
1460
- column: ln
1469
+ column: un
1461
1470
  }, n = e.current !== null && e.current.row === ut && e.current.column === "__selection", r = e.t(e.total !== null && e.total > e.selectableCount ? "selectAllPage" : "selectAllFiltered", { count: e.selectableCount });
1462
1471
  return /* @__PURE__ */ w("div", {
1463
1472
  "aria-colindex": 1,
1464
- "data-column": ln,
1473
+ "data-column": un,
1465
1474
  "data-part": "selection",
1466
1475
  "data-part-selection": "",
1467
1476
  role: "gridcell",
@@ -1480,51 +1489,51 @@ function nr() {
1480
1489
  }) : null
1481
1490
  });
1482
1491
  }
1483
- function P({ column: n }) {
1484
- let r = D(), i = {
1492
+ function ar({ column: e }) {
1493
+ let t = D(), i = {
1485
1494
  row: ut,
1486
- column: n.id
1487
- }, a = r.columnIds.indexOf(n.id) + 1, o = r.current !== null && r.current.row === ut && r.current.column === n.id, s = r.sortOf(n.id), c = r.filterOf(n.id) !== null, l = r.query.sort.length > 1, u = r.menuOpen === n.id, d = r.attachDraggable, f = S(() => void 0), p = S(null), m = y((e) => {
1495
+ column: e.id
1496
+ }, a = t.columnIds.indexOf(e.id) + 1, o = t.current !== null && t.current.row === ut && t.current.column === e.id, s = t.sortOf(e.id), c = t.filterOf(e.id) !== null, l = t.query.sort.length > 1, u = t.menuOpen === e.id, d = t.attachDraggable, f = S(() => void 0), p = S(null), m = y((e) => {
1488
1497
  p.current = e, f.current(e);
1489
1498
  }, []);
1490
- b(() => (d(p.current, n.id), () => d(null, n.id)), [d, n.id]);
1491
- let h = n.column.description, g = `${r.id}-description-${n.id}`, _ = n.column.help, ee = r.renderHeaderContent ? r.renderHeaderContent({
1492
- column: n.column,
1493
- resolved: n,
1499
+ b(() => (d(p.current, e.id), () => d(null, e.id)), [d, e.id]);
1500
+ let h = e.column.description, g = `${t.id}-description-${e.id}`, _ = e.column.help, ee = t.renderHeaderContent ? t.renderHeaderContent({
1501
+ column: e.column,
1502
+ resolved: e,
1494
1503
  sorted: s?.direction ?? null,
1495
1504
  sortIndex: s?.index ?? null,
1496
1505
  filtered: c
1497
- }) : n.column.label;
1498
- return /* @__PURE__ */ w(Qn, {
1499
- column: n,
1506
+ }) : e.column.label;
1507
+ return /* @__PURE__ */ w(er, {
1508
+ column: e,
1500
1509
  children: (d) => (f.current = d, /* @__PURE__ */ T("div", {
1501
- ...mn(n),
1510
+ ...hn(e),
1502
1511
  "aria-colindex": a,
1503
1512
  "aria-describedby": h ? g : void 0,
1504
1513
  "aria-sort": s && s.index === 1 ? s.direction : void 0,
1505
1514
  "data-part": "column-header",
1506
1515
  "data-part-column-header": "",
1507
1516
  role: "columnheader",
1508
- style: pn(n, a),
1509
- tabIndex: o || E(i, r.tabStop) ? 0 : -1,
1510
- onClick: (e) => r.onCellClick(e, i),
1511
- onContextMenu: (e) => r.onHeaderContextMenu(e, n.id),
1517
+ style: mn(e, a),
1518
+ tabIndex: o || E(i, t.tabStop) ? 0 : -1,
1519
+ onClick: (e) => t.onCellClick(e, i),
1520
+ onContextMenu: (n) => t.onHeaderContextMenu(n, e.id),
1512
1521
  onFocus: (e) => {
1513
- e.target === e.currentTarget && r.onCellFocus(i);
1522
+ e.target === e.currentTarget && t.onCellFocus(i);
1514
1523
  },
1515
- onKeyDown: (e) => r.onCellKeyDown(e, i),
1516
- onPointerDown: (e) => r.onCellPointerDown(e, i),
1524
+ onKeyDown: (e) => t.onCellKeyDown(e, i),
1525
+ onPointerDown: (e) => t.onCellPointerDown(e, i),
1517
1526
  ref: m,
1518
- ...n.sortable ? { "data-sortable": "" } : {},
1527
+ ...e.sortable ? { "data-sortable": "" } : {},
1519
1528
  ...s ? { "data-sorted": s.direction } : {},
1520
1529
  ...c ? { "data-filtered": "" } : {},
1521
1530
  ...o ? { "data-current": "" } : {},
1522
- ...r.dragging === n.id ? { "data-dragging": "" } : {},
1523
- ...r.dropTarget === n.id ? { "data-drop-target": "" } : {},
1524
- ...r.resizing === n.id ? { "data-resizing": "" } : {},
1531
+ ...t.dragging === e.id ? { "data-dragging": "" } : {},
1532
+ ...t.dropTarget === e.id ? { "data-drop-target": "" } : {},
1533
+ ...t.resizing === e.id ? { "data-resizing": "" } : {},
1525
1534
  children: [
1526
- /* @__PURE__ */ w(rr, {
1527
- label: n.column.label,
1535
+ /* @__PURE__ */ w(or, {
1536
+ label: e.column.label,
1528
1537
  children: ee
1529
1538
  }),
1530
1539
  s ? /* @__PURE__ */ w("span", {
@@ -1532,7 +1541,7 @@ function P({ column: n }) {
1532
1541
  "data-part": "sort",
1533
1542
  "data-part-sort": "",
1534
1543
  ...l ? { "data-index": String(s.index) } : {},
1535
- children: /* @__PURE__ */ w(t, { children: /* @__PURE__ */ w(e, { name: "chevron-down" }) })
1544
+ children: /* @__PURE__ */ w(r, { children: /* @__PURE__ */ w(n, { name: "chevron-down" }) })
1536
1545
  }) : null,
1537
1546
  h ? /* @__PURE__ */ w("span", {
1538
1547
  "aria-hidden": "true",
@@ -1545,28 +1554,28 @@ function P({ column: n }) {
1545
1554
  "data-part": "column-actions",
1546
1555
  "data-part-column-actions": "",
1547
1556
  children: [
1548
- h || _ !== void 0 ? /* @__PURE__ */ w(ir, {
1549
- column: n,
1557
+ h || _ !== void 0 ? /* @__PURE__ */ w(sr, {
1558
+ column: e,
1550
1559
  description: h,
1551
1560
  help: _
1552
1561
  }) : null,
1553
- n.filterable ? /* @__PURE__ */ w(ar, {
1554
- column: n,
1562
+ e.filterable ? /* @__PURE__ */ w(cr, {
1563
+ column: e,
1555
1564
  filtered: c
1556
1565
  }) : null,
1557
- /* @__PURE__ */ w(or, {
1558
- column: n,
1566
+ /* @__PURE__ */ w(lr, {
1567
+ column: e,
1559
1568
  descriptionId: h ? g : void 0,
1560
1569
  open: u
1561
1570
  })
1562
1571
  ]
1563
1572
  }),
1564
- n.resizable ? /* @__PURE__ */ w(sr, { column: n }) : null
1573
+ e.resizable ? /* @__PURE__ */ w(ur, { column: e }) : null
1565
1574
  ]
1566
1575
  }))
1567
1576
  });
1568
1577
  }
1569
- function rr({ children: e, label: t }) {
1578
+ function or({ children: e, label: t }) {
1570
1579
  return /* @__PURE__ */ T(u, {
1571
1580
  describes: "none",
1572
1581
  openOn: "hover",
@@ -1578,127 +1587,127 @@ function rr({ children: e, label: t }) {
1578
1587
  }), /* @__PURE__ */ w(p, { children: /* @__PURE__ */ w(f, { children: t }) })]
1579
1588
  });
1580
1589
  }
1581
- function ir({ column: n, description: r, help: i }) {
1582
- let a = D().t("columnHelp", { column: n.column.label });
1590
+ function sr({ column: e, description: t, help: i }) {
1591
+ let a = D().t("columnHelp", { column: e.column.label });
1583
1592
  return /* @__PURE__ */ T(te, {
1584
1593
  align: "start",
1585
1594
  side: "bottom",
1586
1595
  size: "sm",
1587
- children: [/* @__PURE__ */ w(ee, { render: (n) => /* @__PURE__ */ w("button", {
1588
- ...Me(n, "part", "column-help"),
1596
+ children: [/* @__PURE__ */ w(ee, { render: (e) => /* @__PURE__ */ w("button", {
1597
+ ...Me(e, "part", "column-help"),
1589
1598
  "aria-label": a,
1590
- onClick: (e) => {
1591
- e.stopPropagation(), n.onClick?.(e);
1599
+ onClick: (t) => {
1600
+ t.stopPropagation(), e.onClick?.(t);
1592
1601
  },
1593
1602
  onPointerDown: (e) => e.stopPropagation(),
1594
1603
  tabIndex: -1,
1595
1604
  type: "button",
1596
- children: /* @__PURE__ */ w(t, { children: /* @__PURE__ */ w(e, { name: "circle-question" }) })
1605
+ children: /* @__PURE__ */ w(r, { children: /* @__PURE__ */ w(n, { name: "circle-question" }) })
1597
1606
  }) }), /* @__PURE__ */ w(ne, { children: /* @__PURE__ */ w(_, {
1598
1607
  "aria-label": a,
1599
- children: /* @__PURE__ */ T(re, { children: [r ? /* @__PURE__ */ w("div", { children: r }) : null, i] })
1608
+ children: /* @__PURE__ */ T(re, { children: [t ? /* @__PURE__ */ w("div", { children: t }) : null, i] })
1600
1609
  }) })]
1601
1610
  });
1602
1611
  }
1603
- function ar({ column: n, filtered: r }) {
1604
- let i = D(), a = i.filterOpen === n.id;
1605
- return !r && !a ? null : /* @__PURE__ */ w("button", {
1612
+ function cr({ column: e, filtered: t }) {
1613
+ let i = D(), a = i.filterOpen === e.id;
1614
+ return !t && !a ? null : /* @__PURE__ */ w("button", {
1606
1615
  "aria-expanded": a,
1607
1616
  "aria-haspopup": "dialog",
1608
- "aria-label": i.t("filterColumn", { column: n.column.label }),
1617
+ "aria-label": i.t("filterColumn", { column: e.column.label }),
1609
1618
  "data-part": "filter",
1610
1619
  "data-part-filter": "",
1611
- onClick: (e) => {
1612
- e.stopPropagation(), i.setFilterOpen(a ? null : n.id);
1620
+ onClick: (t) => {
1621
+ t.stopPropagation(), i.setFilterOpen(a ? null : e.id);
1613
1622
  },
1614
1623
  onPointerDown: (e) => e.stopPropagation(),
1615
1624
  tabIndex: -1,
1616
1625
  type: "button",
1617
- ...r ? { "data-filtered": "" } : {},
1626
+ ...t ? { "data-filtered": "" } : {},
1618
1627
  ...a ? { "data-open": "" } : {},
1619
- children: /* @__PURE__ */ w(t, { children: /* @__PURE__ */ w(e, { name: "funnel" }) })
1628
+ children: /* @__PURE__ */ w(r, { children: /* @__PURE__ */ w(n, { name: "funnel" }) })
1620
1629
  });
1621
1630
  }
1622
- function or({ column: s, descriptionId: c, open: l }) {
1623
- let u = D(), d = u.t, f = u.sortOf(s.id), p = s.column.label, m = u.menuAnchor !== null && u.menuAnchor.column === s.id;
1624
- return /* @__PURE__ */ T(n, {
1631
+ function lr({ column: e, descriptionId: t, open: l }) {
1632
+ let u = D(), d = u.t, f = u.sortOf(e.id), p = e.column.label, m = u.menuAnchor !== null && u.menuAnchor.column === e.id;
1633
+ return /* @__PURE__ */ T(i, {
1625
1634
  anchor: m ? u.menuAnchor.anchor : null,
1626
1635
  finalFocus: m ? u.menuAnchor.returnTo : void 0,
1627
- onOpenChange: (e) => u.setMenuOpen(e ? s.id : null),
1636
+ onOpenChange: (t) => u.setMenuOpen(t ? e.id : null),
1628
1637
  open: l,
1629
- sideOffset: er,
1638
+ sideOffset: nr,
1630
1639
  size: "sm",
1631
- children: [/* @__PURE__ */ w(a, { render: (n) => /* @__PURE__ */ w("button", {
1632
- ...Me(n, "part", "column-menu"),
1640
+ children: [/* @__PURE__ */ w(s, { render: (e) => /* @__PURE__ */ w("button", {
1641
+ ...Me(e, "part", "column-menu"),
1633
1642
  "aria-label": d("columnMenu", { column: p }),
1634
- onPointerDown: (e) => {
1635
- e.stopPropagation(), n.onPointerDown?.(e);
1643
+ onPointerDown: (t) => {
1644
+ t.stopPropagation(), e.onPointerDown?.(t);
1636
1645
  },
1637
- onClick: (e) => {
1638
- e.stopPropagation(), u.anchorToButton(), n.onClick?.(e);
1646
+ onClick: (t) => {
1647
+ t.stopPropagation(), u.anchorToButton(), e.onClick?.(t);
1639
1648
  },
1640
1649
  tabIndex: -1,
1641
1650
  type: "button",
1642
1651
  ...l ? { "data-open": "" } : {},
1643
- children: /* @__PURE__ */ w(t, { children: /* @__PURE__ */ w(e, { name: "ellipsis" }) })
1644
- }) }), /* @__PURE__ */ T(o, {
1645
- "aria-describedby": c,
1652
+ children: /* @__PURE__ */ w(r, { children: /* @__PURE__ */ w(n, { name: "ellipsis" }) })
1653
+ }) }), /* @__PURE__ */ T(c, {
1654
+ "aria-describedby": t,
1646
1655
  children: [
1647
- s.column.description ? /* @__PURE__ */ w("div", {
1656
+ e.column.description ? /* @__PURE__ */ w("div", {
1648
1657
  "aria-hidden": !0,
1649
1658
  "data-part": "column-menu-description",
1650
1659
  "data-part-column-menu-description": "",
1651
- children: s.column.description
1660
+ children: e.column.description
1652
1661
  }) : null,
1653
- s.sortable ? /* @__PURE__ */ T(He, { children: [
1654
- /* @__PURE__ */ w(r, {
1662
+ e.sortable ? /* @__PURE__ */ T(He, { children: [
1663
+ /* @__PURE__ */ w(a, {
1655
1664
  disabled: f?.direction === "ascending" && f.index === 1 && u.query.sort.length === 1,
1656
- onSelect: (e) => u.setSort(s.id, "ascending", e),
1665
+ onSelect: (t) => u.setSort(e.id, "ascending", t),
1657
1666
  children: d("sortAscendingAction")
1658
1667
  }),
1659
- /* @__PURE__ */ w(r, {
1668
+ /* @__PURE__ */ w(a, {
1660
1669
  disabled: f?.direction === "descending" && f.index === 1 && u.query.sort.length === 1,
1661
- onSelect: (e) => u.setSort(s.id, "descending", e),
1670
+ onSelect: (t) => u.setSort(e.id, "descending", t),
1662
1671
  children: d("sortDescendingAction")
1663
1672
  }),
1664
- /* @__PURE__ */ w(r, {
1673
+ /* @__PURE__ */ w(a, {
1665
1674
  disabled: f === null,
1666
- onSelect: (e) => u.setSort(s.id, null, e),
1675
+ onSelect: (t) => u.setSort(e.id, null, t),
1667
1676
  children: d("sortClearAction")
1668
1677
  }),
1669
- /* @__PURE__ */ w(i, {})
1678
+ /* @__PURE__ */ w(o, {})
1670
1679
  ] }) : null,
1671
- s.filterable ? /* @__PURE__ */ w(r, {
1672
- onSelect: () => u.setFilterOpen(s.id),
1680
+ e.filterable ? /* @__PURE__ */ w(a, {
1681
+ onSelect: () => u.setFilterOpen(e.id),
1673
1682
  children: d("filterMenu")
1674
1683
  }) : null,
1675
- /* @__PURE__ */ w(r, {
1676
- disabled: s.pinned === "start",
1677
- onSelect: (e) => u.pin(s.id, "start", e),
1684
+ /* @__PURE__ */ w(a, {
1685
+ disabled: e.pinned === "start",
1686
+ onSelect: (t) => u.pin(e.id, "start", t),
1678
1687
  children: d("pinStart")
1679
1688
  }),
1680
- /* @__PURE__ */ w(r, {
1681
- disabled: s.pinned === "end",
1682
- onSelect: (e) => u.pin(s.id, "end", e),
1689
+ /* @__PURE__ */ w(a, {
1690
+ disabled: e.pinned === "end",
1691
+ onSelect: (t) => u.pin(e.id, "end", t),
1683
1692
  children: d("pinEnd")
1684
1693
  }),
1685
- s.pinned ? /* @__PURE__ */ w(r, {
1686
- onSelect: (e) => u.pin(s.id, null, e),
1694
+ e.pinned ? /* @__PURE__ */ w(a, {
1695
+ onSelect: (t) => u.pin(e.id, null, t),
1687
1696
  children: d("unpin")
1688
1697
  }) : null,
1689
- /* @__PURE__ */ w(i, {}),
1690
- s.resizable ? /* @__PURE__ */ T(He, { children: [/* @__PURE__ */ w(r, {
1691
- onSelect: (e) => u.autofit(s.id, e.reason, e),
1698
+ /* @__PURE__ */ w(o, {}),
1699
+ e.resizable ? /* @__PURE__ */ T(He, { children: [/* @__PURE__ */ w(a, {
1700
+ onSelect: (t) => u.autofit(e.id, t.reason, t),
1692
1701
  children: d("autofit")
1693
- }), /* @__PURE__ */ w(r, {
1702
+ }), /* @__PURE__ */ w(a, {
1694
1703
  onSelect: (e) => u.autofit(null, e.reason, e),
1695
1704
  children: d("autofitAll")
1696
1705
  })] }) : null,
1697
- s.hideable ? /* @__PURE__ */ w(r, {
1698
- onSelect: (e) => u.hide(s.id, e, e.reason),
1706
+ e.hideable ? /* @__PURE__ */ w(a, {
1707
+ onSelect: (t) => u.hide(e.id, t, t.reason),
1699
1708
  children: d("hide")
1700
1709
  }) : null,
1701
- u.onManageColumns ? /* @__PURE__ */ w(r, {
1710
+ u.onManageColumns ? /* @__PURE__ */ w(a, {
1702
1711
  onSelect: () => u.onManageColumns?.(),
1703
1712
  children: d("manageColumns")
1704
1713
  }) : null
@@ -1706,35 +1715,47 @@ function or({ column: s, descriptionId: c, open: l }) {
1706
1715
  })]
1707
1716
  });
1708
1717
  }
1709
- function sr({ column: e }) {
1718
+ function ur({ column: e }) {
1710
1719
  let t = D(), [n, r] = C(null), i = S(n);
1711
- i.current = n, b(() => {
1720
+ i.current = n;
1721
+ let a = S(null), o = S(null), s = t.resizeMode === "deferred";
1722
+ b(() => {
1712
1723
  if (!n) return;
1713
1724
  let i = (i) => {
1714
- i.key === "Escape" && (i.preventDefault(), i.stopPropagation(), t.resizeTo(e.id, n.startWidth, "pointer"), r(null), t.setResizing(null));
1725
+ i.key === "Escape" && (i.preventDefault(), i.stopPropagation(), s || t.resizeTo(e.id, n.startWidth, "pointer"), o.current = null, r(null), t.setResizing(null));
1715
1726
  };
1716
1727
  return document.addEventListener("keydown", i, !0), () => document.removeEventListener("keydown", i, !0);
1717
1728
  }, [
1718
1729
  n,
1719
1730
  t,
1720
- e.id
1731
+ e.id,
1732
+ s
1721
1733
  ]);
1722
- let a = (n) => {
1734
+ let c = (n) => {
1723
1735
  if (n.button !== 0) return;
1724
1736
  n.preventDefault(), n.stopPropagation(), n.currentTarget.setPointerCapture(n.pointerId);
1725
- let i = getComputedStyle(n.currentTarget).direction === "rtl", a = n.currentTarget.closest("[data-part=\"column-header\"]");
1726
- r({
1737
+ let i = getComputedStyle(n.currentTarget).direction === "rtl", a = n.currentTarget.closest("[data-part=\"column-header\"]"), s = n.currentTarget.closest("[data-part=\"scroll\"]");
1738
+ o.current = null, r({
1727
1739
  startX: n.clientX,
1728
1740
  startWidth: a ? Math.round(a.getBoundingClientRect().width) : e.width,
1729
- rtl: i
1741
+ rtl: i,
1742
+ span: s?.clientHeight ?? 0
1730
1743
  }), t.setResizing(e.id);
1731
- }, o = (n) => {
1744
+ }, l = (n) => {
1732
1745
  let r = i.current;
1733
1746
  if (!r) return;
1734
- let a = (n.clientX - r.startX) * (r.rtl ? -1 : 1);
1735
- t.resizeTo(e.id, r.startWidth + a, "pointer", n);
1736
- }, s = (e) => {
1737
- i.current && (e.currentTarget.releasePointerCapture(e.pointerId), r(null), t.setResizing(null));
1747
+ let c = (n.clientX - r.startX) * (r.rtl ? -1 : 1);
1748
+ if (!s) {
1749
+ t.resizeTo(e.id, r.startWidth + c, "pointer", n);
1750
+ return;
1751
+ }
1752
+ let l = _t(e.column, r.startWidth + c);
1753
+ o.current = l, a.current?.style.setProperty("translate", `${String((l - r.startWidth) * (r.rtl ? -1 : 1))}px 0`);
1754
+ }, u = (n) => {
1755
+ if (!i.current) return;
1756
+ n.currentTarget.releasePointerCapture(n.pointerId);
1757
+ let a = o.current;
1758
+ o.current = null, r(null), t.setResizing(null), s && a !== null && n.type === "pointerup" && t.resizeTo(e.id, a, "pointer", n);
1738
1759
  };
1739
1760
  return /* @__PURE__ */ w("div", {
1740
1761
  "aria-hidden": !0,
@@ -1744,17 +1765,24 @@ function sr({ column: e }) {
1744
1765
  onDoubleClick: (n) => {
1745
1766
  n.stopPropagation(), t.autofit(n.shiftKey ? null : e.id, "pointer", n);
1746
1767
  },
1747
- onPointerCancel: s,
1748
- onPointerDown: a,
1749
- onPointerMove: o,
1750
- onPointerUp: s,
1768
+ onPointerCancel: u,
1769
+ onPointerDown: c,
1770
+ onPointerMove: l,
1771
+ onPointerUp: u,
1751
1772
  title: t.t("resize"),
1752
- ...n ? { "data-resizing": "" } : {}
1773
+ ...n ? { "data-resizing": "" } : {},
1774
+ children: s && n ? /* @__PURE__ */ w("div", {
1775
+ "aria-hidden": !0,
1776
+ "data-part": "resize-guide",
1777
+ "data-part-resize-guide": "",
1778
+ ref: a,
1779
+ style: { blockSize: n.span }
1780
+ }) : null
1753
1781
  });
1754
1782
  }
1755
1783
  //#endregion
1756
1784
  //#region src/data-grid/use-model.ts
1757
- function cr(e, t, n, r = Object.is) {
1785
+ function dr(e, t, n, r = Object.is) {
1758
1786
  let [i, a] = C(t), o = e === void 0 ? i : e, s = S({
1759
1787
  controlled: e,
1760
1788
  value: o,
@@ -1778,31 +1806,37 @@ function cr(e, t, n, r = Object.is) {
1778
1806
  }
1779
1807
  //#endregion
1780
1808
  //#region src/data-grid/data-grid.tsx
1781
- var lr = 34, ur = 100, dr = 20, fr = 600, pr = 400, mr = {
1809
+ var fr = 34, pr = 100, mr = 20, hr = 600, gr = 400, _r = {
1782
1810
  popin: [],
1783
1811
  hidden: []
1784
- }, hr = "input, textarea, select, [contenteditable]:not([contenteditable=\"false\"])", gr = 300, _r = 500;
1785
- function vr(e, t) {
1812
+ }, vr = "input, textarea, select, [contenteditable]:not([contenteditable=\"false\"])", yr = 300, br = 500;
1813
+ function xr(e) {
1814
+ let t = S(e);
1815
+ t.current = e;
1816
+ let n = e !== void 0;
1817
+ return x(() => n ? (...e) => t.current(...e) : void 0, [n]);
1818
+ }
1819
+ function Sr(e, t) {
1786
1820
  let n = new DOMRect(e, t, 0, 0);
1787
1821
  return { getBoundingClientRect: () => n };
1788
1822
  }
1789
- function yr(e, t) {
1823
+ function Cr(e, t) {
1790
1824
  return JSON.stringify(e) === JSON.stringify(t);
1791
1825
  }
1792
- function br(e, t) {
1826
+ function wr(e, t) {
1793
1827
  return JSON.stringify(e) === JSON.stringify(t);
1794
1828
  }
1795
- function xr(e, t) {
1829
+ function Tr(e, t) {
1796
1830
  return e === "all" || t === "all" ? e === t : e.length === t.length && e.every((e, n) => e === t[n]);
1797
1831
  }
1798
- function Sr(e, t) {
1832
+ function Er(e, t) {
1799
1833
  return !e || !t ? e === t : E(e.anchor, t.anchor) && E(e.focus, t.focus);
1800
1834
  }
1801
- function Cr(e, t) {
1802
- return Array.isArray(e) && Array.isArray(t) ? xr(e, t) : e === t;
1835
+ function Dr(e, t) {
1836
+ return Array.isArray(e) && Array.isArray(t) ? Tr(e, t) : e === t;
1803
1837
  }
1804
- var wr = [];
1805
- function Tr(e) {
1838
+ var Or = [];
1839
+ function kr(e) {
1806
1840
  let t = getComputedStyle(e), n = e.offsetWidth - e.clientWidth + parseFloat(t.paddingInlineStart) + parseFloat(t.paddingInlineEnd), r = parseFloat(t.columnGap) || 0, i = 0, a = 0;
1807
1841
  for (let t of e.children) if (t instanceof HTMLElement && getComputedStyle(t).display !== "none" && t.dataset.part !== "column-description") {
1808
1842
  if (a += 1, a === 1 && t.dataset.ui === void 0) {
@@ -1812,69 +1846,87 @@ function Tr(e) {
1812
1846
  }
1813
1847
  return i + Math.max(0, a - 1) * r + n;
1814
1848
  }
1815
- function Er({ activatable: e, cellRenderers: t, columnGroups: n, columnOverflow: r, dataSource: i, columnState: a, columns: o, current: u, density: d, defaultColumnState: f, defaultCurrent: p, defaultExpanded: m, defaultExpandedGroups: h, defaultQuery: g, defaultRange: _, defaultValue: ee, disabledKeys: te, editMode: ne, editorRenderers: re, error: ie, expandable: v, expanded: ue, expandedGroups: de, filterDebounce: fe, filterRow: pe, footer: me, handle: he, hasMore: ge, height: _e, highlightChanges: ve, labelledBy: ye, loadMoreThreshold: be, loadMoreTrigger: xe, loadMoreFailed: Se, loading: Ce, locale: we, messages: Te, mode: Ee, onActivate: De, onColumnStateChange: Oe, onCurrentChange: ke, onEditCancel: Ae, onEditCommit: je, onEditStart: Me, onExpandedChange: Ne, onExpandedGroupsChange: Pe, onLoadChildren: Fe, onRowsReorder: Ie, onKeyDown: Le, onLoadMore: Ve, onManageColumns: He, onOutOfSpaceChange: Je, onQueryChange: Ye, onRangeChange: Xe, onRetry: Ze, onValueChange: Qe, overscan: $e, pinnedRows: et, pageSizes: tt, query: nt, range: bt, ref: Et, renderCell: Pt, renderDetail: Ft, renderEditor: Yt, renderEmpty: Xt, renderFilterOperand: Zt, renderGroup: Qt, renderHeader: $t, rowHeight: en, rowKey: tn, rowsReorderable: nn, rows: an, selectionMode: on, showRange: sn, skeletonRows: pn, stickyHeader: mn, stickyTo: D, striped: vn, style: yn, timeZone: xn, totalCount: Sn, tree: O, value: wn, variant: On, virtualize: kn, ...An }) {
1816
- let k = Ln(), jn = Re(), A = S(null), Mn = S(null), j = c(We, Te), Fn = c(Ge), In = s(), Rn = On ?? k.variant ?? "ruled", zn = vn ?? k.striped ?? !1, Hn = mn ?? k.stickyHeader ?? !0, Un = D ?? k.stickyTo ?? "scroll", M = on ?? k.selectionMode ?? "none", Gn = ne ?? k.editMode ?? "cell", Kn = pe ?? k.filterRow ?? !1, qn = kn ?? k.virtualize ?? "auto", Jn = en ?? k.rowHeight, Yn = r ?? k.columnOverflow ?? "auto", Xn = $e ?? k.overscan ?? 6, Zn = fe ?? k.filterDebounce ?? 300, Qn = be ?? k.loadMoreThreshold ?? 20, $n = xe ?? k.loadMoreTrigger ?? "scroll", er = pn ?? k.skeletonRows ?? 8, N = we ?? In, nr = e ?? !1, P = y((e) => typeof tn == "function" ? tn(e) : String(e[tn]), [tn]), rr = j("filterYes"), ir = j("filterNo"), ar = x(() => ({
1849
+ function Ar({ activatable: n, cellRenderers: r, columnGroups: i, columnOverflow: a, dataSource: o, columnState: s, columns: c, current: u, density: d, defaultColumnState: f, defaultCurrent: p, defaultExpanded: m, defaultExpandedGroups: h, defaultQuery: g, defaultRange: _, defaultValue: ee, disabledKeys: te, editMode: ne, editorRenderers: re, error: ie, expandable: v, expanded: ue, expandedGroups: de, filterDebounce: fe, filterRow: pe, footer: me, handle: he, hasMore: ge, height: _e, highlightChanges: ve, labelledBy: ye, loadMoreThreshold: be, loadMoreTrigger: xe, loadMoreFailed: Se, loading: Ce, locale: we, messages: Te, mode: Ee, onActivate: De, onColumnStateChange: Oe, onCurrentChange: ke, onEditCancel: Ae, onEditCommit: je, onEditStart: Me, onExpandedChange: Ne, onExpandedGroupsChange: Pe, onLoadChildren: Fe, onRowsReorder: Ie, onKeyDown: Le, onLoadMore: Ve, onManageColumns: He, onOutOfSpaceChange: Je, onQueryChange: Ye, onRangeChange: Xe, onRetry: Ze, onValueChange: Qe, overscan: $e, pinnedRows: et, pageSizes: tt, query: nt, range: _t, ref: xt, resizeMode: Dt, renderCell: Ft, renderDetail: It, renderEditor: Xt, renderEmpty: Zt, renderFilterOperand: Qt, renderGroup: $t, renderHeader: en, rowHeight: tn, rowKey: nn, rowsReorderable: rn, rows: on, selectionMode: sn, showRange: cn, skeletonRows: mn, stickyHeader: hn, stickyTo: D, striped: yn, style: bn, timeZone: Sn, totalCount: Cn, tree: wn, value: En, variant: An, virtualize: jn, ...Mn }) {
1850
+ let O = Bn(), Nn = Re(), k = S(null), Pn = S(null), Fn = S({
1851
+ cellRenderers: r,
1852
+ editorRenderers: re,
1853
+ tree: wn
1854
+ });
1855
+ Fn.current = {
1856
+ cellRenderers: r,
1857
+ editorRenderers: re,
1858
+ tree: wn
1859
+ };
1860
+ let Rn = xr(Ft), zn = xr(It), Vn = xr(Xt), Hn = xr($t), Gn = xr(en), Kn = r ? Object.keys(r).join() : null, qn = re ? Object.keys(re).join() : null, Yn = wn?.column, Xn = wn?.hasChildren !== void 0, A = x(() => wn === void 0 ? void 0 : {
1861
+ column: Yn,
1862
+ parentKey: (e) => Fn.current.tree.parentKey(e),
1863
+ hasChildren: Xn ? (e) => Fn.current.tree.hasChildren?.(e) === !0 : void 0
1864
+ }, [
1865
+ wn === void 0,
1866
+ Yn,
1867
+ Xn
1868
+ ]), j = t(We, Te), Zn = t(Ge), Qn = e(), $n = An ?? O.variant ?? "ruled", er = yn ?? O.striped ?? !1, tr = hn ?? O.stickyHeader ?? !0, nr = D ?? O.stickyTo ?? "scroll", M = sn ?? O.selectionMode ?? "none", ir = ne ?? O.editMode ?? "cell", ar = pe ?? O.filterRow ?? !1, or = jn ?? O.virtualize ?? "auto", sr = tn ?? O.rowHeight, cr = a ?? O.columnOverflow ?? "auto", lr = $e ?? O.overscan ?? 6, ur = fe ?? O.filterDebounce ?? 300, Ar = be ?? O.loadMoreThreshold ?? 20, Nr = xe ?? O.loadMoreTrigger ?? "scroll", Pr = Dt ?? O.resizeMode ?? "live", Fr = mn ?? O.skeletonRows ?? 8, N = we ?? Qn, Ir = n ?? !1, P = y((e) => typeof nn == "function" ? nn(e) : String(e[nn]), [nn]), Lr = j("filterYes"), Rr = j("filterNo"), zr = x(() => ({
1817
1869
  locale: N,
1818
- timeZone: xn,
1870
+ timeZone: Sn,
1819
1871
  booleans: {
1820
- true: rr,
1821
- false: ir
1872
+ true: Lr,
1873
+ false: Rr
1822
1874
  }
1823
1875
  }), [
1824
1876
  N,
1825
- xn,
1826
- rr,
1827
- ir
1828
- ]), or = y((e, t) => ht(e, t, ar), [ar]), sr = x(() => new Set(te ?? []), [te]), Er = y((e) => sr.has(e), [sr]), F = y((e, t) => {
1829
- if (sr.has(P(t))) return !1;
1877
+ Sn,
1878
+ Lr,
1879
+ Rr
1880
+ ]), Br = y((e, t) => ht(e, t, zr), [zr]), Vr = x(() => new Set(te ?? []), [te]), Hr = y((e) => Vr.has(e), [Vr]), F = y((e, t) => {
1881
+ if (Vr.has(P(t))) return !1;
1830
1882
  let n = e.editable;
1831
1883
  return typeof n == "function" ? n(t) : n === !0;
1832
- }, [sr, P]), kr = x(() => o.some((e) => e.editable), [o]), Ar = y((e) => Ft ? v === void 0 ? !0 : typeof v == "function" ? v(e) : v : !1, [v, Ft]), [I, jr] = cr(nt, g ?? xt(), Ye, yr), Mr = Bn(i, I), L = i ? Mr.rows : an ?? wr, Nr = i ? Mr.total : Sn, Pr = i ? Mr.hasMore : ge, Fr = i ? Mr.loading : Ce, Ir = Fr !== void 0 && Fr !== !1, Lr = i ? Mr.error : ie, Rr = i ? Mr.retry : Ze, zr = Ee ?? (i || Nr !== void 0 || Pr !== void 0 ? "server" : "client"), Br = x(() => Tt(a ?? f, o), [a, o]), [Vr, Hr] = cr(a === void 0 ? void 0 : Br, Br, Oe, br), R = x(() => Tt(Vr, o), [Vr, o]), [Ur, Wr] = cr(wn, ee ?? (M === "multiple" ? [] : null), Qe, Cr), [Gr, Kr] = cr(bt, _ ?? null, Xe, Sr), [z, qr] = cr(u, p ?? null, ke, E), [Jr, Yr] = cr(ue, m ?? [], Ne, xr), [Xr, Zr] = cr(de, h ?? "all", Pe, xr), Qr = M === "single" || M === "multiple", $r = nn === !0, ei = Ft !== void 0, ti = x(() => {
1884
+ }, [Vr, P]), Ur = x(() => c.some((e) => e.editable), [c]), Wr = y((e) => zn ? v === void 0 ? !0 : typeof v == "function" ? v(e) : v : !1, [v, zn]), [I, Gr] = dr(nt, g ?? St(), Ye, Cr), Kr = Un(o, I), L = o ? Kr.rows : on ?? Or, qr = o ? Kr.total : Cn, Jr = o ? Kr.hasMore : ge, Yr = o ? Kr.loading : Ce, Xr = Yr !== void 0 && Yr !== !1, Zr = o ? Kr.error : ie, Qr = o ? Kr.retry : Ze, $r = Ee ?? (o || qr !== void 0 || Jr !== void 0 ? "server" : "client"), ei = x(() => Et(s ?? f, c), [s, c]), [ti, ni] = dr(s === void 0 ? void 0 : ei, ei, Oe, wr), R = x(() => Et(ti, c), [ti, c]), [ri, ii] = dr(En, ee ?? (M === "multiple" ? [] : null), Qe, Dr), [ai, oi] = dr(_t, _ ?? null, Xe, Er), [z, si] = dr(u, p ?? null, ke, E), [ci, li] = dr(ue, m ?? [], Ne, Tr), [ui, di] = dr(de, h ?? "all", Pe, Tr), fi = M === "single" || M === "multiple", pi = rn === !0, mi = zn !== void 0, hi = x(() => {
1833
1885
  let e = [];
1834
- return Qr && e.push(48), $r && e.push(40), ei && e.push(40), e;
1886
+ return fi && e.push(48), pi && e.push(40), mi && e.push(40), e;
1835
1887
  }, [
1836
- Qr,
1837
- $r,
1838
- ei
1839
- ]), ni = ti.reduce((e, t) => e + t, 0), ri = x(() => Mt(o, R, { leading: ni }), [
1840
- o,
1888
+ fi,
1889
+ pi,
1890
+ mi
1891
+ ]), gi = hi.reduce((e, t) => e + t, 0), _i = x(() => Nt(c, R, { leading: gi }), [
1892
+ c,
1841
1893
  R,
1842
- ni
1843
- ]), [ii, ai] = C(0), [oi, si] = C(!1);
1894
+ gi
1895
+ ]), [vi, yi] = C(0), [bi, xi] = C(!1);
1844
1896
  b(() => {
1845
1897
  if (typeof window > "u" || typeof window.matchMedia != "function") return;
1846
- let e = window.matchMedia("(pointer: coarse)"), t = () => si(e.matches);
1898
+ let e = window.matchMedia("(pointer: coarse)"), t = () => xi(e.matches);
1847
1899
  return t(), e.addEventListener("change", t), () => e.removeEventListener("change", t);
1848
1900
  }, []);
1849
- let ci = ii <= 0 || jt(Yn, ii, oi) === "scroll" ? mr : yt(ri, ii, { leading: ni }), li = `${ci.popin.join("\0")}\u0001${ci.hidden.join("\0")}`, B = x(() => ci, [li]), V = x(() => B.popin.length === 0 && B.hidden.length === 0 ? ri : Mt(o, {
1901
+ let Si = vi <= 0 || Mt(cr, vi, bi) === "scroll" ? _r : bt(_i, vi, { leading: gi }), Ci = `${Si.popin.join("\0")}\u0001${Si.hidden.join("\0")}`, B = x(() => Si, [Ci]), V = x(() => B.popin.length === 0 && B.hidden.length === 0 ? _i : Nt(c, {
1850
1902
  ...R,
1851
1903
  hidden: [
1852
1904
  ...R.hidden,
1853
1905
  ...B.popin,
1854
1906
  ...B.hidden
1855
1907
  ]
1856
- }, { leading: ni }), [
1857
- ri,
1908
+ }, { leading: gi }), [
1909
+ _i,
1858
1910
  B,
1859
- o,
1911
+ c,
1860
1912
  R,
1861
- ni
1862
- ]), ui = x(() => B.popin.length === 0 ? [] : ri.filter((e) => B.popin.includes(e.id)), [ri, B]), di = ui.length > 0, fi = S(mr);
1913
+ gi
1914
+ ]), wi = x(() => B.popin.length === 0 ? [] : _i.filter((e) => B.popin.includes(e.id)), [_i, B]), Ti = wi.length > 0, Ei = S(_r);
1863
1915
  b(() => {
1864
- let e = fi.current;
1865
- xr(B.popin, e.popin) && xr(B.hidden, e.hidden) || (fi.current = B, Je?.(B));
1916
+ let e = Ei.current;
1917
+ Tr(B.popin, e.popin) && Tr(B.hidden, e.hidden) || (Ei.current = B, Je?.(B));
1866
1918
  }, [B, Je]);
1867
1919
  let H = x(() => new Map(V.map((e) => [e.id, e])), [V]), U = x(() => [
1868
- ...Qr ? [ln] : [],
1869
- ...$r ? [dn] : [],
1870
- ...ei ? [un] : [],
1920
+ ...fi ? [un] : [],
1921
+ ...pi ? [fn] : [],
1922
+ ...mi ? [dn] : [],
1871
1923
  ...V.map((e) => e.id)
1872
1924
  ], [
1873
- Qr,
1874
- $r,
1875
- ei,
1925
+ fi,
1926
+ pi,
1927
+ mi,
1876
1928
  V
1877
- ]), pi = U.length + +!!di, mi = U.length + 1, hi = x(() => di ? [...U, dt] : U, [di, U]), gi = x(() => vt(V, ti), [V, ti]), W = x(() => {
1929
+ ]), Di = U.length + +!!Ti, Oi = U.length + 1, ki = x(() => Ti ? [...U, dt] : U, [Ti, U]), Ai = x(() => yt(V, hi), [V, hi]), W = x(() => {
1878
1930
  let e = et?.top ?? [], t = et?.bottom ?? [];
1879
1931
  if (e.length === 0 && t.length === 0) return {
1880
1932
  top: [],
@@ -1906,80 +1958,80 @@ function Er({ activatable: e, cellRenderers: t, columnGroups: n, columnOverflow:
1906
1958
  et,
1907
1959
  L,
1908
1960
  P
1909
- ]), _i = x(() => W.keys ? L.filter((e) => !W.keys.has(P(e))) : L, [
1961
+ ]), ji = x(() => W.keys ? L.filter((e) => !W.keys.has(P(e))) : L, [
1910
1962
  L,
1911
1963
  W.keys,
1912
1964
  P
1913
- ]), vi = x(() => {
1914
- let e = _i;
1915
- if (zr === "server") return {
1916
- nodes: St(e, o, I.group, {
1965
+ ]), Mi = x(() => {
1966
+ let e = ji;
1967
+ if ($r === "server") return {
1968
+ nodes: Ct(e, c, I.group, {
1917
1969
  rowKey: P,
1918
- expandedGroups: Xr,
1970
+ expandedGroups: ui,
1919
1971
  offset: I.page && "index" in I.page ? I.page.index * I.page.size : 0,
1920
1972
  locale: N,
1921
- timeZone: xn,
1922
- booleans: ar.booleans
1973
+ timeZone: Sn,
1974
+ booleans: zr.booleans
1923
1975
  }),
1924
1976
  rows: e,
1925
- total: Nr ?? null,
1926
- hasMore: Pr ?? !1,
1977
+ total: qr ?? null,
1978
+ hasMore: Jr ?? !1,
1927
1979
  aggregates: {}
1928
1980
  };
1929
- let t = mt(e, o, I, {
1981
+ let t = mt(e, c, I, {
1930
1982
  rowKey: P,
1931
- expandedGroups: Xr,
1932
- tree: O,
1933
- expanded: O ? Jr : void 0,
1983
+ expandedGroups: ui,
1984
+ tree: A,
1985
+ expanded: A ? ci : void 0,
1934
1986
  locale: N,
1935
- timeZone: xn,
1936
- booleans: ar.booleans
1987
+ timeZone: Sn,
1988
+ booleans: zr.booleans
1937
1989
  });
1938
1990
  return {
1939
1991
  ...t,
1940
1992
  total: t.total
1941
1993
  };
1942
1994
  }, [
1943
- zr,
1944
- _i,
1945
- o,
1995
+ $r,
1996
+ ji,
1997
+ c,
1946
1998
  I,
1947
1999
  P,
1948
- Xr,
1949
- O,
1950
- Jr,
2000
+ ui,
2001
+ A,
2002
+ ci,
1951
2003
  N,
1952
- xn,
1953
- ar.booleans,
1954
- Nr,
1955
- Pr
1956
- ]), G = vi.nodes, yi = vi.total, bi = x(() => ui.filter((e) => e.column.aggregate !== void 0), [ui]), xi = (V.some((e) => e.column.aggregate !== void 0) || bi.length > 0) && zr === "client", Si = y((e) => di ? e === pt ? bi.length > 0 : Or(e) : !1, [di, bi]), Ci = y((e) => e.column !== dt || Si(e.row) ? e : {
2004
+ Sn,
2005
+ zr.booleans,
2006
+ qr,
2007
+ Jr
2008
+ ]), G = Mi.nodes, Ni = Mi.total, Pi = x(() => wi.filter((e) => e.column.aggregate !== void 0), [wi]), Fi = (V.some((e) => e.column.aggregate !== void 0) || Pi.length > 0) && $r === "client", Ii = y((e) => Ti ? e === pt ? Pi.length > 0 : Mr(e) : !1, [Ti, Pi]), Li = y((e) => e.column !== dt || Ii(e.row) ? e : {
1957
2009
  row: e.row,
1958
2010
  column: U[U.length - 1]
1959
- }, [Si, U]), wi = 1 + (n && n.length > 0 ? 1 : 0) + +!!Kn, Ti = x(() => {
2011
+ }, [Ii, U]), Ri = 1 + (i && i.length > 0 ? 1 : 0) + +!!ar, zi = x(() => {
1960
2012
  let e = [ut];
1961
- Kn && e.push(ct);
2013
+ ar && e.push(ct);
1962
2014
  for (let t of W.top) e.push(t.key);
1963
2015
  for (let t of G) e.push(t.kind === "group" ? `${lt}${t.key}` : t.key);
1964
2016
  for (let t of W.bottom) e.push(t.key);
1965
- return xi && e.push(pt), e;
2017
+ return Fi && e.push(pt), e;
1966
2018
  }, [
1967
2019
  G,
1968
2020
  W,
1969
- Kn,
1970
- xi
1971
- ]), Ei = 1 + +!!Kn, Di = Ei + W.top.length + G.length + W.bottom.length, [Oi, ki] = C(0), [Ai, ji] = C(0), [K, Mi] = C({
2021
+ ar,
2022
+ Fi
2023
+ ]), Bi = 1 + +!!ar, Vi = Bi + W.top.length + G.length + W.bottom.length, [Hi, Ui] = C(0), [Wi, Gi] = C(0), [K, Ki] = C({
1972
2024
  width: 0,
1973
2025
  height: 0
1974
- }), [Ni, Pi] = C(null), [Fi, Ii] = C(/* @__PURE__ */ new Map()), Li = Jn === "auto" || di, q = typeof Jn == "number" ? Jn : Ni ?? lr, Ri = qn === !0 || qn === "auto" && G.length > ur, zi = x(() => {
1975
- if (Li) return rt(G.map((e, t) => Fi.get(t) ?? q));
2026
+ }), [qi, Ji] = C(null), [Yi, Xi] = C(/* @__PURE__ */ new Map()), Zi = sr === "auto" || Ti, q = typeof sr == "number" ? sr : qi ?? fr, Qi = or === !0 || or === "auto" && G.length > pr, $i = x(() => {
2027
+ if (Zi) return rt(G.map((e, t) => Yi.get(t) ?? q));
1976
2028
  }, [
1977
- Li,
2029
+ Zi,
1978
2030
  G,
1979
- Fi,
2031
+ Yi,
1980
2032
  q
1981
- ]), Bi = x(() => {
1982
- if (!Ri) return {
2033
+ ]), ea = x(() => {
2034
+ if (!Qi) return {
1983
2035
  startIndex: 0,
1984
2036
  endIndex: G.length,
1985
2037
  startOffset: 0,
@@ -1988,10 +2040,10 @@ function Er({ activatable: e, cellRenderers: t, columnGroups: n, columnOverflow:
1988
2040
  let e = at({
1989
2041
  itemCount: G.length,
1990
2042
  itemSize: q,
1991
- metrics: zi,
1992
- overscan: Xn,
1993
- scrollOffset: Math.max(0, Oi),
1994
- viewportSize: K.height || fr
2043
+ metrics: $i,
2044
+ overscan: lr,
2045
+ scrollOffset: Math.max(0, Hi),
2046
+ viewportSize: K.height || hr
1995
2047
  });
1996
2048
  return {
1997
2049
  startIndex: e.startIndex,
@@ -2000,224 +2052,224 @@ function Er({ activatable: e, cellRenderers: t, columnGroups: n, columnOverflow:
2000
2052
  totalSize: e.totalSize
2001
2053
  };
2002
2054
  }, [
2003
- Ri,
2055
+ Qi,
2004
2056
  K.height,
2005
2057
  G.length,
2006
2058
  q,
2007
- zi,
2008
- Xn,
2009
- Oi
2010
- ]), Vi = x(() => Ri ? G.slice(Bi.startIndex, Bi.endIndex) : G, [
2011
- Ri,
2059
+ $i,
2060
+ lr,
2061
+ Hi
2062
+ ]), ta = x(() => Qi ? G.slice(ea.startIndex, ea.endIndex) : G, [
2063
+ Qi,
2012
2064
  G,
2013
- Bi.startIndex,
2014
- Bi.endIndex
2015
- ]), [Hi, Ui] = C([]), Wi = x(() => V.filter((e) => e.pinned === null), [V]), Gi = qn === !0 || qn === "auto" && Wi.length > dr, Ki = x(() => {
2016
- if (!Gi || K.width === 0) return V;
2017
- let e = ti.reduce((e, t) => e + t, 0), t = V.filter((e) => e.pinned === "start").reduce((e, t) => e + t.width, 0), n = V.filter((e) => e.pinned === "end").reduce((e, t) => e + t.width, 0), r = Ai - pr, i = Ai + K.width - n + pr, a = e + t, o = /* @__PURE__ */ new Set();
2018
- for (let e of Wi) {
2065
+ ea.startIndex,
2066
+ ea.endIndex
2067
+ ]), [na, ra] = C([]), ia = x(() => V.filter((e) => e.pinned === null), [V]), aa = or === !0 || or === "auto" && ia.length > mr, oa = x(() => {
2068
+ if (!aa || K.width === 0) return V;
2069
+ let e = hi.reduce((e, t) => e + t, 0), t = V.filter((e) => e.pinned === "start").reduce((e, t) => e + t.width, 0), n = V.filter((e) => e.pinned === "end").reduce((e, t) => e + t.width, 0), r = Wi - gr, i = Wi + K.width - n + gr, a = e + t, o = /* @__PURE__ */ new Set();
2070
+ for (let e of ia) {
2019
2071
  let t = a + e.width;
2020
2072
  t >= r && a <= i && o.add(e.id), a = t;
2021
2073
  }
2022
2074
  return V.filter((e) => e.pinned !== null || o.has(e.id) || z !== null && z.column === e.id);
2023
2075
  }, [
2024
- Gi,
2076
+ aa,
2025
2077
  K.width,
2026
2078
  V,
2027
- ti,
2028
- Ai,
2079
+ hi,
2029
2080
  Wi,
2081
+ ia,
2030
2082
  z
2031
2083
  ]), J = x(() => {
2032
- let e = zr === "client" ? vi.rows : _i;
2084
+ let e = $r === "client" ? Mi.rows : ji;
2033
2085
  return [
2034
2086
  ...W.top.map((e) => e.key),
2035
2087
  ...e.map(P),
2036
2088
  ...W.bottom.map((e) => e.key)
2037
- ].filter((e) => !sr.has(e));
2089
+ ].filter((e) => !Vr.has(e));
2038
2090
  }, [
2039
- zr,
2040
- vi.rows,
2041
- _i,
2091
+ $r,
2092
+ Mi.rows,
2093
+ ji,
2042
2094
  W,
2043
2095
  P,
2044
- sr
2045
- ]), qi = x(() => Array.isArray(Ur) ? Ur : Ur == null ? [] : [Ur], [Ur]), Ji = x(() => new Set(qi), [qi]), Yi = S(void 0), Xi = y((e) => Ji.has(e), [Ji]), Zi = x(() => new Set(J), [J]), Qi = x(() => qi.filter((e) => Zi.has(e)).length, [qi, Zi]), $i = Qi === 0 ? "none" : Qi >= J.length ? "all" : "some", ea = y((e, t, n) => {
2096
+ Vr
2097
+ ]), sa = x(() => Array.isArray(ri) ? ri : ri == null ? [] : [ri], [ri]), ca = x(() => new Set(sa), [sa]), la = S(void 0), ua = y((e) => ca.has(e), [ca]), da = x(() => new Set(J), [J]), fa = x(() => sa.filter((e) => da.has(e)).length, [sa, da]), pa = fa === 0 ? "none" : fa >= J.length ? "all" : "some", ma = y((e, t, n) => {
2046
2098
  let r = M === "multiple" ? e : e[0] ?? null;
2047
- Wr(r, t, n);
2048
- }, [M, Wr]), ta = y((e, t) => {
2049
- if (M === "none" || M === "range" || sr.has(e)) return;
2099
+ ii(r, t, n);
2100
+ }, [M, ii]), ha = y((e, t) => {
2101
+ if (M === "none" || M === "range" || Vr.has(e)) return;
2050
2102
  let n = it({
2051
2103
  action: t.range ? "range" : "toggle",
2052
2104
  mode: M,
2053
- selected: qi,
2105
+ selected: sa,
2054
2106
  keys: J,
2055
2107
  key: e,
2056
- anchor: Yi.current,
2057
- disabled: (e) => sr.has(e)
2108
+ anchor: la.current,
2109
+ disabled: (e) => Vr.has(e)
2058
2110
  });
2059
- t.range || (Yi.current = e), n.changed && ea(n.selected, t.reason ?? "pointer", t.source);
2111
+ t.range || (la.current = e), n.changed && ma(n.selected, t.reason ?? "pointer", t.source);
2060
2112
  }, [
2061
2113
  M,
2062
- sr,
2063
- qi,
2114
+ Vr,
2115
+ sa,
2064
2116
  J,
2065
- ea
2066
- ]), na = y((e) => {
2117
+ ma
2118
+ ]), ga = y((e) => {
2067
2119
  if (M !== "multiple") return;
2068
2120
  let t = it({
2069
2121
  action: "all",
2070
2122
  mode: "multiple",
2071
- selected: qi,
2123
+ selected: sa,
2072
2124
  keys: J
2073
2125
  });
2074
- t.changed && ea(t.selected, "select", e);
2126
+ t.changed && ma(t.selected, "select", e);
2075
2127
  }, [
2076
2128
  M,
2077
- qi,
2129
+ sa,
2078
2130
  J,
2079
- ea
2080
- ]), ra = Math.max(1, Math.floor((K.height || 400) / q) - 1), Y = x(() => ({
2081
- rows: Ti,
2082
- columns: hi,
2083
- pageSize: ra,
2084
- bodyStart: Ei,
2085
- bodyEnd: Di
2131
+ ma
2132
+ ]), _a = Math.max(1, Math.floor((K.height || 400) / q) - 1), Y = x(() => ({
2133
+ rows: zi,
2134
+ columns: ki,
2135
+ pageSize: _a,
2136
+ bodyStart: Bi,
2137
+ bodyEnd: Vi
2086
2138
  }), [
2087
- Ti,
2088
- hi,
2089
- ra,
2090
- Ei,
2091
- Di
2092
- ]), X = x(() => M === "range" ? Dt(Y, Gr) : null, [
2139
+ zi,
2140
+ ki,
2141
+ _a,
2142
+ Bi,
2143
+ Vi
2144
+ ]), X = x(() => M === "range" ? Ot(Y, ai) : null, [
2093
2145
  M,
2094
2146
  Y,
2095
- Gr
2096
- ]), ia = y((e) => kt(Y, X, e), [Y, X]), [aa, oa] = C(!1), sa = S(null), ca = y((e, t, n) => {
2097
- if (M !== "range" || !Or(e.row)) return;
2098
- let r = t && Gr ? Gr.anchor : e;
2099
- sa.current = r, Kr({
2147
+ ai
2148
+ ]), va = y((e) => At(Y, X, e), [Y, X]), [ya, ba] = C(!1), xa = S(null), Sa = y((e, t, n) => {
2149
+ if (M !== "range" || !Mr(e.row)) return;
2150
+ let r = t && ai ? ai.anchor : e;
2151
+ xa.current = r, oi({
2100
2152
  anchor: r,
2101
2153
  focus: e
2102
2154
  }, "pointer", n);
2103
2155
  }, [
2104
2156
  M,
2105
- Gr,
2106
- Kr
2107
- ]), la = y((e, t) => {
2108
- if (M !== "range" || !Or(e.row)) return;
2109
- let n = sa.current ?? Gr?.anchor ?? e;
2110
- Kr({
2157
+ ai,
2158
+ oi
2159
+ ]), Ca = y((e, t) => {
2160
+ if (M !== "range" || !Mr(e.row)) return;
2161
+ let n = xa.current ?? ai?.anchor ?? e;
2162
+ oi({
2111
2163
  anchor: n,
2112
2164
  focus: e
2113
2165
  }, "pointer", t);
2114
2166
  }, [
2115
2167
  M,
2116
- Gr,
2117
- Kr
2168
+ ai,
2169
+ oi
2118
2170
  ]), Z = y((e) => {
2119
- qe(A.current?.ownerDocument).announce(e);
2120
- }, []), [ua, da] = C(!1), fa = S(null), pa = y((e) => {
2121
- let t = A.current?.querySelector(`[data-row="${CSS.escape(e.row)}"] [data-column="${CSS.escape(e.column)}"]`);
2171
+ qe(k.current?.ownerDocument).announce(e);
2172
+ }, []), [wa, Ta] = C(!1), Ea = S(null), Da = y((e) => {
2173
+ let t = k.current?.querySelector(`[data-row="${CSS.escape(e.row)}"] [data-column="${CSS.escape(e.column)}"]`);
2122
2174
  if (!t) return !1;
2123
2175
  let n = t.matches("[data-part=\"column-header\"], [data-part=\"filter-cell\"]") || t.querySelector("[data-part=\"group-toggle\"]") !== null, r = t.querySelector("[data-part=\"editor\"]");
2124
2176
  if (r) return (r.querySelector("input:not([type=\"checkbox\"]):not([type=\"radio\"]):not([disabled]), textarea:not([disabled]), [role=\"combobox\"]:not([disabled]), [role=\"spinbutton\"]:not([disabled]), [role=\"checkbox\"], [role=\"switch\"]") ?? r.querySelector("a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"]), [contenteditable=\"true\"]") ?? t).focus({ preventScroll: !1 }), !0;
2125
- let i = n ? [] : [...t.querySelectorAll(fn)];
2177
+ let i = n ? [] : [...t.querySelectorAll(pn)];
2126
2178
  return ((i.length === 1 && i[0].matches("a[href], button, input[type=\"checkbox\"], input[type=\"radio\"], [role=\"switch\"], [role=\"button\"], [role=\"checkbox\"]") ? i[0] : null) ?? t).focus({ preventScroll: !1 }), !0;
2127
- }, []), ma = y((e, t, n) => {
2128
- if (E(e, z) || qr(e, t, n), fa.current = e, Or(e.row) && !Ti.includes(e.row)) return;
2129
- let r = Ti.indexOf(e.row) - Ei;
2130
- if (Ri && r >= 0 && (r < Bi.startIndex || r >= Bi.endIndex)) {
2131
- Ui([e.row]);
2132
- let t = zi ? zi.offsetOf(r) : r * q;
2133
- Mn.current?.scrollTo({ top: t - K.height / 2 + q });
2179
+ }, []), Oa = y((e, t, n) => {
2180
+ if (E(e, z) || si(e, t, n), Ea.current = e, Mr(e.row) && !zi.includes(e.row)) return;
2181
+ let r = zi.indexOf(e.row) - Bi;
2182
+ if (Qi && r >= 0 && (r < ea.startIndex || r >= ea.endIndex)) {
2183
+ ra([e.row]);
2184
+ let t = $i ? $i.offsetOf(r) : r * q;
2185
+ Pn.current?.scrollTo({ top: t - K.height / 2 + q });
2134
2186
  }
2135
2187
  }, [
2136
2188
  z,
2137
- qr,
2138
- Ti,
2139
- Ei,
2140
- Ri,
2141
- Bi,
2189
+ si,
2142
2190
  zi,
2191
+ Bi,
2192
+ Qi,
2193
+ ea,
2194
+ $i,
2143
2195
  q,
2144
2196
  K.height
2145
2197
  ]);
2146
2198
  Be(() => {
2147
- let e = fa.current;
2148
- e && pa(e) && (fa.current = null);
2199
+ let e = Ea.current;
2200
+ e && Da(e) && (Ea.current = null);
2149
2201
  });
2150
- let ha = S(0);
2202
+ let ka = S(0);
2151
2203
  b(() => {
2152
- if (z && Ti.includes(z.row) && (ha.current = Ti.indexOf(z.row), hi.includes(z.column)) || !z) return;
2153
- let e = Ti.includes(z.row) && B.popin.includes(z.column) && Si(z.row) ? {
2204
+ if (z && zi.includes(z.row) && (ka.current = zi.indexOf(z.row), ki.includes(z.column)) || !z) return;
2205
+ let e = zi.includes(z.row) && B.popin.includes(z.column) && Ii(z.row) ? {
2154
2206
  row: z.row,
2155
2207
  column: dt
2156
- } : It(Y, z, ha.current);
2157
- e && !E(e, z) ? (qr(e, "programmatic"), ua && (fa.current = e)) : !e && ua && A.current?.querySelector("[data-part=\"empty\"] [tabindex]")?.focus();
2208
+ } : Lt(Y, z, ka.current);
2209
+ e && !E(e, z) ? (si(e, "programmatic"), wa && (Ea.current = e)) : !e && wa && k.current?.querySelector("[data-part=\"empty\"] [tabindex]")?.focus();
2158
2210
  }, [
2159
2211
  Y,
2160
- Ti,
2161
- hi,
2212
+ zi,
2213
+ ki,
2162
2214
  B,
2163
- Si,
2215
+ Ii,
2164
2216
  z,
2165
- qr,
2166
- ua
2217
+ si,
2218
+ wa
2167
2219
  ]);
2168
- let ga = y((e) => {
2220
+ let Aa = y((e) => {
2169
2221
  let t = I.sort.findIndex((t) => t.column === e);
2170
2222
  return t === -1 ? null : {
2171
2223
  direction: I.sort[t].direction,
2172
2224
  index: t + 1
2173
2225
  };
2174
- }, [I.sort]), _a = y((e) => H.get(e)?.column.label ?? e, [H]), va = y((e) => {
2226
+ }, [I.sort]), ja = y((e) => H.get(e)?.column.label ?? e, [H]), Ma = y((e) => {
2175
2227
  if (e.sort.length === 0) {
2176
2228
  Z(j("sortCleared"));
2177
2229
  return;
2178
2230
  }
2179
- let t = e.sort.map((e) => j(e.direction === "ascending" ? "sortAscending" : "sortDescending", { column: _a(e.column) })).join(", ");
2231
+ let t = e.sort.map((e) => j(e.direction === "ascending" ? "sortAscending" : "sortDescending", { column: ja(e.column) })).join(", ");
2180
2232
  Z(j("sortedBy", { order: t }));
2181
2233
  }, [
2182
2234
  Z,
2183
2235
  j,
2184
- _a
2185
- ]), ya = y((e, t, n, r = "pointer") => {
2236
+ ja
2237
+ ]), Na = y((e, t, n, r = "pointer") => {
2186
2238
  let i = H.get(e);
2187
2239
  if (!i || !i.sortable) return;
2188
- let a = Gt(I, e, t);
2189
- jr(a.query, r, n, { change: a.change }), va(a.query);
2240
+ let a = Kt(I, e, t);
2241
+ Gr(a.query, r, n, { change: a.change }), Ma(a.query);
2190
2242
  }, [
2191
2243
  H,
2192
2244
  I,
2193
- jr,
2194
- va
2195
- ]), ba = y((e, t, n) => {
2196
- let r = Wt(I, e, t);
2197
- jr(r.query, "pointer", n, { change: r.change }), va(r.query);
2245
+ Gr,
2246
+ Ma
2247
+ ]), Pa = y((e, t, n) => {
2248
+ let r = Gt(I, e, t);
2249
+ Gr(r.query, "pointer", n, { change: r.change }), Ma(r.query);
2198
2250
  }, [
2199
2251
  I,
2200
- jr,
2201
- va
2202
- ]), xa = y((e) => rn(I.filter, e) ?? null, [I.filter]), Sa = y((e, t, n, r) => {
2203
- let i = zt(I, e, t);
2204
- jr(i.query, n, r, { change: i.change });
2205
- }, [I, jr]), [Ca, wa] = C(null), [Ta, Ea] = C(null), [Da, Oa] = C(null), ka = S(-Infinity), Aa = y((e, t, n) => {
2206
- Oa({
2252
+ Gr,
2253
+ Ma
2254
+ ]), Fa = y((e) => an(I.filter, e) ?? null, [I.filter]), Ia = y((e, t, n, r) => {
2255
+ let i = Bt(I, e, t);
2256
+ Gr(i.query, n, r, { change: i.change });
2257
+ }, [I, Gr]), [La, Ra] = C(null), [za, Ba] = C(null), [Va, Ha] = C(null), Ua = S(-Infinity), Wa = y((e, t, n) => {
2258
+ Ha({
2207
2259
  column: e,
2208
2260
  anchor: t,
2209
2261
  returnTo: n
2210
- }), Ea(e);
2211
- }, []), ja = y(() => Oa(null), []), Ma = y((e, t) => {
2262
+ }), Ba(e);
2263
+ }, []), Ga = y(() => Ha(null), []), Ka = y((e, t) => {
2212
2264
  let n = e.target;
2213
- n instanceof Element && e.currentTarget.contains(n) && (e.shiftKey || n.closest(hr) || (e.preventDefault(), !(Date.now() - ka.current < gr) && Aa(t, vr(e.clientX, e.clientY), e.currentTarget)));
2214
- }, [Aa]), Na = S(/* @__PURE__ */ new Map()), Pa = y((e) => {
2215
- let t = `${e}|${JSON.stringify(I.filter)}|${I.search}|${L.length}`, n = Na.current.get(t);
2265
+ n instanceof Element && e.currentTarget.contains(n) && (e.shiftKey || n.closest(vr) || (e.preventDefault(), !(Date.now() - Ua.current < yr) && Wa(t, Sr(e.clientX, e.clientY), e.currentTarget)));
2266
+ }, [Wa]), qa = S(/* @__PURE__ */ new Map()), Ja = y((e) => {
2267
+ let t = `${e}|${JSON.stringify(I.filter)}|${I.search}|${L.length}`, n = qa.current.get(t);
2216
2268
  if (n) return n;
2217
- let r = o.find((t) => t.id === e), i = /* @__PURE__ */ new Map();
2269
+ let r = c.find((t) => t.id === e), i = /* @__PURE__ */ new Map();
2218
2270
  if (r) {
2219
- let t = cn(I.filter, e), n = Jt(t.rules.length ? t : null, (e, t) => {
2220
- let n = o.find((e) => e.id === t);
2271
+ let t = ln(I.filter, e), n = Yt(t.rules.length ? t : null, (e, t) => {
2272
+ let n = c.find((e) => e.id === t);
2221
2273
  return n ? gt(n, e) : void 0;
2222
2274
  }, { locale: N });
2223
2275
  for (let e of L) {
@@ -2230,107 +2282,107 @@ function Er({ activatable: e, cellRenderers: t, columnGroups: n, columnOverflow:
2230
2282
  }
2231
2283
  }
2232
2284
  }
2233
- return Na.current = /* @__PURE__ */ new Map([[t, i]]), i;
2285
+ return qa.current = /* @__PURE__ */ new Map([[t, i]]), i;
2234
2286
  }, [
2235
- o,
2287
+ c,
2236
2288
  I.filter,
2237
2289
  I.search,
2238
2290
  L,
2239
2291
  N
2240
- ]), Fa = y((e, t, n, r) => {
2241
- Hr(e, n, r, { change: t });
2242
- }, [Hr]), Ia = y((e, t, n) => {
2243
- Fa(Ht(R, e, t), "pinned", "pointer", n);
2244
- }, [R, Fa]), La = y((e, t, n = "programmatic") => {
2245
- let r = o.find((t) => t.id === e);
2246
- r && !R.hidden.includes(e) && (Fa(Bt(R, e, !0), "hidden", n, t), Z(j("columnHidden", { column: r.label })));
2292
+ ]), Ya = y((e, t, n, r) => {
2293
+ ni(e, n, r, { change: t });
2294
+ }, [ni]), Xa = y((e, t, n) => {
2295
+ Ya(Ut(R, e, t), "pinned", "pointer", n);
2296
+ }, [R, Ya]), Za = y((e, t, n = "programmatic") => {
2297
+ let r = c.find((t) => t.id === e);
2298
+ r && !R.hidden.includes(e) && (Ya(Vt(R, e, !0), "hidden", n, t), Z(j("columnHidden", { column: r.label })));
2247
2299
  }, [
2248
- o,
2300
+ c,
2249
2301
  R,
2250
- Fa,
2302
+ Ya,
2251
2303
  Z,
2252
2304
  j
2253
- ]), Ra = y((e, t, n, r) => {
2254
- let i = o.find((t) => t.id === e);
2305
+ ]), Qa = y((e, t, n, r) => {
2306
+ let i = c.find((t) => t.id === e);
2255
2307
  if (!i) return;
2256
- let a = Ut(R, i, t);
2257
- Fa(a, "width", n, r), n === "keyboard" && Z(j("resized", {
2308
+ let a = Wt(R, i, t);
2309
+ Ya(a, "width", n, r), n === "keyboard" && Z(j("resized", {
2258
2310
  column: i.label,
2259
2311
  width: String(a.widths[e] ?? t)
2260
2312
  }));
2261
2313
  }, [
2262
- o,
2314
+ c,
2263
2315
  R,
2264
- Fa,
2316
+ Ya,
2265
2317
  Z,
2266
2318
  j
2267
- ]), za = y((e, t, n) => {
2319
+ ]), $a = y((e, t, n) => {
2268
2320
  let r = H.get(e);
2269
- r && r.resizable && Ra(e, r.width + t, "keyboard", n);
2270
- }, [H, Ra]), Ba = y((e) => {
2271
- let t = A.current;
2321
+ r && r.resizable && Qa(e, r.width + t, "keyboard", n);
2322
+ }, [H, Qa]), eo = y((e) => {
2323
+ let t = k.current;
2272
2324
  if (!t) return null;
2273
2325
  let n = 0;
2274
- for (let r of t.querySelectorAll(`[data-column="${CSS.escape(e)}"]`)) n = Math.max(n, Tr(r));
2326
+ for (let r of t.querySelectorAll(`[data-column="${CSS.escape(e)}"]`)) n = Math.max(n, kr(r));
2275
2327
  return n > 0 ? Math.ceil(n) : null;
2276
- }, []), Va = y((e, t, n) => {
2328
+ }, []), to = y((e, t, n) => {
2277
2329
  if (!H.has(e)) return;
2278
- let r = Ba(e);
2279
- r !== null && Ra(e, r, t, n);
2330
+ let r = eo(e);
2331
+ r !== null && Qa(e, r, t, n);
2280
2332
  }, [
2281
2333
  H,
2282
- Ba,
2283
- Ra
2284
- ]), Ha = y((e, t) => {
2334
+ eo,
2335
+ Qa
2336
+ ]), no = y((e, t) => {
2285
2337
  let n = R;
2286
2338
  for (let e of V) {
2287
2339
  if (!e.resizable) continue;
2288
- let t = Ba(e.id);
2289
- t !== null && (n = Ut(n, e.column, t));
2340
+ let t = eo(e.id);
2341
+ t !== null && (n = Wt(n, e.column, t));
2290
2342
  }
2291
- n !== R && Fa(n, "width", e, t);
2343
+ n !== R && Ya(n, "width", e, t);
2292
2344
  }, [
2293
2345
  R,
2294
2346
  V,
2295
- Ba,
2296
- Fa
2297
- ]), Ua = y((e, t, n) => e === null ? Ha(t, n) : Va(e, t, n), [Ha, Va]), Wa = y((e, t, n) => {
2347
+ eo,
2348
+ Ya
2349
+ ]), ro = y((e, t, n) => e === null ? no(t, n) : to(e, t, n), [no, to]), io = y((e, t, n) => {
2298
2350
  let r = H.get(e);
2299
2351
  if (!r || !r.reorderable) return;
2300
- let i = qt(V, e), a = i.indexOf(e) + t;
2301
- a < 0 || a >= i.length || Fa(Vt(R, e, a, i), "order", "keyboard", n);
2352
+ let i = Jt(V, e), a = i.indexOf(e) + t;
2353
+ a < 0 || a >= i.length || Ya(Ht(R, e, a, i), "order", "keyboard", n);
2302
2354
  }, [
2303
2355
  H,
2304
2356
  V,
2305
2357
  R,
2306
- Fa
2307
- ]), [Ga, Ka] = C(null), [qa, Ja] = C({
2358
+ Ya
2359
+ ]), [ao, oo] = C(null), [so, co] = C({
2308
2360
  dragging: null,
2309
2361
  target: null,
2310
2362
  offset: null,
2311
2363
  scrollTop: 0
2312
- }), Ya = S(null), Xa = S({
2364
+ }), lo = S(null), uo = S({
2313
2365
  resolved: V,
2314
2366
  effectiveState: R,
2315
- requestState: Fa,
2316
- gutters: ti,
2317
- labelOf: _a,
2367
+ requestState: Ya,
2368
+ gutters: hi,
2369
+ labelOf: ja,
2318
2370
  t: j,
2319
- dragT: Fn
2371
+ dragT: Zn
2320
2372
  });
2321
- Xa.current = {
2373
+ uo.current = {
2322
2374
  resolved: V,
2323
2375
  effectiveState: R,
2324
- requestState: Fa,
2325
- gutters: ti,
2326
- labelOf: _a,
2376
+ requestState: Ya,
2377
+ gutters: hi,
2378
+ labelOf: ja,
2327
2379
  t: j,
2328
- dragT: Fn
2380
+ dragT: Zn
2329
2381
  };
2330
- let Za = S(/* @__PURE__ */ new Map()), Qa = S(!1), $a = S(/* @__PURE__ */ new Map()), eo = y((e, t) => {
2331
- let n = Ya.current, r = Za.current.get(t);
2332
- if (r && (r(), Za.current.delete(t)), !e || !n) return;
2333
- let i = Xa.current.resolved.find((e) => e.id === t);
2382
+ let fo = S(/* @__PURE__ */ new Map()), po = S(!1), mo = S(/* @__PURE__ */ new Map()), ho = y((e, t) => {
2383
+ let n = lo.current, r = fo.current.get(t);
2384
+ if (r && (r(), fo.current.delete(t)), !e || !n) return;
2385
+ let i = uo.current.resolved.find((e) => e.id === t);
2334
2386
  if (!i || !i.reorderable) return;
2335
2387
  let a = n.attachDraggable(e, {
2336
2388
  container: "columns",
@@ -2339,38 +2391,38 @@ function Er({ activatable: e, cellRenderers: t, columnGroups: n, columnOverflow:
2339
2391
  canDrag: (e) => !(e.target instanceof Element && e.target.closest("[data-part=\"resizer\"]")),
2340
2392
  distance: 6
2341
2393
  });
2342
- Za.current.set(t, a);
2343
- }, []), to = y((e, t) => {
2344
- e ? $a.current.set(t, e) : $a.current.delete(t), eo(e, t);
2345
- }, [eo]), no = V.map((e) => e.id).join("\0");
2394
+ fo.current.set(t, a);
2395
+ }, []), go = y((e, t) => {
2396
+ e ? mo.current.set(t, e) : mo.current.delete(t), ho(e, t);
2397
+ }, [ho]), _o = V.map((e) => e.id).join("\0");
2346
2398
  b(() => {
2347
- for (let [e, t] of $a.current) eo(t, e);
2348
- }, [no, eo]), b(() => {
2349
- let e = A.current;
2399
+ for (let [e, t] of mo.current) ho(t, e);
2400
+ }, [_o, ho]), b(() => {
2401
+ let e = k.current;
2350
2402
  if (!e) return;
2351
2403
  let t = st({
2352
2404
  document: e.ownerDocument,
2353
- t: (e, t) => Xa.current.dragT(e, t),
2405
+ t: (e, t) => uo.current.dragT(e, t),
2354
2406
  preview: !1,
2355
2407
  autoScroll: { axis: "x" },
2356
2408
  onDrop: ({ items: e, target: t, reason: n, event: r }) => {
2357
2409
  if (t.kind !== "between") return;
2358
- let { resolved: i, effectiveState: a, requestState: o } = Xa.current, s = e[0], c = qt(i, s), l = Dr(i, c, s, t.index);
2359
- l !== null && o(Vt(a, s, l, c), "order", n === "keyboard" ? "keyboard" : "pointer", r);
2410
+ let { resolved: i, effectiveState: a, requestState: o } = uo.current, s = e[0], c = Jt(i, s), l = jr(i, c, s, t.index);
2411
+ l !== null && o(Ht(a, s, l, c), "order", n === "keyboard" ? "keyboard" : "pointer", r);
2360
2412
  }
2361
- }), n = () => Xa.current.resolved.map((e) => e.id), r = (t) => e.querySelector(`[data-part="column-header"][data-column="${CSS.escape(t)}"]`);
2413
+ }), n = () => uo.current.resolved.map((e) => e.id), r = (t) => e.querySelector(`[data-part="column-header"][data-column="${CSS.escape(t)}"]`);
2362
2414
  t.registerContainer({
2363
2415
  key: "columns",
2364
2416
  items: n,
2365
2417
  orientation: "horizontal",
2366
2418
  element: () => e.querySelector("[data-part=\"head\"] > [data-part=\"header-row\"]:last-of-type"),
2367
2419
  itemElement: r,
2368
- label: () => Xa.current.t("dragColumns"),
2369
- itemLabel: (e) => Xa.current.labelOf(e)
2420
+ label: () => uo.current.t("dragColumns"),
2421
+ itemLabel: (e) => uo.current.labelOf(e)
2370
2422
  });
2371
2423
  let i = !1, a = t.subscribe((e) => {
2372
2424
  if (e.status !== "dragging") {
2373
- i && (Qa.current = !0), i = !1, Ja({
2425
+ i && (po.current = !0), i = !1, co({
2374
2426
  dragging: null,
2375
2427
  target: null,
2376
2428
  offset: null,
@@ -2381,78 +2433,78 @@ function Er({ activatable: e, cellRenderers: t, columnGroups: n, columnOverflow:
2381
2433
  i = !0;
2382
2434
  let t = e.items[0] ?? null, a = e.target && e.target.kind === "between" ? e.target : null, o = null, s = 0, c = null;
2383
2435
  if (a && t) {
2384
- let e = Xa.current.resolved, i = qt(e, t), l = e.find((e) => e.id === i[0]), u = e.find((e) => e.id === i[i.length - 1]), d = Math.max(l ? l.index - 1 : 0, Math.min(u ? u.index : e.length, a.index)), f = Mn.current, p = n(), m = d >= p.length, h = p[m ? p.length - 1 : d], g = h ? r(h) : null;
2436
+ let e = uo.current.resolved, i = Jt(e, t), l = e.find((e) => e.id === i[0]), u = e.find((e) => e.id === i[i.length - 1]), d = Math.max(l ? l.index - 1 : 0, Math.min(u ? u.index : e.length, a.index)), f = Pn.current, p = n(), m = d >= p.length, h = p[m ? p.length - 1 : d], g = h ? r(h) : null;
2385
2437
  if (g && f) {
2386
2438
  let e = g.getBoundingClientRect(), t = f.getBoundingClientRect(), n = getComputedStyle(f).direction === "rtl", r = m === n ? e.left : e.right;
2387
2439
  o = n ? t.right - r - f.scrollLeft : r - t.left + f.scrollLeft, s = f.scrollTop, c = p[d] ?? null;
2388
2440
  }
2389
2441
  }
2390
- Ja({
2442
+ co({
2391
2443
  dragging: t,
2392
2444
  target: c,
2393
2445
  offset: o,
2394
2446
  scrollTop: s
2395
2447
  });
2396
2448
  });
2397
- Ya.current = t;
2398
- for (let [e, t] of $a.current) eo(t, e);
2399
- let o = Za.current;
2449
+ lo.current = t;
2450
+ for (let [e, t] of mo.current) ho(t, e);
2451
+ let o = fo.current;
2400
2452
  return () => {
2401
2453
  a();
2402
2454
  for (let e of o.values()) e();
2403
- o.clear(), t.destroy(), Ya.current = null;
2455
+ o.clear(), t.destroy(), lo.current = null;
2404
2456
  };
2405
2457
  }, []);
2406
- let ro = x(() => {
2458
+ let vo = x(() => {
2407
2459
  let e = /* @__PURE__ */ new Map();
2408
2460
  for (let t of W.top) e.set(t.key, t);
2409
2461
  for (let t of G) t.kind === "row" && e.set(t.key, t);
2410
2462
  for (let t of W.bottom) e.set(t.key, t);
2411
2463
  return e;
2412
- }, [G, W]), io = $r && !O && zr === "client" && I.sort.length === 0 && I.filter === null && I.search.trim() === "" && I.group.length === 0, [ao, oo] = C({
2464
+ }, [G, W]), yo = pi && !A && $r === "client" && I.sort.length === 0 && I.filter === null && I.search.trim() === "" && I.group.length === 0, [bo, xo] = C({
2413
2465
  dragging: null,
2414
2466
  offset: null,
2415
2467
  scrollLeft: 0
2416
- }), so = S(null), co = S(/* @__PURE__ */ new Map()), lo = S(/* @__PURE__ */ new Map()), uo = y((e) => {
2417
- let t = ro.get(e), n = o.find((e) => e.rowHeader);
2418
- return t && n ? ht(n, t.row, ar) : e;
2468
+ }), So = S(null), Co = S(/* @__PURE__ */ new Map()), wo = S(/* @__PURE__ */ new Map()), To = y((e) => {
2469
+ let t = vo.get(e), n = c.find((e) => e.rowHeader);
2470
+ return t && n ? ht(n, t.row, zr) : e;
2419
2471
  }, [
2420
- ro,
2421
- o,
2422
- ar
2423
- ]), fo = S({
2424
- nodeByKey: ro,
2425
- mountedNodes: Vi,
2426
- rowsReorderableNow: io,
2472
+ vo,
2473
+ c,
2474
+ zr
2475
+ ]), Eo = S({
2476
+ nodeByKey: vo,
2477
+ mountedNodes: ta,
2478
+ rowsReorderableNow: yo,
2427
2479
  onRowsReorder: Ie,
2428
- labelOf: uo,
2480
+ labelOf: To,
2429
2481
  t: j,
2430
- dragT: Fn
2482
+ dragT: Zn
2431
2483
  });
2432
- fo.current = {
2433
- nodeByKey: ro,
2434
- mountedNodes: Vi,
2435
- rowsReorderableNow: io,
2484
+ Eo.current = {
2485
+ nodeByKey: vo,
2486
+ mountedNodes: ta,
2487
+ rowsReorderableNow: yo,
2436
2488
  onRowsReorder: Ie,
2437
- labelOf: uo,
2489
+ labelOf: To,
2438
2490
  t: j,
2439
- dragT: Fn
2491
+ dragT: Zn
2440
2492
  };
2441
- let po = y((e, t) => {
2442
- let n = so.current;
2443
- if (lo.current.get(t)?.(), lo.current.delete(t), !e || !n) return;
2493
+ let Do = y((e, t) => {
2494
+ let n = So.current;
2495
+ if (wo.current.get(t)?.(), wo.current.delete(t), !e || !n) return;
2444
2496
  let r = n.attachDraggable(e, {
2445
2497
  container: "rows",
2446
2498
  key: t,
2447
2499
  handle: () => e.querySelector("[data-part=\"row-handle\"]"),
2448
- disabled: () => !fo.current.rowsReorderableNow,
2500
+ disabled: () => !Eo.current.rowsReorderableNow,
2449
2501
  distance: 6
2450
2502
  });
2451
- lo.current.set(t, r);
2452
- }, []), mo = y((e, t) => {
2453
- e ? co.current.set(t, e) : co.current.delete(t), po(e, t);
2454
- }, [po]), ho = y((e, t) => {
2455
- let { nodeByKey: n, mountedNodes: r } = fo.current, i = n.get(e);
2503
+ wo.current.set(t, r);
2504
+ }, []), Oo = y((e, t) => {
2505
+ e ? Co.current.set(t, e) : Co.current.delete(t), Do(e, t);
2506
+ }, [Do]), ko = y((e, t) => {
2507
+ let { nodeByKey: n, mountedNodes: r } = Eo.current, i = n.get(e);
2456
2508
  if (!i) return null;
2457
2509
  let a = r.filter((e) => e.kind === "row"), o = a[a.length - 1], s = a[t], c = s && s.kind === "row" ? s.index : o && o.kind === "row" ? o.index + 1 : 0, l = i.index < c ? c - 1 : c;
2458
2510
  return l === i.index ? null : {
@@ -2463,42 +2515,42 @@ function Er({ activatable: e, cellRenderers: t, columnGroups: n, columnOverflow:
2463
2515
  };
2464
2516
  }, []);
2465
2517
  b(() => {
2466
- let e = A.current;
2467
- if (!e || !$r) return;
2518
+ let e = k.current;
2519
+ if (!e || !pi) return;
2468
2520
  let t = st({
2469
2521
  document: e.ownerDocument,
2470
- t: (e, t) => fo.current.dragT(e, t),
2522
+ t: (e, t) => Eo.current.dragT(e, t),
2471
2523
  preview: !1,
2472
2524
  autoScroll: { axis: "y" },
2473
2525
  onDrop: ({ items: e, target: t, reason: n, event: r }) => {
2474
2526
  if (t.kind !== "between") return;
2475
- let i = ho(e[0], t.index);
2476
- i && fo.current.onRowsReorder?.({
2527
+ let i = ko(e[0], t.index);
2528
+ i && Eo.current.onRowsReorder?.({
2477
2529
  ...i,
2478
2530
  reason: n === "keyboard" ? "keyboard" : "pointer",
2479
2531
  event: r
2480
2532
  });
2481
2533
  }
2482
- }), n = () => fo.current.mountedNodes.flatMap((e) => e.kind === "row" ? [e.key] : []), r = (t) => e.querySelector(`[data-part="body"] > [data-part="row"][data-row="${CSS.escape(t)}"]`);
2534
+ }), n = () => Eo.current.mountedNodes.flatMap((e) => e.kind === "row" ? [e.key] : []), r = (t) => e.querySelector(`[data-part="body"] > [data-part="row"][data-row="${CSS.escape(t)}"]`);
2483
2535
  t.registerContainer({
2484
2536
  key: "rows",
2485
2537
  items: n,
2486
2538
  orientation: "vertical",
2487
2539
  element: () => e.querySelector("[data-part=\"body\"]"),
2488
2540
  itemElement: r,
2489
- label: () => fo.current.t("dragRows"),
2490
- itemLabel: (e) => fo.current.labelOf(e)
2541
+ label: () => Eo.current.t("dragRows"),
2542
+ itemLabel: (e) => Eo.current.labelOf(e)
2491
2543
  });
2492
2544
  let i = t.subscribe((e) => {
2493
2545
  if (e.status !== "dragging") {
2494
- oo({
2546
+ xo({
2495
2547
  dragging: null,
2496
2548
  offset: null,
2497
2549
  scrollLeft: 0
2498
2550
  });
2499
2551
  return;
2500
2552
  }
2501
- let t = e.items[0] ?? null, i = e.target && e.target.kind === "between" ? e.target : null, a = null, o = 0, s = Mn.current;
2553
+ let t = e.items[0] ?? null, i = e.target && e.target.kind === "between" ? e.target : null, a = null, o = 0, s = Pn.current;
2502
2554
  if (i && s) {
2503
2555
  let e = n(), t = i.index >= e.length, c = e[t ? e.length - 1 : i.index], l = c ? r(c) : null;
2504
2556
  if (l) {
@@ -2506,165 +2558,165 @@ function Er({ activatable: e, cellRenderers: t, columnGroups: n, columnOverflow:
2506
2558
  a = (t ? e.bottom : e.top) - n.top + s.scrollTop, o = Math.abs(s.scrollLeft);
2507
2559
  }
2508
2560
  }
2509
- oo({
2561
+ xo({
2510
2562
  dragging: t,
2511
2563
  offset: a,
2512
2564
  scrollLeft: o
2513
2565
  });
2514
2566
  });
2515
- so.current = t;
2516
- for (let [e, t] of co.current) po(t, e);
2517
- let a = lo.current;
2567
+ So.current = t;
2568
+ for (let [e, t] of Co.current) Do(t, e);
2569
+ let a = wo.current;
2518
2570
  return () => {
2519
2571
  i();
2520
2572
  for (let e of a.values()) e();
2521
- a.clear(), t.destroy(), so.current = null;
2573
+ a.clear(), t.destroy(), So.current = null;
2522
2574
  };
2523
2575
  }, [
2524
- $r,
2525
- po,
2526
- ho
2576
+ pi,
2577
+ Do,
2578
+ ko
2527
2579
  ]);
2528
- let go = y((e, t, n) => {
2529
- if (!fo.current.rowsReorderableNow) return;
2530
- let r = fo.current.mountedNodes.filter((e) => e.kind === "row").findIndex((t) => t.key === e);
2580
+ let Ao = y((e, t, n) => {
2581
+ if (!Eo.current.rowsReorderableNow) return;
2582
+ let r = Eo.current.mountedNodes.filter((e) => e.kind === "row").findIndex((t) => t.key === e);
2531
2583
  if (r < 0) return;
2532
2584
  let i = t > 0 ? r + 2 : r - 1;
2533
2585
  if (i < 0) return;
2534
- let a = ho(e, i);
2586
+ let a = ko(e, i);
2535
2587
  a && (Ie?.({
2536
2588
  ...a,
2537
2589
  reason: "keyboard",
2538
2590
  event: n
2539
2591
  }), Z(j("rowMoved", {
2540
- row: fo.current.labelOf(e),
2592
+ row: Eo.current.labelOf(e),
2541
2593
  position: a.to + 1
2542
2594
  })));
2543
2595
  }, [
2544
- ho,
2596
+ ko,
2545
2597
  Ie,
2546
2598
  Z,
2547
2599
  j
2548
- ]), _o = ve === !0 ? gn : ve || 0, vo = S(/* @__PURE__ */ new Map()), yo = S(0), [bo, xo] = C(0), So = S(null), Co = S(null);
2600
+ ]), jo = ve === !0 ? _n : ve || 0, Mo = S(/* @__PURE__ */ new Map()), No = S(0), [Po, Fo] = C(0), Io = S(null), Lo = S(null);
2549
2601
  b(() => {
2550
- if (_o <= 0) {
2551
- Co.current = null;
2602
+ if (jo <= 0) {
2603
+ Lo.current = null;
2552
2604
  return;
2553
2605
  }
2554
- let e = Co.current, t = /* @__PURE__ */ new Map();
2606
+ let e = Lo.current, t = /* @__PURE__ */ new Map();
2555
2607
  for (let e of L) t.set(P(e), e);
2556
- if (Co.current = {
2608
+ if (Lo.current = {
2557
2609
  rows: L,
2558
2610
  byKey: t
2559
2611
  }, !e || e.rows === L) return;
2560
2612
  let n = Date.now(), r = !1;
2561
2613
  for (let t of [
2562
2614
  ...W.top,
2563
- ...Vi,
2615
+ ...ta,
2564
2616
  ...W.bottom
2565
2617
  ]) {
2566
2618
  if (t.kind !== "row") continue;
2567
2619
  let i = e.byKey.get(t.key);
2568
- if (i !== void 0 && i !== t.row) for (let e of V) Object.is(gt(e.column, i), gt(e.column, t.row)) || (vo.current.set(`${t.key}\u0000${e.id}`, {
2569
- until: n + _o,
2570
- generation: yo.current + 1
2620
+ if (i !== void 0 && i !== t.row) for (let e of V) Object.is(gt(e.column, i), gt(e.column, t.row)) || (Mo.current.set(`${t.key}\u0000${e.id}`, {
2621
+ until: n + jo,
2622
+ generation: No.current + 1
2571
2623
  }), r = !0);
2572
2624
  }
2573
- if (r && (yo.current += 1, xo((e) => e + 1), So.current === null)) {
2625
+ if (r && (No.current += 1, Fo((e) => e + 1), Io.current === null)) {
2574
2626
  let e = () => {
2575
- So.current = null;
2627
+ Io.current = null;
2576
2628
  let t = Date.now(), n = Infinity;
2577
- for (let [e, r] of vo.current) r.until <= t ? vo.current.delete(e) : n = Math.min(n, r.until);
2578
- xo((e) => e + 1), n !== Infinity && (So.current = setTimeout(e, Math.max(16, n - t)));
2629
+ for (let [e, r] of Mo.current) r.until <= t ? Mo.current.delete(e) : n = Math.min(n, r.until);
2630
+ Fo((e) => e + 1), n !== Infinity && (Io.current = setTimeout(e, Math.max(16, n - t)));
2579
2631
  };
2580
- So.current = setTimeout(e, _o);
2632
+ Io.current = setTimeout(e, jo);
2581
2633
  }
2582
2634
  }, [
2583
2635
  L,
2584
2636
  P,
2585
- Vi,
2637
+ ta,
2586
2638
  W,
2587
2639
  V,
2588
- _o
2640
+ jo
2589
2641
  ]), b(() => () => {
2590
- So.current !== null && clearTimeout(So.current);
2642
+ Io.current !== null && clearTimeout(Io.current);
2591
2643
  }, []);
2592
- let wo = y((e) => {
2593
- let t = vo.current.get(`${e.row}\u0000${e.column}`);
2644
+ let Ro = y((e) => {
2645
+ let t = Mo.current.get(`${e.row}\u0000${e.column}`);
2594
2646
  return t ? t.generation % 2 == 0 ? "a" : "b" : null;
2595
- }, [bo]), To = x(() => new Set(Jr), [Jr]), Eo = y((e) => To.has(e), [To]), Do = y((e, t, n = "pointer") => {
2596
- let r = To.has(e) ? Jr.filter((t) => t !== e) : [...Jr, e];
2597
- Yr(r, n, t);
2647
+ }, [Po]), zo = x(() => new Set(ci), [ci]), Bo = y((e) => zo.has(e), [zo]), Vo = y((e, t, n = "pointer") => {
2648
+ let r = zo.has(e) ? ci.filter((t) => t !== e) : [...ci, e];
2649
+ li(r, n, t);
2598
2650
  }, [
2599
- To,
2600
- Jr,
2601
- Yr
2602
- ]), Oo = x(() => O ? O.column && H.has(O.column) ? O.column : V[0]?.id ?? null : null, [
2603
- O,
2651
+ zo,
2652
+ ci,
2653
+ li
2654
+ ]), Ho = x(() => A ? A.column && H.has(A.column) ? A.column : V[0]?.id ?? null : null, [
2655
+ A,
2604
2656
  H,
2605
2657
  V
2606
- ]), [ko, Ao] = C(/* @__PURE__ */ new Set()), jo = y((e) => ko.has(e), [ko]), Mo = y((e) => O?.hasChildren?.(e) === !0, [O]);
2658
+ ]), [Uo, Wo] = C(/* @__PURE__ */ new Set()), Go = y((e) => Uo.has(e), [Uo]), Ko = y((e) => A?.hasChildren?.(e) === !0, [A]);
2607
2659
  b(() => {
2608
- if (ko.size === 0) return;
2609
- let e = new Set(ko);
2610
- for (let t of ko) {
2611
- let n = ro.get(t);
2612
- (!n || !To.has(t) || n.childCount > 0) && e.delete(t);
2660
+ if (Uo.size === 0) return;
2661
+ let e = new Set(Uo);
2662
+ for (let t of Uo) {
2663
+ let n = vo.get(t);
2664
+ (!n || !zo.has(t) || n.childCount > 0) && e.delete(t);
2613
2665
  }
2614
- e.size !== ko.size && Ao(e);
2666
+ e.size !== Uo.size && Wo(e);
2615
2667
  }, [
2616
- ko,
2617
- ro,
2618
- To
2668
+ Uo,
2669
+ vo,
2670
+ zo
2619
2671
  ]);
2620
- let No = y((e, t, n = "pointer") => {
2621
- let r = ro.get(e);
2672
+ let qo = y((e, t, n = "pointer") => {
2673
+ let r = vo.get(e);
2622
2674
  if (!r) return;
2623
- let i = !To.has(e);
2624
- Do(e, t, n), i && r.childCount === 0 && O?.hasChildren?.(r.row) && Fe && (Ao((t) => new Set(t).add(e)), Fe({
2675
+ let i = !zo.has(e);
2676
+ Vo(e, t, n), i && r.childCount === 0 && A?.hasChildren?.(r.row) && Fe && (Wo((t) => new Set(t).add(e)), Fe({
2625
2677
  key: e,
2626
2678
  row: r.row
2627
2679
  }));
2628
2680
  }, [
2629
- ro,
2630
- To,
2631
- Do,
2632
- O,
2681
+ vo,
2682
+ zo,
2683
+ Vo,
2684
+ A,
2633
2685
  Fe
2634
- ]), Po = x(() => G.filter((e) => e.kind === "group").map((e) => e.key), [G]), Fo = y((e, t, n = "pointer") => {
2635
- let r = Xr === "all" || Xr.includes(e), i;
2636
- i = Xr === "all" ? Po.filter((t) => t !== e && !t.startsWith(`${e}/`)) : r ? Xr.filter((t) => t !== e) : [...Xr, e], Zr(i, n, t);
2686
+ ]), Jo = x(() => G.filter((e) => e.kind === "group").map((e) => e.key), [G]), Yo = y((e, t, n = "pointer") => {
2687
+ let r = ui === "all" || ui.includes(e), i;
2688
+ i = ui === "all" ? Jo.filter((t) => t !== e && !t.startsWith(`${e}/`)) : r ? ui.filter((t) => t !== e) : [...ui, e], di(i, n, t);
2637
2689
  }, [
2638
- Xr,
2639
- Po,
2640
- Zr
2641
- ]), [Io, Lo] = C(null), Ro = S(Io);
2642
- Ro.current = Io;
2643
- let Q = y((e) => ro.get(e)?.row, [ro]), zo = y((e, t = null) => {
2644
- let n = Q(e.row), r = o.find((t) => t.id === e.column);
2690
+ ui,
2691
+ Jo,
2692
+ di
2693
+ ]), [Xo, Zo] = C(null), Qo = S(Xo);
2694
+ Qo.current = Xo;
2695
+ let Q = y((e) => vo.get(e)?.row, [vo]), $o = y((e, t = null) => {
2696
+ let n = Q(e.row), r = c.find((t) => t.id === e.column);
2645
2697
  if (!n || !r || !F(r, n)) return;
2646
- let i = Gn === "row" ? o.filter((e) => F(e, n)).map((e) => e.id) : [e.column], a = {};
2698
+ let i = ir === "row" ? c.filter((e) => F(e, n)).map((e) => e.id) : [e.column], a = {};
2647
2699
  for (let e of i) {
2648
- let t = o.find((t) => t.id === e);
2700
+ let t = c.find((t) => t.id === e);
2649
2701
  a[e] = gt(t, n);
2650
2702
  }
2651
- let s = { ...a };
2652
- t !== null && (s[e.column] = r.kind === "number" ? Number(t) : t), Lo({
2703
+ let o = { ...a };
2704
+ t !== null && (o[e.column] = r.kind === "number" ? Number(t) : t), Zo({
2653
2705
  cell: e,
2654
2706
  columns: i,
2655
- drafts: s,
2707
+ drafts: o,
2656
2708
  originals: a,
2657
2709
  status: "editing",
2658
2710
  messages: {},
2659
2711
  seed: t
2660
- }), Me?.(e), fa.current = e;
2712
+ }), Me?.(e), Ea.current = e;
2661
2713
  }, [
2662
2714
  Q,
2663
- o,
2715
+ c,
2664
2716
  F,
2665
- Gn,
2717
+ ir,
2666
2718
  Me
2667
- ]), Bo = y((e, t) => {
2719
+ ]), es = y((e, t) => {
2668
2720
  let n = (n) => n && {
2669
2721
  ...n,
2670
2722
  drafts: {
@@ -2673,19 +2725,19 @@ function Er({ activatable: e, cellRenderers: t, columnGroups: n, columnOverflow:
2673
2725
  },
2674
2726
  status: "editing"
2675
2727
  };
2676
- Ro.current = n(Ro.current), Lo(n);
2677
- }, []), Vo = y(() => {
2678
- let e = Ro.current;
2679
- e && (Lo(null), Ae?.(e.cell), fa.current = e.cell);
2680
- }, [Ae]), Ho = y((e, t) => {
2728
+ Qo.current = n(Qo.current), Zo(n);
2729
+ }, []), ts = y(() => {
2730
+ let e = Qo.current;
2731
+ e && (Zo(null), Ae?.(e.cell), Ea.current = e.cell);
2732
+ }, [Ae]), ns = y((e, t) => {
2681
2733
  if (t === "down") {
2682
- let t = wt(Y, e, "down");
2683
- return E(t, e) || !Or(t.row) ? null : t;
2734
+ let t = Tt(Y, e, "down");
2735
+ return E(t, e) || !Mr(t.row) ? null : t;
2684
2736
  }
2685
2737
  let n = Q(e.row);
2686
2738
  if (!n) return null;
2687
2739
  let r = U.filter((e) => {
2688
- let t = o.find((t) => t.id === e);
2740
+ let t = c.find((t) => t.id === e);
2689
2741
  return t !== void 0 && F(t, n);
2690
2742
  }), i = r[r.indexOf(e.column) + (t === "next" ? 1 : -1)];
2691
2743
  return i ? {
@@ -2696,91 +2748,91 @@ function Er({ activatable: e, cellRenderers: t, columnGroups: n, columnOverflow:
2696
2748
  Y,
2697
2749
  Q,
2698
2750
  U,
2699
- o,
2751
+ c,
2700
2752
  F
2701
2753
  ]), $ = y((e, t = {}) => {
2702
- let n = Ro.current;
2754
+ let n = Qo.current;
2703
2755
  if (!n || n.status === "pending") return;
2704
2756
  let r = Q(n.cell.row);
2705
2757
  if (!r) {
2706
- Lo(null);
2758
+ Zo(null);
2707
2759
  return;
2708
2760
  }
2709
2761
  let i = {};
2710
2762
  for (let e of n.columns) Object.is(n.drafts[e], n.originals[e]) || (i[e] = n.drafts[e]);
2711
2763
  let a = () => {
2712
- let e = t.move ?? "stay", r = e === "stay" ? null : Ho(n.cell, e);
2713
- Lo(null), r ? (ma(r, "keyboard"), Gn === "cell" && e !== "down" && zo(r)) : fa.current = n.cell;
2764
+ let e = t.move ?? "stay", r = e === "stay" ? null : ns(n.cell, e);
2765
+ Zo(null), r ? (Oa(r, "keyboard"), ir === "cell" && e !== "down" && $o(r)) : Ea.current = n.cell;
2714
2766
  };
2715
2767
  if (Object.keys(i).length === 0) {
2716
2768
  a();
2717
2769
  return;
2718
2770
  }
2719
- let s = async () => {
2771
+ let o = async () => {
2720
2772
  let e = {};
2721
2773
  for (let t of Object.keys(i)) {
2722
- let n = o.find((e) => e.id === t), a = n.parse ? n.parse(i[t], r) : i[t];
2774
+ let n = c.find((e) => e.id === t), a = n.parse ? n.parse(i[t], r) : i[t];
2723
2775
  i[t] = a;
2724
- let s = n.validate ? await n.validate(a, r) : null;
2725
- s && (e[t] = s);
2776
+ let o = n.validate ? await n.validate(a, r) : null;
2777
+ o && (e[t] = o);
2726
2778
  }
2727
2779
  return e;
2728
2780
  };
2729
2781
  (async () => {
2730
- Lo((e) => e && {
2782
+ Zo((e) => e && {
2731
2783
  ...e,
2732
2784
  status: "pending"
2733
2785
  });
2734
- let t = await s();
2786
+ let t = await o();
2735
2787
  if (Object.keys(t).length > 0) {
2736
- Lo((e) => e && {
2788
+ Zo((e) => e && {
2737
2789
  ...e,
2738
2790
  status: "invalid",
2739
2791
  messages: t
2740
- }), fa.current = n.cell;
2792
+ }), Ea.current = n.cell;
2741
2793
  return;
2742
2794
  }
2743
- let o = n.cell.column in i ? n.cell.column : Object.keys(i)[0];
2795
+ let s = n.cell.column in i ? n.cell.column : Object.keys(i)[0];
2744
2796
  try {
2745
2797
  await je?.({
2746
2798
  key: n.cell.row,
2747
- column: o,
2748
- value: i[o],
2749
- previous: n.originals[o],
2799
+ column: s,
2800
+ value: i[s],
2801
+ previous: n.originals[s],
2750
2802
  row: r,
2751
2803
  reason: e,
2752
2804
  changes: i
2753
2805
  }), a();
2754
2806
  } catch (e) {
2755
2807
  let t = e instanceof Error && e.message ? e.message : j("editFailed");
2756
- Lo((e) => e && {
2808
+ Zo((e) => e && {
2757
2809
  ...e,
2758
2810
  status: "invalid",
2759
- messages: { [o]: t }
2760
- }), fa.current = n.cell;
2811
+ messages: { [s]: t }
2812
+ }), Ea.current = n.cell;
2761
2813
  }
2762
2814
  })();
2763
2815
  }, [
2764
2816
  Q,
2765
- Ho,
2766
- ma,
2767
- Gn,
2768
- zo,
2769
- o,
2817
+ ns,
2818
+ Oa,
2819
+ ir,
2820
+ $o,
2821
+ c,
2770
2822
  je,
2771
2823
  j
2772
- ]), Uo = j("editConflict");
2824
+ ]), rs = j("editConflict");
2773
2825
  b(() => {
2774
- let e = Ro.current;
2826
+ let e = Qo.current;
2775
2827
  if (!e || e.status === "pending") return;
2776
2828
  let t = Q(e.cell.row);
2777
2829
  if (!t) return;
2778
2830
  let n = {};
2779
2831
  for (let r of e.columns) {
2780
- let i = o.find((e) => e.id === r);
2781
- i && !Object.is(gt(i, t), e.originals[r]) && (n[r] = Uo);
2832
+ let i = c.find((e) => e.id === r);
2833
+ i && !Object.is(gt(i, t), e.originals[r]) && (n[r] = rs);
2782
2834
  }
2783
- Object.keys(n).length > 0 && Lo({
2835
+ Object.keys(n).length > 0 && Zo({
2784
2836
  ...e,
2785
2837
  status: "invalid",
2786
2838
  messages: {
@@ -2791,10 +2843,10 @@ function Er({ activatable: e, cellRenderers: t, columnGroups: n, columnOverflow:
2791
2843
  }, [
2792
2844
  L,
2793
2845
  Q,
2794
- o,
2795
- Uo
2846
+ c,
2847
+ rs
2796
2848
  ]);
2797
- let Wo = y((e, t, n) => {
2849
+ let is = y((e, t, n) => {
2798
2850
  De?.({
2799
2851
  key: e,
2800
2852
  reason: t,
@@ -2802,10 +2854,10 @@ function Er({ activatable: e, cellRenderers: t, columnGroups: n, columnOverflow:
2802
2854
  });
2803
2855
  }, [De]);
2804
2856
  b(() => {
2805
- let e = Mn.current;
2857
+ let e = Pn.current;
2806
2858
  if (!e) return;
2807
2859
  let t = 0, n = () => {
2808
- t = 0, ki(e.scrollTop), ji(Math.abs(e.scrollLeft));
2860
+ t = 0, Ui(e.scrollTop), Gi(Math.abs(e.scrollLeft));
2809
2861
  }, r = () => {
2810
2862
  t === 0 && (t = requestAnimationFrame(n));
2811
2863
  };
@@ -2814,17 +2866,17 @@ function Er({ activatable: e, cellRenderers: t, columnGroups: n, columnOverflow:
2814
2866
  let t = e.querySelector(":scope > [data-part=\"head\"]"), n = e.querySelector(":scope > [data-part=\"summary\"]");
2815
2867
  e.style.setProperty("--slotted-data-grid-pinned-top-offset", `${t?.offsetHeight ?? 0}px`), e.style.setProperty("--slotted-data-grid-pinned-bottom-offset", `${n?.offsetHeight ?? 0}px`);
2816
2868
  }, a = typeof ResizeObserver > "u" ? null : new ResizeObserver(() => {
2817
- Mi({
2869
+ Ki({
2818
2870
  width: e.clientWidth,
2819
2871
  height: e.clientHeight
2820
- }), ai(e.clientWidth), i();
2872
+ }), yi(e.clientWidth), i();
2821
2873
  });
2822
2874
  a?.observe(e);
2823
2875
  for (let t of e.querySelectorAll(":scope > [data-part=\"head\"], :scope > [data-part=\"summary\"]")) a?.observe(t);
2824
- Mi({
2876
+ Ki({
2825
2877
  width: e.clientWidth,
2826
2878
  height: e.clientHeight
2827
- }), a && ai(e.clientWidth), i();
2879
+ }), a && yi(e.clientWidth), i();
2828
2880
  let o = Ue(e, {
2829
2881
  orientation: () => "horizontal",
2830
2882
  onChange: (t) => {
@@ -2835,64 +2887,58 @@ function Er({ activatable: e, cellRenderers: t, columnGroups: n, columnOverflow:
2835
2887
  e.removeEventListener("scroll", r), t && cancelAnimationFrame(t), a?.disconnect(), o.destroy();
2836
2888
  };
2837
2889
  }, []);
2838
- let Go = di ? `${li}\u0002${ii}` : li, Ko = y((e, t) => {
2890
+ let as = Ti ? `${Ci}\u0002${vi}` : Ci, os = y((e, t) => {
2839
2891
  if (!t) return;
2840
- let n = typeof Jn != "number" && Ni === null;
2841
- if (!n && !Li) return;
2892
+ let n = typeof sr != "number" && qi === null;
2893
+ if (!n && !Zi) return;
2842
2894
  let r = t.getBoundingClientRect().height;
2843
- r !== 0 && (n && Pi(Math.round(r)), Li && Ii((t) => t.get(e) === r ? t : new Map(t).set(e, r)));
2895
+ r !== 0 && (n && Ji(Math.round(r)), Zi && Xi((t) => t.get(e) === r ? t : new Map(t).set(e, r)));
2844
2896
  }, [
2845
- Jn,
2846
- Ni,
2847
- Li,
2848
- Go
2849
- ]);
2850
- b(() => {
2851
- if (!Ve || !Pr || Ir || $n === "button" || Se === !0) return;
2852
- let e = G.length - Bi.endIndex;
2853
- (Ri ? e <= Qn : Oi + K.height >= (Mn.current?.scrollHeight ?? 0) - q * Qn) && Ve();
2897
+ sr,
2898
+ qi,
2899
+ Zi,
2900
+ as
2901
+ ]), ss = Ve !== void 0 && Jr === !0 && !Xr && Nr !== "button" && Se !== !0, cs = Math.max(0, G.length - Ar), ls = $i ? $i.offsetOf(cs) : cs * q, us = S(null), ds = S(Ve);
2902
+ ds.current = Ve, b(() => {
2903
+ let e = us.current;
2904
+ if (!ss || e === null || typeof IntersectionObserver > "u") return;
2905
+ let t = new IntersectionObserver((e) => {
2906
+ e.some((e) => e.isIntersecting) && ds.current?.();
2907
+ });
2908
+ return t.observe(e), () => t.disconnect();
2854
2909
  }, [
2855
- Ve,
2856
- Pr,
2857
- Ir,
2858
- $n,
2859
- Se,
2910
+ ss,
2860
2911
  G.length,
2861
- Bi.endIndex,
2862
- Ri,
2863
- Qn,
2864
- Oi,
2865
- K.height,
2866
- q
2912
+ ls
2867
2913
  ]);
2868
- let qo = () => A.current ? getComputedStyle(A.current).direction === "rtl" : !1, Jo = y(async (e) => {
2869
- let t = X ? Ot(Y, X) : [[e]], n = At(t, (e) => {
2870
- let t = Q(e.row), n = o.find((t) => t.id === e.column);
2871
- return t && n ? or(n, t) : "";
2914
+ let fs = () => k.current ? getComputedStyle(k.current).direction === "rtl" : !1, ps = y(async (e) => {
2915
+ let t = X ? kt(Y, X) : [[e]], n = jt(t, (e) => {
2916
+ let t = Q(e.row), n = c.find((t) => t.id === e.column);
2917
+ return t && n ? Br(n, t) : "";
2872
2918
  });
2873
- await ot(n, A.current?.ownerDocument) !== "refused" && Z(j("copied", { count: t.reduce((e, t) => e + t.length, 0) }));
2919
+ await ot(n, k.current?.ownerDocument) !== "refused" && Z(j("copied", { count: t.reduce((e, t) => e + t.length, 0) }));
2874
2920
  }, [
2875
2921
  X,
2876
2922
  Y,
2877
2923
  Q,
2878
- o,
2879
- or,
2924
+ c,
2925
+ Br,
2880
2926
  Z,
2881
2927
  j
2882
- ]), Yo = y((e, t) => {
2928
+ ]), ms = y((e, t) => {
2883
2929
  if (e.defaultPrevented) return;
2884
- let n = Ro.current, r = e.target, i = e.currentTarget, a = r !== i, o = e.key, s = qo();
2930
+ let n = Qo.current, r = e.target, i = e.currentTarget, a = r !== i, o = e.key, s = fs();
2885
2931
  if (n && E(n.cell, t)) {
2886
2932
  if (o === "Escape") {
2887
- e.preventDefault(), e.stopPropagation(), Vo();
2933
+ e.preventDefault(), e.stopPropagation(), ts();
2888
2934
  return;
2889
2935
  }
2890
2936
  if (o === "Enter") {
2891
- e.preventDefault(), $("keyboard", { move: Gn === "cell" ? "down" : "stay" });
2937
+ e.preventDefault(), $("keyboard", { move: ir === "cell" ? "down" : "stay" });
2892
2938
  return;
2893
2939
  }
2894
2940
  if (o === "Tab") {
2895
- Ho(t, e.shiftKey ? "previous" : "next") ? (e.preventDefault(), $("keyboard", { move: e.shiftKey ? "previous" : "next" })) : $("keyboard", { move: "stay" });
2941
+ ns(t, e.shiftKey ? "previous" : "next") ? (e.preventDefault(), $("keyboard", { move: e.shiftKey ? "previous" : "next" })) : $("keyboard", { move: "stay" });
2896
2942
  return;
2897
2943
  }
2898
2944
  if (o === "F2") {
@@ -2903,7 +2949,7 @@ function Er({ activatable: e, cellRenderers: t, columnGroups: n, columnOverflow:
2903
2949
  }
2904
2950
  if (n && n.columns.includes(t.column) && n.cell.row === t.row) {
2905
2951
  if (o === "Escape") {
2906
- e.preventDefault(), Vo();
2952
+ e.preventDefault(), ts();
2907
2953
  return;
2908
2954
  }
2909
2955
  if (o === "Enter") {
@@ -2926,7 +2972,7 @@ function Er({ activatable: e, cellRenderers: t, columnGroups: n, columnOverflow:
2926
2972
  if (a && !r.matches("a[href], button, input[type=\"checkbox\"], input[type=\"radio\"], [role=\"switch\"], [role=\"button\"], [role=\"checkbox\"]")) {
2927
2973
  if (o === "Escape") e.preventDefault(), i.focus();
2928
2974
  else if (o === "Tab") {
2929
- let t = [...i.querySelectorAll(fn)];
2975
+ let t = [...i.querySelectorAll(pn)];
2930
2976
  if (t.length > 1) {
2931
2977
  let n = t[(t.indexOf(r) + (e.shiftKey ? -1 : 1) + t.length) % t.length];
2932
2978
  e.preventDefault(), n?.focus();
@@ -2934,7 +2980,7 @@ function Er({ activatable: e, cellRenderers: t, columnGroups: n, columnOverflow:
2934
2980
  }
2935
2981
  return;
2936
2982
  }
2937
- let c = t.row === ut, l = H.get(t.column), u = Or(t.row) ? Q(t.row) : void 0, d = {
2983
+ let c = t.row === ut, l = H.get(t.column), u = Mr(t.row) ? Q(t.row) : void 0, d = {
2938
2984
  ArrowUp: "up",
2939
2985
  ArrowDown: "down",
2940
2986
  ArrowLeft: s ? "end" : "start",
@@ -2945,18 +2991,18 @@ function Er({ activatable: e, cellRenderers: t, columnGroups: n, columnOverflow:
2945
2991
  PageDown: "pageDown"
2946
2992
  };
2947
2993
  if (c && l) {
2948
- if ((o === "ContextMenu" || o === "F10" && e.shiftKey) && !r.closest(hr)) {
2949
- e.preventDefault(), ka.current = Date.now(), Aa(t.column, i, i);
2994
+ if ((o === "ContextMenu" || o === "F10" && e.shiftKey) && !r.closest(vr)) {
2995
+ e.preventDefault(), Ua.current = Date.now(), Wa(t.column, i, i);
2950
2996
  return;
2951
2997
  }
2952
2998
  if ((e.ctrlKey || e.metaKey) && e.shiftKey && (o === "ArrowLeft" || o === "ArrowRight")) {
2953
2999
  e.preventDefault();
2954
3000
  let n = o === "ArrowRight" !== s;
2955
- za(t.column, n ? ft : -ft, e);
3001
+ $a(t.column, n ? ft : -ft, e);
2956
3002
  return;
2957
3003
  }
2958
3004
  if ((e.ctrlKey || e.metaKey) && e.shiftKey && o === "Enter") {
2959
- e.preventDefault(), Ua(t.column, "keyboard", e);
3005
+ e.preventDefault(), ro(t.column, "keyboard", e);
2960
3006
  return;
2961
3007
  }
2962
3008
  if (o === "F2" && !a) {
@@ -2967,56 +3013,56 @@ function Er({ activatable: e, cellRenderers: t, columnGroups: n, columnOverflow:
2967
3013
  if (e.altKey && (o === "ArrowLeft" || o === "ArrowRight")) {
2968
3014
  e.preventDefault();
2969
3015
  let n = o === "ArrowRight" !== s;
2970
- Wa(t.column, n ? 1 : -1, e), fa.current = t;
3016
+ io(t.column, n ? 1 : -1, e), Ea.current = t;
2971
3017
  return;
2972
3018
  }
2973
3019
  if ((e.ctrlKey || e.metaKey) && o === "Enter") {
2974
- e.preventDefault(), ja(), Ea(t.column);
3020
+ e.preventDefault(), Ga(), Ba(t.column);
2975
3021
  return;
2976
3022
  }
2977
3023
  if (o === "Enter" || o === " ") {
2978
3024
  if (a) return;
2979
- e.preventDefault(), ya(t.column, e.shiftKey, e, "keyboard");
3025
+ e.preventDefault(), Na(t.column, e.shiftKey, e, "keyboard");
2980
3026
  return;
2981
3027
  }
2982
3028
  }
2983
- if (Ct(t.row) && (o === "ArrowRight" || o === "ArrowLeft") && !e.shiftKey) {
2984
- let n = t.row.slice(lt.length), r = Xr === "all" || Xr.includes(n);
3029
+ if (wt(t.row) && (o === "ArrowRight" || o === "ArrowLeft") && !e.shiftKey) {
3030
+ let n = t.row.slice(lt.length), r = ui === "all" || ui.includes(n);
2985
3031
  if (o === "ArrowRight" !== s !== r) {
2986
- e.preventDefault(), Fo(n, e, "keyboard");
3032
+ e.preventDefault(), Yo(n, e, "keyboard");
2987
3033
  return;
2988
3034
  }
2989
3035
  }
2990
3036
  if (u && e.altKey && (o === "ArrowUp" || o === "ArrowDown")) {
2991
- e.preventDefault(), go(t.row, o === "ArrowDown" ? 1 : -1, e), fa.current = t;
3037
+ e.preventDefault(), Ao(t.row, o === "ArrowDown" ? 1 : -1, e), Ea.current = t;
2992
3038
  return;
2993
3039
  }
2994
- if (u && Oo !== null && t.column === Oo && (o === "ArrowRight" || o === "ArrowLeft") && !e.shiftKey) {
2995
- let n = ro.get(t.row), r = n !== void 0 && (n.childCount > 0 || O?.hasChildren?.(u) === !0), i = o === "ArrowRight" !== s;
3040
+ if (u && Ho !== null && t.column === Ho && (o === "ArrowRight" || o === "ArrowLeft") && !e.shiftKey) {
3041
+ let n = vo.get(t.row), r = n !== void 0 && (n.childCount > 0 || A?.hasChildren?.(u) === !0), i = o === "ArrowRight" !== s;
2996
3042
  if (n && r && i !== n.open) {
2997
- e.preventDefault(), No(t.row, e, "keyboard");
3043
+ e.preventDefault(), qo(t.row, e, "keyboard");
2998
3044
  return;
2999
3045
  }
3000
3046
  if (n && !i && n.parent !== null) {
3001
- e.preventDefault(), ma({
3047
+ e.preventDefault(), Oa({
3002
3048
  row: n.parent,
3003
3049
  column: t.column
3004
3050
  }, "keyboard", e);
3005
3051
  return;
3006
3052
  }
3007
3053
  }
3008
- if (u && t.column === "__expander" && (o === "ArrowRight" || o === "ArrowLeft") && !e.shiftKey && Ar(u)) {
3009
- let n = To.has(t.row);
3054
+ if (u && t.column === "__expander" && (o === "ArrowRight" || o === "ArrowLeft") && !e.shiftKey && Wr(u)) {
3055
+ let n = zo.has(t.row);
3010
3056
  if (o === "ArrowRight" !== s !== n) {
3011
- e.preventDefault(), Do(t.row, e, "keyboard");
3057
+ e.preventDefault(), Vo(t.row, e, "keyboard");
3012
3058
  return;
3013
3059
  }
3014
3060
  }
3015
3061
  if (o === " " && e.shiftKey && u) {
3016
3062
  if (e.preventDefault(), M === "range") {
3017
- let n = Nt(Y, t.row);
3018
- n && Kr(n, "keyboard", e);
3019
- } else ta(t.row, {
3063
+ let n = Pt(Y, t.row);
3064
+ n && oi(n, "keyboard", e);
3065
+ } else ha(t.row, {
3020
3066
  range: !1,
3021
3067
  source: e,
3022
3068
  reason: "keyboard"
@@ -3025,8 +3071,8 @@ function Er({ activatable: e, cellRenderers: t, columnGroups: n, columnOverflow:
3025
3071
  }
3026
3072
  if (o === " " && (e.ctrlKey || e.metaKey) && M === "range" && l) {
3027
3073
  e.preventDefault();
3028
- let n = _t(Y, t.column);
3029
- n && Kr(n, "keyboard", e);
3074
+ let n = vt(Y, t.column);
3075
+ n && oi(n, "keyboard", e);
3030
3076
  return;
3031
3077
  }
3032
3078
  if ((o === "a" || o === "A") && (e.ctrlKey || e.metaKey) && !a) {
@@ -3034,198 +3080,198 @@ function Er({ activatable: e, cellRenderers: t, columnGroups: n, columnOverflow:
3034
3080
  e.preventDefault(), (it({
3035
3081
  action: "all",
3036
3082
  mode: "multiple",
3037
- selected: qi,
3083
+ selected: sa,
3038
3084
  keys: J
3039
- }).changed || Qi < J.length) && ea(J, "select", e);
3085
+ }).changed || fa < J.length) && ma(J, "select", e);
3040
3086
  return;
3041
3087
  }
3042
3088
  if (M === "range") {
3043
3089
  e.preventDefault();
3044
- let t = Rt(Y);
3045
- t && Kr(t, "keyboard", e);
3090
+ let t = zt(Y);
3091
+ t && oi(t, "keyboard", e);
3046
3092
  return;
3047
3093
  }
3048
3094
  }
3049
3095
  if ((o === "c" || o === "C") && (e.ctrlKey || e.metaKey) && !a) {
3050
3096
  let n = i.ownerDocument.getSelection();
3051
3097
  if (n && n.toString().length > 0) return;
3052
- e.preventDefault(), Jo(t);
3098
+ e.preventDefault(), ps(t);
3053
3099
  return;
3054
3100
  }
3055
- if (o === "Escape" && M === "range" && Gr) {
3056
- e.preventDefault(), Kr(null, "clear", e);
3101
+ if (o === "Escape" && M === "range" && ai) {
3102
+ e.preventDefault(), oi(null, "clear", e);
3057
3103
  return;
3058
3104
  }
3059
3105
  if (u && (l || t.column === dt) && (o === "Enter" || o === "F2")) {
3060
3106
  if (l !== void 0 && F(l.column, u) && !a) {
3061
- e.preventDefault(), zo(t);
3107
+ e.preventDefault(), $o(t);
3062
3108
  return;
3063
3109
  }
3064
- let n = i.querySelectorAll(fn);
3110
+ let n = i.querySelectorAll(pn);
3065
3111
  if (!a && n.length > 0) {
3066
3112
  e.preventDefault(), n[0].focus();
3067
3113
  return;
3068
3114
  }
3069
- if (o === "Enter" && nr && !a) {
3070
- e.preventDefault(), Wo(t.row, "keyboard", e);
3115
+ if (o === "Enter" && Ir && !a) {
3116
+ e.preventDefault(), is(t.row, "keyboard", e);
3071
3117
  return;
3072
3118
  }
3073
3119
  }
3074
3120
  if (u && l && !a && o.length === 1 && !e.ctrlKey && !e.metaKey && !e.altKey && (l.kind === "text" || l.kind === "number") && F(l.column, u)) {
3075
3121
  if (l.kind === "number" && !/[0-9.,-]/.test(o)) return;
3076
- e.preventDefault(), zo(t, o);
3122
+ e.preventDefault(), $o(t, o);
3077
3123
  return;
3078
3124
  }
3079
3125
  let f = d[o];
3080
3126
  if (!f || a && (o === "ArrowLeft" || o === "ArrowRight" || o === "Home" || o === "End") && r.matches("input:not([type=\"checkbox\"]):not([type=\"radio\"]), textarea")) return;
3081
3127
  e.preventDefault();
3082
- let p = Ci(wt(Y, t, f));
3128
+ let p = Li(Tt(Y, t, f));
3083
3129
  if (e.shiftKey && o.startsWith("Arrow")) {
3084
- if (M === "range" && Or(p.row)) {
3085
- let n = Gr?.anchor ?? t;
3086
- Kr({
3130
+ if (M === "range" && Mr(p.row)) {
3131
+ let n = ai?.anchor ?? t;
3132
+ oi({
3087
3133
  anchor: n,
3088
3134
  focus: p
3089
3135
  }, "keyboard", e);
3090
- } else M === "multiple" && (o === "ArrowUp" || o === "ArrowDown") && Or(p.row) && ta(p.row, {
3136
+ } else M === "multiple" && (o === "ArrowUp" || o === "ArrowDown") && Mr(p.row) && ha(p.row, {
3091
3137
  range: !0,
3092
3138
  source: e,
3093
3139
  reason: "keyboard"
3094
3140
  });
3095
3141
  }
3096
- E(p, t) || ma(p, "keyboard", e);
3142
+ E(p, t) || Oa(p, "keyboard", e);
3097
3143
  }, [
3098
- Vo,
3144
+ ts,
3099
3145
  $,
3100
- Gn,
3101
- Ho,
3146
+ ir,
3147
+ ns,
3102
3148
  H,
3103
3149
  Q,
3104
- za,
3105
- Ua,
3106
- Wa,
3107
- ya,
3108
- Xr,
3109
- Fo,
3110
- Ar,
3111
- To,
3112
- Do,
3113
- Oo,
3150
+ $a,
3114
3151
  ro,
3115
- O,
3116
- No,
3117
- go,
3152
+ io,
3153
+ Na,
3154
+ ui,
3155
+ Yo,
3156
+ Wr,
3157
+ zo,
3158
+ Vo,
3159
+ Ho,
3160
+ vo,
3161
+ A,
3162
+ qo,
3163
+ Ao,
3118
3164
  M,
3119
3165
  Y,
3120
- Kr,
3121
- ta,
3122
- qi,
3166
+ oi,
3167
+ ha,
3168
+ sa,
3123
3169
  J,
3124
- Qi,
3125
- ea,
3126
- Jo,
3127
- Gr,
3128
- F,
3129
- zo,
3130
- nr,
3131
- Wo,
3170
+ fa,
3132
3171
  ma,
3133
- Aa,
3134
- ja,
3135
- Ci
3136
- ]), Xo = S(""), Zo = S(-Infinity), Qo = y((e, t) => {
3137
- if (Xo.current = e.pointerType ?? "", e.button !== 0) return;
3138
- Qa.current = !1;
3139
- let n = Ro.current;
3140
- n && !E(n.cell, t) && !(n.cell.row === t.row && n.columns.includes(t.column)) && $("blur", { move: "stay" }), E(t, z) || qr(t, "pointer", e), M === "range" && Or(t.row) && (hn(e) || (ca(t, e.shiftKey, e), oa(!0)));
3172
+ ps,
3173
+ ai,
3174
+ F,
3175
+ $o,
3176
+ Ir,
3177
+ is,
3178
+ Oa,
3179
+ Wa,
3180
+ Ga,
3181
+ Li
3182
+ ]), hs = S(""), gs = S(-Infinity), _s = y((e, t) => {
3183
+ if (hs.current = e.pointerType ?? "", e.button !== 0) return;
3184
+ po.current = !1;
3185
+ let n = Qo.current;
3186
+ n && !E(n.cell, t) && !(n.cell.row === t.row && n.columns.includes(t.column)) && $("blur", { move: "stay" }), E(t, z) || si(t, "pointer", e), M === "range" && Mr(t.row) && (gn(e) || (Sa(t, e.shiftKey, e), ba(!0)));
3141
3187
  }, [
3142
3188
  $,
3143
3189
  z,
3144
- qr,
3190
+ si,
3145
3191
  M,
3146
- ca
3147
- ]), $o = y((e, t) => {
3148
- aa && e.buttons === 1 && la(t, e);
3149
- }, [aa, la]);
3192
+ Sa
3193
+ ]), vs = y((e, t) => {
3194
+ ya && e.buttons === 1 && Ca(t, e);
3195
+ }, [ya, Ca]);
3150
3196
  b(() => {
3151
- if (!aa) return;
3152
- let e = () => oa(!1), t = A.current?.ownerDocument ?? document;
3197
+ if (!ya) return;
3198
+ let e = () => ba(!1), t = k.current?.ownerDocument ?? document;
3153
3199
  return t.addEventListener("pointerup", e), t.addEventListener("pointercancel", e), () => {
3154
3200
  t.removeEventListener("pointerup", e), t.removeEventListener("pointercancel", e);
3155
3201
  };
3156
- }, [aa]);
3157
- let es = y((e, t) => {
3158
- let n = Xo.current;
3159
- if (Xo.current = "", Qa.current) {
3160
- Qa.current = !1;
3202
+ }, [ya]);
3203
+ let ys = y((e, t) => {
3204
+ let n = hs.current;
3205
+ if (hs.current = "", po.current) {
3206
+ po.current = !1;
3161
3207
  return;
3162
3208
  }
3163
- if (hn(e)) return;
3209
+ if (gn(e)) return;
3164
3210
  if (t.row === ut && H.get(t.column)?.sortable) {
3165
- ya(t.column, e.shiftKey, e, "pointer");
3211
+ Na(t.column, e.shiftKey, e, "pointer");
3166
3212
  return;
3167
3213
  }
3168
- if (Ct(t.row)) {
3169
- Fo(t.row.slice(lt.length), e);
3214
+ if (wt(t.row)) {
3215
+ Yo(t.row.slice(lt.length), e);
3170
3216
  return;
3171
3217
  }
3172
- if (!Or(t.row)) return;
3173
- M === "single" && !sr.has(t.row) && ta(t.row, {
3218
+ if (!Mr(t.row)) return;
3219
+ M === "single" && !Vr.has(t.row) && ha(t.row, {
3174
3220
  range: !1,
3175
3221
  source: e
3176
3222
  });
3177
- let r = Ro.current, i = r !== null && r.cell.row === t.row && r.columns.includes(t.column);
3178
- nr && (n === "touch" || n === "pen") && !i && (Zo.current = Date.now(), Wo(t.row, "pointer", e));
3223
+ let r = Qo.current, i = r !== null && r.cell.row === t.row && r.columns.includes(t.column);
3224
+ Ir && (n === "touch" || n === "pen") && !i && (gs.current = Date.now(), is(t.row, "pointer", e));
3179
3225
  }, [
3180
3226
  H,
3181
- ya,
3182
- Fo,
3227
+ Na,
3228
+ Yo,
3183
3229
  M,
3184
- sr,
3185
- ta,
3186
- nr,
3187
- Wo
3188
- ]), ts = y((e, t) => {
3189
- if (hn(e) || Date.now() - Zo.current < _r) return;
3190
- let n = Q(t.row), r = o.find((e) => e.id === t.column);
3230
+ Vr,
3231
+ ha,
3232
+ Ir,
3233
+ is
3234
+ ]), bs = y((e, t) => {
3235
+ if (gn(e) || Date.now() - gs.current < br) return;
3236
+ let n = Q(t.row), r = c.find((e) => e.id === t.column);
3191
3237
  if (n) {
3192
- if (r && F(r, n) && !nr) {
3193
- zo(t);
3238
+ if (r && F(r, n) && !Ir) {
3239
+ $o(t);
3194
3240
  return;
3195
3241
  }
3196
- nr ? Wo(t.row, "pointer", e) : r && F(r, n) && zo(t);
3242
+ Ir ? is(t.row, "pointer", e) : r && F(r, n) && $o(t);
3197
3243
  }
3198
3244
  }, [
3199
3245
  Q,
3200
- o,
3246
+ c,
3201
3247
  F,
3202
- nr,
3203
- zo,
3204
- Wo
3205
- ]), ns = y((e) => {
3206
- da(!0), E(e, z) || qr(e, "programmatic");
3207
- }, [z, qr]), rs = y(() => {}, []), is = y((e) => {
3248
+ Ir,
3249
+ $o,
3250
+ is
3251
+ ]), xs = y((e) => {
3252
+ Ta(!0), E(e, z) || si(e, "programmatic");
3253
+ }, [z, si]), Ss = y(() => {}, []), Cs = y((e) => {
3208
3254
  let t = e.relatedTarget;
3209
3255
  if (!t || !e.currentTarget.contains(t)) {
3210
- da(!1);
3211
- let e = Ro.current;
3256
+ Ta(!1);
3257
+ let e = Qo.current;
3212
3258
  e && e.status === "editing" && $("blur", { move: "stay" });
3213
3259
  }
3214
- }, [$]), as = y((e) => {
3215
- let n = t?.[e.column.id];
3216
- return n ? n(e) : Pt ? Pt(e) : Vn(e);
3217
- }, [t, Pt]), os = y((e) => {
3218
- let t = re?.[e.column.id];
3219
- return t ? t(e) : Yt ? Yt(e) : Wn(e, j, N);
3260
+ }, [$]), ws = y((e) => {
3261
+ let t = Fn.current.cellRenderers?.[e.column.id];
3262
+ return t ? t(e) : Rn ? Rn(e) : Wn(e);
3263
+ }, [Kn, Rn]), Ts = y((e) => {
3264
+ let t = Fn.current.editorRenderers?.[e.column.id];
3265
+ return t ? t(e) : Vn ? Vn(e) : Jn(e, j, N);
3220
3266
  }, [
3221
- re,
3222
- Yt,
3267
+ qn,
3268
+ Vn,
3223
3269
  j,
3224
3270
  N
3225
- ]), ss = y((e, t = "nearest") => {
3226
- let n = G.findIndex((t) => t.key === e), r = Mn.current;
3271
+ ]), Es = y((e, t = "nearest") => {
3272
+ let n = G.findIndex((t) => t.key === e), r = Pn.current;
3227
3273
  if (n === -1 || !r) return;
3228
- let i = zi ? zi.offsetOf(n) : n * q, a = r.querySelector("[data-part=\"head\"]")?.offsetHeight ?? 0, o = i;
3274
+ let i = $i ? $i.offsetOf(n) : n * q, a = r.querySelector("[data-part=\"head\"]")?.offsetHeight ?? 0, o = i;
3229
3275
  if (t === "center") o = i - K.height / 2 + q;
3230
3276
  else if (t === "end") o = i - K.height + q + a;
3231
3277
  else if (t === "nearest") {
@@ -3233,365 +3279,367 @@ function Er({ activatable: e, cellRenderers: t, columnGroups: n, columnOverflow:
3233
3279
  if (i >= e && i + q <= t) return;
3234
3280
  o = i < e ? i : i - K.height + q + a;
3235
3281
  }
3236
- r.scrollTo({ top: Math.max(0, o) }), Ri && Ui([e]);
3282
+ r.scrollTo({ top: Math.max(0, o) }), Qi && ra([e]);
3237
3283
  }, [
3238
3284
  G,
3239
- zi,
3285
+ $i,
3240
3286
  q,
3241
3287
  K.height,
3242
- Ri
3243
- ]), cs = y((e) => {
3244
- let t = Mn.current, n = H.get(e);
3288
+ Qi
3289
+ ]), Ds = y((e) => {
3290
+ let t = Pn.current, n = H.get(e);
3245
3291
  if (!t || !n || n.pinned) return;
3246
- let r = ti.reduce((e, t) => e + t, 0);
3292
+ let r = hi.reduce((e, t) => e + t, 0);
3247
3293
  for (let t of V) {
3248
3294
  if (t.id === e) break;
3249
3295
  (t.pinned === null || t.pinned === "start") && (r += t.width);
3250
3296
  }
3251
- let i = V.filter((e) => e.pinned === "start").reduce((e, t) => e + t.width, 0) + ti.reduce((e, t) => e + t, 0), a = V.filter((e) => e.pinned === "end").reduce((e, t) => e + t.width, 0), o = Math.abs(t.scrollLeft);
3297
+ let i = V.filter((e) => e.pinned === "start").reduce((e, t) => e + t.width, 0) + hi.reduce((e, t) => e + t, 0), a = V.filter((e) => e.pinned === "end").reduce((e, t) => e + t.width, 0), o = Math.abs(t.scrollLeft);
3252
3298
  r < o + i ? t.scrollTo({ left: r - i }) : r + n.width > o + K.width - a && t.scrollTo({ left: r + n.width - K.width + a });
3253
3299
  }, [
3254
3300
  H,
3255
- ti,
3301
+ hi,
3256
3302
  V,
3257
3303
  K.width
3258
- ]), ls = y((e = {}) => {
3259
- let { filename: t, rows: n, columns: r, ...i } = e, a = zr === "client" ? vi.rows : L, s = n === "selected" ? a.filter((e) => Ji.has(P(e))) : a, c = r === "all" ? o : V.map((e) => e.column);
3260
- return Lt(s, c, {
3304
+ ]), Os = y((e = {}) => {
3305
+ let { filename: t, rows: n, columns: r, ...i } = e, a = $r === "client" ? Mi.rows : L, o = n === "selected" ? a.filter((e) => ca.has(P(e))) : a, s = r === "all" ? c : V.map((e) => e.column);
3306
+ return Rt(o, s, {
3261
3307
  locale: N,
3262
- timeZone: xn,
3308
+ timeZone: Sn,
3263
3309
  ...i,
3264
- booleans: i.booleans ?? ar.booleans
3310
+ booleans: i.booleans ?? zr.booleans
3265
3311
  });
3266
3312
  }, [
3267
- zr,
3268
- vi.rows,
3313
+ $r,
3314
+ Mi.rows,
3269
3315
  L,
3270
- Ji,
3316
+ ca,
3271
3317
  P,
3272
- o,
3318
+ c,
3273
3319
  V,
3274
3320
  N,
3275
- xn,
3276
- ar.booleans
3321
+ Sn,
3322
+ zr.booleans
3277
3323
  ]);
3278
3324
  ze(he, () => ({
3279
- focusCell: (e) => ma(e, "programmatic"),
3280
- scrollToRow: ss,
3281
- scrollToColumn: cs,
3325
+ focusCell: (e) => Oa(e, "programmatic"),
3326
+ scrollToRow: Es,
3327
+ scrollToColumn: Ds,
3282
3328
  scrollToCell: (e) => {
3283
- ss(e.row), cs(e.column);
3329
+ Es(e.row), Ds(e.column);
3284
3330
  },
3285
3331
  startEdit: (e) => {
3286
- ma(e, "programmatic"), zo(e);
3332
+ Oa(e, "programmatic"), $o(e);
3287
3333
  },
3288
- stopEdit: (e) => e?.commit === !1 ? Vo() : $("programmatic"),
3289
- autofit: (e) => Ua(e ?? null, "programmatic"),
3334
+ stopEdit: (e) => e?.commit === !1 ? ts() : $("programmatic"),
3335
+ autofit: (e) => ro(e ?? null, "programmatic"),
3290
3336
  getOutOfSpace: () => B,
3291
- getVisibleRows: () => zr === "client" ? vi.rows : L,
3292
- toCsv: ls,
3293
- reload: Mr.reload,
3337
+ getVisibleRows: () => $r === "client" ? Mi.rows : L,
3338
+ toCsv: Os,
3339
+ reload: Kr.reload,
3294
3340
  exportCsv: (e = {}) => {
3295
- let t = ls(e), n = A.current?.ownerDocument ?? document, r = URL.createObjectURL(new Blob([t], { type: "text/csv;charset=utf-8" })), i = n.createElement("a");
3341
+ let t = Os(e), n = k.current?.ownerDocument ?? document, r = URL.createObjectURL(new Blob([t], { type: "text/csv;charset=utf-8" })), i = n.createElement("a");
3296
3342
  i.href = r, i.download = e.filename ?? "export.csv", i.click(), URL.revokeObjectURL(r);
3297
3343
  },
3298
- selectAll: () => ea(J, "programmatic", void 0),
3299
- clearSelection: () => ea([], "programmatic", void 0),
3344
+ selectAll: () => ma(J, "programmatic", void 0),
3345
+ clearSelection: () => ma([], "programmatic", void 0),
3300
3346
  get element() {
3301
- return A.current;
3347
+ return k.current;
3302
3348
  }
3303
3349
  }), [
3304
- ma,
3305
- ss,
3306
- cs,
3307
- zo,
3308
- Vo,
3350
+ Oa,
3351
+ Es,
3352
+ Ds,
3353
+ $o,
3354
+ ts,
3309
3355
  $,
3310
- Ua,
3356
+ ro,
3311
3357
  B,
3312
- zr,
3313
- vi.rows,
3358
+ $r,
3359
+ Mi.rows,
3314
3360
  L,
3315
- ls,
3316
- Mr.reload,
3317
- ea,
3361
+ Os,
3362
+ Kr.reload,
3363
+ ma,
3318
3364
  J
3319
3365
  ]);
3320
- let us = y((e) => {
3321
- A.current = e, typeof Et == "function" ? Et(e) : Et && (Et.current = e);
3322
- }, [Et]), ds = x(() => X ? `${X.rowEnd - X.rowStart + 1} × ${X.columnEnd - X.columnStart + 1}` : null, [X]), fs = S(null), ps = Fr === "initial" || Fr === !0 && fs.current !== "empty";
3323
- !Ir && !Lr && (fs.current = L.length > 0 ? "rows" : "empty");
3324
- let ms = Lr ? "error" : ps && L.length === 0 ? "loading" : G.length > 0 ? "rows" : I.filter || I.search.trim() ? "no-results" : "empty", hs = x(() => {
3366
+ let ks = y((e) => {
3367
+ k.current = e, typeof xt == "function" ? xt(e) : xt && (xt.current = e);
3368
+ }, [xt]), As = x(() => X ? `${X.rowEnd - X.rowStart + 1} × ${X.columnEnd - X.columnStart + 1}` : null, [X]), js = S(null), Ms = Yr === "initial" || Yr === !0 && js.current !== "empty";
3369
+ !Xr && !Zr && (js.current = L.length > 0 ? "rows" : "empty");
3370
+ let Ns = Zr ? "error" : Ms && L.length === 0 ? "loading" : G.length > 0 ? "rows" : I.filter || I.search.trim() ? "no-results" : "empty", Ps = x(() => {
3325
3371
  let e = I.page?.size;
3326
- return K.height === 0 ? er : Math.max(1, Math.min(e ?? Infinity, Math.ceil(K.height / q)));
3372
+ return K.height === 0 ? Fr : Math.max(1, Math.min(e ?? Infinity, Math.ceil(K.height / q)));
3327
3373
  }, [
3328
3374
  I.page?.size,
3329
3375
  K.height,
3330
3376
  q,
3331
- er
3332
- ]), gs = x(() => z ?? {
3377
+ Fr
3378
+ ]), Fs = x(() => z ?? {
3333
3379
  row: ut,
3334
3380
  column: U[0] ?? ""
3335
- }, [z, U]), _s = x(() => ({
3336
- id: jn,
3381
+ }, [z, U]), Is = x(() => ({
3382
+ id: Nn,
3337
3383
  t: j,
3338
3384
  locale: N,
3339
- booleans: ar.booleans,
3340
- timeZone: xn,
3341
- columns: o,
3385
+ booleans: zr.booleans,
3386
+ timeZone: Sn,
3387
+ columns: c,
3342
3388
  resolved: V,
3343
3389
  resolvedById: H,
3344
3390
  columnIds: U,
3345
- mountedColumns: Ki,
3346
- columnsWindowed: Gi,
3347
- popinColumns: ui,
3348
- popinAggregated: bi,
3349
- popinIndex: mi,
3350
- hasPopinCell: Si,
3391
+ mountedColumns: oa,
3392
+ columnsWindowed: aa,
3393
+ popinColumns: wi,
3394
+ popinAggregated: Pi,
3395
+ popinIndex: Oi,
3396
+ hasPopinCell: Ii,
3351
3397
  query: I,
3352
3398
  nodes: G,
3353
- total: yi,
3399
+ total: Ni,
3354
3400
  selectionMode: M,
3355
- editMode: Gn,
3356
- filterRow: Kn,
3357
- activatable: nr,
3401
+ editMode: ir,
3402
+ filterRow: ar,
3403
+ activatable: Ir,
3358
3404
  rowKeyOf: P,
3359
- textOf: or,
3405
+ textOf: Br,
3360
3406
  valueOf: gt,
3361
3407
  isEditable: F,
3362
- anyEditable: kr,
3363
- isDisabled: Er,
3364
- isExpandable: Ar,
3408
+ anyEditable: Ur,
3409
+ isDisabled: Hr,
3410
+ isExpandable: Wr,
3365
3411
  current: z,
3366
- tabStop: gs,
3367
- focused: ua,
3368
- setCurrent: ma,
3369
- isSelected: Xi,
3370
- selectedCount: Qi,
3371
- toggleSelected: ta,
3372
- toggleAll: na,
3373
- allState: $i,
3412
+ tabStop: Fs,
3413
+ focused: wa,
3414
+ setCurrent: Oa,
3415
+ isSelected: ua,
3416
+ selectedCount: fa,
3417
+ toggleSelected: ha,
3418
+ toggleAll: ga,
3419
+ allState: pa,
3374
3420
  selectableCount: J.length,
3375
3421
  rangeBounds: X,
3376
- rangeInfo: ia,
3377
- changedOf: wo,
3378
- beginRange: ca,
3379
- extendRange: la,
3380
- rangeDragging: aa,
3381
- isExpanded: Eo,
3382
- toggleExpanded: Do,
3383
- toggleBranch: No,
3384
- treeColumn: Oo,
3385
- hasChildren: Mo,
3386
- rowsReorderable: io,
3387
- attachRowDraggable: mo,
3388
- rowLabelOf: uo,
3389
- isLoadingChildren: jo,
3390
- toggleGroup: Fo,
3391
- sortOf: ga,
3392
- pressSort: ya,
3393
- setSort: ba,
3394
- filterOf: xa,
3395
- setFilter: Sa,
3396
- filterOpen: Ca,
3397
- setFilterOpen: wa,
3398
- menuOpen: Ta,
3399
- setMenuOpen: Ea,
3400
- menuAnchor: Da,
3401
- anchorToButton: ja,
3402
- onHeaderContextMenu: Ma,
3403
- filterDebounce: Zn,
3404
- countsFor: Pa,
3405
- pin: Ia,
3406
- hide: La,
3407
- resizeBy: za,
3408
- resizeTo: Ra,
3409
- autofit: Ua,
3410
- moveColumn: Wa,
3411
- resizing: Ga,
3412
- setResizing: Ka,
3413
- dragging: qa.dragging,
3414
- dropTarget: qa.target,
3415
- draggingRow: ao.dragging,
3416
- dropOffset: qa.offset,
3417
- attachDraggable: to,
3422
+ rangeInfo: va,
3423
+ changedOf: Ro,
3424
+ beginRange: Sa,
3425
+ extendRange: Ca,
3426
+ rangeDragging: ya,
3427
+ isExpanded: Bo,
3428
+ toggleExpanded: Vo,
3429
+ toggleBranch: qo,
3430
+ treeColumn: Ho,
3431
+ hasChildren: Ko,
3432
+ rowsReorderable: yo,
3433
+ attachRowDraggable: Oo,
3434
+ rowLabelOf: To,
3435
+ isLoadingChildren: Go,
3436
+ toggleGroup: Yo,
3437
+ sortOf: Aa,
3438
+ pressSort: Na,
3439
+ setSort: Pa,
3440
+ filterOf: Fa,
3441
+ setFilter: Ia,
3442
+ filterOpen: La,
3443
+ setFilterOpen: Ra,
3444
+ menuOpen: za,
3445
+ setMenuOpen: Ba,
3446
+ menuAnchor: Va,
3447
+ anchorToButton: Ga,
3448
+ onHeaderContextMenu: Ka,
3449
+ filterDebounce: ur,
3450
+ countsFor: Ja,
3451
+ pin: Xa,
3452
+ hide: Za,
3453
+ resizeBy: $a,
3454
+ resizeTo: Qa,
3455
+ autofit: ro,
3456
+ moveColumn: io,
3457
+ resizing: ao,
3458
+ setResizing: oo,
3459
+ resizeMode: Pr,
3460
+ dragging: so.dragging,
3461
+ dropTarget: so.target,
3462
+ draggingRow: bo.dragging,
3463
+ dropOffset: so.offset,
3464
+ attachDraggable: go,
3418
3465
  onManageColumns: He,
3419
- edit: Io,
3420
- startEdit: zo,
3421
- setDraft: Bo,
3466
+ edit: Xo,
3467
+ startEdit: $o,
3468
+ setDraft: es,
3422
3469
  commitEdit: $,
3423
- cancelEdit: Vo,
3424
- activate: Wo,
3425
- renderCellContent: as,
3426
- renderEditorContent: os,
3427
- renderHeaderContent: $t,
3428
- renderDetail: Ft,
3429
- renderGroup: Qt,
3430
- renderFilterOperand: Zt,
3431
- onCellPointerDown: Qo,
3432
- onCellPointerEnter: $o,
3433
- onCellClick: es,
3434
- onCellDoubleClick: ts,
3435
- onCellKeyDown: Yo,
3436
- onCellFocus: ns,
3437
- onCellBlur: rs,
3470
+ cancelEdit: ts,
3471
+ activate: is,
3472
+ renderCellContent: ws,
3473
+ renderEditorContent: Ts,
3474
+ renderHeaderContent: Gn,
3475
+ renderDetail: zn,
3476
+ renderGroup: Hn,
3477
+ renderFilterOperand: Qt,
3478
+ onCellPointerDown: _s,
3479
+ onCellPointerEnter: vs,
3480
+ onCellClick: ys,
3481
+ onCellDoubleClick: bs,
3482
+ onCellKeyDown: ms,
3483
+ onCellFocus: xs,
3484
+ onCellBlur: Ss,
3438
3485
  announce: Z,
3439
- detailId: (e) => `${jn}detail-${e}`,
3440
- rangeSummary: ds
3486
+ detailId: (e) => `${Nn}detail-${e}`,
3487
+ rangeSummary: As
3441
3488
  }), [
3442
- jn,
3489
+ Nn,
3443
3490
  j,
3444
3491
  N,
3445
- ar.booleans,
3446
- xn,
3447
- o,
3492
+ zr.booleans,
3493
+ Sn,
3494
+ c,
3448
3495
  V,
3449
3496
  H,
3450
3497
  U,
3451
- Ki,
3452
- Gi,
3453
- ui,
3454
- bi,
3455
- mi,
3456
- Si,
3498
+ oa,
3499
+ aa,
3500
+ wi,
3501
+ Pi,
3502
+ Oi,
3503
+ Ii,
3457
3504
  I,
3458
3505
  G,
3459
- yi,
3506
+ Ni,
3460
3507
  M,
3461
- Gn,
3462
- Kn,
3463
- nr,
3508
+ ir,
3509
+ ar,
3510
+ Ir,
3464
3511
  P,
3465
- or,
3512
+ Br,
3466
3513
  F,
3467
- kr,
3468
- Er,
3469
- Ar,
3514
+ Ur,
3515
+ Hr,
3516
+ Wr,
3470
3517
  z,
3471
- gs,
3518
+ Fs,
3519
+ wa,
3520
+ Oa,
3472
3521
  ua,
3473
- ma,
3474
- Xi,
3475
- Qi,
3476
- ta,
3477
- na,
3478
- $i,
3522
+ fa,
3523
+ ha,
3524
+ ga,
3525
+ pa,
3479
3526
  J.length,
3480
3527
  X,
3481
- ia,
3482
- wo,
3483
- ca,
3484
- la,
3485
- aa,
3486
- Eo,
3487
- Do,
3488
- No,
3489
- Oo,
3490
- Mo,
3491
- io,
3492
- mo,
3493
- uo,
3494
- jo,
3495
- Fo,
3496
- ga,
3497
- ya,
3498
- ba,
3499
- xa,
3528
+ va,
3529
+ Ro,
3500
3530
  Sa,
3501
3531
  Ca,
3502
- Ta,
3503
- Da,
3504
- ja,
3505
- Ma,
3506
- Zn,
3532
+ ya,
3533
+ Bo,
3534
+ Vo,
3535
+ qo,
3536
+ Ho,
3537
+ Ko,
3538
+ yo,
3539
+ Oo,
3540
+ To,
3541
+ Go,
3542
+ Yo,
3543
+ Aa,
3544
+ Na,
3507
3545
  Pa,
3546
+ Fa,
3508
3547
  Ia,
3509
3548
  La,
3510
3549
  za,
3511
- Ra,
3512
- Ua,
3513
- Wa,
3550
+ Va,
3514
3551
  Ga,
3515
- qa,
3516
- ao.dragging,
3517
- to,
3552
+ Ka,
3553
+ ur,
3554
+ Ja,
3555
+ Xa,
3556
+ Za,
3557
+ $a,
3558
+ Qa,
3559
+ ro,
3560
+ io,
3561
+ ao,
3562
+ Pr,
3563
+ so,
3564
+ bo.dragging,
3565
+ go,
3518
3566
  He,
3519
- Io,
3520
- zo,
3521
- Bo,
3522
- $,
3523
- Vo,
3524
- Wo,
3525
- as,
3526
- os,
3527
- $t,
3528
- Ft,
3529
- Qt,
3530
- Zt,
3531
- Qo,
3567
+ Xo,
3532
3568
  $o,
3533
3569
  es,
3570
+ $,
3534
3571
  ts,
3535
- Yo,
3536
- ns,
3537
- rs,
3572
+ is,
3573
+ ws,
3574
+ Ts,
3575
+ Gn,
3576
+ zn,
3577
+ Hn,
3578
+ Qt,
3579
+ _s,
3580
+ vs,
3581
+ ys,
3582
+ bs,
3583
+ ms,
3584
+ xs,
3585
+ Ss,
3538
3586
  Z,
3539
- ds
3540
- ]), [vs] = C(() => bn(_s));
3541
- vs.set(_s), Be(() => vs.publish(), [_s, vs]);
3542
- let ys = {
3543
- ...yn,
3544
- "--slotted-data-grid-template": gi,
3587
+ As
3588
+ ]), [Ls] = C(() => xn(Is));
3589
+ Ls.set(Is), Be(() => Ls.publish(), [Is, Ls]);
3590
+ let Rs = {
3591
+ ...bn,
3592
+ "--slotted-data-grid-template": Ai,
3545
3593
  ..._e === void 0 ? {} : { "--slotted-data-grid-block-size": typeof _e == "number" ? `${_e}px` : _e },
3546
- ...typeof Jn == "number" ? { "--slotted-data-grid-row-block-size": `${Jn}px` } : {},
3547
- ..._o > 0 ? { "--slotted-data-grid-changed-duration": `${_o}ms` } : {},
3548
- ...di ? { "--slotted-data-grid-leading": `${ni}px` } : {},
3594
+ ...typeof sr == "number" ? { "--slotted-data-grid-row-block-size": `${sr}px` } : {},
3595
+ ...jo > 0 ? { "--slotted-data-grid-changed-duration": `${jo}ms` } : {},
3596
+ ...Ti ? { "--slotted-data-grid-leading": `${gi}px` } : {},
3549
3597
  ...K.width > 0 ? { "--slotted-data-grid-viewport": `${K.width}px` } : {}
3550
- }, bs = Ri ? {
3551
- "--slotted-data-grid-window-total": `${Bi.totalSize}px`,
3552
- "--slotted-data-grid-window-start": `${Bi.startOffset}px`
3553
- } : void 0, xs = (() => {
3554
- if (sn === !1 || !I.page || G.length === 0) return null;
3555
- let e = ("index" in I.page ? I.page.index * I.page.size : 0) + 1, t = e + (zr === "client" ? G.filter((e) => e.kind === "row").length : L.length) - 1;
3556
- return yi === null || yi < 0 ? j("rangeUnknown", {
3598
+ }, zs = Qi ? {
3599
+ "--slotted-data-grid-window-total": `${ea.totalSize}px`,
3600
+ "--slotted-data-grid-window-start": `${ea.startOffset}px`
3601
+ } : void 0, Bs = (() => {
3602
+ if (cn === !1 || !I.page || G.length === 0) return null;
3603
+ let e = ("index" in I.page ? I.page.index * I.page.size : 0) + 1, t = e + ($r === "client" ? G.filter((e) => e.kind === "row").length : L.length) - 1;
3604
+ return Ni === null || Ni < 0 ? j("rangeUnknown", {
3557
3605
  start: e,
3558
3606
  end: t
3559
3607
  }) : j("range", {
3560
3608
  start: e,
3561
3609
  end: t,
3562
- total: yi
3610
+ total: Ni
3563
3611
  });
3564
- })(), Ss = !Pr || !Ve ? null : $n === "scroll" && Se !== !0 ? Ir ? /* @__PURE__ */ w("span", {
3612
+ })(), Vs = !Jr || !Ve ? null : Nr === "scroll" && Se !== !0 ? Xr ? /* @__PURE__ */ w("span", {
3565
3613
  "data-loading-more": "",
3566
3614
  role: "status",
3567
3615
  children: j("loadingMore")
3568
3616
  }) : null : /* @__PURE__ */ w("div", { children: /* @__PURE__ */ w(l, {
3569
- disabled: Ir,
3617
+ disabled: Xr,
3570
3618
  onClick: () => Ve(),
3571
3619
  size: "sm",
3572
3620
  tone: "secondary",
3573
3621
  variant: "outline",
3574
3622
  children: j(Se === !0 ? "retry" : "loadMore")
3575
- }) }), Cs = (() => {
3576
- if (ms === "rows" || ms === "loading") return null;
3577
- let e = ms;
3578
- if (Xt) return Xt(e);
3623
+ }) }), Hs = (() => {
3624
+ if (Ns === "rows" || Ns === "loading") return null;
3625
+ let e = Ns;
3626
+ if (Zt) return Zt(e);
3579
3627
  let t = j(e === "error" ? "error" : e === "no-results" ? "noResults" : "empty");
3580
3628
  return /* @__PURE__ */ T(le, {
3581
3629
  reach: "section",
3582
3630
  status: e,
3583
3631
  tabIndex: -1,
3584
- children: [/* @__PURE__ */ T(ce, { children: [/* @__PURE__ */ w(se, { children: t }), e === "error" && Lr ? /* @__PURE__ */ w(ae, { children: Lr }) : null] }), e === "no-results" || e === "error" && Rr ? /* @__PURE__ */ w(oe, { children: e === "no-results" ? /* @__PURE__ */ w(l, {
3632
+ children: [/* @__PURE__ */ T(ce, { children: [/* @__PURE__ */ w(se, { children: t }), e === "error" && Zr ? /* @__PURE__ */ w(ae, { children: Zr }) : null] }), e === "no-results" || e === "error" && Qr ? /* @__PURE__ */ w(oe, { children: e === "no-results" ? /* @__PURE__ */ w(l, {
3585
3633
  onClick: (e) => {
3586
- let t = Kt(I);
3587
- jr(t.query, "clear", e, { change: t.change });
3634
+ let t = qt(I);
3635
+ Gr(t.query, "clear", e, { change: t.change });
3588
3636
  },
3589
3637
  size: "sm",
3590
3638
  tone: "secondary",
3591
3639
  variant: "outline",
3592
3640
  children: j("clearFilters")
3593
3641
  }) : /* @__PURE__ */ w(l, {
3594
- onClick: () => Rr?.(),
3642
+ onClick: () => Qr?.(),
3595
3643
  size: "sm",
3596
3644
  tone: "secondary",
3597
3645
  variant: "outline",
@@ -3599,131 +3647,135 @@ function Er({ activatable: e, cellRenderers: t, columnGroups: n, columnOverflow:
3599
3647
  }) }) : null]
3600
3648
  });
3601
3649
  })();
3602
- return /* @__PURE__ */ w(_n.Provider, {
3603
- value: vs.grid,
3604
- children: /* @__PURE__ */ w(Cn.Provider, {
3605
- value: vs,
3650
+ return /* @__PURE__ */ w(vn.Provider, {
3651
+ value: Ls.grid,
3652
+ children: /* @__PURE__ */ w(Tn.Provider, {
3653
+ value: Ls,
3606
3654
  children: /* @__PURE__ */ T("div", {
3607
- ...An,
3608
- "aria-busy": Ir && ms !== "loading" ? !0 : void 0,
3609
- "aria-colcount": pi,
3610
- "aria-label": An["aria-label"] ?? (ye ? void 0 : j("grid")),
3655
+ ...Mn,
3656
+ "aria-busy": Xr && Ns !== "loading" ? !0 : void 0,
3657
+ "aria-colcount": Di,
3658
+ "aria-label": Mn["aria-label"] ?? (ye ? void 0 : j("grid")),
3611
3659
  "aria-labelledby": ye,
3612
3660
  "aria-multiselectable": M === "multiple" || M === "range" || void 0,
3613
- "aria-rowcount": (yi === null ? -1 : yi) + W.top.length + W.bottom.length + wi + +!!xi,
3661
+ "aria-rowcount": (Ni === null ? -1 : Ni) + W.top.length + W.bottom.length + Ri + +!!Fi,
3614
3662
  "data-part": "root",
3615
3663
  "data-part-root": "",
3616
- "data-popin": di ? B.popin.length : void 0,
3664
+ "data-popin": Ti ? B.popin.length : void 0,
3617
3665
  "data-narrow": K.width > 0 && K.width < Ke ? "" : void 0,
3618
- "data-rows": Li ? "auto" : "fixed",
3666
+ "data-rows": Zi ? "auto" : "fixed",
3619
3667
  "data-slotted-density": d ?? void 0,
3620
3668
  "data-ui": "data-grid",
3621
3669
  "data-ui-data-grid": "",
3622
- "data-variant": Rn,
3623
- onBlur: is,
3670
+ "data-variant": $n,
3671
+ onBlur: Cs,
3624
3672
  onKeyDown: (e) => {
3625
- Le?.(e), !e.defaultPrevented && (Ya.current?.handleKeydown(e.nativeEvent) || so.current?.handleKeydown(e.nativeEvent));
3673
+ Le?.(e), !e.defaultPrevented && (lo.current?.handleKeydown(e.nativeEvent) || So.current?.handleKeydown(e.nativeEvent));
3626
3674
  },
3627
- ref: us,
3628
- role: O ? "treegrid" : "grid",
3629
- style: ys,
3630
- ...zn ? { "data-striped": "" } : {},
3631
- ...Hn ? { "data-sticky-header": "" } : {},
3632
- ...Kn ? { "data-filter-row": "" } : {},
3633
- ...Un === "page" ? { "data-sticky-to": "page" } : {},
3675
+ ref: ks,
3676
+ role: A ? "treegrid" : "grid",
3677
+ style: Rs,
3678
+ ...er ? { "data-striped": "" } : {},
3679
+ ...tr ? { "data-sticky-header": "" } : {},
3680
+ ...ar ? { "data-filter-row": "" } : {},
3681
+ ...nr === "page" ? { "data-sticky-to": "page" } : {},
3634
3682
  ...M === "none" ? {} : { "data-selection": M },
3635
3683
  children: [/* @__PURE__ */ T("div", {
3636
3684
  "data-part": "scroll",
3637
3685
  "data-part-scroll": "",
3638
- ref: Mn,
3686
+ ref: Pn,
3639
3687
  children: [
3640
- /* @__PURE__ */ w(tr, {
3641
- columnGroups: n,
3642
- headerRowCount: wi
3688
+ /* @__PURE__ */ w(rr, {
3689
+ columnGroups: i,
3690
+ headerRowCount: Ri
3643
3691
  }),
3644
- W.top.length > 0 ? /* @__PURE__ */ w(En, {
3692
+ W.top.length > 0 ? /* @__PURE__ */ w(On, {
3645
3693
  edge: "top",
3646
- firstRowIndex: wi + 1,
3694
+ firstRowIndex: Ri + 1,
3647
3695
  nodes: W.top
3648
3696
  }) : null,
3649
- ms === "loading" ? /* @__PURE__ */ w(Nn, {
3697
+ Ns === "loading" ? /* @__PURE__ */ w(In, {
3650
3698
  rowSize: q,
3651
- rows: hs
3652
- }) : /* @__PURE__ */ w(Tn, {
3653
- bodyStyle: bs,
3654
- firstIndex: Ri ? Bi.startIndex : 0,
3655
- headerRowCount: wi + W.top.length,
3656
- measureRow: Li || Ni === null ? Ko : void 0,
3657
- nodes: Vi,
3658
- heldRows: Hi,
3699
+ rows: Ps
3700
+ }) : /* @__PURE__ */ w(Dn, {
3701
+ bodyStyle: zs,
3702
+ firstIndex: Qi ? ea.startIndex : 0,
3703
+ headerRowCount: Ri + W.top.length,
3704
+ measureRow: Zi || qi === null ? os : void 0,
3705
+ loadMore: ss ? {
3706
+ top: ls,
3707
+ ref: us
3708
+ } : void 0,
3709
+ nodes: ta,
3710
+ heldRows: na,
3659
3711
  allNodes: G
3660
3712
  }),
3661
- Cs !== null && ms !== "loading" ? /* @__PURE__ */ w(Dn, { children: Cs }) : null,
3662
- W.bottom.length > 0 ? /* @__PURE__ */ w(En, {
3713
+ Hs !== null && Ns !== "loading" ? /* @__PURE__ */ w(kn, { children: Hs }) : null,
3714
+ W.bottom.length > 0 ? /* @__PURE__ */ w(On, {
3663
3715
  edge: "bottom",
3664
- firstRowIndex: wi + W.top.length + (yi ?? G.length) + 1,
3716
+ firstRowIndex: Ri + W.top.length + (Ni ?? G.length) + 1,
3665
3717
  nodes: W.bottom
3666
3718
  }) : null,
3667
- xi && ms === "rows" ? /* @__PURE__ */ w(Pn, {
3668
- aggregates: vi.aggregates,
3669
- rowIndex: wi + W.top.length + (yi ?? G.length) + W.bottom.length + 1
3719
+ Fi && Ns === "rows" ? /* @__PURE__ */ w(Ln, {
3720
+ aggregates: Mi.aggregates,
3721
+ rowIndex: Ri + W.top.length + (Ni ?? G.length) + W.bottom.length + 1
3670
3722
  }) : null,
3671
- qa.offset === null ? null : /* @__PURE__ */ w("div", {
3723
+ so.offset === null ? null : /* @__PURE__ */ w("div", {
3672
3724
  "aria-hidden": !0,
3673
3725
  "data-part": "drop-indicator",
3674
3726
  "data-part-drop-indicator": "",
3675
3727
  style: {
3676
- "--slotted-data-grid-drop-offset": `${qa.offset}px`,
3677
- "--slotted-data-grid-drop-scroll": `${qa.scrollTop}px`
3728
+ "--slotted-data-grid-drop-offset": `${so.offset}px`,
3729
+ "--slotted-data-grid-drop-scroll": `${so.scrollTop}px`
3678
3730
  }
3679
3731
  }),
3680
- ao.offset === null ? null : /* @__PURE__ */ w("div", {
3732
+ bo.offset === null ? null : /* @__PURE__ */ w("div", {
3681
3733
  "aria-hidden": !0,
3682
3734
  "data-axis": "row",
3683
3735
  "data-part": "drop-indicator",
3684
3736
  "data-part-drop-indicator": "",
3685
3737
  style: {
3686
- "--slotted-data-grid-drop-offset": `${ao.offset}px`,
3687
- "--slotted-data-grid-drop-scroll": `${ao.scrollLeft}px`
3738
+ "--slotted-data-grid-drop-offset": `${bo.offset}px`,
3739
+ "--slotted-data-grid-drop-scroll": `${bo.scrollLeft}px`
3688
3740
  }
3689
3741
  })
3690
3742
  ]
3691
- }), me !== void 0 || xs !== null || Ss !== null ? /* @__PURE__ */ T("div", {
3743
+ }), me !== void 0 || Bs !== null || Vs !== null ? /* @__PURE__ */ T("div", {
3692
3744
  "data-part": "footer",
3693
3745
  "data-part-footer": "",
3694
3746
  children: [
3695
- xs === null ? null : /* @__PURE__ */ w("span", {
3747
+ Bs === null ? null : /* @__PURE__ */ w("span", {
3696
3748
  "data-range": "",
3697
- children: xs
3749
+ children: Bs
3698
3750
  }),
3699
3751
  me,
3700
- me === void 0 ? Ss : null
3752
+ me === void 0 ? Vs : null
3701
3753
  ]
3702
3754
  }) : null]
3703
3755
  })
3704
3756
  })
3705
3757
  });
3706
3758
  }
3707
- function Dr(e, t, n, r) {
3759
+ function jr(e, t, n, r) {
3708
3760
  let i = e.findIndex((e) => e.id === t[0]), a = Math.max(i, Math.min(i + t.length, r)), o = t.indexOf(n), s = a - i, c = s > o ? s - 1 : s;
3709
3761
  return c === o ? null : c;
3710
3762
  }
3711
- function Or(e) {
3712
- return e !== ut && e !== ct && e !== pt && !Ct(e);
3763
+ function Mr(e) {
3764
+ return e !== ut && e !== ct && e !== pt && !wt(e);
3713
3765
  }
3714
3766
  //#endregion
3715
3767
  //#region src/data-grid/use-persisted-grid-view.ts
3716
- function F() {
3768
+ function Nr() {
3717
3769
  try {
3718
3770
  return typeof window > "u" ? null : window.localStorage;
3719
3771
  } catch {
3720
3772
  return null;
3721
3773
  }
3722
3774
  }
3723
- function kr({ key: e, columns: t, storage: n, defaultQuery: r, defaultColumnState: i, defaultDensity: a, ...o }) {
3724
- let s = x(() => n === void 0 ? F() : n, [n]), c = x(() => ({
3725
- columns: Tt(i ?? null, t),
3726
- query: r ?? bt(o.defaultPageSize).query,
3775
+ function Pr({ key: e, columns: t, storage: n, defaultQuery: r, defaultColumnState: i, defaultDensity: a, ...o }) {
3776
+ let s = x(() => n === void 0 ? Nr() : n, [n]), c = x(() => ({
3777
+ columns: Et(i ?? null, t),
3778
+ query: r ?? xt(o.defaultPageSize).query,
3727
3779
  density: a ?? null
3728
3780
  }), []), [l, u] = C(() => {
3729
3781
  let n;
@@ -3733,7 +3785,7 @@ function kr({ key: e, columns: t, storage: n, defaultQuery: r, defaultColumnStat
3733
3785
  n = null;
3734
3786
  }
3735
3787
  if (n === null || n === "") return c;
3736
- let r = Et(n, t, o);
3788
+ let r = Dt(n, t, o);
3737
3789
  return {
3738
3790
  columns: r.columns,
3739
3791
  query: r.query.page === null ? {
@@ -3762,7 +3814,7 @@ function kr({ key: e, columns: t, storage: n, defaultQuery: r, defaultColumnStat
3762
3814
  f.current = !1;
3763
3815
  let { key: e, columns: t, options: n, store: r } = d.current;
3764
3816
  if (r) try {
3765
- let i = Pt(l, t, n);
3817
+ let i = Ft(l, t, n);
3766
3818
  i === "" ? r.removeItem(e) : r.setItem(e, i);
3767
3819
  } catch {}
3768
3820
  }, [l]);
@@ -3801,4 +3853,4 @@ function kr({ key: e, columns: t, storage: n, defaultQuery: r, defaultColumnStat
3801
3853
  };
3802
3854
  }
3803
3855
  //#endregion
3804
- export { dn as a, Ln as i, Er as n, un as o, In as r, ln as s, kr as t };
3856
+ export { fn as a, Bn as i, Ar as n, dn as o, zn as r, un as s, Pr as t };