vue-data-ui 3.17.13 → 3.18.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 (493) hide show
  1. package/README.md +1 -1
  2. package/dist/A11yDataTable-q2-8fSlJ.js +45 -0
  3. package/dist/Arrow-BU2Z7mfz.js +116 -0
  4. package/dist/BaseDraggableDialog-LE75fWYz.js +272 -0
  5. package/dist/BaseIcon-CL6Y7alf.js +499 -0
  6. package/dist/BaseLegendToggle-BvPOFMVZ.js +56 -0
  7. package/dist/BaseScanner-C7dmAref.js +27 -0
  8. package/dist/BaseZoomControls-DSwf4HhS.js +111 -0
  9. package/dist/ColorPicker-BGbMrtup.js +255 -0
  10. package/dist/DataTable-ZG4GX2Zg.js +150 -0
  11. package/dist/Legend-BPb8i4aC.js +114 -0
  12. package/dist/NonSvgPenAndPaper-BT3YMjgo.js +577 -0
  13. package/dist/PackageVersion-B1cPtZ3Q.js +11 -0
  14. package/dist/PenAndPaper-DxBCVZAx.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-Dbug7CtK.js +141 -0
  19. package/dist/Slicer-SEdaKYPX.js +1144 -0
  20. package/dist/SlicerPreview-BLlQTUI_.js +1523 -0
  21. package/dist/SparkTooltip-BaONR2nq.js +93 -0
  22. package/dist/Title-ByyzJzpc.js +87 -0
  23. package/dist/Tooltip-V6Z0Ko-1.js +307 -0
  24. package/dist/UserOptions-Gaw1761w.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-C9UOX1d2.js +237 -0
  99. package/dist/exposedLib-BQjH823l.js +19 -0
  100. package/dist/geoProjections-CQIkC70z.js +146 -0
  101. package/dist/img-NMY-_LiJ.js +74 -0
  102. package/dist/labelUtils-BiSegLOT.js +19 -0
  103. package/dist/lib-B83ZCydz.js +1879 -0
  104. package/dist/patternUtils-B7BWu5bV.js +258 -0
  105. package/dist/pdf-Ey2KFETK.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 +4766 -630
  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-De0rTecW.js +50 -0
  182. package/dist/useChartAccessibility-Do37qcw2.js +12 -0
  183. package/dist/useConfig-KnOLHtlJ.js +7419 -0
  184. package/dist/useFitSvgText-C-MEdAfe.js +63 -0
  185. package/dist/useNestedProp-CcxL1gUU.js +10 -0
  186. package/dist/useObjectBindings-Dc8Rf6Qy.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-CMLF900n.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-D1REqS_k.js +274 -0
  201. package/dist/vue-data-ui.js +76 -167
  202. package/dist/vue-ui-3d-bar-vO_kSCd6.js +1747 -0
  203. package/dist/vue-ui-accordion-Cf-jZELj.js +81 -0
  204. package/dist/vue-ui-age-pyramid-DHXhrP_3.js +1226 -0
  205. package/dist/vue-ui-annotator-B0o6czmF.js +2899 -0
  206. package/dist/vue-ui-bullet-C93-cf0H.js +700 -0
  207. package/dist/vue-ui-bump-C_Szk9AZ.js +1239 -0
  208. package/dist/vue-ui-candlestick-6JdMEJKO.js +1802 -0
  209. package/dist/vue-ui-carousel-table-CZ_HK0Iw.js +445 -0
  210. package/dist/vue-ui-chestnut-B8ixU585.js +2000 -0
  211. package/dist/vue-ui-chord-DC5sLapz.js +1381 -0
  212. package/dist/vue-ui-circle-pack-CsmSEwt3.js +1183 -0
  213. package/dist/vue-ui-cursor-B-QODIL3.js +283 -0
  214. package/dist/vue-ui-dag-C9LYfjS_.js +2899 -0
  215. package/dist/vue-ui-dashboard-D-f4ZaLi.js +503 -0
  216. package/dist/vue-ui-digits-CcB3odN7.js +209 -0
  217. package/dist/vue-ui-donut-DR0ngnZC.js +2396 -0
  218. package/dist/vue-ui-donut-evolution-BXpOscCe.js +1490 -0
  219. package/dist/vue-ui-dumbbell-CB_clJWA.js +1517 -0
  220. package/dist/vue-ui-flow-CUiOAEy1.js +1223 -0
  221. package/dist/vue-ui-funnel-BAlGDK0o.js +767 -0
  222. package/dist/vue-ui-galaxy-DbYNfSHb.js +1062 -0
  223. package/dist/vue-ui-gauge-Cie7jykM.js +910 -0
  224. package/dist/vue-ui-geo-Ce_gBRye.js +1504 -0
  225. package/dist/vue-ui-gizmo-B9POi_SN.js +225 -0
  226. package/dist/vue-ui-heatmap-DFfRSbnk.js +1556 -0
  227. package/dist/vue-ui-history-plot-DHp5WFgx.js +1551 -0
  228. package/dist/vue-ui-horizontal-bar-DI4yoARv.js +1669 -0
  229. package/dist/vue-ui-kpi-oUfso4UP.js +96 -0
  230. package/dist/vue-ui-mini-loader-aZMi1_uX.js +125 -0
  231. package/dist/vue-ui-molecule-D72kzel_.js +912 -0
  232. package/dist/vue-ui-mood-radar-Tw2ZFP7Y.js +1138 -0
  233. package/dist/vue-ui-nested-donuts-Bza1LczX.js +1472 -0
  234. package/dist/vue-ui-onion-BOuuib5d.js +1188 -0
  235. package/dist/vue-ui-parallel-coordinate-plot-BuQUq6-o.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-zNFIXNt9.js +1966 -0
  239. package/dist/vue-ui-quick-chart-B1a8QVUn.js +2459 -0
  240. package/dist/vue-ui-radar-VFn-YP_2.js +1214 -0
  241. package/dist/vue-ui-rating-Dxgn21FA.js +343 -0
  242. package/dist/vue-ui-relation-circle-B0sZaCgX.js +914 -0
  243. package/dist/vue-ui-ridgeline-BsBAbg5V.js +1612 -0
  244. package/dist/vue-ui-rings-CDwUzMF-.js +1231 -0
  245. package/dist/vue-ui-scatter-Du_b-zM8.js +2380 -0
  246. package/dist/vue-ui-skeleton-BAq6J_6G.js +2556 -0
  247. package/dist/vue-ui-smiley-CoHvkS0c.js +356 -0
  248. package/dist/vue-ui-spark-trend-BmCcJ17C.js +438 -0
  249. package/dist/vue-ui-sparkbar-9z05IMx8.js +393 -0
  250. package/dist/vue-ui-sparkgauge-BlWri9DP.js +255 -0
  251. package/dist/vue-ui-sparkhistogram-CHZTt8d8.js +560 -0
  252. package/dist/vue-ui-sparkline-DirLW9Nd.js +1503 -0
  253. package/dist/vue-ui-sparkstackbar-Dk6cEI2o.js +660 -0
  254. package/dist/vue-ui-stackbar-DNIrGHkt.js +2235 -0
  255. package/dist/vue-ui-stackline-HoWn_ur2.js +2362 -0
  256. package/dist/vue-ui-strip-plot-Bi8u_fLr.js +1328 -0
  257. package/dist/vue-ui-table-XLjOOfdI.js +1338 -0
  258. package/dist/vue-ui-table-heatmap-DvnFiveI.js +334 -0
  259. package/dist/vue-ui-table-sparkline-CSZf8XxP.js +697 -0
  260. package/dist/vue-ui-thermometer-7eUO_7CP.js +753 -0
  261. package/dist/vue-ui-timer-DCbxsREb.js +439 -0
  262. package/dist/vue-ui-tiremarks-p_sfTufv.js +542 -0
  263. package/dist/vue-ui-treemap-BdZOW7TM.js +1575 -0
  264. package/dist/vue-ui-waffle-Bf9dWWCM.js +1350 -0
  265. package/dist/vue-ui-wheel-CZrIiB0K.js +875 -0
  266. package/dist/vue-ui-word-cloud-BeLjxoRe.js +1644 -0
  267. package/dist/vue-ui-world-D9ahzEQ2.js +14252 -0
  268. package/dist/vue-ui-xy-DrvbVuHO.js +4063 -0
  269. package/dist/vue-ui-xy-canvas-DU7vFrQr.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,672 +0,0 @@
