@vokril/ui-solid 0.31.0 → 0.33.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (382) hide show
  1. package/CHANGELOG.md +61 -0
  2. package/README.md +132 -4
  3. package/dist/AttributeGrid-CNkALmJq.cjs +1 -0
  4. package/dist/AttributeGrid-DnuTPJ_P.js +320 -0
  5. package/dist/{Button-4meERfnv.js → Button-CX7mylBT.js} +125 -117
  6. package/dist/Button-lMUW5P3O.cjs +1 -0
  7. package/dist/CommandPalette-DAR9VMqY.cjs +2 -0
  8. package/dist/CommandPalette-DlLcdd4o.js +4029 -0
  9. package/dist/CopyButton-BVvv5M8g.js +63 -0
  10. package/dist/CopyButton-Dnd8_2Lj.cjs +1 -0
  11. package/dist/DateRangePicker-BlJWtJBA.cjs +9 -0
  12. package/dist/DateRangePicker-CHmUU4PA.js +552 -0
  13. package/dist/GuidedTour-9rqvNB_m.js +483 -0
  14. package/dist/GuidedTour-DbXeuTc7.cjs +1 -0
  15. package/dist/{HostPortal-Ba3MD9CG.js → HostPortal-De65s6CU.js} +1 -1
  16. package/dist/{HostPortal-CpWsArs6.cjs → HostPortal-Dm4BmY8M.cjs} +1 -1
  17. package/dist/{IconPicker-D1G8HK92.js → IconPicker-CsYW8CXe.js} +4 -4
  18. package/dist/IconPicker-D-GU1mD3.cjs +1 -0
  19. package/dist/Input-C3rEQffK.js +382 -0
  20. package/dist/Input-CHtvL4_4.cjs +1 -0
  21. package/dist/Modal-3L6p7Dwt.js +599 -0
  22. package/dist/Modal-CtrWEnJ7.cjs +1 -0
  23. package/dist/OverlayScrollArea-Cr0VAApT.cjs +1 -0
  24. package/dist/OverlayScrollArea-CrrPFLq9.js +180 -0
  25. package/dist/{PageSkeleton-zNyjLPlk.js → PageSkeleton-BRuqaDzr.js} +372 -371
  26. package/dist/PageSkeleton-Cz2bckO4.cjs +30 -0
  27. package/dist/Popover-CLTXG8W0.cjs +1 -0
  28. package/dist/Popover-DkqGvMNy.js +207 -0
  29. package/dist/SearchableSelect-C-lV1vSv.cjs +1 -0
  30. package/dist/SearchableSelect-Du12kcI9.js +328 -0
  31. package/dist/{StatusBarNotificationBell-ZTEhZFmJ.js → StatusBarNotificationBell-DKDoWK71.js} +4879 -4789
  32. package/dist/StatusBarNotificationBell-wO16mjon.cjs +50 -0
  33. package/dist/Stepper-DzI-gtKd.js +586 -0
  34. package/dist/Stepper-rpu7lpzB.cjs +1 -0
  35. package/dist/{Textarea-DASNQNoi.cjs → Textarea-D4nYoQ0J.cjs} +1 -1
  36. package/dist/{Textarea-szHXQahi.js → Textarea-DOzZCc-O.js} +1 -1
  37. package/dist/TimeSeriesChart-BJqQpeEJ.cjs +1 -0
  38. package/dist/TimeSeriesChart-DvAhuyVl.js +442 -0
  39. package/dist/ToggleButton-B-hBpdzk.js +2144 -0
  40. package/dist/ToggleButton-BMH1A-IX.cjs +1 -0
  41. package/dist/_internal/app/onboarding/pageTourState.d.cts +0 -2
  42. package/dist/_internal/app/onboarding/pageTourState.d.ts +0 -2
  43. package/dist/_internal/app/onboarding/pageTourTypes.d.cts +2 -1
  44. package/dist/_internal/app/onboarding/pageTourTypes.d.ts +2 -1
  45. package/dist/_internal/contract/browser/workspace.d.cts +15 -0
  46. package/dist/_internal/contract/browser/workspace.d.ts +15 -0
  47. package/dist/_internal/contract/menuDensity.d.cts +8 -0
  48. package/dist/_internal/contract/menuDensity.d.ts +8 -0
  49. package/dist/_internal/contract/notification.d.cts +19 -3
  50. package/dist/_internal/contract/notification.d.ts +19 -3
  51. package/dist/_internal/platform/settings/settingsTypes.d.cts +2 -2
  52. package/dist/_internal/platform/settings/settingsTypes.d.ts +2 -2
  53. package/dist/a11y/index.cjs +1 -1
  54. package/dist/a11y/index.js +1 -1
  55. package/dist/appThemeDerivation-Be_oKljl.cjs +1 -0
  56. package/dist/{server/appThemeDerivation-DBAOkGl7.js → appThemeDerivation-CKoSe4KP.js} +231 -260
  57. package/dist/base.css +1 -1
  58. package/dist/charts/index.cjs +1 -1
  59. package/dist/charts/index.js +1 -1
  60. package/dist/createDialogShellFocus-DI1rUvYf.js +282 -0
  61. package/dist/createDialogShellFocus-kzkNSLWS.cjs +1 -0
  62. package/dist/createResizableSidebar--Ve6DbDu.js +504 -0
  63. package/dist/createResizableSidebar-DlVAuq5t.cjs +1 -0
  64. package/dist/desktop/index.cjs +1 -1
  65. package/dist/desktop/index.js +228 -227
  66. package/dist/feedback/index.cjs +1 -1
  67. package/dist/feedback/index.js +4 -4
  68. package/dist/{focusModality-BISb6-yg.cjs → focusModality-D704CJVN.cjs} +1 -1
  69. package/dist/{focusModality-FoLPWF-_.js → focusModality-ROUF6YGR.js} +1 -1
  70. package/dist/forms/index.cjs +1 -1
  71. package/dist/forms/index.js +9 -9
  72. package/dist/grid/index.cjs +1 -1
  73. package/dist/grid/index.js +1 -1
  74. package/dist/host/index.cjs +1 -1
  75. package/dist/host/index.d.cts +1 -0
  76. package/dist/host/index.d.ts +1 -0
  77. package/dist/host/index.js +38 -39
  78. package/dist/host/kitHost.d.cts +8 -0
  79. package/dist/host/kitHost.d.ts +8 -0
  80. package/dist/index.cjs +1 -1
  81. package/dist/index.js +940 -938
  82. package/dist/kitHost-BMMWpU4w.js +47 -0
  83. package/dist/kitHost-u0-mKvEK.cjs +1 -0
  84. package/dist/layout/index.cjs +1 -1
  85. package/dist/layout/index.js +2 -2
  86. package/dist/mainRealmDom-BcPuVvcy.cjs +1 -0
  87. package/dist/mainRealmDom-DydRT2Us.js +54 -0
  88. package/dist/{server/useSettingsSubscription-DLEk4k4j.js → menuDensity-6x_EqCGb.js} +7 -5
  89. package/dist/{server/useSettingsSubscription-DKjCwmRd.cjs → menuDensity-Cf74__OQ.cjs} +1 -1
  90. package/dist/navigation/index.cjs +1 -1
  91. package/dist/navigation/index.js +1 -1
  92. package/dist/notificationCatalog-CRERhjp6.js +168 -0
  93. package/dist/notificationCatalog-DqTkd7M6.cjs +1 -0
  94. package/dist/notifications/holdWhileShown.d.cts +18 -0
  95. package/dist/notifications/holdWhileShown.d.ts +18 -0
  96. package/dist/notifications/index.cjs +1 -1
  97. package/dist/notifications/index.js +3 -3
  98. package/dist/notifications/nativeEngine.d.cts +34 -2
  99. package/dist/notifications/nativeEngine.d.ts +34 -2
  100. package/dist/notifications/notificationEntryList.d.cts +18 -5
  101. package/dist/notifications/notificationEntryList.d.ts +18 -5
  102. package/dist/notifications/notificationOverlaySnapshot.d.cts +35 -6
  103. package/dist/notifications/notificationOverlaySnapshot.d.ts +35 -6
  104. package/dist/overlay/Modal.d.cts +17 -3
  105. package/dist/overlay/Modal.d.ts +17 -3
  106. package/dist/overlay/index.cjs +1 -1
  107. package/dist/overlay/index.d.cts +2 -1
  108. package/dist/overlay/index.d.ts +2 -1
  109. package/dist/overlay/index.js +46 -43
  110. package/dist/overlay/modalDefaults.d.cts +23 -0
  111. package/dist/overlay/modalDefaults.d.ts +23 -0
  112. package/dist/overlay/modalViewport.d.cts +17 -2
  113. package/dist/overlay/modalViewport.d.ts +17 -2
  114. package/dist/pageTourState-BuA-GBYO.cjs +5 -0
  115. package/dist/{server/pageTourState-BcBF8w89.js → pageTourState-DsSKdPOu.js} +160 -169
  116. package/dist/rowSource-D8gyHbEE.cjs +1 -0
  117. package/dist/rowSource-_4IuosKj.js +1236 -0
  118. package/dist/server/AttributeGrid-B9j_c2wM.js +281 -0
  119. package/dist/server/AttributeGrid-BALCTvOI.cjs +1 -0
  120. package/dist/server/Button-DHefmmYz.cjs +1 -0
  121. package/dist/server/Button-ft_8RNJj.js +226 -0
  122. package/dist/server/CommandPalette-CHdfYtxs.js +3305 -0
  123. package/dist/server/CommandPalette-D0Prl7by.cjs +1 -0
  124. package/dist/server/CopyButton-CiYcsQcI.js +64 -0
  125. package/dist/server/CopyButton-D2q7tQ0m.cjs +1 -0
  126. package/dist/server/DateRangePicker-C6wZI7No.js +487 -0
  127. package/dist/server/DateRangePicker-CF70G2yr.cjs +9 -0
  128. package/dist/server/GuidedTour-BmDAWNfN.cjs +1 -0
  129. package/dist/server/GuidedTour-DYBhprVK.js +400 -0
  130. package/dist/server/{HostPortal-C4IrAeWN.js → HostPortal-C4xdfRyM.js} +1 -1
  131. package/dist/server/{HostPortal-D5ECrJvn.cjs → HostPortal-CwyePpDX.cjs} +1 -1
  132. package/dist/server/{IconPicker-DDWgB7sm.js → IconPicker--Xso9fUf.js} +5 -5
  133. package/dist/server/IconPicker-BTI4cNgf.cjs +1 -0
  134. package/dist/server/Input-UX0Hk53M.cjs +1 -0
  135. package/dist/server/Input-V9Szcw6w.js +249 -0
  136. package/dist/server/Modal-CBnNlaTx.cjs +1 -0
  137. package/dist/server/Modal-D9CjieKK.js +426 -0
  138. package/dist/server/OverlayScrollArea-DuwGRSMm.cjs +1 -0
  139. package/dist/server/OverlayScrollArea-h6G3yk6U.js +66 -0
  140. package/dist/server/{PageSkeleton-DoxlE_bD.js → PageSkeleton-CFs7AdTA.js} +267 -266
  141. package/dist/server/PageSkeleton-D0KOKLsb.cjs +30 -0
  142. package/dist/server/Popover-BBDBIpT6.cjs +1 -0
  143. package/dist/server/Popover-e9JpRh11.js +439 -0
  144. package/dist/server/SearchableSelect-B2ZFnp6i.js +205 -0
  145. package/dist/server/SearchableSelect-BBu5cP6P.cjs +1 -0
  146. package/dist/server/StatusBarNotificationBell-DEp4eEUv.cjs +49 -0
  147. package/dist/server/{StatusBarNotificationBell-DW2l5O9B.js → StatusBarNotificationBell-kOm2ZNkl.js} +4567 -4477
  148. package/dist/server/Stepper-C04rOZcI.cjs +1 -0
  149. package/dist/server/Stepper-CVAOsf3o.js +381 -0
  150. package/dist/server/{Textarea-Bh5LVrBn.cjs → Textarea-BG6F8taO.cjs} +1 -1
  151. package/dist/server/{Textarea-DVkfGkP0.js → Textarea-DM4zpgWo.js} +1 -1
  152. package/dist/server/TimeSeriesChart-kuuqH7we.js +242 -0
  153. package/dist/server/TimeSeriesChart-tWbSF6fJ.cjs +1 -0
  154. package/dist/server/ToggleButton-BdqufQ7G.js +1344 -0
  155. package/dist/server/ToggleButton-Bo24NK3o.cjs +1 -0
  156. package/dist/server/a11y/index.cjs +1 -1
  157. package/dist/server/a11y/index.js +1 -1
  158. package/dist/server/appThemeDerivation-Be_oKljl.cjs +1 -0
  159. package/dist/{appThemeDerivation-DBAOkGl7.js → server/appThemeDerivation-CKoSe4KP.js} +231 -260
  160. package/dist/server/charts/index.cjs +1 -1
  161. package/dist/server/charts/index.js +1 -1
  162. package/dist/server/createDialogShellFocus-DvoNWpIu.cjs +1 -0
  163. package/dist/server/createDialogShellFocus-J8wqPlsa.js +370 -0
  164. package/dist/server/{createResizableSidebar-Dvu7iEk1.js → createResizableSidebar-CIrhLNKW.js} +104 -102
  165. package/dist/server/createResizableSidebar-DcZ2Cnpf.cjs +1 -0
  166. package/dist/server/desktop/index.cjs +1 -1
  167. package/dist/server/desktop/index.js +153 -152
  168. package/dist/server/feedback/index.cjs +1 -1
  169. package/dist/server/feedback/index.js +4 -4
  170. package/dist/server/{focusModality-nWNVX3JG.js → focusModality-Bu4Kuwm4.js} +1 -1
  171. package/dist/server/{focusModality-D-nxv8Er.cjs → focusModality-G2i60_7y.cjs} +1 -1
  172. package/dist/server/forms/index.cjs +1 -1
  173. package/dist/server/forms/index.js +9 -9
  174. package/dist/server/grid/index.cjs +1 -1
  175. package/dist/server/grid/index.js +1 -1
  176. package/dist/server/host/index.cjs +1 -1
  177. package/dist/server/host/index.js +38 -39
  178. package/dist/server/{index-BEARfm54.js → index-CPUZyKo7.js} +2 -2
  179. package/dist/server/{index-C6rYfWCJ.cjs → index-CVbkasNJ.cjs} +1 -1
  180. package/dist/server/index.cjs +1 -1
  181. package/dist/server/index.js +673 -671
  182. package/dist/server/kitHost-BMMWpU4w.js +47 -0
  183. package/dist/server/kitHost-u0-mKvEK.cjs +1 -0
  184. package/dist/server/layout/index.cjs +1 -1
  185. package/dist/server/layout/index.js +2 -2
  186. package/dist/server/mainRealmDom-BuGEeM_r.cjs +1 -0
  187. package/dist/server/{EmptyState-Csydyy_7.js → mainRealmDom-CzckS_ss.js} +12 -8
  188. package/dist/{useSettingsSubscription-DLEk4k4j.js → server/menuDensity-6x_EqCGb.js} +7 -5
  189. package/dist/{useSettingsSubscription-DKjCwmRd.cjs → server/menuDensity-Cf74__OQ.cjs} +1 -1
  190. package/dist/server/navigation/index.cjs +1 -1
  191. package/dist/server/navigation/index.js +1 -1
  192. package/dist/server/notificationCatalog-CEDltsJS.cjs +1 -0
  193. package/dist/server/notificationCatalog-Cl1dH4aJ.js +122 -0
  194. package/dist/server/notifications/index.cjs +1 -1
  195. package/dist/server/notifications/index.js +3 -3
  196. package/dist/server/overlay/index.cjs +1 -1
  197. package/dist/server/overlay/index.js +32 -29
  198. package/dist/server/pageTourState-BuA-GBYO.cjs +5 -0
  199. package/dist/{pageTourState-BcBF8w89.js → server/pageTourState-DsSKdPOu.js} +160 -169
  200. package/dist/server/rowSource-BSa7rgYJ.js +1128 -0
  201. package/dist/server/rowSource-Yw-xtlih.cjs +1 -0
  202. package/dist/server/settings/index.cjs +1 -1
  203. package/dist/server/settings/index.js +26 -25
  204. package/dist/server/tokens/index.cjs +1 -1
  205. package/dist/server/tokens/index.js +29 -28
  206. package/dist/server/tokens/palette/index.cjs +1 -0
  207. package/dist/server/tokens/palette/index.js +31 -0
  208. package/dist/server/tree/index.cjs +1 -1
  209. package/dist/server/tree/index.js +1 -1
  210. package/dist/settings/index.cjs +1 -1
  211. package/dist/settings/index.js +26 -25
  212. package/dist/solid/_internal/app/onboarding/PageTourHost.jsx +11 -10
  213. package/dist/solid/_internal/app/onboarding/pageTourState.js +12 -23
  214. package/dist/solid/_internal/contract/menuDensity.js +1 -0
  215. package/dist/solid/_internal/platform/settings/settingsTypes.js +1 -0
  216. package/dist/solid/charts/TimeSeriesChart.jsx +23 -22
  217. package/dist/solid/desktop/WindowControls.jsx +6 -3
  218. package/dist/solid/feedback/Badge.jsx +9 -5
  219. package/dist/solid/feedback/ErrorBoundary.jsx +18 -14
  220. package/dist/solid/forms/Button.jsx +15 -9
  221. package/dist/solid/forms/Checkbox.jsx +5 -4
  222. package/dist/solid/forms/Combobox.jsx +12 -10
  223. package/dist/solid/forms/CopyButton.jsx +7 -4
  224. package/dist/solid/forms/DatePicker.jsx +12 -7
  225. package/dist/solid/forms/Dropzone.jsx +17 -13
  226. package/dist/solid/forms/FilePickerButton.jsx +5 -4
  227. package/dist/solid/forms/HiddenFileInput.jsx +3 -1
  228. package/dist/solid/forms/InputMessage.jsx +11 -10
  229. package/dist/solid/forms/MultiSearchableSelect.jsx +8 -7
  230. package/dist/solid/forms/NumberInput.jsx +25 -19
  231. package/dist/solid/forms/Picker.jsx +8 -6
  232. package/dist/solid/forms/PressableSurface.jsx +14 -9
  233. package/dist/solid/forms/RadioGroup.jsx +4 -3
  234. package/dist/solid/forms/SearchInput.jsx +4 -3
  235. package/dist/solid/forms/SearchableSelect.jsx +4 -3
  236. package/dist/solid/forms/SegmentedControl.jsx +4 -3
  237. package/dist/solid/forms/TagInput.jsx +22 -16
  238. package/dist/solid/forms/ToggleButton.jsx +4 -3
  239. package/dist/solid/forms/date-range-picker/DateRangePicker.jsx +12 -10
  240. package/dist/solid/grid/Pagination.jsx +7 -3
  241. package/dist/solid/host/kitHost.jsx +5 -1
  242. package/dist/solid/layout/PageHeaderIcon.jsx +11 -9
  243. package/dist/solid/layout/ResizableSplitPane.jsx +4 -4
  244. package/dist/solid/layout/ResizeHandle.jsx +6 -5
  245. package/dist/solid/navigation/Accordion.jsx +8 -5
  246. package/dist/solid/navigation/Tabs.jsx +11 -8
  247. package/dist/solid/notifications/NotificationHost.jsx +3 -16
  248. package/dist/solid/notifications/NotificationItem.jsx +59 -55
  249. package/dist/solid/notifications/NotificationPanel.jsx +16 -8
  250. package/dist/solid/notifications/NotificationsCenter.jsx +2 -0
  251. package/dist/solid/notifications/StatusBarNotificationBell.jsx +4 -3
  252. package/dist/solid/notifications/createNotificationPreviewRuntime.js +2 -0
  253. package/dist/solid/notifications/holdWhileShown.js +30 -0
  254. package/dist/solid/notifications/nativeEngine.js +52 -1
  255. package/dist/solid/notifications/notificationEntryList.js +25 -9
  256. package/dist/solid/notifications/notificationOverlaySnapshot.js +26 -0
  257. package/dist/solid/notifications/toast.js +4 -0
  258. package/dist/solid/overlay/ConfirmDialog.jsx +21 -16
  259. package/dist/solid/overlay/DangerousActionDialogParts.jsx +5 -3
  260. package/dist/solid/overlay/Disclosure.jsx +4 -3
  261. package/dist/solid/overlay/DropdownMenu.jsx +6 -4
  262. package/dist/solid/overlay/FloatingWindow.jsx +3 -3
  263. package/dist/solid/overlay/HoverTooltip.jsx +9 -7
  264. package/dist/solid/overlay/Modal.jsx +44 -35
  265. package/dist/solid/overlay/OverlayScrollArea.jsx +5 -3
  266. package/dist/solid/overlay/Tooltip.jsx +5 -4
  267. package/dist/solid/overlay/command-palette/CommandPalette.jsx +7 -7
  268. package/dist/solid/overlay/context-menu/DesktopContextMenu.jsx +65 -50
  269. package/dist/solid/overlay/index.js +2 -1
  270. package/dist/solid/overlay/menu/MenuParts.jsx +11 -8
  271. package/dist/solid/overlay/modalDefaults.jsx +10 -0
  272. package/dist/solid/overlay/modalViewport.js +17 -4
  273. package/dist/solid/overlay/popover/Popover.jsx +17 -11
  274. package/dist/solid/overlay/tour/GuidedTour.jsx +18 -14
  275. package/dist/solid/tokens/palette/index.js +1 -0
  276. package/dist/solid/tree/TreeRow.jsx +21 -16
  277. package/dist/solid/tree/TreeSurface.jsx +15 -14
  278. package/dist/solid/widgets/SettingsField.jsx +11 -10
  279. package/dist/style.css +3 -2
  280. package/dist/theme.css +2 -1
  281. package/dist/tokens/index.cjs +1 -1
  282. package/dist/tokens/index.js +29 -28
  283. package/dist/tokens/palette/index.cjs +1 -0
  284. package/dist/tokens/palette/index.d.cts +12 -0
  285. package/dist/tokens/palette/index.d.ts +12 -0
  286. package/dist/tokens/palette/index.js +31 -0
  287. package/dist/tokens/tokens.css +2 -1
  288. package/dist/tree/TreeRow.d.cts +5 -4
  289. package/dist/tree/TreeRow.d.ts +5 -4
  290. package/dist/tree/descriptor.d.cts +13 -3
  291. package/dist/tree/descriptor.d.ts +13 -3
  292. package/dist/tree/index.cjs +1 -1
  293. package/dist/tree/index.js +1 -1
  294. package/dist/ui.css +1 -1
  295. package/package.json +25 -1
  296. package/dist/AttributeGrid-Ch1k9v5j.cjs +0 -1
  297. package/dist/AttributeGrid-DqFd4gBm.js +0 -320
  298. package/dist/Button-OyZHrl-t.cjs +0 -1
  299. package/dist/CommandPalette-CxYZUJtN.cjs +0 -2
  300. package/dist/CommandPalette-DwOp8y1-.js +0 -4018
  301. package/dist/CopyButton-16QNPgz6.cjs +0 -1
  302. package/dist/CopyButton-BVS49lMS.js +0 -63
  303. package/dist/DateRangePicker-8QvydugY.js +0 -550
  304. package/dist/DateRangePicker-DI-06xWY.cjs +0 -9
  305. package/dist/EmptyState-B9TxGJ5v.cjs +0 -1
  306. package/dist/EmptyState-Dph6HU74.js +0 -50
  307. package/dist/GuidedTour-DUQwdW8n.cjs +0 -1
  308. package/dist/GuidedTour-DXMmHn0o.js +0 -483
  309. package/dist/IconPicker-Q-ZDtNkd.cjs +0 -1
  310. package/dist/Input-Brp5EDhg.cjs +0 -1
  311. package/dist/Input-CZi8KEfm.js +0 -374
  312. package/dist/Modal-CBi7Wd2V.cjs +0 -1
  313. package/dist/Modal-iyY1HUtr.js +0 -588
  314. package/dist/OverlayScrollArea-BSlaXG1h.cjs +0 -1
  315. package/dist/OverlayScrollArea-c8Za77qs.js +0 -180
  316. package/dist/PageSkeleton-B_-4fz1q.cjs +0 -30
  317. package/dist/Popover-DVi179wu.js +0 -207
  318. package/dist/Popover-DXrczbt9.cjs +0 -1
  319. package/dist/SearchableSelect-DtHbWJhR.js +0 -328
  320. package/dist/SearchableSelect-yLVqCGFo.cjs +0 -1
  321. package/dist/StatusBarNotificationBell-DQs5g1K6.cjs +0 -50
  322. package/dist/Stepper-CyRgzWlR.js +0 -583
  323. package/dist/Stepper-u2ZsE5oP.cjs +0 -1
  324. package/dist/TimeSeriesChart-D7lIqolp.js +0 -441
  325. package/dist/TimeSeriesChart-DGzM9B--.cjs +0 -1
  326. package/dist/ToggleButton-B22PsCqo.js +0 -2138
  327. package/dist/ToggleButton-DWslrIBN.cjs +0 -1
  328. package/dist/appThemeDerivation-BylmT80v.cjs +0 -1
  329. package/dist/createDialogShellFocus-CQ0VNC2g.cjs +0 -1
  330. package/dist/createDialogShellFocus-DbiQmLgb.js +0 -282
  331. package/dist/createResizableSidebar-COlpGQ7H.cjs +0 -1
  332. package/dist/createResizableSidebar-cmCKTIg_.js +0 -504
  333. package/dist/kitHost-BfJExE1G.cjs +0 -1
  334. package/dist/kitHost-CVAEi9sF.js +0 -23
  335. package/dist/mainRealmDom-B215swW-.js +0 -166
  336. package/dist/mainRealmDom-BYGSE-fo.cjs +0 -1
  337. package/dist/pageTourState-CrbEU7QW.cjs +0 -5
  338. package/dist/rowSource-D__7o4h0.js +0 -1230
  339. package/dist/rowSource-DiwTu_r8.cjs +0 -1
  340. package/dist/server/AttributeGrid-Bpjlauuz.js +0 -281
  341. package/dist/server/AttributeGrid-DNYdKb8J.cjs +0 -1
  342. package/dist/server/Button-0AXWRw9Q.cjs +0 -1
  343. package/dist/server/Button-3yNrnn4P.js +0 -220
  344. package/dist/server/CommandPalette-BuVxnqBG.cjs +0 -1
  345. package/dist/server/CommandPalette-Dn3NKXPM.js +0 -3291
  346. package/dist/server/CopyButton-B6xd9Z6j.js +0 -64
  347. package/dist/server/CopyButton-D8IN6Vnd.cjs +0 -1
  348. package/dist/server/DateRangePicker-BFzNjaME.cjs +0 -9
  349. package/dist/server/DateRangePicker-CnYkTgXX.js +0 -484
  350. package/dist/server/EmptyState-BnAHklc5.cjs +0 -1
  351. package/dist/server/GuidedTour-BZardPYW.js +0 -400
  352. package/dist/server/GuidedTour-yhdZk2SU.cjs +0 -1
  353. package/dist/server/IconPicker-C5lAN9pX.cjs +0 -1
  354. package/dist/server/Input-AdF-i0O8.js +0 -245
  355. package/dist/server/Input-XF9Jr0G9.cjs +0 -1
  356. package/dist/server/Modal-C5dzgcRW.js +0 -420
  357. package/dist/server/Modal-nAhBS1L9.cjs +0 -1
  358. package/dist/server/OverlayScrollArea-221dfKyz.js +0 -65
  359. package/dist/server/OverlayScrollArea-D4e9D9Nd.cjs +0 -1
  360. package/dist/server/PageSkeleton-DBo7hQq-.cjs +0 -30
  361. package/dist/server/Popover-C5avmGWz.cjs +0 -1
  362. package/dist/server/Popover-H3AAYZI0.js +0 -439
  363. package/dist/server/SearchableSelect-CZrXDKfC.cjs +0 -1
  364. package/dist/server/SearchableSelect-DMqed5Er.js +0 -205
  365. package/dist/server/StatusBarNotificationBell-CGcMdT4h.cjs +0 -49
  366. package/dist/server/Stepper-CpapA_WH.cjs +0 -1
  367. package/dist/server/Stepper-gGA7JwjV.js +0 -375
  368. package/dist/server/TimeSeriesChart-BQVXUFoj.cjs +0 -1
  369. package/dist/server/TimeSeriesChart-PAb95s6x.js +0 -242
  370. package/dist/server/ToggleButton-CA9T-OsI.cjs +0 -1
  371. package/dist/server/ToggleButton-CBNKajZa.js +0 -1335
  372. package/dist/server/appThemeDerivation-BylmT80v.cjs +0 -1
  373. package/dist/server/createDialogShellFocus-CDaLuPg8.cjs +0 -1
  374. package/dist/server/createDialogShellFocus-LGDBOVnr.js +0 -369
  375. package/dist/server/createResizableSidebar-v40ZOb-Q.cjs +0 -1
  376. package/dist/server/kitHost-BfJExE1G.cjs +0 -1
  377. package/dist/server/kitHost-CVAEi9sF.js +0 -23
  378. package/dist/server/mainRealmDom-DPNaDWtw.js +0 -121
  379. package/dist/server/mainRealmDom-DwZVMPnO.cjs +0 -1
  380. package/dist/server/pageTourState-CrbEU7QW.cjs +0 -5
  381. package/dist/server/rowSource-D-wcDmFU.js +0 -1122
  382. package/dist/server/rowSource-DltiY0o3.cjs +0 -1
