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