vue-data-ui 3.20.1 → 3.20.2

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 (322) hide show
  1. package/dist/A11yDataTable-BCbtxMU6.js +45 -0
  2. package/dist/Arrow-D6j6ocXm.js +116 -0
  3. package/dist/BaseDraggableDialog-4hDW-Rj2.js +272 -0
  4. package/dist/BaseIcon-DfLoHNUj.js +502 -0
  5. package/dist/BaseLegendToggle-C_Db-y7s.js +56 -0
  6. package/dist/BaseScanner-Dr2a1Msy.js +27 -0
  7. package/dist/BaseZoomControls-CG7hI_1P.js +111 -0
  8. package/dist/ColorPicker-Bjwxnvfh.js +255 -0
  9. package/dist/DataTable-B--IN22e.js +150 -0
  10. package/dist/Legend-Cz2uQ5gs.js +114 -0
  11. package/dist/NonSvgPenAndPaper-gLNJ1Lmr.js +577 -0
  12. package/dist/PackageVersion-f0MuYk3R.js +11 -0
  13. package/dist/PenAndPaper-DqrClVfb.js +461 -0
  14. package/dist/RecursiveCircles-D6aDPmoe.js +117 -0
  15. package/dist/RecursiveLabels-D9rfID6q.js +56 -0
  16. package/dist/RecursiveLinks-BygcpDiT.js +78 -0
  17. package/dist/Shape-BPCJfphn.js +141 -0
  18. package/dist/Slicer-SHBj0VaV.js +1144 -0
  19. package/dist/SlicerPreview-DdihbUSJ.js +1668 -0
  20. package/dist/SparkTooltip-CfE6yCad.js +93 -0
  21. package/dist/Title-NWp4qB4K.js +87 -0
  22. package/dist/Tooltip-BENq327o.js +312 -0
  23. package/dist/UserOptions-C1NgoGu6.js +1411 -0
  24. package/dist/_plugin-vue_export-helper-B3ysoDQm.js +8 -0
  25. package/dist/canvas-lib-BOP_HS11.js +79 -0
  26. package/dist/components/arrow.js +2 -0
  27. package/dist/components/vue-ui-3d-bar.js +2 -0
  28. package/dist/components/vue-ui-accordion.js +2 -0
  29. package/dist/components/vue-ui-age-pyramid.js +2 -0
  30. package/dist/components/vue-ui-annotator.js +2 -0
  31. package/dist/components/vue-ui-bullet.js +2 -0
  32. package/dist/components/vue-ui-bump.js +2 -0
  33. package/dist/components/vue-ui-candlestick.js +2 -0
  34. package/dist/components/vue-ui-carousel-table.js +2 -0
  35. package/dist/components/vue-ui-chestnut.js +2 -0
  36. package/dist/components/vue-ui-chord.js +2 -0
  37. package/dist/components/vue-ui-circle-pack.js +2 -0
  38. package/dist/components/vue-ui-cursor.js +2 -0
  39. package/dist/components/vue-ui-dag.js +2 -0
  40. package/dist/components/vue-ui-dashboard.js +2 -0
  41. package/dist/components/vue-ui-digits.js +2 -0
  42. package/dist/components/vue-ui-donut-evolution.js +2 -0
  43. package/dist/components/vue-ui-donut.js +2 -0
  44. package/dist/components/vue-ui-dumbbell.js +2 -0
  45. package/dist/components/vue-ui-flow.js +2 -0
  46. package/dist/components/vue-ui-funnel.js +2 -0
  47. package/dist/components/vue-ui-galaxy.js +2 -0
  48. package/dist/components/vue-ui-gauge.js +2 -0
  49. package/dist/components/vue-ui-geo.js +2 -0
  50. package/dist/components/vue-ui-gizmo.js +2 -0
  51. package/dist/components/vue-ui-heatmap.js +2 -0
  52. package/dist/components/vue-ui-history-plot.js +2 -0
  53. package/dist/components/vue-ui-horizontal-bar.js +2 -0
  54. package/dist/components/vue-ui-icon.js +2 -0
  55. package/dist/components/vue-ui-kpi.js +2 -0
  56. package/dist/components/vue-ui-mini-loader.js +2 -0
  57. package/dist/components/vue-ui-molecule.js +2 -0
  58. package/dist/components/vue-ui-mood-radar.js +2 -0
  59. package/dist/components/vue-ui-nested-donuts.js +2 -0
  60. package/dist/components/vue-ui-onion.js +2 -0
  61. package/dist/components/vue-ui-parallel-coordinate-plot.js +2 -0
  62. package/dist/components/vue-ui-pattern-seed.js +2 -0
  63. package/dist/components/vue-ui-pattern.js +2 -0
  64. package/dist/components/vue-ui-quadrant.js +2 -0
  65. package/dist/components/vue-ui-quick-chart.js +2 -0
  66. package/dist/components/vue-ui-radar.js +2 -0
  67. package/dist/components/vue-ui-rating.js +2 -0
  68. package/dist/components/vue-ui-relation-circle.js +2 -0
  69. package/dist/components/vue-ui-ridgeline.js +2 -0
  70. package/dist/components/vue-ui-rings.js +2 -0
  71. package/dist/components/vue-ui-scatter.js +2 -0
  72. package/dist/components/vue-ui-skeleton.js +2 -0
  73. package/dist/components/vue-ui-smiley.js +2 -0
  74. package/dist/components/vue-ui-spark-trend.js +2 -0
  75. package/dist/components/vue-ui-sparkbar.js +2 -0
  76. package/dist/components/vue-ui-sparkgauge.js +2 -0
  77. package/dist/components/vue-ui-sparkhistogram.js +2 -0
  78. package/dist/components/vue-ui-sparkline.js +2 -0
  79. package/dist/components/vue-ui-sparkstackbar.js +2 -0
  80. package/dist/components/vue-ui-stackbar.js +2 -0
  81. package/dist/components/vue-ui-stackline.js +2 -0
  82. package/dist/components/vue-ui-strip-plot.js +2 -0
  83. package/dist/components/vue-ui-table-heatmap.js +2 -0
  84. package/dist/components/vue-ui-table-sparkline.js +2 -0
  85. package/dist/components/vue-ui-table.js +2 -0
  86. package/dist/components/vue-ui-thermometer.js +2 -0
  87. package/dist/components/vue-ui-timer.js +2 -0
  88. package/dist/components/vue-ui-tiremarks.js +2 -0
  89. package/dist/components/vue-ui-treemap.js +2 -0
  90. package/dist/components/vue-ui-vertical-bar.js +2 -0
  91. package/dist/components/vue-ui-waffle.js +2 -0
  92. package/dist/components/vue-ui-wheel.js +2 -0
  93. package/dist/components/vue-ui-word-cloud.js +2 -0
  94. package/dist/components/vue-ui-world.js +2 -0
  95. package/dist/components/vue-ui-xy-canvas.js +2 -0
  96. package/dist/components/vue-ui-xy.js +2 -0
  97. package/dist/dom-to-png-BYtB4BF3.js +237 -0
  98. package/dist/exposedLib-CI8ji8G-.js +19 -0
  99. package/dist/geoProjections-Czak6Jn1.js +145 -0
  100. package/dist/img-1cKsci8e.js +74 -0
  101. package/dist/labelUtils-CUctkYoA.js +19 -0
  102. package/dist/lib-DUeYQsS0.js +1882 -0
  103. package/dist/llms.txt +232 -0
  104. package/dist/patternUtils-CS7hn6at.js +258 -0
  105. package/dist/pdf-D0eZ99cP.js +90 -0
  106. package/dist/rolldown-runtime-Dy4uBu1J.js +11 -0
  107. package/dist/style.css +2 -0
  108. package/dist/types/arrow.d.ts +4 -0
  109. package/dist/types/utils.d.ts +551 -0
  110. package/dist/types/vue-data-ui.d.ts +17190 -0
  111. package/dist/types/vue-ui-3d-bar.d.ts +93 -0
  112. package/dist/types/vue-ui-accordion.d.ts +11 -0
  113. package/dist/types/vue-ui-age-pyramid.d.ts +108 -0
  114. package/dist/types/vue-ui-annotator.d.ts +34 -0
  115. package/dist/types/vue-ui-bullet.d.ts +85 -0
  116. package/dist/types/vue-ui-bump.d.ts +92 -0
  117. package/dist/types/vue-ui-candlestick.d.ts +106 -0
  118. package/dist/types/vue-ui-carousel-table.d.ts +59 -0
  119. package/dist/types/vue-ui-chestnut.d.ts +98 -0
  120. package/dist/types/vue-ui-chord.d.ts +110 -0
  121. package/dist/types/vue-ui-circle-pack.d.ts +126 -0
  122. package/dist/types/vue-ui-cursor.d.ts +9 -0
  123. package/dist/types/vue-ui-dag.d.ts +125 -0
  124. package/dist/types/vue-ui-dashboard.d.ts +68 -0
  125. package/dist/types/vue-ui-digits.d.ts +12 -0
  126. package/dist/types/vue-ui-donut-evolution.d.ts +96 -0
  127. package/dist/types/vue-ui-donut.d.ts +123 -0
  128. package/dist/types/vue-ui-dumbbell.d.ts +94 -0
  129. package/dist/types/vue-ui-flow.d.ts +106 -0
  130. package/dist/types/vue-ui-funnel.d.ts +79 -0
  131. package/dist/types/vue-ui-galaxy.d.ts +114 -0
  132. package/dist/types/vue-ui-gauge.d.ts +89 -0
  133. package/dist/types/vue-ui-geo.d.ts +94 -0
  134. package/dist/types/vue-ui-gizmo.d.ts +22 -0
  135. package/dist/types/vue-ui-heatmap.d.ts +101 -0
  136. package/dist/types/vue-ui-history-plot.d.ts +114 -0
  137. package/dist/types/vue-ui-horizontal-bar.d.ts +116 -0
  138. package/dist/types/vue-ui-icon.d.ts +15 -0
  139. package/dist/types/vue-ui-kpi.d.ts +25 -0
  140. package/dist/types/vue-ui-mini-loader.d.ts +15 -0
  141. package/dist/types/vue-ui-molecule.d.ts +112 -0
  142. package/dist/types/vue-ui-mood-radar.d.ts +92 -0
  143. package/dist/types/vue-ui-nested-donuts.d.ts +111 -0
  144. package/dist/types/vue-ui-onion.d.ts +106 -0
  145. package/dist/types/vue-ui-parallel-coordinate-plot.d.ts +125 -0
  146. package/dist/types/vue-ui-pattern-seed.d.ts +14 -0
  147. package/dist/types/vue-ui-pattern.d.ts +15 -0
  148. package/dist/types/vue-ui-quadrant.d.ts +125 -0
  149. package/dist/types/vue-ui-quick-chart.d.ts +108 -0
  150. package/dist/types/vue-ui-radar.d.ts +116 -0
  151. package/dist/types/vue-ui-rating.d.ts +42 -0
  152. package/dist/types/vue-ui-relation-circle.d.ts +92 -0
  153. package/dist/types/vue-ui-ridgeline.d.ts +106 -0
  154. package/dist/types/vue-ui-rings.d.ts +98 -0
  155. package/dist/types/vue-ui-scatter.d.ts +97 -0
  156. package/dist/types/vue-ui-skeleton.d.ts +11 -0
  157. package/dist/types/vue-ui-smiley.d.ts +28 -0
  158. package/dist/types/vue-ui-spark-trend.d.ts +19 -0
  159. package/dist/types/vue-ui-sparkbar.d.ts +49 -0
  160. package/dist/types/vue-ui-sparkgauge.d.ts +28 -0
  161. package/dist/types/vue-ui-sparkhistogram.d.ts +46 -0
  162. package/dist/types/vue-ui-sparkline.d.ts +59 -0
  163. package/dist/types/vue-ui-sparkstackbar.d.ts +60 -0
  164. package/dist/types/vue-ui-stackbar.d.ts +118 -0
  165. package/dist/types/vue-ui-stackline.d.ts +114 -0
  166. package/dist/types/vue-ui-strip-plot.d.ts +96 -0
  167. package/dist/types/vue-ui-table-heatmap.d.ts +62 -0
  168. package/dist/types/vue-ui-table-sparkline.d.ts +53 -0
  169. package/dist/types/vue-ui-table.d.ts +38 -0
  170. package/dist/types/vue-ui-thermometer.d.ts +70 -0
  171. package/dist/types/vue-ui-timer.d.ts +49 -0
  172. package/dist/types/vue-ui-tiremarks.d.ts +70 -0
  173. package/dist/types/vue-ui-treemap.d.ts +104 -0
  174. package/dist/types/vue-ui-vertical-bar.d.ts +22 -0
  175. package/dist/types/vue-ui-waffle.d.ts +101 -0
  176. package/dist/types/vue-ui-wheel.d.ts +70 -0
  177. package/dist/types/vue-ui-word-cloud.d.ts +97 -0
  178. package/dist/types/vue-ui-world.d.ts +98 -0
  179. package/dist/types/vue-ui-xy-canvas.d.ts +101 -0
  180. package/dist/types/vue-ui-xy.d.ts +146 -0
  181. package/dist/useAutoSizeLabelsInsideViewbox-BIVntRZp.js +50 -0
  182. package/dist/useChartAccessibility-DYqac8yF.js +12 -0
  183. package/dist/useConfig-DAyQk86L.js +7479 -0
  184. package/dist/useFitSvgText-CT3nmlaS.js +63 -0
  185. package/dist/useNestedProp-CNcoy38D.js +10 -0
  186. package/dist/useObjectBindings-BI7hP-BC.js +189 -0
  187. package/dist/usePanZoom-CYU3B4T3.js +157 -0
  188. package/dist/usePrefersMotion-BC-CsqR1.js +15 -0
  189. package/dist/usePrinter-C1Gqt_Sp.js +49 -0
  190. package/dist/useResponsive-BfnK0KxU.js +19 -0
  191. package/dist/useStableElementSize-C7KADDKj.js +77 -0
  192. package/dist/useSvgExport-SVIsDot8.js +755 -0
  193. package/dist/useTableResponsive-B24Uwt2E.js +24 -0
  194. package/dist/useThemeCheck-C43Tcqmk.js +24 -0
  195. package/dist/useTimeLabelCollider-AEcY4Ioe.js +57 -0
  196. package/dist/useTimeLabels-BmBRv27Y.js +272 -0
  197. package/dist/useUserOptionState-DK-_1ddE.js +15 -0
  198. package/dist/utils.js +28 -0
  199. package/dist/vClickOutside-DUrZWttG.js +13 -0
  200. package/dist/vue-data-ui-C3m9eNp0.js +274 -0
  201. package/dist/vue-data-ui.js +76 -0
  202. package/dist/vue-ui-3d-bar-Bfcitq55.js +1757 -0
  203. package/dist/vue-ui-accordion-Dw4MHKVB.js +81 -0
  204. package/dist/vue-ui-age-pyramid-Dgzd45Ol.js +1238 -0
  205. package/dist/vue-ui-annotator-DLPUAKlm.js +2899 -0
  206. package/dist/vue-ui-bullet-DAeyHSHC.js +710 -0
  207. package/dist/vue-ui-bump-DsiXfIFL.js +1249 -0
  208. package/dist/vue-ui-candlestick-BadEBUcF.js +1826 -0
  209. package/dist/vue-ui-carousel-table-_LCF7RFm.js +455 -0
  210. package/dist/vue-ui-chestnut-BTuAvc7L.js +2010 -0
  211. package/dist/vue-ui-chord-CAyRIJlh.js +1391 -0
  212. package/dist/vue-ui-circle-pack-BWzwg8Qb.js +1608 -0
  213. package/dist/vue-ui-cursor-C6t7nAT4.js +283 -0
  214. package/dist/vue-ui-dag-8Puv77-a.js +2909 -0
  215. package/dist/vue-ui-dashboard-CXDvRu27.js +513 -0
  216. package/dist/vue-ui-digits-BlHqILF0.js +209 -0
  217. package/dist/vue-ui-donut-CclzduCs.js +2410 -0
  218. package/dist/vue-ui-donut-evolution-DEfY2Zvy.js +1510 -0
  219. package/dist/vue-ui-dumbbell-BG5C4Hdg.js +1530 -0
  220. package/dist/vue-ui-flow-B73dHBrL.js +1235 -0
  221. package/dist/vue-ui-funnel-Bn3c5lWX.js +777 -0
  222. package/dist/vue-ui-galaxy-eBY55Fue.js +1077 -0
  223. package/dist/vue-ui-gauge-s8pl305B.js +920 -0
  224. package/dist/vue-ui-geo-Ca2ZPVhH.js +1516 -0
  225. package/dist/vue-ui-gizmo-CBNDeAzT.js +225 -0
  226. package/dist/vue-ui-heatmap-V79kNqUi.js +1568 -0
  227. package/dist/vue-ui-history-plot-jiJh8oaM.js +1554 -0
  228. package/dist/vue-ui-horizontal-bar-60b88qqU.js +1681 -0
  229. package/dist/vue-ui-kpi-DnfazUeY.js +96 -0
  230. package/dist/vue-ui-mini-loader-CyqBt2g4.js +125 -0
  231. package/dist/vue-ui-molecule-BeIVS2yp.js +925 -0
  232. package/dist/vue-ui-mood-radar-DHY1ry9I.js +1148 -0
  233. package/dist/vue-ui-nested-donuts-GNR6O-Z_.js +1487 -0
  234. package/dist/vue-ui-onion-DghkeKRu.js +1200 -0
  235. package/dist/vue-ui-parallel-coordinate-plot-DqfRRSnD.js +1416 -0
  236. package/dist/vue-ui-pattern-DKozfnVn.js +154 -0
  237. package/dist/vue-ui-pattern-seed-BB1honLm.js +61 -0
  238. package/dist/vue-ui-quadrant-BBucQ_8r.js +1978 -0
  239. package/dist/vue-ui-quick-chart-DxxGq-5d.js +2469 -0
  240. package/dist/vue-ui-radar-B0gW_Iur.js +1229 -0
  241. package/dist/vue-ui-rating-BG4lf1z8.js +343 -0
  242. package/dist/vue-ui-relation-circle-C-fNOxJM.js +924 -0
  243. package/dist/vue-ui-ridgeline-CzDR20s3.js +1622 -0
  244. package/dist/vue-ui-rings-DNRdTVqV.js +1246 -0
  245. package/dist/vue-ui-scatter-CRgFebuE.js +2413 -0
  246. package/dist/vue-ui-skeleton-iNzRGgRn.js +2556 -0
  247. package/dist/vue-ui-smiley-G89TxRU-.js +356 -0
  248. package/dist/vue-ui-spark-trend-CPgTOFNY.js +438 -0
  249. package/dist/vue-ui-sparkbar-B4C_YxU-.js +393 -0
  250. package/dist/vue-ui-sparkgauge-DDkSKiba.js +255 -0
  251. package/dist/vue-ui-sparkhistogram-qtb6-Th8.js +560 -0
  252. package/dist/vue-ui-sparkline-TTSEEs7R.js +1507 -0
  253. package/dist/vue-ui-sparkstackbar-DXEnV79Y.js +662 -0
  254. package/dist/vue-ui-stackbar-CwFVpEgH.js +2270 -0
  255. package/dist/vue-ui-stackline-Bph0kD43.js +2398 -0
  256. package/dist/vue-ui-strip-plot-D2_WSwTF.js +1340 -0
  257. package/dist/vue-ui-table-BzmQMHxi.js +1338 -0
  258. package/dist/vue-ui-table-heatmap-CCGjbSzQ.js +344 -0
  259. package/dist/vue-ui-table-sparkline-CXNxbqIw.js +707 -0
  260. package/dist/vue-ui-thermometer-Cqw2_Jpi.js +763 -0
  261. package/dist/vue-ui-timer-BHP_5wgz.js +439 -0
  262. package/dist/vue-ui-tiremarks-D8wFTxXl.js +552 -0
  263. package/dist/vue-ui-treemap-DbSebes7.js +1587 -0
  264. package/dist/vue-ui-waffle-CAIBpbY0.js +1362 -0
  265. package/dist/vue-ui-wheel-B5Cyopnp.js +885 -0
  266. package/dist/vue-ui-word-cloud-BaGDKrKL.js +1656 -0
  267. package/dist/vue-ui-world-DLcVBwLg.js +14264 -0
  268. package/dist/vue-ui-xy-CyP5FAo8.js +4578 -0
  269. package/dist/vue-ui-xy-canvas-BUPnRZ3C.js +1787 -0
  270. package/dist/vue_ui_3d_bar-C4R7o-yX.js +185 -0
  271. package/dist/vue_ui_age_pyramid-BY6c-oX_.js +301 -0
  272. package/dist/vue_ui_bullet-ClzdLoOv.js +186 -0
  273. package/dist/vue_ui_bump-Vl-zYAtG.js +201 -0
  274. package/dist/vue_ui_candlestick-J8jmJvxP.js +374 -0
  275. package/dist/vue_ui_chestnut-D2oUhad6.js +305 -0
  276. package/dist/vue_ui_chord-DPfS1Umc.js +275 -0
  277. package/dist/vue_ui_circle_pack-DZC_rdfn.js +172 -0
  278. package/dist/vue_ui_dag-TsJ_azQq.js +258 -0
  279. package/dist/vue_ui_donut-BDGqG07h.js +358 -0
  280. package/dist/vue_ui_donut_evolution-D1yAAIHr.js +717 -0
  281. package/dist/vue_ui_dumbbell-Bfe_jFyi.js +304 -0
  282. package/dist/vue_ui_flow-BewZjjKG.js +238 -0
  283. package/dist/vue_ui_funnel-_Og4EEkO.js +234 -0
  284. package/dist/vue_ui_galaxy-Ig0cc1_h.js +265 -0
  285. package/dist/vue_ui_gauge-Cf1RZc9q.js +178 -0
  286. package/dist/vue_ui_geo-B8TODs-G.js +248 -0
  287. package/dist/vue_ui_heatmap-B2BBBSWG.js +319 -0
  288. package/dist/vue_ui_history_plot-CuN63VEc.js +413 -0
  289. package/dist/vue_ui_horizontal_bar-C4J4QzXf.js +341 -0
  290. package/dist/vue_ui_molecule-CO9L59SF.js +231 -0
  291. package/dist/vue_ui_mood_radar-BA6LAKhk.js +281 -0
  292. package/dist/vue_ui_nested_donuts-B8csIoVO.js +273 -0
  293. package/dist/vue_ui_onion-1FTFFS46.js +293 -0
  294. package/dist/vue_ui_parallel_coordinate_plot-CBiOBira.js +278 -0
  295. package/dist/vue_ui_quadrant-CDSTKTJz.js +428 -0
  296. package/dist/vue_ui_quick_chart-mZBdml3Z.js +139 -0
  297. package/dist/vue_ui_radar-jafTED5j.js +306 -0
  298. package/dist/vue_ui_relation_circle-D0p4mXmv.js +98 -0
  299. package/dist/vue_ui_ridgeline-VM8_mx4J.js +767 -0
  300. package/dist/vue_ui_rings-BVgD2aMn.js +320 -0
  301. package/dist/vue_ui_scatter-I0POnicu.js +479 -0
  302. package/dist/vue_ui_spark_trend-DxVmpkmC.js +82 -0
  303. package/dist/vue_ui_sparkbar-z6qO--Kf.js +64 -0
  304. package/dist/vue_ui_sparkgauge-BX1MS3bA.js +90 -0
  305. package/dist/vue_ui_sparkhistogram-BRgvKUH6.js +123 -0
  306. package/dist/vue_ui_sparkline-auZhap6Y.js +151 -0
  307. package/dist/vue_ui_sparkstackbar-BOjuQnZd.js +175 -0
  308. package/dist/vue_ui_stackbar-COOrQQdK.js +412 -0
  309. package/dist/vue_ui_stackline-DQqKPA9z.js +460 -0
  310. package/dist/vue_ui_strip_plot-CtJe8_gq.js +301 -0
  311. package/dist/vue_ui_table_heatmap-w8vx5k6f.js +80 -0
  312. package/dist/vue_ui_table_sparkline-DAbkUrNz.js +124 -0
  313. package/dist/vue_ui_thermometer-DxgqWKlE.js +123 -0
  314. package/dist/vue_ui_tiremarks-CdEPieWV.js +122 -0
  315. package/dist/vue_ui_treemap-DoEtkRN6.js +328 -0
  316. package/dist/vue_ui_vertical_bar-CP-MKz1j.js +247 -0
  317. package/dist/vue_ui_waffle-DIARFc7g.js +292 -0
  318. package/dist/vue_ui_wheel-DZ_nR--t.js +133 -0
  319. package/dist/vue_ui_word_cloud-C-qIMNLu.js +254 -0
  320. package/dist/vue_ui_xy-BLUkWEAm.js +482 -0
  321. package/dist/vue_ui_xy_canvas-Cb6dg3eK.js +408 -0
  322. package/package.json +120 -120
