vue-data-ui 3.25.5 → 3.25.6

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