vue-data-ui 3.0.1 → 3.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-DQoWnUfD.js → Arrow-CUUMjZed.js} +1 -1
- package/dist/{BaseDraggableDialog-DEw6oieL.js → BaseDraggableDialog-DgADqZE_.js} +2 -2
- package/dist/{BaseIcon-DEl03NUZ.js → BaseIcon-DLm6QTwr.js} +1 -1
- package/dist/{ColorPicker-CrivFZqC.js → ColorPicker-Crz_B792.js} +2 -2
- package/dist/{DataTable-ClgCsiJA.js → DataTable-CWzb1j8d.js} +2 -2
- package/dist/{Legend-CMvJ6X5j.js → Legend-CevCqVZ5.js} +2 -2
- package/dist/{NonSvgPenAndPaper-B2Wvbl3p.js → NonSvgPenAndPaper-DOG92bzo.js} +3 -3
- package/dist/{PackageVersion-CD5VH_Al.js → PackageVersion-n4qokxnx.js} +1 -1
- package/dist/{PenAndPaper-D3WRn-G2.js → PenAndPaper-C_R9vJkU.js} +3 -3
- package/dist/{Shape-Adi9i_-f.js → Shape-BHVN6hj0.js} +1 -1
- package/dist/{Slicer-t6e1t2iM.js → Slicer-BBjJsLlJ.js} +2 -2
- package/dist/{SparkTooltip-B8OnBSvk.js → SparkTooltip-BHlSggBm.js} +1 -1
- package/dist/{Title-xTWR-Vil.js → Title-CINHji0n.js} +1 -1
- package/dist/{Tooltip-BH3CiANh.js → Tooltip-hfdFRoLp.js} +1 -1
- package/dist/{UserOptions-CKKPgDLV.js → UserOptions-r0epwyXR.js} +2 -2
- package/dist/{dom-to-png-C4hj491O.js → dom-to-png-m7MwDfMh.js} +1 -1
- package/dist/{img-Vb4QHAHI.js → img-CBdOMFyn.js} +1 -1
- package/dist/{index-Dzc2Gi60.js → index-DrRiscPm.js} +908 -871
- package/dist/{pdf-ddpqw-dt.js → pdf-CITAFtf8.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +23 -0
- package/dist/types/vue-data-ui.d.ts +23 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-CN_Jh8Hr.js → useAutoSizeLabelsInsideViewbox-C0d8h29h.js} +1 -1
- package/dist/{useNestedProp-CjnS13nF.js → useNestedProp-BXhArS-K.js} +1 -1
- package/dist/{usePrinter-DBRh8ZvS.js → usePrinter-CZk2ISUm.js} +2 -2
- package/dist/{vue-data-ui-B7ztqj9-.js → vue-data-ui-omyV52aJ.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-DUmYPtHl.js → vue-ui-3d-bar-ByS7XX4A.js} +6 -6
- package/dist/{vue-ui-accordion-CPk8wAuj.js → vue-ui-accordion-s_m_NJzJ.js} +3 -3
- package/dist/{vue-ui-age-pyramid-Bv5HmeXj.js → vue-ui-age-pyramid-BJRjKF9G.js} +6 -6
- package/dist/{vue-ui-annotator-KXWlIhtd.js → vue-ui-annotator-BcdnqcBy.js} +2 -2
- package/dist/{vue-ui-bullet-B4N4mBk9.js → vue-ui-bullet-D82pT7tL.js} +199 -186
- package/dist/{vue-ui-candlestick-DENvPnUO.js → vue-ui-candlestick-ThIDj7Q5.js} +7 -7
- package/dist/{vue-ui-carousel-table-vC2bHBaY.js → vue-ui-carousel-table-BHOAO0Gj.js} +4 -4
- package/dist/{vue-ui-chestnut-2nS0StrY.js → vue-ui-chestnut-3sjb4gzU.js} +5 -5
- package/dist/{vue-ui-chord-CyfS6vNM.js → vue-ui-chord-CfVEqNV6.js} +377 -366
- package/dist/{vue-ui-circle-pack-C4JR-0fx.js → vue-ui-circle-pack-u4ABWUZI.js} +6 -6
- package/dist/{vue-ui-cursor-BgeSDtQh.js → vue-ui-cursor-ByfhuSzG.js} +2 -2
- package/dist/{vue-ui-dashboard-9DWUBJ-I.js → vue-ui-dashboard-CBCck-UI.js} +62 -62
- package/dist/{vue-ui-digits-BQO7IBFA.js → vue-ui-digits-BU-8e-1s.js} +2 -2
- package/dist/{vue-ui-donut-evolution-B870IrQA.js → vue-ui-donut-evolution-B4lDDX7G.js} +388 -377
- package/dist/{vue-ui-donut-C-ZJXJ74.js → vue-ui-donut-g5x3IpMV.js} +345 -334
- package/dist/{vue-ui-dumbbell-Cfs2Uotx.js → vue-ui-dumbbell-BJ8qcUud.js} +354 -343
- package/dist/{vue-ui-flow-DnaUVVAD.js → vue-ui-flow-CRwGogHq.js} +299 -288
- package/dist/{vue-ui-funnel-B9s-H5ZG.js → vue-ui-funnel-DzF_UOAJ.js} +6 -6
- package/dist/{vue-ui-galaxy-BoJOczdh.js → vue-ui-galaxy-BqunXfkx.js} +252 -241
- package/dist/{vue-ui-gauge-qjm4BqZR.js → vue-ui-gauge-DPjvYyeF.js} +7 -7
- package/dist/{vue-ui-gizmo-fn7ZaMTI.js → vue-ui-gizmo-CU7HsWOV.js} +3 -3
- package/dist/{vue-ui-heatmap-CIBDKhh8.js → vue-ui-heatmap-CFh-br8X.js} +7 -7
- package/dist/{vue-ui-history-plot-bbNxldYG.js → vue-ui-history-plot-OdhJu988.js} +283 -270
- package/dist/{vue-ui-kpi-BX-2jhLx.js → vue-ui-kpi-CVp3sMeg.js} +3 -3
- package/dist/{vue-ui-mini-loader-Bn1Bb8-J.js → vue-ui-mini-loader-LtGcTTh2.js} +2 -2
- package/dist/{vue-ui-molecule-DQ3qFtBq.js → vue-ui-molecule-DklqwI8c.js} +5 -5
- package/dist/{vue-ui-mood-radar-Cf-ehIo1.js → vue-ui-mood-radar-CGuHZngw.js} +264 -253
- package/dist/{vue-ui-nested-donuts-CWg5BEi-.js → vue-ui-nested-donuts-CHrryP89.js} +377 -366
- package/dist/{vue-ui-onion-sHgQTYfa.js → vue-ui-onion-n74T6frI.js} +265 -254
- package/dist/{vue-ui-parallel-coordinate-plot-Ki3ITp_s.js → vue-ui-parallel-coordinate-plot-DtQi0qWp.js} +276 -265
- package/dist/{vue-ui-quadrant-BIVqW7U7.js → vue-ui-quadrant-CZn3Ab1f.js} +356 -345
- package/dist/{vue-ui-quick-chart-C_hvHc1b.js → vue-ui-quick-chart-CUBOj0Y6.js} +639 -628
- package/dist/{vue-ui-radar-RZUPyPwB.js → vue-ui-radar-BAazL3Qv.js} +254 -243
- package/dist/{vue-ui-rating-BI8Vk7dO.js → vue-ui-rating-CPa7MotU.js} +2 -2
- package/dist/{vue-ui-relation-circle-TVMUEtxK.js → vue-ui-relation-circle-g6pCa6y9.js} +7 -7
- package/dist/{vue-ui-ridgeline-DQeXHQG4.js → vue-ui-ridgeline-C_Mpseru.js} +8 -8
- package/dist/{vue-ui-rings-BH81WmMS.js → vue-ui-rings-grCm0xEc.js} +250 -239
- package/dist/{vue-ui-scatter-Cy7Tz_An.js → vue-ui-scatter-CEr615c-.js} +383 -372
- package/dist/{vue-ui-skeleton-CF50qQxr.js → vue-ui-skeleton-BaqJKjqR.js} +3 -3
- package/dist/{vue-ui-smiley-CrFXEbJs.js → vue-ui-smiley-DyIfQ5KW.js} +2 -2
- package/dist/{vue-ui-spark-trend-DtHArnot.js → vue-ui-spark-trend-CqVF6MXT.js} +3 -3
- package/dist/{vue-ui-sparkbar-CIOwFFgA.js → vue-ui-sparkbar-DwSd_DZu.js} +3 -3
- package/dist/{vue-ui-sparkgauge-E0DdGotz.js → vue-ui-sparkgauge-Bm4UGamr.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-Dm7WoyjY.js → vue-ui-sparkhistogram-DTZK4gCA.js} +4 -4
- package/dist/{vue-ui-sparkline-DoW6DDKT.js → vue-ui-sparkline-DGfIevXQ.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-BJnPUWY4.js → vue-ui-sparkstackbar-RT_LpLKL.js} +3 -3
- package/dist/{vue-ui-stackbar-Du42smPs.js → vue-ui-stackbar-9Yxdd7ko.js} +443 -432
- package/dist/{vue-ui-strip-plot-DnenGI-d.js → vue-ui-strip-plot--2bdwjUL.js} +7 -7
- package/dist/{vue-ui-table-BQOQVlHr.js → vue-ui-table-BSNxwgTV.js} +4 -9
- package/dist/{vue-ui-table-heatmap-BzK4_gsP.js → vue-ui-table-heatmap-BaK9FRE1.js} +5 -5
- package/dist/{vue-ui-table-sparkline-B-IwcT8I.js → vue-ui-table-sparkline-Dbi7H7Xb.js} +4 -4
- package/dist/{vue-ui-thermometer-06ao_Pj5.js → vue-ui-thermometer-9EIYVN0g.js} +7 -7
- package/dist/{vue-ui-timer-CxQq4roK.js → vue-ui-timer-OH8HQjpu.js} +5 -5
- package/dist/{vue-ui-tiremarks-CuTxkByj.js → vue-ui-tiremarks-D6JpH-vv.js} +6 -6
- package/dist/{vue-ui-treemap-BgHhRpiV.js → vue-ui-treemap-DqEQgjj-.js} +356 -345
- package/dist/{vue-ui-vertical-bar-CAcsUUCo.js → vue-ui-vertical-bar-BfnMDmGN.js} +9 -9
- package/dist/{vue-ui-waffle-Ct3Upw3m.js → vue-ui-waffle-BJu7n_i7.js} +306 -295
- package/dist/{vue-ui-wheel-oz06Kt-p.js → vue-ui-wheel-KDWfx0os.js} +6 -6
- package/dist/{vue-ui-word-cloud-BRy7fg4S.js → vue-ui-word-cloud-Dcg3uI2O.js} +6 -6
- package/dist/{vue-ui-world-CTV-YfFN.js → vue-ui-world-SYtMz1jo.js} +343 -329
- package/dist/{vue-ui-xy-canvas-BZdhKUIp.js → vue-ui-xy-canvas-BGJg2doK.js} +305 -294
- package/dist/vue-ui-xy-qzB1oN1A.js +3819 -0
- package/package.json +1 -1
- package/dist/vue-ui-xy-DqCy9dpa.js +0 -3808
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { defineAsyncComponent as ye, useSlots 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 ye, useSlots as il, computed as f, shallowRef as H, ref as g, onMounted as wt, onBeforeUnmount as kt, toRefs as vl, watch as ge, createElementBlock as r, openBlock as n, normalizeStyle as $, normalizeClass as Xe, createBlock as ee, createCommentVNode as v, renderSlot as b, createElementVNode as h, createVNode as De, unref as u, createSlots as xt, withCtx as A, normalizeProps as oe, guardReactiveProps as se, Fragment as w, renderList as L, mergeProps as _t, toDisplayString as I, withDirectives as $t, createTextVNode as Be, vShow as Ct, Teleport as dl, nextTick as cl } from "vue";
|
|
2
|
+
import { u as hl, o as At, f as Ve, g as yl, c as fl, t as pl, d as gl, h as ml, e as Tt, p as ne, m as St, $ as bl, i as N, X as wl, s as Ce, x as kl, n as xl, N as P, k as V, q as fe, r as x, a0 as Pt, a1 as _l, a as $l, b as Cl, C as Ee, v as Al, w as Tl, y as Sl, T as Ft } from "./index-DrRiscPm.js";
|
|
3
|
+
import { t as Pl, u as Fl } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as Ll } from "./usePrinter-CZk2ISUm.js";
|
|
5
|
+
import { u as Il, B as Ml } from "./useLoading-D7YHNtLX.js";
|
|
6
|
+
import { u as Lt } from "./useNestedProp-BXhArS-K.js";
|
|
7
|
+
import { u as zl } from "./useUserOptionState-BIvW1Kz7.js";
|
|
8
|
+
import { u as Ol } from "./useChartAccessibility-9icAAmYg.js";
|
|
9
|
+
import Nl from "./img-CBdOMFyn.js";
|
|
10
|
+
import { _ as Yl } from "./Shape-BHVN6hj0.js";
|
|
11
|
+
import Xl from "./Title-CINHji0n.js";
|
|
12
|
+
import Dl from "./Legend-CevCqVZ5.js";
|
|
13
|
+
import { _ as Bl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
|
+
const Vl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Gl = ["width", "height"], ql = { key: 1 }, Ul = ["id"], Wl = ["stop-color"], Hl = ["offset", "stop-color"], jl = ["offset", "stop-color"], Jl = ["stop-color"], Kl = { key: 2 }, Ql = ["id", "cx", "cy"], Zl = ["stop-color", "stop-opacity"], ea = ["stop-color"], ta = ["id"], la = ["id"], aa = ["id"], oa = ["flood-color"], sa = ["id"], na = ["flood-color"], ua = ["d", "stroke", "filter"], ra = ["d", "stroke", "filter"], ia = ["cx", "cy", "r", "fill", "filter"], va = { key: 6 }, da = ["stroke", "d"], ca = ["d", "fill", "stroke", "stroke-width", "filter"], ha = { key: 0 }, ya = ["d", "fill", "stroke", "stroke-width", "filter"], fa = { key: 0 }, pa = ["stroke", "d"], ga = { key: 0 }, ma = ["d", "stroke", "stroke-width", "filter"], ba = { key: 1 }, wa = ["d", "fill", "stroke", "stroke-width", "filter"], ka = ["d", "fill", "stroke", "stroke-width", "filter"], xa = { key: 1 }, _a = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], $a = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Ca = { key: 0 }, Aa = ["d", "fill", "stroke", "stroke-width"], Ta = ["cx", "cy", "r", "stroke"], Sa = ["cx", "cy", "r", "fill"], Pa = ["cx", "cy", "r"], Fa = { key: 0 }, La = ["d", "stroke", "fill", "onMouseenter", "onMouseleave", "onClick"], Ia = { key: 1 }, Ma = ["cx", "cy", "r"], za = ["x", "y", "fill", "font-size"], Oa = ["x", "y", "fill", "font-size"], Na = ["x", "y", "fill", "font-size"], Ya = ["x", "y", "fill", "font-size"], Xa = ["filter"], Da = { key: 0 }, Ba = ["x", "y"], Va = { key: 1 }, Ea = ["cx", "cy", "fill", "stroke", "filter", "onClick", "onMouseenter", "onMouseleave"], Ra = ["cx", "cy", "fill", "stroke", "filter", "onClick", "onMouseenter", "onMouseleave"], Ga = ["text-anchor", "x", "y", "fill", "font-size", "onClick", "onMouseenter", "onMouseleave"], qa = ["text-anchor", "x", "y", "fill", "font-size", "onClick", "innerHTML"], Ua = ["text-anchor", "x", "y", "fill", "font-size", "onClick", "onMouseenter", "onMouseleave"], Wa = ["text-anchor", "x", "y", "fill", "font-size", "onClick", "innerHTML"], Ha = { key: 2 }, ja = ["x", "y", "width"], Ja = ["x", "y", "width"], Ka = {
|
|
15
15
|
key: 4,
|
|
16
16
|
class: "vue-data-ui-watermark"
|
|
17
|
-
},
|
|
18
|
-
key:
|
|
17
|
+
}, Qa = ["id"], Za = ["onClick"], eo = {
|
|
18
|
+
key: 7,
|
|
19
19
|
class: "vue-ui-donut-hollow"
|
|
20
|
-
},
|
|
20
|
+
}, to = ["innerHTML"], lo = {
|
|
21
21
|
__name: "vue-ui-donut",
|
|
22
22
|
props: {
|
|
23
23
|
config: {
|
|
@@ -34,18 +34,18 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
36
|
emits: ["selectLegend", "selectDatapoint"],
|
|
37
|
-
setup(Re, { expose:
|
|
38
|
-
const
|
|
37
|
+
setup(Re, { expose: It, emit: Mt }) {
|
|
38
|
+
const zt = ye(() => import("./vue-ui-accordion-s_m_NJzJ.js")), Ot = ye(() => import("./DataTable-CWzb1j8d.js")), Nt = ye(() => import("./PackageVersion-n4qokxnx.js")), Yt = ye(() => import("./PenAndPaper-C_R9vJkU.js")), Xt = ye(() => import("./Tooltip-hfdFRoLp.js")), Dt = ye(() => import("./UserOptions-r0epwyXR.js")), { vue_ui_donut: Bt } = hl(), Vt = il(), k = Re, me = f({
|
|
39
39
|
get() {
|
|
40
40
|
return !!k.dataset && k.dataset.length;
|
|
41
41
|
},
|
|
42
42
|
set(l) {
|
|
43
43
|
return l;
|
|
44
44
|
}
|
|
45
|
-
}), E = H(null), be =
|
|
45
|
+
}), E = H(null), be = g(null), Et = g(null), Rt = g(null), Ge = H(null), qe = H(null), j = H(null), ue = H(null), Ue = H(null), We = H(null), He = g(0), je = g(0), Je = g(0), Ke = g(!1), we = f({
|
|
46
46
|
get: () => e.value.style.chart.layout.labels.percentage.fontSize,
|
|
47
47
|
set: (l) => l
|
|
48
|
-
}), J =
|
|
48
|
+
}), J = f({
|
|
49
49
|
get: () => e.value.style.chart.layout.labels.name.fontSize,
|
|
50
50
|
set: (l) => l
|
|
51
51
|
});
|
|
@@ -69,26 +69,26 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
69
69
|
sizeRef: J
|
|
70
70
|
}
|
|
71
71
|
];
|
|
72
|
-
z.map((B) => o.querySelectorAll(B.selector).length).reduce((B, Z) => B + Z, 0) !== 0 && z.forEach(({ selector: B, baseSize: Z, minSize: Ye, sizeRef:
|
|
73
|
-
o.querySelectorAll(B).forEach((
|
|
74
|
-
const
|
|
75
|
-
el:
|
|
72
|
+
z.map((B) => o.querySelectorAll(B.selector).length).reduce((B, Z) => B + Z, 0) !== 0 && z.forEach(({ selector: B, baseSize: Z, minSize: Ye, sizeRef: nl }) => {
|
|
73
|
+
o.querySelectorAll(B).forEach((ul) => {
|
|
74
|
+
const rl = _l({
|
|
75
|
+
el: ul,
|
|
76
76
|
bounds: C,
|
|
77
77
|
currentFontSize: Z,
|
|
78
78
|
minFontSize: Ye,
|
|
79
79
|
attempts: 200,
|
|
80
80
|
padding: 1
|
|
81
81
|
});
|
|
82
|
-
|
|
82
|
+
nl.value = rl;
|
|
83
83
|
});
|
|
84
84
|
});
|
|
85
85
|
}));
|
|
86
86
|
};
|
|
87
|
-
|
|
88
|
-
Ke(), requestAnimationFrame(R);
|
|
87
|
+
wt(async () => {
|
|
88
|
+
Ke.value = !0, Qe(), requestAnimationFrame(R);
|
|
89
89
|
});
|
|
90
90
|
let Te;
|
|
91
|
-
|
|
91
|
+
wt(() => {
|
|
92
92
|
E.value && (Te = new ResizeObserver((l) => {
|
|
93
93
|
for (const o of l) {
|
|
94
94
|
const { width: t, height: a } = o.contentRect;
|
|
@@ -98,19 +98,19 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
100
|
}), Te.observe(E.value.parentElement));
|
|
101
|
-
}),
|
|
101
|
+
}), kt(() => {
|
|
102
102
|
Te?.disconnect();
|
|
103
|
-
}),
|
|
103
|
+
}), kt(() => {
|
|
104
104
|
j.value && (ue.value && j.value.unobserve(ue.value), j.value.disconnect());
|
|
105
105
|
});
|
|
106
|
-
const Se =
|
|
107
|
-
function
|
|
108
|
-
if (
|
|
106
|
+
const Se = f(() => !!e.value.debug);
|
|
107
|
+
function Qe() {
|
|
108
|
+
if (At(k.dataset) ? (Ve({
|
|
109
109
|
componentName: "VueUiDonut",
|
|
110
110
|
type: "dataset",
|
|
111
111
|
debug: Se.value
|
|
112
112
|
}), me.value = !1, xe.value = !0) : (k.dataset.forEach((l, o) => {
|
|
113
|
-
|
|
113
|
+
yl({
|
|
114
114
|
datasetObject: l,
|
|
115
115
|
requiredAttributes: ["name", "values"]
|
|
116
116
|
}).forEach((t) => {
|
|
@@ -130,15 +130,15 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
130
130
|
index: o,
|
|
131
131
|
debug: Se.value
|
|
132
132
|
});
|
|
133
|
-
})),
|
|
134
|
-
const l =
|
|
135
|
-
const { width: o, height: t } =
|
|
133
|
+
})), At(k.dataset) || (xe.value = e.value.loading), e.value.responsive) {
|
|
134
|
+
const l = Pl(() => {
|
|
135
|
+
const { width: o, height: t } = Fl({
|
|
136
136
|
chart: E.value,
|
|
137
137
|
title: e.value.style.chart.title.text ? Ge.value : null,
|
|
138
138
|
legend: e.value.style.chart.legend.show ? qe.value : null,
|
|
139
139
|
source: Ue.value,
|
|
140
140
|
noTitle: We.value,
|
|
141
|
-
padding: e.value.autoSize ? void 0 :
|
|
141
|
+
padding: e.value.autoSize ? void 0 : at.value
|
|
142
142
|
});
|
|
143
143
|
requestAnimationFrame(() => {
|
|
144
144
|
s.value.width = o, s.value.height = t, R();
|
|
@@ -147,23 +147,23 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
147
147
|
j.value && (ue.value && j.value.unobserve(ue.value), j.value.disconnect()), j.value = new ResizeObserver(l), ue.value = E.value.parentNode, j.value.observe(ue.value);
|
|
148
148
|
}
|
|
149
149
|
}
|
|
150
|
-
const
|
|
150
|
+
const y = g(fl()), Gt = g(null), Pe = g(!1), Fe = g(""), Y = g(null), Ze = g(0);
|
|
151
151
|
function Le() {
|
|
152
|
-
const l =
|
|
152
|
+
const l = Lt({
|
|
153
153
|
userConfig: k.config,
|
|
154
|
-
defaultConfig:
|
|
154
|
+
defaultConfig: Bt
|
|
155
155
|
});
|
|
156
156
|
let o = {};
|
|
157
157
|
return l.theme ? o = {
|
|
158
|
-
...
|
|
159
|
-
userConfig:
|
|
158
|
+
...Lt({
|
|
159
|
+
userConfig: Cl.vue_ui_donut[l.theme] || k.config,
|
|
160
160
|
defaultConfig: l
|
|
161
161
|
}),
|
|
162
|
-
customPalette:
|
|
162
|
+
customPalette: $l[l.theme] || ne
|
|
163
163
|
} : o = l, k.config && Ee(k.config, "events.datapointEnter") ? o.events.datapointEnter = k.config.events.datapointEnter : o.events.datapointEnter = null, k.config && Ee(k.config, "events.datapointLeave") ? o.events.datapointLeave = k.config.events.datapointLeave : o.events.datapointLeave = null, k.config && Ee(k.config, "events.datapointClick") ? o.events.datapointClick = k.config.events.datapointClick : o.events.datapointClick = null, o;
|
|
164
164
|
}
|
|
165
|
-
const e =
|
|
166
|
-
...
|
|
165
|
+
const e = g(Le()), { loading: ke, FINAL_DATASET: re, manualLoading: xe, skeletonDataset: qt } = Il({
|
|
166
|
+
...vl(k),
|
|
167
167
|
FINAL_CONFIG: e,
|
|
168
168
|
prepareConfig: Le,
|
|
169
169
|
skeletonDataset: [
|
|
@@ -183,7 +183,7 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
183
183
|
color: "#CACACA"
|
|
184
184
|
}
|
|
185
185
|
],
|
|
186
|
-
skeletonConfig:
|
|
186
|
+
skeletonConfig: pl({
|
|
187
187
|
defaultConfig: e.value,
|
|
188
188
|
userConfig: {
|
|
189
189
|
useCssAnimation: !1,
|
|
@@ -220,8 +220,8 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
220
220
|
}
|
|
221
221
|
}
|
|
222
222
|
})
|
|
223
|
-
}), T =
|
|
224
|
-
function
|
|
223
|
+
}), T = g(!0), U = H([]);
|
|
224
|
+
function Ut(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);
|
|
@@ -230,7 +230,7 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
230
230
|
setTimeout(() => {
|
|
231
231
|
const z = performance.now();
|
|
232
232
|
function O(B) {
|
|
233
|
-
const Z = Math.min((B - z) / o, 1), Ye =
|
|
233
|
+
const Z = Math.min((B - z) / o, 1), Ye = Ft(Z);
|
|
234
234
|
U.value[C] = m * Ye, 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);
|
|
@@ -238,18 +238,18 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
238
238
|
});
|
|
239
239
|
});
|
|
240
240
|
}
|
|
241
|
-
const
|
|
241
|
+
const et = g(!1);
|
|
242
242
|
ge(
|
|
243
243
|
() => ke.value,
|
|
244
244
|
async (l) => {
|
|
245
|
-
if (l ||
|
|
246
|
-
const o = re.value ===
|
|
245
|
+
if (l || et.value) return;
|
|
246
|
+
const o = re.value === qt, t = e.value.startAnimation?.show;
|
|
247
247
|
if (!o && t) {
|
|
248
|
-
|
|
248
|
+
et.value = !0;
|
|
249
249
|
const a = re.value.map(
|
|
250
250
|
(i) => i.values.reduce((c, m) => c + m, 0)
|
|
251
251
|
);
|
|
252
|
-
await
|
|
252
|
+
await Ut(
|
|
253
253
|
a,
|
|
254
254
|
e.value.startAnimation.durationMs,
|
|
255
255
|
e.value.startAnimation.staggerMs
|
|
@@ -259,17 +259,17 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
259
259
|
},
|
|
260
260
|
{ immediate: !0 }
|
|
261
261
|
);
|
|
262
|
-
const { userOptionsVisible: Ie, setUserOptionsVisibility:
|
|
263
|
-
function Ut() {
|
|
264
|
-
et(!0);
|
|
265
|
-
}
|
|
262
|
+
const { userOptionsVisible: Ie, setUserOptionsVisibility: tt, keepUserOptionState: lt } = zl({ config: e.value }), { svgRef: ie } = Ol({ config: e.value.style.chart.title });
|
|
266
263
|
function Wt() {
|
|
267
|
-
|
|
264
|
+
tt(!0);
|
|
265
|
+
}
|
|
266
|
+
function Ht() {
|
|
267
|
+
tt(!1);
|
|
268
268
|
}
|
|
269
269
|
ge(() => k.config, (l) => {
|
|
270
|
-
ke.value || (e.value = Le()), Ie.value = !e.value.userOptions.showOnChartHover,
|
|
270
|
+
ke.value || (e.value = Le()), Ie.value = !e.value.userOptions.showOnChartHover, Qe(), He.value += 1, je.value += 1, Je.value += 1, p.value.dataLabels.show = e.value.style.chart.layout.labels.dataLabels.show, p.value.showTable = e.value.table.show, p.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 at = f(() => {
|
|
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,11 +278,11 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
278
278
|
bottom: t,
|
|
279
279
|
left: a
|
|
280
280
|
};
|
|
281
|
-
}), { isPrinting:
|
|
282
|
-
elementId: `donut__${
|
|
281
|
+
}), { isPrinting: ot, isImaging: st, generatePdf: nt, generateImage: ut } = Ll({
|
|
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
|
+
}), jt = f(() => e.value.userOptions.show && !e.value.style.chart.title.text), rt = f(() => gl(e.value.customPalette)), p = g({
|
|
286
286
|
dataLabels: {
|
|
287
287
|
show: e.value.style.chart.layout.labels.dataLabels.show
|
|
288
288
|
},
|
|
@@ -290,7 +290,7 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
290
290
|
showTooltip: e.value.style.chart.tooltip.show
|
|
291
291
|
});
|
|
292
292
|
ge(e, () => {
|
|
293
|
-
|
|
293
|
+
p.value = {
|
|
294
294
|
dataLabels: {
|
|
295
295
|
show: e.value.style.chart.layout.labels.dataLabels.show
|
|
296
296
|
},
|
|
@@ -298,24 +298,24 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
298
298
|
showTooltip: e.value.style.chart.tooltip.show
|
|
299
299
|
};
|
|
300
300
|
}, { immediate: !0 });
|
|
301
|
-
const s =
|
|
301
|
+
const s = g({
|
|
302
302
|
height: e.value.style.chart.height,
|
|
303
303
|
width: e.value.style.chart.width
|
|
304
|
-
}),
|
|
304
|
+
}), te = f(() => {
|
|
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
|
+
}), it = Mt, G = f(() => re.value.map((l, o) => ({
|
|
310
310
|
name: l.name,
|
|
311
|
-
color:
|
|
312
|
-
value:
|
|
311
|
+
color: Tt(l.color) || rt.value[o] || ne[o] || ne[o % ne.length],
|
|
312
|
+
value: ml(l.values.reduce((t, a) => t + a, 0)),
|
|
313
313
|
absoluteValues: l.values,
|
|
314
314
|
comment: l.comment || "",
|
|
315
315
|
patternIndex: o,
|
|
316
316
|
seriesIndex: o,
|
|
317
317
|
ghost: !1,
|
|
318
|
-
pattern: `pattern_${
|
|
318
|
+
pattern: `pattern_${y.value}_${o}`
|
|
319
319
|
})));
|
|
320
320
|
ge(() => k.dataset, (l) => {
|
|
321
321
|
Array.isArray(l) && l.length > 0 && (xe.value = !1);
|
|
@@ -324,15 +324,15 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
324
324
|
ge(() => G.value, (l) => {
|
|
325
325
|
M.value = l, requestAnimationFrame(R);
|
|
326
326
|
});
|
|
327
|
-
function
|
|
327
|
+
function Jt() {
|
|
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 =
|
|
335
|
-
function
|
|
334
|
+
const q = g([]), le = g(!1);
|
|
335
|
+
function vt({ from: l, to: o, duration: t, onUpdate: a, onDone: i, easing: c = Ft }) {
|
|
336
336
|
const m = performance.now();
|
|
337
337
|
function C(z) {
|
|
338
338
|
const O = Math.min((z - m) / t, 1), B = c(O), Z = l + (o - l) * B;
|
|
@@ -340,7 +340,7 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
340
340
|
}
|
|
341
341
|
requestAnimationFrame(C);
|
|
342
342
|
}
|
|
343
|
-
function
|
|
343
|
+
function dt(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,7 +349,7 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
349
349
|
(C, z) => l === z ? { ...C, value: i } : C
|
|
350
350
|
);
|
|
351
351
|
}, m = function() {
|
|
352
|
-
|
|
352
|
+
le.value = !0, vt({
|
|
353
353
|
from: a,
|
|
354
354
|
to: i,
|
|
355
355
|
duration: e.value.serieToggleAnimation.durationMs,
|
|
@@ -359,7 +359,7 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
359
359
|
), requestAnimationFrame(R);
|
|
360
360
|
},
|
|
361
361
|
onDone: () => {
|
|
362
|
-
c(),
|
|
362
|
+
c(), le.value = !1;
|
|
363
363
|
}
|
|
364
364
|
});
|
|
365
365
|
};
|
|
@@ -372,7 +372,7 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
372
372
|
(m, C) => l === C ? { ...m, value: 0 } : m
|
|
373
373
|
);
|
|
374
374
|
}, c = function() {
|
|
375
|
-
|
|
375
|
+
le.value = !0, vt({
|
|
376
376
|
from: a,
|
|
377
377
|
to: 0,
|
|
378
378
|
duration: e.value.serieToggleAnimation.durationMs,
|
|
@@ -382,26 +382,26 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
382
382
|
), requestAnimationFrame(R);
|
|
383
383
|
},
|
|
384
384
|
onDone: () => {
|
|
385
|
-
i(), requestAnimationFrame(R),
|
|
385
|
+
i(), requestAnimationFrame(R), le.value = !1;
|
|
386
386
|
}
|
|
387
387
|
});
|
|
388
388
|
};
|
|
389
389
|
e.value.serieToggleAnimation.show && e.value.type === "classic" ? c() : i();
|
|
390
390
|
}
|
|
391
|
-
|
|
391
|
+
it("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
|
|
397
|
+
const Kt = f(() => re.value.reduce((l, o) => l + o.values.reduce((t, a) => t + a, 0), 0)), W = f(() => {
|
|
398
398
|
if (T.value && !ke.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 = Kt.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,9 +419,9 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
419
419
|
...l,
|
|
420
420
|
seriesIndex: o
|
|
421
421
|
})).filter((l, o) => !q.value.includes(o));
|
|
422
|
-
}),
|
|
422
|
+
}), ct = f(() => re.value.map((l, o) => ({
|
|
423
423
|
name: l.name,
|
|
424
|
-
color:
|
|
424
|
+
color: Tt(l.color) || rt.value[o] || ne[o] || ne[o % ne.length],
|
|
425
425
|
value: (l.values || []).reduce((t, a) => t + a, 0),
|
|
426
426
|
shape: "circle",
|
|
427
427
|
patternIndex: o
|
|
@@ -429,19 +429,19 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
429
429
|
...l,
|
|
430
430
|
proportion: l.value / re.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: () => !le.value && dt(o),
|
|
433
433
|
isSegregated: q.value.includes(o)
|
|
434
|
-
}))),
|
|
434
|
+
}))), Qt = f(() => ({
|
|
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
|
+
})), _ = f(() => {
|
|
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 = f(() => St({ series: W.value }, s.value.width / 2, s.value.height / 2, _.value, _.value, 1.99999, 2, 1, 360, 105.25, te.value)), Zt = f(() => Math.abs(W.value.map((l) => l.value).reduce((l, o) => l + o, 0)) > 0), el = f(() => St({
|
|
445
445
|
series: [
|
|
446
446
|
{
|
|
447
447
|
value: 1,
|
|
@@ -453,9 +453,9 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
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, te.value)), X = f(() => S.value.filter((l) => !l.ghost)), d = f(() => {
|
|
457
457
|
const l = Math.max(...W.value.map((t) => t.value)), o = W.value.map((t) => t.value / l);
|
|
458
|
-
return
|
|
458
|
+
return bl({
|
|
459
459
|
series: o,
|
|
460
460
|
center: {
|
|
461
461
|
x: s.value.width / 2,
|
|
@@ -468,14 +468,14 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
468
468
|
function ve(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 tl(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
474
|
function D(l) {
|
|
475
475
|
return l.proportion * 100 > e.value.style.chart.layout.labels.dataLabels.hideUnderValue;
|
|
476
476
|
}
|
|
477
477
|
function Me(l, o) {
|
|
478
|
-
const t = l.value /
|
|
478
|
+
const t = l.value / ll(o);
|
|
479
479
|
return isNaN(t) ? 0 : V(
|
|
480
480
|
e.value.style.chart.layout.labels.percentage.formatter,
|
|
481
481
|
t * 100,
|
|
@@ -487,10 +487,10 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
487
487
|
{ datapoint: l }
|
|
488
488
|
);
|
|
489
489
|
}
|
|
490
|
-
function
|
|
490
|
+
function ll(l) {
|
|
491
491
|
return [...l].map((o) => o.value).reduce((o, t) => o + t, 0);
|
|
492
492
|
}
|
|
493
|
-
const F =
|
|
493
|
+
const F = f(() => W.value.map((l) => l.value).reduce((l, o) => l + o, 0)), ze = f(() => F.value / W.value.length), ht = f(() => (l) => le.value ? l.proportion * 100 : l.value / F.value * 100), Oe = g(null), pe = g(!1);
|
|
494
494
|
function de({ datapoint: l, seriesIndex: o }) {
|
|
495
495
|
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: l, seriesIndex: o }), Pe.value = !1, Y.value = null;
|
|
496
496
|
}
|
|
@@ -498,7 +498,7 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
498
498
|
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: l, seriesIndex: t }), Oe.value = { datapoint: l, seriesIndex: t, config: e.value, series: G.value }, Pe.value = a, Y.value = o;
|
|
499
499
|
let i = "";
|
|
500
500
|
const c = e.value.style.chart.tooltip.customFormat;
|
|
501
|
-
if (pe.value = !1,
|
|
501
|
+
if (pe.value = !1, Sl(c))
|
|
502
502
|
try {
|
|
503
503
|
const m = c({
|
|
504
504
|
seriesIndex: t,
|
|
@@ -511,7 +511,7 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
511
511
|
console.warn("Custom format cannot be applied."), pe.value = !1;
|
|
512
512
|
}
|
|
513
513
|
if (!pe.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}"/>${
|
|
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}"/>${Vt.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>${V(
|
|
515
515
|
e.value.style.chart.layout.labels.value.formatter,
|
|
516
516
|
l.value,
|
|
517
517
|
N({
|
|
@@ -545,25 +545,25 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
545
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>`), Fe.value = `<div>${i}</div>`;
|
|
546
546
|
}
|
|
547
547
|
}
|
|
548
|
-
function
|
|
549
|
-
return e.value.useBlurOnHover && ![null, void 0].includes(Y.value) && Y.value !== l ? `url(#blur_${
|
|
548
|
+
function ae(l) {
|
|
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 = f(() => {
|
|
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 yt(l = null) {
|
|
559
|
+
cl(() => {
|
|
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 = Al(t);
|
|
563
|
+
l ? l(a) : Tl({ csvContent: a, title: e.value.style.chart.title.text || "vue-ui-donut" });
|
|
564
564
|
});
|
|
565
565
|
}
|
|
566
|
-
const _e =
|
|
566
|
+
const _e = f(() => {
|
|
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 Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
598
598
|
body: o,
|
|
599
599
|
config: t
|
|
600
600
|
};
|
|
601
|
-
}), he =
|
|
602
|
-
function
|
|
603
|
-
he.value = l,
|
|
601
|
+
}), he = g(!1);
|
|
602
|
+
function ft(l) {
|
|
603
|
+
he.value = l, Ze.value += 1;
|
|
604
604
|
}
|
|
605
|
-
const
|
|
606
|
-
function
|
|
605
|
+
const pt = f(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent));
|
|
606
|
+
function al(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 }),
|
|
611
|
-
}
|
|
612
|
-
function pt() {
|
|
613
|
-
f.value.showTable = !f.value.showTable;
|
|
610
|
+
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex: l.seriesIndex }), it("selectDatapoint", { datapoint: l, index: o });
|
|
614
611
|
}
|
|
615
612
|
function gt() {
|
|
616
|
-
|
|
613
|
+
p.value.showTable = !p.value.showTable;
|
|
617
614
|
}
|
|
618
615
|
function mt() {
|
|
619
|
-
|
|
616
|
+
p.value.dataLabels.show = !p.value.dataLabels.show;
|
|
620
617
|
}
|
|
621
|
-
|
|
618
|
+
function bt() {
|
|
619
|
+
p.value.showTooltip = !p.value.showTooltip;
|
|
620
|
+
}
|
|
621
|
+
const $e = g(!1);
|
|
622
622
|
function Ne() {
|
|
623
623
|
$e.value = !$e.value;
|
|
624
624
|
}
|
|
625
|
-
async function
|
|
625
|
+
async function ol({ scale: l = 2 } = {}) {
|
|
626
626
|
if (!E.value) return;
|
|
627
|
-
const { width: o, height: t } = E.value.getBoundingClientRect(), a = o / t, { imageUri: i, base64: c } = await
|
|
627
|
+
const { width: o, height: t } = E.value.getBoundingClientRect(), a = o / t, { imageUri: i, base64: c } = await Nl({ domElement: E.value, base64: !0, img: !0, scale: l });
|
|
628
628
|
return {
|
|
629
629
|
imageUri: i,
|
|
630
630
|
base64: c,
|
|
@@ -634,33 +634,33 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
634
634
|
aspectRatio: a
|
|
635
635
|
};
|
|
636
636
|
}
|
|
637
|
-
function
|
|
637
|
+
function sl() {
|
|
638
638
|
if (!be.value) return;
|
|
639
639
|
const { x: l, y: o, width: t, height: a } = be.value.getBBox();
|
|
640
640
|
ie.value && ie.value.setAttribute("viewBox", `${l} ${o} ${t + Math.min(0, l)} ${a + Math.min(0, o)}`);
|
|
641
641
|
}
|
|
642
|
-
return
|
|
643
|
-
autoSize:
|
|
644
|
-
getData:
|
|
645
|
-
getImage:
|
|
646
|
-
generatePdf:
|
|
647
|
-
generateCsv:
|
|
648
|
-
generateImage:
|
|
649
|
-
toggleTable:
|
|
650
|
-
toggleLabels:
|
|
651
|
-
toggleTooltip:
|
|
642
|
+
return It({
|
|
643
|
+
autoSize: sl,
|
|
644
|
+
getData: Jt,
|
|
645
|
+
getImage: ol,
|
|
646
|
+
generatePdf: nt,
|
|
647
|
+
generateCsv: yt,
|
|
648
|
+
generateImage: ut,
|
|
649
|
+
toggleTable: gt,
|
|
650
|
+
toggleLabels: mt,
|
|
651
|
+
toggleTooltip: bt,
|
|
652
652
|
toggleAnnotator: Ne,
|
|
653
|
-
toggleFullscreen:
|
|
653
|
+
toggleFullscreen: ft
|
|
654
654
|
}), (l, o) => (n(), r("div", {
|
|
655
655
|
ref_key: "donutChart",
|
|
656
656
|
ref: E,
|
|
657
657
|
class: Xe(`vue-ui-donut ${he.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
658
658
|
style: $(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height:100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
659
|
-
id: `donut__${
|
|
660
|
-
onMouseenter:
|
|
661
|
-
onMouseleave:
|
|
659
|
+
id: `donut__${y.value}`,
|
|
660
|
+
onMouseenter: Wt,
|
|
661
|
+
onMouseleave: Ht
|
|
662
662
|
}, [
|
|
663
|
-
e.value.userOptions.buttons.annotator && u(ie) ? (n(),
|
|
663
|
+
e.value.userOptions.buttons.annotator && u(ie) ? (n(), ee(u(Yt), {
|
|
664
664
|
key: 0,
|
|
665
665
|
color: e.value.style.chart.color,
|
|
666
666
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -669,7 +669,7 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
669
669
|
onClose: Ne
|
|
670
670
|
}, null, 8, ["color", "backgroundColor", "active", "svgRef"])) : v("", !0),
|
|
671
671
|
b(l.$slots, "userConfig", {}, void 0, !0),
|
|
672
|
-
|
|
672
|
+
jt.value ? (n(), r("div", {
|
|
673
673
|
key: 1,
|
|
674
674
|
ref_key: "noTitle",
|
|
675
675
|
ref: We,
|
|
@@ -682,7 +682,7 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
682
682
|
ref: Ge,
|
|
683
683
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
684
684
|
}, [
|
|
685
|
-
(n(),
|
|
685
|
+
(n(), ee(Xl, {
|
|
686
686
|
key: `title_${He.value}`,
|
|
687
687
|
config: {
|
|
688
688
|
title: {
|
|
@@ -696,15 +696,18 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
696
696
|
}
|
|
697
697
|
}, null, 8, ["config"]))
|
|
698
698
|
], 512)) : v("", !0),
|
|
699
|
-
|
|
699
|
+
h("div", {
|
|
700
|
+
id: `legend-top-${y.value}`
|
|
701
|
+
}, null, 8, El),
|
|
702
|
+
e.value.userOptions.show && me.value && (u(lt) || u(Ie)) ? (n(), ee(u(Dt), {
|
|
700
703
|
ref_key: "details",
|
|
701
|
-
ref:
|
|
702
|
-
key: `user_option_${
|
|
704
|
+
ref: Gt,
|
|
705
|
+
key: `user_option_${Ze.value}`,
|
|
703
706
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
704
707
|
color: e.value.style.chart.color,
|
|
705
|
-
isPrinting: u(
|
|
706
|
-
isImaging: u(
|
|
707
|
-
uid:
|
|
708
|
+
isPrinting: u(ot),
|
|
709
|
+
isImaging: u(st),
|
|
710
|
+
uid: y.value,
|
|
708
711
|
hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
|
|
709
712
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
710
713
|
hasImg: e.value.userOptions.buttons.img,
|
|
@@ -716,23 +719,23 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
716
719
|
chartElement: E.value,
|
|
717
720
|
position: e.value.userOptions.position,
|
|
718
721
|
callbacks: e.value.userOptions.callbacks,
|
|
719
|
-
isTooltip:
|
|
722
|
+
isTooltip: p.value.showTooltip,
|
|
720
723
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
721
724
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
722
725
|
isAnnotation: $e.value,
|
|
723
726
|
printScale: e.value.userOptions.print.scale,
|
|
724
|
-
onToggleFullscreen:
|
|
725
|
-
onGeneratePdf: u(
|
|
726
|
-
onGenerateCsv:
|
|
727
|
-
onGenerateImage: u(
|
|
728
|
-
onToggleTable:
|
|
729
|
-
onToggleLabels:
|
|
730
|
-
onToggleTooltip:
|
|
727
|
+
onToggleFullscreen: ft,
|
|
728
|
+
onGeneratePdf: u(nt),
|
|
729
|
+
onGenerateCsv: yt,
|
|
730
|
+
onGenerateImage: u(ut),
|
|
731
|
+
onToggleTable: gt,
|
|
732
|
+
onToggleLabels: mt,
|
|
733
|
+
onToggleTooltip: bt,
|
|
731
734
|
onToggleAnnotator: Ne,
|
|
732
735
|
style: $({
|
|
733
|
-
visibility: u(
|
|
736
|
+
visibility: u(lt) ? u(Ie) ? "visible" : "hidden" : "visible"
|
|
734
737
|
})
|
|
735
|
-
},
|
|
738
|
+
}, xt({ _: 2 }, [
|
|
736
739
|
l.$slots.menuIcon ? {
|
|
737
740
|
name: "menuIcon",
|
|
738
741
|
fn: A(({ isOpen: t, color: a }) => [
|
|
@@ -800,17 +803,17 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
800
803
|
(n(), r("svg", {
|
|
801
804
|
ref_key: "svgRef",
|
|
802
805
|
ref: ie,
|
|
803
|
-
xmlns: u(
|
|
806
|
+
xmlns: u(wl),
|
|
804
807
|
class: Xe({ "vue-data-ui-fullscreen--on": he.value, "vue-data-ui-fulscreen--off": !he.value, "vue-data-ui-svg": !0 }),
|
|
805
808
|
viewBox: `0 0 ${s.value.width <= 0 ? 10 : s.value.width} ${s.value.height <= 0 ? 10 : s.value.height}`,
|
|
806
|
-
style: $(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};${
|
|
809
|
+
style: $(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};${at.value.css}`)
|
|
807
810
|
}, [
|
|
808
811
|
h("g", {
|
|
809
812
|
ref_key: "G",
|
|
810
813
|
ref: be,
|
|
811
814
|
class: "vue-data-ui-g"
|
|
812
815
|
}, [
|
|
813
|
-
De(u(
|
|
816
|
+
De(u(Nt)),
|
|
814
817
|
l.$slots["chart-background"] ? (n(), r("foreignObject", {
|
|
815
818
|
key: 0,
|
|
816
819
|
x: 0,
|
|
@@ -822,54 +825,54 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
822
825
|
}
|
|
823
826
|
}, [
|
|
824
827
|
b(l.$slots, "chart-background", {}, void 0, !0)
|
|
825
|
-
], 8,
|
|
826
|
-
e.value.type === "classic" && !isNaN(
|
|
828
|
+
], 8, Gl)) : v("", !0),
|
|
829
|
+
e.value.type === "classic" && !isNaN(te.value / _.value) ? (n(), r("defs", ql, [
|
|
827
830
|
e.value.style.chart.useGradient ? (n(), r("radialGradient", {
|
|
828
831
|
key: 0,
|
|
829
|
-
id: `gradient_${
|
|
832
|
+
id: `gradient_${y.value}`
|
|
830
833
|
}, [
|
|
831
834
|
h("stop", {
|
|
832
835
|
offset: "0%",
|
|
833
836
|
"stop-color": u(Ce)(e.value.style.chart.backgroundColor, 0),
|
|
834
837
|
"stop-opacity": "0"
|
|
835
|
-
}, null, 8,
|
|
838
|
+
}, null, 8, Wl),
|
|
836
839
|
h("stop", {
|
|
837
|
-
offset: `${(1 -
|
|
840
|
+
offset: `${(1 - te.value / _.value) * 100}%`,
|
|
838
841
|
"stop-color": u(Ce)("#FFFFFF", 0),
|
|
839
842
|
"stop-opacity": "0"
|
|
840
|
-
}, null, 8,
|
|
843
|
+
}, null, 8, Hl),
|
|
841
844
|
h("stop", {
|
|
842
|
-
offset: `${(1 -
|
|
845
|
+
offset: `${(1 - te.value / _.value / 2) * 100}%`,
|
|
843
846
|
"stop-color": u(Ce)("#FFFFFF", e.value.style.chart.gradientIntensity)
|
|
844
|
-
}, null, 8,
|
|
847
|
+
}, null, 8, jl),
|
|
845
848
|
h("stop", {
|
|
846
849
|
offset: "100%",
|
|
847
850
|
"stop-color": u(Ce)(e.value.style.chart.backgroundColor, 0),
|
|
848
851
|
"stop-opacity": "0"
|
|
849
|
-
}, null, 8,
|
|
850
|
-
], 8,
|
|
852
|
+
}, null, 8, Jl)
|
|
853
|
+
], 8, Ul)) : v("", !0)
|
|
851
854
|
])) : v("", !0),
|
|
852
|
-
e.value.type === "polar" ? (n(), r("defs",
|
|
855
|
+
e.value.type === "polar" ? (n(), r("defs", Kl, [
|
|
853
856
|
(n(!0), r(w, null, L(d.value, (t, a) => (n(), r("radialGradient", {
|
|
854
|
-
id: `polar_gradient_${a}_${
|
|
857
|
+
id: `polar_gradient_${a}_${y.value}`,
|
|
855
858
|
cx: (isNaN(t.middlePoint.x / s.value.width * 100) ? 0 : t.middlePoint.x / s.value.width * 100) + "%",
|
|
856
859
|
cy: (isNaN(t.middlePoint.y / s.value.height * 100) ? 0 : t.middlePoint.y / s.value.height * 100) + "%",
|
|
857
860
|
r: "62%"
|
|
858
861
|
}, [
|
|
859
862
|
h("stop", {
|
|
860
863
|
offset: "0%",
|
|
861
|
-
"stop-color": u(
|
|
864
|
+
"stop-color": u(kl)(S.value[a].color, 0.05),
|
|
862
865
|
"stop-opacity": e.value.style.chart.gradientIntensity / 100
|
|
863
|
-
}, null, 8,
|
|
866
|
+
}, null, 8, Zl),
|
|
864
867
|
h("stop", {
|
|
865
868
|
offset: "100%",
|
|
866
869
|
"stop-color": S.value[a].color
|
|
867
|
-
}, null, 8,
|
|
868
|
-
], 8,
|
|
870
|
+
}, null, 8, ea)
|
|
871
|
+
], 8, Ql))), 256))
|
|
869
872
|
])) : v("", !0),
|
|
870
873
|
h("defs", null, [
|
|
871
874
|
h("filter", {
|
|
872
|
-
id: `blur_${
|
|
875
|
+
id: `blur_${y.value}`,
|
|
873
876
|
x: "-50%",
|
|
874
877
|
y: "-50%",
|
|
875
878
|
width: "200%",
|
|
@@ -878,15 +881,15 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
878
881
|
h("feGaussianBlur", {
|
|
879
882
|
in: "SourceGraphic",
|
|
880
883
|
stdDeviation: 2,
|
|
881
|
-
id: `blur_std_${
|
|
882
|
-
}, null, 8,
|
|
884
|
+
id: `blur_std_${y.value}`
|
|
885
|
+
}, null, 8, la),
|
|
883
886
|
o[5] || (o[5] = h("feColorMatrix", {
|
|
884
887
|
type: "saturate",
|
|
885
888
|
values: "0"
|
|
886
889
|
}, null, -1))
|
|
887
|
-
], 8,
|
|
890
|
+
], 8, ta),
|
|
888
891
|
h("filter", {
|
|
889
|
-
id: `shadow_${
|
|
892
|
+
id: `shadow_${y.value}`,
|
|
890
893
|
"color-interpolation-filters": "sRGB"
|
|
891
894
|
}, [
|
|
892
895
|
h("feDropShadow", {
|
|
@@ -895,10 +898,10 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
895
898
|
stdDeviation: "10",
|
|
896
899
|
"flood-opacity": "0.5",
|
|
897
900
|
"flood-color": e.value.style.chart.layout.donut.shadowColor
|
|
898
|
-
}, null, 8,
|
|
899
|
-
], 8,
|
|
901
|
+
}, null, 8, oa)
|
|
902
|
+
], 8, aa),
|
|
900
903
|
h("filter", {
|
|
901
|
-
id: `drop_shadow_${
|
|
904
|
+
id: `drop_shadow_${y.value}`,
|
|
902
905
|
"color-interpolation-filters": "sRGB",
|
|
903
906
|
x: "-50%",
|
|
904
907
|
y: "-50%",
|
|
@@ -911,23 +914,23 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
911
914
|
stdDeviation: "3",
|
|
912
915
|
"flood-opacity": "1",
|
|
913
916
|
"flood-color": e.value.style.chart.layout.donut.shadowColor
|
|
914
|
-
}, null, 8,
|
|
915
|
-
], 8,
|
|
917
|
+
}, null, 8, na)
|
|
918
|
+
], 8, sa)
|
|
916
919
|
]),
|
|
917
920
|
e.value.type === "classic" ? (n(!0), r(w, { key: 3 }, L(S.value.filter((t) => !t.ghost), (t, a) => (n(), r("g", null, [
|
|
918
|
-
D(t) &&
|
|
921
|
+
D(t) && p.value.dataLabels.show ? (n(), r("path", {
|
|
919
922
|
key: 0,
|
|
920
|
-
d: u(
|
|
923
|
+
d: u(xl)(t, { x: s.value.width / 2, y: s.value.height / 2 }, 16, 16, !1, !1, te.value, 12, e.value.style.chart.layout.curvedMarkers),
|
|
921
924
|
stroke: t.color,
|
|
922
925
|
"stroke-width": "1",
|
|
923
926
|
"stroke-linecap": "round",
|
|
924
927
|
"stroke-linejoin": "round",
|
|
925
928
|
fill: "none",
|
|
926
|
-
filter:
|
|
927
|
-
}, null, 8,
|
|
929
|
+
filter: ae(a)
|
|
930
|
+
}, null, 8, ua)) : v("", !0)
|
|
928
931
|
]))), 256)) : v("", !0),
|
|
929
932
|
e.value.type === "polar" ? (n(!0), r(w, { key: 4 }, L(S.value.filter((t) => !t.ghost), (t, a) => (n(), r("g", null, [
|
|
930
|
-
D(t) &&
|
|
933
|
+
D(t) && p.value.dataLabels.show ? (n(), r("path", {
|
|
931
934
|
key: 0,
|
|
932
935
|
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}`,
|
|
933
936
|
stroke: t.color,
|
|
@@ -935,11 +938,11 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
935
938
|
"stroke-linecap": "round",
|
|
936
939
|
"stroke-linejoin": "round",
|
|
937
940
|
fill: "none",
|
|
938
|
-
filter:
|
|
941
|
+
filter: ae(a),
|
|
939
942
|
style: $({
|
|
940
943
|
transition: T.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
941
944
|
})
|
|
942
|
-
}, null, 12,
|
|
945
|
+
}, null, 12, ra)) : v("", !0)
|
|
943
946
|
]))), 256)) : v("", !0),
|
|
944
947
|
e.value.type === "classic" && e.value.style.chart.layout.donut.useShadow ? (n(), r("circle", {
|
|
945
948
|
key: 5,
|
|
@@ -947,13 +950,13 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
947
950
|
cy: s.value.height / 2,
|
|
948
951
|
r: _.value <= 0 ? 10 : _.value,
|
|
949
952
|
fill: e.value.style.chart.backgroundColor,
|
|
950
|
-
filter: `url(#shadow_${
|
|
951
|
-
}, null, 8,
|
|
952
|
-
l.$slots.pattern ? (n(), r("g",
|
|
953
|
+
filter: `url(#shadow_${y.value})`
|
|
954
|
+
}, null, 8, ia)) : v("", !0),
|
|
955
|
+
l.$slots.pattern ? (n(), r("g", va, [
|
|
953
956
|
(n(!0), r(w, null, L(Re.dataset, (t, a) => (n(), r("defs", {
|
|
954
957
|
key: `pattern-${t.patternIndex}`
|
|
955
958
|
}, [
|
|
956
|
-
b(l.$slots, "pattern",
|
|
959
|
+
b(l.$slots, "pattern", _t({ ref_for: !0 }, { seriesIndex: a, patternId: `pattern_${y.value}_${a}` }), void 0, !0)
|
|
957
960
|
]))), 128))
|
|
958
961
|
])) : v("", !0),
|
|
959
962
|
F.value && e.value.type === "classic" ? (n(), r(w, { key: 7 }, [
|
|
@@ -961,28 +964,28 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
961
964
|
stroke: e.value.style.chart.backgroundColor,
|
|
962
965
|
d: t.arcSlice,
|
|
963
966
|
fill: "#FFFFFF"
|
|
964
|
-
}, null, 8,
|
|
967
|
+
}, null, 8, da))), 256)),
|
|
965
968
|
(n(!0), r(w, null, L(X.value, (t, a) => (n(), r("path", {
|
|
966
969
|
class: "vue-ui-donut-arc-path",
|
|
967
970
|
d: t.arcSlice,
|
|
968
971
|
fill: t.color,
|
|
969
972
|
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
970
973
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
971
|
-
filter:
|
|
972
|
-
}, null, 8,
|
|
973
|
-
l.$slots.pattern ? (n(), r("g",
|
|
974
|
+
filter: ae(a)
|
|
975
|
+
}, null, 8, ca))), 256)),
|
|
976
|
+
l.$slots.pattern ? (n(), r("g", ha, [
|
|
974
977
|
(n(!0), r(w, null, L(X.value, (t, a) => (n(), r("path", {
|
|
975
978
|
class: "vue-ui-donut-arc-path",
|
|
976
979
|
d: t.arcSlice,
|
|
977
980
|
fill: `url(#${t.pattern})`,
|
|
978
981
|
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
979
982
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
980
|
-
filter:
|
|
981
|
-
}, null, 8,
|
|
983
|
+
filter: ae(a)
|
|
984
|
+
}, null, 8, ya))), 256))
|
|
982
985
|
])) : v("", !0)
|
|
983
986
|
], 64)) : v("", !0),
|
|
984
987
|
F.value && e.value.type === "polar" ? (n(), r(w, { key: 8 }, [
|
|
985
|
-
S.value.length > 1 ? (n(), r("g",
|
|
988
|
+
S.value.length > 1 ? (n(), r("g", fa, [
|
|
986
989
|
(n(!0), r(w, null, L(X.value, (t, a) => (n(), r("path", {
|
|
987
990
|
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
988
991
|
d: d.value[a].path,
|
|
@@ -990,73 +993,73 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
990
993
|
style: $({
|
|
991
994
|
transition: T.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
992
995
|
})
|
|
993
|
-
}, null, 12,
|
|
994
|
-
e.value.style.chart.layout.donut.useShadow ? (n(), r("g",
|
|
996
|
+
}, null, 12, pa))), 256)),
|
|
997
|
+
e.value.style.chart.layout.donut.useShadow ? (n(), r("g", ga, [
|
|
995
998
|
(n(!0), r(w, null, L(X.value, (t, a) => (n(), r("path", {
|
|
996
999
|
class: "vue-ui-donut-arc-path",
|
|
997
1000
|
d: d.value[a].path,
|
|
998
1001
|
fill: "transparent",
|
|
999
1002
|
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
1000
1003
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
1001
|
-
filter: `url(#drop_shadow_${
|
|
1004
|
+
filter: `url(#drop_shadow_${y.value})`,
|
|
1002
1005
|
style: $({
|
|
1003
1006
|
transition: T.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
1004
1007
|
})
|
|
1005
|
-
}, null, 12,
|
|
1008
|
+
}, null, 12, ma))), 256))
|
|
1006
1009
|
])) : v("", !0),
|
|
1007
|
-
l.$slots.pattern ? (n(), r("g",
|
|
1010
|
+
l.$slots.pattern ? (n(), r("g", ba, [
|
|
1008
1011
|
(n(!0), r(w, null, L(X.value, (t, a) => (n(), r("path", {
|
|
1009
1012
|
class: "vue-ui-donut-arc-path",
|
|
1010
1013
|
d: d.value[a].path,
|
|
1011
1014
|
fill: `url(#${t.pattern})`,
|
|
1012
1015
|
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
1013
1016
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
1014
|
-
filter:
|
|
1017
|
+
filter: ae(a),
|
|
1015
1018
|
style: $({
|
|
1016
1019
|
transition: T.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`,
|
|
1017
1020
|
transformOrigin: "center"
|
|
1018
1021
|
})
|
|
1019
|
-
}, null, 12,
|
|
1022
|
+
}, null, 12, wa))), 256))
|
|
1020
1023
|
])) : v("", !0),
|
|
1021
1024
|
(n(!0), r(w, null, L(X.value, (t, a) => (n(), r("path", {
|
|
1022
1025
|
class: "vue-ui-donut-arc-path",
|
|
1023
1026
|
d: d.value[a].path,
|
|
1024
|
-
fill: e.value.style.chart.useGradient ? `url(#polar_gradient_${a}_${
|
|
1027
|
+
fill: e.value.style.chart.useGradient ? `url(#polar_gradient_${a}_${y.value})` : t.color,
|
|
1025
1028
|
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
1026
1029
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
1027
|
-
filter:
|
|
1030
|
+
filter: ae(a),
|
|
1028
1031
|
style: $({
|
|
1029
1032
|
transition: T.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
1030
1033
|
})
|
|
1031
|
-
}, null, 12,
|
|
1032
|
-
])) : (n(), r("g",
|
|
1034
|
+
}, null, 12, ka))), 256))
|
|
1035
|
+
])) : (n(), r("g", xa, [
|
|
1033
1036
|
l.$slots.pattern ? (n(), r("circle", {
|
|
1034
1037
|
key: 0,
|
|
1035
1038
|
cx: s.value.width / 2,
|
|
1036
1039
|
cy: s.value.height / 2,
|
|
1037
1040
|
r: _.value,
|
|
1038
|
-
fill: `url(#pattern_${
|
|
1041
|
+
fill: `url(#pattern_${y.value}_${S.value[0].patternIndex})`,
|
|
1039
1042
|
stroke: e.value.style.chart.backgroundColor,
|
|
1040
1043
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth
|
|
1041
|
-
}, null, 8,
|
|
1044
|
+
}, null, 8, _a)) : v("", !0),
|
|
1042
1045
|
h("circle", {
|
|
1043
1046
|
cx: s.value.width / 2,
|
|
1044
1047
|
cy: s.value.height / 2,
|
|
1045
1048
|
r: _.value,
|
|
1046
|
-
fill: e.value.style.chart.useGradient ? `url(#polar_gradient_0_${
|
|
1049
|
+
fill: e.value.style.chart.useGradient ? `url(#polar_gradient_0_${y.value})` : S.value[0].color,
|
|
1047
1050
|
stroke: e.value.style.chart.backgroundColor,
|
|
1048
1051
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth
|
|
1049
|
-
}, null, 8,
|
|
1052
|
+
}, null, 8, $a)
|
|
1050
1053
|
]))
|
|
1051
1054
|
], 64)) : (n(), r(w, { key: 9 }, [
|
|
1052
|
-
e.value.type === "classic" && !
|
|
1053
|
-
(n(!0), r(w, null, L(
|
|
1055
|
+
e.value.type === "classic" && !Zt.value ? (n(), r("g", Ca, [
|
|
1056
|
+
(n(!0), r(w, null, L(el.value, (t, a) => (n(), r("path", {
|
|
1054
1057
|
class: "vue-ui-donut-arc-path",
|
|
1055
1058
|
d: t.arcSlice,
|
|
1056
1059
|
fill: t.color,
|
|
1057
1060
|
stroke: e.value.style.chart.backgroundColor,
|
|
1058
1061
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth
|
|
1059
|
-
}, null, 8,
|
|
1062
|
+
}, null, 8, Aa))), 256))
|
|
1060
1063
|
])) : v("", !0),
|
|
1061
1064
|
h("circle", {
|
|
1062
1065
|
cx: s.value.width / 2,
|
|
@@ -1064,7 +1067,7 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
1064
1067
|
r: _.value <= 0 ? 10 : _.value,
|
|
1065
1068
|
fill: "transparent",
|
|
1066
1069
|
stroke: e.value.style.chart.backgroundColor
|
|
1067
|
-
}, null, 8,
|
|
1070
|
+
}, null, 8, Ta)
|
|
1068
1071
|
], 64)),
|
|
1069
1072
|
e.value.style.chart.useGradient && e.value.type === "classic" ? (n(), r("circle", {
|
|
1070
1073
|
key: 10,
|
|
@@ -1074,19 +1077,19 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
1074
1077
|
/* This might require adjustments */
|
|
1075
1078
|
_.value <= 0 ? 10 : _.value
|
|
1076
1079
|
),
|
|
1077
|
-
fill: `url(#gradient_${
|
|
1078
|
-
}, null, 8,
|
|
1080
|
+
fill: `url(#gradient_${y.value})`
|
|
1081
|
+
}, null, 8, Sa)) : v("", !0),
|
|
1079
1082
|
h("circle", {
|
|
1080
1083
|
ref_key: "circle_hollow",
|
|
1081
|
-
ref:
|
|
1084
|
+
ref: Rt,
|
|
1082
1085
|
style: { pointerEvents: "none" },
|
|
1083
1086
|
fill: "none",
|
|
1084
1087
|
cx: s.value.width / 2,
|
|
1085
1088
|
cy: s.value.height / 2,
|
|
1086
|
-
r: Math.max(0.1,
|
|
1087
|
-
}, null, 8,
|
|
1089
|
+
r: Math.max(0.1, te.value * 1.7)
|
|
1090
|
+
}, null, 8, Pa),
|
|
1088
1091
|
F.value ? (n(), r(w, { key: 11 }, [
|
|
1089
|
-
S.value.length > 1 || e.value.type === "classic" ? (n(), r("g",
|
|
1092
|
+
S.value.length > 1 || e.value.type === "classic" ? (n(), r("g", Fa, [
|
|
1090
1093
|
(n(!0), r(w, null, L(S.value.filter((t) => !t.ghost), (t, a) => (n(), r("path", {
|
|
1091
1094
|
d: e.value.type === "classic" ? t.arcSlice : d.value[a].path,
|
|
1092
1095
|
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
@@ -1099,8 +1102,8 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
1099
1102
|
}),
|
|
1100
1103
|
onMouseleave: (i) => de({ datapoint: t, seriesIndex: t.seriesIndex }),
|
|
1101
1104
|
onClick: (i) => Q(t, a)
|
|
1102
|
-
}, null, 40,
|
|
1103
|
-
])) : (n(), r("g",
|
|
1105
|
+
}, null, 40, La))), 256))
|
|
1106
|
+
])) : (n(), r("g", Ia, [
|
|
1104
1107
|
h("circle", {
|
|
1105
1108
|
cx: s.value.width / 2,
|
|
1106
1109
|
cy: s.value.height / 2,
|
|
@@ -1114,13 +1117,13 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
1114
1117
|
})),
|
|
1115
1118
|
onMouseleave: o[1] || (o[1] = (t) => de({ datapoint: S.value[0], seriesIndex: S.value[0].seriesIndex })),
|
|
1116
1119
|
onClick: o[2] || (o[2] = (t) => Q(S.value[0], l.i))
|
|
1117
|
-
}, null, 40,
|
|
1120
|
+
}, null, 40, Ma)
|
|
1118
1121
|
]))
|
|
1119
1122
|
], 64)) : v("", !0),
|
|
1120
1123
|
e.value.type === "classic" ? (n(), r("g", {
|
|
1121
1124
|
key: 12,
|
|
1122
1125
|
ref_key: "G_hollow",
|
|
1123
|
-
ref:
|
|
1126
|
+
ref: Et,
|
|
1124
1127
|
class: "vue-data-ui-donut-hollow-labels"
|
|
1125
1128
|
}, [
|
|
1126
1129
|
e.value.style.chart.layout.labels.hollow.total.show ? (n(), r("text", {
|
|
@@ -1131,7 +1134,7 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
1131
1134
|
fill: e.value.style.chart.layout.labels.hollow.total.color,
|
|
1132
1135
|
"font-size": e.value.style.chart.layout.labels.hollow.total.fontSize,
|
|
1133
1136
|
style: $(`font-weight:${e.value.style.chart.layout.labels.hollow.total.bold ? "bold" : ""}`)
|
|
1134
|
-
}, I(e.value.style.chart.layout.labels.hollow.total.text), 13,
|
|
1137
|
+
}, I(e.value.style.chart.layout.labels.hollow.total.text), 13, za)) : v("", !0),
|
|
1135
1138
|
e.value.style.chart.layout.labels.hollow.total.show ? (n(), r("text", {
|
|
1136
1139
|
key: 1,
|
|
1137
1140
|
"text-anchor": "middle",
|
|
@@ -1148,7 +1151,7 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
1148
1151
|
v: F.value,
|
|
1149
1152
|
s: e.value.style.chart.layout.labels.hollow.total.value.suffix
|
|
1150
1153
|
})
|
|
1151
|
-
)), 13,
|
|
1154
|
+
)), 13, Oa)) : v("", !0),
|
|
1152
1155
|
e.value.style.chart.layout.labels.hollow.average.show ? (n(), r("text", {
|
|
1153
1156
|
key: 2,
|
|
1154
1157
|
"text-anchor": "middle",
|
|
@@ -1157,7 +1160,7 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
1157
1160
|
fill: e.value.style.chart.layout.labels.hollow.average.color,
|
|
1158
1161
|
"font-size": e.value.style.chart.layout.labels.hollow.average.fontSize,
|
|
1159
1162
|
style: $(`font-weight:${e.value.style.chart.layout.labels.hollow.average.bold ? "bold" : ""}`)
|
|
1160
|
-
}, I(e.value.style.chart.layout.labels.hollow.average.text), 13,
|
|
1163
|
+
}, I(e.value.style.chart.layout.labels.hollow.average.text), 13, Na)) : v("", !0),
|
|
1161
1164
|
e.value.style.chart.layout.labels.hollow.average.show ? (n(), r("text", {
|
|
1162
1165
|
key: 3,
|
|
1163
1166
|
"text-anchor": "middle",
|
|
@@ -1166,7 +1169,7 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
1166
1169
|
fill: e.value.style.chart.layout.labels.hollow.average.value.color,
|
|
1167
1170
|
"font-size": e.value.style.chart.layout.labels.hollow.average.value.fontSize,
|
|
1168
1171
|
style: $(`font-weight:${e.value.style.chart.layout.labels.hollow.average.value.bold ? "bold" : ""}`)
|
|
1169
|
-
}, I(
|
|
1172
|
+
}, I(le.value || T.value ? "--" : u(V)(
|
|
1170
1173
|
e.value.style.chart.layout.labels.hollow.average.value.formatter,
|
|
1171
1174
|
ze.value,
|
|
1172
1175
|
u(N)({
|
|
@@ -1175,36 +1178,36 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
1175
1178
|
s: e.value.style.chart.layout.labels.hollow.average.value.suffix,
|
|
1176
1179
|
r: e.value.style.chart.layout.labels.hollow.average.value.rounding
|
|
1177
1180
|
})
|
|
1178
|
-
)), 13,
|
|
1181
|
+
)), 13, Ya)) : v("", !0)
|
|
1179
1182
|
], 512)) : v("", !0),
|
|
1180
1183
|
(n(!0), r(w, null, L(X.value.filter((t) => !t.ghost), (t, a) => (n(), r("g", {
|
|
1181
|
-
filter:
|
|
1184
|
+
filter: ae(a),
|
|
1182
1185
|
class: Xe({ animated: e.value.useCssAnimation }),
|
|
1183
1186
|
key: t.seriesIndex
|
|
1184
1187
|
}, [
|
|
1185
|
-
e.value.style.chart.layout.labels.dataLabels.useLabelSlots ? (n(), r("g",
|
|
1188
|
+
e.value.style.chart.layout.labels.dataLabels.useLabelSlots ? (n(), r("g", Da, [
|
|
1186
1189
|
(n(), r("foreignObject", {
|
|
1187
1190
|
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,
|
|
1188
|
-
y: u(fe)(t) - (
|
|
1191
|
+
y: u(fe)(t) - (pt.value ? 20 : 0),
|
|
1189
1192
|
width: "120",
|
|
1190
1193
|
height: "60",
|
|
1191
1194
|
style: { overflow: "visible" }
|
|
1192
1195
|
}, [
|
|
1193
1196
|
h("div", null, [
|
|
1194
|
-
b(l.$slots, "dataLabel",
|
|
1197
|
+
b(l.$slots, "dataLabel", _t({ ref_for: !0 }, {
|
|
1195
1198
|
datapoint: t,
|
|
1196
1199
|
isBlur: !e.value.useBlurOnHover || [null, void 0].includes(Y.value) || Y.value === a,
|
|
1197
|
-
isSafari:
|
|
1198
|
-
isVisible: D(t) &&
|
|
1200
|
+
isSafari: pt.value,
|
|
1201
|
+
isVisible: D(t) && p.value.dataLabels.show,
|
|
1199
1202
|
textAlign: u(x)(t, !0, 16, !0).anchor,
|
|
1200
1203
|
flexAlign: u(x)(t, !0, 16).anchor,
|
|
1201
1204
|
percentage: Me(t, X.value)
|
|
1202
1205
|
}), void 0, !0)
|
|
1203
1206
|
])
|
|
1204
|
-
], 8,
|
|
1205
|
-
])) : (n(), r("g",
|
|
1207
|
+
], 8, Ba))
|
|
1208
|
+
])) : (n(), r("g", Va, [
|
|
1206
1209
|
e.value.type === "classic" ? (n(), r(w, { key: 0 }, [
|
|
1207
|
-
D(t) &&
|
|
1210
|
+
D(t) && p.value.dataLabels.show ? (n(), r("circle", {
|
|
1208
1211
|
key: 0,
|
|
1209
1212
|
cx: u(x)(t).x,
|
|
1210
1213
|
cy: u(fe)(t) - 3.5,
|
|
@@ -1212,7 +1215,7 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
1212
1215
|
stroke: e.value.style.chart.backgroundColor,
|
|
1213
1216
|
"stroke-width": 1,
|
|
1214
1217
|
r: 3,
|
|
1215
|
-
filter: !e.value.useBlurOnHover || [null, void 0].includes(Y.value) || Y.value === a ? "" : `url(#blur_${
|
|
1218
|
+
filter: !e.value.useBlurOnHover || [null, void 0].includes(Y.value) || Y.value === a ? "" : `url(#blur_${y.value})`,
|
|
1216
1219
|
onClick: (i) => Q(t, a),
|
|
1217
1220
|
onMouseenter: (i) => ce({
|
|
1218
1221
|
datapoint: t,
|
|
@@ -1221,10 +1224,10 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
1221
1224
|
show: !0
|
|
1222
1225
|
}),
|
|
1223
1226
|
onMouseleave: (i) => de({ datapoint: t, seriesIndex: t.seriesIndex })
|
|
1224
|
-
}, null, 40,
|
|
1227
|
+
}, null, 40, Ea)) : v("", !0)
|
|
1225
1228
|
], 64)) : v("", !0),
|
|
1226
1229
|
e.value.type === "polar" ? (n(), r(w, { key: 1 }, [
|
|
1227
|
-
D(t) &&
|
|
1230
|
+
D(t) && p.value.dataLabels.show ? (n(), r("circle", {
|
|
1228
1231
|
key: 0,
|
|
1229
1232
|
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,
|
|
1230
1233
|
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,
|
|
@@ -1232,7 +1235,7 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
1232
1235
|
stroke: e.value.style.chart.backgroundColor,
|
|
1233
1236
|
"stroke-width": 1,
|
|
1234
1237
|
r: 3,
|
|
1235
|
-
filter: !e.value.useBlurOnHover || [null, void 0].includes(Y.value) || Y.value === a ? "" : `url(#blur_${
|
|
1238
|
+
filter: !e.value.useBlurOnHover || [null, void 0].includes(Y.value) || Y.value === a ? "" : `url(#blur_${y.value})`,
|
|
1236
1239
|
onClick: (i) => Q(t, a),
|
|
1237
1240
|
onMouseenter: (i) => ce({
|
|
1238
1241
|
datapoint: t,
|
|
@@ -1244,10 +1247,10 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
1244
1247
|
style: $({
|
|
1245
1248
|
transition: T.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
1246
1249
|
})
|
|
1247
|
-
}, null, 44,
|
|
1250
|
+
}, null, 44, Ra)) : v("", !0)
|
|
1248
1251
|
], 64)) : v("", !0),
|
|
1249
1252
|
e.value.type === "classic" ? (n(), r(w, { key: 2 }, [
|
|
1250
|
-
|
|
1253
|
+
$t(h("text", {
|
|
1251
1254
|
class: "vue-data-ui-datalabel-value",
|
|
1252
1255
|
"text-anchor": u(x)(t, !0, 12).anchor,
|
|
1253
1256
|
x: u(x)(t, !0, 12).x,
|
|
@@ -1273,10 +1276,10 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
1273
1276
|
r: e.value.style.chart.layout.labels.value.rounding
|
|
1274
1277
|
}),
|
|
1275
1278
|
{ datapoint: t }
|
|
1276
|
-
)})` : ""), 45,
|
|
1277
|
-
[
|
|
1279
|
+
)})` : ""), 45, Ga), [
|
|
1280
|
+
[Ct, D(t) && p.value.dataLabels.show]
|
|
1278
1281
|
]),
|
|
1279
|
-
|
|
1282
|
+
$t(h("text", {
|
|
1280
1283
|
class: "vue-data-ui-datalabel-name",
|
|
1281
1284
|
"text-anchor": u(x)(t).anchor,
|
|
1282
1285
|
x: u(x)(t, !0, 12).x,
|
|
@@ -1285,20 +1288,20 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
1285
1288
|
"font-size": J.value + "px",
|
|
1286
1289
|
style: $(`font-weight:${e.value.style.chart.layout.labels.name.bold ? "bold" : ""}`),
|
|
1287
1290
|
onClick: (i) => Q(t, a),
|
|
1288
|
-
innerHTML: u(
|
|
1291
|
+
innerHTML: u(Pt)({
|
|
1289
1292
|
content: t.name,
|
|
1290
1293
|
fontSize: J.value,
|
|
1291
1294
|
fill: e.value.style.chart.layout.labels.name.color,
|
|
1292
1295
|
x: u(x)(t, !0, 12).x,
|
|
1293
1296
|
y: u(fe)(t) + J.value
|
|
1294
1297
|
})
|
|
1295
|
-
}, null, 12,
|
|
1296
|
-
[
|
|
1298
|
+
}, null, 12, qa), [
|
|
1299
|
+
[Ct, D(t) && p.value.dataLabels.show]
|
|
1297
1300
|
]),
|
|
1298
1301
|
o[6] || (o[6] = Be(' @mouseenter="useTooltip({ datapoint: arc, relativeIndex: i, seriesIndex: arc.seriesIndex, show: true })" @mouseleave="handleDatapointLeave({ datapoint: arc, seriesIndex: arc.seriesIndex })" /> ', -1))
|
|
1299
1302
|
], 64)) : v("", !0),
|
|
1300
1303
|
e.value.type === "polar" ? (n(), r(w, { key: 3 }, [
|
|
1301
|
-
D(t) &&
|
|
1304
|
+
D(t) && p.value.dataLabels.show ? (n(), r("text", {
|
|
1302
1305
|
key: 0,
|
|
1303
1306
|
class: "vue-data-ui-datalabel-value",
|
|
1304
1307
|
"text-anchor": ve(d.value[a].middlePoint),
|
|
@@ -1328,8 +1331,8 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
1328
1331
|
r: e.value.style.chart.layout.labels.value.rounding
|
|
1329
1332
|
}),
|
|
1330
1333
|
{ datapoint: t }
|
|
1331
|
-
)})` : ""), 45,
|
|
1332
|
-
D(t) &&
|
|
1334
|
+
)})` : ""), 45, Ua)) : v("", !0),
|
|
1335
|
+
D(t) && p.value.dataLabels.show ? (n(), r("text", {
|
|
1333
1336
|
key: 1,
|
|
1334
1337
|
class: "vue-data-ui-datalabel-name",
|
|
1335
1338
|
"text-anchor": ve(d.value[a].middlePoint),
|
|
@@ -1342,18 +1345,18 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
1342
1345
|
fontWeight: e.value.style.chart.layout.labels.name.bold ? "bold" : "normal"
|
|
1343
1346
|
}),
|
|
1344
1347
|
onClick: (i) => Q(t, a),
|
|
1345
|
-
innerHTML: u(
|
|
1348
|
+
innerHTML: u(Pt)({
|
|
1346
1349
|
content: t.name,
|
|
1347
1350
|
fontSize: we.value,
|
|
1348
1351
|
fill: e.value.style.chart.layout.labels.name.color,
|
|
1349
1352
|
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,
|
|
1350
1353
|
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
|
|
1351
1354
|
})
|
|
1352
|
-
}, null, 12,
|
|
1355
|
+
}, null, 12, Wa)) : v("", !0),
|
|
1353
1356
|
o[7] || (o[7] = Be(' @mouseenter="useTooltip({ datapoint: arc, relativeIndex: i, seriesIndex: arc.seriesIndex, show: true })" @mouseleave="handleDatapointLeave({ datapoint: arc, seriesIndex: arc.seriesIndex })" /> ', -1))
|
|
1354
1357
|
], 64)) : v("", !0)
|
|
1355
1358
|
])),
|
|
1356
|
-
|
|
1359
|
+
p.value.dataLabels.show && e.value.style.chart.comments.show && t.comment ? (n(), r("g", Ha, [
|
|
1357
1360
|
D(t) && e.value.type === "classic" ? (n(), r("foreignObject", {
|
|
1358
1361
|
key: 0,
|
|
1359
1362
|
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),
|
|
@@ -1367,11 +1370,11 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
1367
1370
|
plot: { ...t, textAlign: u(x)(t, !0, 16, !0).anchor, flexAlign: u(x)(t, !0, 16).anchor, isFirstLoad: T.value }
|
|
1368
1371
|
}, void 0, !0)
|
|
1369
1372
|
])
|
|
1370
|
-
], 8,
|
|
1373
|
+
], 8, ja)) : v("", !0),
|
|
1371
1374
|
D(t) && e.value.type === "polar" ? (n(), r("foreignObject", {
|
|
1372
1375
|
key: 1,
|
|
1373
1376
|
x: e.value.style.chart.comments.offsetX + (ve(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 : ve(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),
|
|
1374
|
-
y:
|
|
1377
|
+
y: tl(d.value[a]) + e.value.style.chart.comments.offsetY,
|
|
1375
1378
|
width: e.value.style.chart.comments.width,
|
|
1376
1379
|
height: "200",
|
|
1377
1380
|
style: $({
|
|
@@ -1385,87 +1388,95 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
1385
1388
|
plot: { ...t, textAlign: ve(d.value[a].middlePoint), flexAlign: ve(d.value[a].middlePoint), isFirstLoad: T.value }
|
|
1386
1389
|
}, void 0, !0)
|
|
1387
1390
|
])
|
|
1388
|
-
], 12,
|
|
1391
|
+
], 12, Ja)) : v("", !0)
|
|
1389
1392
|
])) : v("", !0)
|
|
1390
|
-
], 10,
|
|
1393
|
+
], 10, Xa))), 128)),
|
|
1391
1394
|
b(l.$slots, "svg", { svg: s.value }, void 0, !0)
|
|
1392
1395
|
], 512)
|
|
1393
|
-
], 14,
|
|
1394
|
-
l.$slots.watermark ? (n(), r("div",
|
|
1395
|
-
b(l.$slots, "watermark", oe(se({ isPrinting: u(
|
|
1396
|
+
], 14, Rl)),
|
|
1397
|
+
l.$slots.watermark ? (n(), r("div", Ka, [
|
|
1398
|
+
b(l.$slots, "watermark", oe(se({ isPrinting: u(ot) || u(st) })), void 0, !0)
|
|
1396
1399
|
])) : v("", !0),
|
|
1397
1400
|
h("div", {
|
|
1398
|
-
|
|
1399
|
-
|
|
1401
|
+
id: `legend-bottom-${y.value}`
|
|
1402
|
+
}, null, 8, Qa),
|
|
1403
|
+
Ke.value ? (n(), ee(dl, {
|
|
1404
|
+
key: 5,
|
|
1405
|
+
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${y.value}` : `#legend-bottom-${y.value}`
|
|
1400
1406
|
}, [
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
config: Kt.value,
|
|
1405
|
-
onClickMarker: o[3] || (o[3] = ({ i: t }) => vt(t))
|
|
1406
|
-
}, kt({
|
|
1407
|
-
item: A(({ legend: t, index: a }) => [
|
|
1408
|
-
h("div", {
|
|
1409
|
-
style: $(`opacity:${q.value.includes(a) ? 0.5 : 1}`),
|
|
1410
|
-
onClick: (i) => t.segregate()
|
|
1411
|
-
}, I(t.name) + I(e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ":" : "") + " " + I(e.value.style.chart.legend.showValue ? u(V)(
|
|
1412
|
-
e.value.style.chart.layout.labels.value.formatter,
|
|
1413
|
-
t.value,
|
|
1414
|
-
u(N)({
|
|
1415
|
-
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
1416
|
-
v: t.value,
|
|
1417
|
-
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
1418
|
-
r: e.value.style.chart.legend.roundingValue
|
|
1419
|
-
}),
|
|
1420
|
-
{
|
|
1421
|
-
datapoint: t,
|
|
1422
|
-
index: a
|
|
1423
|
-
}
|
|
1424
|
-
) : "") + " " + I(e.value.style.chart.legend.showPercentage ? q.value.includes(a) ? `${e.value.style.chart.legend.showValue ? "(" : ""}${ll(t.proportion * 100)}%${e.value.style.chart.legend.showValue ? ")" : ""}` : `${e.value.style.chart.legend.showValue ? "(" : ""}${isNaN(t.value / F.value) ? "-" : u(V)(
|
|
1425
|
-
e.value.style.chart.layout.labels.percentage.formatter,
|
|
1426
|
-
ct.value(t),
|
|
1427
|
-
u(N)({
|
|
1428
|
-
v: ct.value(t),
|
|
1429
|
-
s: "%",
|
|
1430
|
-
r: e.value.style.chart.legend.roundingPercentage
|
|
1431
|
-
})
|
|
1432
|
-
)}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""), 13, ja)
|
|
1433
|
-
]),
|
|
1434
|
-
_: 2
|
|
1407
|
+
h("div", {
|
|
1408
|
+
ref_key: "chartLegend",
|
|
1409
|
+
ref: qe
|
|
1435
1410
|
}, [
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1411
|
+
e.value.style.chart.legend.show ? (n(), ee(Dl, {
|
|
1412
|
+
key: `legend_${Je.value}`,
|
|
1413
|
+
legendSet: ct.value,
|
|
1414
|
+
config: Qt.value,
|
|
1415
|
+
onClickMarker: o[3] || (o[3] = ({ i: t }) => dt(t))
|
|
1416
|
+
}, xt({
|
|
1417
|
+
item: A(({ legend: t, index: a }) => [
|
|
1418
|
+
h("div", {
|
|
1419
|
+
style: $(`opacity:${q.value.includes(a) ? 0.5 : 1}`),
|
|
1420
|
+
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(V)(
|
|
1422
|
+
e.value.style.chart.layout.labels.value.formatter,
|
|
1423
|
+
t.value,
|
|
1424
|
+
u(N)({
|
|
1425
|
+
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
1426
|
+
v: t.value,
|
|
1427
|
+
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
1428
|
+
r: e.value.style.chart.legend.roundingValue
|
|
1429
|
+
}),
|
|
1430
|
+
{
|
|
1431
|
+
datapoint: t,
|
|
1432
|
+
index: a
|
|
1433
|
+
}
|
|
1434
|
+
) : "") + " " + I(e.value.style.chart.legend.showPercentage ? q.value.includes(a) ? `${e.value.style.chart.legend.showValue ? "(" : ""}${al(t.proportion * 100)}%${e.value.style.chart.legend.showValue ? ")" : ""}` : `${e.value.style.chart.legend.showValue ? "(" : ""}${isNaN(t.value / F.value) ? "-" : u(V)(
|
|
1435
|
+
e.value.style.chart.layout.labels.percentage.formatter,
|
|
1436
|
+
ht.value(t),
|
|
1437
|
+
u(N)({
|
|
1438
|
+
v: ht.value(t),
|
|
1439
|
+
s: "%",
|
|
1440
|
+
r: e.value.style.chart.legend.roundingPercentage
|
|
1441
|
+
})
|
|
1442
|
+
)}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""), 13, Za)
|
|
1446
1443
|
]),
|
|
1447
|
-
|
|
1448
|
-
}
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1444
|
+
_: 2
|
|
1445
|
+
}, [
|
|
1446
|
+
l.$slots.pattern ? {
|
|
1447
|
+
name: "legend-pattern",
|
|
1448
|
+
fn: A(({ legend: t, index: a }) => [
|
|
1449
|
+
De(Yl, {
|
|
1450
|
+
shape: t.shape,
|
|
1451
|
+
radius: 30,
|
|
1452
|
+
stroke: "none",
|
|
1453
|
+
plot: { x: 30, y: 30 },
|
|
1454
|
+
fill: `url(#pattern_${y.value}_${a})`
|
|
1455
|
+
}, null, 8, ["shape", "fill"])
|
|
1456
|
+
]),
|
|
1457
|
+
key: "0"
|
|
1458
|
+
} : void 0
|
|
1459
|
+
]), 1032, ["legendSet", "config"])) : v("", !0),
|
|
1460
|
+
b(l.$slots, "legend", { legend: ct.value }, void 0, !0)
|
|
1461
|
+
], 512)
|
|
1462
|
+
], 8, ["to"])) : v("", !0),
|
|
1452
1463
|
l.$slots.source ? (n(), r("div", {
|
|
1453
|
-
key:
|
|
1464
|
+
key: 6,
|
|
1454
1465
|
ref_key: "source",
|
|
1455
1466
|
ref: Ue,
|
|
1456
1467
|
dir: "auto"
|
|
1457
1468
|
}, [
|
|
1458
1469
|
b(l.$slots, "source", {}, void 0, !0)
|
|
1459
1470
|
], 512)) : v("", !0),
|
|
1460
|
-
l.$slots.hollow ? (n(), r("div",
|
|
1471
|
+
l.$slots.hollow ? (n(), r("div", eo, [
|
|
1461
1472
|
b(l.$slots, "hollow", oe(se({
|
|
1462
1473
|
total: F.value,
|
|
1463
1474
|
average: ze.value,
|
|
1464
1475
|
dataset: G.value
|
|
1465
1476
|
})), void 0, !0)
|
|
1466
1477
|
])) : v("", !0),
|
|
1467
|
-
De(u(
|
|
1468
|
-
show:
|
|
1478
|
+
De(u(Xt), {
|
|
1479
|
+
show: p.value.showTooltip && Pe.value,
|
|
1469
1480
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
1470
1481
|
color: e.value.style.chart.tooltip.color,
|
|
1471
1482
|
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
@@ -1490,11 +1501,11 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
1490
1501
|
]),
|
|
1491
1502
|
_: 3
|
|
1492
1503
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "isFullscreen", "smooth", "backdropFilter"]),
|
|
1493
|
-
me.value ? (n(),
|
|
1494
|
-
key:
|
|
1504
|
+
me.value ? (n(), ee(u(zt), {
|
|
1505
|
+
key: 8,
|
|
1495
1506
|
hideDetails: "",
|
|
1496
1507
|
config: {
|
|
1497
|
-
open:
|
|
1508
|
+
open: p.value.showTable,
|
|
1498
1509
|
maxHeight: 1e4,
|
|
1499
1510
|
body: {
|
|
1500
1511
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -1507,20 +1518,20 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
1507
1518
|
}
|
|
1508
1519
|
}, {
|
|
1509
1520
|
content: A(() => [
|
|
1510
|
-
(n(),
|
|
1521
|
+
(n(), ee(u(Ot), {
|
|
1511
1522
|
key: `table_${je.value}`,
|
|
1512
1523
|
colNames: _e.value.colNames,
|
|
1513
1524
|
head: _e.value.head,
|
|
1514
1525
|
body: _e.value.body,
|
|
1515
1526
|
config: _e.value.config,
|
|
1516
1527
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
1517
|
-
onClose: o[4] || (o[4] = (t) =>
|
|
1528
|
+
onClose: o[4] || (o[4] = (t) => p.value.showTable = !1)
|
|
1518
1529
|
}, {
|
|
1519
1530
|
th: A(({ th: t }) => [
|
|
1520
1531
|
h("div", {
|
|
1521
1532
|
innerHTML: t,
|
|
1522
1533
|
style: { display: "flex", "align-items": "center" }
|
|
1523
|
-
}, null, 8,
|
|
1534
|
+
}, null, 8, to)
|
|
1524
1535
|
]),
|
|
1525
1536
|
td: A(({ td: t }) => [
|
|
1526
1537
|
Be(I(t.name ? t.name : isNaN(Number(t)) ? t.includes("%") ? t : u(V)(
|
|
@@ -1547,10 +1558,10 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
1547
1558
|
]),
|
|
1548
1559
|
_: 1
|
|
1549
1560
|
}, 8, ["config"])) : v("", !0),
|
|
1550
|
-
u(ke) ? (n(),
|
|
1551
|
-
], 46,
|
|
1561
|
+
u(ke) ? (n(), ee(Ml, { key: 9 })) : v("", !0)
|
|
1562
|
+
], 46, Vl));
|
|
1552
1563
|
}
|
|
1553
|
-
},
|
|
1564
|
+
}, go = /* @__PURE__ */ Bl(lo, [["__scopeId", "data-v-b9c7c9b4"]]);
|
|
1554
1565
|
export {
|
|
1555
|
-
|
|
1566
|
+
go as default
|
|
1556
1567
|
};
|