vue-data-ui 3.15.12 → 3.16.1

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 (218) hide show
  1. package/README.md +132 -59
  2. package/dist/A11yDataTable-KcVAX2cP.js +54 -0
  3. package/dist/{Arrow-DlPyR6HQ.js → Arrow-Bn-9n3bm.js} +1 -1
  4. package/dist/{BaseDraggableDialog-DSpKTn3R.js → BaseDraggableDialog-CIb-iD9g.js} +2 -2
  5. package/dist/{BaseIcon-CNx8Tzl5.js → BaseIcon-Cb3zzG6s.js} +1 -1
  6. package/dist/{BaseLegendToggle-Y61xahI4.js → BaseLegendToggle-BQVIawmA.js} +1 -1
  7. package/dist/{BaseZoomControls-CoFievy9.js → BaseZoomControls-DievbOeJ.js} +2 -2
  8. package/dist/ColorPicker-B0mV4xzu.js +255 -0
  9. package/dist/{DataTable-Bo1pmAqG.js → DataTable-DT2kIdQ6.js} +2 -2
  10. package/dist/Legend-CS7Xo5LK.js +101 -0
  11. package/dist/{NonSvgPenAndPaper-CGk_xThe.js → NonSvgPenAndPaper-VyJFyJ6X.js} +3 -3
  12. package/dist/{PackageVersion-DN9d0ME5.js → PackageVersion-DPO-OOVI.js} +1 -1
  13. package/dist/{PenAndPaper-DWV1FMIi.js → PenAndPaper-Ct3qJ4lA.js} +109 -101
  14. package/dist/{Shape-CSyWYgXc.js → Shape-BKRUOeKk.js} +1 -1
  15. package/dist/{Slicer-DZJA9IG-.js → Slicer-DUycDH_N.js} +2 -2
  16. package/dist/{SlicerPreview-I2J0UUF_.js → SlicerPreview-DTjwV0iY.js} +2 -2
  17. package/dist/{SparkTooltip-BiseJed3.js → SparkTooltip-BorBpltj.js} +1 -1
  18. package/dist/{Title-BfyrP-jp.js → Title-BeMKE1cj.js} +1 -1
  19. package/dist/{Tooltip-DL3QgjZf.js → Tooltip-Bf-kM3_A.js} +86 -68
  20. package/dist/{UserOptions-CrLqEimB.js → UserOptions-rW2fRf3V.js} +228 -222
  21. package/dist/components/arrow.js +1 -1
  22. package/dist/components/vue-ui-3d-bar.js +1 -1
  23. package/dist/components/vue-ui-accordion.js +1 -1
  24. package/dist/components/vue-ui-age-pyramid.js +1 -1
  25. package/dist/components/vue-ui-annotator.js +1 -1
  26. package/dist/components/vue-ui-bullet.js +1 -1
  27. package/dist/components/vue-ui-bump.js +1 -1
  28. package/dist/components/vue-ui-candlestick.js +1 -1
  29. package/dist/components/vue-ui-carousel-table.js +1 -1
  30. package/dist/components/vue-ui-chestnut.js +1 -1
  31. package/dist/components/vue-ui-chord.js +1 -1
  32. package/dist/components/vue-ui-circle-pack.js +1 -1
  33. package/dist/components/vue-ui-cursor.js +1 -1
  34. package/dist/components/vue-ui-dag.js +1 -1
  35. package/dist/components/vue-ui-dashboard.js +1 -1
  36. package/dist/components/vue-ui-digits.js +1 -1
  37. package/dist/components/vue-ui-donut-evolution.js +1 -1
  38. package/dist/components/vue-ui-donut.js +1 -1
  39. package/dist/components/vue-ui-dumbbell.js +1 -1
  40. package/dist/components/vue-ui-flow.js +1 -1
  41. package/dist/components/vue-ui-funnel.js +1 -1
  42. package/dist/components/vue-ui-galaxy.js +1 -1
  43. package/dist/components/vue-ui-gauge.js +1 -1
  44. package/dist/components/vue-ui-geo.js +1 -1
  45. package/dist/components/vue-ui-gizmo.js +1 -1
  46. package/dist/components/vue-ui-heatmap.js +1 -1
  47. package/dist/components/vue-ui-history-plot.js +1 -1
  48. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  49. package/dist/components/vue-ui-icon.js +1 -1
  50. package/dist/components/vue-ui-kpi.js +1 -1
  51. package/dist/components/vue-ui-mini-loader.js +1 -1
  52. package/dist/components/vue-ui-molecule.js +1 -1
  53. package/dist/components/vue-ui-mood-radar.js +1 -1
  54. package/dist/components/vue-ui-nested-donuts.js +1 -1
  55. package/dist/components/vue-ui-onion.js +1 -1
  56. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  57. package/dist/components/vue-ui-quadrant.js +1 -1
  58. package/dist/components/vue-ui-quick-chart.js +1 -1
  59. package/dist/components/vue-ui-radar.js +1 -1
  60. package/dist/components/vue-ui-rating.js +1 -1
  61. package/dist/components/vue-ui-relation-circle.js +1 -1
  62. package/dist/components/vue-ui-ridgeline.js +1 -1
  63. package/dist/components/vue-ui-rings.js +1 -1
  64. package/dist/components/vue-ui-scatter.js +1 -1
  65. package/dist/components/vue-ui-skeleton.js +1 -1
  66. package/dist/components/vue-ui-smiley.js +1 -1
  67. package/dist/components/vue-ui-spark-trend.js +1 -1
  68. package/dist/components/vue-ui-sparkbar.js +1 -1
  69. package/dist/components/vue-ui-sparkgauge.js +1 -1
  70. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  71. package/dist/components/vue-ui-sparkline.js +1 -1
  72. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  73. package/dist/components/vue-ui-stackbar.js +1 -1
  74. package/dist/components/vue-ui-stackline.js +1 -1
  75. package/dist/components/vue-ui-strip-plot.js +1 -1
  76. package/dist/components/vue-ui-table-heatmap.js +1 -1
  77. package/dist/components/vue-ui-table-sparkline.js +1 -1
  78. package/dist/components/vue-ui-table.js +1 -1
  79. package/dist/components/vue-ui-thermometer.js +1 -1
  80. package/dist/components/vue-ui-timer.js +1 -1
  81. package/dist/components/vue-ui-tiremarks.js +1 -1
  82. package/dist/components/vue-ui-treemap.js +1 -1
  83. package/dist/components/vue-ui-vertical-bar.js +1 -1
  84. package/dist/components/vue-ui-waffle.js +1 -1
  85. package/dist/components/vue-ui-wheel.js +1 -1
  86. package/dist/components/vue-ui-word-cloud.js +1 -1
  87. package/dist/components/vue-ui-world.js +1 -1
  88. package/dist/components/vue-ui-xy-canvas.js +1 -1
  89. package/dist/components/vue-ui-xy.js +1 -1
  90. package/dist/{dom-to-png-BAqzNjb1.js → dom-to-png-CtxhhdWb.js} +1 -1
  91. package/dist/{exposedLib-H4lmBl1t.js → exposedLib-DlqmhBx3.js} +1 -1
  92. package/dist/{img-BYYzY_QU.js → img-LXxMLmCg.js} +1 -1
  93. package/dist/{labelUtils-CTXUc3V9.js → labelUtils-CqTHa20R.js} +1 -1
  94. package/dist/{lib-GwPnJSrY.js → lib-DBptbyyI.js} +106 -84
  95. package/dist/{pdf-z-YiJeJQ.js → pdf-B4tTdfvl.js} +1 -1
  96. package/dist/style.css +1 -1
  97. package/dist/types/vue-data-ui.d.ts +59 -0
  98. package/dist/{useAutoSizeLabelsInsideViewbox-80fzdfxt.js → useAutoSizeLabelsInsideViewbox-DX7LdvFX.js} +1 -1
  99. package/dist/{useConfig-CIgyKZ6R.js → useConfig-DO94Aj5s.js} +953 -700
  100. package/dist/{useNestedProp-BBT0mbHh.js → useNestedProp-Bf5XFbs8.js} +1 -1
  101. package/dist/{useObjectBindings-BlXBVtRa.js → useObjectBindings-DQ8g8Jwi.js} +1 -1
  102. package/dist/usePrefersMotion-CUKm8_t8.js +15 -0
  103. package/dist/{usePrinter-DiK5R6k-.js → usePrinter-CEpYU3r5.js} +2 -2
  104. package/dist/utils.js +3 -3
  105. package/dist/{vue-data-ui-C2kPofmi.js → vue-data-ui-DXGkXRnC.js} +68 -68
  106. package/dist/vue-data-ui.js +72 -72
  107. package/dist/vue-ui-3d-bar-BaFpQnd5.js +1597 -0
  108. package/dist/{vue-ui-accordion-BGHTqIBt.js → vue-ui-accordion-nvggWcGN.js} +4 -4
  109. package/dist/vue-ui-age-pyramid-CRM498Pc.js +1069 -0
  110. package/dist/{vue-ui-annotator-B1GWVtPp.js → vue-ui-annotator-CkPi9moo.js} +7 -7
  111. package/dist/{vue-ui-bullet-DPoGGtaG.js → vue-ui-bullet-BBiwof3c.js} +158 -150
  112. package/dist/vue-ui-bump-Brxpu4xV.js +1147 -0
  113. package/dist/vue-ui-candlestick-DAnZv77-.js +1587 -0
  114. package/dist/{vue-ui-carousel-table-CmiHTJ8E.js → vue-ui-carousel-table-BHRZBYY0.js} +168 -160
  115. package/dist/vue-ui-chestnut-CbrYnRgm.js +1812 -0
  116. package/dist/vue-ui-chord-CaX_IUVs.js +1326 -0
  117. package/dist/vue-ui-circle-pack-CR3h53sc.js +988 -0
  118. package/dist/{vue-ui-cursor-B4mHR7QC.js → vue-ui-cursor-Cjfazw7Z.js} +4 -4
  119. package/dist/vue-ui-dag-B9vH3c66.js +3047 -0
  120. package/dist/{vue-ui-dashboard-Bo5FX73U.js → vue-ui-dashboard-DWll05qs.js} +70 -70
  121. package/dist/{vue-ui-digits-mpo2IcM5.js → vue-ui-digits-DcM67rMx.js} +76 -66
  122. package/dist/vue-ui-donut-Be5G38P5.js +2229 -0
  123. package/dist/vue-ui-donut-evolution-BLSesj3c.js +1358 -0
  124. package/dist/vue-ui-dumbbell-DIMiCY4r.js +1380 -0
  125. package/dist/vue-ui-flow-zvZylhgr.js +1202 -0
  126. package/dist/{vue-ui-funnel-BRkaEkBb.js → vue-ui-funnel-CSri-oWm.js} +7 -7
  127. package/dist/vue-ui-galaxy-CGykxsAI.js +1012 -0
  128. package/dist/{vue-ui-gauge-J2VYHsQe.js → vue-ui-gauge-D1MNB9Jq.js} +8 -8
  129. package/dist/vue-ui-geo-DdJDGhG2.js +1437 -0
  130. package/dist/{vue-ui-gizmo-DEec3-v9.js → vue-ui-gizmo-BZYRHGFm.js} +77 -68
  131. package/dist/vue-ui-heatmap-CryOx6XK.js +1500 -0
  132. package/dist/vue-ui-history-plot-C85iw9Kl.js +1449 -0
  133. package/dist/vue-ui-horizontal-bar-BoBZOybC.js +1637 -0
  134. package/dist/vue-ui-kpi-DHrolXw6.js +109 -0
  135. package/dist/{vue-ui-mini-loader-CoOHvZUk.js → vue-ui-mini-loader-Bc3fEQ9j.js} +3 -3
  136. package/dist/{vue-ui-molecule-Chq1qWDK.js → vue-ui-molecule-DJ_BQ4DK.js} +6 -6
  137. package/dist/vue-ui-mood-radar-CBE02TpQ.js +1086 -0
  138. package/dist/vue-ui-nested-donuts-YTFtb4CL.js +1595 -0
  139. package/dist/vue-ui-onion-B9l81-PS.js +1124 -0
  140. package/dist/vue-ui-parallel-coordinate-plot-C1e_rs8J.js +1252 -0
  141. package/dist/vue-ui-quadrant-C1qsLCRn.js +1759 -0
  142. package/dist/vue-ui-quick-chart-DFoz3WiA.js +2216 -0
  143. package/dist/vue-ui-radar-Cmo3p-UA.js +1139 -0
  144. package/dist/{vue-ui-rating-zV58MDQh.js → vue-ui-rating-BAHhYt_A.js} +3 -3
  145. package/dist/vue-ui-relation-circle-BqwznVwf.js +782 -0
  146. package/dist/vue-ui-ridgeline-CDk9eXJq.js +1473 -0
  147. package/dist/vue-ui-rings-BRkGoQdL.js +1156 -0
  148. package/dist/vue-ui-scatter-BxDtWASQ.js +1831 -0
  149. package/dist/{vue-ui-skeleton-CbqNz9IE.js → vue-ui-skeleton-D6kTb9aO.js} +4 -4
  150. package/dist/{vue-ui-smiley-BK5EKp9u.js → vue-ui-smiley-CzVaLlpB.js} +3 -3
  151. package/dist/vue-ui-spark-trend-D8Mf2A1w.js +378 -0
  152. package/dist/{vue-ui-sparkbar-DUDWvTo-.js → vue-ui-sparkbar-BbYj56c3.js} +86 -84
  153. package/dist/vue-ui-sparkgauge-DXzOSLRb.js +256 -0
  154. package/dist/vue-ui-sparkhistogram-DMfSx1iH.js +474 -0
  155. package/dist/vue-ui-sparkline-D-rQ9PsC.js +1327 -0
  156. package/dist/vue-ui-sparkstackbar-DK5n8IKP.js +621 -0
  157. package/dist/vue-ui-stackbar-BHthy6jf.js +2070 -0
  158. package/dist/vue-ui-stackline-C6-WNpKD.js +2164 -0
  159. package/dist/vue-ui-strip-plot-CHu-1ilI.js +1183 -0
  160. package/dist/{vue-ui-table-BHuXI4Eq.js → vue-ui-table-DW9JGsLq.js} +6 -6
  161. package/dist/{vue-ui-table-heatmap-y88sBfu3.js → vue-ui-table-heatmap-LYqoBit9.js} +6 -6
  162. package/dist/{vue-ui-table-sparkline-ClpLLKi2.js → vue-ui-table-sparkline-CXK1dFr-.js} +5 -5
  163. package/dist/{vue-ui-thermometer-sjruUGQx.js → vue-ui-thermometer-BN8tflOz.js} +272 -256
  164. package/dist/{vue-ui-timer-CgdgMKIc.js → vue-ui-timer-DGT0UBOF.js} +6 -6
  165. package/dist/{vue-ui-tiremarks-UBDpAIVr.js → vue-ui-tiremarks-BZ-osQqY.js} +204 -191
  166. package/dist/vue-ui-treemap-98KaVRyd.js +1723 -0
  167. package/dist/vue-ui-waffle-Cb7oJnIc.js +1321 -0
  168. package/dist/vue-ui-wheel-sfew1fjw.js +738 -0
  169. package/dist/vue-ui-word-cloud-vq1t9JHr.js +1548 -0
  170. package/dist/{vue-ui-world-D-3wgoTn.js → vue-ui-world-CN0f6elD.js} +8 -8
  171. package/dist/vue-ui-xy-BdzEiImZ.js +3877 -0
  172. package/dist/vue-ui-xy-canvas-CWQzUQzY.js +1810 -0
  173. package/package.json +2 -2
  174. package/dist/ColorPicker-j0ySewhI.js +0 -244
  175. package/dist/Legend-1LMMsPxL.js +0 -90
  176. package/dist/vue-ui-3d-bar-BhNgFaJA.js +0 -1484
  177. package/dist/vue-ui-age-pyramid-CuYRf5v-.js +0 -997
  178. package/dist/vue-ui-bump-C_fKharc.js +0 -1059
  179. package/dist/vue-ui-candlestick-BY-_E7eZ.js +0 -1487
  180. package/dist/vue-ui-chestnut-C-bQYaNI.js +0 -1557
  181. package/dist/vue-ui-chord-uQYQgyGM.js +0 -1220
  182. package/dist/vue-ui-circle-pack-CdbDcuDw.js +0 -907
  183. package/dist/vue-ui-dag-DsHUvjvm.js +0 -2885
  184. package/dist/vue-ui-donut-CzCgCVsx.js +0 -2139
  185. package/dist/vue-ui-donut-evolution-C_ck_TOR.js +0 -1297
  186. package/dist/vue-ui-dumbbell-CVSA90b2.js +0 -1293
  187. package/dist/vue-ui-flow-CsbSaFnu.js +0 -1075
  188. package/dist/vue-ui-galaxy-DWKHDciu.js +0 -914
  189. package/dist/vue-ui-geo-DykhEWVq.js +0 -1331
  190. package/dist/vue-ui-heatmap-BEDirv8T.js +0 -1334
  191. package/dist/vue-ui-history-plot-Bs96PebH.js +0 -1292
  192. package/dist/vue-ui-horizontal-bar-ClQcB9nL.js +0 -1522
  193. package/dist/vue-ui-kpi-DlUEHKuw.js +0 -101
  194. package/dist/vue-ui-mood-radar-A2LBLgUi.js +0 -967
  195. package/dist/vue-ui-nested-donuts-DFX251aT.js +0 -1513
  196. package/dist/vue-ui-onion-CW0YO9Ro.js +0 -1045
  197. package/dist/vue-ui-parallel-coordinate-plot-UFg10bHP.js +0 -1134
  198. package/dist/vue-ui-quadrant-C1pLW2zA.js +0 -1647
  199. package/dist/vue-ui-quick-chart-FaxttnJY.js +0 -2030
  200. package/dist/vue-ui-radar-DE70LPBZ.js +0 -1067
  201. package/dist/vue-ui-relation-circle-iuRXIyRU.js +0 -704
  202. package/dist/vue-ui-ridgeline-CwvDh5pG.js +0 -1385
  203. package/dist/vue-ui-rings-80ZUki42.js +0 -1083
  204. package/dist/vue-ui-scatter-FdAAYJOK.js +0 -1670
  205. package/dist/vue-ui-spark-trend-C68p8-Xp.js +0 -349
  206. package/dist/vue-ui-sparkgauge-DdRtHQDe.js +0 -245
  207. package/dist/vue-ui-sparkhistogram-C9DvzQae.js +0 -396
  208. package/dist/vue-ui-sparkline-B2RDrdiR.js +0 -1273
  209. package/dist/vue-ui-sparkstackbar-BsIOHUE5.js +0 -475
  210. package/dist/vue-ui-stackbar-BZl0kEkb.js +0 -2001
  211. package/dist/vue-ui-stackline-2VKxwFei.js +0 -2099
  212. package/dist/vue-ui-strip-plot-B9nBSRyY.js +0 -1080
  213. package/dist/vue-ui-treemap-BS5EilZf.js +0 -1645
  214. package/dist/vue-ui-waffle-CbX5K9Q2.js +0 -1211
  215. package/dist/vue-ui-wheel-BIJ09H5D.js +0 -723
  216. package/dist/vue-ui-word-cloud-DJmJ-oYT.js +0 -1466
  217. package/dist/vue-ui-xy-canvas-4auyhlTr.js +0 -1717
  218. package/dist/vue-ui-xy-f67V1xjd.js +0 -3713
