vue-data-ui 2.3.2 → 2.3.4

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 (148) hide show
  1. package/dist/Arrow-B6gJebT9.js +101 -0
  2. package/dist/Arrow-C5yj6zwY.cjs +1 -0
  3. package/dist/BaseIcon-7_g11dRj.js +174 -0
  4. package/dist/BaseIcon-JtWoVorZ.cjs +1 -0
  5. package/dist/DataTable-CwaOlAsy.js +127 -0
  6. package/dist/DataTable-Rm9II-m2.cjs +1 -0
  7. package/dist/Legend-CxvJTjEm.js +62 -0
  8. package/dist/Legend-D59FIuMs.cjs +1 -0
  9. package/dist/Shape-CVItL3vh.cjs +1 -0
  10. package/dist/Shape-CjLV0scA.js +107 -0
  11. package/dist/Slicer-Bxg5niHl.js +156 -0
  12. package/dist/Slicer-Cdss5Rus.cjs +1 -0
  13. package/dist/Title-2iks1ziC.js +46 -0
  14. package/dist/Title-Bb-A5OSV.cjs +1 -0
  15. package/dist/Tooltip-C3phqKuU.js +94 -0
  16. package/dist/Tooltip-C_UE6y-E.cjs +1 -0
  17. package/dist/_plugin-vue_export-helper-BHFhmbuH.cjs +1 -0
  18. package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
  19. package/dist/html2canvas.esm-BA_v9SIU.cjs +22 -0
  20. package/dist/html2canvas.esm-d2sM-0Wm.js +4870 -0
  21. package/dist/index-p5gfZSvB.cjs +4 -0
  22. package/dist/index-uOtklCCx.js +10268 -0
  23. package/dist/{index.es-BoVO5twe.js → index.es-YufTdp0y.js} +1 -1
  24. package/dist/{index.es-w_iDpZ-o.cjs → index.es-uyeSCnWE.cjs} +1 -1
  25. package/dist/jspdf.es.min-C660YX78.js +8038 -0
  26. package/dist/jspdf.es.min-DLYY9DTT.cjs +243 -0
  27. package/dist/pdf-97UbtKC2.js +44 -0
  28. package/dist/pdf-Cz3729tZ.cjs +1 -0
  29. package/dist/style.css +1 -1
  30. package/dist/useNestedProp-2kIU-7On.cjs +1 -0
  31. package/dist/useNestedProp-BgWkUab_.js +13 -0
  32. package/dist/usePrinter-B6xQCyL-.js +464 -0
  33. package/dist/usePrinter-fZlsJid8.cjs +1 -0
  34. package/dist/useResponsive-B3TrDDIG.cjs +1 -0
  35. package/dist/useResponsive-NZB-WLRF.js +187 -0
  36. package/dist/vue-data-ui-Be0rgmbA.cjs +9 -0
  37. package/dist/vue-data-ui-Ccy6rBZN.js +246 -0
  38. package/dist/vue-data-ui.cjs +1 -1
  39. package/dist/vue-data-ui.js +62 -61
  40. package/dist/vue-ui-3d-bar-BKMPFDi2.js +1085 -0
  41. package/dist/vue-ui-3d-bar-CKa4UXq4.cjs +19 -0
  42. package/dist/vue-ui-accordion-C_pwrAJl.cjs +1 -0
  43. package/dist/vue-ui-accordion-HJPf7My0.js +77 -0
  44. package/dist/vue-ui-age-pyramid-CE1xnA-8.cjs +1 -0
  45. package/dist/vue-ui-age-pyramid-DB_CL-gu.js +596 -0
  46. package/dist/vue-ui-annotator-BAMZcPlH.cjs +371 -0
  47. package/dist/vue-ui-annotator-DQsAL-nZ.js +2177 -0
  48. package/dist/vue-ui-candlestick-DCl8fpNu.js +657 -0
  49. package/dist/vue-ui-candlestick-Duv6oG79.cjs +2 -0
  50. package/dist/vue-ui-chestnut-BYHA6MT4.js +1051 -0
  51. package/dist/vue-ui-chestnut-mIZ4-ZEM.cjs +6 -0
  52. package/dist/vue-ui-cursor-C96IChA3.js +229 -0
  53. package/dist/vue-ui-cursor-De7dy4Mo.cjs +1 -0
  54. package/dist/vue-ui-dashboard-B2Yz41yO.js +232 -0
  55. package/dist/vue-ui-dashboard-BMGwKr0K.cjs +1 -0
  56. package/dist/vue-ui-digits-BnxLp7zQ.js +153 -0
  57. package/dist/vue-ui-digits-DSWyL-5K.cjs +1 -0
  58. package/dist/vue-ui-donut-1kei9ws5.cjs +1 -0
  59. package/dist/vue-ui-donut-B9iXisHK.js +743 -0
  60. package/dist/vue-ui-donut-evolution-B7Sun8sw.js +799 -0
  61. package/dist/vue-ui-donut-evolution-yv17DnGy.cjs +1 -0
  62. package/dist/vue-ui-dumbbell-BJEf_JEq.cjs +9 -0
  63. package/dist/vue-ui-dumbbell-DIsDnD1d.js +624 -0
  64. package/dist/vue-ui-flow-BTivYoGd.js +454 -0
  65. package/dist/vue-ui-flow-DOxJa8di.cjs +1 -0
  66. package/dist/vue-ui-galaxy-BEmywfFB.js +485 -0
  67. package/dist/vue-ui-galaxy-CHGOwCwM.cjs +1 -0
  68. package/dist/vue-ui-gauge-QAfMl-8t.cjs +1 -0
  69. package/dist/vue-ui-gauge-o4rDOqF3.js +466 -0
  70. package/dist/vue-ui-heatmap-BS4EzedX.cjs +1 -0
  71. package/dist/vue-ui-heatmap-DwqQqEsk.js +598 -0
  72. package/dist/vue-ui-kpi-F4qkJ_U-.cjs +1 -0
  73. package/dist/vue-ui-kpi-h8elYTcA.js +54 -0
  74. package/dist/vue-ui-mini-loader-C_8B2Pm6.cjs +1 -0
  75. package/dist/vue-ui-mini-loader-Cgoi9rhH.js +131 -0
  76. package/dist/vue-ui-molecule-Bmv76SWz.js +750 -0
  77. package/dist/vue-ui-molecule-C5CY_YYc.cjs +1 -0
  78. package/dist/vue-ui-mood-radar-BN0dzlfp.cjs +1 -0
  79. package/dist/vue-ui-mood-radar-DeMouUIe.js +548 -0
  80. package/dist/vue-ui-nested-donuts-ZyFoV-Zn.cjs +16 -0
  81. package/dist/vue-ui-nested-donuts-wOUkSVyZ.js +771 -0
  82. package/dist/vue-ui-onion-DCOKG2wG.js +554 -0
  83. package/dist/vue-ui-onion-VmTUo7TR.cjs +1 -0
  84. package/dist/vue-ui-parallel-coordinate-plot-BGtO2P4a.js +651 -0
  85. package/dist/vue-ui-parallel-coordinate-plot-BziXRF8E.cjs +8 -0
  86. package/dist/vue-ui-quadrant--JOTjPZh.js +1178 -0
  87. package/dist/vue-ui-quadrant-DawUUrur.cjs +1 -0
  88. package/dist/vue-ui-quick-chart-LXKfaJgS.js +1310 -0
  89. package/dist/vue-ui-quick-chart-jFlFtiNV.cjs +13 -0
  90. package/dist/vue-ui-radar-CWNIqvcA.js +614 -0
  91. package/dist/vue-ui-radar-VGH-lhaT.cjs +1 -0
  92. package/dist/vue-ui-rating-BNrIoJHN.js +271 -0
  93. package/dist/vue-ui-rating-Dtu6pwGx.cjs +1 -0
  94. package/dist/vue-ui-relation-circle-B3NKudOy.js +304 -0
  95. package/dist/vue-ui-relation-circle-Dwpx9o18.cjs +1 -0
  96. package/dist/vue-ui-rings-CsUngX_F.js +510 -0
  97. package/dist/vue-ui-rings-D9_OG--0.cjs +1 -0
  98. package/dist/vue-ui-scatter-DUsuh7bd.cjs +1 -0
  99. package/dist/vue-ui-scatter-DgxTz4Jx.js +874 -0
  100. package/dist/vue-ui-screenshot-51H_VrYY.js +160 -0
  101. package/dist/vue-ui-screenshot-C2Dz7CAe.cjs +3 -0
  102. package/dist/vue-ui-skeleton-BM9rwmxY.js +2064 -0
  103. package/dist/vue-ui-skeleton-sjfOtCZr.cjs +41 -0
  104. package/dist/vue-ui-smiley-DNnBtHht.cjs +2 -0
  105. package/dist/vue-ui-smiley-H5rSN-1B.js +763 -0
  106. package/dist/vue-ui-spark-trend-CLXZDYlk.js +246 -0
  107. package/dist/vue-ui-spark-trend-R4JJvfry.cjs +1 -0
  108. package/dist/vue-ui-sparkbar-C0k4ah-7.js +242 -0
  109. package/dist/vue-ui-sparkbar-CEUDIw0A.cjs +1 -0
  110. package/dist/vue-ui-sparkgauge-BHj00A07.js +157 -0
  111. package/dist/vue-ui-sparkgauge-CaEw6nmI.cjs +1 -0
  112. package/dist/vue-ui-sparkhistogram-B6GuavEu.cjs +1 -0
  113. package/dist/vue-ui-sparkhistogram-DbMLYKqE.js +244 -0
  114. package/dist/vue-ui-sparkline-CJydanLS.cjs +1 -0
  115. package/dist/vue-ui-sparkline-CYova9x3.js +333 -0
  116. package/dist/vue-ui-sparkstackbar-Df__yM5b.cjs +1 -0
  117. package/dist/vue-ui-sparkstackbar-N5rVBM2h.js +244 -0
  118. package/dist/vue-ui-strip-plot-DJJ1vEWz.js +618 -0
  119. package/dist/vue-ui-strip-plot-b5lhB35d.cjs +1 -0
  120. package/dist/vue-ui-table-NHhOVDbs.cjs +14 -0
  121. package/dist/vue-ui-table-heatmap-Cro2etCY.js +237 -0
  122. package/dist/vue-ui-table-heatmap-DlL2nCqz.cjs +1 -0
  123. package/dist/vue-ui-table-sparkline-Bw2Gc_ur.cjs +1 -0
  124. package/dist/vue-ui-table-sparkline-DppMitqF.js +420 -0
  125. package/dist/vue-ui-table-xSvwJIa7.js +1430 -0
  126. package/dist/vue-ui-thermometer-M2kdp1x5.js +385 -0
  127. package/dist/vue-ui-thermometer-Q_3PX2V3.cjs +1 -0
  128. package/dist/vue-ui-timer-BtSDeIRp.cjs +64 -0
  129. package/dist/vue-ui-timer-CAaQ-QD6.js +453 -0
  130. package/dist/vue-ui-tiremarks-CbGOSEvD.cjs +1 -0
  131. package/dist/vue-ui-tiremarks-JFv4JLP0.js +249 -0
  132. package/dist/vue-ui-treemap-BqDX-bPf.cjs +1 -0
  133. package/dist/vue-ui-treemap-DCnv-xYr.js +722 -0
  134. package/dist/vue-ui-vertical-bar-CEbApJZl.js +737 -0
  135. package/dist/vue-ui-vertical-bar-CJB_KXyr.cjs +4 -0
  136. package/dist/vue-ui-waffle-CTS6C7gu.js +638 -0
  137. package/dist/vue-ui-waffle-IMEbGe-b.cjs +1 -0
  138. package/dist/vue-ui-wheel-CuOmEWMQ.cjs +1 -0
  139. package/dist/vue-ui-wheel-_zyCdFiI.js +227 -0
  140. package/dist/vue-ui-word-cloud-RDlXBEAN.js +346 -0
  141. package/dist/vue-ui-word-cloud-Y7Yk7uUJ.cjs +1 -0
  142. package/dist/vue-ui-xy-BZJQBKnU.cjs +3 -0
  143. package/dist/vue-ui-xy-DsvN9EIQ.js +2064 -0
  144. package/dist/vue-ui-xy-canvas-D_dnbyFS.cjs +9 -0
  145. package/dist/vue-ui-xy-canvas-Dbcw8-9Q.js +1006 -0
  146. package/package.json +1 -1
  147. package/dist/index-C6KVJkgd.cjs +0 -843
  148. package/dist/index-bDBuMYfe.js +0 -57303
