vue-data-ui 3.1.1 → 3.1.3
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.
- package/dist/{Arrow-xQM7mBzd.js → Arrow-DBaAWGvq.js} +1 -1
- package/dist/{BaseDraggableDialog-B2BQC0-h.js → BaseDraggableDialog-BmN9jTP8.js} +2 -2
- package/dist/{BaseIcon-DLesaZpW.js → BaseIcon-BcOSijbz.js} +5 -3
- package/dist/{ColorPicker-BKvJvFtX.js → ColorPicker-D1yNPt76.js} +2 -2
- package/dist/{DataTable-BAf4Obr9.js → DataTable-Cm8Tt9PQ.js} +2 -2
- package/dist/Legend-5qvgVkrY.js +85 -0
- package/dist/{NonSvgPenAndPaper-Cq4fHmA0.js → NonSvgPenAndPaper-D3QGd7vP.js} +3 -3
- package/dist/{PackageVersion-Cv_ypT0N.js → PackageVersion-0XlRFsI_.js} +1 -1
- package/dist/{PenAndPaper-B6OvfyHH.js → PenAndPaper-CyH7Ip2i.js} +3 -3
- package/dist/{Shape-Cjca5zta.js → Shape-DiplSMFy.js} +1 -1
- package/dist/{Slicer-6w3K8gAc.js → Slicer-DG99wPTy.js} +11 -9
- package/dist/{SparkTooltip-BV4Z-NMp.js → SparkTooltip-VveQSwlw.js} +1 -1
- package/dist/Title-CqYBs02Y.js +88 -0
- package/dist/{Tooltip-BTGOEC7w.js → Tooltip-CP0tVHAf.js} +1 -1
- package/dist/{UserOptions-CsDlFB0L.js → UserOptions-ZmwlARCV.js} +125 -108
- package/dist/{dom-to-png-BOu5-Ohz.js → dom-to-png-DGA4a3xT.js} +1 -1
- package/dist/{img-gBDz7xQQ.js → img-DSrvx9J6.js} +1 -1
- package/dist/{index-BKQqb9lF.js → index-CaxArMHL.js} +97 -74
- package/dist/pdf-BG8PiGFH.js +79 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +28 -3
- package/dist/types/vue-data-ui.d.ts +28 -3
- package/dist/{useAutoSizeLabelsInsideViewbox-IO2dh0Uq.js → useAutoSizeLabelsInsideViewbox-DmtFf4bt.js} +1 -1
- package/dist/{useNestedProp-aBOhgs4U.js → useNestedProp-tWT02_6S.js} +1 -1
- package/dist/{usePrinter-BzuXiubT.js → usePrinter-BYtPmEo8.js} +13 -12
- package/dist/{vue-data-ui-B6eM6hF3.js → vue-data-ui-DVb8r5z7.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-DBeWmnvH.js → vue-ui-3d-bar-BLKyWpz7.js} +371 -366
- package/dist/{vue-ui-accordion-B5QeV3BK.js → vue-ui-accordion-DUlNpLir.js} +3 -3
- package/dist/{vue-ui-age-pyramid-rZFdUsgz.js → vue-ui-age-pyramid-LLqbXP1m.js} +200 -195
- package/dist/{vue-ui-annotator-CCCuslrT.js → vue-ui-annotator-CcYIlcKF.js} +2 -2
- package/dist/{vue-ui-bullet-DhJf9mvK.js → vue-ui-bullet-BKmts_u4.js} +7 -7
- package/dist/{vue-ui-candlestick-CGVtDKqZ.js → vue-ui-candlestick-C9l_NpXu.js} +225 -220
- package/dist/{vue-ui-carousel-table-DLAR3WY8.js → vue-ui-carousel-table-H7xS6aBC.js} +4 -4
- package/dist/{vue-ui-chestnut-BXnSxoXB.js → vue-ui-chestnut-CAW0IOdY.js} +344 -340
- package/dist/{vue-ui-chord-DH_MwAKX.js → vue-ui-chord-CK5YhCqM.js} +272 -266
- package/dist/{vue-ui-circle-pack-Cx_E1R63.js → vue-ui-circle-pack-NLyZgTGF.js} +6 -6
- package/dist/{vue-ui-cursor-CEvH1qDS.js → vue-ui-cursor-CyGUrKWU.js} +2 -2
- package/dist/vue-ui-dashboard-Cf5pvEzD.js +412 -0
- package/dist/{vue-ui-digits-PTozKs3l.js → vue-ui-digits-BZWwwp7c.js} +2 -2
- package/dist/{vue-ui-donut-evolution-DD7o-CxF.js → vue-ui-donut-evolution-CaEYMVZj.js} +310 -304
- package/dist/{vue-ui-donut-CsEtKJJD.js → vue-ui-donut-g1WHrj6G.js} +348 -343
- package/dist/{vue-ui-dumbbell-DfPYl3fu.js → vue-ui-dumbbell-BArS1nXS.js} +293 -287
- package/dist/{vue-ui-flow-CSTTZHwg.js → vue-ui-flow-BR0CB5qt.js} +263 -257
- package/dist/{vue-ui-funnel-C-NUZqIo.js → vue-ui-funnel-D2OCItvq.js} +206 -200
- package/dist/{vue-ui-galaxy-BwsZnU6T.js → vue-ui-galaxy-qgGF1AAf.js} +243 -238
- package/dist/{vue-ui-gauge-D9MUneq0.js → vue-ui-gauge-BIXmGyQL.js} +7 -7
- package/dist/{vue-ui-gizmo-Dnzs9wSf.js → vue-ui-gizmo-DHEoS051.js} +3 -3
- package/dist/{vue-ui-heatmap-CYaQIhy8.js → vue-ui-heatmap-tRzq9BnI.js} +405 -401
- package/dist/{vue-ui-history-plot-DMTFzl-_.js → vue-ui-history-plot-DmwHhrDk.js} +305 -299
- package/dist/{vue-ui-kpi-CkPotdff.js → vue-ui-kpi-C2b2R5i1.js} +3 -3
- package/dist/{vue-ui-mini-loader-CCE-bDOJ.js → vue-ui-mini-loader-Bs1Mi1tD.js} +2 -2
- package/dist/{vue-ui-molecule-DaN5lroq.js → vue-ui-molecule-BsUvf2v7.js} +188 -183
- package/dist/{vue-ui-mood-radar-tM0mmZh8.js → vue-ui-mood-radar-D3JIpVvX.js} +197 -192
- package/dist/{vue-ui-nested-donuts-RB4r6beI.js → vue-ui-nested-donuts-dJEgQXTH.js} +326 -320
- package/dist/{vue-ui-onion-CxDozHg3.js → vue-ui-onion-D8dF1DdA.js} +8 -8
- package/dist/{vue-ui-parallel-coordinate-plot-CK9nNExU.js → vue-ui-parallel-coordinate-plot-LmFsg7UA.js} +401 -395
- package/dist/{vue-ui-quadrant-C7tLJYn7.js → vue-ui-quadrant-C4O8ki4N.js} +339 -334
- package/dist/{vue-ui-quick-chart-MUBAkrHb.js → vue-ui-quick-chart-6bEtTQBG.js} +6 -6
- package/dist/{vue-ui-radar-Br4K80I9.js → vue-ui-radar-CfjGWGk3.js} +248 -243
- package/dist/{vue-ui-rating-NtvT9r_M.js → vue-ui-rating-D3WSs2OD.js} +2 -2
- package/dist/{vue-ui-relation-circle-CPQjAy1g.js → vue-ui-relation-circle-DzTfi7Tf.js} +7 -7
- package/dist/{vue-ui-ridgeline-C2M_Cjlh.js → vue-ui-ridgeline-NtYOJvDy.js} +267 -263
- package/dist/{vue-ui-rings-DEru-cWN.js → vue-ui-rings-CYQ4i71V.js} +229 -224
- package/dist/{vue-ui-scatter-CJKkiKle.js → vue-ui-scatter-meJEHdAD.js} +359 -354
- package/dist/{vue-ui-skeleton--twnjS2t.js → vue-ui-skeleton-BtILTxx-.js} +3 -3
- package/dist/{vue-ui-smiley-CNccdPZ7.js → vue-ui-smiley-B5bELpYD.js} +2 -2
- package/dist/{vue-ui-spark-trend-9BFkkC0u.js → vue-ui-spark-trend-lixdWq_N.js} +3 -3
- package/dist/{vue-ui-sparkbar-RYAThoA4.js → vue-ui-sparkbar-CaGPav-J.js} +3 -3
- package/dist/{vue-ui-sparkgauge-DkPlmgMF.js → vue-ui-sparkgauge-BZBGYDjs.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-6EkCyYRF.js → vue-ui-sparkhistogram-Bp6KxpjH.js} +4 -4
- package/dist/{vue-ui-sparkline-Bl3nj8zd.js → vue-ui-sparkline-CF-EAZa6.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-B88lA7iy.js → vue-ui-sparkstackbar-Cj1LAYC8.js} +3 -3
- package/dist/{vue-ui-stackbar-Csj7NhT6.js → vue-ui-stackbar-BrzKhqAK.js} +310 -304
- package/dist/{vue-ui-strip-plot-yY9NsUUI.js → vue-ui-strip-plot-BfVVaSFn.js} +246 -240
- package/dist/{vue-ui-table-Dg6U31ex.js → vue-ui-table-CBzNgzVP.js} +3 -3
- package/dist/{vue-ui-table-heatmap-BWU7CAWP.js → vue-ui-table-heatmap-CKz5bA7N.js} +5 -5
- package/dist/{vue-ui-table-sparkline-DV4Y9aRL.js → vue-ui-table-sparkline-O-Z0YH6u.js} +4 -4
- package/dist/{vue-ui-thermometer-C3fKamV-.js → vue-ui-thermometer-DpNyTGNH.js} +7 -7
- package/dist/{vue-ui-timer-6VAK9XyF.js → vue-ui-timer-uvshaRMI.js} +5 -5
- package/dist/{vue-ui-tiremarks-BB-KAkF7.js → vue-ui-tiremarks-A8Akuz-q.js} +6 -6
- package/dist/{vue-ui-treemap-GrXkD_3Z.js → vue-ui-treemap-Dvmuo3tM.js} +262 -256
- package/dist/{vue-ui-vertical-bar-Mmz6u4aX.js → vue-ui-vertical-bar-eMgRMSKN.js} +310 -306
- package/dist/{vue-ui-waffle-DzPVRUOA.js → vue-ui-waffle-Cm8VfnG8.js} +257 -252
- package/dist/{vue-ui-wheel-idRCvS5t.js → vue-ui-wheel-Bhsklf_m.js} +6 -6
- package/dist/vue-ui-word-cloud-C9HGLsG4.js +817 -0
- package/dist/{vue-ui-world-D6s5Eph8.js → vue-ui-world-B_MrjwGJ.js} +257 -252
- package/dist/{vue-ui-xy-BKTGSvfU.js → vue-ui-xy-DnYJw2aS.js} +1448 -1438
- package/dist/{vue-ui-xy-canvas-BOQyxVRl.js → vue-ui-xy-canvas-C0Snw0Dz.js} +235 -229
- package/package.json +1 -1
- package/dist/Legend-8_V5egWW.js +0 -72
- package/dist/Title-Dz-j6ERs.js +0 -61
- package/dist/pdf-Cjsn5GEE.js +0 -61
- package/dist/vue-ui-dashboard-CvduVgEy.js +0 -325
- package/dist/vue-ui-word-cloud-B2641uNP.js +0 -811
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { defineAsyncComponent as ee, useSlots as
|
|
2
|
-
import { u as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as Nl } from "./usePrinter-
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import
|
|
10
|
-
import { _ as
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import { _ as
|
|
14
|
-
const
|
|
1
|
+
import { defineAsyncComponent as ee, useSlots as yl, computed as f, shallowRef as H, ref as p, onMounted as At, onBeforeUnmount as Tt, toRefs as fl, watch as fe, createElementBlock as r, openBlock as n, normalizeStyle as $, normalizeClass as Ge, createBlock as te, createCommentVNode as v, renderSlot as b, createElementVNode as h, createVNode as Te, unref as u, createSlots as qe, withCtx as A, normalizeProps as ne, guardReactiveProps as ue, Fragment as w, renderList as L, mergeProps as Ue, toDisplayString as I, withDirectives as St, createTextVNode as Se, vShow as Pt, Teleport as pl, resolveDynamicComponent as gl, nextTick as ml } from "vue";
|
|
2
|
+
import { u as bl, o as Ft, f as We, g as wl, c as kl, t as xl, d as _l, h as $l, e as Lt, p as re, m as It, $ as Cl, i as D, X as Al, s as Pe, x as Tl, n as Sl, N as P, k as E, q as pe, r as x, a0 as Mt, a1 as Pl, a as Fl, b as Ll, C as He, v as Il, w as Ml, y as zl, T as zt } from "./index-CaxArMHL.js";
|
|
3
|
+
import { t as Ol, u as Dl } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as Nl } from "./usePrinter-BYtPmEo8.js";
|
|
5
|
+
import { u as Yl, B as Xl } from "./BaseScanner-BgWxam9d.js";
|
|
6
|
+
import { u as Ot } from "./useNestedProp-tWT02_6S.js";
|
|
7
|
+
import { u as Bl } from "./useUserOptionState-BIvW1Kz7.js";
|
|
8
|
+
import { u as Vl } from "./useChartAccessibility-9icAAmYg.js";
|
|
9
|
+
import El from "./img-DSrvx9J6.js";
|
|
10
|
+
import { _ as Rl } from "./Shape-DiplSMFy.js";
|
|
11
|
+
import Gl from "./Title-CqYBs02Y.js";
|
|
12
|
+
import ql from "./Legend-5qvgVkrY.js";
|
|
13
|
+
import { _ as Ul } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
|
+
const Wl = ["id"], Hl = ["id"], jl = ["xmlns", "viewBox"], Jl = ["width", "height"], Kl = { key: 1 }, Ql = ["id"], Zl = ["stop-color"], ea = ["offset", "stop-color"], ta = ["offset", "stop-color"], la = ["stop-color"], aa = { key: 2 }, oa = ["id", "cx", "cy"], sa = ["stop-color", "stop-opacity"], na = ["stop-color"], ua = ["id"], ra = ["id"], ia = ["id"], va = ["flood-color"], da = ["id"], ca = ["flood-color"], ha = ["d", "stroke", "filter"], ya = ["d", "stroke", "filter"], fa = ["cx", "cy", "r", "fill", "filter"], pa = { key: 6 }, ga = ["stroke", "d"], ma = ["d", "fill", "stroke", "stroke-width", "filter"], ba = { key: 0 }, wa = ["d", "fill", "stroke", "stroke-width", "filter"], ka = { key: 0 }, xa = ["stroke", "d"], _a = { key: 0 }, $a = ["d", "stroke", "stroke-width", "filter"], Ca = { key: 1 }, Aa = ["d", "fill", "stroke", "stroke-width", "filter"], Ta = ["d", "fill", "stroke", "stroke-width", "filter"], Sa = { key: 1 }, Pa = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Fa = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], La = { key: 0 }, Ia = ["d", "fill", "stroke", "stroke-width"], Ma = ["cx", "cy", "r", "stroke"], za = ["cx", "cy", "r", "fill"], Oa = ["cx", "cy", "r"], Da = { key: 0 }, Na = ["d", "stroke", "fill", "onMouseenter", "onMouseleave", "onClick"], Ya = { key: 1 }, Xa = ["cx", "cy", "r"], Ba = ["x", "y", "fill", "font-size"], Va = ["x", "y", "fill", "font-size"], Ea = ["x", "y", "fill", "font-size"], Ra = ["x", "y", "fill", "font-size"], Ga = ["filter"], qa = { key: 0 }, Ua = ["x", "y"], Wa = { key: 1 }, Ha = ["cx", "cy", "fill", "stroke", "filter", "onClick", "onMouseenter", "onMouseleave"], ja = ["cx", "cy", "fill", "stroke", "filter", "onClick", "onMouseenter", "onMouseleave"], Ja = ["text-anchor", "x", "y", "fill", "font-size", "onClick", "onMouseenter", "onMouseleave"], Ka = ["text-anchor", "x", "y", "fill", "font-size", "onClick", "innerHTML"], Qa = ["text-anchor", "x", "y", "fill", "font-size", "onClick", "onMouseenter", "onMouseleave"], Za = ["text-anchor", "x", "y", "fill", "font-size", "onClick", "innerHTML"], eo = { key: 2 }, to = ["x", "y", "width"], lo = ["x", "y", "width"], ao = {
|
|
15
15
|
key: 4,
|
|
16
16
|
class: "vue-data-ui-watermark"
|
|
17
|
-
},
|
|
17
|
+
}, oo = ["id"], so = ["onClick"], no = {
|
|
18
18
|
key: 7,
|
|
19
19
|
class: "vue-ui-donut-hollow"
|
|
20
|
-
},
|
|
20
|
+
}, uo = ["innerHTML"], ro = {
|
|
21
21
|
__name: "vue-ui-donut",
|
|
22
22
|
props: {
|
|
23
23
|
config: {
|
|
@@ -34,25 +34,25 @@ const Ul = ["id"], Wl = ["id"], Hl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
36
|
emits: ["selectLegend", "selectDatapoint"],
|
|
37
|
-
setup(
|
|
38
|
-
const
|
|
37
|
+
setup(je, { expose: Dt, emit: Nt }) {
|
|
38
|
+
const Yt = ee(() => import("./Tooltip-CP0tVHAf.js")), Xt = ee(() => import("./BaseIcon-BcOSijbz.js")), Bt = ee(() => import("./vue-ui-accordion-DUlNpLir.js")), Vt = ee(() => import("./DataTable-Cm8Tt9PQ.js")), Et = ee(() => import("./PenAndPaper-CyH7Ip2i.js")), Rt = ee(() => import("./UserOptions-ZmwlARCV.js")), Gt = ee(() => import("./PackageVersion-0XlRFsI_.js")), qt = ee(() => import("./BaseDraggableDialog-BmN9jTP8.js")), { vue_ui_donut: Ut } = bl(), Wt = yl(), k = je, we = f({
|
|
39
39
|
get() {
|
|
40
40
|
return !!k.dataset && k.dataset.length;
|
|
41
41
|
},
|
|
42
42
|
set(l) {
|
|
43
43
|
return l;
|
|
44
44
|
}
|
|
45
|
-
}),
|
|
45
|
+
}), N = H(null), ke = p(null), Ht = p(null), jt = p(null), Je = H(null), Ke = H(null), j = H(null), ie = H(null), Qe = H(null), Ze = H(null), et = p(0), tt = p(0), lt = p(0), at = p(!1), ge = p(null), Fe = p(null), xe = f({
|
|
46
46
|
get: () => e.value.style.chart.layout.labels.percentage.fontSize,
|
|
47
47
|
set: (l) => l
|
|
48
|
-
}), J =
|
|
48
|
+
}), J = f({
|
|
49
49
|
get: () => e.value.style.chart.layout.labels.name.fontSize,
|
|
50
50
|
set: (l) => l
|
|
51
51
|
});
|
|
52
|
-
let
|
|
52
|
+
let Le = !1;
|
|
53
53
|
const R = () => {
|
|
54
|
-
!e.value.autoSize ||
|
|
55
|
-
|
|
54
|
+
!e.value.autoSize || Le || (Le = !0, requestAnimationFrame(() => {
|
|
55
|
+
Le = !1;
|
|
56
56
|
const l = e.value, o = ke.value, t = de.value;
|
|
57
57
|
if (!l.autoSize || !o || !t) return;
|
|
58
58
|
const [a, i, c, m] = t.getAttribute("viewBox").split(" ").map(Number), C = { x: a, y: i, width: c, height: m }, z = [
|
|
@@ -69,27 +69,27 @@ const Ul = ["id"], Wl = ["id"], Hl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
69
69
|
sizeRef: J
|
|
70
70
|
}
|
|
71
71
|
];
|
|
72
|
-
z.map((V) => o.querySelectorAll(V.selector).length).reduce((V, Z) => V + Z, 0) !== 0 && z.forEach(({ selector: V, baseSize: Z, minSize:
|
|
73
|
-
o.querySelectorAll(V).forEach((
|
|
74
|
-
const
|
|
75
|
-
el:
|
|
72
|
+
z.map((V) => o.querySelectorAll(V.selector).length).reduce((V, Z) => V + Z, 0) !== 0 && z.forEach(({ selector: V, baseSize: Z, minSize: Re, sizeRef: dl }) => {
|
|
73
|
+
o.querySelectorAll(V).forEach((cl) => {
|
|
74
|
+
const hl = Pl({
|
|
75
|
+
el: cl,
|
|
76
76
|
bounds: C,
|
|
77
77
|
currentFontSize: Z,
|
|
78
|
-
minFontSize:
|
|
78
|
+
minFontSize: Re,
|
|
79
79
|
attempts: 200,
|
|
80
80
|
padding: 1
|
|
81
81
|
});
|
|
82
|
-
|
|
82
|
+
dl.value = hl;
|
|
83
83
|
});
|
|
84
84
|
});
|
|
85
85
|
}));
|
|
86
86
|
};
|
|
87
|
-
|
|
88
|
-
|
|
87
|
+
At(async () => {
|
|
88
|
+
at.value = !0, ot(), requestAnimationFrame(R);
|
|
89
89
|
});
|
|
90
|
-
let
|
|
91
|
-
|
|
92
|
-
|
|
90
|
+
let Ie;
|
|
91
|
+
At(() => {
|
|
92
|
+
N.value && (Ie = new ResizeObserver((l) => {
|
|
93
93
|
for (const o of l) {
|
|
94
94
|
const { width: t, height: a } = o.contentRect;
|
|
95
95
|
if (t > 0 && a > 0) {
|
|
@@ -97,75 +97,77 @@ const Ul = ["id"], Wl = ["id"], Hl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
97
97
|
break;
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
|
-
}),
|
|
101
|
-
}),
|
|
102
|
-
|
|
103
|
-
}),
|
|
100
|
+
}), Ie.observe(N.value.parentElement));
|
|
101
|
+
}), Tt(() => {
|
|
102
|
+
Ie?.disconnect();
|
|
103
|
+
}), Tt(() => {
|
|
104
104
|
j.value && (ie.value && j.value.unobserve(ie.value), j.value.disconnect());
|
|
105
105
|
});
|
|
106
|
-
const
|
|
107
|
-
function
|
|
108
|
-
if (
|
|
106
|
+
const Me = f(() => !!e.value.debug);
|
|
107
|
+
function ot() {
|
|
108
|
+
if (Ft(k.dataset) ? (We({
|
|
109
109
|
componentName: "VueUiDonut",
|
|
110
110
|
type: "dataset",
|
|
111
|
-
debug:
|
|
111
|
+
debug: Me.value
|
|
112
112
|
}), we.value = !1, $e.value = !0) : (k.dataset.forEach((l, o) => {
|
|
113
|
-
|
|
113
|
+
wl({
|
|
114
114
|
datasetObject: l,
|
|
115
115
|
requiredAttributes: ["name", "values"]
|
|
116
116
|
}).forEach((t) => {
|
|
117
|
-
|
|
117
|
+
We({
|
|
118
118
|
componentName: "VueUiDonut",
|
|
119
119
|
type: "datasetSerieAttribute",
|
|
120
120
|
property: t,
|
|
121
121
|
index: o,
|
|
122
|
-
debug:
|
|
122
|
+
debug: Me.value
|
|
123
123
|
}), we.value = !1, $e.value = !0;
|
|
124
124
|
});
|
|
125
125
|
}), k.dataset.forEach((l, o) => {
|
|
126
|
-
(!l.name || l.name === "") &&
|
|
126
|
+
(!l.name || l.name === "") && We({
|
|
127
127
|
componentName: "VueUiDonut",
|
|
128
128
|
type: "datasetAttributeEmpty",
|
|
129
129
|
property: "name",
|
|
130
130
|
index: o,
|
|
131
|
-
debug:
|
|
131
|
+
debug: Me.value
|
|
132
132
|
});
|
|
133
|
-
})),
|
|
134
|
-
const l =
|
|
135
|
-
const { width: o, height: t } =
|
|
136
|
-
chart:
|
|
137
|
-
title: e.value.style.chart.title.text ?
|
|
138
|
-
legend: e.value.style.chart.legend.show ?
|
|
139
|
-
source:
|
|
140
|
-
noTitle:
|
|
141
|
-
padding: e.value.autoSize ? void 0 :
|
|
133
|
+
})), Ft(k.dataset) || ($e.value = e.value.loading), e.value.responsive) {
|
|
134
|
+
const l = Ol(() => {
|
|
135
|
+
const { width: o, height: t } = Dl({
|
|
136
|
+
chart: N.value,
|
|
137
|
+
title: e.value.style.chart.title.text ? Je.value : null,
|
|
138
|
+
legend: e.value.style.chart.legend.show ? Ke.value : null,
|
|
139
|
+
source: Qe.value,
|
|
140
|
+
noTitle: Ze.value,
|
|
141
|
+
padding: e.value.autoSize ? void 0 : it.value
|
|
142
142
|
});
|
|
143
143
|
requestAnimationFrame(() => {
|
|
144
144
|
s.value.width = o, s.value.height = t, R();
|
|
145
145
|
});
|
|
146
146
|
});
|
|
147
|
-
j.value && (ie.value && j.value.unobserve(ie.value), j.value.disconnect()), j.value = new ResizeObserver(l), ie.value =
|
|
147
|
+
j.value && (ie.value && j.value.unobserve(ie.value), j.value.disconnect()), j.value = new ResizeObserver(l), ie.value = N.value.parentNode, j.value.observe(ie.value);
|
|
148
148
|
}
|
|
149
149
|
}
|
|
150
|
-
const y =
|
|
151
|
-
|
|
152
|
-
|
|
150
|
+
const y = p(kl());
|
|
151
|
+
p(null);
|
|
152
|
+
const ze = p(!1), Oe = p(""), Y = p(null), st = p(0);
|
|
153
|
+
function De() {
|
|
154
|
+
const l = Ot({
|
|
153
155
|
userConfig: k.config,
|
|
154
|
-
defaultConfig:
|
|
156
|
+
defaultConfig: Ut
|
|
155
157
|
});
|
|
156
158
|
let o = {};
|
|
157
159
|
return l.theme ? o = {
|
|
158
|
-
...
|
|
159
|
-
userConfig:
|
|
160
|
+
...Ot({
|
|
161
|
+
userConfig: Ll.vue_ui_donut[l.theme] || k.config,
|
|
160
162
|
defaultConfig: l
|
|
161
163
|
}),
|
|
162
|
-
customPalette:
|
|
163
|
-
} : o = l, k.config &&
|
|
164
|
+
customPalette: Fl[l.theme] || re
|
|
165
|
+
} : o = l, k.config && He(k.config, "events.datapointEnter") ? o.events.datapointEnter = k.config.events.datapointEnter : o.events.datapointEnter = null, k.config && He(k.config, "events.datapointLeave") ? o.events.datapointLeave = k.config.events.datapointLeave : o.events.datapointLeave = null, k.config && He(k.config, "events.datapointClick") ? o.events.datapointClick = k.config.events.datapointClick : o.events.datapointClick = null, o;
|
|
164
166
|
}
|
|
165
|
-
const e =
|
|
166
|
-
...
|
|
167
|
+
const e = p(De()), { loading: _e, FINAL_DATASET: ve, manualLoading: $e, skeletonDataset: Jt } = Yl({
|
|
168
|
+
...fl(k),
|
|
167
169
|
FINAL_CONFIG: e,
|
|
168
|
-
prepareConfig:
|
|
170
|
+
prepareConfig: De,
|
|
169
171
|
skeletonDataset: [
|
|
170
172
|
{
|
|
171
173
|
name: "",
|
|
@@ -183,7 +185,7 @@ const Ul = ["id"], Wl = ["id"], Hl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
183
185
|
color: "#CACACA"
|
|
184
186
|
}
|
|
185
187
|
],
|
|
186
|
-
skeletonConfig:
|
|
188
|
+
skeletonConfig: xl({
|
|
187
189
|
defaultConfig: e.value,
|
|
188
190
|
userConfig: {
|
|
189
191
|
useCssAnimation: !1,
|
|
@@ -220,8 +222,8 @@ const Ul = ["id"], Wl = ["id"], Hl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
220
222
|
}
|
|
221
223
|
}
|
|
222
224
|
})
|
|
223
|
-
}), T =
|
|
224
|
-
function
|
|
225
|
+
}), T = p(!0), U = H([]);
|
|
226
|
+
function Kt(l, o = 1e3, t = 50) {
|
|
225
227
|
return new Promise((a) => {
|
|
226
228
|
const i = l.length;
|
|
227
229
|
U.value = Array(i).fill(0);
|
|
@@ -230,26 +232,26 @@ const Ul = ["id"], Wl = ["id"], Hl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
230
232
|
setTimeout(() => {
|
|
231
233
|
const z = performance.now();
|
|
232
234
|
function O(V) {
|
|
233
|
-
const Z = Math.min((V - z) / o, 1),
|
|
234
|
-
U.value[C] = m *
|
|
235
|
+
const Z = Math.min((V - z) / o, 1), Re = zt(Z);
|
|
236
|
+
U.value[C] = m * Re, U.value = [...U.value], Z < 1 ? (requestAnimationFrame(O), requestAnimationFrame(R)) : (U.value[C] = m, U.value = [...U.value], c += 1, c === i && a(), requestAnimationFrame(R));
|
|
235
237
|
}
|
|
236
238
|
requestAnimationFrame(O);
|
|
237
239
|
}, C * t);
|
|
238
240
|
});
|
|
239
241
|
});
|
|
240
242
|
}
|
|
241
|
-
const
|
|
243
|
+
const nt = p(!1);
|
|
242
244
|
fe(
|
|
243
245
|
() => _e.value,
|
|
244
246
|
async (l) => {
|
|
245
|
-
if (l ||
|
|
246
|
-
const o = ve.value ===
|
|
247
|
+
if (l || nt.value) return;
|
|
248
|
+
const o = ve.value === Jt, t = e.value.startAnimation?.show;
|
|
247
249
|
if (!o && t) {
|
|
248
|
-
|
|
250
|
+
nt.value = !0;
|
|
249
251
|
const a = ve.value.map(
|
|
250
252
|
(i) => i.values.reduce((c, m) => c + m, 0)
|
|
251
253
|
);
|
|
252
|
-
await
|
|
254
|
+
await Kt(
|
|
253
255
|
a,
|
|
254
256
|
e.value.startAnimation.durationMs,
|
|
255
257
|
e.value.startAnimation.staggerMs
|
|
@@ -259,17 +261,17 @@ const Ul = ["id"], Wl = ["id"], Hl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
259
261
|
},
|
|
260
262
|
{ immediate: !0 }
|
|
261
263
|
);
|
|
262
|
-
const { userOptionsVisible: Ne, setUserOptionsVisibility:
|
|
263
|
-
function Kt() {
|
|
264
|
-
nt(!0);
|
|
265
|
-
}
|
|
264
|
+
const { userOptionsVisible: Ne, setUserOptionsVisibility: ut, keepUserOptionState: rt } = Bl({ config: e.value }), { svgRef: de } = Vl({ config: e.value.style.chart.title });
|
|
266
265
|
function Qt() {
|
|
267
|
-
|
|
266
|
+
ut(!0);
|
|
267
|
+
}
|
|
268
|
+
function Zt() {
|
|
269
|
+
ut(!1);
|
|
268
270
|
}
|
|
269
271
|
fe(() => k.config, (l) => {
|
|
270
|
-
_e.value || (e.value =
|
|
272
|
+
_e.value || (e.value = De()), Ne.value = !e.value.userOptions.showOnChartHover, ot(), et.value += 1, tt.value += 1, lt.value += 1, g.value.dataLabels.show = e.value.style.chart.layout.labels.dataLabels.show, g.value.showTable = e.value.table.show, g.value.showTooltip = e.value.style.chart.tooltip.show, s.value.height = e.value.style.chart.height, s.value.width = e.value.style.chart.width;
|
|
271
273
|
}, { deep: !0 });
|
|
272
|
-
const
|
|
274
|
+
const it = f(() => {
|
|
273
275
|
const { top: l, right: o, bottom: t, left: a } = e.value.style.chart.padding;
|
|
274
276
|
return {
|
|
275
277
|
css: `padding:${l}px ${o}px ${t}px ${a}px`,
|
|
@@ -278,11 +280,11 @@ const Ul = ["id"], Wl = ["id"], Hl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
278
280
|
bottom: t,
|
|
279
281
|
left: a
|
|
280
282
|
};
|
|
281
|
-
}), { isPrinting:
|
|
283
|
+
}), { isPrinting: vt, isImaging: dt, generatePdf: ct, generateImage: ht } = Nl({
|
|
282
284
|
elementId: `donut__${y.value}`,
|
|
283
285
|
fileName: e.value.style.chart.title.text || "vue-ui-donut",
|
|
284
286
|
options: e.value.userOptions.print
|
|
285
|
-
}),
|
|
287
|
+
}), el = f(() => e.value.userOptions.show && !e.value.style.chart.title.text), yt = f(() => _l(e.value.customPalette)), g = p({
|
|
286
288
|
dataLabels: {
|
|
287
289
|
show: e.value.style.chart.layout.labels.dataLabels.show
|
|
288
290
|
},
|
|
@@ -290,7 +292,7 @@ const Ul = ["id"], Wl = ["id"], Hl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
290
292
|
showTooltip: e.value.style.chart.tooltip.show
|
|
291
293
|
});
|
|
292
294
|
fe(e, () => {
|
|
293
|
-
|
|
295
|
+
g.value = {
|
|
294
296
|
dataLabels: {
|
|
295
297
|
show: e.value.style.chart.layout.labels.dataLabels.show
|
|
296
298
|
},
|
|
@@ -298,18 +300,18 @@ const Ul = ["id"], Wl = ["id"], Hl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
298
300
|
showTooltip: e.value.style.chart.tooltip.show
|
|
299
301
|
};
|
|
300
302
|
}, { immediate: !0 });
|
|
301
|
-
const s =
|
|
303
|
+
const s = p({
|
|
302
304
|
height: e.value.style.chart.height,
|
|
303
305
|
width: e.value.style.chart.width
|
|
304
|
-
}), le =
|
|
306
|
+
}), le = f(() => {
|
|
305
307
|
if (e.value.pie)
|
|
306
308
|
return _.value;
|
|
307
309
|
const l = e.value.style.chart.layout.donut.strokeWidth / 512, o = Math.min(s.value.width, s.value.height) * l, t = o > _.value ? _.value : o;
|
|
308
310
|
return Math.max(t, 12 * (1 + l));
|
|
309
|
-
}),
|
|
311
|
+
}), ft = Nt, G = f(() => ve.value.map((l, o) => ({
|
|
310
312
|
name: l.name,
|
|
311
|
-
color:
|
|
312
|
-
value:
|
|
313
|
+
color: Lt(l.color) || yt.value[o] || re[o] || re[o % re.length],
|
|
314
|
+
value: $l(l.values.reduce((t, a) => t + a, 0)),
|
|
313
315
|
absoluteValues: l.values,
|
|
314
316
|
comment: l.comment || "",
|
|
315
317
|
patternIndex: o,
|
|
@@ -324,15 +326,15 @@ const Ul = ["id"], Wl = ["id"], Hl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
324
326
|
fe(() => G.value, (l) => {
|
|
325
327
|
M.value = l, requestAnimationFrame(R);
|
|
326
328
|
});
|
|
327
|
-
function
|
|
329
|
+
function tl() {
|
|
328
330
|
return G.value.map((l) => ({
|
|
329
331
|
name: l.name,
|
|
330
332
|
color: l.color,
|
|
331
333
|
value: l.value
|
|
332
334
|
}));
|
|
333
335
|
}
|
|
334
|
-
const q =
|
|
335
|
-
function
|
|
336
|
+
const q = p([]), ae = p(!1);
|
|
337
|
+
function pt({ from: l, to: o, duration: t, onUpdate: a, onDone: i, easing: c = zt }) {
|
|
336
338
|
const m = performance.now();
|
|
337
339
|
function C(z) {
|
|
338
340
|
const O = Math.min((z - m) / t, 1), V = c(O), Z = l + (o - l) * V;
|
|
@@ -340,7 +342,7 @@ const Ul = ["id"], Wl = ["id"], Hl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
340
342
|
}
|
|
341
343
|
requestAnimationFrame(C);
|
|
342
344
|
}
|
|
343
|
-
function
|
|
345
|
+
function gt(l) {
|
|
344
346
|
const o = G.value.find((i, c) => c === l);
|
|
345
347
|
let a = M.value.find((i, c) => c === l).value;
|
|
346
348
|
if (q.value.includes(l)) {
|
|
@@ -349,7 +351,7 @@ const Ul = ["id"], Wl = ["id"], Hl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
349
351
|
(C, z) => l === z ? { ...C, value: i } : C
|
|
350
352
|
);
|
|
351
353
|
}, m = function() {
|
|
352
|
-
ae.value = !0,
|
|
354
|
+
ae.value = !0, pt({
|
|
353
355
|
from: a,
|
|
354
356
|
to: i,
|
|
355
357
|
duration: e.value.serieToggleAnimation.durationMs,
|
|
@@ -372,7 +374,7 @@ const Ul = ["id"], Wl = ["id"], Hl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
372
374
|
(m, C) => l === C ? { ...m, value: 0 } : m
|
|
373
375
|
);
|
|
374
376
|
}, c = function() {
|
|
375
|
-
ae.value = !0,
|
|
377
|
+
ae.value = !0, pt({
|
|
376
378
|
from: a,
|
|
377
379
|
to: 0,
|
|
378
380
|
duration: e.value.serieToggleAnimation.durationMs,
|
|
@@ -388,20 +390,20 @@ const Ul = ["id"], Wl = ["id"], Hl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
388
390
|
};
|
|
389
391
|
e.value.serieToggleAnimation.show && e.value.type === "classic" ? c() : i();
|
|
390
392
|
}
|
|
391
|
-
|
|
393
|
+
ft("selectLegend", W.value.map((i) => ({
|
|
392
394
|
name: i.name,
|
|
393
395
|
color: i.color,
|
|
394
396
|
value: i.value
|
|
395
397
|
})));
|
|
396
398
|
}
|
|
397
|
-
const
|
|
399
|
+
const ll = f(() => ve.value.reduce((l, o) => l + o.values.reduce((t, a) => t + a, 0), 0)), W = f(() => {
|
|
398
400
|
if (T.value && !_e.value) {
|
|
399
401
|
const l = U.value.map((t, a) => ({
|
|
400
402
|
...G.value[a],
|
|
401
403
|
value: t,
|
|
402
404
|
color: G.value[a].color,
|
|
403
405
|
ghost: !1
|
|
404
|
-
})), o =
|
|
406
|
+
})), o = ll.value - U.value.reduce((t, a) => t + a, 0);
|
|
405
407
|
return o > 0 && l.push({
|
|
406
408
|
name: "__ghost__",
|
|
407
409
|
value: o,
|
|
@@ -419,9 +421,9 @@ const Ul = ["id"], Wl = ["id"], Hl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
419
421
|
...l,
|
|
420
422
|
seriesIndex: o
|
|
421
423
|
})).filter((l, o) => !q.value.includes(o));
|
|
422
|
-
}),
|
|
424
|
+
}), mt = f(() => ve.value.map((l, o) => ({
|
|
423
425
|
name: l.name,
|
|
424
|
-
color:
|
|
426
|
+
color: Lt(l.color) || yt.value[o] || re[o] || re[o % re.length],
|
|
425
427
|
value: (l.values || []).reduce((t, a) => t + a, 0),
|
|
426
428
|
shape: "circle",
|
|
427
429
|
patternIndex: o
|
|
@@ -429,19 +431,19 @@ const Ul = ["id"], Wl = ["id"], Hl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
429
431
|
...l,
|
|
430
432
|
proportion: l.value / ve.value.map((t) => (t.values || []).reduce((a, i) => a + i, 0)).reduce((t, a) => t + a, 0),
|
|
431
433
|
opacity: q.value.includes(o) ? 0.5 : 1,
|
|
432
|
-
segregate: () => !ae.value &&
|
|
434
|
+
segregate: () => !ae.value && gt(o),
|
|
433
435
|
isSegregated: q.value.includes(o)
|
|
434
|
-
}))),
|
|
436
|
+
}))), al = f(() => ({
|
|
435
437
|
cy: "donut-div-legend",
|
|
436
438
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
437
439
|
color: e.value.style.chart.legend.color,
|
|
438
440
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
439
441
|
paddingBottom: 12,
|
|
440
442
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
441
|
-
})), _ =
|
|
443
|
+
})), _ = f(() => {
|
|
442
444
|
const l = e.value.style.chart.layout.donut.radiusRatio, o = Math.max(0.1, Math.min(0.50001, l)), t = Math.min(s.value.width * o, s.value.height * o);
|
|
443
445
|
return Math.max(12, t);
|
|
444
|
-
}), S =
|
|
446
|
+
}), S = f(() => It({ series: W.value }, s.value.width / 2, s.value.height / 2, _.value, _.value, 1.99999, 2, 1, 360, 105.25, le.value)), ol = f(() => Math.abs(W.value.map((l) => l.value).reduce((l, o) => l + o, 0)) > 0), sl = f(() => It({
|
|
445
447
|
series: [
|
|
446
448
|
{
|
|
447
449
|
value: 1,
|
|
@@ -453,9 +455,9 @@ const Ul = ["id"], Wl = ["id"], Hl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
453
455
|
absoluteValues: [1]
|
|
454
456
|
}
|
|
455
457
|
]
|
|
456
|
-
}, s.value.width / 2, s.value.height / 2, _.value, _.value, 1.99999, 2, 1, 360, 105.25, le.value)), X =
|
|
458
|
+
}, s.value.width / 2, s.value.height / 2, _.value, _.value, 1.99999, 2, 1, 360, 105.25, le.value)), X = f(() => S.value.filter((l) => !l.ghost)), d = f(() => {
|
|
457
459
|
const l = Math.max(...W.value.map((t) => t.value)), o = W.value.map((t) => t.value / l);
|
|
458
|
-
return
|
|
460
|
+
return Cl({
|
|
459
461
|
series: o,
|
|
460
462
|
center: {
|
|
461
463
|
x: s.value.width / 2,
|
|
@@ -468,18 +470,18 @@ const Ul = ["id"], Wl = ["id"], Hl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
468
470
|
function ce(l) {
|
|
469
471
|
return l.x > s.value.width / 2 + 6 ? "start" : l.x < s.value.width / 2 - 6 ? "end" : "middle";
|
|
470
472
|
}
|
|
471
|
-
function
|
|
473
|
+
function nl(l) {
|
|
472
474
|
return l.middlePoint.y > s.value.height / 2 ? P({ initX: l.middlePoint.x, initY: l.middlePoint.y, offset: 100, centerX: s.value.width / 2, centerY: s.value.height / 2 }).y : P({ initX: l.middlePoint.x, initY: l.middlePoint.y, offset: 0, centerX: s.value.width / 2, centerY: s.value.height / 2 }).y - 100;
|
|
473
475
|
}
|
|
474
476
|
function B(l) {
|
|
475
477
|
return l.proportion * 100 > e.value.style.chart.layout.labels.dataLabels.hideUnderValue;
|
|
476
478
|
}
|
|
477
|
-
function
|
|
478
|
-
const t = l.value /
|
|
479
|
+
function Ye(l, o) {
|
|
480
|
+
const t = l.value / ul(o);
|
|
479
481
|
return isNaN(t) ? 0 : E(
|
|
480
482
|
e.value.style.chart.layout.labels.percentage.formatter,
|
|
481
483
|
t * 100,
|
|
482
|
-
|
|
484
|
+
D({
|
|
483
485
|
v: t * 100,
|
|
484
486
|
s: "%",
|
|
485
487
|
r: e.value.style.chart.layout.labels.percentage.rounding
|
|
@@ -487,18 +489,18 @@ const Ul = ["id"], Wl = ["id"], Hl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
487
489
|
{ datapoint: l }
|
|
488
490
|
);
|
|
489
491
|
}
|
|
490
|
-
function
|
|
492
|
+
function ul(l) {
|
|
491
493
|
return [...l].map((o) => o.value).reduce((o, t) => o + t, 0);
|
|
492
494
|
}
|
|
493
|
-
const F =
|
|
495
|
+
const F = f(() => W.value.map((l) => l.value).reduce((l, o) => l + o, 0)), Xe = f(() => F.value / W.value.length), bt = f(() => (l) => ae.value ? l.proportion * 100 : l.value / F.value * 100), Be = p(null), me = p(!1);
|
|
494
496
|
function he({ datapoint: l, seriesIndex: o }) {
|
|
495
|
-
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: l, seriesIndex: o }),
|
|
497
|
+
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: l, seriesIndex: o }), ze.value = !1, Y.value = null;
|
|
496
498
|
}
|
|
497
499
|
function ye({ datapoint: l, relativeIndex: o, seriesIndex: t, show: a = !1 }) {
|
|
498
|
-
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: l, seriesIndex: t }),
|
|
500
|
+
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: l, seriesIndex: t }), Be.value = { datapoint: l, seriesIndex: t, config: e.value, series: G.value }, ze.value = a, Y.value = o;
|
|
499
501
|
let i = "";
|
|
500
502
|
const c = e.value.style.chart.tooltip.customFormat;
|
|
501
|
-
if (me.value = !1,
|
|
503
|
+
if (me.value = !1, zl(c))
|
|
502
504
|
try {
|
|
503
505
|
const m = c({
|
|
504
506
|
seriesIndex: t,
|
|
@@ -506,15 +508,15 @@ const Ul = ["id"], Wl = ["id"], Hl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
506
508
|
series: G.value,
|
|
507
509
|
config: e.value
|
|
508
510
|
});
|
|
509
|
-
typeof m == "string" && (
|
|
511
|
+
typeof m == "string" && (Oe.value = m, me.value = !0);
|
|
510
512
|
} catch {
|
|
511
513
|
console.warn("Custom format cannot be applied."), me.value = !1;
|
|
512
514
|
}
|
|
513
515
|
if (!me.value) {
|
|
514
|
-
if (i += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${l.name}</div>`, i += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 60 60" height="14" width="14"><circle cx="30" cy="30" r="30" stroke="none" fill="${l.color}"/>${
|
|
516
|
+
if (i += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${l.name}</div>`, i += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 60 60" height="14" width="14"><circle cx="30" cy="30" r="30" stroke="none" fill="${l.color}"/>${Wt.pattern ? `<circle cx="30" cy="30" r="30" stroke="none" fill="url(#pattern_${y.value}_${t})"/>` : ""}</svg>`, e.value.style.chart.tooltip.showValue && (i += `<b>${E(
|
|
515
517
|
e.value.style.chart.layout.labels.value.formatter,
|
|
516
518
|
l.value,
|
|
517
|
-
|
|
519
|
+
D({
|
|
518
520
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
519
521
|
v: l.value,
|
|
520
522
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -529,7 +531,7 @@ const Ul = ["id"], Wl = ["id"], Hl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
529
531
|
const m = E(
|
|
530
532
|
e.value.style.chart.layout.labels.percentage.formatter,
|
|
531
533
|
l.proportion * 100,
|
|
532
|
-
|
|
534
|
+
D({
|
|
533
535
|
v: l.proportion * 100,
|
|
534
536
|
s: "%",
|
|
535
537
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
@@ -542,31 +544,31 @@ const Ul = ["id"], Wl = ["id"], Hl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
542
544
|
);
|
|
543
545
|
e.value.style.chart.tooltip.showValue ? i += `<span>(${m})</span></div>` : i += `<b>${m}</b></div>`;
|
|
544
546
|
}
|
|
545
|
-
e.value.style.chart.comments.showInTooltip && l.comment && (i += `<div class="vue-data-ui-tooltip-comment" style="background:${l.color}20; padding: 6px; margin-bottom: 6px; margin-top:6px; border-left: 1px solid ${l.color}">${l.comment}</div>`),
|
|
547
|
+
e.value.style.chart.comments.showInTooltip && l.comment && (i += `<div class="vue-data-ui-tooltip-comment" style="background:${l.color}20; padding: 6px; margin-bottom: 6px; margin-top:6px; border-left: 1px solid ${l.color}">${l.comment}</div>`), Oe.value = `<div>${i}</div>`;
|
|
546
548
|
}
|
|
547
549
|
}
|
|
548
550
|
function oe(l) {
|
|
549
551
|
return e.value.useBlurOnHover && ![null, void 0].includes(Y.value) && Y.value !== l ? `url(#blur_${y.value})` : "";
|
|
550
552
|
}
|
|
551
|
-
const K =
|
|
553
|
+
const K = f(() => {
|
|
552
554
|
const l = W.value.map((t) => ({
|
|
553
555
|
name: t.name,
|
|
554
556
|
color: t.color
|
|
555
557
|
})), o = W.value.map((t) => t.value);
|
|
556
558
|
return { head: l, body: o };
|
|
557
559
|
});
|
|
558
|
-
function
|
|
559
|
-
|
|
560
|
+
function Ve(l = null) {
|
|
561
|
+
ml(() => {
|
|
560
562
|
const o = K.value.head.map((i, c) => [[
|
|
561
563
|
i.name
|
|
562
|
-
], [K.value.body[c]], [isNaN(K.value.body[c] / F.value) ? "-" : K.value.body[c] / F.value * 100]]), t = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(o), a =
|
|
563
|
-
l ? l(a) :
|
|
564
|
+
], [K.value.body[c]], [isNaN(K.value.body[c] / F.value) ? "-" : K.value.body[c] / F.value * 100]]), t = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(o), a = Il(t);
|
|
565
|
+
l ? l(a) : Ml({ csvContent: a, title: e.value.style.chart.title.text || "vue-ui-donut" });
|
|
564
566
|
});
|
|
565
567
|
}
|
|
566
|
-
const Ce =
|
|
568
|
+
const Ce = f(() => {
|
|
567
569
|
const l = [
|
|
568
570
|
' <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>',
|
|
569
|
-
|
|
571
|
+
D({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: F.value, s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
|
|
570
572
|
"100%"
|
|
571
573
|
], o = K.value.head.map((i, c) => [
|
|
572
574
|
{
|
|
@@ -598,33 +600,33 @@ const Ul = ["id"], Wl = ["id"], Hl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
598
600
|
body: o,
|
|
599
601
|
config: t
|
|
600
602
|
};
|
|
601
|
-
}), se =
|
|
602
|
-
function
|
|
603
|
-
se.value = l,
|
|
603
|
+
}), se = p(!1);
|
|
604
|
+
function wt(l) {
|
|
605
|
+
se.value = l, st.value += 1;
|
|
604
606
|
}
|
|
605
|
-
const
|
|
606
|
-
function
|
|
607
|
+
const kt = f(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent));
|
|
608
|
+
function rl(l) {
|
|
607
609
|
return l.toFixed(e.value.style.chart.legend.roundingPercentage).split("").map((o) => "-").join("");
|
|
608
610
|
}
|
|
609
611
|
function Q(l, o) {
|
|
610
|
-
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex: l.seriesIndex }),
|
|
611
|
-
}
|
|
612
|
-
function kt() {
|
|
613
|
-
f.value.showTable = !f.value.showTable;
|
|
612
|
+
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex: l.seriesIndex }), ft("selectDatapoint", { datapoint: l, index: o });
|
|
614
613
|
}
|
|
615
614
|
function xt() {
|
|
616
|
-
|
|
615
|
+
g.value.showTable = !g.value.showTable;
|
|
617
616
|
}
|
|
618
617
|
function _t() {
|
|
619
|
-
|
|
618
|
+
g.value.dataLabels.show = !g.value.dataLabels.show;
|
|
620
619
|
}
|
|
621
|
-
|
|
622
|
-
|
|
620
|
+
function $t() {
|
|
621
|
+
g.value.showTooltip = !g.value.showTooltip;
|
|
622
|
+
}
|
|
623
|
+
const Ae = p(!1);
|
|
624
|
+
function Ee() {
|
|
623
625
|
Ae.value = !Ae.value;
|
|
624
626
|
}
|
|
625
|
-
async function
|
|
626
|
-
if (!
|
|
627
|
-
const { width: o, height: t } =
|
|
627
|
+
async function il({ scale: l = 2 } = {}) {
|
|
628
|
+
if (!N.value) return;
|
|
629
|
+
const { width: o, height: t } = N.value.getBoundingClientRect(), a = o / t, { imageUri: i, base64: c } = await El({ domElement: N.value, base64: !0, img: !0, scale: l });
|
|
628
630
|
return {
|
|
629
631
|
imageUri: i,
|
|
630
632
|
base64: c,
|
|
@@ -634,15 +636,15 @@ const Ul = ["id"], Wl = ["id"], Hl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
634
636
|
aspectRatio: a
|
|
635
637
|
};
|
|
636
638
|
}
|
|
637
|
-
function
|
|
639
|
+
function vl() {
|
|
638
640
|
if (!ke.value) return;
|
|
639
641
|
const { x: l, y: o, width: t, height: a } = ke.value.getBBox();
|
|
640
642
|
de.value && de.value.setAttribute("viewBox", `${l} ${o} ${t + Math.min(0, l)} ${a + Math.min(0, o)}`);
|
|
641
643
|
}
|
|
642
|
-
const be =
|
|
643
|
-
const l = e.value.table.useDialog && !e.value.table.show, o =
|
|
644
|
+
const be = f(() => {
|
|
645
|
+
const l = e.value.table.useDialog && !e.value.table.show, o = g.value.showTable;
|
|
644
646
|
return {
|
|
645
|
-
component: l ?
|
|
647
|
+
component: l ? qt : Bt,
|
|
646
648
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
647
649
|
props: l ? {
|
|
648
650
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
@@ -650,7 +652,7 @@ const Ul = ["id"], Wl = ["id"], Hl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
650
652
|
headerColor: e.value.table.th.color,
|
|
651
653
|
headerBg: e.value.table.th.backgroundColor,
|
|
652
654
|
isFullscreen: se.value,
|
|
653
|
-
fullscreenParent:
|
|
655
|
+
fullscreenParent: N.value,
|
|
654
656
|
forcedWidth: Math.min(500, window.innerWidth * 0.8)
|
|
655
657
|
} : {
|
|
656
658
|
hideDetails: !0,
|
|
@@ -669,53 +671,57 @@ const Ul = ["id"], Wl = ["id"], Hl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
669
671
|
}
|
|
670
672
|
};
|
|
671
673
|
});
|
|
672
|
-
|
|
674
|
+
fe(() => g.value.showTable, (l) => {
|
|
673
675
|
e.value.table.show || (l && e.value.table.useDialog && ge.value ? ge.value.open() : "close" in ge.value && ge.value.close());
|
|
674
|
-
})
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
676
|
+
});
|
|
677
|
+
function Ct() {
|
|
678
|
+
g.value.showTable = !1, Fe.value && Fe.value.setTableIconState(!1);
|
|
679
|
+
}
|
|
680
|
+
return Dt({
|
|
681
|
+
autoSize: vl,
|
|
682
|
+
getData: tl,
|
|
683
|
+
getImage: il,
|
|
684
|
+
generatePdf: ct,
|
|
685
|
+
generateCsv: Ve,
|
|
686
|
+
generateImage: ht,
|
|
687
|
+
toggleTable: xt,
|
|
688
|
+
toggleLabels: _t,
|
|
689
|
+
toggleTooltip: $t,
|
|
690
|
+
toggleAnnotator: Ee,
|
|
691
|
+
toggleFullscreen: wt
|
|
686
692
|
}), (l, o) => (n(), r("div", {
|
|
687
693
|
ref_key: "donutChart",
|
|
688
|
-
ref:
|
|
689
|
-
class:
|
|
694
|
+
ref: N,
|
|
695
|
+
class: Ge(`vue-ui-donut ${se.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
690
696
|
style: $(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height:100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
691
697
|
id: `donut__${y.value}`,
|
|
692
|
-
onMouseenter:
|
|
693
|
-
onMouseleave:
|
|
698
|
+
onMouseenter: Qt,
|
|
699
|
+
onMouseleave: Zt
|
|
694
700
|
}, [
|
|
695
|
-
e.value.userOptions.buttons.annotator && u(de) ? (n(), te(u(
|
|
701
|
+
e.value.userOptions.buttons.annotator && u(de) ? (n(), te(u(Et), {
|
|
696
702
|
key: 0,
|
|
697
703
|
color: e.value.style.chart.color,
|
|
698
704
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
699
705
|
active: Ae.value,
|
|
700
706
|
svgRef: u(de),
|
|
701
|
-
onClose:
|
|
707
|
+
onClose: Ee
|
|
702
708
|
}, null, 8, ["color", "backgroundColor", "active", "svgRef"])) : v("", !0),
|
|
703
709
|
b(l.$slots, "userConfig", {}, void 0, !0),
|
|
704
|
-
|
|
710
|
+
el.value ? (n(), r("div", {
|
|
705
711
|
key: 1,
|
|
706
712
|
ref_key: "noTitle",
|
|
707
|
-
ref:
|
|
713
|
+
ref: Ze,
|
|
708
714
|
class: "vue-data-ui-no-title-space",
|
|
709
715
|
style: "height:36px; width: 100%;background:transparent"
|
|
710
716
|
}, null, 512)) : v("", !0),
|
|
711
717
|
e.value.style.chart.title.text ? (n(), r("div", {
|
|
712
718
|
key: 2,
|
|
713
719
|
ref_key: "chartTitle",
|
|
714
|
-
ref:
|
|
720
|
+
ref: Je,
|
|
715
721
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
716
722
|
}, [
|
|
717
|
-
(n(), te(
|
|
718
|
-
key: `title_${
|
|
723
|
+
(n(), te(Gl, {
|
|
724
|
+
key: `title_${et.value}`,
|
|
719
725
|
config: {
|
|
720
726
|
title: {
|
|
721
727
|
cy: "donut-div-title",
|
|
@@ -730,15 +736,15 @@ const Ul = ["id"], Wl = ["id"], Hl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
730
736
|
], 512)) : v("", !0),
|
|
731
737
|
h("div", {
|
|
732
738
|
id: `legend-top-${y.value}`
|
|
733
|
-
}, null, 8,
|
|
734
|
-
e.value.userOptions.show && we.value && (u(
|
|
735
|
-
ref_key: "
|
|
736
|
-
ref:
|
|
737
|
-
key: `user_option_${
|
|
739
|
+
}, null, 8, Hl),
|
|
740
|
+
e.value.userOptions.show && we.value && (u(rt) || u(Ne)) ? (n(), te(u(Rt), {
|
|
741
|
+
ref_key: "userOptionsRef",
|
|
742
|
+
ref: Fe,
|
|
743
|
+
key: `user_option_${st.value}`,
|
|
738
744
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
739
745
|
color: e.value.style.chart.color,
|
|
740
|
-
isPrinting: u(
|
|
741
|
-
isImaging: u(
|
|
746
|
+
isPrinting: u(vt),
|
|
747
|
+
isImaging: u(dt),
|
|
742
748
|
uid: y.value,
|
|
743
749
|
hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
|
|
744
750
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -748,26 +754,25 @@ const Ul = ["id"], Wl = ["id"], Hl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
748
754
|
hasLabel: e.value.userOptions.buttons.labels,
|
|
749
755
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
750
756
|
isFullscreen: se.value,
|
|
751
|
-
chartElement:
|
|
757
|
+
chartElement: N.value,
|
|
752
758
|
position: e.value.userOptions.position,
|
|
753
759
|
callbacks: e.value.userOptions.callbacks,
|
|
754
|
-
isTooltip:
|
|
760
|
+
isTooltip: g.value.showTooltip,
|
|
755
761
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
756
762
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
757
763
|
isAnnotation: Ae.value,
|
|
758
764
|
printScale: e.value.userOptions.print.scale,
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
}, Ge({ _: 2 }, [
|
|
765
|
+
tableDialog: e.value.table.useDialog,
|
|
766
|
+
onToggleFullscreen: wt,
|
|
767
|
+
onGeneratePdf: u(ct),
|
|
768
|
+
onGenerateCsv: Ve,
|
|
769
|
+
onGenerateImage: u(ht),
|
|
770
|
+
onToggleTable: xt,
|
|
771
|
+
onToggleLabels: _t,
|
|
772
|
+
onToggleTooltip: $t,
|
|
773
|
+
onToggleAnnotator: Ee,
|
|
774
|
+
style: $({ visibility: u(rt) ? u(Ne) ? "visible" : "hidden" : "visible" })
|
|
775
|
+
}, qe({ _: 2 }, [
|
|
771
776
|
l.$slots.menuIcon ? {
|
|
772
777
|
name: "menuIcon",
|
|
773
778
|
fn: A(({ isOpen: t, color: a }) => [
|
|
@@ -831,21 +836,21 @@ const Ul = ["id"], Wl = ["id"], Hl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
831
836
|
]),
|
|
832
837
|
key: "8"
|
|
833
838
|
} : void 0
|
|
834
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "chartElement", "position", "callbacks", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : v("", !0),
|
|
839
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "chartElement", "position", "callbacks", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : v("", !0),
|
|
835
840
|
(n(), r("svg", {
|
|
836
841
|
ref_key: "svgRef",
|
|
837
842
|
ref: de,
|
|
838
|
-
xmlns: u(
|
|
839
|
-
class:
|
|
843
|
+
xmlns: u(Al),
|
|
844
|
+
class: Ge({ "vue-data-ui-fullscreen--on": se.value, "vue-data-ui-fulscreen--off": !se.value, "vue-data-ui-svg": !0 }),
|
|
840
845
|
viewBox: `0 0 ${s.value.width <= 0 ? 10 : s.value.width} ${s.value.height <= 0 ? 10 : s.value.height}`,
|
|
841
|
-
style: $(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};${
|
|
846
|
+
style: $(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};${it.value.css}`)
|
|
842
847
|
}, [
|
|
843
848
|
h("g", {
|
|
844
849
|
ref_key: "G",
|
|
845
850
|
ref: ke,
|
|
846
851
|
class: "vue-data-ui-g"
|
|
847
852
|
}, [
|
|
848
|
-
Te(u(
|
|
853
|
+
Te(u(Gt)),
|
|
849
854
|
l.$slots["chart-background"] ? (n(), r("foreignObject", {
|
|
850
855
|
key: 0,
|
|
851
856
|
x: 0,
|
|
@@ -857,8 +862,8 @@ const Ul = ["id"], Wl = ["id"], Hl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
857
862
|
}
|
|
858
863
|
}, [
|
|
859
864
|
b(l.$slots, "chart-background", {}, void 0, !0)
|
|
860
|
-
], 8,
|
|
861
|
-
e.value.type === "classic" && !isNaN(le.value / _.value) ? (n(), r("defs",
|
|
865
|
+
], 8, Jl)) : v("", !0),
|
|
866
|
+
e.value.type === "classic" && !isNaN(le.value / _.value) ? (n(), r("defs", Kl, [
|
|
862
867
|
e.value.style.chart.useGradient ? (n(), r("radialGradient", {
|
|
863
868
|
key: 0,
|
|
864
869
|
id: `gradient_${y.value}`
|
|
@@ -867,24 +872,24 @@ const Ul = ["id"], Wl = ["id"], Hl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
867
872
|
offset: "0%",
|
|
868
873
|
"stop-color": u(Pe)(e.value.style.chart.backgroundColor, 0),
|
|
869
874
|
"stop-opacity": "0"
|
|
870
|
-
}, null, 8,
|
|
875
|
+
}, null, 8, Zl),
|
|
871
876
|
h("stop", {
|
|
872
877
|
offset: `${(1 - le.value / _.value) * 100}%`,
|
|
873
878
|
"stop-color": u(Pe)("#FFFFFF", 0),
|
|
874
879
|
"stop-opacity": "0"
|
|
875
|
-
}, null, 8,
|
|
880
|
+
}, null, 8, ea),
|
|
876
881
|
h("stop", {
|
|
877
882
|
offset: `${(1 - le.value / _.value / 2) * 100}%`,
|
|
878
883
|
"stop-color": u(Pe)("#FFFFFF", e.value.style.chart.gradientIntensity)
|
|
879
|
-
}, null, 8,
|
|
884
|
+
}, null, 8, ta),
|
|
880
885
|
h("stop", {
|
|
881
886
|
offset: "100%",
|
|
882
887
|
"stop-color": u(Pe)(e.value.style.chart.backgroundColor, 0),
|
|
883
888
|
"stop-opacity": "0"
|
|
884
|
-
}, null, 8,
|
|
885
|
-
], 8,
|
|
889
|
+
}, null, 8, la)
|
|
890
|
+
], 8, Ql)) : v("", !0)
|
|
886
891
|
])) : v("", !0),
|
|
887
|
-
e.value.type === "polar" ? (n(), r("defs",
|
|
892
|
+
e.value.type === "polar" ? (n(), r("defs", aa, [
|
|
888
893
|
(n(!0), r(w, null, L(d.value, (t, a) => (n(), r("radialGradient", {
|
|
889
894
|
id: `polar_gradient_${a}_${y.value}`,
|
|
890
895
|
cx: (isNaN(t.middlePoint.x / s.value.width * 100) ? 0 : t.middlePoint.x / s.value.width * 100) + "%",
|
|
@@ -893,14 +898,14 @@ const Ul = ["id"], Wl = ["id"], Hl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
893
898
|
}, [
|
|
894
899
|
h("stop", {
|
|
895
900
|
offset: "0%",
|
|
896
|
-
"stop-color": u(
|
|
901
|
+
"stop-color": u(Tl)(S.value[a].color, 0.05),
|
|
897
902
|
"stop-opacity": e.value.style.chart.gradientIntensity / 100
|
|
898
|
-
}, null, 8,
|
|
903
|
+
}, null, 8, sa),
|
|
899
904
|
h("stop", {
|
|
900
905
|
offset: "100%",
|
|
901
906
|
"stop-color": S.value[a].color
|
|
902
|
-
}, null, 8,
|
|
903
|
-
], 8,
|
|
907
|
+
}, null, 8, na)
|
|
908
|
+
], 8, oa))), 256))
|
|
904
909
|
])) : v("", !0),
|
|
905
910
|
h("defs", null, [
|
|
906
911
|
h("filter", {
|
|
@@ -914,12 +919,12 @@ const Ul = ["id"], Wl = ["id"], Hl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
914
919
|
in: "SourceGraphic",
|
|
915
920
|
stdDeviation: 2,
|
|
916
921
|
id: `blur_std_${y.value}`
|
|
917
|
-
}, null, 8,
|
|
918
|
-
o[
|
|
922
|
+
}, null, 8, ra),
|
|
923
|
+
o[5] || (o[5] = h("feColorMatrix", {
|
|
919
924
|
type: "saturate",
|
|
920
925
|
values: "0"
|
|
921
926
|
}, null, -1))
|
|
922
|
-
], 8,
|
|
927
|
+
], 8, ua),
|
|
923
928
|
h("filter", {
|
|
924
929
|
id: `shadow_${y.value}`,
|
|
925
930
|
"color-interpolation-filters": "sRGB"
|
|
@@ -930,8 +935,8 @@ const Ul = ["id"], Wl = ["id"], Hl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
930
935
|
stdDeviation: "10",
|
|
931
936
|
"flood-opacity": "0.5",
|
|
932
937
|
"flood-color": e.value.style.chart.layout.donut.shadowColor
|
|
933
|
-
}, null, 8,
|
|
934
|
-
], 8,
|
|
938
|
+
}, null, 8, va)
|
|
939
|
+
], 8, ia),
|
|
935
940
|
h("filter", {
|
|
936
941
|
id: `drop_shadow_${y.value}`,
|
|
937
942
|
"color-interpolation-filters": "sRGB",
|
|
@@ -946,23 +951,23 @@ const Ul = ["id"], Wl = ["id"], Hl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
946
951
|
stdDeviation: "3",
|
|
947
952
|
"flood-opacity": "1",
|
|
948
953
|
"flood-color": e.value.style.chart.layout.donut.shadowColor
|
|
949
|
-
}, null, 8,
|
|
950
|
-
], 8,
|
|
954
|
+
}, null, 8, ca)
|
|
955
|
+
], 8, da)
|
|
951
956
|
]),
|
|
952
957
|
e.value.type === "classic" ? (n(!0), r(w, { key: 3 }, L(S.value.filter((t) => !t.ghost), (t, a) => (n(), r("g", null, [
|
|
953
|
-
B(t) &&
|
|
958
|
+
B(t) && g.value.dataLabels.show ? (n(), r("path", {
|
|
954
959
|
key: 0,
|
|
955
|
-
d: u(
|
|
960
|
+
d: u(Sl)(t, { x: s.value.width / 2, y: s.value.height / 2 }, 16, 16, !1, !1, le.value, 12, e.value.style.chart.layout.curvedMarkers),
|
|
956
961
|
stroke: t.color,
|
|
957
962
|
"stroke-width": "1",
|
|
958
963
|
"stroke-linecap": "round",
|
|
959
964
|
"stroke-linejoin": "round",
|
|
960
965
|
fill: "none",
|
|
961
966
|
filter: oe(a)
|
|
962
|
-
}, null, 8,
|
|
967
|
+
}, null, 8, ha)) : v("", !0)
|
|
963
968
|
]))), 256)) : v("", !0),
|
|
964
969
|
e.value.type === "polar" ? (n(!0), r(w, { key: 4 }, L(S.value.filter((t) => !t.ghost), (t, a) => (n(), r("g", null, [
|
|
965
|
-
B(t) &&
|
|
970
|
+
B(t) && g.value.dataLabels.show ? (n(), r("path", {
|
|
966
971
|
key: 0,
|
|
967
972
|
d: `M ${u(P)({ initX: d.value[a].middlePoint.x, initY: d.value[a].middlePoint.y, offset: 24, centerX: s.value.width / 2, centerY: s.value.height / 2 }).x},${u(P)({ initX: d.value[a].middlePoint.x, initY: d.value[a].middlePoint.y, offset: 24, centerX: s.value.width / 2, centerY: s.value.height / 2 }).y} ${d.value[a].middlePoint.x},${d.value[a].middlePoint.y}`,
|
|
968
973
|
stroke: t.color,
|
|
@@ -974,7 +979,7 @@ const Ul = ["id"], Wl = ["id"], Hl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
974
979
|
style: $({
|
|
975
980
|
transition: T.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
976
981
|
})
|
|
977
|
-
}, null, 12,
|
|
982
|
+
}, null, 12, ya)) : v("", !0)
|
|
978
983
|
]))), 256)) : v("", !0),
|
|
979
984
|
e.value.type === "classic" && e.value.style.chart.layout.donut.useShadow ? (n(), r("circle", {
|
|
980
985
|
key: 5,
|
|
@@ -983,12 +988,12 @@ const Ul = ["id"], Wl = ["id"], Hl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
983
988
|
r: _.value <= 0 ? 10 : _.value,
|
|
984
989
|
fill: e.value.style.chart.backgroundColor,
|
|
985
990
|
filter: `url(#shadow_${y.value})`
|
|
986
|
-
}, null, 8,
|
|
987
|
-
l.$slots.pattern ? (n(), r("g",
|
|
988
|
-
(n(!0), r(w, null, L(
|
|
991
|
+
}, null, 8, fa)) : v("", !0),
|
|
992
|
+
l.$slots.pattern ? (n(), r("g", pa, [
|
|
993
|
+
(n(!0), r(w, null, L(je.dataset, (t, a) => (n(), r("defs", {
|
|
989
994
|
key: `pattern-${t.patternIndex}`
|
|
990
995
|
}, [
|
|
991
|
-
b(l.$slots, "pattern",
|
|
996
|
+
b(l.$slots, "pattern", Ue({ ref_for: !0 }, { seriesIndex: a, patternId: `pattern_${y.value}_${a}` }), void 0, !0)
|
|
992
997
|
]))), 128))
|
|
993
998
|
])) : v("", !0),
|
|
994
999
|
F.value && e.value.type === "classic" ? (n(), r(w, { key: 7 }, [
|
|
@@ -996,7 +1001,7 @@ const Ul = ["id"], Wl = ["id"], Hl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
996
1001
|
stroke: e.value.style.chart.backgroundColor,
|
|
997
1002
|
d: t.arcSlice,
|
|
998
1003
|
fill: "#FFFFFF"
|
|
999
|
-
}, null, 8,
|
|
1004
|
+
}, null, 8, ga))), 256)),
|
|
1000
1005
|
(n(!0), r(w, null, L(X.value, (t, a) => (n(), r("path", {
|
|
1001
1006
|
class: "vue-ui-donut-arc-path",
|
|
1002
1007
|
d: t.arcSlice,
|
|
@@ -1004,8 +1009,8 @@ const Ul = ["id"], Wl = ["id"], Hl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
1004
1009
|
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
1005
1010
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
1006
1011
|
filter: oe(a)
|
|
1007
|
-
}, null, 8,
|
|
1008
|
-
l.$slots.pattern ? (n(), r("g",
|
|
1012
|
+
}, null, 8, ma))), 256)),
|
|
1013
|
+
l.$slots.pattern ? (n(), r("g", ba, [
|
|
1009
1014
|
(n(!0), r(w, null, L(X.value, (t, a) => (n(), r("path", {
|
|
1010
1015
|
class: "vue-ui-donut-arc-path",
|
|
1011
1016
|
d: t.arcSlice,
|
|
@@ -1013,11 +1018,11 @@ const Ul = ["id"], Wl = ["id"], Hl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
1013
1018
|
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
1014
1019
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
1015
1020
|
filter: oe(a)
|
|
1016
|
-
}, null, 8,
|
|
1021
|
+
}, null, 8, wa))), 256))
|
|
1017
1022
|
])) : v("", !0)
|
|
1018
1023
|
], 64)) : v("", !0),
|
|
1019
1024
|
F.value && e.value.type === "polar" ? (n(), r(w, { key: 8 }, [
|
|
1020
|
-
S.value.length > 1 ? (n(), r("g",
|
|
1025
|
+
S.value.length > 1 ? (n(), r("g", ka, [
|
|
1021
1026
|
(n(!0), r(w, null, L(X.value, (t, a) => (n(), r("path", {
|
|
1022
1027
|
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
1023
1028
|
d: d.value[a].path,
|
|
@@ -1025,8 +1030,8 @@ const Ul = ["id"], Wl = ["id"], Hl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
1025
1030
|
style: $({
|
|
1026
1031
|
transition: T.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
1027
1032
|
})
|
|
1028
|
-
}, null, 12,
|
|
1029
|
-
e.value.style.chart.layout.donut.useShadow ? (n(), r("g",
|
|
1033
|
+
}, null, 12, xa))), 256)),
|
|
1034
|
+
e.value.style.chart.layout.donut.useShadow ? (n(), r("g", _a, [
|
|
1030
1035
|
(n(!0), r(w, null, L(X.value, (t, a) => (n(), r("path", {
|
|
1031
1036
|
class: "vue-ui-donut-arc-path",
|
|
1032
1037
|
d: d.value[a].path,
|
|
@@ -1037,9 +1042,9 @@ const Ul = ["id"], Wl = ["id"], Hl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
1037
1042
|
style: $({
|
|
1038
1043
|
transition: T.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
1039
1044
|
})
|
|
1040
|
-
}, null, 12,
|
|
1045
|
+
}, null, 12, $a))), 256))
|
|
1041
1046
|
])) : v("", !0),
|
|
1042
|
-
l.$slots.pattern ? (n(), r("g",
|
|
1047
|
+
l.$slots.pattern ? (n(), r("g", Ca, [
|
|
1043
1048
|
(n(!0), r(w, null, L(X.value, (t, a) => (n(), r("path", {
|
|
1044
1049
|
class: "vue-ui-donut-arc-path",
|
|
1045
1050
|
d: d.value[a].path,
|
|
@@ -1051,7 +1056,7 @@ const Ul = ["id"], Wl = ["id"], Hl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
1051
1056
|
transition: T.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`,
|
|
1052
1057
|
transformOrigin: "center"
|
|
1053
1058
|
})
|
|
1054
|
-
}, null, 12,
|
|
1059
|
+
}, null, 12, Aa))), 256))
|
|
1055
1060
|
])) : v("", !0),
|
|
1056
1061
|
(n(!0), r(w, null, L(X.value, (t, a) => (n(), r("path", {
|
|
1057
1062
|
class: "vue-ui-donut-arc-path",
|
|
@@ -1063,8 +1068,8 @@ const Ul = ["id"], Wl = ["id"], Hl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
1063
1068
|
style: $({
|
|
1064
1069
|
transition: T.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
1065
1070
|
})
|
|
1066
|
-
}, null, 12,
|
|
1067
|
-
])) : (n(), r("g",
|
|
1071
|
+
}, null, 12, Ta))), 256))
|
|
1072
|
+
])) : (n(), r("g", Sa, [
|
|
1068
1073
|
l.$slots.pattern ? (n(), r("circle", {
|
|
1069
1074
|
key: 0,
|
|
1070
1075
|
cx: s.value.width / 2,
|
|
@@ -1073,7 +1078,7 @@ const Ul = ["id"], Wl = ["id"], Hl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
1073
1078
|
fill: `url(#pattern_${y.value}_${S.value[0].patternIndex})`,
|
|
1074
1079
|
stroke: e.value.style.chart.backgroundColor,
|
|
1075
1080
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth
|
|
1076
|
-
}, null, 8,
|
|
1081
|
+
}, null, 8, Pa)) : v("", !0),
|
|
1077
1082
|
h("circle", {
|
|
1078
1083
|
cx: s.value.width / 2,
|
|
1079
1084
|
cy: s.value.height / 2,
|
|
@@ -1081,17 +1086,17 @@ const Ul = ["id"], Wl = ["id"], Hl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
1081
1086
|
fill: e.value.style.chart.useGradient ? `url(#polar_gradient_0_${y.value})` : S.value[0].color,
|
|
1082
1087
|
stroke: e.value.style.chart.backgroundColor,
|
|
1083
1088
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth
|
|
1084
|
-
}, null, 8,
|
|
1089
|
+
}, null, 8, Fa)
|
|
1085
1090
|
]))
|
|
1086
1091
|
], 64)) : (n(), r(w, { key: 9 }, [
|
|
1087
|
-
e.value.type === "classic" && !
|
|
1088
|
-
(n(!0), r(w, null, L(
|
|
1092
|
+
e.value.type === "classic" && !ol.value ? (n(), r("g", La, [
|
|
1093
|
+
(n(!0), r(w, null, L(sl.value, (t, a) => (n(), r("path", {
|
|
1089
1094
|
class: "vue-ui-donut-arc-path",
|
|
1090
1095
|
d: t.arcSlice,
|
|
1091
1096
|
fill: t.color,
|
|
1092
1097
|
stroke: e.value.style.chart.backgroundColor,
|
|
1093
1098
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth
|
|
1094
|
-
}, null, 8,
|
|
1099
|
+
}, null, 8, Ia))), 256))
|
|
1095
1100
|
])) : v("", !0),
|
|
1096
1101
|
h("circle", {
|
|
1097
1102
|
cx: s.value.width / 2,
|
|
@@ -1099,7 +1104,7 @@ const Ul = ["id"], Wl = ["id"], Hl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
1099
1104
|
r: _.value <= 0 ? 10 : _.value,
|
|
1100
1105
|
fill: "transparent",
|
|
1101
1106
|
stroke: e.value.style.chart.backgroundColor
|
|
1102
|
-
}, null, 8,
|
|
1107
|
+
}, null, 8, Ma)
|
|
1103
1108
|
], 64)),
|
|
1104
1109
|
e.value.style.chart.useGradient && e.value.type === "classic" ? (n(), r("circle", {
|
|
1105
1110
|
key: 10,
|
|
@@ -1110,18 +1115,18 @@ const Ul = ["id"], Wl = ["id"], Hl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
1110
1115
|
_.value <= 0 ? 10 : _.value
|
|
1111
1116
|
),
|
|
1112
1117
|
fill: `url(#gradient_${y.value})`
|
|
1113
|
-
}, null, 8,
|
|
1118
|
+
}, null, 8, za)) : v("", !0),
|
|
1114
1119
|
h("circle", {
|
|
1115
1120
|
ref_key: "circle_hollow",
|
|
1116
|
-
ref:
|
|
1121
|
+
ref: jt,
|
|
1117
1122
|
style: { pointerEvents: "none" },
|
|
1118
1123
|
fill: "none",
|
|
1119
1124
|
cx: s.value.width / 2,
|
|
1120
1125
|
cy: s.value.height / 2,
|
|
1121
1126
|
r: Math.max(0.1, le.value * 1.7)
|
|
1122
|
-
}, null, 8,
|
|
1127
|
+
}, null, 8, Oa),
|
|
1123
1128
|
F.value ? (n(), r(w, { key: 11 }, [
|
|
1124
|
-
S.value.length > 1 || e.value.type === "classic" ? (n(), r("g",
|
|
1129
|
+
S.value.length > 1 || e.value.type === "classic" ? (n(), r("g", Da, [
|
|
1125
1130
|
(n(!0), r(w, null, L(S.value.filter((t) => !t.ghost), (t, a) => (n(), r("path", {
|
|
1126
1131
|
d: e.value.type === "classic" ? t.arcSlice : d.value[a].path,
|
|
1127
1132
|
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
@@ -1135,7 +1140,7 @@ const Ul = ["id"], Wl = ["id"], Hl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
1135
1140
|
onMouseleave: (i) => he({ datapoint: t, seriesIndex: t.seriesIndex }),
|
|
1136
1141
|
onClick: (i) => Q(t, a)
|
|
1137
1142
|
}, null, 40, Na))), 256))
|
|
1138
|
-
])) : (n(), r("g",
|
|
1143
|
+
])) : (n(), r("g", Ya, [
|
|
1139
1144
|
h("circle", {
|
|
1140
1145
|
cx: s.value.width / 2,
|
|
1141
1146
|
cy: s.value.height / 2,
|
|
@@ -1149,13 +1154,13 @@ const Ul = ["id"], Wl = ["id"], Hl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
1149
1154
|
})),
|
|
1150
1155
|
onMouseleave: o[1] || (o[1] = (t) => he({ datapoint: S.value[0], seriesIndex: S.value[0].seriesIndex })),
|
|
1151
1156
|
onClick: o[2] || (o[2] = (t) => Q(S.value[0], l.i))
|
|
1152
|
-
}, null, 40,
|
|
1157
|
+
}, null, 40, Xa)
|
|
1153
1158
|
]))
|
|
1154
1159
|
], 64)) : v("", !0),
|
|
1155
1160
|
e.value.type === "classic" ? (n(), r("g", {
|
|
1156
1161
|
key: 12,
|
|
1157
1162
|
ref_key: "G_hollow",
|
|
1158
|
-
ref:
|
|
1163
|
+
ref: Ht,
|
|
1159
1164
|
class: "vue-data-ui-donut-hollow-labels"
|
|
1160
1165
|
}, [
|
|
1161
1166
|
e.value.style.chart.layout.labels.hollow.total.show ? (n(), r("text", {
|
|
@@ -1166,7 +1171,7 @@ const Ul = ["id"], Wl = ["id"], Hl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
1166
1171
|
fill: e.value.style.chart.layout.labels.hollow.total.color,
|
|
1167
1172
|
"font-size": e.value.style.chart.layout.labels.hollow.total.fontSize,
|
|
1168
1173
|
style: $(`font-weight:${e.value.style.chart.layout.labels.hollow.total.bold ? "bold" : ""}`)
|
|
1169
|
-
}, I(e.value.style.chart.layout.labels.hollow.total.text), 13,
|
|
1174
|
+
}, I(e.value.style.chart.layout.labels.hollow.total.text), 13, Ba)) : v("", !0),
|
|
1170
1175
|
e.value.style.chart.layout.labels.hollow.total.show ? (n(), r("text", {
|
|
1171
1176
|
key: 1,
|
|
1172
1177
|
"text-anchor": "middle",
|
|
@@ -1178,12 +1183,12 @@ const Ul = ["id"], Wl = ["id"], Hl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
1178
1183
|
}, I(u(E)(
|
|
1179
1184
|
e.value.style.chart.layout.labels.hollow.total.value.formatter,
|
|
1180
1185
|
F.value,
|
|
1181
|
-
u(
|
|
1186
|
+
u(D)({
|
|
1182
1187
|
p: e.value.style.chart.layout.labels.hollow.total.value.prefix,
|
|
1183
1188
|
v: F.value,
|
|
1184
1189
|
s: e.value.style.chart.layout.labels.hollow.total.value.suffix
|
|
1185
1190
|
})
|
|
1186
|
-
)), 13,
|
|
1191
|
+
)), 13, Va)) : v("", !0),
|
|
1187
1192
|
e.value.style.chart.layout.labels.hollow.average.show ? (n(), r("text", {
|
|
1188
1193
|
key: 2,
|
|
1189
1194
|
"text-anchor": "middle",
|
|
@@ -1192,7 +1197,7 @@ const Ul = ["id"], Wl = ["id"], Hl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
1192
1197
|
fill: e.value.style.chart.layout.labels.hollow.average.color,
|
|
1193
1198
|
"font-size": e.value.style.chart.layout.labels.hollow.average.fontSize,
|
|
1194
1199
|
style: $(`font-weight:${e.value.style.chart.layout.labels.hollow.average.bold ? "bold" : ""}`)
|
|
1195
|
-
}, I(e.value.style.chart.layout.labels.hollow.average.text), 13,
|
|
1200
|
+
}, I(e.value.style.chart.layout.labels.hollow.average.text), 13, Ea)) : v("", !0),
|
|
1196
1201
|
e.value.style.chart.layout.labels.hollow.average.show ? (n(), r("text", {
|
|
1197
1202
|
key: 3,
|
|
1198
1203
|
"text-anchor": "middle",
|
|
@@ -1203,43 +1208,43 @@ const Ul = ["id"], Wl = ["id"], Hl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
1203
1208
|
style: $(`font-weight:${e.value.style.chart.layout.labels.hollow.average.value.bold ? "bold" : ""}`)
|
|
1204
1209
|
}, I(ae.value || T.value ? "--" : u(E)(
|
|
1205
1210
|
e.value.style.chart.layout.labels.hollow.average.value.formatter,
|
|
1206
|
-
|
|
1207
|
-
u(
|
|
1211
|
+
Xe.value,
|
|
1212
|
+
u(D)({
|
|
1208
1213
|
p: e.value.style.chart.layout.labels.hollow.average.value.prefix,
|
|
1209
|
-
v:
|
|
1214
|
+
v: Xe.value,
|
|
1210
1215
|
s: e.value.style.chart.layout.labels.hollow.average.value.suffix,
|
|
1211
1216
|
r: e.value.style.chart.layout.labels.hollow.average.value.rounding
|
|
1212
1217
|
})
|
|
1213
|
-
)), 13,
|
|
1218
|
+
)), 13, Ra)) : v("", !0)
|
|
1214
1219
|
], 512)) : v("", !0),
|
|
1215
1220
|
(n(!0), r(w, null, L(X.value.filter((t) => !t.ghost), (t, a) => (n(), r("g", {
|
|
1216
1221
|
filter: oe(a),
|
|
1217
|
-
class:
|
|
1222
|
+
class: Ge({ animated: e.value.useCssAnimation }),
|
|
1218
1223
|
key: t.seriesIndex
|
|
1219
1224
|
}, [
|
|
1220
|
-
e.value.style.chart.layout.labels.dataLabels.useLabelSlots ? (n(), r("g",
|
|
1225
|
+
e.value.style.chart.layout.labels.dataLabels.useLabelSlots ? (n(), r("g", qa, [
|
|
1221
1226
|
(n(), r("foreignObject", {
|
|
1222
1227
|
x: u(x)(t, !0).anchor === "end" ? u(x)(t).x - 120 : u(x)(t, !0).anchor === "middle" ? u(x)(t).x - 60 : u(x)(t).x,
|
|
1223
|
-
y: u(pe)(t) - (
|
|
1228
|
+
y: u(pe)(t) - (kt.value ? 20 : 0),
|
|
1224
1229
|
width: "120",
|
|
1225
1230
|
height: "60",
|
|
1226
1231
|
style: { overflow: "visible" }
|
|
1227
1232
|
}, [
|
|
1228
1233
|
h("div", null, [
|
|
1229
|
-
b(l.$slots, "dataLabel",
|
|
1234
|
+
b(l.$slots, "dataLabel", Ue({ ref_for: !0 }, {
|
|
1230
1235
|
datapoint: t,
|
|
1231
1236
|
isBlur: !e.value.useBlurOnHover || [null, void 0].includes(Y.value) || Y.value === a,
|
|
1232
|
-
isSafari:
|
|
1233
|
-
isVisible: B(t) &&
|
|
1237
|
+
isSafari: kt.value,
|
|
1238
|
+
isVisible: B(t) && g.value.dataLabels.show,
|
|
1234
1239
|
textAlign: u(x)(t, !0, 16, !0).anchor,
|
|
1235
1240
|
flexAlign: u(x)(t, !0, 16).anchor,
|
|
1236
|
-
percentage:
|
|
1241
|
+
percentage: Ye(t, X.value)
|
|
1237
1242
|
}), void 0, !0)
|
|
1238
1243
|
])
|
|
1239
|
-
], 8,
|
|
1240
|
-
])) : (n(), r("g",
|
|
1244
|
+
], 8, Ua))
|
|
1245
|
+
])) : (n(), r("g", Wa, [
|
|
1241
1246
|
e.value.type === "classic" ? (n(), r(w, { key: 0 }, [
|
|
1242
|
-
B(t) &&
|
|
1247
|
+
B(t) && g.value.dataLabels.show ? (n(), r("circle", {
|
|
1243
1248
|
key: 0,
|
|
1244
1249
|
cx: u(x)(t).x,
|
|
1245
1250
|
cy: u(pe)(t) - 3.5,
|
|
@@ -1256,10 +1261,10 @@ const Ul = ["id"], Wl = ["id"], Hl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
1256
1261
|
show: !0
|
|
1257
1262
|
}),
|
|
1258
1263
|
onMouseleave: (i) => he({ datapoint: t, seriesIndex: t.seriesIndex })
|
|
1259
|
-
}, null, 40,
|
|
1264
|
+
}, null, 40, Ha)) : v("", !0)
|
|
1260
1265
|
], 64)) : v("", !0),
|
|
1261
1266
|
e.value.type === "polar" ? (n(), r(w, { key: 1 }, [
|
|
1262
|
-
B(t) &&
|
|
1267
|
+
B(t) && g.value.dataLabels.show ? (n(), r("circle", {
|
|
1263
1268
|
key: 0,
|
|
1264
1269
|
cx: u(P)({ initX: d.value[a].middlePoint.x, initY: d.value[a].middlePoint.y, offset: 24, centerX: s.value.width / 2, centerY: s.value.height / 2 }).x,
|
|
1265
1270
|
cy: u(P)({ initX: d.value[a].middlePoint.x, initY: d.value[a].middlePoint.y, offset: 24, centerX: s.value.width / 2, centerY: s.value.height / 2 }).y,
|
|
@@ -1279,10 +1284,10 @@ const Ul = ["id"], Wl = ["id"], Hl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
1279
1284
|
style: $({
|
|
1280
1285
|
transition: T.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
1281
1286
|
})
|
|
1282
|
-
}, null, 44,
|
|
1287
|
+
}, null, 44, ja)) : v("", !0)
|
|
1283
1288
|
], 64)) : v("", !0),
|
|
1284
1289
|
e.value.type === "classic" ? (n(), r(w, { key: 2 }, [
|
|
1285
|
-
|
|
1290
|
+
St(h("text", {
|
|
1286
1291
|
class: "vue-data-ui-datalabel-value",
|
|
1287
1292
|
"text-anchor": u(x)(t, !0, 12).anchor,
|
|
1288
1293
|
x: u(x)(t, !0, 12).x,
|
|
@@ -1298,20 +1303,20 @@ const Ul = ["id"], Wl = ["id"], Hl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
1298
1303
|
show: !0
|
|
1299
1304
|
}),
|
|
1300
1305
|
onMouseleave: (i) => he({ datapoint: t, seriesIndex: t.seriesIndex })
|
|
1301
|
-
}, I(
|
|
1306
|
+
}, I(Ye(t, X.value)) + " " + I(e.value.style.chart.layout.labels.value.show ? `(${u(E)(
|
|
1302
1307
|
e.value.style.chart.layout.labels.value.formatter,
|
|
1303
1308
|
t.value,
|
|
1304
|
-
u(
|
|
1309
|
+
u(D)({
|
|
1305
1310
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
1306
1311
|
v: t.value,
|
|
1307
1312
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
1308
1313
|
r: e.value.style.chart.layout.labels.value.rounding
|
|
1309
1314
|
}),
|
|
1310
1315
|
{ datapoint: t }
|
|
1311
|
-
)})` : ""), 45,
|
|
1312
|
-
[
|
|
1316
|
+
)})` : ""), 45, Ja), [
|
|
1317
|
+
[Pt, B(t) && g.value.dataLabels.show]
|
|
1313
1318
|
]),
|
|
1314
|
-
|
|
1319
|
+
St(h("text", {
|
|
1315
1320
|
class: "vue-data-ui-datalabel-name",
|
|
1316
1321
|
"text-anchor": u(x)(t).anchor,
|
|
1317
1322
|
x: u(x)(t, !0, 12).x,
|
|
@@ -1320,20 +1325,20 @@ const Ul = ["id"], Wl = ["id"], Hl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
1320
1325
|
"font-size": J.value + "px",
|
|
1321
1326
|
style: $(`font-weight:${e.value.style.chart.layout.labels.name.bold ? "bold" : ""}`),
|
|
1322
1327
|
onClick: (i) => Q(t, a),
|
|
1323
|
-
innerHTML: u(
|
|
1328
|
+
innerHTML: u(Mt)({
|
|
1324
1329
|
content: t.name,
|
|
1325
1330
|
fontSize: J.value,
|
|
1326
1331
|
fill: e.value.style.chart.layout.labels.name.color,
|
|
1327
1332
|
x: u(x)(t, !0, 12).x,
|
|
1328
1333
|
y: u(pe)(t) + J.value
|
|
1329
1334
|
})
|
|
1330
|
-
}, null, 12,
|
|
1331
|
-
[
|
|
1335
|
+
}, null, 12, Ka), [
|
|
1336
|
+
[Pt, B(t) && g.value.dataLabels.show]
|
|
1332
1337
|
]),
|
|
1333
|
-
o[
|
|
1338
|
+
o[6] || (o[6] = Se(' @mouseenter="useTooltip({ datapoint: arc, relativeIndex: i, seriesIndex: arc.seriesIndex, show: true })" @mouseleave="handleDatapointLeave({ datapoint: arc, seriesIndex: arc.seriesIndex })" /> ', -1))
|
|
1334
1339
|
], 64)) : v("", !0),
|
|
1335
1340
|
e.value.type === "polar" ? (n(), r(w, { key: 3 }, [
|
|
1336
|
-
B(t) &&
|
|
1341
|
+
B(t) && g.value.dataLabels.show ? (n(), r("text", {
|
|
1337
1342
|
key: 0,
|
|
1338
1343
|
class: "vue-data-ui-datalabel-value",
|
|
1339
1344
|
"text-anchor": ce(d.value[a].middlePoint),
|
|
@@ -1353,18 +1358,18 @@ const Ul = ["id"], Wl = ["id"], Hl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
1353
1358
|
show: !0
|
|
1354
1359
|
}),
|
|
1355
1360
|
onMouseleave: (i) => he({ datapoint: t, seriesIndex: t.seriesIndex })
|
|
1356
|
-
}, I(
|
|
1361
|
+
}, I(Ye(t, X.value)) + " " + I(e.value.style.chart.layout.labels.value.show ? `(${u(E)(
|
|
1357
1362
|
e.value.style.chart.layout.labels.value.formatter,
|
|
1358
1363
|
t.value,
|
|
1359
|
-
u(
|
|
1364
|
+
u(D)({
|
|
1360
1365
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
1361
1366
|
v: t.value,
|
|
1362
1367
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
1363
1368
|
r: e.value.style.chart.layout.labels.value.rounding
|
|
1364
1369
|
}),
|
|
1365
1370
|
{ datapoint: t }
|
|
1366
|
-
)})` : ""), 45,
|
|
1367
|
-
B(t) &&
|
|
1371
|
+
)})` : ""), 45, Qa)) : v("", !0),
|
|
1372
|
+
B(t) && g.value.dataLabels.show ? (n(), r("text", {
|
|
1368
1373
|
key: 1,
|
|
1369
1374
|
class: "vue-data-ui-datalabel-name",
|
|
1370
1375
|
"text-anchor": ce(d.value[a].middlePoint),
|
|
@@ -1377,18 +1382,18 @@ const Ul = ["id"], Wl = ["id"], Hl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
1377
1382
|
fontWeight: e.value.style.chart.layout.labels.name.bold ? "bold" : "normal"
|
|
1378
1383
|
}),
|
|
1379
1384
|
onClick: (i) => Q(t, a),
|
|
1380
|
-
innerHTML: u(
|
|
1385
|
+
innerHTML: u(Mt)({
|
|
1381
1386
|
content: t.name,
|
|
1382
1387
|
fontSize: xe.value,
|
|
1383
1388
|
fill: e.value.style.chart.layout.labels.name.color,
|
|
1384
1389
|
x: u(P)({ initX: d.value[a].middlePoint.x, initY: d.value[a].middlePoint.y, offset: 42, centerX: s.value.width / 2, centerY: s.value.height / 2 }).x,
|
|
1385
1390
|
y: u(P)({ initX: d.value[a].middlePoint.x, initY: d.value[a].middlePoint.y, offset: 42, centerX: s.value.width / 2, centerY: s.value.height / 2 }).y + J.value * 1.2
|
|
1386
1391
|
})
|
|
1387
|
-
}, null, 12,
|
|
1388
|
-
o[
|
|
1392
|
+
}, null, 12, Za)) : v("", !0),
|
|
1393
|
+
o[7] || (o[7] = Se(' @mouseenter="useTooltip({ datapoint: arc, relativeIndex: i, seriesIndex: arc.seriesIndex, show: true })" @mouseleave="handleDatapointLeave({ datapoint: arc, seriesIndex: arc.seriesIndex })" /> ', -1))
|
|
1389
1394
|
], 64)) : v("", !0)
|
|
1390
1395
|
])),
|
|
1391
|
-
|
|
1396
|
+
g.value.dataLabels.show && e.value.style.chart.comments.show && t.comment ? (n(), r("g", eo, [
|
|
1392
1397
|
B(t) && e.value.type === "classic" ? (n(), r("foreignObject", {
|
|
1393
1398
|
key: 0,
|
|
1394
1399
|
x: e.value.style.chart.comments.offsetX + (u(x)(t, !0).anchor === "end" ? u(x)(t).x - e.value.style.chart.comments.width : u(x)(t, !0).anchor === "middle" ? u(x)(t).x - e.value.style.chart.comments.width / 2 : u(x)(t).x),
|
|
@@ -1402,11 +1407,11 @@ const Ul = ["id"], Wl = ["id"], Hl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
1402
1407
|
plot: { ...t, textAlign: u(x)(t, !0, 16, !0).anchor, flexAlign: u(x)(t, !0, 16).anchor, isFirstLoad: T.value }
|
|
1403
1408
|
}, void 0, !0)
|
|
1404
1409
|
])
|
|
1405
|
-
], 8,
|
|
1410
|
+
], 8, to)) : v("", !0),
|
|
1406
1411
|
B(t) && e.value.type === "polar" ? (n(), r("foreignObject", {
|
|
1407
1412
|
key: 1,
|
|
1408
1413
|
x: e.value.style.chart.comments.offsetX + (ce(d.value[a].middlePoint) === "end" ? u(P)({ initX: d.value[a].middlePoint.x, initY: d.value[a].middlePoint.y, offset: 42, centerX: s.value.width / 2, centerY: s.value.height / 2 }).x - e.value.style.chart.comments.width : ce(d.value[a].middlePoint) === "middle" ? u(P)({ initX: d.value[a].middlePoint.x, initY: d.value[a].middlePoint.y, offset: 42, centerX: s.value.width / 2, centerY: s.value.height / 2 }).x - e.value.style.chart.comments.width / 2 : u(P)({ initX: d.value[a].middlePoint.x, initY: d.value[a].middlePoint.y, offset: 42, centerX: s.value.width / 2, centerY: s.value.height / 2 }).x),
|
|
1409
|
-
y:
|
|
1414
|
+
y: nl(d.value[a]) + e.value.style.chart.comments.offsetY,
|
|
1410
1415
|
width: e.value.style.chart.comments.width,
|
|
1411
1416
|
height: "200",
|
|
1412
1417
|
style: $({
|
|
@@ -1420,32 +1425,32 @@ const Ul = ["id"], Wl = ["id"], Hl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
1420
1425
|
plot: { ...t, textAlign: ce(d.value[a].middlePoint), flexAlign: ce(d.value[a].middlePoint), isFirstLoad: T.value }
|
|
1421
1426
|
}, void 0, !0)
|
|
1422
1427
|
])
|
|
1423
|
-
], 12,
|
|
1428
|
+
], 12, lo)) : v("", !0)
|
|
1424
1429
|
])) : v("", !0)
|
|
1425
|
-
], 10,
|
|
1430
|
+
], 10, Ga))), 128)),
|
|
1426
1431
|
b(l.$slots, "svg", { svg: s.value }, void 0, !0)
|
|
1427
1432
|
], 512)
|
|
1428
|
-
], 14,
|
|
1429
|
-
l.$slots.watermark ? (n(), r("div",
|
|
1430
|
-
b(l.$slots, "watermark", ne(ue({ isPrinting: u(
|
|
1433
|
+
], 14, jl)),
|
|
1434
|
+
l.$slots.watermark ? (n(), r("div", ao, [
|
|
1435
|
+
b(l.$slots, "watermark", ne(ue({ isPrinting: u(vt) || u(dt) })), void 0, !0)
|
|
1431
1436
|
])) : v("", !0),
|
|
1432
1437
|
h("div", {
|
|
1433
1438
|
id: `legend-bottom-${y.value}`
|
|
1434
|
-
}, null, 8,
|
|
1435
|
-
|
|
1439
|
+
}, null, 8, oo),
|
|
1440
|
+
at.value ? (n(), te(pl, {
|
|
1436
1441
|
key: 5,
|
|
1437
1442
|
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${y.value}` : `#legend-bottom-${y.value}`
|
|
1438
1443
|
}, [
|
|
1439
1444
|
h("div", {
|
|
1440
1445
|
ref_key: "chartLegend",
|
|
1441
|
-
ref:
|
|
1446
|
+
ref: Ke
|
|
1442
1447
|
}, [
|
|
1443
|
-
e.value.style.chart.legend.show ? (n(), te(
|
|
1444
|
-
key: `legend_${
|
|
1445
|
-
legendSet:
|
|
1446
|
-
config:
|
|
1447
|
-
onClickMarker: o[3] || (o[3] = ({ i: t }) =>
|
|
1448
|
-
},
|
|
1448
|
+
e.value.style.chart.legend.show ? (n(), te(ql, {
|
|
1449
|
+
key: `legend_${lt.value}`,
|
|
1450
|
+
legendSet: mt.value,
|
|
1451
|
+
config: al.value,
|
|
1452
|
+
onClickMarker: o[3] || (o[3] = ({ i: t }) => gt(t))
|
|
1453
|
+
}, qe({
|
|
1449
1454
|
item: A(({ legend: t, index: a }) => [
|
|
1450
1455
|
h("div", {
|
|
1451
1456
|
style: $(`opacity:${q.value.includes(a) ? 0.5 : 1}`),
|
|
@@ -1453,7 +1458,7 @@ const Ul = ["id"], Wl = ["id"], Hl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
1453
1458
|
}, I(t.name) + I(e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ":" : "") + " " + I(e.value.style.chart.legend.showValue ? u(E)(
|
|
1454
1459
|
e.value.style.chart.layout.labels.value.formatter,
|
|
1455
1460
|
t.value,
|
|
1456
|
-
u(
|
|
1461
|
+
u(D)({
|
|
1457
1462
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
1458
1463
|
v: t.value,
|
|
1459
1464
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -1463,22 +1468,22 @@ const Ul = ["id"], Wl = ["id"], Hl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
1463
1468
|
datapoint: t,
|
|
1464
1469
|
index: a
|
|
1465
1470
|
}
|
|
1466
|
-
) : "") + " " + I(e.value.style.chart.legend.showPercentage ? q.value.includes(a) ? `${e.value.style.chart.legend.showValue ? "(" : ""}${
|
|
1471
|
+
) : "") + " " + I(e.value.style.chart.legend.showPercentage ? q.value.includes(a) ? `${e.value.style.chart.legend.showValue ? "(" : ""}${rl(t.proportion * 100)}%${e.value.style.chart.legend.showValue ? ")" : ""}` : `${e.value.style.chart.legend.showValue ? "(" : ""}${isNaN(t.value / F.value) ? "-" : u(E)(
|
|
1467
1472
|
e.value.style.chart.layout.labels.percentage.formatter,
|
|
1468
|
-
|
|
1469
|
-
u(
|
|
1470
|
-
v:
|
|
1473
|
+
bt.value(t),
|
|
1474
|
+
u(D)({
|
|
1475
|
+
v: bt.value(t),
|
|
1471
1476
|
s: "%",
|
|
1472
1477
|
r: e.value.style.chart.legend.roundingPercentage
|
|
1473
1478
|
})
|
|
1474
|
-
)}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""), 13,
|
|
1479
|
+
)}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""), 13, so)
|
|
1475
1480
|
]),
|
|
1476
1481
|
_: 2
|
|
1477
1482
|
}, [
|
|
1478
1483
|
l.$slots.pattern ? {
|
|
1479
1484
|
name: "legend-pattern",
|
|
1480
1485
|
fn: A(({ legend: t, index: a }) => [
|
|
1481
|
-
Te(
|
|
1486
|
+
Te(Rl, {
|
|
1482
1487
|
shape: t.shape,
|
|
1483
1488
|
radius: 30,
|
|
1484
1489
|
stroke: "none",
|
|
@@ -1489,26 +1494,26 @@ const Ul = ["id"], Wl = ["id"], Hl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
1489
1494
|
key: "0"
|
|
1490
1495
|
} : void 0
|
|
1491
1496
|
]), 1032, ["legendSet", "config"])) : v("", !0),
|
|
1492
|
-
b(l.$slots, "legend", { legend:
|
|
1497
|
+
b(l.$slots, "legend", { legend: mt.value }, void 0, !0)
|
|
1493
1498
|
], 512)
|
|
1494
1499
|
], 8, ["to"])) : v("", !0),
|
|
1495
1500
|
l.$slots.source ? (n(), r("div", {
|
|
1496
1501
|
key: 6,
|
|
1497
1502
|
ref_key: "source",
|
|
1498
|
-
ref:
|
|
1503
|
+
ref: Qe,
|
|
1499
1504
|
dir: "auto"
|
|
1500
1505
|
}, [
|
|
1501
1506
|
b(l.$slots, "source", {}, void 0, !0)
|
|
1502
1507
|
], 512)) : v("", !0),
|
|
1503
|
-
l.$slots.hollow ? (n(), r("div",
|
|
1508
|
+
l.$slots.hollow ? (n(), r("div", no, [
|
|
1504
1509
|
b(l.$slots, "hollow", ne(ue({
|
|
1505
1510
|
total: F.value,
|
|
1506
|
-
average:
|
|
1511
|
+
average: Xe.value,
|
|
1507
1512
|
dataset: G.value
|
|
1508
1513
|
})), void 0, !0)
|
|
1509
1514
|
])) : v("", !0),
|
|
1510
|
-
Te(u(
|
|
1511
|
-
show:
|
|
1515
|
+
Te(u(Yt), {
|
|
1516
|
+
show: g.value.showTooltip && ze.value,
|
|
1512
1517
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
1513
1518
|
color: e.value.style.chart.tooltip.color,
|
|
1514
1519
|
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
@@ -1518,48 +1523,48 @@ const Ul = ["id"], Wl = ["id"], Hl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
1518
1523
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
1519
1524
|
position: e.value.style.chart.tooltip.position,
|
|
1520
1525
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
1521
|
-
parent:
|
|
1522
|
-
content:
|
|
1526
|
+
parent: N.value,
|
|
1527
|
+
content: Oe.value,
|
|
1523
1528
|
isCustom: me.value,
|
|
1524
1529
|
isFullscreen: se.value,
|
|
1525
1530
|
smooth: e.value.style.chart.tooltip.smooth,
|
|
1526
1531
|
backdropFilter: e.value.style.chart.tooltip.backdropFilter
|
|
1527
1532
|
}, {
|
|
1528
1533
|
"tooltip-before": A(() => [
|
|
1529
|
-
b(l.$slots, "tooltip-before", ne(ue({ ...
|
|
1534
|
+
b(l.$slots, "tooltip-before", ne(ue({ ...Be.value })), void 0, !0)
|
|
1530
1535
|
]),
|
|
1531
1536
|
"tooltip-after": A(() => [
|
|
1532
|
-
b(l.$slots, "tooltip-after", ne(ue({ ...
|
|
1537
|
+
b(l.$slots, "tooltip-after", ne(ue({ ...Be.value })), void 0, !0)
|
|
1533
1538
|
]),
|
|
1534
1539
|
_: 3
|
|
1535
1540
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "isFullscreen", "smooth", "backdropFilter"]),
|
|
1536
|
-
we.value ? (n(), te(
|
|
1541
|
+
we.value ? (n(), te(gl(be.value.component), Ue({ key: 8 }, be.value.props, {
|
|
1537
1542
|
ref_key: "tableUnit",
|
|
1538
1543
|
ref: ge,
|
|
1539
|
-
onClose:
|
|
1540
|
-
}),
|
|
1544
|
+
onClose: Ct
|
|
1545
|
+
}), qe({
|
|
1541
1546
|
content: A(() => [
|
|
1542
|
-
(n(), te(u(
|
|
1543
|
-
key: `table_${
|
|
1547
|
+
(n(), te(u(Vt), {
|
|
1548
|
+
key: `table_${tt.value}`,
|
|
1544
1549
|
colNames: Ce.value.colNames,
|
|
1545
1550
|
head: Ce.value.head,
|
|
1546
1551
|
body: Ce.value.body,
|
|
1547
1552
|
config: Ce.value.config,
|
|
1548
1553
|
title: e.value.table.useDialog ? "" : be.value.title,
|
|
1549
1554
|
withCloseButton: !e.value.table.useDialog,
|
|
1550
|
-
onClose:
|
|
1555
|
+
onClose: Ct
|
|
1551
1556
|
}, {
|
|
1552
1557
|
th: A(({ th: t }) => [
|
|
1553
1558
|
h("div", {
|
|
1554
1559
|
innerHTML: t,
|
|
1555
1560
|
style: { display: "flex", "align-items": "center" }
|
|
1556
|
-
}, null, 8,
|
|
1561
|
+
}, null, 8, uo)
|
|
1557
1562
|
]),
|
|
1558
1563
|
td: A(({ td: t }) => [
|
|
1559
1564
|
Se(I(t.name ? t.name : isNaN(Number(t)) ? t.includes("%") ? t : u(E)(
|
|
1560
1565
|
e.value.style.chart.layout.labels.percentage.formatter,
|
|
1561
1566
|
t,
|
|
1562
|
-
u(
|
|
1567
|
+
u(D)({
|
|
1563
1568
|
v: t,
|
|
1564
1569
|
s: "%",
|
|
1565
1570
|
r: e.value.style.chart.layout.labels.percentage.rounding
|
|
@@ -1567,7 +1572,7 @@ const Ul = ["id"], Wl = ["id"], Hl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
1567
1572
|
) : u(E)(
|
|
1568
1573
|
e.value.style.chart.layout.labels.value.formatter,
|
|
1569
1574
|
t,
|
|
1570
|
-
u(
|
|
1575
|
+
u(D)({
|
|
1571
1576
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
1572
1577
|
v: t,
|
|
1573
1578
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -1593,9 +1598,9 @@ const Ul = ["id"], Wl = ["id"], Hl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
1593
1598
|
h("button", {
|
|
1594
1599
|
tabindex: "0",
|
|
1595
1600
|
class: "vue-ui-user-options-button",
|
|
1596
|
-
onClick: o[4] || (o[4] = (t) =>
|
|
1601
|
+
onClick: o[4] || (o[4] = (t) => Ve(e.value.userOptions.callbacks.csv))
|
|
1597
1602
|
}, [
|
|
1598
|
-
Te(u(
|
|
1603
|
+
Te(u(Xt), {
|
|
1599
1604
|
name: "excel",
|
|
1600
1605
|
stroke: be.value.props.color
|
|
1601
1606
|
}, null, 8, ["stroke"])
|
|
@@ -1604,10 +1609,10 @@ const Ul = ["id"], Wl = ["id"], Hl = ["xmlns", "viewBox"], jl = ["width", "heigh
|
|
|
1604
1609
|
key: "1"
|
|
1605
1610
|
} : void 0
|
|
1606
1611
|
]), 1040)) : v("", !0),
|
|
1607
|
-
u(_e) ? (n(), te(
|
|
1608
|
-
], 46,
|
|
1612
|
+
u(_e) ? (n(), te(Xl, { key: 9 })) : v("", !0)
|
|
1613
|
+
], 46, Wl));
|
|
1609
1614
|
}
|
|
1610
|
-
},
|
|
1615
|
+
}, _o = /* @__PURE__ */ Ul(ro, [["__scopeId", "data-v-b356a20f"]]);
|
|
1611
1616
|
export {
|
|
1612
|
-
|
|
1617
|
+
_o as default
|
|
1613
1618
|
};
|