vue-data-ui 3.17.13 → 3.18.1

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 (493) hide show
  1. package/README.md +1 -1
  2. package/dist/A11yDataTable-q2-8fSlJ.js +45 -0
  3. package/dist/Arrow-Cj6W6Xbi.js +116 -0
  4. package/dist/BaseDraggableDialog-BQcmQAK5.js +272 -0
  5. package/dist/BaseIcon-CEmt3Ifx.js +499 -0
  6. package/dist/BaseLegendToggle-DUIqQmwM.js +56 -0
  7. package/dist/BaseScanner-C7dmAref.js +27 -0
  8. package/dist/BaseZoomControls-Ce1yqas1.js +111 -0
  9. package/dist/ColorPicker-DS_QkH3W.js +255 -0
  10. package/dist/DataTable-BvDJEAma.js +150 -0
  11. package/dist/Legend-Gg5Q4Clb.js +114 -0
  12. package/dist/NonSvgPenAndPaper-D4Gh7O43.js +577 -0
  13. package/dist/PackageVersion-DhDKg-ez.js +11 -0
  14. package/dist/PenAndPaper-DwpL8Z0l.js +461 -0
  15. package/dist/RecursiveCircles-DPpLel6f.js +117 -0
  16. package/dist/RecursiveLabels-DBMJf_to.js +56 -0
  17. package/dist/RecursiveLinks-D06dBL4a.js +78 -0
  18. package/dist/Shape-DEGOZ6GG.js +141 -0
  19. package/dist/Slicer-BlfyiHHD.js +1144 -0
  20. package/dist/SlicerPreview-BPS8mYO2.js +1523 -0
  21. package/dist/SparkTooltip-c2DL7gqD.js +93 -0
  22. package/dist/Title-__gWq2g6.js +87 -0
  23. package/dist/Tooltip-B7lmdbac.js +307 -0
  24. package/dist/UserOptions-DMw8EZEo.js +1407 -0
  25. package/dist/_plugin-vue_export-helper-Dq1MygBL.js +8 -0
  26. package/dist/canvas-lib-DTaADQOK.js +79 -0
  27. package/dist/components/arrow.js +2 -5
  28. package/dist/components/vue-ui-3d-bar.js +2 -5
  29. package/dist/components/vue-ui-accordion.js +2 -5
  30. package/dist/components/vue-ui-age-pyramid.js +2 -5
  31. package/dist/components/vue-ui-annotator.js +2 -5
  32. package/dist/components/vue-ui-bullet.js +2 -5
  33. package/dist/components/vue-ui-bump.js +2 -5
  34. package/dist/components/vue-ui-candlestick.js +2 -5
  35. package/dist/components/vue-ui-carousel-table.js +2 -5
  36. package/dist/components/vue-ui-chestnut.js +2 -5
  37. package/dist/components/vue-ui-chord.js +2 -5
  38. package/dist/components/vue-ui-circle-pack.js +2 -5
  39. package/dist/components/vue-ui-cursor.js +2 -5
  40. package/dist/components/vue-ui-dag.js +2 -5
  41. package/dist/components/vue-ui-dashboard.js +2 -5
  42. package/dist/components/vue-ui-digits.js +2 -5
  43. package/dist/components/vue-ui-donut-evolution.js +2 -5
  44. package/dist/components/vue-ui-donut.js +2 -5
  45. package/dist/components/vue-ui-dumbbell.js +2 -5
  46. package/dist/components/vue-ui-flow.js +2 -5
  47. package/dist/components/vue-ui-funnel.js +2 -5
  48. package/dist/components/vue-ui-galaxy.js +2 -5
  49. package/dist/components/vue-ui-gauge.js +2 -5
  50. package/dist/components/vue-ui-geo.js +2 -5
  51. package/dist/components/vue-ui-gizmo.js +2 -5
  52. package/dist/components/vue-ui-heatmap.js +2 -5
  53. package/dist/components/vue-ui-history-plot.js +2 -5
  54. package/dist/components/vue-ui-horizontal-bar.js +2 -5
  55. package/dist/components/vue-ui-icon.js +2 -5
  56. package/dist/components/vue-ui-kpi.js +2 -5
  57. package/dist/components/vue-ui-mini-loader.js +2 -5
  58. package/dist/components/vue-ui-molecule.js +2 -5
  59. package/dist/components/vue-ui-mood-radar.js +2 -5
  60. package/dist/components/vue-ui-nested-donuts.js +2 -5
  61. package/dist/components/vue-ui-onion.js +2 -5
  62. package/dist/components/vue-ui-parallel-coordinate-plot.js +2 -5
  63. package/dist/components/vue-ui-pattern-seed.js +2 -5
  64. package/dist/components/vue-ui-pattern.js +2 -5
  65. package/dist/components/vue-ui-quadrant.js +2 -5
  66. package/dist/components/vue-ui-quick-chart.js +2 -5
  67. package/dist/components/vue-ui-radar.js +2 -5
  68. package/dist/components/vue-ui-rating.js +2 -5
  69. package/dist/components/vue-ui-relation-circle.js +2 -5
  70. package/dist/components/vue-ui-ridgeline.js +2 -5
  71. package/dist/components/vue-ui-rings.js +2 -5
  72. package/dist/components/vue-ui-scatter.js +2 -5
  73. package/dist/components/vue-ui-skeleton.js +2 -5
  74. package/dist/components/vue-ui-smiley.js +2 -5
  75. package/dist/components/vue-ui-spark-trend.js +2 -5
  76. package/dist/components/vue-ui-sparkbar.js +2 -5
  77. package/dist/components/vue-ui-sparkgauge.js +2 -5
  78. package/dist/components/vue-ui-sparkhistogram.js +2 -5
  79. package/dist/components/vue-ui-sparkline.js +2 -5
  80. package/dist/components/vue-ui-sparkstackbar.js +2 -5
  81. package/dist/components/vue-ui-stackbar.js +2 -5
  82. package/dist/components/vue-ui-stackline.js +2 -5
  83. package/dist/components/vue-ui-strip-plot.js +2 -5
  84. package/dist/components/vue-ui-table-heatmap.js +2 -5
  85. package/dist/components/vue-ui-table-sparkline.js +2 -5
  86. package/dist/components/vue-ui-table.js +2 -5
  87. package/dist/components/vue-ui-thermometer.js +2 -5
  88. package/dist/components/vue-ui-timer.js +2 -5
  89. package/dist/components/vue-ui-tiremarks.js +2 -5
  90. package/dist/components/vue-ui-treemap.js +2 -5
  91. package/dist/components/vue-ui-vertical-bar.js +2 -5
  92. package/dist/components/vue-ui-waffle.js +2 -5
  93. package/dist/components/vue-ui-wheel.js +2 -5
  94. package/dist/components/vue-ui-word-cloud.js +2 -5
  95. package/dist/components/vue-ui-world.js +2 -5
  96. package/dist/components/vue-ui-xy-canvas.js +2 -5
  97. package/dist/components/vue-ui-xy.js +2 -5
  98. package/dist/dom-to-png-9WSt6hXe.js +237 -0
  99. package/dist/exposedLib-CwWU4zv-.js +19 -0
  100. package/dist/geoProjections-CQIkC70z.js +146 -0
  101. package/dist/img-BjOr008R.js +74 -0
  102. package/dist/labelUtils-Cr97N8E1.js +19 -0
  103. package/dist/lib-BkiwukKO.js +1879 -0
  104. package/dist/patternUtils-B7BWu5bV.js +258 -0
  105. package/dist/pdf-DSXSFUnK.js +90 -0
  106. package/dist/rolldown-runtime-CAFD8bLK.js +11 -0
  107. package/dist/style.css +2 -1
  108. package/dist/types/arrow.d.ts +1 -1
  109. package/dist/types/utils.d.ts +23 -0
  110. package/dist/types/vue-data-ui.d.ts +4775 -627
  111. package/dist/types/vue-ui-3d-bar.d.ts +64 -9
  112. package/dist/types/vue-ui-accordion.d.ts +4 -3
  113. package/dist/types/vue-ui-age-pyramid.d.ts +79 -9
  114. package/dist/types/vue-ui-annotator.d.ts +3 -5
  115. package/dist/types/vue-ui-bullet.d.ts +60 -9
  116. package/dist/types/vue-ui-bump.d.ts +65 -9
  117. package/dist/types/vue-ui-candlestick.d.ts +83 -9
  118. package/dist/types/vue-ui-carousel-table.d.ts +36 -6
  119. package/dist/types/vue-ui-chestnut.d.ts +66 -9
  120. package/dist/types/vue-ui-chord.d.ts +78 -9
  121. package/dist/types/vue-ui-circle-pack.d.ts +86 -9
  122. package/dist/types/vue-ui-cursor.d.ts +4 -2
  123. package/dist/types/vue-ui-dag.d.ts +92 -9
  124. package/dist/types/vue-ui-dashboard.d.ts +43 -6
  125. package/dist/types/vue-ui-digits.d.ts +4 -2
  126. package/dist/types/vue-ui-donut-evolution.d.ts +70 -9
  127. package/dist/types/vue-ui-donut.d.ts +92 -9
  128. package/dist/types/vue-ui-dumbbell.d.ts +65 -9
  129. package/dist/types/vue-ui-flow.d.ts +79 -9
  130. package/dist/types/vue-ui-funnel.d.ts +55 -9
  131. package/dist/types/vue-ui-galaxy.d.ts +83 -9
  132. package/dist/types/vue-ui-gauge.d.ts +64 -9
  133. package/dist/types/vue-ui-geo.d.ts +71 -9
  134. package/dist/types/vue-ui-gizmo.d.ts +17 -6
  135. package/dist/types/vue-ui-heatmap.d.ts +73 -9
  136. package/dist/types/vue-ui-history-plot.d.ts +82 -9
  137. package/dist/types/vue-ui-horizontal-bar.d.ts +84 -9
  138. package/dist/types/vue-ui-icon.d.ts +2 -2
  139. package/dist/types/vue-ui-kpi.d.ts +21 -7
  140. package/dist/types/vue-ui-mini-loader.d.ts +5 -3
  141. package/dist/types/vue-ui-molecule.d.ts +86 -9
  142. package/dist/types/vue-ui-mood-radar.d.ts +66 -9
  143. package/dist/types/vue-ui-nested-donuts.d.ts +80 -9
  144. package/dist/types/vue-ui-onion.d.ts +77 -9
  145. package/dist/types/vue-ui-parallel-coordinate-plot.d.ts +92 -9
  146. package/dist/types/vue-ui-pattern-seed.d.ts +1 -1
  147. package/dist/types/vue-ui-pattern.d.ts +2 -2
  148. package/dist/types/vue-ui-quadrant.d.ts +86 -9
  149. package/dist/types/vue-ui-quick-chart.d.ts +79 -9
  150. package/dist/types/vue-ui-radar.d.ts +83 -9
  151. package/dist/types/vue-ui-rating.d.ts +22 -6
  152. package/dist/types/vue-ui-relation-circle.d.ts +66 -9
  153. package/dist/types/vue-ui-ridgeline.d.ts +69 -9
  154. package/dist/types/vue-ui-rings.d.ts +70 -9
  155. package/dist/types/vue-ui-scatter.d.ts +67 -9
  156. package/dist/types/vue-ui-skeleton.d.ts +3 -2
  157. package/dist/types/vue-ui-smiley.d.ts +3 -2
  158. package/dist/types/vue-ui-spark-trend.d.ts +14 -6
  159. package/dist/types/vue-ui-sparkbar.d.ts +27 -6
  160. package/dist/types/vue-ui-sparkgauge.d.ts +20 -6
  161. package/dist/types/vue-ui-sparkhistogram.d.ts +24 -6
  162. package/dist/types/vue-ui-sparkline.d.ts +35 -6
  163. package/dist/types/vue-ui-sparkstackbar.d.ts +35 -6
  164. package/dist/types/vue-ui-stackbar.d.ts +85 -9
  165. package/dist/types/vue-ui-stackline.d.ts +81 -9
  166. package/dist/types/vue-ui-strip-plot.d.ts +66 -9
  167. package/dist/types/vue-ui-table-heatmap.d.ts +52 -6
  168. package/dist/types/vue-ui-table-sparkline.d.ts +30 -6
  169. package/dist/types/vue-ui-table.d.ts +10 -2
  170. package/dist/types/vue-ui-thermometer.d.ts +46 -9
  171. package/dist/types/vue-ui-timer.d.ts +31 -5
  172. package/dist/types/vue-ui-tiremarks.d.ts +46 -9
  173. package/dist/types/vue-ui-treemap.d.ts +73 -9
  174. package/dist/types/vue-ui-vertical-bar.d.ts +2 -2
  175. package/dist/types/vue-ui-waffle.d.ts +72 -9
  176. package/dist/types/vue-ui-wheel.d.ts +46 -9
  177. package/dist/types/vue-ui-word-cloud.d.ts +73 -9
  178. package/dist/types/vue-ui-world.d.ts +68 -9
  179. package/dist/types/vue-ui-xy-canvas.d.ts +75 -9
  180. package/dist/types/vue-ui-xy.d.ts +108 -10
  181. package/dist/useAutoSizeLabelsInsideViewbox-dp-3Gg97.js +50 -0
  182. package/dist/useChartAccessibility-Do37qcw2.js +12 -0
  183. package/dist/useConfig-BV0kTCnO.js +7431 -0
  184. package/dist/useFitSvgText-C-MEdAfe.js +63 -0
  185. package/dist/useNestedProp-Ck4hsrpu.js +10 -0
  186. package/dist/useObjectBindings-Ce_ZZk-f.js +189 -0
  187. package/dist/usePanZoom-B-4M_gmY.js +157 -0
  188. package/dist/usePrefersMotion-BywLbIko.js +15 -0
  189. package/dist/usePrinter-X0yWOynH.js +49 -0
  190. package/dist/useResponsive-CrAInupd.js +19 -0
  191. package/dist/useStableElementSize-0I1IpHPl.js +77 -0
  192. package/dist/useSvgExport-Dtu973wa.js +755 -0
  193. package/dist/useTableResponsive-DrM1xqII.js +24 -0
  194. package/dist/useThemeCheck-rFK9Zlb_.js +24 -0
  195. package/dist/useTimeLabelCollider-Dm55Emzg.js +57 -0
  196. package/dist/useTimeLabels-C0x7zUXP.js +272 -0
  197. package/dist/useUserOptionState-CjPJPTg2.js +15 -0
  198. package/dist/utils.js +27 -44
  199. package/dist/vClickOutside-CbX_bC9A.js +13 -0
  200. package/dist/vue-data-ui-DIh8ayZc.js +274 -0
  201. package/dist/vue-data-ui.js +76 -167
  202. package/dist/vue-ui-3d-bar-BZ8_6ylo.js +1747 -0
  203. package/dist/vue-ui-accordion-cVv18nTV.js +81 -0
  204. package/dist/vue-ui-age-pyramid-BR3i-CgS.js +1226 -0
  205. package/dist/vue-ui-annotator-B9mA_PlF.js +2899 -0
  206. package/dist/vue-ui-bullet-ByJdNLVf.js +700 -0
  207. package/dist/vue-ui-bump-Ps1gkA-F.js +1239 -0
  208. package/dist/vue-ui-candlestick-0C1QFoV4.js +1802 -0
  209. package/dist/vue-ui-carousel-table-1P28pCRK.js +445 -0
  210. package/dist/vue-ui-chestnut-CJOCGWwX.js +2000 -0
  211. package/dist/vue-ui-chord-BpiVJCCm.js +1381 -0
  212. package/dist/vue-ui-circle-pack-C3wvXz1f.js +1183 -0
  213. package/dist/vue-ui-cursor-CNn_3b24.js +283 -0
  214. package/dist/vue-ui-dag-DRVXVCJV.js +2899 -0
  215. package/dist/vue-ui-dashboard-gOXyms0o.js +503 -0
  216. package/dist/vue-ui-digits-DIKyN3z6.js +209 -0
  217. package/dist/vue-ui-donut-RogzKj0G.js +2396 -0
  218. package/dist/vue-ui-donut-evolution-Bxz06Qqf.js +1490 -0
  219. package/dist/vue-ui-dumbbell-D10T4gmB.js +1517 -0
  220. package/dist/vue-ui-flow-OK563Z46.js +1223 -0
  221. package/dist/vue-ui-funnel-nWmbiJu5.js +767 -0
  222. package/dist/vue-ui-galaxy-CtaTlHWZ.js +1062 -0
  223. package/dist/vue-ui-gauge-DWTEHJqX.js +910 -0
  224. package/dist/vue-ui-geo-DUpWvv5m.js +1504 -0
  225. package/dist/vue-ui-gizmo-vddzP4dM.js +225 -0
  226. package/dist/vue-ui-heatmap-CUE_zJQa.js +1556 -0
  227. package/dist/vue-ui-history-plot-CcRg_NgJ.js +1551 -0
  228. package/dist/vue-ui-horizontal-bar-DX5aZOEn.js +1669 -0
  229. package/dist/vue-ui-kpi-B74v84Hu.js +96 -0
  230. package/dist/vue-ui-mini-loader-BcCG6Yqb.js +125 -0
  231. package/dist/vue-ui-molecule-CVdB8rxf.js +912 -0
  232. package/dist/vue-ui-mood-radar-CWDVBOck.js +1138 -0
  233. package/dist/vue-ui-nested-donuts-Be8b5d81.js +1472 -0
  234. package/dist/vue-ui-onion-Cs90yQQZ.js +1188 -0
  235. package/dist/vue-ui-parallel-coordinate-plot-D-mZdTop.js +1413 -0
  236. package/dist/vue-ui-pattern-Bj-IPFr2.js +154 -0
  237. package/dist/vue-ui-pattern-seed-abRweCDE.js +61 -0
  238. package/dist/vue-ui-quadrant-DLD_ZR9M.js +1966 -0
  239. package/dist/vue-ui-quick-chart-UWjZdmzt.js +2459 -0
  240. package/dist/vue-ui-radar-Bxu07MOG.js +1214 -0
  241. package/dist/vue-ui-rating-DA9Bmfyb.js +343 -0
  242. package/dist/vue-ui-relation-circle-O5s1UJtt.js +914 -0
  243. package/dist/vue-ui-ridgeline-C3siN0d_.js +1612 -0
  244. package/dist/vue-ui-rings-DVVDtwhB.js +1231 -0
  245. package/dist/vue-ui-scatter-Cfvh06OC.js +2380 -0
  246. package/dist/vue-ui-skeleton-CxTmGCQp.js +2556 -0
  247. package/dist/vue-ui-smiley-B6nc7b71.js +356 -0
  248. package/dist/vue-ui-spark-trend--39vutfQ.js +438 -0
  249. package/dist/vue-ui-sparkbar-DhCRNOu4.js +393 -0
  250. package/dist/vue-ui-sparkgauge-6Igkqlqs.js +255 -0
  251. package/dist/vue-ui-sparkhistogram-BLEzZSZi.js +560 -0
  252. package/dist/vue-ui-sparkline-ppwKM4aO.js +1503 -0
  253. package/dist/vue-ui-sparkstackbar-uIzSq9Wh.js +660 -0
  254. package/dist/vue-ui-stackbar-CdOkMCbI.js +2235 -0
  255. package/dist/vue-ui-stackline-DifD9OXC.js +2362 -0
  256. package/dist/vue-ui-strip-plot-D1LjIVqK.js +1328 -0
  257. package/dist/vue-ui-table-WDkEyyQ0.js +1338 -0
  258. package/dist/vue-ui-table-heatmap-CfGJVzI3.js +334 -0
  259. package/dist/vue-ui-table-sparkline-BEWWP4Rq.js +697 -0
  260. package/dist/vue-ui-thermometer-CFWOAB8K.js +753 -0
  261. package/dist/vue-ui-timer-D1DQyf9i.js +439 -0
  262. package/dist/vue-ui-tiremarks-IeM3BlPW.js +542 -0
  263. package/dist/vue-ui-treemap-BGZM7ibv.js +1575 -0
  264. package/dist/vue-ui-waffle-a3dFVBk4.js +1350 -0
  265. package/dist/vue-ui-wheel-OnIRQJ8a.js +875 -0
  266. package/dist/vue-ui-word-cloud-C9SkyutR.js +1644 -0
  267. package/dist/vue-ui-world-CEevuFbk.js +14252 -0
  268. package/dist/vue-ui-xy-1hee-IEM.js +4114 -0
  269. package/dist/vue-ui-xy-canvas-D2f0d45c.js +1774 -0
  270. package/dist/vue_ui_3d_bar-CXKqO5Ej.js +185 -0
  271. package/dist/vue_ui_age_pyramid-BON8QI6X.js +301 -0
  272. package/dist/vue_ui_bullet-CE5sFT7u.js +186 -0
  273. package/dist/vue_ui_bump-frnXaXul.js +201 -0
  274. package/dist/vue_ui_candlestick-sY6UtOop.js +374 -0
  275. package/dist/vue_ui_chestnut-BiUZFv40.js +305 -0
  276. package/dist/vue_ui_chord-DpyR_b9A.js +275 -0
  277. package/dist/vue_ui_circle_pack-DBKz_Fi_.js +130 -0
  278. package/dist/vue_ui_dag-Ci_MOnvd.js +258 -0
  279. package/dist/vue_ui_donut-Cx2_BGcQ.js +358 -0
  280. package/dist/vue_ui_donut_evolution-CAJefrHs.js +717 -0
  281. package/dist/vue_ui_dumbbell-CClzAZTN.js +304 -0
  282. package/dist/vue_ui_flow-CCHO1Lo9.js +238 -0
  283. package/dist/vue_ui_funnel-h8q2mRpC.js +234 -0
  284. package/dist/vue_ui_galaxy-70vtkEBw.js +265 -0
  285. package/dist/vue_ui_gauge-C17CgfzN.js +178 -0
  286. package/dist/vue_ui_geo-C0UbQ0Lc.js +248 -0
  287. package/dist/vue_ui_heatmap-BqPP3J4M.js +319 -0
  288. package/dist/vue_ui_history_plot-C5nytDHh.js +413 -0
  289. package/dist/vue_ui_horizontal_bar-Bqxorkc_.js +341 -0
  290. package/dist/vue_ui_molecule-Dka4JBOp.js +231 -0
  291. package/dist/vue_ui_mood_radar-Dg4ijm53.js +281 -0
  292. package/dist/vue_ui_nested_donuts-BY9cOoHF.js +273 -0
  293. package/dist/vue_ui_onion-DTV9cup-.js +293 -0
  294. package/dist/vue_ui_parallel_coordinate_plot-CNWrDh96.js +278 -0
  295. package/dist/vue_ui_quadrant-3kjYvxpj.js +428 -0
  296. package/dist/vue_ui_quick_chart--VaYQuM4.js +139 -0
  297. package/dist/vue_ui_radar-Dxx9GJmj.js +306 -0
  298. package/dist/vue_ui_relation_circle-Cr0I2SoU.js +98 -0
  299. package/dist/vue_ui_ridgeline-CAtYca4b.js +767 -0
  300. package/dist/vue_ui_rings-DXC1VeX5.js +320 -0
  301. package/dist/vue_ui_scatter-D2S2j0ap.js +479 -0
  302. package/dist/vue_ui_spark_trend-BHMQ6_1p.js +82 -0
  303. package/dist/vue_ui_sparkbar-BR6hbuDE.js +64 -0
  304. package/dist/vue_ui_sparkgauge-xfPRHnMv.js +90 -0
  305. package/dist/vue_ui_sparkhistogram-CJRENZ1C.js +123 -0
  306. package/dist/vue_ui_sparkline-wgk7yO7E.js +151 -0
  307. package/dist/vue_ui_sparkstackbar-C5qZMmAl.js +175 -0
  308. package/dist/vue_ui_stackbar-BW_C3MXw.js +412 -0
  309. package/dist/vue_ui_stackline-DpI2LnjO.js +426 -0
  310. package/dist/vue_ui_strip_plot-8ZelqC5b.js +301 -0
  311. package/dist/vue_ui_table_heatmap-BGUjA0WA.js +80 -0
  312. package/dist/vue_ui_table_sparkline-i0Q-N_we.js +124 -0
  313. package/dist/vue_ui_thermometer-CuN7Gpez.js +123 -0
  314. package/dist/vue_ui_tiremarks-A6UHC0c3.js +122 -0
  315. package/dist/vue_ui_treemap-BQp06q-g.js +328 -0
  316. package/dist/vue_ui_vertical_bar-CJSD1FZS.js +247 -0
  317. package/dist/vue_ui_waffle-C_Ev4l7B.js +292 -0
  318. package/dist/vue_ui_wheel-DdkTPXJU.js +133 -0
  319. package/dist/vue_ui_word_cloud-B1PbsYPc.js +254 -0
  320. package/dist/vue_ui_xy-BYPqfYyx.js +482 -0
  321. package/dist/vue_ui_xy_canvas-CMHGNrLf.js +408 -0
  322. package/package.json +7 -7
  323. package/dist/A11yDataTable-BpmuNomI.js +0 -54
  324. package/dist/Arrow-dSvLFssU.js +0 -101
  325. package/dist/BaseDraggableDialog-Di8Hlru3.js +0 -249
  326. package/dist/BaseIcon-DX0hTWa-.js +0 -476
  327. package/dist/BaseLegendToggle-cMP8M2u0.js +0 -47
  328. package/dist/BaseScanner-C2j3TsSY.js +0 -36
  329. package/dist/BaseZoomControls-CVSC1-SU.js +0 -123
  330. package/dist/ColorPicker-bAxGcXK0.js +0 -271
  331. package/dist/DataTable-cMnb68Ik.js +0 -145
  332. package/dist/Legend-DGN5lY60.js +0 -104
  333. package/dist/NonSvgPenAndPaper-B6E0zEYe.js +0 -573
  334. package/dist/PackageVersion-BfrCAH6_.js +0 -10
  335. package/dist/PenAndPaper-CJDoB5H9.js +0 -527
  336. package/dist/RecursiveCircles-BE6GoMmo.js +0 -101
  337. package/dist/RecursiveLabels-BhQMS9Sm.js +0 -55
  338. package/dist/RecursiveLinks-BDwyYfP-.js +0 -83
  339. package/dist/Shape-CxJ5_Rre.js +0 -116
  340. package/dist/Slicer-D7UcO8sN.js +0 -1145
  341. package/dist/SlicerPreview-D_CgrN_7.js +0 -1580
  342. package/dist/SparkTooltip-D4bM-kfz.js +0 -68
  343. package/dist/Title-BbKoiBk2.js +0 -88
  344. package/dist/Tooltip-Cvt7Fi0Q.js +0 -299
  345. package/dist/UserOptions-DVduN6X7.js +0 -1474
  346. package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
  347. package/dist/dom-to-png-DGvx6i5V.js +0 -262
  348. package/dist/exposedLib-sJvY1pST.js +0 -22
  349. package/dist/geoProjections-BFq2sOBY.js +0 -162
  350. package/dist/img-CjTQXS0U.js +0 -57
  351. package/dist/labelUtils-DX9oyq3C.js +0 -26
  352. package/dist/lib-DMzrGQHK.js +0 -2477
  353. package/dist/patternUtils-BINhU4Ky.js +0 -615
  354. package/dist/pdf-C4H4o1Cj.js +0 -88
  355. package/dist/useAutoSizeLabelsInsideViewbox-izlGDfwu.js +0 -55
  356. package/dist/useChartAccessibility-cp6XQtqi.js +0 -15
  357. package/dist/useConfig-CG4HT3wS.js +0 -7901
  358. package/dist/useFitSvgText-2crs6Fv5.js +0 -69
  359. package/dist/useNestedProp-DH0BEVVS.js +0 -13
  360. package/dist/useObjectBindings-Dixg-RIe.js +0 -228
  361. package/dist/usePanZoom-BbDhcKWf.js +0 -141
  362. package/dist/usePrefersMotion-Co0nj1eS.js +0 -17
  363. package/dist/usePrinter-C4t8DdQ-.js +0 -51
  364. package/dist/useResponsive-DfdjqQps.js +0 -195
  365. package/dist/useStableElementSize-C48ZVcZQ.js +0 -77
  366. package/dist/useSvgExport-BTG4hVPO.js +0 -870
  367. package/dist/useTableResponsive-BpfiEtzR.js +0 -26
  368. package/dist/useThemeCheck-C9Ccl7U9.js +0 -36
  369. package/dist/useTimeLabelCollider-D3JeJ6Ye.js +0 -86
  370. package/dist/useTimeLabels-Cv0tD9In.js +0 -307
  371. package/dist/useUserOptionState-B7Ej974k.js +0 -19
  372. package/dist/vClickOutside-C6WiFswA.js +0 -13
  373. package/dist/vue-data-ui-D1ZI7Y4l.js +0 -433
  374. package/dist/vue-ui-3d-bar-DEjKYzI5.js +0 -1824
  375. package/dist/vue-ui-accordion-DFtpH_16.js +0 -92
  376. package/dist/vue-ui-age-pyramid-LiC9hTjP.js +0 -1179
  377. package/dist/vue-ui-annotator-DrKnQoHf.js +0 -2991
  378. package/dist/vue-ui-bullet-DdxEINdq.js +0 -769
  379. package/dist/vue-ui-bump-CdgO1V7z.js +0 -1250
  380. package/dist/vue-ui-candlestick-DxJnPwto.js +0 -1775
  381. package/dist/vue-ui-carousel-table-CMefu5TI.js +0 -487
  382. package/dist/vue-ui-chestnut-BnGN72PO.js +0 -2001
  383. package/dist/vue-ui-chord-DWyar45U.js +0 -1457
  384. package/dist/vue-ui-circle-pack-CQ8vF2XH.js +0 -1076
  385. package/dist/vue-ui-cursor-HHOdkmyB.js +0 -260
  386. package/dist/vue-ui-dag-BDWPBElq.js +0 -3209
  387. package/dist/vue-ui-dashboard-Dg_I3X2a.js +0 -627
  388. package/dist/vue-ui-digits-CZmdir8V.js +0 -211
  389. package/dist/vue-ui-donut-BKegKHxj.js +0 -2608
  390. package/dist/vue-ui-donut-evolution-047dE4Lu.js +0 -1578
  391. package/dist/vue-ui-dumbbell-BL4ZMChj.js +0 -1552
  392. package/dist/vue-ui-flow-BAqtyunQ.js +0 -1279
  393. package/dist/vue-ui-funnel-Pl2sEOZs.js +0 -823
  394. package/dist/vue-ui-galaxy-CBF5Wsax.js +0 -1108
  395. package/dist/vue-ui-gauge-COV_S0Vp.js +0 -955
  396. package/dist/vue-ui-geo-CaPXElPf.js +0 -1510
  397. package/dist/vue-ui-gizmo-Csn7up96.js +0 -238
  398. package/dist/vue-ui-heatmap-Cpb0BYLa.js +0 -1694
  399. package/dist/vue-ui-history-plot-ZZEdzFCE.js +0 -1564
  400. package/dist/vue-ui-horizontal-bar-BonPYUZf.js +0 -1735
  401. package/dist/vue-ui-kpi-DoHhSsDK.js +0 -130
  402. package/dist/vue-ui-mini-loader-DOTBVCLE.js +0 -138
  403. package/dist/vue-ui-molecule-mVYnXouV.js +0 -945
  404. package/dist/vue-ui-mood-radar-DPvwnc3z.js +0 -1197
  405. package/dist/vue-ui-nested-donuts-C7E6TXrZ.js +0 -1702
  406. package/dist/vue-ui-onion-BGIlFhGB.js +0 -1207
  407. package/dist/vue-ui-parallel-coordinate-plot-C6G_A9ua.js +0 -1432
  408. package/dist/vue-ui-pattern-mXZW_pvA.js +0 -146
  409. package/dist/vue-ui-pattern-seed-BcNlxb2i.js +0 -36
  410. package/dist/vue-ui-quadrant-CVpIeYOB.js +0 -1918
  411. package/dist/vue-ui-quick-chart-CcV8qn9-.js +0 -2514
  412. package/dist/vue-ui-radar-G4AV1rBo.js +0 -1259
  413. package/dist/vue-ui-rating-CqPlP88P.js +0 -370
  414. package/dist/vue-ui-relation-circle-CkZ8oFVV.js +0 -856
  415. package/dist/vue-ui-ridgeline-CBTyYn6Q.js +0 -1737
  416. package/dist/vue-ui-rings-CSIOqFiP.js +0 -1256
  417. package/dist/vue-ui-scatter-AuC46ufT.js +0 -2345
  418. package/dist/vue-ui-skeleton-YD6rZjY_.js +0 -2475
  419. package/dist/vue-ui-smiley-CY0WFv2j.js +0 -391
  420. package/dist/vue-ui-spark-trend-D8KGIt-R.js +0 -423
  421. package/dist/vue-ui-sparkbar-BjWGJjzN.js +0 -424
  422. package/dist/vue-ui-sparkgauge-Dab5mss7.js +0 -285
  423. package/dist/vue-ui-sparkhistogram-D0rsmiPh.js +0 -559
  424. package/dist/vue-ui-sparkline-BCaauQuX.js +0 -1550
  425. package/dist/vue-ui-sparkstackbar-NT5yD6xA.js +0 -672
  426. package/dist/vue-ui-stackbar-ChBk_A1c.js +0 -2393
  427. package/dist/vue-ui-stackline-Cujamlze.js +0 -2490
  428. package/dist/vue-ui-strip-plot-CGBumG6I.js +0 -1293
  429. package/dist/vue-ui-table-BX2iMku4.js +0 -1726
  430. package/dist/vue-ui-table-heatmap-KXgXYVXm.js +0 -353
  431. package/dist/vue-ui-table-sparkline-C3NWnry0.js +0 -803
  432. package/dist/vue-ui-thermometer-DvdceZB1.js +0 -743
  433. package/dist/vue-ui-timer-XWAbvuAY.js +0 -504
  434. package/dist/vue-ui-tiremarks-B-YI1RlT.js +0 -578
  435. package/dist/vue-ui-treemap-AzorGfmd.js +0 -1757
  436. package/dist/vue-ui-waffle-CKtUvdTE.js +0 -1442
  437. package/dist/vue-ui-wheel-CnsLEArZ.js +0 -908
  438. package/dist/vue-ui-word-cloud-iAme2ihe.js +0 -1644
  439. package/dist/vue-ui-world-D5rrC9rw.js +0 -14452
  440. package/dist/vue-ui-xy-C_Q9chQe.js +0 -4468
  441. package/dist/vue-ui-xy-canvas-DG0299qE.js +0 -2107
  442. package/dist/vue_ui_3d_bar-CL0iX8Qi.js +0 -22
  443. package/dist/vue_ui_age_pyramid-8H8WSL7J.js +0 -22
  444. package/dist/vue_ui_bullet-Ckqieba5.js +0 -22
  445. package/dist/vue_ui_bump-CIht647H.js +0 -22
  446. package/dist/vue_ui_candlestick-BAMn-VGw.js +0 -22
  447. package/dist/vue_ui_chestnut-BloFvDuV.js +0 -22
  448. package/dist/vue_ui_chord-Bc1_ocwK.js +0 -22
  449. package/dist/vue_ui_circle_pack-CLmw8nHe.js +0 -22
  450. package/dist/vue_ui_dag-ZOwuDBZ8.js +0 -22
  451. package/dist/vue_ui_donut-CA4dgV8J.js +0 -22
  452. package/dist/vue_ui_donut_evolution-DFQU-rqE.js +0 -22
  453. package/dist/vue_ui_dumbbell-BCOHDiPk.js +0 -22
  454. package/dist/vue_ui_flow-BErINgox.js +0 -22
  455. package/dist/vue_ui_funnel-yuaMZ-yb.js +0 -22
  456. package/dist/vue_ui_galaxy-D95AN4FT.js +0 -22
  457. package/dist/vue_ui_gauge-BMEuRC4J.js +0 -22
  458. package/dist/vue_ui_geo--kg4VoVX.js +0 -22
  459. package/dist/vue_ui_heatmap-C9u993qE.js +0 -22
  460. package/dist/vue_ui_history_plot-BCKk1CrQ.js +0 -22
  461. package/dist/vue_ui_horizontal_bar-BEagrV0T.js +0 -22
  462. package/dist/vue_ui_molecule-BtvlINUh.js +0 -22
  463. package/dist/vue_ui_mood_radar-BUs6Fdn8.js +0 -22
  464. package/dist/vue_ui_nested_donuts-DvTrWT_C.js +0 -22
  465. package/dist/vue_ui_onion-CxWH9_OZ.js +0 -22
  466. package/dist/vue_ui_parallel_coordinate_plot-DH3cFJ3n.js +0 -22
  467. package/dist/vue_ui_quadrant-DjRs--Uz.js +0 -22
  468. package/dist/vue_ui_quick_chart-DMCjEjPe.js +0 -22
  469. package/dist/vue_ui_radar-DryGBOrz.js +0 -22
  470. package/dist/vue_ui_relation_circle-CCroen7h.js +0 -22
  471. package/dist/vue_ui_ridgeline-j4rVmpEp.js +0 -22
  472. package/dist/vue_ui_rings-CxOrekqA.js +0 -22
  473. package/dist/vue_ui_scatter-Bu1EAy9H.js +0 -22
  474. package/dist/vue_ui_spark_trend-3BjrSprO.js +0 -22
  475. package/dist/vue_ui_sparkbar-BsMzz5Um.js +0 -22
  476. package/dist/vue_ui_sparkgauge-KnjASOZs.js +0 -22
  477. package/dist/vue_ui_sparkhistogram-GBdzIVvS.js +0 -22
  478. package/dist/vue_ui_sparkline-CQ8DJVJx.js +0 -22
  479. package/dist/vue_ui_sparkstackbar-BSexvOuM.js +0 -22
  480. package/dist/vue_ui_stackbar-CuDC4O4b.js +0 -22
  481. package/dist/vue_ui_stackline-QTh-nuxE.js +0 -22
  482. package/dist/vue_ui_strip_plot-B9ypi_F3.js +0 -22
  483. package/dist/vue_ui_table_heatmap-CkvipPVy.js +0 -16
  484. package/dist/vue_ui_table_sparkline-yQdijcyJ.js +0 -22
  485. package/dist/vue_ui_thermometer-BTmjRBH8.js +0 -22
  486. package/dist/vue_ui_tiremarks-DBotWfi8.js +0 -22
  487. package/dist/vue_ui_treemap-D9-AIkT-.js +0 -22
  488. package/dist/vue_ui_vertical_bar-CELc39b8.js +0 -18
  489. package/dist/vue_ui_waffle-M2h-uJQ_.js +0 -22
  490. package/dist/vue_ui_wheel-LqBz3lv4.js +0 -22
  491. package/dist/vue_ui_word_cloud-mKAtBxHR.js +0 -22
  492. package/dist/vue_ui_xy-esktmpg-.js +0 -22
  493. package/dist/vue_ui_xy_canvas-6BBDSowT.js +0 -22
