@synnaxlabs/pluto 0.12.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 (612) hide show
  1. package/LICENSE +4 -0
  2. package/README.md +34 -0
  3. package/dist/Center-ZAcURh-3.cjs +148 -0
  4. package/dist/Center-ZAcURh-3.cjs.map +1 -0
  5. package/dist/Center-gEKkAkdh.js +149 -0
  6. package/dist/Center-gEKkAkdh.js.map +1 -0
  7. package/dist/Header-5YX6FUn6.cjs +35 -0
  8. package/dist/Header-5YX6FUn6.cjs.map +1 -0
  9. package/dist/Header-7x6367IV.js +36 -0
  10. package/dist/Header-7x6367IV.js.map +1 -0
  11. package/dist/Item-EDdYN2NK.js +171 -0
  12. package/dist/Item-EDdYN2NK.js.map +1 -0
  13. package/dist/Item-HWzX7RK2.cjs +170 -0
  14. package/dist/Item-HWzX7RK2.cjs.map +1 -0
  15. package/dist/Item-owLU4Xop.js +97 -0
  16. package/dist/Item-owLU4Xop.js.map +1 -0
  17. package/dist/Item-rkSKzZoh.cjs +96 -0
  18. package/dist/Item-rkSKzZoh.cjs.map +1 -0
  19. package/dist/Keyboard-mE03PKwA.js +14 -0
  20. package/dist/Keyboard-mE03PKwA.js.map +1 -0
  21. package/dist/Keyboard-w372197S.cjs +13 -0
  22. package/dist/Keyboard-w372197S.cjs.map +1 -0
  23. package/dist/Link-laNlv47N.js +13 -0
  24. package/dist/Link-laNlv47N.js.map +1 -0
  25. package/dist/Link-xlTZan29.cjs +12 -0
  26. package/dist/Link-xlTZan29.cjs.map +1 -0
  27. package/dist/SelectLevel-bGb0dRXh.cjs +152 -0
  28. package/dist/SelectLevel-bGb0dRXh.cjs.map +1 -0
  29. package/dist/SelectLevel-cewIWtOv.js +153 -0
  30. package/dist/SelectLevel-cewIWtOv.js.map +1 -0
  31. package/dist/Selector-R3lL41_i.js +267 -0
  32. package/dist/Selector-R3lL41_i.js.map +1 -0
  33. package/dist/Selector-hQLSIYum.cjs +266 -0
  34. package/dist/Selector-hQLSIYum.cjs.map +1 -0
  35. package/dist/TimeRangeChip-XXXLMCrf.cjs +9316 -0
  36. package/dist/TimeRangeChip-XXXLMCrf.cjs.map +1 -0
  37. package/dist/TimeRangeChip-eDCX5pUC.js +9301 -0
  38. package/dist/TimeRangeChip-eDCX5pUC.js.map +1 -0
  39. package/dist/Toggle-eOKYw1OT.cjs +13664 -0
  40. package/dist/Toggle-eOKYw1OT.cjs.map +1 -0
  41. package/dist/Toggle-kLunfJtR.js +13665 -0
  42. package/dist/Toggle-kLunfJtR.js.map +1 -0
  43. package/dist/Video-Vpwp5ao1.js +12 -0
  44. package/dist/Video-Vpwp5ao1.js.map +1 -0
  45. package/dist/Video-a7BUKvzF.cjs +11 -0
  46. package/dist/Video-a7BUKvzF.cjs.map +1 -0
  47. package/dist/Video-k52RqIHf.cjs +2 -0
  48. package/dist/Video-k52RqIHf.cjs.map +1 -0
  49. package/dist/Video-w40geAFS.js +2 -0
  50. package/dist/Video-w40geAFS.js.map +1 -0
  51. package/dist/accordion/Accordion.d.ts +38 -0
  52. package/dist/accordion/Accordion.spec.d.ts +1 -0
  53. package/dist/accordion/Accordion.stories.d.ts +5 -0
  54. package/dist/accordion/index.d.ts +1 -0
  55. package/dist/aether/aether/aether.d.ts +247 -0
  56. package/dist/aether/aether/index.d.ts +2 -0
  57. package/dist/aether/aether/worker.spec.d.ts +8 -0
  58. package/dist/aether/index.d.ts +1 -0
  59. package/dist/aether/main.d.ts +96 -0
  60. package/dist/aether/main.spec.d.ts +8 -0
  61. package/dist/aether/message.d.ts +17 -0
  62. package/dist/aether.cjs +90 -0
  63. package/dist/aether.cjs.map +1 -0
  64. package/dist/aether.js +93 -0
  65. package/dist/aether.js.map +1 -0
  66. package/dist/aetherIndex.d.ts +14 -0
  67. package/dist/alamos/Provider.d.ts +12 -0
  68. package/dist/alamos/aether/alamos.d.ts +39 -0
  69. package/dist/alamos/aether/index.d.ts +1 -0
  70. package/dist/alamos/index.d.ts +1 -0
  71. package/dist/align/Center.d.ts +8 -0
  72. package/dist/align/Pack.d.ts +23 -0
  73. package/dist/align/Pack.stories.d.ts +8 -0
  74. package/dist/align/Space.d.ts +54 -0
  75. package/dist/align/Space.spec.d.ts +1 -0
  76. package/dist/align/Space.stories.d.ts +5 -0
  77. package/dist/align/external.d.ts +3 -0
  78. package/dist/align/index.d.ts +1 -0
  79. package/dist/align.cjs +10 -0
  80. package/dist/align.cjs.map +1 -0
  81. package/dist/align.js +10 -0
  82. package/dist/align.js.map +1 -0
  83. package/dist/button/Button.d.ts +46 -0
  84. package/dist/button/Button.spec.d.ts +1 -0
  85. package/dist/button/Button.stories.d.ts +9 -0
  86. package/dist/button/Icon.d.ts +19 -0
  87. package/dist/button/Link.d.ts +16 -0
  88. package/dist/button/Toggle.d.ts +34 -0
  89. package/dist/button/color.d.ts +3 -0
  90. package/dist/button/external.d.ts +4 -0
  91. package/dist/button/index.d.ts +1 -0
  92. package/dist/button.cjs +15 -0
  93. package/dist/button.cjs.map +1 -0
  94. package/dist/button.js +15 -0
  95. package/dist/button.js.map +1 -0
  96. package/dist/channel/AliasProvider.d.ts +24 -0
  97. package/dist/channel/ChannelSelect.stories.d.ts +7 -0
  98. package/dist/channel/LinePlot.d.ts +72 -0
  99. package/dist/channel/LinePlot.stories.d.ts +6 -0
  100. package/dist/channel/Select.d.ts +11 -0
  101. package/dist/channel/external.d.ts +3 -0
  102. package/dist/channel/index.d.ts +1 -0
  103. package/dist/channel/types.d.ts +1 -0
  104. package/dist/color/Picker/Picker.d.ts +6 -0
  105. package/dist/color/Picker/Picker.stories.d.ts +6 -0
  106. package/dist/color/Picker/index.d.ts +1 -0
  107. package/dist/color/Swatch/Swatch.d.ts +8 -0
  108. package/dist/color/Swatch/index.d.ts +1 -0
  109. package/dist/color/core/color.d.ts +128 -0
  110. package/dist/color/core/color.spec.d.ts +1 -0
  111. package/dist/color/core/index.d.ts +2 -0
  112. package/dist/color/external.d.ts +4 -0
  113. package/dist/color/index.d.ts +1 -0
  114. package/dist/component-joFaJiQW.cjs +24719 -0
  115. package/dist/component-joFaJiQW.cjs.map +1 -0
  116. package/dist/component-k78Jq9I7.js +24720 -0
  117. package/dist/component-k78Jq9I7.js.map +1 -0
  118. package/dist/css/bem.d.ts +14 -0
  119. package/dist/css/bem.spec.d.ts +1 -0
  120. package/dist/css/color.d.ts +10 -0
  121. package/dist/css/css.d.ts +27 -0
  122. package/dist/css/grid.d.ts +14 -0
  123. package/dist/css/index.d.ts +4 -0
  124. package/dist/css/units.d.ts +1 -0
  125. package/dist/css/vars.d.ts +1 -0
  126. package/dist/css-NTD4Xm8x.js +9206 -0
  127. package/dist/css-NTD4Xm8x.js.map +1 -0
  128. package/dist/css-V3VUT_Js.cjs +9204 -0
  129. package/dist/css-V3VUT_Js.cjs.map +1 -0
  130. package/dist/cursor/cursor.d.ts +3 -0
  131. package/dist/cursor/index.d.ts +1 -0
  132. package/dist/dimensions-Sej0Zly9.cjs +26 -0
  133. package/dist/dimensions-Sej0Zly9.cjs.map +1 -0
  134. package/dist/dimensions-guJ5PHmb.js +27 -0
  135. package/dist/dimensions-guJ5PHmb.js.map +1 -0
  136. package/dist/divider/Divider.d.ts +14 -0
  137. package/dist/divider/index.d.ts +2 -0
  138. package/dist/dropdown/Dropdown.d.ts +49 -0
  139. package/dist/dropdown/Dropdown.spec.d.ts +1 -0
  140. package/dist/dropdown/Dropdown.stories.d.ts +5 -0
  141. package/dist/dropdown/index.d.ts +2 -0
  142. package/dist/dropdown.cjs +13 -0
  143. package/dist/dropdown.cjs.map +1 -0
  144. package/dist/dropdown.js +13 -0
  145. package/dist/dropdown.js.map +1 -0
  146. package/dist/external-2Aicsb3l.js +88 -0
  147. package/dist/external-2Aicsb3l.js.map +1 -0
  148. package/dist/external-9Ncn2J9B.cjs +93 -0
  149. package/dist/external-9Ncn2J9B.cjs.map +1 -0
  150. package/dist/external-9RCzxzgZ.js +30 -0
  151. package/dist/external-9RCzxzgZ.js.map +1 -0
  152. package/dist/external-9pS8-DvV.js +15 -0
  153. package/dist/external-9pS8-DvV.js.map +1 -0
  154. package/dist/external-KxlyA74C.js +20 -0
  155. package/dist/external-KxlyA74C.js.map +1 -0
  156. package/dist/external-OSLzuRs1.cjs +14 -0
  157. package/dist/external-OSLzuRs1.cjs.map +1 -0
  158. package/dist/external-PS3nzqUn.cjs +23 -0
  159. package/dist/external-PS3nzqUn.cjs.map +1 -0
  160. package/dist/external-QRmqSjV0.js +18 -0
  161. package/dist/external-QRmqSjV0.js.map +1 -0
  162. package/dist/external-QuVTCnGl.js +71 -0
  163. package/dist/external-QuVTCnGl.js.map +1 -0
  164. package/dist/external-U5HRPaDI.cjs +17 -0
  165. package/dist/external-U5HRPaDI.cjs.map +1 -0
  166. package/dist/external-_CtRDtih.js +17 -0
  167. package/dist/external-_CtRDtih.js.map +1 -0
  168. package/dist/external-eQU48hM4.cjs +87 -0
  169. package/dist/external-eQU48hM4.cjs.map +1 -0
  170. package/dist/external-kbDFnfuk.js +24 -0
  171. package/dist/external-kbDFnfuk.js.map +1 -0
  172. package/dist/external-oX1JmOFf.js +17 -0
  173. package/dist/external-oX1JmOFf.js.map +1 -0
  174. package/dist/external-oZe6tF4A.cjs +14 -0
  175. package/dist/external-oZe6tF4A.cjs.map +1 -0
  176. package/dist/external-tVcmKSsT.cjs +19 -0
  177. package/dist/external-tVcmKSsT.cjs.map +1 -0
  178. package/dist/external-up1sE3F6.js +94 -0
  179. package/dist/external-up1sE3F6.js.map +1 -0
  180. package/dist/external-uvx0b-Jw.cjs +16 -0
  181. package/dist/external-uvx0b-Jw.cjs.map +1 -0
  182. package/dist/external-vXBQOmKv.js +15 -0
  183. package/dist/external-vXBQOmKv.js.map +1 -0
  184. package/dist/external-yiqRIIvW.cjs +16 -0
  185. package/dist/external-yiqRIIvW.cjs.map +1 -0
  186. package/dist/external-zBiIxeDG.cjs +70 -0
  187. package/dist/external-zBiIxeDG.cjs.map +1 -0
  188. package/dist/external-zw9fckWT.cjs +29 -0
  189. package/dist/external-zw9fckWT.cjs.map +1 -0
  190. package/dist/font-t7KoGNFX.js +17 -0
  191. package/dist/font-t7KoGNFX.js.map +1 -0
  192. package/dist/font-wlgaMRYN.cjs +16 -0
  193. package/dist/font-wlgaMRYN.cjs.map +1 -0
  194. package/dist/fontString-RKvYIr5H.js +13 -0
  195. package/dist/fontString-RKvYIr5H.js.map +1 -0
  196. package/dist/fontString-i24UxKCQ.cjs +12 -0
  197. package/dist/fontString-i24UxKCQ.cjs.map +1 -0
  198. package/dist/generic/Generic.d.ts +13 -0
  199. package/dist/generic/index.d.ts +1 -0
  200. package/dist/haul/Haul.d.ts +60 -0
  201. package/dist/haul/index.d.ts +1 -0
  202. package/dist/header/Actions.d.ts +15 -0
  203. package/dist/header/ButtonTitle.d.ts +13 -0
  204. package/dist/header/Header.d.ts +28 -0
  205. package/dist/header/Header.spec.d.ts +1 -0
  206. package/dist/header/Header.stories.d.ts +6 -0
  207. package/dist/header/Title.d.ts +13 -0
  208. package/dist/header/external.d.ts +4 -0
  209. package/dist/header/index.d.ts +1 -0
  210. package/dist/header.cjs +15 -0
  211. package/dist/header.cjs.map +1 -0
  212. package/dist/header.js +15 -0
  213. package/dist/header.js.map +1 -0
  214. package/dist/hooks/effect.d.ts +14 -0
  215. package/dist/hooks/index.d.ts +8 -0
  216. package/dist/hooks/ref.d.ts +31 -0
  217. package/dist/hooks/useClickOutside.d.ts +9 -0
  218. package/dist/hooks/useCursorDrag/index.d.ts +2 -0
  219. package/dist/hooks/useCursorDrag/types.d.ts +5 -0
  220. package/dist/hooks/useCursorDrag/useCursorDrag.d.ts +10 -0
  221. package/dist/hooks/useCursorDrag/useVirtualCursorDrag.d.ts +1 -0
  222. package/dist/hooks/useCursorDrag/useVirtualCursorDragWebKit.d.ts +2 -0
  223. package/dist/hooks/useCursorDrag/useVirtualCursorDragWebView.d.ts +2 -0
  224. package/dist/hooks/useDebouncedCallback.d.ts +2 -0
  225. package/dist/hooks/useFilter.d.ts +21 -0
  226. package/dist/hooks/useResize.d.ts +24 -0
  227. package/dist/hooks/useSelectMultiple.d.ts +51 -0
  228. package/dist/hooks/useTransforms.d.ts +15 -0
  229. package/dist/hooks/useUniqueKey.d.ts +6 -0
  230. package/dist/index.cjs +1175 -0
  231. package/dist/index.cjs.map +1 -0
  232. package/dist/index.d.ts +51 -0
  233. package/dist/index.js +1182 -0
  234. package/dist/index.js.map +1 -0
  235. package/dist/input/Date.d.ts +28 -0
  236. package/dist/input/DragButton.d.ts +14 -0
  237. package/dist/input/HelpText.d.ts +19 -0
  238. package/dist/input/Input.spec.d.ts +1 -0
  239. package/dist/input/Input.stories.d.ts +9 -0
  240. package/dist/input/Item.d.ts +23 -0
  241. package/dist/input/Label.d.ts +13 -0
  242. package/dist/input/Number.d.ts +30 -0
  243. package/dist/input/Switch.d.ts +15 -0
  244. package/dist/input/Text.d.ts +18 -0
  245. package/dist/input/Time.d.ts +30 -0
  246. package/dist/input/Time.spec.d.ts +1 -0
  247. package/dist/input/external.d.ts +10 -0
  248. package/dist/input/index.d.ts +1 -0
  249. package/dist/input/types.d.ts +19 -0
  250. package/dist/input.cjs +15 -0
  251. package/dist/input.cjs.map +1 -0
  252. package/dist/input.js +15 -0
  253. package/dist/input.js.map +1 -0
  254. package/dist/jsx-runtime-N1ikfypN.cjs +931 -0
  255. package/dist/jsx-runtime-N1ikfypN.cjs.map +1 -0
  256. package/dist/jsx-runtime-rX5tAIG2.js +932 -0
  257. package/dist/jsx-runtime-rX5tAIG2.js.map +1 -0
  258. package/dist/list/Column.d.ts +24 -0
  259. package/dist/list/Context.d.ts +45 -0
  260. package/dist/list/Core.d.ts +40 -0
  261. package/dist/list/Filter.d.ts +22 -0
  262. package/dist/list/KeyHover.d.ts +4 -0
  263. package/dist/list/List.d.ts +19 -0
  264. package/dist/list/List.spec.d.ts +1 -0
  265. package/dist/list/List.stories.d.ts +7 -0
  266. package/dist/list/Search.d.ts +12 -0
  267. package/dist/list/Selector.d.ts +11 -0
  268. package/dist/list/external.d.ts +9 -0
  269. package/dist/list/index.d.ts +1 -0
  270. package/dist/list/types.d.ts +38 -0
  271. package/dist/list.cjs +27 -0
  272. package/dist/list.cjs.map +1 -0
  273. package/dist/list.js +27 -0
  274. package/dist/list.js.map +1 -0
  275. package/dist/memo/index.d.ts +2 -0
  276. package/dist/memo/proxyMemo.d.ts +2 -0
  277. package/dist/memo/useMemoCompare.d.ts +5 -0
  278. package/dist/menu/ContextMenu.d.ts +78 -0
  279. package/dist/menu/Item.d.ts +35 -0
  280. package/dist/menu/Menu.d.ts +26 -0
  281. package/dist/menu/external.d.ts +3 -0
  282. package/dist/menu/index.d.ts +1 -0
  283. package/dist/menu.cjs +16 -0
  284. package/dist/menu.cjs.map +1 -0
  285. package/dist/menu.js +16 -0
  286. package/dist/menu.js.map +1 -0
  287. package/dist/mock/MockGLBufferController.d.ts +20 -0
  288. package/dist/mock/setuptests.d.ts +1 -0
  289. package/dist/mosaic/Mosaic.d.ts +35 -0
  290. package/dist/mosaic/Mosaic.spec.d.ts +1 -0
  291. package/dist/mosaic/Mosaic.stories.d.ts +5 -0
  292. package/dist/mosaic/external.d.ts +4 -0
  293. package/dist/mosaic/index.d.ts +1 -0
  294. package/dist/mosaic/tree.d.ts +70 -0
  295. package/dist/mosaic/types.d.ts +50 -0
  296. package/dist/mosaic/use.d.ts +24 -0
  297. package/dist/nav/Bar.d.ts +25 -0
  298. package/dist/nav/Drawer.d.ts +24 -0
  299. package/dist/nav/Nav.spec.d.ts +1 -0
  300. package/dist/nav/Nav.stories.d.ts +6 -0
  301. package/dist/nav/external.d.ts +2 -0
  302. package/dist/nav/index.d.ts +1 -0
  303. package/dist/os/Controls/Controls.d.ts +7 -0
  304. package/dist/os/Controls/Controls.stories.d.ts +6 -0
  305. package/dist/os/Controls/Mac.d.ts +8 -0
  306. package/dist/os/Controls/Windows.d.ts +3 -0
  307. package/dist/os/Controls/index.d.ts +3 -0
  308. package/dist/os/Controls/types.d.ts +12 -0
  309. package/dist/os/external.d.ts +2 -0
  310. package/dist/os/index.d.ts +1 -0
  311. package/dist/os/use.d.ts +2 -0
  312. package/dist/pluto/Pluto.d.ts +18 -0
  313. package/dist/pluto/aether/ pluto.d.ts +1 -0
  314. package/dist/pluto/aether/index.d.ts +1 -0
  315. package/dist/pluto/defaultWorker.d.ts +1 -0
  316. package/dist/pluto/index.d.ts +1 -0
  317. package/dist/ranger/SelectLabel.d.ts +6 -0
  318. package/dist/ranger/TimeRangeChip.d.ts +6 -0
  319. package/dist/ranger/TimeRangeChip.stories.d.ts +6 -0
  320. package/dist/ranger/external.d.ts +2 -0
  321. package/dist/ranger/index.d.ts +1 -0
  322. package/dist/resize/Core.d.ts +10 -0
  323. package/dist/resize/Multiple.d.ts +63 -0
  324. package/dist/resize/Single.d.ts +23 -0
  325. package/dist/resize/Single.spec.d.ts +1 -0
  326. package/dist/resize/Single.stories.d.ts +6 -0
  327. package/dist/resize/external.d.ts +3 -0
  328. package/dist/resize/index.d.ts +1 -0
  329. package/dist/select/Button.d.ts +18 -0
  330. package/dist/select/ClearButton.d.ts +3 -0
  331. package/dist/select/Direction.d.ts +11 -0
  332. package/dist/select/List.d.ts +7 -0
  333. package/dist/select/Multiple.d.ts +45 -0
  334. package/dist/select/Select.spec.d.ts +1 -0
  335. package/dist/select/Select.stories.d.ts +14 -0
  336. package/dist/select/Single.d.ts +37 -0
  337. package/dist/select/external.d.ts +4 -0
  338. package/dist/select/index.d.ts +1 -0
  339. package/dist/state/index.d.ts +1 -0
  340. package/dist/state/state.d.ts +27 -0
  341. package/dist/status/Aggregator.d.ts +27 -0
  342. package/dist/status/Circle.d.ts +6 -0
  343. package/dist/status/Text.d.ts +21 -0
  344. package/dist/status/aether/aggregator.d.ts +86 -0
  345. package/dist/status/aether/external.d.ts +2 -0
  346. package/dist/status/aether/index.d.ts +1 -0
  347. package/dist/status/aether/types.d.ts +26 -0
  348. package/dist/status/colors.d.ts +2 -0
  349. package/dist/status/external.d.ts +4 -0
  350. package/dist/status/index.d.ts +1 -0
  351. package/dist/style.css +3119 -0
  352. package/dist/synnax/Provider.d.ts +10 -0
  353. package/dist/synnax/aether/index.d.ts +1 -0
  354. package/dist/synnax/aether/provider.d.ts +225 -0
  355. package/dist/synnax/index.d.ts +1 -0
  356. package/dist/table-8MFXzE4C.js +13664 -0
  357. package/dist/table-8MFXzE4C.js.map +1 -0
  358. package/dist/table-VNkSG_Cj.cjs +13661 -0
  359. package/dist/table-VNkSG_Cj.cjs.map +1 -0
  360. package/dist/tabs/Selector.d.ts +23 -0
  361. package/dist/tabs/Tabs.d.ts +40 -0
  362. package/dist/tabs/Tabs.spec.d.ts +1 -0
  363. package/dist/tabs/Tabs.stories.d.ts +5 -0
  364. package/dist/tabs/external.d.ts +2 -0
  365. package/dist/tabs/index.d.ts +1 -0
  366. package/dist/tabs.cjs +15 -0
  367. package/dist/tabs.cjs.map +1 -0
  368. package/dist/tabs.js +15 -0
  369. package/dist/tabs.js.map +1 -0
  370. package/dist/tag/Tag.d.ts +12 -0
  371. package/dist/tag/Tag.spec.d.ts +1 -0
  372. package/dist/tag/Tag.stories.d.ts +5 -0
  373. package/dist/tag/index.d.ts +1 -0
  374. package/dist/telem/Pipeline.d.ts +2 -0
  375. package/dist/telem/Provider.d.ts +6 -0
  376. package/dist/telem/aether/context.d.ts +16 -0
  377. package/dist/telem/aether/convertSeries.d.ts +9 -0
  378. package/dist/telem/aether/external.d.ts +9 -0
  379. package/dist/telem/aether/factory.d.ts +14 -0
  380. package/dist/telem/aether/index.d.ts +1 -0
  381. package/dist/telem/aether/noop.d.ts +12 -0
  382. package/dist/telem/aether/pipeline.d.ts +263 -0
  383. package/dist/telem/aether/provider.d.ts +24 -0
  384. package/dist/telem/aether/remote.d.ts +154 -0
  385. package/dist/telem/aether/remote.spec.d.ts +1 -0
  386. package/dist/telem/aether/static.d.ts +98 -0
  387. package/dist/telem/aether/telem.d.ts +376 -0
  388. package/dist/telem/aether/telem.spec.d.ts +1 -0
  389. package/dist/telem/aether/transformers.d.ts +197 -0
  390. package/dist/telem/client/cache/cache.d.ts +14 -0
  391. package/dist/telem/client/cache/dynamic.d.ts +32 -0
  392. package/dist/telem/client/cache/dynamic.spec.d.ts +1 -0
  393. package/dist/telem/client/cache/external.d.ts +1 -0
  394. package/dist/telem/client/cache/index.d.ts +2 -0
  395. package/dist/telem/client/cache/static.d.ts +31 -0
  396. package/dist/telem/client/cache/static.spec.d.ts +1 -0
  397. package/dist/telem/client/client.d.ts +104 -0
  398. package/dist/telem/client/index.d.ts +1 -0
  399. package/dist/telem/control/Chip.d.ts +8 -0
  400. package/dist/telem/control/Controller.d.ts +15 -0
  401. package/dist/telem/control/Indicator.d.ts +8 -0
  402. package/dist/telem/control/Legend.d.ts +7 -0
  403. package/dist/telem/control/StateProvider.d.ts +8 -0
  404. package/dist/telem/control/aether/chip.d.ts +229 -0
  405. package/dist/telem/control/aether/controller.d.ts +166 -0
  406. package/dist/telem/control/aether/external.d.ts +6 -0
  407. package/dist/telem/control/aether/index.d.ts +1 -0
  408. package/dist/telem/control/aether/indicator.d.ts +248 -0
  409. package/dist/telem/control/aether/legend.d.ts +216 -0
  410. package/dist/telem/control/aether/registry.d.ts +2 -0
  411. package/dist/telem/control/aether/state.d.ts +113 -0
  412. package/dist/telem/control/external.d.ts +6 -0
  413. package/dist/telem/control/index.d.ts +1 -0
  414. package/dist/telem/index.d.ts +1 -0
  415. package/dist/testutil/dom.d.ts +2 -0
  416. package/dist/text/DateTime.d.ts +19 -0
  417. package/dist/text/Editable.d.ts +15 -0
  418. package/dist/text/Keyboard.d.ts +5 -0
  419. package/dist/text/Link.d.ts +17 -0
  420. package/dist/text/SelectLevel.d.ts +11 -0
  421. package/dist/text/Text.d.ts +12 -0
  422. package/dist/text/Text.spec.d.ts +1 -0
  423. package/dist/text/Text.stories.d.ts +8 -0
  424. package/dist/text/WithIcon.d.ts +13 -0
  425. package/dist/text/dimensions.d.ts +2 -0
  426. package/dist/text/external.d.ts +10 -0
  427. package/dist/text/index.d.ts +1 -0
  428. package/dist/text/symbols.d.ts +5 -0
  429. package/dist/text/types.d.ts +24 -0
  430. package/dist/text.cjs +17 -0
  431. package/dist/text.cjs.map +1 -0
  432. package/dist/text.js +17 -0
  433. package/dist/text.js.map +1 -0
  434. package/dist/theming/aether/external.d.ts +3 -0
  435. package/dist/theming/aether/index.d.ts +2 -0
  436. package/dist/theming/aether/provider.d.ts +9808 -0
  437. package/dist/theming/context.d.ts +22 -0
  438. package/dist/theming/core/fontString.d.ts +4 -0
  439. package/dist/theming/core/theme.d.ts +3830 -0
  440. package/dist/theming/css.d.ts +2 -0
  441. package/dist/theming/external.d.ts +5 -0
  442. package/dist/theming/font.d.ts +8 -0
  443. package/dist/theming/index.d.ts +1 -0
  444. package/dist/theming/theming.spec.d.ts +1 -0
  445. package/dist/theming.cjs +16 -0
  446. package/dist/theming.cjs.map +1 -0
  447. package/dist/theming.js +16 -0
  448. package/dist/theming.js.map +1 -0
  449. package/dist/tooltip/Config.d.ts +29 -0
  450. package/dist/tooltip/Dialog.d.ts +36 -0
  451. package/dist/tooltip/Tooltip.stories.d.ts +5 -0
  452. package/dist/tooltip/external.d.ts +3 -0
  453. package/dist/tooltip/index.d.ts +1 -0
  454. package/dist/tooltip/wrap.d.ts +29 -0
  455. package/dist/tree/Tree.d.ts +73 -0
  456. package/dist/tree/Tree.stories.d.ts +5 -0
  457. package/dist/tree/index.d.ts +1 -0
  458. package/dist/tree.cjs +26 -0
  459. package/dist/tree.cjs.map +1 -0
  460. package/dist/tree.js +26 -0
  461. package/dist/tree.js.map +1 -0
  462. package/dist/triggers/Provider.d.ts +13 -0
  463. package/dist/triggers/Status.d.ts +5 -0
  464. package/dist/triggers/Text.d.ts +7 -0
  465. package/dist/triggers/Triggers.spec.d.ts +1 -0
  466. package/dist/triggers/Triggers.stories.d.ts +6 -0
  467. package/dist/triggers/external.d.ts +6 -0
  468. package/dist/triggers/hooks.d.ts +25 -0
  469. package/dist/triggers/index.d.ts +1 -0
  470. package/dist/triggers/triggers.d.ts +130 -0
  471. package/dist/triggers/useDrag.d.ts +17 -0
  472. package/dist/triggers.cjs +16 -0
  473. package/dist/triggers.cjs.map +1 -0
  474. package/dist/triggers.js +16 -0
  475. package/dist/triggers.js.map +1 -0
  476. package/dist/useDrag-KRQ7DTg1.cjs +48 -0
  477. package/dist/useDrag-KRQ7DTg1.cjs.map +1 -0
  478. package/dist/useDrag-rQt5hv4R.js +49 -0
  479. package/dist/useDrag-rQt5hv4R.js.map +1 -0
  480. package/dist/util/case.d.ts +1 -0
  481. package/dist/util/children.d.ts +3 -0
  482. package/dist/util/component.d.ts +5 -0
  483. package/dist/util/event.d.ts +6 -0
  484. package/dist/util/renderProp.d.ts +7 -0
  485. package/dist/util/zod.d.ts +2 -0
  486. package/dist/video/Video.d.ts +5 -0
  487. package/dist/video/Video.stories.d.ts +5 -0
  488. package/dist/video/index.d.ts +1 -0
  489. package/dist/video.cjs +10 -0
  490. package/dist/video.cjs.map +1 -0
  491. package/dist/video.js +10 -0
  492. package/dist/video.js.map +1 -0
  493. package/dist/viewport/Mask.d.ts +7 -0
  494. package/dist/viewport/SelectMode.d.ts +8 -0
  495. package/dist/viewport/Viewport.stories.d.ts +6 -0
  496. package/dist/viewport/external.d.ts +3 -0
  497. package/dist/viewport/index.d.ts +1 -0
  498. package/dist/viewport/use.d.ts +35 -0
  499. package/dist/vis/axis/axis.d.ts +97 -0
  500. package/dist/vis/axis/canvas.d.ts +18 -0
  501. package/dist/vis/axis/external.d.ts +3 -0
  502. package/dist/vis/axis/index.d.ts +1 -0
  503. package/dist/vis/axis/ticks.d.ts +33 -0
  504. package/dist/vis/button/aether/button.d.ts +94 -0
  505. package/dist/vis/button/aether/index.d.ts +1 -0
  506. package/dist/vis/button/index.d.ts +1 -0
  507. package/dist/vis/button/use.d.ts +9 -0
  508. package/dist/vis/canvas/Canvas.d.ts +11 -0
  509. package/dist/vis/canvas/aether/canvas.d.ts +230 -0
  510. package/dist/vis/canvas/aether/index.d.ts +1 -0
  511. package/dist/vis/canvas/index.d.ts +1 -0
  512. package/dist/vis/diagram/Diagram.d.ts +52 -0
  513. package/dist/vis/diagram/Diagram.stories.d.ts +5 -0
  514. package/dist/vis/diagram/aether/Diagram.d.ts +587 -0
  515. package/dist/vis/diagram/aether/index.d.ts +1 -0
  516. package/dist/vis/diagram/align.d.ts +3 -0
  517. package/dist/vis/diagram/align.spec.d.ts +1 -0
  518. package/dist/vis/diagram/edge/Edge.d.ts +14 -0
  519. package/dist/vis/diagram/edge/connector/connector.d.ts +59 -0
  520. package/dist/vis/diagram/edge/connector/connector.spec.d.ts +1 -0
  521. package/dist/vis/diagram/edge/connector/index.d.ts +1 -0
  522. package/dist/vis/diagram/edge/index.d.ts +1 -0
  523. package/dist/vis/diagram/external.d.ts +4 -0
  524. package/dist/vis/diagram/index.d.ts +1 -0
  525. package/dist/vis/diagram/types.d.ts +71 -0
  526. package/dist/vis/diagram/util.d.ts +21 -0
  527. package/dist/vis/draw2d/canvas.d.ts +106 -0
  528. package/dist/vis/draw2d/index.d.ts +60 -0
  529. package/dist/vis/eraser/aether/eraser.d.ts +194 -0
  530. package/dist/vis/eraser/aether/index.d.ts +1 -0
  531. package/dist/vis/eraser/index.d.ts +1 -0
  532. package/dist/vis/eraser/use.d.ts +11 -0
  533. package/dist/vis/legend/Container.d.ts +11 -0
  534. package/dist/vis/legend/Simple.d.ts +16 -0
  535. package/dist/vis/legend/external.d.ts +2 -0
  536. package/dist/vis/legend/index.d.ts +1 -0
  537. package/dist/vis/line/Line.d.ts +8 -0
  538. package/dist/vis/line/aether/index.d.ts +1 -0
  539. package/dist/vis/line/aether/line.d.ts +184 -0
  540. package/dist/vis/line/index.d.ts +1 -0
  541. package/dist/vis/lineplot/Axis.d.ts +17 -0
  542. package/dist/vis/lineplot/Legend.d.ts +7 -0
  543. package/dist/vis/lineplot/Line.d.ts +7 -0
  544. package/dist/vis/lineplot/LinePlot.d.ts +32 -0
  545. package/dist/vis/lineplot/LinePlot.stories.d.ts +5 -0
  546. package/dist/vis/lineplot/Title.d.ts +4 -0
  547. package/dist/vis/lineplot/Viewport.d.ts +6 -0
  548. package/dist/vis/lineplot/aether/LinePlot.d.ts +622 -0
  549. package/dist/vis/lineplot/aether/XAxis.d.ts +211 -0
  550. package/dist/vis/lineplot/aether/YAxis.d.ts +218 -0
  551. package/dist/vis/lineplot/aether/axis.d.ts +144 -0
  552. package/dist/vis/lineplot/aether/external.d.ts +3 -0
  553. package/dist/vis/lineplot/aether/grid.d.ts +22 -0
  554. package/dist/vis/lineplot/aether/index.d.ts +2 -0
  555. package/dist/vis/lineplot/external.d.ts +6 -0
  556. package/dist/vis/lineplot/index.d.ts +1 -0
  557. package/dist/vis/lineplot/tooltip/Tooltip.d.ts +8 -0
  558. package/dist/vis/lineplot/tooltip/aether/index.d.ts +1 -0
  559. package/dist/vis/lineplot/tooltip/aether/tooltip.d.ts +185 -0
  560. package/dist/vis/lineplot/tooltip/index.d.ts +1 -0
  561. package/dist/vis/measure/Measure.d.ts +6 -0
  562. package/dist/vis/measure/aether/index.d.ts +1 -0
  563. package/dist/vis/measure/aether/measure.d.ts +307 -0
  564. package/dist/vis/measure/index.d.ts +1 -0
  565. package/dist/vis/pid/Forms.d.ts +32 -0
  566. package/dist/vis/pid/Labeled.d.ts +15 -0
  567. package/dist/vis/pid/SelectOrientation.d.ts +15 -0
  568. package/dist/vis/pid/SelectOrientation.stories.d.ts +5 -0
  569. package/dist/vis/pid/Symbols.d.ts +205 -0
  570. package/dist/vis/pid/index.d.ts +1 -0
  571. package/dist/vis/pid/primitives/Primitives.d.ts +98 -0
  572. package/dist/vis/pid/primitives/Primitives.stories.d.ts +5 -0
  573. package/dist/vis/pid/primitives/index.d.ts +1 -0
  574. package/dist/vis/pid/registry.d.ts +17 -0
  575. package/dist/vis/render/GLProgram.d.ts +44 -0
  576. package/dist/vis/render/clear/index.d.ts +1 -0
  577. package/dist/vis/render/clear/program.d.ts +14 -0
  578. package/dist/vis/render/context.d.ts +61 -0
  579. package/dist/vis/render/controller.d.ts +14 -0
  580. package/dist/vis/render/eraser.d.ts +19 -0
  581. package/dist/vis/render/external.d.ts +5 -0
  582. package/dist/vis/render/index.d.ts +1 -0
  583. package/dist/vis/render/loop.d.ts +73 -0
  584. package/dist/vis/rule/Rule.d.ts +12 -0
  585. package/dist/vis/rule/aether/aether.d.ts +121 -0
  586. package/dist/vis/rule/aether/index.d.ts +1 -0
  587. package/dist/vis/rule/index.d.ts +1 -0
  588. package/dist/vis/table/Table.d.ts +25 -0
  589. package/dist/vis/table/Table.stories.d.ts +5 -0
  590. package/dist/vis/table/aether/index.d.ts +1 -0
  591. package/dist/vis/table/aether/table.d.ts +353 -0
  592. package/dist/vis/table/cell/Label.d.ts +7 -0
  593. package/dist/vis/table/cell/element.d.ts +18 -0
  594. package/dist/vis/table/cell/external.d.ts +3 -0
  595. package/dist/vis/table/cell/index.d.ts +1 -0
  596. package/dist/vis/table/cell/registry.d.ts +2 -0
  597. package/dist/vis/table/cell/value.d.ts +9 -0
  598. package/dist/vis/table/external.d.ts +2 -0
  599. package/dist/vis/table/index.d.ts +1 -0
  600. package/dist/vis/table/use.d.ts +101 -0
  601. package/dist/vis/toggle/aether/index.d.ts +1 -0
  602. package/dist/vis/toggle/aether/toggle.d.ts +170 -0
  603. package/dist/vis/toggle/index.d.ts +1 -0
  604. package/dist/vis/toggle/use.d.ts +9 -0
  605. package/dist/vis/value/aether/index.d.ts +1 -0
  606. package/dist/vis/value/aether/value.d.ts +462 -0
  607. package/dist/vis/value/external.d.ts +1 -0
  608. package/dist/vis/value/index.d.ts +1 -0
  609. package/dist/vis/value/use.d.ts +151 -0
  610. package/dist/worker/Context.d.ts +15 -0
  611. package/dist/worker/index.d.ts +1 -0
  612. package/package.json +181 -0
