vue-data-ui 3.0.23 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-B1Op9F3x.js → Arrow-DvG07exK.js} +1 -1
- package/dist/{BaseDraggableDialog-B4OaMIom.js → BaseDraggableDialog-O7900pGp.js} +72 -59
- package/dist/{BaseIcon-CgUOIGjr.js → BaseIcon-DHtro8us.js} +1 -1
- package/dist/{useLoading-D7YHNtLX.js → BaseScanner-BgWxam9d.js} +11 -11
- package/dist/{ColorPicker-C0nf8VH0.js → ColorPicker-CpWzNn4r.js} +2 -2
- package/dist/DataTable-DJjA2_wf.js +140 -0
- package/dist/{Legend-CyYXMSsW.js → Legend-2-dC7DVb.js} +2 -2
- package/dist/{NonSvgPenAndPaper-D63qeScu.js → NonSvgPenAndPaper-DHeE4Yuv.js} +3 -3
- package/dist/{PackageVersion-B6M-3jRt.js → PackageVersion-DU12WH3O.js} +1 -1
- package/dist/{PenAndPaper-zym5uEeN.js → PenAndPaper-B7QEDgx4.js} +3 -3
- package/dist/{Shape-CYVs2kYz.js → Shape-Dj2Hl33H.js} +1 -1
- package/dist/{Slicer-BTIFUO4x.js → Slicer-D99HytqX.js} +2 -2
- package/dist/{SparkTooltip-CNz7AYUL.js → SparkTooltip-B-wL07rI.js} +1 -1
- package/dist/{Title-D_e0SFWS.js → Title-Dq2_Z9kR.js} +1 -1
- package/dist/{Tooltip-DjVoFYj1.js → Tooltip-Y219DXZO.js} +1 -1
- package/dist/{UserOptions-z0NWZ7aQ.js → UserOptions-BuGfCdAY.js} +2 -2
- package/dist/{dom-to-png-DD0au3Qz.js → dom-to-png-BhciAKaM.js} +1 -1
- package/dist/{img-z5p1gGfY.js → img-JOqdlnUs.js} +1 -1
- package/dist/{index-BEuUtONc.js → index-CDQbCd41.js} +37 -2
- package/dist/{pdf-BmUjVBni.js → pdf-Dd-LIJqz.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +35 -0
- package/dist/types/vue-data-ui.d.ts +35 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-CchB8S-o.js → useAutoSizeLabelsInsideViewbox-Bky5KGFZ.js} +1 -1
- package/dist/{useNestedProp-DhLFhguL.js → useNestedProp-BPEHGiYX.js} +1 -1
- package/dist/{usePrinter-DiB0_UNt.js → usePrinter-Bnl1YeUU.js} +2 -2
- package/dist/{vue-data-ui-DJIAas-7.js → vue-data-ui-DcNYz3cZ.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/vue-ui-3d-bar-BNIFAeN-.js +1369 -0
- package/dist/{vue-ui-accordion-B4YfUjZ5.js → vue-ui-accordion-Bf_LHFFX.js} +3 -3
- package/dist/{vue-ui-age-pyramid-CkXXNN79.js → vue-ui-age-pyramid-Bz-l1afR.js} +333 -286
- package/dist/{vue-ui-annotator-DnSsIkvU.js → vue-ui-annotator-BcfRH2BF.js} +2 -2
- package/dist/{vue-ui-bullet-kZkBsWPY.js → vue-ui-bullet-DK1aM9fX.js} +8 -8
- package/dist/{vue-ui-candlestick-CIn0xZm0.js → vue-ui-candlestick-D6mMjvtu.js} +453 -406
- package/dist/{vue-ui-carousel-table-f1FDOAqH.js → vue-ui-carousel-table-Vp5f238W.js} +4 -4
- package/dist/{vue-ui-chestnut-B-jSj7FT.js → vue-ui-chestnut-BKc4v-lf.js} +509 -459
- package/dist/vue-ui-chord-CquhRjf0.js +1100 -0
- package/dist/vue-ui-circle-pack-D6zLgxa3.js +755 -0
- package/dist/{vue-ui-cursor-DdBrui6i.js → vue-ui-cursor-DIXb2S93.js} +2 -2
- package/dist/{vue-ui-dashboard-DSUfW7mI.js → vue-ui-dashboard-DmiriAK7.js} +62 -62
- package/dist/{vue-ui-digits-Cb3Wq5WR.js → vue-ui-digits-CLAIo9gW.js} +2 -2
- package/dist/{vue-ui-donut-BCZqlAO3.js → vue-ui-donut-C8h_tCSO.js} +477 -431
- package/dist/{vue-ui-donut-evolution-HmQBq9VP.js → vue-ui-donut-evolution-C3r0YhKz.js} +482 -435
- package/dist/{vue-ui-dumbbell-B5w2oqNO.js → vue-ui-dumbbell-D-t4M00E.js} +443 -398
- package/dist/vue-ui-flow-D7_D_UNm.js +900 -0
- package/dist/vue-ui-funnel-B0QOfZRz.js +666 -0
- package/dist/vue-ui-galaxy-Ccw5uNes.js +744 -0
- package/dist/{vue-ui-gauge-C_KLPWk2.js → vue-ui-gauge-DvW7nFmK.js} +8 -8
- package/dist/{vue-ui-gizmo-CsPX25Ti.js → vue-ui-gizmo-WGQxvGPy.js} +4 -4
- package/dist/vue-ui-heatmap-BQkLujyp.js +1127 -0
- package/dist/{vue-ui-history-plot-DgpYiaUD.js → vue-ui-history-plot-eU33r_Ot.js} +408 -361
- package/dist/{vue-ui-kpi-DOgibU7W.js → vue-ui-kpi-CKg2i71M.js} +3 -3
- package/dist/{vue-ui-mini-loader-BjsQAxDx.js → vue-ui-mini-loader-BmkGQsm_.js} +2 -2
- package/dist/vue-ui-molecule-Dlu0hjSg.js +702 -0
- package/dist/{vue-ui-mood-radar-DMwVl3wz.js → vue-ui-mood-radar-DQaxfw9R.js} +342 -291
- package/dist/{vue-ui-nested-donuts-H0GzIAF0.js → vue-ui-nested-donuts-Djj9Aw_i.js} +548 -502
- package/dist/{vue-ui-onion-A6nKcus1.js → vue-ui-onion-ZgsErXis.js} +363 -317
- package/dist/vue-ui-parallel-coordinate-plot-B5fB22Jc.js +979 -0
- package/dist/vue-ui-quadrant-CMevCtXH.js +1483 -0
- package/dist/{vue-ui-quick-chart-mwXE3w_o.js → vue-ui-quick-chart-DcparKSX.js} +7 -7
- package/dist/vue-ui-radar-DFbxoKCK.js +858 -0
- package/dist/{vue-ui-rating-CleNHFo5.js → vue-ui-rating-ZUpxCWrk.js} +2 -2
- package/dist/{vue-ui-relation-circle-CMCH7Ia6.js → vue-ui-relation-circle-eNKJY4Sx.js} +8 -8
- package/dist/vue-ui-ridgeline-D4shpQZd.js +1204 -0
- package/dist/vue-ui-rings-TdTHMbsa.js +785 -0
- package/dist/{vue-ui-scatter-kv28dsT3.js → vue-ui-scatter-CVuV9ljU.js} +594 -548
- package/dist/{vue-ui-skeleton-DCNOYh9x.js → vue-ui-skeleton-CFxBU2-p.js} +3 -3
- package/dist/{vue-ui-smiley-DcS0CM-z.js → vue-ui-smiley-Har3B3aQ.js} +2 -2
- package/dist/{vue-ui-spark-trend-LHgReXth.js → vue-ui-spark-trend-FPk-XEwI.js} +4 -4
- package/dist/{vue-ui-sparkbar-Da315uRq.js → vue-ui-sparkbar-V3eJ0w0t.js} +4 -4
- package/dist/{vue-ui-sparkgauge-BeAkjGap.js → vue-ui-sparkgauge-DKTGkWnJ.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-Cy19W3y1.js → vue-ui-sparkhistogram-DJsgFwHs.js} +5 -5
- package/dist/{vue-ui-sparkline-IjlQWgs3.js → vue-ui-sparkline-Dmrm5SL5.js} +4 -4
- package/dist/{vue-ui-sparkstackbar-CoFgOa3r.js → vue-ui-sparkstackbar-B0Pl7VMI.js} +4 -4
- package/dist/{vue-ui-stackbar-fbCs4sHF.js → vue-ui-stackbar-CNsgBPhj.js} +525 -479
- package/dist/{vue-ui-strip-plot-Cm8Zr6RE.js → vue-ui-strip-plot-CYAWwYOM.js} +390 -343
- package/dist/{vue-ui-table-q7jWgS26.js → vue-ui-table-Dn6H98rP.js} +3 -3
- package/dist/{vue-ui-table-heatmap-CsK9gR1G.js → vue-ui-table-heatmap-COI9LRqC.js} +5 -5
- package/dist/{vue-ui-table-sparkline-CXTPucPr.js → vue-ui-table-sparkline-B7Gg5FfJ.js} +4 -4
- package/dist/{vue-ui-thermometer-BFxdNgrd.js → vue-ui-thermometer-Bgynq5El.js} +8 -8
- package/dist/{vue-ui-timer-BsoeDFjK.js → vue-ui-timer-CXng51v5.js} +5 -5
- package/dist/{vue-ui-tiremarks-BW_jSayT.js → vue-ui-tiremarks-Cy1U3hO1.js} +7 -7
- package/dist/vue-ui-treemap-BsvIvRmE.js +1092 -0
- package/dist/{vue-ui-vertical-bar-OrLV4CxH.js → vue-ui-vertical-bar-DHqWeDIf.js} +512 -464
- package/dist/{vue-ui-waffle-BA6rNfVs.js → vue-ui-waffle-D1Mscj3N.js} +416 -370
- package/dist/{vue-ui-wheel-B_BkI-5f.js → vue-ui-wheel-DpV-N5tF.js} +7 -7
- package/dist/vue-ui-word-cloud-MaNQ3Kdk.js +811 -0
- package/dist/{vue-ui-world-B4mKuSSn.js → vue-ui-world-DYz6zw3x.js} +512 -466
- package/dist/{vue-ui-xy-m1SWJk77.js → vue-ui-xy-B1nqNbzw.js} +1551 -1500
- package/dist/vue-ui-xy-canvas-D4wd-Asd.js +1291 -0
- package/package.json +1 -1
- package/dist/DataTable-nO6ydJO2.js +0 -133
- package/dist/vue-ui-3d-bar-B56WqLJ-.js +0 -1323
- package/dist/vue-ui-chord-Ck4yV3Tb.js +0 -1049
- package/dist/vue-ui-circle-pack-BAfRk_Hd.js +0 -709
- package/dist/vue-ui-flow-BXkxtUoF.js +0 -852
- package/dist/vue-ui-funnel-DFvDO--q.js +0 -620
- package/dist/vue-ui-galaxy-BXNLLc3U.js +0 -691
- package/dist/vue-ui-heatmap-BHq6hBaL.js +0 -1078
- package/dist/vue-ui-molecule-BtyMTwEn.js +0 -656
- package/dist/vue-ui-parallel-coordinate-plot-DZ9_0F5c.js +0 -927
- package/dist/vue-ui-quadrant-CUggSeUN.js +0 -1432
- package/dist/vue-ui-radar-BRKZ8e_X.js +0 -807
- package/dist/vue-ui-ridgeline-xW7UrSfR.js +0 -1157
- package/dist/vue-ui-rings-D3NfFMaO.js +0 -739
- package/dist/vue-ui-treemap-DhAYSVB9.js +0 -1046
- package/dist/vue-ui-word-cloud-CrSLGFOK.js +0 -765
- package/dist/vue-ui-xy-canvas-CX2JT6T3.js +0 -1243
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { u as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as
|
|
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 hl, computed as p, shallowRef as H, ref as g, onMounted as $t, onBeforeUnmount as Ct, toRefs as yl, watch as fe, createElementBlock as r, openBlock as n, normalizeStyle as $, normalizeClass as Re, createBlock as te, createCommentVNode as v, renderSlot as b, createElementVNode as h, createVNode as Te, unref as u, createSlots as Ge, withCtx as A, normalizeProps as ne, guardReactiveProps as ue, Fragment as w, renderList as L, mergeProps as qe, toDisplayString as I, withDirectives as At, createTextVNode as Se, vShow as Tt, Teleport as fl, resolveDynamicComponent as pl, nextTick as gl } from "vue";
|
|
2
|
+
import { u as ml, o as St, f as Ue, g as bl, c as wl, t as kl, d as xl, h as _l, e as Pt, p as re, m as Ft, $ as $l, i as N, X as Cl, s as Pe, x as Al, n as Tl, N as P, k as E, q as pe, r as x, a0 as Lt, a1 as Sl, a as Pl, b as Fl, C as We, v as Ll, w as Il, y as Ml, T as It } from "./index-CDQbCd41.js";
|
|
3
|
+
import { t as zl, u as Ol } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as Nl } from "./usePrinter-Bnl1YeUU.js";
|
|
5
|
+
import { u as Dl, B as Yl } from "./BaseScanner-BgWxam9d.js";
|
|
6
|
+
import { u as Mt } from "./useNestedProp-BPEHGiYX.js";
|
|
7
|
+
import { u as Xl } from "./useUserOptionState-BIvW1Kz7.js";
|
|
8
|
+
import { u as Bl } from "./useChartAccessibility-9icAAmYg.js";
|
|
9
|
+
import Vl from "./img-JOqdlnUs.js";
|
|
10
|
+
import { _ as El } from "./Shape-Dj2Hl33H.js";
|
|
11
|
+
import Rl from "./Title-Dq2_Z9kR.js";
|
|
12
|
+
import Gl from "./Legend-2-dC7DVb.js";
|
|
13
|
+
import { _ as ql } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
|
+
const Ul = ["id"], Wl = ["id"], Hl = ["xmlns", "viewBox"], jl = ["width", "height"], Jl = { key: 1 }, Kl = ["id"], Ql = ["stop-color"], Zl = ["offset", "stop-color"], ea = ["offset", "stop-color"], ta = ["stop-color"], la = { key: 2 }, aa = ["id", "cx", "cy"], oa = ["stop-color", "stop-opacity"], sa = ["stop-color"], na = ["id"], ua = ["id"], ra = ["id"], ia = ["flood-color"], va = ["id"], da = ["flood-color"], ca = ["d", "stroke", "filter"], ha = ["d", "stroke", "filter"], ya = ["cx", "cy", "r", "fill", "filter"], fa = { key: 6 }, pa = ["stroke", "d"], ga = ["d", "fill", "stroke", "stroke-width", "filter"], ma = { key: 0 }, ba = ["d", "fill", "stroke", "stroke-width", "filter"], wa = { key: 0 }, ka = ["stroke", "d"], xa = { key: 0 }, _a = ["d", "stroke", "stroke-width", "filter"], $a = { key: 1 }, Ca = ["d", "fill", "stroke", "stroke-width", "filter"], Aa = ["d", "fill", "stroke", "stroke-width", "filter"], Ta = { key: 1 }, Sa = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Pa = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Fa = { key: 0 }, La = ["d", "fill", "stroke", "stroke-width"], Ia = ["cx", "cy", "r", "stroke"], Ma = ["cx", "cy", "r", "fill"], za = ["cx", "cy", "r"], Oa = { key: 0 }, Na = ["d", "stroke", "fill", "onMouseenter", "onMouseleave", "onClick"], Da = { key: 1 }, Ya = ["cx", "cy", "r"], Xa = ["x", "y", "fill", "font-size"], Ba = ["x", "y", "fill", "font-size"], Va = ["x", "y", "fill", "font-size"], Ea = ["x", "y", "fill", "font-size"], Ra = ["filter"], Ga = { key: 0 }, qa = ["x", "y"], Ua = { key: 1 }, Wa = ["cx", "cy", "fill", "stroke", "filter", "onClick", "onMouseenter", "onMouseleave"], Ha = ["cx", "cy", "fill", "stroke", "filter", "onClick", "onMouseenter", "onMouseleave"], ja = ["text-anchor", "x", "y", "fill", "font-size", "onClick", "onMouseenter", "onMouseleave"], Ja = ["text-anchor", "x", "y", "fill", "font-size", "onClick", "innerHTML"], Ka = ["text-anchor", "x", "y", "fill", "font-size", "onClick", "onMouseenter", "onMouseleave"], Qa = ["text-anchor", "x", "y", "fill", "font-size", "onClick", "innerHTML"], Za = { key: 2 }, eo = ["x", "y", "width"], to = ["x", "y", "width"], lo = {
|
|
15
15
|
key: 4,
|
|
16
16
|
class: "vue-data-ui-watermark"
|
|
17
|
-
},
|
|
17
|
+
}, ao = ["id"], oo = ["onClick"], so = {
|
|
18
18
|
key: 7,
|
|
19
19
|
class: "vue-ui-donut-hollow"
|
|
20
|
-
},
|
|
20
|
+
}, no = ["innerHTML"], uo = {
|
|
21
21
|
__name: "vue-ui-donut",
|
|
22
22
|
props: {
|
|
23
23
|
config: {
|
|
@@ -34,33 +34,33 @@ const Vl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Gl = ["width", "heigh
|
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
36
|
emits: ["selectLegend", "selectDatapoint"],
|
|
37
|
-
setup(
|
|
38
|
-
const
|
|
37
|
+
setup(He, { expose: zt, emit: Ot }) {
|
|
38
|
+
const Nt = ee(() => import("./Tooltip-Y219DXZO.js")), Dt = ee(() => import("./BaseIcon-DHtro8us.js")), Yt = ee(() => import("./vue-ui-accordion-Bf_LHFFX.js")), Xt = ee(() => import("./DataTable-DJjA2_wf.js")), Bt = ee(() => import("./PenAndPaper-B7QEDgx4.js")), Vt = ee(() => import("./UserOptions-BuGfCdAY.js")), Et = ee(() => import("./PackageVersion-DU12WH3O.js")), Rt = ee(() => import("./BaseDraggableDialog-O7900pGp.js")), { vue_ui_donut: Gt } = ml(), qt = hl(), k = He, we = p({
|
|
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
|
+
}), D = H(null), ke = g(null), Ut = g(null), Wt = g(null), je = H(null), Je = H(null), j = H(null), ie = H(null), Ke = H(null), Qe = H(null), Ze = g(0), et = g(0), tt = g(0), lt = g(!1), ge = g(null), xe = p({
|
|
46
46
|
get: () => e.value.style.chart.layout.labels.percentage.fontSize,
|
|
47
47
|
set: (l) => l
|
|
48
|
-
}), J =
|
|
48
|
+
}), J = p({
|
|
49
49
|
get: () => e.value.style.chart.layout.labels.name.fontSize,
|
|
50
50
|
set: (l) => l
|
|
51
51
|
});
|
|
52
|
-
let
|
|
52
|
+
let Fe = !1;
|
|
53
53
|
const R = () => {
|
|
54
|
-
!e.value.autoSize ||
|
|
55
|
-
|
|
56
|
-
const l = e.value, o =
|
|
54
|
+
!e.value.autoSize || Fe || (Fe = !0, requestAnimationFrame(() => {
|
|
55
|
+
Fe = !1;
|
|
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 = [
|
|
59
59
|
{
|
|
60
60
|
selector: ".vue-data-ui-datalabel-value",
|
|
61
61
|
baseSize: l.style.chart.layout.labels.percentage.fontSize,
|
|
62
62
|
minSize: l.style.chart.layout.labels.percentage.minFontSize,
|
|
63
|
-
sizeRef:
|
|
63
|
+
sizeRef: xe
|
|
64
64
|
},
|
|
65
65
|
{
|
|
66
66
|
selector: ".vue-data-ui-datalabel-name",
|
|
@@ -69,27 +69,27 @@ const Vl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Gl = ["width", "heigh
|
|
|
69
69
|
sizeRef: J
|
|
70
70
|
}
|
|
71
71
|
];
|
|
72
|
-
z.map((
|
|
73
|
-
o.querySelectorAll(
|
|
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: Ee, sizeRef: vl }) => {
|
|
73
|
+
o.querySelectorAll(V).forEach((dl) => {
|
|
74
|
+
const cl = Sl({
|
|
75
|
+
el: dl,
|
|
76
76
|
bounds: C,
|
|
77
77
|
currentFontSize: Z,
|
|
78
|
-
minFontSize:
|
|
78
|
+
minFontSize: Ee,
|
|
79
79
|
attempts: 200,
|
|
80
80
|
padding: 1
|
|
81
81
|
});
|
|
82
|
-
|
|
82
|
+
vl.value = cl;
|
|
83
83
|
});
|
|
84
84
|
});
|
|
85
85
|
}));
|
|
86
86
|
};
|
|
87
|
-
|
|
88
|
-
|
|
87
|
+
$t(async () => {
|
|
88
|
+
lt.value = !0, at(), requestAnimationFrame(R);
|
|
89
89
|
});
|
|
90
|
-
let
|
|
91
|
-
|
|
92
|
-
|
|
90
|
+
let Le;
|
|
91
|
+
$t(() => {
|
|
92
|
+
D.value && (Le = 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,75 @@ const Vl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Gl = ["width", "heigh
|
|
|
97
97
|
break;
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
|
-
}),
|
|
101
|
-
}),
|
|
102
|
-
|
|
103
|
-
}),
|
|
104
|
-
j.value && (
|
|
100
|
+
}), Le.observe(D.value.parentElement));
|
|
101
|
+
}), Ct(() => {
|
|
102
|
+
Le?.disconnect();
|
|
103
|
+
}), Ct(() => {
|
|
104
|
+
j.value && (ie.value && j.value.unobserve(ie.value), j.value.disconnect());
|
|
105
105
|
});
|
|
106
|
-
const
|
|
107
|
-
function
|
|
108
|
-
if (
|
|
106
|
+
const Ie = p(() => !!e.value.debug);
|
|
107
|
+
function at() {
|
|
108
|
+
if (St(k.dataset) ? (Ue({
|
|
109
109
|
componentName: "VueUiDonut",
|
|
110
110
|
type: "dataset",
|
|
111
|
-
debug:
|
|
112
|
-
}),
|
|
113
|
-
|
|
111
|
+
debug: Ie.value
|
|
112
|
+
}), we.value = !1, $e.value = !0) : (k.dataset.forEach((l, o) => {
|
|
113
|
+
bl({
|
|
114
114
|
datasetObject: l,
|
|
115
115
|
requiredAttributes: ["name", "values"]
|
|
116
116
|
}).forEach((t) => {
|
|
117
|
-
|
|
117
|
+
Ue({
|
|
118
118
|
componentName: "VueUiDonut",
|
|
119
119
|
type: "datasetSerieAttribute",
|
|
120
120
|
property: t,
|
|
121
121
|
index: o,
|
|
122
|
-
debug:
|
|
123
|
-
}),
|
|
122
|
+
debug: Ie.value
|
|
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 === "") && Ue({
|
|
127
127
|
componentName: "VueUiDonut",
|
|
128
128
|
type: "datasetAttributeEmpty",
|
|
129
129
|
property: "name",
|
|
130
130
|
index: o,
|
|
131
|
-
debug:
|
|
131
|
+
debug: Ie.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
|
+
})), St(k.dataset) || ($e.value = e.value.loading), e.value.responsive) {
|
|
134
|
+
const l = zl(() => {
|
|
135
|
+
const { width: o, height: t } = Ol({
|
|
136
|
+
chart: D.value,
|
|
137
|
+
title: e.value.style.chart.title.text ? je.value : null,
|
|
138
|
+
legend: e.value.style.chart.legend.show ? Je.value : null,
|
|
139
|
+
source: Ke.value,
|
|
140
|
+
noTitle: Qe.value,
|
|
141
|
+
padding: e.value.autoSize ? void 0 : rt.value
|
|
142
142
|
});
|
|
143
143
|
requestAnimationFrame(() => {
|
|
144
144
|
s.value.width = o, s.value.height = t, R();
|
|
145
145
|
});
|
|
146
146
|
});
|
|
147
|
-
j.value && (
|
|
147
|
+
j.value && (ie.value && j.value.unobserve(ie.value), j.value.disconnect()), j.value = new ResizeObserver(l), ie.value = D.value.parentNode, j.value.observe(ie.value);
|
|
148
148
|
}
|
|
149
149
|
}
|
|
150
|
-
const y = g(
|
|
151
|
-
function
|
|
152
|
-
const l =
|
|
150
|
+
const y = g(wl()), Ht = g(null), Me = g(!1), ze = g(""), Y = g(null), ot = g(0);
|
|
151
|
+
function Oe() {
|
|
152
|
+
const l = Mt({
|
|
153
153
|
userConfig: k.config,
|
|
154
|
-
defaultConfig:
|
|
154
|
+
defaultConfig: Gt
|
|
155
155
|
});
|
|
156
156
|
let o = {};
|
|
157
157
|
return l.theme ? o = {
|
|
158
|
-
...
|
|
159
|
-
userConfig:
|
|
158
|
+
...Mt({
|
|
159
|
+
userConfig: Fl.vue_ui_donut[l.theme] || k.config,
|
|
160
160
|
defaultConfig: l
|
|
161
161
|
}),
|
|
162
|
-
customPalette:
|
|
163
|
-
} : o = l, k.config &&
|
|
162
|
+
customPalette: Pl[l.theme] || re
|
|
163
|
+
} : o = l, k.config && We(k.config, "events.datapointEnter") ? o.events.datapointEnter = k.config.events.datapointEnter : o.events.datapointEnter = null, k.config && We(k.config, "events.datapointLeave") ? o.events.datapointLeave = k.config.events.datapointLeave : o.events.datapointLeave = null, k.config && We(k.config, "events.datapointClick") ? o.events.datapointClick = k.config.events.datapointClick : o.events.datapointClick = null, o;
|
|
164
164
|
}
|
|
165
|
-
const e = g(
|
|
166
|
-
...
|
|
165
|
+
const e = g(Oe()), { loading: _e, FINAL_DATASET: ve, manualLoading: $e, skeletonDataset: jt } = Dl({
|
|
166
|
+
...yl(k),
|
|
167
167
|
FINAL_CONFIG: e,
|
|
168
|
-
prepareConfig:
|
|
168
|
+
prepareConfig: Oe,
|
|
169
169
|
skeletonDataset: [
|
|
170
170
|
{
|
|
171
171
|
name: "",
|
|
@@ -183,7 +183,7 @@ const Vl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Gl = ["width", "heigh
|
|
|
183
183
|
color: "#CACACA"
|
|
184
184
|
}
|
|
185
185
|
],
|
|
186
|
-
skeletonConfig:
|
|
186
|
+
skeletonConfig: kl({
|
|
187
187
|
defaultConfig: e.value,
|
|
188
188
|
userConfig: {
|
|
189
189
|
useCssAnimation: !1,
|
|
@@ -221,7 +221,7 @@ const Vl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Gl = ["width", "heigh
|
|
|
221
221
|
}
|
|
222
222
|
})
|
|
223
223
|
}), T = g(!0), U = H([]);
|
|
224
|
-
function
|
|
224
|
+
function Jt(l, o = 1e3, t = 50) {
|
|
225
225
|
return new Promise((a) => {
|
|
226
226
|
const i = l.length;
|
|
227
227
|
U.value = Array(i).fill(0);
|
|
@@ -229,27 +229,27 @@ const Vl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Gl = ["width", "heigh
|
|
|
229
229
|
l.forEach((m, C) => {
|
|
230
230
|
setTimeout(() => {
|
|
231
231
|
const z = performance.now();
|
|
232
|
-
function O(
|
|
233
|
-
const Z = Math.min((
|
|
234
|
-
U.value[C] = m *
|
|
232
|
+
function O(V) {
|
|
233
|
+
const Z = Math.min((V - z) / o, 1), Ee = It(Z);
|
|
234
|
+
U.value[C] = m * Ee, 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
235
|
}
|
|
236
236
|
requestAnimationFrame(O);
|
|
237
237
|
}, C * t);
|
|
238
238
|
});
|
|
239
239
|
});
|
|
240
240
|
}
|
|
241
|
-
const
|
|
242
|
-
|
|
243
|
-
() =>
|
|
241
|
+
const st = g(!1);
|
|
242
|
+
fe(
|
|
243
|
+
() => _e.value,
|
|
244
244
|
async (l) => {
|
|
245
|
-
if (l ||
|
|
246
|
-
const o =
|
|
245
|
+
if (l || st.value) return;
|
|
246
|
+
const o = ve.value === jt, t = e.value.startAnimation?.show;
|
|
247
247
|
if (!o && t) {
|
|
248
|
-
|
|
249
|
-
const a =
|
|
248
|
+
st.value = !0;
|
|
249
|
+
const a = ve.value.map(
|
|
250
250
|
(i) => i.values.reduce((c, m) => c + m, 0)
|
|
251
251
|
);
|
|
252
|
-
await
|
|
252
|
+
await Jt(
|
|
253
253
|
a,
|
|
254
254
|
e.value.startAnimation.durationMs,
|
|
255
255
|
e.value.startAnimation.staggerMs
|
|
@@ -259,17 +259,17 @@ const Vl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Gl = ["width", "heigh
|
|
|
259
259
|
},
|
|
260
260
|
{ immediate: !0 }
|
|
261
261
|
);
|
|
262
|
-
const { userOptionsVisible:
|
|
263
|
-
function
|
|
264
|
-
|
|
262
|
+
const { userOptionsVisible: Ne, setUserOptionsVisibility: nt, keepUserOptionState: ut } = Xl({ config: e.value }), { svgRef: de } = Bl({ config: e.value.style.chart.title });
|
|
263
|
+
function Kt() {
|
|
264
|
+
nt(!0);
|
|
265
265
|
}
|
|
266
|
-
function
|
|
267
|
-
|
|
266
|
+
function Qt() {
|
|
267
|
+
nt(!1);
|
|
268
268
|
}
|
|
269
|
-
|
|
270
|
-
|
|
269
|
+
fe(() => k.config, (l) => {
|
|
270
|
+
_e.value || (e.value = Oe()), Ne.value = !e.value.userOptions.showOnChartHover, at(), Ze.value += 1, et.value += 1, tt.value += 1, f.value.dataLabels.show = e.value.style.chart.layout.labels.dataLabels.show, f.value.showTable = e.value.table.show, f.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
271
|
}, { deep: !0 });
|
|
272
|
-
const
|
|
272
|
+
const rt = p(() => {
|
|
273
273
|
const { top: l, right: o, bottom: t, left: a } = e.value.style.chart.padding;
|
|
274
274
|
return {
|
|
275
275
|
css: `padding:${l}px ${o}px ${t}px ${a}px`,
|
|
@@ -278,19 +278,19 @@ const Vl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Gl = ["width", "heigh
|
|
|
278
278
|
bottom: t,
|
|
279
279
|
left: a
|
|
280
280
|
};
|
|
281
|
-
}), { isPrinting:
|
|
281
|
+
}), { isPrinting: it, isImaging: vt, generatePdf: dt, generateImage: ct } = Nl({
|
|
282
282
|
elementId: `donut__${y.value}`,
|
|
283
283
|
fileName: e.value.style.chart.title.text || "vue-ui-donut",
|
|
284
284
|
options: e.value.userOptions.print
|
|
285
|
-
}),
|
|
285
|
+
}), Zt = p(() => e.value.userOptions.show && !e.value.style.chart.title.text), ht = p(() => xl(e.value.customPalette)), f = g({
|
|
286
286
|
dataLabels: {
|
|
287
287
|
show: e.value.style.chart.layout.labels.dataLabels.show
|
|
288
288
|
},
|
|
289
289
|
showTable: e.value.table.show,
|
|
290
290
|
showTooltip: e.value.style.chart.tooltip.show
|
|
291
291
|
});
|
|
292
|
-
|
|
293
|
-
|
|
292
|
+
fe(e, () => {
|
|
293
|
+
f.value = {
|
|
294
294
|
dataLabels: {
|
|
295
295
|
show: e.value.style.chart.layout.labels.dataLabels.show
|
|
296
296
|
},
|
|
@@ -301,15 +301,15 @@ const Vl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Gl = ["width", "heigh
|
|
|
301
301
|
const s = g({
|
|
302
302
|
height: e.value.style.chart.height,
|
|
303
303
|
width: e.value.style.chart.width
|
|
304
|
-
}),
|
|
304
|
+
}), le = p(() => {
|
|
305
305
|
if (e.value.pie)
|
|
306
306
|
return _.value;
|
|
307
307
|
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
308
|
return Math.max(t, 12 * (1 + l));
|
|
309
|
-
}),
|
|
309
|
+
}), yt = Ot, G = p(() => ve.value.map((l, o) => ({
|
|
310
310
|
name: l.name,
|
|
311
|
-
color:
|
|
312
|
-
value:
|
|
311
|
+
color: Pt(l.color) || ht.value[o] || re[o] || re[o % re.length],
|
|
312
|
+
value: _l(l.values.reduce((t, a) => t + a, 0)),
|
|
313
313
|
absoluteValues: l.values,
|
|
314
314
|
comment: l.comment || "",
|
|
315
315
|
patternIndex: o,
|
|
@@ -317,30 +317,30 @@ const Vl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Gl = ["width", "heigh
|
|
|
317
317
|
ghost: !1,
|
|
318
318
|
pattern: `pattern_${y.value}_${o}`
|
|
319
319
|
})));
|
|
320
|
-
|
|
321
|
-
Array.isArray(l) && l.length > 0 && (
|
|
320
|
+
fe(() => k.dataset, (l) => {
|
|
321
|
+
Array.isArray(l) && l.length > 0 && ($e.value = !1);
|
|
322
322
|
}, { immediate: !0 });
|
|
323
323
|
const M = H(G.value);
|
|
324
|
-
|
|
324
|
+
fe(() => G.value, (l) => {
|
|
325
325
|
M.value = l, requestAnimationFrame(R);
|
|
326
326
|
});
|
|
327
|
-
function
|
|
327
|
+
function el() {
|
|
328
328
|
return G.value.map((l) => ({
|
|
329
329
|
name: l.name,
|
|
330
330
|
color: l.color,
|
|
331
331
|
value: l.value
|
|
332
332
|
}));
|
|
333
333
|
}
|
|
334
|
-
const q = g([]),
|
|
335
|
-
function
|
|
334
|
+
const q = g([]), ae = g(!1);
|
|
335
|
+
function ft({ from: l, to: o, duration: t, onUpdate: a, onDone: i, easing: c = It }) {
|
|
336
336
|
const m = performance.now();
|
|
337
337
|
function C(z) {
|
|
338
|
-
const O = Math.min((z - m) / t, 1),
|
|
338
|
+
const O = Math.min((z - m) / t, 1), V = c(O), Z = l + (o - l) * V;
|
|
339
339
|
a(Z, O), O < 1 ? requestAnimationFrame(C) : (a(o, 1), i && i());
|
|
340
340
|
}
|
|
341
341
|
requestAnimationFrame(C);
|
|
342
342
|
}
|
|
343
|
-
function
|
|
343
|
+
function pt(l) {
|
|
344
344
|
const o = G.value.find((i, c) => c === l);
|
|
345
345
|
let a = M.value.find((i, c) => c === l).value;
|
|
346
346
|
if (q.value.includes(l)) {
|
|
@@ -349,17 +349,17 @@ const Vl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Gl = ["width", "heigh
|
|
|
349
349
|
(C, z) => l === z ? { ...C, value: i } : C
|
|
350
350
|
);
|
|
351
351
|
}, m = function() {
|
|
352
|
-
|
|
352
|
+
ae.value = !0, ft({
|
|
353
353
|
from: a,
|
|
354
354
|
to: i,
|
|
355
355
|
duration: e.value.serieToggleAnimation.durationMs,
|
|
356
356
|
onUpdate: (C, z) => {
|
|
357
357
|
M.value = M.value.map(
|
|
358
|
-
(O,
|
|
358
|
+
(O, V) => l === V ? { ...O, value: C } : O
|
|
359
359
|
), requestAnimationFrame(R);
|
|
360
360
|
},
|
|
361
361
|
onDone: () => {
|
|
362
|
-
c(),
|
|
362
|
+
c(), ae.value = !1;
|
|
363
363
|
}
|
|
364
364
|
});
|
|
365
365
|
};
|
|
@@ -372,7 +372,7 @@ const Vl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Gl = ["width", "heigh
|
|
|
372
372
|
(m, C) => l === C ? { ...m, value: 0 } : m
|
|
373
373
|
);
|
|
374
374
|
}, c = function() {
|
|
375
|
-
|
|
375
|
+
ae.value = !0, ft({
|
|
376
376
|
from: a,
|
|
377
377
|
to: 0,
|
|
378
378
|
duration: e.value.serieToggleAnimation.durationMs,
|
|
@@ -382,26 +382,26 @@ const Vl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Gl = ["width", "heigh
|
|
|
382
382
|
), requestAnimationFrame(R);
|
|
383
383
|
},
|
|
384
384
|
onDone: () => {
|
|
385
|
-
i(), requestAnimationFrame(R),
|
|
385
|
+
i(), requestAnimationFrame(R), ae.value = !1;
|
|
386
386
|
}
|
|
387
387
|
});
|
|
388
388
|
};
|
|
389
389
|
e.value.serieToggleAnimation.show && e.value.type === "classic" ? c() : i();
|
|
390
390
|
}
|
|
391
|
-
|
|
391
|
+
yt("selectLegend", W.value.map((i) => ({
|
|
392
392
|
name: i.name,
|
|
393
393
|
color: i.color,
|
|
394
394
|
value: i.value
|
|
395
395
|
})));
|
|
396
396
|
}
|
|
397
|
-
const
|
|
398
|
-
if (T.value && !
|
|
397
|
+
const tl = p(() => ve.value.reduce((l, o) => l + o.values.reduce((t, a) => t + a, 0), 0)), W = p(() => {
|
|
398
|
+
if (T.value && !_e.value) {
|
|
399
399
|
const l = U.value.map((t, a) => ({
|
|
400
400
|
...G.value[a],
|
|
401
401
|
value: t,
|
|
402
402
|
color: G.value[a].color,
|
|
403
403
|
ghost: !1
|
|
404
|
-
})), o =
|
|
404
|
+
})), o = tl.value - U.value.reduce((t, a) => t + a, 0);
|
|
405
405
|
return o > 0 && l.push({
|
|
406
406
|
name: "__ghost__",
|
|
407
407
|
value: o,
|
|
@@ -419,29 +419,29 @@ const Vl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Gl = ["width", "heigh
|
|
|
419
419
|
...l,
|
|
420
420
|
seriesIndex: o
|
|
421
421
|
})).filter((l, o) => !q.value.includes(o));
|
|
422
|
-
}),
|
|
422
|
+
}), gt = p(() => ve.value.map((l, o) => ({
|
|
423
423
|
name: l.name,
|
|
424
|
-
color:
|
|
424
|
+
color: Pt(l.color) || ht.value[o] || re[o] || re[o % re.length],
|
|
425
425
|
value: (l.values || []).reduce((t, a) => t + a, 0),
|
|
426
426
|
shape: "circle",
|
|
427
427
|
patternIndex: o
|
|
428
428
|
})).map((l, o) => ({
|
|
429
429
|
...l,
|
|
430
|
-
proportion: l.value /
|
|
430
|
+
proportion: l.value / ve.value.map((t) => (t.values || []).reduce((a, i) => a + i, 0)).reduce((t, a) => t + a, 0),
|
|
431
431
|
opacity: q.value.includes(o) ? 0.5 : 1,
|
|
432
|
-
segregate: () => !
|
|
432
|
+
segregate: () => !ae.value && pt(o),
|
|
433
433
|
isSegregated: q.value.includes(o)
|
|
434
|
-
}))),
|
|
434
|
+
}))), ll = p(() => ({
|
|
435
435
|
cy: "donut-div-legend",
|
|
436
436
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
437
437
|
color: e.value.style.chart.legend.color,
|
|
438
438
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
439
439
|
paddingBottom: 12,
|
|
440
440
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
441
|
-
})), _ =
|
|
441
|
+
})), _ = p(() => {
|
|
442
442
|
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
443
|
return Math.max(12, t);
|
|
444
|
-
}), S =
|
|
444
|
+
}), S = p(() => Ft({ series: W.value }, s.value.width / 2, s.value.height / 2, _.value, _.value, 1.99999, 2, 1, 360, 105.25, le.value)), al = p(() => Math.abs(W.value.map((l) => l.value).reduce((l, o) => l + o, 0)) > 0), ol = p(() => Ft({
|
|
445
445
|
series: [
|
|
446
446
|
{
|
|
447
447
|
value: 1,
|
|
@@ -453,9 +453,9 @@ const Vl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Gl = ["width", "heigh
|
|
|
453
453
|
absoluteValues: [1]
|
|
454
454
|
}
|
|
455
455
|
]
|
|
456
|
-
}, s.value.width / 2, s.value.height / 2, _.value, _.value, 1.99999, 2, 1, 360, 105.25,
|
|
456
|
+
}, s.value.width / 2, s.value.height / 2, _.value, _.value, 1.99999, 2, 1, 360, 105.25, le.value)), X = p(() => S.value.filter((l) => !l.ghost)), d = p(() => {
|
|
457
457
|
const l = Math.max(...W.value.map((t) => t.value)), o = W.value.map((t) => t.value / l);
|
|
458
|
-
return
|
|
458
|
+
return $l({
|
|
459
459
|
series: o,
|
|
460
460
|
center: {
|
|
461
461
|
x: s.value.width / 2,
|
|
@@ -465,18 +465,18 @@ const Vl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Gl = ["width", "heigh
|
|
|
465
465
|
hasGhost: T.value
|
|
466
466
|
});
|
|
467
467
|
});
|
|
468
|
-
function
|
|
468
|
+
function ce(l) {
|
|
469
469
|
return l.x > s.value.width / 2 + 6 ? "start" : l.x < s.value.width / 2 - 6 ? "end" : "middle";
|
|
470
470
|
}
|
|
471
|
-
function
|
|
471
|
+
function sl(l) {
|
|
472
472
|
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
473
|
}
|
|
474
|
-
function
|
|
474
|
+
function B(l) {
|
|
475
475
|
return l.proportion * 100 > e.value.style.chart.layout.labels.dataLabels.hideUnderValue;
|
|
476
476
|
}
|
|
477
|
-
function
|
|
478
|
-
const t = l.value /
|
|
479
|
-
return isNaN(t) ? 0 :
|
|
477
|
+
function De(l, o) {
|
|
478
|
+
const t = l.value / nl(o);
|
|
479
|
+
return isNaN(t) ? 0 : E(
|
|
480
480
|
e.value.style.chart.layout.labels.percentage.formatter,
|
|
481
481
|
t * 100,
|
|
482
482
|
N({
|
|
@@ -487,18 +487,18 @@ const Vl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Gl = ["width", "heigh
|
|
|
487
487
|
{ datapoint: l }
|
|
488
488
|
);
|
|
489
489
|
}
|
|
490
|
-
function
|
|
490
|
+
function nl(l) {
|
|
491
491
|
return [...l].map((o) => o.value).reduce((o, t) => o + t, 0);
|
|
492
492
|
}
|
|
493
|
-
const F =
|
|
494
|
-
function
|
|
495
|
-
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: l, seriesIndex: o }),
|
|
493
|
+
const F = p(() => W.value.map((l) => l.value).reduce((l, o) => l + o, 0)), Ye = p(() => F.value / W.value.length), mt = p(() => (l) => ae.value ? l.proportion * 100 : l.value / F.value * 100), Xe = g(null), me = g(!1);
|
|
494
|
+
function he({ datapoint: l, seriesIndex: o }) {
|
|
495
|
+
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: l, seriesIndex: o }), Me.value = !1, Y.value = null;
|
|
496
496
|
}
|
|
497
|
-
function
|
|
498
|
-
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: l, seriesIndex: t }),
|
|
497
|
+
function ye({ datapoint: l, relativeIndex: o, seriesIndex: t, show: a = !1 }) {
|
|
498
|
+
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: l, seriesIndex: t }), Xe.value = { datapoint: l, seriesIndex: t, config: e.value, series: G.value }, Me.value = a, Y.value = o;
|
|
499
499
|
let i = "";
|
|
500
500
|
const c = e.value.style.chart.tooltip.customFormat;
|
|
501
|
-
if (
|
|
501
|
+
if (me.value = !1, Ml(c))
|
|
502
502
|
try {
|
|
503
503
|
const m = c({
|
|
504
504
|
seriesIndex: t,
|
|
@@ -506,12 +506,12 @@ const Vl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Gl = ["width", "heigh
|
|
|
506
506
|
series: G.value,
|
|
507
507
|
config: e.value
|
|
508
508
|
});
|
|
509
|
-
typeof m == "string" && (
|
|
509
|
+
typeof m == "string" && (ze.value = m, me.value = !0);
|
|
510
510
|
} catch {
|
|
511
|
-
console.warn("Custom format cannot be applied."),
|
|
511
|
+
console.warn("Custom format cannot be applied."), me.value = !1;
|
|
512
512
|
}
|
|
513
|
-
if (!
|
|
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}"/>${
|
|
513
|
+
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}"/>${qt.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
515
|
e.value.style.chart.layout.labels.value.formatter,
|
|
516
516
|
l.value,
|
|
517
517
|
N({
|
|
@@ -526,7 +526,7 @@ const Vl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Gl = ["width", "heigh
|
|
|
526
526
|
seriesIndex: t
|
|
527
527
|
}
|
|
528
528
|
)}</b>`), e.value.style.chart.tooltip.showPercentage) {
|
|
529
|
-
const m =
|
|
529
|
+
const m = E(
|
|
530
530
|
e.value.style.chart.layout.labels.percentage.formatter,
|
|
531
531
|
l.proportion * 100,
|
|
532
532
|
N({
|
|
@@ -542,28 +542,28 @@ const Vl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Gl = ["width", "heigh
|
|
|
542
542
|
);
|
|
543
543
|
e.value.style.chart.tooltip.showValue ? i += `<span>(${m})</span></div>` : i += `<b>${m}</b></div>`;
|
|
544
544
|
}
|
|
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>`),
|
|
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>`), ze.value = `<div>${i}</div>`;
|
|
546
546
|
}
|
|
547
547
|
}
|
|
548
|
-
function
|
|
548
|
+
function oe(l) {
|
|
549
549
|
return e.value.useBlurOnHover && ![null, void 0].includes(Y.value) && Y.value !== l ? `url(#blur_${y.value})` : "";
|
|
550
550
|
}
|
|
551
|
-
const K =
|
|
551
|
+
const K = p(() => {
|
|
552
552
|
const l = W.value.map((t) => ({
|
|
553
553
|
name: t.name,
|
|
554
554
|
color: t.color
|
|
555
555
|
})), o = W.value.map((t) => t.value);
|
|
556
556
|
return { head: l, body: o };
|
|
557
557
|
});
|
|
558
|
-
function
|
|
559
|
-
|
|
558
|
+
function Be(l = null) {
|
|
559
|
+
gl(() => {
|
|
560
560
|
const o = K.value.head.map((i, c) => [[
|
|
561
561
|
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) :
|
|
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 = Ll(t);
|
|
563
|
+
l ? l(a) : Il({ csvContent: a, title: e.value.style.chart.title.text || "vue-ui-donut" });
|
|
564
564
|
});
|
|
565
565
|
}
|
|
566
|
-
const
|
|
566
|
+
const Ce = p(() => {
|
|
567
567
|
const l = [
|
|
568
568
|
' <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
569
|
N({ 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 }),
|
|
@@ -598,33 +598,33 @@ const Vl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Gl = ["width", "heigh
|
|
|
598
598
|
body: o,
|
|
599
599
|
config: t
|
|
600
600
|
};
|
|
601
|
-
}),
|
|
602
|
-
function
|
|
603
|
-
|
|
601
|
+
}), se = g(!1);
|
|
602
|
+
function bt(l) {
|
|
603
|
+
se.value = l, ot.value += 1;
|
|
604
604
|
}
|
|
605
|
-
const
|
|
606
|
-
function
|
|
605
|
+
const wt = p(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent));
|
|
606
|
+
function ul(l) {
|
|
607
607
|
return l.toFixed(e.value.style.chart.legend.roundingPercentage).split("").map((o) => "-").join("");
|
|
608
608
|
}
|
|
609
609
|
function Q(l, o) {
|
|
610
|
-
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex: l.seriesIndex }),
|
|
610
|
+
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex: l.seriesIndex }), yt("selectDatapoint", { datapoint: l, index: o });
|
|
611
611
|
}
|
|
612
|
-
function
|
|
613
|
-
|
|
612
|
+
function kt() {
|
|
613
|
+
f.value.showTable = !f.value.showTable;
|
|
614
614
|
}
|
|
615
|
-
function
|
|
616
|
-
|
|
615
|
+
function xt() {
|
|
616
|
+
f.value.dataLabels.show = !f.value.dataLabels.show;
|
|
617
617
|
}
|
|
618
|
-
function
|
|
619
|
-
|
|
618
|
+
function _t() {
|
|
619
|
+
f.value.showTooltip = !f.value.showTooltip;
|
|
620
620
|
}
|
|
621
|
-
const
|
|
622
|
-
function
|
|
623
|
-
|
|
621
|
+
const Ae = g(!1);
|
|
622
|
+
function Ve() {
|
|
623
|
+
Ae.value = !Ae.value;
|
|
624
624
|
}
|
|
625
|
-
async function
|
|
626
|
-
if (!
|
|
627
|
-
const { width: o, height: t } =
|
|
625
|
+
async function rl({ scale: l = 2 } = {}) {
|
|
626
|
+
if (!D.value) return;
|
|
627
|
+
const { width: o, height: t } = D.value.getBoundingClientRect(), a = o / t, { imageUri: i, base64: c } = await Vl({ domElement: D.value, base64: !0, img: !0, scale: l });
|
|
628
628
|
return {
|
|
629
629
|
imageUri: i,
|
|
630
630
|
base64: c,
|
|
@@ -634,56 +634,88 @@ const Vl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Gl = ["width", "heigh
|
|
|
634
634
|
aspectRatio: a
|
|
635
635
|
};
|
|
636
636
|
}
|
|
637
|
-
function
|
|
638
|
-
if (!
|
|
639
|
-
const { x: l, y: o, width: t, height: a } =
|
|
640
|
-
|
|
637
|
+
function il() {
|
|
638
|
+
if (!ke.value) return;
|
|
639
|
+
const { x: l, y: o, width: t, height: a } = ke.value.getBBox();
|
|
640
|
+
de.value && de.value.setAttribute("viewBox", `${l} ${o} ${t + Math.min(0, l)} ${a + Math.min(0, o)}`);
|
|
641
641
|
}
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
642
|
+
const be = p(() => {
|
|
643
|
+
const l = e.value.table.useDialog && !e.value.table.show, o = f.value.showTable;
|
|
644
|
+
return {
|
|
645
|
+
component: l ? Rt : Yt,
|
|
646
|
+
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
647
|
+
props: l ? {
|
|
648
|
+
backgroundColor: e.value.table.th.backgroundColor,
|
|
649
|
+
color: e.value.table.th.color,
|
|
650
|
+
headerColor: e.value.table.th.color,
|
|
651
|
+
headerBg: e.value.table.th.backgroundColor,
|
|
652
|
+
isFullscreen: se.value,
|
|
653
|
+
fullscreenParent: D.value,
|
|
654
|
+
forcedWidth: Math.min(500, window.innerWidth * 0.8)
|
|
655
|
+
} : {
|
|
656
|
+
hideDetails: !0,
|
|
657
|
+
config: {
|
|
658
|
+
open: o,
|
|
659
|
+
maxHeight: 1e4,
|
|
660
|
+
body: {
|
|
661
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
662
|
+
color: e.value.style.chart.color
|
|
663
|
+
},
|
|
664
|
+
head: {
|
|
665
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
666
|
+
color: e.value.style.chart.color
|
|
667
|
+
}
|
|
668
|
+
}
|
|
669
|
+
}
|
|
670
|
+
};
|
|
671
|
+
});
|
|
672
|
+
return fe(() => f.value.showTable, (l) => {
|
|
673
|
+
e.value.table.show || (l && e.value.table.useDialog && ge.value ? ge.value.open() : "close" in ge.value && ge.value.close());
|
|
674
|
+
}), zt({
|
|
675
|
+
autoSize: il,
|
|
676
|
+
getData: el,
|
|
677
|
+
getImage: rl,
|
|
678
|
+
generatePdf: dt,
|
|
679
|
+
generateCsv: Be,
|
|
680
|
+
generateImage: ct,
|
|
681
|
+
toggleTable: kt,
|
|
682
|
+
toggleLabels: xt,
|
|
683
|
+
toggleTooltip: _t,
|
|
684
|
+
toggleAnnotator: Ve,
|
|
685
|
+
toggleFullscreen: bt
|
|
654
686
|
}), (l, o) => (n(), r("div", {
|
|
655
687
|
ref_key: "donutChart",
|
|
656
|
-
ref:
|
|
657
|
-
class:
|
|
688
|
+
ref: D,
|
|
689
|
+
class: Re(`vue-ui-donut ${se.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
658
690
|
style: $(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height:100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
659
691
|
id: `donut__${y.value}`,
|
|
660
|
-
onMouseenter:
|
|
661
|
-
onMouseleave:
|
|
692
|
+
onMouseenter: Kt,
|
|
693
|
+
onMouseleave: Qt
|
|
662
694
|
}, [
|
|
663
|
-
e.value.userOptions.buttons.annotator && u(
|
|
695
|
+
e.value.userOptions.buttons.annotator && u(de) ? (n(), te(u(Bt), {
|
|
664
696
|
key: 0,
|
|
665
697
|
color: e.value.style.chart.color,
|
|
666
698
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
667
|
-
active:
|
|
668
|
-
svgRef: u(
|
|
669
|
-
onClose:
|
|
699
|
+
active: Ae.value,
|
|
700
|
+
svgRef: u(de),
|
|
701
|
+
onClose: Ve
|
|
670
702
|
}, null, 8, ["color", "backgroundColor", "active", "svgRef"])) : v("", !0),
|
|
671
703
|
b(l.$slots, "userConfig", {}, void 0, !0),
|
|
672
|
-
|
|
704
|
+
Zt.value ? (n(), r("div", {
|
|
673
705
|
key: 1,
|
|
674
706
|
ref_key: "noTitle",
|
|
675
|
-
ref:
|
|
707
|
+
ref: Qe,
|
|
676
708
|
class: "vue-data-ui-no-title-space",
|
|
677
709
|
style: "height:36px; width: 100%;background:transparent"
|
|
678
710
|
}, null, 512)) : v("", !0),
|
|
679
711
|
e.value.style.chart.title.text ? (n(), r("div", {
|
|
680
712
|
key: 2,
|
|
681
713
|
ref_key: "chartTitle",
|
|
682
|
-
ref:
|
|
714
|
+
ref: je,
|
|
683
715
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
684
716
|
}, [
|
|
685
|
-
(n(),
|
|
686
|
-
key: `title_${
|
|
717
|
+
(n(), te(Rl, {
|
|
718
|
+
key: `title_${Ze.value}`,
|
|
687
719
|
config: {
|
|
688
720
|
title: {
|
|
689
721
|
cy: "donut-div-title",
|
|
@@ -698,15 +730,15 @@ const Vl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Gl = ["width", "heigh
|
|
|
698
730
|
], 512)) : v("", !0),
|
|
699
731
|
h("div", {
|
|
700
732
|
id: `legend-top-${y.value}`
|
|
701
|
-
}, null, 8,
|
|
702
|
-
e.value.userOptions.show &&
|
|
733
|
+
}, null, 8, Wl),
|
|
734
|
+
e.value.userOptions.show && we.value && (u(ut) || u(Ne)) ? (n(), te(u(Vt), {
|
|
703
735
|
ref_key: "details",
|
|
704
|
-
ref:
|
|
705
|
-
key: `user_option_${
|
|
736
|
+
ref: Ht,
|
|
737
|
+
key: `user_option_${ot.value}`,
|
|
706
738
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
707
739
|
color: e.value.style.chart.color,
|
|
708
|
-
isPrinting: u(
|
|
709
|
-
isImaging: u(
|
|
740
|
+
isPrinting: u(it),
|
|
741
|
+
isImaging: u(vt),
|
|
710
742
|
uid: y.value,
|
|
711
743
|
hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
|
|
712
744
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -715,31 +747,31 @@ const Vl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Gl = ["width", "heigh
|
|
|
715
747
|
hasTable: e.value.userOptions.buttons.table,
|
|
716
748
|
hasLabel: e.value.userOptions.buttons.labels,
|
|
717
749
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
718
|
-
isFullscreen:
|
|
719
|
-
chartElement:
|
|
750
|
+
isFullscreen: se.value,
|
|
751
|
+
chartElement: D.value,
|
|
720
752
|
position: e.value.userOptions.position,
|
|
721
753
|
callbacks: e.value.userOptions.callbacks,
|
|
722
|
-
isTooltip:
|
|
754
|
+
isTooltip: f.value.showTooltip,
|
|
723
755
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
724
756
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
725
|
-
isAnnotation:
|
|
757
|
+
isAnnotation: Ae.value,
|
|
726
758
|
printScale: e.value.userOptions.print.scale,
|
|
727
|
-
onToggleFullscreen:
|
|
728
|
-
onGeneratePdf: u(
|
|
729
|
-
onGenerateCsv:
|
|
730
|
-
onGenerateImage: u(
|
|
731
|
-
onToggleTable:
|
|
732
|
-
onToggleLabels:
|
|
733
|
-
onToggleTooltip:
|
|
734
|
-
onToggleAnnotator:
|
|
759
|
+
onToggleFullscreen: bt,
|
|
760
|
+
onGeneratePdf: u(dt),
|
|
761
|
+
onGenerateCsv: Be,
|
|
762
|
+
onGenerateImage: u(ct),
|
|
763
|
+
onToggleTable: kt,
|
|
764
|
+
onToggleLabels: xt,
|
|
765
|
+
onToggleTooltip: _t,
|
|
766
|
+
onToggleAnnotator: Ve,
|
|
735
767
|
style: $({
|
|
736
|
-
visibility: u(
|
|
768
|
+
visibility: u(ut) ? u(Ne) ? "visible" : "hidden" : "visible"
|
|
737
769
|
})
|
|
738
|
-
},
|
|
770
|
+
}, Ge({ _: 2 }, [
|
|
739
771
|
l.$slots.menuIcon ? {
|
|
740
772
|
name: "menuIcon",
|
|
741
773
|
fn: A(({ isOpen: t, color: a }) => [
|
|
742
|
-
b(l.$slots, "menuIcon",
|
|
774
|
+
b(l.$slots, "menuIcon", ne(ue({ isOpen: t, color: a })), void 0, !0)
|
|
743
775
|
]),
|
|
744
776
|
key: "0"
|
|
745
777
|
} : void 0,
|
|
@@ -788,32 +820,32 @@ const Vl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Gl = ["width", "heigh
|
|
|
788
820
|
l.$slots.optionFullscreen ? {
|
|
789
821
|
name: "optionFullscreen",
|
|
790
822
|
fn: A(({ toggleFullscreen: t, isFullscreen: a }) => [
|
|
791
|
-
b(l.$slots, "optionFullscreen",
|
|
823
|
+
b(l.$slots, "optionFullscreen", ne(ue({ toggleFullscreen: t, isFullscreen: a })), void 0, !0)
|
|
792
824
|
]),
|
|
793
825
|
key: "7"
|
|
794
826
|
} : void 0,
|
|
795
827
|
l.$slots.optionAnnotator ? {
|
|
796
828
|
name: "optionAnnotator",
|
|
797
829
|
fn: A(({ toggleAnnotator: t, isAnnotator: a }) => [
|
|
798
|
-
b(l.$slots, "optionAnnotator",
|
|
830
|
+
b(l.$slots, "optionAnnotator", ne(ue({ toggleAnnotator: t, isAnnotator: a })), void 0, !0)
|
|
799
831
|
]),
|
|
800
832
|
key: "8"
|
|
801
833
|
} : void 0
|
|
802
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),
|
|
803
835
|
(n(), r("svg", {
|
|
804
836
|
ref_key: "svgRef",
|
|
805
|
-
ref:
|
|
806
|
-
xmlns: u(
|
|
807
|
-
class:
|
|
837
|
+
ref: de,
|
|
838
|
+
xmlns: u(Cl),
|
|
839
|
+
class: Re({ "vue-data-ui-fullscreen--on": se.value, "vue-data-ui-fulscreen--off": !se.value, "vue-data-ui-svg": !0 }),
|
|
808
840
|
viewBox: `0 0 ${s.value.width <= 0 ? 10 : s.value.width} ${s.value.height <= 0 ? 10 : s.value.height}`,
|
|
809
|
-
style: $(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};${
|
|
841
|
+
style: $(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};${rt.value.css}`)
|
|
810
842
|
}, [
|
|
811
843
|
h("g", {
|
|
812
844
|
ref_key: "G",
|
|
813
|
-
ref:
|
|
845
|
+
ref: ke,
|
|
814
846
|
class: "vue-data-ui-g"
|
|
815
847
|
}, [
|
|
816
|
-
|
|
848
|
+
Te(u(Et)),
|
|
817
849
|
l.$slots["chart-background"] ? (n(), r("foreignObject", {
|
|
818
850
|
key: 0,
|
|
819
851
|
x: 0,
|
|
@@ -825,34 +857,34 @@ const Vl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Gl = ["width", "heigh
|
|
|
825
857
|
}
|
|
826
858
|
}, [
|
|
827
859
|
b(l.$slots, "chart-background", {}, void 0, !0)
|
|
828
|
-
], 8,
|
|
829
|
-
e.value.type === "classic" && !isNaN(
|
|
860
|
+
], 8, jl)) : v("", !0),
|
|
861
|
+
e.value.type === "classic" && !isNaN(le.value / _.value) ? (n(), r("defs", Jl, [
|
|
830
862
|
e.value.style.chart.useGradient ? (n(), r("radialGradient", {
|
|
831
863
|
key: 0,
|
|
832
864
|
id: `gradient_${y.value}`
|
|
833
865
|
}, [
|
|
834
866
|
h("stop", {
|
|
835
867
|
offset: "0%",
|
|
836
|
-
"stop-color": u(
|
|
868
|
+
"stop-color": u(Pe)(e.value.style.chart.backgroundColor, 0),
|
|
837
869
|
"stop-opacity": "0"
|
|
838
|
-
}, null, 8,
|
|
870
|
+
}, null, 8, Ql),
|
|
839
871
|
h("stop", {
|
|
840
|
-
offset: `${(1 -
|
|
841
|
-
"stop-color": u(
|
|
872
|
+
offset: `${(1 - le.value / _.value) * 100}%`,
|
|
873
|
+
"stop-color": u(Pe)("#FFFFFF", 0),
|
|
842
874
|
"stop-opacity": "0"
|
|
843
|
-
}, null, 8,
|
|
875
|
+
}, null, 8, Zl),
|
|
844
876
|
h("stop", {
|
|
845
|
-
offset: `${(1 -
|
|
846
|
-
"stop-color": u(
|
|
847
|
-
}, null, 8,
|
|
877
|
+
offset: `${(1 - le.value / _.value / 2) * 100}%`,
|
|
878
|
+
"stop-color": u(Pe)("#FFFFFF", e.value.style.chart.gradientIntensity)
|
|
879
|
+
}, null, 8, ea),
|
|
848
880
|
h("stop", {
|
|
849
881
|
offset: "100%",
|
|
850
|
-
"stop-color": u(
|
|
882
|
+
"stop-color": u(Pe)(e.value.style.chart.backgroundColor, 0),
|
|
851
883
|
"stop-opacity": "0"
|
|
852
|
-
}, null, 8,
|
|
853
|
-
], 8,
|
|
884
|
+
}, null, 8, ta)
|
|
885
|
+
], 8, Kl)) : v("", !0)
|
|
854
886
|
])) : v("", !0),
|
|
855
|
-
e.value.type === "polar" ? (n(), r("defs",
|
|
887
|
+
e.value.type === "polar" ? (n(), r("defs", la, [
|
|
856
888
|
(n(!0), r(w, null, L(d.value, (t, a) => (n(), r("radialGradient", {
|
|
857
889
|
id: `polar_gradient_${a}_${y.value}`,
|
|
858
890
|
cx: (isNaN(t.middlePoint.x / s.value.width * 100) ? 0 : t.middlePoint.x / s.value.width * 100) + "%",
|
|
@@ -861,14 +893,14 @@ const Vl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Gl = ["width", "heigh
|
|
|
861
893
|
}, [
|
|
862
894
|
h("stop", {
|
|
863
895
|
offset: "0%",
|
|
864
|
-
"stop-color": u(
|
|
896
|
+
"stop-color": u(Al)(S.value[a].color, 0.05),
|
|
865
897
|
"stop-opacity": e.value.style.chart.gradientIntensity / 100
|
|
866
|
-
}, null, 8,
|
|
898
|
+
}, null, 8, oa),
|
|
867
899
|
h("stop", {
|
|
868
900
|
offset: "100%",
|
|
869
901
|
"stop-color": S.value[a].color
|
|
870
|
-
}, null, 8,
|
|
871
|
-
], 8,
|
|
902
|
+
}, null, 8, sa)
|
|
903
|
+
], 8, aa))), 256))
|
|
872
904
|
])) : v("", !0),
|
|
873
905
|
h("defs", null, [
|
|
874
906
|
h("filter", {
|
|
@@ -882,12 +914,12 @@ const Vl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Gl = ["width", "heigh
|
|
|
882
914
|
in: "SourceGraphic",
|
|
883
915
|
stdDeviation: 2,
|
|
884
916
|
id: `blur_std_${y.value}`
|
|
885
|
-
}, null, 8,
|
|
886
|
-
o[
|
|
917
|
+
}, null, 8, ua),
|
|
918
|
+
o[7] || (o[7] = h("feColorMatrix", {
|
|
887
919
|
type: "saturate",
|
|
888
920
|
values: "0"
|
|
889
921
|
}, null, -1))
|
|
890
|
-
], 8,
|
|
922
|
+
], 8, na),
|
|
891
923
|
h("filter", {
|
|
892
924
|
id: `shadow_${y.value}`,
|
|
893
925
|
"color-interpolation-filters": "sRGB"
|
|
@@ -898,8 +930,8 @@ const Vl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Gl = ["width", "heigh
|
|
|
898
930
|
stdDeviation: "10",
|
|
899
931
|
"flood-opacity": "0.5",
|
|
900
932
|
"flood-color": e.value.style.chart.layout.donut.shadowColor
|
|
901
|
-
}, null, 8,
|
|
902
|
-
], 8,
|
|
933
|
+
}, null, 8, ia)
|
|
934
|
+
], 8, ra),
|
|
903
935
|
h("filter", {
|
|
904
936
|
id: `drop_shadow_${y.value}`,
|
|
905
937
|
"color-interpolation-filters": "sRGB",
|
|
@@ -914,23 +946,23 @@ const Vl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Gl = ["width", "heigh
|
|
|
914
946
|
stdDeviation: "3",
|
|
915
947
|
"flood-opacity": "1",
|
|
916
948
|
"flood-color": e.value.style.chart.layout.donut.shadowColor
|
|
917
|
-
}, null, 8,
|
|
918
|
-
], 8,
|
|
949
|
+
}, null, 8, da)
|
|
950
|
+
], 8, va)
|
|
919
951
|
]),
|
|
920
952
|
e.value.type === "classic" ? (n(!0), r(w, { key: 3 }, L(S.value.filter((t) => !t.ghost), (t, a) => (n(), r("g", null, [
|
|
921
|
-
|
|
953
|
+
B(t) && f.value.dataLabels.show ? (n(), r("path", {
|
|
922
954
|
key: 0,
|
|
923
|
-
d: u(
|
|
955
|
+
d: u(Tl)(t, { x: s.value.width / 2, y: s.value.height / 2 }, 16, 16, !1, !1, le.value, 12, e.value.style.chart.layout.curvedMarkers),
|
|
924
956
|
stroke: t.color,
|
|
925
957
|
"stroke-width": "1",
|
|
926
958
|
"stroke-linecap": "round",
|
|
927
959
|
"stroke-linejoin": "round",
|
|
928
960
|
fill: "none",
|
|
929
|
-
filter:
|
|
930
|
-
}, null, 8,
|
|
961
|
+
filter: oe(a)
|
|
962
|
+
}, null, 8, ca)) : v("", !0)
|
|
931
963
|
]))), 256)) : v("", !0),
|
|
932
964
|
e.value.type === "polar" ? (n(!0), r(w, { key: 4 }, L(S.value.filter((t) => !t.ghost), (t, a) => (n(), r("g", null, [
|
|
933
|
-
|
|
965
|
+
B(t) && f.value.dataLabels.show ? (n(), r("path", {
|
|
934
966
|
key: 0,
|
|
935
967
|
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}`,
|
|
936
968
|
stroke: t.color,
|
|
@@ -938,11 +970,11 @@ const Vl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Gl = ["width", "heigh
|
|
|
938
970
|
"stroke-linecap": "round",
|
|
939
971
|
"stroke-linejoin": "round",
|
|
940
972
|
fill: "none",
|
|
941
|
-
filter:
|
|
973
|
+
filter: oe(a),
|
|
942
974
|
style: $({
|
|
943
975
|
transition: T.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
944
976
|
})
|
|
945
|
-
}, null, 12,
|
|
977
|
+
}, null, 12, ha)) : v("", !0)
|
|
946
978
|
]))), 256)) : v("", !0),
|
|
947
979
|
e.value.type === "classic" && e.value.style.chart.layout.donut.useShadow ? (n(), r("circle", {
|
|
948
980
|
key: 5,
|
|
@@ -951,12 +983,12 @@ const Vl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Gl = ["width", "heigh
|
|
|
951
983
|
r: _.value <= 0 ? 10 : _.value,
|
|
952
984
|
fill: e.value.style.chart.backgroundColor,
|
|
953
985
|
filter: `url(#shadow_${y.value})`
|
|
954
|
-
}, null, 8,
|
|
955
|
-
l.$slots.pattern ? (n(), r("g",
|
|
956
|
-
(n(!0), r(w, null, L(
|
|
986
|
+
}, null, 8, ya)) : v("", !0),
|
|
987
|
+
l.$slots.pattern ? (n(), r("g", fa, [
|
|
988
|
+
(n(!0), r(w, null, L(He.dataset, (t, a) => (n(), r("defs", {
|
|
957
989
|
key: `pattern-${t.patternIndex}`
|
|
958
990
|
}, [
|
|
959
|
-
b(l.$slots, "pattern",
|
|
991
|
+
b(l.$slots, "pattern", qe({ ref_for: !0 }, { seriesIndex: a, patternId: `pattern_${y.value}_${a}` }), void 0, !0)
|
|
960
992
|
]))), 128))
|
|
961
993
|
])) : v("", !0),
|
|
962
994
|
F.value && e.value.type === "classic" ? (n(), r(w, { key: 7 }, [
|
|
@@ -964,28 +996,28 @@ const Vl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Gl = ["width", "heigh
|
|
|
964
996
|
stroke: e.value.style.chart.backgroundColor,
|
|
965
997
|
d: t.arcSlice,
|
|
966
998
|
fill: "#FFFFFF"
|
|
967
|
-
}, null, 8,
|
|
999
|
+
}, null, 8, pa))), 256)),
|
|
968
1000
|
(n(!0), r(w, null, L(X.value, (t, a) => (n(), r("path", {
|
|
969
1001
|
class: "vue-ui-donut-arc-path",
|
|
970
1002
|
d: t.arcSlice,
|
|
971
1003
|
fill: t.color,
|
|
972
1004
|
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
973
1005
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
974
|
-
filter:
|
|
975
|
-
}, null, 8,
|
|
976
|
-
l.$slots.pattern ? (n(), r("g",
|
|
1006
|
+
filter: oe(a)
|
|
1007
|
+
}, null, 8, ga))), 256)),
|
|
1008
|
+
l.$slots.pattern ? (n(), r("g", ma, [
|
|
977
1009
|
(n(!0), r(w, null, L(X.value, (t, a) => (n(), r("path", {
|
|
978
1010
|
class: "vue-ui-donut-arc-path",
|
|
979
1011
|
d: t.arcSlice,
|
|
980
1012
|
fill: `url(#${t.pattern})`,
|
|
981
1013
|
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
982
1014
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
983
|
-
filter:
|
|
984
|
-
}, null, 8,
|
|
1015
|
+
filter: oe(a)
|
|
1016
|
+
}, null, 8, ba))), 256))
|
|
985
1017
|
])) : v("", !0)
|
|
986
1018
|
], 64)) : v("", !0),
|
|
987
1019
|
F.value && e.value.type === "polar" ? (n(), r(w, { key: 8 }, [
|
|
988
|
-
S.value.length > 1 ? (n(), r("g",
|
|
1020
|
+
S.value.length > 1 ? (n(), r("g", wa, [
|
|
989
1021
|
(n(!0), r(w, null, L(X.value, (t, a) => (n(), r("path", {
|
|
990
1022
|
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
991
1023
|
d: d.value[a].path,
|
|
@@ -993,8 +1025,8 @@ const Vl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Gl = ["width", "heigh
|
|
|
993
1025
|
style: $({
|
|
994
1026
|
transition: T.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
995
1027
|
})
|
|
996
|
-
}, null, 12,
|
|
997
|
-
e.value.style.chart.layout.donut.useShadow ? (n(), r("g",
|
|
1028
|
+
}, null, 12, ka))), 256)),
|
|
1029
|
+
e.value.style.chart.layout.donut.useShadow ? (n(), r("g", xa, [
|
|
998
1030
|
(n(!0), r(w, null, L(X.value, (t, a) => (n(), r("path", {
|
|
999
1031
|
class: "vue-ui-donut-arc-path",
|
|
1000
1032
|
d: d.value[a].path,
|
|
@@ -1005,21 +1037,21 @@ const Vl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Gl = ["width", "heigh
|
|
|
1005
1037
|
style: $({
|
|
1006
1038
|
transition: T.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
1007
1039
|
})
|
|
1008
|
-
}, null, 12,
|
|
1040
|
+
}, null, 12, _a))), 256))
|
|
1009
1041
|
])) : v("", !0),
|
|
1010
|
-
l.$slots.pattern ? (n(), r("g",
|
|
1042
|
+
l.$slots.pattern ? (n(), r("g", $a, [
|
|
1011
1043
|
(n(!0), r(w, null, L(X.value, (t, a) => (n(), r("path", {
|
|
1012
1044
|
class: "vue-ui-donut-arc-path",
|
|
1013
1045
|
d: d.value[a].path,
|
|
1014
1046
|
fill: `url(#${t.pattern})`,
|
|
1015
1047
|
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
1016
1048
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
1017
|
-
filter:
|
|
1049
|
+
filter: oe(a),
|
|
1018
1050
|
style: $({
|
|
1019
1051
|
transition: T.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`,
|
|
1020
1052
|
transformOrigin: "center"
|
|
1021
1053
|
})
|
|
1022
|
-
}, null, 12,
|
|
1054
|
+
}, null, 12, Ca))), 256))
|
|
1023
1055
|
])) : v("", !0),
|
|
1024
1056
|
(n(!0), r(w, null, L(X.value, (t, a) => (n(), r("path", {
|
|
1025
1057
|
class: "vue-ui-donut-arc-path",
|
|
@@ -1027,12 +1059,12 @@ const Vl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Gl = ["width", "heigh
|
|
|
1027
1059
|
fill: e.value.style.chart.useGradient ? `url(#polar_gradient_${a}_${y.value})` : t.color,
|
|
1028
1060
|
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
1029
1061
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
1030
|
-
filter:
|
|
1062
|
+
filter: oe(a),
|
|
1031
1063
|
style: $({
|
|
1032
1064
|
transition: T.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
1033
1065
|
})
|
|
1034
|
-
}, null, 12,
|
|
1035
|
-
])) : (n(), r("g",
|
|
1066
|
+
}, null, 12, Aa))), 256))
|
|
1067
|
+
])) : (n(), r("g", Ta, [
|
|
1036
1068
|
l.$slots.pattern ? (n(), r("circle", {
|
|
1037
1069
|
key: 0,
|
|
1038
1070
|
cx: s.value.width / 2,
|
|
@@ -1041,7 +1073,7 @@ const Vl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Gl = ["width", "heigh
|
|
|
1041
1073
|
fill: `url(#pattern_${y.value}_${S.value[0].patternIndex})`,
|
|
1042
1074
|
stroke: e.value.style.chart.backgroundColor,
|
|
1043
1075
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth
|
|
1044
|
-
}, null, 8,
|
|
1076
|
+
}, null, 8, Sa)) : v("", !0),
|
|
1045
1077
|
h("circle", {
|
|
1046
1078
|
cx: s.value.width / 2,
|
|
1047
1079
|
cy: s.value.height / 2,
|
|
@@ -1049,17 +1081,17 @@ const Vl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Gl = ["width", "heigh
|
|
|
1049
1081
|
fill: e.value.style.chart.useGradient ? `url(#polar_gradient_0_${y.value})` : S.value[0].color,
|
|
1050
1082
|
stroke: e.value.style.chart.backgroundColor,
|
|
1051
1083
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth
|
|
1052
|
-
}, null, 8,
|
|
1084
|
+
}, null, 8, Pa)
|
|
1053
1085
|
]))
|
|
1054
1086
|
], 64)) : (n(), r(w, { key: 9 }, [
|
|
1055
|
-
e.value.type === "classic" && !
|
|
1056
|
-
(n(!0), r(w, null, L(
|
|
1087
|
+
e.value.type === "classic" && !al.value ? (n(), r("g", Fa, [
|
|
1088
|
+
(n(!0), r(w, null, L(ol.value, (t, a) => (n(), r("path", {
|
|
1057
1089
|
class: "vue-ui-donut-arc-path",
|
|
1058
1090
|
d: t.arcSlice,
|
|
1059
1091
|
fill: t.color,
|
|
1060
1092
|
stroke: e.value.style.chart.backgroundColor,
|
|
1061
1093
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth
|
|
1062
|
-
}, null, 8,
|
|
1094
|
+
}, null, 8, La))), 256))
|
|
1063
1095
|
])) : v("", !0),
|
|
1064
1096
|
h("circle", {
|
|
1065
1097
|
cx: s.value.width / 2,
|
|
@@ -1067,7 +1099,7 @@ const Vl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Gl = ["width", "heigh
|
|
|
1067
1099
|
r: _.value <= 0 ? 10 : _.value,
|
|
1068
1100
|
fill: "transparent",
|
|
1069
1101
|
stroke: e.value.style.chart.backgroundColor
|
|
1070
|
-
}, null, 8,
|
|
1102
|
+
}, null, 8, Ia)
|
|
1071
1103
|
], 64)),
|
|
1072
1104
|
e.value.style.chart.useGradient && e.value.type === "classic" ? (n(), r("circle", {
|
|
1073
1105
|
key: 10,
|
|
@@ -1078,52 +1110,52 @@ const Vl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Gl = ["width", "heigh
|
|
|
1078
1110
|
_.value <= 0 ? 10 : _.value
|
|
1079
1111
|
),
|
|
1080
1112
|
fill: `url(#gradient_${y.value})`
|
|
1081
|
-
}, null, 8,
|
|
1113
|
+
}, null, 8, Ma)) : v("", !0),
|
|
1082
1114
|
h("circle", {
|
|
1083
1115
|
ref_key: "circle_hollow",
|
|
1084
|
-
ref:
|
|
1116
|
+
ref: Wt,
|
|
1085
1117
|
style: { pointerEvents: "none" },
|
|
1086
1118
|
fill: "none",
|
|
1087
1119
|
cx: s.value.width / 2,
|
|
1088
1120
|
cy: s.value.height / 2,
|
|
1089
|
-
r: Math.max(0.1,
|
|
1090
|
-
}, null, 8,
|
|
1121
|
+
r: Math.max(0.1, le.value * 1.7)
|
|
1122
|
+
}, null, 8, za),
|
|
1091
1123
|
F.value ? (n(), r(w, { key: 11 }, [
|
|
1092
|
-
S.value.length > 1 || e.value.type === "classic" ? (n(), r("g",
|
|
1124
|
+
S.value.length > 1 || e.value.type === "classic" ? (n(), r("g", Oa, [
|
|
1093
1125
|
(n(!0), r(w, null, L(S.value.filter((t) => !t.ghost), (t, a) => (n(), r("path", {
|
|
1094
1126
|
d: e.value.type === "classic" ? t.arcSlice : d.value[a].path,
|
|
1095
1127
|
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
1096
1128
|
fill: Y.value === a ? e.value.style.chart.layout.donut.selectedColor : "transparent",
|
|
1097
|
-
onMouseenter: (i) =>
|
|
1129
|
+
onMouseenter: (i) => ye({
|
|
1098
1130
|
datapoint: t,
|
|
1099
1131
|
relativeIndex: a,
|
|
1100
1132
|
seriesIndex: t.seriesIndex,
|
|
1101
1133
|
show: !0
|
|
1102
1134
|
}),
|
|
1103
|
-
onMouseleave: (i) =>
|
|
1135
|
+
onMouseleave: (i) => he({ datapoint: t, seriesIndex: t.seriesIndex }),
|
|
1104
1136
|
onClick: (i) => Q(t, a)
|
|
1105
|
-
}, null, 40,
|
|
1106
|
-
])) : (n(), r("g",
|
|
1137
|
+
}, null, 40, Na))), 256))
|
|
1138
|
+
])) : (n(), r("g", Da, [
|
|
1107
1139
|
h("circle", {
|
|
1108
1140
|
cx: s.value.width / 2,
|
|
1109
1141
|
cy: s.value.height / 2,
|
|
1110
1142
|
r: _.value,
|
|
1111
1143
|
fill: "transparent",
|
|
1112
|
-
onMouseenter: o[0] || (o[0] = (t) =>
|
|
1144
|
+
onMouseenter: o[0] || (o[0] = (t) => ye({
|
|
1113
1145
|
datapoint: S.value[0],
|
|
1114
1146
|
relativeIndex: 0,
|
|
1115
1147
|
seriesIndex: S.value[0].seriesIndex,
|
|
1116
1148
|
show: !0
|
|
1117
1149
|
})),
|
|
1118
|
-
onMouseleave: o[1] || (o[1] = (t) =>
|
|
1150
|
+
onMouseleave: o[1] || (o[1] = (t) => he({ datapoint: S.value[0], seriesIndex: S.value[0].seriesIndex })),
|
|
1119
1151
|
onClick: o[2] || (o[2] = (t) => Q(S.value[0], l.i))
|
|
1120
|
-
}, null, 40,
|
|
1152
|
+
}, null, 40, Ya)
|
|
1121
1153
|
]))
|
|
1122
1154
|
], 64)) : v("", !0),
|
|
1123
1155
|
e.value.type === "classic" ? (n(), r("g", {
|
|
1124
1156
|
key: 12,
|
|
1125
1157
|
ref_key: "G_hollow",
|
|
1126
|
-
ref:
|
|
1158
|
+
ref: Ut,
|
|
1127
1159
|
class: "vue-data-ui-donut-hollow-labels"
|
|
1128
1160
|
}, [
|
|
1129
1161
|
e.value.style.chart.layout.labels.hollow.total.show ? (n(), r("text", {
|
|
@@ -1134,7 +1166,7 @@ const Vl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Gl = ["width", "heigh
|
|
|
1134
1166
|
fill: e.value.style.chart.layout.labels.hollow.total.color,
|
|
1135
1167
|
"font-size": e.value.style.chart.layout.labels.hollow.total.fontSize,
|
|
1136
1168
|
style: $(`font-weight:${e.value.style.chart.layout.labels.hollow.total.bold ? "bold" : ""}`)
|
|
1137
|
-
}, I(e.value.style.chart.layout.labels.hollow.total.text), 13,
|
|
1169
|
+
}, I(e.value.style.chart.layout.labels.hollow.total.text), 13, Xa)) : v("", !0),
|
|
1138
1170
|
e.value.style.chart.layout.labels.hollow.total.show ? (n(), r("text", {
|
|
1139
1171
|
key: 1,
|
|
1140
1172
|
"text-anchor": "middle",
|
|
@@ -1143,7 +1175,7 @@ const Vl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Gl = ["width", "heigh
|
|
|
1143
1175
|
fill: e.value.style.chart.layout.labels.hollow.total.value.color,
|
|
1144
1176
|
"font-size": e.value.style.chart.layout.labels.hollow.total.value.fontSize,
|
|
1145
1177
|
style: $(`font-weight:${e.value.style.chart.layout.labels.hollow.total.value.bold ? "bold" : ""}`)
|
|
1146
|
-
}, I(u(
|
|
1178
|
+
}, I(u(E)(
|
|
1147
1179
|
e.value.style.chart.layout.labels.hollow.total.value.formatter,
|
|
1148
1180
|
F.value,
|
|
1149
1181
|
u(N)({
|
|
@@ -1151,7 +1183,7 @@ const Vl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Gl = ["width", "heigh
|
|
|
1151
1183
|
v: F.value,
|
|
1152
1184
|
s: e.value.style.chart.layout.labels.hollow.total.value.suffix
|
|
1153
1185
|
})
|
|
1154
|
-
)), 13,
|
|
1186
|
+
)), 13, Ba)) : v("", !0),
|
|
1155
1187
|
e.value.style.chart.layout.labels.hollow.average.show ? (n(), r("text", {
|
|
1156
1188
|
key: 2,
|
|
1157
1189
|
"text-anchor": "middle",
|
|
@@ -1160,7 +1192,7 @@ const Vl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Gl = ["width", "heigh
|
|
|
1160
1192
|
fill: e.value.style.chart.layout.labels.hollow.average.color,
|
|
1161
1193
|
"font-size": e.value.style.chart.layout.labels.hollow.average.fontSize,
|
|
1162
1194
|
style: $(`font-weight:${e.value.style.chart.layout.labels.hollow.average.bold ? "bold" : ""}`)
|
|
1163
|
-
}, I(e.value.style.chart.layout.labels.hollow.average.text), 13,
|
|
1195
|
+
}, I(e.value.style.chart.layout.labels.hollow.average.text), 13, Va)) : v("", !0),
|
|
1164
1196
|
e.value.style.chart.layout.labels.hollow.average.show ? (n(), r("text", {
|
|
1165
1197
|
key: 3,
|
|
1166
1198
|
"text-anchor": "middle",
|
|
@@ -1169,65 +1201,65 @@ const Vl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Gl = ["width", "heigh
|
|
|
1169
1201
|
fill: e.value.style.chart.layout.labels.hollow.average.value.color,
|
|
1170
1202
|
"font-size": e.value.style.chart.layout.labels.hollow.average.value.fontSize,
|
|
1171
1203
|
style: $(`font-weight:${e.value.style.chart.layout.labels.hollow.average.value.bold ? "bold" : ""}`)
|
|
1172
|
-
}, I(
|
|
1204
|
+
}, I(ae.value || T.value ? "--" : u(E)(
|
|
1173
1205
|
e.value.style.chart.layout.labels.hollow.average.value.formatter,
|
|
1174
|
-
|
|
1206
|
+
Ye.value,
|
|
1175
1207
|
u(N)({
|
|
1176
1208
|
p: e.value.style.chart.layout.labels.hollow.average.value.prefix,
|
|
1177
|
-
v:
|
|
1209
|
+
v: Ye.value,
|
|
1178
1210
|
s: e.value.style.chart.layout.labels.hollow.average.value.suffix,
|
|
1179
1211
|
r: e.value.style.chart.layout.labels.hollow.average.value.rounding
|
|
1180
1212
|
})
|
|
1181
|
-
)), 13,
|
|
1213
|
+
)), 13, Ea)) : v("", !0)
|
|
1182
1214
|
], 512)) : v("", !0),
|
|
1183
1215
|
(n(!0), r(w, null, L(X.value.filter((t) => !t.ghost), (t, a) => (n(), r("g", {
|
|
1184
|
-
filter:
|
|
1185
|
-
class:
|
|
1216
|
+
filter: oe(a),
|
|
1217
|
+
class: Re({ animated: e.value.useCssAnimation }),
|
|
1186
1218
|
key: t.seriesIndex
|
|
1187
1219
|
}, [
|
|
1188
|
-
e.value.style.chart.layout.labels.dataLabels.useLabelSlots ? (n(), r("g",
|
|
1220
|
+
e.value.style.chart.layout.labels.dataLabels.useLabelSlots ? (n(), r("g", Ga, [
|
|
1189
1221
|
(n(), r("foreignObject", {
|
|
1190
1222
|
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,
|
|
1191
|
-
y: u(
|
|
1223
|
+
y: u(pe)(t) - (wt.value ? 20 : 0),
|
|
1192
1224
|
width: "120",
|
|
1193
1225
|
height: "60",
|
|
1194
1226
|
style: { overflow: "visible" }
|
|
1195
1227
|
}, [
|
|
1196
1228
|
h("div", null, [
|
|
1197
|
-
b(l.$slots, "dataLabel",
|
|
1229
|
+
b(l.$slots, "dataLabel", qe({ ref_for: !0 }, {
|
|
1198
1230
|
datapoint: t,
|
|
1199
1231
|
isBlur: !e.value.useBlurOnHover || [null, void 0].includes(Y.value) || Y.value === a,
|
|
1200
|
-
isSafari:
|
|
1201
|
-
isVisible:
|
|
1232
|
+
isSafari: wt.value,
|
|
1233
|
+
isVisible: B(t) && f.value.dataLabels.show,
|
|
1202
1234
|
textAlign: u(x)(t, !0, 16, !0).anchor,
|
|
1203
1235
|
flexAlign: u(x)(t, !0, 16).anchor,
|
|
1204
|
-
percentage:
|
|
1236
|
+
percentage: De(t, X.value)
|
|
1205
1237
|
}), void 0, !0)
|
|
1206
1238
|
])
|
|
1207
|
-
], 8,
|
|
1208
|
-
])) : (n(), r("g",
|
|
1239
|
+
], 8, qa))
|
|
1240
|
+
])) : (n(), r("g", Ua, [
|
|
1209
1241
|
e.value.type === "classic" ? (n(), r(w, { key: 0 }, [
|
|
1210
|
-
|
|
1242
|
+
B(t) && f.value.dataLabels.show ? (n(), r("circle", {
|
|
1211
1243
|
key: 0,
|
|
1212
1244
|
cx: u(x)(t).x,
|
|
1213
|
-
cy: u(
|
|
1245
|
+
cy: u(pe)(t) - 3.5,
|
|
1214
1246
|
fill: t.color,
|
|
1215
1247
|
stroke: e.value.style.chart.backgroundColor,
|
|
1216
1248
|
"stroke-width": 1,
|
|
1217
1249
|
r: 3,
|
|
1218
1250
|
filter: !e.value.useBlurOnHover || [null, void 0].includes(Y.value) || Y.value === a ? "" : `url(#blur_${y.value})`,
|
|
1219
1251
|
onClick: (i) => Q(t, a),
|
|
1220
|
-
onMouseenter: (i) =>
|
|
1252
|
+
onMouseenter: (i) => ye({
|
|
1221
1253
|
datapoint: t,
|
|
1222
1254
|
relativeIndex: a,
|
|
1223
1255
|
seriesIndex: t.seriesIndex,
|
|
1224
1256
|
show: !0
|
|
1225
1257
|
}),
|
|
1226
|
-
onMouseleave: (i) =>
|
|
1227
|
-
}, null, 40,
|
|
1258
|
+
onMouseleave: (i) => he({ datapoint: t, seriesIndex: t.seriesIndex })
|
|
1259
|
+
}, null, 40, Wa)) : v("", !0)
|
|
1228
1260
|
], 64)) : v("", !0),
|
|
1229
1261
|
e.value.type === "polar" ? (n(), r(w, { key: 1 }, [
|
|
1230
|
-
|
|
1262
|
+
B(t) && f.value.dataLabels.show ? (n(), r("circle", {
|
|
1231
1263
|
key: 0,
|
|
1232
1264
|
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,
|
|
1233
1265
|
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,
|
|
@@ -1237,36 +1269,36 @@ const Vl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Gl = ["width", "heigh
|
|
|
1237
1269
|
r: 3,
|
|
1238
1270
|
filter: !e.value.useBlurOnHover || [null, void 0].includes(Y.value) || Y.value === a ? "" : `url(#blur_${y.value})`,
|
|
1239
1271
|
onClick: (i) => Q(t, a),
|
|
1240
|
-
onMouseenter: (i) =>
|
|
1272
|
+
onMouseenter: (i) => ye({
|
|
1241
1273
|
datapoint: t,
|
|
1242
1274
|
relativeIndex: a,
|
|
1243
1275
|
seriesIndex: t.seriesIndex,
|
|
1244
1276
|
show: !0
|
|
1245
1277
|
}),
|
|
1246
|
-
onMouseleave: (i) =>
|
|
1278
|
+
onMouseleave: (i) => he({ datapoint: t, seriesIndex: t.seriesIndex }),
|
|
1247
1279
|
style: $({
|
|
1248
1280
|
transition: T.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
1249
1281
|
})
|
|
1250
|
-
}, null, 44,
|
|
1282
|
+
}, null, 44, Ha)) : v("", !0)
|
|
1251
1283
|
], 64)) : v("", !0),
|
|
1252
1284
|
e.value.type === "classic" ? (n(), r(w, { key: 2 }, [
|
|
1253
|
-
|
|
1285
|
+
At(h("text", {
|
|
1254
1286
|
class: "vue-data-ui-datalabel-value",
|
|
1255
1287
|
"text-anchor": u(x)(t, !0, 12).anchor,
|
|
1256
1288
|
x: u(x)(t, !0, 12).x,
|
|
1257
|
-
y: u(
|
|
1289
|
+
y: u(pe)(t),
|
|
1258
1290
|
fill: e.value.style.chart.layout.labels.percentage.color,
|
|
1259
|
-
"font-size":
|
|
1291
|
+
"font-size": xe.value + "px",
|
|
1260
1292
|
style: $(`font-weight:${e.value.style.chart.layout.labels.percentage.bold ? "bold" : ""}`),
|
|
1261
1293
|
onClick: (i) => Q(t, a),
|
|
1262
|
-
onMouseenter: (i) =>
|
|
1294
|
+
onMouseenter: (i) => ye({
|
|
1263
1295
|
datapoint: t,
|
|
1264
1296
|
relativeIndex: a,
|
|
1265
1297
|
seriesIndex: t.seriesIndex,
|
|
1266
1298
|
show: !0
|
|
1267
1299
|
}),
|
|
1268
|
-
onMouseleave: (i) =>
|
|
1269
|
-
}, I(
|
|
1300
|
+
onMouseleave: (i) => he({ datapoint: t, seriesIndex: t.seriesIndex })
|
|
1301
|
+
}, I(De(t, X.value)) + " " + I(e.value.style.chart.layout.labels.value.show ? `(${u(E)(
|
|
1270
1302
|
e.value.style.chart.layout.labels.value.formatter,
|
|
1271
1303
|
t.value,
|
|
1272
1304
|
u(N)({
|
|
@@ -1276,52 +1308,52 @@ const Vl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Gl = ["width", "heigh
|
|
|
1276
1308
|
r: e.value.style.chart.layout.labels.value.rounding
|
|
1277
1309
|
}),
|
|
1278
1310
|
{ datapoint: t }
|
|
1279
|
-
)})` : ""), 45,
|
|
1280
|
-
[
|
|
1311
|
+
)})` : ""), 45, ja), [
|
|
1312
|
+
[Tt, B(t) && f.value.dataLabels.show]
|
|
1281
1313
|
]),
|
|
1282
|
-
|
|
1314
|
+
At(h("text", {
|
|
1283
1315
|
class: "vue-data-ui-datalabel-name",
|
|
1284
1316
|
"text-anchor": u(x)(t).anchor,
|
|
1285
1317
|
x: u(x)(t, !0, 12).x,
|
|
1286
|
-
y: u(
|
|
1318
|
+
y: u(pe)(t) + J.value * 1.2,
|
|
1287
1319
|
fill: e.value.style.chart.layout.labels.name.color,
|
|
1288
1320
|
"font-size": J.value + "px",
|
|
1289
1321
|
style: $(`font-weight:${e.value.style.chart.layout.labels.name.bold ? "bold" : ""}`),
|
|
1290
1322
|
onClick: (i) => Q(t, a),
|
|
1291
|
-
innerHTML: u(
|
|
1323
|
+
innerHTML: u(Lt)({
|
|
1292
1324
|
content: t.name,
|
|
1293
1325
|
fontSize: J.value,
|
|
1294
1326
|
fill: e.value.style.chart.layout.labels.name.color,
|
|
1295
1327
|
x: u(x)(t, !0, 12).x,
|
|
1296
|
-
y: u(
|
|
1328
|
+
y: u(pe)(t) + J.value
|
|
1297
1329
|
})
|
|
1298
|
-
}, null, 12,
|
|
1299
|
-
[
|
|
1330
|
+
}, null, 12, Ja), [
|
|
1331
|
+
[Tt, B(t) && f.value.dataLabels.show]
|
|
1300
1332
|
]),
|
|
1301
|
-
o[
|
|
1333
|
+
o[8] || (o[8] = Se(' @mouseenter="useTooltip({ datapoint: arc, relativeIndex: i, seriesIndex: arc.seriesIndex, show: true })" @mouseleave="handleDatapointLeave({ datapoint: arc, seriesIndex: arc.seriesIndex })" /> ', -1))
|
|
1302
1334
|
], 64)) : v("", !0),
|
|
1303
1335
|
e.value.type === "polar" ? (n(), r(w, { key: 3 }, [
|
|
1304
|
-
|
|
1336
|
+
B(t) && f.value.dataLabels.show ? (n(), r("text", {
|
|
1305
1337
|
key: 0,
|
|
1306
1338
|
class: "vue-data-ui-datalabel-value",
|
|
1307
|
-
"text-anchor":
|
|
1339
|
+
"text-anchor": ce(d.value[a].middlePoint),
|
|
1308
1340
|
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,
|
|
1309
1341
|
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,
|
|
1310
1342
|
fill: e.value.style.chart.layout.labels.percentage.color,
|
|
1311
|
-
"font-size":
|
|
1343
|
+
"font-size": xe.value,
|
|
1312
1344
|
style: $({
|
|
1313
1345
|
transition: T.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`,
|
|
1314
1346
|
fontWeight: e.value.style.chart.layout.labels.percentage.bold ? "bold" : "normal"
|
|
1315
1347
|
}),
|
|
1316
1348
|
onClick: (i) => Q(t, a),
|
|
1317
|
-
onMouseenter: (i) =>
|
|
1349
|
+
onMouseenter: (i) => ye({
|
|
1318
1350
|
datapoint: t,
|
|
1319
1351
|
relativeIndex: a,
|
|
1320
1352
|
seriesIndex: t.seriesIndex,
|
|
1321
1353
|
show: !0
|
|
1322
1354
|
}),
|
|
1323
|
-
onMouseleave: (i) =>
|
|
1324
|
-
}, I(
|
|
1355
|
+
onMouseleave: (i) => he({ datapoint: t, seriesIndex: t.seriesIndex })
|
|
1356
|
+
}, I(De(t, X.value)) + " " + I(e.value.style.chart.layout.labels.value.show ? `(${u(E)(
|
|
1325
1357
|
e.value.style.chart.layout.labels.value.formatter,
|
|
1326
1358
|
t.value,
|
|
1327
1359
|
u(N)({
|
|
@@ -1331,11 +1363,11 @@ const Vl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Gl = ["width", "heigh
|
|
|
1331
1363
|
r: e.value.style.chart.layout.labels.value.rounding
|
|
1332
1364
|
}),
|
|
1333
1365
|
{ datapoint: t }
|
|
1334
|
-
)})` : ""), 45,
|
|
1335
|
-
|
|
1366
|
+
)})` : ""), 45, Ka)) : v("", !0),
|
|
1367
|
+
B(t) && f.value.dataLabels.show ? (n(), r("text", {
|
|
1336
1368
|
key: 1,
|
|
1337
1369
|
class: "vue-data-ui-datalabel-name",
|
|
1338
|
-
"text-anchor":
|
|
1370
|
+
"text-anchor": ce(d.value[a].middlePoint),
|
|
1339
1371
|
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,
|
|
1340
1372
|
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,
|
|
1341
1373
|
fill: e.value.style.chart.layout.labels.name.color,
|
|
@@ -1345,22 +1377,22 @@ const Vl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Gl = ["width", "heigh
|
|
|
1345
1377
|
fontWeight: e.value.style.chart.layout.labels.name.bold ? "bold" : "normal"
|
|
1346
1378
|
}),
|
|
1347
1379
|
onClick: (i) => Q(t, a),
|
|
1348
|
-
innerHTML: u(
|
|
1380
|
+
innerHTML: u(Lt)({
|
|
1349
1381
|
content: t.name,
|
|
1350
|
-
fontSize:
|
|
1382
|
+
fontSize: xe.value,
|
|
1351
1383
|
fill: e.value.style.chart.layout.labels.name.color,
|
|
1352
1384
|
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,
|
|
1353
1385
|
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
|
|
1354
1386
|
})
|
|
1355
|
-
}, null, 12,
|
|
1356
|
-
o[
|
|
1387
|
+
}, null, 12, Qa)) : v("", !0),
|
|
1388
|
+
o[9] || (o[9] = Se(' @mouseenter="useTooltip({ datapoint: arc, relativeIndex: i, seriesIndex: arc.seriesIndex, show: true })" @mouseleave="handleDatapointLeave({ datapoint: arc, seriesIndex: arc.seriesIndex })" /> ', -1))
|
|
1357
1389
|
], 64)) : v("", !0)
|
|
1358
1390
|
])),
|
|
1359
|
-
|
|
1360
|
-
|
|
1391
|
+
f.value.dataLabels.show && e.value.style.chart.comments.show && t.comment ? (n(), r("g", Za, [
|
|
1392
|
+
B(t) && e.value.type === "classic" ? (n(), r("foreignObject", {
|
|
1361
1393
|
key: 0,
|
|
1362
1394
|
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),
|
|
1363
|
-
y: u(
|
|
1395
|
+
y: u(pe)(t) + 24 + e.value.style.chart.comments.offsetY,
|
|
1364
1396
|
width: e.value.style.chart.comments.width,
|
|
1365
1397
|
height: "200",
|
|
1366
1398
|
style: { overflow: "visible", "pointer-events": "none" }
|
|
@@ -1370,11 +1402,11 @@ const Vl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Gl = ["width", "heigh
|
|
|
1370
1402
|
plot: { ...t, textAlign: u(x)(t, !0, 16, !0).anchor, flexAlign: u(x)(t, !0, 16).anchor, isFirstLoad: T.value }
|
|
1371
1403
|
}, void 0, !0)
|
|
1372
1404
|
])
|
|
1373
|
-
], 8,
|
|
1374
|
-
|
|
1405
|
+
], 8, eo)) : v("", !0),
|
|
1406
|
+
B(t) && e.value.type === "polar" ? (n(), r("foreignObject", {
|
|
1375
1407
|
key: 1,
|
|
1376
|
-
x: e.value.style.chart.comments.offsetX + (
|
|
1377
|
-
y:
|
|
1408
|
+
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: sl(d.value[a]) + e.value.style.chart.comments.offsetY,
|
|
1378
1410
|
width: e.value.style.chart.comments.width,
|
|
1379
1411
|
height: "200",
|
|
1380
1412
|
style: $({
|
|
@@ -1385,40 +1417,40 @@ const Vl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Gl = ["width", "heigh
|
|
|
1385
1417
|
}, [
|
|
1386
1418
|
h("div", null, [
|
|
1387
1419
|
b(l.$slots, "plot-comment", {
|
|
1388
|
-
plot: { ...t, textAlign:
|
|
1420
|
+
plot: { ...t, textAlign: ce(d.value[a].middlePoint), flexAlign: ce(d.value[a].middlePoint), isFirstLoad: T.value }
|
|
1389
1421
|
}, void 0, !0)
|
|
1390
1422
|
])
|
|
1391
|
-
], 12,
|
|
1423
|
+
], 12, to)) : v("", !0)
|
|
1392
1424
|
])) : v("", !0)
|
|
1393
|
-
], 10,
|
|
1425
|
+
], 10, Ra))), 128)),
|
|
1394
1426
|
b(l.$slots, "svg", { svg: s.value }, void 0, !0)
|
|
1395
1427
|
], 512)
|
|
1396
|
-
], 14,
|
|
1397
|
-
l.$slots.watermark ? (n(), r("div",
|
|
1398
|
-
b(l.$slots, "watermark",
|
|
1428
|
+
], 14, Hl)),
|
|
1429
|
+
l.$slots.watermark ? (n(), r("div", lo, [
|
|
1430
|
+
b(l.$slots, "watermark", ne(ue({ isPrinting: u(it) || u(vt) })), void 0, !0)
|
|
1399
1431
|
])) : v("", !0),
|
|
1400
1432
|
h("div", {
|
|
1401
1433
|
id: `legend-bottom-${y.value}`
|
|
1402
|
-
}, null, 8,
|
|
1403
|
-
|
|
1434
|
+
}, null, 8, ao),
|
|
1435
|
+
lt.value ? (n(), te(fl, {
|
|
1404
1436
|
key: 5,
|
|
1405
1437
|
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${y.value}` : `#legend-bottom-${y.value}`
|
|
1406
1438
|
}, [
|
|
1407
1439
|
h("div", {
|
|
1408
1440
|
ref_key: "chartLegend",
|
|
1409
|
-
ref:
|
|
1441
|
+
ref: Je
|
|
1410
1442
|
}, [
|
|
1411
|
-
e.value.style.chart.legend.show ? (n(),
|
|
1412
|
-
key: `legend_${
|
|
1413
|
-
legendSet:
|
|
1414
|
-
config:
|
|
1415
|
-
onClickMarker: o[3] || (o[3] = ({ i: t }) =>
|
|
1416
|
-
},
|
|
1443
|
+
e.value.style.chart.legend.show ? (n(), te(Gl, {
|
|
1444
|
+
key: `legend_${tt.value}`,
|
|
1445
|
+
legendSet: gt.value,
|
|
1446
|
+
config: ll.value,
|
|
1447
|
+
onClickMarker: o[3] || (o[3] = ({ i: t }) => pt(t))
|
|
1448
|
+
}, Ge({
|
|
1417
1449
|
item: A(({ legend: t, index: a }) => [
|
|
1418
1450
|
h("div", {
|
|
1419
1451
|
style: $(`opacity:${q.value.includes(a) ? 0.5 : 1}`),
|
|
1420
1452
|
onClick: (i) => t.segregate()
|
|
1421
|
-
}, I(t.name) + I(e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ":" : "") + " " + I(e.value.style.chart.legend.showValue ? u(
|
|
1453
|
+
}, 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)(
|
|
1422
1454
|
e.value.style.chart.layout.labels.value.formatter,
|
|
1423
1455
|
t.value,
|
|
1424
1456
|
u(N)({
|
|
@@ -1431,22 +1463,22 @@ const Vl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Gl = ["width", "heigh
|
|
|
1431
1463
|
datapoint: t,
|
|
1432
1464
|
index: a
|
|
1433
1465
|
}
|
|
1434
|
-
) : "") + " " + I(e.value.style.chart.legend.showPercentage ? q.value.includes(a) ? `${e.value.style.chart.legend.showValue ? "(" : ""}${
|
|
1466
|
+
) : "") + " " + I(e.value.style.chart.legend.showPercentage ? q.value.includes(a) ? `${e.value.style.chart.legend.showValue ? "(" : ""}${ul(t.proportion * 100)}%${e.value.style.chart.legend.showValue ? ")" : ""}` : `${e.value.style.chart.legend.showValue ? "(" : ""}${isNaN(t.value / F.value) ? "-" : u(E)(
|
|
1435
1467
|
e.value.style.chart.layout.labels.percentage.formatter,
|
|
1436
|
-
|
|
1468
|
+
mt.value(t),
|
|
1437
1469
|
u(N)({
|
|
1438
|
-
v:
|
|
1470
|
+
v: mt.value(t),
|
|
1439
1471
|
s: "%",
|
|
1440
1472
|
r: e.value.style.chart.legend.roundingPercentage
|
|
1441
1473
|
})
|
|
1442
|
-
)}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""), 13,
|
|
1474
|
+
)}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""), 13, oo)
|
|
1443
1475
|
]),
|
|
1444
1476
|
_: 2
|
|
1445
1477
|
}, [
|
|
1446
1478
|
l.$slots.pattern ? {
|
|
1447
1479
|
name: "legend-pattern",
|
|
1448
1480
|
fn: A(({ legend: t, index: a }) => [
|
|
1449
|
-
|
|
1481
|
+
Te(El, {
|
|
1450
1482
|
shape: t.shape,
|
|
1451
1483
|
radius: 30,
|
|
1452
1484
|
stroke: "none",
|
|
@@ -1457,26 +1489,26 @@ const Vl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Gl = ["width", "heigh
|
|
|
1457
1489
|
key: "0"
|
|
1458
1490
|
} : void 0
|
|
1459
1491
|
]), 1032, ["legendSet", "config"])) : v("", !0),
|
|
1460
|
-
b(l.$slots, "legend", { legend:
|
|
1492
|
+
b(l.$slots, "legend", { legend: gt.value }, void 0, !0)
|
|
1461
1493
|
], 512)
|
|
1462
1494
|
], 8, ["to"])) : v("", !0),
|
|
1463
1495
|
l.$slots.source ? (n(), r("div", {
|
|
1464
1496
|
key: 6,
|
|
1465
1497
|
ref_key: "source",
|
|
1466
|
-
ref:
|
|
1498
|
+
ref: Ke,
|
|
1467
1499
|
dir: "auto"
|
|
1468
1500
|
}, [
|
|
1469
1501
|
b(l.$slots, "source", {}, void 0, !0)
|
|
1470
1502
|
], 512)) : v("", !0),
|
|
1471
|
-
l.$slots.hollow ? (n(), r("div",
|
|
1472
|
-
b(l.$slots, "hollow",
|
|
1503
|
+
l.$slots.hollow ? (n(), r("div", so, [
|
|
1504
|
+
b(l.$slots, "hollow", ne(ue({
|
|
1473
1505
|
total: F.value,
|
|
1474
|
-
average:
|
|
1506
|
+
average: Ye.value,
|
|
1475
1507
|
dataset: G.value
|
|
1476
1508
|
})), void 0, !0)
|
|
1477
1509
|
])) : v("", !0),
|
|
1478
|
-
|
|
1479
|
-
show:
|
|
1510
|
+
Te(u(Nt), {
|
|
1511
|
+
show: f.value.showTooltip && Me.value,
|
|
1480
1512
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
1481
1513
|
color: e.value.style.chart.tooltip.color,
|
|
1482
1514
|
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
@@ -1486,55 +1518,45 @@ const Vl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Gl = ["width", "heigh
|
|
|
1486
1518
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
1487
1519
|
position: e.value.style.chart.tooltip.position,
|
|
1488
1520
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
1489
|
-
parent:
|
|
1490
|
-
content:
|
|
1491
|
-
isCustom:
|
|
1492
|
-
isFullscreen:
|
|
1521
|
+
parent: D.value,
|
|
1522
|
+
content: ze.value,
|
|
1523
|
+
isCustom: me.value,
|
|
1524
|
+
isFullscreen: se.value,
|
|
1493
1525
|
smooth: e.value.style.chart.tooltip.smooth,
|
|
1494
1526
|
backdropFilter: e.value.style.chart.tooltip.backdropFilter
|
|
1495
1527
|
}, {
|
|
1496
1528
|
"tooltip-before": A(() => [
|
|
1497
|
-
b(l.$slots, "tooltip-before",
|
|
1529
|
+
b(l.$slots, "tooltip-before", ne(ue({ ...Xe.value })), void 0, !0)
|
|
1498
1530
|
]),
|
|
1499
1531
|
"tooltip-after": A(() => [
|
|
1500
|
-
b(l.$slots, "tooltip-after",
|
|
1532
|
+
b(l.$slots, "tooltip-after", ne(ue({ ...Xe.value })), void 0, !0)
|
|
1501
1533
|
]),
|
|
1502
1534
|
_: 3
|
|
1503
1535
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "isFullscreen", "smooth", "backdropFilter"]),
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
maxHeight: 1e4,
|
|
1510
|
-
body: {
|
|
1511
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
1512
|
-
color: e.value.style.chart.color
|
|
1513
|
-
},
|
|
1514
|
-
head: {
|
|
1515
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
1516
|
-
color: e.value.style.chart.color
|
|
1517
|
-
}
|
|
1518
|
-
}
|
|
1519
|
-
}, {
|
|
1536
|
+
we.value ? (n(), te(pl(be.value.component), qe({ key: 8 }, be.value.props, {
|
|
1537
|
+
ref_key: "tableUnit",
|
|
1538
|
+
ref: ge,
|
|
1539
|
+
onClose: o[6] || (o[6] = (t) => f.value.showTable = !1)
|
|
1540
|
+
}), Ge({
|
|
1520
1541
|
content: A(() => [
|
|
1521
|
-
(n(),
|
|
1522
|
-
key: `table_${
|
|
1523
|
-
colNames:
|
|
1524
|
-
head:
|
|
1525
|
-
body:
|
|
1526
|
-
config:
|
|
1527
|
-
title:
|
|
1528
|
-
|
|
1542
|
+
(n(), te(u(Xt), {
|
|
1543
|
+
key: `table_${et.value}`,
|
|
1544
|
+
colNames: Ce.value.colNames,
|
|
1545
|
+
head: Ce.value.head,
|
|
1546
|
+
body: Ce.value.body,
|
|
1547
|
+
config: Ce.value.config,
|
|
1548
|
+
title: e.value.table.useDialog ? "" : be.value.title,
|
|
1549
|
+
withCloseButton: !e.value.table.useDialog,
|
|
1550
|
+
onClose: o[5] || (o[5] = (t) => f.value.showTable = !1)
|
|
1529
1551
|
}, {
|
|
1530
1552
|
th: A(({ th: t }) => [
|
|
1531
1553
|
h("div", {
|
|
1532
1554
|
innerHTML: t,
|
|
1533
1555
|
style: { display: "flex", "align-items": "center" }
|
|
1534
|
-
}, null, 8,
|
|
1556
|
+
}, null, 8, no)
|
|
1535
1557
|
]),
|
|
1536
1558
|
td: A(({ td: t }) => [
|
|
1537
|
-
|
|
1559
|
+
Se(I(t.name ? t.name : isNaN(Number(t)) ? t.includes("%") ? t : u(E)(
|
|
1538
1560
|
e.value.style.chart.layout.labels.percentage.formatter,
|
|
1539
1561
|
t,
|
|
1540
1562
|
u(N)({
|
|
@@ -1542,7 +1564,7 @@ const Vl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Gl = ["width", "heigh
|
|
|
1542
1564
|
s: "%",
|
|
1543
1565
|
r: e.value.style.chart.layout.labels.percentage.rounding
|
|
1544
1566
|
})
|
|
1545
|
-
) : u(
|
|
1567
|
+
) : u(E)(
|
|
1546
1568
|
e.value.style.chart.layout.labels.value.formatter,
|
|
1547
1569
|
t,
|
|
1548
1570
|
u(N)({
|
|
@@ -1554,14 +1576,38 @@ const Vl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Gl = ["width", "heigh
|
|
|
1554
1576
|
)), 1)
|
|
1555
1577
|
]),
|
|
1556
1578
|
_: 1
|
|
1557
|
-
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
1579
|
+
}, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
|
|
1558
1580
|
]),
|
|
1559
|
-
_:
|
|
1560
|
-
},
|
|
1561
|
-
|
|
1562
|
-
|
|
1581
|
+
_: 2
|
|
1582
|
+
}, [
|
|
1583
|
+
e.value.table.useDialog ? {
|
|
1584
|
+
name: "title",
|
|
1585
|
+
fn: A(() => [
|
|
1586
|
+
Se(I(be.value.title), 1)
|
|
1587
|
+
]),
|
|
1588
|
+
key: "0"
|
|
1589
|
+
} : void 0,
|
|
1590
|
+
e.value.table.useDialog ? {
|
|
1591
|
+
name: "actions",
|
|
1592
|
+
fn: A(() => [
|
|
1593
|
+
h("button", {
|
|
1594
|
+
tabindex: "0",
|
|
1595
|
+
class: "vue-ui-user-options-button",
|
|
1596
|
+
onClick: o[4] || (o[4] = (t) => Be(e.value.userOptions.callbacks.csv))
|
|
1597
|
+
}, [
|
|
1598
|
+
Te(u(Dt), {
|
|
1599
|
+
name: "excel",
|
|
1600
|
+
stroke: be.value.props.color
|
|
1601
|
+
}, null, 8, ["stroke"])
|
|
1602
|
+
])
|
|
1603
|
+
]),
|
|
1604
|
+
key: "1"
|
|
1605
|
+
} : void 0
|
|
1606
|
+
]), 1040)) : v("", !0),
|
|
1607
|
+
u(_e) ? (n(), te(Yl, { key: 9 })) : v("", !0)
|
|
1608
|
+
], 46, Ul));
|
|
1563
1609
|
}
|
|
1564
|
-
},
|
|
1610
|
+
}, xo = /* @__PURE__ */ ql(uo, [["__scopeId", "data-v-b2d3d9b6"]]);
|
|
1565
1611
|
export {
|
|
1566
|
-
|
|
1612
|
+
xo as default
|
|
1567
1613
|
};
|