@@ -0,0 +1,1085 @@
1
+ import { computed as P, ref as N, onMounted as ze, openBlock as r, createElementBlock as i, normalizeClass as ye, normalizeStyle as D, createVNode as ke, createCommentVNode as k, createBlock as le, unref as v, createSlots as Be, withCtx as z, renderSlot as B, normalizeProps as oe, guardReactiveProps as se, createElementVNode as n, Fragment as $, renderList as g, toDisplayString as M, createTextVNode as Ie, nextTick as Oe, pushScopeId as Le, popScopeId as We } from "vue";
2
+ import { u as Ge, c as $e, t as Ve, a as Ae, p as R, b as Ue, d as j, o as Ee, e as Y, g as ae, l as A, m as ge, f as I, X as He, h as J, i as _e, j as O, k as K, n as Ze, q as qe } from "./index-uOtklCCx.js";
3
+ import { _ as Xe } from "./Title-2iks1ziC.js";
4
+ import { u as Re, U as Ye } from "./usePrinter-B6xQCyL-.js";
5
+ import Je from "./vue-ui-skeleton-BM9rwmxY.js";
6
+ import { D as Ke } from "./DataTable-CwaOlAsy.js";
7
+ import Qe from "./vue-ui-accordion-HJPf7My0.js";
8
+ import { u as me } from "./useNestedProp-BgWkUab_.js";
9
+ import { _ as et } from "./_plugin-vue_export-helper-CHgC5LLL.js";
10
+ const Q = (U) => (Le("data-v-30081550"), U = U(), We(), U), tt = ["id"], lt = ["xmlns", "viewBox"], ot = ["id"], st = ["stop-color"], at = ["stop-color"], nt = ["id"], rt = ["stop-color"], ut = ["stop-color"], it = ["id"], dt = ["stop-color"], ct = ["stop-color"], ht = ["id"], vt = ["stop-color"], ft = ["stop-color"], pt = ["stop-color"], yt = { key: 0 }, kt = ["id"], $t = ["stop-color"], gt = ["stop-color"], _t = ["id"], mt = ["stop-color"], xt = ["stop-color"], bt = ["id"], wt = ["stop-color"], Ct = ["stop-color"], Ft = ["id"], Mt = /* @__PURE__ */ Q(() => /* @__PURE__ */ n("stop", {
11
+ offset: "0%",
12
+ "stop-color": "#FFFFFF"
13
+ }, null, -1)), Pt = /* @__PURE__ */ Q(() => /* @__PURE__ */ n("stop", {
14
+ offset: "100%",
15
+ "stop-color": "#FFFFFF33"
16
+ }, null, -1)), Dt = [
17
+ Mt,
18
+ Pt
19
+ ], jt = ["x", "y", "font-size", "font-weight", "fill"], St = ["x", "y"], Tt = ["d", "stroke"], Nt = ["d", "stroke"], zt = { key: 3 }, Bt = { key: 0 }, It = ["stroke-dasharray", "d", "stroke", "stroke-width"], Ot = ["stroke-dasharray", "d", "stroke", "stroke-width"], Lt = ["stroke-dasharray", "d", "stroke", "stroke-width"], Wt = ["stroke-dasharray", "d", "stroke", "stroke-width"], Gt = { key: 1 }, Vt = ["d", "stroke", "stroke-width", "fill"], At = ["d", "stroke", "stroke-width", "fill"], Ut = ["d", "stroke", "stroke-width", "fill"], Et = { key: 2 }, Ht = ["d", "fill", "onMouseenter", "onClick"], Zt = ["d", "fill", "onMouseenter", "onClick"], qt = ["d", "fill", "onMouseenter", "onClick"], Xt = ["d", "onMouseenter", "onClick"], Rt = ["d"], Yt = ["d", "stroke"], Jt = ["onClick"], Kt = ["stroke", "d"], Qt = ["cx", "cy", "fill", "stroke"], el = ["x", "y", "width", "height"], tl = { key: 1 }, ll = ["d", "stroke"], ol = ["d", "fill", "stroke"], sl = ["id"], al = ["stop-color"], nl = /* @__PURE__ */ Q(() => /* @__PURE__ */ n("stop", {
20
+ offset: "77%",
21
+ "stop-color": "#FFFFFF20"
22
+ }, null, -1)), rl = ["stop-color"], ul = ["cx", "cy", "fill"], il = ["cx", "cy", "fill"], dl = { key: 0 }, cl = ["text-anchor", "x", "y", "fill", "font-size"], hl = ["text-anchor", "x", "y", "fill", "font-size"], vl = { key: 2 }, fl = ["d", "fill", "stroke"], pl = { key: 4 }, yl = { key: 0 }, kl = ["stroke-dasharray", "d", "stroke", "stroke-width"], $l = ["stroke-dasharray", "d", "stroke", "stroke-width"], gl = ["stroke-dasharray", "d", "stroke", "stroke-width"], _l = ["stroke-dasharray", "d", "stroke", "stroke-width"], ml = ["d", "stroke", "stroke-width", "fill"], xl = ["d", "stroke", "stroke-width", "fill"], bl = { key: 1 }, wl = ["onClick"], Cl = ["id"], Fl = ["stop-color"], Ml = ["stop-color"], Pl = ["id"], Dl = ["stop-color"], jl = ["stop-color"], Sl = ["stop-color"], Tl = ["stop-color"], Nl = ["stop-color"], zl = ["onMouseenter", "onClick", "d", "fill"], Bl = ["onMouseenter", "onClick", "d"], Il = ["onMouseenter", "onClick", "d", "fill"], Ol = ["onClick"], Ll = ["stroke", "d"], Wl = ["cx", "cy", "fill", "stroke"], Gl = ["x", "y", "width", "height"], Vl = { key: 1 }, Al = ["d", "stroke"], Ul = ["d", "fill", "stroke"], El = ["id"], Hl = ["stop-color"], Zl = /* @__PURE__ */ Q(() => /* @__PURE__ */ n("stop", {
23
+ offset: "77%",
24
+ "stop-color": "#FFFFFF20"
25
+ }, null, -1)), ql = ["stop-color"], Xl = ["cx", "cy", "fill"], Rl = ["cx", "cy", "fill"], Yl = { key: 0 }, Jl = ["text-anchor", "x", "y", "fill", "font-size"], Kl = ["text-anchor", "x", "y", "fill", "font-size"], Ql = { key: 2 }, eo = ["d", "fill", "stroke"], to = ["innerHTML"], lo = {
26
+ __name: "vue-ui-3d-bar",
27
+ props: {
28
+ config: {
29
+ type: Object,
30
+ default() {
31
+ return {};
32
+ }
33
+ },
34
+ dataset: {
35
+ type: Object,
36
+ default() {
37
+ return {};
38
+ }
39
+ }
40
+ },
41
+ emits: ["selectDatapoint"],
42
+ setup(U, { expose: xe, emit: H }) {
43
+ const _ = U, { vue_ui_3d_bar: be } = Ge(), Z = P(() => !!_.dataset && Object.keys(_.dataset).length), x = N($e()), we = N(null), ne = N(null), L = N(!1), t = P(() => {
44
+ const d = me({
45
+ userConfig: _.config,
46
+ defaultConfig: be
47
+ });
48
+ return d.theme ? {
49
+ ...me({
50
+ userConfig: Ve.vue_ui_3d_bar[d.theme] || _.config,
51
+ defaultConfig: d
52
+ }),
53
+ customPalette: Ae[d.theme] || R
54
+ } : d;
55
+ }), { isPrinting: Ce, isImaging: Fe, generatePdf: re, generateImage: ue } = Re({
56
+ elementId: `3d_bar_${x.value}`,
57
+ fileName: t.value.style.chart.title.text || "vue-ui-3d-bar"
58
+ }), Me = P(() => Ue(t.value.customPalette)), q = N({
59
+ showTable: t.value.table.show
60
+ }), C = P(() => _.dataset.series && _.dataset.series.length), o = P(() => ({
61
+ height: t.value.style.chart.box.dimensions.height,
62
+ width: t.value.style.chart.box.dimensions.width,
63
+ absoluteWidth: t.value.style.chart.box.dimensions.width * (C.value ? 2 : 1),
64
+ top: t.value.style.chart.box.dimensions.top,
65
+ bottom: t.value.style.chart.box.dimensions.bottom,
66
+ left: t.value.style.chart.box.dimensions.left,
67
+ right: t.value.style.chart.box.dimensions.right,
68
+ perspective: t.value.style.chart.box.dimensions.perspective
69
+ })), w = P(() => {
70
+ if (C.value) {
71
+ const d = _.dataset.series.map((l) => l.value || 0).reduce((l, a) => l + a, 0), s = _.dataset.series.map((l, a) => ({
72
+ ...l,
73
+ id: $e(),
74
+ proportion: (l.value || 0) / d,
75
+ color: j(l.color) || Me.value[a] || R[a] || R[a % R.length],
76
+ breakdown: l.breakdown ? l.breakdown.sort((u, y) => y.value - u.value) : null
77
+ })).sort((l, a) => a.value - l.value), e = [];
78
+ let c = 0;
79
+ for (let l = 0; l < s.length; l += 1)
80
+ e.push({
81
+ ...s[l],
82
+ fill: Pe(c, s[l].proportion, s[l].breakdown, s[l].color)
83
+ }), c += s[l].proportion;
84
+ return e;
85
+ }
86
+ return null;
87
+ }), S = P(() => ({
88
+ right: `M${o.value.width / 2},${o.value.top} ${o.value.width - o.value.right}, ${o.value.top + o.value.perspective} ${o.value.width - o.value.right},${o.value.height - o.value.bottom - o.value.perspective} ${o.value.width / 2},${o.value.height - o.value.bottom}`,
89
+ left: `M${o.value.width / 2},${o.value.top} ${o.value.left},${o.value.top + o.value.perspective} ${o.value.left},${o.value.height - o.value.bottom - o.value.perspective} ${o.value.width / 2},${o.value.height - o.value.bottom}`,
90
+ side: `M${o.value.width / 2},${o.value.height - o.value.bottom} ${o.value.width / 2},${o.value.top + o.value.perspective * 2}`,
91
+ topSides: `M${o.value.left},${o.value.top + o.value.perspective} ${o.value.width / 2},${o.value.top + o.value.perspective * 2} ${o.value.width - o.value.right},${o.value.top + o.value.perspective}`,
92
+ tubeTop: `M${o.value.left},${o.value.top + o.value.perspective} C ${o.value.left},${o.value.top - o.value.perspective / 3} ${o.value.width - o.value.right},${o.value.top - o.value.perspective / 3} ${o.value.width - o.value.right},${o.value.top + o.value.perspective} C ${o.value.width - o.value.right},${o.value.top + o.value.perspective * 2.3} ${o.value.left},${o.value.top + o.value.perspective * 2.3} ${o.value.left},${o.value.top + o.value.perspective}`,
93
+ tubeLeft: `M${o.value.left},${o.value.top + o.value.perspective} ${o.value.left},${o.value.height - o.value.bottom - o.value.perspective}`,
94
+ tubeRight: `M${o.value.width - o.value.right},${o.value.top + o.value.perspective} ${o.value.width - o.value.right},${o.value.height - o.value.bottom - o.value.perspective}`,
95
+ tubeBottom: `M${o.value.width - o.value.right},${o.value.height - o.value.bottom - o.value.perspective} C ${o.value.width - o.value.right},${o.value.height} ${o.value.left},${o.value.height} ${o.value.left},${o.value.height - o.value.bottom - o.value.perspective}`
96
+ })), W = N(t.value.style.chart.animation.use ? 0 : _.dataset.percentage);
97
+ ze(() => {
98
+ Ee(_.dataset) ? Y({
99
+ componentName: "VueUi3dBar",
100
+ type: "dataset"
101
+ }) : _.dataset.series ? _.dataset.series.forEach((l, a) => {
102
+ ae({
103
+ datasetObject: l,
104
+ requiredAttributes: ["name", "value"]
105
+ }).forEach((u) => {
106
+ Y({
107
+ componentName: "VueUi3dBar",
108
+ type: "datasetSerieAttribute",
109
+ property: u,
110
+ index: a
111
+ });
112
+ }), l.breakdown && l.breakdown.forEach((u, y) => {
113
+ ae({
114
+ datasetObject: u,
115
+ requiredAttributes: ["name", "value"]
116
+ }).forEach((m) => {
117
+ Y({
118
+ componentName: "VueUi3dBar",
119
+ type: "datasetSerieAttribute",
120
+ property: m,
121
+ index: `${a} - ${y}`
122
+ });
123
+ });
124
+ });
125
+ }) : ae({
126
+ datasetObject: _.dataset,
127
+ requiredAttributes: ["percentage"]
128
+ }).forEach((l) => {
129
+ Y({
130
+ componentName: "VueUi3dBar",
131
+ type: "datasetAttribute",
132
+ property: l
133
+ });
134
+ });
135
+ let d = 0, s = t.value.style.chart.animation.speed, e = 5e-3 * t.value.style.chart.animation.acceleration;
136
+ function c() {
137
+ W.value += s + d, d += e, W.value < _.dataset.percentage ? requestAnimationFrame(c) : W.value = _.dataset.percentage;
138
+ }
139
+ t.value.style.chart.animation.use && (W.value = 0, c());
140
+ });
141
+ function Pe(d, s, e, c) {
142
+ const l = o.value.height - o.value.bottom - o.value.top - o.value.perspective * 2, { width: a, height: u, bottom: y, right: m, left: f, perspective: p } = o.value, h = y + l * d, te = u - h - p - l * s / 2, Se = te > o.value.height / 2 ? "top" : "bottom", he = 64, Te = !!e;
143
+ let ve = null, fe = null;
144
+ return Te && (e = e.map((pe, Ne) => ({
145
+ ...pe,
146
+ value: pe.value || 0,
147
+ color: A(c, Ne / e.length)
148
+ })), ve = ge(
149
+ { series: e },
150
+ a + o.value.absoluteWidth / 4 - 14,
151
+ Se === "top" ? te - he : te + he,
152
+ 28,
153
+ 28,
154
+ 1.99999,
155
+ 2,
156
+ 1,
157
+ 360,
158
+ 105.25,
159
+ 14
160
+ ), fe = ge(
161
+ { series: e },
162
+ a - m + 20,
163
+ u - h - p - l * s / 2,
164
+ 6,
165
+ 6,
166
+ 1.99999,
167
+ 2,
168
+ 1,
169
+ 360,
170
+ 105.25,
171
+ 6
172
+ )), {
173
+ donut: ve,
174
+ miniDonut: fe,
175
+ sidePointer: {
176
+ x: a - m,
177
+ y: u - h - p - l * s / 2,
178
+ topY: u - h - p - l * s,
179
+ height: l * s
180
+ },
181
+ apexBottom: { y: u - h, x: a / 2 },
182
+ apexTop: { y: u - h - l * s, x: a / 2 },
183
+ right: `M${a / 2},${u - h} ${a / 2},${u - h - l * s} ${a - m},${u - h - p - l * s} ${a - m},${u - h - p}Z`,
184
+ left: `M${a / 2},${u - h} ${a / 2},${u - h - l * s} ${f}, ${u - h - p - l * s} ${f},${u - h - p}Z`,
185
+ liningTop: `M${f},${u - h - p - l * s} ${a / 2},${u - h - l * s} ${a - m},${u - h - p - l * s}`,
186
+ liningTopShade: `M${f},${u - h - p - l * s - 0.5} ${a / 2},${u - h - l * s - 0.5} ${a - m},${u - h - p - l * s - 0.5}`,
187
+ top: `M${a / 2},${u - h - l * s} ${f},${u - h - p - l * s} ${a / 2},${u - h - p * 2 - l * s} ${a - m},${u - h - p - l * s} Z`,
188
+ tubeTop: `M${f},${u - h - l * s - p} C ${f},${u - h - l * s - p * 2.5} ${a - m},${u - h - l * s - p * 2.5} ${a - m},${u - h - l * s - p} C ${a - m},${u - h - l * s + p / 2} ${f},${u - h - l * s + p / 2} ${f},${u - h - l * s - p}`,
189
+ bottomTubeTop: `M ${a - m - 0.5},${u - h - p} C ${a - m - 0.5},${u - h + p / 2} ${f},${u - h + p / 2} ${f + 0.5},${u - h - p}`,
190
+ tubeBody: `M
191
+ ${f},${u - h - l * s - p}
192
+ C ${f},${u - h - l * s + p / 2}
193
+ ${a - m},${u - h - l * s + p / 2}
194
+ ${a - m},${u - h - l * s - p}
195
+ L${a - m},${u - h - p}
196
+ C
197
+ ${a - m},${u - h + p / 2}
198
+ ${f},${u - h + p / 2}
199
+ ${f},${u - h - p}Z`
200
+ };
201
+ }
202
+ const E = P(() => {
203
+ const d = W.value / 100, s = o.value.height - o.value.bottom - o.value.top - o.value.perspective * 2, { width: e, height: c, bottom: l, right: a, left: u, perspective: y } = o.value, f = l + s * 0;
204
+ return {
205
+ right: `M${e / 2},${c - f} ${e / 2},${c - f - s * d} ${e - a},${c - f - y - s * d} ${e - a},${c - f - y}Z`,
206
+ left: `M${e / 2},${c - f} ${e / 2},${c - f - s * d} ${u}, ${c - f - y - s * d} ${u},${c - f - y}Z`,
207
+ top: `M${e / 2},${c - f - s * d} ${u},${c - f - y - s * d} ${e / 2},${c - f - y * 2 - s * d} ${e - a},${c - f - y - s * d} Z`,
208
+ tubeTop: `M${u},${c - f - s * d - y} C ${u},${c - f - s * d - y * 2.5} ${e - a},${c - f - s * d - y * 2.5} ${e - a},${c - f - s * d - y} C ${e - a},${c - f - s * d + y / 2} ${u},${c - f - s * d + y / 2} ${u},${c - f - s * d - y}`,
209
+ tubeBody: `M
210
+ ${u},${c - f - s * d - y}
211
+ C ${u},${c - f - s * d + y / 2}
212
+ ${e - a},${c - f - s * d + y / 2}
213
+ ${e - a},${c - f - s * d - y}
214
+ L${e - a},${c - y * 1.5}
215
+ C
216
+ ${e - a},${c}
217
+ ${u},${c}
218
+ ${u},${c - f - y}Z`
219
+ };
220
+ }), b = N(null);
221
+ function F(d, s = !1) {
222
+ H("selectDatapoint", d), s || (b.value = d.id), s && L.value && (L.value = !1), s && !L.value && (L.value = !0);
223
+ }
224
+ function G() {
225
+ L.value || (b.value = null);
226
+ }
227
+ function V(d, s, e = !1) {
228
+ const c = _.dataset.series.map((u) => u.value || 0).reduce((u, y) => u + y, 0), l = isNaN(d.value / c) ? 0 : d.value / c * 100, a = isNaN(d.value / ie(s)) ? 0 : d.value / ie(s) * 100;
229
+ return e ? a : l.toFixed(0) + "%";
230
+ }
231
+ function ie(d) {
232
+ return [...d].map((s) => s.value).reduce((s, e) => s + e, 0);
233
+ }
234
+ const ee = N(!1);
235
+ function De(d) {
236
+ ee.value = d;
237
+ }
238
+ function je() {
239
+ return C.value ? w.value : _.dataset.percentage;
240
+ }
241
+ const T = P(() => {
242
+ if (C.value) {
243
+ const d = w.value.flatMap((e) => e.breakdown && e.breakdown.length ? [{ name: e.name, color: e.color }, ...e.breakdown.map((c, l) => ({
244
+ name: c.name,
245
+ color: A(e.color, l / e.breakdown.length)
246
+ }))] : {
247
+ name: e.name,
248
+ color: e.color
249
+ }), s = w.value.flatMap((e) => e.breakdown && e.breakdown.length ? [e.value, ...e.breakdown.map((c) => c.value)] : e.value);
250
+ return { head: d, body: s };
251
+ } else
252
+ return null;
253
+ });
254
+ function de() {
255
+ if (!C.value) {
256
+ console.warn("VueUi3dBar : CSV download is only available in stack mode (providing dataset.series instead of dataset.percentage)");
257
+ return;
258
+ }
259
+ Oe(() => {
260
+ const d = w.value.map((l) => l.value).reduce((l, a) => l + a, 0), s = T.value.head.map((l, a) => [[
261
+ l.name
262
+ ], [T.value.body[a]], [isNaN(T.value.body[a] / d) ? "-" : T.value.body[a] / d * 100]]), e = [[t.value.style.chart.title.text], [t.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(s), c = Ze(e);
263
+ qe({ csvContent: c, title: t.value.style.chart.title.text || "vue-ui-3d-bar" });
264
+ });
265
+ }
266
+ const X = P(() => {
267
+ const d = w.value.map((a) => a.value).reduce((a, u) => a + u, 0), s = [
268
+ ' <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>',
269
+ I({ p: t.value.style.chart.legend.prefix, v: d, s: t.value.style.chart.legend.suffix, r: t.value.table.td.roundingValue }),
270
+ "100%"
271
+ ], e = T.value.head.map((a, u) => {
272
+ const y = I({ p: t.value.style.chart.legend.prefix, v: T.value.body[u], s: t.value.style.chart.legend.suffix, r: t.value.table.td.roundingValue });
273
+ return [
274
+ {
275
+ color: a.color,
276
+ name: a.name
277
+ },
278
+ y,
279
+ isNaN(T.value.body[u] / d) ? "-" : (T.value.body[u] / d * 100).toFixed(t.value.table.td.roundingPercentage) + "%"
280
+ ];
281
+ }), c = {
282
+ th: {
283
+ backgroundColor: t.value.table.th.backgroundColor,
284
+ color: t.value.table.th.color,
285
+ outline: t.value.table.th.outline
286
+ },
287
+ td: {
288
+ backgroundColor: t.value.table.td.backgroundColor,
289
+ color: t.value.table.td.color,
290
+ outline: t.value.table.td.outline
291
+ },
292
+ breakpoint: t.value.table.responsiveBreakpoint,
293
+ shape: t.value.style.shape === "tube" ? "circle" : "square"
294
+ };
295
+ return {
296
+ colNames: [
297
+ t.value.table.columnNames.series,
298
+ t.value.table.columnNames.value,
299
+ t.value.table.columnNames.percentage
300
+ ],
301
+ head: s,
302
+ body: e,
303
+ config: c
304
+ };
305
+ });
306
+ function ce() {
307
+ q.value.showTable = !q.value.showTable;
308
+ }
309
+ return xe({
310
+ generateCsv: de,
311
+ generatePdf: re,
312
+ generateImage: ue,
313
+ getData: je,
314
+ toggleTable: ce
315
+ }), (d, s) => (r(), i("div", {
316
+ ref_key: "bar3dChart",
317
+ ref: ne,
318
+ class: ye("vue-ui-3d-bar"),
319
+ style: D(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;background:${t.value.style.chart.backgroundColor}`),
320
+ id: `3d_bar_${x.value}`
321
+ }, [
322
+ t.value.style.chart.title.text ? (r(), i("div", {
323
+ key: 0,
324
+ style: D(`width:100%;background:${t.value.style.chart.backgroundColor}`)
325
+ }, [
326
+ ke(Xe, {
327
+ config: {
328
+ title: {
329
+ cy: "3dBar-div-title",
330
+ ...t.value.style.chart.title
331
+ },
332
+ subtitle: {
333
+ cy: "3dBar-div-subtitle",
334
+ ...t.value.style.chart.title.subtitle
335
+ }
336
+ }
337
+ }, null, 8, ["config"])
338
+ ], 4)) : k("", !0),
339
+ t.value.userOptions.show && Z.value ? (r(), le(Ye, {
340
+ key: 1,
341
+ ref_key: "details",
342
+ ref: we,
343
+ backgroundColor: t.value.style.chart.backgroundColor,
344
+ color: t.value.style.chart.color,
345
+ isPrinting: v(Ce),
346
+ isImaging: v(Fe),
347
+ uid: x.value,
348
+ hasPdf: t.value.userOptions.buttons.pdf,
349
+ hasTable: !!C.value && t.value.userOptions.buttons.table,
350
+ hasXls: !!C.value && t.value.userOptions.buttons.csv,
351
+ hasImg: t.value.userOptions.buttons.img,
352
+ hasFullscreen: t.value.userOptions.buttons.fullscreen,
353
+ titles: { ...t.value.userOptions.buttonTitles },
354
+ chartElement: ne.value,
355
+ onToggleFullscreen: De,
356
+ onGeneratePdf: v(re),
357
+ onGenerateCsv: de,
358
+ onGenerateImage: v(ue),
359
+ onToggleTable: ce
360
+ }, Be({ _: 2 }, [
361
+ d.$slots.optionPdf ? {
362
+ name: "optionPdf",
363
+ fn: z(() => [
364
+ B(d.$slots, "optionPdf", {}, void 0, !0)
365
+ ]),
366
+ key: "0"
367
+ } : void 0,
368
+ d.$slots.optionCsv ? {
369
+ name: "optionCsv",
370
+ fn: z(() => [
371
+ B(d.$slots, "optionCsv", {}, void 0, !0)
372
+ ]),
373
+ key: "1"
374
+ } : void 0,
375
+ d.$slots.optionImg ? {
376
+ name: "optionImg",
377
+ fn: z(() => [
378
+ B(d.$slots, "optionImg", {}, void 0, !0)
379
+ ]),
380
+ key: "2"
381
+ } : void 0,
382
+ d.$slots.optionTable ? {
383
+ name: "optionTable",
384
+ fn: z(() => [
385
+ B(d.$slots, "optionTable", {}, void 0, !0)
386
+ ]),
387
+ key: "3"
388
+ } : void 0,
389
+ d.$slots.optionFullscreen ? {
390
+ name: "optionFullscreen",
391
+ fn: z(({ toggleFullscreen: e, isFullscreen: c }) => [
392
+ B(d.$slots, "optionFullscreen", oe(se({ toggleFullscreen: e, isFullscreen: c })), void 0, !0)
393
+ ]),
394
+ key: "4"
395
+ } : void 0
396
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasTable", "hasXls", "hasImg", "hasFullscreen", "titles", "chartElement", "onGeneratePdf", "onGenerateImage"])) : k("", !0),
397
+ Z.value ? (r(), i("svg", {
398
+ key: 2,
399
+ xmlns: v(He),
400
+ class: ye({ "vue-data-ui-fullscreen--on": ee.value, "vue-data-ui-fulscreen--off": !ee.value }),
401
+ viewBox: `0 0 ${o.value.absoluteWidth} ${o.value.height}`,
402
+ style: D(`max-width:100%; overflow: visible; background:${t.value.style.chart.backgroundColor};color:${t.value.style.chart.color}`)
403
+ }, [
404
+ n("defs", null, [
405
+ n("radialGradient", {
406
+ id: `gradient_top${x.value}`
407
+ }, [
408
+ n("stop", {
409
+ offset: "0%",
410
+ "stop-color": `${v(j)(t.value.style.chart.backgroundColor)}00`
411
+ }, null, 8, st),
412
+ n("stop", {
413
+ offset: "100%",
414
+ "stop-color": `${t.value.style.chart.bar.color}`
415
+ }, null, 8, at)
416
+ ], 8, ot),
417
+ n("radialGradient", {
418
+ id: `gradient_left${x.value}`
419
+ }, [
420
+ n("stop", {
421
+ offset: "0%",
422
+ "stop-color": `${v(j)(t.value.style.chart.backgroundColor)}00`
423
+ }, null, 8, rt),
424
+ n("stop", {
425
+ offset: "100%",
426
+ "stop-color": `${t.value.style.chart.bar.color}33`
427
+ }, null, 8, ut)
428
+ ], 8, nt),
429
+ n("radialGradient", {
430
+ id: `gradient_right${x.value}`
431
+ }, [
432
+ n("stop", {
433
+ offset: "0%",
434
+ "stop-color": `${v(j)(t.value.style.chart.backgroundColor)}00`
435
+ }, null, 8, dt),
436
+ n("stop", {
437
+ offset: "100%",
438
+ "stop-color": `${t.value.style.chart.bar.color}33`
439
+ }, null, 8, ct)
440
+ ], 8, it),
441
+ n("linearGradient", {
442
+ id: `gradient_tube_body${x.value}`,
443
+ x1: "0%",
444
+ y1: "0%",
445
+ x2: "100%",
446
+ y2: "0%"
447
+ }, [
448
+ n("stop", {
449
+ offset: "0%",
450
+ "stop-color": `${t.value.style.chart.bar.color}`
451
+ }, null, 8, vt),
452
+ n("stop", {
453
+ offset: "75%",
454
+ "stop-color": `${v(j)(t.value.style.chart.backgroundColor)}00`
455
+ }, null, 8, ft),
456
+ n("stop", {
457
+ offset: "100%",
458
+ "stop-color": `${t.value.style.chart.bar.color}66`
459
+ }, null, 8, pt)
460
+ ], 8, ht)
461
+ ]),
462
+ C.value ? (r(), i("defs", yt, [
463
+ (r(!0), i($, null, g(w.value, (e) => (r(), i("radialGradient", {
464
+ id: `grad_top_${e.id}`
465
+ }, [
466
+ n("stop", {
467
+ offset: "0%",
468
+ "stop-color": `${v(A)(e.color, 0.5)}DD`
469
+ }, null, 8, $t),
470
+ n("stop", {
471
+ offset: "100%",
472
+ "stop-color": `${e.color}`
473
+ }, null, 8, gt)
474
+ ], 8, kt))), 256)),
475
+ (r(!0), i($, null, g(w.value, (e) => (r(), i("linearGradient", {
476
+ id: `grad_left_${e.id}`
477
+ }, [
478
+ n("stop", {
479
+ offset: "0%",
480
+ "stop-color": `${e.color}DD`
481
+ }, null, 8, mt),
482
+ n("stop", {
483
+ offset: "100%",
484
+ "stop-color": `${v(J)(e.color, 0.5)}FF`
485
+ }, null, 8, xt)
486
+ ], 8, _t))), 256)),
487
+ (r(!0), i($, null, g(w.value, (e) => (r(), i("linearGradient", {
488
+ id: `grad_right_${e.id}`
489
+ }, [
490
+ n("stop", {
491
+ offset: "2%",
492
+ "stop-color": `${v(A)(e.color, 0.5)}FF`
493
+ }, null, 8, wt),
494
+ n("stop", {
495
+ offset: "100%",
496
+ "stop-color": `${e.color}DD`
497
+ }, null, 8, Ct)
498
+ ], 8, bt))), 256)),
499
+ n("linearGradient", {
500
+ x1: "0%",
501
+ y1: "0%",
502
+ x2: "0%",
503
+ y2: "100%",
504
+ id: `vertical_line_${x.value}`
505
+ }, Dt, 8, Ft)
506
+ ])) : k("", !0),
507
+ t.value.style.chart.dataLabel.show && ![null, void 0].includes(_.dataset.percentage) && [null, void 0].includes(_.dataset.series) ? (r(), i("text", {
508
+ key: 1,
509
+ x: o.value.width / 2,
510
+ y: o.value.top - t.value.style.chart.dataLabel.fontSize / 2,
511
+ "font-size": t.value.style.chart.dataLabel.fontSize,
512
+ "font-weight": t.value.style.chart.dataLabel.bold ? "bold" : "normal",
513
+ fill: t.value.style.chart.dataLabel.color,
514
+ "text-anchor": "middle"
515
+ }, M(Number((isNaN(W.value) ? 0 : W.value).toFixed(t.value.style.chart.dataLabel.rounding)).toLocaleString()) + " % ", 9, jt)) : k("", !0),
516
+ L.value ? (r(), i("g", {
517
+ key: 2,
518
+ onClick: s[0] || (s[0] = (e) => {
519
+ L.value = !1, b.value = null;
520
+ }),
521
+ "data-html2canvas-ignore": "",
522
+ style: { cursor: "pointer" }
523
+ }, [
524
+ n("rect", {
525
+ x: o.value.width / 2 - 6,
526
+ y: o.value.top - 20,
527
+ height: 12,
528
+ width: 12,
529
+ fill: "transparent"
530
+ }, null, 8, St),
531
+ n("path", {
532
+ d: `M${o.value.width / 2 - 6},${o.value.top - 20} ${o.value.width / 2 + 6},${o.value.top - 9}`,
533
+ stroke: t.value.style.chart.color,
534
+ "stroke-linecap": "round",
535
+ "stroke-width": "1"
536
+ }, null, 8, Tt),
537
+ n("path", {
538
+ d: `M${o.value.width / 2 + 6},${o.value.top - 20} ${o.value.width / 2 - 6},${o.value.top - 9}`,
539
+ stroke: t.value.style.chart.color,
540
+ "stroke-linecap": "round",
541
+ "stroke-width": "1"
542
+ }, null, 8, Nt)
543
+ ])) : k("", !0),
544
+ !t.value.style.shape || t.value.style.shape === "bar" ? (r(), i("g", zt, [
545
+ C.value ? k("", !0) : (r(), i("g", Bt, [
546
+ n("path", {
547
+ "stroke-dasharray": t.value.style.chart.box.strokeDasharray,
548
+ d: S.value.right,
549
+ stroke: t.value.style.chart.box.stroke,
550
+ "stroke-width": t.value.style.chart.box.strokeWidth,
551
+ "stroke-linejoin": "round",
552
+ "stroke-linecap": "round",
553
+ fill: "none"
554
+ }, null, 8, It),
555
+ n("path", {
556
+ "stroke-dasharray": t.value.style.chart.box.strokeDasharray,
557
+ d: S.value.left,
558
+ stroke: t.value.style.chart.box.stroke,
559
+ "stroke-width": t.value.style.chart.box.strokeWidth,
560
+ "stroke-linejoin": "round",
561
+ "stroke-linecap": "round",
562
+ fill: "none"
563
+ }, null, 8, Ot),
564
+ n("path", {
565
+ "stroke-dasharray": t.value.style.chart.box.strokeDasharray,
566
+ d: S.value.side,
567
+ stroke: t.value.style.chart.box.stroke,
568
+ "stroke-width": t.value.style.chart.box.strokeWidth,
569
+ "stroke-linejoin": "round",
570
+ "stroke-linecap": "round",
571
+ fill: "none"
572
+ }, null, 8, Lt),
573
+ n("path", {
574
+ "stroke-dasharray": t.value.style.chart.box.strokeDasharray,
575
+ d: S.value.topSides,
576
+ stroke: t.value.style.chart.box.stroke,
577
+ "stroke-width": t.value.style.chart.box.strokeWidth,
578
+ "stroke-linejoin": "round",
579
+ "stroke-linecap": "round",
580
+ fill: "none"
581
+ }, null, 8, Wt)
582
+ ])),
583
+ C.value ? k("", !0) : (r(), i("g", Gt, [
584
+ n("path", {
585
+ d: E.value.right,
586
+ stroke: t.value.style.chart.bar.stroke,
587
+ "stroke-width": t.value.style.chart.bar.strokeWidth,
588
+ "stroke-linejoin": "round",
589
+ "stroke-linecap": "round",
590
+ fill: `url(#gradient_right${x.value})`
591
+ }, null, 8, Vt),
592
+ n("path", {
593
+ d: E.value.left,
594
+ stroke: t.value.style.chart.bar.stroke,
595
+ "stroke-width": t.value.style.chart.bar.strokeWidth,
596
+ "stroke-linejoin": "round",
597
+ "stroke-linecap": "round",
598
+ fill: `url(#gradient_left${x.value})`
599
+ }, null, 8, At),
600
+ n("path", {
601
+ d: E.value.top,
602
+ stroke: t.value.style.chart.bar.stroke,
603
+ "stroke-width": t.value.style.chart.bar.strokeWidth,
604
+ "stroke-linejoin": "round",
605
+ "stroke-linecap": "round",
606
+ fill: `url(#gradient_top${x.value})`
607
+ }, null, 8, Ut)
608
+ ])),
609
+ C.value ? (r(), i("g", Et, [
610
+ (r(!0), i($, null, g(w.value, (e, c) => (r(), i("g", {
611
+ style: D(`opacity:${b.value ? b.value === e.id ? 1 : 0.3 : 1}`),
612
+ class: "vue-ui-3d-bar-stack"
613
+ }, [
614
+ n("path", {
615
+ d: e.fill.right,
616
+ fill: `url(#grad_right_${e.id})`,
617
+ onMouseenter: (l) => F(e),
618
+ onClick: (l) => F(e, !0),
619
+ onMouseout: G
620
+ }, null, 40, Ht),
621
+ n("path", {
622
+ d: e.fill.left,
623
+ fill: `url(#grad_left_${e.id})`,
624
+ onMouseenter: (l) => F(e),
625
+ onClick: (l) => F(e, !0),
626
+ onMouseout: G
627
+ }, null, 40, Zt),
628
+ n("path", {
629
+ d: e.fill.top,
630
+ fill: `url(#grad_top_${e.id})`,
631
+ onMouseenter: (l) => F(e),
632
+ onClick: (l) => F(e, !0),
633
+ onMouseout: G
634
+ }, null, 40, qt),
635
+ n("path", {
636
+ d: e.fill.liningTop,
637
+ stroke: "#FFFFFF",
638
+ "stroke-width": "0.5",
639
+ "stroke-linecap": "round",
640
+ fill: "none",
641
+ onMouseenter: (l) => F(e),
642
+ onClick: (l) => F(e, !0),
643
+ onMouseout: G
644
+ }, null, 40, Xt),
645
+ n("path", {
646
+ d: `M ${e.fill.apexTop.x},${e.fill.apexTop.y} ${e.fill.apexBottom.x},${e.fill.apexBottom.y}`,
647
+ stroke: "#FFFFFF",
648
+ "stroke-width": "0.5",
649
+ "stroke-linecap": "round"
650
+ }, null, 8, Rt)
651
+ ], 4))), 256)),
652
+ (r(!0), i($, null, g(w.value, (e, c) => (r(), i("g", null, [
653
+ c !== w.value.length - 1 ? (r(), i("path", {
654
+ key: 0,
655
+ d: e.fill.liningTopShade,
656
+ stroke: t.value.style.chart.bar.shadeColor,
657
+ "stroke-width": "0.5",
658
+ "stroke-linecap": "round",
659
+ fill: "none",
660
+ style: { "pointer-events": "none" }
661
+ }, null, 8, Yt)) : k("", !0)
662
+ ]))), 256)),
663
+ (r(!0), i($, null, g(w.value, (e, c) => (r(), i("g", {
664
+ style: D(`opacity:${b.value ? b.value === e.id ? 1 : 0 : e.proportion * 100 > t.value.style.chart.legend.hideUnderPercentage ? 1 : 0}`),
665
+ onClick: (l) => H("selectDatapoint", e)
666
+ }, [
667
+ n("path", {
668
+ stroke: t.value.style.chart.color,
669
+ "stroke-dasharray": "1",
670
+ "stroke-width": "0.5",
671
+ "stroke-linecap": "round",
672
+ d: `M${e.fill.sidePointer.x},${e.fill.sidePointer.y} ${e.fill.sidePointer.x + 20},${e.fill.sidePointer.y}`
673
+ }, null, 8, Kt),
674
+ !e.fill.miniDonut || b.value ? (r(), i("circle", {
675
+ key: 0,
676
+ cx: e.fill.sidePointer.x + 20,
677
+ cy: e.fill.sidePointer.y,
678
+ r: 2,
679
+ fill: e.color,
680
+ stroke: t.value.style.chart.backgroundColor
681
+ }, null, 8, Qt)) : k("", !0),
682
+ (r(), i("foreignObject", {
683
+ x: e.fill.sidePointer.x + 30,
684
+ y: e.fill.sidePointer.y - t.value.style.chart.legend.fontSize,
685
+ width: o.value.absoluteWidth / 2 - 12,
686
+ height: t.value.style.chart.legend.fontSize * 2,
687
+ style: { overflow: "visible", position: "relative" }
688
+ }, [
689
+ t.value.style.chart.legend.showDefault ? (r(), i("div", {
690
+ key: 0,
691
+ style: D(`height: 100%; width: 100%; display: flex; flex-direction: row; flex-wrap: wrap; align-items:center;justify-content: flex-start; font-size:${t.value.style.chart.legend.fontSize}px; text-align:left; line-height: ${t.value.style.chart.legend.fontSize}px; color:${t.value.style.chart.legend.color}`)
692
+ }, M(e.name) + ": " + M(v(I)({ v: e.proportion * 100, s: "%", r: t.value.style.chart.legend.roundingPercentage })) + " (" + M(v(I)({ p: t.value.style.chart.legend.prefix, v: e.value, s: t.value.style.chart.legend.suffix, r: t.value.style.chart.legend.roundingValue })) + ") ", 5)) : k("", !0),
693
+ B(d.$slots, "legend", oe(se({ datapoint: e, config: t.value, dataset: w.value })), void 0, !0)
694
+ ], 8, el)),
695
+ e.fill.donut && b.value === e.id ? (r(), i("g", tl, [
696
+ (r(!0), i($, null, g(e.fill.donut, (l, a) => (r(), i("g", null, [
697
+ V(l, e.fill.donut, !0) > 6 ? (r(), i("path", {
698
+ key: 0,
699
+ d: v(_e)(l, { x: l.cx, y: l.cy }, 0, 8, !1, !0, 0.5),
700
+ stroke: l.color,
701
+ class: "vue-ui-donut-arc-path",
702
+ "stroke-width": "0.5",
703
+ "stroke-linecap": "round",
704
+ "stroke-linejoin": "round",
705
+ fill: "none"
706
+ }, null, 8, ll)) : k("", !0)
707
+ ]))), 256)),
708
+ (r(!0), i($, null, g(e.fill.donut, (l, a) => (r(), i("path", {
709
+ class: "vue-ui-donut-arc-path",
710
+ d: l.arcSlice,
711
+ fill: `${l.color}`,
712
+ stroke: t.value.style.chart.backgroundColor,
713
+ "stroke-width": 1
714
+ }, null, 8, ol))), 256)),
715
+ n("defs", null, [
716
+ n("radialGradient", {
717
+ id: `hollow_gradient_${x.value}`
718
+ }, [
719
+ n("stop", {
720
+ offset: "0%",
721
+ "stop-color": `${v(j)(t.value.style.chart.backgroundColor)}00`
722
+ }, null, 8, al),
723
+ nl,
724
+ n("stop", {
725
+ offset: "100%",
726
+ "stop-color": `${v(j)(t.value.style.chart.backgroundColor)}00`
727
+ }, null, 8, rl)
728
+ ], 8, sl)
729
+ ]),
730
+ (r(!0), i($, null, g(e.fill.donut, (l, a) => (r(), i("circle", {
731
+ class: "vue-ui-donut-arc-path",
732
+ cx: l.cx,
733
+ cy: l.cy,
734
+ r: 28,
735
+ fill: `url(#hollow_gradient_${x.value})`
736
+ }, null, 8, ul))), 256)),
737
+ (r(!0), i($, null, g(e.fill.donut, (l, a) => (r(), i("circle", {
738
+ class: "vue-ui-donut-arc-path",
739
+ cx: l.cx,
740
+ cy: l.cy,
741
+ r: 14,
742
+ fill: t.value.style.chart.backgroundColor
743
+ }, null, 8, il))), 256)),
744
+ (r(!0), i($, null, g(e.fill.donut, (l, a) => (r(), i("g", null, [
745
+ V(l, e.fill.donut, !0) > 6 ? (r(), i("g", dl, [
746
+ n("text", {
747
+ "text-anchor": v(O)(l, !0, 0).anchor,
748
+ x: v(O)(l, !0, 2).x,
749
+ y: v(K)(l, 12, 12),
750
+ fill: t.value.style.chart.legend.color,
751
+ "font-size": t.value.style.chart.legend.fontSize / 1.5
752
+ }, M(V(l, e.fill.donut)) + " (" + M(v(I)({ p: t.value.style.chart.legend.prefix, v: l.value, s: t.value.style.chart.legend.suffix, rounding: t.value.style.chart.legend.roundingValue })) + ") ", 9, cl),
753
+ n("text", {
754
+ "text-anchor": v(O)(l).anchor,
755
+ x: v(O)(l, !0, 2).x,
756
+ y: v(K)(l, 12, 12) + t.value.style.chart.legend.fontSize / 1.5,
757
+ fill: t.value.style.chart.legend.color,
758
+ "font-size": t.value.style.chart.legend.fontSize / 1.5
759
+ }, M(l.name), 9, hl)
760
+ ])) : k("", !0)
761
+ ]))), 256))
762
+ ])) : k("", !0),
763
+ e.fill.miniDonut && !b.value ? (r(), i("g", vl, [
764
+ (r(!0), i($, null, g(e.fill.miniDonut, (l, a) => (r(), i("path", {
765
+ class: "vue-ui-donut-arc-path",
766
+ d: l.arcSlice,
767
+ fill: `${l.color}`,
768
+ stroke: t.value.style.chart.backgroundColor,
769
+ "stroke-width": 0.5
770
+ }, null, 8, fl))), 256))
771
+ ])) : k("", !0)
772
+ ], 12, Jt))), 256))
773
+ ])) : k("", !0)
774
+ ])) : k("", !0),
775
+ t.value.style.shape === "tube" ? (r(), i("g", pl, [
776
+ C.value ? k("", !0) : (r(), i("g", yl, [
777
+ n("path", {
778
+ "stroke-dasharray": t.value.style.chart.box.strokeDasharray,
779
+ d: S.value.tubeTop,
780
+ stroke: t.value.style.chart.box.stroke,
781
+ "stroke-width": t.value.style.chart.box.strokeWidth,
782
+ "stroke-linejoin": "round",
783
+ "stroke-linecap": "round",
784
+ fill: "none"
785
+ }, null, 8, kl),
786
+ n("path", {
787
+ "stroke-dasharray": t.value.style.chart.box.strokeDasharray,
788
+ d: S.value.tubeLeft,
789
+ stroke: t.value.style.chart.box.stroke,
790
+ "stroke-width": t.value.style.chart.box.strokeWidth,
791
+ "stroke-linejoin": "round",
792
+ "stroke-linecap": "round",
793
+ fill: "none"
794
+ }, null, 8, $l),
795
+ n("path", {
796
+ "stroke-dasharray": t.value.style.chart.box.strokeDasharray,
797
+ d: S.value.tubeRight,
798
+ stroke: t.value.style.chart.box.stroke,
799
+ "stroke-width": t.value.style.chart.box.strokeWidth,
800
+ "stroke-linejoin": "round",
801
+ "stroke-linecap": "round",
802
+ fill: "none"
803
+ }, null, 8, gl),
804
+ n("path", {
805
+ "stroke-dasharray": t.value.style.chart.box.strokeDasharray,
806
+ d: S.value.tubeBottom,
807
+ stroke: t.value.style.chart.box.stroke,
808
+ "stroke-width": t.value.style.chart.box.strokeWidth,
809
+ "stroke-linejoin": "round",
810
+ "stroke-linecap": "round",
811
+ fill: "none"
812
+ }, null, 8, _l),
813
+ n("path", {
814
+ d: E.value.tubeTop,
815
+ stroke: t.value.style.chart.bar.stroke,
816
+ "stroke-width": t.value.style.chart.bar.strokeWidth,
817
+ "stroke-linejoin": "round",
818
+ "stroke-linecap": "round",
819
+ fill: `url(#gradient_top${x.value})`
820
+ }, null, 8, ml),
821
+ n("path", {
822
+ d: E.value.tubeBody,
823
+ stroke: t.value.style.chart.bar.stroke,
824
+ "stroke-width": t.value.style.chart.bar.strokeWidth,
825
+ "stroke-linejoin": "round",
826
+ "stroke-linecap": "round",
827
+ fill: `url(#gradient_tube_body${x.value})`
828
+ }, null, 8, xl)
829
+ ])),
830
+ C.value ? (r(), i("g", bl, [
831
+ (r(!0), i($, null, g(w.value, (e, c) => (r(), i("g", {
832
+ style: D(`opacity:${b.value ? b.value === e.id ? 1 : 0.3 : 1}`),
833
+ class: "vue-ui-3d-bar-stack",
834
+ onClick: (l) => H("selectDatapoint", e)
835
+ }, [
836
+ n("defs", null, [
837
+ n("radialGradient", {
838
+ id: `gradient_tube_top_${e.id}`,
839
+ fx: "10%",
840
+ cy: "55%"
841
+ }, [
842
+ n("stop", {
843
+ offset: "0%",
844
+ "stop-color": `${v(A)(e.color, 0.5)}DD`
845
+ }, null, 8, Fl),
846
+ n("stop", {
847
+ offset: "100%",
848
+ "stop-color": `${v(J)(e.color, 0.1)}DD`
849
+ }, null, 8, Ml)
850
+ ], 8, Cl),
851
+ n("linearGradient", {
852
+ id: `gradient_tube_body_${e.id}`,
853
+ x1: "0%",
854
+ y1: "0%",
855
+ x2: "100%",
856
+ y2: "0%"
857
+ }, [
858
+ n("stop", {
859
+ offset: "0%",
860
+ "stop-color": `${e.color}`
861
+ }, null, 8, Dl),
862
+ n("stop", {
863
+ offset: "10%",
864
+ "stop-color": `${v(J)(e.color, 0.7)}FF`
865
+ }, null, 8, jl),
866
+ n("stop", {
867
+ offset: "25%",
868
+ "stop-color": `${v(J)(e.color, 0.5)}FF`
869
+ }, null, 8, Sl),
870
+ n("stop", {
871
+ offset: "75%",
872
+ "stop-color": `${e.color}DD`
873
+ }, null, 8, Tl),
874
+ n("stop", {
875
+ offset: "100%",
876
+ "stop-color": `${v(A)(e.color, 0.7)}FF`
877
+ }, null, 8, Nl)
878
+ ], 8, Pl)
879
+ ]),
880
+ n("path", {
881
+ onMouseenter: (l) => F(e),
882
+ onClick: (l) => F(e, !0),
883
+ onMouseout: G,
884
+ d: e.fill.tubeBody,
885
+ stroke: "#FFFFFF",
886
+ "stroke-width": 0.5,
887
+ "stroke-linejoin": "round",
888
+ "stroke-linecap": "round",
889
+ fill: `url(#gradient_tube_body_${e.id})`
890
+ }, null, 40, zl),
891
+ c > 0 ? (r(), i("path", {
892
+ key: 0,
893
+ onMouseenter: (l) => F(e),
894
+ onClick: (l) => F(e, !0),
895
+ onMouseout: G,
896
+ d: e.fill.bottomTubeTop,
897
+ stroke: "#000000",
898
+ "stroke-width": 0.5,
899
+ "stroke-linejoin": "round",
900
+ "stroke-linecap": "round",
901
+ fill: "none"
902
+ }, null, 40, Bl)) : k("", !0),
903
+ n("path", {
904
+ onMouseenter: (l) => F(e),
905
+ onClick: (l) => F(e, !0),
906
+ onMouseout: G,
907
+ d: e.fill.tubeTop,
908
+ stroke: "#FFFFFF",
909
+ "stroke-width": 0.5,
910
+ "stroke-linejoin": "round",
911
+ "stroke-linecap": "round",
912
+ fill: `url(#gradient_tube_top_${e.id})`
913
+ }, null, 40, Il)
914
+ ], 12, wl))), 256)),
915
+ (r(!0), i($, null, g(w.value, (e, c) => (r(), i("g", {
916
+ style: D(`opacity:${b.value ? b.value === e.id ? 1 : 0 : e.proportion * 100 > t.value.style.chart.legend.hideUnderPercentage ? 1 : 0}`),
917
+ onClick: (l) => H("selectDatapoint", e)
918
+ }, [
919
+ n("path", {
920
+ stroke: t.value.style.chart.color,
921
+ "stroke-dasharray": "1",
922
+ "stroke-width": "0.5",
923
+ "stroke-linecap": "round",
924
+ d: `M${e.fill.sidePointer.x},${e.fill.sidePointer.y} ${e.fill.sidePointer.x + 20},${e.fill.sidePointer.y}`
925
+ }, null, 8, Ll),
926
+ !e.fill.miniDonut || b.value ? (r(), i("circle", {
927
+ key: 0,
928
+ cx: e.fill.sidePointer.x + 20,
929
+ cy: e.fill.sidePointer.y,
930
+ r: 2,
931
+ fill: e.color,
932
+ stroke: t.value.style.chart.backgroundColor
933
+ }, null, 8, Wl)) : k("", !0),
934
+ (r(), i("foreignObject", {
935
+ x: e.fill.sidePointer.x + 30,
936
+ y: e.fill.sidePointer.y - t.value.style.chart.legend.fontSize,
937
+ width: o.value.absoluteWidth / 2 - 12,
938
+ height: t.value.style.chart.legend.fontSize * 2,
939
+ style: { overflow: "visible", position: "relative" }
940
+ }, [
941
+ t.value.style.chart.legend.showDefault ? (r(), i("div", {
942
+ key: 0,
943
+ style: D(`height: 100%; width: 100%; display: flex; flex-direction: row; flex-wrap: wrap; align-items:center;justify-content: flex-start; font-size:${t.value.style.chart.legend.fontSize}px; text-align:left; line-height: ${t.value.style.chart.legend.fontSize}px; color:${t.value.style.chart.legend.color}`)
944
+ }, M(e.name) + ": " + M(v(I)({ v: e.proportion * 100, s: "%", r: t.value.style.chart.legend.roundingPercentage })) + " (" + M(v(I)({ p: t.value.style.chart.legend.prefix, v: e.value, s: t.value.style.chart.legend.suffix, r: t.value.style.chart.legend.roundingValue })) + ") ", 5)) : k("", !0),
945
+ B(d.$slots, "legend", oe(se({ datapoint: e, config: t.value, dataset: w.value })), void 0, !0)
946
+ ], 8, Gl)),
947
+ e.fill.donut && b.value === e.id ? (r(), i("g", Vl, [
948
+ (r(!0), i($, null, g(e.fill.donut, (l, a) => (r(), i("g", null, [
949
+ V(l, e.fill.donut, !0) > 6 ? (r(), i("path", {
950
+ key: 0,
951
+ d: v(_e)(l, { x: l.cx, y: l.cy }, 0, 8, !1, !0, 0.5),
952
+ stroke: l.color,
953
+ class: "vue-ui-donut-arc-path",
954
+ "stroke-width": "0.5",
955
+ "stroke-linecap": "round",
956
+ "stroke-linejoin": "round",
957
+ fill: "none"
958
+ }, null, 8, Al)) : k("", !0)
959
+ ]))), 256)),
960
+ (r(!0), i($, null, g(e.fill.donut, (l, a) => (r(), i("path", {
961
+ class: "vue-ui-donut-arc-path",
962
+ d: l.arcSlice,
963
+ fill: `${l.color}`,
964
+ stroke: t.value.style.chart.backgroundColor,
965
+ "stroke-width": 1
966
+ }, null, 8, Ul))), 256)),
967
+ n("defs", null, [
968
+ n("radialGradient", {
969
+ id: `hollow_gradient_${x.value}`
970
+ }, [
971
+ n("stop", {
972
+ offset: "0%",
973
+ "stop-color": `${v(j)(t.value.style.chart.backgroundColor)}00`
974
+ }, null, 8, Hl),
975
+ Zl,
976
+ n("stop", {
977
+ offset: "100%",
978
+ "stop-color": `${v(j)(t.value.style.chart.backgroundColor)}00`
979
+ }, null, 8, ql)
980
+ ], 8, El)
981
+ ]),
982
+ (r(!0), i($, null, g(e.fill.donut, (l, a) => (r(), i("circle", {
983
+ class: "vue-ui-donut-arc-path",
984
+ cx: l.cx,
985
+ cy: l.cy,
986
+ r: 28,
987
+ fill: `url(#hollow_gradient_${x.value})`
988
+ }, null, 8, Xl))), 256)),
989
+ (r(!0), i($, null, g(e.fill.donut, (l, a) => (r(), i("circle", {
990
+ class: "vue-ui-donut-arc-path",
991
+ cx: l.cx,
992
+ cy: l.cy,
993
+ r: 14,
994
+ fill: t.value.style.chart.backgroundColor
995
+ }, null, 8, Rl))), 256)),
996
+ (r(!0), i($, null, g(e.fill.donut, (l, a) => (r(), i("g", null, [
997
+ V(l, e.fill.donut, !0) > 6 ? (r(), i("g", Yl, [
998
+ n("text", {
999
+ "text-anchor": v(O)(l, !0, 0).anchor,
1000
+ x: v(O)(l, !0, 2).x,
1001
+ y: v(K)(l, 12, 12),
1002
+ fill: t.value.style.chart.legend.color,
1003
+ "font-size": t.value.style.chart.legend.fontSize / 1.5
1004
+ }, M(V(l, e.fill.donut)) + " (" + M(v(I)({ p: t.value.style.chart.legend.prefix, v: l.value, s: t.value.style.chart.legend.suffix, rounding: t.value.style.chart.legend.roundingValue })) + ") ", 9, Jl),
1005
+ n("text", {
1006
+ "text-anchor": v(O)(l).anchor,
1007
+ x: v(O)(l, !0, 2).x,
1008
+ y: v(K)(l, 12, 12) + t.value.style.chart.legend.fontSize / 1.5,
1009
+ fill: t.value.style.chart.legend.color,
1010
+ "font-size": t.value.style.chart.legend.fontSize / 1.5
1011
+ }, M(l.name), 9, Kl)
1012
+ ])) : k("", !0)
1013
+ ]))), 256))
1014
+ ])) : k("", !0),
1015
+ e.fill.miniDonut && !b.value ? (r(), i("g", Ql, [
1016
+ (r(!0), i($, null, g(e.fill.miniDonut, (l, a) => (r(), i("path", {
1017
+ class: "vue-ui-donut-arc-path",
1018
+ d: l.arcSlice,
1019
+ fill: `${l.color}`,
1020
+ stroke: t.value.style.chart.backgroundColor,
1021
+ "stroke-width": 0.5
1022
+ }, null, 8, eo))), 256))
1023
+ ])) : k("", !0)
1024
+ ], 12, Ol))), 256))
1025
+ ])) : k("", !0)
1026
+ ])) : k("", !0),
1027
+ B(d.$slots, "svg", { svg: o.value }, void 0, !0)
1028
+ ], 14, lt)) : k("", !0),
1029
+ Z.value ? k("", !0) : (r(), le(Je, {
1030
+ key: 3,
1031
+ config: {
1032
+ type: "bar3d",
1033
+ style: {
1034
+ backgroundColor: t.value.style.chart.backgroundColor,
1035
+ bar3d: {
1036
+ color: "#CCCCCC"
1037
+ }
1038
+ }
1039
+ }
1040
+ }, null, 8, ["config"])),
1041
+ Z.value && C.value ? (r(), le(Qe, {
1042
+ key: 4,
1043
+ hideDetails: "",
1044
+ config: {
1045
+ open: q.value.showTable,
1046
+ maxHeight: 1e4,
1047
+ body: {
1048
+ backgroundColor: t.value.style.chart.backgroundColor,
1049
+ color: t.value.style.chart.color
1050
+ },
1051
+ head: {
1052
+ backgroundColor: t.value.style.chart.backgroundColor,
1053
+ color: t.value.style.chart.color
1054
+ }
1055
+ }
1056
+ }, {
1057
+ content: z(() => [
1058
+ ke(Ke, {
1059
+ colNames: X.value.colNames,
1060
+ head: X.value.head,
1061
+ body: X.value.body,
1062
+ config: X.value.config,
1063
+ title: `${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text ? ` : ${t.value.style.chart.title.subtitle.text}` : ""}`,
1064
+ onClose: s[1] || (s[1] = (e) => q.value.showTable = !1)
1065
+ }, {
1066
+ th: z(({ th: e }) => [
1067
+ n("div", {
1068
+ innerHTML: e,
1069
+ style: { display: "flex", "align-items": "center" }
1070
+ }, null, 8, to)
1071
+ ]),
1072
+ td: z(({ td: e }) => [
1073
+ Ie(M(e.name || e), 1)
1074
+ ]),
1075
+ _: 1
1076
+ }, 8, ["colNames", "head", "body", "config", "title"])
1077
+ ]),
1078
+ _: 1
1079
+ }, 8, ["config"])) : k("", !0)
1080
+ ], 12, tt));
1081
+ }
1082
+ }, vo = /* @__PURE__ */ et(lo, [["__scopeId", "data-v-30081550"]]);
1083
+ export {
1084
+ vo as default
1085
+ };