vue-data-ui 3.20.10 → 3.21.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 (190) hide show
  1. package/dist/{Arrow-D6j6ocXm.js → Arrow-_pDGXl76.js} +1 -1
  2. package/dist/{BaseDraggableDialog-4hDW-Rj2.js → BaseDraggableDialog-BvaFJWHb.js} +2 -2
  3. package/dist/{BaseIcon-DfLoHNUj.js → BaseIcon-CbDazQLH.js} +1 -1
  4. package/dist/{BaseLegendToggle-C_Db-y7s.js → BaseLegendToggle-BNRi408o.js} +1 -1
  5. package/dist/{BaseZoomControls-CG7hI_1P.js → BaseZoomControls-Dbtq9oyx.js} +2 -2
  6. package/dist/{ColorPicker-Bjwxnvfh.js → ColorPicker-B4ob7JgP.js} +2 -2
  7. package/dist/{DataTable-B--IN22e.js → DataTable-DweDyHc1.js} +2 -2
  8. package/dist/{Legend-Cz2uQ5gs.js → Legend-BLhREbj7.js} +2 -2
  9. package/dist/{NonSvgPenAndPaper-gLNJ1Lmr.js → NonSvgPenAndPaper-BzZyMJBF.js} +3 -3
  10. package/dist/{PackageVersion-BbgWxFC4.js → PackageVersion-DYLo3MRd.js} +1 -1
  11. package/dist/{PenAndPaper-DqrClVfb.js → PenAndPaper-D4aFMYZf.js} +3 -3
  12. package/dist/{Shape-BPCJfphn.js → Shape-BxFtoF1z.js} +1 -1
  13. package/dist/{Slicer-SHBj0VaV.js → Slicer-GABgkLkB.js} +2 -2
  14. package/dist/SlicerPreview-CXLgqXX8.js +1676 -0
  15. package/dist/{SparkTooltip-CfE6yCad.js → SparkTooltip-CdSRUoZN.js} +6 -6
  16. package/dist/{Title-NWp4qB4K.js → Title-DH6G8_cZ.js} +1 -1
  17. package/dist/{Tooltip-BENq327o.js → Tooltip-979Ytd8R.js} +1 -1
  18. package/dist/{UserOptions-C1NgoGu6.js → UserOptions-qFz-9Pnw.js} +2 -2
  19. package/dist/components/arrow.js +1 -1
  20. package/dist/components/vue-ui-3d-bar.js +1 -1
  21. package/dist/components/vue-ui-accordion.js +1 -1
  22. package/dist/components/vue-ui-age-pyramid.js +1 -1
  23. package/dist/components/vue-ui-annotator.js +1 -1
  24. package/dist/components/vue-ui-bullet.js +1 -1
  25. package/dist/components/vue-ui-bump.js +1 -1
  26. package/dist/components/vue-ui-candlestick.js +1 -1
  27. package/dist/components/vue-ui-carousel-table.js +1 -1
  28. package/dist/components/vue-ui-chestnut.js +1 -1
  29. package/dist/components/vue-ui-chord.js +1 -1
  30. package/dist/components/vue-ui-circle-pack.js +1 -1
  31. package/dist/components/vue-ui-cursor.js +1 -1
  32. package/dist/components/vue-ui-dag.js +1 -1
  33. package/dist/components/vue-ui-dashboard.js +1 -1
  34. package/dist/components/vue-ui-digits.js +1 -1
  35. package/dist/components/vue-ui-donut-evolution.js +1 -1
  36. package/dist/components/vue-ui-donut.js +1 -1
  37. package/dist/components/vue-ui-dumbbell.js +1 -1
  38. package/dist/components/vue-ui-flow.js +1 -1
  39. package/dist/components/vue-ui-funnel.js +1 -1
  40. package/dist/components/vue-ui-galaxy.js +1 -1
  41. package/dist/components/vue-ui-gauge.js +1 -1
  42. package/dist/components/vue-ui-geo.js +1 -1
  43. package/dist/components/vue-ui-gizmo.js +1 -1
  44. package/dist/components/vue-ui-heatmap.js +1 -1
  45. package/dist/components/vue-ui-history-plot.js +1 -1
  46. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  47. package/dist/components/vue-ui-icon.js +1 -1
  48. package/dist/components/vue-ui-kpi.js +1 -1
  49. package/dist/components/vue-ui-mini-loader.js +1 -1
  50. package/dist/components/vue-ui-molecule.js +1 -1
  51. package/dist/components/vue-ui-mood-radar.js +1 -1
  52. package/dist/components/vue-ui-nested-donuts.js +1 -1
  53. package/dist/components/vue-ui-onion.js +1 -1
  54. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  55. package/dist/components/vue-ui-quadrant.js +1 -1
  56. package/dist/components/vue-ui-quick-chart.js +1 -1
  57. package/dist/components/vue-ui-radar.js +1 -1
  58. package/dist/components/vue-ui-rating.js +1 -1
  59. package/dist/components/vue-ui-relation-circle.js +1 -1
  60. package/dist/components/vue-ui-ridgeline.js +1 -1
  61. package/dist/components/vue-ui-rings.js +1 -1
  62. package/dist/components/vue-ui-scatter.js +1 -1
  63. package/dist/components/vue-ui-skeleton.js +1 -1
  64. package/dist/components/vue-ui-smiley.js +1 -1
  65. package/dist/components/vue-ui-spark-trend.js +1 -1
  66. package/dist/components/vue-ui-sparkbar.js +1 -1
  67. package/dist/components/vue-ui-sparkgauge.js +1 -1
  68. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  69. package/dist/components/vue-ui-sparkline.js +1 -1
  70. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  71. package/dist/components/vue-ui-stackbar.js +1 -1
  72. package/dist/components/vue-ui-stackline.js +1 -1
  73. package/dist/components/vue-ui-strip-plot.js +1 -1
  74. package/dist/components/vue-ui-table-heatmap.js +1 -1
  75. package/dist/components/vue-ui-table-sparkline.js +1 -1
  76. package/dist/components/vue-ui-table.js +1 -1
  77. package/dist/components/vue-ui-thermometer.js +1 -1
  78. package/dist/components/vue-ui-timer.js +1 -1
  79. package/dist/components/vue-ui-tiremarks.js +1 -1
  80. package/dist/components/vue-ui-treemap.js +1 -1
  81. package/dist/components/vue-ui-vertical-bar.js +1 -1
  82. package/dist/components/vue-ui-waffle.js +1 -1
  83. package/dist/components/vue-ui-wheel.js +1 -1
  84. package/dist/components/vue-ui-word-cloud.js +1 -1
  85. package/dist/components/vue-ui-world.js +1 -1
  86. package/dist/components/vue-ui-xy-canvas.js +1 -1
  87. package/dist/components/vue-ui-xy.js +1 -1
  88. package/dist/{dom-to-png-BYtB4BF3.js → dom-to-png-CtV3uxDJ.js} +1 -1
  89. package/dist/exposedLib-BJbE_A8E.js +19 -0
  90. package/dist/{img-1cKsci8e.js → img-C_RNNswI.js} +1 -1
  91. package/dist/{labelUtils-CUctkYoA.js → labelUtils-Bycs-017.js} +1 -1
  92. package/dist/{lib-DUeYQsS0.js → lib-AJRHFE5U.js} +12 -6
  93. package/dist/{pdf-D0eZ99cP.js → pdf-CdX23zf1.js} +1 -1
  94. package/dist/ssr.js +1366 -0
  95. package/dist/style.css +1 -1
  96. package/dist/types/ssr.d.ts +128 -0
  97. package/dist/types/vue-data-ui.d.ts +135 -1
  98. package/dist/{useAutoSizeLabelsInsideViewbox-BIVntRZp.js → useAutoSizeLabelsInsideViewbox-kjVKQz36.js} +1 -1
  99. package/dist/{useNestedProp-CNcoy38D.js → useNestedProp-DtcXIg7n.js} +1 -1
  100. package/dist/{usePrinter-C1Gqt_Sp.js → usePrinter-6n2MzVyV.js} +2 -2
  101. package/dist/utils.js +8 -8
  102. package/dist/{vue-data-ui-CBjd88aV.js → vue-data-ui-D2dM3IQZ.js} +68 -68
  103. package/dist/vue-data-ui.js +72 -72
  104. package/dist/vue-ui-3d-bar-0C_yshya.js +1757 -0
  105. package/dist/{vue-ui-accordion-Bpbv-VHE.js → vue-ui-accordion-DLnwuQda.js} +3 -3
  106. package/dist/vue-ui-age-pyramid-DFNELwbT.js +1238 -0
  107. package/dist/{vue-ui-annotator-Q57JevNc.js → vue-ui-annotator-BljP5cB7.js} +8 -8
  108. package/dist/vue-ui-bullet-ChQq42AN.js +710 -0
  109. package/dist/{vue-ui-bump-S-FGGlPW.js → vue-ui-bump-BVCYywuS.js} +253 -253
  110. package/dist/{vue-ui-candlestick-BaaswVai.js → vue-ui-candlestick-CQ0nfkmL.js} +276 -276
  111. package/dist/vue-ui-carousel-table-Cvi1gsKR.js +455 -0
  112. package/dist/vue-ui-chestnut-DeWbKqze.js +2010 -0
  113. package/dist/vue-ui-chord-bRXYWpGT.js +1391 -0
  114. package/dist/{vue-ui-circle-pack--4oUO8hO.js → vue-ui-circle-pack-DWO8x9gf.js} +36 -36
  115. package/dist/{vue-ui-cursor-C7zZVebz.js → vue-ui-cursor-BKGUvOWO.js} +3 -3
  116. package/dist/{vue-ui-dag-DsCnV6f0.js → vue-ui-dag-lL0juBzN.js} +20 -20
  117. package/dist/{vue-ui-dashboard-CmTnG8CS.js → vue-ui-dashboard-CEk2z8v9.js} +69 -69
  118. package/dist/{vue-ui-digits-BQ0e9Czq.js → vue-ui-digits-BAjr0eIJ.js} +3 -3
  119. package/dist/vue-ui-donut-BsSpIinL.js +2410 -0
  120. package/dist/vue-ui-donut-evolution-1UhFKEgG.js +1510 -0
  121. package/dist/vue-ui-dumbbell-ChqJicg9.js +1530 -0
  122. package/dist/{vue-ui-flow-jBINqYMb.js → vue-ui-flow-BXfzMTXx.js} +57 -57
  123. package/dist/{vue-ui-funnel-B9DsneCv.js → vue-ui-funnel-BpnC82m0.js} +32 -32
  124. package/dist/{vue-ui-galaxy-SAZjgllD.js → vue-ui-galaxy-FNzwDOH1.js} +330 -330
  125. package/dist/vue-ui-gauge-D6I78FZr.js +920 -0
  126. package/dist/{vue-ui-geo-B41ZRCPC.js → vue-ui-geo-Z1xuH8r6.js} +18 -18
  127. package/dist/{vue-ui-gizmo-PL2TAIV_.js → vue-ui-gizmo-ZlmJIh0_.js} +62 -62
  128. package/dist/{vue-ui-heatmap-NkJ_KGMs.js → vue-ui-heatmap-BWN0UBKE.js} +264 -264
  129. package/dist/{vue-ui-history-plot-B9KX1kKs.js → vue-ui-history-plot-2E6KrNhv.js} +74 -74
  130. package/dist/vue-ui-horizontal-bar-BzP7k_3J.js +1681 -0
  131. package/dist/{vue-ui-kpi-Bo4x1-vC.js → vue-ui-kpi-B9bdicir.js} +3 -3
  132. package/dist/{vue-ui-mini-loader-Bi0nsbao.js → vue-ui-mini-loader-BnLOdRA0.js} +2 -2
  133. package/dist/vue-ui-molecule-B-69fE_1.js +925 -0
  134. package/dist/{vue-ui-mood-radar-DE71e1H_.js → vue-ui-mood-radar-D3kF7iHz.js} +21 -21
  135. package/dist/{vue-ui-nested-donuts-DQhSwNYF.js → vue-ui-nested-donuts-CTmomXj1.js} +256 -256
  136. package/dist/{vue-ui-onion-X9anqRDz.js → vue-ui-onion-3fJB4mfC.js} +45 -45
  137. package/dist/{vue-ui-parallel-coordinate-plot-aN0OHwgH.js → vue-ui-parallel-coordinate-plot-CKKkbBlu.js} +39 -39
  138. package/dist/{vue-ui-quadrant-CpKMBoX9.js → vue-ui-quadrant-DGLnjwva.js} +355 -355
  139. package/dist/{vue-ui-quick-chart-BwD7IGYx.js → vue-ui-quick-chart-DJnhlEXi.js} +359 -359
  140. package/dist/vue-ui-radar-AIBX0QYs.js +1229 -0
  141. package/dist/{vue-ui-rating-D8QQctnQ.js → vue-ui-rating-pDVqT08V.js} +33 -33
  142. package/dist/vue-ui-relation-circle-BQVR8L9Y.js +924 -0
  143. package/dist/{vue-ui-ridgeline-68X0PTKo.js → vue-ui-ridgeline-CYq3APPQ.js} +54 -54
  144. package/dist/{vue-ui-rings-cDPIzhPb.js → vue-ui-rings-BgFO7NYF.js} +81 -81
  145. package/dist/vue-ui-scatter-BPu5DwaJ.js +2413 -0
  146. package/dist/{vue-ui-skeleton-BD0JzrcV.js → vue-ui-skeleton-qpdvvWtx.js} +41 -41
  147. package/dist/{vue-ui-smiley-CqwB6Uhu.js → vue-ui-smiley-DUI5n89s.js} +16 -16
  148. package/dist/{vue-ui-spark-trend-DLXJpfGh.js → vue-ui-spark-trend-CQ9ZN5sL.js} +27 -27
  149. package/dist/{vue-ui-sparkbar-5pFFPu5l.js → vue-ui-sparkbar-d6ctWlLA.js} +83 -83
  150. package/dist/{vue-ui-sparkgauge--CihPbUW.js → vue-ui-sparkgauge-HX_rqLxX.js} +44 -44
  151. package/dist/{vue-ui-sparkhistogram-CjrIcako.js → vue-ui-sparkhistogram-B_zxKMHv.js} +110 -110
  152. package/dist/vue-ui-sparkline-BSdOdtKu.js +1507 -0
  153. package/dist/{vue-ui-sparkstackbar-Dlg1W_fF.js → vue-ui-sparkstackbar-B2sqpW-w.js} +155 -155
  154. package/dist/{vue-ui-stackbar-DltfPoDm.js → vue-ui-stackbar-DH75CCpy.js} +81 -81
  155. package/dist/vue-ui-stackline-CXodezD1.js +2398 -0
  156. package/dist/{vue-ui-strip-plot-CEE-cw3d.js → vue-ui-strip-plot-C1un5Mku.js} +90 -90
  157. package/dist/{vue-ui-table-C7AvFChf.js → vue-ui-table-R-aXpHvF.js} +86 -86
  158. package/dist/{vue-ui-table-heatmap-xwfStZrD.js → vue-ui-table-heatmap-C1e_7MJ2.js} +16 -16
  159. package/dist/{vue-ui-table-sparkline-DgTHhaZI.js → vue-ui-table-sparkline-Dy-6i82F.js} +22 -22
  160. package/dist/{vue-ui-thermometer-Cg7jcmgc.js → vue-ui-thermometer-CIse_lcE.js} +21 -21
  161. package/dist/{vue-ui-timer-U045embk.js → vue-ui-timer-AlYvthQ6.js} +23 -23
  162. package/dist/{vue-ui-tiremarks-T55IpHYP.js → vue-ui-tiremarks-CP_bw6by.js} +19 -19
  163. package/dist/{vue-ui-treemap-BPQ-Ekq4.js → vue-ui-treemap-BXrV5VAp.js} +65 -65
  164. package/dist/{vue-ui-waffle-DNCJGwEA.js → vue-ui-waffle-uoqEnQ30.js} +232 -232
  165. package/dist/{vue-ui-wheel-5GuVbUOq.js → vue-ui-wheel-DLgw_xfe.js} +36 -36
  166. package/dist/{vue-ui-word-cloud-Cs-MBJJU.js → vue-ui-word-cloud-Bgu-qbcp.js} +35 -35
  167. package/dist/{vue-ui-world-D3v5f6dU.js → vue-ui-world-B93iq1ZM.js} +445 -445
  168. package/dist/vue-ui-xy-DzuOBbPL.js +4744 -0
  169. package/dist/{vue-ui-xy-canvas-Ww81eEZ6.js → vue-ui-xy-canvas-DjxM7y3T.js} +60 -60
  170. package/package.json +6 -2
  171. package/dist/SlicerPreview-CpvCUAIM.js +0 -1669
  172. package/dist/exposedLib-CI8ji8G-.js +0 -19
  173. package/dist/vue-ui-3d-bar-DmMi_eVe.js +0 -1757
  174. package/dist/vue-ui-age-pyramid-CbJDodNj.js +0 -1238
  175. package/dist/vue-ui-bullet-rCmOch09.js +0 -710
  176. package/dist/vue-ui-carousel-table-DFUP6c1B.js +0 -455
  177. package/dist/vue-ui-chestnut-DKNsQA7h.js +0 -2010
  178. package/dist/vue-ui-chord-BMkz02R6.js +0 -1391
  179. package/dist/vue-ui-donut-BLlR2VgI.js +0 -2410
  180. package/dist/vue-ui-donut-evolution-kXDchwtH.js +0 -1510
  181. package/dist/vue-ui-dumbbell-BWuXbccQ.js +0 -1530
  182. package/dist/vue-ui-gauge-NSzY9L6X.js +0 -920
  183. package/dist/vue-ui-horizontal-bar-mmoqYnkA.js +0 -1681
  184. package/dist/vue-ui-molecule-QoXYCfyP.js +0 -925
  185. package/dist/vue-ui-radar-TfxsgQrA.js +0 -1229
  186. package/dist/vue-ui-relation-circle-CMqV9U6C.js +0 -924
  187. package/dist/vue-ui-scatter-8nirnHQi.js +0 -2413
  188. package/dist/vue-ui-sparkline-DPZm7RqN.js +0 -1507
  189. package/dist/vue-ui-stackline-6agFEYxZ.js +0 -2398
  190. package/dist/vue-ui-xy-C0kcCaFA.js +0 -4747
