@bevelo/vue 0.0.0-stage → 0.1.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 (461) hide show
  1. package/LICENSE +21 -0
  2. package/dist/accordion.cjs +89 -0
  3. package/dist/accordion.d.cts +145 -0
  4. package/dist/accordion.d.ts +145 -0
  5. package/dist/accordion.js +88 -0
  6. package/dist/agent.cjs +74 -0
  7. package/dist/agent.d.cts +2 -0
  8. package/dist/agent.d.ts +2 -0
  9. package/dist/agent.js +1 -0
  10. package/dist/alert-dialog.cjs +48 -0
  11. package/dist/alert-dialog.d.cts +142 -0
  12. package/dist/alert-dialog.d.ts +142 -0
  13. package/dist/alert-dialog.js +47 -0
  14. package/dist/alert.cjs +77 -0
  15. package/dist/alert.d.cts +64 -0
  16. package/dist/alert.d.ts +64 -0
  17. package/dist/alert.js +76 -0
  18. package/dist/aspect-ratio.cjs +21 -0
  19. package/dist/aspect-ratio.d.cts +13 -0
  20. package/dist/aspect-ratio.d.ts +13 -0
  21. package/dist/aspect-ratio.js +21 -0
  22. package/dist/async-options.cjs +76 -0
  23. package/dist/async-options.d.cts +49 -0
  24. package/dist/async-options.d.ts +49 -0
  25. package/dist/async-options.js +75 -0
  26. package/dist/autocomplete.cjs +274 -0
  27. package/dist/autocomplete.d.cts +309 -0
  28. package/dist/autocomplete.d.ts +309 -0
  29. package/dist/autocomplete.js +273 -0
  30. package/dist/avatar.cjs +51 -0
  31. package/dist/avatar.d.cts +69 -0
  32. package/dist/avatar.d.ts +69 -0
  33. package/dist/avatar.js +50 -0
  34. package/dist/badge.cjs +41 -0
  35. package/dist/badge.d.cts +39 -0
  36. package/dist/badge.d.ts +39 -0
  37. package/dist/badge.js +40 -0
  38. package/dist/breadcrumb.cjs +59 -0
  39. package/dist/breadcrumb.d.cts +40 -0
  40. package/dist/breadcrumb.d.ts +40 -0
  41. package/dist/breadcrumb.js +58 -0
  42. package/dist/button.cjs +56 -0
  43. package/dist/button.d.cts +79 -0
  44. package/dist/button.d.ts +79 -0
  45. package/dist/button.js +55 -0
  46. package/dist/calendar-Bcc6HKc9.js +643 -0
  47. package/dist/calendar-vHGhj3RI.cjs +720 -0
  48. package/dist/calendar.cjs +4 -0
  49. package/dist/calendar.d.cts +316 -0
  50. package/dist/calendar.d.ts +316 -0
  51. package/dist/calendar.js +1 -0
  52. package/dist/card-B_ZoLCvt.d.cts +61 -0
  53. package/dist/card-B_ZoLCvt.d.ts +61 -0
  54. package/dist/card-CZHRix0r.js +99 -0
  55. package/dist/card-CvGfpsiU.cjs +140 -0
  56. package/dist/card.cjs +9 -0
  57. package/dist/card.d.cts +2 -0
  58. package/dist/card.d.ts +2 -0
  59. package/dist/card.js +1 -0
  60. package/dist/carousel.cjs +225 -0
  61. package/dist/carousel.d.cts +214 -0
  62. package/dist/carousel.d.ts +214 -0
  63. package/dist/carousel.js +224 -0
  64. package/dist/checkbox-group.cjs +93 -0
  65. package/dist/checkbox-group.d.cts +108 -0
  66. package/dist/checkbox-group.d.ts +108 -0
  67. package/dist/checkbox-group.js +91 -0
  68. package/dist/checkbox.cjs +117 -0
  69. package/dist/checkbox.d.cts +153 -0
  70. package/dist/checkbox.d.ts +153 -0
  71. package/dist/checkbox.js +116 -0
  72. package/dist/collapsible.cjs +70 -0
  73. package/dist/collapsible.d.cts +141 -0
  74. package/dist/collapsible.d.ts +141 -0
  75. package/dist/collapsible.js +69 -0
  76. package/dist/color-picker.cjs +225 -0
  77. package/dist/color-picker.d.cts +180 -0
  78. package/dist/color-picker.d.ts +180 -0
  79. package/dist/color-picker.js +212 -0
  80. package/dist/combobox-CDHIXr6J.d.ts +735 -0
  81. package/dist/combobox-D39Waj6L.d.cts +735 -0
  82. package/dist/combobox-DlCU0vS1.cjs +945 -0
  83. package/dist/combobox-wLdV6VA_.js +802 -0
  84. package/dist/combobox.cjs +26 -0
  85. package/dist/combobox.d.cts +3 -0
  86. package/dist/combobox.d.ts +3 -0
  87. package/dist/combobox.js +1 -0
  88. package/dist/command-CEJACYpR.d.ts +404 -0
  89. package/dist/command-CqHZVivR.js +693 -0
  90. package/dist/command-D54bj6RJ.cjs +836 -0
  91. package/dist/command-rAVp-wbf.d.cts +404 -0
  92. package/dist/command.cjs +15 -0
  93. package/dist/command.d.cts +2 -0
  94. package/dist/command.d.ts +2 -0
  95. package/dist/command.js +1 -0
  96. package/dist/context-menu-BPsgeLQm.cjs +170 -0
  97. package/dist/context-menu-ByhKzWTm.d.ts +129 -0
  98. package/dist/context-menu-Co3ABcdp.js +153 -0
  99. package/dist/context-menu-USbhMQuc.d.cts +129 -0
  100. package/dist/context-menu.cjs +6 -0
  101. package/dist/context-menu.d.cts +2 -0
  102. package/dist/context-menu.d.ts +2 -0
  103. package/dist/context-menu.js +2 -0
  104. package/dist/date-input.cjs +374 -0
  105. package/dist/date-input.d.cts +234 -0
  106. package/dist/date-input.d.ts +234 -0
  107. package/dist/date-input.js +371 -0
  108. package/dist/date-picker-D1mygz_Y.js +891 -0
  109. package/dist/date-picker-D_hqHHAV.cjs +938 -0
  110. package/dist/date-picker.cjs +4 -0
  111. package/dist/date-picker.d.cts +447 -0
  112. package/dist/date-picker.d.ts +447 -0
  113. package/dist/date-picker.js +1 -0
  114. package/dist/describe-BlNg9SbK.js +25 -0
  115. package/dist/describe-D_dLtwde.cjs +42 -0
  116. package/dist/dialog-view-CKtpbGq_.js +26 -0
  117. package/dist/dialog-view-swgEQvlZ.cjs +31 -0
  118. package/dist/dialog.cjs +66 -0
  119. package/dist/dialog.d.cts +158 -0
  120. package/dist/dialog.d.ts +158 -0
  121. package/dist/dialog.js +63 -0
  122. package/dist/direction.cjs +21 -0
  123. package/dist/direction.d.cts +13 -0
  124. package/dist/direction.d.ts +13 -0
  125. package/dist/direction.js +21 -0
  126. package/dist/dnd.cjs +103 -0
  127. package/dist/dnd.d.cts +54 -0
  128. package/dist/dnd.d.ts +54 -0
  129. package/dist/dnd.js +98 -0
  130. package/dist/drawer.cjs +137 -0
  131. package/dist/drawer.d.cts +190 -0
  132. package/dist/drawer.d.ts +190 -0
  133. package/dist/drawer.js +134 -0
  134. package/dist/empty-state.cjs +75 -0
  135. package/dist/empty-state.d.cts +46 -0
  136. package/dist/empty-state.d.ts +46 -0
  137. package/dist/empty-state.js +74 -0
  138. package/dist/engine-refs-8O6mHfYd.d.cts +4 -0
  139. package/dist/engine-refs-8O6mHfYd.d.ts +4 -0
  140. package/dist/engine-refs-CPWFFTfA.cjs +32 -0
  141. package/dist/engine-refs-sojZQs1R.js +21 -0
  142. package/dist/error-state.cjs +86 -0
  143. package/dist/error-state.d.cts +54 -0
  144. package/dist/error-state.d.ts +54 -0
  145. package/dist/error-state.js +85 -0
  146. package/dist/field.cjs +123 -0
  147. package/dist/field.d.cts +100 -0
  148. package/dist/field.d.ts +100 -0
  149. package/dist/field.js +122 -0
  150. package/dist/file-input.cjs +117 -0
  151. package/dist/file-input.d.cts +168 -0
  152. package/dist/file-input.d.ts +168 -0
  153. package/dist/file-input.js +116 -0
  154. package/dist/form-CKus_NQE.cjs +23 -0
  155. package/dist/form-y7b0fcqL.js +18 -0
  156. package/dist/gauge-parts-BVmw61GR.js +64 -0
  157. package/dist/gauge-parts-DjqBK9pL.d.cts +15 -0
  158. package/dist/gauge-parts-V31Fma77.cjs +75 -0
  159. package/dist/gauge-parts-mAgseDD4.d.ts +15 -0
  160. package/dist/headless-B3zQWaJm.js +225 -0
  161. package/dist/headless-BQe1X1Vf.d.ts +2 -0
  162. package/dist/headless-CbQgxdK1.d.cts +2 -0
  163. package/dist/headless-D88yFw8W.cjs +248 -0
  164. package/dist/hover-card.cjs +139 -0
  165. package/dist/hover-card.d.cts +200 -0
  166. package/dist/hover-card.d.ts +200 -0
  167. package/dist/hover-card.js +137 -0
  168. package/dist/icon-button.cjs +75 -0
  169. package/dist/icon-button.d.cts +104 -0
  170. package/dist/icon-button.d.ts +104 -0
  171. package/dist/icon-button.js +74 -0
  172. package/dist/image-cropper.cjs +106 -0
  173. package/dist/image-cropper.d.cts +7 -0
  174. package/dist/image-cropper.d.ts +7 -0
  175. package/dist/image-cropper.js +105 -0
  176. package/dist/image.cjs +87 -0
  177. package/dist/image.d.cts +92 -0
  178. package/dist/image.d.ts +92 -0
  179. package/dist/image.js +86 -0
  180. package/dist/index.cjs +1685 -0
  181. package/dist/index.d.cts +1195 -0
  182. package/dist/index.d.ts +1195 -0
  183. package/dist/index.js +1042 -0
  184. package/dist/input-group.cjs +91 -0
  185. package/dist/input-group.d.cts +84 -0
  186. package/dist/input-group.d.ts +84 -0
  187. package/dist/input-group.js +90 -0
  188. package/dist/input.cjs +114 -0
  189. package/dist/input.d.cts +186 -0
  190. package/dist/input.d.ts +186 -0
  191. package/dist/input.js +113 -0
  192. package/dist/item-B-QdNtAl.cjs +264 -0
  193. package/dist/item-D6GSb0WD.d.ts +144 -0
  194. package/dist/item-DPJnk7ED.js +199 -0
  195. package/dist/item-DyrvCrsL.d.cts +144 -0
  196. package/dist/item.cjs +10 -0
  197. package/dist/item.d.cts +2 -0
  198. package/dist/item.d.ts +2 -0
  199. package/dist/item.js +1 -0
  200. package/dist/kbd.cjs +55 -0
  201. package/dist/kbd.d.cts +38 -0
  202. package/dist/kbd.d.ts +38 -0
  203. package/dist/kbd.js +54 -0
  204. package/dist/label.cjs +41 -0
  205. package/dist/label.d.cts +40 -0
  206. package/dist/label.d.ts +40 -0
  207. package/dist/label.js +40 -0
  208. package/dist/listbox.cjs +85 -0
  209. package/dist/listbox.d.cts +200 -0
  210. package/dist/listbox.d.ts +200 -0
  211. package/dist/listbox.js +84 -0
  212. package/dist/loader.cjs +66 -0
  213. package/dist/loader.d.cts +68 -0
  214. package/dist/loader.d.ts +68 -0
  215. package/dist/loader.js +65 -0
  216. package/dist/mention-menu.cjs +126 -0
  217. package/dist/mention-menu.d.cts +144 -0
  218. package/dist/mention-menu.d.ts +144 -0
  219. package/dist/mention-menu.js +125 -0
  220. package/dist/menu.cjs +182 -0
  221. package/dist/menu.d.cts +240 -0
  222. package/dist/menu.d.ts +240 -0
  223. package/dist/menu.js +181 -0
  224. package/dist/menubar.cjs +38 -0
  225. package/dist/menubar.d.cts +43 -0
  226. package/dist/menubar.d.ts +43 -0
  227. package/dist/menubar.js +37 -0
  228. package/dist/meter.cjs +113 -0
  229. package/dist/meter.d.cts +124 -0
  230. package/dist/meter.d.ts +124 -0
  231. package/dist/meter.js +108 -0
  232. package/dist/native-select-52jYpA3c.d.cts +136 -0
  233. package/dist/native-select-BdJojSQt.d.ts +136 -0
  234. package/dist/native-select-BwptULNE.js +129 -0
  235. package/dist/native-select-DjBGWFoh.cjs +146 -0
  236. package/dist/native-select.cjs +5 -0
  237. package/dist/native-select.d.cts +2 -0
  238. package/dist/native-select.d.ts +2 -0
  239. package/dist/native-select.js +1 -0
  240. package/dist/navigation-menu.cjs +108 -0
  241. package/dist/navigation-menu.d.cts +245 -0
  242. package/dist/navigation-menu.d.ts +245 -0
  243. package/dist/navigation-menu.js +107 -0
  244. package/dist/number-input.cjs +189 -0
  245. package/dist/number-input.d.cts +232 -0
  246. package/dist/number-input.d.ts +232 -0
  247. package/dist/number-input.js +187 -0
  248. package/dist/option-row-DFCj-NoL.js +64 -0
  249. package/dist/option-row-Dlc6brXH.d.cts +30 -0
  250. package/dist/option-row-hLg6Ye86.cjs +105 -0
  251. package/dist/option-row-yJqjEx0G.d.ts +30 -0
  252. package/dist/options-BDn36q6n.cjs +111 -0
  253. package/dist/options-BlkyK-uO.js +106 -0
  254. package/dist/options-CGl5jBEY.d.ts +19 -0
  255. package/dist/options-DUGLoksA.d.cts +19 -0
  256. package/dist/otp-input.cjs +85 -0
  257. package/dist/otp-input.d.cts +113 -0
  258. package/dist/otp-input.d.ts +113 -0
  259. package/dist/otp-input.js +84 -0
  260. package/dist/overlay-controller-78GSJGbM.js +76 -0
  261. package/dist/overlay-controller-BDeITPoR.d.cts +16 -0
  262. package/dist/overlay-controller-DmaZ8FLl.cjs +93 -0
  263. package/dist/overlay-controller-HrMdTomI.d.ts +16 -0
  264. package/dist/pagination.cjs +87 -0
  265. package/dist/pagination.d.cts +112 -0
  266. package/dist/pagination.d.ts +112 -0
  267. package/dist/pagination.js +86 -0
  268. package/dist/parts-9zrUGbuI.js +84 -0
  269. package/dist/parts-DcYZV8ug.cjs +95 -0
  270. package/dist/password-input.cjs +144 -0
  271. package/dist/password-input.d.cts +151 -0
  272. package/dist/password-input.d.ts +151 -0
  273. package/dist/password-input.js +143 -0
  274. package/dist/placement-C_WRqvZk.js +49 -0
  275. package/dist/placement-ChEh6uxa.cjs +60 -0
  276. package/dist/popover.cjs +159 -0
  277. package/dist/popover.d.cts +185 -0
  278. package/dist/popover.d.ts +185 -0
  279. package/dist/popover.js +157 -0
  280. package/dist/preferences.cjs +96 -0
  281. package/dist/preferences.d.cts +36 -0
  282. package/dist/preferences.d.ts +36 -0
  283. package/dist/preferences.js +94 -0
  284. package/dist/presence.cjs +85 -0
  285. package/dist/presence.d.cts +25 -0
  286. package/dist/presence.d.ts +25 -0
  287. package/dist/presence.js +83 -0
  288. package/dist/progress.cjs +111 -0
  289. package/dist/progress.d.cts +109 -0
  290. package/dist/progress.d.ts +109 -0
  291. package/dist/progress.js +106 -0
  292. package/dist/query.cjs +152 -0
  293. package/dist/query.d.cts +68 -0
  294. package/dist/query.d.ts +68 -0
  295. package/dist/query.js +142 -0
  296. package/dist/radio.cjs +102 -0
  297. package/dist/radio.d.cts +136 -0
  298. package/dist/radio.d.ts +136 -0
  299. package/dist/radio.js +101 -0
  300. package/dist/rating.cjs +88 -0
  301. package/dist/rating.d.cts +100 -0
  302. package/dist/rating.d.ts +100 -0
  303. package/dist/rating.js +87 -0
  304. package/dist/resizable.cjs +57 -0
  305. package/dist/resizable.d.cts +119 -0
  306. package/dist/resizable.d.ts +119 -0
  307. package/dist/resizable.js +56 -0
  308. package/dist/scroll-area.cjs +59 -0
  309. package/dist/scroll-area.d.cts +72 -0
  310. package/dist/scroll-area.d.ts +72 -0
  311. package/dist/scroll-area.js +58 -0
  312. package/dist/segmented-control.cjs +88 -0
  313. package/dist/segmented-control.d.cts +121 -0
  314. package/dist/segmented-control.d.ts +121 -0
  315. package/dist/segmented-control.js +86 -0
  316. package/dist/select.cjs +160 -0
  317. package/dist/select.d.cts +385 -0
  318. package/dist/select.d.ts +385 -0
  319. package/dist/select.js +159 -0
  320. package/dist/separator.cjs +32 -0
  321. package/dist/separator.d.cts +31 -0
  322. package/dist/separator.d.ts +31 -0
  323. package/dist/separator.js +31 -0
  324. package/dist/sheet.cjs +294 -0
  325. package/dist/sheet.d.cts +456 -0
  326. package/dist/sheet.d.ts +456 -0
  327. package/dist/sheet.js +292 -0
  328. package/dist/sidebar-C-OdvGzD.d.cts +96 -0
  329. package/dist/sidebar-CZ1-p0-V.d.ts +96 -0
  330. package/dist/sidebar-DC-mpzMR.js +87 -0
  331. package/dist/sidebar-gSAgHdkn.cjs +110 -0
  332. package/dist/sidebar.cjs +6 -0
  333. package/dist/sidebar.d.cts +2 -0
  334. package/dist/sidebar.d.ts +2 -0
  335. package/dist/sidebar.js +1 -0
  336. package/dist/skeleton.cjs +46 -0
  337. package/dist/skeleton.d.cts +47 -0
  338. package/dist/skeleton.d.ts +47 -0
  339. package/dist/skeleton.js +45 -0
  340. package/dist/slider.cjs +118 -0
  341. package/dist/slider.d.cts +181 -0
  342. package/dist/slider.d.ts +181 -0
  343. package/dist/slider.js +117 -0
  344. package/dist/sortable-board-strict.cjs +149 -0
  345. package/dist/sortable-board-strict.d.cts +181 -0
  346. package/dist/sortable-board-strict.d.ts +181 -0
  347. package/dist/sortable-board-strict.js +148 -0
  348. package/dist/sortable-engine.cjs +136 -0
  349. package/dist/sortable-engine.d.cts +237 -0
  350. package/dist/sortable-engine.d.ts +237 -0
  351. package/dist/sortable-engine.js +135 -0
  352. package/dist/sortable.cjs +67 -0
  353. package/dist/sortable.d.cts +217 -0
  354. package/dist/sortable.d.ts +217 -0
  355. package/dist/sortable.js +66 -0
  356. package/dist/spinner.cjs +32 -0
  357. package/dist/spinner.d.cts +31 -0
  358. package/dist/spinner.d.ts +31 -0
  359. package/dist/spinner.js +31 -0
  360. package/dist/steps-C9Jmrt8G.cjs +122 -0
  361. package/dist/steps-Cs8AfxV7.js +81 -0
  362. package/dist/steps-DW5NkzVj.d.ts +71 -0
  363. package/dist/steps-ymRMdju5.d.cts +71 -0
  364. package/dist/steps.cjs +8 -0
  365. package/dist/steps.d.cts +2 -0
  366. package/dist/steps.d.ts +2 -0
  367. package/dist/steps.js +1 -0
  368. package/dist/switch.cjs +100 -0
  369. package/dist/switch.d.cts +144 -0
  370. package/dist/switch.d.ts +144 -0
  371. package/dist/switch.js +99 -0
  372. package/dist/table.cjs +124 -0
  373. package/dist/table.d.cts +124 -0
  374. package/dist/table.d.ts +124 -0
  375. package/dist/table.js +123 -0
  376. package/dist/tabs.cjs +89 -0
  377. package/dist/tabs.d.cts +160 -0
  378. package/dist/tabs.d.ts +160 -0
  379. package/dist/tabs.js +88 -0
  380. package/dist/textarea.cjs +140 -0
  381. package/dist/textarea.d.cts +231 -0
  382. package/dist/textarea.d.ts +231 -0
  383. package/dist/textarea.js +139 -0
  384. package/dist/time-input.cjs +117 -0
  385. package/dist/time-input.d.cts +140 -0
  386. package/dist/time-input.d.ts +140 -0
  387. package/dist/time-input.js +116 -0
  388. package/dist/timeline.cjs +82 -0
  389. package/dist/timeline.d.cts +62 -0
  390. package/dist/timeline.d.ts +62 -0
  391. package/dist/timeline.js +81 -0
  392. package/dist/toast-CfkRzdNd.js +354 -0
  393. package/dist/toast-DyezF7lm.cjs +401 -0
  394. package/dist/toast.cjs +16 -0
  395. package/dist/toast.d.cts +275 -0
  396. package/dist/toast.d.ts +275 -0
  397. package/dist/toast.js +1 -0
  398. package/dist/toggle-group.cjs +65 -0
  399. package/dist/toggle-group.d.cts +128 -0
  400. package/dist/toggle-group.d.ts +128 -0
  401. package/dist/toggle-group.js +64 -0
  402. package/dist/toggle.cjs +64 -0
  403. package/dist/toggle.d.cts +97 -0
  404. package/dist/toggle.d.ts +97 -0
  405. package/dist/toggle.js +63 -0
  406. package/dist/token-input-BIC9VLMG.d.cts +170 -0
  407. package/dist/token-input-BTReOHIv.cjs +336 -0
  408. package/dist/token-input-CQnZ6-pO.d.ts +170 -0
  409. package/dist/token-input-DtcCZrcC.js +295 -0
  410. package/dist/token-input.cjs +9 -0
  411. package/dist/token-input.d.cts +2 -0
  412. package/dist/token-input.d.ts +2 -0
  413. package/dist/token-input.js +1 -0
  414. package/dist/toolbar.cjs +62 -0
  415. package/dist/toolbar.d.cts +58 -0
  416. package/dist/toolbar.d.ts +58 -0
  417. package/dist/toolbar.js +61 -0
  418. package/dist/tooltip.cjs +149 -0
  419. package/dist/tooltip.d.cts +208 -0
  420. package/dist/tooltip.d.ts +208 -0
  421. package/dist/tooltip.js +147 -0
  422. package/dist/tree-grid.cjs +127 -0
  423. package/dist/tree-grid.d.cts +130 -0
  424. package/dist/tree-grid.d.ts +130 -0
  425. package/dist/tree-grid.js +126 -0
  426. package/dist/tree.cjs +227 -0
  427. package/dist/tree.d.cts +223 -0
  428. package/dist/tree.d.ts +223 -0
  429. package/dist/tree.js +226 -0
  430. package/dist/trigger-menu-8FAwypbs.d.cts +347 -0
  431. package/dist/trigger-menu-B898rWkz.cjs +502 -0
  432. package/dist/trigger-menu-C2YHe7es.d.ts +347 -0
  433. package/dist/trigger-menu-CxzocSWO.js +431 -0
  434. package/dist/trigger-menu.cjs +22 -0
  435. package/dist/trigger-menu.d.cts +2 -0
  436. package/dist/trigger-menu.d.ts +2 -0
  437. package/dist/trigger-menu.js +2 -0
  438. package/dist/virtual-list-strict.cjs +126 -0
  439. package/dist/virtual-list-strict.d.cts +69 -0
  440. package/dist/virtual-list-strict.d.ts +69 -0
  441. package/dist/virtual-list-strict.js +125 -0
  442. package/dist/virtual-list.cjs +65 -0
  443. package/dist/virtual-list.d.cts +82 -0
  444. package/dist/virtual-list.d.ts +82 -0
  445. package/dist/virtual-list.js +64 -0
  446. package/dist/virtual.cjs +27 -0
  447. package/dist/virtual.d.cts +30 -0
  448. package/dist/virtual.d.ts +30 -0
  449. package/dist/virtual.js +26 -0
  450. package/dist/vue-helpers-Bh_YF48i.cjs +102 -0
  451. package/dist/vue-helpers-Z3oOAHYB.js +55 -0
  452. package/dist/waterfall-chart.cjs +114 -0
  453. package/dist/waterfall-chart.d.cts +117 -0
  454. package/dist/waterfall-chart.d.ts +117 -0
  455. package/dist/waterfall-chart.js +113 -0
  456. package/dist/waterfall.cjs +296 -0
  457. package/dist/waterfall.d.cts +219 -0
  458. package/dist/waterfall.d.ts +219 -0
  459. package/dist/waterfall.js +284 -0
  460. package/package.json +518 -3
  461. package/README.md +0 -3