@@ -0,0 +1,662 @@
1
+ import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
+ import { Bt as t, Ct as n, Et as r, G as i, H as a, Mt as o, Nt as s, Rt as c, X as ee, i as l, ot as te, pt as ne, t as re, x as ie, y as u } from "./lib-DUeYQsS0.js";
3
+ import { t as ae } from "./useConfig-DAyQk86L.js";
4
+ import { n as oe, t as se } from "./BaseScanner-Dr2a1Msy.js";
5
+ import { t as d } from "./useNestedProp-CNcoy38D.js";
6
+ import { t as ce } from "./useThemeCheck-C43Tcqmk.js";
7
+ import { t as le } from "./_plugin-vue_export-helper-B3ysoDQm.js";
8
+ import { t as ue } from "./BaseLegendToggle-C_Db-y7s.js";
9
+ import { t as de } from "./A11yDataTable-BCbtxMU6.js";
10
+ import { t as fe } from "./useChartAccessibility-DYqac8yF.js";
11
+ import { t as pe } from "./vue_ui_sparkstackbar-BOjuQnZd.js";
12
+ import { Fragment as f, computed as p, createBlock as me, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createVNode as he, defineAsyncComponent as ge, guardReactiveProps as _, normalizeClass as v, normalizeProps as y, normalizeStyle as b, onMounted as _e, openBlock as x, ref as S, renderList as C, renderSlot as w, toDisplayString as T, toRefs as ve, unref as E, useSlots as ye, watch as be, withCtx as D } from "vue";
13
+ //#region src/components/vue-ui-sparkstackbar.vue
14
+ var xe = /* @__PURE__ */ e({ default: () => O }), Se = ["id"], Ce = { style: { position: "relative" } }, we = [
15
+ "xmlns",
16
+ "viewBox",
17
+ "aria-describedby"
18
+ ], Te = ["id"], Ee = ["stop-color"], De = ["stop-color"], Oe = ["stop-color"], ke = {
19
+ id: "stackPill",
20
+ clipPathUnits: "objectBoundingBox"
21
+ }, Ae = ["fill"], je = {
22
+ key: 0,
23
+ "clip-path": "url(#stackPill)"
24
+ }, Me = [
25
+ "x",
26
+ "width",
27
+ "height",
28
+ "fill"
29
+ ], Ne = [
30
+ "x",
31
+ "width",
32
+ "height",
33
+ "fill",
34
+ "stroke"
35
+ ], Pe = [
36
+ "x",
37
+ "width",
38
+ "height",
39
+ "onClick",
40
+ "onMouseenter",
41
+ "onMouseleave"
42
+ ], Fe = [
43
+ "width",
44
+ "height",
45
+ "rx"
46
+ ], Ie = {
47
+ key: 0,
48
+ style: {
49
+ position: "absolute",
50
+ top: "100%",
51
+ left: "0",
52
+ width: "100%"
53
+ },
54
+ "data-dom-to-png-ignore": "",
55
+ "aria-hidden": "true"
56
+ }, Le = [
57
+ "aria-pressed",
58
+ "aria-label",
59
+ "onClick",
60
+ "onFocus",
61
+ "onKeydown"
62
+ ], Re = { style: {
63
+ display: "flex",
64
+ "flex-direction": "row",
65
+ "align-items": "center",
66
+ gap: "4px",
67
+ "justify-content": "center"
68
+ } }, ze = ["height", "width"], Be = ["id"], Ve = ["stop-color"], He = ["stop-color"], Ue = ["fill"], We = {
69
+ key: 3,
70
+ ref: "source",
71
+ dir: "auto"
72
+ }, O = /* @__PURE__ */ le({
73
+ __name: "vue-ui-sparkstackbar",
74
+ props: {
75
+ config: {
76
+ type: Object,
77
+ default() {
78
+ return {};
79
+ }
80
+ },
81
+ dataset: {
82
+ type: Array,
83
+ default() {
84
+ return [];
85
+ }
86
+ }
87
+ },
88
+ emits: ["selectDatapoint", "selectLegend"],
89
+ setup(e, { expose: le, emit: xe }) {
90
+ let O = ge(() => import("./PackageVersion-f0MuYk3R.js").then((e) => e.t)), Ge = ge(() => import("./Tooltip-BENq327o.js")), { vue_ui_sparkstackbar: Ke } = ae(), { isThemeValid: qe, warnInvalidTheme: Je } = ce(), k = e, Ye = ye();
91
+ _e(() => {
92
+ Ye["chart-background"] && console.warn("VueUiSparkStackbar does not support the #chart-background slot.");
93
+ });
94
+ let Xe = S(null), A = S(a()), j = S(!1), M = S(""), N = S(null), P = S(!1), F = S(null), Ze = S({
95
+ x: 0,
96
+ y: 0
97
+ }), I = S("pointer"), L = S(!1), R = S(null), Qe = S([]), z = S(tt()), $e = p(() => z.value.useCursorPointer), et = p(() => t({
98
+ defaultConfig: { style: {
99
+ backgroundColor: "#99999930",
100
+ animation: { show: !1 },
101
+ bar: { gradient: { inderlayerColor: "#6A6A6A" } },
102
+ title: { backgroundColor: "transparent" }
103
+ } },
104
+ userConfig: z.value.skeletonConfig ?? {}
105
+ })), { loading: B, FINAL_DATASET: V } = oe({
106
+ ...ve(k),
107
+ FINAL_CONFIG: z,
108
+ prepareConfig: tt,
109
+ skeletonDataset: k.config?.skeletonDataset ?? [
110
+ {
111
+ name: "_",
112
+ value: 8,
113
+ color: "#808080"
114
+ },
115
+ {
116
+ name: "_",
117
+ value: 5,
118
+ color: "#ADADAD"
119
+ },
120
+ {
121
+ name: "_",
122
+ value: 3,
123
+ color: "#DBDBDB"
124
+ }
125
+ ],
126
+ skeletonConfig: t({
127
+ defaultConfig: z.value,
128
+ userConfig: et.value
129
+ })
130
+ }), { svgRef: H } = fe({ config: z.value.style.title });
131
+ function tt() {
132
+ let e = d({
133
+ userConfig: k.config,
134
+ defaultConfig: Ke
135
+ }), t = e.theme;
136
+ if (!t) return e;
137
+ if (!qe.value(e)) return Je(e), e;
138
+ let n = d({
139
+ userConfig: pe[t] || k.config,
140
+ defaultConfig: e
141
+ }), i = d({
142
+ userConfig: k.config,
143
+ defaultConfig: n
144
+ });
145
+ return {
146
+ ...i,
147
+ customPalette: i.customPalette.length ? i.customPalette : c[t] || r
148
+ };
149
+ }
150
+ be(() => k.config, (e) => {
151
+ z.value = tt(), it();
152
+ }, { deep: !0 }), be(() => V.value, (e) => {
153
+ W.value = V.value.map((e, t) => ({
154
+ ...e,
155
+ color: e.color ? u(e.color) : U.value[t] || r[t] || r[t % r.length]
156
+ })), nt();
157
+ }, { deep: !0 });
158
+ let U = p(() => ie(z.value.customPalette)), W = S(V.value.map((e, t) => ({
159
+ ...e,
160
+ value: z.value.style.animation.show ? 0 : e.value || 0,
161
+ color: e.color ? u(e.color) : U.value[t] || r[t] || r[t % r.length]
162
+ }))), G = S(!0);
163
+ function nt() {
164
+ if (!z.value.style.animation.show) {
165
+ G.value = !1;
166
+ return;
167
+ }
168
+ let e = z.value.style.animation.animationFrames, t = V.value.map((e) => e.value || 0), n = t.map((t) => t / e), i = t.reduce((e, t) => e + t, 0), o = 0;
169
+ G.value = !0, W.value = V.value.map((e, t) => ({
170
+ ...e,
171
+ value: 0,
172
+ color: e.color ? u(e.color) : U.value[t] || r[t] || r[t % r.length]
173
+ }));
174
+ function s() {
175
+ o += i / e, o < i ? (W.value = W.value.map((e, i) => ({
176
+ ...e,
177
+ value: Math.min(e.value + n[i], t[i]),
178
+ color: e.color ? u(e.color) : U.value[i] || r[i] || r[i % r.length]
179
+ })), requestAnimationFrame(s)) : (G.value = !1, W.value = V.value.map((e, n) => ({
180
+ ...e,
181
+ value: t[n],
182
+ color: e.color ? u(e.color) : U.value[n] || r[n] || r[n % r.length],
183
+ id: a()
184
+ })));
185
+ }
186
+ s();
187
+ }
188
+ _e(() => {
189
+ it();
190
+ });
191
+ let rt = p(() => z.value.debug);
192
+ function it() {
193
+ n(k.dataset) ? ee({
194
+ componentName: "VueUiSparkStackbar",
195
+ type: "dataset",
196
+ debug: rt.value
197
+ }) : k.dataset.forEach((e, t) => {
198
+ te({
199
+ datasetObject: e,
200
+ requiredAttributes: ["name", "value"]
201
+ }).forEach((e) => {
202
+ ee({
203
+ componentName: "VueUiSparkStackbar",
204
+ type: "datasetSerieAttribute",
205
+ property: e,
206
+ index: t,
207
+ debug: rt.value
208
+ });
209
+ });
210
+ }), nt();
211
+ }
212
+ let K = S({
213
+ width: 500,
214
+ height: 16
215
+ }), q = S([]), at = p(() => V.value.map((e) => e.value || 0).filter((e, t) => !q.value.includes(t)).reduce((e, t) => e + t, 0)), J = p(() => W.value.map((e, t) => {
216
+ let n = e.value || 0, a = n / at.value, o = isNaN(a) ? 0 : a, s = o * K.value.width;
217
+ return {
218
+ ...e,
219
+ color: u(V.value[t]?.color ? V.value[t]?.color : U.value[t] || r[t] || r[t % r.length]),
220
+ value: n,
221
+ proportion: o,
222
+ width: s,
223
+ seriesIndex: t,
224
+ proportionLabel: i({
225
+ v: o * 100,
226
+ s: "%",
227
+ r: z.value.style.legend.percentage.rounding
228
+ })
229
+ };
230
+ })), Y = p(() => J.value.filter((e, t) => !q.value.includes(t)));
231
+ function ot() {
232
+ q.value.length ? q.value = [] : J.value.forEach((e, t) => {
233
+ q.value.push(t);
234
+ }), ut("selectLegend", Y.value);
235
+ }
236
+ function X(e) {
237
+ q.value.includes(e) ? q.value = q.value.filter((t) => t !== e) : q.value.length < W.value.length - 1 && q.value.push(e), ut("selectLegend", Y.value);
238
+ }
239
+ function st(e) {
240
+ return J.value.length ? J.value.find((t) => t.name === e) || (z.value.debug && console.warn(`VueUiSparkStackbar - Series name not found "${e}"`), null) : (z.value.debug && console.warn("VueUiSparkStackbar - There are no series to show."), null);
241
+ }
242
+ function ct(e) {
243
+ let t = st(e);
244
+ t !== null && q.value.includes(t.id) && X(t.seriesIndex);
245
+ }
246
+ function lt(e) {
247
+ let t = st(e);
248
+ t !== null && (q.value.includes(t.id) || X(t.seriesIndex));
249
+ }
250
+ let Z = p(() => {
251
+ let e = 0, t = [];
252
+ for (let n = 0; n < Y.value.length; n += 1) t.push({
253
+ ...Y.value[n],
254
+ start: e
255
+ }), e += Y.value[n].width;
256
+ return t;
257
+ }), ut = xe;
258
+ function Q(e, t, n = !1) {
259
+ ut("selectDatapoint", {
260
+ datapoint: e,
261
+ index: t
262
+ }), z.value.events.datapointClick && !n && z.value.events.datapointClick({
263
+ datapoint: e,
264
+ seriesIndex: e.seriesIndex
265
+ });
266
+ }
267
+ function dt({ datapoint: e, seriesIndex: t }) {
268
+ j.value = !1, R.value = null, F.value = null, I.value = "pointer", z.value.events.datapointLeave && z.value.events.datapointLeave({
269
+ datapoint: e,
270
+ seriesIndex: e.seriesIndex
271
+ });
272
+ }
273
+ function ft({ datapoint: e, seriesIndex: t, triggerMode: n = "pointer" }) {
274
+ if (P.value = !1, z.value.events.datapointEnter && z.value.events.datapointEnter({
275
+ datapoint: e,
276
+ seriesIndex: e.seriesIndex
277
+ }), !z.value.style.tooltip.show) return;
278
+ I.value = n, N.value = {
279
+ datapoint: e,
280
+ seriesIndex: t,
281
+ config: z.value,
282
+ series: J.value
283
+ }, j.value = !0, R.value = t;
284
+ let r = z.value.style.tooltip.customFormat;
285
+ if (ne(r)) try {
286
+ let t = r({
287
+ seriesIndex: e.seriesIndex,
288
+ datapoint: e,
289
+ series: J.value,
290
+ config: z.value
291
+ });
292
+ typeof t == "string" && (M.value = t, P.value = !0);
293
+ } catch {
294
+ console.warn("Custom format cannot be applied."), P.value = !1;
295
+ }
296
+ if (!P.value) {
297
+ let n = "";
298
+ n += `<div style="width:100%;text-align:center;border-bottom:1px solid ${z.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>(${l(z.value.style.legend.value.formatter, e.value, i({
299
+ p: z.value.style.legend.value.prefix,
300
+ v: e.value,
301
+ s: z.value.style.legend.value.suffix,
302
+ r: z.value.style.legend.value.rounding
303
+ }), {
304
+ datapoint: e,
305
+ seriesIndex: t
306
+ })})</span>`, M.value = `<div>${n}</div>`;
307
+ }
308
+ }
309
+ function $(e) {
310
+ let t = Qe.value[e];
311
+ t && typeof t.focus == "function" && t.focus();
312
+ }
313
+ function pt(e) {
314
+ if (!Number.isFinite(e) || !H.value) return;
315
+ let t = Z.value[e];
316
+ if (!t) return;
317
+ let n = H.value.getBoundingClientRect(), r = t.start + t.width / 2, i = K.value.height / 2;
318
+ Ze.value = {
319
+ x: n.left + r / K.value.width * n.width,
320
+ y: n.top + i / K.value.height * n.height
321
+ };
322
+ }
323
+ function mt() {
324
+ F.value = null, L.value = !0;
325
+ }
326
+ function ht() {
327
+ F.value = null, I.value = "pointer", j.value = !1, R.value = null, L.value = !1;
328
+ }
329
+ function gt(e) {
330
+ if (!H.value || document.activeElement !== H.value || !Z.value.length) return;
331
+ let t = e.key === "ArrowLeft", n = e.key === "ArrowRight", r = e.key === "Enter" || e.key === " ", i = e.key === "Escape", a = e.key === "Home", o = e.key === "End";
332
+ if (!t && !n && !r && !i && !a && !o) return;
333
+ if (e.preventDefault(), e.stopPropagation(), i) {
334
+ F.value = null, I.value = "pointer", j.value = !1, R.value = null;
335
+ return;
336
+ }
337
+ if (r) {
338
+ if (F.value === null) return;
339
+ let e = Z.value[F.value];
340
+ if (!e) return;
341
+ Q(e, e.seriesIndex);
342
+ return;
343
+ }
344
+ let s = F.value;
345
+ a ? s = 0 : o ? s = Z.value.length - 1 : s === null || s < 0 || s >= Z.value.length ? s = n ? 0 : Z.value.length - 1 : n ? (s += 1, s >= Z.value.length && (s = 0)) : t && (--s, s < 0 && (s = Z.value.length - 1));
346
+ let c = Z.value[s];
347
+ c && (F.value = s, pt(s), ft({
348
+ datapoint: c,
349
+ seriesIndex: c.seriesIndex,
350
+ triggerMode: "keyboard"
351
+ }));
352
+ }
353
+ function _t(e) {
354
+ j.value = !1, F.value = null, I.value = "pointer", R.value = e.seriesIndex;
355
+ }
356
+ function vt() {
357
+ F.value = null, I.value = "pointer", j.value = !1, R.value = null;
358
+ }
359
+ function yt(e, t, n) {
360
+ let r = e.key === "Enter" || e.key === " ", i = e.key === "ArrowLeft" || e.key === "ArrowUp", a = e.key === "ArrowRight" || e.key === "ArrowDown", o = e.key === "Home", s = e.key === "End", c = e.key === "Escape";
361
+ if (!(!r && !i && !a && !o && !s && !c)) {
362
+ if (e.preventDefault(), e.stopPropagation(), c) {
363
+ vt();
364
+ return;
365
+ }
366
+ if (r) {
367
+ X(n), Q(t, n, !0);
368
+ return;
369
+ }
370
+ if (o) {
371
+ $(0);
372
+ return;
373
+ }
374
+ if (s) {
375
+ $(J.value.length - 1);
376
+ return;
377
+ }
378
+ if (i) {
379
+ $(n <= 0 ? J.value.length - 1 : n - 1);
380
+ return;
381
+ }
382
+ a && $(n >= J.value.length - 1 ? 0 : n + 1);
383
+ }
384
+ }
385
+ let bt = p(() => ({
386
+ headers: [
387
+ z.value.a11y.translations.series,
388
+ z.value.a11y.translations.percentage,
389
+ z.value.a11y.translations.value
390
+ ],
391
+ rows: J.value.map((e, t) => [
392
+ e.name,
393
+ q.value.includes(t) ? " - " : e.proportionLabel,
394
+ l(z.value.style.legend.value.formatter, e.value, i({
395
+ p: z.value.style.legend.value.prefix,
396
+ v: e.value,
397
+ s: z.value.style.legend.value.suffix,
398
+ r: z.value.style.legend.value.rounding
399
+ }), {
400
+ datapoint: e,
401
+ seriesIndex: t
402
+ })
403
+ ])
404
+ }));
405
+ return le({
406
+ hideSeries: lt,
407
+ showSeries: ct
408
+ }), (e, t) => (x(), h("div", {
409
+ class: "vue-data-ui-component vue-ui-spark-stackbar",
410
+ ref_key: "sparkstackbarChart",
411
+ ref: Xe,
412
+ style: b(`width:100%; background:${z.value.style.backgroundColor}`)
413
+ }, [
414
+ g("div", {
415
+ id: `chart-instructions-${A.value}`,
416
+ class: "sr-only"
417
+ }, [g("p", null, T(z.value.a11y.translations.keyboardNavigation), 1)], 8, Se),
418
+ bt.value?.rows?.length ? (x(), me(de, {
419
+ key: 0,
420
+ uid: A.value,
421
+ head: bt.value.headers,
422
+ body: bt.value.rows,
423
+ notice: z.value.a11y.translations.tableAvailable,
424
+ caption: z.value.a11y.translations.tableCaption
425
+ }, null, 8, [
426
+ "uid",
427
+ "head",
428
+ "body",
429
+ "notice",
430
+ "caption"
431
+ ])) : m("", !0),
432
+ z.value.style.title.text ? (x(), h("div", {
433
+ key: 1,
434
+ style: b(`width:calc(100% - 12px);background:transparent;margin:0 auto;margin:${z.value.style.title.margin};padding: 0 6px;text-align:${z.value.style.title.textAlign}`)
435
+ }, [g("div", {
436
+ class: "atom-title",
437
+ style: b(`font-size:${z.value.style.title.fontSize}px;color:${z.value.style.title.color};font-weight:${z.value.style.title.bold ? "bold" : "normal"}`)
438
+ }, T(z.value.style.title.text), 5), z.value.style.title.subtitle.text ? (x(), h("div", {
439
+ key: 0,
440
+ class: "atom-subtitle",
441
+ style: b(`font-size:${z.value.style.title.subtitle.fontSize}px;color:${z.value.style.title.subtitle.color};font-weight:${z.value.style.title.subtitle.bold ? "bold" : "normal"}`)
442
+ }, T(z.value.style.title.subtitle.text), 5)) : m("", !0)], 4)) : m("", !0),
443
+ g("div", Ce, [(x(), h("svg", {
444
+ ref_key: "svgRef",
445
+ ref: H,
446
+ xmlns: E(re),
447
+ width: "100%",
448
+ viewBox: `0 0 ${K.value.width} ${K.value.height}`,
449
+ "aria-describedby": `chart-instructions-${A.value}`,
450
+ tabindex: "0",
451
+ onFocus: mt,
452
+ onBlur: ht,
453
+ onKeydown: gt
454
+ }, [
455
+ he(E(O)),
456
+ g("defs", null, [(x(!0), h(f, null, C(Z.value, (e, t) => (x(), h("linearGradient", {
457
+ key: `stack_gradient_${t}`,
458
+ gradientTransform: "rotate(90)",
459
+ id: `stack_gradient_${t}_${A.value}`
460
+ }, [
461
+ g("stop", {
462
+ offset: "0%",
463
+ "stop-color": e.color
464
+ }, null, 8, Ee),
465
+ g("stop", {
466
+ offset: "50%",
467
+ "stop-color": E(o)(E(s)(e.color, .05), 100 - z.value.style.bar.gradient.intensity)
468
+ }, null, 8, De),
469
+ g("stop", {
470
+ offset: "100%",
471
+ "stop-color": e.color
472
+ }, null, 8, Oe)
473
+ ], 8, Te))), 128)), g("clipPath", ke, [g("rect", {
474
+ x: "0.005",
475
+ y: "-2",
476
+ width: "0.99",
477
+ height: "5",
478
+ rx: "3",
479
+ ry: "3",
480
+ fill: z.value.style.backgroundColor
481
+ }, null, 8, Ae)])]),
482
+ at.value > 0 ? (x(), h("g", je, [
483
+ (x(!0), h(f, null, C(Z.value, (e, t) => (x(), h("rect", {
484
+ key: `stack_underlayer_${t}`,
485
+ x: e.start,
486
+ y: 0,
487
+ width: e.width,
488
+ height: K.value.height,
489
+ fill: z.value.style.bar.gradient.underlayerColor,
490
+ class: v({ animated: !G.value && !E(B) }),
491
+ style: b({ opacity: R.value !== null && z.value.style.tooltip.show ? R.value === t ? 1 : .5 : 1 })
492
+ }, null, 14, Me))), 128)),
493
+ (x(!0), h(f, null, C(Z.value, (e, t) => (x(), h("rect", {
494
+ key: `stack_${t}`,
495
+ x: e.start,
496
+ y: 0,
497
+ width: e.width,
498
+ height: K.value.height,
499
+ fill: z.value.style.bar.gradient.show ? `url(#stack_gradient_${t}_${A.value})` : e.color,
500
+ stroke: z.value.style.backgroundColor,
501
+ "stroke-linecap": "round",
502
+ class: v({ animated: !G.value && !E(B) }),
503
+ style: b({ opacity: R.value !== null && z.value.style.tooltip.show ? R.value === t ? 1 : .5 : 1 })
504
+ }, null, 14, Ne))), 128)),
505
+ (x(!0), h(f, null, C(Z.value, (e, t) => (x(), h("rect", {
506
+ key: `stack_trap_${t}`,
507
+ x: e.start,
508
+ y: 0,
509
+ width: e.width,
510
+ height: K.value.height,
511
+ fill: "transparent",
512
+ stroke: "none",
513
+ class: v({ animated: !G.value && !E(B) }),
514
+ onClick: () => Q(e, t),
515
+ onMouseenter: () => ft({
516
+ datapoint: e,
517
+ seriesIndex: t
518
+ }),
519
+ onMouseleave: (n) => dt({
520
+ datapoint: e,
521
+ seriesIndex: t
522
+ })
523
+ }, null, 42, Pe))), 128))
524
+ ])) : (x(), h("rect", {
525
+ key: 1,
526
+ x: 2,
527
+ y: 1,
528
+ width: K.value.width - 4,
529
+ height: K.value.height - 2,
530
+ stroke: "#CCCCCC",
531
+ "stroke-width": "2",
532
+ fill: "transparent",
533
+ rx: (K.value.height - 4) / 2
534
+ }, null, 8, Fe))
535
+ ], 40, we)), e.$slots.hint ? (x(), h("div", Ie, [w(e.$slots, "hint", y(_({
536
+ hint: z.value.a11y.translations.keyboardNavigation,
537
+ isVisible: L.value
538
+ })), void 0, !0)])) : m("", !0)]),
539
+ z.value.style.legend.show ? (x(), h("div", {
540
+ key: 2,
541
+ style: b(`background:transparent;margin:0 auto;margin:${z.value.style.legend.margin};justify-content:${z.value.style.legend.textAlign === "left" ? "flex-start" : z.value.style.legend.textAlign === "right" ? "flex-end" : "center"}`),
542
+ class: "vue-ui-sparkstackbar-legend",
543
+ "aria-label": "legend",
544
+ role: "toolbar"
545
+ }, [z.value.style.legend.selectAllToggle.show && J.value.length > 2 && !E(B) ? (x(), me(ue, {
546
+ key: 0,
547
+ backgroundColor: z.value.style.legend.selectAllToggle.backgroundColor,
548
+ color: z.value.style.legend.selectAllToggle.color,
549
+ fontSize: z.value.style.legend.fontSize,
550
+ checked: q.value.length > 0,
551
+ isCursorPointer: $e.value,
552
+ onToggle: ot
553
+ }, null, 8, [
554
+ "backgroundColor",
555
+ "color",
556
+ "fontSize",
557
+ "checked",
558
+ "isCursorPointer"
559
+ ])) : m("", !0), (x(!0), h(f, null, C(J.value, (e, t) => (x(), h("div", {
560
+ role: "button",
561
+ tabindex: "0",
562
+ "aria-pressed": q.value.includes(t),
563
+ "aria-label": `${e.name}, ${q.value.includes(t) ? "hidden" : "visible"}, ${e.proportionLabel}`,
564
+ style: b(`font-size:${z.value.style.legend.fontSize}px;cursor:${$e.value ? "pointer" : "default"}`),
565
+ class: v({
566
+ "vue-ui-sparkstackbar-legend-item": !0,
567
+ "vue-ui-sparkstackbar-legend-item-unselected": q.value.includes(t)
568
+ }),
569
+ onClick: (n) => {
570
+ X(t), Q(e, t, !0);
571
+ },
572
+ onFocus: (t) => _t(e),
573
+ onBlur: vt,
574
+ onKeydown: (n) => yt(n, e, t)
575
+ }, [g("div", Re, [(x(), h("svg", {
576
+ height: `${z.value.style.legend.fontSize}px`,
577
+ width: `${z.value.style.legend.fontSize}px`,
578
+ viewBox: "0 0 10 10"
579
+ }, [g("defs", null, [g("radialGradient", { id: `legend_grad_${t}-${A.value}` }, [g("stop", {
580
+ offset: "0%",
581
+ "stop-color": E(B) ? "#FFFFFF" : E(o)(E(s)(e.color, .05), 100 - z.value.style.bar.gradient.intensity)
582
+ }, null, 8, Ve), g("stop", {
583
+ offset: "100%",
584
+ "stop-color": e.color
585
+ }, null, 8, He)], 8, Be)]), g("circle", {
586
+ cx: 5,
587
+ cy: 5,
588
+ r: 5,
589
+ fill: z.value.style.bar.gradient.show ? `url(#legend_grad_${t}-${A.value})` : e.color
590
+ }, null, 8, Ue)], 8, ze)), E(B) ? m("", !0) : (x(), h(f, { key: 0 }, [g("span", { style: b(`color:${z.value.style.legend.name.color}; font-weight:${z.value.style.legend.name.bold ? "bold" : "normal"}`) }, T(e.name), 5), G.value ? m("", !0) : (x(), h(f, { key: 0 }, [z.value.style.legend.percentage.show ? (x(), h("span", {
591
+ key: 0,
592
+ style: b(`font-weight:${z.value.style.legend.percentage.bold ? "bold" : "normal"};color:${z.value.style.legend.percentage.color}`)
593
+ }, T(q.value.includes(t) ? " - " : e.proportionLabel), 5)) : m("", !0), z.value.style.legend.value.show ? (x(), h("span", {
594
+ key: 1,
595
+ style: b(`font-weight:${z.value.style.legend.value.bold ? "bold" : "normal"};color:${z.value.style.legend.value.color}`)
596
+ }, " (" + T(E(l)(z.value.style.legend.value.formatter, e.value, E(i)({
597
+ p: z.value.style.legend.value.prefix,
598
+ v: e.value,
599
+ s: z.value.style.legend.value.suffix,
600
+ r: z.value.style.legend.value.rounding
601
+ }), {
602
+ datapoint: e,
603
+ seriesIndex: t
604
+ })) + ") ", 5)) : m("", !0)], 64))], 64))])], 46, Le))), 256))], 4)) : m("", !0),
605
+ he(E(Ge), {
606
+ teleportTo: z.value.style.tooltip.teleportTo,
607
+ show: j.value && z.value.style.tooltip.show,
608
+ parent: Xe.value,
609
+ backgroundColor: z.value.style.tooltip.backgroundColor,
610
+ color: z.value.style.tooltip.color,
611
+ fontSize: z.value.style.tooltip.fontSize,
612
+ borderRadius: z.value.style.tooltip.borderRadius,
613
+ borderColor: z.value.style.tooltip.borderColor,
614
+ borderWidth: z.value.style.tooltip.borderWidth,
615
+ backgroundOpacity: z.value.style.tooltip.backgroundOpacity,
616
+ position: z.value.style.tooltip.position,
617
+ content: M.value,
618
+ isCustom: P.value,
619
+ offsetX: z.value.style.tooltip.offsetX,
620
+ offsetY: -124 + z.value.style.tooltip.offsetY,
621
+ blockShiftY: !0,
622
+ smooth: z.value.style.tooltip.smooth,
623
+ backdropFilter: z.value.style.tooltip.backdropFilter,
624
+ smoothForce: z.value.style.tooltip.smoothForce,
625
+ smoothSnapThreshold: z.value.style.tooltip.smoothSnapThreshold,
626
+ isA11yMode: I.value === "keyboard",
627
+ a11yPosition: Ze.value
628
+ }, {
629
+ "tooltip-before": D(() => [w(e.$slots, "tooltip-before", y(_({ ...N.value })), void 0, !0)]),
630
+ tooltip: D(() => [w(e.$slots, "tooltip", y(_({ ...N.value })), void 0, !0)]),
631
+ "tooltip-after": D(() => [w(e.$slots, "tooltip-after", y(_({ ...N.value })), void 0, !0)]),
632
+ _: 3
633
+ }, 8, [
634
+ "teleportTo",
635
+ "show",
636
+ "parent",
637
+ "backgroundColor",
638
+ "color",
639
+ "fontSize",
640
+ "borderRadius",
641
+ "borderColor",
642
+ "borderWidth",
643
+ "backgroundOpacity",
644
+ "position",
645
+ "content",
646
+ "isCustom",
647
+ "offsetX",
648
+ "offsetY",
649
+ "smooth",
650
+ "backdropFilter",
651
+ "smoothForce",
652
+ "smoothSnapThreshold",
653
+ "isA11yMode",
654
+ "a11yPosition"
655
+ ]),
656
+ e.$slots.source ? (x(), h("div", We, [w(e.$slots, "source", {}, void 0, !0)], 512)) : m("", !0),
657
+ w(e.$slots, "skeleton", {}, () => [E(B) ? (x(), me(se, { key: 0 })) : m("", !0)], !0)
658
+ ], 4));
659
+ }
660
+ }, [["__scopeId", "data-v-706a37e5"]]);
661
+ //#endregion
662
+ export { xe as n, O as t };