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,1824 +0,0 @@
1
- import { defineAsyncComponent as Z, computed as M, ref as m, toRefs as Xt, watch as Oe, onMounted as Kt, openBlock as c, createElementBlock as v, unref as s, normalizeStyle as j, normalizeClass as rt, createElementVNode as d, toDisplayString as N, createBlock as Y, createCommentVNode as p, withCtx as C, renderSlot as _, normalizeProps as z, guardReactiveProps as L, createSlots as ut, createVNode as it, Fragment as T, renderList as F, withKeys as dt, withModifiers as ct, mergeProps as Be, resolveDynamicComponent as qt, createTextVNode as vt, nextTick as Ie } from "vue";
2
- import { j as ht, t as ft, m as Zt, p as $e, n as Yt, s as Jt, o as Qt, q as me, r as Ne, x as G, a4 as pt, K as el, l as B, X as tl, u as w, w as J, k as be, a5 as gt, a6 as _e, a7 as U, a0 as ll, a1 as ol } from "./lib-DMzrGQHK.js";
3
- import { t as al, u as nl } from "./useResponsive-DfdjqQps.js";
4
- import { u as sl } from "./useConfig-CG4HT3wS.js";
5
- import { u as rl, B as ul } from "./BaseScanner-C2j3TsSY.js";
6
- import { u as il } from "./usePrinter-C4t8DdQ-.js";
7
- import { u as dl } from "./useSvgExport-BTG4hVPO.js";
8
- import { u as je } from "./useNestedProp-DH0BEVVS.js";
9
- import { u as cl } from "./useThemeCheck-C9Ccl7U9.js";
10
- import { u as vl } from "./useUserOptionState-B7Ej974k.js";
11
- import { u as hl } from "./useChartAccessibility-cp6XQtqi.js";
12
- import fl from "./img-CjTQXS0U.js";
13
- import pl from "./Title-BbKoiBk2.js";
14
- import gl from "./vue_ui_3d_bar-CL0iX8Qi.js";
15
- import { A as yl } from "./A11yDataTable-BpmuNomI.js";
16
- import { _ as kl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
17
- const $l = ["id"], ml = ["id"], bl = {
18
- "aria-live": "polite",
19
- class: "sr-only"
20
- }, _l = { style: { position: "relative" } }, wl = ["xmlns", "viewBox", "aria-describedby"], xl = ["width", "height"], Cl = ["id"], Pl = ["stop-color"], Al = ["stop-color"], Ml = ["id"], Tl = ["stop-color"], Fl = ["stop-color"], Sl = ["id"], Dl = ["stop-color"], Ol = ["stop-color"], Bl = ["id"], Il = ["stop-color"], Nl = ["stop-color"], jl = ["id"], zl = ["stop-color"], Ll = ["stop-color"], El = ["stop-color"], Vl = ["stop-color"], Wl = ["stop-color"], Rl = { key: 1 }, Gl = ["id"], Ul = ["stop-color"], Hl = ["stop-color"], Xl = ["id"], Kl = ["stop-color"], ql = ["stop-color"], Zl = ["id"], Yl = ["stop-color"], Jl = ["stop-color"], Ql = ["id"], eo = ["x", "y", "font-size", "font-weight", "fill"], to = ["x", "y"], lo = ["cx", "cy", "stroke", "opacity"], oo = ["d", "stroke"], ao = ["d", "stroke"], no = { key: 4 }, so = { key: 0 }, ro = ["stroke-dasharray", "d", "stroke", "stroke-width"], uo = ["stroke-dasharray", "d", "stroke", "stroke-width"], io = ["stroke-dasharray", "d", "stroke", "stroke-width"], co = ["stroke-dasharray", "d", "stroke", "stroke-width"], vo = { key: 1 }, ho = ["d", "stroke", "stroke-width", "fill"], fo = ["d", "stroke", "stroke-width", "fill"], po = ["d", "stroke", "stroke-width", "fill"], go = { key: 2 }, yo = ["aria-label"], ko = ["d", "fill", "onMouseenter", "onClick", "onMouseout"], $o = ["d", "fill", "onMouseenter", "onClick", "onMouseout"], mo = ["d", "fill", "onMouseenter", "onClick", "onMouseout"], bo = ["d", "onMouseenter", "onClick", "onMouseout"], _o = ["d"], wo = ["d", "stroke"], xo = ["onClick"], Co = ["stroke", "d"], Po = ["cx", "cy", "fill", "stroke"], Ao = ["x", "y", "width", "height"], Mo = ["x", "y", "width", "height"], To = { key: 3 }, Fo = ["d", "stroke"], So = ["d", "fill", "stroke"], Do = { key: 0 }, Oo = ["text-anchor", "x", "y", "fill", "font-size", "font-weight"], Bo = ["text-anchor", "x", "y", "fill", "font-size", "font-weight"], Io = { key: 4 }, No = ["d", "fill", "stroke"], jo = { key: 5 }, zo = { key: 0 }, Lo = ["stroke-dasharray", "d", "stroke", "stroke-width"], Eo = ["stroke-dasharray", "d", "stroke", "stroke-width"], Vo = ["stroke-dasharray", "d", "stroke", "stroke-width"], Wo = ["stroke-dasharray", "d", "stroke", "stroke-width"], Ro = ["d", "stroke", "stroke-width", "fill"], Go = ["d", "stroke", "stroke-width", "fill"], Uo = ["d"], Ho = { key: 1 }, Xo = ["aria-label"], Ko = ["id"], qo = ["stop-color"], Zo = ["stop-color"], Yo = ["id"], Jo = ["stop-color"], Qo = ["stop-color"], ea = ["stop-color"], ta = ["stop-color"], la = ["stop-color"], oa = ["onMouseenter", "onClick", "onMouseout", "d", "fill"], aa = ["onMouseenter", "onClick", "onMouseout", "d"], na = ["onMouseenter", "onClick", "onMouseout", "d", "fill"], sa = ["onClick"], ra = ["stroke", "d"], ua = ["cx", "cy", "fill", "stroke"], ia = ["x", "y", "width", "height"], da = ["x", "y", "width", "height"], ca = { key: 3 }, va = ["d", "stroke"], ha = ["d", "fill", "stroke"], fa = { key: 0 }, pa = ["text-anchor", "x", "y", "fill", "font-size", "font-weight"], ga = ["text-anchor", "x", "y", "fill", "font-size", "font-weight"], ya = { key: 4 }, ka = ["d", "fill", "stroke"], $a = {
21
- key: 4,
22
- class: "vue-data-ui-watermark"
23
- }, ma = ["innerHTML"], ba = {
24
- __name: "vue-ui-3d-bar",
25
- props: {
26
- config: {
27
- type: Object,
28
- default() {
29
- return {};
30
- }
31
- },
32
- dataset: {
33
- type: Object,
34
- default() {
35
- return {};
36
- }
37
- }
38
- },
39
- emits: ["selectDatapoint", "copyAlt"],
40
- setup(yt, { expose: kt, emit: $t }) {
41
- const mt = Z(() => import("./BaseIcon-DX0hTWa-.js")), bt = Z(() => import("./vue-ui-accordion-DFtpH_16.js")), _t = Z(() => import("./DataTable-cMnb68Ik.js")), wt = Z(
42
- () => import("./PenAndPaper-CJDoB5H9.js")
43
- ), xt = Z(
44
- () => import("./UserOptions-DVduN6X7.js")
45
- ), Ct = Z(
46
- () => import("./PackageVersion-BfrCAH6_.js")
47
- ), Pt = Z(
48
- () => import("./BaseDraggableDialog-Di8Hlru3.js")
49
- ), { vue_ui_3d_bar: At } = sl(), { isThemeValid: Mt, warnInvalidTheme: Tt } = cl(), O = yt, ce = $t, ze = M(() => !!O.dataset && Object.keys(O.dataset).length), A = m(ht()), V = m(null), I = m(!1), Le = m(0), Ee = m(0), Ve = m(null), se = m(null), ve = m(null), We = m(null), H = m(!1), re = m(null), we = m(null), he = m(!1), fe = m(!1), E = m(null), X = m(""), e = m(Ce()), pe = M(
50
- () => e.value.userOptions.useCursorPointer
51
- ), Ft = M(() => ft({
52
- defaultConfig: {
53
- customPalette: ["#808080", "#ADADAD", "#DBDBDB"],
54
- userOptions: { show: !1 },
55
- table: { show: !1 },
56
- style: {
57
- chart: {
58
- backgroundColor: "#99999930",
59
- color: "#6A6A6A",
60
- bar: {
61
- color: "#ADADAD",
62
- stroke: "#6A6A6A"
63
- },
64
- box: {
65
- stroke: "#6A6A6A"
66
- }
67
- }
68
- }
69
- },
70
- userConfig: e.value.skeletonConfig ?? {}
71
- })), { loading: Q, FINAL_DATASET: D } = rl({
72
- ...Xt(O),
73
- FINAL_CONFIG: e,
74
- prepareConfig: Ce,
75
- callback: () => {
76
- Promise.resolve().then(async () => {
77
- await Ie(), Ke();
78
- });
79
- },
80
- skeletonDataset: O.config?.skeletonDataset ?? {
81
- series: [
82
- {
83
- name: "_",
84
- value: 21,
85
- breakdown: [
86
- { name: "_", value: 13 },
87
- { name: "_", value: 8 }
88
- ]
89
- },
90
- {
91
- name: "_",
92
- value: 13,
93
- breakdown: [
94
- { name: "_", value: 8 },
95
- { name: "_", value: 5 }
96
- ]
97
- },
98
- {
99
- name: "_",
100
- value: 8,
101
- breakdown: [
102
- { name: "_", value: 5 },
103
- { name: "_", value: 3 }
104
- ]
105
- }
106
- ]
107
- },
108
- skeletonConfig: ft({
109
- defaultConfig: e.value,
110
- userConfig: Ft.value
111
- })
112
- }), { userOptionsVisible: xe, setUserOptionsVisibility: Re, keepUserOptionState: Ge } = vl({ config: e.value }), { svgRef: ue } = hl({
113
- config: e.value.style.chart.title
114
- });
115
- function Ce() {
116
- const o = je({
117
- userConfig: O.config,
118
- defaultConfig: At
119
- }), a = o.theme;
120
- if (!a) return o;
121
- if (!Mt.value(o))
122
- return Tt(o), o;
123
- const t = je({
124
- userConfig: gl[a] || O.config,
125
- defaultConfig: o
126
- }), i = je({
127
- userConfig: O.config,
128
- defaultConfig: t
129
- });
130
- return {
131
- ...i,
132
- customPalette: i.customPalette.length ? i.customPalette : Zt[a] || $e
133
- };
134
- }
135
- Oe(
136
- () => O.config,
137
- (o) => {
138
- Q.value || (e.value = Ce()), xe.value = !e.value.userOptions.showOnChartHover, qe(), Le.value += 1, Ee.value += 1, K.value.showTable = e.value.table.show;
139
- },
140
- { deep: !0 }
141
- );
142
- const { isPrinting: Pe, isImaging: Ae, generatePdf: Ue, generateImage: He } = il({
143
- elementId: `3d_bar_${A.value}`,
144
- fileName: e.value.style.chart.title.text || "vue-ui-3d-bar",
145
- options: e.value.userOptions.print
146
- }), St = M(() => Yt(e.value.customPalette)), K = m({
147
- showTable: e.value.table.show
148
- });
149
- Oe(
150
- e,
151
- () => {
152
- K.value = {
153
- showTable: e.value.table.show
154
- };
155
- },
156
- { immediate: !0 }
157
- );
158
- const x = M(() => D.value.series && D.value.series.length), Me = m(
159
- e.value.style.chart.box.dimensions.width * (x.value ? 2 : 1)
160
- ), Xe = m(e.value.style.chart.box.dimensions.height), n = M(() => ({
161
- height: Xe.value,
162
- width: Me.value,
163
- absoluteWidth: Me.value,
164
- top: e.value.style.chart.box.dimensions.top,
165
- bottom: e.value.style.chart.box.dimensions.bottom,
166
- left: e.value.style.chart.box.dimensions.left,
167
- right: e.value.style.chart.box.dimensions.right,
168
- perspective: e.value.style.chart.box.dimensions.perspective
169
- })), y = M(() => {
170
- if (x.value) {
171
- const o = D.value.series.map((l) => l.value || 0).reduce((l, r) => l + r, 0), a = D.value.series.map((l, r) => ({
172
- ...l,
173
- seriesIndex: r,
174
- id: ht(),
175
- proportion: (l.value || 0) / o,
176
- color: Jt(l.color) || St.value[r] || $e[r] || $e[r % $e.length],
177
- breakdown: l.breakdown ? l.breakdown.sort((u, $) => $.value - u.value) : null
178
- })).sort((l, r) => r.value - l.value), t = [];
179
- let i = 0;
180
- for (let l = 0; l < a.length; l += 1)
181
- t.push({
182
- ...a[l],
183
- fill: Dt(
184
- i,
185
- a[l].proportion,
186
- a[l].breakdown,
187
- a[l].color
188
- )
189
- }), i += a[l].proportion;
190
- return t;
191
- }
192
- return null;
193
- }), W = M(() => {
194
- const o = n.value.width / 2;
195
- return {
196
- right: `M${o},${n.value.top} ${n.value.width - n.value.right}, ${n.value.top + n.value.perspective} ${n.value.width - n.value.right},${n.value.height - n.value.bottom - n.value.perspective} ${o},${n.value.height - n.value.bottom}`,
197
- left: `M${o},${n.value.top} ${n.value.left},${n.value.top + n.value.perspective} ${n.value.left},${n.value.height - n.value.bottom - n.value.perspective} ${o},${n.value.height - n.value.bottom}`,
198
- side: `M${o},${n.value.height - n.value.bottom} ${o},${n.value.top + n.value.perspective * 2}`,
199
- topSides: `M${n.value.left},${n.value.top + n.value.perspective} ${o},${n.value.top + n.value.perspective * 2} ${n.value.width - n.value.right},${n.value.top + n.value.perspective}`,
200
- tubeTop: `M${n.value.left},${n.value.top + n.value.perspective} C ${n.value.left},${n.value.top - n.value.perspective / 3} ${n.value.width - n.value.right},${n.value.top - n.value.perspective / 3} ${n.value.width - n.value.right},${n.value.top + n.value.perspective} C ${n.value.width - n.value.right},${n.value.top + n.value.perspective * 2.3} ${n.value.left},${n.value.top + n.value.perspective * 2.3} ${n.value.left},${n.value.top + n.value.perspective}`,
201
- tubeLeft: `M${n.value.left},${n.value.top + n.value.perspective} ${n.value.left},${n.value.height - n.value.bottom - n.value.perspective}`,
202
- tubeRight: `M${n.value.width - n.value.right},${n.value.top + n.value.perspective} ${n.value.width - n.value.right},${n.value.height - n.value.bottom - n.value.perspective}`,
203
- tubeBottom: `M${n.value.width - n.value.right},${n.value.height - n.value.bottom - n.value.perspective} C ${n.value.width - n.value.right},${n.value.height} ${n.value.left},${n.value.height} ${n.value.left},${n.value.height - n.value.bottom - n.value.perspective}`
204
- };
205
- }), ee = m(
206
- e.value.style.chart.animation.use ? 0 : D.value.percentage
207
- );
208
- function Ke() {
209
- let o = 0, a = e.value.style.chart.animation.speed, t = 5e-3 * e.value.style.chart.animation.acceleration;
210
- function i() {
211
- ee.value += a + o, o += t, ee.value < D.value.percentage ? requestAnimationFrame(i) : ee.value = D.value.percentage;
212
- }
213
- e.value.style.chart.animation.use && (ee.value = 0, i());
214
- }
215
- Kt(() => {
216
- qe(), Ke();
217
- });
218
- const ge = M(() => !!e.value.debug);
219
- function qe() {
220
- if (Qt(O.dataset) ? me({
221
- componentName: "VueUi3dBar",
222
- type: "dataset",
223
- debug: ge.value
224
- }) : O.dataset.series ? O.dataset.series.forEach((o, a) => {
225
- Ne({
226
- datasetObject: o,
227
- requiredAttributes: ["name", "value"]
228
- }).forEach((t) => {
229
- me({
230
- componentName: "VueUi3dBar",
231
- type: "datasetSerieAttribute",
232
- property: t,
233
- index: a,
234
- debug: ge.value
235
- });
236
- }), o.breakdown && o.breakdown.forEach((t, i) => {
237
- Ne({
238
- datasetObject: t,
239
- requiredAttributes: ["name", "value"]
240
- }).forEach((l) => {
241
- me({
242
- componentName: "VueUi3dBar",
243
- type: "datasetSerieAttribute",
244
- property: l,
245
- index: `${a} - ${i}`,
246
- debug: ge.value
247
- });
248
- });
249
- });
250
- }) : Ne({
251
- datasetObject: O.dataset,
252
- requiredAttributes: ["percentage"]
253
- }).forEach((o) => {
254
- me({
255
- componentName: "VueUi3dBar",
256
- type: "datasetAttribute",
257
- property: o,
258
- debug: ge.value
259
- });
260
- }), e.value.responsive) {
261
- const o = al(() => {
262
- const { width: a, height: t } = nl({
263
- chart: V.value,
264
- title: e.value.style.chart.title.text ? Ve.value : null,
265
- source: We.value
266
- });
267
- requestAnimationFrame(() => {
268
- Xe.value = t - 12, Me.value = a;
269
- });
270
- });
271
- se.value && (ve.value && se.value.unobserve(ve.value), se.value.disconnect()), se.value = new ResizeObserver(o), ve.value = V.value.parentNode, se.value.observe(ve.value);
272
- }
273
- }
274
- const te = M(() => n.value.width / 4);
275
- function Dt(o, a, t, i) {
276
- const l = n.value.height - n.value.bottom - n.value.top - n.value.perspective * 2, {
277
- width: r,
278
- height: u,
279
- bottom: $,
280
- right: R,
281
- left: k,
282
- perspective: g
283
- } = n.value, f = x.value ? r / 4 : r / 2, P = f * 2 + k, h = $ + l * o, De = u - h - g - l * a / 2, Gt = De > n.value.height / 2 ? "top" : "bottom", ot = u * 0.25, Ut = !!t;
284
- let at = null, nt = null;
285
- return Ut && (t = t.map((st, Ht) => ({
286
- ...st,
287
- value: st.value || 0,
288
- color: G(i, Ht / t.length)
289
- })), at = pt(
290
- { series: t },
291
- r / 2 + r / 5,
292
- Gt === "top" ? De - ot : De + ot,
293
- r / 10,
294
- r / 10,
295
- 1.99999,
296
- 2,
297
- 1,
298
- 360,
299
- 105.25,
300
- r / 20
301
- ), nt = pt(
302
- { series: t },
303
- r - P + r / 14,
304
- u - h - g - l * a / 2,
305
- r / 40,
306
- r / 40,
307
- 1.99999,
308
- 2,
309
- 1,
310
- 360,
311
- 105.25,
312
- r / 40
313
- )), {
314
- donut: at,
315
- miniDonut: nt,
316
- donutR: r / 20,
317
- CENTER_X: f,
318
- sidePointer: {
319
- x: r - P,
320
- x2: r - P + r / 14,
321
- xText: r - P + r / 9,
322
- y: u - h - g - l * a / 2,
323
- topY: u - h - g - l * a,
324
- height: l * a
325
- },
326
- apexBottom: { y: u - h, x: f },
327
- apexTop: { y: u - h - l * a, x: f },
328
- right: `M${f},${u - h} ${f},${u - h - l * a} ${r - P},${u - h - g - l * a} ${r - P},${u - h - g}Z`,
329
- left: `M${f},${u - h} ${f},${u - h - l * a} ${k}, ${u - h - g - l * a} ${k},${u - h - g}Z`,
330
- liningTop: `M${k},${u - h - g - l * a} ${f},${u - h - l * a} ${r - P},${u - h - g - l * a}`,
331
- liningTopShade: `M${k},${u - h - g - l * a - 0.5} ${f},${u - h - l * a - 0.5} ${r - P},${u - h - g - l * a - 0.5}`,
332
- top: `M${f},${u - h - l * a} ${k},${u - h - g - l * a} ${f},${u - h - g * 2 - l * a} ${r - P},${u - h - g - l * a} Z`,
333
- tubeTop: `M${k},${u - h - l * a - g} C ${k},${u - h - l * a - g * 2.5} ${r - P},${u - h - l * a - g * 2.5} ${r - P},${u - h - l * a - g} C ${r - P},${u - h - l * a + g / 2} ${k},${u - h - l * a + g / 2} ${k},${u - h - l * a - g}`,
334
- bottomTubeTop: `M ${r - P - 0.5},${u - h - g} C ${r - P - 0.5},${u - h + g / 2} ${k},${u - h + g / 2} ${k + 0.5},${u - h - g}`,
335
- tubeBody: `M
336
- ${k},${u - h - l * a - g}
337
- C ${k},${u - h - l * a + g / 2}
338
- ${r - P},${u - h - l * a + g / 2}
339
- ${r - P},${u - h - l * a - g}
340
- L${r - P},${u - h - g}
341
- C
342
- ${r - P},${u - h + g / 2}
343
- ${k},${u - h + g / 2}
344
- ${k},${u - h - g}Z`
345
- };
346
- }
347
- const le = M(() => {
348
- const o = el(ee.value / 100), a = n.value.height - n.value.bottom - n.value.top - n.value.perspective * 2, {
349
- width: t,
350
- height: i,
351
- bottom: l,
352
- right: r,
353
- left: u,
354
- perspective: $
355
- } = n.value, R = x.value ? t / 4 : t / 2, k = x.value ? R * 2 + u : r, f = l + a * 0;
356
- return {
357
- right: `M${R},${i - f} ${R},${i - f - a * o} ${t - k},${i - f - $ - a * o} ${t - k},${i - f - $}Z`,
358
- left: `M${R},${i - f} ${R},${i - f - a * o} ${u}, ${i - f - $ - a * o} ${u},${i - f - $}Z`,
359
- top: `M${R},${i - f - a * o} ${u},${i - f - $ - a * o} ${R},${i - f - $ * 2 - a * o} ${t - k},${i - f - $ - a * o} Z`,
360
- tubeTop: `M${u},${i - f - a * o - $} C ${u},${i - f - a * o - $ * 2.5} ${t - k},${i - f - a * o - $ * 2.5} ${t - k},${i - f - a * o - $} C ${t - k},${i - f - a * o + $ / 2} ${u},${i - f - a * o + $ / 2} ${u},${i - f - a * o - $}`,
361
- tubeBody: `M
362
- ${u},${i - f - a * o - $}
363
- C ${u},${i - f - a * o + $ / 2}
364
- ${t - k},${i - f - a * o + $ / 2}
365
- ${t - k},${i - f - a * o - $}
366
- L${t - k},${i - $ * 1.5}
367
- C
368
- ${t - k},${i}
369
- ${u},${i}
370
- ${u},${i - f - $}Z`
371
- };
372
- }), b = m(null);
373
- function S(o, a = !1) {
374
- e.value.events.datapointEnter && !a && e.value.events.datapointEnter({
375
- datapoint: o,
376
- seriesIndex: o.seriesIndex
377
- }), e.value.events.datapointClick && a && e.value.events.datapointClick({
378
- datapoint: o,
379
- seriesIndex: o.seriesIndex
380
- }), ce("selectDatapoint", o);
381
- const t = y.value?.findIndex((i) => i.id === o.id) ?? null;
382
- t !== null && t !== -1 && (E.value = t, X.value = de(o)), a || (b.value = o.id), a && I.value && (I.value = !1), a && !I.value && (I.value = !0);
383
- }
384
- function q(o) {
385
- e.value.events.datapointLeave && e.value.events.datapointLeave({
386
- datapoint: o,
387
- seriesIndex: o.seriesIndex
388
- }), !I.value && (b.value = null, E.value = null, X.value = "");
389
- }
390
- function oe(o, a, t = !1) {
391
- const i = D.value.series.map((u) => u.value || 0).reduce((u, $) => u + $, 0), l = isNaN(o.value / i) ? 0 : o.value / i * 100, r = isNaN(o.value / Ze(a)) ? 0 : o.value / Ze(a) * 100;
392
- return t ? r : l.toFixed(0) + "%";
393
- }
394
- function Ze(o) {
395
- return [...o].map((a) => a.value).reduce((a, t) => a + t, 0);
396
- }
397
- const ye = m(!1);
398
- function Ye(o) {
399
- ye.value = o;
400
- }
401
- function Ot() {
402
- return x.value ? y.value : D.value.percentage;
403
- }
404
- const ae = M(() => {
405
- if (x.value) {
406
- const o = y.value.flatMap((t) => t.breakdown && t.breakdown.length ? [
407
- { name: t.name, color: t.color },
408
- ...t.breakdown.map((i, l) => ({
409
- name: i.name,
410
- color: G(
411
- t.color,
412
- l / t.breakdown.length
413
- )
414
- }))
415
- ] : {
416
- name: t.name,
417
- color: t.color
418
- }), a = y.value.flatMap((t) => t.breakdown && t.breakdown.length ? [t.value, ...t.breakdown.map((i) => i.value)] : t.value);
419
- return { head: o, body: a };
420
- } else
421
- return null;
422
- });
423
- function Te(o = null) {
424
- if (!x.value) {
425
- console.warn(
426
- "VueUi3dBar : CSV download is only available in stack mode (providing dataset.series instead of dataset.percentage)"
427
- );
428
- return;
429
- }
430
- Ie(() => {
431
- const a = y.value.map((r) => r.value).reduce((r, u) => r + u, 0), t = ae.value.head.map((r, u) => [
432
- [r.name],
433
- [ae.value.body[u]],
434
- [
435
- isNaN(ae.value.body[u] / a) ? "-" : ae.value.body[u] / a * 100
436
- ]
437
- ]), i = [
438
- [e.value.style.chart.title.text],
439
- [e.value.style.chart.title.subtitle.text],
440
- [[""], ["val"], ["%"]]
441
- ].concat(t), l = ll(i);
442
- o ? o(l) : ol({
443
- csvContent: l,
444
- title: e.value.style.chart.title.text || "vue-ui-3d-bar"
445
- });
446
- });
447
- }
448
- const ne = M(() => {
449
- if (!x.value || !Array.isArray(y.value) || !y.value.length)
450
- return {
451
- colNames: [],
452
- head: [],
453
- body: [],
454
- a11yBody: [],
455
- config: {
456
- th: {
457
- backgroundColor: e.value.table.th.backgroundColor,
458
- color: e.value.table.th.color,
459
- outline: e.value.table.th.outline
460
- },
461
- td: {
462
- backgroundColor: e.value.table.td.backgroundColor,
463
- color: e.value.table.td.color,
464
- outline: e.value.table.td.outline
465
- },
466
- breakpoint: e.value.table.responsiveBreakpoint,
467
- shape: e.value.style.shape === "tube" ? "circle" : "square"
468
- }
469
- };
470
- const o = y.value.reduce((l, r) => l + r.value, 0), a = [
471
- ' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>',
472
- B({
473
- p: e.value.style.chart.legend.prefix,
474
- v: o,
475
- s: e.value.style.chart.legend.suffix,
476
- r: e.value.table.td.roundingValue
477
- }),
478
- "100%"
479
- ], t = ae.value.head.map((l, r) => {
480
- const u = ae.value.body[r];
481
- return [
482
- {
483
- color: l.color,
484
- name: l.name
485
- },
486
- B({
487
- p: e.value.style.chart.legend.prefix,
488
- v: u,
489
- s: e.value.style.chart.legend.suffix,
490
- r: e.value.table.td.roundingValue
491
- }),
492
- isNaN(u / o) ? "-" : B({
493
- v: u / o * 100,
494
- s: "%",
495
- r: e.value.table.td.roundingPercentage
496
- })
497
- ];
498
- }), i = t.map((l) => l.map((r, u) => u === 0 ? r.name : r));
499
- return {
500
- colNames: [
501
- e.value.table.columnNames.series,
502
- e.value.table.columnNames.value,
503
- e.value.table.columnNames.percentage
504
- ],
505
- head: a,
506
- body: t,
507
- a11yBody: i,
508
- config: {
509
- th: {
510
- backgroundColor: e.value.table.th.backgroundColor,
511
- color: e.value.table.th.color,
512
- outline: e.value.table.th.outline
513
- },
514
- td: {
515
- backgroundColor: e.value.table.td.backgroundColor,
516
- color: e.value.table.td.color,
517
- outline: e.value.table.td.outline
518
- },
519
- breakpoint: e.value.table.responsiveBreakpoint,
520
- shape: e.value.style.shape === "tube" ? "circle" : "square"
521
- }
522
- };
523
- });
524
- function Je() {
525
- K.value.showTable = !K.value.showTable;
526
- }
527
- const ke = m(!1);
528
- function Fe() {
529
- ke.value = !ke.value;
530
- }
531
- async function Bt({ scale: o = 2 } = {}) {
532
- if (!V.value) return;
533
- const { width: a, height: t } = V.value.getBoundingClientRect(), i = a / t, { imageUri: l, base64: r } = await fl({
534
- domElement: V.value,
535
- base64: !0,
536
- img: !0,
537
- scale: o
538
- });
539
- return {
540
- imageUri: l,
541
- base64: r,
542
- title: e.value.style.chart.title.text,
543
- width: a,
544
- height: t,
545
- aspectRatio: i
546
- };
547
- }
548
- const ie = M(() => {
549
- const o = e.value.table.useDialog && !e.value.table.show, a = K.value.showTable;
550
- return {
551
- component: o ? Pt : bt,
552
- title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
553
- props: o ? {
554
- backgroundColor: e.value.table.th.backgroundColor,
555
- color: e.value.table.th.color,
556
- headerColor: e.value.table.th.color,
557
- headerBg: e.value.table.th.backgroundColor,
558
- isFullscreen: ye.value,
559
- fullscreenParent: V.value,
560
- forcedWidth: Math.min(800, window.innerWidth * 0.8)
561
- } : {
562
- hideDetails: !0,
563
- config: {
564
- open: a,
565
- maxHeight: 1e4,
566
- body: {
567
- backgroundColor: e.value.style.chart.backgroundColor,
568
- color: e.value.style.chart.color
569
- },
570
- head: {
571
- backgroundColor: e.value.style.chart.backgroundColor,
572
- color: e.value.style.chart.color
573
- }
574
- }
575
- }
576
- };
577
- });
578
- Oe(
579
- () => K.value.showTable,
580
- (o) => {
581
- e.value.table.show || (o && e.value.table.useDialog && re.value ? re.value.open() : "close" in re.value && re.value.close());
582
- }
583
- );
584
- function Qe() {
585
- K.value.showTable = !1, we.value && we.value.setTableIconState(!1);
586
- }
587
- const It = M(() => e.value.style.chart.backgroundColor), Nt = M(() => e.value.style.chart.title), { exportSvg: jt, getSvg: zt } = dl({
588
- svg: ue,
589
- title: Nt,
590
- backgroundColor: It
591
- });
592
- async function et({ isCb: o }) {
593
- he.value = !0, await Ie();
594
- try {
595
- if (o) {
596
- const { blob: a, url: t, text: i, dataUrl: l } = await zt();
597
- await Promise.resolve(
598
- e.value.userOptions.callbacks.svg({
599
- blob: a,
600
- url: t,
601
- text: i,
602
- dataUrl: l
603
- })
604
- );
605
- } else
606
- await Promise.resolve(jt());
607
- } finally {
608
- he.value = !1;
609
- }
610
- }
611
- function Lt(o) {
612
- if (o?.stage === "start") {
613
- fe.value = !0;
614
- return;
615
- }
616
- if (o?.stage === "end") {
617
- fe.value = !1;
618
- return;
619
- }
620
- He();
621
- }
622
- async function tt() {
623
- if (ce("copyAlt", {
624
- config: e.value,
625
- dataset: D.value
626
- }), !e.value.userOptions.callbacks.altCopy) {
627
- console.warn(
628
- "Vue Data UI - A callback must be set for `altCopy` in userOptions."
629
- );
630
- return;
631
- }
632
- await Promise.resolve(
633
- e.value.userOptions.callbacks.altCopy({
634
- config: e.value,
635
- dataset: D.value
636
- })
637
- );
638
- }
639
- function Et() {
640
- E.value = null, X.value = "", I.value = !1, b.value = null;
641
- }
642
- function de(o) {
643
- if (!o) return "";
644
- const a = B({
645
- p: e.value.style.chart.legend.prefix,
646
- v: o.value,
647
- s: e.value.style.chart.legend.suffix,
648
- r: e.value.style.chart.legend.roundingValue
649
- }), t = B({
650
- v: o.proportion * 100,
651
- s: "%",
652
- r: e.value.style.chart.legend.roundingPercentage
653
- });
654
- return `${o.name}: ${a}, ${t}`;
655
- }
656
- function lt(o) {
657
- if (!x.value || !y.value?.length) return;
658
- const a = y.value[o];
659
- a && (E.value = o, b.value = a.id, X.value = de(a));
660
- }
661
- function Vt() {
662
- H.value = !0, !(!x.value || !y.value?.length) && E.value === null && lt(0);
663
- }
664
- function Wt() {
665
- H.value = !1, I.value || (E.value = null, b.value = null, X.value = "");
666
- }
667
- function Rt(o) {
668
- if (!x.value || !y.value?.length || !ue.value || document.activeElement !== ue.value) return;
669
- const a = ["ArrowLeft", "ArrowDown"].includes(o.key), t = ["ArrowRight", "ArrowUp"].includes(o.key), i = o.key === "Enter" || o.key === " ", l = o.key === "Escape";
670
- if (!a && !t && !i && !l)
671
- return;
672
- if (o.preventDefault(), o.stopPropagation(), l) {
673
- Et();
674
- return;
675
- }
676
- if (i) {
677
- if (E.value === null) return;
678
- const u = y.value[E.value];
679
- if (!u) return;
680
- S(u, !0), X.value = `${de(u)} selected`;
681
- return;
682
- }
683
- let r = E.value;
684
- r === null || r < 0 || r >= y.value.length ? r = t ? 0 : y.value.length - 1 : t ? (r += 1, r >= y.value.length && (r = 0)) : a && (r -= 1, r < 0 && (r = y.value.length - 1)), lt(r);
685
- }
686
- const Se = M(() => ({
687
- headers: ne.value?.colNames ?? [],
688
- rows: ne.value?.a11yBody ?? []
689
- }));
690
- return kt({
691
- getImage: Bt,
692
- generateCsv: Te,
693
- generatePdf: Ue,
694
- generateImage: He,
695
- generateSvg: et,
696
- getData: Ot,
697
- toggleTable: Je,
698
- toggleAnnotator: Fe,
699
- toggleFullscreen: Ye,
700
- copyAlt: tt
701
- }), (o, a) => (c(), v("div", {
702
- ref_key: "bar3dChart",
703
- ref: V,
704
- class: rt("vue-data-ui-component vue-ui-3d-bar"),
705
- style: j(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
706
- id: `3d_bar_${A.value}`,
707
- onMouseenter: a[8] || (a[8] = () => s(Re)(!0)),
708
- onMouseleave: a[9] || (a[9] = () => s(Re)(!1))
709
- }, [
710
- d("div", {
711
- id: `chart-instructions-${A.value}`,
712
- class: "sr-only"
713
- }, [
714
- d("p", null, N(e.value.a11y.translations.keyboardNavigation), 1)
715
- ], 8, ml),
716
- d("div", bl, N(X.value), 1),
717
- Se.value?.rows?.length ? (c(), Y(yl, {
718
- key: 0,
719
- uid: A.value,
720
- head: Se.value.headers,
721
- body: Se.value.rows,
722
- notice: e.value.a11y.translations.tableAvailable,
723
- caption: e.value.a11y.translations.tableCaption
724
- }, null, 8, ["uid", "head", "body", "notice", "caption"])) : p("", !0),
725
- e.value.userOptions.buttons.annotator ? (c(), Y(s(wt), {
726
- key: 1,
727
- svgRef: s(ue),
728
- backgroundColor: e.value.style.chart.backgroundColor,
729
- color: e.value.style.chart.color,
730
- active: ke.value,
731
- isCursorPointer: pe.value,
732
- onClose: Fe
733
- }, {
734
- "annotator-action-close": C(() => [
735
- _(o.$slots, "annotator-action-close", {}, void 0, !0)
736
- ]),
737
- "annotator-action-color": C(({ color: t }) => [
738
- _(o.$slots, "annotator-action-color", z(L({ color: t })), void 0, !0)
739
- ]),
740
- "annotator-action-draw": C(({ mode: t }) => [
741
- _(o.$slots, "annotator-action-draw", z(L({ mode: t })), void 0, !0)
742
- ]),
743
- "annotator-action-undo": C(({ disabled: t }) => [
744
- _(o.$slots, "annotator-action-undo", z(L({ disabled: t })), void 0, !0)
745
- ]),
746
- "annotator-action-redo": C(({ disabled: t }) => [
747
- _(o.$slots, "annotator-action-redo", z(L({ disabled: t })), void 0, !0)
748
- ]),
749
- "annotator-action-delete": C(({ disabled: t }) => [
750
- _(o.$slots, "annotator-action-delete", z(L({ disabled: t })), void 0, !0)
751
- ]),
752
- _: 3
753
- }, 8, ["svgRef", "backgroundColor", "color", "active", "isCursorPointer"])) : p("", !0),
754
- e.value.style.chart.title.text ? (c(), v("div", {
755
- key: 2,
756
- ref_key: "chartTitle",
757
- ref: Ve,
758
- style: "width:100%;background:transparent"
759
- }, [
760
- (c(), Y(pl, {
761
- key: `title_${Le.value}`,
762
- config: {
763
- title: {
764
- cy: "3dBar-div-title",
765
- ...e.value.style.chart.title
766
- },
767
- subtitle: {
768
- cy: "3dBar-div-subtitle",
769
- ...e.value.style.chart.title.subtitle
770
- }
771
- }
772
- }, null, 8, ["config"]))
773
- ], 512)) : p("", !0),
774
- e.value.userOptions.show && ze.value && (s(Ge) || s(xe)) ? (c(), Y(s(xt), {
775
- key: 3,
776
- ref_key: "userOptionsRef",
777
- ref: we,
778
- backgroundColor: e.value.style.chart.backgroundColor,
779
- color: e.value.style.chart.color,
780
- isPrinting: s(Pe),
781
- isImaging: s(Ae),
782
- uid: A.value,
783
- hasPdf: e.value.userOptions.buttons.pdf,
784
- hasTable: !!x.value && e.value.userOptions.buttons.table,
785
- hasXls: !!x.value && e.value.userOptions.buttons.csv,
786
- hasImg: e.value.userOptions.buttons.img,
787
- hasSvg: e.value.userOptions.buttons.svg,
788
- hasFullscreen: e.value.userOptions.buttons.fullscreen,
789
- hasAltCopy: e.value.userOptions.buttons.altCopy,
790
- titles: { ...e.value.userOptions.buttonTitles },
791
- chartElement: V.value,
792
- position: e.value.userOptions.position,
793
- hasAnnotator: e.value.userOptions.buttons.annotator,
794
- isAnnotation: ke.value,
795
- callbacks: e.value.userOptions.callbacks,
796
- printScale: e.value.userOptions.print.scale,
797
- tableDialog: e.value.table.useDialog,
798
- isCursorPointer: pe.value,
799
- onToggleFullscreen: Ye,
800
- onGeneratePdf: s(Ue),
801
- onGenerateCsv: Te,
802
- onGenerateImage: Lt,
803
- onGenerateSvg: et,
804
- onToggleTable: Je,
805
- onToggleAnnotator: Fe,
806
- onCopyAlt: tt,
807
- style: j({
808
- visibility: s(Ge) ? s(xe) ? "visible" : "hidden" : "visible"
809
- })
810
- }, ut({ _: 2 }, [
811
- o.$slots.menuIcon ? {
812
- name: "menuIcon",
813
- fn: C(({ isOpen: t, color: i }) => [
814
- _(o.$slots, "menuIcon", z(L({ isOpen: t, color: i })), void 0, !0)
815
- ]),
816
- key: "0"
817
- } : void 0,
818
- o.$slots.optionPdf ? {
819
- name: "optionPdf",
820
- fn: C(() => [
821
- _(o.$slots, "optionPdf", {}, void 0, !0)
822
- ]),
823
- key: "1"
824
- } : void 0,
825
- o.$slots.optionCsv ? {
826
- name: "optionCsv",
827
- fn: C(() => [
828
- _(o.$slots, "optionCsv", {}, void 0, !0)
829
- ]),
830
- key: "2"
831
- } : void 0,
832
- o.$slots.optionImg ? {
833
- name: "optionImg",
834
- fn: C(() => [
835
- _(o.$slots, "optionImg", {}, void 0, !0)
836
- ]),
837
- key: "3"
838
- } : void 0,
839
- o.$slots.optionSvg ? {
840
- name: "optionSvg",
841
- fn: C(() => [
842
- _(o.$slots, "optionSvg", {}, void 0, !0)
843
- ]),
844
- key: "4"
845
- } : void 0,
846
- o.$slots.optionTable ? {
847
- name: "optionTable",
848
- fn: C(() => [
849
- _(o.$slots, "optionTable", {}, void 0, !0)
850
- ]),
851
- key: "5"
852
- } : void 0,
853
- o.$slots.optionFullscreen ? {
854
- name: "optionFullscreen",
855
- fn: C(({ toggleFullscreen: t, isFullscreen: i }) => [
856
- _(o.$slots, "optionFullscreen", z(L({ toggleFullscreen: t, isFullscreen: i })), void 0, !0)
857
- ]),
858
- key: "6"
859
- } : void 0,
860
- o.$slots.optionAnnotator ? {
861
- name: "optionAnnotator",
862
- fn: C(({ toggleAnnotator: t, isAnnotator: i }) => [
863
- _(o.$slots, "optionAnnotator", z(L({ toggleAnnotator: t, isAnnotator: i })), void 0, !0)
864
- ]),
865
- key: "7"
866
- } : void 0,
867
- o.$slots.optionAltCopy ? {
868
- name: "optionAltCopy",
869
- fn: C(({ altCopy: t }) => [
870
- _(o.$slots, "optionAltCopy", z(L({ altCopy: t })), void 0, !0)
871
- ]),
872
- key: "8"
873
- } : void 0
874
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasTable", "hasXls", "hasImg", "hasSvg", "hasFullscreen", "hasAltCopy", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "isCursorPointer", "onGeneratePdf", "style"])) : p("", !0),
875
- d("div", _l, [
876
- (c(), v("svg", {
877
- ref_key: "svgRef",
878
- ref: ue,
879
- xmlns: s(tl),
880
- class: rt({
881
- "vue-data-ui-fullscreen--on": ye.value,
882
- "vue-data-ui-fulscreen--off": !ye.value,
883
- animated: e.value.useCssAnimation
884
- }),
885
- viewBox: `0 0 ${n.value.absoluteWidth} ${n.value.height}`,
886
- style: j(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`),
887
- tabindex: "0",
888
- "aria-describedby": `chart-instructions-${A.value}`,
889
- onFocus: Vt,
890
- onBlur: Wt,
891
- onKeydown: Rt
892
- }, [
893
- it(s(Ct)),
894
- o.$slots["chart-background"] ? (c(), v("foreignObject", {
895
- key: 0,
896
- x: 0,
897
- y: 0,
898
- width: n.value.absoluteWidth,
899
- height: n.value.height,
900
- style: {
901
- pointerEvents: "none"
902
- }
903
- }, [
904
- _(o.$slots, "chart-background", {}, void 0, !0)
905
- ], 8, xl)) : p("", !0),
906
- d("defs", null, [
907
- d("radialGradient", {
908
- id: `gradient_top${A.value}`
909
- }, [
910
- d("stop", {
911
- offset: "0%",
912
- "stop-color": s(w)(
913
- e.value.style.chart.backgroundColor,
914
- 0
915
- )
916
- }, null, 8, Pl),
917
- d("stop", {
918
- offset: "100%",
919
- "stop-color": e.value.style.chart.bar.color
920
- }, null, 8, Al)
921
- ], 8, Cl),
922
- d("radialGradient", {
923
- id: `gradient_tube_top${A.value}`
924
- }, [
925
- d("stop", {
926
- offset: "0%",
927
- "stop-color": s(w)(
928
- s(G)(
929
- e.value.style.chart.bar.color,
930
- 0.5
931
- ),
932
- 80
933
- )
934
- }, null, 8, Tl),
935
- d("stop", {
936
- offset: "100%",
937
- "stop-color": s(w)(
938
- s(J)(
939
- e.value.style.chart.bar.color,
940
- 0.1
941
- ),
942
- 80
943
- )
944
- }, null, 8, Fl)
945
- ], 8, Ml),
946
- d("radialGradient", {
947
- id: `gradient_left${A.value}`
948
- }, [
949
- d("stop", {
950
- offset: "0%",
951
- "stop-color": s(w)(
952
- e.value.style.chart.backgroundColor,
953
- 0
954
- )
955
- }, null, 8, Dl),
956
- d("stop", {
957
- offset: "100%",
958
- "stop-color": s(w)(
959
- e.value.style.chart.bar.color,
960
- 20
961
- )
962
- }, null, 8, Ol)
963
- ], 8, Sl),
964
- d("radialGradient", {
965
- id: `gradient_right${A.value}`
966
- }, [
967
- d("stop", {
968
- offset: "0%",
969
- "stop-color": s(w)(
970
- e.value.style.chart.backgroundColor,
971
- 0
972
- )
973
- }, null, 8, Il),
974
- d("stop", {
975
- offset: "100%",
976
- "stop-color": s(w)(
977
- e.value.style.chart.bar.color,
978
- 20
979
- )
980
- }, null, 8, Nl)
981
- ], 8, Bl),
982
- d("linearGradient", {
983
- id: `gradient_tube_body${A.value}`,
984
- x1: "0%",
985
- y1: "0%",
986
- x2: "100%",
987
- y2: "0%"
988
- }, [
989
- d("stop", {
990
- offset: "0%",
991
- "stop-color": `${e.value.style.chart.bar.color}`
992
- }, null, 8, zl),
993
- d("stop", {
994
- offset: "10%",
995
- "stop-color": s(w)(
996
- s(J)(
997
- e.value.style.chart.bar.color,
998
- 0.7
999
- ),
1000
- 100
1001
- )
1002
- }, null, 8, Ll),
1003
- d("stop", {
1004
- offset: "25%",
1005
- "stop-color": s(w)(
1006
- s(J)(
1007
- e.value.style.chart.bar.color,
1008
- 0.5
1009
- ),
1010
- 100
1011
- )
1012
- }, null, 8, El),
1013
- d("stop", {
1014
- offset: "75%",
1015
- "stop-color": s(w)(
1016
- e.value.style.chart.bar.color,
1017
- 80
1018
- )
1019
- }, null, 8, Vl),
1020
- d("stop", {
1021
- offset: "100%",
1022
- "stop-color": s(w)(
1023
- s(G)(
1024
- e.value.style.chart.bar.color,
1025
- 0.7
1026
- ),
1027
- 100
1028
- )
1029
- }, null, 8, Wl)
1030
- ], 8, jl)
1031
- ]),
1032
- x.value ? (c(), v("defs", Rl, [
1033
- (c(!0), v(T, null, F(y.value, (t) => (c(), v("radialGradient", {
1034
- id: `grad_top_${t.id}`
1035
- }, [
1036
- d("stop", {
1037
- offset: "0%",
1038
- "stop-color": s(w)(s(G)(t.color, 0.5), 80)
1039
- }, null, 8, Ul),
1040
- d("stop", {
1041
- offset: "100%",
1042
- "stop-color": t.color
1043
- }, null, 8, Hl)
1044
- ], 8, Gl))), 256)),
1045
- (c(!0), v(T, null, F(y.value, (t) => (c(), v("linearGradient", {
1046
- id: `grad_left_${t.id}`
1047
- }, [
1048
- d("stop", {
1049
- offset: "0%",
1050
- "stop-color": s(w)(t.color, 80)
1051
- }, null, 8, Kl),
1052
- d("stop", {
1053
- offset: "100%",
1054
- "stop-color": s(w)(s(J)(t.color, 0.5), 100)
1055
- }, null, 8, ql)
1056
- ], 8, Xl))), 256)),
1057
- (c(!0), v(T, null, F(y.value, (t) => (c(), v("linearGradient", {
1058
- id: `grad_right_${t.id}`
1059
- }, [
1060
- d("stop", {
1061
- offset: "2%",
1062
- "stop-color": s(w)(s(G)(t.color, 0.5), 100)
1063
- }, null, 8, Yl),
1064
- d("stop", {
1065
- offset: "100%",
1066
- "stop-color": s(w)(t.color, 80)
1067
- }, null, 8, Jl)
1068
- ], 8, Zl))), 256)),
1069
- d("linearGradient", {
1070
- x1: "0%",
1071
- y1: "0%",
1072
- x2: "0%",
1073
- y2: "100%",
1074
- id: `vertical_line_${A.value}`
1075
- }, [...a[10] || (a[10] = [
1076
- d("stop", {
1077
- offset: "0%",
1078
- "stop-color": "#FFFFFF"
1079
- }, null, -1),
1080
- d("stop", {
1081
- offset: "100%",
1082
- "stop-color": "#FFFFFF33"
1083
- }, null, -1)
1084
- ])], 8, Ql)
1085
- ])) : p("", !0),
1086
- e.value.style.chart.dataLabel.show && ![null, void 0].includes(s(D).percentage) && [null, void 0].includes(s(D).series) ? (c(), v("text", {
1087
- key: 2,
1088
- x: n.value.width / 2,
1089
- y: n.value.top - e.value.style.chart.dataLabel.fontSize / 2,
1090
- "font-size": e.value.style.chart.dataLabel.fontSize,
1091
- "font-weight": e.value.style.chart.dataLabel.bold ? "bold" : "normal",
1092
- fill: e.value.style.chart.dataLabel.color,
1093
- "text-anchor": "middle"
1094
- }, N(s(B)({
1095
- v: ee.value,
1096
- s: "%",
1097
- r: e.value.style.chart.dataLabel.rounding
1098
- })), 9, eo)) : p("", !0),
1099
- I.value ? (c(), v("g", {
1100
- key: 3,
1101
- role: "button",
1102
- tabindex: "0",
1103
- "aria-label": "Clear selection",
1104
- onClick: a[0] || (a[0] = (t) => {
1105
- I.value = !1, b.value = null;
1106
- }),
1107
- onKeydown: [
1108
- a[1] || (a[1] = dt(ct((t) => {
1109
- I.value = !1, b.value = null;
1110
- }, ["prevent"]), ["enter"])),
1111
- a[2] || (a[2] = dt(ct((t) => {
1112
- I.value = !1, b.value = null;
1113
- }, ["prevent"]), ["space"]))
1114
- ],
1115
- onFocus: a[3] || (a[3] = (t) => H.value = !0),
1116
- onBlur: a[4] || (a[4] = (t) => H.value = !1),
1117
- onMouseenter: a[5] || (a[5] = (t) => H.value = !0),
1118
- onMouseleave: a[6] || (a[6] = (t) => H.value = !1),
1119
- class: "svg-btn",
1120
- "data-dom-to-png-ignore": "",
1121
- style: j({
1122
- cursor: pe.value ? "pointer" : "default",
1123
- outline: "none"
1124
- })
1125
- }, [
1126
- a[11] || (a[11] = d("title", null, "Clear selection", -1)),
1127
- d("rect", {
1128
- x: te.value - 12,
1129
- y: n.value.top - 24,
1130
- width: 24,
1131
- height: 24,
1132
- fill: "transparent",
1133
- "pointer-events": "all"
1134
- }, null, 8, to),
1135
- d("circle", {
1136
- cx: te.value,
1137
- cy: n.value.top - 12,
1138
- r: "10",
1139
- fill: "none",
1140
- stroke: e.value.style.chart.color,
1141
- "stroke-width": "2",
1142
- "vector-effect": "non-scaling-stroke",
1143
- opacity: H.value ? 0.5 : 0
1144
- }, null, 8, lo),
1145
- d("path", {
1146
- d: `M${te.value - 6},${n.value.top - 18} ${te.value + 6},${n.value.top - 6}`,
1147
- stroke: e.value.style.chart.color,
1148
- "stroke-linecap": "round",
1149
- "stroke-width": "2",
1150
- "vector-effect": "non-scaling-stroke"
1151
- }, null, 8, oo),
1152
- d("path", {
1153
- d: `M${te.value + 6},${n.value.top - 18} ${te.value - 6},${n.value.top - 6}`,
1154
- stroke: e.value.style.chart.color,
1155
- "stroke-linecap": "round",
1156
- "stroke-width": "2",
1157
- "vector-effect": "non-scaling-stroke"
1158
- }, null, 8, ao)
1159
- ], 36)) : p("", !0),
1160
- !e.value.style.shape || e.value.style.shape === "bar" ? (c(), v("g", no, [
1161
- x.value ? p("", !0) : (c(), v("g", so, [
1162
- d("path", {
1163
- "stroke-dasharray": e.value.style.chart.box.strokeDasharray,
1164
- d: W.value.right,
1165
- stroke: e.value.style.chart.box.stroke,
1166
- "stroke-width": e.value.style.chart.box.strokeWidth,
1167
- "stroke-linejoin": "round",
1168
- "stroke-linecap": "round",
1169
- fill: "none"
1170
- }, null, 8, ro),
1171
- d("path", {
1172
- "stroke-dasharray": e.value.style.chart.box.strokeDasharray,
1173
- d: W.value.left,
1174
- stroke: e.value.style.chart.box.stroke,
1175
- "stroke-width": e.value.style.chart.box.strokeWidth,
1176
- "stroke-linejoin": "round",
1177
- "stroke-linecap": "round",
1178
- fill: "none"
1179
- }, null, 8, uo),
1180
- d("path", {
1181
- "stroke-dasharray": e.value.style.chart.box.strokeDasharray,
1182
- d: W.value.side,
1183
- stroke: e.value.style.chart.box.stroke,
1184
- "stroke-width": e.value.style.chart.box.strokeWidth,
1185
- "stroke-linejoin": "round",
1186
- "stroke-linecap": "round",
1187
- fill: "none"
1188
- }, null, 8, io),
1189
- d("path", {
1190
- "stroke-dasharray": e.value.style.chart.box.strokeDasharray,
1191
- d: W.value.topSides,
1192
- stroke: e.value.style.chart.box.stroke,
1193
- "stroke-width": e.value.style.chart.box.strokeWidth,
1194
- "stroke-linejoin": "round",
1195
- "stroke-linecap": "round",
1196
- fill: "none"
1197
- }, null, 8, co)
1198
- ])),
1199
- x.value ? p("", !0) : (c(), v("g", vo, [
1200
- d("path", {
1201
- d: le.value.right,
1202
- stroke: e.value.style.chart.bar.stroke,
1203
- "stroke-width": e.value.style.chart.bar.strokeWidth,
1204
- "stroke-linejoin": "round",
1205
- "stroke-linecap": "round",
1206
- fill: `url(#gradient_right${A.value})`
1207
- }, null, 8, ho),
1208
- d("path", {
1209
- d: le.value.left,
1210
- stroke: e.value.style.chart.bar.stroke,
1211
- "stroke-width": e.value.style.chart.bar.strokeWidth,
1212
- "stroke-linejoin": "round",
1213
- "stroke-linecap": "round",
1214
- fill: `url(#gradient_left${A.value})`
1215
- }, null, 8, fo),
1216
- d("path", {
1217
- d: le.value.top,
1218
- stroke: e.value.style.chart.bar.stroke,
1219
- "stroke-width": e.value.style.chart.bar.strokeWidth,
1220
- "stroke-linejoin": "round",
1221
- "stroke-linecap": "round",
1222
- fill: `url(#gradient_top${A.value})`
1223
- }, null, 8, po)
1224
- ])),
1225
- x.value ? (c(), v("g", go, [
1226
- (c(!0), v(T, null, F(y.value, (t, i) => (c(), v("g", {
1227
- style: j(`opacity:${b.value ? b.value === t.id ? 1 : 0.3 : 1}`),
1228
- class: "vue-ui-3d-bar-stack",
1229
- role: "img",
1230
- "aria-label": de(t)
1231
- }, [
1232
- d("path", {
1233
- d: t.fill.right,
1234
- fill: `url(#grad_right_${t.id})`,
1235
- onMouseenter: (l) => S(t),
1236
- onClick: (l) => S(t, !0),
1237
- onMouseout: (l) => q(t)
1238
- }, null, 40, ko),
1239
- d("path", {
1240
- d: t.fill.left,
1241
- fill: `url(#grad_left_${t.id})`,
1242
- onMouseenter: (l) => S(t),
1243
- onClick: (l) => S(t, !0),
1244
- onMouseout: (l) => q(t)
1245
- }, null, 40, $o),
1246
- d("path", {
1247
- d: t.fill.top,
1248
- fill: `url(#grad_top_${t.id})`,
1249
- onMouseenter: (l) => S(t),
1250
- onClick: (l) => S(t, !0),
1251
- onMouseout: (l) => q(t)
1252
- }, null, 40, mo),
1253
- d("path", {
1254
- d: t.fill.liningTop,
1255
- stroke: "#FFFFFF",
1256
- "stroke-width": "0.5",
1257
- "stroke-linecap": "round",
1258
- fill: "none",
1259
- onMouseenter: (l) => S(t),
1260
- onClick: (l) => S(t, !0),
1261
- onMouseout: (l) => q(t)
1262
- }, null, 40, bo),
1263
- d("path", {
1264
- d: `M ${t.fill.apexTop.x},${t.fill.apexTop.y} ${t.fill.apexBottom.x},${t.fill.apexBottom.y}`,
1265
- stroke: "#FFFFFF",
1266
- "stroke-width": "0.5",
1267
- "stroke-linecap": "round"
1268
- }, null, 8, _o)
1269
- ], 12, yo))), 256)),
1270
- (c(!0), v(T, null, F(y.value, (t, i) => (c(), v("g", null, [
1271
- i !== y.value.length - 1 ? (c(), v("path", {
1272
- key: 0,
1273
- d: t.fill.liningTopShade,
1274
- stroke: e.value.style.chart.bar.shadeColor,
1275
- "stroke-width": "0.5",
1276
- "stroke-linecap": "round",
1277
- fill: "none",
1278
- style: { "pointer-events": "none" }
1279
- }, null, 8, wo)) : p("", !0)
1280
- ]))), 256)),
1281
- (c(!0), v(T, null, F(y.value, (t, i) => (c(), v("g", {
1282
- style: j(`opacity:${b.value ? b.value === t.id ? 1 : 0 : t.proportion * 100 > e.value.style.chart.legend.hideUnderPercentage ? 1 : 0}`),
1283
- onClick: (l) => ce("selectDatapoint", t)
1284
- }, [
1285
- d("path", {
1286
- stroke: e.value.style.chart.color,
1287
- "stroke-dasharray": "1",
1288
- "stroke-width": "0.5",
1289
- "stroke-linecap": "round",
1290
- d: `M${t.fill.sidePointer.x},${t.fill.sidePointer.y} ${t.fill.sidePointer.x2},${t.fill.sidePointer.y}`
1291
- }, null, 8, Co),
1292
- !t.fill.miniDonut || b.value ? (c(), v("circle", {
1293
- key: 0,
1294
- cx: t.fill.sidePointer.x2,
1295
- cy: t.fill.sidePointer.y,
1296
- r: 2,
1297
- fill: t.color,
1298
- stroke: e.value.style.chart.backgroundColor
1299
- }, null, 8, Po)) : p("", !0),
1300
- s(Q) ? (c(), v("rect", {
1301
- key: 1,
1302
- x: t.fill.sidePointer.xText,
1303
- y: t.fill.sidePointer.y - e.value.style.chart.legend.fontSize / 2,
1304
- width: n.value.width / 3,
1305
- height: e.value.style.chart.legend.fontSize,
1306
- fill: "#6A6A6A80",
1307
- rx: "3"
1308
- }, null, 8, Ao)) : p("", !0),
1309
- s(Q) ? p("", !0) : (c(), v("foreignObject", {
1310
- key: 2,
1311
- x: t.fill.sidePointer.xText,
1312
- y: t.fill.sidePointer.y - e.value.style.chart.legend.fontSize,
1313
- width: n.value.absoluteWidth / 3,
1314
- height: e.value.style.chart.legend.fontSize * 2,
1315
- style: { overflow: "visible", position: "relative" }
1316
- }, [
1317
- e.value.style.chart.legend.showDefault ? (c(), v("div", {
1318
- key: 0,
1319
- style: j(`height: 100%; width: 100%; display: flex; flex-direction: row; flex-wrap: wrap; align-items:center;justify-content: flex-start; font-size:${e.value.style.chart.legend.fontSize}px; text-align:left; line-height: ${e.value.style.chart.legend.fontSize}px; color:${e.value.style.chart.legend.color}; font-weight:${e.value.style.chart.legend.bold ? "bold" : "normal"}`)
1320
- }, N(s(be)(
1321
- e.value.style.chart.dataLabel.formatter,
1322
- t.value,
1323
- `${t.name}: ${s(B)({ v: t.proportion * 100, s: "%", r: e.value.style.chart.legend.roundingPercentage })} (${s(B)(
1324
- {
1325
- p: e.value.style.chart.legend.prefix,
1326
- v: t.value,
1327
- s: e.value.style.chart.legend.suffix,
1328
- r: e.value.style.chart.legend.roundingValue
1329
- }
1330
- )})`,
1331
- {
1332
- datapoint: t,
1333
- seriesIndex: i,
1334
- type: "barDatapoint"
1335
- }
1336
- )), 5)) : p("", !0),
1337
- _(o.$slots, "legend", Be({ ref_for: !0 }, {
1338
- datapoint: t,
1339
- config: e.value,
1340
- dataset: y.value
1341
- }), void 0, !0)
1342
- ], 8, Mo)),
1343
- t.fill.donut && b.value === t.id ? (c(), v("g", To, [
1344
- (c(!0), v(T, null, F(t.fill.donut, (l, r) => (c(), v("g", null, [
1345
- oe(
1346
- l,
1347
- t.fill.donut,
1348
- !0
1349
- ) > 6 ? (c(), v("path", {
1350
- key: 0,
1351
- d: s(gt)(
1352
- l,
1353
- { x: l.cx, y: l.cy },
1354
- 0,
1355
- 8,
1356
- !1,
1357
- !0,
1358
- 10
1359
- ),
1360
- stroke: l.color,
1361
- class: "vue-ui-donut-arc-path",
1362
- "stroke-width": "0.5",
1363
- "stroke-linecap": "round",
1364
- "stroke-linejoin": "round",
1365
- fill: "none"
1366
- }, null, 8, Fo)) : p("", !0)
1367
- ]))), 256)),
1368
- (c(!0), v(T, null, F(t.fill.donut, (l, r) => (c(), v("path", {
1369
- class: "vue-ui-donut-arc-path",
1370
- d: l.arcSlice,
1371
- fill: `${l.color}`,
1372
- stroke: e.value.style.chart.backgroundColor,
1373
- "stroke-width": 1
1374
- }, null, 8, So))), 256)),
1375
- (c(!0), v(T, null, F(t.fill.donut, (l, r) => (c(), v("g", null, [
1376
- oe(
1377
- l,
1378
- t.fill.donut,
1379
- !0
1380
- ) > 6 ? (c(), v("g", Do, [
1381
- d("text", {
1382
- "text-anchor": s(U)(l, !0, 0).anchor,
1383
- x: s(U)(l, !0, 2).x,
1384
- y: s(_e)(l, 12, 12),
1385
- fill: e.value.style.chart.legend.color,
1386
- "font-size": e.value.style.chart.legend.fontSize / 1.5,
1387
- "font-weight": e.value.style.chart.legend.bold ? "bold" : "normal"
1388
- }, N(s(be)(
1389
- e.value.style.chart.dataLabel.formatter,
1390
- l.value,
1391
- `${oe(l, t.fill.donut)} (${s(B)(
1392
- {
1393
- p: e.value.style.chart.legend.prefix,
1394
- v: l.value,
1395
- s: e.value.style.chart.legend.suffix,
1396
- r: e.value.style.chart.legend.roundingValue
1397
- }
1398
- )})`,
1399
- {
1400
- datapoint: l,
1401
- seriesIndex: r,
1402
- type: "donutDatapoint"
1403
- }
1404
- )), 9, Oo),
1405
- d("text", {
1406
- "text-anchor": s(U)(l).anchor,
1407
- x: s(U)(l, !0, 2).x,
1408
- y: s(_e)(l, 12, 12) + e.value.style.chart.legend.fontSize / 1.5,
1409
- fill: e.value.style.chart.legend.color,
1410
- "font-size": e.value.style.chart.legend.fontSize / 1.5,
1411
- "font-weight": e.value.style.chart.legend.bold ? "bold" : "normal"
1412
- }, N(l.name), 9, Bo)
1413
- ])) : p("", !0)
1414
- ]))), 256))
1415
- ])) : p("", !0),
1416
- t.fill.miniDonut && !b.value ? (c(), v("g", Io, [
1417
- (c(!0), v(T, null, F(t.fill.miniDonut, (l, r) => (c(), v("path", {
1418
- class: "vue-ui-donut-arc-path",
1419
- d: l.arcSlice,
1420
- fill: `${l.color}`,
1421
- stroke: e.value.style.chart.backgroundColor,
1422
- "stroke-width": 0.5
1423
- }, null, 8, No))), 256))
1424
- ])) : p("", !0)
1425
- ], 12, xo))), 256))
1426
- ])) : p("", !0)
1427
- ])) : p("", !0),
1428
- e.value.style.shape === "tube" ? (c(), v("g", jo, [
1429
- x.value ? p("", !0) : (c(), v("g", zo, [
1430
- d("path", {
1431
- "stroke-dasharray": e.value.style.chart.box.strokeDasharray,
1432
- d: W.value.tubeTop,
1433
- stroke: e.value.style.chart.box.stroke,
1434
- "stroke-width": e.value.style.chart.box.strokeWidth,
1435
- "stroke-linejoin": "round",
1436
- "stroke-linecap": "round",
1437
- fill: "none"
1438
- }, null, 8, Lo),
1439
- d("path", {
1440
- "stroke-dasharray": e.value.style.chart.box.strokeDasharray,
1441
- d: W.value.tubeLeft,
1442
- stroke: e.value.style.chart.box.stroke,
1443
- "stroke-width": e.value.style.chart.box.strokeWidth,
1444
- "stroke-linejoin": "round",
1445
- "stroke-linecap": "round",
1446
- fill: "none"
1447
- }, null, 8, Eo),
1448
- d("path", {
1449
- "stroke-dasharray": e.value.style.chart.box.strokeDasharray,
1450
- d: W.value.tubeRight,
1451
- stroke: e.value.style.chart.box.stroke,
1452
- "stroke-width": e.value.style.chart.box.strokeWidth,
1453
- "stroke-linejoin": "round",
1454
- "stroke-linecap": "round",
1455
- fill: "none"
1456
- }, null, 8, Vo),
1457
- d("path", {
1458
- "stroke-dasharray": e.value.style.chart.box.strokeDasharray,
1459
- d: W.value.tubeBottom,
1460
- stroke: e.value.style.chart.box.stroke,
1461
- "stroke-width": e.value.style.chart.box.strokeWidth,
1462
- "stroke-linejoin": "round",
1463
- "stroke-linecap": "round",
1464
- fill: "none"
1465
- }, null, 8, Wo),
1466
- d("path", {
1467
- d: le.value.tubeTop,
1468
- stroke: e.value.style.chart.bar.stroke,
1469
- "stroke-width": e.value.style.chart.bar.strokeWidth,
1470
- "stroke-linejoin": "round",
1471
- "stroke-linecap": "round",
1472
- fill: `url(#gradient_tube_top${A.value})`
1473
- }, null, 8, Ro),
1474
- d("path", {
1475
- d: le.value.tubeBody,
1476
- stroke: e.value.style.chart.bar.stroke,
1477
- "stroke-width": e.value.style.chart.bar.strokeWidth,
1478
- "stroke-linejoin": "round",
1479
- "stroke-linecap": "round",
1480
- fill: `url(#gradient_tube_body${A.value})`
1481
- }, null, 8, Go),
1482
- d("path", {
1483
- d: le.value.tubeTop,
1484
- stroke: "#FFFFFF",
1485
- "stroke-width": 0.5,
1486
- "stroke-linejoin": "round",
1487
- "stroke-linecap": "round",
1488
- fill: "none"
1489
- }, null, 8, Uo)
1490
- ])),
1491
- x.value ? (c(), v("g", Ho, [
1492
- (c(!0), v(T, null, F(y.value, (t, i) => (c(), v("g", {
1493
- style: j(`opacity:${b.value ? b.value === t.id ? 1 : 0.3 : 1}`),
1494
- class: "vue-ui-3d-bar-stack",
1495
- role: "img",
1496
- "aria-label": de(t)
1497
- }, [
1498
- d("defs", null, [
1499
- d("radialGradient", {
1500
- id: `gradient_tube_top_${t.id}`,
1501
- fx: "10%",
1502
- cy: "55%"
1503
- }, [
1504
- d("stop", {
1505
- offset: "0%",
1506
- "stop-color": s(w)(
1507
- s(G)(t.color, 0.5),
1508
- 80
1509
- )
1510
- }, null, 8, qo),
1511
- d("stop", {
1512
- offset: "100%",
1513
- "stop-color": s(w)(
1514
- s(J)(t.color, 0.1),
1515
- 80
1516
- )
1517
- }, null, 8, Zo)
1518
- ], 8, Ko),
1519
- d("linearGradient", {
1520
- id: `gradient_tube_body_${t.id}`,
1521
- x1: "0%",
1522
- y1: "0%",
1523
- x2: "100%",
1524
- y2: "0%"
1525
- }, [
1526
- d("stop", {
1527
- offset: "0%",
1528
- "stop-color": `${t.color}`
1529
- }, null, 8, Jo),
1530
- d("stop", {
1531
- offset: "10%",
1532
- "stop-color": s(w)(
1533
- s(J)(t.color, 0.7),
1534
- 100
1535
- )
1536
- }, null, 8, Qo),
1537
- d("stop", {
1538
- offset: "25%",
1539
- "stop-color": s(w)(
1540
- s(J)(t.color, 0.5),
1541
- 100
1542
- )
1543
- }, null, 8, ea),
1544
- d("stop", {
1545
- offset: "75%",
1546
- "stop-color": s(w)(t.color, 80)
1547
- }, null, 8, ta),
1548
- d("stop", {
1549
- offset: "100%",
1550
- "stop-color": s(w)(
1551
- s(G)(t.color, 0.7),
1552
- 100
1553
- )
1554
- }, null, 8, la)
1555
- ], 8, Yo)
1556
- ]),
1557
- d("path", {
1558
- onMouseenter: (l) => S(t),
1559
- onClick: (l) => S(t, !0),
1560
- onMouseout: (l) => q(t),
1561
- d: t.fill.tubeBody,
1562
- stroke: "#FFFFFF",
1563
- "stroke-width": 0.5,
1564
- "stroke-linejoin": "round",
1565
- "stroke-linecap": "round",
1566
- fill: `url(#gradient_tube_body_${t.id})`
1567
- }, null, 40, oa),
1568
- i > 0 ? (c(), v("path", {
1569
- key: 0,
1570
- onMouseenter: (l) => S(t),
1571
- onClick: (l) => S(t, !0),
1572
- onMouseout: (l) => q(t),
1573
- d: t.fill.bottomTubeTop,
1574
- stroke: "#000000",
1575
- "stroke-width": 0.5,
1576
- "stroke-linejoin": "round",
1577
- "stroke-linecap": "round",
1578
- fill: "none"
1579
- }, null, 40, aa)) : p("", !0),
1580
- d("path", {
1581
- onMouseenter: (l) => S(t),
1582
- onClick: (l) => S(t, !0),
1583
- onMouseout: (l) => q(t),
1584
- d: t.fill.tubeTop,
1585
- stroke: "#FFFFFF",
1586
- "stroke-width": 0.5,
1587
- "stroke-linejoin": "round",
1588
- "stroke-linecap": "round",
1589
- fill: `url(#gradient_tube_top_${t.id})`
1590
- }, null, 40, na)
1591
- ], 12, Xo))), 256)),
1592
- (c(!0), v(T, null, F(y.value, (t, i) => (c(), v("g", {
1593
- style: j(`opacity:${b.value ? b.value === t.id ? 1 : 0 : t.proportion * 100 > e.value.style.chart.legend.hideUnderPercentage ? 1 : 0}`),
1594
- onClick: (l) => ce("selectDatapoint", t)
1595
- }, [
1596
- d("path", {
1597
- stroke: e.value.style.chart.color,
1598
- "stroke-dasharray": "1",
1599
- "stroke-width": "0.5",
1600
- "stroke-linecap": "round",
1601
- d: `M${t.fill.sidePointer.x},${t.fill.sidePointer.y} ${t.fill.sidePointer.x2},${t.fill.sidePointer.y}`
1602
- }, null, 8, ra),
1603
- !t.fill.miniDonut || b.value ? (c(), v("circle", {
1604
- key: 0,
1605
- cx: t.fill.sidePointer.x2,
1606
- cy: t.fill.sidePointer.y,
1607
- r: 2,
1608
- fill: t.color,
1609
- stroke: e.value.style.chart.backgroundColor
1610
- }, null, 8, ua)) : p("", !0),
1611
- s(Q) ? (c(), v("rect", {
1612
- key: 1,
1613
- x: t.fill.sidePointer.xText,
1614
- y: t.fill.sidePointer.y - e.value.style.chart.legend.fontSize / 2,
1615
- width: n.value.width / 3,
1616
- height: e.value.style.chart.legend.fontSize,
1617
- fill: "#6A6A6A80",
1618
- rx: "3"
1619
- }, null, 8, ia)) : p("", !0),
1620
- s(Q) ? p("", !0) : (c(), v("foreignObject", {
1621
- key: 2,
1622
- x: t.fill.sidePointer.xText,
1623
- y: t.fill.sidePointer.y - e.value.style.chart.legend.fontSize,
1624
- width: n.value.absoluteWidth / 3,
1625
- height: e.value.style.chart.legend.fontSize * 2,
1626
- style: { overflow: "visible", position: "relative" }
1627
- }, [
1628
- e.value.style.chart.legend.showDefault ? (c(), v("div", {
1629
- key: 0,
1630
- style: j(`height: 100%; width: 100%; display: flex; flex-direction: row; flex-wrap: wrap; align-items:center;justify-content: flex-start; font-size:${e.value.style.chart.legend.fontSize}px; text-align:left; line-height: ${e.value.style.chart.legend.fontSize}px; color:${e.value.style.chart.legend.color};font-weight:${e.value.style.chart.legend.bold ? "bold" : "normal"}`)
1631
- }, N(s(be)(
1632
- e.value.style.chart.dataLabel.formatter,
1633
- t.value,
1634
- `${t.name}: ${s(B)({ v: t.proportion * 100, s: "%", r: e.value.style.chart.legend.roundingPercentage })} (${s(B)(
1635
- {
1636
- p: e.value.style.chart.legend.prefix,
1637
- v: t.value,
1638
- s: e.value.style.chart.legend.suffix,
1639
- r: e.value.style.chart.legend.roundingValue
1640
- }
1641
- )})`,
1642
- {
1643
- datapoint: t,
1644
- seriesIndex: i,
1645
- type: "barDatapoint"
1646
- }
1647
- )), 5)) : p("", !0),
1648
- _(o.$slots, "legend", Be({ ref_for: !0 }, {
1649
- datapoint: t,
1650
- config: e.value,
1651
- dataset: y.value
1652
- }), void 0, !0)
1653
- ], 8, da)),
1654
- t.fill.donut && b.value === t.id ? (c(), v("g", ca, [
1655
- (c(!0), v(T, null, F(t.fill.donut, (l, r) => (c(), v("g", null, [
1656
- oe(
1657
- l,
1658
- t.fill.donut,
1659
- !0
1660
- ) > 6 ? (c(), v("path", {
1661
- key: 0,
1662
- d: s(gt)(
1663
- l,
1664
- { x: l.cx, y: l.cy },
1665
- 0,
1666
- 8,
1667
- !1,
1668
- !0,
1669
- 10
1670
- ),
1671
- stroke: l.color,
1672
- class: "vue-ui-donut-arc-path",
1673
- "stroke-width": "0.5",
1674
- "stroke-linecap": "round",
1675
- "stroke-linejoin": "round",
1676
- fill: "none"
1677
- }, null, 8, va)) : p("", !0)
1678
- ]))), 256)),
1679
- (c(!0), v(T, null, F(t.fill.donut, (l, r) => (c(), v("path", {
1680
- class: "vue-ui-donut-arc-path",
1681
- d: l.arcSlice,
1682
- fill: `${l.color}`,
1683
- stroke: e.value.style.chart.backgroundColor,
1684
- "stroke-width": 1
1685
- }, null, 8, ha))), 256)),
1686
- (c(!0), v(T, null, F(t.fill.donut, (l, r) => (c(), v("g", null, [
1687
- oe(
1688
- l,
1689
- t.fill.donut,
1690
- !0
1691
- ) > 6 ? (c(), v("g", fa, [
1692
- d("text", {
1693
- "text-anchor": s(U)(l, !0, 0).anchor,
1694
- x: s(U)(l, !0, 2).x,
1695
- y: s(_e)(l, 12, 12),
1696
- fill: e.value.style.chart.legend.color,
1697
- "font-size": e.value.style.chart.legend.fontSize / 1.5,
1698
- "font-weight": e.value.style.chart.legend.bold ? "bold" : "normal"
1699
- }, N(s(be)(
1700
- e.value.style.chart.dataLabel.formatter,
1701
- l.value,
1702
- `${oe(l, t.fill.donut)} (${s(B)(
1703
- {
1704
- p: e.value.style.chart.legend.prefix,
1705
- v: l.value,
1706
- s: e.value.style.chart.legend.suffix,
1707
- r: e.value.style.chart.legend.roundingValue
1708
- }
1709
- )})`,
1710
- {
1711
- datapoint: l,
1712
- seriesIndex: r,
1713
- type: "donutDatapoint"
1714
- }
1715
- )), 9, pa),
1716
- d("text", {
1717
- "text-anchor": s(U)(l).anchor,
1718
- x: s(U)(l, !0, 2).x,
1719
- y: s(_e)(l, 12, 12) + e.value.style.chart.legend.fontSize / 1.5,
1720
- fill: e.value.style.chart.legend.color,
1721
- "font-size": e.value.style.chart.legend.fontSize / 1.5,
1722
- "font-weight": e.value.style.chart.legend.bold ? "bold" : "normal"
1723
- }, N(l.name), 9, ga)
1724
- ])) : p("", !0)
1725
- ]))), 256))
1726
- ])) : p("", !0),
1727
- t.fill.miniDonut && !b.value ? (c(), v("g", ya, [
1728
- (c(!0), v(T, null, F(t.fill.miniDonut, (l, r) => (c(), v("path", {
1729
- class: "vue-ui-donut-arc-path",
1730
- d: l.arcSlice,
1731
- fill: `${l.color}`,
1732
- stroke: e.value.style.chart.backgroundColor,
1733
- "stroke-width": 0.5
1734
- }, null, 8, ka))), 256))
1735
- ])) : p("", !0)
1736
- ], 12, sa))), 256))
1737
- ])) : p("", !0)
1738
- ])) : p("", !0),
1739
- _(o.$slots, "svg", {
1740
- svg: {
1741
- ...n.value,
1742
- isPrintingImg: s(Pe) | s(Ae) | fe.value,
1743
- isPrintingSvg: he.value
1744
- }
1745
- }, void 0, !0)
1746
- ], 46, wl))
1747
- ]),
1748
- o.$slots.watermark ? (c(), v("div", $a, [
1749
- _(o.$slots, "watermark", z(L({
1750
- isPrinting: s(Pe) || s(Ae) || he.value || fe.value
1751
- })), void 0, !0)
1752
- ])) : p("", !0),
1753
- o.$slots.source ? (c(), v("div", {
1754
- key: 5,
1755
- ref_key: "source",
1756
- ref: We,
1757
- dir: "auto"
1758
- }, [
1759
- _(o.$slots, "source", {}, void 0, !0)
1760
- ], 512)) : p("", !0),
1761
- ze.value && x.value && e.value.userOptions.buttons.table ? (c(), Y(qt(ie.value.component), Be({ key: 6 }, ie.value.props, {
1762
- ref_key: "tableUnit",
1763
- ref: re,
1764
- onClose: Qe
1765
- }), ut({
1766
- content: C(() => [
1767
- (c(), Y(s(_t), {
1768
- key: `table_${Ee.value}`,
1769
- colNames: ne.value.colNames,
1770
- head: ne.value.head,
1771
- body: ne.value.body,
1772
- config: ne.value.config,
1773
- title: e.value.table.useDialog ? "" : ie.value.title,
1774
- withCloseButton: !e.value.table.useDialog,
1775
- isCursorPointer: pe.value,
1776
- onClose: Qe
1777
- }, {
1778
- th: C(({ th: t }) => [
1779
- d("div", {
1780
- innerHTML: t,
1781
- style: { display: "flex", "align-items": "center" }
1782
- }, null, 8, ma)
1783
- ]),
1784
- td: C(({ td: t }) => [
1785
- vt(N(t.name || t), 1)
1786
- ]),
1787
- _: 1
1788
- }, 8, ["colNames", "head", "body", "config", "title", "withCloseButton", "isCursorPointer"]))
1789
- ]),
1790
- _: 2
1791
- }, [
1792
- e.value.table.useDialog ? {
1793
- name: "title",
1794
- fn: C(() => [
1795
- vt(N(ie.value.title), 1)
1796
- ]),
1797
- key: "0"
1798
- } : void 0,
1799
- e.value.table.useDialog ? {
1800
- name: "actions",
1801
- fn: C(() => [
1802
- d("button", {
1803
- tabindex: "0",
1804
- class: "vue-ui-user-options-button",
1805
- onClick: a[7] || (a[7] = (t) => Te(e.value.userOptions.callbacks.csv))
1806
- }, [
1807
- it(s(mt), {
1808
- name: "fileCsv",
1809
- stroke: ie.value.props.color
1810
- }, null, 8, ["stroke"])
1811
- ])
1812
- ]),
1813
- key: "1"
1814
- } : void 0
1815
- ]), 1040)) : p("", !0),
1816
- _(o.$slots, "skeleton", {}, () => [
1817
- s(Q) ? (c(), Y(ul, { key: 0 })) : p("", !0)
1818
- ], !0)
1819
- ], 44, $l));
1820
- }
1821
- }, La = /* @__PURE__ */ kl(ba, [["__scopeId", "data-v-29ba63f9"]]);
1822
- export {
1823
- La as default
1824
- };