@@ -0,0 +1,836 @@
1
+ const require_headless = require("./headless-D88yFw8W.cjs");
2
+ const require_describe = require("./describe-D_dLtwde.cjs");
3
+ const require_options = require("./options-BDn36q6n.cjs");
4
+ const require_parts = require("./parts-DcYZV8ug.cjs");
5
+ const require_vue_helpers = require("./vue-helpers-Bh_YF48i.cjs");
6
+ let _bevelo_core = require("@bevelo/core");
7
+ let vue = require("vue");
8
+ let _bevelo_core_primitives_command = require("@bevelo/core/primitives/command");
9
+ // src/command-parts.ts
10
+ /**
11
+ * The composition root: it creates the instance and renders the root part's
12
+ * element with the host's attrs and slot children inside it.
13
+ */
14
+ const CommandRootPart = require_parts.createVuePartsRoot(_bevelo_core_primitives_command.commandPrimitive);
15
+ /** The `panel` part. */
16
+ const CommandPanelPart = require_parts.createVuePart(_bevelo_core_primitives_command.commandPrimitive, "panel");
17
+ /** The `input` part. */
18
+ const CommandInputPart = require_parts.createVuePart(_bevelo_core_primitives_command.commandPrimitive, "input");
19
+ /** The `status` part. */
20
+ const CommandStatusPart = require_parts.createVuePart(_bevelo_core_primitives_command.commandPrimitive, "status");
21
+ /** The `list` part. */
22
+ const CommandListPart = require_parts.createVuePart(_bevelo_core_primitives_command.commandPrimitive, "list");
23
+ /** The `group-label` part. */
24
+ const CommandGroupLabelPart = require_parts.createVuePart(_bevelo_core_primitives_command.commandPrimitive, "group-label");
25
+ /** The `option` part. */
26
+ const CommandOptionPart = require_parts.createVuePart(_bevelo_core_primitives_command.commandPrimitive, "option");
27
+ /** The `item-icon` part. */
28
+ const CommandItemIconPart = require_parts.createVuePart(_bevelo_core_primitives_command.commandPrimitive, "item-icon");
29
+ /** The `option-label` part. */
30
+ const CommandOptionLabelPart = require_parts.createVuePart(_bevelo_core_primitives_command.commandPrimitive, "option-label");
31
+ /** The `option-shortcut` part. */
32
+ const CommandOptionShortcutPart = require_parts.createVuePart(_bevelo_core_primitives_command.commandPrimitive, "option-shortcut");
33
+ /** The `empty` part. */
34
+ const CommandEmptyPart = require_parts.createVuePart(_bevelo_core_primitives_command.commandPrimitive, "empty");
35
+ // src/command-inline.ts
36
+ const INLINE = Symbol("command-inline");
37
+ const GROUP = Symbol("command-group");
38
+ const ITEM = Symbol("command-item");
39
+ const NO_ITEMS = [];
40
+ /** The palette methods an inline list has no use for: it is always open and owns no ids. */
41
+ const inlinePaletteStubs = {
42
+ isOpen: () => true,
43
+ open: () => {},
44
+ close: () => {},
45
+ toggle: () => {},
46
+ matches: () => [],
47
+ options: () => [],
48
+ active: () => void 0,
49
+ runItem: () => {},
50
+ move: () => {},
51
+ inputId: () => "",
52
+ listboxId: () => "",
53
+ optionId: () => "",
54
+ groupLabelId: () => "",
55
+ instanceId: () => ""
56
+ };
57
+ /** The inline list's setup: state, the provided scope, and the root's render. */
58
+ function setupInlineCommand(props, { attrs, slots, emit, expose }) {
59
+ const ownQuery = (0, vue.ref)("");
60
+ const query = (0, vue.computed)(() => props.query ?? ownQuery.value);
61
+ const requested = (0, vue.ref)(void 0);
62
+ const ownPages = (0, vue.ref)(props.page === void 0 ? [] : [props.page]);
63
+ const pages = (0, vue.computed)(() => props.pages ?? (props.page === void 0 ? ownPages.value : [props.page]));
64
+ const page = (0, vue.computed)(() => pages.value[pages.value.length - 1]);
65
+ const filter = (0, vue.computed)(() => (0, _bevelo_core.resolveCommandFilter)(props.filter));
66
+ const registry = (0, vue.shallowRef)(/* @__PURE__ */ new Map());
67
+ const entries = (0, vue.computed)(() => [...registry.value.values()].map((read) => read()));
68
+ const runnable = (0, vue.computed)(() => (0, _bevelo_core.commandRunnable)(entries.value, query.value, filter.value));
69
+ const highlighted = (0, vue.computed)(() => (0, _bevelo_core.commandHighlighted)(runnable.value, requested.value));
70
+ const status = (0, vue.computed)(() => props.status ?? "idle");
71
+ const root = (0, vue.ref)(null);
72
+ const state = (0, vue.computed)(() => ({
73
+ empty: !entries.value.some((entry) => (0, _bevelo_core.commandEntryMatches)(entry, query.value, filter.value)),
74
+ loading: status.value === "loading",
75
+ count: runnable.value.length,
76
+ query: query.value,
77
+ status: status.value
78
+ }));
79
+ const setQuery = (next) => {
80
+ if (props.query === void 0) ownQuery.value = next;
81
+ emit("input", next);
82
+ emit("update:query", next);
83
+ };
84
+ const highlight = (value) => {
85
+ requested.value = value;
86
+ emit("highlight", value, { index: value === void 0 ? -1 : runnable.value.findIndex((entry) => entry.value === value) });
87
+ };
88
+ const setPages = (next) => {
89
+ if (props.pages === void 0) ownPages.value = next;
90
+ emit("pagesChange", [...next]);
91
+ emit("update:pages", [...next]);
92
+ emit("pageChange", next[next.length - 1]);
93
+ emit("update:page", next[next.length - 1]);
94
+ };
95
+ const push = (next) => setPages([...pages.value, next]);
96
+ const pop = () => setPages(pages.value.slice(0, -1));
97
+ const run = (value) => {
98
+ const target = value ?? highlighted.value;
99
+ if (target === void 0) return false;
100
+ const entry = entries.value.find((candidate) => candidate.value === target);
101
+ if (entry === void 0) emit("run", target);
102
+ else entry.run();
103
+ return true;
104
+ };
105
+ (0, vue.provide)(INLINE, {
106
+ query,
107
+ highlighted,
108
+ filter,
109
+ state,
110
+ items: (0, vue.computed)(() => props.items ?? NO_ITEMS),
111
+ page,
112
+ setQuery,
113
+ highlight,
114
+ push,
115
+ register(key, entry) {
116
+ const next = new Map(registry.value);
117
+ next.set(key, entry);
118
+ registry.value = next;
119
+ },
120
+ unregister(key) {
121
+ const next = new Map(registry.value);
122
+ next.delete(key);
123
+ registry.value = next;
124
+ },
125
+ groupMatches(group) {
126
+ return entries.value.some((entry) => entry.groups.includes(group) && (0, _bevelo_core.commandEntryMatches)(entry, query.value, filter.value));
127
+ },
128
+ report(value) {
129
+ emit("run", value);
130
+ }
131
+ });
132
+ const api = {
133
+ ...inlinePaletteStubs,
134
+ query: () => query.value,
135
+ setQuery,
136
+ typeQuery: setQuery,
137
+ activeId: () => highlighted.value,
138
+ run,
139
+ runActive: () => {
140
+ run();
141
+ },
142
+ count: () => runnable.value.length,
143
+ push,
144
+ pop,
145
+ setValue: (value) => highlight(value ?? void 0),
146
+ focus: () => root.value?.querySelector("input")?.focus()
147
+ };
148
+ if (props.controller !== void 0) props.controller.api = api;
149
+ (0, vue.onBeforeUnmount)(() => {
150
+ if (props.controller !== void 0) delete props.controller.api;
151
+ });
152
+ expose({ api });
153
+ const onKeydown = (event) => {
154
+ const action = (0, _bevelo_core.commandKeyAction)(runnable.value, highlighted.value, event.key);
155
+ if (action === void 0) return;
156
+ event.preventDefault();
157
+ if (action.kind === "highlight") highlight(action.entry.value);
158
+ else action.entry.run();
159
+ };
160
+ return () => (0, vue.h)("div", {
161
+ ...attrs,
162
+ ref: root,
163
+ role: "region",
164
+ "aria-label": props.label ?? "Command",
165
+ "data-slot": "command",
166
+ onKeydown
167
+ }, slots.default?.());
168
+ }
169
+ /** A row's text as a reader hears it: aria-hidden icons and shortcuts are skipped. */
170
+ function visibleText(node) {
171
+ if (node.nodeType === 3) return node.textContent ?? "";
172
+ if (node instanceof Element && node.getAttribute("aria-hidden") === "true") return "";
173
+ let text = "";
174
+ for (const child of node.childNodes) text += visibleText(child);
175
+ return text;
176
+ }
177
+ function useInline() {
178
+ return (0, vue.inject)(INLINE, void 0);
179
+ }
180
+ /** The search field. Outside an inline list it is the palette's `input` part. */
181
+ const CommandInput = (0, vue.defineComponent)({
182
+ name: "CommandInput",
183
+ inheritAttrs: false,
184
+ setup(_props, { attrs, slots }) {
185
+ const scope = useInline();
186
+ return () => {
187
+ if (scope === void 0) return (0, vue.h)(CommandInputPart, attrs, slots);
188
+ const hostInput = [attrs["onInput"]].flat().filter((handler) => typeof handler === "function");
189
+ return (0, vue.h)("input", {
190
+ type: "text",
191
+ role: "combobox",
192
+ "aria-expanded": "true",
193
+ "data-part": "input",
194
+ ...attrs,
195
+ value: scope.query.value,
196
+ onInput: [(event) => {
197
+ scope.setQuery(event.target.value);
198
+ }, ...hostInput]
199
+ });
200
+ };
201
+ }
202
+ });
203
+ /** The listbox. Its slot receives `{ items, highlightedValue }`. */
204
+ const CommandList = (0, vue.defineComponent)({
205
+ name: "CommandList",
206
+ inheritAttrs: false,
207
+ setup(_props, { attrs, slots }) {
208
+ const scope = useInline();
209
+ return () => {
210
+ if (scope === void 0) return (0, vue.h)(CommandListPart, attrs, () => slots.default?.({
211
+ items: NO_ITEMS,
212
+ highlightedValue: void 0
213
+ }));
214
+ return (0, vue.h)("div", {
215
+ role: "listbox",
216
+ "data-part": "list",
217
+ ...attrs
218
+ }, slots.default?.({
219
+ items: scope.items.value,
220
+ highlightedValue: scope.highlighted.value
221
+ }));
222
+ };
223
+ }
224
+ });
225
+ /**
226
+ * Shown while no row matches. Its slot receives the list's state, and a slot
227
+ * that renders nothing (a `v-if` on the loading state) renders no element.
228
+ */
229
+ const CommandEmpty = (0, vue.defineComponent)({
230
+ name: "CommandEmpty",
231
+ inheritAttrs: false,
232
+ setup(_props, { attrs, slots }) {
233
+ const scope = useInline();
234
+ return () => {
235
+ if (scope === void 0) return (0, vue.h)(CommandEmptyPart, attrs, slots);
236
+ const state = scope.state.value;
237
+ if (!state.empty) return null;
238
+ const content = slots.default?.(state);
239
+ if (require_vue_helpers.isBlank(content)) return null;
240
+ return (0, vue.h)("div", {
241
+ "data-part": "empty",
242
+ ...attrs
243
+ }, content);
244
+ };
245
+ }
246
+ });
247
+ /** A polite live region; its slot receives the list's state. */
248
+ const CommandStatus = (0, vue.defineComponent)({
249
+ name: "CommandStatus",
250
+ inheritAttrs: false,
251
+ setup(_props, { attrs, slots }) {
252
+ const scope = useInline();
253
+ return () => scope === void 0 ? (0, vue.h)(CommandStatusPart, attrs, slots) : (0, vue.h)("div", {
254
+ role: "status",
255
+ "aria-live": "polite",
256
+ "data-part": "status",
257
+ ...attrs
258
+ }, slots.default?.(scope.state.value));
259
+ }
260
+ });
261
+ /**
262
+ * A titled set of rows, hidden while a query leaves none of them matching. It
263
+ * hides rather than unmounts: its rows stay registered, so the group comes
264
+ * back when a later query matches one of them.
265
+ */
266
+ const CommandGroup = (0, vue.defineComponent)({
267
+ name: "CommandGroup",
268
+ inheritAttrs: false,
269
+ props: {
270
+ label: {
271
+ type: String,
272
+ required: false
273
+ },
274
+ heading: {
275
+ type: String,
276
+ required: false
277
+ }
278
+ },
279
+ setup(props, { attrs, slots }) {
280
+ const scope = useInline();
281
+ const id = Symbol("group");
282
+ (0, vue.provide)(GROUP, [...(0, vue.inject)(GROUP, []), id]);
283
+ return () => {
284
+ const hidden = scope !== void 0 && scope.query.value !== "" && !scope.groupMatches(id);
285
+ const title = props.label ?? props.heading;
286
+ return (0, vue.h)("div", {
287
+ role: "group",
288
+ "data-part": "group",
289
+ ...attrs,
290
+ hidden
291
+ }, [title === void 0 ? null : (0, vue.h)("div", { "data-part": "group-label" }, title), slots.default?.()]);
292
+ };
293
+ }
294
+ });
295
+ /** A group's heading. Outside an inline list it is the palette's `group-label` part. */
296
+ const CommandGroupLabel = (0, vue.defineComponent)({
297
+ name: "CommandGroupLabel",
298
+ inheritAttrs: false,
299
+ setup(_props, { attrs, slots }) {
300
+ const scope = useInline();
301
+ return () => scope === void 0 ? (0, vue.h)(CommandGroupLabelPart, attrs, slots) : (0, vue.h)("div", {
302
+ "data-part": "group-label",
303
+ ...attrs
304
+ }, slots.default?.());
305
+ }
306
+ });
307
+ /** A row's icon, hidden from assistive technology. `mirror` flips it in right-to-left text. */
308
+ const CommandItemIcon = (0, vue.defineComponent)({
309
+ name: "CommandItemIcon",
310
+ inheritAttrs: false,
311
+ props: { mirror: {
312
+ type: Boolean,
313
+ default: false
314
+ } },
315
+ setup(props, { attrs, slots }) {
316
+ const scope = useInline();
317
+ return () => {
318
+ const own = props.mirror ? {
319
+ "data-mirror": "",
320
+ ...attrs
321
+ } : attrs;
322
+ return scope === void 0 ? (0, vue.h)(CommandItemIconPart, own, slots) : (0, vue.h)("span", {
323
+ "data-part": "item-icon",
324
+ "aria-hidden": "true",
325
+ ...own
326
+ }, slots.default?.());
327
+ };
328
+ }
329
+ });
330
+ /** A divider between rows or groups. */
331
+ const CommandSeparator = (0, vue.defineComponent)({
332
+ name: "CommandSeparator",
333
+ setup() {
334
+ return () => (0, vue.h)("div", {
335
+ role: "separator",
336
+ "data-slot": "command-separator"
337
+ });
338
+ }
339
+ });
340
+ /**
341
+ * One row. Its value is `value`, else its label; its label is `label`, else its
342
+ * text. Choosing it pushes `page` when given, calls `onSelect` (a returned
343
+ * promise marks the row pending until it settles) and reports `run`.
344
+ */
345
+ const CommandItem = (0, vue.defineComponent)({
346
+ name: "CommandItem",
347
+ inheritAttrs: false,
348
+ props: {
349
+ value: {
350
+ type: String,
351
+ required: false
352
+ },
353
+ label: {
354
+ type: String,
355
+ required: false
356
+ },
357
+ keywords: {
358
+ type: Array,
359
+ required: false
360
+ },
361
+ shortcut: {
362
+ type: String,
363
+ default: ""
364
+ },
365
+ page: {
366
+ type: String,
367
+ required: false
368
+ },
369
+ disabled: {
370
+ type: Boolean,
371
+ default: false
372
+ },
373
+ onSelect: {
374
+ type: Function,
375
+ required: false
376
+ }
377
+ },
378
+ setup(props, { attrs, slots }) {
379
+ const scope = useInline();
380
+ const groups = (0, vue.inject)(GROUP, []);
381
+ const pending = (0, vue.ref)(false);
382
+ const error = (0, vue.shallowRef)(void 0);
383
+ const slotText = (0, vue.ref)("");
384
+ const label = () => props.label ?? (slotText.value === "" ? props.value ?? "" : slotText.value);
385
+ const value = () => props.value ?? label();
386
+ const key = Symbol("item");
387
+ const choose = () => {
388
+ if (props.disabled) return;
389
+ if (props.page !== void 0) scope?.push(props.page);
390
+ if (props.onSelect !== void 0) try {
391
+ const result = props.onSelect(value());
392
+ if (result instanceof Promise) {
393
+ pending.value = true;
394
+ error.value = void 0;
395
+ result.then(() => {
396
+ pending.value = false;
397
+ }, (reason) => {
398
+ pending.value = false;
399
+ error.value = reason;
400
+ });
401
+ }
402
+ } catch (reason) {
403
+ error.value = reason;
404
+ }
405
+ scope?.report(value());
406
+ };
407
+ if (scope !== void 0) {
408
+ scope.register(key, () => ({
409
+ value: value(),
410
+ label: label(),
411
+ keywords: props.keywords,
412
+ disabled: props.disabled,
413
+ groups,
414
+ run: choose
415
+ }));
416
+ (0, vue.onBeforeUnmount)(() => scope.unregister(key));
417
+ }
418
+ (0, vue.provide)(ITEM, {
419
+ label,
420
+ shortcut: () => props.shortcut
421
+ });
422
+ const element = (0, vue.ref)(null);
423
+ (0, vue.onMounted)(() => {
424
+ if (props.label === void 0 && element.value !== null) slotText.value = visibleText(element.value);
425
+ });
426
+ return () => {
427
+ const own = value();
428
+ if (scope !== void 0 && scope.query.value !== "") {
429
+ if (!(0, _bevelo_core.commandEntryMatches)({
430
+ value: own,
431
+ label: label(),
432
+ keywords: props.keywords
433
+ }, scope.query.value, scope.filter.value)) return null;
434
+ }
435
+ const active = scope?.highlighted.value === own;
436
+ const state = {
437
+ highlighted: active,
438
+ selected: active,
439
+ disabled: props.disabled,
440
+ pending: pending.value,
441
+ error: error.value
442
+ };
443
+ return (0, vue.h)("div", {
444
+ ref: element,
445
+ role: "option",
446
+ tabindex: -1,
447
+ "data-part": "option",
448
+ "data-value": own,
449
+ "aria-selected": active ? "true" : "false",
450
+ "data-active": active ? "" : void 0,
451
+ "data-highlighted": active ? "" : void 0,
452
+ "data-pending": pending.value ? "" : void 0,
453
+ "aria-disabled": props.disabled ? "true" : void 0,
454
+ "data-disabled": props.disabled ? "" : void 0,
455
+ ...attrs,
456
+ onPointermove: () => {
457
+ if (scope !== void 0 && !props.disabled && !active) scope.highlight(own);
458
+ },
459
+ onClick: choose
460
+ }, slots.default?.(state));
461
+ };
462
+ }
463
+ });
464
+ /** A row's label. Its slot receives `{ segments }`: the label split around what the query matched. */
465
+ const CommandItemText = (0, vue.defineComponent)({
466
+ name: "CommandItemText",
467
+ inheritAttrs: false,
468
+ setup(_props, { attrs, slots }) {
469
+ const scope = useInline();
470
+ const item = (0, vue.inject)(ITEM, void 0);
471
+ return () => {
472
+ const label = item?.label() ?? "";
473
+ const content = slots.default === void 0 ? label : slots.default({ segments: (0, _bevelo_core.commandTextSegments)(label, scope?.query.value ?? "") });
474
+ return (0, vue.h)("span", {
475
+ "data-part": "option-label",
476
+ ...attrs
477
+ }, content);
478
+ };
479
+ }
480
+ });
481
+ /** The row's `shortcut`, or the slot's own content; its slot receives `{ text }`. */
482
+ const CommandShortcut = (0, vue.defineComponent)({
483
+ name: "CommandShortcut",
484
+ inheritAttrs: false,
485
+ setup(_props, { attrs, slots }) {
486
+ const item = (0, vue.inject)(ITEM, void 0);
487
+ return () => {
488
+ const text = item?.shortcut() ?? "";
489
+ return (0, vue.h)("span", {
490
+ "data-part": "option-shortcut",
491
+ "aria-hidden": "true",
492
+ ...attrs
493
+ }, slots.default?.({ text }) ?? text);
494
+ };
495
+ }
496
+ });
497
+ /**
498
+ * Rows for one page of the stack: `value` names the page, and a page without a
499
+ * value is the root, shown while the stack is empty.
500
+ */
501
+ const CommandPage = (0, vue.defineComponent)({
502
+ name: "CommandPage",
503
+ props: {
504
+ value: {
505
+ type: String,
506
+ required: false
507
+ },
508
+ id: {
509
+ type: String,
510
+ required: false
511
+ }
512
+ },
513
+ setup(props, { slots }) {
514
+ const scope = useInline();
515
+ return () => {
516
+ if (scope !== void 0 && scope.page.value !== (props.id ?? props.value)) return null;
517
+ return slots.default?.();
518
+ };
519
+ }
520
+ });
521
+ // src/command.ts
522
+ const schema = require_options.vueOptions(_bevelo_core.commandPrimitive, {
523
+ modelValue: ["open", "onOpenChange"],
524
+ open: ["open", "onOpenChange"],
525
+ query: ["query", "onInput"]
526
+ });
527
+ const NO_GROUPS = [];
528
+ const noop = () => {};
529
+ const Command = (0, vue.defineComponent)({
530
+ name: "Command",
531
+ inheritAttrs: false,
532
+ props: {
533
+ ...schema.props,
534
+ open: {
535
+ type: Boolean,
536
+ required: false,
537
+ default: void 0
538
+ },
539
+ defaultOpen: {
540
+ type: Boolean,
541
+ required: false,
542
+ default: void 0
543
+ },
544
+ query: {
545
+ type: String,
546
+ required: false
547
+ },
548
+ placeholder: {
549
+ type: String,
550
+ default: "Type a command…"
551
+ },
552
+ label: {
553
+ type: String,
554
+ required: false
555
+ },
556
+ groups: {
557
+ type: Array,
558
+ required: false
559
+ },
560
+ filter: {
561
+ type: [
562
+ Function,
563
+ Boolean,
564
+ String
565
+ ],
566
+ required: false,
567
+ default: void 0
568
+ },
569
+ shortcuts: {
570
+ type: Object,
571
+ required: false
572
+ },
573
+ openShortcut: {
574
+ type: String,
575
+ default: ""
576
+ },
577
+ id: {
578
+ type: String,
579
+ default: ""
580
+ },
581
+ idSeed: {
582
+ type: String,
583
+ required: false
584
+ },
585
+ /** Structured command data the inline list's slot receives as `items`. */
586
+ items: {
587
+ type: Array,
588
+ required: false
589
+ },
590
+ /** The inline list's loading status (`"loading"`, `"idle"`, ...). */
591
+ status: {
592
+ type: String,
593
+ required: false
594
+ },
595
+ /** The inline list's page stack; `v-model:pages` keeps it in step. */
596
+ pages: {
597
+ type: Array,
598
+ required: false
599
+ },
600
+ /** A one-page stack; `v-model:page` keeps it in step. */
601
+ page: {
602
+ type: String,
603
+ required: false
604
+ },
605
+ /** Receives `api` while mounted. */
606
+ controller: {
607
+ type: Object,
608
+ required: false
609
+ }
610
+ },
611
+ emits: {
612
+ ...schema.emits,
613
+ highlight: (_value, _details) => true,
614
+ pagesChange: (_pages) => true,
615
+ "update:pages": (_pages) => true,
616
+ pageChange: (_page) => true,
617
+ "update:page": (_page) => true
618
+ },
619
+ setup(props, { attrs, slots, emit, expose }) {
620
+ if (props.groups === void 0 && props.open === void 0 && props.modelValue === void 0 && props.defaultOpen === void 0 && props.openShortcut === "" && (slots.default !== void 0 || props.items !== void 0 || props.pages !== void 0)) return setupInlineCommand(props, {
621
+ attrs,
622
+ slots,
623
+ expose,
624
+ emit
625
+ });
626
+ const handle = require_headless.usePrimitive(_bevelo_core.commandPrimitive, schema.bind(props, () => ({
627
+ groups: props.groups ?? NO_GROUPS,
628
+ label: props.label ?? "Command palette",
629
+ filter: typeof props.filter === "function" ? props.filter : void 0
630
+ })));
631
+ const primitiveApi = handle.api;
632
+ const api = handle.api;
633
+ const controllerApi = {
634
+ ...primitiveApi,
635
+ run: (id) => id === void 0 ? primitiveApi.activeId() !== void 0 && (primitiveApi.runActive(), true) : primitiveApi.run(id),
636
+ push: noop,
637
+ pop: noop,
638
+ setValue: noop,
639
+ focus: noop
640
+ };
641
+ if (props.controller !== void 0) props.controller.api = controllerApi;
642
+ (0, vue.onBeforeUnmount)(() => {
643
+ if (props.controller !== void 0) delete props.controller.api;
644
+ });
645
+ expose({ api: controllerApi });
646
+ return () => {
647
+ handle.revision.value;
648
+ const total = api.count();
649
+ const matched = api.matches();
650
+ const countText = total === 0 ? "No commands" : total === 1 ? "1 command" : String(total) + " commands";
651
+ const input = require_headless.renderPart(handle, "input", {
652
+ key: "input",
653
+ onChange: noop
654
+ });
655
+ const status = require_headless.renderPart(handle, "status", { key: "status" }, total > 0 ? countText : null);
656
+ const empty = require_headless.renderPart(handle, "empty", { key: "empty" }, "No commands found");
657
+ const rows = [];
658
+ matched.forEach((match, groupIndex) => {
659
+ const items = [];
660
+ match.items.forEach((item, itemIndex) => {
661
+ const address = {
662
+ index: itemIndex,
663
+ scope: String(groupIndex)
664
+ };
665
+ const icon = item.icon === void 0 ? null : require_headless.renderPart(handle, "item-icon", { key: "icon" }, require_describe.descriptionNodes(item.icon), address);
666
+ const labelNode = require_headless.renderPart(handle, "option-label", { key: "label" }, item.label, address);
667
+ const shortcut = require_headless.renderPart(handle, "option-shortcut", { key: "shortcut" }, item.shortcut ?? "", address);
668
+ items.push(require_headless.renderPart(handle, "option", { key: item.id }, [(0, vue.h)(vue.Fragment, null, [
669
+ icon,
670
+ labelNode,
671
+ shortcut
672
+ ])], address));
673
+ });
674
+ const heading = require_headless.renderPart(handle, "group-label", { key: "heading" }, match.group.label, { index: groupIndex });
675
+ rows.push(require_headless.renderPart(handle, "group", { key: match.group.id }, [(0, vue.h)(vue.Fragment, null, [heading, ...items])], { index: groupIndex }));
676
+ });
677
+ const list = require_headless.renderPart(handle, "list", { key: "list" }, [(0, vue.h)(vue.Fragment, null, [...rows, total === 0 ? empty : null])]);
678
+ const slotContent = slots.default?.();
679
+ const body = (0, vue.h)("div", {
680
+ "data-slot": "panel-content",
681
+ style: { display: "contents" }
682
+ }, slotContent);
683
+ const host = { ...attrs };
684
+ return require_headless.renderPart(handle, "root", host, [(0, vue.h)(vue.Fragment, null, [
685
+ input,
686
+ status,
687
+ list,
688
+ body
689
+ ])], { portal: true });
690
+ };
691
+ }
692
+ });
693
+ Object.defineProperty(exports, "Command", {
694
+ enumerable: true,
695
+ get: function() {
696
+ return Command;
697
+ }
698
+ });
699
+ Object.defineProperty(exports, "CommandEmpty", {
700
+ enumerable: true,
701
+ get: function() {
702
+ return CommandEmpty;
703
+ }
704
+ });
705
+ Object.defineProperty(exports, "CommandEmptyPart", {
706
+ enumerable: true,
707
+ get: function() {
708
+ return CommandEmptyPart;
709
+ }
710
+ });
711
+ Object.defineProperty(exports, "CommandGroup", {
712
+ enumerable: true,
713
+ get: function() {
714
+ return CommandGroup;
715
+ }
716
+ });
717
+ Object.defineProperty(exports, "CommandGroupLabel", {
718
+ enumerable: true,
719
+ get: function() {
720
+ return CommandGroupLabel;
721
+ }
722
+ });
723
+ Object.defineProperty(exports, "CommandGroupLabelPart", {
724
+ enumerable: true,
725
+ get: function() {
726
+ return CommandGroupLabelPart;
727
+ }
728
+ });
729
+ Object.defineProperty(exports, "CommandInput", {
730
+ enumerable: true,
731
+ get: function() {
732
+ return CommandInput;
733
+ }
734
+ });
735
+ Object.defineProperty(exports, "CommandInputPart", {
736
+ enumerable: true,
737
+ get: function() {
738
+ return CommandInputPart;
739
+ }
740
+ });
741
+ Object.defineProperty(exports, "CommandItem", {
742
+ enumerable: true,
743
+ get: function() {
744
+ return CommandItem;
745
+ }
746
+ });
747
+ Object.defineProperty(exports, "CommandItemIcon", {
748
+ enumerable: true,
749
+ get: function() {
750
+ return CommandItemIcon;
751
+ }
752
+ });
753
+ Object.defineProperty(exports, "CommandItemIconPart", {
754
+ enumerable: true,
755
+ get: function() {
756
+ return CommandItemIconPart;
757
+ }
758
+ });
759
+ Object.defineProperty(exports, "CommandItemText", {
760
+ enumerable: true,
761
+ get: function() {
762
+ return CommandItemText;
763
+ }
764
+ });
765
+ Object.defineProperty(exports, "CommandList", {
766
+ enumerable: true,
767
+ get: function() {
768
+ return CommandList;
769
+ }
770
+ });
771
+ Object.defineProperty(exports, "CommandListPart", {
772
+ enumerable: true,
773
+ get: function() {
774
+ return CommandListPart;
775
+ }
776
+ });
777
+ Object.defineProperty(exports, "CommandOptionLabelPart", {
778
+ enumerable: true,
779
+ get: function() {
780
+ return CommandOptionLabelPart;
781
+ }
782
+ });
783
+ Object.defineProperty(exports, "CommandOptionPart", {
784
+ enumerable: true,
785
+ get: function() {
786
+ return CommandOptionPart;
787
+ }
788
+ });
789
+ Object.defineProperty(exports, "CommandOptionShortcutPart", {
790
+ enumerable: true,
791
+ get: function() {
792
+ return CommandOptionShortcutPart;
793
+ }
794
+ });
795
+ Object.defineProperty(exports, "CommandPage", {
796
+ enumerable: true,
797
+ get: function() {
798
+ return CommandPage;
799
+ }
800
+ });
801
+ Object.defineProperty(exports, "CommandPanelPart", {
802
+ enumerable: true,
803
+ get: function() {
804
+ return CommandPanelPart;
805
+ }
806
+ });
807
+ Object.defineProperty(exports, "CommandRootPart", {
808
+ enumerable: true,
809
+ get: function() {
810
+ return CommandRootPart;
811
+ }
812
+ });
813
+ Object.defineProperty(exports, "CommandSeparator", {
814
+ enumerable: true,
815
+ get: function() {
816
+ return CommandSeparator;
817
+ }
818
+ });
819
+ Object.defineProperty(exports, "CommandShortcut", {
820
+ enumerable: true,
821
+ get: function() {
822
+ return CommandShortcut;
823
+ }
824
+ });
825
+ Object.defineProperty(exports, "CommandStatus", {
826
+ enumerable: true,
827
+ get: function() {
828
+ return CommandStatus;
829
+ }
830
+ });
831
+ Object.defineProperty(exports, "CommandStatusPart", {
832
+ enumerable: true,
833
+ get: function() {
834
+ return CommandStatusPart;
835
+ }
836
+ });