vue-data-ui 3.0.23 → 3.1.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 (108) hide show
  1. package/dist/{Arrow-B1Op9F3x.js → Arrow-DvG07exK.js} +1 -1
  2. package/dist/{BaseDraggableDialog-B4OaMIom.js → BaseDraggableDialog-O7900pGp.js} +72 -59
  3. package/dist/{BaseIcon-CgUOIGjr.js → BaseIcon-DHtro8us.js} +1 -1
  4. package/dist/{useLoading-D7YHNtLX.js → BaseScanner-BgWxam9d.js} +11 -11
  5. package/dist/{ColorPicker-C0nf8VH0.js → ColorPicker-CpWzNn4r.js} +2 -2
  6. package/dist/DataTable-DJjA2_wf.js +140 -0
  7. package/dist/{Legend-CyYXMSsW.js → Legend-2-dC7DVb.js} +2 -2
  8. package/dist/{NonSvgPenAndPaper-D63qeScu.js → NonSvgPenAndPaper-DHeE4Yuv.js} +3 -3
  9. package/dist/{PackageVersion-B6M-3jRt.js → PackageVersion-DU12WH3O.js} +1 -1
  10. package/dist/{PenAndPaper-zym5uEeN.js → PenAndPaper-B7QEDgx4.js} +3 -3
  11. package/dist/{Shape-CYVs2kYz.js → Shape-Dj2Hl33H.js} +1 -1
  12. package/dist/{Slicer-BTIFUO4x.js → Slicer-D99HytqX.js} +2 -2
  13. package/dist/{SparkTooltip-CNz7AYUL.js → SparkTooltip-B-wL07rI.js} +1 -1
  14. package/dist/{Title-D_e0SFWS.js → Title-Dq2_Z9kR.js} +1 -1
  15. package/dist/{Tooltip-DjVoFYj1.js → Tooltip-Y219DXZO.js} +1 -1
  16. package/dist/{UserOptions-z0NWZ7aQ.js → UserOptions-BuGfCdAY.js} +2 -2
  17. package/dist/{dom-to-png-DD0au3Qz.js → dom-to-png-BhciAKaM.js} +1 -1
  18. package/dist/{img-z5p1gGfY.js → img-JOqdlnUs.js} +1 -1
  19. package/dist/{index-BEuUtONc.js → index-CDQbCd41.js} +37 -2
  20. package/dist/{pdf-BmUjVBni.js → pdf-Dd-LIJqz.js} +1 -1
  21. package/dist/style.css +1 -1
  22. package/dist/types/vue-data-ui.d.cts +35 -0
  23. package/dist/types/vue-data-ui.d.ts +35 -0
  24. package/dist/{useAutoSizeLabelsInsideViewbox-CchB8S-o.js → useAutoSizeLabelsInsideViewbox-Bky5KGFZ.js} +1 -1
  25. package/dist/{useNestedProp-DhLFhguL.js → useNestedProp-BPEHGiYX.js} +1 -1
  26. package/dist/{usePrinter-DiB0_UNt.js → usePrinter-Bnl1YeUU.js} +2 -2
  27. package/dist/{vue-data-ui-DJIAas-7.js → vue-data-ui-DcNYz3cZ.js} +64 -64
  28. package/dist/vue-data-ui.js +1 -1
  29. package/dist/vue-ui-3d-bar-BNIFAeN-.js +1369 -0
  30. package/dist/{vue-ui-accordion-B4YfUjZ5.js → vue-ui-accordion-Bf_LHFFX.js} +3 -3
  31. package/dist/{vue-ui-age-pyramid-CkXXNN79.js → vue-ui-age-pyramid-Bz-l1afR.js} +333 -286
  32. package/dist/{vue-ui-annotator-DnSsIkvU.js → vue-ui-annotator-BcfRH2BF.js} +2 -2
  33. package/dist/{vue-ui-bullet-kZkBsWPY.js → vue-ui-bullet-DK1aM9fX.js} +8 -8
  34. package/dist/{vue-ui-candlestick-CIn0xZm0.js → vue-ui-candlestick-D6mMjvtu.js} +453 -406
  35. package/dist/{vue-ui-carousel-table-f1FDOAqH.js → vue-ui-carousel-table-Vp5f238W.js} +4 -4
  36. package/dist/{vue-ui-chestnut-B-jSj7FT.js → vue-ui-chestnut-BKc4v-lf.js} +509 -459
  37. package/dist/vue-ui-chord-CquhRjf0.js +1100 -0
  38. package/dist/vue-ui-circle-pack-D6zLgxa3.js +755 -0
  39. package/dist/{vue-ui-cursor-DdBrui6i.js → vue-ui-cursor-DIXb2S93.js} +2 -2
  40. package/dist/{vue-ui-dashboard-DSUfW7mI.js → vue-ui-dashboard-DmiriAK7.js} +62 -62
  41. package/dist/{vue-ui-digits-Cb3Wq5WR.js → vue-ui-digits-CLAIo9gW.js} +2 -2
  42. package/dist/{vue-ui-donut-BCZqlAO3.js → vue-ui-donut-C8h_tCSO.js} +477 -431
  43. package/dist/{vue-ui-donut-evolution-HmQBq9VP.js → vue-ui-donut-evolution-C3r0YhKz.js} +482 -435
  44. package/dist/{vue-ui-dumbbell-B5w2oqNO.js → vue-ui-dumbbell-D-t4M00E.js} +443 -398
  45. package/dist/vue-ui-flow-D7_D_UNm.js +900 -0
  46. package/dist/vue-ui-funnel-B0QOfZRz.js +666 -0
  47. package/dist/vue-ui-galaxy-Ccw5uNes.js +744 -0
  48. package/dist/{vue-ui-gauge-C_KLPWk2.js → vue-ui-gauge-DvW7nFmK.js} +8 -8
  49. package/dist/{vue-ui-gizmo-CsPX25Ti.js → vue-ui-gizmo-WGQxvGPy.js} +4 -4
  50. package/dist/vue-ui-heatmap-BQkLujyp.js +1127 -0
  51. package/dist/{vue-ui-history-plot-DgpYiaUD.js → vue-ui-history-plot-eU33r_Ot.js} +408 -361
  52. package/dist/{vue-ui-kpi-DOgibU7W.js → vue-ui-kpi-CKg2i71M.js} +3 -3
  53. package/dist/{vue-ui-mini-loader-BjsQAxDx.js → vue-ui-mini-loader-BmkGQsm_.js} +2 -2
  54. package/dist/vue-ui-molecule-Dlu0hjSg.js +702 -0
  55. package/dist/{vue-ui-mood-radar-DMwVl3wz.js → vue-ui-mood-radar-DQaxfw9R.js} +342 -291
  56. package/dist/{vue-ui-nested-donuts-H0GzIAF0.js → vue-ui-nested-donuts-Djj9Aw_i.js} +548 -502
  57. package/dist/{vue-ui-onion-A6nKcus1.js → vue-ui-onion-ZgsErXis.js} +363 -317
  58. package/dist/vue-ui-parallel-coordinate-plot-B5fB22Jc.js +979 -0
  59. package/dist/vue-ui-quadrant-CMevCtXH.js +1483 -0
  60. package/dist/{vue-ui-quick-chart-mwXE3w_o.js → vue-ui-quick-chart-DcparKSX.js} +7 -7
  61. package/dist/vue-ui-radar-DFbxoKCK.js +858 -0
  62. package/dist/{vue-ui-rating-CleNHFo5.js → vue-ui-rating-ZUpxCWrk.js} +2 -2
  63. package/dist/{vue-ui-relation-circle-CMCH7Ia6.js → vue-ui-relation-circle-eNKJY4Sx.js} +8 -8
  64. package/dist/vue-ui-ridgeline-D4shpQZd.js +1204 -0
  65. package/dist/vue-ui-rings-TdTHMbsa.js +785 -0
  66. package/dist/{vue-ui-scatter-kv28dsT3.js → vue-ui-scatter-CVuV9ljU.js} +594 -548
  67. package/dist/{vue-ui-skeleton-DCNOYh9x.js → vue-ui-skeleton-CFxBU2-p.js} +3 -3
  68. package/dist/{vue-ui-smiley-DcS0CM-z.js → vue-ui-smiley-Har3B3aQ.js} +2 -2
  69. package/dist/{vue-ui-spark-trend-LHgReXth.js → vue-ui-spark-trend-FPk-XEwI.js} +4 -4
  70. package/dist/{vue-ui-sparkbar-Da315uRq.js → vue-ui-sparkbar-V3eJ0w0t.js} +4 -4
  71. package/dist/{vue-ui-sparkgauge-BeAkjGap.js → vue-ui-sparkgauge-DKTGkWnJ.js} +4 -4
  72. package/dist/{vue-ui-sparkhistogram-Cy19W3y1.js → vue-ui-sparkhistogram-DJsgFwHs.js} +5 -5
  73. package/dist/{vue-ui-sparkline-IjlQWgs3.js → vue-ui-sparkline-Dmrm5SL5.js} +4 -4
  74. package/dist/{vue-ui-sparkstackbar-CoFgOa3r.js → vue-ui-sparkstackbar-B0Pl7VMI.js} +4 -4
  75. package/dist/{vue-ui-stackbar-fbCs4sHF.js → vue-ui-stackbar-CNsgBPhj.js} +525 -479
  76. package/dist/{vue-ui-strip-plot-Cm8Zr6RE.js → vue-ui-strip-plot-CYAWwYOM.js} +390 -343
  77. package/dist/{vue-ui-table-q7jWgS26.js → vue-ui-table-Dn6H98rP.js} +3 -3
  78. package/dist/{vue-ui-table-heatmap-CsK9gR1G.js → vue-ui-table-heatmap-COI9LRqC.js} +5 -5
  79. package/dist/{vue-ui-table-sparkline-CXTPucPr.js → vue-ui-table-sparkline-B7Gg5FfJ.js} +4 -4
  80. package/dist/{vue-ui-thermometer-BFxdNgrd.js → vue-ui-thermometer-Bgynq5El.js} +8 -8
  81. package/dist/{vue-ui-timer-BsoeDFjK.js → vue-ui-timer-CXng51v5.js} +5 -5
  82. package/dist/{vue-ui-tiremarks-BW_jSayT.js → vue-ui-tiremarks-Cy1U3hO1.js} +7 -7
  83. package/dist/vue-ui-treemap-BsvIvRmE.js +1092 -0
  84. package/dist/{vue-ui-vertical-bar-OrLV4CxH.js → vue-ui-vertical-bar-DHqWeDIf.js} +512 -464
  85. package/dist/{vue-ui-waffle-BA6rNfVs.js → vue-ui-waffle-D1Mscj3N.js} +416 -370
  86. package/dist/{vue-ui-wheel-B_BkI-5f.js → vue-ui-wheel-DpV-N5tF.js} +7 -7
  87. package/dist/vue-ui-word-cloud-MaNQ3Kdk.js +811 -0
  88. package/dist/{vue-ui-world-B4mKuSSn.js → vue-ui-world-DYz6zw3x.js} +512 -466
  89. package/dist/{vue-ui-xy-m1SWJk77.js → vue-ui-xy-B1nqNbzw.js} +1551 -1500
  90. package/dist/vue-ui-xy-canvas-D4wd-Asd.js +1291 -0
  91. package/package.json +1 -1
  92. package/dist/DataTable-nO6ydJO2.js +0 -133
  93. package/dist/vue-ui-3d-bar-B56WqLJ-.js +0 -1323
  94. package/dist/vue-ui-chord-Ck4yV3Tb.js +0 -1049
  95. package/dist/vue-ui-circle-pack-BAfRk_Hd.js +0 -709
  96. package/dist/vue-ui-flow-BXkxtUoF.js +0 -852
  97. package/dist/vue-ui-funnel-DFvDO--q.js +0 -620
  98. package/dist/vue-ui-galaxy-BXNLLc3U.js +0 -691
  99. package/dist/vue-ui-heatmap-BHq6hBaL.js +0 -1078
  100. package/dist/vue-ui-molecule-BtyMTwEn.js +0 -656
  101. package/dist/vue-ui-parallel-coordinate-plot-DZ9_0F5c.js +0 -927
  102. package/dist/vue-ui-quadrant-CUggSeUN.js +0 -1432
  103. package/dist/vue-ui-radar-BRKZ8e_X.js +0 -807
  104. package/dist/vue-ui-ridgeline-xW7UrSfR.js +0 -1157
  105. package/dist/vue-ui-rings-D3NfFMaO.js +0 -739
  106. package/dist/vue-ui-treemap-DhAYSVB9.js +0 -1046
  107. package/dist/vue-ui-word-cloud-CrSLGFOK.js +0 -765
  108. package/dist/vue-ui-xy-canvas-CX2JT6T3.js +0 -1243