@@ -0,0 +1,1757 @@
1
+ import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
+ import { Bt as t, Ct as n, G as r, H as i, Ht as a, J as o, Ot as s, Pt as c, S as l, St as u, Tt as d, W as f, X as p, ct as m, d as h, i as g, p as ee, t as te, u as _, v as ne, x as re, y as ie } from "./lib-AJRHFE5U.js";
3
+ import { t as ae } from "./useConfig-DnH7Pf_2.js";
4
+ import { t as oe } from "./usePrinter-6n2MzVyV.js";
5
+ import { n as se, t as ce } from "./BaseScanner-Dr2a1Msy.js";
6
+ import { t as le } from "./useSvgExport-SVIsDot8.js";
7
+ import { t as ue } from "./useNestedProp-DtcXIg7n.js";
8
+ import { t as de } from "./useThemeCheck-C43Tcqmk.js";
9
+ import { t as fe } from "./img-C_RNNswI.js";
10
+ import { n as pe } from "./Title-DH6G8_cZ.js";
11
+ import { t as me } from "./_plugin-vue_export-helper-B3ysoDQm.js";
12
+ import { c as he } from "./canvas-lib-BOP_HS11.js";
13
+ import { t as ge } from "./useResponsive-BfnK0KxU.js";
14
+ import { t as _e } from "./A11yDataTable-BCbtxMU6.js";
15
+ import { t as ve } from "./useUserOptionState-DK-_1ddE.js";
16
+ import { t as ye } from "./useChartAccessibility-DYqac8yF.js";
17
+ import { t as be } from "./vue_ui_3d_bar-C4R7o-yX.js";
18
+ import { Fragment as v, computed as y, createBlock as b, createCommentVNode as x, createElementBlock as S, createElementVNode as C, createSlots as xe, createTextVNode as Se, createVNode as Ce, defineAsyncComponent as w, guardReactiveProps as T, mergeProps as we, nextTick as Te, normalizeClass as Ee, normalizeProps as E, normalizeStyle as D, onMounted as De, openBlock as O, ref as k, renderList as A, renderSlot as j, resolveDynamicComponent as Oe, toDisplayString as M, toRefs as ke, unref as N, watch as Ae, withCtx as P, withKeys as je, withModifiers as Me } from "vue";
19
+ //#region src/components/vue-ui-3d-bar.vue
20
+ var Ne = /* @__PURE__ */ e({ default: () => In }), Pe = ["id"], Fe = ["id"], Ie = {
21
+ "aria-live": "polite",
22
+ class: "sr-only"
23
+ }, Le = { style: { position: "relative" } }, Re = [
24
+ "xmlns",
25
+ "viewBox",
26
+ "aria-describedby"
27
+ ], ze = ["width", "height"], Be = ["id"], Ve = ["stop-color"], He = ["stop-color"], Ue = ["id"], We = ["stop-color"], Ge = ["stop-color"], Ke = ["id"], qe = ["stop-color"], Je = ["stop-color"], Ye = ["id"], Xe = ["stop-color"], Ze = ["stop-color"], Qe = ["id"], $e = ["stop-color"], et = ["stop-color"], tt = ["stop-color"], nt = ["stop-color"], rt = ["stop-color"], it = { key: 1 }, at = ["id"], ot = ["stop-color"], st = ["stop-color"], ct = ["id"], lt = ["stop-color"], ut = ["stop-color"], dt = ["id"], ft = ["stop-color"], pt = ["stop-color"], mt = ["id"], ht = [
28
+ "x",
29
+ "y",
30
+ "font-size",
31
+ "font-weight",
32
+ "fill"
33
+ ], gt = ["x", "y"], _t = [
34
+ "cx",
35
+ "cy",
36
+ "stroke",
37
+ "opacity"
38
+ ], vt = ["d", "stroke"], yt = ["d", "stroke"], bt = { key: 4 }, xt = { key: 0 }, St = [
39
+ "stroke-dasharray",
40
+ "d",
41
+ "stroke",
42
+ "stroke-width"
43
+ ], Ct = [
44
+ "stroke-dasharray",
45
+ "d",
46
+ "stroke",
47
+ "stroke-width"
48
+ ], wt = [
49
+ "stroke-dasharray",
50
+ "d",
51
+ "stroke",
52
+ "stroke-width"
53
+ ], Tt = [
54
+ "stroke-dasharray",
55
+ "d",
56
+ "stroke",
57
+ "stroke-width"
58
+ ], Et = { key: 1 }, Dt = [
59
+ "d",
60
+ "stroke",
61
+ "stroke-width",
62
+ "fill"
63
+ ], Ot = [
64
+ "d",
65
+ "stroke",
66
+ "stroke-width",
67
+ "fill"
68
+ ], kt = [
69
+ "d",
70
+ "stroke",
71
+ "stroke-width",
72
+ "fill"
73
+ ], At = { key: 2 }, jt = ["aria-label"], Mt = [
74
+ "d",
75
+ "fill",
76
+ "onMouseenter",
77
+ "onClick",
78
+ "onMouseout"
79
+ ], Nt = [
80
+ "d",
81
+ "fill",
82
+ "onMouseenter",
83
+ "onClick",
84
+ "onMouseout"
85
+ ], Pt = [
86
+ "d",
87
+ "fill",
88
+ "onMouseenter",
89
+ "onClick",
90
+ "onMouseout"
91
+ ], Ft = [
92
+ "d",
93
+ "onMouseenter",
94
+ "onClick",
95
+ "onMouseout"
96
+ ], It = ["d"], Lt = ["d", "stroke"], Rt = ["onClick"], zt = ["stroke", "d"], Bt = [
97
+ "cx",
98
+ "cy",
99
+ "fill",
100
+ "stroke"
101
+ ], Vt = [
102
+ "x",
103
+ "y",
104
+ "width",
105
+ "height"
106
+ ], Ht = [
107
+ "x",
108
+ "y",
109
+ "width",
110
+ "height"
111
+ ], Ut = { key: 3 }, Wt = ["d", "stroke"], Gt = [
112
+ "d",
113
+ "fill",
114
+ "stroke"
115
+ ], Kt = { key: 0 }, qt = [
116
+ "text-anchor",
117
+ "x",
118
+ "y",
119
+ "fill",
120
+ "font-size",
121
+ "font-weight"
122
+ ], Jt = [
123
+ "text-anchor",
124
+ "x",
125
+ "y",
126
+ "fill",
127
+ "font-size",
128
+ "font-weight"
129
+ ], Yt = { key: 4 }, Xt = [
130
+ "d",
131
+ "fill",
132
+ "stroke"
133
+ ], Zt = { key: 5 }, Qt = { key: 0 }, $t = [
134
+ "stroke-dasharray",
135
+ "d",
136
+ "stroke",
137
+ "stroke-width"
138
+ ], en = [
139
+ "stroke-dasharray",
140
+ "d",
141
+ "stroke",
142
+ "stroke-width"
143
+ ], tn = [
144
+ "stroke-dasharray",
145
+ "d",
146
+ "stroke",
147
+ "stroke-width"
148
+ ], nn = [
149
+ "stroke-dasharray",
150
+ "d",
151
+ "stroke",
152
+ "stroke-width"
153
+ ], rn = [
154
+ "d",
155
+ "stroke",
156
+ "stroke-width",
157
+ "fill"
158
+ ], an = [
159
+ "d",
160
+ "stroke",
161
+ "stroke-width",
162
+ "fill"
163
+ ], on = ["d"], sn = { key: 1 }, cn = ["aria-label"], ln = ["id"], un = ["stop-color"], dn = ["stop-color"], fn = ["id"], pn = ["stop-color"], mn = ["stop-color"], hn = ["stop-color"], gn = ["stop-color"], _n = ["stop-color"], vn = [
164
+ "onMouseenter",
165
+ "onClick",
166
+ "onMouseout",
167
+ "d",
168
+ "fill"
169
+ ], yn = [
170
+ "onMouseenter",
171
+ "onClick",
172
+ "onMouseout",
173
+ "d"
174
+ ], bn = [
175
+ "onMouseenter",
176
+ "onClick",
177
+ "onMouseout",
178
+ "d",
179
+ "fill"
180
+ ], xn = ["onClick"], Sn = ["stroke", "d"], Cn = [
181
+ "cx",
182
+ "cy",
183
+ "fill",
184
+ "stroke"
185
+ ], wn = [
186
+ "x",
187
+ "y",
188
+ "width",
189
+ "height"
190
+ ], Tn = [
191
+ "x",
192
+ "y",
193
+ "width",
194
+ "height"
195
+ ], En = { key: 3 }, Dn = ["d", "stroke"], On = [
196
+ "d",
197
+ "fill",
198
+ "stroke"
199
+ ], kn = { key: 0 }, An = [
200
+ "text-anchor",
201
+ "x",
202
+ "y",
203
+ "fill",
204
+ "font-size",
205
+ "font-weight"
206
+ ], jn = [
207
+ "text-anchor",
208
+ "x",
209
+ "y",
210
+ "fill",
211
+ "font-size",
212
+ "font-weight"
213
+ ], Mn = { key: 4 }, Nn = [
214
+ "d",
215
+ "fill",
216
+ "stroke"
217
+ ], Pn = {
218
+ key: 4,
219
+ class: "vue-data-ui-watermark"
220
+ }, Fn = ["innerHTML"], In = /* @__PURE__ */ me({
221
+ __name: "vue-ui-3d-bar",
222
+ props: {
223
+ config: {
224
+ type: Object,
225
+ default() {
226
+ return {};
227
+ }
228
+ },
229
+ dataset: {
230
+ type: Object,
231
+ default() {
232
+ return {};
233
+ }
234
+ }
235
+ },
236
+ emits: ["selectDatapoint", "copyAlt"],
237
+ setup(e, { expose: me, emit: Ne }) {
238
+ let In = w(() => import("./BaseIcon-CbDazQLH.js").then((e) => e.n)), Ln = w(() => import("./vue-ui-accordion-DLnwuQda.js").then((e) => e.n)), Rn = w(() => import("./DataTable-DweDyHc1.js")), zn = w(() => import("./PenAndPaper-D4aFMYZf.js").then((e) => e.t)), Bn = w(() => import("./UserOptions-qFz-9Pnw.js").then((e) => e.n)), Vn = w(() => import("./PackageVersion-DYLo3MRd.js").then((e) => e.t)), Hn = w(() => import("./BaseDraggableDialog-BvaFJWHb.js").then((e) => e.n)), { vue_ui_3d_bar: Un } = ae(), { isThemeValid: Wn, warnInvalidTheme: Gn } = de(), F = e, Kn = Ne, qn = y(() => !!F.dataset && Object.keys(F.dataset).length), I = k(i()), L = k(null), R = k(!1), Jn = k(0), Yn = k(0), Xn = k(null), Zn = k(null), Qn = k(null), $n = k(null), z = k(!1), er = k(null), tr = k(null), nr = k(!1), rr = k(!1), B = k(null), V = k(""), H = k(ur()), ir = y(() => H.value.userOptions.useCursorPointer), ar = y(() => a({
239
+ defaultConfig: {
240
+ customPalette: [
241
+ "#808080",
242
+ "#ADADAD",
243
+ "#DBDBDB"
244
+ ],
245
+ userOptions: { show: !1 },
246
+ table: { show: !1 },
247
+ style: { chart: {
248
+ backgroundColor: "#99999930",
249
+ color: "#6A6A6A",
250
+ bar: {
251
+ color: "#ADADAD",
252
+ stroke: "#6A6A6A"
253
+ },
254
+ box: { stroke: "#6A6A6A" }
255
+ } }
256
+ },
257
+ userConfig: H.value.skeletonConfig ?? {}
258
+ })), { loading: U, FINAL_DATASET: W } = se({
259
+ ...ke(F),
260
+ FINAL_CONFIG: H,
261
+ prepareConfig: ur,
262
+ callback: () => {
263
+ Promise.resolve().then(async () => {
264
+ await Te(), yr();
265
+ });
266
+ },
267
+ skeletonDataset: F.config?.skeletonDataset ?? { series: [
268
+ {
269
+ name: "_",
270
+ value: 21,
271
+ breakdown: [{
272
+ name: "_",
273
+ value: 13
274
+ }, {
275
+ name: "_",
276
+ value: 8
277
+ }]
278
+ },
279
+ {
280
+ name: "_",
281
+ value: 13,
282
+ breakdown: [{
283
+ name: "_",
284
+ value: 8
285
+ }, {
286
+ name: "_",
287
+ value: 5
288
+ }]
289
+ },
290
+ {
291
+ name: "_",
292
+ value: 8,
293
+ breakdown: [{
294
+ name: "_",
295
+ value: 5
296
+ }, {
297
+ name: "_",
298
+ value: 3
299
+ }]
300
+ }
301
+ ] },
302
+ skeletonConfig: a({
303
+ defaultConfig: H.value,
304
+ userConfig: ar.value
305
+ })
306
+ }), { userOptionsVisible: or, setUserOptionsVisibility: sr, keepUserOptionState: cr } = ve({ config: H.value }), { svgRef: lr } = ye({ config: H.value.style.chart.title });
307
+ function ur() {
308
+ let e = ue({
309
+ userConfig: F.config,
310
+ defaultConfig: Un
311
+ }), n = e.theme;
312
+ if (!n) return e;
313
+ if (!Wn.value(e)) return Gn(e), e;
314
+ let r = ue({
315
+ userConfig: be[n] || F.config,
316
+ defaultConfig: e
317
+ }), i = ue({
318
+ userConfig: F.config,
319
+ defaultConfig: r
320
+ });
321
+ return {
322
+ ...i,
323
+ customPalette: i.customPalette.length ? i.customPalette : t[n] || s
324
+ };
325
+ }
326
+ Ae(() => F.config, (e) => {
327
+ U.value || (H.value = ur()), or.value = !H.value.userOptions.showOnChartHover, xr(), Jn.value += 1, Yn.value += 1, G.value.showTable = H.value.table.show;
328
+ }, { deep: !0 });
329
+ let { isPrinting: dr, isImaging: fr, generatePdf: pr, generateImage: mr } = oe({
330
+ elementId: `3d_bar_${I.value}`,
331
+ fileName: H.value.style.chart.title.text || "vue-ui-3d-bar",
332
+ options: H.value.userOptions.print
333
+ }), hr = y(() => re(H.value.customPalette)), G = k({ showTable: H.value.table.show });
334
+ Ae(H, () => {
335
+ G.value = { showTable: H.value.table.show };
336
+ }, { immediate: !0 });
337
+ let K = y(() => W.value.series && W.value.series.length), gr = k(H.value.style.chart.box.dimensions.width * (K.value ? 2 : 1)), _r = k(H.value.style.chart.box.dimensions.height), q = y(() => ({
338
+ height: _r.value,
339
+ width: gr.value,
340
+ absoluteWidth: gr.value,
341
+ top: H.value.style.chart.box.dimensions.top,
342
+ bottom: H.value.style.chart.box.dimensions.bottom,
343
+ left: H.value.style.chart.box.dimensions.left,
344
+ right: H.value.style.chart.box.dimensions.right,
345
+ perspective: H.value.style.chart.box.dimensions.perspective
346
+ })), J = y(() => {
347
+ if (K.value) {
348
+ let e = W.value.series.map((e) => e.value || 0).reduce((e, t) => e + t, 0), t = W.value.series.map((t, n) => ({
349
+ ...t,
350
+ seriesIndex: n,
351
+ id: i(),
352
+ proportion: (t.value || 0) / e,
353
+ color: ie(t.color) || hr.value[n] || s[n] || s[n % s.length],
354
+ breakdown: t.breakdown ? t.breakdown.sort((e, t) => t.value - e.value) : null
355
+ })).sort((e, t) => t.value - e.value), n = [], r = 0;
356
+ for (let e = 0; e < t.length; e += 1) n.push({
357
+ ...t[e],
358
+ fill: Cr(r, t[e].proportion, t[e].breakdown, t[e].color)
359
+ }), r += t[e].proportion;
360
+ return n;
361
+ }
362
+ return null;
363
+ }), Y = y(() => {
364
+ let e = q.value.width / 2;
365
+ return {
366
+ right: `M${e},${q.value.top} ${q.value.width - q.value.right}, ${q.value.top + q.value.perspective} ${q.value.width - q.value.right},${q.value.height - q.value.bottom - q.value.perspective} ${e},${q.value.height - q.value.bottom}`,
367
+ left: `M${e},${q.value.top} ${q.value.left},${q.value.top + q.value.perspective} ${q.value.left},${q.value.height - q.value.bottom - q.value.perspective} ${e},${q.value.height - q.value.bottom}`,
368
+ side: `M${e},${q.value.height - q.value.bottom} ${e},${q.value.top + q.value.perspective * 2}`,
369
+ topSides: `M${q.value.left},${q.value.top + q.value.perspective} ${e},${q.value.top + q.value.perspective * 2} ${q.value.width - q.value.right},${q.value.top + q.value.perspective}`,
370
+ tubeTop: `M${q.value.left},${q.value.top + q.value.perspective} C ${q.value.left},${q.value.top - q.value.perspective / 3} ${q.value.width - q.value.right},${q.value.top - q.value.perspective / 3} ${q.value.width - q.value.right},${q.value.top + q.value.perspective} C ${q.value.width - q.value.right},${q.value.top + q.value.perspective * 2.3} ${q.value.left},${q.value.top + q.value.perspective * 2.3} ${q.value.left},${q.value.top + q.value.perspective}`,
371
+ tubeLeft: `M${q.value.left},${q.value.top + q.value.perspective} ${q.value.left},${q.value.height - q.value.bottom - q.value.perspective}`,
372
+ tubeRight: `M${q.value.width - q.value.right},${q.value.top + q.value.perspective} ${q.value.width - q.value.right},${q.value.height - q.value.bottom - q.value.perspective}`,
373
+ tubeBottom: `M${q.value.width - q.value.right},${q.value.height - q.value.bottom - q.value.perspective} C ${q.value.width - q.value.right},${q.value.height} ${q.value.left},${q.value.height} ${q.value.left},${q.value.height - q.value.bottom - q.value.perspective}`
374
+ };
375
+ }), vr = k(H.value.style.chart.animation.use ? 0 : W.value.percentage);
376
+ function yr() {
377
+ let e = 0, t = H.value.style.chart.animation.speed, n = .005 * H.value.style.chart.animation.acceleration;
378
+ function r() {
379
+ vr.value += t + e, e += n, vr.value < W.value.percentage ? requestAnimationFrame(r) : vr.value = W.value.percentage;
380
+ }
381
+ H.value.style.chart.animation.use && (vr.value = 0, r());
382
+ }
383
+ De(() => {
384
+ xr(), yr();
385
+ });
386
+ let br = y(() => !!H.value.debug);
387
+ function xr() {
388
+ if (d(F.dataset) ? p({
389
+ componentName: "VueUi3dBar",
390
+ type: "dataset",
391
+ debug: br.value
392
+ }) : F.dataset.series ? F.dataset.series.forEach((e, t) => {
393
+ m({
394
+ datasetObject: e,
395
+ requiredAttributes: ["name", "value"]
396
+ }).forEach((e) => {
397
+ p({
398
+ componentName: "VueUi3dBar",
399
+ type: "datasetSerieAttribute",
400
+ property: e,
401
+ index: t,
402
+ debug: br.value
403
+ });
404
+ }), e.breakdown && e.breakdown.forEach((e, n) => {
405
+ m({
406
+ datasetObject: e,
407
+ requiredAttributes: ["name", "value"]
408
+ }).forEach((e) => {
409
+ p({
410
+ componentName: "VueUi3dBar",
411
+ type: "datasetSerieAttribute",
412
+ property: e,
413
+ index: `${t} - ${n}`,
414
+ debug: br.value
415
+ });
416
+ });
417
+ });
418
+ }) : m({
419
+ datasetObject: F.dataset,
420
+ requiredAttributes: ["percentage"]
421
+ }).forEach((e) => {
422
+ p({
423
+ componentName: "VueUi3dBar",
424
+ type: "datasetAttribute",
425
+ property: e,
426
+ debug: br.value
427
+ });
428
+ }), H.value.responsive) {
429
+ let e = he(() => {
430
+ let { width: e, height: t } = ge({
431
+ chart: L.value,
432
+ title: H.value.style.chart.title.text ? Xn.value : null,
433
+ source: $n.value
434
+ });
435
+ requestAnimationFrame(() => {
436
+ _r.value = t - 12, gr.value = e;
437
+ });
438
+ });
439
+ Zn.value && (Qn.value && Zn.value.unobserve(Qn.value), Zn.value.disconnect()), Zn.value = new ResizeObserver(e), Qn.value = L.value.parentNode, Zn.value.observe(Qn.value);
440
+ }
441
+ }
442
+ let Sr = y(() => q.value.width / 4);
443
+ function Cr(e, t, r, i) {
444
+ let a = q.value.height - q.value.bottom - q.value.top - q.value.perspective * 2, { width: o, height: s, bottom: c, right: l, left: d, perspective: f } = q.value, p = K.value ? o / 4 : o / 2, m = p * 2 + d, h = c + a * e, g = s - h - f - a * t / 2, ee = g > q.value.height / 2 ? "top" : "bottom", te = s * .25, _ = !!r, ne = null, re = null;
445
+ return _ && (r = r.map((e, t) => ({
446
+ ...e,
447
+ value: e.value || 0,
448
+ color: u(i, t / r.length)
449
+ })), ne = n({ series: r }, o / 2 + o / 5, ee === "top" ? g - te : g + te, o / 10, o / 10, 1.99999, 2, 1, 360, 105.25, o / 20), re = n({ series: r }, o - m + o / 14, s - h - f - a * t / 2, o / 40, o / 40, 1.99999, 2, 1, 360, 105.25, o / 40)), {
450
+ donut: ne,
451
+ miniDonut: re,
452
+ donutR: o / 20,
453
+ CENTER_X: p,
454
+ sidePointer: {
455
+ x: o - m,
456
+ x2: o - m + o / 14,
457
+ xText: o - m + o / 9,
458
+ y: s - h - f - a * t / 2,
459
+ topY: s - h - f - a * t,
460
+ height: a * t
461
+ },
462
+ apexBottom: {
463
+ y: s - h,
464
+ x: p
465
+ },
466
+ apexTop: {
467
+ y: s - h - a * t,
468
+ x: p
469
+ },
470
+ right: `M${p},${s - h} ${p},${s - h - a * t} ${o - m},${s - h - f - a * t} ${o - m},${s - h - f}Z`,
471
+ left: `M${p},${s - h} ${p},${s - h - a * t} ${d}, ${s - h - f - a * t} ${d},${s - h - f}Z`,
472
+ liningTop: `M${d},${s - h - f - a * t} ${p},${s - h - a * t} ${o - m},${s - h - f - a * t}`,
473
+ liningTopShade: `M${d},${s - h - f - a * t - .5} ${p},${s - h - a * t - .5} ${o - m},${s - h - f - a * t - .5}`,
474
+ top: `M${p},${s - h - a * t} ${d},${s - h - f - a * t} ${p},${s - h - f * 2 - a * t} ${o - m},${s - h - f - a * t} Z`,
475
+ tubeTop: `M${d},${s - h - a * t - f} C ${d},${s - h - a * t - f * 2.5} ${o - m},${s - h - a * t - f * 2.5} ${o - m},${s - h - a * t - f} C ${o - m},${s - h - a * t + f / 2} ${d},${s - h - a * t + f / 2} ${d},${s - h - a * t - f}`,
476
+ bottomTubeTop: `M ${o - m - .5},${s - h - f} C ${o - m - .5},${s - h + f / 2} ${d},${s - h + f / 2} ${d + .5},${s - h - f}`,
477
+ tubeBody: `M
478
+ ${d},${s - h - a * t - f}
479
+ C ${d},${s - h - a * t + f / 2}
480
+ ${o - m},${s - h - a * t + f / 2}
481
+ ${o - m},${s - h - a * t - f}
482
+ L${o - m},${s - h - f}
483
+ C
484
+ ${o - m},${s - h + f / 2}
485
+ ${d},${s - h + f / 2}
486
+ ${d},${s - h - f}Z`
487
+ };
488
+ }
489
+ let wr = y(() => {
490
+ let e = ne(vr.value / 100), t = q.value.height - q.value.bottom - q.value.top - q.value.perspective * 2, { width: n, height: r, bottom: i, right: a, left: o, perspective: s } = q.value, c = K.value ? n / 4 : n / 2, l = K.value ? c * 2 + o : a, u = i + t * 0;
491
+ return {
492
+ right: `M${c},${r - u} ${c},${r - u - t * e} ${n - l},${r - u - s - t * e} ${n - l},${r - u - s}Z`,
493
+ left: `M${c},${r - u} ${c},${r - u - t * e} ${o}, ${r - u - s - t * e} ${o},${r - u - s}Z`,
494
+ top: `M${c},${r - u - t * e} ${o},${r - u - s - t * e} ${c},${r - u - s * 2 - t * e} ${n - l},${r - u - s - t * e} Z`,
495
+ tubeTop: `M${o},${r - u - t * e - s} C ${o},${r - u - t * e - s * 2.5} ${n - l},${r - u - t * e - s * 2.5} ${n - l},${r - u - t * e - s} C ${n - l},${r - u - t * e + s / 2} ${o},${r - u - t * e + s / 2} ${o},${r - u - t * e - s}`,
496
+ tubeBody: `M
497
+ ${o},${r - u - t * e - s}
498
+ C ${o},${r - u - t * e + s / 2}
499
+ ${n - l},${r - u - t * e + s / 2}
500
+ ${n - l},${r - u - t * e - s}
501
+ L${n - l},${r - s * 1.5}
502
+ C
503
+ ${n - l},${r}
504
+ ${o},${r}
505
+ ${o},${r - u - s}Z`
506
+ };
507
+ }), X = k(null);
508
+ function Z(e, t = !1) {
509
+ H.value.events.datapointEnter && !t && H.value.events.datapointEnter({
510
+ datapoint: e,
511
+ seriesIndex: e.seriesIndex
512
+ }), H.value.events.datapointClick && t && H.value.events.datapointClick({
513
+ datapoint: e,
514
+ seriesIndex: e.seriesIndex
515
+ }), Kn("selectDatapoint", e);
516
+ let n = J.value?.findIndex((t) => t.id === e.id) ?? null;
517
+ n !== null && n !== -1 && (B.value = n, V.value = Gr(e)), t || (X.value = e.id), t && R.value && (R.value = !1), t && !R.value && (R.value = !0);
518
+ }
519
+ function Q(e) {
520
+ H.value.events.datapointLeave && H.value.events.datapointLeave({
521
+ datapoint: e,
522
+ seriesIndex: e.seriesIndex
523
+ }), !R.value && (X.value = null, B.value = null, V.value = "");
524
+ }
525
+ function Tr(e, t, n = !1) {
526
+ let r = W.value.series.map((e) => e.value || 0).reduce((e, t) => e + t, 0), i = isNaN(e.value / r) ? 0 : e.value / r * 100, a = isNaN(e.value / Er(t)) ? 0 : e.value / Er(t) * 100;
527
+ return n ? a : i.toFixed(0) + "%";
528
+ }
529
+ function Er(e) {
530
+ return [...e].map((e) => e.value).reduce((e, t) => e + t, 0);
531
+ }
532
+ let Dr = k(!1);
533
+ function Or(e) {
534
+ Dr.value = e;
535
+ }
536
+ function kr() {
537
+ return K.value ? J.value : W.value.percentage;
538
+ }
539
+ let $ = y(() => K.value ? {
540
+ head: J.value.flatMap((e) => e.breakdown && e.breakdown.length ? [{
541
+ name: e.name,
542
+ color: e.color
543
+ }, ...e.breakdown.map((t, n) => ({
544
+ name: t.name,
545
+ color: u(e.color, n / e.breakdown.length)
546
+ }))] : {
547
+ name: e.name,
548
+ color: e.color
549
+ }),
550
+ body: J.value.flatMap((e) => e.breakdown && e.breakdown.length ? [e.value, ...e.breakdown.map((e) => e.value)] : e.value)
551
+ } : null);
552
+ function Ar(e = null) {
553
+ if (!K.value) {
554
+ console.warn("VueUi3dBar : CSV download is only available in stack mode (providing dataset.series instead of dataset.percentage)");
555
+ return;
556
+ }
557
+ Te(() => {
558
+ let t = J.value.map((e) => e.value).reduce((e, t) => e + t, 0), n = $.value.head.map((e, n) => [
559
+ [e.name],
560
+ [$.value.body[n]],
561
+ [isNaN($.value.body[n] / t) ? "-" : $.value.body[n] / t * 100]
562
+ ]), r = l([
563
+ [H.value.style.chart.title.text],
564
+ [H.value.style.chart.title.subtitle.text],
565
+ [
566
+ [""],
567
+ ["val"],
568
+ ["%"]
569
+ ]
570
+ ].concat(n));
571
+ e ? e(r) : o({
572
+ csvContent: r,
573
+ title: H.value.style.chart.title.text || "vue-ui-3d-bar"
574
+ });
575
+ });
576
+ }
577
+ let jr = y(() => {
578
+ if (!K.value || !Array.isArray(J.value) || !J.value.length) return {
579
+ colNames: [],
580
+ head: [],
581
+ body: [],
582
+ a11yBody: [],
583
+ config: {
584
+ th: {
585
+ backgroundColor: H.value.table.th.backgroundColor,
586
+ color: H.value.table.th.color,
587
+ outline: H.value.table.th.outline
588
+ },
589
+ td: {
590
+ backgroundColor: H.value.table.td.backgroundColor,
591
+ color: H.value.table.td.color,
592
+ outline: H.value.table.td.outline
593
+ },
594
+ breakpoint: H.value.table.responsiveBreakpoint,
595
+ shape: H.value.style.shape === "tube" ? "circle" : "square"
596
+ }
597
+ };
598
+ let e = J.value.reduce((e, t) => e + t.value, 0), t = [
599
+ " <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>",
600
+ r({
601
+ p: H.value.style.chart.legend.prefix,
602
+ v: e,
603
+ s: H.value.style.chart.legend.suffix,
604
+ r: H.value.table.td.roundingValue
605
+ }),
606
+ "100%"
607
+ ], n = $.value.head.map((t, n) => {
608
+ let i = $.value.body[n];
609
+ return [
610
+ {
611
+ color: t.color,
612
+ name: t.name
613
+ },
614
+ r({
615
+ p: H.value.style.chart.legend.prefix,
616
+ v: i,
617
+ s: H.value.style.chart.legend.suffix,
618
+ r: H.value.table.td.roundingValue
619
+ }),
620
+ isNaN(i / e) ? "-" : r({
621
+ v: i / e * 100,
622
+ s: "%",
623
+ r: H.value.table.td.roundingPercentage
624
+ })
625
+ ];
626
+ }), i = n.map((e) => e.map((e, t) => t === 0 ? e.name : e));
627
+ return {
628
+ colNames: [
629
+ H.value.table.columnNames.series,
630
+ H.value.table.columnNames.value,
631
+ H.value.table.columnNames.percentage
632
+ ],
633
+ head: t,
634
+ body: n,
635
+ a11yBody: i,
636
+ config: {
637
+ th: {
638
+ backgroundColor: H.value.table.th.backgroundColor,
639
+ color: H.value.table.th.color,
640
+ outline: H.value.table.th.outline
641
+ },
642
+ td: {
643
+ backgroundColor: H.value.table.td.backgroundColor,
644
+ color: H.value.table.td.color,
645
+ outline: H.value.table.td.outline
646
+ },
647
+ breakpoint: H.value.table.responsiveBreakpoint,
648
+ shape: H.value.style.shape === "tube" ? "circle" : "square"
649
+ }
650
+ };
651
+ });
652
+ function Mr() {
653
+ G.value.showTable = !G.value.showTable;
654
+ }
655
+ let Nr = k(!1);
656
+ function Pr() {
657
+ Nr.value = !Nr.value;
658
+ }
659
+ async function Fr({ scale: e = 2 } = {}) {
660
+ if (!L.value) return;
661
+ let { width: t, height: n } = L.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await fe({
662
+ domElement: L.value,
663
+ base64: !0,
664
+ img: !0,
665
+ scale: e
666
+ });
667
+ return {
668
+ imageUri: i,
669
+ base64: a,
670
+ title: H.value.style.chart.title.text,
671
+ width: t,
672
+ height: n,
673
+ aspectRatio: r
674
+ };
675
+ }
676
+ let Ir = y(() => {
677
+ let e = H.value.table.useDialog && !H.value.table.show, t = G.value.showTable;
678
+ return {
679
+ component: e ? Hn : Ln,
680
+ title: `${H.value.style.chart.title.text}${H.value.style.chart.title.subtitle.text ? `: ${H.value.style.chart.title.subtitle.text}` : ""}`,
681
+ props: e ? {
682
+ backgroundColor: H.value.table.th.backgroundColor,
683
+ color: H.value.table.th.color,
684
+ headerColor: H.value.table.th.color,
685
+ headerBg: H.value.table.th.backgroundColor,
686
+ isFullscreen: Dr.value,
687
+ fullscreenParent: L.value,
688
+ forcedWidth: Math.min(800, window.innerWidth * .8)
689
+ } : {
690
+ hideDetails: !0,
691
+ config: {
692
+ open: t,
693
+ maxHeight: 1e4,
694
+ body: {
695
+ backgroundColor: H.value.style.chart.backgroundColor,
696
+ color: H.value.style.chart.color
697
+ },
698
+ head: {
699
+ backgroundColor: H.value.style.chart.backgroundColor,
700
+ color: H.value.style.chart.color
701
+ }
702
+ }
703
+ }
704
+ };
705
+ });
706
+ Ae(() => G.value.showTable, (e) => {
707
+ H.value.table.show || (e && H.value.table.useDialog && er.value ? er.value.open() : "close" in er.value && er.value.close());
708
+ });
709
+ function Lr() {
710
+ G.value.showTable = !1, tr.value && tr.value.setTableIconState(!1);
711
+ }
712
+ let Rr = y(() => H.value.style.chart.backgroundColor), { exportSvg: zr, getSvg: Br } = le({
713
+ svg: lr,
714
+ title: y(() => H.value.style.chart.title),
715
+ backgroundColor: Rr
716
+ });
717
+ async function Vr({ isCb: e }) {
718
+ nr.value = !0, await Te();
719
+ try {
720
+ if (e) {
721
+ let { blob: e, url: t, text: n, dataUrl: r } = await Br();
722
+ await Promise.resolve(H.value.userOptions.callbacks.svg({
723
+ blob: e,
724
+ url: t,
725
+ text: n,
726
+ dataUrl: r
727
+ }));
728
+ } else await Promise.resolve(zr());
729
+ } finally {
730
+ nr.value = !1;
731
+ }
732
+ }
733
+ function Hr(e) {
734
+ if (e?.stage === "start") {
735
+ rr.value = !0;
736
+ return;
737
+ }
738
+ if (e?.stage === "end") {
739
+ rr.value = !1;
740
+ return;
741
+ }
742
+ mr();
743
+ }
744
+ async function Ur() {
745
+ if (Kn("copyAlt", {
746
+ config: H.value,
747
+ dataset: W.value
748
+ }), !H.value.userOptions.callbacks.altCopy) {
749
+ console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
750
+ return;
751
+ }
752
+ await Promise.resolve(H.value.userOptions.callbacks.altCopy({
753
+ config: H.value,
754
+ dataset: W.value
755
+ }));
756
+ }
757
+ function Wr() {
758
+ B.value = null, V.value = "", R.value = !1, X.value = null;
759
+ }
760
+ function Gr(e) {
761
+ if (!e) return "";
762
+ let t = r({
763
+ p: H.value.style.chart.legend.prefix,
764
+ v: e.value,
765
+ s: H.value.style.chart.legend.suffix,
766
+ r: H.value.style.chart.legend.roundingValue
767
+ }), n = r({
768
+ v: e.proportion * 100,
769
+ s: "%",
770
+ r: H.value.style.chart.legend.roundingPercentage
771
+ });
772
+ return `${e.name}: ${t}, ${n}`;
773
+ }
774
+ function Kr(e) {
775
+ if (!K.value || !J.value?.length) return;
776
+ let t = J.value[e];
777
+ t && (B.value = e, X.value = t.id, V.value = Gr(t));
778
+ }
779
+ function qr() {
780
+ z.value = !0, !(!K.value || !J.value?.length) && B.value === null && Kr(0);
781
+ }
782
+ function Jr() {
783
+ z.value = !1, R.value || (B.value = null, X.value = null, V.value = "");
784
+ }
785
+ function Yr(e) {
786
+ if (!K.value || !J.value?.length || !lr.value || document.activeElement !== lr.value) return;
787
+ let t = ["ArrowLeft", "ArrowDown"].includes(e.key), n = ["ArrowRight", "ArrowUp"].includes(e.key), r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
788
+ if (!t && !n && !r && !i) return;
789
+ if (e.preventDefault(), e.stopPropagation(), i) {
790
+ Wr();
791
+ return;
792
+ }
793
+ if (r) {
794
+ if (B.value === null) return;
795
+ let e = J.value[B.value];
796
+ if (!e) return;
797
+ Z(e, !0), V.value = `${Gr(e)} selected`;
798
+ return;
799
+ }
800
+ let a = B.value;
801
+ a === null || a < 0 || a >= J.value.length ? a = n ? 0 : J.value.length - 1 : n ? (a += 1, a >= J.value.length && (a = 0)) : t && (--a, a < 0 && (a = J.value.length - 1)), Kr(a);
802
+ }
803
+ let Xr = y(() => ({
804
+ headers: jr.value?.colNames ?? [],
805
+ rows: jr.value?.a11yBody ?? []
806
+ }));
807
+ return me({
808
+ getImage: Fr,
809
+ generateCsv: Ar,
810
+ generatePdf: pr,
811
+ generateImage: mr,
812
+ generateSvg: Vr,
813
+ getData: kr,
814
+ toggleTable: Mr,
815
+ toggleAnnotator: Pr,
816
+ toggleFullscreen: Or,
817
+ copyAlt: Ur
818
+ }), (e, t) => (O(), S("div", {
819
+ ref_key: "bar3dChart",
820
+ ref: L,
821
+ class: Ee("vue-data-ui-component vue-ui-3d-bar"),
822
+ style: D(`font-family:${H.value.style.fontFamily};width:100%; text-align:center;background:${H.value.style.chart.backgroundColor}`),
823
+ id: `3d_bar_${I.value}`,
824
+ onMouseenter: t[8] ||= () => N(sr)(!0),
825
+ onMouseleave: t[9] ||= () => N(sr)(!1)
826
+ }, [
827
+ C("div", {
828
+ id: `chart-instructions-${I.value}`,
829
+ class: "sr-only"
830
+ }, [C("p", null, M(H.value.a11y.translations.keyboardNavigation), 1)], 8, Fe),
831
+ C("div", Ie, M(V.value), 1),
832
+ Xr.value?.rows?.length ? (O(), b(_e, {
833
+ key: 0,
834
+ uid: I.value,
835
+ head: Xr.value.headers,
836
+ body: Xr.value.rows,
837
+ notice: H.value.a11y.translations.tableAvailable,
838
+ caption: H.value.a11y.translations.tableCaption
839
+ }, null, 8, [
840
+ "uid",
841
+ "head",
842
+ "body",
843
+ "notice",
844
+ "caption"
845
+ ])) : x("", !0),
846
+ H.value.userOptions.buttons.annotator ? (O(), b(N(zn), {
847
+ key: 1,
848
+ svgRef: N(lr),
849
+ backgroundColor: H.value.style.chart.backgroundColor,
850
+ color: H.value.style.chart.color,
851
+ active: Nr.value,
852
+ isCursorPointer: ir.value,
853
+ onClose: Pr
854
+ }, {
855
+ "annotator-action-close": P(() => [j(e.$slots, "annotator-action-close", {}, void 0, !0)]),
856
+ "annotator-action-color": P(({ color: t }) => [j(e.$slots, "annotator-action-color", E(T({ color: t })), void 0, !0)]),
857
+ "annotator-action-draw": P(({ mode: t }) => [j(e.$slots, "annotator-action-draw", E(T({ mode: t })), void 0, !0)]),
858
+ "annotator-action-undo": P(({ disabled: t }) => [j(e.$slots, "annotator-action-undo", E(T({ disabled: t })), void 0, !0)]),
859
+ "annotator-action-redo": P(({ disabled: t }) => [j(e.$slots, "annotator-action-redo", E(T({ disabled: t })), void 0, !0)]),
860
+ "annotator-action-delete": P(({ disabled: t }) => [j(e.$slots, "annotator-action-delete", E(T({ disabled: t })), void 0, !0)]),
861
+ _: 3
862
+ }, 8, [
863
+ "svgRef",
864
+ "backgroundColor",
865
+ "color",
866
+ "active",
867
+ "isCursorPointer"
868
+ ])) : x("", !0),
869
+ H.value.style.chart.title.text ? (O(), S("div", {
870
+ key: 2,
871
+ ref_key: "chartTitle",
872
+ ref: Xn,
873
+ style: "width:100%;background:transparent"
874
+ }, [(O(), b(pe, {
875
+ key: `title_${Jn.value}`,
876
+ config: {
877
+ title: {
878
+ cy: "3dBar-div-title",
879
+ ...H.value.style.chart.title
880
+ },
881
+ subtitle: {
882
+ cy: "3dBar-div-subtitle",
883
+ ...H.value.style.chart.title.subtitle
884
+ }
885
+ }
886
+ }, null, 8, ["config"]))], 512)) : x("", !0),
887
+ H.value.userOptions.show && qn.value && (N(cr) || N(or)) ? (O(), b(N(Bn), {
888
+ key: 3,
889
+ ref_key: "userOptionsRef",
890
+ ref: tr,
891
+ backgroundColor: H.value.style.chart.backgroundColor,
892
+ color: H.value.style.chart.color,
893
+ isPrinting: N(dr),
894
+ isImaging: N(fr),
895
+ uid: I.value,
896
+ hasPdf: H.value.userOptions.buttons.pdf,
897
+ hasTable: !!K.value && H.value.userOptions.buttons.table,
898
+ hasXls: !!K.value && H.value.userOptions.buttons.csv,
899
+ hasImg: H.value.userOptions.buttons.img,
900
+ hasSvg: H.value.userOptions.buttons.svg,
901
+ hasFullscreen: H.value.userOptions.buttons.fullscreen,
902
+ hasAltCopy: H.value.userOptions.buttons.altCopy,
903
+ titles: { ...H.value.userOptions.buttonTitles },
904
+ chartElement: L.value,
905
+ position: H.value.userOptions.position,
906
+ hasAnnotator: H.value.userOptions.buttons.annotator,
907
+ isAnnotation: Nr.value,
908
+ callbacks: H.value.userOptions.callbacks,
909
+ printScale: H.value.userOptions.print.scale,
910
+ tableDialog: H.value.table.useDialog,
911
+ isCursorPointer: ir.value,
912
+ onToggleFullscreen: Or,
913
+ onGeneratePdf: N(pr),
914
+ onGenerateCsv: Ar,
915
+ onGenerateImage: Hr,
916
+ onGenerateSvg: Vr,
917
+ onToggleTable: Mr,
918
+ onToggleAnnotator: Pr,
919
+ onCopyAlt: Ur,
920
+ style: D({ visibility: N(cr) ? N(or) ? "visible" : "hidden" : "visible" })
921
+ }, xe({ _: 2 }, [
922
+ e.$slots.menuIcon ? {
923
+ name: "menuIcon",
924
+ fn: P(({ isOpen: t, color: n }) => [j(e.$slots, "menuIcon", E(T({
925
+ isOpen: t,
926
+ color: n
927
+ })), void 0, !0)]),
928
+ key: "0"
929
+ } : void 0,
930
+ e.$slots.optionPdf ? {
931
+ name: "optionPdf",
932
+ fn: P(() => [j(e.$slots, "optionPdf", {}, void 0, !0)]),
933
+ key: "1"
934
+ } : void 0,
935
+ e.$slots.optionCsv ? {
936
+ name: "optionCsv",
937
+ fn: P(() => [j(e.$slots, "optionCsv", {}, void 0, !0)]),
938
+ key: "2"
939
+ } : void 0,
940
+ e.$slots.optionImg ? {
941
+ name: "optionImg",
942
+ fn: P(() => [j(e.$slots, "optionImg", {}, void 0, !0)]),
943
+ key: "3"
944
+ } : void 0,
945
+ e.$slots.optionSvg ? {
946
+ name: "optionSvg",
947
+ fn: P(() => [j(e.$slots, "optionSvg", {}, void 0, !0)]),
948
+ key: "4"
949
+ } : void 0,
950
+ e.$slots.optionTable ? {
951
+ name: "optionTable",
952
+ fn: P(() => [j(e.$slots, "optionTable", {}, void 0, !0)]),
953
+ key: "5"
954
+ } : void 0,
955
+ e.$slots.optionFullscreen ? {
956
+ name: "optionFullscreen",
957
+ fn: P(({ toggleFullscreen: t, isFullscreen: n }) => [j(e.$slots, "optionFullscreen", E(T({
958
+ toggleFullscreen: t,
959
+ isFullscreen: n
960
+ })), void 0, !0)]),
961
+ key: "6"
962
+ } : void 0,
963
+ e.$slots.optionAnnotator ? {
964
+ name: "optionAnnotator",
965
+ fn: P(({ toggleAnnotator: t, isAnnotator: n }) => [j(e.$slots, "optionAnnotator", E(T({
966
+ toggleAnnotator: t,
967
+ isAnnotator: n
968
+ })), void 0, !0)]),
969
+ key: "7"
970
+ } : void 0,
971
+ e.$slots.optionAltCopy ? {
972
+ name: "optionAltCopy",
973
+ fn: P(({ altCopy: t }) => [j(e.$slots, "optionAltCopy", E(T({ altCopy: t })), void 0, !0)]),
974
+ key: "8"
975
+ } : void 0,
976
+ e.$slots["custom-menu-before"] ? {
977
+ name: "custom-menu-before",
978
+ fn: P(() => [j(e.$slots, "custom-menu-before", {}, void 0, !0)]),
979
+ key: "9"
980
+ } : void 0,
981
+ e.$slots["custom-menu-after"] ? {
982
+ name: "custom-menu-after",
983
+ fn: P(() => [j(e.$slots, "custom-menu-after", {}, void 0, !0)]),
984
+ key: "10"
985
+ } : void 0
986
+ ]), 1032, [
987
+ "backgroundColor",
988
+ "color",
989
+ "isPrinting",
990
+ "isImaging",
991
+ "uid",
992
+ "hasPdf",
993
+ "hasTable",
994
+ "hasXls",
995
+ "hasImg",
996
+ "hasSvg",
997
+ "hasFullscreen",
998
+ "hasAltCopy",
999
+ "titles",
1000
+ "chartElement",
1001
+ "position",
1002
+ "hasAnnotator",
1003
+ "isAnnotation",
1004
+ "callbacks",
1005
+ "printScale",
1006
+ "tableDialog",
1007
+ "isCursorPointer",
1008
+ "onGeneratePdf",
1009
+ "style"
1010
+ ])) : x("", !0),
1011
+ C("div", Le, [(O(), S("svg", {
1012
+ ref_key: "svgRef",
1013
+ ref: lr,
1014
+ xmlns: N(te),
1015
+ class: Ee({
1016
+ "vue-data-ui-fullscreen--on": Dr.value,
1017
+ "vue-data-ui-fulscreen--off": !Dr.value,
1018
+ animated: H.value.useCssAnimation
1019
+ }),
1020
+ viewBox: `0 0 ${q.value.absoluteWidth} ${q.value.height}`,
1021
+ style: D(`max-width:100%; overflow: visible; background:transparent;color:${H.value.style.chart.color}`),
1022
+ tabindex: "0",
1023
+ "aria-describedby": `chart-instructions-${I.value}`,
1024
+ onFocus: qr,
1025
+ onBlur: Jr,
1026
+ onKeydown: Yr
1027
+ }, [
1028
+ Ce(N(Vn)),
1029
+ e.$slots["chart-background"] ? (O(), S("foreignObject", {
1030
+ key: 0,
1031
+ x: 0,
1032
+ y: 0,
1033
+ width: q.value.absoluteWidth,
1034
+ height: q.value.height,
1035
+ style: { pointerEvents: "none" }
1036
+ }, [j(e.$slots, "chart-background", {}, void 0, !0)], 8, ze)) : x("", !0),
1037
+ C("defs", null, [
1038
+ C("radialGradient", { id: `gradient_top${I.value}` }, [C("stop", {
1039
+ offset: "0%",
1040
+ "stop-color": N(c)(H.value.style.chart.backgroundColor, 0)
1041
+ }, null, 8, Ve), C("stop", {
1042
+ offset: "100%",
1043
+ "stop-color": H.value.style.chart.bar.color
1044
+ }, null, 8, He)], 8, Be),
1045
+ C("radialGradient", { id: `gradient_tube_top${I.value}` }, [C("stop", {
1046
+ offset: "0%",
1047
+ "stop-color": N(c)(N(u)(H.value.style.chart.bar.color, .5), 80)
1048
+ }, null, 8, We), C("stop", {
1049
+ offset: "100%",
1050
+ "stop-color": N(c)(N(f)(H.value.style.chart.bar.color, .1), 80)
1051
+ }, null, 8, Ge)], 8, Ue),
1052
+ C("radialGradient", { id: `gradient_left${I.value}` }, [C("stop", {
1053
+ offset: "0%",
1054
+ "stop-color": N(c)(H.value.style.chart.backgroundColor, 0)
1055
+ }, null, 8, qe), C("stop", {
1056
+ offset: "100%",
1057
+ "stop-color": N(c)(H.value.style.chart.bar.color, 20)
1058
+ }, null, 8, Je)], 8, Ke),
1059
+ C("radialGradient", { id: `gradient_right${I.value}` }, [C("stop", {
1060
+ offset: "0%",
1061
+ "stop-color": N(c)(H.value.style.chart.backgroundColor, 0)
1062
+ }, null, 8, Xe), C("stop", {
1063
+ offset: "100%",
1064
+ "stop-color": N(c)(H.value.style.chart.bar.color, 20)
1065
+ }, null, 8, Ze)], 8, Ye),
1066
+ C("linearGradient", {
1067
+ id: `gradient_tube_body${I.value}`,
1068
+ x1: "0%",
1069
+ y1: "0%",
1070
+ x2: "100%",
1071
+ y2: "0%"
1072
+ }, [
1073
+ C("stop", {
1074
+ offset: "0%",
1075
+ "stop-color": `${H.value.style.chart.bar.color}`
1076
+ }, null, 8, $e),
1077
+ C("stop", {
1078
+ offset: "10%",
1079
+ "stop-color": N(c)(N(f)(H.value.style.chart.bar.color, .7), 100)
1080
+ }, null, 8, et),
1081
+ C("stop", {
1082
+ offset: "25%",
1083
+ "stop-color": N(c)(N(f)(H.value.style.chart.bar.color, .5), 100)
1084
+ }, null, 8, tt),
1085
+ C("stop", {
1086
+ offset: "75%",
1087
+ "stop-color": N(c)(H.value.style.chart.bar.color, 80)
1088
+ }, null, 8, nt),
1089
+ C("stop", {
1090
+ offset: "100%",
1091
+ "stop-color": N(c)(N(u)(H.value.style.chart.bar.color, .7), 100)
1092
+ }, null, 8, rt)
1093
+ ], 8, Qe)
1094
+ ]),
1095
+ K.value ? (O(), S("defs", it, [
1096
+ (O(!0), S(v, null, A(J.value, (e) => (O(), S("radialGradient", { id: `grad_top_${e.id}` }, [C("stop", {
1097
+ offset: "0%",
1098
+ "stop-color": N(c)(N(u)(e.color, .5), 80)
1099
+ }, null, 8, ot), C("stop", {
1100
+ offset: "100%",
1101
+ "stop-color": e.color
1102
+ }, null, 8, st)], 8, at))), 256)),
1103
+ (O(!0), S(v, null, A(J.value, (e) => (O(), S("linearGradient", { id: `grad_left_${e.id}` }, [C("stop", {
1104
+ offset: "0%",
1105
+ "stop-color": N(c)(e.color, 80)
1106
+ }, null, 8, lt), C("stop", {
1107
+ offset: "100%",
1108
+ "stop-color": N(c)(N(f)(e.color, .5), 100)
1109
+ }, null, 8, ut)], 8, ct))), 256)),
1110
+ (O(!0), S(v, null, A(J.value, (e) => (O(), S("linearGradient", { id: `grad_right_${e.id}` }, [C("stop", {
1111
+ offset: "2%",
1112
+ "stop-color": N(c)(N(u)(e.color, .5), 100)
1113
+ }, null, 8, ft), C("stop", {
1114
+ offset: "100%",
1115
+ "stop-color": N(c)(e.color, 80)
1116
+ }, null, 8, pt)], 8, dt))), 256)),
1117
+ C("linearGradient", {
1118
+ x1: "0%",
1119
+ y1: "0%",
1120
+ x2: "0%",
1121
+ y2: "100%",
1122
+ id: `vertical_line_${I.value}`
1123
+ }, [...t[10] ||= [C("stop", {
1124
+ offset: "0%",
1125
+ "stop-color": "#FFFFFF"
1126
+ }, null, -1), C("stop", {
1127
+ offset: "100%",
1128
+ "stop-color": "#FFFFFF33"
1129
+ }, null, -1)]], 8, mt)
1130
+ ])) : x("", !0),
1131
+ H.value.style.chart.dataLabel.show && ![null, void 0].includes(N(W).percentage) && [null, void 0].includes(N(W).series) ? (O(), S("text", {
1132
+ key: 2,
1133
+ x: q.value.width / 2,
1134
+ y: q.value.top - H.value.style.chart.dataLabel.fontSize / 2,
1135
+ "font-size": H.value.style.chart.dataLabel.fontSize,
1136
+ "font-weight": H.value.style.chart.dataLabel.bold ? "bold" : "normal",
1137
+ fill: H.value.style.chart.dataLabel.color,
1138
+ "text-anchor": "middle"
1139
+ }, M(N(r)({
1140
+ v: vr.value,
1141
+ s: "%",
1142
+ r: H.value.style.chart.dataLabel.rounding
1143
+ })), 9, ht)) : x("", !0),
1144
+ R.value ? (O(), S("g", {
1145
+ key: 3,
1146
+ role: "button",
1147
+ tabindex: "0",
1148
+ "aria-label": "Clear selection",
1149
+ onClick: t[0] ||= (e) => {
1150
+ R.value = !1, X.value = null;
1151
+ },
1152
+ onKeydown: [t[1] ||= je(Me((e) => {
1153
+ R.value = !1, X.value = null;
1154
+ }, ["prevent"]), ["enter"]), t[2] ||= je(Me((e) => {
1155
+ R.value = !1, X.value = null;
1156
+ }, ["prevent"]), ["space"])],
1157
+ onFocus: t[3] ||= (e) => z.value = !0,
1158
+ onBlur: t[4] ||= (e) => z.value = !1,
1159
+ onMouseenter: t[5] ||= (e) => z.value = !0,
1160
+ onMouseleave: t[6] ||= (e) => z.value = !1,
1161
+ class: "svg-btn",
1162
+ "data-dom-to-png-ignore": "",
1163
+ style: D({
1164
+ cursor: ir.value ? "pointer" : "default",
1165
+ outline: "none"
1166
+ })
1167
+ }, [
1168
+ t[11] ||= C("title", null, "Clear selection", -1),
1169
+ C("rect", {
1170
+ x: Sr.value - 12,
1171
+ y: q.value.top - 24,
1172
+ width: 24,
1173
+ height: 24,
1174
+ fill: "transparent",
1175
+ "pointer-events": "all"
1176
+ }, null, 8, gt),
1177
+ C("circle", {
1178
+ cx: Sr.value,
1179
+ cy: q.value.top - 12,
1180
+ r: "10",
1181
+ fill: "none",
1182
+ stroke: H.value.style.chart.color,
1183
+ "stroke-width": "2",
1184
+ "vector-effect": "non-scaling-stroke",
1185
+ opacity: z.value ? .5 : 0
1186
+ }, null, 8, _t),
1187
+ C("path", {
1188
+ d: `M${Sr.value - 6},${q.value.top - 18} ${Sr.value + 6},${q.value.top - 6}`,
1189
+ stroke: H.value.style.chart.color,
1190
+ "stroke-linecap": "round",
1191
+ "stroke-width": "2",
1192
+ "vector-effect": "non-scaling-stroke"
1193
+ }, null, 8, vt),
1194
+ C("path", {
1195
+ d: `M${Sr.value + 6},${q.value.top - 18} ${Sr.value - 6},${q.value.top - 6}`,
1196
+ stroke: H.value.style.chart.color,
1197
+ "stroke-linecap": "round",
1198
+ "stroke-width": "2",
1199
+ "vector-effect": "non-scaling-stroke"
1200
+ }, null, 8, yt)
1201
+ ], 36)) : x("", !0),
1202
+ !H.value.style.shape || H.value.style.shape === "bar" ? (O(), S("g", bt, [
1203
+ K.value ? x("", !0) : (O(), S("g", xt, [
1204
+ C("path", {
1205
+ "stroke-dasharray": H.value.style.chart.box.strokeDasharray,
1206
+ d: Y.value.right,
1207
+ stroke: H.value.style.chart.box.stroke,
1208
+ "stroke-width": H.value.style.chart.box.strokeWidth,
1209
+ "stroke-linejoin": "round",
1210
+ "stroke-linecap": "round",
1211
+ fill: "none"
1212
+ }, null, 8, St),
1213
+ C("path", {
1214
+ "stroke-dasharray": H.value.style.chart.box.strokeDasharray,
1215
+ d: Y.value.left,
1216
+ stroke: H.value.style.chart.box.stroke,
1217
+ "stroke-width": H.value.style.chart.box.strokeWidth,
1218
+ "stroke-linejoin": "round",
1219
+ "stroke-linecap": "round",
1220
+ fill: "none"
1221
+ }, null, 8, Ct),
1222
+ C("path", {
1223
+ "stroke-dasharray": H.value.style.chart.box.strokeDasharray,
1224
+ d: Y.value.side,
1225
+ stroke: H.value.style.chart.box.stroke,
1226
+ "stroke-width": H.value.style.chart.box.strokeWidth,
1227
+ "stroke-linejoin": "round",
1228
+ "stroke-linecap": "round",
1229
+ fill: "none"
1230
+ }, null, 8, wt),
1231
+ C("path", {
1232
+ "stroke-dasharray": H.value.style.chart.box.strokeDasharray,
1233
+ d: Y.value.topSides,
1234
+ stroke: H.value.style.chart.box.stroke,
1235
+ "stroke-width": H.value.style.chart.box.strokeWidth,
1236
+ "stroke-linejoin": "round",
1237
+ "stroke-linecap": "round",
1238
+ fill: "none"
1239
+ }, null, 8, Tt)
1240
+ ])),
1241
+ K.value ? x("", !0) : (O(), S("g", Et, [
1242
+ C("path", {
1243
+ d: wr.value.right,
1244
+ stroke: H.value.style.chart.bar.stroke,
1245
+ "stroke-width": H.value.style.chart.bar.strokeWidth,
1246
+ "stroke-linejoin": "round",
1247
+ "stroke-linecap": "round",
1248
+ fill: `url(#gradient_right${I.value})`
1249
+ }, null, 8, Dt),
1250
+ C("path", {
1251
+ d: wr.value.left,
1252
+ stroke: H.value.style.chart.bar.stroke,
1253
+ "stroke-width": H.value.style.chart.bar.strokeWidth,
1254
+ "stroke-linejoin": "round",
1255
+ "stroke-linecap": "round",
1256
+ fill: `url(#gradient_left${I.value})`
1257
+ }, null, 8, Ot),
1258
+ C("path", {
1259
+ d: wr.value.top,
1260
+ stroke: H.value.style.chart.bar.stroke,
1261
+ "stroke-width": H.value.style.chart.bar.strokeWidth,
1262
+ "stroke-linejoin": "round",
1263
+ "stroke-linecap": "round",
1264
+ fill: `url(#gradient_top${I.value})`
1265
+ }, null, 8, kt)
1266
+ ])),
1267
+ K.value ? (O(), S("g", At, [
1268
+ (O(!0), S(v, null, A(J.value, (e, t) => (O(), S("g", {
1269
+ style: D(`opacity:${X.value ? X.value === e.id ? 1 : .3 : 1}`),
1270
+ class: "vue-ui-3d-bar-stack",
1271
+ role: "img",
1272
+ "aria-label": Gr(e)
1273
+ }, [
1274
+ C("path", {
1275
+ d: e.fill.right,
1276
+ fill: `url(#grad_right_${e.id})`,
1277
+ onMouseenter: (t) => Z(e),
1278
+ onClick: (t) => Z(e, !0),
1279
+ onMouseout: (t) => Q(e)
1280
+ }, null, 40, Mt),
1281
+ C("path", {
1282
+ d: e.fill.left,
1283
+ fill: `url(#grad_left_${e.id})`,
1284
+ onMouseenter: (t) => Z(e),
1285
+ onClick: (t) => Z(e, !0),
1286
+ onMouseout: (t) => Q(e)
1287
+ }, null, 40, Nt),
1288
+ C("path", {
1289
+ d: e.fill.top,
1290
+ fill: `url(#grad_top_${e.id})`,
1291
+ onMouseenter: (t) => Z(e),
1292
+ onClick: (t) => Z(e, !0),
1293
+ onMouseout: (t) => Q(e)
1294
+ }, null, 40, Pt),
1295
+ C("path", {
1296
+ d: e.fill.liningTop,
1297
+ stroke: "#FFFFFF",
1298
+ "stroke-width": "0.5",
1299
+ "stroke-linecap": "round",
1300
+ fill: "none",
1301
+ onMouseenter: (t) => Z(e),
1302
+ onClick: (t) => Z(e, !0),
1303
+ onMouseout: (t) => Q(e)
1304
+ }, null, 40, Ft),
1305
+ C("path", {
1306
+ d: `M ${e.fill.apexTop.x},${e.fill.apexTop.y} ${e.fill.apexBottom.x},${e.fill.apexBottom.y}`,
1307
+ stroke: "#FFFFFF",
1308
+ "stroke-width": "0.5",
1309
+ "stroke-linecap": "round"
1310
+ }, null, 8, It)
1311
+ ], 12, jt))), 256)),
1312
+ (O(!0), S(v, null, A(J.value, (e, t) => (O(), S("g", null, [t === J.value.length - 1 ? x("", !0) : (O(), S("path", {
1313
+ key: 0,
1314
+ d: e.fill.liningTopShade,
1315
+ stroke: H.value.style.chart.bar.shadeColor,
1316
+ "stroke-width": "0.5",
1317
+ "stroke-linecap": "round",
1318
+ fill: "none",
1319
+ style: { "pointer-events": "none" }
1320
+ }, null, 8, Lt))]))), 256)),
1321
+ (O(!0), S(v, null, A(J.value, (t, n) => (O(), S("g", {
1322
+ style: D(`opacity:${X.value ? +(X.value === t.id) : +(t.proportion * 100 > H.value.style.chart.legend.hideUnderPercentage)}`),
1323
+ onClick: (e) => Kn("selectDatapoint", t)
1324
+ }, [
1325
+ C("path", {
1326
+ stroke: H.value.style.chart.color,
1327
+ "stroke-dasharray": "1",
1328
+ "stroke-width": "0.5",
1329
+ "stroke-linecap": "round",
1330
+ d: `M${t.fill.sidePointer.x},${t.fill.sidePointer.y} ${t.fill.sidePointer.x2},${t.fill.sidePointer.y}`
1331
+ }, null, 8, zt),
1332
+ !t.fill.miniDonut || X.value ? (O(), S("circle", {
1333
+ key: 0,
1334
+ cx: t.fill.sidePointer.x2,
1335
+ cy: t.fill.sidePointer.y,
1336
+ r: 2,
1337
+ fill: t.color,
1338
+ stroke: H.value.style.chart.backgroundColor
1339
+ }, null, 8, Bt)) : x("", !0),
1340
+ N(U) ? (O(), S("rect", {
1341
+ key: 1,
1342
+ x: t.fill.sidePointer.xText,
1343
+ y: t.fill.sidePointer.y - H.value.style.chart.legend.fontSize / 2,
1344
+ width: q.value.width / 3,
1345
+ height: H.value.style.chart.legend.fontSize,
1346
+ fill: "#6A6A6A80",
1347
+ rx: "3"
1348
+ }, null, 8, Vt)) : x("", !0),
1349
+ N(U) ? x("", !0) : (O(), S("foreignObject", {
1350
+ key: 2,
1351
+ x: t.fill.sidePointer.xText,
1352
+ y: t.fill.sidePointer.y - H.value.style.chart.legend.fontSize,
1353
+ width: q.value.absoluteWidth / 3,
1354
+ height: H.value.style.chart.legend.fontSize * 2,
1355
+ style: {
1356
+ overflow: "visible",
1357
+ position: "relative"
1358
+ }
1359
+ }, [H.value.style.chart.legend.showDefault ? (O(), S("div", {
1360
+ key: 0,
1361
+ style: D(`height: 100%; width: 100%; display: flex; flex-direction: row; flex-wrap: wrap; align-items:center;justify-content: flex-start; font-size:${H.value.style.chart.legend.fontSize}px; text-align:left; line-height: ${H.value.style.chart.legend.fontSize}px; color:${H.value.style.chart.legend.color}; font-weight:${H.value.style.chart.legend.bold ? "bold" : "normal"}`)
1362
+ }, M(N(g)(H.value.style.chart.dataLabel.formatter, t.value, `${t.name}: ${N(r)({
1363
+ v: t.proportion * 100,
1364
+ s: "%",
1365
+ r: H.value.style.chart.legend.roundingPercentage
1366
+ })} (${N(r)({
1367
+ p: H.value.style.chart.legend.prefix,
1368
+ v: t.value,
1369
+ s: H.value.style.chart.legend.suffix,
1370
+ r: H.value.style.chart.legend.roundingValue
1371
+ })})`, {
1372
+ datapoint: t,
1373
+ seriesIndex: n,
1374
+ type: "barDatapoint"
1375
+ })), 5)) : x("", !0), j(e.$slots, "legend", we({ ref_for: !0 }, {
1376
+ datapoint: t,
1377
+ config: H.value,
1378
+ dataset: J.value
1379
+ }), void 0, !0)], 8, Ht)),
1380
+ t.fill.donut && X.value === t.id ? (O(), S("g", Ut, [
1381
+ (O(!0), S(v, null, A(t.fill.donut, (e, n) => (O(), S("g", null, [Tr(e, t.fill.donut, !0) > 6 ? (O(), S("path", {
1382
+ key: 0,
1383
+ d: N(ee)(e, {
1384
+ x: e.cx,
1385
+ y: e.cy
1386
+ }, 0, 8, !1, !0, 10),
1387
+ stroke: e.color,
1388
+ class: "vue-ui-donut-arc-path",
1389
+ "stroke-width": "0.5",
1390
+ "stroke-linecap": "round",
1391
+ "stroke-linejoin": "round",
1392
+ fill: "none"
1393
+ }, null, 8, Wt)) : x("", !0)]))), 256)),
1394
+ (O(!0), S(v, null, A(t.fill.donut, (e, t) => (O(), S("path", {
1395
+ class: "vue-ui-donut-arc-path",
1396
+ d: e.arcSlice,
1397
+ fill: `${e.color}`,
1398
+ stroke: H.value.style.chart.backgroundColor,
1399
+ "stroke-width": 1
1400
+ }, null, 8, Gt))), 256)),
1401
+ (O(!0), S(v, null, A(t.fill.donut, (e, n) => (O(), S("g", null, [Tr(e, t.fill.donut, !0) > 6 ? (O(), S("g", Kt, [C("text", {
1402
+ "text-anchor": N(_)(e, !0, 0).anchor,
1403
+ x: N(_)(e, !0, 2).x,
1404
+ y: N(h)(e, 12, 12),
1405
+ fill: H.value.style.chart.legend.color,
1406
+ "font-size": H.value.style.chart.legend.fontSize / 1.5,
1407
+ "font-weight": H.value.style.chart.legend.bold ? "bold" : "normal"
1408
+ }, M(N(g)(H.value.style.chart.dataLabel.formatter, e.value, `${Tr(e, t.fill.donut)} (${N(r)({
1409
+ p: H.value.style.chart.legend.prefix,
1410
+ v: e.value,
1411
+ s: H.value.style.chart.legend.suffix,
1412
+ r: H.value.style.chart.legend.roundingValue
1413
+ })})`, {
1414
+ datapoint: e,
1415
+ seriesIndex: n,
1416
+ type: "donutDatapoint"
1417
+ })), 9, qt), C("text", {
1418
+ "text-anchor": N(_)(e).anchor,
1419
+ x: N(_)(e, !0, 2).x,
1420
+ y: N(h)(e, 12, 12) + H.value.style.chart.legend.fontSize / 1.5,
1421
+ fill: H.value.style.chart.legend.color,
1422
+ "font-size": H.value.style.chart.legend.fontSize / 1.5,
1423
+ "font-weight": H.value.style.chart.legend.bold ? "bold" : "normal"
1424
+ }, M(e.name), 9, Jt)])) : x("", !0)]))), 256))
1425
+ ])) : x("", !0),
1426
+ t.fill.miniDonut && !X.value ? (O(), S("g", Yt, [(O(!0), S(v, null, A(t.fill.miniDonut, (e, t) => (O(), S("path", {
1427
+ class: "vue-ui-donut-arc-path",
1428
+ d: e.arcSlice,
1429
+ fill: `${e.color}`,
1430
+ stroke: H.value.style.chart.backgroundColor,
1431
+ "stroke-width": .5
1432
+ }, null, 8, Xt))), 256))])) : x("", !0)
1433
+ ], 12, Rt))), 256))
1434
+ ])) : x("", !0)
1435
+ ])) : x("", !0),
1436
+ H.value.style.shape === "tube" ? (O(), S("g", Zt, [K.value ? x("", !0) : (O(), S("g", Qt, [
1437
+ C("path", {
1438
+ "stroke-dasharray": H.value.style.chart.box.strokeDasharray,
1439
+ d: Y.value.tubeTop,
1440
+ stroke: H.value.style.chart.box.stroke,
1441
+ "stroke-width": H.value.style.chart.box.strokeWidth,
1442
+ "stroke-linejoin": "round",
1443
+ "stroke-linecap": "round",
1444
+ fill: "none"
1445
+ }, null, 8, $t),
1446
+ C("path", {
1447
+ "stroke-dasharray": H.value.style.chart.box.strokeDasharray,
1448
+ d: Y.value.tubeLeft,
1449
+ stroke: H.value.style.chart.box.stroke,
1450
+ "stroke-width": H.value.style.chart.box.strokeWidth,
1451
+ "stroke-linejoin": "round",
1452
+ "stroke-linecap": "round",
1453
+ fill: "none"
1454
+ }, null, 8, en),
1455
+ C("path", {
1456
+ "stroke-dasharray": H.value.style.chart.box.strokeDasharray,
1457
+ d: Y.value.tubeRight,
1458
+ stroke: H.value.style.chart.box.stroke,
1459
+ "stroke-width": H.value.style.chart.box.strokeWidth,
1460
+ "stroke-linejoin": "round",
1461
+ "stroke-linecap": "round",
1462
+ fill: "none"
1463
+ }, null, 8, tn),
1464
+ C("path", {
1465
+ "stroke-dasharray": H.value.style.chart.box.strokeDasharray,
1466
+ d: Y.value.tubeBottom,
1467
+ stroke: H.value.style.chart.box.stroke,
1468
+ "stroke-width": H.value.style.chart.box.strokeWidth,
1469
+ "stroke-linejoin": "round",
1470
+ "stroke-linecap": "round",
1471
+ fill: "none"
1472
+ }, null, 8, nn),
1473
+ C("path", {
1474
+ d: wr.value.tubeTop,
1475
+ stroke: H.value.style.chart.bar.stroke,
1476
+ "stroke-width": H.value.style.chart.bar.strokeWidth,
1477
+ "stroke-linejoin": "round",
1478
+ "stroke-linecap": "round",
1479
+ fill: `url(#gradient_tube_top${I.value})`
1480
+ }, null, 8, rn),
1481
+ C("path", {
1482
+ d: wr.value.tubeBody,
1483
+ stroke: H.value.style.chart.bar.stroke,
1484
+ "stroke-width": H.value.style.chart.bar.strokeWidth,
1485
+ "stroke-linejoin": "round",
1486
+ "stroke-linecap": "round",
1487
+ fill: `url(#gradient_tube_body${I.value})`
1488
+ }, null, 8, an),
1489
+ C("path", {
1490
+ d: wr.value.tubeTop,
1491
+ stroke: "#FFFFFF",
1492
+ "stroke-width": .5,
1493
+ "stroke-linejoin": "round",
1494
+ "stroke-linecap": "round",
1495
+ fill: "none"
1496
+ }, null, 8, on)
1497
+ ])), K.value ? (O(), S("g", sn, [(O(!0), S(v, null, A(J.value, (e, t) => (O(), S("g", {
1498
+ style: D(`opacity:${X.value ? X.value === e.id ? 1 : .3 : 1}`),
1499
+ class: "vue-ui-3d-bar-stack",
1500
+ role: "img",
1501
+ "aria-label": Gr(e)
1502
+ }, [
1503
+ C("defs", null, [C("radialGradient", {
1504
+ id: `gradient_tube_top_${e.id}`,
1505
+ fx: "10%",
1506
+ cy: "55%"
1507
+ }, [C("stop", {
1508
+ offset: "0%",
1509
+ "stop-color": N(c)(N(u)(e.color, .5), 80)
1510
+ }, null, 8, un), C("stop", {
1511
+ offset: "100%",
1512
+ "stop-color": N(c)(N(f)(e.color, .1), 80)
1513
+ }, null, 8, dn)], 8, ln), C("linearGradient", {
1514
+ id: `gradient_tube_body_${e.id}`,
1515
+ x1: "0%",
1516
+ y1: "0%",
1517
+ x2: "100%",
1518
+ y2: "0%"
1519
+ }, [
1520
+ C("stop", {
1521
+ offset: "0%",
1522
+ "stop-color": `${e.color}`
1523
+ }, null, 8, pn),
1524
+ C("stop", {
1525
+ offset: "10%",
1526
+ "stop-color": N(c)(N(f)(e.color, .7), 100)
1527
+ }, null, 8, mn),
1528
+ C("stop", {
1529
+ offset: "25%",
1530
+ "stop-color": N(c)(N(f)(e.color, .5), 100)
1531
+ }, null, 8, hn),
1532
+ C("stop", {
1533
+ offset: "75%",
1534
+ "stop-color": N(c)(e.color, 80)
1535
+ }, null, 8, gn),
1536
+ C("stop", {
1537
+ offset: "100%",
1538
+ "stop-color": N(c)(N(u)(e.color, .7), 100)
1539
+ }, null, 8, _n)
1540
+ ], 8, fn)]),
1541
+ C("path", {
1542
+ onMouseenter: (t) => Z(e),
1543
+ onClick: (t) => Z(e, !0),
1544
+ onMouseout: (t) => Q(e),
1545
+ d: e.fill.tubeBody,
1546
+ stroke: "#FFFFFF",
1547
+ "stroke-width": .5,
1548
+ "stroke-linejoin": "round",
1549
+ "stroke-linecap": "round",
1550
+ fill: `url(#gradient_tube_body_${e.id})`
1551
+ }, null, 40, vn),
1552
+ t > 0 ? (O(), S("path", {
1553
+ key: 0,
1554
+ onMouseenter: (t) => Z(e),
1555
+ onClick: (t) => Z(e, !0),
1556
+ onMouseout: (t) => Q(e),
1557
+ d: e.fill.bottomTubeTop,
1558
+ stroke: "#000000",
1559
+ "stroke-width": .5,
1560
+ "stroke-linejoin": "round",
1561
+ "stroke-linecap": "round",
1562
+ fill: "none"
1563
+ }, null, 40, yn)) : x("", !0),
1564
+ C("path", {
1565
+ onMouseenter: (t) => Z(e),
1566
+ onClick: (t) => Z(e, !0),
1567
+ onMouseout: (t) => Q(e),
1568
+ d: e.fill.tubeTop,
1569
+ stroke: "#FFFFFF",
1570
+ "stroke-width": .5,
1571
+ "stroke-linejoin": "round",
1572
+ "stroke-linecap": "round",
1573
+ fill: `url(#gradient_tube_top_${e.id})`
1574
+ }, null, 40, bn)
1575
+ ], 12, cn))), 256)), (O(!0), S(v, null, A(J.value, (t, n) => (O(), S("g", {
1576
+ style: D(`opacity:${X.value ? +(X.value === t.id) : +(t.proportion * 100 > H.value.style.chart.legend.hideUnderPercentage)}`),
1577
+ onClick: (e) => Kn("selectDatapoint", t)
1578
+ }, [
1579
+ C("path", {
1580
+ stroke: H.value.style.chart.color,
1581
+ "stroke-dasharray": "1",
1582
+ "stroke-width": "0.5",
1583
+ "stroke-linecap": "round",
1584
+ d: `M${t.fill.sidePointer.x},${t.fill.sidePointer.y} ${t.fill.sidePointer.x2},${t.fill.sidePointer.y}`
1585
+ }, null, 8, Sn),
1586
+ !t.fill.miniDonut || X.value ? (O(), S("circle", {
1587
+ key: 0,
1588
+ cx: t.fill.sidePointer.x2,
1589
+ cy: t.fill.sidePointer.y,
1590
+ r: 2,
1591
+ fill: t.color,
1592
+ stroke: H.value.style.chart.backgroundColor
1593
+ }, null, 8, Cn)) : x("", !0),
1594
+ N(U) ? (O(), S("rect", {
1595
+ key: 1,
1596
+ x: t.fill.sidePointer.xText,
1597
+ y: t.fill.sidePointer.y - H.value.style.chart.legend.fontSize / 2,
1598
+ width: q.value.width / 3,
1599
+ height: H.value.style.chart.legend.fontSize,
1600
+ fill: "#6A6A6A80",
1601
+ rx: "3"
1602
+ }, null, 8, wn)) : x("", !0),
1603
+ N(U) ? x("", !0) : (O(), S("foreignObject", {
1604
+ key: 2,
1605
+ x: t.fill.sidePointer.xText,
1606
+ y: t.fill.sidePointer.y - H.value.style.chart.legend.fontSize,
1607
+ width: q.value.absoluteWidth / 3,
1608
+ height: H.value.style.chart.legend.fontSize * 2,
1609
+ style: {
1610
+ overflow: "visible",
1611
+ position: "relative"
1612
+ }
1613
+ }, [H.value.style.chart.legend.showDefault ? (O(), S("div", {
1614
+ key: 0,
1615
+ style: D(`height: 100%; width: 100%; display: flex; flex-direction: row; flex-wrap: wrap; align-items:center;justify-content: flex-start; font-size:${H.value.style.chart.legend.fontSize}px; text-align:left; line-height: ${H.value.style.chart.legend.fontSize}px; color:${H.value.style.chart.legend.color};font-weight:${H.value.style.chart.legend.bold ? "bold" : "normal"}`)
1616
+ }, M(N(g)(H.value.style.chart.dataLabel.formatter, t.value, `${t.name}: ${N(r)({
1617
+ v: t.proportion * 100,
1618
+ s: "%",
1619
+ r: H.value.style.chart.legend.roundingPercentage
1620
+ })} (${N(r)({
1621
+ p: H.value.style.chart.legend.prefix,
1622
+ v: t.value,
1623
+ s: H.value.style.chart.legend.suffix,
1624
+ r: H.value.style.chart.legend.roundingValue
1625
+ })})`, {
1626
+ datapoint: t,
1627
+ seriesIndex: n,
1628
+ type: "barDatapoint"
1629
+ })), 5)) : x("", !0), j(e.$slots, "legend", we({ ref_for: !0 }, {
1630
+ datapoint: t,
1631
+ config: H.value,
1632
+ dataset: J.value
1633
+ }), void 0, !0)], 8, Tn)),
1634
+ t.fill.donut && X.value === t.id ? (O(), S("g", En, [
1635
+ (O(!0), S(v, null, A(t.fill.donut, (e, n) => (O(), S("g", null, [Tr(e, t.fill.donut, !0) > 6 ? (O(), S("path", {
1636
+ key: 0,
1637
+ d: N(ee)(e, {
1638
+ x: e.cx,
1639
+ y: e.cy
1640
+ }, 0, 8, !1, !0, 10),
1641
+ stroke: e.color,
1642
+ class: "vue-ui-donut-arc-path",
1643
+ "stroke-width": "0.5",
1644
+ "stroke-linecap": "round",
1645
+ "stroke-linejoin": "round",
1646
+ fill: "none"
1647
+ }, null, 8, Dn)) : x("", !0)]))), 256)),
1648
+ (O(!0), S(v, null, A(t.fill.donut, (e, t) => (O(), S("path", {
1649
+ class: "vue-ui-donut-arc-path",
1650
+ d: e.arcSlice,
1651
+ fill: `${e.color}`,
1652
+ stroke: H.value.style.chart.backgroundColor,
1653
+ "stroke-width": 1
1654
+ }, null, 8, On))), 256)),
1655
+ (O(!0), S(v, null, A(t.fill.donut, (e, n) => (O(), S("g", null, [Tr(e, t.fill.donut, !0) > 6 ? (O(), S("g", kn, [C("text", {
1656
+ "text-anchor": N(_)(e, !0, 0).anchor,
1657
+ x: N(_)(e, !0, 2).x,
1658
+ y: N(h)(e, 12, 12),
1659
+ fill: H.value.style.chart.legend.color,
1660
+ "font-size": H.value.style.chart.legend.fontSize / 1.5,
1661
+ "font-weight": H.value.style.chart.legend.bold ? "bold" : "normal"
1662
+ }, M(N(g)(H.value.style.chart.dataLabel.formatter, e.value, `${Tr(e, t.fill.donut)} (${N(r)({
1663
+ p: H.value.style.chart.legend.prefix,
1664
+ v: e.value,
1665
+ s: H.value.style.chart.legend.suffix,
1666
+ r: H.value.style.chart.legend.roundingValue
1667
+ })})`, {
1668
+ datapoint: e,
1669
+ seriesIndex: n,
1670
+ type: "donutDatapoint"
1671
+ })), 9, An), C("text", {
1672
+ "text-anchor": N(_)(e).anchor,
1673
+ x: N(_)(e, !0, 2).x,
1674
+ y: N(h)(e, 12, 12) + H.value.style.chart.legend.fontSize / 1.5,
1675
+ fill: H.value.style.chart.legend.color,
1676
+ "font-size": H.value.style.chart.legend.fontSize / 1.5,
1677
+ "font-weight": H.value.style.chart.legend.bold ? "bold" : "normal"
1678
+ }, M(e.name), 9, jn)])) : x("", !0)]))), 256))
1679
+ ])) : x("", !0),
1680
+ t.fill.miniDonut && !X.value ? (O(), S("g", Mn, [(O(!0), S(v, null, A(t.fill.miniDonut, (e, t) => (O(), S("path", {
1681
+ class: "vue-ui-donut-arc-path",
1682
+ d: e.arcSlice,
1683
+ fill: `${e.color}`,
1684
+ stroke: H.value.style.chart.backgroundColor,
1685
+ "stroke-width": .5
1686
+ }, null, 8, Nn))), 256))])) : x("", !0)
1687
+ ], 12, xn))), 256))])) : x("", !0)])) : x("", !0),
1688
+ j(e.$slots, "svg", { svg: {
1689
+ ...q.value,
1690
+ isPrintingImg: N(dr) || N(fr) || rr.value,
1691
+ isPrintingSvg: nr.value
1692
+ } }, void 0, !0)
1693
+ ], 46, Re))]),
1694
+ e.$slots.watermark ? (O(), S("div", Pn, [j(e.$slots, "watermark", E(T({ isPrinting: N(dr) || N(fr) || nr.value || rr.value })), void 0, !0)])) : x("", !0),
1695
+ e.$slots.source ? (O(), S("div", {
1696
+ key: 5,
1697
+ ref_key: "source",
1698
+ ref: $n,
1699
+ dir: "auto"
1700
+ }, [j(e.$slots, "source", {}, void 0, !0)], 512)) : x("", !0),
1701
+ qn.value && K.value && H.value.userOptions.buttons.table ? (O(), b(Oe(Ir.value.component), we({ key: 6 }, Ir.value.props, {
1702
+ ref_key: "tableUnit",
1703
+ ref: er,
1704
+ onClose: Lr
1705
+ }), xe({
1706
+ content: P(() => [(O(), b(N(Rn), {
1707
+ key: `table_${Yn.value}`,
1708
+ colNames: jr.value.colNames,
1709
+ head: jr.value.head,
1710
+ body: jr.value.body,
1711
+ config: jr.value.config,
1712
+ title: H.value.table.useDialog ? "" : Ir.value.title,
1713
+ withCloseButton: !H.value.table.useDialog,
1714
+ isCursorPointer: ir.value,
1715
+ onClose: Lr
1716
+ }, {
1717
+ th: P(({ th: e }) => [C("div", {
1718
+ innerHTML: e,
1719
+ style: {
1720
+ display: "flex",
1721
+ "align-items": "center"
1722
+ }
1723
+ }, null, 8, Fn)]),
1724
+ td: P(({ td: e }) => [Se(M(e.name || e), 1)]),
1725
+ _: 1
1726
+ }, 8, [
1727
+ "colNames",
1728
+ "head",
1729
+ "body",
1730
+ "config",
1731
+ "title",
1732
+ "withCloseButton",
1733
+ "isCursorPointer"
1734
+ ]))]),
1735
+ _: 2
1736
+ }, [H.value.table.useDialog ? {
1737
+ name: "title",
1738
+ fn: P(() => [Se(M(Ir.value.title), 1)]),
1739
+ key: "0"
1740
+ } : void 0, H.value.table.useDialog ? {
1741
+ name: "actions",
1742
+ fn: P(() => [C("button", {
1743
+ tabindex: "0",
1744
+ class: "vue-ui-user-options-button",
1745
+ onClick: t[7] ||= (e) => Ar(H.value.userOptions.callbacks.csv)
1746
+ }, [Ce(N(In), {
1747
+ name: "fileCsv",
1748
+ stroke: Ir.value.props.color
1749
+ }, null, 8, ["stroke"])])]),
1750
+ key: "1"
1751
+ } : void 0]), 1040)) : x("", !0),
1752
+ j(e.$slots, "skeleton", {}, () => [N(U) ? (O(), b(ce, { key: 0 })) : x("", !0)], !0)
1753
+ ], 44, Pe));
1754
+ }
1755
+ }, [["__scopeId", "data-v-53214ae6"]]);
1756
+ //#endregion
1757
+ export { Ne as n, In as t };