package/dist/index.js ADDED
@@ -0,0 +1,1182 @@
1
+ import { j as jsxRuntimeExports } from "./jsx-runtime-rX5tAIG2.js";
2
+ import { createElement, useCallback, useState, useEffect } from "react";
3
+ import { s as Icon$1, a3 as variantColors, a4 as Aggregator, r as Text, a5 as useAggregator, a6 as useContext, a7 as useNotifications, a8 as Config, a9 as Context, aa as Dialog, ab as formatTip, ac as useConfig, ad as wrap, ae as useUniqueKey, M as MaybeEditable, I as Icon$2, g as Text$1, af as useDrop, ag as filterByType, ah as canDropOfType, ai as useDraggingState, aj as use$5, x as Provider$1, ak as Provider$2, al as Provider$3, am as Provider$4, P as Provider$8, e as DateTime } from "./Toggle-kLunfJtR.js";
4
+ import { an, ao, D, ap, aq, au, aD, as, aE, ar, aw, a2, aB, aC, ax, at, av, ay, az, aA } from "./Toggle-kLunfJtR.js";
5
+ import { a as Color, Z as ZERO, g as cssString, f as fromHSLA, h as toHex, C as CSS, b as box$1, i as Case, l as location, j as external$h, e as external$1$1, x as xy, T as TimeStamp, k as TimeSpan } from "./css-NTD4Xm8x.js";
6
+ import { n } from "./css-NTD4Xm8x.js";
7
+ import { B as ButtonTitle, A as Actions } from "./external-up1sE3F6.js";
8
+ import { e } from "./external-up1sE3F6.js";
9
+ import { H as Header } from "./Header-7x6367IV.js";
10
+ import { V as VARIANTS, g as specZ, v as variantZ } from "./component-k78Jq9I7.js";
11
+ import { h } from "./component-k78Jq9I7.js";
12
+ import { S as Space, P as Pack } from "./Center-gEKkAkdh.js";
13
+ import { G } from "./Center-gEKkAkdh.js";
14
+ import { d as Picker, e as Swatch, f as Core, M as Multiple, g as Single, h as calculateDiffPercentage, i as useMultiple, j as useContext$1, k as Simple, l as useGridPosition, m as Multiple$1, n as Single$1, o as MODES, D as DEFAULT_TRIGGERS, p as MASK_MODES, q as Mask, r as PAN_DEFAULT_TRIGGERS, s as SELECT_DEFAULT_TRIGGERS, Z as ZOOM_DEFAULT_TRIGGERS, t as use$3, v as Line$1, w as LinePlot$1, V as Viewport, X as XAxis$1, Y as YAxis$1, x as axisFactory, y as selectViewportEl, z as useViewport, A as Tooltip$1, B as Measure, E as HAUL_TYPE, R as Rule, G as AliasInput, I as AliasProvider, J as SelectMultiple, K as SelectSingle, N as useActiveRange, O as useAlias, Q as useAliases, U as useContext$2, W as useName, _ as HAUL_CREATE_TYPE, $ as HAUL_DROP_TYPE, a0 as Mosaic, a1 as Bar, a2 as Drawer, a3 as useDrawer, a4 as Background, a5 as Controls$1, a6 as Diagram, a7 as FitViewControl, a8 as HandleLayout, a9 as NodeLayout, aa as NodeRenderer, ab as ToggleEditControl, ac as selectNode, ad as selectNodeBox, ae as selectNodeLayout, af as use$4, ag as useContext$3, ah as StringTD, ai as TR, aj as Table$1, ak as LabelSpec, al as REGISTRY, am as initialProps, an as corePropsZ, ao as use$6, ap as Chip, aq as Controller, ar as Indicator, as as Legend$1, at as StateProvider, au as useContext$4, av as Provider$5, aw as Provider$6, ax as Provider$7, ay as use$7, az as Tag } from "./TimeRangeChip-eDCX5pUC.js";
15
+ import { aC as aC2, aI, aD as aD2, aE as aE2, aG, aF, aA as aA2, aB as aB2, aH, T, aK, aJ, aM, aL } from "./TimeRangeChip-eDCX5pUC.js";
16
+ import { ag as streamChannelData, u as channelData, a_ as Table, a$ as tableStateZ } from "./table-8MFXzE4C.js";
17
+ import { u as useTypography } from "./font-t7KoGNFX.js";
18
+ import { e as e2 } from "./external-vXBQOmKv.js";
19
+ import { e as e3 } from "./external-9pS8-DvV.js";
20
+ import { e as e4 } from "./external-KxlyA74C.js";
21
+ import { e as e5 } from "./external-QRmqSjV0.js";
22
+ import { e as e6 } from "./external-oX1JmOFf.js";
23
+ import { b as resetSelection, r as rename } from "./Selector-R3lL41_i.js";
24
+ import { B as Button$1 } from "./SelectLevel-cewIWtOv.js";
25
+ import { e as e7 } from "./external-_CtRDtih.js";
26
+ import { e as e8 } from "./external-9RCzxzgZ.js";
27
+ import { e as e9 } from "./external-kbDFnfuk.js";
28
+ import { T as Text$2 } from "./external-QuVTCnGl.js";
29
+ import { e as e10 } from "./external-QuVTCnGl.js";
30
+ import { V } from "./Video-Vpwp5ao1.js";
31
+ import "react-hook-form";
32
+ import "./Item-EDdYN2NK.js";
33
+ import { e as e11 } from "./external-2Aicsb3l.js";
34
+ import "react-dom";
35
+ import "zod";
36
+ import "./useDrag-rQt5hv4R.js";
37
+ import "./Item-owLU4Xop.js";
38
+ import "./dimensions-guJ5PHmb.js";
39
+ import "./Link-laNlv47N.js";
40
+ import "./Video-w40geAFS.js";
41
+ import "./fontString-RKvYIr5H.js";
42
+ import "./Keyboard-mE03PKwA.js";
43
+ const Circle = ({ variant }) => {
44
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Icon$1.Circle, { color: variantColors[variant] });
45
+ };
46
+ const external$g = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
47
+ __proto__: null,
48
+ Aggregator,
49
+ Circle,
50
+ Text,
51
+ VARIANTS,
52
+ specZ,
53
+ useAggregator,
54
+ useContext,
55
+ useNotifications,
56
+ variantZ
57
+ }, Symbol.toStringTag, { value: "Module" }));
58
+ const external$f = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
59
+ __proto__: null,
60
+ Color,
61
+ Picker,
62
+ Swatch,
63
+ ZERO,
64
+ cssString,
65
+ fromHSLA,
66
+ toHex
67
+ }, Symbol.toStringTag, { value: "Module" }));
68
+ const external$e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
69
+ __proto__: null,
70
+ Config,
71
+ Context,
72
+ Dialog,
73
+ formatTip,
74
+ useConfig,
75
+ wrap
76
+ }, Symbol.toStringTag, { value: "Module" }));
77
+ const external$d = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
78
+ __proto__: null,
79
+ Core,
80
+ Multiple,
81
+ Single,
82
+ calculateDiffPercentage,
83
+ useMultiple
84
+ }, Symbol.toStringTag, { value: "Module" }));
85
+ const DIRECTION = "y";
86
+ const MIN_SIZE = 28;
87
+ const COLLAPSED_THRESHOLD = 32;
88
+ const EXPAND_THRESHOLD = 40;
89
+ const DEFAULT_EXPAND_SIZE = 0.5;
90
+ const Accordion = ({ data, ...props }) => {
91
+ const {
92
+ setSize,
93
+ props: { sizeDistribution: sizes, ref, ...resizeProps }
94
+ } = useMultiple({
95
+ direction: DIRECTION,
96
+ count: data.length,
97
+ minSize: MIN_SIZE
98
+ });
99
+ const onExpand = (index) => {
100
+ if (ref.current == null)
101
+ return;
102
+ const parentSize = box$1.dim(box$1.construct(ref.current), DIRECTION);
103
+ if (sizes[index] < EXPAND_THRESHOLD / parentSize)
104
+ setSize(index, data[index].initialSize ?? DEFAULT_EXPAND_SIZE);
105
+ else
106
+ setSize(index, MIN_SIZE + 1);
107
+ };
108
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
109
+ Multiple,
110
+ {
111
+ empty: true,
112
+ className: CSS.B("accordion"),
113
+ sizeDistribution: sizes,
114
+ ref,
115
+ ...props,
116
+ ...resizeProps,
117
+ children: data.map((entry, i) => /* @__PURE__ */ createElement(
118
+ EntryC,
119
+ {
120
+ ...entry,
121
+ key: entry.key,
122
+ index: i,
123
+ direction: DIRECTION,
124
+ onExpand,
125
+ parent: ref,
126
+ size: sizes[i]
127
+ }
128
+ ))
129
+ }
130
+ );
131
+ };
132
+ const expandedIcon = /* @__PURE__ */ jsxRuntimeExports.jsx(Icon$1.Caret.Down, { "aria-label": "contract" });
133
+ const collapsedIcon = /* @__PURE__ */ jsxRuntimeExports.jsx(Icon$1.Caret.Right, { "aria-label": "expand" });
134
+ const EntryC = ({
135
+ index,
136
+ name,
137
+ content,
138
+ actions,
139
+ size,
140
+ parent,
141
+ onExpand
142
+ }) => {
143
+ let expanded = true;
144
+ if (parent.current != null) {
145
+ const parentSize = box$1.dim(box$1.construct(parent.current), DIRECTION);
146
+ expanded = size * parentSize > COLLAPSED_THRESHOLD;
147
+ }
148
+ const icon = expanded ? expandedIcon : collapsedIcon;
149
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
150
+ /* @__PURE__ */ jsxRuntimeExports.jsxs(Header, { level: "p", className: CSS.expanded(expanded), empty: true, children: [
151
+ /* @__PURE__ */ jsxRuntimeExports.jsx(ButtonTitle, { startIcon: icon, onClick: () => onExpand(index), children: name }),
152
+ actions != null && /* @__PURE__ */ jsxRuntimeExports.jsx(Actions, { children: actions })
153
+ ] }),
154
+ content
155
+ ] });
156
+ };
157
+ const Accordion$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
158
+ __proto__: null,
159
+ Accordion
160
+ }, Symbol.toStringTag, { value: "Module" }));
161
+ const Legend = ({
162
+ className,
163
+ style,
164
+ onLineChange,
165
+ ...props
166
+ }) => {
167
+ const { lines } = useContext$1("Legend");
168
+ useContext$1("Legend");
169
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Simple, { data: lines, onEntryChange: onLineChange, ...props });
170
+ };
171
+ const Title = ({
172
+ level = "h2",
173
+ ...props
174
+ }) => {
175
+ const key = useUniqueKey();
176
+ const font = useTypography(level);
177
+ const gridStyle = useGridPosition(
178
+ {
179
+ key,
180
+ size: (font.lineHeight + 2) * font.baseSize,
181
+ loc: "top",
182
+ order: "first"
183
+ },
184
+ "Title"
185
+ );
186
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Space, { justify: "center", align: "center", style: gridStyle, children: /* @__PURE__ */ jsxRuntimeExports.jsx(MaybeEditable, { ...props, level }) });
187
+ };
188
+ const DATA = [
189
+ {
190
+ key: "x",
191
+ icon: /* @__PURE__ */ jsxRuntimeExports.jsx(Icon$1.Arrow.Right, {})
192
+ },
193
+ {
194
+ key: "y",
195
+ icon: /* @__PURE__ */ jsxRuntimeExports.jsx(Icon$1.Arrow.Down, {})
196
+ }
197
+ ];
198
+ const defaultSelectDirectionButton = ({
199
+ key,
200
+ entry,
201
+ onClick,
202
+ selected
203
+ }) => {
204
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
205
+ Icon$2,
206
+ {
207
+ variant: selected ? "filled" : "outlined",
208
+ onClick,
209
+ children: entry.icon
210
+ },
211
+ key
212
+ );
213
+ };
214
+ const Direction = ({
215
+ children = defaultSelectDirectionButton,
216
+ ...props
217
+ }) => {
218
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Button$1, { ...props, data: DATA, children });
219
+ };
220
+ const external$c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
221
+ __proto__: null,
222
+ Button: Button$1,
223
+ Direction,
224
+ Multiple: Multiple$1,
225
+ Single: Single$1
226
+ }, Symbol.toStringTag, { value: "Module" }));
227
+ const Tooltip = ({ mode, triggers }) => /* @__PURE__ */ jsxRuntimeExports.jsxs(Space, { direction: "x", align: "center", children: [
228
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Text$1, { level: "small", children: Case.capitalize(mode) }),
229
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Text$2, { trigger: triggers[0], level: "small" })
230
+ ] });
231
+ const MODE_ICONS = {
232
+ zoom: /* @__PURE__ */ jsxRuntimeExports.jsx(Icon$1.Zoom, {}),
233
+ pan: /* @__PURE__ */ jsxRuntimeExports.jsx(Icon$1.Pan, {}),
234
+ select: /* @__PURE__ */ jsxRuntimeExports.jsx(Icon$1.Selection, {}),
235
+ zoomReset: /* @__PURE__ */ jsxRuntimeExports.jsx(Icon$1.Expand, {}),
236
+ click: /* @__PURE__ */ jsxRuntimeExports.jsx(Icon$1.Bolt, {})
237
+ };
238
+ const SelectMode = ({
239
+ triggers,
240
+ disable = ["zoomReset", "click"],
241
+ ...props
242
+ }) => {
243
+ const data = Object.entries(triggers).filter(([key]) => !disable.includes(key) && MODES.includes(key)).map(([key, value]) => ({
244
+ key,
245
+ icon: MODE_ICONS[key],
246
+ tooltip: /* @__PURE__ */ jsxRuntimeExports.jsx(Tooltip, { mode: key, triggers: value })
247
+ })).sort((a, b) => MODES.indexOf(a.key) - MODES.indexOf(b.key));
248
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Button$1, { ...props, data, entryRenderKey: "icon", children: ({ title: _, entry, ...props2 }) => /* @__PURE__ */ createElement(
249
+ Icon$2,
250
+ {
251
+ ...props2,
252
+ key: entry.key,
253
+ variant: props2.selected ? "filled" : "text",
254
+ size: "medium",
255
+ tooltip: entry.tooltip,
256
+ tooltipLocation: { x: "right", y: "top" }
257
+ },
258
+ entry.icon
259
+ ) });
260
+ };
261
+ const external$b = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
262
+ __proto__: null,
263
+ DEFAULT_TRIGGERS,
264
+ MASK_MODES,
265
+ MODES,
266
+ Mask,
267
+ PAN_DEFAULT_TRIGGERS,
268
+ SELECT_DEFAULT_TRIGGERS,
269
+ SelectMode,
270
+ ZOOM_DEFAULT_TRIGGERS,
271
+ use: use$3
272
+ }, Symbol.toStringTag, { value: "Module" }));
273
+ const external$a = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
274
+ __proto__: null,
275
+ Legend,
276
+ Line: Line$1,
277
+ LinePlot: LinePlot$1,
278
+ Title,
279
+ Viewport,
280
+ XAxis: XAxis$1,
281
+ YAxis: YAxis$1,
282
+ axisFactory,
283
+ selectViewportEl,
284
+ useContext: useContext$1,
285
+ useGridPosition,
286
+ useViewport
287
+ }, Symbol.toStringTag, { value: "Module" }));
288
+ const canDrop = canDropOfType(HAUL_TYPE);
289
+ const LinePlot = ({
290
+ lines,
291
+ axes,
292
+ showTitle = true,
293
+ title = "",
294
+ onTitleChange,
295
+ showLegend = true,
296
+ titleLevel = "h4",
297
+ onLineChange,
298
+ onRuleChange,
299
+ onAxisChannelDrop,
300
+ onAxisChange,
301
+ rules,
302
+ enableTooltip = true,
303
+ enableMeasure = false,
304
+ initialViewport = box$1.DECIMAL,
305
+ onViewportChange,
306
+ viewportTriggers,
307
+ ...restProps
308
+ }) => {
309
+ const xAxes = axes.filter(({ location: l }) => location.isY(l));
310
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(LinePlot$1, { ...restProps, children: [
311
+ xAxes.map((a, i) => {
312
+ const axisLines = lines.filter((l) => l.axes.x === a.key);
313
+ const yAxes = axes.filter(({ location: l }) => location.isX(l));
314
+ const axisRules = rules == null ? void 0 : rules.filter(
315
+ (r) => [...yAxes.map(({ key: id }) => id), a.key].includes(r.axis)
316
+ );
317
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
318
+ XAxis,
319
+ {
320
+ axis: a,
321
+ index: i,
322
+ lines: axisLines,
323
+ yAxes,
324
+ rules: axisRules,
325
+ onAxisChannelDrop,
326
+ onAxisChange
327
+ },
328
+ a.key
329
+ );
330
+ }),
331
+ showLegend && /* @__PURE__ */ jsxRuntimeExports.jsx(Legend, { onLineChange }),
332
+ showTitle && /* @__PURE__ */ jsxRuntimeExports.jsx(Title, { value: title, onChange: onTitleChange, level: titleLevel }),
333
+ /* @__PURE__ */ jsxRuntimeExports.jsxs(
334
+ Viewport,
335
+ {
336
+ initial: initialViewport,
337
+ onChange: onViewportChange,
338
+ triggers: viewportTriggers,
339
+ children: [
340
+ enableTooltip && /* @__PURE__ */ jsxRuntimeExports.jsx(Tooltip$1, {}),
341
+ enableMeasure && /* @__PURE__ */ jsxRuntimeExports.jsx(Measure, {})
342
+ ]
343
+ }
344
+ )
345
+ ] });
346
+ };
347
+ const XAxis = ({
348
+ yAxes,
349
+ lines,
350
+ index,
351
+ rules,
352
+ onRuleChange,
353
+ onAxisChannelDrop,
354
+ onAxisChange,
355
+ axis: { location: location2, key, showGrid, ...axis }
356
+ }) => {
357
+ const dropProps = useDrop({
358
+ type: "Channel.LinePlot.XAxis",
359
+ canDrop,
360
+ onDrop: useCallback(
361
+ ({ items }) => {
362
+ const dropped = filterByType(HAUL_TYPE, items);
363
+ onAxisChannelDrop == null ? void 0 : onAxisChannelDrop(
364
+ key,
365
+ dropped.map(({ key: key2 }) => key2)
366
+ );
367
+ return dropped;
368
+ },
369
+ [key, onAxisChannelDrop]
370
+ )
371
+ });
372
+ const xRules = rules == null ? void 0 : rules.filter((r) => r.axis === key);
373
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(
374
+ XAxis$1,
375
+ {
376
+ ...axis,
377
+ ...dropProps,
378
+ location: location2,
379
+ showGrid: showGrid ?? index === 0,
380
+ className: CSS(
381
+ CSS.dropRegion(canDropOfType(HAUL_TYPE)(useDraggingState()))
382
+ ),
383
+ onAutoBoundsChange: (bounds) => onAxisChange == null ? void 0 : onAxisChange({ key, bounds }),
384
+ children: [
385
+ yAxes.map((a, i) => {
386
+ const yLines = lines.filter((l) => l.axes.y === a.key);
387
+ const yRules = rules == null ? void 0 : rules.filter((r) => r.axis === a.key);
388
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
389
+ YAxis,
390
+ {
391
+ axis: {
392
+ ...a,
393
+ showGrid: showGrid ?? (index === 0 && i === 0)
394
+ },
395
+ lines: yLines,
396
+ rules: yRules,
397
+ onRuleChange,
398
+ onAxisChannelDrop,
399
+ onAxisChange
400
+ },
401
+ a.key
402
+ );
403
+ }),
404
+ xRules == null ? void 0 : xRules.map((rule) => /* @__PURE__ */ createElement(
405
+ Rule,
406
+ {
407
+ aetherKey: rule.key,
408
+ ...rule,
409
+ key: rule.key,
410
+ onLabelChange: (value) => onRuleChange == null ? void 0 : onRuleChange({ key: rule.key, label: value }),
411
+ onPositionChange: (value) => onRuleChange == null ? void 0 : onRuleChange({ key: rule.key, position: value })
412
+ }
413
+ ))
414
+ ]
415
+ }
416
+ );
417
+ };
418
+ const lineKey = ({ channels: { x, y } }) => `${x ?? 0}-${y}`;
419
+ const YAxis = ({
420
+ lines,
421
+ rules,
422
+ onRuleChange,
423
+ onAxisChannelDrop,
424
+ onAxisChange,
425
+ axis: { key, location: loc2, ...props }
426
+ }) => {
427
+ const dropProps = useDrop({
428
+ type: "Channel.LinePlot.YAxis",
429
+ canDrop,
430
+ onDrop: useCallback(
431
+ ({ items }) => {
432
+ const dropped = filterByType(HAUL_TYPE, items);
433
+ onAxisChannelDrop == null ? void 0 : onAxisChannelDrop(
434
+ key,
435
+ dropped.map(({ key: key2 }) => key2)
436
+ );
437
+ return dropped;
438
+ },
439
+ [key, onAxisChannelDrop]
440
+ )
441
+ });
442
+ const dragging = useDraggingState();
443
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(
444
+ YAxis$1,
445
+ {
446
+ ...props,
447
+ ...dropProps,
448
+ location: loc2,
449
+ className: CSS(CSS.dropRegion(canDropOfType(HAUL_TYPE)(dragging))),
450
+ onAutoBoundsChange: (bounds) => onAxisChange == null ? void 0 : onAxisChange({ key, bounds }),
451
+ children: [
452
+ lines.map((l) => /* @__PURE__ */ jsxRuntimeExports.jsx(Line, { line: l }, lineKey(l))),
453
+ rules == null ? void 0 : rules.map((r) => /* @__PURE__ */ createElement(
454
+ Rule,
455
+ {
456
+ aetherKey: r.key,
457
+ ...r,
458
+ key: r.key,
459
+ onLabelChange: (value) => onRuleChange == null ? void 0 : onRuleChange({ key: r.key, label: value }),
460
+ onPositionChange: (value) => onRuleChange == null ? void 0 : onRuleChange({ key: r.key, position: value })
461
+ }
462
+ ))
463
+ ]
464
+ }
465
+ );
466
+ };
467
+ const Line = ({ line }) => line.variant === "static" ? /* @__PURE__ */ jsxRuntimeExports.jsx(StaticLine, { line }) : /* @__PURE__ */ jsxRuntimeExports.jsx(DynamicLine, { line });
468
+ const DynamicLine = ({
469
+ line: {
470
+ key,
471
+ timeSpan,
472
+ channels: { x, y },
473
+ ...props
474
+ }
475
+ }) => {
476
+ const yTelem = streamChannelData({ timeSpan, channel: y });
477
+ const hasX = x != null && x !== 0;
478
+ const xTelem = streamChannelData({
479
+ timeSpan,
480
+ channel: hasX ? x : y,
481
+ index: !hasX
482
+ });
483
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Line$1, { aetherKey: key, y: yTelem, x: xTelem, ...props });
484
+ };
485
+ const StaticLine = ({
486
+ line: {
487
+ timeRange,
488
+ key,
489
+ channels: { x, y },
490
+ ...props
491
+ }
492
+ }) => {
493
+ const yTelem = channelData({ timeRange, channel: y });
494
+ const hasX = x != null && x !== 0;
495
+ const xTelem = channelData({
496
+ timeRange,
497
+ channel: hasX ? x : y,
498
+ index: !hasX
499
+ });
500
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Line$1, { aetherKey: key, y: yTelem, x: xTelem, ...props });
501
+ };
502
+ const external$9 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
503
+ __proto__: null,
504
+ AliasInput,
505
+ AliasProvider,
506
+ LinePlot,
507
+ SelectMultiple,
508
+ SelectSingle,
509
+ useActiveRange,
510
+ useAlias,
511
+ useAliases,
512
+ useContext: useContext$2,
513
+ useName
514
+ }, Symbol.toStringTag, { value: "Module" }));
515
+ const TabNotFound = new Error("Tab not found");
516
+ const InvalidMosaic = new Error("Invalid Mosaic");
517
+ const insertTab = (root, tab, loc = "center", key) => {
518
+ var _a;
519
+ root = shallowCopyNode(root);
520
+ if (key === void 0)
521
+ return insertAnywhere(root, tab);
522
+ const node = findNodeOrAncestor(root, key);
523
+ if (loc === "center") {
524
+ (_a = node.tabs) == null ? void 0 : _a.push(tab);
525
+ node.selected = tab.tabKey;
526
+ return root;
527
+ }
528
+ if (node.tabs == null || node.tabs.length === 0)
529
+ return root;
530
+ const [insertOrder, siblingOrder, dir] = splitArrangement(loc);
531
+ node.direction = dir;
532
+ node[insertOrder] = { key: 0, tabs: [tab], selected: tab.tabKey };
533
+ node[siblingOrder] = { key: 0, tabs: node.tabs, selected: node.selected };
534
+ if (node.first == null || node.last == null)
535
+ throw InvalidMosaic;
536
+ node.first.key = node.key * 2;
537
+ node.last.key = node.key * 2 + 1;
538
+ node.tabs = void 0;
539
+ node.size = void 0;
540
+ node.selected = void 0;
541
+ return root;
542
+ };
543
+ const insertAnywhere = (root, tab) => {
544
+ root = shallowCopyNode(root);
545
+ if (root.tabs != null) {
546
+ root.tabs.push(tab);
547
+ root.selected = tab.tabKey;
548
+ return root;
549
+ }
550
+ if (root.first != null)
551
+ root.first = insertAnywhere(root.first, tab);
552
+ else if (root.last != null)
553
+ root.last = insertAnywhere(root.last, tab);
554
+ return root;
555
+ };
556
+ const autoSelectTabs = (root) => {
557
+ root = shallowCopyNode(root);
558
+ const selected = [];
559
+ if (root.tabs != null) {
560
+ root.selected = resetSelection(root.selected, root.tabs);
561
+ if (root.selected != null)
562
+ selected.push(root.selected);
563
+ }
564
+ if (root.first != null) {
565
+ const [f, s] = autoSelectTabs(root.first);
566
+ root.first = f;
567
+ selected.push(...s);
568
+ }
569
+ if (root.last != null) {
570
+ const [r, l] = autoSelectTabs(root.last);
571
+ root.last = r;
572
+ selected.push(...l);
573
+ }
574
+ return [root, selected];
575
+ };
576
+ const removeTab = (root, tabKey) => {
577
+ var _a;
578
+ root = shallowCopyNode(root);
579
+ const [, node] = findMosaicTab(root, tabKey);
580
+ if (node == null)
581
+ throw TabNotFound;
582
+ node.tabs = (_a = node.tabs) == null ? void 0 : _a.filter((t) => t.tabKey !== tabKey);
583
+ node.selected = resetSelection(node.selected, node.tabs);
584
+ const gced = gc(root);
585
+ const selected = node.selected ?? findSelected(gced);
586
+ return [gced, selected];
587
+ };
588
+ const findSelected = (root) => {
589
+ if (root.selected != null)
590
+ return root.selected;
591
+ if (root.first != null)
592
+ return findSelected(root.first);
593
+ if (root.last != null)
594
+ return findSelected(root.last);
595
+ return null;
596
+ };
597
+ const selectTab = (root, tabKey) => {
598
+ root = shallowCopyNode(root);
599
+ const [tab, entry] = findMosaicTab(root, tabKey);
600
+ if (tab == null || entry == null)
601
+ throw TabNotFound;
602
+ entry.selected = tabKey;
603
+ return root;
604
+ };
605
+ const moveTab = (root, tabKey, loc, to) => {
606
+ root = shallowCopyNode(root);
607
+ const [tab, entry] = findMosaicTab(root, tabKey);
608
+ if (tab == null || entry == null)
609
+ throw TabNotFound;
610
+ const [r2, selected] = removeTab(root, tabKey);
611
+ const r3 = insertTab(r2, tab, loc, to);
612
+ return [r3, selected];
613
+ };
614
+ const resizeNode = (root, key, size) => {
615
+ const node = findMosaicNode(root, key);
616
+ if (node == null)
617
+ throw new Error("Node not found");
618
+ else
619
+ node.size = size;
620
+ return root;
621
+ };
622
+ const renameTab = (root, tabKey, name) => {
623
+ root = shallowCopyNode(root);
624
+ const [, leaf] = findMosaicTab(root, tabKey);
625
+ if ((leaf == null ? void 0 : leaf.tabs) == null)
626
+ throw TabNotFound;
627
+ leaf.tabs = rename(tabKey, name, (leaf == null ? void 0 : leaf.tabs) ?? []);
628
+ return root;
629
+ };
630
+ const isEmpty = (root) => {
631
+ if (root.tabs != null)
632
+ return root.tabs.length === 0;
633
+ return root.first == null && root.last == null;
634
+ };
635
+ const findNodeOrAncestor = (root, key) => {
636
+ const node = findMosaicNode(root, key);
637
+ if (node != null)
638
+ return node;
639
+ const next = Math.floor(key / 2);
640
+ return next === 0 ? root : findNodeOrAncestor(root, next);
641
+ };
642
+ const gc = (root) => {
643
+ let gced = true;
644
+ while (gced)
645
+ [root, gced] = _gc(root);
646
+ return root;
647
+ };
648
+ const _gc = (node) => {
649
+ if (node.first == null || node.last == null)
650
+ return [node, false];
651
+ if (shouldGc(node.first))
652
+ return [liftUp(node.last, true), true];
653
+ if (shouldGc(node.last))
654
+ return [liftUp(node.first, false), true];
655
+ let [sGC, eGC] = [false, false];
656
+ [node.first, sGC] = _gc(node.first);
657
+ [node.last, eGC] = _gc(node.last);
658
+ return [node, sGC || eGC];
659
+ };
660
+ const liftUp = (node, isLast) => {
661
+ node.size = void 0;
662
+ node.key = (node.key - Number(isLast)) / 2;
663
+ return node;
664
+ };
665
+ const shouldGc = (node) => node.first == null && node.last == null && (node.tabs == null || node.tabs.length === 0);
666
+ const findMosaicTab = (node, tabKey) => {
667
+ if (node.tabs != null) {
668
+ const tab = node.tabs.find((t) => t.tabKey === tabKey);
669
+ if (tab != null)
670
+ return [tab, node];
671
+ }
672
+ if (node.first == null || node.last == null)
673
+ return [void 0, void 0];
674
+ const [t1Tab, t2Tree] = findMosaicTab(node.first, tabKey);
675
+ if (t1Tab != null && t2Tree != null)
676
+ return [t1Tab, t2Tree];
677
+ const [t2Tab, t2Tree2] = findMosaicTab(node.last, tabKey);
678
+ return [t2Tab, t2Tree2];
679
+ };
680
+ const findMosaicNode = (node, key) => {
681
+ if (node.key === key)
682
+ return node;
683
+ if (node.first == null || node.last == null)
684
+ return void 0;
685
+ const n1 = findMosaicNode(node.first, key);
686
+ if (n1 != null)
687
+ return n1;
688
+ return findMosaicNode(node.last, key);
689
+ };
690
+ const splitArrangement = (insertPosition) => {
691
+ switch (insertPosition) {
692
+ case "top":
693
+ return ["first", "last", "y"];
694
+ case "left":
695
+ return ["first", "last", "x"];
696
+ case "bottom":
697
+ return ["last", "first", "y"];
698
+ case "right":
699
+ return ["last", "first", "x"];
700
+ case "center":
701
+ throw new Error("cannot split a center placed tab");
702
+ }
703
+ };
704
+ const shallowCopyNode = (node) => external$h.copy(node);
705
+ const use$2 = ({ allowRename = false, initialTree }) => {
706
+ const [root, setRoot] = useState(initialTree);
707
+ useEffect(() => setRoot(autoSelectTabs(initialTree)[0]), [initialTree]);
708
+ const handleDrop = (key, tabKey, loc) => setRoot((r) => moveTab(r, tabKey, loc, key)[0]);
709
+ const handleClose = (tabKey) => setRoot((r) => removeTab(r, tabKey)[0]);
710
+ const handleSelect = (tabKey) => setRoot((r) => selectTab(r, tabKey));
711
+ const handleResize = (key, size) => setRoot((r) => resizeNode(r, key, size));
712
+ const handleRename = (tabKey, title) => setRoot((r) => renameTab(r, tabKey, title));
713
+ return {
714
+ root,
715
+ onDrop: handleDrop,
716
+ onClose: handleClose,
717
+ onSelect: handleSelect,
718
+ onResize: handleResize,
719
+ onRename: allowRename ? handleRename : void 0
720
+ };
721
+ };
722
+ const external$8 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
723
+ __proto__: null,
724
+ HAUL_CREATE_TYPE,
725
+ HAUL_DROP_TYPE,
726
+ Mosaic,
727
+ autoSelectTabs,
728
+ findSelected,
729
+ insertTab,
730
+ isEmpty,
731
+ moveTab,
732
+ removeTab,
733
+ renameTab,
734
+ resizeNode,
735
+ selectTab,
736
+ use: use$2
737
+ }, Symbol.toStringTag, { value: "Module" }));
738
+ const external$7 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
739
+ __proto__: null,
740
+ Bar,
741
+ Drawer,
742
+ useDrawer
743
+ }, Symbol.toStringTag, { value: "Module" }));
744
+ const Icon = {
745
+ Close: /* @__PURE__ */ jsxRuntimeExports.jsxs(
746
+ "svg",
747
+ {
748
+ width: "124",
749
+ height: "124",
750
+ viewBox: "0 0 124 124",
751
+ fill: "none",
752
+ xmlns: "http://www.w3.org/2000/svg",
753
+ children: [
754
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
755
+ "rect",
756
+ {
757
+ x: "26.8701",
758
+ y: "88.3883",
759
+ width: "87",
760
+ height: "11",
761
+ transform: "rotate(-45 26.8701 88.3883)",
762
+ fill: "#7E0508"
763
+ }
764
+ ),
765
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
766
+ "rect",
767
+ {
768
+ x: "26.8701",
769
+ y: "34.6482",
770
+ width: "11",
771
+ height: "87",
772
+ transform: "rotate(-45 26.8701 34.6482)",
773
+ fill: "#7E0508"
774
+ }
775
+ )
776
+ ]
777
+ }
778
+ ),
779
+ Minimize: /* @__PURE__ */ jsxRuntimeExports.jsx(
780
+ "svg",
781
+ {
782
+ width: "87",
783
+ height: "11",
784
+ viewBox: "0 0 87 11",
785
+ fill: "none",
786
+ xmlns: "http://www.w3.org/2000/svg",
787
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx("rect", { x: "15", width: "60", height: "11", fill: "#985712" })
788
+ }
789
+ ),
790
+ Maximize: /* @__PURE__ */ jsxRuntimeExports.jsxs(
791
+ "svg",
792
+ {
793
+ width: "143",
794
+ height: "143",
795
+ viewBox: "0 0 143 143",
796
+ fill: "none",
797
+ xmlns: "http://www.w3.org/2000/svg",
798
+ children: [
799
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
800
+ "path",
801
+ {
802
+ d: "M108.242 32.8833C108.797 32.8817 109.247 33.3317 109.245 33.8862L109.092 87.5891C109.09 88.4786 108.014 88.9223 107.385 88.2933L53.8351 34.7432C53.2061 34.1142 53.6499 33.0387 54.5394 33.0361L108.242 32.8833Z",
803
+ fill: "#0B650D"
804
+ }
805
+ ),
806
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
807
+ "path",
808
+ {
809
+ d: "M33.8862 109.245C33.3317 109.247 32.8818 108.797 32.8833 108.242L33.0361 54.5394C33.0387 53.6499 34.1142 53.2061 34.7432 53.8351L88.2934 107.385C88.9223 108.014 88.4786 109.09 87.5891 109.092L33.8862 109.245Z",
810
+ fill: "#0B650D"
811
+ }
812
+ )
813
+ ]
814
+ }
815
+ )
816
+ };
817
+ const MacOS = ({
818
+ disabled = [],
819
+ className,
820
+ focused = true,
821
+ onMinimize,
822
+ onMaximize,
823
+ onFullscreen,
824
+ onClose,
825
+ ...props
826
+ }) => /* @__PURE__ */ jsxRuntimeExports.jsxs(
827
+ Space,
828
+ {
829
+ size: 1.5,
830
+ direction: "x",
831
+ className: CSS(
832
+ CSS.B("macos-controls"),
833
+ !focused && CSS.BM("macos-controls", "blurred"),
834
+ className
835
+ ),
836
+ ...props,
837
+ children: [
838
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
839
+ TrafficLight,
840
+ {
841
+ onClick: onClose,
842
+ className: CSS.BM("macos-control", "close"),
843
+ disabled: disabled.includes("close"),
844
+ children: Icon.Close
845
+ }
846
+ ),
847
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
848
+ TrafficLight,
849
+ {
850
+ onClick: onMinimize,
851
+ className: CSS.BM("macos-control", "minimize"),
852
+ disabled: disabled.includes("minimize"),
853
+ children: Icon.Minimize
854
+ }
855
+ ),
856
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
857
+ TrafficLight,
858
+ {
859
+ onClick: onFullscreen,
860
+ className: CSS.BM("macos-control", "maximize"),
861
+ disabled: disabled.includes("maximize"),
862
+ children: Icon.Maximize
863
+ }
864
+ )
865
+ ]
866
+ }
867
+ );
868
+ const TrafficLight = ({ className, ...props }) => /* @__PURE__ */ jsxRuntimeExports.jsx(
869
+ "button",
870
+ {
871
+ className: CSS(CSS.B("macos-control"), className),
872
+ tabIndex: -1,
873
+ size: "",
874
+ ...props
875
+ }
876
+ );
877
+ const Windows = ({
878
+ disabled = [],
879
+ onMinimize,
880
+ onMaximize,
881
+ onClose,
882
+ // no-op on windows
883
+ onFullscreen: _,
884
+ ...props
885
+ }) => /* @__PURE__ */ jsxRuntimeExports.jsxs(Pack, { ...props, children: [
886
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
887
+ Button,
888
+ {
889
+ className: CSS.BM("windows-control", "minimize"),
890
+ onClick: onMinimize,
891
+ disabled: disabled.includes("minimize"),
892
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(Icon$1.Subtract, {})
893
+ }
894
+ ),
895
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
896
+ Button,
897
+ {
898
+ className: CSS.BM("windows-control", "maximize"),
899
+ onClick: onMaximize,
900
+ disabled: disabled.includes("maximize"),
901
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(Icon$1.Box, {})
902
+ }
903
+ ),
904
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
905
+ Button,
906
+ {
907
+ onClick: onClose,
908
+ className: CSS.BM("windows-control", "close"),
909
+ disabled: disabled.includes("close"),
910
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(Icon$1.Close, {})
911
+ }
912
+ )
913
+ ] });
914
+ const Button = ({
915
+ disabled = false,
916
+ className,
917
+ ...props
918
+ }) => !disabled ? /* @__PURE__ */ jsxRuntimeExports.jsx(
919
+ Icon$2,
920
+ {
921
+ className: CSS(CSS.B("windows-control"), className),
922
+ tabIndex: -1,
923
+ ...props
924
+ }
925
+ ) : null;
926
+ const use$1 = (props) => external$1$1.getOS(props);
927
+ const Variants = {
928
+ MacOS,
929
+ Windows,
930
+ Linux: Windows,
931
+ Docker: Windows
932
+ };
933
+ const DEFAULT_OS = "Windows";
934
+ const Controls = ({
935
+ forceOS,
936
+ visibleIfOS,
937
+ ...props
938
+ }) => {
939
+ const os = use$1({ force: forceOS, default: DEFAULT_OS });
940
+ const C = Variants[os];
941
+ if (visibleIfOS != null && visibleIfOS !== os)
942
+ return null;
943
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(C, { ...props });
944
+ };
945
+ const external$6 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
946
+ __proto__: null,
947
+ Controls,
948
+ use: use$1
949
+ }, Symbol.toStringTag, { value: "Module" }));
950
+ const alignNodes = (layouts, dir = "x") => {
951
+ if (layouts.length === 0)
952
+ return [];
953
+ const loc = location.construct(dir);
954
+ const oppositeLoc = location.swap(loc);
955
+ layouts.sort((a, b) => box$1.loc(a.box, loc) - box$1.loc(b.box, loc));
956
+ layouts.forEach((layout, i) => {
957
+ if (i === 0)
958
+ return;
959
+ const prev = layouts[i - 1];
960
+ const prevRightHandle = prev.handles.find((h2) => h2.orientation === oppositeLoc);
961
+ const leftHandle = layout.handles.find((h2) => h2.orientation === loc);
962
+ if (prevRightHandle == null || leftHandle == null)
963
+ return;
964
+ const prevHandleAbsPos = prevRightHandle.absolutePosition;
965
+ const leftHandleAbsPos = leftHandle.absolutePosition;
966
+ const dist = xy.set(xy.translation(leftHandleAbsPos, prevHandleAbsPos), dir, 0);
967
+ const newPos = xy.translate(box$1.topLeft(layout.box), dist);
968
+ layout.box = box$1.construct(newPos, box$1.dims(layout.box));
969
+ });
970
+ return layouts;
971
+ };
972
+ const external$5 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
973
+ __proto__: null,
974
+ Background,
975
+ Controls: Controls$1,
976
+ Diagram,
977
+ FitViewControl,
978
+ HandleLayout,
979
+ NodeLayout,
980
+ NodeRenderer,
981
+ ToggleEditControl,
982
+ alignNodes,
983
+ selectNode,
984
+ selectNodeBox,
985
+ selectNodeLayout,
986
+ use: use$4,
987
+ useContext: useContext$3
988
+ }, Symbol.toStringTag, { value: "Module" }));
989
+ const use = ({
990
+ aetherKey,
991
+ ...props
992
+ }) => use$5({
993
+ aetherKey,
994
+ type: Table.TYPE,
995
+ schema: tableStateZ,
996
+ initialState: props
997
+ });
998
+ const external$4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
999
+ __proto__: null,
1000
+ StringTD,
1001
+ TR,
1002
+ Table: Table$1,
1003
+ use
1004
+ }, Symbol.toStringTag, { value: "Module" }));
1005
+ const external$3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1006
+ __proto__: null,
1007
+ LabelSpec,
1008
+ REGISTRY,
1009
+ initialProps
1010
+ }, Symbol.toStringTag, { value: "Module" }));
1011
+ const external$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1012
+ __proto__: null,
1013
+ corePropsZ,
1014
+ use: use$6
1015
+ }, Symbol.toStringTag, { value: "Module" }));
1016
+ const external$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1017
+ __proto__: null,
1018
+ Chip,
1019
+ Controller,
1020
+ Indicator,
1021
+ Legend: Legend$1,
1022
+ StateProvider,
1023
+ useContext: useContext$4
1024
+ }, Symbol.toStringTag, { value: "Module" }));
1025
+ const DefaultWorkerURL = "data:video/mp2t;base64,Ly8gQ29weXJpZ2h0IDIwMjMgU3lubmF4IExhYnMsIEluYy4KLy8KLy8gVXNlIG9mIHRoaXMgc29mdHdhcmUgaXMgZ292ZXJuZWQgYnkgdGhlIEJ1c2luZXNzIFNvdXJjZSBMaWNlbnNlIGluY2x1ZGVkIGluIHRoZSBmaWxlCi8vIGxpY2Vuc2VzL0JTTC50eHQuCi8vCi8vIEFzIG9mIHRoZSBDaGFuZ2UgRGF0ZSBzcGVjaWZpZWQgaW4gdGhhdCBmaWxlLCBpbiBhY2NvcmRhbmNlIHdpdGggdGhlIEJ1c2luZXNzIFNvdXJjZQovLyBMaWNlbnNlLCB1c2Ugb2YgdGhpcyBzb2Z0d2FyZSB3aWxsIGJlIGdvdmVybmVkIGJ5IHRoZSBBcGFjaGUgTGljZW5zZSwgVmVyc2lvbiAyLjAsCi8vIGluY2x1ZGVkIGluIHRoZSBmaWxlIGxpY2Vuc2VzL0FQTC50eHQuCgppbXBvcnQgeyBwbHV0byB9IGZyb20gIkAvcGx1dG8vYWV0aGVyIjsKCnBsdXRvLnJlbmRlcigpOwo=";
1026
+ const Provider = ({
1027
+ children,
1028
+ connParams,
1029
+ workerEnabled = true,
1030
+ workerURL,
1031
+ theme,
1032
+ toggleTheme,
1033
+ setTheme,
1034
+ tooltip,
1035
+ triggers,
1036
+ alamos,
1037
+ haul,
1038
+ channelAlias
1039
+ }) => {
1040
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Provider$1, { ...triggers, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Config, { ...tooltip, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Provider$2, { ...haul, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Provider$3, { url: workerURL ?? DefaultWorkerURL, enabled: workerEnabled, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Provider$4, { workerKey: "vis", children: /* @__PURE__ */ jsxRuntimeExports.jsx(Provider$5, { ...alamos, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Aggregator, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(Provider$6, { connParams, children: /* @__PURE__ */ jsxRuntimeExports.jsx(AliasProvider, { ...channelAlias, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Provider$7, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
1041
+ Provider$8,
1042
+ {
1043
+ theme,
1044
+ toggleTheme,
1045
+ setTheme,
1046
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(StateProvider, { children })
1047
+ }
1048
+ ) }) }) }) }) }) }) }) }) }) });
1049
+ };
1050
+ const Pluto = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1051
+ __proto__: null,
1052
+ Provider
1053
+ }, Symbol.toStringTag, { value: "Module" }));
1054
+ const TimeRangeChip = ({ timeRange }) => {
1055
+ const startTS = new TimeStamp(timeRange.start);
1056
+ const startFormat = startTS.isToday ? "time" : "dateTime";
1057
+ const endTS = new TimeStamp(timeRange.end);
1058
+ const isOpen = endTS.equals(TimeStamp.MAX);
1059
+ const endFormat = endTS.span(startTS) < TimeSpan.DAY ? "time" : "dateTime";
1060
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(
1061
+ Space,
1062
+ {
1063
+ direction: "x",
1064
+ size: "small",
1065
+ className: CSS(CSS.B("time-range-chip")),
1066
+ align: "center",
1067
+ children: [
1068
+ startTS.isToday && /* @__PURE__ */ jsxRuntimeExports.jsx(Text$1, { level: "small", children: "Today" }),
1069
+ /* @__PURE__ */ jsxRuntimeExports.jsx(DateTime, { level: "small", displayTZ: "local", format: startFormat, children: startTS }),
1070
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Icon$1.Arrow.Right, { color: "var(--pluto-text-color)" }),
1071
+ isOpen ? /* @__PURE__ */ jsxRuntimeExports.jsx(Text$1, { level: "small", children: "Now" }) : /* @__PURE__ */ jsxRuntimeExports.jsx(DateTime, { level: "small", displayTZ: "local", format: endFormat, children: endTS })
1072
+ ]
1073
+ }
1074
+ );
1075
+ };
1076
+ const labelColumns = [
1077
+ {
1078
+ key: "color",
1079
+ name: "Color",
1080
+ width: 50,
1081
+ render: (v) => /* @__PURE__ */ jsxRuntimeExports.jsx(
1082
+ Icon$1.Circle,
1083
+ {
1084
+ style: { fontSize: 10, marginLeft: 10, marginRight: 30 },
1085
+ color: v.entry.color
1086
+ }
1087
+ )
1088
+ },
1089
+ {
1090
+ key: "name",
1091
+ name: "Name"
1092
+ }
1093
+ ];
1094
+ const SelectLabels = (props) => {
1095
+ const client = use$7();
1096
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
1097
+ Multiple$1,
1098
+ {
1099
+ ...props,
1100
+ searcher: client == null ? void 0 : client.labels,
1101
+ columns: labelColumns,
1102
+ renderTag: (v) => /* @__PURE__ */ jsxRuntimeExports.jsx(Tag, { color: v.entry.color, children: v.entry.name })
1103
+ }
1104
+ );
1105
+ };
1106
+ const external = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1107
+ __proto__: null,
1108
+ SelectLabels,
1109
+ TimeRangeChip
1110
+ }, Symbol.toStringTag, { value: "Module" }));
1111
+ export {
1112
+ Accordion$1 as Accordion,
1113
+ an as Aether,
1114
+ e2 as Align,
1115
+ e3 as Button,
1116
+ CSS,
1117
+ aC2 as Canvas,
1118
+ external$9 as Channel,
1119
+ external$f as Color,
1120
+ external$1 as Control,
1121
+ external$5 as Diagram,
1122
+ ao as Divider,
1123
+ D as Dropdown,
1124
+ aI as Eraser,
1125
+ G as Generic,
1126
+ ap as Haul,
1127
+ e as Header,
1128
+ e4 as Input,
1129
+ aD2 as Line,
1130
+ external$a as LinePlot,
1131
+ e5 as List,
1132
+ aE2 as Measure,
1133
+ e6 as Menu,
1134
+ external$8 as Mosaic,
1135
+ external$7 as Nav,
1136
+ external$6 as OS,
1137
+ aG as PID,
1138
+ Pluto,
1139
+ external as Ranger,
1140
+ external$d as Resize,
1141
+ aF as Rule,
1142
+ external$c as Select,
1143
+ external$g as Status,
1144
+ aA2 as Synnax,
1145
+ external$4 as Table,
1146
+ external$3 as TableCell,
1147
+ e7 as Tabs,
1148
+ aB2 as Tag,
1149
+ aH as Telem,
1150
+ e8 as Text,
1151
+ e9 as Theming,
1152
+ external$e as Tooltip,
1153
+ T as Tree,
1154
+ e10 as Triggers,
1155
+ external$2 as Value,
1156
+ V as Video,
1157
+ external$b as Viewport,
1158
+ aq as Worker,
1159
+ au as compareArrayDeps,
1160
+ aD as componentRenderProp,
1161
+ aK as createFilterTransform,
1162
+ as as createHexOpacityVariants,
1163
+ aJ as fuseFilter,
1164
+ aE as isRenderProp,
1165
+ n as newBEM,
1166
+ h as state,
1167
+ e11 as telem,
1168
+ ar as unitProperty,
1169
+ aw as useAsyncEffect,
1170
+ a2 as useClickOutside,
1171
+ aB as useCombinedRefs,
1172
+ aC as useCombinedStateAndRef,
1173
+ aM as useDebouncedCallback,
1174
+ ax as useEffectCompare,
1175
+ at as useMemoCompare,
1176
+ av as useMemoDeepEqualProps,
1177
+ ay as useResize,
1178
+ az as useStateRef,
1179
+ aA as useSyncedRef,
1180
+ aL as useTransforms
1181
+ };
1182
+ //# sourceMappingURL=index.js.map