1
- import { defineAsyncComponent as ge, useSlots as Ye, onMounted as he, ref as d, computed as C, toRefs as Ge, watch as ye, openBlock as r, createElementBlock as i, normalizeStyle as b, createElementVNode as f, toDisplayString as K, createBlock as te, createCommentVNode as m, unref as p, createVNode as me, Fragment as L, renderList as R, normalizeClass as Y, renderSlot as N, normalizeProps as G, guardReactiveProps as W, withCtx as le } from "vue";
2
- import { j as be, t as ke, m as We, p as c, s as z, n as qe, o as Xe, q as we, r as Je, l as q, k as oe, X as Qe, u as _e, v as xe, T as Ze } from "./lib-DMzrGQHK.js";
3
- import { u as et } from "./useConfig-CG4HT3wS.js";
4
- import { u as tt, B as lt } from "./BaseScanner-C2j3TsSY.js";
5
- import { u as ae } from "./useNestedProp-DH0BEVVS.js";
6
- import { u as ot } from "./useThemeCheck-C9Ccl7U9.js";
7
- import { u as at } from "./useChartAccessibility-cp6XQtqi.js";
8
- import st from "./vue_ui_sparkstackbar-BSexvOuM.js";
9
- import { B as nt } from "./BaseLegendToggle-cMP8M2u0.js";
10
- import { A as rt } from "./A11yDataTable-BpmuNomI.js";
11
- import { _ as ut } from "./_plugin-vue_export-helper-CHgC5LLL.js";
12
- const it = ["id"], ct = { style: { position: "relative" } }, vt = ["xmlns", "viewBox", "aria-describedby"], dt = ["id"], ft = ["stop-color"], pt = ["stop-color"], gt = ["stop-color"], ht = {
13
- id: "stackPill",
14
- clipPathUnits: "objectBoundingBox"
15
- }, yt = ["fill"], mt = {
16
- key: 0,
17
- "clip-path": "url(#stackPill)"
18
- }, bt = ["x", "width", "height", "fill"], kt = ["x", "width", "height", "fill", "stroke"], wt = ["x", "width", "height", "onClick", "onMouseenter", "onMouseleave"], _t = ["width", "height", "rx"], xt = {
19
- key: 0,
20
- style: { position: "absolute", top: "100%", left: "0", width: "100%" },
21
- "data-dom-to-png-ignore": "",
22
- "aria-hidden": "true"
23
- }, Ct = ["aria-pressed", "aria-label", "onClick", "onFocus", "onKeydown"], $t = { style: { display: "flex", "flex-direction": "row", "align-items": "center", gap: "4px", "justify-content": "center" } }, St = ["height", "width"], At = ["id"], It = ["stop-color"], Ft = ["stop-color"], Tt = ["fill"], Pt = {
24
- key: 3,
25
- ref: "source",
26
- dir: "auto"
27
- }, Dt = {
28
- __name: "vue-ui-sparkstackbar",
29
- props: {
30
- config: {
31
- type: Object,
32
- default() {
33
- return {};
34
- }
35
- },
36
- dataset: {
37
- type: Array,
38
- default() {
39
- return [];
40
- }
41
- }
42
- },
43
- emits: ["selectDatapoint"],
44
- setup(Ce, { expose: $e, emit: Se }) {
45
- const Ae = ge(
46
- () => import("./PackageVersion-BfrCAH6_.js")
47
- ), Ie = ge(() => import("./Tooltip-Cvt7Fi0Q.js")), { vue_ui_sparkstackbar: Fe } = et(), { isThemeValid: Te, warnInvalidTheme: Pe } = ot(), $ = Ce, De = Ye();
48
- he(() => {
49
- De["chart-background"] && console.warn(
50
- "VueUiSparkStackbar does not support the #chart-background slot."
51
- );
52
- });
53
- const se = d(null), S = d(be()), A = d(!1), X = d(""), U = d(null), M = d(!1), k = d(null), ne = d({ x: 0, y: 0 }), I = d("pointer"), J = d(!1), w = d(null), Le = d([]), t = d(Q()), re = C(() => t.value.useCursorPointer), Be = C(() => ke({
54
- defaultConfig: {
55
- style: {
56
- backgroundColor: "#99999930",
57
- animation: { show: !1 },
58
- bar: { gradient: { inderlayerColor: "#6A6A6A" } },
59
- title: {
60
- backgroundColor: "transparent"
61
- }
62
- }
63
- },
64
- userConfig: t.value.skeletonConfig ?? {}
65
- })), { loading: F, FINAL_DATASET: x } = tt({
66
- ...Ge($),
67
- FINAL_CONFIG: t,
68
- prepareConfig: Q,
69
- skeletonDataset: $.config?.skeletonDataset ?? [
70
- { name: "_", value: 8, color: "#808080" },
71
- { name: "_", value: 5, color: "#ADADAD" },
72
- { name: "_", value: 3, color: "#DBDBDB" }
73
- ],
74
- skeletonConfig: ke({
75
- defaultConfig: t.value,
76
- userConfig: Be.value
77
- })
78
- }), { svgRef: V } = at({
79
- config: t.value.style.title
80
- });
81
- function Q() {
82
- const e = ae({
83
- userConfig: $.config,
84
- defaultConfig: Fe
85
- }), l = e.theme;
86
- if (!l) return e;
87
- if (!Te.value(e))
88
- return Pe(e), e;
89
- const o = ae({
90
- userConfig: st[l] || $.config,
91
- defaultConfig: e
92
- }), a = ae({
93
- userConfig: $.config,
94
- defaultConfig: o
95
- });
96
- return {
97
- ...a,
98
- customPalette: a.customPalette.length ? a.customPalette : We[l] || c
99
- };
100
- }
101
- ye(
102
- () => $.config,
103
- (e) => {
104
- t.value = Q(), ce();
105
- },
106
- { deep: !0 }
107
- ), ye(
108
- () => x.value,
109
- (e) => {
110
- T.value = x.value.map((l, o) => ({
111
- ...l,
112
- color: l.color ? z(l.color) : B.value[o] || c[o] || c[o % c.length]
113
- })), ue();
114
- },
115
- { deep: !0 }
116
- );
117
- const B = C(() => qe(t.value.customPalette)), T = d(
118
- x.value.map((e, l) => ({
119
- ...e,
120
- value: t.value.style.animation.show ? 0 : e.value || 0,
121
- color: e.color ? z(e.color) : B.value[l] || c[l] || c[l % c.length]
122
- }))
123
- ), P = d(!0);
124
- function ue() {
125
- if (!t.value.style.animation.show) {
126
- P.value = !1;
127
- return;
128
- }
129
- const e = t.value.style.animation.animationFrames, l = x.value.map((u) => u.value || 0), o = l.map((u) => u / e), a = l.reduce((u, s) => u + s, 0);
130
- let n = 0;
131
- P.value = !0, T.value = x.value.map((u, s) => ({
132
- ...u,
133
- value: 0,
134
- color: u.color ? z(u.color) : B.value[s] || c[s] || c[s % c.length]
135
- }));
136
- function _() {
137
- n += a / e, n < a ? (T.value = T.value.map((u, s) => ({
138
- ...u,
139
- value: Math.min(u.value + o[s], l[s]),
140
- color: u.color ? z(u.color) : B.value[s] || c[s] || c[s % c.length]
141
- })), requestAnimationFrame(_)) : (P.value = !1, T.value = x.value.map((u, s) => ({
142
- ...u,
143
- value: l[s],
144
- color: u.color ? z(u.color) : B.value[s] || c[s] || c[s % c.length],
145
- id: be()
146
- })));
147
- }
148
- _();
149
- }
150
- he(() => {
151
- ce();
152
- });
153
- const ie = C(() => t.value.debug);
154
- function ce() {
155
- Xe($.dataset) ? we({
156
- componentName: "VueUiSparkStackbar",
157
- type: "dataset",
158
- debug: ie.value
159
- }) : $.dataset.forEach((e, l) => {
160
- Je({
161
- datasetObject: e,
162
- requiredAttributes: ["name", "value"]
163
- }).forEach((o) => {
164
- we({
165
- componentName: "VueUiSparkStackbar",
166
- type: "datasetSerieAttribute",
167
- property: o,
168
- index: l,
169
- debug: ie.value
170
- });
171
- });
172
- }), ue();
173
- }
174
- const h = d({
175
- width: 500,
176
- height: 16
177
- }), v = d([]), ve = C(() => x.value.map((e) => e.value || 0).filter((e, l) => !v.value.includes(l)).reduce((e, l) => e + l, 0)), y = C(() => T.value.map((e, l) => {
178
- const o = e.value || 0, a = o / ve.value, n = isNaN(a) ? 0 : a, _ = n * h.value.width;
179
- return {
180
- ...e,
181
- color: z(
182
- x.value[l]?.color ? x.value[l]?.color : B.value[l] || c[l] || c[l % c.length]
183
- ),
184
- value: o,
185
- proportion: n,
186
- width: _,
187
- seriesIndex: l,
188
- proportionLabel: q({
189
- v: n * 100,
190
- s: "%",
191
- r: t.value.style.legend.percentage.rounding
192
- })
193
- };
194
- })), Z = C(() => y.value.filter(
195
- (e, l) => !v.value.includes(l)
196
- ));
197
- function Ee() {
198
- v.value.length ? v.value = [] : y.value.forEach((e, l) => {
199
- v.value.push(l);
200
- });
201
- }
202
- function O(e) {
203
- v.value.includes(e) ? v.value = v.value.filter((l) => l !== e) : v.value.length < T.value.length - 1 && v.value.push(e);
204
- }
205
- function de(e) {
206
- if (!y.value.length)
207
- return t.value.debug && console.warn("VueUiSparkStackbar - There are no series to show."), null;
208
- const l = y.value.find((o) => o.name === e);
209
- return l || (t.value.debug && console.warn(
210
- `VueUiSparkStackbar - Series name not found "${e}"`
211
- ), null);
212
- }
213
- function Ke(e) {
214
- const l = de(e);
215
- l !== null && v.value.includes(l.id) && O(l.seriesIndex);
216
- }
217
- function Ne(e) {
218
- const l = de(e);
219
- l !== null && (v.value.includes(l.id) || O(l.seriesIndex));
220
- }
221
- const g = C(() => {
222
- let e = 0;
223
- const l = [];
224
- for (let o = 0; o < Z.value.length; o += 1)
225
- l.push({
226
- ...Z.value[o],
227
- start: e
228
- }), e += Z.value[o].width;
229
- return l;
230
- }), ze = Se;
231
- function j(e, l, o = !1) {
232
- ze("selectDatapoint", { datapoint: e, index: l }), t.value.events.datapointClick && !o && t.value.events.datapointClick({
233
- datapoint: e,
234
- seriesIndex: e.seriesIndex
235
- });
236
- }
237
- function Me({ datapoint: e, seriesIndex: l }) {
238
- A.value = !1, w.value = null, k.value = null, I.value = "pointer", t.value.events.datapointLeave && t.value.events.datapointLeave({
239
- datapoint: e,
240
- seriesIndex: e.seriesIndex
241
- });
242
- }
243
- function fe({ datapoint: e, seriesIndex: l, triggerMode: o = "pointer" }) {
244
- if (M.value = !1, t.value.events.datapointEnter && t.value.events.datapointEnter({
245
- datapoint: e,
246
- seriesIndex: e.seriesIndex
247
- }), !t.value.style.tooltip.show)
248
- return;
249
- I.value = o, U.value = {
250
- datapoint: e,
251
- seriesIndex: l,
252
- config: t.value,
253
- series: y.value
254
- }, A.value = !0, w.value = l;
255
- const a = t.value.style.tooltip.customFormat;
256
- if (Ze(a))
257
- try {
258
- const n = a({
259
- seriesIndex: e.seriesIndex,
260
- datapoint: e,
261
- series: y.value,
262
- config: t.value
263
- });
264
- typeof n == "string" && (X.value = n, M.value = !0);
265
- } catch {
266
- console.warn("Custom format cannot be applied."), M.value = !1;
267
- }
268
- if (!M.value) {
269
- let n = "";
270
- n += `<div style="width:100%;text-align:center;border-bottom:1px solid ${t.value.style.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${e.name}</div>`, n += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${e.color}"/></svg>`, n += `<b>${e.proportionLabel}</b>`, n += `<span>(${oe(
271
- t.value.style.legend.value.formatter,
272
- e.value,
273
- q({
274
- p: t.value.style.legend.value.prefix,
275
- v: e.value,
276
- s: t.value.style.legend.value.suffix,
277
- r: t.value.style.legend.value.rounding
278
- }),
279
- {
280
- datapoint: e,
281
- seriesIndex: l
282
- }
283
- )})</span>`, X.value = `<div>${n}</div>`;
284
- }
285
- }
286
- function H(e) {
287
- const l = Le.value[e];
288
- l && typeof l.focus == "function" && l.focus();
289
- }
290
- function Ve(e) {
291
- if (!Number.isFinite(e) || !V.value) return;
292
- const l = g.value[e];
293
- if (!l) return;
294
- const o = V.value.getBoundingClientRect(), a = l.start + l.width / 2, n = h.value.height / 2;
295
- ne.value = {
296
- x: o.left + a / h.value.width * o.width,
297
- y: o.top + n / h.value.height * o.height
298
- };
299
- }
300
- function Re() {
301
- k.value = null, J.value = !0;
302
- }
303
- function Ue() {
304
- k.value = null, I.value = "pointer", A.value = !1, w.value = null, J.value = !1;
305
- }
306
- function Oe(e) {
307
- if (!V.value || document.activeElement !== V.value || !g.value.length) return;
308
- const l = e.key === "ArrowLeft", o = e.key === "ArrowRight", a = e.key === "Enter" || e.key === " ", n = e.key === "Escape", _ = e.key === "Home", u = e.key === "End";
309
- if (!l && !o && !a && !n && !_ && !u)
310
- return;
311
- if (e.preventDefault(), e.stopPropagation(), n) {
312
- k.value = null, I.value = "pointer", A.value = !1, w.value = null;
313
- return;
314
- }
315
- if (a) {
316
- if (k.value === null) return;
317
- const D = g.value[k.value];
318
- if (!D) return;
319
- j(D, D.seriesIndex);
320
- return;
321
- }
322
- let s = k.value;
323
- _ ? s = 0 : u ? s = g.value.length - 1 : s === null || s < 0 || s >= g.value.length ? s = o ? 0 : g.value.length - 1 : o ? (s += 1, s >= g.value.length && (s = 0)) : l && (s -= 1, s < 0 && (s = g.value.length - 1));
324
- const E = g.value[s];
325
- E && (k.value = s, Ve(s), fe({
326
- datapoint: E,
327
- seriesIndex: E.seriesIndex,
328
- triggerMode: "keyboard"
329
- }));
330
- }
331
- function je(e) {
332
- A.value = !1, k.value = null, I.value = "pointer", w.value = e.seriesIndex;
333
- }
334
- function pe() {
335
- k.value = null, I.value = "pointer", A.value = !1, w.value = null;
336
- }
337
- function He(e, l, o) {
338
- const a = e.key === "Enter" || e.key === " ", n = e.key === "ArrowLeft" || e.key === "ArrowUp", _ = e.key === "ArrowRight" || e.key === "ArrowDown", u = e.key === "Home", s = e.key === "End", E = e.key === "Escape";
339
- if (!(!a && !n && !_ && !u && !s && !E)) {
340
- if (e.preventDefault(), e.stopPropagation(), E) {
341
- pe();
342
- return;
343
- }
344
- if (a) {
345
- O(o), j(l, o, !0);
346
- return;
347
- }
348
- if (u) {
349
- H(0);
350
- return;
351
- }
352
- if (s) {
353
- H(y.value.length - 1);
354
- return;
355
- }
356
- if (n) {
357
- const D = o <= 0 ? y.value.length - 1 : o - 1;
358
- H(D);
359
- return;
360
- }
361
- if (_) {
362
- const D = o >= y.value.length - 1 ? 0 : o + 1;
363
- H(D);
364
- }
365
- }
366
- }
367
- const ee = C(() => ({
368
- headers: [
369
- t.value.a11y.translations.series,
370
- t.value.a11y.translations.percentage,
371
- t.value.a11y.translations.value
372
- ],
373
- rows: y.value.map((e, l) => [
374
- e.name,
375
- v.value.includes(l) ? " - " : e.proportionLabel,
376
- oe(
377
- t.value.style.legend.value.formatter,
378
- e.value,
379
- q({
380
- p: t.value.style.legend.value.prefix,
381
- v: e.value,
382
- s: t.value.style.legend.value.suffix,
383
- r: t.value.style.legend.value.rounding
384
- }),
385
- {
386
- datapoint: e,
387
- seriesIndex: l
388
- }
389
- )
390
- ])
391
- }));
392
- return $e({
393
- hideSeries: Ne,
394
- showSeries: Ke
395
- }), (e, l) => (r(), i("div", {
396
- class: "vue-data-ui-component vue-ui-spark-stackbar",
397
- ref_key: "sparkstackbarChart",
398
- ref: se,
399
- style: b(`width:100%; background:${t.value.style.backgroundColor}`)
400
- }, [
401
- f("div", {
402
- id: `chart-instructions-${S.value}`,
403
- class: "sr-only"
404
- }, [
405
- f("p", null, K(t.value.a11y.translations.keyboardNavigation), 1)
406
- ], 8, it),
407
- ee.value?.rows?.length ? (r(), te(rt, {
408
- key: 0,
409
- uid: S.value,
410
- head: ee.value.headers,
411
- body: ee.value.rows,
412
- notice: t.value.a11y.translations.tableAvailable,
413
- caption: t.value.a11y.translations.tableCaption
414
- }, null, 8, ["uid", "head", "body", "notice", "caption"])) : m("", !0),
415
- t.value.style.title.text ? (r(), i("div", {
416
- key: 1,
417
- style: b(`width:calc(100% - 12px);background:transparent;margin:0 auto;margin:${t.value.style.title.margin};padding: 0 6px;text-align:${t.value.style.title.textAlign}`)
418
- }, [
419
- f("div", {
420
- class: "atom-title",
421
- style: b(`font-size:${t.value.style.title.fontSize}px;color:${t.value.style.title.color};font-weight:${t.value.style.title.bold ? "bold" : "normal"}`)
422
- }, K(t.value.style.title.text), 5),
423
- t.value.style.title.subtitle.text ? (r(), i("div", {
424
- key: 0,
425
- class: "atom-subtitle",
426
- style: b(`font-size:${t.value.style.title.subtitle.fontSize}px;color:${t.value.style.title.subtitle.color};font-weight:${t.value.style.title.subtitle.bold ? "bold" : "normal"}`)
427
- }, K(t.value.style.title.subtitle.text), 5)) : m("", !0)
428
- ], 4)) : m("", !0),
429
- f("div", ct, [
430
- (r(), i("svg", {
431
- ref_key: "svgRef",
432
- ref: V,
433
- xmlns: p(Qe),
434
- width: "100%",
435
- viewBox: `0 0 ${h.value.width} ${h.value.height}`,
436
- "aria-describedby": `chart-instructions-${S.value}`,
437
- tabindex: "0",
438
- onFocus: Re,
439
- onBlur: Ue,
440
- onKeydown: Oe
441
- }, [
442
- me(p(Ae)),
443
- f("defs", null, [
444
- (r(!0), i(L, null, R(g.value, (o, a) => (r(), i("linearGradient", {
445
- key: `stack_gradient_${a}`,
446
- gradientTransform: "rotate(90)",
447
- id: `stack_gradient_${a}_${S.value}`
448
- }, [
449
- f("stop", {
450
- offset: "0%",
451
- "stop-color": o.color
452
- }, null, 8, ft),
453
- f("stop", {
454
- offset: "50%",
455
- "stop-color": p(_e)(
456
- p(xe)(o.color, 0.05),
457
- 100 - t.value.style.bar.gradient.intensity
458
- )
459
- }, null, 8, pt),
460
- f("stop", {
461
- offset: "100%",
462
- "stop-color": o.color
463
- }, null, 8, gt)
464
- ], 8, dt))), 128)),
465
- f("clipPath", ht, [
466
- f("rect", {
467
- x: "0.005",
468
- y: "-2",
469
- width: "0.99",
470
- height: "5",
471
- rx: "3",
472
- ry: "3",
473
- fill: t.value.style.backgroundColor
474
- }, null, 8, yt)
475
- ])
476
- ]),
477
- ve.value > 0 ? (r(), i("g", mt, [
478
- (r(!0), i(L, null, R(g.value, (o, a) => (r(), i("rect", {
479
- key: `stack_underlayer_${a}`,
480
- x: o.start,
481
- y: 0,
482
- width: o.width,
483
- height: h.value.height,
484
- fill: t.value.style.bar.gradient.underlayerColor,
485
- class: Y({ animated: !P.value && !p(F) }),
486
- style: b({
487
- opacity: w.value !== null && t.value.style.tooltip.show ? w.value === a ? 1 : 0.5 : 1
488
- })
489
- }, null, 14, bt))), 128)),
490
- (r(!0), i(L, null, R(g.value, (o, a) => (r(), i("rect", {
491
- key: `stack_${a}`,
492
- x: o.start,
493
- y: 0,
494
- width: o.width,
495
- height: h.value.height,
496
- fill: t.value.style.bar.gradient.show ? `url(#stack_gradient_${a}_${S.value})` : o.color,
497
- stroke: t.value.style.backgroundColor,
498
- "stroke-linecap": "round",
499
- class: Y({ animated: !P.value && !p(F) }),
500
- style: b({
501
- opacity: w.value !== null && t.value.style.tooltip.show ? w.value === a ? 1 : 0.5 : 1
502
- })
503
- }, null, 14, kt))), 128)),
504
- (r(!0), i(L, null, R(g.value, (o, a) => (r(), i("rect", {
505
- key: `stack_trap_${a}`,
506
- x: o.start,
507
- y: 0,
508
- width: o.width,
509
- height: h.value.height,
510
- fill: "transparent",
511
- stroke: "none",
512
- class: Y({ animated: !P.value && !p(F) }),
513
- onClick: () => j(o, a),
514
- onMouseenter: () => fe({ datapoint: o, seriesIndex: a }),
515
- onMouseleave: (n) => Me({ datapoint: o, seriesIndex: a })
516
- }, null, 42, wt))), 128))
517
- ])) : (r(), i("rect", {
518
- key: 1,
519
- x: 2,
520
- y: 1,
521
- width: h.value.width - 4,
522
- height: h.value.height - 2,
523
- stroke: "#CCCCCC",
524
- "stroke-width": "2",
525
- fill: "transparent",
526
- rx: (h.value.height - 4) / 2
527
- }, null, 8, _t))
528
- ], 40, vt)),
529
- e.$slots.hint ? (r(), i("div", xt, [
530
- N(e.$slots, "hint", G(W({
531
- hint: t.value.a11y.translations.keyboardNavigation,
532
- isVisible: J.value
533
- })), void 0, !0)
534
- ])) : m("", !0)
535
- ]),
536
- t.value.style.legend.show ? (r(), i("div", {
537
- key: 2,
538
- style: b(`background:transparent;margin:0 auto;margin:${t.value.style.legend.margin};justify-content:${t.value.style.legend.textAlign === "left" ? "flex-start" : t.value.style.legend.textAlign === "right" ? "flex-end" : "center"}`),
539
- class: "vue-ui-sparkstackbar-legend",
540
- "aria-label": "legend",
541
- role: "toolbar"
542
- }, [
543
- t.value.style.legend.selectAllToggle.show && y.value.length > 2 && !p(F) ? (r(), te(nt, {
544
- key: 0,
545
- backgroundColor: t.value.style.legend.selectAllToggle.backgroundColor,
546
- color: t.value.style.legend.selectAllToggle.color,
547
- fontSize: t.value.style.legend.fontSize,
548
- checked: v.value.length > 0,
549
- isCursorPointer: re.value,
550
- onToggle: Ee
551
- }, null, 8, ["backgroundColor", "color", "fontSize", "checked", "isCursorPointer"])) : m("", !0),
552
- (r(!0), i(L, null, R(y.value, (o, a) => (r(), i("div", {
553
- role: "button",
554
- tabindex: "0",
555
- "aria-pressed": v.value.includes(a),
556
- "aria-label": `${o.name}, ${v.value.includes(a) ? "hidden" : "visible"}, ${o.proportionLabel}`,
557
- style: b(`font-size:${t.value.style.legend.fontSize}px;cursor:${re.value ? "pointer" : "default"}`),
558
- class: Y({
559
- "vue-ui-sparkstackbar-legend-item": !0,
560
- "vue-ui-sparkstackbar-legend-item-unselected": v.value.includes(a)
561
- }),
562
- onClick: (n) => {
563
- O(a), j(o, a, !0);
564
- },
565
- onFocus: (n) => je(o),
566
- onBlur: pe,
567
- onKeydown: (n) => He(n, o, a)
568
- }, [
569
- f("div", $t, [
570
- (r(), i("svg", {
571
- height: `${t.value.style.legend.fontSize}px`,
572
- width: `${t.value.style.legend.fontSize}px`,
573
- viewBox: "0 0 10 10"
574
- }, [
575
- f("defs", null, [
576
- f("radialGradient", {
577
- id: `legend_grad_${a}-${S.value}`
578
- }, [
579
- f("stop", {
580
- offset: "0%",
581
- "stop-color": p(F) ? "#FFFFFF" : p(_e)(
582
- p(xe)(o.color, 0.05),
583
- 100 - t.value.style.bar.gradient.intensity
584
- )
585
- }, null, 8, It),
586
- f("stop", {
587
- offset: "100%",
588
- "stop-color": o.color
589
- }, null, 8, Ft)
590
- ], 8, At)
591
- ]),
592
- f("circle", {
593
- cx: 5,
594
- cy: 5,
595
- r: 5,
596
- fill: t.value.style.bar.gradient.show ? `url(#legend_grad_${a}-${S.value})` : o.color
597
- }, null, 8, Tt)
598
- ], 8, St)),
599
- p(F) ? m("", !0) : (r(), i(L, { key: 0 }, [
600
- f("span", {
601
- style: b(`color:${t.value.style.legend.name.color}; font-weight:${t.value.style.legend.name.bold ? "bold" : "normal"}`)
602
- }, K(o.name), 5),
603
- P.value ? m("", !0) : (r(), i(L, { key: 0 }, [
604
- t.value.style.legend.percentage.show ? (r(), i("span", {
605
- key: 0,
606
- style: b(`font-weight:${t.value.style.legend.percentage.bold ? "bold" : "normal"};color:${t.value.style.legend.percentage.color}`)
607
- }, K(v.value.includes(a) ? " - " : o.proportionLabel), 5)) : m("", !0),
608
- t.value.style.legend.value.show ? (r(), i("span", {
609
- key: 1,
610
- style: b(`font-weight:${t.value.style.legend.value.bold ? "bold" : "normal"};color:${t.value.style.legend.value.color}`)
611
- }, " (" + K(p(oe)(
612
- t.value.style.legend.value.formatter,
613
- o.value,
614
- p(q)({
615
- p: t.value.style.legend.value.prefix,
616
- v: o.value,
617
- s: t.value.style.legend.value.suffix,
618
- r: t.value.style.legend.value.rounding
619
- }),
620
- { datapoint: o, seriesIndex: a }
621
- )) + ") ", 5)) : m("", !0)
622
- ], 64))
623
- ], 64))
624
- ])
625
- ], 46, Ct))), 256))
626
- ], 4)) : m("", !0),
627
- me(p(Ie), {
628
- teleportTo: t.value.style.tooltip.teleportTo,
629
- show: A.value && t.value.style.tooltip.show,
630
- parent: se.value,
631
- backgroundColor: t.value.style.tooltip.backgroundColor,
632
- color: t.value.style.tooltip.color,
633
- fontSize: t.value.style.tooltip.fontSize,
634
- borderRadius: t.value.style.tooltip.borderRadius,
635
- borderColor: t.value.style.tooltip.borderColor,
636
- borderWidth: t.value.style.tooltip.borderWidth,
637
- backgroundOpacity: t.value.style.tooltip.backgroundOpacity,
638
- position: t.value.style.tooltip.position,
639
- content: X.value,
640
- isCustom: M.value,
641
- offsetY: -124 + t.value.style.tooltip.offsetY,
642
- blockShiftY: !0,
643
- smooth: t.value.style.tooltip.smooth,
644
- backdropFilter: t.value.style.tooltip.backdropFilter,
645
- smoothForce: t.value.style.tooltip.smoothForce,
646
- smoothSnapThreshold: t.value.style.tooltip.smoothSnapThreshold,
647
- isA11yMode: I.value === "keyboard",
648
- a11yPosition: ne.value
649
- }, {
650
- "tooltip-before": le(() => [
651
- N(e.$slots, "tooltip-before", G(W({ ...U.value })), void 0, !0)
652
- ]),
653
- tooltip: le(() => [
654
- N(e.$slots, "tooltip", G(W({ ...U.value })), void 0, !0)
655
- ]),
656
- "tooltip-after": le(() => [
657
- N(e.$slots, "tooltip-after", G(W({ ...U.value })), void 0, !0)
658
- ]),
659
- _: 3
660
- }, 8, ["teleportTo", "show", "parent", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "content", "isCustom", "offsetY", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold", "isA11yMode", "a11yPosition"]),
661
- e.$slots.source ? (r(), i("div", Pt, [
662
- N(e.$slots, "source", {}, void 0, !0)
663
- ], 512)) : m("", !0),
664
- N(e.$slots, "skeleton", {}, () => [
665
- p(F) ? (r(), te(lt, { key: 0 })) : m("", !0)
666
- ], !0)
667
- ], 4));
668
- }
669
- }, jt = /* @__PURE__ */ ut(Dt, [["__scopeId", "data-v-f8245b51"]]);
670
- export {
671
- jt as default
672
- };