@@ -0,0 +1,1369 @@
1
+ import { defineAsyncComponent as H, computed as A, ref as _, toRefs as xt, watch as be, onMounted as wt, createElementBlock as c, openBlock as u, unref as n, normalizeStyle as z, normalizeClass as Xe, createBlock as Q, createCommentVNode as p, createSlots as Ze, withCtx as S, renderSlot as T, normalizeProps as de, guardReactiveProps as ce, createVNode as qe, createElementVNode as i, Fragment as C, renderList as M, toDisplayString as I, withKeys as Ye, withModifiers as Ke, mergeProps as xe, resolveDynamicComponent as Ct, createTextVNode as Je, nextTick as Qe } from "vue";
2
+ import { u as Mt, c as et, t as Ft, a as Pt, p as ve, b as Tt, d as Dt, e as At, o as St, f as he, g as we, l as R, m as tt, h as Bt, i as B, X as Ot, s as $, j as X, k as fe, n as lt, q as pe, r as V, v as jt, w as zt } from "./index-CDQbCd41.js";
3
+ import { t as It, u as Nt } from "./useResponsive-DfdjqQps.js";
4
+ import { u as Lt, B as Wt } from "./BaseScanner-BgWxam9d.js";
5
+ import { u as Et } from "./usePrinter-Bnl1YeUU.js";
6
+ import { u as ot } from "./useNestedProp-BPEHGiYX.js";
7
+ import { u as Gt } from "./useUserOptionState-BIvW1Kz7.js";
8
+ import { u as Rt } from "./useChartAccessibility-9icAAmYg.js";
9
+ import Vt from "./img-JOqdlnUs.js";
10
+ import Ut from "./Title-Dq2_Z9kR.js";
11
+ import { _ as Ht } from "./_plugin-vue_export-helper-CHgC5LLL.js";
12
+ const Xt = ["id"], Zt = ["xmlns", "viewBox"], qt = ["width", "height"], Yt = ["id"], Kt = ["stop-color"], Jt = ["stop-color"], Qt = ["id"], el = ["stop-color"], tl = ["stop-color"], ll = ["id"], ol = ["stop-color"], sl = ["stop-color"], al = ["id"], nl = ["stop-color"], rl = ["stop-color"], ul = ["id"], il = ["stop-color"], dl = ["stop-color"], cl = ["stop-color"], vl = ["stop-color"], hl = ["stop-color"], fl = { key: 1 }, pl = ["id"], yl = ["stop-color"], kl = ["stop-color"], gl = ["id"], $l = ["stop-color"], _l = ["stop-color"], ml = ["id"], bl = ["stop-color"], xl = ["stop-color"], wl = ["id"], Cl = ["x", "y", "font-size", "font-weight", "fill"], Ml = ["x", "y"], Fl = ["cx", "cy", "stroke", "opacity"], Pl = ["d", "stroke"], Tl = ["d", "stroke"], Dl = { key: 4 }, Al = { key: 0 }, Sl = ["stroke-dasharray", "d", "stroke", "stroke-width"], Bl = ["stroke-dasharray", "d", "stroke", "stroke-width"], Ol = ["stroke-dasharray", "d", "stroke", "stroke-width"], jl = ["stroke-dasharray", "d", "stroke", "stroke-width"], zl = { key: 1 }, Il = ["d", "stroke", "stroke-width", "fill"], Nl = ["d", "stroke", "stroke-width", "fill"], Ll = ["d", "stroke", "stroke-width", "fill"], Wl = { key: 2 }, El = ["d", "fill", "onMouseenter", "onClick", "onMouseout"], Gl = ["d", "fill", "onMouseenter", "onClick", "onMouseout"], Rl = ["d", "fill", "onMouseenter", "onClick", "onMouseout"], Vl = ["d", "onMouseenter", "onClick", "onMouseout"], Ul = ["d"], Hl = ["d", "stroke"], Xl = ["onClick"], Zl = ["stroke", "d"], ql = ["cx", "cy", "fill", "stroke"], Yl = ["x", "y", "width", "height"], Kl = ["x", "y", "width", "height"], Jl = { key: 3 }, Ql = ["d", "stroke"], eo = ["d", "fill", "stroke"], to = { key: 0 }, lo = ["text-anchor", "x", "y", "fill", "font-size"], oo = ["text-anchor", "x", "y", "fill", "font-size"], so = { key: 4 }, ao = ["d", "fill", "stroke"], no = { key: 5 }, ro = { key: 0 }, uo = ["stroke-dasharray", "d", "stroke", "stroke-width"], io = ["stroke-dasharray", "d", "stroke", "stroke-width"], co = ["stroke-dasharray", "d", "stroke", "stroke-width"], vo = ["stroke-dasharray", "d", "stroke", "stroke-width"], ho = ["d", "stroke", "stroke-width", "fill"], fo = ["d", "stroke", "stroke-width", "fill"], po = ["d"], yo = { key: 1 }, ko = ["onClick"], go = ["id"], $o = ["stop-color"], _o = ["stop-color"], mo = ["id"], bo = ["stop-color"], xo = ["stop-color"], wo = ["stop-color"], Co = ["stop-color"], Mo = ["stop-color"], Fo = ["onMouseenter", "onClick", "onMouseout", "d", "fill"], Po = ["onMouseenter", "onClick", "onMouseout", "d"], To = ["onMouseenter", "onClick", "onMouseout", "d", "fill"], Do = ["onClick"], Ao = ["stroke", "d"], So = ["cx", "cy", "fill", "stroke"], Bo = ["x", "y", "width", "height"], Oo = ["x", "y", "width", "height"], jo = { key: 3 }, zo = ["d", "stroke"], Io = ["d", "fill", "stroke"], No = { key: 0 }, Lo = ["text-anchor", "x", "y", "fill", "font-size"], Wo = ["text-anchor", "x", "y", "fill", "font-size"], Eo = { key: 4 }, Go = ["d", "fill", "stroke"], Ro = {
13
+ key: 3,
14
+ class: "vue-data-ui-watermark"
15
+ }, Vo = ["innerHTML"], Uo = {
16
+ __name: "vue-ui-3d-bar",
17
+ props: {
18
+ config: {
19
+ type: Object,
20
+ default() {
21
+ return {};
22
+ }
23
+ },
24
+ dataset: {
25
+ type: Object,
26
+ default() {
27
+ return {};
28
+ }
29
+ }
30
+ },
31
+ emits: ["selectDatapoint"],
32
+ setup(st, { expose: at, emit: nt }) {
33
+ const rt = H(() => import("./BaseIcon-DHtro8us.js")), ut = H(() => import("./vue-ui-accordion-Bf_LHFFX.js")), it = H(() => import("./DataTable-DJjA2_wf.js")), dt = H(() => import("./PenAndPaper-B7QEDgx4.js")), ct = H(() => import("./UserOptions-BuGfCdAY.js")), vt = H(() => import("./PackageVersion-DU12WH3O.js")), ht = H(() => import("./BaseDraggableDialog-O7900pGp.js")), { vue_ui_3d_bar: ft } = Mt(), D = st, se = nt, Ce = A(() => !!D.dataset && Object.keys(D.dataset).length), F = _(et()), pt = _(null), N = _(null), O = _(!1), Me = _(0), Fe = _(0), Pe = _(null), ee = _(null), ae = _(null), Te = _(null), te = _(!1), le = _(null), e = _(ke()), { loading: Z, FINAL_DATASET: j } = Lt({
34
+ ...xt(D),
35
+ FINAL_CONFIG: e,
36
+ prepareConfig: ke,
37
+ callback: () => {
38
+ Promise.resolve().then(async () => {
39
+ await Qe(), Ne();
40
+ });
41
+ },
42
+ skeletonDataset: {
43
+ series: [
44
+ {
45
+ name: "_",
46
+ value: 21,
47
+ breakdown: [
48
+ { name: "_", value: 13 },
49
+ { name: "_", value: 8 }
50
+ ]
51
+ },
52
+ {
53
+ name: "_",
54
+ value: 13,
55
+ breakdown: [
56
+ { name: "_", value: 8 },
57
+ { name: "_", value: 5 }
58
+ ]
59
+ },
60
+ {
61
+ name: "_",
62
+ value: 8,
63
+ breakdown: [
64
+ { name: "_", value: 5 },
65
+ { name: "_", value: 3 }
66
+ ]
67
+ }
68
+ ]
69
+ },
70
+ skeletonConfig: Ft({
71
+ defaultConfig: e.value,
72
+ userConfig: {
73
+ customPalette: ["#808080", "#ADADAD", "#DBDBDB"],
74
+ userOptions: { show: !1 },
75
+ table: { show: !1 },
76
+ style: {
77
+ chart: {
78
+ backgroundColor: "#99999930",
79
+ color: "#6A6A6A",
80
+ bar: {
81
+ color: "#ADADAD",
82
+ stroke: "#6A6A6A"
83
+ },
84
+ box: {
85
+ stroke: "#6A6A6A"
86
+ }
87
+ }
88
+ }
89
+ }
90
+ })
91
+ }), { userOptionsVisible: ye, setUserOptionsVisibility: De, keepUserOptionState: Ae } = Gt({ config: e.value }), { svgRef: Se } = Rt({ config: e.value.style.chart.title });
92
+ function ke() {
93
+ const a = ot({
94
+ userConfig: D.config,
95
+ defaultConfig: ft
96
+ });
97
+ return a.theme ? {
98
+ ...ot({
99
+ userConfig: Tt.vue_ui_3d_bar[a.theme] || D.config,
100
+ defaultConfig: a
101
+ }),
102
+ customPalette: Pt[a.theme] || ve
103
+ } : a;
104
+ }
105
+ be(() => D.config, (a) => {
106
+ Z.value || (e.value = ke()), ye.value = !e.value.userOptions.showOnChartHover, Le(), Me.value += 1, Fe.value += 1, L.value.showTable = e.value.table.show;
107
+ }, { deep: !0 });
108
+ const { isPrinting: Be, isImaging: Oe, generatePdf: je, generateImage: ze } = Et({
109
+ elementId: `3d_bar_${F.value}`,
110
+ fileName: e.value.style.chart.title.text || "vue-ui-3d-bar",
111
+ options: e.value.userOptions.print
112
+ }), yt = A(() => Dt(e.value.customPalette)), L = _({
113
+ showTable: e.value.table.show
114
+ });
115
+ be(e, () => {
116
+ L.value = {
117
+ showTable: e.value.table.show
118
+ };
119
+ }, { immediate: !0 });
120
+ const x = A(() => j.value.series && j.value.series.length), ge = _(e.value.style.chart.box.dimensions.width * (x.value ? 2 : 1)), Ie = _(e.value.style.chart.box.dimensions.height), s = A(() => ({
121
+ height: Ie.value,
122
+ width: ge.value,
123
+ absoluteWidth: ge.value,
124
+ top: e.value.style.chart.box.dimensions.top,
125
+ bottom: e.value.style.chart.box.dimensions.bottom,
126
+ left: e.value.style.chart.box.dimensions.left,
127
+ right: e.value.style.chart.box.dimensions.right,
128
+ perspective: e.value.style.chart.box.dimensions.perspective
129
+ })), w = A(() => {
130
+ if (x.value) {
131
+ const a = j.value.series.map((l) => l.value || 0).reduce((l, d) => l + d, 0), o = j.value.series.map((l, d) => ({
132
+ ...l,
133
+ seriesIndex: d,
134
+ id: et(),
135
+ proportion: (l.value || 0) / a,
136
+ color: At(l.color) || yt.value[d] || ve[d] || ve[d % ve.length],
137
+ breakdown: l.breakdown ? l.breakdown.sort((r, k) => k.value - r.value) : null
138
+ })).sort((l, d) => d.value - l.value), t = [];
139
+ let v = 0;
140
+ for (let l = 0; l < o.length; l += 1)
141
+ t.push({
142
+ ...o[l],
143
+ fill: kt(v, o[l].proportion, o[l].breakdown, o[l].color)
144
+ }), v += o[l].proportion;
145
+ return t;
146
+ }
147
+ return null;
148
+ }), W = A(() => {
149
+ const a = s.value.width / 2;
150
+ return {
151
+ right: `M${a},${s.value.top} ${s.value.width - s.value.right}, ${s.value.top + s.value.perspective} ${s.value.width - s.value.right},${s.value.height - s.value.bottom - s.value.perspective} ${a},${s.value.height - s.value.bottom}`,
152
+ left: `M${a},${s.value.top} ${s.value.left},${s.value.top + s.value.perspective} ${s.value.left},${s.value.height - s.value.bottom - s.value.perspective} ${a},${s.value.height - s.value.bottom}`,
153
+ side: `M${a},${s.value.height - s.value.bottom} ${a},${s.value.top + s.value.perspective * 2}`,
154
+ topSides: `M${s.value.left},${s.value.top + s.value.perspective} ${a},${s.value.top + s.value.perspective * 2} ${s.value.width - s.value.right},${s.value.top + s.value.perspective}`,
155
+ tubeTop: `M${s.value.left},${s.value.top + s.value.perspective} C ${s.value.left},${s.value.top - s.value.perspective / 3} ${s.value.width - s.value.right},${s.value.top - s.value.perspective / 3} ${s.value.width - s.value.right},${s.value.top + s.value.perspective} C ${s.value.width - s.value.right},${s.value.top + s.value.perspective * 2.3} ${s.value.left},${s.value.top + s.value.perspective * 2.3} ${s.value.left},${s.value.top + s.value.perspective}`,
156
+ tubeLeft: `M${s.value.left},${s.value.top + s.value.perspective} ${s.value.left},${s.value.height - s.value.bottom - s.value.perspective}`,
157
+ tubeRight: `M${s.value.width - s.value.right},${s.value.top + s.value.perspective} ${s.value.width - s.value.right},${s.value.height - s.value.bottom - s.value.perspective}`,
158
+ tubeBottom: `M${s.value.width - s.value.right},${s.value.height - s.value.bottom - s.value.perspective} C ${s.value.width - s.value.right},${s.value.height} ${s.value.left},${s.value.height} ${s.value.left},${s.value.height - s.value.bottom - s.value.perspective}`
159
+ };
160
+ }), q = _(e.value.style.chart.animation.use ? 0 : j.value.percentage);
161
+ function Ne() {
162
+ let a = 0, o = e.value.style.chart.animation.speed, t = 5e-3 * e.value.style.chart.animation.acceleration;
163
+ function v() {
164
+ q.value += o + a, a += t, q.value < j.value.percentage ? requestAnimationFrame(v) : q.value = j.value.percentage;
165
+ }
166
+ e.value.style.chart.animation.use && (q.value = 0, v());
167
+ }
168
+ wt(() => {
169
+ Le(), Ne();
170
+ });
171
+ const ne = A(() => !!e.value.debug);
172
+ function Le() {
173
+ if (St(D.dataset) ? he({
174
+ componentName: "VueUi3dBar",
175
+ type: "dataset",
176
+ debug: ne.value
177
+ }) : D.dataset.series ? D.dataset.series.forEach((a, o) => {
178
+ we({
179
+ datasetObject: a,
180
+ requiredAttributes: ["name", "value"]
181
+ }).forEach((t) => {
182
+ he({
183
+ componentName: "VueUi3dBar",
184
+ type: "datasetSerieAttribute",
185
+ property: t,
186
+ index: o,
187
+ debug: ne.value
188
+ });
189
+ }), a.breakdown && a.breakdown.forEach((t, v) => {
190
+ we({
191
+ datasetObject: t,
192
+ requiredAttributes: ["name", "value"]
193
+ }).forEach((l) => {
194
+ he({
195
+ componentName: "VueUi3dBar",
196
+ type: "datasetSerieAttribute",
197
+ property: l,
198
+ index: `${o} - ${v}`,
199
+ debug: ne.value
200
+ });
201
+ });
202
+ });
203
+ }) : we({
204
+ datasetObject: D.dataset,
205
+ requiredAttributes: ["percentage"]
206
+ }).forEach((a) => {
207
+ he({
208
+ componentName: "VueUi3dBar",
209
+ type: "datasetAttribute",
210
+ property: a,
211
+ debug: ne.value
212
+ });
213
+ }), e.value.responsive) {
214
+ const a = It(() => {
215
+ const { width: o, height: t } = Nt({
216
+ chart: N.value,
217
+ title: e.value.style.chart.title.text ? Pe.value : null,
218
+ source: Te.value
219
+ });
220
+ requestAnimationFrame(() => {
221
+ Ie.value = t - 12, ge.value = o;
222
+ });
223
+ });
224
+ ee.value && (ae.value && ee.value.unobserve(ae.value), ee.value.disconnect()), ee.value = new ResizeObserver(a), ae.value = N.value.parentNode, ee.value.observe(ae.value);
225
+ }
226
+ }
227
+ const Y = A(() => s.value.width / 4);
228
+ function kt(a, o, t, v) {
229
+ const l = s.value.height - s.value.bottom - s.value.top - s.value.perspective * 2, { width: d, height: r, bottom: k, right: G, left: g, perspective: y } = s.value, f = x.value ? d / 4 : d / 2, b = f * 2 + g, h = k + l * a, me = r - h - y - l * o / 2, _t = me > s.value.height / 2 ? "top" : "bottom", Re = r * 0.25, mt = !!t;
230
+ let Ve = null, Ue = null;
231
+ return mt && (t = t.map((He, bt) => ({
232
+ ...He,
233
+ value: He.value || 0,
234
+ color: R(v, bt / t.length)
235
+ })), Ve = tt(
236
+ { series: t },
237
+ d / 2 + d / 5,
238
+ _t === "top" ? me - Re : me + Re,
239
+ d / 10,
240
+ d / 10,
241
+ 1.99999,
242
+ 2,
243
+ 1,
244
+ 360,
245
+ 105.25,
246
+ d / 20
247
+ ), Ue = tt(
248
+ { series: t },
249
+ d - b + d / 14,
250
+ r - h - y - l * o / 2,
251
+ d / 40,
252
+ d / 40,
253
+ 1.99999,
254
+ 2,
255
+ 1,
256
+ 360,
257
+ 105.25,
258
+ d / 40
259
+ )), {
260
+ donut: Ve,
261
+ miniDonut: Ue,
262
+ donutR: d / 20,
263
+ CENTER_X: f,
264
+ sidePointer: {
265
+ x: d - b,
266
+ x2: d - b + d / 14,
267
+ xText: d - b + d / 9,
268
+ y: r - h - y - l * o / 2,
269
+ topY: r - h - y - l * o,
270
+ height: l * o
271
+ },
272
+ apexBottom: { y: r - h, x: f },
273
+ apexTop: { y: r - h - l * o, x: f },
274
+ right: `M${f},${r - h} ${f},${r - h - l * o} ${d - b},${r - h - y - l * o} ${d - b},${r - h - y}Z`,
275
+ left: `M${f},${r - h} ${f},${r - h - l * o} ${g}, ${r - h - y - l * o} ${g},${r - h - y}Z`,
276
+ liningTop: `M${g},${r - h - y - l * o} ${f},${r - h - l * o} ${d - b},${r - h - y - l * o}`,
277
+ liningTopShade: `M${g},${r - h - y - l * o - 0.5} ${f},${r - h - l * o - 0.5} ${d - b},${r - h - y - l * o - 0.5}`,
278
+ top: `M${f},${r - h - l * o} ${g},${r - h - y - l * o} ${f},${r - h - y * 2 - l * o} ${d - b},${r - h - y - l * o} Z`,
279
+ tubeTop: `M${g},${r - h - l * o - y} C ${g},${r - h - l * o - y * 2.5} ${d - b},${r - h - l * o - y * 2.5} ${d - b},${r - h - l * o - y} C ${d - b},${r - h - l * o + y / 2} ${g},${r - h - l * o + y / 2} ${g},${r - h - l * o - y}`,
280
+ bottomTubeTop: `M ${d - b - 0.5},${r - h - y} C ${d - b - 0.5},${r - h + y / 2} ${g},${r - h + y / 2} ${g + 0.5},${r - h - y}`,
281
+ tubeBody: `M
282
+ ${g},${r - h - l * o - y}
283
+ C ${g},${r - h - l * o + y / 2}
284
+ ${d - b},${r - h - l * o + y / 2}
285
+ ${d - b},${r - h - l * o - y}
286
+ L${d - b},${r - h - y}
287
+ C
288
+ ${d - b},${r - h + y / 2}
289
+ ${g},${r - h + y / 2}
290
+ ${g},${r - h - y}Z`
291
+ };
292
+ }
293
+ const K = A(() => {
294
+ const a = Bt(q.value / 100), o = s.value.height - s.value.bottom - s.value.top - s.value.perspective * 2, { width: t, height: v, bottom: l, right: d, left: r, perspective: k } = s.value, G = x.value ? t / 4 : t / 2, g = x.value ? G * 2 + r : d, f = l + o * 0;
295
+ return {
296
+ right: `M${G},${v - f} ${G},${v - f - o * a} ${t - g},${v - f - k - o * a} ${t - g},${v - f - k}Z`,
297
+ left: `M${G},${v - f} ${G},${v - f - o * a} ${r}, ${v - f - k - o * a} ${r},${v - f - k}Z`,
298
+ top: `M${G},${v - f - o * a} ${r},${v - f - k - o * a} ${G},${v - f - k * 2 - o * a} ${t - g},${v - f - k - o * a} Z`,
299
+ tubeTop: `M${r},${v - f - o * a - k} C ${r},${v - f - o * a - k * 2.5} ${t - g},${v - f - o * a - k * 2.5} ${t - g},${v - f - o * a - k} C ${t - g},${v - f - o * a + k / 2} ${r},${v - f - o * a + k / 2} ${r},${v - f - o * a - k}`,
300
+ tubeBody: `M
301
+ ${r},${v - f - o * a - k}
302
+ C ${r},${v - f - o * a + k / 2}
303
+ ${t - g},${v - f - o * a + k / 2}
304
+ ${t - g},${v - f - o * a - k}
305
+ L${t - g},${v - k * 1.5}
306
+ C
307
+ ${t - g},${v}
308
+ ${r},${v}
309
+ ${r},${v - f - k}Z`
310
+ };
311
+ }), m = _(null);
312
+ function P(a, o = !1) {
313
+ e.value.events.datapointEnter && !o && e.value.events.datapointEnter({ datapoint: a, seriesIndex: a.seriesIndex }), e.value.events.datapointClick && o && e.value.events.datapointClick({ datapoint: a, seriesIndex: a.seriesIndex }), se("selectDatapoint", a), o || (m.value = a.id), o && O.value && (O.value = !1), o && !O.value && (O.value = !0);
314
+ }
315
+ function U(a) {
316
+ e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: a, seriesIndex: a.seriesIndex }), !O.value && (m.value = null);
317
+ }
318
+ function J(a, o, t = !1) {
319
+ const v = j.value.series.map((r) => r.value || 0).reduce((r, k) => r + k, 0), l = isNaN(a.value / v) ? 0 : a.value / v * 100, d = isNaN(a.value / We(o)) ? 0 : a.value / We(o) * 100;
320
+ return t ? d : l.toFixed(0) + "%";
321
+ }
322
+ function We(a) {
323
+ return [...a].map((o) => o.value).reduce((o, t) => o + t, 0);
324
+ }
325
+ const re = _(!1);
326
+ function Ee(a) {
327
+ re.value = a;
328
+ }
329
+ function gt() {
330
+ return x.value ? w.value : j.value.percentage;
331
+ }
332
+ const E = A(() => {
333
+ if (x.value) {
334
+ const a = w.value.flatMap((t) => t.breakdown && t.breakdown.length ? [{ name: t.name, color: t.color }, ...t.breakdown.map((v, l) => ({
335
+ name: v.name,
336
+ color: R(t.color, l / t.breakdown.length)
337
+ }))] : {
338
+ name: t.name,
339
+ color: t.color
340
+ }), o = w.value.flatMap((t) => t.breakdown && t.breakdown.length ? [t.value, ...t.breakdown.map((v) => v.value)] : t.value);
341
+ return { head: a, body: o };
342
+ } else
343
+ return null;
344
+ });
345
+ function $e(a = null) {
346
+ if (!x.value) {
347
+ console.warn("VueUi3dBar : CSV download is only available in stack mode (providing dataset.series instead of dataset.percentage)");
348
+ return;
349
+ }
350
+ Qe(() => {
351
+ const o = w.value.map((d) => d.value).reduce((d, r) => d + r, 0), t = E.value.head.map((d, r) => [[
352
+ d.name
353
+ ], [E.value.body[r]], [isNaN(E.value.body[r] / o) ? "-" : E.value.body[r] / o * 100]]), v = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(t), l = jt(v);
354
+ a ? a(l) : zt({ csvContent: l, title: e.value.style.chart.title.text || "vue-ui-3d-bar" });
355
+ });
356
+ }
357
+ const ue = A(() => {
358
+ const a = w.value.map((d) => d.value).reduce((d, r) => d + r, 0), o = [
359
+ ' <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>',
360
+ B({ p: e.value.style.chart.legend.prefix, v: a, s: e.value.style.chart.legend.suffix, r: e.value.table.td.roundingValue }),
361
+ "100%"
362
+ ], t = E.value.head.map((d, r) => {
363
+ const k = B({ p: e.value.style.chart.legend.prefix, v: E.value.body[r], s: e.value.style.chart.legend.suffix, r: e.value.table.td.roundingValue });
364
+ return [
365
+ {
366
+ color: d.color,
367
+ name: d.name
368
+ },
369
+ k,
370
+ isNaN(E.value.body[r] / a) ? "-" : B({
371
+ v: E.value.body[r] / a * 100,
372
+ s: "%",
373
+ r: e.value.table.td.roundingPercentage
374
+ })
375
+ ];
376
+ }), v = {
377
+ th: {
378
+ backgroundColor: e.value.table.th.backgroundColor,
379
+ color: e.value.table.th.color,
380
+ outline: e.value.table.th.outline
381
+ },
382
+ td: {
383
+ backgroundColor: e.value.table.td.backgroundColor,
384
+ color: e.value.table.td.color,
385
+ outline: e.value.table.td.outline
386
+ },
387
+ breakpoint: e.value.table.responsiveBreakpoint,
388
+ shape: e.value.style.shape === "tube" ? "circle" : "square"
389
+ };
390
+ return {
391
+ colNames: [
392
+ e.value.table.columnNames.series,
393
+ e.value.table.columnNames.value,
394
+ e.value.table.columnNames.percentage
395
+ ],
396
+ head: o,
397
+ body: t,
398
+ config: v
399
+ };
400
+ });
401
+ function Ge() {
402
+ L.value.showTable = !L.value.showTable;
403
+ }
404
+ const ie = _(!1);
405
+ function _e() {
406
+ ie.value = !ie.value;
407
+ }
408
+ async function $t({ scale: a = 2 } = {}) {
409
+ if (!N.value) return;
410
+ const { width: o, height: t } = N.value.getBoundingClientRect(), v = o / t, { imageUri: l, base64: d } = await Vt({ domElement: N.value, base64: !0, img: !0, scale: a });
411
+ return {
412
+ imageUri: l,
413
+ base64: d,
414
+ title: e.value.style.chart.title.text,
415
+ width: o,
416
+ height: t,
417
+ aspectRatio: v
418
+ };
419
+ }
420
+ const oe = A(() => {
421
+ const a = e.value.table.useDialog && !e.value.table.show, o = L.value.showTable;
422
+ return {
423
+ component: a ? ht : ut,
424
+ title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
425
+ props: a ? {
426
+ backgroundColor: e.value.table.th.backgroundColor,
427
+ color: e.value.table.th.color,
428
+ headerColor: e.value.table.th.color,
429
+ headerBg: e.value.table.th.backgroundColor,
430
+ isFullscreen: re.value,
431
+ fullscreenParent: N.value,
432
+ forcedWidth: Math.min(800, window.innerWidth * 0.8)
433
+ } : {
434
+ hideDetails: !0,
435
+ config: {
436
+ open: o,
437
+ maxHeight: 1e4,
438
+ body: {
439
+ backgroundColor: e.value.style.chart.backgroundColor,
440
+ color: e.value.style.chart.color
441
+ },
442
+ head: {
443
+ backgroundColor: e.value.style.chart.backgroundColor,
444
+ color: e.value.style.chart.color
445
+ }
446
+ }
447
+ }
448
+ };
449
+ });
450
+ return be(() => L.value.showTable, (a) => {
451
+ e.value.table.show || (a && e.value.table.useDialog && le.value ? le.value.open() : "close" in le.value && le.value.close());
452
+ }), at({
453
+ getImage: $t,
454
+ generateCsv: $e,
455
+ generatePdf: je,
456
+ generateImage: ze,
457
+ getData: gt,
458
+ toggleTable: Ge,
459
+ toggleAnnotator: _e,
460
+ toggleFullscreen: Ee
461
+ }), (a, o) => (u(), c("div", {
462
+ ref_key: "bar3dChart",
463
+ ref: N,
464
+ class: Xe("vue-ui-3d-bar"),
465
+ style: z(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
466
+ id: `3d_bar_${F.value}`,
467
+ onMouseenter: o[10] || (o[10] = () => n(De)(!0)),
468
+ onMouseleave: o[11] || (o[11] = () => n(De)(!1))
469
+ }, [
470
+ e.value.userOptions.buttons.annotator ? (u(), Q(n(dt), {
471
+ key: 0,
472
+ svgRef: n(Se),
473
+ backgroundColor: e.value.style.chart.backgroundColor,
474
+ color: e.value.style.chart.color,
475
+ active: ie.value,
476
+ onClose: _e
477
+ }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : p("", !0),
478
+ e.value.style.chart.title.text ? (u(), c("div", {
479
+ key: 1,
480
+ ref_key: "chartTitle",
481
+ ref: Pe,
482
+ style: "width:100%;background:transparent"
483
+ }, [
484
+ (u(), Q(Ut, {
485
+ key: `title_${Me.value}`,
486
+ config: {
487
+ title: {
488
+ cy: "3dBar-div-title",
489
+ ...e.value.style.chart.title
490
+ },
491
+ subtitle: {
492
+ cy: "3dBar-div-subtitle",
493
+ ...e.value.style.chart.title.subtitle
494
+ }
495
+ }
496
+ }, null, 8, ["config"]))
497
+ ], 512)) : p("", !0),
498
+ e.value.userOptions.show && Ce.value && (n(Ae) || n(ye)) ? (u(), Q(n(ct), {
499
+ key: 2,
500
+ ref_key: "details",
501
+ ref: pt,
502
+ backgroundColor: e.value.style.chart.backgroundColor,
503
+ color: e.value.style.chart.color,
504
+ isPrinting: n(Be),
505
+ isImaging: n(Oe),
506
+ uid: F.value,
507
+ hasPdf: e.value.userOptions.buttons.pdf,
508
+ hasTable: !!x.value && e.value.userOptions.buttons.table,
509
+ hasXls: !!x.value && e.value.userOptions.buttons.csv,
510
+ hasImg: e.value.userOptions.buttons.img,
511
+ hasFullscreen: e.value.userOptions.buttons.fullscreen,
512
+ titles: { ...e.value.userOptions.buttonTitles },
513
+ chartElement: N.value,
514
+ position: e.value.userOptions.position,
515
+ hasAnnotator: e.value.userOptions.buttons.annotator,
516
+ isAnnotation: ie.value,
517
+ callbacks: e.value.userOptions.callbacks,
518
+ printScale: e.value.userOptions.print.scale,
519
+ onToggleFullscreen: Ee,
520
+ onGeneratePdf: n(je),
521
+ onGenerateCsv: $e,
522
+ onGenerateImage: n(ze),
523
+ onToggleTable: Ge,
524
+ onToggleAnnotator: _e,
525
+ style: z({
526
+ visibility: n(Ae) ? n(ye) ? "visible" : "hidden" : "visible"
527
+ })
528
+ }, Ze({ _: 2 }, [
529
+ a.$slots.menuIcon ? {
530
+ name: "menuIcon",
531
+ fn: S(({ isOpen: t, color: v }) => [
532
+ T(a.$slots, "menuIcon", de(ce({ isOpen: t, color: v })), void 0, !0)
533
+ ]),
534
+ key: "0"
535
+ } : void 0,
536
+ a.$slots.optionPdf ? {
537
+ name: "optionPdf",
538
+ fn: S(() => [
539
+ T(a.$slots, "optionPdf", {}, void 0, !0)
540
+ ]),
541
+ key: "1"
542
+ } : void 0,
543
+ a.$slots.optionCsv ? {
544
+ name: "optionCsv",
545
+ fn: S(() => [
546
+ T(a.$slots, "optionCsv", {}, void 0, !0)
547
+ ]),
548
+ key: "2"
549
+ } : void 0,
550
+ a.$slots.optionImg ? {
551
+ name: "optionImg",
552
+ fn: S(() => [
553
+ T(a.$slots, "optionImg", {}, void 0, !0)
554
+ ]),
555
+ key: "3"
556
+ } : void 0,
557
+ a.$slots.optionTable ? {
558
+ name: "optionTable",
559
+ fn: S(() => [
560
+ T(a.$slots, "optionTable", {}, void 0, !0)
561
+ ]),
562
+ key: "4"
563
+ } : void 0,
564
+ a.$slots.optionFullscreen ? {
565
+ name: "optionFullscreen",
566
+ fn: S(({ toggleFullscreen: t, isFullscreen: v }) => [
567
+ T(a.$slots, "optionFullscreen", de(ce({ toggleFullscreen: t, isFullscreen: v })), void 0, !0)
568
+ ]),
569
+ key: "5"
570
+ } : void 0,
571
+ a.$slots.optionAnnotator ? {
572
+ name: "optionAnnotator",
573
+ fn: S(({ toggleAnnotator: t, isAnnotator: v }) => [
574
+ T(a.$slots, "optionAnnotator", de(ce({ toggleAnnotator: t, isAnnotator: v })), void 0, !0)
575
+ ]),
576
+ key: "6"
577
+ } : void 0
578
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasTable", "hasXls", "hasImg", "hasFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : p("", !0),
579
+ (u(), c("svg", {
580
+ ref_key: "svgRef",
581
+ ref: Se,
582
+ xmlns: n(Ot),
583
+ class: Xe({ "vue-data-ui-fullscreen--on": re.value, "vue-data-ui-fulscreen--off": !re.value, animated: e.value.useCssAnimation }),
584
+ viewBox: `0 0 ${s.value.absoluteWidth} ${s.value.height}`,
585
+ style: z(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
586
+ }, [
587
+ qe(n(vt)),
588
+ a.$slots["chart-background"] ? (u(), c("foreignObject", {
589
+ key: 0,
590
+ x: 0,
591
+ y: 0,
592
+ width: s.value.absoluteWidth,
593
+ height: s.value.height,
594
+ style: {
595
+ pointerEvents: "none"
596
+ }
597
+ }, [
598
+ T(a.$slots, "chart-background", {}, void 0, !0)
599
+ ], 8, qt)) : p("", !0),
600
+ i("defs", null, [
601
+ i("radialGradient", {
602
+ id: `gradient_top${F.value}`
603
+ }, [
604
+ i("stop", {
605
+ offset: "0%",
606
+ "stop-color": n($)(e.value.style.chart.backgroundColor, 0)
607
+ }, null, 8, Kt),
608
+ i("stop", {
609
+ offset: "100%",
610
+ "stop-color": e.value.style.chart.bar.color
611
+ }, null, 8, Jt)
612
+ ], 8, Yt),
613
+ i("radialGradient", {
614
+ id: `gradient_tube_top${F.value}`
615
+ }, [
616
+ i("stop", {
617
+ offset: "0%",
618
+ "stop-color": n($)(n(R)(e.value.style.chart.bar.color, 0.5), 80)
619
+ }, null, 8, el),
620
+ i("stop", {
621
+ offset: "100%",
622
+ "stop-color": n($)(n(X)(e.value.style.chart.bar.color, 0.1), 80)
623
+ }, null, 8, tl)
624
+ ], 8, Qt),
625
+ i("radialGradient", {
626
+ id: `gradient_left${F.value}`
627
+ }, [
628
+ i("stop", {
629
+ offset: "0%",
630
+ "stop-color": n($)(e.value.style.chart.backgroundColor, 0)
631
+ }, null, 8, ol),
632
+ i("stop", {
633
+ offset: "100%",
634
+ "stop-color": n($)(e.value.style.chart.bar.color, 20)
635
+ }, null, 8, sl)
636
+ ], 8, ll),
637
+ i("radialGradient", {
638
+ id: `gradient_right${F.value}`
639
+ }, [
640
+ i("stop", {
641
+ offset: "0%",
642
+ "stop-color": n($)(e.value.style.chart.backgroundColor, 0)
643
+ }, null, 8, nl),
644
+ i("stop", {
645
+ offset: "100%",
646
+ "stop-color": n($)(e.value.style.chart.bar.color, 20)
647
+ }, null, 8, rl)
648
+ ], 8, al),
649
+ i("linearGradient", {
650
+ id: `gradient_tube_body${F.value}`,
651
+ x1: "0%",
652
+ y1: "0%",
653
+ x2: "100%",
654
+ y2: "0%"
655
+ }, [
656
+ i("stop", {
657
+ offset: "0%",
658
+ "stop-color": `${e.value.style.chart.bar.color}`
659
+ }, null, 8, il),
660
+ i("stop", {
661
+ offset: "10%",
662
+ "stop-color": n($)(n(X)(e.value.style.chart.bar.color, 0.7), 100)
663
+ }, null, 8, dl),
664
+ i("stop", {
665
+ offset: "25%",
666
+ "stop-color": n($)(n(X)(e.value.style.chart.bar.color, 0.5), 100)
667
+ }, null, 8, cl),
668
+ i("stop", {
669
+ offset: "75%",
670
+ "stop-color": n($)(e.value.style.chart.bar.color, 80)
671
+ }, null, 8, vl),
672
+ i("stop", {
673
+ offset: "100%",
674
+ "stop-color": n($)(n(R)(e.value.style.chart.bar.color, 0.7), 100)
675
+ }, null, 8, hl)
676
+ ], 8, ul)
677
+ ]),
678
+ x.value ? (u(), c("defs", fl, [
679
+ (u(!0), c(C, null, M(w.value, (t) => (u(), c("radialGradient", {
680
+ id: `grad_top_${t.id}`
681
+ }, [
682
+ i("stop", {
683
+ offset: "0%",
684
+ "stop-color": n($)(n(R)(t.color, 0.5), 80)
685
+ }, null, 8, yl),
686
+ i("stop", {
687
+ offset: "100%",
688
+ "stop-color": t.color
689
+ }, null, 8, kl)
690
+ ], 8, pl))), 256)),
691
+ (u(!0), c(C, null, M(w.value, (t) => (u(), c("linearGradient", {
692
+ id: `grad_left_${t.id}`
693
+ }, [
694
+ i("stop", {
695
+ offset: "0%",
696
+ "stop-color": n($)(t.color, 80)
697
+ }, null, 8, $l),
698
+ i("stop", {
699
+ offset: "100%",
700
+ "stop-color": n($)(n(X)(t.color, 0.5), 100)
701
+ }, null, 8, _l)
702
+ ], 8, gl))), 256)),
703
+ (u(!0), c(C, null, M(w.value, (t) => (u(), c("linearGradient", {
704
+ id: `grad_right_${t.id}`
705
+ }, [
706
+ i("stop", {
707
+ offset: "2%",
708
+ "stop-color": n($)(n(R)(t.color, 0.5), 100)
709
+ }, null, 8, bl),
710
+ i("stop", {
711
+ offset: "100%",
712
+ "stop-color": n($)(t.color, 80)
713
+ }, null, 8, xl)
714
+ ], 8, ml))), 256)),
715
+ i("linearGradient", {
716
+ x1: "0%",
717
+ y1: "0%",
718
+ x2: "0%",
719
+ y2: "100%",
720
+ id: `vertical_line_${F.value}`
721
+ }, [...o[12] || (o[12] = [
722
+ i("stop", {
723
+ offset: "0%",
724
+ "stop-color": "#FFFFFF"
725
+ }, null, -1),
726
+ i("stop", {
727
+ offset: "100%",
728
+ "stop-color": "#FFFFFF33"
729
+ }, null, -1)
730
+ ])], 8, wl)
731
+ ])) : p("", !0),
732
+ e.value.style.chart.dataLabel.show && ![null, void 0].includes(D.dataset.percentage) && [null, void 0].includes(D.dataset.series) ? (u(), c("text", {
733
+ key: 2,
734
+ x: s.value.width / 2,
735
+ y: s.value.top - e.value.style.chart.dataLabel.fontSize / 2,
736
+ "font-size": e.value.style.chart.dataLabel.fontSize,
737
+ "font-weight": e.value.style.chart.dataLabel.bold ? "bold" : "normal",
738
+ fill: e.value.style.chart.dataLabel.color,
739
+ "text-anchor": "middle"
740
+ }, I(n(B)({
741
+ v: q.value,
742
+ s: "%",
743
+ r: e.value.style.chart.dataLabel.rounding
744
+ })), 9, Cl)) : p("", !0),
745
+ O.value ? (u(), c("g", {
746
+ key: 3,
747
+ role: "button",
748
+ tabindex: "0",
749
+ "aria-label": "Clear selection",
750
+ onClick: o[0] || (o[0] = (t) => {
751
+ O.value = !1, m.value = null;
752
+ }),
753
+ onKeydown: [
754
+ o[1] || (o[1] = Ye(Ke((t) => {
755
+ O.value = !1, m.value = null;
756
+ }, ["prevent"]), ["enter"])),
757
+ o[2] || (o[2] = Ye(Ke((t) => {
758
+ O.value = !1, m.value = null;
759
+ }, ["prevent"]), ["space"]))
760
+ ],
761
+ onFocus: o[3] || (o[3] = (t) => te.value = !0),
762
+ onBlur: o[4] || (o[4] = (t) => te.value = !1),
763
+ onMouseenter: o[5] || (o[5] = (t) => te.value = !0),
764
+ onMouseleave: o[6] || (o[6] = (t) => te.value = !1),
765
+ class: "svg-btn",
766
+ "data-dom-to-png-ignore": "",
767
+ style: { cursor: "pointer", outline: "none" }
768
+ }, [
769
+ o[13] || (o[13] = i("title", null, "Clear selection", -1)),
770
+ i("rect", {
771
+ x: Y.value - 12,
772
+ y: s.value.top - 24,
773
+ width: 24,
774
+ height: 24,
775
+ fill: "transparent",
776
+ "pointer-events": "all"
777
+ }, null, 8, Ml),
778
+ i("circle", {
779
+ cx: Y.value,
780
+ cy: s.value.top - 12,
781
+ r: "10",
782
+ fill: "none",
783
+ stroke: e.value.style.chart.color,
784
+ "stroke-width": "2",
785
+ "vector-effect": "non-scaling-stroke",
786
+ opacity: te.value ? 0.5 : 0
787
+ }, null, 8, Fl),
788
+ i("path", {
789
+ d: `M${Y.value - 6},${s.value.top - 18} ${Y.value + 6},${s.value.top - 6}`,
790
+ stroke: e.value.style.chart.color,
791
+ "stroke-linecap": "round",
792
+ "stroke-width": "2",
793
+ "vector-effect": "non-scaling-stroke"
794
+ }, null, 8, Pl),
795
+ i("path", {
796
+ d: `M${Y.value + 6},${s.value.top - 18} ${Y.value - 6},${s.value.top - 6}`,
797
+ stroke: e.value.style.chart.color,
798
+ "stroke-linecap": "round",
799
+ "stroke-width": "2",
800
+ "vector-effect": "non-scaling-stroke"
801
+ }, null, 8, Tl)
802
+ ], 32)) : p("", !0),
803
+ !e.value.style.shape || e.value.style.shape === "bar" ? (u(), c("g", Dl, [
804
+ x.value ? p("", !0) : (u(), c("g", Al, [
805
+ i("path", {
806
+ "stroke-dasharray": e.value.style.chart.box.strokeDasharray,
807
+ d: W.value.right,
808
+ stroke: e.value.style.chart.box.stroke,
809
+ "stroke-width": e.value.style.chart.box.strokeWidth,
810
+ "stroke-linejoin": "round",
811
+ "stroke-linecap": "round",
812
+ fill: "none"
813
+ }, null, 8, Sl),
814
+ i("path", {
815
+ "stroke-dasharray": e.value.style.chart.box.strokeDasharray,
816
+ d: W.value.left,
817
+ stroke: e.value.style.chart.box.stroke,
818
+ "stroke-width": e.value.style.chart.box.strokeWidth,
819
+ "stroke-linejoin": "round",
820
+ "stroke-linecap": "round",
821
+ fill: "none"
822
+ }, null, 8, Bl),
823
+ i("path", {
824
+ "stroke-dasharray": e.value.style.chart.box.strokeDasharray,
825
+ d: W.value.side,
826
+ stroke: e.value.style.chart.box.stroke,
827
+ "stroke-width": e.value.style.chart.box.strokeWidth,
828
+ "stroke-linejoin": "round",
829
+ "stroke-linecap": "round",
830
+ fill: "none"
831
+ }, null, 8, Ol),
832
+ i("path", {
833
+ "stroke-dasharray": e.value.style.chart.box.strokeDasharray,
834
+ d: W.value.topSides,
835
+ stroke: e.value.style.chart.box.stroke,
836
+ "stroke-width": e.value.style.chart.box.strokeWidth,
837
+ "stroke-linejoin": "round",
838
+ "stroke-linecap": "round",
839
+ fill: "none"
840
+ }, null, 8, jl)
841
+ ])),
842
+ x.value ? p("", !0) : (u(), c("g", zl, [
843
+ i("path", {
844
+ d: K.value.right,
845
+ stroke: e.value.style.chart.bar.stroke,
846
+ "stroke-width": e.value.style.chart.bar.strokeWidth,
847
+ "stroke-linejoin": "round",
848
+ "stroke-linecap": "round",
849
+ fill: `url(#gradient_right${F.value})`
850
+ }, null, 8, Il),
851
+ i("path", {
852
+ d: K.value.left,
853
+ stroke: e.value.style.chart.bar.stroke,
854
+ "stroke-width": e.value.style.chart.bar.strokeWidth,
855
+ "stroke-linejoin": "round",
856
+ "stroke-linecap": "round",
857
+ fill: `url(#gradient_left${F.value})`
858
+ }, null, 8, Nl),
859
+ i("path", {
860
+ d: K.value.top,
861
+ stroke: e.value.style.chart.bar.stroke,
862
+ "stroke-width": e.value.style.chart.bar.strokeWidth,
863
+ "stroke-linejoin": "round",
864
+ "stroke-linecap": "round",
865
+ fill: `url(#gradient_top${F.value})`
866
+ }, null, 8, Ll)
867
+ ])),
868
+ x.value ? (u(), c("g", Wl, [
869
+ (u(!0), c(C, null, M(w.value, (t, v) => (u(), c("g", {
870
+ style: z(`opacity:${m.value ? m.value === t.id ? 1 : 0.3 : 1}`),
871
+ class: "vue-ui-3d-bar-stack"
872
+ }, [
873
+ i("path", {
874
+ d: t.fill.right,
875
+ fill: `url(#grad_right_${t.id})`,
876
+ onMouseenter: (l) => P(t),
877
+ onClick: (l) => P(t, !0),
878
+ onMouseout: (l) => U(t)
879
+ }, null, 40, El),
880
+ i("path", {
881
+ d: t.fill.left,
882
+ fill: `url(#grad_left_${t.id})`,
883
+ onMouseenter: (l) => P(t),
884
+ onClick: (l) => P(t, !0),
885
+ onMouseout: (l) => U(t)
886
+ }, null, 40, Gl),
887
+ i("path", {
888
+ d: t.fill.top,
889
+ fill: `url(#grad_top_${t.id})`,
890
+ onMouseenter: (l) => P(t),
891
+ onClick: (l) => P(t, !0),
892
+ onMouseout: (l) => U(t)
893
+ }, null, 40, Rl),
894
+ i("path", {
895
+ d: t.fill.liningTop,
896
+ stroke: "#FFFFFF",
897
+ "stroke-width": "0.5",
898
+ "stroke-linecap": "round",
899
+ fill: "none",
900
+ onMouseenter: (l) => P(t),
901
+ onClick: (l) => P(t, !0),
902
+ onMouseout: (l) => U(t)
903
+ }, null, 40, Vl),
904
+ i("path", {
905
+ d: `M ${t.fill.apexTop.x},${t.fill.apexTop.y} ${t.fill.apexBottom.x},${t.fill.apexBottom.y}`,
906
+ stroke: "#FFFFFF",
907
+ "stroke-width": "0.5",
908
+ "stroke-linecap": "round"
909
+ }, null, 8, Ul)
910
+ ], 4))), 256)),
911
+ (u(!0), c(C, null, M(w.value, (t, v) => (u(), c("g", null, [
912
+ v !== w.value.length - 1 ? (u(), c("path", {
913
+ key: 0,
914
+ d: t.fill.liningTopShade,
915
+ stroke: e.value.style.chart.bar.shadeColor,
916
+ "stroke-width": "0.5",
917
+ "stroke-linecap": "round",
918
+ fill: "none",
919
+ style: { "pointer-events": "none" }
920
+ }, null, 8, Hl)) : p("", !0)
921
+ ]))), 256)),
922
+ (u(!0), c(C, null, M(w.value, (t, v) => (u(), c("g", {
923
+ style: z(`opacity:${m.value ? m.value === t.id ? 1 : 0 : t.proportion * 100 > e.value.style.chart.legend.hideUnderPercentage ? 1 : 0}`),
924
+ onClick: (l) => se("selectDatapoint", t)
925
+ }, [
926
+ i("path", {
927
+ stroke: e.value.style.chart.color,
928
+ "stroke-dasharray": "1",
929
+ "stroke-width": "0.5",
930
+ "stroke-linecap": "round",
931
+ d: `M${t.fill.sidePointer.x},${t.fill.sidePointer.y} ${t.fill.sidePointer.x2},${t.fill.sidePointer.y}`
932
+ }, null, 8, Zl),
933
+ !t.fill.miniDonut || m.value ? (u(), c("circle", {
934
+ key: 0,
935
+ cx: t.fill.sidePointer.x2,
936
+ cy: t.fill.sidePointer.y,
937
+ r: 2,
938
+ fill: t.color,
939
+ stroke: e.value.style.chart.backgroundColor
940
+ }, null, 8, ql)) : p("", !0),
941
+ n(Z) ? (u(), c("rect", {
942
+ key: 1,
943
+ x: t.fill.sidePointer.xText,
944
+ y: t.fill.sidePointer.y - e.value.style.chart.legend.fontSize / 2,
945
+ width: s.value.width / 3,
946
+ height: e.value.style.chart.legend.fontSize,
947
+ fill: "#6A6A6A80",
948
+ rx: "3"
949
+ }, null, 8, Yl)) : p("", !0),
950
+ n(Z) ? p("", !0) : (u(), c("foreignObject", {
951
+ key: 2,
952
+ x: t.fill.sidePointer.xText,
953
+ y: t.fill.sidePointer.y - e.value.style.chart.legend.fontSize,
954
+ width: s.value.absoluteWidth / 3,
955
+ height: e.value.style.chart.legend.fontSize * 2,
956
+ style: { overflow: "visible", position: "relative" }
957
+ }, [
958
+ e.value.style.chart.legend.showDefault ? (u(), c("div", {
959
+ key: 0,
960
+ style: z(`height: 100%; width: 100%; display: flex; flex-direction: row; flex-wrap: wrap; align-items:center;justify-content: flex-start; font-size:${e.value.style.chart.legend.fontSize}px; text-align:left; line-height: ${e.value.style.chart.legend.fontSize}px; color:${e.value.style.chart.legend.color}`)
961
+ }, I(n(fe)(
962
+ e.value.style.chart.dataLabel.formatter,
963
+ t.value,
964
+ `${t.name}: ${n(B)({ v: t.proportion * 100, s: "%", r: e.value.style.chart.legend.roundingPercentage })} (${n(B)({
965
+ p: e.value.style.chart.legend.prefix,
966
+ v: t.value,
967
+ s: e.value.style.chart.legend.suffix,
968
+ r: e.value.style.chart.legend.roundingValue
969
+ })})`,
970
+ { datapoint: t, seriesIndex: v, type: "barDatapoint" }
971
+ )), 5)) : p("", !0),
972
+ T(a.$slots, "legend", xe({ ref_for: !0 }, { datapoint: t, config: e.value, dataset: w.value }), void 0, !0)
973
+ ], 8, Kl)),
974
+ t.fill.donut && m.value === t.id ? (u(), c("g", Jl, [
975
+ (u(!0), c(C, null, M(t.fill.donut, (l, d) => (u(), c("g", null, [
976
+ J(l, t.fill.donut, !0) > 6 ? (u(), c("path", {
977
+ key: 0,
978
+ d: n(lt)(l, { x: l.cx, y: l.cy }, 0, 8, !1, !0, 10),
979
+ stroke: l.color,
980
+ class: "vue-ui-donut-arc-path",
981
+ "stroke-width": "0.5",
982
+ "stroke-linecap": "round",
983
+ "stroke-linejoin": "round",
984
+ fill: "none"
985
+ }, null, 8, Ql)) : p("", !0)
986
+ ]))), 256)),
987
+ (u(!0), c(C, null, M(t.fill.donut, (l, d) => (u(), c("path", {
988
+ class: "vue-ui-donut-arc-path",
989
+ d: l.arcSlice,
990
+ fill: `${l.color}`,
991
+ stroke: e.value.style.chart.backgroundColor,
992
+ "stroke-width": 1
993
+ }, null, 8, eo))), 256)),
994
+ (u(!0), c(C, null, M(t.fill.donut, (l, d) => (u(), c("g", null, [
995
+ J(l, t.fill.donut, !0) > 6 ? (u(), c("g", to, [
996
+ i("text", {
997
+ "text-anchor": n(V)(l, !0, 0).anchor,
998
+ x: n(V)(l, !0, 2).x,
999
+ y: n(pe)(l, 12, 12),
1000
+ fill: e.value.style.chart.legend.color,
1001
+ "font-size": e.value.style.chart.legend.fontSize / 1.5
1002
+ }, I(n(fe)(
1003
+ e.value.style.chart.dataLabel.formatter,
1004
+ l.value,
1005
+ `${J(l, t.fill.donut)} (${n(B)({
1006
+ p: e.value.style.chart.legend.prefix,
1007
+ v: l.value,
1008
+ s: e.value.style.chart.legend.suffix,
1009
+ r: e.value.style.chart.legend.roundingValue
1010
+ })})`,
1011
+ { datapoint: l, seriesIndex: d, type: "donutDatapoint" }
1012
+ )), 9, lo),
1013
+ i("text", {
1014
+ "text-anchor": n(V)(l).anchor,
1015
+ x: n(V)(l, !0, 2).x,
1016
+ y: n(pe)(l, 12, 12) + e.value.style.chart.legend.fontSize / 1.5,
1017
+ fill: e.value.style.chart.legend.color,
1018
+ "font-size": e.value.style.chart.legend.fontSize / 1.5
1019
+ }, I(l.name), 9, oo)
1020
+ ])) : p("", !0)
1021
+ ]))), 256))
1022
+ ])) : p("", !0),
1023
+ t.fill.miniDonut && !m.value ? (u(), c("g", so, [
1024
+ (u(!0), c(C, null, M(t.fill.miniDonut, (l, d) => (u(), c("path", {
1025
+ class: "vue-ui-donut-arc-path",
1026
+ d: l.arcSlice,
1027
+ fill: `${l.color}`,
1028
+ stroke: e.value.style.chart.backgroundColor,
1029
+ "stroke-width": 0.5
1030
+ }, null, 8, ao))), 256))
1031
+ ])) : p("", !0)
1032
+ ], 12, Xl))), 256))
1033
+ ])) : p("", !0)
1034
+ ])) : p("", !0),
1035
+ e.value.style.shape === "tube" ? (u(), c("g", no, [
1036
+ x.value ? p("", !0) : (u(), c("g", ro, [
1037
+ i("path", {
1038
+ "stroke-dasharray": e.value.style.chart.box.strokeDasharray,
1039
+ d: W.value.tubeTop,
1040
+ stroke: e.value.style.chart.box.stroke,
1041
+ "stroke-width": e.value.style.chart.box.strokeWidth,
1042
+ "stroke-linejoin": "round",
1043
+ "stroke-linecap": "round",
1044
+ fill: "none"
1045
+ }, null, 8, uo),
1046
+ i("path", {
1047
+ "stroke-dasharray": e.value.style.chart.box.strokeDasharray,
1048
+ d: W.value.tubeLeft,
1049
+ stroke: e.value.style.chart.box.stroke,
1050
+ "stroke-width": e.value.style.chart.box.strokeWidth,
1051
+ "stroke-linejoin": "round",
1052
+ "stroke-linecap": "round",
1053
+ fill: "none"
1054
+ }, null, 8, io),
1055
+ i("path", {
1056
+ "stroke-dasharray": e.value.style.chart.box.strokeDasharray,
1057
+ d: W.value.tubeRight,
1058
+ stroke: e.value.style.chart.box.stroke,
1059
+ "stroke-width": e.value.style.chart.box.strokeWidth,
1060
+ "stroke-linejoin": "round",
1061
+ "stroke-linecap": "round",
1062
+ fill: "none"
1063
+ }, null, 8, co),
1064
+ i("path", {
1065
+ "stroke-dasharray": e.value.style.chart.box.strokeDasharray,
1066
+ d: W.value.tubeBottom,
1067
+ stroke: e.value.style.chart.box.stroke,
1068
+ "stroke-width": e.value.style.chart.box.strokeWidth,
1069
+ "stroke-linejoin": "round",
1070
+ "stroke-linecap": "round",
1071
+ fill: "none"
1072
+ }, null, 8, vo),
1073
+ i("path", {
1074
+ d: K.value.tubeTop,
1075
+ stroke: e.value.style.chart.bar.stroke,
1076
+ "stroke-width": e.value.style.chart.bar.strokeWidth,
1077
+ "stroke-linejoin": "round",
1078
+ "stroke-linecap": "round",
1079
+ fill: `url(#gradient_tube_top${F.value})`
1080
+ }, null, 8, ho),
1081
+ i("path", {
1082
+ d: K.value.tubeBody,
1083
+ stroke: e.value.style.chart.bar.stroke,
1084
+ "stroke-width": e.value.style.chart.bar.strokeWidth,
1085
+ "stroke-linejoin": "round",
1086
+ "stroke-linecap": "round",
1087
+ fill: `url(#gradient_tube_body${F.value})`
1088
+ }, null, 8, fo),
1089
+ i("path", {
1090
+ d: K.value.tubeTop,
1091
+ stroke: "#FFFFFF",
1092
+ "stroke-width": 0.5,
1093
+ "stroke-linejoin": "round",
1094
+ "stroke-linecap": "round",
1095
+ fill: "none"
1096
+ }, null, 8, po)
1097
+ ])),
1098
+ x.value ? (u(), c("g", yo, [
1099
+ (u(!0), c(C, null, M(w.value, (t, v) => (u(), c("g", {
1100
+ style: z(`opacity:${m.value ? m.value === t.id ? 1 : 0.3 : 1}`),
1101
+ class: "vue-ui-3d-bar-stack",
1102
+ onClick: (l) => se("selectDatapoint", t)
1103
+ }, [
1104
+ i("defs", null, [
1105
+ i("radialGradient", {
1106
+ id: `gradient_tube_top_${t.id}`,
1107
+ fx: "10%",
1108
+ cy: "55%"
1109
+ }, [
1110
+ i("stop", {
1111
+ offset: "0%",
1112
+ "stop-color": n($)(n(R)(t.color, 0.5), 80)
1113
+ }, null, 8, $o),
1114
+ i("stop", {
1115
+ offset: "100%",
1116
+ "stop-color": n($)(n(X)(t.color, 0.1), 80)
1117
+ }, null, 8, _o)
1118
+ ], 8, go),
1119
+ i("linearGradient", {
1120
+ id: `gradient_tube_body_${t.id}`,
1121
+ x1: "0%",
1122
+ y1: "0%",
1123
+ x2: "100%",
1124
+ y2: "0%"
1125
+ }, [
1126
+ i("stop", {
1127
+ offset: "0%",
1128
+ "stop-color": `${t.color}`
1129
+ }, null, 8, bo),
1130
+ i("stop", {
1131
+ offset: "10%",
1132
+ "stop-color": n($)(n(X)(t.color, 0.7), 100)
1133
+ }, null, 8, xo),
1134
+ i("stop", {
1135
+ offset: "25%",
1136
+ "stop-color": n($)(n(X)(t.color, 0.5), 100)
1137
+ }, null, 8, wo),
1138
+ i("stop", {
1139
+ offset: "75%",
1140
+ "stop-color": n($)(t.color, 80)
1141
+ }, null, 8, Co),
1142
+ i("stop", {
1143
+ offset: "100%",
1144
+ "stop-color": n($)(n(R)(t.color, 0.7), 100)
1145
+ }, null, 8, Mo)
1146
+ ], 8, mo)
1147
+ ]),
1148
+ i("path", {
1149
+ onMouseenter: (l) => P(t),
1150
+ onClick: (l) => P(t, !0),
1151
+ onMouseout: (l) => U(t),
1152
+ d: t.fill.tubeBody,
1153
+ stroke: "#FFFFFF",
1154
+ "stroke-width": 0.5,
1155
+ "stroke-linejoin": "round",
1156
+ "stroke-linecap": "round",
1157
+ fill: `url(#gradient_tube_body_${t.id})`
1158
+ }, null, 40, Fo),
1159
+ v > 0 ? (u(), c("path", {
1160
+ key: 0,
1161
+ onMouseenter: (l) => P(t),
1162
+ onClick: (l) => P(t, !0),
1163
+ onMouseout: (l) => U(t),
1164
+ d: t.fill.bottomTubeTop,
1165
+ stroke: "#000000",
1166
+ "stroke-width": 0.5,
1167
+ "stroke-linejoin": "round",
1168
+ "stroke-linecap": "round",
1169
+ fill: "none"
1170
+ }, null, 40, Po)) : p("", !0),
1171
+ i("path", {
1172
+ onMouseenter: (l) => P(t),
1173
+ onClick: (l) => P(t, !0),
1174
+ onMouseout: (l) => U(t),
1175
+ d: t.fill.tubeTop,
1176
+ stroke: "#FFFFFF",
1177
+ "stroke-width": 0.5,
1178
+ "stroke-linejoin": "round",
1179
+ "stroke-linecap": "round",
1180
+ fill: `url(#gradient_tube_top_${t.id})`
1181
+ }, null, 40, To)
1182
+ ], 12, ko))), 256)),
1183
+ (u(!0), c(C, null, M(w.value, (t, v) => (u(), c("g", {
1184
+ style: z(`opacity:${m.value ? m.value === t.id ? 1 : 0 : t.proportion * 100 > e.value.style.chart.legend.hideUnderPercentage ? 1 : 0}`),
1185
+ onClick: (l) => se("selectDatapoint", t)
1186
+ }, [
1187
+ i("path", {
1188
+ stroke: e.value.style.chart.color,
1189
+ "stroke-dasharray": "1",
1190
+ "stroke-width": "0.5",
1191
+ "stroke-linecap": "round",
1192
+ d: `M${t.fill.sidePointer.x},${t.fill.sidePointer.y} ${t.fill.sidePointer.x2},${t.fill.sidePointer.y}`
1193
+ }, null, 8, Ao),
1194
+ !t.fill.miniDonut || m.value ? (u(), c("circle", {
1195
+ key: 0,
1196
+ cx: t.fill.sidePointer.x2,
1197
+ cy: t.fill.sidePointer.y,
1198
+ r: 2,
1199
+ fill: t.color,
1200
+ stroke: e.value.style.chart.backgroundColor
1201
+ }, null, 8, So)) : p("", !0),
1202
+ n(Z) ? (u(), c("rect", {
1203
+ key: 1,
1204
+ x: t.fill.sidePointer.xText,
1205
+ y: t.fill.sidePointer.y - e.value.style.chart.legend.fontSize / 2,
1206
+ width: s.value.width / 3,
1207
+ height: e.value.style.chart.legend.fontSize,
1208
+ fill: "#6A6A6A80",
1209
+ rx: "3"
1210
+ }, null, 8, Bo)) : p("", !0),
1211
+ n(Z) ? p("", !0) : (u(), c("foreignObject", {
1212
+ key: 2,
1213
+ x: t.fill.sidePointer.xText,
1214
+ y: t.fill.sidePointer.y - e.value.style.chart.legend.fontSize,
1215
+ width: s.value.absoluteWidth / 3,
1216
+ height: e.value.style.chart.legend.fontSize * 2,
1217
+ style: { overflow: "visible", position: "relative" }
1218
+ }, [
1219
+ e.value.style.chart.legend.showDefault ? (u(), c("div", {
1220
+ key: 0,
1221
+ style: z(`height: 100%; width: 100%; display: flex; flex-direction: row; flex-wrap: wrap; align-items:center;justify-content: flex-start; font-size:${e.value.style.chart.legend.fontSize}px; text-align:left; line-height: ${e.value.style.chart.legend.fontSize}px; color:${e.value.style.chart.legend.color}`)
1222
+ }, I(n(fe)(
1223
+ e.value.style.chart.dataLabel.formatter,
1224
+ t.value,
1225
+ `${t.name}: ${n(B)({ v: t.proportion * 100, s: "%", r: e.value.style.chart.legend.roundingPercentage })} (${n(B)({
1226
+ p: e.value.style.chart.legend.prefix,
1227
+ v: t.value,
1228
+ s: e.value.style.chart.legend.suffix,
1229
+ r: e.value.style.chart.legend.roundingValue
1230
+ })})`,
1231
+ { datapoint: t, seriesIndex: v, type: "barDatapoint" }
1232
+ )), 5)) : p("", !0),
1233
+ T(a.$slots, "legend", xe({ ref_for: !0 }, { datapoint: t, config: e.value, dataset: w.value }), void 0, !0)
1234
+ ], 8, Oo)),
1235
+ t.fill.donut && m.value === t.id ? (u(), c("g", jo, [
1236
+ (u(!0), c(C, null, M(t.fill.donut, (l, d) => (u(), c("g", null, [
1237
+ J(l, t.fill.donut, !0) > 6 ? (u(), c("path", {
1238
+ key: 0,
1239
+ d: n(lt)(l, { x: l.cx, y: l.cy }, 0, 8, !1, !0, 10),
1240
+ stroke: l.color,
1241
+ class: "vue-ui-donut-arc-path",
1242
+ "stroke-width": "0.5",
1243
+ "stroke-linecap": "round",
1244
+ "stroke-linejoin": "round",
1245
+ fill: "none"
1246
+ }, null, 8, zo)) : p("", !0)
1247
+ ]))), 256)),
1248
+ (u(!0), c(C, null, M(t.fill.donut, (l, d) => (u(), c("path", {
1249
+ class: "vue-ui-donut-arc-path",
1250
+ d: l.arcSlice,
1251
+ fill: `${l.color}`,
1252
+ stroke: e.value.style.chart.backgroundColor,
1253
+ "stroke-width": 1
1254
+ }, null, 8, Io))), 256)),
1255
+ (u(!0), c(C, null, M(t.fill.donut, (l, d) => (u(), c("g", null, [
1256
+ J(l, t.fill.donut, !0) > 6 ? (u(), c("g", No, [
1257
+ i("text", {
1258
+ "text-anchor": n(V)(l, !0, 0).anchor,
1259
+ x: n(V)(l, !0, 2).x,
1260
+ y: n(pe)(l, 12, 12),
1261
+ fill: e.value.style.chart.legend.color,
1262
+ "font-size": e.value.style.chart.legend.fontSize / 1.5
1263
+ }, I(n(fe)(
1264
+ e.value.style.chart.dataLabel.formatter,
1265
+ l.value,
1266
+ `${J(l, t.fill.donut)} (${n(B)({
1267
+ p: e.value.style.chart.legend.prefix,
1268
+ v: l.value,
1269
+ s: e.value.style.chart.legend.suffix,
1270
+ r: e.value.style.chart.legend.roundingValue
1271
+ })})`,
1272
+ { datapoint: l, seriesIndex: d, type: "donutDatapoint" }
1273
+ )), 9, Lo),
1274
+ i("text", {
1275
+ "text-anchor": n(V)(l).anchor,
1276
+ x: n(V)(l, !0, 2).x,
1277
+ y: n(pe)(l, 12, 12) + e.value.style.chart.legend.fontSize / 1.5,
1278
+ fill: e.value.style.chart.legend.color,
1279
+ "font-size": e.value.style.chart.legend.fontSize / 1.5
1280
+ }, I(l.name), 9, Wo)
1281
+ ])) : p("", !0)
1282
+ ]))), 256))
1283
+ ])) : p("", !0),
1284
+ t.fill.miniDonut && !m.value ? (u(), c("g", Eo, [
1285
+ (u(!0), c(C, null, M(t.fill.miniDonut, (l, d) => (u(), c("path", {
1286
+ class: "vue-ui-donut-arc-path",
1287
+ d: l.arcSlice,
1288
+ fill: `${l.color}`,
1289
+ stroke: e.value.style.chart.backgroundColor,
1290
+ "stroke-width": 0.5
1291
+ }, null, 8, Go))), 256))
1292
+ ])) : p("", !0)
1293
+ ], 12, Do))), 256))
1294
+ ])) : p("", !0)
1295
+ ])) : p("", !0),
1296
+ T(a.$slots, "svg", { svg: s.value }, void 0, !0)
1297
+ ], 14, Zt)),
1298
+ a.$slots.watermark ? (u(), c("div", Ro, [
1299
+ T(a.$slots, "watermark", de(ce({ isPrinting: n(Be) || n(Oe) })), void 0, !0)
1300
+ ])) : p("", !0),
1301
+ a.$slots.source ? (u(), c("div", {
1302
+ key: 4,
1303
+ ref_key: "source",
1304
+ ref: Te,
1305
+ dir: "auto"
1306
+ }, [
1307
+ T(a.$slots, "source", {}, void 0, !0)
1308
+ ], 512)) : p("", !0),
1309
+ Ce.value && x.value ? (u(), Q(Ct(oe.value.component), xe({ key: 5 }, oe.value.props, {
1310
+ ref_key: "tableUnit",
1311
+ ref: le,
1312
+ onClose: o[9] || (o[9] = (t) => L.value.showTable = !1)
1313
+ }), Ze({
1314
+ content: S(() => [
1315
+ (u(), Q(n(it), {
1316
+ key: `table_${Fe.value}`,
1317
+ colNames: ue.value.colNames,
1318
+ head: ue.value.head,
1319
+ body: ue.value.body,
1320
+ config: ue.value.config,
1321
+ title: e.value.table.useDialog ? "" : oe.value.title,
1322
+ withCloseButton: !e.value.table.useDialog,
1323
+ onClose: o[8] || (o[8] = (t) => L.value.showTable = !1)
1324
+ }, {
1325
+ th: S(({ th: t }) => [
1326
+ i("div", {
1327
+ innerHTML: t,
1328
+ style: { display: "flex", "align-items": "center" }
1329
+ }, null, 8, Vo)
1330
+ ]),
1331
+ td: S(({ td: t }) => [
1332
+ Je(I(t.name || t), 1)
1333
+ ]),
1334
+ _: 1
1335
+ }, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
1336
+ ]),
1337
+ _: 2
1338
+ }, [
1339
+ e.value.table.useDialog ? {
1340
+ name: "title",
1341
+ fn: S(() => [
1342
+ Je(I(oe.value.title), 1)
1343
+ ]),
1344
+ key: "0"
1345
+ } : void 0,
1346
+ e.value.table.useDialog ? {
1347
+ name: "actions",
1348
+ fn: S(() => [
1349
+ i("button", {
1350
+ tabindex: "0",
1351
+ class: "vue-ui-user-options-button",
1352
+ onClick: o[7] || (o[7] = (t) => $e(e.value.userOptions.callbacks.csv))
1353
+ }, [
1354
+ qe(n(rt), {
1355
+ name: "excel",
1356
+ stroke: oe.value.props.color
1357
+ }, null, 8, ["stroke"])
1358
+ ])
1359
+ ]),
1360
+ key: "1"
1361
+ } : void 0
1362
+ ]), 1040)) : p("", !0),
1363
+ n(Z) ? (u(), Q(Wt, { key: 6 })) : p("", !0)
1364
+ ], 44, Xt));
1365
+ }
1366
+ }, ss = /* @__PURE__ */ Ht(Uo, [["__scopeId", "data-v-de96a9d5"]]);
1367
+ export {
1368
+ ss as default
1369
+ };