@@ -0,0 +1,1597 @@
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-DBptbyyI.js";
3
+ import { t as al, u as nl } from "./useResponsive-DfdjqQps.js";
4
+ import { u as sl } from "./useConfig-DO94Aj5s.js";
5
+ import { u as rl, B as ul } from "./BaseScanner-BhhkKVoj.js";
6
+ import { u as il } from "./usePrinter-CEpYU3r5.js";
7
+ import { u as dl } from "./useSvgExport-ByUukOZt.js";
8
+ import { u as je } from "./useNestedProp-Bf5XFbs8.js";
9
+ import { u as cl } from "./useThemeCheck-D1ZYXUwG.js";
10
+ import { u as vl } from "./useUserOptionState-BIvW1Kz7.js";
11
+ import { u as hl } from "./useChartAccessibility-9icAAmYg.js";
12
+ import fl from "./img-LXxMLmCg.js";
13
+ import pl from "./Title-BeMKE1cj.js";
14
+ import gl from "./vue_ui_3d_bar-CL0iX8Qi.js";
15
+ import { A as yl } from "./A11yDataTable-KcVAX2cP.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-Cb3zzG6s.js")), bt = Z(() => import("./vue-ui-accordion-nvggWcGN.js")), _t = Z(() => import("./DataTable-DT2kIdQ6.js")), wt = Z(() => import("./PenAndPaper-Ct3qJ4lA.js")), xt = Z(() => import("./UserOptions-rW2fRf3V.js")), Ct = Z(() => import("./PackageVersion-DPO-OOVI.js")), Pt = Z(() => import("./BaseDraggableDialog-CIb-iD9g.js")), { 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(() => e.value.userOptions.useCursorPointer), Ft = M(() => ft({
42
+ defaultConfig: {
43
+ customPalette: ["#808080", "#ADADAD", "#DBDBDB"],
44
+ userOptions: { show: !1 },
45
+ table: { show: !1 },
46
+ style: {
47
+ chart: {
48
+ backgroundColor: "#99999930",
49
+ color: "#6A6A6A",
50
+ bar: {
51
+ color: "#ADADAD",
52
+ stroke: "#6A6A6A"
53
+ },
54
+ box: {
55
+ stroke: "#6A6A6A"
56
+ }
57
+ }
58
+ }
59
+ },
60
+ userConfig: e.value.skeletonConfig ?? {}
61
+ })), { loading: Q, FINAL_DATASET: D } = rl({
62
+ ...Xt(O),
63
+ FINAL_CONFIG: e,
64
+ prepareConfig: Ce,
65
+ callback: () => {
66
+ Promise.resolve().then(async () => {
67
+ await Ie(), Ke();
68
+ });
69
+ },
70
+ skeletonDataset: O.config?.skeletonDataset ?? {
71
+ series: [
72
+ {
73
+ name: "_",
74
+ value: 21,
75
+ breakdown: [
76
+ { name: "_", value: 13 },
77
+ { name: "_", value: 8 }
78
+ ]
79
+ },
80
+ {
81
+ name: "_",
82
+ value: 13,
83
+ breakdown: [
84
+ { name: "_", value: 8 },
85
+ { name: "_", value: 5 }
86
+ ]
87
+ },
88
+ {
89
+ name: "_",
90
+ value: 8,
91
+ breakdown: [
92
+ { name: "_", value: 5 },
93
+ { name: "_", value: 3 }
94
+ ]
95
+ }
96
+ ]
97
+ },
98
+ skeletonConfig: ft({
99
+ defaultConfig: e.value,
100
+ userConfig: Ft.value
101
+ })
102
+ }), { userOptionsVisible: xe, setUserOptionsVisibility: Re, keepUserOptionState: Ge } = vl({ config: e.value }), { svgRef: ue } = hl({ config: e.value.style.chart.title });
103
+ function Ce() {
104
+ const o = je({
105
+ userConfig: O.config,
106
+ defaultConfig: At
107
+ }), a = o.theme;
108
+ if (!a) return o;
109
+ if (!Mt.value(o))
110
+ return Tt(o), o;
111
+ const t = je({
112
+ userConfig: gl[a] || O.config,
113
+ defaultConfig: o
114
+ }), i = je({
115
+ userConfig: O.config,
116
+ defaultConfig: t
117
+ });
118
+ return {
119
+ ...i,
120
+ customPalette: i.customPalette.length ? i.customPalette : Zt[a] || $e
121
+ };
122
+ }
123
+ Oe(() => O.config, (o) => {
124
+ 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;
125
+ }, { deep: !0 });
126
+ const { isPrinting: Pe, isImaging: Ae, generatePdf: Ue, generateImage: He } = il({
127
+ elementId: `3d_bar_${A.value}`,
128
+ fileName: e.value.style.chart.title.text || "vue-ui-3d-bar",
129
+ options: e.value.userOptions.print
130
+ }), St = M(() => Yt(e.value.customPalette)), K = m({
131
+ showTable: e.value.table.show
132
+ });
133
+ Oe(e, () => {
134
+ K.value = {
135
+ showTable: e.value.table.show
136
+ };
137
+ }, { immediate: !0 });
138
+ const x = M(() => D.value.series && D.value.series.length), Me = m(e.value.style.chart.box.dimensions.width * (x.value ? 2 : 1)), Xe = m(e.value.style.chart.box.dimensions.height), n = M(() => ({
139
+ height: Xe.value,
140
+ width: Me.value,
141
+ absoluteWidth: Me.value,
142
+ top: e.value.style.chart.box.dimensions.top,
143
+ bottom: e.value.style.chart.box.dimensions.bottom,
144
+ left: e.value.style.chart.box.dimensions.left,
145
+ right: e.value.style.chart.box.dimensions.right,
146
+ perspective: e.value.style.chart.box.dimensions.perspective
147
+ })), y = M(() => {
148
+ if (x.value) {
149
+ const o = D.value.series.map((l) => l.value || 0).reduce((l, r) => l + r, 0), a = D.value.series.map((l, r) => ({
150
+ ...l,
151
+ seriesIndex: r,
152
+ id: ht(),
153
+ proportion: (l.value || 0) / o,
154
+ color: Jt(l.color) || St.value[r] || $e[r] || $e[r % $e.length],
155
+ breakdown: l.breakdown ? l.breakdown.sort((u, $) => $.value - u.value) : null
156
+ })).sort((l, r) => r.value - l.value), t = [];
157
+ let i = 0;
158
+ for (let l = 0; l < a.length; l += 1)
159
+ t.push({
160
+ ...a[l],
161
+ fill: Dt(i, a[l].proportion, a[l].breakdown, a[l].color)
162
+ }), i += a[l].proportion;
163
+ return t;
164
+ }
165
+ return null;
166
+ }), W = M(() => {
167
+ const o = n.value.width / 2;
168
+ return {
169
+ 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}`,
170
+ 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}`,
171
+ side: `M${o},${n.value.height - n.value.bottom} ${o},${n.value.top + n.value.perspective * 2}`,
172
+ 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}`,
173
+ 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}`,
174
+ tubeLeft: `M${n.value.left},${n.value.top + n.value.perspective} ${n.value.left},${n.value.height - n.value.bottom - n.value.perspective}`,
175
+ 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}`,
176
+ 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}`
177
+ };
178
+ }), ee = m(e.value.style.chart.animation.use ? 0 : D.value.percentage);
179
+ function Ke() {
180
+ let o = 0, a = e.value.style.chart.animation.speed, t = 5e-3 * e.value.style.chart.animation.acceleration;
181
+ function i() {
182
+ ee.value += a + o, o += t, ee.value < D.value.percentage ? requestAnimationFrame(i) : ee.value = D.value.percentage;
183
+ }
184
+ e.value.style.chart.animation.use && (ee.value = 0, i());
185
+ }
186
+ Kt(() => {
187
+ qe(), Ke();
188
+ });
189
+ const ge = M(() => !!e.value.debug);
190
+ function qe() {
191
+ if (Qt(O.dataset) ? me({
192
+ componentName: "VueUi3dBar",
193
+ type: "dataset",
194
+ debug: ge.value
195
+ }) : O.dataset.series ? O.dataset.series.forEach((o, a) => {
196
+ Ne({
197
+ datasetObject: o,
198
+ requiredAttributes: ["name", "value"]
199
+ }).forEach((t) => {
200
+ me({
201
+ componentName: "VueUi3dBar",
202
+ type: "datasetSerieAttribute",
203
+ property: t,
204
+ index: a,
205
+ debug: ge.value
206
+ });
207
+ }), o.breakdown && o.breakdown.forEach((t, i) => {
208
+ Ne({
209
+ datasetObject: t,
210
+ requiredAttributes: ["name", "value"]
211
+ }).forEach((l) => {
212
+ me({
213
+ componentName: "VueUi3dBar",
214
+ type: "datasetSerieAttribute",
215
+ property: l,
216
+ index: `${a} - ${i}`,
217
+ debug: ge.value
218
+ });
219
+ });
220
+ });
221
+ }) : Ne({
222
+ datasetObject: O.dataset,
223
+ requiredAttributes: ["percentage"]
224
+ }).forEach((o) => {
225
+ me({
226
+ componentName: "VueUi3dBar",
227
+ type: "datasetAttribute",
228
+ property: o,
229
+ debug: ge.value
230
+ });
231
+ }), e.value.responsive) {
232
+ const o = al(() => {
233
+ const { width: a, height: t } = nl({
234
+ chart: V.value,
235
+ title: e.value.style.chart.title.text ? Ve.value : null,
236
+ source: We.value
237
+ });
238
+ requestAnimationFrame(() => {
239
+ Xe.value = t - 12, Me.value = a;
240
+ });
241
+ });
242
+ 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);
243
+ }
244
+ }
245
+ const te = M(() => n.value.width / 4);
246
+ function Dt(o, a, t, i) {
247
+ const l = n.value.height - n.value.bottom - n.value.top - n.value.perspective * 2, { width: r, height: u, bottom: $, right: R, left: k, perspective: g } = 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;
248
+ let at = null, nt = null;
249
+ return Ut && (t = t.map((st, Ht) => ({
250
+ ...st,
251
+ value: st.value || 0,
252
+ color: G(i, Ht / t.length)
253
+ })), at = pt(
254
+ { series: t },
255
+ r / 2 + r / 5,
256
+ Gt === "top" ? De - ot : De + ot,
257
+ r / 10,
258
+ r / 10,
259
+ 1.99999,
260
+ 2,
261
+ 1,
262
+ 360,
263
+ 105.25,
264
+ r / 20
265
+ ), nt = pt(
266
+ { series: t },
267
+ r - P + r / 14,
268
+ u - h - g - l * a / 2,
269
+ r / 40,
270
+ r / 40,
271
+ 1.99999,
272
+ 2,
273
+ 1,
274
+ 360,
275
+ 105.25,
276
+ r / 40
277
+ )), {
278
+ donut: at,
279
+ miniDonut: nt,
280
+ donutR: r / 20,
281
+ CENTER_X: f,
282
+ sidePointer: {
283
+ x: r - P,
284
+ x2: r - P + r / 14,
285
+ xText: r - P + r / 9,
286
+ y: u - h - g - l * a / 2,
287
+ topY: u - h - g - l * a,
288
+ height: l * a
289
+ },
290
+ apexBottom: { y: u - h, x: f },
291
+ apexTop: { y: u - h - l * a, x: f },
292
+ right: `M${f},${u - h} ${f},${u - h - l * a} ${r - P},${u - h - g - l * a} ${r - P},${u - h - g}Z`,
293
+ left: `M${f},${u - h} ${f},${u - h - l * a} ${k}, ${u - h - g - l * a} ${k},${u - h - g}Z`,
294
+ liningTop: `M${k},${u - h - g - l * a} ${f},${u - h - l * a} ${r - P},${u - h - g - l * a}`,
295
+ 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}`,
296
+ 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`,
297
+ 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}`,
298
+ 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}`,
299
+ tubeBody: `M
300
+ ${k},${u - h - l * a - g}
301
+ C ${k},${u - h - l * a + g / 2}
302
+ ${r - P},${u - h - l * a + g / 2}
303
+ ${r - P},${u - h - l * a - g}
304
+ L${r - P},${u - h - g}
305
+ C
306
+ ${r - P},${u - h + g / 2}
307
+ ${k},${u - h + g / 2}
308
+ ${k},${u - h - g}Z`
309
+ };
310
+ }
311
+ const le = M(() => {
312
+ const o = el(ee.value / 100), a = n.value.height - n.value.bottom - n.value.top - n.value.perspective * 2, { width: t, height: i, bottom: l, right: r, left: u, perspective: $ } = n.value, R = x.value ? t / 4 : t / 2, k = x.value ? R * 2 + u : r, f = l + a * 0;
313
+ return {
314
+ right: `M${R},${i - f} ${R},${i - f - a * o} ${t - k},${i - f - $ - a * o} ${t - k},${i - f - $}Z`,
315
+ left: `M${R},${i - f} ${R},${i - f - a * o} ${u}, ${i - f - $ - a * o} ${u},${i - f - $}Z`,
316
+ 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`,
317
+ 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 - $}`,
318
+ tubeBody: `M
319
+ ${u},${i - f - a * o - $}
320
+ C ${u},${i - f - a * o + $ / 2}
321
+ ${t - k},${i - f - a * o + $ / 2}
322
+ ${t - k},${i - f - a * o - $}
323
+ L${t - k},${i - $ * 1.5}
324
+ C
325
+ ${t - k},${i}
326
+ ${u},${i}
327
+ ${u},${i - f - $}Z`
328
+ };
329
+ }), b = m(null);
330
+ function S(o, a = !1) {
331
+ e.value.events.datapointEnter && !a && e.value.events.datapointEnter({ datapoint: o, seriesIndex: o.seriesIndex }), e.value.events.datapointClick && a && e.value.events.datapointClick({ datapoint: o, seriesIndex: o.seriesIndex }), ce("selectDatapoint", o);
332
+ const t = y.value?.findIndex((i) => i.id === o.id) ?? null;
333
+ 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);
334
+ }
335
+ function q(o) {
336
+ e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: o, seriesIndex: o.seriesIndex }), !I.value && (b.value = null, E.value = null, X.value = "");
337
+ }
338
+ function oe(o, a, t = !1) {
339
+ 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;
340
+ return t ? r : l.toFixed(0) + "%";
341
+ }
342
+ function Ze(o) {
343
+ return [...o].map((a) => a.value).reduce((a, t) => a + t, 0);
344
+ }
345
+ const ye = m(!1);
346
+ function Ye(o) {
347
+ ye.value = o;
348
+ }
349
+ function Ot() {
350
+ return x.value ? y.value : D.value.percentage;
351
+ }
352
+ const ae = M(() => {
353
+ if (x.value) {
354
+ const o = y.value.flatMap((t) => t.breakdown && t.breakdown.length ? [{ name: t.name, color: t.color }, ...t.breakdown.map((i, l) => ({
355
+ name: i.name,
356
+ color: G(t.color, l / t.breakdown.length)
357
+ }))] : {
358
+ name: t.name,
359
+ color: t.color
360
+ }), a = y.value.flatMap((t) => t.breakdown && t.breakdown.length ? [t.value, ...t.breakdown.map((i) => i.value)] : t.value);
361
+ return { head: o, body: a };
362
+ } else
363
+ return null;
364
+ });
365
+ function Te(o = null) {
366
+ if (!x.value) {
367
+ console.warn("VueUi3dBar : CSV download is only available in stack mode (providing dataset.series instead of dataset.percentage)");
368
+ return;
369
+ }
370
+ Ie(() => {
371
+ const a = y.value.map((r) => r.value).reduce((r, u) => r + u, 0), t = ae.value.head.map((r, u) => [[
372
+ r.name
373
+ ], [ae.value.body[u]], [isNaN(ae.value.body[u] / a) ? "-" : ae.value.body[u] / a * 100]]), i = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(t), l = ll(i);
374
+ o ? o(l) : ol({ csvContent: l, title: e.value.style.chart.title.text || "vue-ui-3d-bar" });
375
+ });
376
+ }
377
+ const ne = M(() => {
378
+ if (!x.value || !Array.isArray(y.value) || !y.value.length)
379
+ return {
380
+ colNames: [],
381
+ head: [],
382
+ body: [],
383
+ a11yBody: [],
384
+ config: {
385
+ th: {
386
+ backgroundColor: e.value.table.th.backgroundColor,
387
+ color: e.value.table.th.color,
388
+ outline: e.value.table.th.outline
389
+ },
390
+ td: {
391
+ backgroundColor: e.value.table.td.backgroundColor,
392
+ color: e.value.table.td.color,
393
+ outline: e.value.table.td.outline
394
+ },
395
+ breakpoint: e.value.table.responsiveBreakpoint,
396
+ shape: e.value.style.shape === "tube" ? "circle" : "square"
397
+ }
398
+ };
399
+ const o = y.value.reduce((l, r) => l + r.value, 0), a = [
400
+ ' <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>',
401
+ B({
402
+ p: e.value.style.chart.legend.prefix,
403
+ v: o,
404
+ s: e.value.style.chart.legend.suffix,
405
+ r: e.value.table.td.roundingValue
406
+ }),
407
+ "100%"
408
+ ], t = ae.value.head.map((l, r) => {
409
+ const u = ae.value.body[r];
410
+ return [
411
+ {
412
+ color: l.color,
413
+ name: l.name
414
+ },
415
+ B({
416
+ p: e.value.style.chart.legend.prefix,
417
+ v: u,
418
+ s: e.value.style.chart.legend.suffix,
419
+ r: e.value.table.td.roundingValue
420
+ }),
421
+ isNaN(u / o) ? "-" : B({
422
+ v: u / o * 100,
423
+ s: "%",
424
+ r: e.value.table.td.roundingPercentage
425
+ })
426
+ ];
427
+ }), i = t.map((l) => l.map((r, u) => u === 0 ? r.name : r));
428
+ return {
429
+ colNames: [
430
+ e.value.table.columnNames.series,
431
+ e.value.table.columnNames.value,
432
+ e.value.table.columnNames.percentage
433
+ ],
434
+ head: a,
435
+ body: t,
436
+ a11yBody: i,
437
+ config: {
438
+ th: {
439
+ backgroundColor: e.value.table.th.backgroundColor,
440
+ color: e.value.table.th.color,
441
+ outline: e.value.table.th.outline
442
+ },
443
+ td: {
444
+ backgroundColor: e.value.table.td.backgroundColor,
445
+ color: e.value.table.td.color,
446
+ outline: e.value.table.td.outline
447
+ },
448
+ breakpoint: e.value.table.responsiveBreakpoint,
449
+ shape: e.value.style.shape === "tube" ? "circle" : "square"
450
+ }
451
+ };
452
+ });
453
+ function Je() {
454
+ K.value.showTable = !K.value.showTable;
455
+ }
456
+ const ke = m(!1);
457
+ function Fe() {
458
+ ke.value = !ke.value;
459
+ }
460
+ async function Bt({ scale: o = 2 } = {}) {
461
+ if (!V.value) return;
462
+ const { width: a, height: t } = V.value.getBoundingClientRect(), i = a / t, { imageUri: l, base64: r } = await fl({ domElement: V.value, base64: !0, img: !0, scale: o });
463
+ return {
464
+ imageUri: l,
465
+ base64: r,
466
+ title: e.value.style.chart.title.text,
467
+ width: a,
468
+ height: t,
469
+ aspectRatio: i
470
+ };
471
+ }
472
+ const ie = M(() => {
473
+ const o = e.value.table.useDialog && !e.value.table.show, a = K.value.showTable;
474
+ return {
475
+ component: o ? Pt : bt,
476
+ title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
477
+ props: o ? {
478
+ backgroundColor: e.value.table.th.backgroundColor,
479
+ color: e.value.table.th.color,
480
+ headerColor: e.value.table.th.color,
481
+ headerBg: e.value.table.th.backgroundColor,
482
+ isFullscreen: ye.value,
483
+ fullscreenParent: V.value,
484
+ forcedWidth: Math.min(800, window.innerWidth * 0.8)
485
+ } : {
486
+ hideDetails: !0,
487
+ config: {
488
+ open: a,
489
+ maxHeight: 1e4,
490
+ body: {
491
+ backgroundColor: e.value.style.chart.backgroundColor,
492
+ color: e.value.style.chart.color
493
+ },
494
+ head: {
495
+ backgroundColor: e.value.style.chart.backgroundColor,
496
+ color: e.value.style.chart.color
497
+ }
498
+ }
499
+ }
500
+ };
501
+ });
502
+ Oe(() => K.value.showTable, (o) => {
503
+ e.value.table.show || (o && e.value.table.useDialog && re.value ? re.value.open() : "close" in re.value && re.value.close());
504
+ });
505
+ function Qe() {
506
+ K.value.showTable = !1, we.value && we.value.setTableIconState(!1);
507
+ }
508
+ const It = M(() => e.value.style.chart.backgroundColor), Nt = M(() => e.value.style.chart.title), { exportSvg: jt, getSvg: zt } = dl({
509
+ svg: ue,
510
+ title: Nt,
511
+ backgroundColor: It
512
+ });
513
+ async function et({ isCb: o }) {
514
+ he.value = !0, await Ie();
515
+ try {
516
+ if (o) {
517
+ const { blob: a, url: t, text: i, dataUrl: l } = await zt();
518
+ await Promise.resolve(e.value.userOptions.callbacks.svg({ blob: a, url: t, text: i, dataUrl: l }));
519
+ } else
520
+ await Promise.resolve(jt());
521
+ } finally {
522
+ he.value = !1;
523
+ }
524
+ }
525
+ function Lt(o) {
526
+ if (o?.stage === "start") {
527
+ fe.value = !0;
528
+ return;
529
+ }
530
+ if (o?.stage === "end") {
531
+ fe.value = !1;
532
+ return;
533
+ }
534
+ He();
535
+ }
536
+ async function tt() {
537
+ if (ce("copyAlt", {
538
+ config: e.value,
539
+ dataset: D.value
540
+ }), !e.value.userOptions.callbacks.altCopy) {
541
+ console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
542
+ return;
543
+ }
544
+ await Promise.resolve(e.value.userOptions.callbacks.altCopy({ config: e.value, dataset: D.value }));
545
+ }
546
+ function Et() {
547
+ E.value = null, X.value = "", I.value = !1, b.value = null;
548
+ }
549
+ function de(o) {
550
+ if (!o) return "";
551
+ const a = B({
552
+ p: e.value.style.chart.legend.prefix,
553
+ v: o.value,
554
+ s: e.value.style.chart.legend.suffix,
555
+ r: e.value.style.chart.legend.roundingValue
556
+ }), t = B({
557
+ v: o.proportion * 100,
558
+ s: "%",
559
+ r: e.value.style.chart.legend.roundingPercentage
560
+ });
561
+ return `${o.name}: ${a}, ${t}`;
562
+ }
563
+ function lt(o) {
564
+ if (!x.value || !y.value?.length) return;
565
+ const a = y.value[o];
566
+ a && (E.value = o, b.value = a.id, X.value = de(a));
567
+ }
568
+ function Vt() {
569
+ H.value = !0, !(!x.value || !y.value?.length) && E.value === null && lt(0);
570
+ }
571
+ function Wt() {
572
+ H.value = !1, I.value || (E.value = null, b.value = null, X.value = "");
573
+ }
574
+ function Rt(o) {
575
+ if (!x.value || !y.value?.length || !ue.value || document.activeElement !== ue.value) return;
576
+ const a = ["ArrowLeft", "ArrowDown"].includes(o.key), t = ["ArrowRight", "ArrowUp"].includes(o.key), i = o.key === "Enter" || o.key === " ", l = o.key === "Escape";
577
+ if (!a && !t && !i && !l) return;
578
+ if (o.preventDefault(), o.stopPropagation(), l) {
579
+ Et();
580
+ return;
581
+ }
582
+ if (i) {
583
+ if (E.value === null) return;
584
+ const u = y.value[E.value];
585
+ if (!u) return;
586
+ S(u, !0), X.value = `${de(u)} selected`;
587
+ return;
588
+ }
589
+ let r = E.value;
590
+ 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);
591
+ }
592
+ const Se = M(() => ({
593
+ headers: ne.value?.colNames ?? [],
594
+ rows: ne.value?.a11yBody ?? []
595
+ }));
596
+ return kt({
597
+ getImage: Bt,
598
+ generateCsv: Te,
599
+ generatePdf: Ue,
600
+ generateImage: He,
601
+ generateSvg: et,
602
+ getData: Ot,
603
+ toggleTable: Je,
604
+ toggleAnnotator: Fe,
605
+ toggleFullscreen: Ye,
606
+ copyAlt: tt
607
+ }), (o, a) => (c(), v("div", {
608
+ ref_key: "bar3dChart",
609
+ ref: V,
610
+ class: rt("vue-data-ui-component vue-ui-3d-bar"),
611
+ style: j(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
612
+ id: `3d_bar_${A.value}`,
613
+ onMouseenter: a[8] || (a[8] = () => s(Re)(!0)),
614
+ onMouseleave: a[9] || (a[9] = () => s(Re)(!1))
615
+ }, [
616
+ d("div", {
617
+ id: `chart-instructions-${A.value}`,
618
+ class: "sr-only"
619
+ }, [
620
+ d("p", null, N(e.value.a11y.translations.keyboardNavigation), 1)
621
+ ], 8, ml),
622
+ d("div", bl, N(X.value), 1),
623
+ Se.value?.rows?.length ? (c(), Y(yl, {
624
+ key: 0,
625
+ uid: A.value,
626
+ head: Se.value.headers,
627
+ body: Se.value.rows,
628
+ notice: e.value.a11y.translations.tableAvailable,
629
+ caption: e.value.a11y.translations.tableCaption
630
+ }, null, 8, ["uid", "head", "body", "notice", "caption"])) : p("", !0),
631
+ e.value.userOptions.buttons.annotator ? (c(), Y(s(wt), {
632
+ key: 1,
633
+ svgRef: s(ue),
634
+ backgroundColor: e.value.style.chart.backgroundColor,
635
+ color: e.value.style.chart.color,
636
+ active: ke.value,
637
+ isCursorPointer: pe.value,
638
+ onClose: Fe
639
+ }, {
640
+ "annotator-action-close": C(() => [
641
+ _(o.$slots, "annotator-action-close", {}, void 0, !0)
642
+ ]),
643
+ "annotator-action-color": C(({ color: t }) => [
644
+ _(o.$slots, "annotator-action-color", z(L({ color: t })), void 0, !0)
645
+ ]),
646
+ "annotator-action-draw": C(({ mode: t }) => [
647
+ _(o.$slots, "annotator-action-draw", z(L({ mode: t })), void 0, !0)
648
+ ]),
649
+ "annotator-action-undo": C(({ disabled: t }) => [
650
+ _(o.$slots, "annotator-action-undo", z(L({ disabled: t })), void 0, !0)
651
+ ]),
652
+ "annotator-action-redo": C(({ disabled: t }) => [
653
+ _(o.$slots, "annotator-action-redo", z(L({ disabled: t })), void 0, !0)
654
+ ]),
655
+ "annotator-action-delete": C(({ disabled: t }) => [
656
+ _(o.$slots, "annotator-action-delete", z(L({ disabled: t })), void 0, !0)
657
+ ]),
658
+ _: 3
659
+ }, 8, ["svgRef", "backgroundColor", "color", "active", "isCursorPointer"])) : p("", !0),
660
+ e.value.style.chart.title.text ? (c(), v("div", {
661
+ key: 2,
662
+ ref_key: "chartTitle",
663
+ ref: Ve,
664
+ style: "width:100%;background:transparent"
665
+ }, [
666
+ (c(), Y(pl, {
667
+ key: `title_${Le.value}`,
668
+ config: {
669
+ title: {
670
+ cy: "3dBar-div-title",
671
+ ...e.value.style.chart.title
672
+ },
673
+ subtitle: {
674
+ cy: "3dBar-div-subtitle",
675
+ ...e.value.style.chart.title.subtitle
676
+ }
677
+ }
678
+ }, null, 8, ["config"]))
679
+ ], 512)) : p("", !0),
680
+ e.value.userOptions.show && ze.value && (s(Ge) || s(xe)) ? (c(), Y(s(xt), {
681
+ key: 3,
682
+ ref_key: "userOptionsRef",
683
+ ref: we,
684
+ backgroundColor: e.value.style.chart.backgroundColor,
685
+ color: e.value.style.chart.color,
686
+ isPrinting: s(Pe),
687
+ isImaging: s(Ae),
688
+ uid: A.value,
689
+ hasPdf: e.value.userOptions.buttons.pdf,
690
+ hasTable: !!x.value && e.value.userOptions.buttons.table,
691
+ hasXls: !!x.value && e.value.userOptions.buttons.csv,
692
+ hasImg: e.value.userOptions.buttons.img,
693
+ hasSvg: e.value.userOptions.buttons.svg,
694
+ hasFullscreen: e.value.userOptions.buttons.fullscreen,
695
+ hasAltCopy: e.value.userOptions.buttons.altCopy,
696
+ titles: { ...e.value.userOptions.buttonTitles },
697
+ chartElement: V.value,
698
+ position: e.value.userOptions.position,
699
+ hasAnnotator: e.value.userOptions.buttons.annotator,
700
+ isAnnotation: ke.value,
701
+ callbacks: e.value.userOptions.callbacks,
702
+ printScale: e.value.userOptions.print.scale,
703
+ tableDialog: e.value.table.useDialog,
704
+ isCursorPointer: pe.value,
705
+ onToggleFullscreen: Ye,
706
+ onGeneratePdf: s(Ue),
707
+ onGenerateCsv: Te,
708
+ onGenerateImage: Lt,
709
+ onGenerateSvg: et,
710
+ onToggleTable: Je,
711
+ onToggleAnnotator: Fe,
712
+ onCopyAlt: tt,
713
+ style: j({
714
+ visibility: s(Ge) ? s(xe) ? "visible" : "hidden" : "visible"
715
+ })
716
+ }, ut({ _: 2 }, [
717
+ o.$slots.menuIcon ? {
718
+ name: "menuIcon",
719
+ fn: C(({ isOpen: t, color: i }) => [
720
+ _(o.$slots, "menuIcon", z(L({ isOpen: t, color: i })), void 0, !0)
721
+ ]),
722
+ key: "0"
723
+ } : void 0,
724
+ o.$slots.optionPdf ? {
725
+ name: "optionPdf",
726
+ fn: C(() => [
727
+ _(o.$slots, "optionPdf", {}, void 0, !0)
728
+ ]),
729
+ key: "1"
730
+ } : void 0,
731
+ o.$slots.optionCsv ? {
732
+ name: "optionCsv",
733
+ fn: C(() => [
734
+ _(o.$slots, "optionCsv", {}, void 0, !0)
735
+ ]),
736
+ key: "2"
737
+ } : void 0,
738
+ o.$slots.optionImg ? {
739
+ name: "optionImg",
740
+ fn: C(() => [
741
+ _(o.$slots, "optionImg", {}, void 0, !0)
742
+ ]),
743
+ key: "3"
744
+ } : void 0,
745
+ o.$slots.optionSvg ? {
746
+ name: "optionSvg",
747
+ fn: C(() => [
748
+ _(o.$slots, "optionSvg", {}, void 0, !0)
749
+ ]),
750
+ key: "4"
751
+ } : void 0,
752
+ o.$slots.optionTable ? {
753
+ name: "optionTable",
754
+ fn: C(() => [
755
+ _(o.$slots, "optionTable", {}, void 0, !0)
756
+ ]),
757
+ key: "5"
758
+ } : void 0,
759
+ o.$slots.optionFullscreen ? {
760
+ name: "optionFullscreen",
761
+ fn: C(({ toggleFullscreen: t, isFullscreen: i }) => [
762
+ _(o.$slots, "optionFullscreen", z(L({ toggleFullscreen: t, isFullscreen: i })), void 0, !0)
763
+ ]),
764
+ key: "6"
765
+ } : void 0,
766
+ o.$slots.optionAnnotator ? {
767
+ name: "optionAnnotator",
768
+ fn: C(({ toggleAnnotator: t, isAnnotator: i }) => [
769
+ _(o.$slots, "optionAnnotator", z(L({ toggleAnnotator: t, isAnnotator: i })), void 0, !0)
770
+ ]),
771
+ key: "7"
772
+ } : void 0,
773
+ o.$slots.optionAltCopy ? {
774
+ name: "optionAltCopy",
775
+ fn: C(({ altCopy: t }) => [
776
+ _(o.$slots, "optionAltCopy", z(L({ altCopy: t })), void 0, !0)
777
+ ]),
778
+ key: "8"
779
+ } : void 0
780
+ ]), 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),
781
+ d("div", _l, [
782
+ (c(), v("svg", {
783
+ ref_key: "svgRef",
784
+ ref: ue,
785
+ xmlns: s(tl),
786
+ class: rt({ "vue-data-ui-fullscreen--on": ye.value, "vue-data-ui-fulscreen--off": !ye.value, animated: e.value.useCssAnimation }),
787
+ viewBox: `0 0 ${n.value.absoluteWidth} ${n.value.height}`,
788
+ style: j(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`),
789
+ tabindex: "0",
790
+ "aria-describedby": `chart-instructions-${A.value}`,
791
+ onFocus: Vt,
792
+ onBlur: Wt,
793
+ onKeydown: Rt
794
+ }, [
795
+ it(s(Ct)),
796
+ o.$slots["chart-background"] ? (c(), v("foreignObject", {
797
+ key: 0,
798
+ x: 0,
799
+ y: 0,
800
+ width: n.value.absoluteWidth,
801
+ height: n.value.height,
802
+ style: {
803
+ pointerEvents: "none"
804
+ }
805
+ }, [
806
+ _(o.$slots, "chart-background", {}, void 0, !0)
807
+ ], 8, xl)) : p("", !0),
808
+ d("defs", null, [
809
+ d("radialGradient", {
810
+ id: `gradient_top${A.value}`
811
+ }, [
812
+ d("stop", {
813
+ offset: "0%",
814
+ "stop-color": s(w)(e.value.style.chart.backgroundColor, 0)
815
+ }, null, 8, Pl),
816
+ d("stop", {
817
+ offset: "100%",
818
+ "stop-color": e.value.style.chart.bar.color
819
+ }, null, 8, Al)
820
+ ], 8, Cl),
821
+ d("radialGradient", {
822
+ id: `gradient_tube_top${A.value}`
823
+ }, [
824
+ d("stop", {
825
+ offset: "0%",
826
+ "stop-color": s(w)(s(G)(e.value.style.chart.bar.color, 0.5), 80)
827
+ }, null, 8, Tl),
828
+ d("stop", {
829
+ offset: "100%",
830
+ "stop-color": s(w)(s(J)(e.value.style.chart.bar.color, 0.1), 80)
831
+ }, null, 8, Fl)
832
+ ], 8, Ml),
833
+ d("radialGradient", {
834
+ id: `gradient_left${A.value}`
835
+ }, [
836
+ d("stop", {
837
+ offset: "0%",
838
+ "stop-color": s(w)(e.value.style.chart.backgroundColor, 0)
839
+ }, null, 8, Dl),
840
+ d("stop", {
841
+ offset: "100%",
842
+ "stop-color": s(w)(e.value.style.chart.bar.color, 20)
843
+ }, null, 8, Ol)
844
+ ], 8, Sl),
845
+ d("radialGradient", {
846
+ id: `gradient_right${A.value}`
847
+ }, [
848
+ d("stop", {
849
+ offset: "0%",
850
+ "stop-color": s(w)(e.value.style.chart.backgroundColor, 0)
851
+ }, null, 8, Il),
852
+ d("stop", {
853
+ offset: "100%",
854
+ "stop-color": s(w)(e.value.style.chart.bar.color, 20)
855
+ }, null, 8, Nl)
856
+ ], 8, Bl),
857
+ d("linearGradient", {
858
+ id: `gradient_tube_body${A.value}`,
859
+ x1: "0%",
860
+ y1: "0%",
861
+ x2: "100%",
862
+ y2: "0%"
863
+ }, [
864
+ d("stop", {
865
+ offset: "0%",
866
+ "stop-color": `${e.value.style.chart.bar.color}`
867
+ }, null, 8, zl),
868
+ d("stop", {
869
+ offset: "10%",
870
+ "stop-color": s(w)(s(J)(e.value.style.chart.bar.color, 0.7), 100)
871
+ }, null, 8, Ll),
872
+ d("stop", {
873
+ offset: "25%",
874
+ "stop-color": s(w)(s(J)(e.value.style.chart.bar.color, 0.5), 100)
875
+ }, null, 8, El),
876
+ d("stop", {
877
+ offset: "75%",
878
+ "stop-color": s(w)(e.value.style.chart.bar.color, 80)
879
+ }, null, 8, Vl),
880
+ d("stop", {
881
+ offset: "100%",
882
+ "stop-color": s(w)(s(G)(e.value.style.chart.bar.color, 0.7), 100)
883
+ }, null, 8, Wl)
884
+ ], 8, jl)
885
+ ]),
886
+ x.value ? (c(), v("defs", Rl, [
887
+ (c(!0), v(T, null, F(y.value, (t) => (c(), v("radialGradient", {
888
+ id: `grad_top_${t.id}`
889
+ }, [
890
+ d("stop", {
891
+ offset: "0%",
892
+ "stop-color": s(w)(s(G)(t.color, 0.5), 80)
893
+ }, null, 8, Ul),
894
+ d("stop", {
895
+ offset: "100%",
896
+ "stop-color": t.color
897
+ }, null, 8, Hl)
898
+ ], 8, Gl))), 256)),
899
+ (c(!0), v(T, null, F(y.value, (t) => (c(), v("linearGradient", {
900
+ id: `grad_left_${t.id}`
901
+ }, [
902
+ d("stop", {
903
+ offset: "0%",
904
+ "stop-color": s(w)(t.color, 80)
905
+ }, null, 8, Kl),
906
+ d("stop", {
907
+ offset: "100%",
908
+ "stop-color": s(w)(s(J)(t.color, 0.5), 100)
909
+ }, null, 8, ql)
910
+ ], 8, Xl))), 256)),
911
+ (c(!0), v(T, null, F(y.value, (t) => (c(), v("linearGradient", {
912
+ id: `grad_right_${t.id}`
913
+ }, [
914
+ d("stop", {
915
+ offset: "2%",
916
+ "stop-color": s(w)(s(G)(t.color, 0.5), 100)
917
+ }, null, 8, Yl),
918
+ d("stop", {
919
+ offset: "100%",
920
+ "stop-color": s(w)(t.color, 80)
921
+ }, null, 8, Jl)
922
+ ], 8, Zl))), 256)),
923
+ d("linearGradient", {
924
+ x1: "0%",
925
+ y1: "0%",
926
+ x2: "0%",
927
+ y2: "100%",
928
+ id: `vertical_line_${A.value}`
929
+ }, [...a[10] || (a[10] = [
930
+ d("stop", {
931
+ offset: "0%",
932
+ "stop-color": "#FFFFFF"
933
+ }, null, -1),
934
+ d("stop", {
935
+ offset: "100%",
936
+ "stop-color": "#FFFFFF33"
937
+ }, null, -1)
938
+ ])], 8, Ql)
939
+ ])) : p("", !0),
940
+ e.value.style.chart.dataLabel.show && ![null, void 0].includes(s(D).percentage) && [null, void 0].includes(s(D).series) ? (c(), v("text", {
941
+ key: 2,
942
+ x: n.value.width / 2,
943
+ y: n.value.top - e.value.style.chart.dataLabel.fontSize / 2,
944
+ "font-size": e.value.style.chart.dataLabel.fontSize,
945
+ "font-weight": e.value.style.chart.dataLabel.bold ? "bold" : "normal",
946
+ fill: e.value.style.chart.dataLabel.color,
947
+ "text-anchor": "middle"
948
+ }, N(s(B)({
949
+ v: ee.value,
950
+ s: "%",
951
+ r: e.value.style.chart.dataLabel.rounding
952
+ })), 9, eo)) : p("", !0),
953
+ I.value ? (c(), v("g", {
954
+ key: 3,
955
+ role: "button",
956
+ tabindex: "0",
957
+ "aria-label": "Clear selection",
958
+ onClick: a[0] || (a[0] = (t) => {
959
+ I.value = !1, b.value = null;
960
+ }),
961
+ onKeydown: [
962
+ a[1] || (a[1] = dt(ct((t) => {
963
+ I.value = !1, b.value = null;
964
+ }, ["prevent"]), ["enter"])),
965
+ a[2] || (a[2] = dt(ct((t) => {
966
+ I.value = !1, b.value = null;
967
+ }, ["prevent"]), ["space"]))
968
+ ],
969
+ onFocus: a[3] || (a[3] = (t) => H.value = !0),
970
+ onBlur: a[4] || (a[4] = (t) => H.value = !1),
971
+ onMouseenter: a[5] || (a[5] = (t) => H.value = !0),
972
+ onMouseleave: a[6] || (a[6] = (t) => H.value = !1),
973
+ class: "svg-btn",
974
+ "data-dom-to-png-ignore": "",
975
+ style: j({
976
+ cursor: pe.value ? "pointer" : "default",
977
+ outline: "none"
978
+ })
979
+ }, [
980
+ a[11] || (a[11] = d("title", null, "Clear selection", -1)),
981
+ d("rect", {
982
+ x: te.value - 12,
983
+ y: n.value.top - 24,
984
+ width: 24,
985
+ height: 24,
986
+ fill: "transparent",
987
+ "pointer-events": "all"
988
+ }, null, 8, to),
989
+ d("circle", {
990
+ cx: te.value,
991
+ cy: n.value.top - 12,
992
+ r: "10",
993
+ fill: "none",
994
+ stroke: e.value.style.chart.color,
995
+ "stroke-width": "2",
996
+ "vector-effect": "non-scaling-stroke",
997
+ opacity: H.value ? 0.5 : 0
998
+ }, null, 8, lo),
999
+ d("path", {
1000
+ d: `M${te.value - 6},${n.value.top - 18} ${te.value + 6},${n.value.top - 6}`,
1001
+ stroke: e.value.style.chart.color,
1002
+ "stroke-linecap": "round",
1003
+ "stroke-width": "2",
1004
+ "vector-effect": "non-scaling-stroke"
1005
+ }, null, 8, oo),
1006
+ d("path", {
1007
+ d: `M${te.value + 6},${n.value.top - 18} ${te.value - 6},${n.value.top - 6}`,
1008
+ stroke: e.value.style.chart.color,
1009
+ "stroke-linecap": "round",
1010
+ "stroke-width": "2",
1011
+ "vector-effect": "non-scaling-stroke"
1012
+ }, null, 8, ao)
1013
+ ], 36)) : p("", !0),
1014
+ !e.value.style.shape || e.value.style.shape === "bar" ? (c(), v("g", no, [
1015
+ x.value ? p("", !0) : (c(), v("g", so, [
1016
+ d("path", {
1017
+ "stroke-dasharray": e.value.style.chart.box.strokeDasharray,
1018
+ d: W.value.right,
1019
+ stroke: e.value.style.chart.box.stroke,
1020
+ "stroke-width": e.value.style.chart.box.strokeWidth,
1021
+ "stroke-linejoin": "round",
1022
+ "stroke-linecap": "round",
1023
+ fill: "none"
1024
+ }, null, 8, ro),
1025
+ d("path", {
1026
+ "stroke-dasharray": e.value.style.chart.box.strokeDasharray,
1027
+ d: W.value.left,
1028
+ stroke: e.value.style.chart.box.stroke,
1029
+ "stroke-width": e.value.style.chart.box.strokeWidth,
1030
+ "stroke-linejoin": "round",
1031
+ "stroke-linecap": "round",
1032
+ fill: "none"
1033
+ }, null, 8, uo),
1034
+ d("path", {
1035
+ "stroke-dasharray": e.value.style.chart.box.strokeDasharray,
1036
+ d: W.value.side,
1037
+ stroke: e.value.style.chart.box.stroke,
1038
+ "stroke-width": e.value.style.chart.box.strokeWidth,
1039
+ "stroke-linejoin": "round",
1040
+ "stroke-linecap": "round",
1041
+ fill: "none"
1042
+ }, null, 8, io),
1043
+ d("path", {
1044
+ "stroke-dasharray": e.value.style.chart.box.strokeDasharray,
1045
+ d: W.value.topSides,
1046
+ stroke: e.value.style.chart.box.stroke,
1047
+ "stroke-width": e.value.style.chart.box.strokeWidth,
1048
+ "stroke-linejoin": "round",
1049
+ "stroke-linecap": "round",
1050
+ fill: "none"
1051
+ }, null, 8, co)
1052
+ ])),
1053
+ x.value ? p("", !0) : (c(), v("g", vo, [
1054
+ d("path", {
1055
+ d: le.value.right,
1056
+ stroke: e.value.style.chart.bar.stroke,
1057
+ "stroke-width": e.value.style.chart.bar.strokeWidth,
1058
+ "stroke-linejoin": "round",
1059
+ "stroke-linecap": "round",
1060
+ fill: `url(#gradient_right${A.value})`
1061
+ }, null, 8, ho),
1062
+ d("path", {
1063
+ d: le.value.left,
1064
+ stroke: e.value.style.chart.bar.stroke,
1065
+ "stroke-width": e.value.style.chart.bar.strokeWidth,
1066
+ "stroke-linejoin": "round",
1067
+ "stroke-linecap": "round",
1068
+ fill: `url(#gradient_left${A.value})`
1069
+ }, null, 8, fo),
1070
+ d("path", {
1071
+ d: le.value.top,
1072
+ stroke: e.value.style.chart.bar.stroke,
1073
+ "stroke-width": e.value.style.chart.bar.strokeWidth,
1074
+ "stroke-linejoin": "round",
1075
+ "stroke-linecap": "round",
1076
+ fill: `url(#gradient_top${A.value})`
1077
+ }, null, 8, po)
1078
+ ])),
1079
+ x.value ? (c(), v("g", go, [
1080
+ (c(!0), v(T, null, F(y.value, (t, i) => (c(), v("g", {
1081
+ style: j(`opacity:${b.value ? b.value === t.id ? 1 : 0.3 : 1}`),
1082
+ class: "vue-ui-3d-bar-stack",
1083
+ role: "img",
1084
+ "aria-label": de(t)
1085
+ }, [
1086
+ d("path", {
1087
+ d: t.fill.right,
1088
+ fill: `url(#grad_right_${t.id})`,
1089
+ onMouseenter: (l) => S(t),
1090
+ onClick: (l) => S(t, !0),
1091
+ onMouseout: (l) => q(t)
1092
+ }, null, 40, ko),
1093
+ d("path", {
1094
+ d: t.fill.left,
1095
+ fill: `url(#grad_left_${t.id})`,
1096
+ onMouseenter: (l) => S(t),
1097
+ onClick: (l) => S(t, !0),
1098
+ onMouseout: (l) => q(t)
1099
+ }, null, 40, $o),
1100
+ d("path", {
1101
+ d: t.fill.top,
1102
+ fill: `url(#grad_top_${t.id})`,
1103
+ onMouseenter: (l) => S(t),
1104
+ onClick: (l) => S(t, !0),
1105
+ onMouseout: (l) => q(t)
1106
+ }, null, 40, mo),
1107
+ d("path", {
1108
+ d: t.fill.liningTop,
1109
+ stroke: "#FFFFFF",
1110
+ "stroke-width": "0.5",
1111
+ "stroke-linecap": "round",
1112
+ fill: "none",
1113
+ onMouseenter: (l) => S(t),
1114
+ onClick: (l) => S(t, !0),
1115
+ onMouseout: (l) => q(t)
1116
+ }, null, 40, bo),
1117
+ d("path", {
1118
+ d: `M ${t.fill.apexTop.x},${t.fill.apexTop.y} ${t.fill.apexBottom.x},${t.fill.apexBottom.y}`,
1119
+ stroke: "#FFFFFF",
1120
+ "stroke-width": "0.5",
1121
+ "stroke-linecap": "round"
1122
+ }, null, 8, _o)
1123
+ ], 12, yo))), 256)),
1124
+ (c(!0), v(T, null, F(y.value, (t, i) => (c(), v("g", null, [
1125
+ i !== y.value.length - 1 ? (c(), v("path", {
1126
+ key: 0,
1127
+ d: t.fill.liningTopShade,
1128
+ stroke: e.value.style.chart.bar.shadeColor,
1129
+ "stroke-width": "0.5",
1130
+ "stroke-linecap": "round",
1131
+ fill: "none",
1132
+ style: { "pointer-events": "none" }
1133
+ }, null, 8, wo)) : p("", !0)
1134
+ ]))), 256)),
1135
+ (c(!0), v(T, null, F(y.value, (t, i) => (c(), v("g", {
1136
+ style: j(`opacity:${b.value ? b.value === t.id ? 1 : 0 : t.proportion * 100 > e.value.style.chart.legend.hideUnderPercentage ? 1 : 0}`),
1137
+ onClick: (l) => ce("selectDatapoint", t)
1138
+ }, [
1139
+ d("path", {
1140
+ stroke: e.value.style.chart.color,
1141
+ "stroke-dasharray": "1",
1142
+ "stroke-width": "0.5",
1143
+ "stroke-linecap": "round",
1144
+ d: `M${t.fill.sidePointer.x},${t.fill.sidePointer.y} ${t.fill.sidePointer.x2},${t.fill.sidePointer.y}`
1145
+ }, null, 8, Co),
1146
+ !t.fill.miniDonut || b.value ? (c(), v("circle", {
1147
+ key: 0,
1148
+ cx: t.fill.sidePointer.x2,
1149
+ cy: t.fill.sidePointer.y,
1150
+ r: 2,
1151
+ fill: t.color,
1152
+ stroke: e.value.style.chart.backgroundColor
1153
+ }, null, 8, Po)) : p("", !0),
1154
+ s(Q) ? (c(), v("rect", {
1155
+ key: 1,
1156
+ x: t.fill.sidePointer.xText,
1157
+ y: t.fill.sidePointer.y - e.value.style.chart.legend.fontSize / 2,
1158
+ width: n.value.width / 3,
1159
+ height: e.value.style.chart.legend.fontSize,
1160
+ fill: "#6A6A6A80",
1161
+ rx: "3"
1162
+ }, null, 8, Ao)) : p("", !0),
1163
+ s(Q) ? p("", !0) : (c(), v("foreignObject", {
1164
+ key: 2,
1165
+ x: t.fill.sidePointer.xText,
1166
+ y: t.fill.sidePointer.y - e.value.style.chart.legend.fontSize,
1167
+ width: n.value.absoluteWidth / 3,
1168
+ height: e.value.style.chart.legend.fontSize * 2,
1169
+ style: { overflow: "visible", position: "relative" }
1170
+ }, [
1171
+ e.value.style.chart.legend.showDefault ? (c(), v("div", {
1172
+ key: 0,
1173
+ 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"}`)
1174
+ }, N(s(be)(
1175
+ e.value.style.chart.dataLabel.formatter,
1176
+ t.value,
1177
+ `${t.name}: ${s(B)({ v: t.proportion * 100, s: "%", r: e.value.style.chart.legend.roundingPercentage })} (${s(B)({
1178
+ p: e.value.style.chart.legend.prefix,
1179
+ v: t.value,
1180
+ s: e.value.style.chart.legend.suffix,
1181
+ r: e.value.style.chart.legend.roundingValue
1182
+ })})`,
1183
+ { datapoint: t, seriesIndex: i, type: "barDatapoint" }
1184
+ )), 5)) : p("", !0),
1185
+ _(o.$slots, "legend", Be({ ref_for: !0 }, { datapoint: t, config: e.value, dataset: y.value }), void 0, !0)
1186
+ ], 8, Mo)),
1187
+ t.fill.donut && b.value === t.id ? (c(), v("g", To, [
1188
+ (c(!0), v(T, null, F(t.fill.donut, (l, r) => (c(), v("g", null, [
1189
+ oe(l, t.fill.donut, !0) > 6 ? (c(), v("path", {
1190
+ key: 0,
1191
+ d: s(gt)(l, { x: l.cx, y: l.cy }, 0, 8, !1, !0, 10),
1192
+ stroke: l.color,
1193
+ class: "vue-ui-donut-arc-path",
1194
+ "stroke-width": "0.5",
1195
+ "stroke-linecap": "round",
1196
+ "stroke-linejoin": "round",
1197
+ fill: "none"
1198
+ }, null, 8, Fo)) : p("", !0)
1199
+ ]))), 256)),
1200
+ (c(!0), v(T, null, F(t.fill.donut, (l, r) => (c(), v("path", {
1201
+ class: "vue-ui-donut-arc-path",
1202
+ d: l.arcSlice,
1203
+ fill: `${l.color}`,
1204
+ stroke: e.value.style.chart.backgroundColor,
1205
+ "stroke-width": 1
1206
+ }, null, 8, So))), 256)),
1207
+ (c(!0), v(T, null, F(t.fill.donut, (l, r) => (c(), v("g", null, [
1208
+ oe(l, t.fill.donut, !0) > 6 ? (c(), v("g", Do, [
1209
+ d("text", {
1210
+ "text-anchor": s(U)(l, !0, 0).anchor,
1211
+ x: s(U)(l, !0, 2).x,
1212
+ y: s(_e)(l, 12, 12),
1213
+ fill: e.value.style.chart.legend.color,
1214
+ "font-size": e.value.style.chart.legend.fontSize / 1.5,
1215
+ "font-weight": e.value.style.chart.legend.bold ? "bold" : "normal"
1216
+ }, N(s(be)(
1217
+ e.value.style.chart.dataLabel.formatter,
1218
+ l.value,
1219
+ `${oe(l, t.fill.donut)} (${s(B)({
1220
+ p: e.value.style.chart.legend.prefix,
1221
+ v: l.value,
1222
+ s: e.value.style.chart.legend.suffix,
1223
+ r: e.value.style.chart.legend.roundingValue
1224
+ })})`,
1225
+ { datapoint: l, seriesIndex: r, type: "donutDatapoint" }
1226
+ )), 9, Oo),
1227
+ d("text", {
1228
+ "text-anchor": s(U)(l).anchor,
1229
+ x: s(U)(l, !0, 2).x,
1230
+ y: s(_e)(l, 12, 12) + e.value.style.chart.legend.fontSize / 1.5,
1231
+ fill: e.value.style.chart.legend.color,
1232
+ "font-size": e.value.style.chart.legend.fontSize / 1.5,
1233
+ "font-weight": e.value.style.chart.legend.bold ? "bold" : "normal"
1234
+ }, N(l.name), 9, Bo)
1235
+ ])) : p("", !0)
1236
+ ]))), 256))
1237
+ ])) : p("", !0),
1238
+ t.fill.miniDonut && !b.value ? (c(), v("g", Io, [
1239
+ (c(!0), v(T, null, F(t.fill.miniDonut, (l, r) => (c(), v("path", {
1240
+ class: "vue-ui-donut-arc-path",
1241
+ d: l.arcSlice,
1242
+ fill: `${l.color}`,
1243
+ stroke: e.value.style.chart.backgroundColor,
1244
+ "stroke-width": 0.5
1245
+ }, null, 8, No))), 256))
1246
+ ])) : p("", !0)
1247
+ ], 12, xo))), 256))
1248
+ ])) : p("", !0)
1249
+ ])) : p("", !0),
1250
+ e.value.style.shape === "tube" ? (c(), v("g", jo, [
1251
+ x.value ? p("", !0) : (c(), v("g", zo, [
1252
+ d("path", {
1253
+ "stroke-dasharray": e.value.style.chart.box.strokeDasharray,
1254
+ d: W.value.tubeTop,
1255
+ stroke: e.value.style.chart.box.stroke,
1256
+ "stroke-width": e.value.style.chart.box.strokeWidth,
1257
+ "stroke-linejoin": "round",
1258
+ "stroke-linecap": "round",
1259
+ fill: "none"
1260
+ }, null, 8, Lo),
1261
+ d("path", {
1262
+ "stroke-dasharray": e.value.style.chart.box.strokeDasharray,
1263
+ d: W.value.tubeLeft,
1264
+ stroke: e.value.style.chart.box.stroke,
1265
+ "stroke-width": e.value.style.chart.box.strokeWidth,
1266
+ "stroke-linejoin": "round",
1267
+ "stroke-linecap": "round",
1268
+ fill: "none"
1269
+ }, null, 8, Eo),
1270
+ d("path", {
1271
+ "stroke-dasharray": e.value.style.chart.box.strokeDasharray,
1272
+ d: W.value.tubeRight,
1273
+ stroke: e.value.style.chart.box.stroke,
1274
+ "stroke-width": e.value.style.chart.box.strokeWidth,
1275
+ "stroke-linejoin": "round",
1276
+ "stroke-linecap": "round",
1277
+ fill: "none"
1278
+ }, null, 8, Vo),
1279
+ d("path", {
1280
+ "stroke-dasharray": e.value.style.chart.box.strokeDasharray,
1281
+ d: W.value.tubeBottom,
1282
+ stroke: e.value.style.chart.box.stroke,
1283
+ "stroke-width": e.value.style.chart.box.strokeWidth,
1284
+ "stroke-linejoin": "round",
1285
+ "stroke-linecap": "round",
1286
+ fill: "none"
1287
+ }, null, 8, Wo),
1288
+ d("path", {
1289
+ d: le.value.tubeTop,
1290
+ stroke: e.value.style.chart.bar.stroke,
1291
+ "stroke-width": e.value.style.chart.bar.strokeWidth,
1292
+ "stroke-linejoin": "round",
1293
+ "stroke-linecap": "round",
1294
+ fill: `url(#gradient_tube_top${A.value})`
1295
+ }, null, 8, Ro),
1296
+ d("path", {
1297
+ d: le.value.tubeBody,
1298
+ stroke: e.value.style.chart.bar.stroke,
1299
+ "stroke-width": e.value.style.chart.bar.strokeWidth,
1300
+ "stroke-linejoin": "round",
1301
+ "stroke-linecap": "round",
1302
+ fill: `url(#gradient_tube_body${A.value})`
1303
+ }, null, 8, Go),
1304
+ d("path", {
1305
+ d: le.value.tubeTop,
1306
+ stroke: "#FFFFFF",
1307
+ "stroke-width": 0.5,
1308
+ "stroke-linejoin": "round",
1309
+ "stroke-linecap": "round",
1310
+ fill: "none"
1311
+ }, null, 8, Uo)
1312
+ ])),
1313
+ x.value ? (c(), v("g", Ho, [
1314
+ (c(!0), v(T, null, F(y.value, (t, i) => (c(), v("g", {
1315
+ style: j(`opacity:${b.value ? b.value === t.id ? 1 : 0.3 : 1}`),
1316
+ class: "vue-ui-3d-bar-stack",
1317
+ role: "img",
1318
+ "aria-label": de(t)
1319
+ }, [
1320
+ d("defs", null, [
1321
+ d("radialGradient", {
1322
+ id: `gradient_tube_top_${t.id}`,
1323
+ fx: "10%",
1324
+ cy: "55%"
1325
+ }, [
1326
+ d("stop", {
1327
+ offset: "0%",
1328
+ "stop-color": s(w)(s(G)(t.color, 0.5), 80)
1329
+ }, null, 8, qo),
1330
+ d("stop", {
1331
+ offset: "100%",
1332
+ "stop-color": s(w)(s(J)(t.color, 0.1), 80)
1333
+ }, null, 8, Zo)
1334
+ ], 8, Ko),
1335
+ d("linearGradient", {
1336
+ id: `gradient_tube_body_${t.id}`,
1337
+ x1: "0%",
1338
+ y1: "0%",
1339
+ x2: "100%",
1340
+ y2: "0%"
1341
+ }, [
1342
+ d("stop", {
1343
+ offset: "0%",
1344
+ "stop-color": `${t.color}`
1345
+ }, null, 8, Jo),
1346
+ d("stop", {
1347
+ offset: "10%",
1348
+ "stop-color": s(w)(s(J)(t.color, 0.7), 100)
1349
+ }, null, 8, Qo),
1350
+ d("stop", {
1351
+ offset: "25%",
1352
+ "stop-color": s(w)(s(J)(t.color, 0.5), 100)
1353
+ }, null, 8, ea),
1354
+ d("stop", {
1355
+ offset: "75%",
1356
+ "stop-color": s(w)(t.color, 80)
1357
+ }, null, 8, ta),
1358
+ d("stop", {
1359
+ offset: "100%",
1360
+ "stop-color": s(w)(s(G)(t.color, 0.7), 100)
1361
+ }, null, 8, la)
1362
+ ], 8, Yo)
1363
+ ]),
1364
+ d("path", {
1365
+ onMouseenter: (l) => S(t),
1366
+ onClick: (l) => S(t, !0),
1367
+ onMouseout: (l) => q(t),
1368
+ d: t.fill.tubeBody,
1369
+ stroke: "#FFFFFF",
1370
+ "stroke-width": 0.5,
1371
+ "stroke-linejoin": "round",
1372
+ "stroke-linecap": "round",
1373
+ fill: `url(#gradient_tube_body_${t.id})`
1374
+ }, null, 40, oa),
1375
+ i > 0 ? (c(), v("path", {
1376
+ key: 0,
1377
+ onMouseenter: (l) => S(t),
1378
+ onClick: (l) => S(t, !0),
1379
+ onMouseout: (l) => q(t),
1380
+ d: t.fill.bottomTubeTop,
1381
+ stroke: "#000000",
1382
+ "stroke-width": 0.5,
1383
+ "stroke-linejoin": "round",
1384
+ "stroke-linecap": "round",
1385
+ fill: "none"
1386
+ }, null, 40, aa)) : p("", !0),
1387
+ d("path", {
1388
+ onMouseenter: (l) => S(t),
1389
+ onClick: (l) => S(t, !0),
1390
+ onMouseout: (l) => q(t),
1391
+ d: t.fill.tubeTop,
1392
+ stroke: "#FFFFFF",
1393
+ "stroke-width": 0.5,
1394
+ "stroke-linejoin": "round",
1395
+ "stroke-linecap": "round",
1396
+ fill: `url(#gradient_tube_top_${t.id})`
1397
+ }, null, 40, na)
1398
+ ], 12, Xo))), 256)),
1399
+ (c(!0), v(T, null, F(y.value, (t, i) => (c(), v("g", {
1400
+ style: j(`opacity:${b.value ? b.value === t.id ? 1 : 0 : t.proportion * 100 > e.value.style.chart.legend.hideUnderPercentage ? 1 : 0}`),
1401
+ onClick: (l) => ce("selectDatapoint", t)
1402
+ }, [
1403
+ d("path", {
1404
+ stroke: e.value.style.chart.color,
1405
+ "stroke-dasharray": "1",
1406
+ "stroke-width": "0.5",
1407
+ "stroke-linecap": "round",
1408
+ d: `M${t.fill.sidePointer.x},${t.fill.sidePointer.y} ${t.fill.sidePointer.x2},${t.fill.sidePointer.y}`
1409
+ }, null, 8, ra),
1410
+ !t.fill.miniDonut || b.value ? (c(), v("circle", {
1411
+ key: 0,
1412
+ cx: t.fill.sidePointer.x2,
1413
+ cy: t.fill.sidePointer.y,
1414
+ r: 2,
1415
+ fill: t.color,
1416
+ stroke: e.value.style.chart.backgroundColor
1417
+ }, null, 8, ua)) : p("", !0),
1418
+ s(Q) ? (c(), v("rect", {
1419
+ key: 1,
1420
+ x: t.fill.sidePointer.xText,
1421
+ y: t.fill.sidePointer.y - e.value.style.chart.legend.fontSize / 2,
1422
+ width: n.value.width / 3,
1423
+ height: e.value.style.chart.legend.fontSize,
1424
+ fill: "#6A6A6A80",
1425
+ rx: "3"
1426
+ }, null, 8, ia)) : p("", !0),
1427
+ s(Q) ? p("", !0) : (c(), v("foreignObject", {
1428
+ key: 2,
1429
+ x: t.fill.sidePointer.xText,
1430
+ y: t.fill.sidePointer.y - e.value.style.chart.legend.fontSize,
1431
+ width: n.value.absoluteWidth / 3,
1432
+ height: e.value.style.chart.legend.fontSize * 2,
1433
+ style: { overflow: "visible", position: "relative" }
1434
+ }, [
1435
+ e.value.style.chart.legend.showDefault ? (c(), v("div", {
1436
+ key: 0,
1437
+ 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"}`)
1438
+ }, N(s(be)(
1439
+ e.value.style.chart.dataLabel.formatter,
1440
+ t.value,
1441
+ `${t.name}: ${s(B)({ v: t.proportion * 100, s: "%", r: e.value.style.chart.legend.roundingPercentage })} (${s(B)({
1442
+ p: e.value.style.chart.legend.prefix,
1443
+ v: t.value,
1444
+ s: e.value.style.chart.legend.suffix,
1445
+ r: e.value.style.chart.legend.roundingValue
1446
+ })})`,
1447
+ { datapoint: t, seriesIndex: i, type: "barDatapoint" }
1448
+ )), 5)) : p("", !0),
1449
+ _(o.$slots, "legend", Be({ ref_for: !0 }, { datapoint: t, config: e.value, dataset: y.value }), void 0, !0)
1450
+ ], 8, da)),
1451
+ t.fill.donut && b.value === t.id ? (c(), v("g", ca, [
1452
+ (c(!0), v(T, null, F(t.fill.donut, (l, r) => (c(), v("g", null, [
1453
+ oe(l, t.fill.donut, !0) > 6 ? (c(), v("path", {
1454
+ key: 0,
1455
+ d: s(gt)(l, { x: l.cx, y: l.cy }, 0, 8, !1, !0, 10),
1456
+ stroke: l.color,
1457
+ class: "vue-ui-donut-arc-path",
1458
+ "stroke-width": "0.5",
1459
+ "stroke-linecap": "round",
1460
+ "stroke-linejoin": "round",
1461
+ fill: "none"
1462
+ }, null, 8, va)) : p("", !0)
1463
+ ]))), 256)),
1464
+ (c(!0), v(T, null, F(t.fill.donut, (l, r) => (c(), v("path", {
1465
+ class: "vue-ui-donut-arc-path",
1466
+ d: l.arcSlice,
1467
+ fill: `${l.color}`,
1468
+ stroke: e.value.style.chart.backgroundColor,
1469
+ "stroke-width": 1
1470
+ }, null, 8, ha))), 256)),
1471
+ (c(!0), v(T, null, F(t.fill.donut, (l, r) => (c(), v("g", null, [
1472
+ oe(l, t.fill.donut, !0) > 6 ? (c(), v("g", fa, [
1473
+ d("text", {
1474
+ "text-anchor": s(U)(l, !0, 0).anchor,
1475
+ x: s(U)(l, !0, 2).x,
1476
+ y: s(_e)(l, 12, 12),
1477
+ fill: e.value.style.chart.legend.color,
1478
+ "font-size": e.value.style.chart.legend.fontSize / 1.5,
1479
+ "font-weight": e.value.style.chart.legend.bold ? "bold" : "normal"
1480
+ }, N(s(be)(
1481
+ e.value.style.chart.dataLabel.formatter,
1482
+ l.value,
1483
+ `${oe(l, t.fill.donut)} (${s(B)({
1484
+ p: e.value.style.chart.legend.prefix,
1485
+ v: l.value,
1486
+ s: e.value.style.chart.legend.suffix,
1487
+ r: e.value.style.chart.legend.roundingValue
1488
+ })})`,
1489
+ { datapoint: l, seriesIndex: r, type: "donutDatapoint" }
1490
+ )), 9, pa),
1491
+ d("text", {
1492
+ "text-anchor": s(U)(l).anchor,
1493
+ x: s(U)(l, !0, 2).x,
1494
+ y: s(_e)(l, 12, 12) + e.value.style.chart.legend.fontSize / 1.5,
1495
+ fill: e.value.style.chart.legend.color,
1496
+ "font-size": e.value.style.chart.legend.fontSize / 1.5,
1497
+ "font-weight": e.value.style.chart.legend.bold ? "bold" : "normal"
1498
+ }, N(l.name), 9, ga)
1499
+ ])) : p("", !0)
1500
+ ]))), 256))
1501
+ ])) : p("", !0),
1502
+ t.fill.miniDonut && !b.value ? (c(), v("g", ya, [
1503
+ (c(!0), v(T, null, F(t.fill.miniDonut, (l, r) => (c(), v("path", {
1504
+ class: "vue-ui-donut-arc-path",
1505
+ d: l.arcSlice,
1506
+ fill: `${l.color}`,
1507
+ stroke: e.value.style.chart.backgroundColor,
1508
+ "stroke-width": 0.5
1509
+ }, null, 8, ka))), 256))
1510
+ ])) : p("", !0)
1511
+ ], 12, sa))), 256))
1512
+ ])) : p("", !0)
1513
+ ])) : p("", !0),
1514
+ _(o.$slots, "svg", {
1515
+ svg: {
1516
+ ...n.value,
1517
+ isPrintingImg: s(Pe) | s(Ae) | fe.value,
1518
+ isPrintingSvg: he.value
1519
+ }
1520
+ }, void 0, !0)
1521
+ ], 46, wl))
1522
+ ]),
1523
+ o.$slots.watermark ? (c(), v("div", $a, [
1524
+ _(o.$slots, "watermark", z(L({ isPrinting: s(Pe) || s(Ae) || he.value || fe.value })), void 0, !0)
1525
+ ])) : p("", !0),
1526
+ o.$slots.source ? (c(), v("div", {
1527
+ key: 5,
1528
+ ref_key: "source",
1529
+ ref: We,
1530
+ dir: "auto"
1531
+ }, [
1532
+ _(o.$slots, "source", {}, void 0, !0)
1533
+ ], 512)) : p("", !0),
1534
+ ze.value && x.value && e.value.userOptions.buttons.table ? (c(), Y(qt(ie.value.component), Be({ key: 6 }, ie.value.props, {
1535
+ ref_key: "tableUnit",
1536
+ ref: re,
1537
+ onClose: Qe
1538
+ }), ut({
1539
+ content: C(() => [
1540
+ (c(), Y(s(_t), {
1541
+ key: `table_${Ee.value}`,
1542
+ colNames: ne.value.colNames,
1543
+ head: ne.value.head,
1544
+ body: ne.value.body,
1545
+ config: ne.value.config,
1546
+ title: e.value.table.useDialog ? "" : ie.value.title,
1547
+ withCloseButton: !e.value.table.useDialog,
1548
+ isCursorPointer: pe.value,
1549
+ onClose: Qe
1550
+ }, {
1551
+ th: C(({ th: t }) => [
1552
+ d("div", {
1553
+ innerHTML: t,
1554
+ style: { display: "flex", "align-items": "center" }
1555
+ }, null, 8, ma)
1556
+ ]),
1557
+ td: C(({ td: t }) => [
1558
+ vt(N(t.name || t), 1)
1559
+ ]),
1560
+ _: 1
1561
+ }, 8, ["colNames", "head", "body", "config", "title", "withCloseButton", "isCursorPointer"]))
1562
+ ]),
1563
+ _: 2
1564
+ }, [
1565
+ e.value.table.useDialog ? {
1566
+ name: "title",
1567
+ fn: C(() => [
1568
+ vt(N(ie.value.title), 1)
1569
+ ]),
1570
+ key: "0"
1571
+ } : void 0,
1572
+ e.value.table.useDialog ? {
1573
+ name: "actions",
1574
+ fn: C(() => [
1575
+ d("button", {
1576
+ tabindex: "0",
1577
+ class: "vue-ui-user-options-button",
1578
+ onClick: a[7] || (a[7] = (t) => Te(e.value.userOptions.callbacks.csv))
1579
+ }, [
1580
+ it(s(mt), {
1581
+ name: "fileCsv",
1582
+ stroke: ie.value.props.color
1583
+ }, null, 8, ["stroke"])
1584
+ ])
1585
+ ]),
1586
+ key: "1"
1587
+ } : void 0
1588
+ ]), 1040)) : p("", !0),
1589
+ _(o.$slots, "skeleton", {}, () => [
1590
+ s(Q) ? (c(), Y(ul, { key: 0 })) : p("", !0)
1591
+ ], !0)
1592
+ ], 44, $l));
1593
+ }
1594
+ }, La = /* @__PURE__ */ kl(ba, [["__scopeId", "data-v-3ffa78a4"]]);
1595
+ export {
1596
+ La as default
1597
+ };