@@ -1,1230 +0,0 @@
1
- import { createComponent as A, insert as R, effect as K, className as M, memo as Z, spread as me, mergeProps as Se, setStyleProperty as X, template as P, use as ke, delegateEvents as Te, setAttribute as _e } from "solid-js/web";
2
- import { createMemo as G, Show as H, For as Me, createEffect as ee, Index as xe, createSelector as Ee, createSignal as J, onCleanup as De, useContext as $e, untrack as Ke, on as Oe } from "solid-js";
3
- import { VpLoader2 as Ge, VpChevronRight as He, VpSearch as Pe } from "@vokril/icons";
4
- import { O as Le } from "./OverlayScrollArea-c8Za77qs.js";
5
- import { t as Fe } from "./i18n-CBlUGOyu.js";
6
- import { c as Ne } from "./errorHandler-BvPGW-Nm.js";
7
- import { i as Ce, n as Be } from "./keys-B2nlkpqc.js";
8
- import { a as Ue } from "./useListCommands-BO_XrRHj.js";
9
- import { a as Qe } from "./builtins-XOM9gfIx.js";
10
- import { S as se, c as We } from "./createVirtualWindow-CGPw2jm_.js";
11
- import { D as qe } from "./DesktopContextMenuContext-DJ3PnqAv.js";
12
- import { B as ce } from "./bugIndicatingError-h3J5qkL6.js";
13
- const be = {
14
- canExpand: !0,
15
- canMultiSelect: !0,
16
- canTypeAhead: !0,
17
- canRename: !1,
18
- canDestroy: !1,
19
- expandAll: !1
20
- };
21
- function Ie(e, n) {
22
- return `${e}-row-${n}`;
23
- }
24
- function Ve(e) {
25
- const { treeId: n, label: o, multiSelectable: t, focusMode: r, cursorKey: a } = e;
26
- return {
27
- role: e.flat === !0 ? "listbox" : "tree",
28
- // With roving tabindex the container yields its tab stop to the cursor row
29
- // once there is one; with active-descendant the container IS the tab stop.
30
- tabIndex: r === "active-descendant" || a === null ? 0 : -1,
31
- "aria-label": o,
32
- "aria-multiselectable": t ? !0 : void 0,
33
- "aria-activedescendant": r === "active-descendant" && a !== null ? Ie(n, a) : void 0
34
- };
35
- }
36
- function Ye(e) {
37
- const { treeId: n, rows: o, index: t } = e, r = o.at(t), a = e.flat === !0, { posInSet: c, setSize: i } = o.siblingPosition(t);
38
- return {
39
- role: a ? "option" : "treeitem",
40
- id: Ie(n, r.key),
41
- // A listbox option has no level, and no expanded state to advertise.
42
- "aria-level": a ? void 0 : r.depth + 1,
43
- "aria-setsize": i,
44
- "aria-posinset": c,
45
- "aria-expanded": !a && r.expandable ? r.expanded : void 0,
46
- // Announced while the row is fetching its children — silence is what a
47
- // screen-reader user got before, for as long as the query took.
48
- "aria-busy": r.busy === !0 ? !0 : void 0
49
- };
50
- }
51
- function ze(e) {
52
- return {
53
- ...e.structure,
54
- tabIndex: e.focusMode === "roving-tabindex" && e.isCursor ? 0 : -1,
55
- "aria-selected": e.isSelected
56
- };
57
- }
58
- const Xe = /[\^$.*+?(){}|[\]\\]/;
59
- function je(e) {
60
- const n = e.trim();
61
- if (n.length === 0) return null;
62
- if (Xe.test(n))
63
- try {
64
- const t = new RegExp(n, "gi");
65
- return (r) => Ze(r, t);
66
- } catch (t) {
67
- Ne("fall through to substring", t);
68
- }
69
- const o = n.toLowerCase();
70
- return (t) => Je(t, o, n.length);
71
- }
72
- function Ze(e, n) {
73
- n.lastIndex = 0;
74
- const o = [];
75
- let t = 0, r;
76
- for (; (r = n.exec(e)) !== null; )
77
- r.index > t && o.push({ text: e.slice(t, r.index), match: !1 }), o.push({ text: r[0], match: !0 }), t = r.index + r[0].length, r[0].length === 0 && (n.lastIndex += 1);
78
- return t < e.length && o.push({ text: e.slice(t), match: !1 }), o.length > 0 ? o : [{ text: e, match: !1 }];
79
- }
80
- function Je(e, n, o) {
81
- if (o === 0) return [{ text: e, match: !1 }];
82
- const t = e.toLowerCase(), r = [];
83
- let a = 0;
84
- for (; a <= e.length; ) {
85
- const c = t.indexOf(n, a);
86
- if (c === -1) {
87
- a < e.length && r.push({ text: e.slice(a), match: !1 });
88
- break;
89
- }
90
- c > a && r.push({ text: e.slice(a, c), match: !1 }), r.push({ text: e.slice(c, c + o), match: !0 }), a = c + o;
91
- }
92
- return r.length > 0 ? r : [{ text: e, match: !1 }];
93
- }
94
- const pe = "vk_treeStickyHost_6aT7a", et = "vk_treeViewport_Ku3yB", tt = "vk_treeContainer_iMrOQ", nt = "vk_treeSlice_homAf", rt = "vk_treeRow_Hh9r0", ot = "vk_treeRowCursor_QlUrp", ct = "vk_treeRowSelected_UdZj-", at = "vk_treeIndentGuides_W4J04", lt = "vk_treeIndentGuideActive_9m4l3", ut = "vk_treeRowChevron_6WMjE", it = "vk_treeRowChevronSpacer_Jbp-q", st = "vk_treeRowChevronIcon_KP24Y", dt = "vk_treeRowChevronIconOpen_fRKNn", ht = "vk_treeRowContent_RR7pP", ft = "vk_treeRowActions_LYQUv", gt = "vk_treeEmpty_s8RQ-", yt = "vk_treeRowChevronBusy_lZT8a", wt = "vk_treeSpeedSearchBadge_9GHNi", vt = "vk_treeSpeedSearchIcon_48Ae2", mt = "vk_treeSpeedSearchText_F4SZ8", St = "vk_treeMatchHighlight_NY75y", b = {
95
- treeStickyHost: pe,
96
- treeViewport: et,
97
- treeContainer: tt,
98
- treeSlice: nt,
99
- treeRow: rt,
100
- treeRowCursor: ot,
101
- treeRowSelected: ct,
102
- treeIndentGuides: at,
103
- treeIndentGuideActive: lt,
104
- treeRowChevron: ut,
105
- treeRowChevronSpacer: it,
106
- treeRowChevronIcon: st,
107
- treeRowChevronIconOpen: dt,
108
- treeRowContent: ht,
109
- treeRowActions: ft,
110
- treeEmpty: gt,
111
- treeRowChevronBusy: yt,
112
- treeSpeedSearchBadge: wt,
113
- treeSpeedSearchIcon: vt,
114
- treeSpeedSearchText: mt,
115
- treeMatchHighlight: St
116
- };
117
- var kt = /* @__PURE__ */ P("<span aria-hidden=true tabindex=-1>"), re = /* @__PURE__ */ P("<span aria-hidden=true>"), xt = /* @__PURE__ */ P("<span tabindex=-1>"), Ct = /* @__PURE__ */ P("<div><span>"), bt = /* @__PURE__ */ P("<mark>");
118
- function It(e) {
119
- return e.ctrlKey || e.metaKey ? "toggle" : e.shiftKey ? "range" : "replace";
120
- }
121
- function Ae(e) {
122
- let n;
123
- ee(() => {
124
- if (e.sticky === !0 || !e.isCursor || !e.treeHasFocus()) return;
125
- const t = n;
126
- !t || t.contains(t.ownerDocument.activeElement) || queueMicrotask(() => t.focus({
127
- preventScroll: !0
128
- }));
129
- });
130
- const o = () => A(H, {
131
- get when() {
132
- return e.row.expandable;
133
- },
134
- get fallback() {
135
- return (() => {
136
- var t = re();
137
- return K(() => M(t, b.treeRowChevronSpacer)), t;
138
- })();
139
- },
140
- get children() {
141
- var t = kt();
142
- return t.$$dblclick = (r) => r.stopPropagation(), t.$$keydown = (r) => {
143
- (Ce(r, "Enter") || r.key === " ") && (r.stopPropagation(), e.onToggle(e.row));
144
- }, t.$$click = (r) => {
145
- r.stopPropagation(), e.onToggle(e.row);
146
- }, R(t, A(H, {
147
- get when() {
148
- return e.row.busy;
149
- },
150
- get fallback() {
151
- return A(He, {
152
- get class() {
153
- return `${b.treeRowChevronIcon} ${e.row.expanded ? b.treeRowChevronIconOpen : ""}`;
154
- }
155
- });
156
- },
157
- get children() {
158
- return A(Ge, {
159
- "data-motion-exempt": "true",
160
- get class() {
161
- return `${b.treeRowChevronIcon} ${b.treeRowChevronBusy}`;
162
- }
163
- });
164
- }
165
- })), K(() => M(t, b.treeRowChevron)), t;
166
- }
167
- });
168
- return (() => {
169
- var t = Ct(), r = t.firstChild, a = n;
170
- return typeof a == "function" ? ke(a, t) : n = t, me(t, Se({
171
- get tabIndex() {
172
- return e.sticky === !0 ? -1 : 0;
173
- }
174
- }, () => e.sticky === !0 ? {
175
- tabIndex: -1
176
- } : e.aria, {
177
- get onKeyDown() {
178
- var c;
179
- return (c = e.dom) == null ? void 0 : c.onKeyDown;
180
- },
181
- get class() {
182
- var c;
183
- return [b.treeRow, e.isCursor ? b.treeRowCursor : "", e.isSelected ? b.treeRowSelected : "", ((c = e.dom) == null ? void 0 : c.class) ?? ""].filter(Boolean).join(" ");
184
- },
185
- get style() {
186
- return {
187
- height: `${e.rowHeight}px`,
188
- // Depth travels as a CSS variable so indent stays ONE formula in the
189
- // stylesheet. Four surfaces used to hardcode it four different ways.
190
- "--tree-depth": String(e.row.depth)
191
- };
192
- }
193
- }, () => e.sticky === !0 ? {
194
- "data-tree-sticky-key": e.row.key
195
- } : {
196
- "data-tree-row-key": e.row.key
197
- }, () => {
198
- var c;
199
- return ((c = e.dom) == null ? void 0 : c.title) !== void 0 ? {
200
- title: e.dom.title
201
- } : {};
202
- }, () => {
203
- var c;
204
- return ((c = e.dom) == null ? void 0 : c.draggable) !== void 0 ? {
205
- draggable: e.dom.draggable
206
- } : {};
207
- }, () => {
208
- var c;
209
- return (c = e.dom) != null && c.onDragStart ? {
210
- onDragStart: e.dom.onDragStart
211
- } : {};
212
- }, () => {
213
- var c;
214
- return (c = e.dom) != null && c.onDragOver ? {
215
- onDragOver: e.dom.onDragOver
216
- } : {};
217
- }, () => {
218
- var c;
219
- return (c = e.dom) != null && c.onDragLeave ? {
220
- onDragLeave: e.dom.onDragLeave
221
- } : {};
222
- }, () => {
223
- var c;
224
- return (c = e.dom) != null && c.onDrop ? {
225
- onDrop: e.dom.onDrop
226
- } : {};
227
- }, () => {
228
- var c;
229
- return (c = e.dom) != null && c.onDragEnd ? {
230
- onDragEnd: e.dom.onDragEnd
231
- } : {};
232
- }, () => {
233
- var c;
234
- return (c = e.dom) != null && c.onMouseEnter ? {
235
- onMouseEnter: e.dom.onMouseEnter
236
- } : {};
237
- }, () => {
238
- var c;
239
- return (c = e.dom) != null && c.onMouseLeave ? {
240
- onMouseLeave: e.dom.onMouseLeave
241
- } : {};
242
- }, {
243
- onMouseDown: (c) => {
244
- if (c.button === 2) {
245
- e.isSelected ? e.onFocusRow(e.index) : e.onSelect(e.index, "replace");
246
- return;
247
- }
248
- c.button === 0 && e.onSelect(e.index, It(c));
249
- },
250
- onClick: (c) => e.onActivateClick(e.row, "single-click", c),
251
- onDblClick: (c) => e.onActivateClick(e.row, "double-click", c),
252
- onContextMenu: (c) => {
253
- c.preventDefault(), c.stopPropagation(), e.onOpenMenu(e.row, c);
254
- }
255
- }), !1, !0), R(t, A(H, {
256
- get when() {
257
- return Z(() => e.indentGuide !== "none")() && e.row.depth > 0;
258
- },
259
- get children() {
260
- var c = re();
261
- return K(() => M(c, b.treeIndentGuides)), c;
262
- }
263
- }), r), R(t, A(H, {
264
- get when() {
265
- return Z(() => e.indentGuide === "active" && e.activeGuideDepth >= 0)() && e.row.depth > e.activeGuideDepth;
266
- },
267
- get children() {
268
- var c = re();
269
- return K((i) => {
270
- var f = b.treeIndentGuideActive, v = `${e.activeGuideDepth}`;
271
- return f !== i.e && M(c, i.e = f), v !== i.t && X(c, "--tree-active-col", i.t = v), i;
272
- }, {
273
- e: void 0,
274
- t: void 0
275
- }), c;
276
- }
277
- }), r), R(t, A(H, {
278
- get when() {
279
- return e.showChevronGutter;
280
- },
281
- get children() {
282
- return o();
283
- }
284
- }), r), R(r, () => e.content), R(t, A(H, {
285
- get when() {
286
- return e.actions;
287
- },
288
- get children() {
289
- var c = xt();
290
- return c.$$dblclick = (i) => i.stopPropagation(), c.$$keydown = (i) => i.stopPropagation(), c.$$click = (i) => i.stopPropagation(), R(c, () => e.actions), K(() => M(c, b.treeRowActions)), c;
291
- }
292
- }), null), K(() => M(r, b.treeRowContent)), t;
293
- })();
294
- }
295
- function gn(e) {
296
- const n = () => e.query ? typeof e.query == "function" ? e.query() : e.query : "", o = G(() => {
297
- const t = n().trim();
298
- if (t.length === 0) return null;
299
- const r = je(t);
300
- return r ? r(e.text) : null;
301
- });
302
- return A(H, {
303
- get when() {
304
- return o();
305
- },
306
- get fallback() {
307
- return Z(() => e.text);
308
- },
309
- get children() {
310
- return A(Me, {
311
- get each() {
312
- return o();
313
- },
314
- children: (t) => A(H, {
315
- get when() {
316
- return t.match;
317
- },
318
- get fallback() {
319
- return Z(() => t.text);
320
- },
321
- get children() {
322
- var r = bt();
323
- return R(r, () => t.text), K(() => M(r, e.class ?? b.treeMatchHighlight)), r;
324
- }
325
- })
326
- });
327
- }
328
- });
329
- }
330
- Te(["click", "keydown", "dblclick"]);
331
- const At = "vk_treeStickyWidget_Q-8QQ", Rt = "vk_treeStickyRow_7gWG2", de = {
332
- treeStickyWidget: At,
333
- treeStickyRow: Rt
334
- };
335
- var Tt = /* @__PURE__ */ P("<div role=list>"), _t = /* @__PURE__ */ P("<div role=listitem>");
336
- function Mt(e) {
337
- return (() => {
338
- var n = Tt();
339
- return R(n, A(xe, {
340
- get each() {
341
- return e.rows;
342
- },
343
- children: (o, t) => (() => {
344
- var r = _t();
345
- return R(r, A(Ae, {
346
- sticky: !0,
347
- get row() {
348
- return o().row;
349
- },
350
- get index() {
351
- return o().index;
352
- },
353
- get rowHeight() {
354
- return e.descriptor.rowHeight;
355
- },
356
- get isCursor() {
357
- return e.isCursor(o().index);
358
- },
359
- get isSelected() {
360
- return e.isSelected(o().row);
361
- },
362
- treeHasFocus: () => !1,
363
- get showChevronGutter() {
364
- return e.showChevronGutter;
365
- },
366
- get indentGuide() {
367
- return e.indentGuide;
368
- },
369
- get activeGuideDepth() {
370
- return e.activeGuideDepth;
371
- },
372
- get dom() {
373
- var a, c;
374
- return (c = (a = e.descriptor).rowProps) == null ? void 0 : c.call(a, o().row);
375
- },
376
- get content() {
377
- return e.descriptor.renderContent(o().row);
378
- },
379
- get actions() {
380
- var a, c;
381
- return (c = (a = e.descriptor).renderActions) == null ? void 0 : c.call(a, o().row);
382
- },
383
- get onSelect() {
384
- return e.onSelect;
385
- },
386
- get onFocusRow() {
387
- return e.onFocusRow;
388
- },
389
- get onToggle() {
390
- return e.onToggle;
391
- },
392
- onActivateClick: () => e.onReveal(o().index),
393
- get onOpenMenu() {
394
- return e.onOpenMenu;
395
- }
396
- })), K((a) => {
397
- var c = de.treeStickyRow, i = `${o().top}px`, f = `${e.rows.length - t}`;
398
- return c !== a.e && M(r, a.e = c), i !== a.t && X(r, "top", a.t = i), f !== a.a && X(r, "z-index", a.a = f), a;
399
- }, {
400
- e: void 0,
401
- t: void 0,
402
- a: void 0
403
- }), r;
404
- })()
405
- })), K((o) => {
406
- var t = de.treeStickyWidget, r = e.label, a = `${e.height}px`;
407
- return t !== o.e && M(n, o.e = t), r !== o.t && _e(n, "aria-label", o.t = r), a !== o.a && X(n, "height", o.a = a), o;
408
- }, {
409
- e: void 0,
410
- t: void 0,
411
- a: void 0
412
- }), n;
413
- })();
414
- }
415
- var Et = /* @__PURE__ */ P("<div role=status aria-live=polite aria-atomic=true><span>"), Dt = /* @__PURE__ */ P("<div><div>"), $t = /* @__PURE__ */ P("<p>"), Kt = /* @__PURE__ */ P("<div>");
416
- const he = "roving-tabindex";
417
- function yn(e) {
418
- const n = () => e.surface.descriptor, o = () => e.surface.controller;
419
- let t;
420
- const r = G(() => ({
421
- ...be,
422
- ...n().capabilities
423
- })), a = () => r().canExpand && (n().chevronGutter ?? !0), c = G(() => {
424
- if ((n().indentGuide ?? "none") !== "active") return -1;
425
- const w = e.surface.cursorRow();
426
- return w ? w.depth - 1 : -1;
427
- }), i = G(() => {
428
- const {
429
- start: w,
430
- end: u
431
- } = e.surface.scroller.range();
432
- return Array.from({
433
- length: u - w
434
- }, (I, C) => w + C);
435
- }), f = Ee(() => o().cursorIndex());
436
- Ue({
437
- container: () => t,
438
- supportsMultiselect: () => r().canMultiSelect,
439
- verbs: {
440
- selectAll: () => o().selectAll()
441
- }
442
- });
443
- const v = Qe() === null, s = (w) => (w.key === "a" || w.key === "A") && (w.ctrlKey || w.metaKey) && !w.altKey && !w.shiftKey, y = G(() => Ve({
444
- treeId: n().id,
445
- label: n().ariaLabel,
446
- multiSelectable: r().canMultiSelect,
447
- focusMode: he,
448
- cursorKey: o().cursorKey(),
449
- flat: !r().canExpand
450
- })), S = (w) => {
451
- const u = w;
452
- return u != null && u.tagName ? u.tagName === "INPUT" || u.tagName === "TEXTAREA" || u.isContentEditable === !0 : !1;
453
- }, T = () => t !== void 0 && t.contains(t.ownerDocument.activeElement), k = (w, u) => {
454
- o().selectIndex(w, u);
455
- }, B = (w, u, I) => {
456
- var C, x;
457
- (x = (C = n()).onActivate) == null || x.call(C, w, u, I);
458
- }, E = (w, u) => {
459
- e.surface.openMenu(w, {
460
- x: u.clientX,
461
- y: u.clientY
462
- }, u);
463
- }, Q = (w) => {
464
- t == null || t.focus({
465
- preventScroll: !0
466
- }), e.surface.scroller.scrollToIndex(w, "auto", e.surface.stickyInsetFor(w));
467
- };
468
- return (() => {
469
- var w = Kt();
470
- return R(w, A(H, {
471
- get when() {
472
- return o().typeAheadQuery().length > 0;
473
- },
474
- get children() {
475
- var u = Et(), I = u.firstChild;
476
- return R(u, A(Pe, {
477
- get class() {
478
- return b.treeSpeedSearchIcon;
479
- }
480
- }), I), R(I, () => o().typeAheadQuery()), K((C) => {
481
- var x = b.treeSpeedSearchBadge, D = b.treeSpeedSearchText;
482
- return x !== C.e && M(u, C.e = x), D !== C.t && M(I, C.t = D), C;
483
- }, {
484
- e: void 0,
485
- t: void 0
486
- }), u;
487
- }
488
- }), null), R(w, A(Le, {
489
- viewportRef: (u) => {
490
- var I;
491
- e.surface.scroller.containerRef(u), (I = e.viewportRef) == null || I.call(e, u);
492
- },
493
- get viewportClass() {
494
- return `${b.treeViewport} ${e.viewportClass ?? ""}`.trim();
495
- },
496
- get children() {
497
- return [(() => {
498
- var u = Dt(), I = u.firstChild, C = t;
499
- return typeof C == "function" ? ke(C, u) : t = u, me(u, Se(y, {
500
- get class() {
501
- return b.treeContainer;
502
- },
503
- get style() {
504
- return {
505
- height: `${e.surface.scroller.totalHeight()}px`
506
- };
507
- },
508
- onKeyDown: (x) => {
509
- if (!S(x.target)) {
510
- if (v && s(x) && r().canMultiSelect) {
511
- x.preventDefault(), o().selectAll();
512
- return;
513
- }
514
- o().handleKeyDown(x);
515
- }
516
- },
517
- onFocus: (x) => {
518
- x.target === x.currentTarget && o().cursorIndex() < 0 && o().focusIndex(0);
519
- }
520
- }), !1, !0), R(I, A(xe, {
521
- get each() {
522
- return i();
523
- },
524
- children: (x) => {
525
- const D = G(() => e.surface.source().at(x())), W = () => f(x()), j = () => o().selectedKeys().has(D().key), ae = G(() => Ye({
526
- treeId: n().id,
527
- rows: e.surface.source(),
528
- index: x(),
529
- flat: !r().canExpand
530
- }));
531
- return A(Ae, {
532
- get row() {
533
- return D();
534
- },
535
- get index() {
536
- return x();
537
- },
538
- get aria() {
539
- return ze({
540
- structure: ae(),
541
- focusMode: he,
542
- isCursor: W(),
543
- isSelected: j()
544
- });
545
- },
546
- get rowHeight() {
547
- return n().rowHeight;
548
- },
549
- get isCursor() {
550
- return W();
551
- },
552
- get isSelected() {
553
- return j();
554
- },
555
- treeHasFocus: T,
556
- get showChevronGutter() {
557
- return a();
558
- },
559
- get indentGuide() {
560
- return n().indentGuide ?? "none";
561
- },
562
- get activeGuideDepth() {
563
- return c();
564
- },
565
- get dom() {
566
- var L, F;
567
- return (F = (L = n()).rowProps) == null ? void 0 : F.call(L, D());
568
- },
569
- get content() {
570
- return n().renderContent(D());
571
- },
572
- get actions() {
573
- var L, F;
574
- return (F = (L = n()).renderActions) == null ? void 0 : F.call(L, D());
575
- },
576
- onSelect: k,
577
- onFocusRow: (L) => o().focusIndex(L),
578
- onToggle: (L) => {
579
- var F, te;
580
- return (te = (F = n()).onToggle) == null ? void 0 : te.call(F, L);
581
- },
582
- onActivateClick: B,
583
- onOpenMenu: E
584
- });
585
- }
586
- })), K((x) => {
587
- var D = b.treeSlice, W = `translate3d(0, ${e.surface.scroller.offsetY()}px, 0)`;
588
- return D !== x.e && M(I, x.e = D), W !== x.t && X(I, "transform", x.t = W), x;
589
- }, {
590
- e: void 0,
591
- t: void 0
592
- }), u;
593
- })(), A(H, {
594
- get when() {
595
- return Z(() => e.surface.source().length === 0)() && n().emptyLabel;
596
- },
597
- get children() {
598
- var u = $t();
599
- return R(u, () => n().emptyLabel), K(() => M(u, b.treeEmpty)), u;
600
- }
601
- })];
602
- }
603
- }), null), R(w, A(H, {
604
- get when() {
605
- return e.surface.stickyState().rows.length > 0;
606
- },
607
- get children() {
608
- return A(Mt, {
609
- get rows() {
610
- return e.surface.stickyState().rows;
611
- },
612
- get height() {
613
- return e.surface.stickyState().height;
614
- },
615
- get label() {
616
- return Fe("Sticky parent rows");
617
- },
618
- get descriptor() {
619
- return n();
620
- },
621
- get showChevronGutter() {
622
- return a();
623
- },
624
- get indentGuide() {
625
- return n().indentGuide ?? "none";
626
- },
627
- get activeGuideDepth() {
628
- return c();
629
- },
630
- isCursor: (u) => o().cursorIndex() === u,
631
- isSelected: (u) => o().selectedKeys().has(u.key),
632
- onSelect: k,
633
- onFocusRow: (u) => o().focusIndex(u),
634
- onToggle: (u) => {
635
- var I, C;
636
- return (C = (I = n()).onToggle) == null ? void 0 : C.call(I, u);
637
- },
638
- onReveal: Q,
639
- onOpenMenu: E
640
- });
641
- }
642
- }), null), K((u) => {
643
- var I = b.treeStickyHost, C = `${n().indentBaseRem ?? 0}rem`;
644
- return I !== u.e && M(w, u.e = I), C !== u.t && X(w, "--tree-indent-base", u.t = C), u;
645
- }, {
646
- e: void 0,
647
- t: void 0
648
- }), w;
649
- })();
650
- }
651
- const fe = 10, z = (e, n) => Math.max(0, Math.min(e, n - 1));
652
- function Ot(e) {
653
- return e.key.length === 1 && e.key !== " " && !e.ctrlKey && !e.metaKey && !e.altKey;
654
- }
655
- function Gt(e, n) {
656
- const { index: o, rowCount: t, capabilities: r } = n;
657
- if (t === 0) return null;
658
- const a = o < 0 ? -1 : o;
659
- switch (Be(e)) {
660
- case "ArrowDown":
661
- return e.shiftKey && r.canMultiSelect ? { type: "extend", to: z(a + 1, t) } : { type: "move", to: z(a + 1, t) };
662
- case "ArrowUp":
663
- return a < 0 ? { type: "move", to: t - 1 } : e.shiftKey && r.canMultiSelect ? { type: "extend", to: z(a - 1, t) } : { type: "move", to: z(a - 1, t) };
664
- case "Home":
665
- return { type: "move", to: 0 };
666
- case "End":
667
- return { type: "move", to: t - 1 };
668
- case "PageDown":
669
- return {
670
- type: "move",
671
- to: z(Math.max(a, 0) + fe, t)
672
- };
673
- case "PageUp":
674
- return {
675
- type: "move",
676
- to: z(Math.max(a, 0) - fe, t)
677
- };
678
- case "ArrowRight":
679
- return r.canExpand ? { type: "expandOrDescend" } : { type: "flatNavigate", direction: "in" };
680
- case "ArrowLeft":
681
- return e.ctrlKey || e.metaKey ? null : r.canExpand ? { type: "collapseOrAscend" } : { type: "flatNavigate", direction: "out" };
682
- case "Enter":
683
- return { type: "activate" };
684
- case "ContextMenu":
685
- return { type: "openMenu" };
686
- case "F10":
687
- return e.shiftKey ? { type: "openMenu" } : null;
688
- }
689
- return e.key === " " ? r.canExpand ? { type: "toggle" } : null : r.canTypeAhead && Ot(e) ? { type: "typeAhead", char: e.key } : null;
690
- }
691
- function Ht(e, n, o, t = !1) {
692
- const r = o.toLowerCase();
693
- if (r.length === 0) return -1;
694
- const a = e.length;
695
- if (a === 0) return -1;
696
- const c = t ? 0 : 1;
697
- for (let i = c; i <= a; i++) {
698
- const f = (n + i + a) % a;
699
- if (e.at(f).label.toLowerCase().startsWith(r)) return f;
700
- }
701
- for (let i = c; i <= a; i++) {
702
- const f = (n + i + a) % a;
703
- if (e.at(f).label.toLowerCase().includes(r)) return f;
704
- }
705
- return -1;
706
- }
707
- function Pt(e, n, o) {
708
- const t = [...o].filter((v) => e.indexOfKey(v) >= 0), r = Lt(e, n, t), a = Ft(e, r), c = (v) => v.selectable !== !1 && (a === void 0 || v.kind === a), i = new Set(t);
709
- let f = r < 0 ? -1 : e.parentIndex(r);
710
- for (; ; ) {
711
- const v = Nt(e, f, c);
712
- if (f < 0) return v;
713
- const s = v.length === i.size && v.every((S) => i.has(S));
714
- if (v.length > 0 && !s) return v;
715
- const y = e.at(f);
716
- if (v.length > 0 && c(y))
717
- return [y.key, ...v];
718
- f = e.parentIndex(f);
719
- }
720
- }
721
- function Lt(e, n, o) {
722
- const t = n >= 0 && n < e.length ? e.at(n).key : void 0;
723
- if (t !== void 0 && !o.includes(t)) return n;
724
- const r = o[0];
725
- return r === void 0 ? -1 : e.indexOfKey(r);
726
- }
727
- function Ft(e, n) {
728
- if (n >= 0) {
729
- const t = e.at(n);
730
- if (t.selectable !== !1) return t.kind;
731
- }
732
- const o = Math.max(n, 0);
733
- for (let t = 0; t < e.length; t++) {
734
- const r = e.at((o + t) % e.length);
735
- if (r.selectable !== !1) return r.kind;
736
- }
737
- }
738
- function Nt(e, n, o) {
739
- const t = n < 0 ? 0 : n + 1, r = n < 0 ? e.length - 1 : e.subtreeEnd(n), a = [];
740
- for (let c = t; c <= r; c++) {
741
- const i = e.at(c);
742
- o(i) && a.push(i.key);
743
- }
744
- return a;
745
- }
746
- const ge = 1e3;
747
- function oe(e, n) {
748
- const o = [];
749
- for (let t = e.parentIndex(n); t !== -1; t = e.parentIndex(t))
750
- o.push(e.at(t).key);
751
- return { key: e.at(n).key, ancestors: o, index: n };
752
- }
753
- function ye(e, n) {
754
- if (n === null || e.length === 0) return -1;
755
- if (n.index < e.length && e.at(n.index).key === n.key)
756
- return n.index;
757
- const o = e.indexOfKey(n.key);
758
- if (o >= 0) return o;
759
- for (const t of n.ancestors) {
760
- const r = e.indexOfKey(t);
761
- if (r >= 0) return r;
762
- }
763
- return Math.min(n.index, e.length - 1);
764
- }
765
- function Bt(e) {
766
- const n = () => ({
767
- ...be,
768
- ...e.capabilities,
769
- expandAll: !1
770
- }), [o, t] = J(null), [r, a] = J(
771
- /* @__PURE__ */ new Set()
772
- ), [c, i] = J(null), f = G(
773
- () => ye(e.rows(), o())
774
- ), v = () => ye(e.rows(), c()), s = G(() => {
775
- const l = f();
776
- return l < 0 ? null : e.rows().at(l).key;
777
- });
778
- ee(() => {
779
- const l = o(), d = f();
780
- if (l === null || d < 0) return;
781
- const h = e.rows(), g = h.at(d).key;
782
- if (g === l.key) {
783
- d !== l.index && t(oe(h, d));
784
- return;
785
- }
786
- l.ancestors.includes(g) && t(oe(h, d));
787
- });
788
- const [y, S] = J("");
789
- let T = 0, k;
790
- const B = () => {
791
- k !== void 0 && (clearTimeout(k), k = void 0), y().length > 0 && S("");
792
- }, E = () => {
793
- k !== void 0 && (clearTimeout(k), k = void 0), k = setTimeout(() => {
794
- S(""), k = void 0;
795
- }, ge);
796
- };
797
- De(() => {
798
- k !== void 0 && (clearTimeout(k), k = void 0);
799
- });
800
- const Q = (l) => {
801
- const d = e.rows();
802
- return l >= 0 && l < d.length ? d.at(l) : void 0;
803
- }, w = (l, d) => {
804
- var g;
805
- const h = oe(e.rows(), l);
806
- t(h), d && i(h), (g = e.onScrollToIndex) == null || g.call(e, l);
807
- }, u = (l) => {
808
- const d = e.rows();
809
- l < 0 || l >= d.length || l === f() || w(l, !0);
810
- }, I = (l) => {
811
- var h;
812
- const d = e.rows().indexOfKey(l);
813
- d < 0 || (d === f() ? (h = e.onScrollToIndex) == null || h.call(e, d) : u(d));
814
- }, C = (l, d) => {
815
- var U;
816
- const h = e.rows(), g = (U = Q(l)) == null ? void 0 : U.kind, [m, _] = l <= d ? [l, d] : [d, l], $ = /* @__PURE__ */ new Set();
817
- for (let q = Math.max(m, 0); q <= Math.min(_, h.length - 1); q++) {
818
- const V = h.at(q);
819
- V.selectable !== !1 && (g !== void 0 && V.kind !== g || $.add(V.key));
820
- }
821
- return $;
822
- }, x = (l, d) => {
823
- B();
824
- const h = Q(l);
825
- if (h) {
826
- if (h.selectable === !1 && d !== "range") {
827
- u(l);
828
- return;
829
- }
830
- if (d === "toggle" && n().canMultiSelect) {
831
- const g = new Set(r());
832
- g.has(h.key) ? g.delete(h.key) : g.add(h.key), a(g), w(l, !0);
833
- return;
834
- }
835
- if (d === "range" && n().canMultiSelect) {
836
- const g = v();
837
- a(C(g >= 0 ? g : l, l)), w(l, !1);
838
- return;
839
- }
840
- a(/* @__PURE__ */ new Set([h.key])), w(l, !0);
841
- }
842
- }, D = (l, d) => {
843
- const h = e.rows().indexOfKey(l);
844
- h >= 0 && x(h, d);
845
- }, W = () => {
846
- B(), r().size > 0 && a(/* @__PURE__ */ new Set());
847
- }, j = (l, d) => {
848
- const h = e.rows(), g = Q(l);
849
- if (!g) return;
850
- const m = g.depth + 1, _ = h.subtreeEnd(l);
851
- for (let $ = l + 1; $ <= _; $ = h.subtreeEnd($) + 1) {
852
- const U = h.at($);
853
- U.depth === m && d(U, $);
854
- }
855
- };
856
- return {
857
- cursorIndex: f,
858
- cursorKey: s,
859
- selectedKeys: r,
860
- typeAheadQuery: y,
861
- get capabilities() {
862
- return n();
863
- },
864
- focusIndex: u,
865
- focusKey: I,
866
- selectIndex: x,
867
- selectKey: D,
868
- clearSelection: W,
869
- selectChildren: (l) => {
870
- const d = /* @__PURE__ */ new Set();
871
- let h, g = !1, m = -1;
872
- j(l, (_, $) => {
873
- if (_.selectable !== !1) {
874
- if (!g)
875
- h = _.kind, m = $, g = !0;
876
- else if (h !== void 0 && _.kind !== h) return;
877
- d.add(_.key);
878
- }
879
- }), d.size !== 0 && (a(d), m >= 0 && w(m, !0));
880
- },
881
- selectAll: () => {
882
- n().canMultiSelect && a(
883
- new Set(Pt(e.rows(), f(), r()))
884
- );
885
- },
886
- childKindsHomogeneous: (l) => {
887
- let d, h = !1, g = 0, m = 0;
888
- return j(l, (_) => {
889
- _.selectable !== !1 && (g++, h ? (d === void 0 || _.kind === d) && m++ : (d = _.kind, h = !0, m++));
890
- }), {
891
- homogeneous: g > 0 && g === m,
892
- total: g,
893
- selectable: m
894
- };
895
- },
896
- handleKeyDown: (l) => {
897
- var _, $, U, q, V, le, ue;
898
- if (Ce(l, "Escape") && y().length > 0) {
899
- l.preventDefault(), l.stopPropagation(), B();
900
- return;
901
- }
902
- const d = e.rows(), h = f(), g = Gt(l, {
903
- index: h,
904
- rowCount: d.length,
905
- capabilities: n()
906
- });
907
- if (!g) return;
908
- const m = Q(h);
909
- switch (g.type) {
910
- case "move":
911
- l.preventDefault(), u(g.to);
912
- return;
913
- case "extend": {
914
- l.preventDefault();
915
- const O = v();
916
- a(C(O >= 0 ? O : h, g.to)), w(g.to, !1);
917
- return;
918
- }
919
- case "expandOrDescend":
920
- if (!m) return;
921
- if (l.preventDefault(), m.expandable && !m.expanded) {
922
- (_ = e.onToggle) == null || _.call(e, m);
923
- return;
924
- }
925
- u(h + 1);
926
- return;
927
- case "collapseOrAscend": {
928
- if (!m) return;
929
- if (l.preventDefault(), m.expandable && m.expanded) {
930
- ($ = e.onToggle) == null || $.call(e, m);
931
- return;
932
- }
933
- const O = d.parentIndex(h);
934
- O >= 0 && u(O);
935
- return;
936
- }
937
- case "toggle":
938
- if (!(m != null && m.expandable)) return;
939
- l.preventDefault(), (U = e.onToggle) == null || U.call(e, m);
940
- return;
941
- case "flatNavigate":
942
- l.preventDefault(), (q = e.onFlatNavigate) == null || q.call(e, g.direction, m);
943
- return;
944
- case "activate":
945
- if (!m) return;
946
- l.preventDefault(), (V = e.onActivate) == null || V.call(e, m);
947
- return;
948
- case "openMenu": {
949
- if (!m) return;
950
- l.preventDefault();
951
- const O = l.target, N = O == null ? void 0 : O.getBoundingClientRect();
952
- (le = e.onOpenMenu) == null || le.call(e, m, {
953
- x: Math.round((N == null ? void 0 : N.left) ?? 0),
954
- y: Math.round((N == null ? void 0 : N.bottom) ?? 0)
955
- });
956
- return;
957
- }
958
- case "typeAhead": {
959
- const O = ((ue = e.now) == null ? void 0 : ue.call(e)) ?? Date.now(), N = O - T > ge, Y = N ? "" : y(), ne = Y.length === 1 && Y.toLowerCase() === g.char.toLowerCase() ? Y : `${Y}${g.char}`, ie = Ht(
960
- d,
961
- h,
962
- ne,
963
- ne.length > 1 && !N
964
- );
965
- if (T = O, ie < 0) {
966
- S(Y), Y.length > 0 ? E() : B();
967
- return;
968
- }
969
- S(ne), E(), l.preventDefault(), u(ie);
970
- return;
971
- }
972
- }
973
- },
974
- openMenuAt: (l, d) => {
975
- var g;
976
- const h = Q(l);
977
- h && ((g = e.onOpenMenu) == null || g.call(e, h, d));
978
- }
979
- };
980
- }
981
- const Ut = 0.4, Qt = { rows: [], height: 0 };
982
- function Re(e) {
983
- return Math.max(Math.floor(e), 1);
984
- }
985
- function Wt(e, n, o) {
986
- let t = n, r = e.parentIndex(t);
987
- for (; r !== -1; ) {
988
- if (r === o) return t;
989
- t = r, r = e.parentIndex(t);
990
- }
991
- return o === -1 ? t : -1;
992
- }
993
- function qt(e, n, o, t) {
994
- let r = e;
995
- for (let c = 0; c < e.length; c++)
996
- if (e[c].top + t > o || c >= n) {
997
- r = e.slice(0, c);
998
- break;
999
- }
1000
- const a = r[r.length - 1];
1001
- return a ? { rows: r, height: a.top + t } : { rows: [], height: 0 };
1002
- }
1003
- function Vt(e) {
1004
- const { rows: n, scrollTop: o, rowHeight: t, viewportHeight: r } = e;
1005
- if (n.length === 0 || t <= 0) return Qt;
1006
- const a = Re(e.maxCount), c = [];
1007
- let i = 0, f = -1;
1008
- for (; ; ) {
1009
- const v = Math.floor((o + i) / t);
1010
- if (v < 0 || v >= n.length) break;
1011
- const s = Wt(n, v, f);
1012
- if (s === -1) break;
1013
- const y = n.subtreeEnd(s);
1014
- if (y === s || s === v && o === s * t - i) break;
1015
- const S = (y + 1) * t - o, T = i, k = T + t > S && T <= S ? S - t : T;
1016
- if (c.push({ index: s, row: n.at(s), top: k }), i = k + t, f = s, c.length >= a) break;
1017
- }
1018
- return qt(
1019
- c,
1020
- a,
1021
- r * Ut,
1022
- t
1023
- );
1024
- }
1025
- function Yt(e, n, o, t) {
1026
- if (n < 0 || n >= e.length) return 0;
1027
- const r = Re(t);
1028
- let a = 0, c = e.parentIndex(n);
1029
- for (; c !== -1 && (a++, a !== r); )
1030
- c = e.parentIndex(c);
1031
- return a * o;
1032
- }
1033
- function we(e, n, o) {
1034
- if (n <= 0 || e.length === 0 || o <= 0) return null;
1035
- const t = Math.min(e.length - 1, Math.floor(n / o));
1036
- return {
1037
- key: e.at(t).key,
1038
- offset: n - t * o,
1039
- contentTop: n
1040
- };
1041
- }
1042
- function zt(e, n, o, t) {
1043
- if (n === null || Math.abs(o - n.contentTop) >= se)
1044
- return null;
1045
- const r = e.indexOfKey(n.key);
1046
- if (r < 0) return null;
1047
- const a = r * t + n.offset;
1048
- return Math.abs(a - n.contentTop) >= se ? a : null;
1049
- }
1050
- const Xt = 8, ve = 7, jt = { rows: [], height: 0 };
1051
- function wn(e) {
1052
- const n = $e(qe), o = G(() => e.rows()), t = We({
1053
- count: () => o().length,
1054
- itemHeight: e.rowHeight,
1055
- overscan: e.overscan ?? Xt
1056
- }), r = G(() => e.stickyScroll !== !0 ? jt : Vt({
1057
- rows: o(),
1058
- scrollTop: t.scrollTop(),
1059
- rowHeight: e.rowHeight,
1060
- viewportHeight: t.viewportHeight(),
1061
- maxCount: e.stickyScrollMaxCount ?? ve
1062
- })), a = (s) => e.stickyScroll === !0 ? Yt(
1063
- o(),
1064
- s,
1065
- e.rowHeight,
1066
- e.stickyScrollMaxCount ?? ve
1067
- ) : 0, c = Bt({
1068
- rows: o,
1069
- ...e.capabilities ? { capabilities: e.capabilities } : {},
1070
- onToggle: (s) => {
1071
- var y;
1072
- return (y = e.onToggle) == null ? void 0 : y.call(e, s);
1073
- },
1074
- onActivate: (s) => {
1075
- var y;
1076
- return (y = e.onActivate) == null ? void 0 : y.call(e, s, "keyboard");
1077
- },
1078
- onOpenMenu: (s, y) => v(s, y),
1079
- onCollapseAll: () => {
1080
- var s;
1081
- return (s = e.onCollapseAll) == null ? void 0 : s.call(e);
1082
- },
1083
- onFlatNavigate: (s, y) => {
1084
- var S;
1085
- return (S = e.onFlatNavigate) == null ? void 0 : S.call(
1086
- e,
1087
- s,
1088
- y
1089
- );
1090
- },
1091
- onRename: (s) => {
1092
- var y;
1093
- return (y = e.onRename) == null ? void 0 : y.call(e, s);
1094
- },
1095
- onDestroy: (s) => {
1096
- var y;
1097
- return (y = e.onDestroy) == null ? void 0 : y.call(e, s);
1098
- },
1099
- // Arrow keys in a virtualized list are a lie without this: the row the
1100
- // cursor lands on may not be mounted yet.
1101
- //
1102
- // The inset is what keeps them honest once rows are pinned on top: "scroll
1103
- // just enough" would otherwise stop the moment the cursor row reached the
1104
- // viewport's top edge — which is now underneath the widget. Arrowing UP into
1105
- // a parent would walk the cursor into a row nobody can see. Every scroll the
1106
- // controller does — focus, the three selects, select-children, extend —
1107
- // comes through this one call, so this is the only place it has to be said.
1108
- onScrollToIndex: (s) => t.scrollToIndex(s, "auto", a(s))
1109
- }), i = () => {
1110
- const s = c.cursorIndex();
1111
- return s < 0 ? void 0 : o().at(s);
1112
- };
1113
- let f = null;
1114
- ee(() => {
1115
- const s = t.scrollTop();
1116
- f = we(
1117
- Ke(o),
1118
- s,
1119
- e.rowHeight
1120
- );
1121
- }), ee(
1122
- Oe(
1123
- o,
1124
- (s) => {
1125
- const y = zt(
1126
- s,
1127
- f,
1128
- t.readScrollTop(),
1129
- e.rowHeight
1130
- );
1131
- y !== null && t.scrollToContentTop(y), f = we(
1132
- s,
1133
- t.readScrollTop(),
1134
- e.rowHeight
1135
- );
1136
- },
1137
- { defer: !0 }
1138
- )
1139
- );
1140
- function v(s, y, S) {
1141
- if (e.openMenu) {
1142
- e.openMenu(s, y, S);
1143
- return;
1144
- }
1145
- if (!e.buildMenu) return;
1146
- const T = e.buildMenu(s, c.selectedKeys());
1147
- if (T.length !== 0) {
1148
- if (!n)
1149
- throw new ce(
1150
- "createTreeSurface: descriptor builds a context menu but no DesktopContextMenuProvider is mounted"
1151
- );
1152
- n.open(y.x, y.y, T, S);
1153
- }
1154
- }
1155
- return {
1156
- descriptor: e,
1157
- controller: c,
1158
- scroller: t,
1159
- source: o,
1160
- cursorRow: i,
1161
- stickyState: r,
1162
- stickyInsetFor: a,
1163
- openMenu: v
1164
- };
1165
- }
1166
- const vn = 0.85;
1167
- function p(e, n) {
1168
- if (!Number.isInteger(n) || n < 0 || n >= e.length)
1169
- throw new ce(
1170
- `tree row source: index ${n} is outside 0..${e.length - 1}`
1171
- );
1172
- }
1173
- function Zt(e) {
1174
- const n = e.length, o = new Int32Array(n), t = new Int32Array(n), r = new Int32Array(n), a = new Int32Array(n), c = [], i = [], f = [], v = [];
1175
- let s = -1, y = -1;
1176
- for (let S = 0; S < n; S++) {
1177
- const T = e[S].depth;
1178
- for (; i.length > 0 && e[i[i.length - 1]].depth >= T; )
1179
- t[i.pop()] = S - 1, f.pop(), v.pop();
1180
- const k = i.length - 1;
1181
- o[S] = k < 0 ? -1 : i[k];
1182
- const B = k < 0 ? s : f[k];
1183
- let E = k < 0 ? y : v[k];
1184
- B !== T && (E = c.length, c.push(0), k < 0 ? (s = T, y = E) : (f[k] = T, v[k] = E)), c[E] = c[E] + 1, a[S] = E, r[S] = c[E], i.push(S), f.push(-1), v.push(-1);
1185
- }
1186
- for (const S of i) t[S] = n - 1;
1187
- return { parent: o, subtreeEnd: t, posInSet: r, group: a, groupSizes: c };
1188
- }
1189
- function Jt(e) {
1190
- const n = /* @__PURE__ */ new Map();
1191
- for (let o = 0; o < e.length; o++) {
1192
- const t = e[o].key, r = n.get(t);
1193
- if (r !== void 0)
1194
- throw new ce(
1195
- `tree row source: key "${t}" occurs at rows ${r} and ${o}`
1196
- );
1197
- n.set(t, o);
1198
- }
1199
- return n;
1200
- }
1201
- function mn(e) {
1202
- const n = e.slice(), o = Zt(n), t = Jt(n), r = {
1203
- length: n.length,
1204
- at: (a) => (p(r, a), n[a]),
1205
- parentIndex: (a) => (p(r, a), o.parent[a]),
1206
- subtreeEnd: (a) => (p(r, a), o.subtreeEnd[a]),
1207
- siblingPosition: (a) => (p(r, a), {
1208
- posInSet: o.posInSet[a],
1209
- setSize: o.groupSizes[o.group[a]]
1210
- }),
1211
- indexOfKey: (a) => t.get(a) ?? -1
1212
- };
1213
- return r;
1214
- }
1215
- export {
1216
- be as D,
1217
- vn as T,
1218
- gn as a,
1219
- Ae as b,
1220
- yn as c,
1221
- p as d,
1222
- Ve as e,
1223
- ze as f,
1224
- Ye as g,
1225
- Bt as h,
1226
- wn as i,
1227
- mn as j,
1228
- Pt as s,
1229
- Ie as t
1230
- };