@@ -1,424 +0,0 @@
1
- import { defineAsyncComponent as oe, useSlots as ne, onMounted as M, ref as k, computed as x, toRefs as se, watch as B, nextTick as ue, openBlock as s, createElementBlock as i, normalizeStyle as d, unref as o, renderSlot as $, normalizeProps as ie, mergeProps as E, createCommentVNode as p, createElementVNode as v, toDisplayString as g, Fragment as V, renderList as re, createVNode as ve, createBlock as ce } from "vue";
2
- import { j as de, t as O, m as fe, p as w, n as pe, o as ge, q as j, r as me, s as ye, u as D, k as _, l as A, X as he, v as ke } from "./lib-DMzrGQHK.js";
3
- import { u as xe } from "./useConfig-CG4HT3wS.js";
4
- import { u as be, B as Ce } from "./BaseScanner-C2j3TsSY.js";
5
- import { u as I } from "./useNestedProp-DH0BEVVS.js";
6
- import { u as we } from "./useThemeCheck-C9Ccl7U9.js";
7
- import { u as _e } from "./usePrefersMotion-Co0nj1eS.js";
8
- import Ae from "./vue_ui_sparkbar-BsMzz5Um.js";
9
- const Se = ["onClick", "onMouseenter", "onMouseleave"], $e = {
10
- key: 1,
11
- class: "vue-ui-sparkbar-datapoint-value"
12
- }, De = ["xmlns", "viewBox"], Ie = ["id"], Te = ["stop-color"], Le = ["stop-color"], ze = ["height", "width", "fill", "rx"], Ne = ["height", "width", "fill", "rx"], Pe = ["height", "width", "fill", "rx"], Fe = {
13
- key: 2,
14
- ref: "source",
15
- dir: "auto"
16
- }, We = {
17
- __name: "vue-ui-sparkbar",
18
- props: {
19
- config: {
20
- type: Object,
21
- default() {
22
- return {};
23
- }
24
- },
25
- dataset: {
26
- type: Array,
27
- default() {
28
- return [];
29
- }
30
- },
31
- /**
32
- * Used in VueUiRadar's tooltip exclusively
33
- */
34
- backgroundOpacity: {
35
- type: Number,
36
- default: null
37
- }
38
- },
39
- emits: ["selectDatapoint"],
40
- setup(R, { emit: U }) {
41
- const W = oe(
42
- () => import("./PackageVersion-BfrCAH6_.js")
43
- ), { vue_ui_sparkbar: q } = xe(), { isThemeValid: G, warnInvalidTheme: H } = we(), T = _e(), f = R, X = ne();
44
- M(() => {
45
- X["chart-background"] && console.warn(
46
- "VueUiSparkbar does not support the #chart-background slot."
47
- );
48
- });
49
- const L = k(de()), e = k(S()), J = x(() => O({
50
- defaultConfig: {
51
- style: {
52
- backgroundColor: "#99999930",
53
- animation: { show: !1 },
54
- layout: { independant: !0 },
55
- gutter: {
56
- backgroundColor: "#6A6A6A",
57
- opacity: 50
58
- },
59
- bar: {
60
- gradient: {
61
- underlayerColor: "#6A6A6A"
62
- }
63
- }
64
- }
65
- },
66
- userConfig: e.value.skeletonConfig ?? {}
67
- })), { loading: b, FINAL_DATASET: c } = be({
68
- ...se(f),
69
- FINAL_CONFIG: e,
70
- prepareConfig: S,
71
- skeletonDataset: f.config?.skeletonDataset ?? [
72
- { name: "_", value: 21, target: 25, color: "#808080" },
73
- { name: "_", value: 13, target: 25, color: "#ADADAD" },
74
- { name: "_", value: 8, target: 25, color: "#DBDBDB" }
75
- ],
76
- skeletonConfig: O({
77
- defaultConfig: e.value,
78
- userConfig: J.value
79
- })
80
- }), z = x(() => !!e.value.debug);
81
- function S() {
82
- const t = I({
83
- userConfig: f.config,
84
- defaultConfig: q
85
- }), a = t.theme;
86
- if (!a) return t;
87
- if (!G.value(t))
88
- return H(t), t;
89
- const l = I({
90
- userConfig: Ae[a] || f.config,
91
- defaultConfig: t
92
- }), n = I({
93
- userConfig: f.config,
94
- defaultConfig: l
95
- });
96
- return {
97
- ...n,
98
- customPalette: n.customPalette.length ? n.customPalette : fe[a] || w
99
- };
100
- }
101
- B(
102
- () => f.config,
103
- (t) => {
104
- e.value = S();
105
- },
106
- { deep: !0 }
107
- );
108
- const K = x(() => pe(e.value.customPalette)), m = k(
109
- c.value.map((t) => ({
110
- ...t,
111
- value: e.value.style.animation.show ? 0 : t.value || 0,
112
- formatter: t.formatter || null
113
- }))
114
- ), N = k(null);
115
- M(async () => {
116
- ge(f.dataset) && j({
117
- componentName: "VueUiSparkbar",
118
- type: "dataset",
119
- debug: z.value
120
- }), P();
121
- });
122
- function P() {
123
- if (e.value.style.animation.show && !T.value) {
124
- let h = function() {
125
- n += l / t, n < l ? (m.value = m.value.map((u, C) => ({
126
- ...u,
127
- value: u.value += a[C]
128
- })), N.value = requestAnimationFrame(h)) : m.value = c.value.map((u) => ({
129
- ...u,
130
- value: u.value || 0,
131
- formatter: u.formatter || null
132
- }));
133
- };
134
- const t = e.value.style.animation.animationFrames, a = c.value.map((u, C) => u.value / t), l = c.value.map((u) => u.value || 0).reduce((u, C) => u + C, 0);
135
- let n = 0;
136
- h();
137
- }
138
- }
139
- B(
140
- () => c.value,
141
- async (t) => {
142
- cancelAnimationFrame(N.value), m.value = c.value.map((a) => ({
143
- ...a,
144
- value: e.value.style.animation.show && !T.value ? 0 : a.value || 0,
145
- formatter: a.formatter || null
146
- })), ue(P);
147
- },
148
- { deep: !0 }
149
- );
150
- const r = k({
151
- width: 500,
152
- height: 16
153
- }), Q = x(() => Math.max(...c.value.map((t) => t.value))), Y = x(() => (c.value.forEach((t, a) => {
154
- me({
155
- datasetObject: t,
156
- requiredAttributes: ["name", "value"]
157
- }).forEach((l) => {
158
- j({
159
- componentName: "VueUiSparkbar",
160
- type: "datasetSerieAttribute",
161
- property: l,
162
- index: a,
163
- debug: z.value
164
- });
165
- });
166
- }), m.value.map((t, a) => ({
167
- ...t,
168
- value: t.value || 0,
169
- color: ye(t.color) || K.value[a] || w[a] || w[a % w.length]
170
- }))));
171
- function Z(t) {
172
- return t / Q.value;
173
- }
174
- function F(t) {
175
- return e.value.style.layout.independant ? t.target ? t.value / t.target : e.value.style.layout.percentage ? t.value > 100 ? 1 : t.value / 100 : e.value.style.layout.target === 0 ? 1 : t.value / e.value.style.layout.target : Z(t.value);
176
- }
177
- function y(t) {
178
- return e.value.style.layout.independant && t.target || e.value.style.layout.target;
179
- }
180
- const ee = U;
181
- function te(t, a) {
182
- ee("selectDatapoint", { datapoint: t, index: a }), e.value.events.datapointClick && e.value.events.datapointClick({
183
- datapoint: t,
184
- seriesIndex: a
185
- });
186
- }
187
- function le(t, a) {
188
- e.value.events.datapointEnter && e.value.events.datapointEnter({
189
- datapoint: t,
190
- seriesIndex: a
191
- });
192
- }
193
- function ae(t, a) {
194
- e.value.events.datapointLeave && e.value.events.datapointLeave({
195
- datapoint: t,
196
- seriesIndex: a
197
- });
198
- }
199
- return (t, a) => (s(), i("div", {
200
- class: "vue-data-ui-component vue-ui-sparkbar",
201
- style: d({
202
- width: "100%",
203
- position: "relative",
204
- fontFamily: e.value.style.fontFamily,
205
- background: f.backgroundOpacity !== null ? o(D)(
206
- e.value.style.backgroundColor,
207
- f.backgroundOpacity
208
- ) : e.value.style.backgroundColor
209
- })
210
- }, [
211
- t.$slots.title ? $(t.$slots, "title", ie(E({ key: 0 }, {
212
- title: {
213
- ...t.title,
214
- title: e.value.style.title.text,
215
- subtitle: e.value.style.title.subtitle.text
216
- }
217
- }))) : p("", !0),
218
- !t.$slots.title && e.value.style.title.text ? (s(), i("div", {
219
- key: 1,
220
- class: "vue-ui-sparkbar-title-container",
221
- style: d({
222
- background: e.value.style.title.backgroundColor,
223
- margin: e.value.style.title.margin,
224
- textAlign: e.value.style.title.textAlign
225
- })
226
- }, [
227
- v("div", {
228
- class: "vue-ui-sparkbar-title",
229
- style: d({
230
- fontSize: e.value.style.title.fontSize + "px",
231
- color: e.value.style.title.color,
232
- fontWeight: e.value.style.title.bold ? "bold" : "normal"
233
- })
234
- }, g(e.value.style.title.text), 5),
235
- e.value.style.title.subtitle.text ? (s(), i("div", {
236
- key: 0,
237
- class: "vue-ui-sparkbar-subtitle",
238
- style: d({
239
- fontSize: e.value.style.title.subtitle.fontSize + "px",
240
- color: e.value.style.title.subtitle.color,
241
- fontWeight: e.value.style.title.subtitle.bold ? "bold" : "normal"
242
- })
243
- }, g(e.value.style.title.subtitle.text), 5)) : p("", !0)
244
- ], 4)) : p("", !0),
245
- (s(!0), i(V, null, re(Y.value, (l, n) => (s(), i("div", {
246
- style: d(`display:flex !important;${["left", "right"].includes(e.value.style.labels.name.position) ? `flex-direction: ${e.value.style.labels.name.position === "right" ? "row-reverse" : "row"} !important` : "flex-direction:column !important"};gap:${e.value.style.gap}px !important;align-items:center;${o(c).length > 0 && n !== o(c).length - 1 ? "margin-bottom:6px" : ""}`),
247
- onClick: (h) => te(l, n),
248
- onMouseenter: (h) => le(l, n),
249
- onMouseleave: (h) => ae(l, n)
250
- }, [
251
- o(b) ? p("", !0) : $(t.$slots, "data-label", E({
252
- key: 0,
253
- ref_for: !0
254
- }, {
255
- bar: {
256
- ...l,
257
- target: y(l),
258
- valueLabel: o(_)(
259
- l.formatter,
260
- l.value,
261
- o(A)({
262
- p: l.prefix || "",
263
- v: l.value,
264
- s: l.suffix || "",
265
- r: l.rounding || 0
266
- }),
267
- { datapoint: l, seriesIndex: n }
268
- ),
269
- targetLabel: o(_)(
270
- l.formatter,
271
- y(l),
272
- o(A)({
273
- p: l.prefix || "",
274
- v: y(l),
275
- s: l.suffix || "",
276
- r: l.rounding || 0
277
- }),
278
- { datapoint: l, seriesIndex: n }
279
- )
280
- }
281
- })),
282
- !t.$slots["data-label"] || o(b) ? (s(), i("div", {
283
- key: 1,
284
- style: d({
285
- display: "flex",
286
- justifyContent: ["right", "top-right"].includes(
287
- e.value.style.labels.name.position
288
- ) ? "flex-end" : ["top-center"].includes(
289
- e.value.style.labels.name.position
290
- ) ? "center" : "flex-start",
291
- alignItems: "center",
292
- width: e.value.style.labels.name.width,
293
- color: e.value.style.labels.name.color,
294
- fontSize: e.value.style.labels.fontSize + "px",
295
- fontWeight: e.value.style.labels.name.bold ? "bold" : "normal",
296
- flexWrap: "wrap"
297
- })
298
- }, [
299
- o(b) ? (s(), i("div", {
300
- key: 0,
301
- class: "vue-ui-sparkbar-skeleton-name",
302
- style: d({
303
- width: "60px",
304
- height: e.value.style.labels.fontSize + "px",
305
- borderRadius: e.value.style.labels.fontSize / 4 + "px",
306
- display: "flex",
307
- alignItems: "center",
308
- justifyContent: "space-between",
309
- marginTop: "5px"
310
- })
311
- }, [
312
- v("div", {
313
- style: d({
314
- height: "100%",
315
- width: "40px",
316
- borderRadius: e.value.style.labels.fontSize / 4 + "px",
317
- backgroundColor: "#6A6A6A80"
318
- })
319
- }, null, 4),
320
- v("div", {
321
- style: d({
322
- height: "100%",
323
- width: "15px",
324
- borderRadius: e.value.style.labels.fontSize / 4 + "px",
325
- backgroundColor: "#6A6A6A80"
326
- })
327
- }, null, 4)
328
- ], 4)) : (s(), i(V, { key: 1 }, [
329
- v("span", null, g(l.name), 1),
330
- e.value.style.labels.value.show ? (s(), i("span", {
331
- key: 0,
332
- style: d(`font-weight:${e.value.style.labels.value.bold ? "bold" : "normal"}`),
333
- class: "vue-ui-sparkbar-datapoint-name"
334
- }, ": " + g(o(_)(
335
- l.formatter,
336
- l.value,
337
- o(A)({
338
- p: l.prefix || "",
339
- v: l.value,
340
- s: l.suffix || "",
341
- r: l.rounding || 0
342
- }),
343
- { datapoint: l, seriesIndex: n }
344
- )), 5)) : p("", !0),
345
- e.value.style.layout.showTargetValue ? (s(), i("span", $e, g(" " + e.value.style.layout.targetValueText) + " " + g(o(_)(
346
- l.formatter,
347
- y(l),
348
- o(A)({
349
- p: l.prefix || "",
350
- v: y(l),
351
- s: l.suffix || "",
352
- r: l.rounding || 0
353
- }),
354
- { datapoint: l, seriesIndex: n }
355
- )), 1)) : p("", !0)
356
- ], 64))
357
- ], 4)) : p("", !0),
358
- (s(), i("svg", {
359
- role: "img",
360
- xmlns: o(he),
361
- viewBox: `0 0 ${r.value.width} ${r.value.height}`,
362
- width: "100%"
363
- }, [
364
- ve(o(W)),
365
- v("defs", null, [
366
- v("linearGradient", {
367
- x1: "0%",
368
- y1: "0%",
369
- x2: "100%",
370
- y2: "0%",
371
- id: `sparkbar_gradient_${n}_${L.value}`
372
- }, [
373
- v("stop", {
374
- offset: "0%",
375
- "stop-color": o(D)(
376
- o(ke)(l.color, 0.03),
377
- 100 - e.value.style.bar.gradient.intensity
378
- )
379
- }, null, 8, Te),
380
- v("stop", {
381
- offset: "100%",
382
- "stop-color": l.color
383
- }, null, 8, Le)
384
- ], 8, Ie)
385
- ]),
386
- v("rect", {
387
- height: r.value.height,
388
- width: r.value.width,
389
- x: 0,
390
- y: 0,
391
- fill: o(D)(
392
- e.value.style.gutter.backgroundColor,
393
- e.value.style.gutter.opacity
394
- ),
395
- rx: r.value.height / 2
396
- }, null, 8, ze),
397
- v("rect", {
398
- height: r.value.height,
399
- width: r.value.width * F(l),
400
- x: 0,
401
- y: 0,
402
- fill: e.value.style.bar.gradient.underlayerColor,
403
- rx: r.value.height / 2
404
- }, null, 8, Ne),
405
- v("rect", {
406
- height: r.value.height,
407
- width: r.value.width * F(l),
408
- x: 0,
409
- y: 0,
410
- fill: e.value.style.bar.gradient.show ? `url(#sparkbar_gradient_${n}_${L.value})` : l.color,
411
- rx: r.value.height / 2
412
- }, null, 8, Pe)
413
- ], 8, De))
414
- ], 44, Se))), 256)),
415
- t.$slots.source ? (s(), i("div", Fe, [
416
- $(t.$slots, "source")
417
- ], 512)) : p("", !0),
418
- o(b) ? (s(), ce(Ce, { key: 3 })) : p("", !0)
419
- ], 4));
420
- }
421
- };
422
- export {
423
- We as default
424
- };
@@ -1,285 +0,0 @@
1
- import { defineAsyncComponent as H, ref as p, computed as s, toRefs as K, onMounted as D, watch as E, onBeforeUnmount as J, openBlock as i, createElementBlock as c, normalizeStyle as b, toDisplayString as x, createCommentVNode as m, unref as r, createVNode as Q, renderSlot as A, createElementVNode as g, normalizeClass as W, createBlock as Z } from "vue";
2
- import { u as w } from "./useNestedProp-DH0BEVVS.js";
3
- import { j as ee, t as I, o as te, q as R, r as ae, ao as le, X as oe, k as se, K as _, l as ne } from "./lib-DMzrGQHK.js";
4
- import { u as ue } from "./useConfig-CG4HT3wS.js";
5
- import { u as ie, B as re } from "./BaseScanner-C2j3TsSY.js";
6
- import { u as ve } from "./useThemeCheck-C9Ccl7U9.js";
7
- import { u as ce } from "./useChartAccessibility-cp6XQtqi.js";
8
- import { u as fe } from "./usePrefersMotion-Co0nj1eS.js";
9
- import de from "./vue_ui_sparkgauge-KnjASOZs.js";
10
- const me = ["xmlns", "viewBox"], ge = ["width", "height"], ye = ["id"], he = ["stop-color"], pe = ["stop-color"], be = ["d", "stroke", "stroke-linecap"], ke = ["d", "stroke", "stroke-linecap", "stroke-dashoffset"], Ce = ["x", "y", "width", "height"], xe = ["x", "y", "font-size", "fill", "font-weight"], Ae = {
11
- key: 2,
12
- ref: "source",
13
- dir: "auto"
14
- }, De = {
15
- __name: "vue-ui-sparkgauge",
16
- props: {
17
- config: {
18
- type: Object,
19
- default() {
20
- return {};
21
- }
22
- },
23
- dataset: {
24
- type: Object,
25
- default() {
26
- return {};
27
- }
28
- }
29
- },
30
- setup(T) {
31
- const j = H(
32
- () => import("./PackageVersion-BfrCAH6_.js")
33
- ), { vue_ui_sparkgauge: O } = ue(), { isThemeValid: U, warnInvalidTheme: G } = ve(), P = fe(), f = p(null), v = T, $ = p(ee()), e = p(C()), y = s(() => e.value.style.animation.show && !P.value), q = s(() => I({
34
- defaultConfig: {
35
- style: {
36
- animation: { show: !1 },
37
- background: "#99999930",
38
- colors: {
39
- min: "#CACACA",
40
- max: "#6A6A6A"
41
- },
42
- track: {
43
- autoColor: !0
44
- },
45
- gutter: {
46
- color: "#6A6A6A80"
47
- }
48
- }
49
- },
50
- userConfig: e.value.skeletonConfig ?? {}
51
- })), { loading: k, FINAL_DATASET: d } = ie({
52
- ...K(v),
53
- FINAL_CONFIG: e,
54
- prepareConfig: C,
55
- skeletonDataset: v.config?.skeletonDataset ?? {
56
- value: 0,
57
- min: -1,
58
- max: 1,
59
- title: ""
60
- },
61
- skeletonConfig: I({
62
- defaultConfig: e.value,
63
- userConfig: q.value
64
- })
65
- }), n = s(() => {
66
- const t = d.value.min ?? 0, l = d.value.max ?? 0, u = l - t;
67
- return {
68
- min: t,
69
- max: l,
70
- diff: u
71
- };
72
- }), L = s(() => n.value.diff / e.value.style.animation.speedMs), { svgRef: V } = ce({
73
- config: { text: v.dataset?.title || "" }
74
- });
75
- function C() {
76
- const t = w({
77
- userConfig: v.config,
78
- defaultConfig: O
79
- }), l = t.theme;
80
- if (!l) return t;
81
- if (!U.value(t))
82
- return G(t), t;
83
- const u = w({
84
- userConfig: de[l] || v.config,
85
- defaultConfig: t
86
- });
87
- return w({
88
- userConfig: v.config,
89
- defaultConfig: u
90
- });
91
- }
92
- D(() => {
93
- z();
94
- });
95
- const S = s(() => e.value.debug);
96
- function z() {
97
- te(v.dataset) ? R({
98
- componentName: "VueUiSparkgauge",
99
- type: "dataset",
100
- debug: S.value
101
- }) : ae({
102
- datasetObject: v.dataset,
103
- requiredAttributes: ["value", "min", "max"]
104
- }).forEach((t) => {
105
- R({
106
- componentName: "VueUiSparkgauge",
107
- type: "datasetAttribute",
108
- property: t,
109
- debug: S.value
110
- });
111
- });
112
- }
113
- E(
114
- () => v.config,
115
- () => {
116
- e.value = C(), a.value = y.value ? n.value.min : d.value.value, z();
117
- },
118
- { deep: !0 }
119
- );
120
- const o = s(() => ({
121
- height: e.value.style.height,
122
- width: 128,
123
- base: e.value.style.basePosition
124
- })), a = p(
125
- y.value ? n.value.min : d.value.value
126
- );
127
- E(
128
- [() => d.value.value, y],
129
- ([t, l]) => {
130
- M(t || 0, l);
131
- },
132
- { immediate: !0 }
133
- );
134
- const X = s(() => a.value > n.value.max ? n.value.max : a.value < n.value.min ? n.value.min : a.value);
135
- D(() => {
136
- M(d.value.value || 0);
137
- });
138
- function M(t, l = y.value) {
139
- if (f.value && (cancelAnimationFrame(f.value), f.value = null), !l) {
140
- a.value = t;
141
- return;
142
- }
143
- function u() {
144
- a.value < t ? a.value = Math.min(
145
- a.value + L.value,
146
- t
147
- ) : a.value > t && (a.value = Math.max(
148
- a.value - L.value,
149
- t
150
- )), a.value !== t ? f.value = requestAnimationFrame(u) : f.value = null;
151
- }
152
- u();
153
- }
154
- const h = s(() => d.value.title ?? ""), N = s(() => {
155
- const t = n.value.diff;
156
- if (!isFinite(t) || t === 0) return 0;
157
- const l = n.value.min, u = X.value;
158
- return u >= 0 ? (u - l) / t : (Math.abs(l) - Math.abs(u)) / t;
159
- }), F = s(() => le(
160
- e.value.style.colors.min,
161
- e.value.style.colors.max,
162
- n.value.min,
163
- n.value.max,
164
- a.value
165
- )), B = s(() => e.value.style.dataLabel.autoColor ? F.value : e.value.style.dataLabel.color), Y = s(() => e.value.style.track.autoColor ? F.value : e.value.style.track.color);
166
- return J(() => {
167
- f.value && cancelAnimationFrame(f.value);
168
- }), (t, l) => (i(), c("div", {
169
- class: "vue-data-ui-component vue-ui-sparkgauge",
170
- style: b(`font-family:${e.value.style.fontFamily};width: 100%; background:${e.value.style.background}`)
171
- }, [
172
- e.value.style.title.show && h.value && e.value.style.title.position === "top" ? (i(), c("div", {
173
- key: 0,
174
- class: "vue-data-ui-sparkgauge-label",
175
- style: b(`font-size:${e.value.style.title.fontSize}px;text-align:${e.value.style.title.textAlign};font-weight:${e.value.style.title.bold ? "bold" : "normal"};color:${e.value.style.title.color}`)
176
- }, x(h.value), 5)) : m("", !0),
177
- (i(), c("svg", {
178
- ref_key: "svgRef",
179
- ref: V,
180
- xmlns: r(oe),
181
- viewBox: `0 0 ${o.value.width} ${o.value.height}`,
182
- style: "overflow: visible; background:transparent; width:100%;"
183
- }, [
184
- Q(r(j)),
185
- t.$slots["chart-background"] && !r(k) ? (i(), c("foreignObject", {
186
- key: 0,
187
- x: 0,
188
- y: 0,
189
- width: o.value.width,
190
- height: o.value.height,
191
- style: {
192
- pointerEvents: "none"
193
- }
194
- }, [
195
- A(t.$slots, "chart-background")
196
- ], 8, ge)) : m("", !0),
197
- g("defs", null, [
198
- g("linearGradient", {
199
- id: `gradient_${$.value}`,
200
- x1: "-10%",
201
- y1: "100%",
202
- x2: "110%",
203
- y2: "100%"
204
- }, [
205
- g("stop", {
206
- offset: "0%",
207
- "stop-color": e.value.style.colors.min
208
- }, null, 8, he),
209
- g("stop", {
210
- offset: "100%",
211
- "stop-color": e.value.style.colors.max
212
- }, null, 8, pe)
213
- ], 8, ye)
214
- ]),
215
- g("path", {
216
- d: `M10 ${o.value.base} A 1 1 0 1 1 118 ${o.value.base}`,
217
- stroke: e.value.style.gutter.color,
218
- "stroke-width": 8,
219
- "stroke-linecap": e.value.style.gutter.strokeLinecap,
220
- fill: "none"
221
- }, null, 8, be),
222
- N.value !== 0 ? (i(), c("path", {
223
- key: 1,
224
- d: `M10 ${o.value.base} A 1 1 0 1 1 118 ${o.value.base}`,
225
- stroke: e.value.style.colors.showGradient ? `url(#gradient_${$.value})` : Y.value,
226
- "stroke-width": 8,
227
- "stroke-linecap": e.value.style.track.strokeLinecap,
228
- fill: "none",
229
- "stroke-dasharray": 169.5,
230
- "stroke-dashoffset": 169.5 - 169.5 * N.value,
231
- class: W({
232
- "vue-ui-sparkgauge-track": e.value.style.animation.show
233
- }),
234
- style: b(
235
- e.value.style.animation.show ? `animation: vue-ui-sparkgauge-animation ${e.value.style.animation.speedMs}ms ease-in;` : ""
236
- )
237
- }, null, 14, ke)) : m("", !0),
238
- r(k) ? (i(), c("rect", {
239
- key: 2,
240
- x: o.value.width / 2 - e.value.style.dataLabel.fontSize / 2,
241
- y: o.value.base + 6 + e.value.style.dataLabel.offsetY - e.value.style.dataLabel.fontSize,
242
- width: e.value.style.dataLabel.fontSize,
243
- height: e.value.style.dataLabel.fontSize,
244
- fill: "#6A6A6A50",
245
- rx: 3
246
- }, null, 8, Ce)) : (i(), c("text", {
247
- key: 3,
248
- "text-anchor": "middle",
249
- x: o.value.width / 2,
250
- y: o.value.base + 6 + e.value.style.dataLabel.offsetY,
251
- "font-size": e.value.style.dataLabel.fontSize,
252
- fill: B.value,
253
- "font-weight": e.value.style.dataLabel.bold ? "bold" : "normal"
254
- }, x(r(se)(
255
- e.value.style.dataLabel.formatter,
256
- r(_)(a.value),
257
- r(ne)({
258
- p: e.value.style.dataLabel.prefix,
259
- v: r(_)(a.value),
260
- s: e.value.style.dataLabel.suffix,
261
- r: e.value.style.dataLabel.rounding
262
- }),
263
- {
264
- datapoint: r(_)(a.value),
265
- color: B.value
266
- }
267
- )), 9, xe))
268
- ], 8, me)),
269
- e.value.style.title.show && h.value && e.value.style.title.position === "bottom" ? (i(), c("div", {
270
- key: 1,
271
- class: "vue-data-ui-sparkgauge-label",
272
- style: b(`font-size:${e.value.style.title.fontSize}px;text-align:${e.value.style.title.textAlign};font-weight:${e.value.style.title.bold ? "bold" : "normal"};font-weight:${e.value.style.title.bold ? "bold" : "normal"};color:${e.value.style.title.color}`)
273
- }, x(h.value), 5)) : m("", !0),
274
- t.$slots.source ? (i(), c("div", Ae, [
275
- A(t.$slots, "source")
276
- ], 512)) : m("", !0),
277
- A(t.$slots, "skeleton", {}, () => [
278
- r(k) ? (i(), Z(re, { key: 0 })) : m("", !0)
279
- ])
280
- ], 4));
281
- }
282
- };
283
- export {
284
- De as default
285
- };