@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,106 @@
1
+ import { n as usePrimitive, t as renderPart } from "./headless-B3zQWaJm.js";
2
+ import { t as vueOptions } from "./options-BlkyK-uO.js";
3
+ import { n as provideGauge, t as createGaugeParts } from "./gauge-parts-BVmw61GR.js";
4
+ import { gaugeValueText, progressPrimitive } from "@bevelo/core";
5
+ import { defineComponent } from "vue";
6
+ // src/progress.ts
7
+ const schema = vueOptions(progressPrimitive);
8
+ const Progress = defineComponent({
9
+ name: "Progress",
10
+ inheritAttrs: false,
11
+ props: {
12
+ ...schema.props,
13
+ value: {
14
+ type: Number,
15
+ required: false
16
+ },
17
+ min: {
18
+ type: Number,
19
+ required: false
20
+ },
21
+ max: {
22
+ type: Number,
23
+ required: false
24
+ },
25
+ label: {
26
+ type: String,
27
+ required: false
28
+ },
29
+ valueText: {
30
+ type: String,
31
+ required: false
32
+ },
33
+ /** Number formatting options or a formatter for the default value text. */
34
+ format: {
35
+ type: [Object, Function],
36
+ required: false
37
+ },
38
+ /** Locale for `format`'s number formatting. */
39
+ locale: {
40
+ type: String,
41
+ required: false
42
+ },
43
+ /** The accessible and displayed value text, from the value and its details. */
44
+ getValueLabel: {
45
+ type: Function,
46
+ required: false
47
+ },
48
+ showValue: {
49
+ type: Boolean,
50
+ required: false
51
+ },
52
+ showLabel: {
53
+ type: Boolean,
54
+ required: false
55
+ }
56
+ },
57
+ emits: schema.emits,
58
+ setup(props, { attrs, slots }) {
59
+ const valueText = () => gaugeValueText(props.value, {
60
+ min: props.min,
61
+ max: props.max,
62
+ valueText: props.valueText,
63
+ format: props.format,
64
+ locale: props.locale,
65
+ getValueLabel: props.getValueLabel
66
+ });
67
+ const handle = usePrimitive(progressPrimitive, schema.bind(props, () => ({ valueText: valueText() })));
68
+ const partState = () => {
69
+ const state = handle.state;
70
+ const value = props.value;
71
+ return {
72
+ value,
73
+ min: state.min,
74
+ max: state.max,
75
+ percent: state.percent,
76
+ text: state.shown,
77
+ status: value === void 0 ? "indeterminate" : value >= state.max ? "complete" : "progress"
78
+ };
79
+ };
80
+ provideGauge({
81
+ handle,
82
+ state: partState
83
+ });
84
+ return () => {
85
+ if (slots.default !== void 0) return renderPart(handle, "root", { ...attrs }, slots.default());
86
+ const state = handle.state;
87
+ const bar = renderPart(handle, "bar", { key: "bar" });
88
+ const track = renderPart(handle, "track", { key: "track" }, [bar].filter(Boolean));
89
+ return renderPart(handle, "root", { ...attrs }, [
90
+ renderPart(handle, "label", { key: "label" }, state.label ?? "Progress"),
91
+ track,
92
+ renderPart(handle, "value", { key: "value" }, state.shown ?? "")
93
+ ]);
94
+ };
95
+ }
96
+ });
97
+ const parts = createGaugeParts("Progress");
98
+ /** The visible name inside a `Progress` with slot content; the primitive keeps it aria-hidden. */
99
+ const ProgressLabel = parts.Label;
100
+ /** The track inside a `Progress` with slot content. */
101
+ const ProgressTrack = parts.Track;
102
+ /** The bar, sized from the value's share. */
103
+ const ProgressIndicator = parts.Indicator;
104
+ /** The readout: the value text, or the scoped slot's rendering of the part state. */
105
+ const ProgressValue = parts.Value;
106
+ export { Progress, ProgressIndicator, ProgressLabel, ProgressTrack, ProgressValue };
package/dist/query.cjs ADDED
@@ -0,0 +1,152 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ const require_engine_refs = require("./engine-refs-CPWFFTfA.cjs");
3
+ let vue = require("vue");
4
+ let _bevelo_query = require("@bevelo/query");
5
+ // src/query.ts
6
+ const VUE_QUERY_CLIENT = Symbol("bevelo.vue.queryClient");
7
+ /** Vue plugin providing a shared `QueryClient` instance across the application. */
8
+ const VueQueryPlugin = { install(app, options = {}) {
9
+ const client = options.queryClient ?? new _bevelo_query.QueryClient();
10
+ client.mount();
11
+ app.provide(VUE_QUERY_CLIENT, client);
12
+ app.onUnmount(() => {
13
+ client.unmount();
14
+ });
15
+ } };
16
+ /** Provides a `QueryClient` inside a Vue component setup scope. */
17
+ function provideQueryClient(client) {
18
+ client.mount();
19
+ (0, vue.provide)(VUE_QUERY_CLIENT, client);
20
+ (0, vue.onScopeDispose)(() => {
21
+ client.unmount();
22
+ });
23
+ }
24
+ /** Injects the nearest `QueryClient` from Vue DI context. */
25
+ function useQueryClient(explicitClient) {
26
+ const client = explicitClient ?? (0, vue.inject)(VUE_QUERY_CLIENT, void 0);
27
+ if (!client) throw new Error("No QueryClient provided; install VueQueryPlugin or call provideQueryClient(client)");
28
+ return client;
29
+ }
30
+ /** Reactive query composable exposing shallowRef state projections. */
31
+ function useQuery(options, explicitClient) {
32
+ const client = useQueryClient(explicitClient);
33
+ const watcher = (0, _bevelo_query.createQueryWatcher)(client, (0, vue.toValue)(options));
34
+ (0, vue.watch)(() => (0, vue.toValue)(options), (next) => watcher.update(next));
35
+ (0, vue.onScopeDispose)(() => watcher.dispose());
36
+ const field = (key) => require_engine_refs.storeRef(watcher, (s) => s[key]);
37
+ return {
38
+ data: field("data"),
39
+ error: field("error"),
40
+ status: field("status"),
41
+ fetchPhase: field("fetchPhase"),
42
+ isPending: field("isPending"),
43
+ isLoading: field("isLoading"),
44
+ isError: field("isError"),
45
+ isSuccess: field("isSuccess"),
46
+ isFetching: field("isFetching"),
47
+ isPaused: field("isPaused"),
48
+ isStale: field("isStale"),
49
+ isPlaceholderData: field("isPlaceholderData"),
50
+ failureCount: field("failureCount"),
51
+ refetch: watcher.refetch,
52
+ suspense: async () => {
53
+ const snap = watcher.get();
54
+ if (snap.isPending) return await watcher.refetch();
55
+ return snap;
56
+ }
57
+ };
58
+ }
59
+ /** Reactive infinite query composable for Vue 3. */
60
+ function useInfiniteQuery(options, explicitClient) {
61
+ const client = useQueryClient(explicitClient);
62
+ const watcher = (0, _bevelo_query.createInfiniteWatcher)(client, (0, vue.toValue)(options));
63
+ (0, vue.watch)(() => (0, vue.toValue)(options), (next) => watcher.update(next));
64
+ (0, vue.onScopeDispose)(() => watcher.dispose());
65
+ const field = (key) => require_engine_refs.storeRef(watcher, (s) => s[key]);
66
+ return {
67
+ data: field("data"),
68
+ error: field("error"),
69
+ status: field("status"),
70
+ fetchPhase: field("fetchPhase"),
71
+ isPending: field("isPending"),
72
+ isLoading: field("isLoading"),
73
+ isError: field("isError"),
74
+ isSuccess: field("isSuccess"),
75
+ isFetching: field("isFetching"),
76
+ isPaused: field("isPaused"),
77
+ isStale: field("isStale"),
78
+ isPlaceholderData: field("isPlaceholderData"),
79
+ failureCount: field("failureCount"),
80
+ hasNextPage: field("hasNextPage"),
81
+ hasPreviousPage: field("hasPreviousPage"),
82
+ isFetchingNextPage: field("isFetchingNextPage"),
83
+ isFetchingPreviousPage: field("isFetchingPreviousPage"),
84
+ fetchNextPage: watcher.fetchNextPage,
85
+ fetchPreviousPage: watcher.fetchPreviousPage,
86
+ refetch: watcher.refetch
87
+ };
88
+ }
89
+ /** Watches multiple parallel queries inside Vue setup scope. */
90
+ function useQueries(options, explicitClient) {
91
+ const client = useQueryClient(explicitClient);
92
+ const initial = (0, vue.toValue)(options);
93
+ const watcher = (0, _bevelo_query.createQueriesWatcher)(client, initial.queries, initial.combine);
94
+ (0, vue.watch)(() => (0, vue.toValue)(options), (next) => watcher.update(next.queries, next.combine));
95
+ (0, vue.onScopeDispose)(() => watcher.dispose());
96
+ return require_engine_refs.storeRef(watcher, (s) => s);
97
+ }
98
+ /** Executes mutations inside Vue setup scope with shallowRef status updates. */
99
+ function useMutation(options, explicitClient) {
100
+ const client = useQueryClient(explicitClient);
101
+ const watcher = (0, _bevelo_query.createMutationWatcher)(client, (0, vue.toValue)(options));
102
+ (0, vue.watch)(() => (0, vue.toValue)(options), (next) => watcher.update(next));
103
+ (0, vue.onScopeDispose)(() => watcher.dispose());
104
+ const field = (key) => require_engine_refs.storeRef(watcher, (s) => s[key]);
105
+ return {
106
+ data: field("data"),
107
+ error: field("error"),
108
+ status: field("status"),
109
+ isIdle: field("isIdle"),
110
+ isPending: field("isPending"),
111
+ isError: field("isError"),
112
+ isSuccess: field("isSuccess"),
113
+ variables: field("variables"),
114
+ mutate: watcher.mutate,
115
+ mutateAsync: watcher.mutateAsync,
116
+ reset: watcher.reset
117
+ };
118
+ }
119
+ /** Returns a shallowRef tracking active query count. */
120
+ function useIsFetching(filters, explicitClient) {
121
+ const client = useQueryClient(explicitClient);
122
+ const count = (0, vue.shallowRef)(client.isFetching((0, vue.toValue)(filters)));
123
+ const sync = () => {
124
+ count.value = client.isFetching((0, vue.toValue)(filters));
125
+ };
126
+ const unsub = client.getQueryCache().subscribe(sync);
127
+ (0, vue.watch)(() => (0, vue.toValue)(filters), sync);
128
+ (0, vue.onScopeDispose)(unsub);
129
+ return count;
130
+ }
131
+ /** Returns a shallowRef tracking active mutation count. */
132
+ function useIsMutating(filters, explicitClient) {
133
+ const client = useQueryClient(explicitClient);
134
+ const count = (0, vue.shallowRef)(client.isMutating((0, vue.toValue)(filters)));
135
+ const sync = () => {
136
+ count.value = client.isMutating((0, vue.toValue)(filters));
137
+ };
138
+ const unsub = client.getMutationCache().subscribe(sync);
139
+ (0, vue.watch)(() => (0, vue.toValue)(filters), sync);
140
+ (0, vue.onScopeDispose)(unsub);
141
+ return count;
142
+ }
143
+ exports.VUE_QUERY_CLIENT = VUE_QUERY_CLIENT;
144
+ exports.VueQueryPlugin = VueQueryPlugin;
145
+ exports.provideQueryClient = provideQueryClient;
146
+ exports.useInfiniteQuery = useInfiniteQuery;
147
+ exports.useIsFetching = useIsFetching;
148
+ exports.useIsMutating = useIsMutating;
149
+ exports.useMutation = useMutation;
150
+ exports.useQueries = useQueries;
151
+ exports.useQuery = useQuery;
152
+ exports.useQueryClient = useQueryClient;
@@ -0,0 +1,68 @@
1
+ import { App, InjectionKey, MaybeRefOrGetter, ShallowRef } from "vue";
2
+ import { FetchPhase, InfiniteQuerySpec, InfiniteSnapshot, MutateCallOptions, MutationFilter, MutationSpec, MutationStatus, PageData, QueryClient, QueryFilter, QueryKey, QueryRefetchOptions, QuerySnapshot, QuerySpec, QueryStatus } from "@bevelo/query";
3
+ export declare const VUE_QUERY_CLIENT: InjectionKey<QueryClient>;
4
+ export interface VueQueryPluginOptions {
5
+ readonly queryClient?: QueryClient | undefined;
6
+ }
7
+ /** Vue plugin providing a shared `QueryClient` instance across the application. */
8
+ export declare const VueQueryPlugin: {
9
+ install(app: App, options?: VueQueryPluginOptions): void;
10
+ };
11
+ /** Provides a `QueryClient` inside a Vue component setup scope. */
12
+ export declare function provideQueryClient(client: QueryClient): void;
13
+ /** Injects the nearest `QueryClient` from Vue DI context. */
14
+ export declare function useQueryClient(explicitClient?: QueryClient): QueryClient;
15
+ export interface VueQueryReturn<TData, TError> {
16
+ readonly data: Readonly<ShallowRef<TData | undefined>>;
17
+ readonly error: Readonly<ShallowRef<TError | null>>;
18
+ readonly status: Readonly<ShallowRef<QueryStatus>>;
19
+ readonly fetchPhase: Readonly<ShallowRef<FetchPhase>>;
20
+ readonly isPending: Readonly<ShallowRef<boolean>>;
21
+ readonly isLoading: Readonly<ShallowRef<boolean>>;
22
+ readonly isError: Readonly<ShallowRef<boolean>>;
23
+ readonly isSuccess: Readonly<ShallowRef<boolean>>;
24
+ readonly isFetching: Readonly<ShallowRef<boolean>>;
25
+ readonly isPaused: Readonly<ShallowRef<boolean>>;
26
+ readonly isStale: Readonly<ShallowRef<boolean>>;
27
+ readonly isPlaceholderData: Readonly<ShallowRef<boolean>>;
28
+ readonly failureCount: Readonly<ShallowRef<number>>;
29
+ refetch(options?: QueryRefetchOptions): Promise<QuerySnapshot<TData, TError>>;
30
+ suspense(): Promise<QuerySnapshot<TData, TError>>;
31
+ }
32
+ /** Reactive query composable exposing shallowRef state projections. */
33
+ export declare function useQuery<TQueryFnData = unknown, TError = Error, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey>(options: MaybeRefOrGetter<QuerySpec<TQueryFnData, TError, TData, TQueryKey>>, explicitClient?: QueryClient): VueQueryReturn<TData, TError>;
34
+ export interface VueInfiniteQueryReturn<TPage, TParam, TError> extends Omit<VueQueryReturn<PageData<TPage, TParam>, TError>, "refetch" | "suspense"> {
35
+ readonly hasNextPage: Readonly<ShallowRef<boolean>>;
36
+ readonly hasPreviousPage: Readonly<ShallowRef<boolean>>;
37
+ readonly isFetchingNextPage: Readonly<ShallowRef<boolean>>;
38
+ readonly isFetchingPreviousPage: Readonly<ShallowRef<boolean>>;
39
+ fetchNextPage(options?: QueryRefetchOptions): Promise<InfiniteSnapshot<TPage, TParam, TError>>;
40
+ fetchPreviousPage(options?: QueryRefetchOptions): Promise<InfiniteSnapshot<TPage, TParam, TError>>;
41
+ refetch(options?: QueryRefetchOptions): Promise<InfiniteSnapshot<TPage, TParam, TError>>;
42
+ }
43
+ /** Reactive infinite query composable for Vue 3. */
44
+ export declare function useInfiniteQuery<TQueryFnData = unknown, TError = Error, TData = PageData<TQueryFnData, unknown>, TQueryKey extends QueryKey = QueryKey, TPageParam = unknown>(options: MaybeRefOrGetter<InfiniteQuerySpec<TQueryFnData, TError, TData, TQueryKey, TPageParam>>, explicitClient?: QueryClient): VueInfiniteQueryReturn<TQueryFnData, TPageParam, TError>;
45
+ /** Watches multiple parallel queries inside Vue setup scope. */
46
+ export declare function useQueries<TCombined = readonly QuerySnapshot<unknown, unknown>[]>(options: MaybeRefOrGetter<{
47
+ readonly queries: readonly QuerySpec<unknown, unknown, unknown, QueryKey>[];
48
+ readonly combine?: ((results: readonly QuerySnapshot<unknown, unknown>[]) => TCombined) | undefined;
49
+ }>, explicitClient?: QueryClient): Readonly<ShallowRef<TCombined>>;
50
+ export interface VueMutationReturn<TData, TError, TVariables, TContext> {
51
+ readonly data: Readonly<ShallowRef<TData | undefined>>;
52
+ readonly error: Readonly<ShallowRef<TError | null>>;
53
+ readonly status: Readonly<ShallowRef<MutationStatus>>;
54
+ readonly isIdle: Readonly<ShallowRef<boolean>>;
55
+ readonly isPending: Readonly<ShallowRef<boolean>>;
56
+ readonly isError: Readonly<ShallowRef<boolean>>;
57
+ readonly isSuccess: Readonly<ShallowRef<boolean>>;
58
+ readonly variables: Readonly<ShallowRef<TVariables | undefined>>;
59
+ mutate(variables: TVariables, options?: MutateCallOptions<TData, TError, TVariables, TContext>): void;
60
+ mutateAsync(variables: TVariables, options?: MutateCallOptions<TData, TError, TVariables, TContext>): Promise<TData>;
61
+ reset(): void;
62
+ }
63
+ /** Executes mutations inside Vue setup scope with shallowRef status updates. */
64
+ export declare function useMutation<TData = unknown, TError = Error, TVariables = void, TContext = unknown>(options: MaybeRefOrGetter<MutationSpec<TData, TError, TVariables, TContext>>, explicitClient?: QueryClient): VueMutationReturn<TData, TError, TVariables, TContext>;
65
+ /** Returns a shallowRef tracking active query count. */
66
+ export declare function useIsFetching(filters?: MaybeRefOrGetter<QueryFilter | undefined>, explicitClient?: QueryClient): Readonly<ShallowRef<number>>;
67
+ /** Returns a shallowRef tracking active mutation count. */
68
+ export declare function useIsMutating(filters?: MaybeRefOrGetter<MutationFilter | undefined>, explicitClient?: QueryClient): Readonly<ShallowRef<number>>;
@@ -0,0 +1,68 @@
1
+ import { App, InjectionKey, MaybeRefOrGetter, ShallowRef } from "vue";
2
+ import { FetchPhase, InfiniteQuerySpec, InfiniteSnapshot, MutateCallOptions, MutationFilter, MutationSpec, MutationStatus, PageData, QueryClient, QueryFilter, QueryKey, QueryRefetchOptions, QuerySnapshot, QuerySpec, QueryStatus } from "@bevelo/query";
3
+ export declare const VUE_QUERY_CLIENT: InjectionKey<QueryClient>;
4
+ export interface VueQueryPluginOptions {
5
+ readonly queryClient?: QueryClient | undefined;
6
+ }
7
+ /** Vue plugin providing a shared `QueryClient` instance across the application. */
8
+ export declare const VueQueryPlugin: {
9
+ install(app: App, options?: VueQueryPluginOptions): void;
10
+ };
11
+ /** Provides a `QueryClient` inside a Vue component setup scope. */
12
+ export declare function provideQueryClient(client: QueryClient): void;
13
+ /** Injects the nearest `QueryClient` from Vue DI context. */
14
+ export declare function useQueryClient(explicitClient?: QueryClient): QueryClient;
15
+ export interface VueQueryReturn<TData, TError> {
16
+ readonly data: Readonly<ShallowRef<TData | undefined>>;
17
+ readonly error: Readonly<ShallowRef<TError | null>>;
18
+ readonly status: Readonly<ShallowRef<QueryStatus>>;
19
+ readonly fetchPhase: Readonly<ShallowRef<FetchPhase>>;
20
+ readonly isPending: Readonly<ShallowRef<boolean>>;
21
+ readonly isLoading: Readonly<ShallowRef<boolean>>;
22
+ readonly isError: Readonly<ShallowRef<boolean>>;
23
+ readonly isSuccess: Readonly<ShallowRef<boolean>>;
24
+ readonly isFetching: Readonly<ShallowRef<boolean>>;
25
+ readonly isPaused: Readonly<ShallowRef<boolean>>;
26
+ readonly isStale: Readonly<ShallowRef<boolean>>;
27
+ readonly isPlaceholderData: Readonly<ShallowRef<boolean>>;
28
+ readonly failureCount: Readonly<ShallowRef<number>>;
29
+ refetch(options?: QueryRefetchOptions): Promise<QuerySnapshot<TData, TError>>;
30
+ suspense(): Promise<QuerySnapshot<TData, TError>>;
31
+ }
32
+ /** Reactive query composable exposing shallowRef state projections. */
33
+ export declare function useQuery<TQueryFnData = unknown, TError = Error, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey>(options: MaybeRefOrGetter<QuerySpec<TQueryFnData, TError, TData, TQueryKey>>, explicitClient?: QueryClient): VueQueryReturn<TData, TError>;
34
+ export interface VueInfiniteQueryReturn<TPage, TParam, TError> extends Omit<VueQueryReturn<PageData<TPage, TParam>, TError>, "refetch" | "suspense"> {
35
+ readonly hasNextPage: Readonly<ShallowRef<boolean>>;
36
+ readonly hasPreviousPage: Readonly<ShallowRef<boolean>>;
37
+ readonly isFetchingNextPage: Readonly<ShallowRef<boolean>>;
38
+ readonly isFetchingPreviousPage: Readonly<ShallowRef<boolean>>;
39
+ fetchNextPage(options?: QueryRefetchOptions): Promise<InfiniteSnapshot<TPage, TParam, TError>>;
40
+ fetchPreviousPage(options?: QueryRefetchOptions): Promise<InfiniteSnapshot<TPage, TParam, TError>>;
41
+ refetch(options?: QueryRefetchOptions): Promise<InfiniteSnapshot<TPage, TParam, TError>>;
42
+ }
43
+ /** Reactive infinite query composable for Vue 3. */
44
+ export declare function useInfiniteQuery<TQueryFnData = unknown, TError = Error, TData = PageData<TQueryFnData, unknown>, TQueryKey extends QueryKey = QueryKey, TPageParam = unknown>(options: MaybeRefOrGetter<InfiniteQuerySpec<TQueryFnData, TError, TData, TQueryKey, TPageParam>>, explicitClient?: QueryClient): VueInfiniteQueryReturn<TQueryFnData, TPageParam, TError>;
45
+ /** Watches multiple parallel queries inside Vue setup scope. */
46
+ export declare function useQueries<TCombined = readonly QuerySnapshot<unknown, unknown>[]>(options: MaybeRefOrGetter<{
47
+ readonly queries: readonly QuerySpec<unknown, unknown, unknown, QueryKey>[];
48
+ readonly combine?: ((results: readonly QuerySnapshot<unknown, unknown>[]) => TCombined) | undefined;
49
+ }>, explicitClient?: QueryClient): Readonly<ShallowRef<TCombined>>;
50
+ export interface VueMutationReturn<TData, TError, TVariables, TContext> {
51
+ readonly data: Readonly<ShallowRef<TData | undefined>>;
52
+ readonly error: Readonly<ShallowRef<TError | null>>;
53
+ readonly status: Readonly<ShallowRef<MutationStatus>>;
54
+ readonly isIdle: Readonly<ShallowRef<boolean>>;
55
+ readonly isPending: Readonly<ShallowRef<boolean>>;
56
+ readonly isError: Readonly<ShallowRef<boolean>>;
57
+ readonly isSuccess: Readonly<ShallowRef<boolean>>;
58
+ readonly variables: Readonly<ShallowRef<TVariables | undefined>>;
59
+ mutate(variables: TVariables, options?: MutateCallOptions<TData, TError, TVariables, TContext>): void;
60
+ mutateAsync(variables: TVariables, options?: MutateCallOptions<TData, TError, TVariables, TContext>): Promise<TData>;
61
+ reset(): void;
62
+ }
63
+ /** Executes mutations inside Vue setup scope with shallowRef status updates. */
64
+ export declare function useMutation<TData = unknown, TError = Error, TVariables = void, TContext = unknown>(options: MaybeRefOrGetter<MutationSpec<TData, TError, TVariables, TContext>>, explicitClient?: QueryClient): VueMutationReturn<TData, TError, TVariables, TContext>;
65
+ /** Returns a shallowRef tracking active query count. */
66
+ export declare function useIsFetching(filters?: MaybeRefOrGetter<QueryFilter | undefined>, explicitClient?: QueryClient): Readonly<ShallowRef<number>>;
67
+ /** Returns a shallowRef tracking active mutation count. */
68
+ export declare function useIsMutating(filters?: MaybeRefOrGetter<MutationFilter | undefined>, explicitClient?: QueryClient): Readonly<ShallowRef<number>>;
package/dist/query.js ADDED
@@ -0,0 +1,142 @@
1
+ import { n as storeRef } from "./engine-refs-sojZQs1R.js";
2
+ import { inject, onScopeDispose, provide, shallowRef, toValue, watch } from "vue";
3
+ import { QueryClient, createInfiniteWatcher, createMutationWatcher, createQueriesWatcher, createQueryWatcher } from "@bevelo/query";
4
+ // src/query.ts
5
+ const VUE_QUERY_CLIENT = Symbol("bevelo.vue.queryClient");
6
+ /** Vue plugin providing a shared `QueryClient` instance across the application. */
7
+ const VueQueryPlugin = { install(app, options = {}) {
8
+ const client = options.queryClient ?? new QueryClient();
9
+ client.mount();
10
+ app.provide(VUE_QUERY_CLIENT, client);
11
+ app.onUnmount(() => {
12
+ client.unmount();
13
+ });
14
+ } };
15
+ /** Provides a `QueryClient` inside a Vue component setup scope. */
16
+ function provideQueryClient(client) {
17
+ client.mount();
18
+ provide(VUE_QUERY_CLIENT, client);
19
+ onScopeDispose(() => {
20
+ client.unmount();
21
+ });
22
+ }
23
+ /** Injects the nearest `QueryClient` from Vue DI context. */
24
+ function useQueryClient(explicitClient) {
25
+ const client = explicitClient ?? inject(VUE_QUERY_CLIENT, void 0);
26
+ if (!client) throw new Error("No QueryClient provided; install VueQueryPlugin or call provideQueryClient(client)");
27
+ return client;
28
+ }
29
+ /** Reactive query composable exposing shallowRef state projections. */
30
+ function useQuery(options, explicitClient) {
31
+ const client = useQueryClient(explicitClient);
32
+ const watcher = createQueryWatcher(client, toValue(options));
33
+ watch(() => toValue(options), (next) => watcher.update(next));
34
+ onScopeDispose(() => watcher.dispose());
35
+ const field = (key) => storeRef(watcher, (s) => s[key]);
36
+ return {
37
+ data: field("data"),
38
+ error: field("error"),
39
+ status: field("status"),
40
+ fetchPhase: field("fetchPhase"),
41
+ isPending: field("isPending"),
42
+ isLoading: field("isLoading"),
43
+ isError: field("isError"),
44
+ isSuccess: field("isSuccess"),
45
+ isFetching: field("isFetching"),
46
+ isPaused: field("isPaused"),
47
+ isStale: field("isStale"),
48
+ isPlaceholderData: field("isPlaceholderData"),
49
+ failureCount: field("failureCount"),
50
+ refetch: watcher.refetch,
51
+ suspense: async () => {
52
+ const snap = watcher.get();
53
+ if (snap.isPending) return await watcher.refetch();
54
+ return snap;
55
+ }
56
+ };
57
+ }
58
+ /** Reactive infinite query composable for Vue 3. */
59
+ function useInfiniteQuery(options, explicitClient) {
60
+ const client = useQueryClient(explicitClient);
61
+ const watcher = createInfiniteWatcher(client, toValue(options));
62
+ watch(() => toValue(options), (next) => watcher.update(next));
63
+ onScopeDispose(() => watcher.dispose());
64
+ const field = (key) => storeRef(watcher, (s) => s[key]);
65
+ return {
66
+ data: field("data"),
67
+ error: field("error"),
68
+ status: field("status"),
69
+ fetchPhase: field("fetchPhase"),
70
+ isPending: field("isPending"),
71
+ isLoading: field("isLoading"),
72
+ isError: field("isError"),
73
+ isSuccess: field("isSuccess"),
74
+ isFetching: field("isFetching"),
75
+ isPaused: field("isPaused"),
76
+ isStale: field("isStale"),
77
+ isPlaceholderData: field("isPlaceholderData"),
78
+ failureCount: field("failureCount"),
79
+ hasNextPage: field("hasNextPage"),
80
+ hasPreviousPage: field("hasPreviousPage"),
81
+ isFetchingNextPage: field("isFetchingNextPage"),
82
+ isFetchingPreviousPage: field("isFetchingPreviousPage"),
83
+ fetchNextPage: watcher.fetchNextPage,
84
+ fetchPreviousPage: watcher.fetchPreviousPage,
85
+ refetch: watcher.refetch
86
+ };
87
+ }
88
+ /** Watches multiple parallel queries inside Vue setup scope. */
89
+ function useQueries(options, explicitClient) {
90
+ const client = useQueryClient(explicitClient);
91
+ const initial = toValue(options);
92
+ const watcher = createQueriesWatcher(client, initial.queries, initial.combine);
93
+ watch(() => toValue(options), (next) => watcher.update(next.queries, next.combine));
94
+ onScopeDispose(() => watcher.dispose());
95
+ return storeRef(watcher, (s) => s);
96
+ }
97
+ /** Executes mutations inside Vue setup scope with shallowRef status updates. */
98
+ function useMutation(options, explicitClient) {
99
+ const client = useQueryClient(explicitClient);
100
+ const watcher = createMutationWatcher(client, toValue(options));
101
+ watch(() => toValue(options), (next) => watcher.update(next));
102
+ onScopeDispose(() => watcher.dispose());
103
+ const field = (key) => storeRef(watcher, (s) => s[key]);
104
+ return {
105
+ data: field("data"),
106
+ error: field("error"),
107
+ status: field("status"),
108
+ isIdle: field("isIdle"),
109
+ isPending: field("isPending"),
110
+ isError: field("isError"),
111
+ isSuccess: field("isSuccess"),
112
+ variables: field("variables"),
113
+ mutate: watcher.mutate,
114
+ mutateAsync: watcher.mutateAsync,
115
+ reset: watcher.reset
116
+ };
117
+ }
118
+ /** Returns a shallowRef tracking active query count. */
119
+ function useIsFetching(filters, explicitClient) {
120
+ const client = useQueryClient(explicitClient);
121
+ const count = shallowRef(client.isFetching(toValue(filters)));
122
+ const sync = () => {
123
+ count.value = client.isFetching(toValue(filters));
124
+ };
125
+ const unsub = client.getQueryCache().subscribe(sync);
126
+ watch(() => toValue(filters), sync);
127
+ onScopeDispose(unsub);
128
+ return count;
129
+ }
130
+ /** Returns a shallowRef tracking active mutation count. */
131
+ function useIsMutating(filters, explicitClient) {
132
+ const client = useQueryClient(explicitClient);
133
+ const count = shallowRef(client.isMutating(toValue(filters)));
134
+ const sync = () => {
135
+ count.value = client.isMutating(toValue(filters));
136
+ };
137
+ const unsub = client.getMutationCache().subscribe(sync);
138
+ watch(() => toValue(filters), sync);
139
+ onScopeDispose(unsub);
140
+ return count;
141
+ }
142
+ export { VUE_QUERY_CLIENT, VueQueryPlugin, provideQueryClient, useInfiniteQuery, useIsFetching, useIsMutating, useMutation, useQueries, useQuery, useQueryClient };
package/dist/radio.cjs ADDED
@@ -0,0 +1,102 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ const require_headless = require("./headless-D88yFw8W.cjs");
3
+ const require_form = require("./form-CKus_NQE.cjs");
4
+ const require_describe = require("./describe-D_dLtwde.cjs");
5
+ const require_options = require("./options-BDn36q6n.cjs");
6
+ let _bevelo_core = require("@bevelo/core");
7
+ let vue = require("vue");
8
+ // src/radio.ts
9
+ const schema = require_options.vueOptions(_bevelo_core.radioPrimitive, {
10
+ modelValue: ["value", "onChange"],
11
+ value: ["value", "onChange"]
12
+ });
13
+ const Radio = (0, vue.defineComponent)({
14
+ name: "Radio",
15
+ inheritAttrs: false,
16
+ props: {
17
+ ...schema.props,
18
+ value: {
19
+ type: String,
20
+ required: false
21
+ },
22
+ defaultValue: {
23
+ type: String,
24
+ required: false
25
+ },
26
+ disabled: {
27
+ type: Boolean,
28
+ default: false
29
+ },
30
+ readOnly: {
31
+ type: Boolean,
32
+ required: false
33
+ },
34
+ invalid: {
35
+ type: Boolean,
36
+ required: false
37
+ },
38
+ orientation: {
39
+ type: String,
40
+ required: false
41
+ },
42
+ loop: {
43
+ type: Boolean,
44
+ required: false
45
+ },
46
+ label: {
47
+ type: String,
48
+ required: false
49
+ },
50
+ indicator: {
51
+ type: Array,
52
+ default: () => []
53
+ },
54
+ items: {
55
+ type: Array,
56
+ default: () => []
57
+ },
58
+ name: {
59
+ type: String,
60
+ required: false
61
+ },
62
+ /** The id of a form elsewhere in the page that the hidden radios join. */
63
+ form: {
64
+ type: String,
65
+ required: false
66
+ }
67
+ },
68
+ emits: schema.emits,
69
+ setup(props, { attrs, slots, expose }) {
70
+ const handle = require_headless.usePrimitive(_bevelo_core.radioPrimitive, schema.bind(props, () => ({ indicator: props.indicator.length > 0 })));
71
+ const kernel = handle.api;
72
+ expose({ api: {
73
+ ...kernel,
74
+ setValue: (next) => kernel.select(next ?? "")
75
+ } });
76
+ return () => {
77
+ const items = props.items;
78
+ const indicatorContent = require_describe.isDescriptionList(props.indicator) && props.indicator.length > 0 ? require_describe.descriptionNodes(props.indicator) : void 0;
79
+ const rows = items.map((item, index) => {
80
+ const address = { index };
81
+ const mark = require_headless.renderPart(handle, "indicator", { key: "mark" }, indicatorContent, address);
82
+ const control = require_headless.renderPart(handle, "radio", { key: "radio" }, [mark], address);
83
+ const icon = require_headless.renderPart(handle, "icon", { key: "icon" }, item.icon === void 0 || item.icon.length === 0 ? void 0 : require_describe.descriptionNodes(item.icon), address);
84
+ const text = require_headless.renderPart(handle, "label-text", { key: "text" }, slots.item?.({
85
+ item,
86
+ index
87
+ }) ?? item.label, address);
88
+ const description = require_headless.renderPart(handle, "description", { key: "description" }, item.description === void 0 || item.description === "" ? void 0 : item.description, address);
89
+ return require_headless.renderPart(handle, "label", { key: item.value }, [
90
+ control,
91
+ icon,
92
+ text,
93
+ description
94
+ ], address);
95
+ });
96
+ const inputs = items.map((item, index) => require_form.hiddenInputPart(handle, "input:" + item.value, { index }, props.form === void 0 ? void 0 : { form: props.form }));
97
+ const host = { ...attrs };
98
+ return require_headless.renderPart(handle, "root", host, [...rows, ...inputs]);
99
+ };
100
+ }
101
+ });
102
+ exports.Radio = Radio;