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,1207 +0,0 @@
1
- import { defineAsyncComponent as L, computed as h, ref as s, toRefs as Jt, watch as q, shallowRef as et, onMounted as Qt, onBeforeUnmount as Zt, openBlock as u, createElementBlock as g, unref as r, normalizeStyle as R, normalizeClass as ne, createElementVNode as S, toDisplayString as J, createBlock as O, createCommentVNode as y, withCtx as v, renderSlot as d, normalizeProps as k, guardReactiveProps as w, createSlots as tt, createVNode as Ce, Fragment as Q, renderList as Z, Teleport as ea, resolveDynamicComponent as ta, mergeProps as aa, createTextVNode as at, nextTick as $e } from "vue";
2
- import { j as la, t as lt, m as oa, p as ot, n as na, o as nt, q as Te, s as sa, k as Pe, l as E, X as ua, T as st, a0 as ra, a1 as ia, U as ca } from "./lib-DMzrGQHK.js";
3
- import { b as va } from "./labelUtils-DX9oyq3C.js";
4
- import { t as da, u as ha } from "./useResponsive-DfdjqQps.js";
5
- import { u as ga } from "./useConfig-CG4HT3wS.js";
6
- import { u as fa, B as pa } from "./BaseScanner-C2j3TsSY.js";
7
- import { u as ya } from "./usePrinter-C4t8DdQ-.js";
8
- import { u as ma } from "./useSvgExport-BTG4hVPO.js";
9
- import { u as Ae } from "./useNestedProp-DH0BEVVS.js";
10
- import { u as ba } from "./useThemeCheck-C9Ccl7U9.js";
11
- import { u as ka } from "./useUserOptionState-B7Ej974k.js";
12
- import { u as wa } from "./useChartAccessibility-cp6XQtqi.js";
13
- import { u as Ca } from "./useAutoSizeLabelsInsideViewbox-izlGDfwu.js";
14
- import $a from "./img-CjTQXS0U.js";
15
- import Ta from "./Title-BbKoiBk2.js";
16
- import Pa from "./Legend-DGN5lY60.js";
17
- import Aa from "./vue_ui_onion-CxWH9_OZ.js";
18
- import { A as Sa } from "./A11yDataTable-BpmuNomI.js";
19
- import { B as xa } from "./BaseLegendToggle-cMP8M2u0.js";
20
- import { _ as Oa } from "./_plugin-vue_export-helper-CHgC5LLL.js";
21
- const Ia = ["id"], Da = ["id"], Fa = ["id"], Ma = { style: { position: "relative" } }, _a = ["xmlns", "aria-describedby", "viewBox"], La = ["width", "height"], Ra = ["cx", "cy", "r", "stroke", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], Ba = ["cx", "cy", "r", "stroke", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], Na = ["id"], za = ["stdDeviation"], Va = ["filter"], Ua = ["cx", "cy", "r", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], Ea = ["cx", "cy", "r", "stroke-width", "stroke-dasharray", "stroke-dashoffset", "onMouseenter", "onMouseleave", "onClick"], Ya = { key: 2 }, Xa = ["onMouseenter", "onMouseleave", "onClick"], Ga = ["x", "y", "font-size", "fill", "font-weight"], Ha = {
22
- key: 0,
23
- style: { position: "absolute", top: "100%", left: "0", width: "100%" },
24
- "data-dom-to-png-ignore": "",
25
- "aria-hidden": "true"
26
- }, Ka = {
27
- key: 5,
28
- class: "vue-data-ui-watermark"
29
- }, Wa = ["id"], ja = ["onClick"], qa = ["innerHTML"], Ja = {
30
- __name: "vue-ui-onion",
31
- props: {
32
- config: {
33
- type: Object,
34
- default() {
35
- return {};
36
- }
37
- },
38
- dataset: {
39
- type: Array,
40
- default() {
41
- return [];
42
- }
43
- }
44
- },
45
- emits: ["selectLegend", "copyAlt"],
46
- setup(ut, { expose: rt, emit: it }) {
47
- const ct = L(() => import("./Tooltip-Cvt7Fi0Q.js")), vt = L(() => import("./BaseIcon-DX0hTWa-.js")), dt = L(() => import("./vue-ui-accordion-DFtpH_16.js")), ht = L(() => import("./DataTable-cMnb68Ik.js")), gt = L(
48
- () => import("./UserOptions-DVduN6X7.js")
49
- ), ft = L(
50
- () => import("./PenAndPaper-CJDoB5H9.js")
51
- ), pt = L(
52
- () => import("./PackageVersion-BfrCAH6_.js")
53
- ), yt = L(
54
- () => import("./BaseDraggableDialog-Di8Hlru3.js")
55
- ), { vue_ui_onion: mt } = ga(), { isThemeValid: bt, warnInvalidTheme: kt } = ba(), P = ut, Se = h(() => !!P.dataset && P.dataset.length), C = s(la()), wt = s(null), xe = s(0), Y = s(!1), se = s(""), m = s([]), I = s(null), Oe = s(null), Ie = s(null), De = s(null), Fe = s(null), Me = s(0), _e = s(0), Le = s(0), D = s(!1), Re = s(!1), X = s(null), ee = s(!1), te = s(!1), F = s(null), Be = s({ x: 0, y: 0 }), G = s("pointer"), ue = s(!1), e = s(ce()), B = h(
56
- () => e.value.userOptions.useCursorPointer
57
- ), Ct = h(() => lt({
58
- defaultConfig: {
59
- userOptions: { show: !1 },
60
- table: { show: !1 },
61
- style: {
62
- chart: {
63
- backgroundColor: "#99999930",
64
- layout: {
65
- gutter: {
66
- color: "#99999950"
67
- },
68
- labels: { show: !1 }
69
- },
70
- legend: {
71
- backgroundColor: "transparent"
72
- }
73
- }
74
- }
75
- },
76
- userConfig: e.value.skeletonConfig ?? {}
77
- })), { loading: A, FINAL_DATASET: Ne, manualLoading: re } = fa({
78
- ...Jt(P),
79
- FINAL_CONFIG: e,
80
- prepareConfig: ce,
81
- callback: () => {
82
- Promise.resolve().then(async () => {
83
- await $e(), Ge();
84
- });
85
- },
86
- skeletonDataset: P.config?.skeletonDataset ?? [
87
- { name: "_", percentage: 50, value: 1, color: "#DBDBDB" },
88
- { name: "_", percentage: 50, value: 1, color: "#C4C4C4" },
89
- { name: "_", percentage: 50, value: 1, color: "#ADADAD" },
90
- { name: "_", percentage: 50, value: 1, color: "#969696" }
91
- ],
92
- skeletonConfig: lt({
93
- defaultConfig: e.value,
94
- userConfig: Ct.value
95
- })
96
- }), { userOptionsVisible: ie, setUserOptionsVisibility: ze, keepUserOptionState: Ve } = ka({ config: e.value }), { svgRef: M } = wa({
97
- config: e.value.style.chart.title
98
- });
99
- function ce() {
100
- const t = Ae({
101
- userConfig: P.config,
102
- defaultConfig: mt
103
- }), l = t.theme;
104
- if (!l) return t;
105
- if (!bt.value(t))
106
- return kt(t), t;
107
- const a = Ae({
108
- userConfig: Aa[l] || P.config,
109
- defaultConfig: t
110
- }), o = Ae({
111
- userConfig: P.config,
112
- defaultConfig: a
113
- });
114
- return {
115
- ...o,
116
- customPalette: o.customPalette.length ? o.customPalette : oa[l] || ot
117
- };
118
- }
119
- q(
120
- () => P.config,
121
- (t) => {
122
- A.value || (e.value = ce()), ie.value = !e.value.userOptions.showOnChartHover, Xe(), Me.value += 1, _e.value += 1, Le.value += 1, $.value.showTable = e.value.table.show, $.value.showTooltip = e.value.style.chart.tooltip.show;
123
- },
124
- { deep: !0 }
125
- );
126
- const { isPrinting: ve, isImaging: de, generatePdf: Ue, generateImage: Ee } = ya({
127
- elementId: `vue-ui-onion_${C.value}`,
128
- fileName: e.value.style.chart.title.text || "vue-ui-onion",
129
- options: e.value.userOptions.print
130
- }), $t = h(() => e.value.userOptions.show && !e.value.style.chart.title.text), Tt = h(() => na(e.value.customPalette)), $ = s({
131
- showTable: e.value.table.show,
132
- showTooltip: e.value.style.chart.tooltip.show
133
- });
134
- q(
135
- e,
136
- () => {
137
- $.value = {
138
- showTable: e.value.table.show,
139
- showTooltip: e.value.style.chart.tooltip.show
140
- };
141
- },
142
- { immediate: !0 }
143
- );
144
- const n = s({
145
- height: 512,
146
- width: 512,
147
- padding: {
148
- top: 64,
149
- left: 64,
150
- right: 64,
151
- bottom: 64
152
- },
153
- minRadius: 64
154
- }), _ = et(null), V = et(null);
155
- Qt(() => {
156
- Re.value = !0, Xe();
157
- });
158
- const Pt = h({
159
- get: () => e.value.style.chart.layout.labels.fontSize,
160
- set: (t) => t
161
- }), { autoSizeLabels: Ye } = Ca({
162
- svgRef: M,
163
- fontSize: e.value.style.chart.layout.labels.fontSize,
164
- minFontSize: e.value.style.chart.layout.labels.minFontSize,
165
- sizeRef: Pt,
166
- labelClass: ".vue-ui-onion-label"
167
- }), At = h(() => e.value.debug);
168
- let he = null;
169
- function Xe() {
170
- if (nt(P.dataset) && (Te({
171
- componentName: "VueUiOnion",
172
- type: "dataset",
173
- debug: At.value
174
- }), re.value = !0), nt(P.dataset) || (re.value = e.value.loading), e.value.responsive) {
175
- const l = da(() => {
176
- he && clearTimeout(he), D.value = !0;
177
- let { width: a, height: o } = ha({
178
- chart: I.value,
179
- title: e.value.style.chart.title.text ? Oe.value : null,
180
- legend: e.value.style.chart.legend.show ? Ie.value : null,
181
- source: De.value,
182
- noTitle: Fe.value
183
- });
184
- o -= 12, requestAnimationFrame(async () => {
185
- n.value.width = a, n.value.height = o, n.value.padding.top = Math.max(a, o) * 0.125, n.value.padding.right = Math.max(a, o) * 0.125, n.value.padding.bottom = Math.max(a, o) * 0.125, n.value.padding.left = Math.max(a, o) * 0.125, n.value.minRadius = Math.min(a, o) * 0.125, he = setTimeout(() => {
186
- D.value = !1, Ye();
187
- }, 0);
188
- });
189
- });
190
- _.value && (V.value && _.value.unobserve(V.value), _.value.disconnect()), _.value = new ResizeObserver(l), V.value = I.value.parentNode, _.value.observe(V.value);
191
- }
192
- requestAnimationFrame(Ye);
193
- }
194
- Zt(() => {
195
- _.value && (V.value && _.value.unobserve(V.value), _.value.disconnect());
196
- });
197
- const p = h(() => ({
198
- top: n.value.padding.top,
199
- left: n.value.padding.left,
200
- right: n.value.width - n.value.padding.right,
201
- bottom: n.value.height - n.value.padding.bottom,
202
- centerX: n.value.width / 2,
203
- centerY: n.value.height / 2,
204
- width: n.value.width - n.value.padding.right - n.value.padding.left,
205
- height: n.value.height - n.value.padding.bottom - n.value.padding.top,
206
- minRadius: n.value.minRadius,
207
- maxRadius: Math.min(n.value.width, n.value.height) - n.value.padding.top * 2
208
- })), b = h(() => (Ne.value.forEach((t, l) => {
209
- [null, void 0].includes(t.name) && Te({
210
- componentName: "VueUiOnion",
211
- type: "datasetSerieAttribute",
212
- property: "name",
213
- index: l
214
- }), [void 0].includes(t.percentage) && Te({
215
- componentName: "VueUiOnion",
216
- type: "datasetSerieAttribute",
217
- property: "percentage",
218
- index: l
219
- });
220
- }), Ne.value.map((t, l) => {
221
- const a = `onion_serie_${l}_${C.value}`;
222
- return {
223
- ...t,
224
- percentage: t.percentage || 0,
225
- targetPercentage: t.percentage || 0,
226
- color: sa(t.color) || Tt.value[l] || ot[l],
227
- id: a,
228
- shape: "circle",
229
- opacity: m.value.includes(a) ? 0.5 : 1,
230
- absoluteIndex: l,
231
- segregate: () => ae(a),
232
- isSegregated: m.value.includes(a)
233
- };
234
- }))), H = h(() => b.value.map((t, l) => {
235
- const a = e.value.style.chart.legend.showValue, o = e.value.style.chart.legend.showPercentage, c = Pe(
236
- e.value.style.chart.layout.labels.value.formatter,
237
- t.value,
238
- E({
239
- p: t.prefix || "",
240
- v: t.value,
241
- s: t.suffix || "",
242
- r: e.value.style.chart.legend.roundingValue
243
- })
244
- ), i = E({
245
- v: t.percentage ?? 0,
246
- s: "%",
247
- r: e.value.style.chart.legend.roundingPercentage
248
- }), T = me({
249
- showVal: a,
250
- showPercentage: o,
251
- val: c,
252
- percentage: i,
253
- config: e.value.style.chart.legend
254
- });
255
- return {
256
- ...t,
257
- display: `${t.name}${a || o ? ": " : ""}${T}`
258
- };
259
- })), K = s(b.value), St = h(() => e.value.useStartAnimation), xt = s(null), Ot = h(
260
- () => Math.max(...b.value.map((t) => t.percentage))
261
- ), ge = s(!1);
262
- q(() => b.value, Ge, { immediate: !0, deep: !0 }), q(
263
- () => P.dataset,
264
- (t) => {
265
- Array.isArray(t) && t.length > 0 && (re.value = !1);
266
- },
267
- { deep: !0 }
268
- );
269
- function Ge() {
270
- if (St.value && !ge.value && !A.value) {
271
- let l = function() {
272
- t >= Ot.value ? (cancelAnimationFrame(xt.value), K.value = b.value, ge.value = !0) : (K.value = b.value.map((a) => ({
273
- ...a,
274
- percentage: t < a.targetPercentage ? t : a.targetPercentage
275
- })), t += 1, requestAnimationFrame(l), ge.value = !0);
276
- };
277
- K.value = b.value.map((a) => ({
278
- ...a,
279
- percentage: 0
280
- }));
281
- let t = 0;
282
- l();
283
- } else
284
- K.value = b.value;
285
- }
286
- const It = h(() => ({
287
- cy: "onion-div-legend",
288
- backgroundColor: e.value.style.chart.legend.backgroundColor,
289
- color: e.value.style.chart.legend.color,
290
- fontSize: e.value.style.chart.legend.fontSize,
291
- paddingBottom: 12,
292
- fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
293
- })), Dt = h(() => b.value.filter(
294
- (t) => !m.value.includes(t.id)
295
- ).length), N = h(() => {
296
- const t = Math.min(p.value.width, p.value.height) / 2 / b.value.length;
297
- return {
298
- gutter: (t > e.value.style.chart.layout.maxThickness ? e.value.style.chart.layout.maxThickness : t) * e.value.style.chart.layout.gutter.width,
299
- track: (t > e.value.style.chart.layout.maxThickness ? e.value.style.chart.layout.maxThickness : t) * e.value.style.chart.layout.track.width
300
- };
301
- }), f = h(() => K.value.filter((t) => !m.value.includes(t.id)).map((t, l) => {
302
- const a = (p.value.maxRadius - N.value.track) / Dt.value / 2 * (1 + l), o = p.value.centerY - a;
303
- return {
304
- percentage: t.percentage || 0,
305
- ...t,
306
- labelY: o,
307
- radius: a,
308
- path: Ft(a, t.percentage || 0)
309
- };
310
- }));
311
- function Ft(t, l) {
312
- const a = 2 * Math.PI * t, o = a * 0.75, c = `${o} ${a}`, i = o * (1 - l / 100);
313
- return {
314
- bgDashArray: `${o} ${a}`,
315
- bgDashOffset: 0,
316
- dashArray: c,
317
- dashOffset: i,
318
- fullOffset: 0,
319
- active: `
320
- M ${p.value.centerX},${p.value.centerY - t}
321
- A ${t},${t} 0 1 1
322
- ${p.value.centerX + t * Math.cos(Math.PI * 3 / 4)},${p.value.centerY + t * Math.sin(Math.PI * 3 / 4)}
323
- `.trim()
324
- };
325
- }
326
- const He = it;
327
- function Mt() {
328
- m.value.length ? m.value = [] : H.value.forEach((t) => {
329
- m.value.push(t.id);
330
- });
331
- }
332
- function ae(t) {
333
- if (m.value.includes(t))
334
- m.value = m.value.filter((l) => l !== t);
335
- else {
336
- if (m.value.length === b.value.length - 1)
337
- return;
338
- m.value.push(t);
339
- }
340
- He("selectLegend", f.value);
341
- }
342
- function Ke(t) {
343
- if (!b.value.length)
344
- return e.value.debug && console.warn("VueUiOnion - There are no series to show."), null;
345
- const l = b.value.find((a) => a.name === t);
346
- return l || (e.value.debug && console.warn(`VueUiOnion - Series name not found "${t}"`), null);
347
- }
348
- function _t(t) {
349
- const l = Ke(t);
350
- l !== null && m.value.includes(l.id) && ae(l.id);
351
- }
352
- function Lt(t) {
353
- const l = Ke(t);
354
- l !== null && (m.value.includes(l.id) || ae(l.id));
355
- }
356
- function Rt() {
357
- return f.value;
358
- }
359
- const fe = h(() => {
360
- const t = [
361
- e.value.table.translations.serie,
362
- e.value.table.translations.percentage,
363
- e.value.table.translations.value
364
- ], l = f.value.map((a) => [a.name, a.percentage, a.value]);
365
- return { head: t, body: l };
366
- }), U = h(() => {
367
- const t = fe.value.head, l = f.value.map((o) => [
368
- `<span style="color:${o.color}" aria-hidden="true">⬤</span> ${o.name}`,
369
- `${Number(o.percentage ?? 0).toFixed(e.value.table.td.roundingPercentage).toLocaleString()}%`,
370
- `${o.prefix || ""}${[null, void 0, NaN, "NaN"].includes(o.value) ? "-" : o.value.toFixed(e.value.table.td.roundingValue).toLocaleString()}${o.suffix || ""}`
371
- ]), a = {
372
- th: {
373
- backgroundColor: e.value.table.th.backgroundColor,
374
- color: e.value.table.th.color,
375
- outline: e.value.table.th.outline
376
- },
377
- td: {
378
- backgroundColor: e.value.table.td.backgroundColor,
379
- color: e.value.table.td.color,
380
- outline: e.value.table.td.outline
381
- },
382
- breakpoint: e.value.table.responsiveBreakpoint
383
- };
384
- return { head: t, body: l, config: a, colNames: t };
385
- });
386
- function pe(t = null) {
387
- $e(() => {
388
- const l = [
389
- [e.value.style.chart.title.text],
390
- [e.value.style.chart.title.subtitle.text],
391
- [""]
392
- ], a = fe.value.head, o = fe.value.body, c = l.concat([a]).concat(o), i = ra(c);
393
- t ? t(i) : ia({
394
- csvContent: i,
395
- title: e.value.style.chart.title.text || "vue-ui-onion"
396
- });
397
- });
398
- }
399
- const x = s(void 0), z = s(!1);
400
- function We(t) {
401
- z.value = t, xe.value += 1;
402
- }
403
- function ye({ datapoint: t }) {
404
- e.value.events.datapointClick && e.value.events.datapointClick({
405
- datapoint: t,
406
- seriesIndex: t.absoluteIndex
407
- });
408
- }
409
- function je({ datapoint: t }) {
410
- x.value = void 0, Y.value = !1, F.value = null, G.value = "pointer", e.value.events.datapointLeave && e.value.events.datapointLeave({
411
- datapoint: t,
412
- seriesIndex: t.absoluteIndex
413
- });
414
- }
415
- function me({ val: t, percentage: l, showVal: a, showPercentage: o, config: c }) {
416
- return va({
417
- config: c,
418
- val: t,
419
- percentage: l,
420
- showVal: a,
421
- showPercentage: o
422
- });
423
- }
424
- function Bt(t, l) {
425
- const a = e.value.style.chart.layout.labels.value.show, o = e.value.style.chart.layout.labels.percentage.show, c = me({
426
- config: e.value.style.chart.layout.labels,
427
- showVal: a,
428
- showPercentage: o,
429
- val: Pe(
430
- e.value.style.chart.layout.labels.value.formatter,
431
- t.value,
432
- E({
433
- p: t.prefix || "",
434
- v: t.value || 0,
435
- s: t.suffix || "",
436
- r: e.value.style.chart.layout.labels.roundingValue
437
- }),
438
- { datapoint: t, seriesIndex: l }
439
- ),
440
- percentage: E({
441
- v: t.percentage,
442
- s: "%",
443
- r: e.value.style.chart.layout.labels.roundingPercentage
444
- })
445
- });
446
- return `${t.name}${a || o ? ": " : ""}${c}`;
447
- }
448
- const le = s(null);
449
- function be({
450
- datapoint: t,
451
- seriesIndex: l,
452
- show: a = !0,
453
- triggerMode: o = "pointer"
454
- }) {
455
- e.value.events.datapointEnter && e.value.events.datapointEnter({
456
- datapoint: t,
457
- seriesIndex: t.absoluteIndex
458
- }), G.value = o, F.value = l;
459
- const c = t.absoluteIndex;
460
- x.value = l, le.value = {
461
- datapoint: t,
462
- seriesIndex: c,
463
- series: b.value,
464
- config: e.value
465
- }, Y.value = a;
466
- let i = "";
467
- const T = e.value.style.chart.tooltip.customFormat;
468
- if (st(T) && ca(
469
- () => T({
470
- seriesIndex: c,
471
- datapoint: t,
472
- series: b.value,
473
- config: e.value
474
- })
475
- ))
476
- se.value = T({
477
- seriesIndex: c,
478
- datapoint: t,
479
- series: b.value,
480
- config: e.value
481
- });
482
- else {
483
- const oe = e.value.style.chart.tooltip.showPercentage, qt = e.value.style.chart.tooltip.showValue;
484
- i += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${t.name}</div>`, i += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 60 60" height="14" width="14"><circle cx="30" cy="30" r="30" stroke="none" fill="${t.color}"/></svg>`, i += `<b>${me({
485
- config: e.value.style.chart.tooltip,
486
- showVal: qt,
487
- showPercentage: oe,
488
- val: `<span>${Pe(
489
- e.value.style.chart.layout.labels.value.formatter,
490
- t.value,
491
- E({
492
- p: t.prefix || "",
493
- v: t.value,
494
- s: t.suffix || "",
495
- r: e.value.style.chart.tooltip.roundingValue
496
- }),
497
- {
498
- datapoint: t,
499
- seriesIndex: l
500
- }
501
- )}</span>`,
502
- percentage: E({
503
- v: t.percentage,
504
- s: "%",
505
- r: e.value.style.chart.tooltip.roundingPercentage
506
- })
507
- })}</b></div>`, se.value = `<div>${i}</div>`;
508
- }
509
- }
510
- function qe() {
511
- $.value.showTable = !$.value.showTable;
512
- }
513
- function Je() {
514
- $.value.showTooltip = !$.value.showTooltip;
515
- }
516
- const W = s(!1);
517
- function ke() {
518
- W.value = !W.value;
519
- }
520
- async function Nt({ scale: t = 2 } = {}) {
521
- if (!I.value) return;
522
- const { width: l, height: a } = I.value.getBoundingClientRect(), o = l / a, { imageUri: c, base64: i } = await $a({
523
- domElement: I.value,
524
- base64: !0,
525
- img: !0,
526
- scale: t
527
- });
528
- return {
529
- imageUri: c,
530
- base64: i,
531
- title: e.value.style.chart.title.text,
532
- width: l,
533
- height: a,
534
- aspectRatio: o
535
- };
536
- }
537
- const j = h(() => {
538
- const t = e.value.table.useDialog && !e.value.table.show, l = $.value.showTable;
539
- return {
540
- component: t ? yt : dt,
541
- title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
542
- props: t ? {
543
- backgroundColor: e.value.table.th.backgroundColor,
544
- color: e.value.table.th.color,
545
- headerColor: e.value.table.th.color,
546
- headerBg: e.value.table.th.backgroundColor,
547
- isFullscreen: z.value,
548
- fullscreenParent: I.value,
549
- forcedWidth: Math.min(600, window.innerWidth * 0.8),
550
- isCursorPointer: B.value
551
- } : {
552
- hideDetails: !0,
553
- config: {
554
- open: l,
555
- maxHeight: 1e4,
556
- body: {
557
- backgroundColor: e.value.style.chart.backgroundColor,
558
- color: e.value.style.chart.color
559
- },
560
- head: {
561
- backgroundColor: e.value.style.chart.backgroundColor,
562
- color: e.value.style.chart.color
563
- }
564
- }
565
- }
566
- };
567
- });
568
- q(
569
- () => $.value.showTable,
570
- (t) => {
571
- e.value.table.show || (t && e.value.table.useDialog && X.value ? X.value.open() : "close" in X.value && X.value.close());
572
- }
573
- );
574
- const zt = h(() => H.value.map((t) => ({
575
- ...t,
576
- name: t.display
577
- }))), Vt = h(() => e.value.style.chart.backgroundColor), Ut = h(() => e.value.style.chart.legend), Et = h(() => e.value.style.chart.title), { exportSvg: Yt, getSvg: Xt } = ma({
578
- svg: M,
579
- title: Et,
580
- legend: Ut,
581
- legendItems: zt,
582
- backgroundColor: Vt
583
- });
584
- async function Qe({ isCb: t }) {
585
- te.value = !0, await $e();
586
- try {
587
- if (t) {
588
- const { blob: l, url: a, text: o, dataUrl: c } = await Xt();
589
- await Promise.resolve(
590
- e.value.userOptions.callbacks.svg({
591
- blob: l,
592
- url: a,
593
- text: o,
594
- dataUrl: c
595
- })
596
- );
597
- } else
598
- await Promise.resolve(Yt());
599
- } finally {
600
- te.value = !1;
601
- }
602
- }
603
- function Gt(t) {
604
- if (t?.stage === "start") {
605
- ee.value = !0;
606
- return;
607
- }
608
- if (t?.stage === "end") {
609
- ee.value = !1;
610
- return;
611
- }
612
- Ee();
613
- }
614
- async function Ze() {
615
- if (He("copyAlt", {
616
- config: e.value,
617
- dataset: f.value
618
- }), !e.value.userOptions.callbacks.altCopy) {
619
- console.warn(
620
- "Vue Data UI - A callback must be set for `altCopy` in userOptions."
621
- );
622
- return;
623
- }
624
- await Promise.resolve(
625
- e.value.userOptions.callbacks.altCopy({
626
- config: e.value,
627
- dataset: f.value
628
- })
629
- );
630
- }
631
- function Ht() {
632
- F.value = null, ue.value = !0;
633
- }
634
- function Kt() {
635
- F.value = null, G.value = "pointer", Y.value = !1, x.value = void 0, ue.value = !1;
636
- }
637
- function Wt(t) {
638
- if (!M.value || W.value || document.activeElement !== M.value || !f.value.length) return;
639
- const l = ["ArrowLeft", "ArrowDown"].includes(t.key), a = ["ArrowRight", "ArrowUp"].includes(t.key), o = t.key === "Enter" || t.key === " ", c = t.key === "Escape";
640
- if (!l && !a && !o && !c)
641
- return;
642
- if (t.preventDefault(), t.stopPropagation(), c) {
643
- F.value = null, G.value = "pointer", Y.value = !1, x.value = void 0;
644
- return;
645
- }
646
- if (o) {
647
- if (F.value === null) return;
648
- const oe = f.value[F.value];
649
- if (!oe) return;
650
- ye({ datapoint: oe });
651
- return;
652
- }
653
- let i = F.value;
654
- i === null || i < 0 || i >= f.value.length ? i = a ? 0 : f.value.length - 1 : a ? (i += 1, i >= f.value.length && (i = 0)) : l && (i -= 1, i < 0 && (i = f.value.length - 1));
655
- const T = f.value[i];
656
- T && (jt(i), be({
657
- datapoint: T,
658
- seriesIndex: i,
659
- show: !0,
660
- triggerMode: "keyboard"
661
- }));
662
- }
663
- function jt(t) {
664
- if (!Number.isFinite(t) || !M.value) return;
665
- const l = f.value[t];
666
- if (!l) return;
667
- const a = l.radius, o = Math.PI * 7 / 4, c = p.value.centerX + a * Math.cos(o), i = p.value.centerY + a * Math.sin(o), T = M.value.getBoundingClientRect();
668
- Be.value = {
669
- x: T.left + c / n.value.width * T.width,
670
- y: T.top + i / n.value.height * T.height
671
- };
672
- }
673
- const we = h(() => {
674
- const t = U.value?.colNames ?? [], l = U.value?.body ?? [];
675
- return { headers: t, rows: l };
676
- });
677
- return rt({
678
- getData: Rt,
679
- getImage: Nt,
680
- generatePdf: Ue,
681
- generateCsv: pe,
682
- generateImage: Ee,
683
- generateSvg: Qe,
684
- hideSeries: Lt,
685
- showSeries: _t,
686
- toggleTable: qe,
687
- toggleTooltip: Je,
688
- toggleAnnotator: ke,
689
- toggleFullscreen: We,
690
- copyAlt: Ze
691
- }), (t, l) => (u(), g("div", {
692
- class: ne(`vue-data-ui-component vue-ui-onion ${z.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
693
- ref_key: "onionChart",
694
- ref: I,
695
- id: `vue-ui-onion_${C.value}`,
696
- style: R(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height: 100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
697
- onMouseenter: l[4] || (l[4] = () => r(ze)(!0)),
698
- onMouseleave: l[5] || (l[5] = () => r(ze)(!1))
699
- }, [
700
- S("div", {
701
- id: `chart-instructions-${C.value}`,
702
- class: "sr-only"
703
- }, [
704
- S("p", null, J(e.value.a11y.translations.keyboardNavigation), 1)
705
- ], 8, Da),
706
- we.value?.rows?.length ? (u(), O(Sa, {
707
- key: 0,
708
- uid: C.value,
709
- head: we.value.headers,
710
- body: we.value.rows,
711
- notice: e.value.a11y.translations.tableAvailable,
712
- caption: e.value.a11y.translations.tableCaption
713
- }, null, 8, ["uid", "head", "body", "notice", "caption"])) : y("", !0),
714
- e.value.userOptions.buttons.annotator ? (u(), O(r(ft), {
715
- key: 1,
716
- svgRef: r(M),
717
- backgroundColor: e.value.style.chart.backgroundColor,
718
- color: e.value.style.chart.color,
719
- active: W.value,
720
- isCursorPointer: B.value,
721
- onClose: ke
722
- }, {
723
- "annotator-action-close": v(() => [
724
- d(t.$slots, "annotator-action-close", {}, void 0, !0)
725
- ]),
726
- "annotator-action-color": v(({ color: a }) => [
727
- d(t.$slots, "annotator-action-color", k(w({ color: a })), void 0, !0)
728
- ]),
729
- "annotator-action-draw": v(({ mode: a }) => [
730
- d(t.$slots, "annotator-action-draw", k(w({ mode: a })), void 0, !0)
731
- ]),
732
- "annotator-action-undo": v(({ disabled: a }) => [
733
- d(t.$slots, "annotator-action-undo", k(w({ disabled: a })), void 0, !0)
734
- ]),
735
- "annotator-action-redo": v(({ disabled: a }) => [
736
- d(t.$slots, "annotator-action-redo", k(w({ disabled: a })), void 0, !0)
737
- ]),
738
- "annotator-action-delete": v(({ disabled: a }) => [
739
- d(t.$slots, "annotator-action-delete", k(w({ disabled: a })), void 0, !0)
740
- ]),
741
- _: 3
742
- }, 8, ["svgRef", "backgroundColor", "color", "active", "isCursorPointer"])) : y("", !0),
743
- $t.value ? (u(), g("div", {
744
- key: 2,
745
- ref_key: "noTitle",
746
- ref: Fe,
747
- class: "vue-data-ui-no-title-space",
748
- style: "height:36px; width: 100%;background:transparent"
749
- }, null, 512)) : y("", !0),
750
- e.value.style.chart.title.text ? (u(), g("div", {
751
- key: 3,
752
- ref_key: "chartTitle",
753
- ref: Oe,
754
- style: "width:100%;background:transparent"
755
- }, [
756
- (u(), O(Ta, {
757
- key: `title_${Me.value}`,
758
- config: {
759
- title: {
760
- cy: "onion-div-title",
761
- ...e.value.style.chart.title
762
- },
763
- subtitle: {
764
- cy: "onion-div-subtitle",
765
- ...e.value.style.chart.title.subtitle
766
- }
767
- }
768
- }, null, 8, ["config"]))
769
- ], 512)) : y("", !0),
770
- S("div", {
771
- id: `legend-top-${C.value}`
772
- }, null, 8, Fa),
773
- e.value.userOptions.show && Se.value && (r(Ve) || r(ie)) ? (u(), O(r(gt), {
774
- ref_key: "details",
775
- ref: wt,
776
- key: `user_options${xe.value}`,
777
- backgroundColor: e.value.style.chart.backgroundColor,
778
- color: e.value.style.chart.color,
779
- isImaging: r(de),
780
- isPrinting: r(ve),
781
- uid: C.value,
782
- hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
783
- hasPdf: e.value.userOptions.buttons.pdf,
784
- hasImg: e.value.userOptions.buttons.img,
785
- hasSvg: e.value.userOptions.buttons.svg,
786
- hasXls: e.value.userOptions.buttons.csv,
787
- hasTable: e.value.userOptions.buttons.table,
788
- hasFullscreen: e.value.userOptions.buttons.fullscreen,
789
- hasAltCopy: e.value.userOptions.buttons.altCopy,
790
- isFullscreen: z.value,
791
- isTooltip: $.value.showTooltip,
792
- titles: { ...e.value.userOptions.buttonTitles },
793
- chartElement: I.value,
794
- position: e.value.userOptions.position,
795
- hasAnnotator: e.value.userOptions.buttons.annotator,
796
- isAnnotation: W.value,
797
- callbacks: e.value.userOptions.callbacks,
798
- printScale: e.value.userOptions.print.scale,
799
- tableDialog: e.value.table.useDialog,
800
- isCursorPointer: B.value,
801
- onToggleFullscreen: We,
802
- onGeneratePdf: r(Ue),
803
- onGenerateCsv: pe,
804
- onGenerateImage: Gt,
805
- onGenerateSvg: Qe,
806
- onToggleTable: qe,
807
- onToggleTooltip: Je,
808
- onToggleAnnotator: ke,
809
- onCopyAlt: Ze,
810
- style: R({
811
- visibility: r(Ve) ? r(ie) ? "visible" : "hidden" : "visible"
812
- })
813
- }, tt({ _: 2 }, [
814
- t.$slots.menuIcon ? {
815
- name: "menuIcon",
816
- fn: v(({ isOpen: a, color: o }) => [
817
- d(t.$slots, "menuIcon", k(w({ isOpen: a, color: o })), void 0, !0)
818
- ]),
819
- key: "0"
820
- } : void 0,
821
- t.$slots.optionTooltip ? {
822
- name: "optionTooltip",
823
- fn: v(() => [
824
- d(t.$slots, "optionTooltip", {}, void 0, !0)
825
- ]),
826
- key: "1"
827
- } : void 0,
828
- t.$slots.optionPdf ? {
829
- name: "optionPdf",
830
- fn: v(() => [
831
- d(t.$slots, "optionPdf", {}, void 0, !0)
832
- ]),
833
- key: "2"
834
- } : void 0,
835
- t.$slots.optionCsv ? {
836
- name: "optionCsv",
837
- fn: v(() => [
838
- d(t.$slots, "optionCsv", {}, void 0, !0)
839
- ]),
840
- key: "3"
841
- } : void 0,
842
- t.$slots.optionImg ? {
843
- name: "optionImg",
844
- fn: v(() => [
845
- d(t.$slots, "optionImg", {}, void 0, !0)
846
- ]),
847
- key: "4"
848
- } : void 0,
849
- t.$slots.optionSvg ? {
850
- name: "optionSvg",
851
- fn: v(() => [
852
- d(t.$slots, "optionSvg", {}, void 0, !0)
853
- ]),
854
- key: "5"
855
- } : void 0,
856
- t.$slots.optionTable ? {
857
- name: "optionTable",
858
- fn: v(() => [
859
- d(t.$slots, "optionTable", {}, void 0, !0)
860
- ]),
861
- key: "6"
862
- } : void 0,
863
- t.$slots.optionFullscreen ? {
864
- name: "optionFullscreen",
865
- fn: v(({ toggleFullscreen: a, isFullscreen: o }) => [
866
- d(t.$slots, "optionFullscreen", k(w({ toggleFullscreen: a, isFullscreen: o })), void 0, !0)
867
- ]),
868
- key: "7"
869
- } : void 0,
870
- t.$slots.optionAnnotator ? {
871
- name: "optionAnnotator",
872
- fn: v(({ toggleAnnotator: a, isAnnotator: o }) => [
873
- d(t.$slots, "optionAnnotator", k(w({ toggleAnnotator: a, isAnnotator: o })), void 0, !0)
874
- ]),
875
- key: "8"
876
- } : void 0,
877
- t.$slots.optionAltCopy ? {
878
- name: "optionAltCopy",
879
- fn: v(({ altCopy: a }) => [
880
- d(t.$slots, "optionAltCopy", k(w({ altCopy: a })), void 0, !0)
881
- ]),
882
- key: "9"
883
- } : void 0
884
- ]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasSvg", "hasXls", "hasTable", "hasFullscreen", "hasAltCopy", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "isCursorPointer", "onGeneratePdf", "style"])) : y("", !0),
885
- S("div", Ma, [
886
- (u(), g("svg", {
887
- ref_key: "svgRef",
888
- ref: M,
889
- xmlns: r(ua),
890
- "aria-describedby": `chart-instructions-${C.value}`,
891
- class: ne({
892
- "vue-data-ui-fullscreen--on": z.value,
893
- "vue-data-ui-fulscreen--off": !z.value,
894
- resizing: D.value
895
- }),
896
- viewBox: `0 0 ${n.value.width <= 0 ? 10 : n.value.width} ${n.value.height <= 0 ? 10 : n.value.height}`,
897
- style: R(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`),
898
- tabindex: "0",
899
- onFocus: Ht,
900
- onBlur: Kt,
901
- onKeydown: Wt
902
- }, [
903
- Ce(r(pt)),
904
- t.$slots["chart-background"] ? (u(), g("foreignObject", {
905
- key: 0,
906
- x: 0,
907
- y: 0,
908
- width: n.value.width <= 0 ? 10 : n.value.width,
909
- height: n.value.height <= 0 ? 10 : n.value.height,
910
- style: {
911
- pointerEvents: "none"
912
- }
913
- }, [
914
- d(t.$slots, "chart-background", {}, void 0, !0)
915
- ], 8, La)) : y("", !0),
916
- (u(!0), g(Q, null, Z(f.value, (a, o) => (u(), g("circle", {
917
- cx: p.value.centerX,
918
- cy: p.value.centerY,
919
- r: a.radius <= 0 ? 1e-4 : a.radius,
920
- stroke: e.value.style.chart.layout.gutter.color,
921
- "stroke-width": N.value.gutter,
922
- fill: "none",
923
- "stroke-dasharray": a.path.bgDashArray,
924
- "stroke-dashoffset": a.path.fullOffset,
925
- "stroke-linecap": "round",
926
- class: ne({
927
- "vue-ui-onion-path": !0,
928
- "vue-ui-onion-blur": e.value.useBlurOnHover && ![null, void 0].includes(x.value) && x.value !== o
929
- }),
930
- style: R({
931
- transform: "rotate(-90deg)",
932
- transformOrigin: "50% 50%",
933
- transition: D.value || r(A) ? "none" : "all 0.3s ease-in-out !important",
934
- animation: D.value || r(A) ? "none" : "xyAnimation 0.5s ease-in"
935
- })
936
- }, null, 14, Ra))), 256)),
937
- (u(!0), g(Q, null, Z(f.value, (a, o) => (u(), g("circle", {
938
- cx: p.value.centerX,
939
- cy: p.value.centerY,
940
- r: a.radius < 0 ? 1e-4 : a.radius,
941
- stroke: `${a.color}`,
942
- "stroke-width": N.value.track,
943
- fill: "none",
944
- "stroke-dasharray": a.path.dashArray,
945
- "stroke-dashoffset": a.path.dashOffset,
946
- class: ne({
947
- "vue-ui-onion-path": !0,
948
- "vue-ui-onion-blur": e.value.useBlurOnHover && ![null, void 0].includes(x.value) && x.value !== o
949
- }),
950
- "stroke-linecap": "round",
951
- style: R({
952
- transform: "rotate(-90deg)",
953
- transformOrigin: "50% 50%",
954
- transition: D.value || r(A) ? "none" : "all 0.3s ease-in-out !important",
955
- animation: D.value || r(A) ? "none" : "xyAnimation 0.5s ease-in"
956
- })
957
- }, null, 14, Ba))), 256)),
958
- S("defs", null, [
959
- S("filter", {
960
- id: `blur_${C.value}`,
961
- x: "-50%",
962
- y: "-50%",
963
- width: "200%",
964
- height: "200%"
965
- }, [
966
- S("feGaussianBlur", {
967
- in: "SourceGraphic",
968
- stdDeviation: 100 / e.value.style.chart.gradientIntensity
969
- }, null, 8, za)
970
- ], 8, Na)
971
- ]),
972
- e.value.style.chart.useGradient ? (u(), g("g", {
973
- key: 1,
974
- filter: `url(#blur_${C.value})`
975
- }, [
976
- (u(!0), g(Q, null, Z(f.value, (a, o) => (u(), g("circle", {
977
- cx: p.value.centerX,
978
- cy: p.value.centerY,
979
- r: a.radius <= 0 ? 1e-4 : a.radius,
980
- stroke: "white",
981
- "stroke-width": N.value.track / 3,
982
- fill: "none",
983
- "stroke-linecap": "round",
984
- "stroke-dasharray": a.path.dashArray,
985
- "stroke-dashoffset": a.path.dashOffset,
986
- style: R({
987
- transform: "rotate(-90deg)",
988
- transformOrigin: "50% 50%",
989
- transition: D.value || r(A) ? "none" : "all 0.3s ease-in-out !important",
990
- animation: D.value || r(A) ? "none" : "xyAnimation 0.5s ease-in"
991
- })
992
- }, null, 12, Ua))), 256))
993
- ], 8, Va)) : y("", !0),
994
- (u(!0), g(Q, null, Z(f.value, (a, o) => (u(), g("circle", {
995
- cx: p.value.centerX,
996
- cy: p.value.centerY,
997
- r: a.radius <= 0 ? 1e-4 : a.radius,
998
- stroke: "transparent",
999
- "stroke-width": Math.max(N.value.track, N.value.gutter),
1000
- fill: "none",
1001
- "stroke-dasharray": a.path.bgDashArray,
1002
- "stroke-dashoffset": a.path.fullOffset,
1003
- "stroke-linecap": "round",
1004
- class: "vue-ui-onion-path",
1005
- style: {
1006
- transform: "rotate(-90deg)",
1007
- transformOrigin: "50% 50%"
1008
- },
1009
- onMouseenter: (c) => be({
1010
- datapoint: a,
1011
- show: !0,
1012
- seriesIndex: o,
1013
- triggerMode: "pointer"
1014
- }),
1015
- onMouseleave: (c) => je({ datapoint: a }),
1016
- onClick: (c) => ye({ datapoint: a })
1017
- }, null, 40, Ea))), 256)),
1018
- e.value.style.chart.layout.labels.show ? (u(), g("g", Ya, [
1019
- (u(!0), g(Q, null, Z(f.value, (a, o) => (u(), g("g", {
1020
- onMouseenter: (c) => be({
1021
- datapoint: a,
1022
- show: !0,
1023
- seriesIndex: o,
1024
- triggerMode: "pointer"
1025
- }),
1026
- onMouseleave: (c) => je({ datapoint: a }),
1027
- onClick: (c) => ye({ datapoint: a })
1028
- }, [
1029
- m.value.includes(a.id) ? y("", !0) : (u(), g("text", {
1030
- key: 0,
1031
- class: "vue-ui-onion-label",
1032
- x: n.value.width / 2 - N.value.gutter * 0.8 + e.value.style.chart.layout.labels.offsetX,
1033
- y: a.labelY + e.value.style.chart.layout.labels.offsetY,
1034
- "text-anchor": "end",
1035
- "font-size": e.value.style.chart.layout.labels.fontSize,
1036
- fill: e.value.useBlurOnHover && ![null, void 0].includes(x.value) && x.value === o ? a.color : e.value.style.chart.layout.labels.color,
1037
- "font-weight": e.value.style.chart.layout.labels.bold ? "bold" : "normal"
1038
- }, J(Bt(a, o)), 9, Ga))
1039
- ], 40, Xa))), 256))
1040
- ])) : y("", !0),
1041
- d(t.$slots, "svg", {
1042
- svg: {
1043
- ...n.value,
1044
- isPrintingImg: r(ve) | r(de) | ee.value,
1045
- isPrintingSvg: te.value
1046
- }
1047
- }, void 0, !0)
1048
- ], 46, _a)),
1049
- t.$slots.hint ? (u(), g("div", Ha, [
1050
- d(t.$slots, "hint", k(w({
1051
- hint: e.value.a11y.translations.keyboardNavigation,
1052
- isVisible: ue.value
1053
- })), void 0, !0)
1054
- ])) : y("", !0)
1055
- ]),
1056
- t.$slots.watermark ? (u(), g("div", Ka, [
1057
- d(t.$slots, "watermark", k(w({
1058
- isPrinting: r(ve) || r(de) || ee.value || te.value
1059
- })), void 0, !0)
1060
- ])) : y("", !0),
1061
- S("div", {
1062
- id: `legend-bottom-${C.value}`
1063
- }, null, 8, Wa),
1064
- Re.value && (e.value.style.chart.legend.show || t.$slots.legend) ? (u(), O(ea, {
1065
- key: 6,
1066
- to: e.value.style.chart.legend.position === "top" ? `#legend-top-${C.value}` : `#legend-bottom-${C.value}`
1067
- }, [
1068
- S("div", {
1069
- ref_key: "chartLegend",
1070
- ref: Ie
1071
- }, [
1072
- d(t.$slots, "legend", { legend: H.value }, () => [
1073
- e.value.style.chart.legend.show ? (u(), O(Pa, {
1074
- key: `legend_${Le.value}`,
1075
- legendSet: H.value,
1076
- config: It.value,
1077
- isCursorPointer: B.value,
1078
- onClickMarker: l[0] || (l[0] = ({ legend: a }) => ae(a.id))
1079
- }, {
1080
- item: v(({ legend: a }) => [
1081
- r(A) ? y("", !0) : (u(), g("div", {
1082
- key: 0,
1083
- "data-cy-legend-item": "",
1084
- onClick: (o) => a.segregate(),
1085
- style: R(`opacity:${m.value.includes(a.id) ? 0.5 : 1}`)
1086
- }, J(a.display), 13, ja))
1087
- ]),
1088
- legendToggle: v(() => [
1089
- H.value.length > 2 && e.value.style.chart.legend.selectAllToggle.show && !r(A) ? (u(), O(xa, {
1090
- key: 0,
1091
- backgroundColor: e.value.style.chart.legend.selectAllToggle.backgroundColor,
1092
- color: e.value.style.chart.legend.selectAllToggle.color,
1093
- fontSize: e.value.style.chart.legend.fontSize,
1094
- checked: m.value.length > 0,
1095
- isCursorPointer: B.value,
1096
- onToggle: Mt
1097
- }, null, 8, ["backgroundColor", "color", "fontSize", "checked", "isCursorPointer"])) : y("", !0)
1098
- ]),
1099
- _: 1
1100
- }, 8, ["legendSet", "config", "isCursorPointer"])) : y("", !0)
1101
- ], !0)
1102
- ], 512)
1103
- ], 8, ["to"])) : y("", !0),
1104
- t.$slots.source ? (u(), g("div", {
1105
- key: 7,
1106
- ref_key: "source",
1107
- ref: De,
1108
- dir: "auto"
1109
- }, [
1110
- d(t.$slots, "source", {}, void 0, !0)
1111
- ], 512)) : y("", !0),
1112
- Ce(r(ct), {
1113
- teleportTo: e.value.style.chart.tooltip.teleportTo,
1114
- show: $.value.showTooltip && Y.value,
1115
- backgroundColor: e.value.style.chart.tooltip.backgroundColor,
1116
- color: e.value.style.chart.tooltip.color,
1117
- borderRadius: e.value.style.chart.tooltip.borderRadius,
1118
- borderColor: e.value.style.chart.tooltip.borderColor,
1119
- borderWidth: e.value.style.chart.tooltip.borderWidth,
1120
- fontSize: e.value.style.chart.tooltip.fontSize,
1121
- backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
1122
- position: e.value.style.chart.tooltip.position,
1123
- offsetY: e.value.style.chart.tooltip.offsetY,
1124
- parent: I.value,
1125
- content: se.value,
1126
- isFullscreen: z.value,
1127
- isCustom: r(st)(e.value.style.chart.tooltip.customFormat),
1128
- smooth: e.value.style.chart.tooltip.smooth,
1129
- backdropFilter: e.value.style.chart.tooltip.backdropFilter,
1130
- smoothForce: e.value.style.chart.tooltip.smoothForce,
1131
- smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold,
1132
- isA11yMode: G.value === "keyboard",
1133
- a11yPosition: Be.value
1134
- }, {
1135
- "tooltip-before": v(() => [
1136
- d(t.$slots, "tooltip-before", k(w({ ...le.value })), void 0, !0)
1137
- ]),
1138
- tooltip: v(() => [
1139
- d(t.$slots, "tooltip", k(w({ ...le.value })), void 0, !0)
1140
- ]),
1141
- "tooltip-after": v(() => [
1142
- d(t.$slots, "tooltip-after", k(w({ ...le.value })), void 0, !0)
1143
- ]),
1144
- _: 3
1145
- }, 8, ["teleportTo", "show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold", "isA11yMode", "a11yPosition"]),
1146
- Se.value && e.value.userOptions.buttons.table ? (u(), O(ta(j.value.component), aa({ key: 8 }, j.value.props, {
1147
- ref_key: "tableUnit",
1148
- ref: X,
1149
- onClose: l[3] || (l[3] = (a) => $.value.showTable = !1)
1150
- }), tt({
1151
- content: v(() => [
1152
- (u(), O(r(ht), {
1153
- key: `table_${_e.value}`,
1154
- colNames: U.value.colNames,
1155
- head: U.value.head,
1156
- body: U.value.body,
1157
- config: U.value.config,
1158
- title: e.value.table.useDialog ? "" : j.value.title,
1159
- withCloseButton: !e.value.table.useDialog,
1160
- isCursorPointer: B.value,
1161
- onClose: l[2] || (l[2] = (a) => $.value.showTable = !1)
1162
- }, {
1163
- th: v(({ th: a }) => [
1164
- at(J(a), 1)
1165
- ]),
1166
- td: v(({ td: a }) => [
1167
- S("div", { innerHTML: a }, null, 8, qa)
1168
- ]),
1169
- _: 1
1170
- }, 8, ["colNames", "head", "body", "config", "title", "withCloseButton", "isCursorPointer"]))
1171
- ]),
1172
- _: 2
1173
- }, [
1174
- e.value.table.useDialog ? {
1175
- name: "title",
1176
- fn: v(() => [
1177
- at(J(j.value.title), 1)
1178
- ]),
1179
- key: "0"
1180
- } : void 0,
1181
- e.value.table.useDialog ? {
1182
- name: "actions",
1183
- fn: v(() => [
1184
- S("button", {
1185
- tabindex: "0",
1186
- class: "vue-ui-user-options-button",
1187
- onClick: l[1] || (l[1] = (a) => pe(e.value.userOptions.callbacks.csv)),
1188
- style: R({ cursor: B.value ? "pointer" : "default" })
1189
- }, [
1190
- Ce(r(vt), {
1191
- name: "fileCsv",
1192
- stroke: j.value.props.color
1193
- }, null, 8, ["stroke"])
1194
- ], 4)
1195
- ]),
1196
- key: "1"
1197
- } : void 0
1198
- ]), 1040)) : y("", !0),
1199
- d(t.$slots, "skeleton", {}, () => [
1200
- r(A) ? (u(), O(pa, { key: 0 })) : y("", !0)
1201
- ], !0)
1202
- ], 46, Ia));
1203
- }
1204
- }, ml = /* @__PURE__ */ Oa(Ja, [["__scopeId", "data-v-605b0803"]]);
1205
- export {
1206
- ml as default
1207
- };