vue-data-ui 3.0.0-next.7 → 3.0.0-next.70
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-Bl8urcli.js → Arrow-fzydFjfE.js} +1 -1
- package/dist/{BaseDraggableDialog-CyhpaZU5.js → BaseDraggableDialog-BwazM8ka.js} +2 -2
- package/dist/{BaseIcon-BCZfTCeM.js → BaseIcon-BnbvQjs5.js} +1 -1
- package/dist/{ColorPicker-CSJf42vx.js → ColorPicker-DR1Yr4kR.js} +2 -2
- package/dist/{DataTable-mQ6Wd-rR.js → DataTable-CKpA_OA_.js} +2 -2
- package/dist/{Legend-B2hrDh4G.js → Legend-ChXhJNzd.js} +2 -2
- package/dist/{NonSvgPenAndPaper-DQ8KsK4W.js → NonSvgPenAndPaper-CPOpM7Os.js} +3 -3
- package/dist/{PackageVersion-CeEYZfaH.js → PackageVersion-CBHvscRY.js} +1 -1
- package/dist/{PenAndPaper-DhSxfUrQ.js → PenAndPaper-BCcfYvgR.js} +3 -3
- package/dist/{Shape-C2qH26wh.js → Shape-C1rNfsMY.js} +43 -37
- package/dist/Slicer-D8a4Wv1q.js +602 -0
- package/dist/{SparkTooltip-BcHgW6YX.js → SparkTooltip-BUdf02cs.js} +1 -1
- package/dist/{Title-B7Xb3YuE.js → Title-feqCv0Si.js} +1 -1
- package/dist/{Tooltip-BidRoM5E.js → Tooltip-DQbksria.js} +23 -19
- package/dist/{UserOptions-0tvMM8PF.js → UserOptions-CGnAZpYs.js} +2 -2
- package/dist/{dom-to-png-CTrlbKHr.js → dom-to-png-DTPmkDTK.js} +1 -1
- package/dist/{img-D72yZNUg.js → img-_RMhslMZ.js} +1 -1
- package/dist/{index-Cg-RjxqH.js → index-CnY41r21.js} +2103 -1411
- package/dist/{pdf-DgX01_wu.js → pdf-C02XBmhm.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +600 -22
- package/dist/types/vue-data-ui.d.ts +600 -22
- package/dist/useAutoSizeLabelsInsideViewbox-DVYZBwNc.js +81 -0
- package/dist/useFitSvgText-2crs6Fv5.js +69 -0
- package/dist/useLoading-D7YHNtLX.js +29 -0
- package/dist/useNestedProp-DtUATNAU.js +13 -0
- package/dist/usePanZoom-BVca3eMk.js +122 -0
- package/dist/{usePrinter-BUzmyQf9.js → usePrinter-CJ1uZx0D.js} +2 -2
- package/dist/useTimeLabelCollider-CIsgDrl9.js +78 -0
- package/dist/{useTimeLabels-Mrr0jrpL.js → useTimeLabels-DkzmKfZn.js} +211 -152
- package/dist/{vue-data-ui-DpO93ey5.js → vue-data-ui-DDBabVWX.js} +105 -100
- package/dist/vue-data-ui.js +23 -22
- package/dist/vue-ui-3d-bar-CtPXePUa.js +1323 -0
- package/dist/{vue-ui-accordion-CRomxzaL.js → vue-ui-accordion-CnLY8CrQ.js} +3 -3
- package/dist/vue-ui-age-pyramid-CvrNLE47.js +834 -0
- package/dist/{vue-ui-annotator-BAOxPiFx.js → vue-ui-annotator-NuSwWka4.js} +2 -2
- package/dist/vue-ui-bullet-CpIVgkPB.js +571 -0
- package/dist/vue-ui-candlestick-DGWKUeJp.js +999 -0
- package/dist/{vue-ui-carousel-table-DVGlPZIa.js → vue-ui-carousel-table-DWbQS8F3.js} +29 -29
- package/dist/{vue-ui-chestnut-P1v4ffD0.js → vue-ui-chestnut-K4-oOYff.js} +5 -5
- package/dist/vue-ui-chord-DqmP8yTR.js +1038 -0
- package/dist/{vue-ui-circle-pack-FXmemXgl.js → vue-ui-circle-pack-D_ufubH5.js} +24 -24
- package/dist/{vue-ui-cursor-CdvMgIrP.js → vue-ui-cursor-B0tP4woK.js} +2 -2
- package/dist/{vue-ui-dashboard-Vke0452J.js → vue-ui-dashboard-D_7qyx3P.js} +62 -62
- package/dist/{vue-ui-digits-BVhyYqCs.js → vue-ui-digits-pUQErY07.js} +2 -2
- package/dist/{vue-ui-donut-BpIivKcf.js → vue-ui-donut-Dl__PVfq.js} +320 -308
- package/dist/vue-ui-donut-evolution-BCGGTZZI.js +1075 -0
- package/dist/vue-ui-dumbbell-KzCa3k9g.js +1119 -0
- package/dist/vue-ui-flow-B1AOqk14.js +841 -0
- package/dist/{vue-ui-funnel-BbFmbsft.js → vue-ui-funnel-DCl9v71X.js} +16 -16
- package/dist/{vue-ui-galaxy-Cn6vHbaw.js → vue-ui-galaxy-0rAzDHe5.js} +60 -58
- package/dist/vue-ui-gauge-Cg4qAOEf.js +791 -0
- package/dist/vue-ui-gizmo-CQmMkODw.js +210 -0
- package/dist/vue-ui-heatmap-CgkgUDI0.js +1078 -0
- package/dist/vue-ui-history-plot-CYvkTszV.js +1073 -0
- package/dist/{vue-ui-kpi-jN_yMnLj.js → vue-ui-kpi-BDuOZbc2.js} +26 -26
- package/dist/{vue-ui-mini-loader-rYr76x8g.js → vue-ui-mini-loader-BZaU_YD-.js} +2 -2
- package/dist/{vue-ui-molecule-BWZHOQLi.js → vue-ui-molecule-HYjHgVuN.js} +53 -51
- package/dist/vue-ui-mood-radar-4pYtL93A.js +785 -0
- package/dist/vue-ui-nested-donuts-BVbvVm19.js +1286 -0
- package/dist/vue-ui-onion-DQg97Dwm.js +776 -0
- package/dist/vue-ui-parallel-coordinate-plot-KQ4FTUda.js +915 -0
- package/dist/{vue-ui-quadrant-BFFzfDw3.js → vue-ui-quadrant-D8OU7TFs.js} +512 -459
- package/dist/vue-ui-quick-chart-BOKDoHdK.js +1761 -0
- package/dist/vue-ui-radar-2hTf-Qrf.js +796 -0
- package/dist/{vue-ui-rating-BAauyqTn.js → vue-ui-rating-QriKDSO7.js} +2 -2
- package/dist/vue-ui-relation-circle-DqLiKEHw.js +598 -0
- package/dist/vue-ui-ridgeline-CvFlsavM.js +1153 -0
- package/dist/vue-ui-rings-B2ges9Ud.js +728 -0
- package/dist/vue-ui-scatter-DQJeFlv4.js +1178 -0
- package/dist/{vue-ui-skeleton-CUOhCY4p.js → vue-ui-skeleton-Bghm5obp.js} +3 -3
- package/dist/{vue-ui-smiley-B6SqWMov.js → vue-ui-smiley-C3SkDNoz.js} +26 -26
- package/dist/vue-ui-spark-trend-dd8h3N7H.js +315 -0
- package/dist/vue-ui-sparkbar-BTj8M7fY.js +351 -0
- package/dist/vue-ui-sparkgauge-BBQAo-W1.js +232 -0
- package/dist/vue-ui-sparkhistogram-C4ZEcb8S.js +380 -0
- package/dist/vue-ui-sparkline-Bm3GpqJx.js +489 -0
- package/dist/vue-ui-sparkstackbar-Dde4iayd.js +421 -0
- package/dist/vue-ui-stackbar-DPvfNjwH.js +1370 -0
- package/dist/vue-ui-strip-plot-iZIN9U90.js +915 -0
- package/dist/{vue-ui-table-Dwjl3L0p.js → vue-ui-table-C4EoviSd.js} +11 -11
- package/dist/{vue-ui-table-heatmap-DazTE3fa.js → vue-ui-table-heatmap-D-eqO3LU.js} +5 -5
- package/dist/{vue-ui-table-sparkline-BXMPUEpN.js → vue-ui-table-sparkline-CD7IH49g.js} +14 -14
- package/dist/vue-ui-thermometer-BKEFH2Xt.js +541 -0
- package/dist/{vue-ui-timer-yLvNAZL_.js → vue-ui-timer-hhKj1gPp.js} +5 -5
- package/dist/vue-ui-tiremarks-CmNwCnVC.js +406 -0
- package/dist/vue-ui-treemap-BL7T8x_B.js +1035 -0
- package/dist/{vue-ui-vertical-bar-BrYCoVym.js → vue-ui-vertical-bar-CGn_OX3P.js} +71 -69
- package/dist/vue-ui-waffle-qfT-wDhI.js +910 -0
- package/dist/vue-ui-wheel-B8J8C3AN.js +379 -0
- package/dist/vue-ui-word-cloud-B6oHFfEK.js +765 -0
- package/dist/{vue-ui-world-B4Dqrk4l.js → vue-ui-world-BEv_oTrC.js} +11 -9
- package/dist/vue-ui-xy-DPBrciAR.js +3771 -0
- package/dist/{vue-ui-xy-canvas-D7fL36kT.js → vue-ui-xy-canvas-BXT3mXj5.js} +265 -264
- package/package.json +1 -1
- package/dist/Slicer-BD8Z8VCW.js +0 -577
- package/dist/useLoading-Bt5Doa8m.js +0 -28
- package/dist/useNestedProp-C_G5E08Y.js +0 -13
- package/dist/usePanZoom-BQMvRXEQ.js +0 -115
- package/dist/vue-ui-3d-bar-D8imUwEz.js +0 -1227
- package/dist/vue-ui-age-pyramid-CV7gtFOC.js +0 -746
- package/dist/vue-ui-bullet-BtuMMBF7.js +0 -513
- package/dist/vue-ui-candlestick-BsRtXKrv.js +0 -873
- package/dist/vue-ui-chord-CIuzYmpM.js +0 -949
- package/dist/vue-ui-donut-evolution-BRlsCA4U.js +0 -903
- package/dist/vue-ui-dumbbell-D87Dumjh.js +0 -753
- package/dist/vue-ui-flow-D_L_xssL.js +0 -765
- package/dist/vue-ui-gauge-Ds4terqY.js +0 -738
- package/dist/vue-ui-gizmo-BTncpI62.js +0 -192
- package/dist/vue-ui-heatmap-B6GpjeWC.js +0 -877
- package/dist/vue-ui-history-plot-DTDzEeGq.js +0 -924
- package/dist/vue-ui-mood-radar-CPfS6f1L.js +0 -670
- package/dist/vue-ui-nested-donuts-Bsd2kGoJ.js +0 -1177
- package/dist/vue-ui-onion-BQ4nISXW.js +0 -701
- package/dist/vue-ui-parallel-coordinate-plot-BoHgVgbn.js +0 -807
- package/dist/vue-ui-quick-chart-oNMTeOAL.js +0 -1612
- package/dist/vue-ui-radar-98mXFZe-.js +0 -741
- package/dist/vue-ui-relation-circle-6oDCSxkO.js +0 -542
- package/dist/vue-ui-ridgeline-CugMGjOU.js +0 -969
- package/dist/vue-ui-rings-bsGXaD2m.js +0 -685
- package/dist/vue-ui-scatter-7ssLliGg.js +0 -1045
- package/dist/vue-ui-spark-trend-jauInkkN.js +0 -291
- package/dist/vue-ui-sparkbar-DXByIxQH.js +0 -301
- package/dist/vue-ui-sparkgauge-BMrV2gDi.js +0 -201
- package/dist/vue-ui-sparkhistogram-CoNM4G7o.js +0 -313
- package/dist/vue-ui-sparkline-DrN3_wS0.js +0 -459
- package/dist/vue-ui-sparkstackbar-W1a0JQi9.js +0 -381
- package/dist/vue-ui-stackbar-D1-gbUgE.js +0 -1207
- package/dist/vue-ui-strip-plot-KhfvrVuN.js +0 -761
- package/dist/vue-ui-thermometer-Cn6lJRs3.js +0 -495
- package/dist/vue-ui-tiremarks-BYsWePfK.js +0 -358
- package/dist/vue-ui-treemap-Ce7RVFG3.js +0 -965
- package/dist/vue-ui-waffle-CCrR2T1G.js +0 -863
- package/dist/vue-ui-wheel-BuxjnrDN.js +0 -352
- package/dist/vue-ui-word-cloud-C6fawHJE.js +0 -659
- package/dist/vue-ui-xy-ubRnv9iJ.js +0 -2980
|
@@ -1,20 +1,23 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { u as dl, o as Tt,
|
|
1
|
+
import { defineAsyncComponent as ye, useSlots as rl, computed as y, shallowRef as H, ref as p, onMounted as kt, onBeforeUnmount as xt, toRefs as il, watch as ge, createElementBlock as r, openBlock as n, normalizeStyle as $, normalizeClass as Be, createBlock as ae, createCommentVNode as v, renderSlot as b, createElementVNode as h, createVNode as Ve, unref as u, createSlots as _t, withCtx as A, normalizeProps as oe, guardReactiveProps as se, Fragment as w, renderList as L, mergeProps as $t, toDisplayString as I, withDirectives as Ct, createTextVNode as Ee, vShow as At, nextTick as vl } from "vue";
|
|
2
|
+
import { u as dl, o as Tt, f as Re, g as cl, c as hl, t as yl, d as fl, h as pl, e as St, p as ne, m as Pt, $ as gl, i as N, X as ml, s as Ce, x as bl, n as wl, N as P, k as V, q as fe, r as x, a0 as Ft, a1 as kl, a2 as xl, a as _l, b as $l, C as Ge, v as Cl, w as Al, y as Tl, T as Lt } from "./index-CnY41r21.js";
|
|
3
3
|
import { t as Sl, u as Pl } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import { _ as
|
|
11
|
-
import
|
|
12
|
-
import Xl from "./
|
|
4
|
+
import { u as Fl } from "./usePrinter-CJ1uZx0D.js";
|
|
5
|
+
import { u as Ll, B as Il } from "./useLoading-D7YHNtLX.js";
|
|
6
|
+
import { u as It } from "./useNestedProp-DtUATNAU.js";
|
|
7
|
+
import { u as Ml } from "./useUserOptionState-BIvW1Kz7.js";
|
|
8
|
+
import { u as zl } from "./useChartAccessibility-9icAAmYg.js";
|
|
9
|
+
import Ol from "./img-_RMhslMZ.js";
|
|
10
|
+
import { _ as Nl } from "./Shape-C1rNfsMY.js";
|
|
11
|
+
import Yl from "./Title-feqCv0Si.js";
|
|
12
|
+
import Xl from "./Legend-ChXhJNzd.js";
|
|
13
13
|
import { _ as Dl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
|
-
const Bl = ["id"], Vl = ["xmlns", "viewBox"], El = ["width", "height"],
|
|
14
|
+
const Bl = ["id"], Vl = ["xmlns", "viewBox"], El = ["width", "height"], Rl = { key: 1 }, Gl = ["id"], ql = ["stop-color"], Wl = ["offset", "stop-color"], Ul = ["offset", "stop-color"], Hl = ["stop-color"], jl = { key: 2 }, Jl = ["id", "cx", "cy"], Kl = ["stop-color", "stop-opacity"], Ql = ["stop-color"], Zl = ["id"], ea = ["id"], ta = ["id"], la = ["flood-color"], aa = ["id"], oa = ["flood-color"], sa = ["d", "stroke", "filter"], na = ["d", "stroke", "filter"], ua = ["cx", "cy", "r", "fill", "filter"], ra = { key: 6 }, ia = ["stroke", "d"], va = ["d", "fill", "stroke", "stroke-width", "filter"], da = { key: 0 }, ca = ["d", "fill", "stroke", "stroke-width", "filter"], ha = { key: 0 }, ya = ["stroke", "d"], fa = { key: 0 }, pa = ["d", "stroke", "stroke-width", "filter"], ga = { key: 1 }, ma = ["d", "fill", "stroke", "stroke-width", "filter"], ba = ["d", "fill", "stroke", "stroke-width", "filter"], wa = { key: 1 }, ka = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], xa = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], _a = { key: 0 }, $a = ["d", "fill", "stroke", "stroke-width"], Ca = ["cx", "cy", "r", "stroke"], Aa = ["cx", "cy", "r", "fill"], Ta = ["cx", "cy", "r"], Sa = { key: 0 }, Pa = ["d", "stroke", "fill", "onMouseenter", "onMouseleave", "onClick"], Fa = { key: 1 }, La = ["cx", "cy", "r"], Ia = ["x", "y", "fill", "font-size"], Ma = ["x", "y", "fill", "font-size"], za = ["x", "y", "fill", "font-size"], Oa = ["x", "y", "fill", "font-size"], Na = ["filter"], Ya = { key: 0 }, Xa = ["x", "y"], Da = { key: 1 }, Ba = ["cx", "cy", "fill", "stroke", "filter", "onClick", "onMouseenter", "onMouseleave"], Va = ["cx", "cy", "fill", "stroke", "filter", "onClick", "onMouseenter", "onMouseleave"], Ea = ["text-anchor", "x", "y", "fill", "font-size", "onClick", "onMouseenter", "onMouseleave"], Ra = ["text-anchor", "x", "y", "fill", "font-size", "onClick", "innerHTML"], Ga = ["text-anchor", "x", "y", "fill", "font-size", "onClick", "onMouseenter", "onMouseleave"], qa = ["text-anchor", "x", "y", "fill", "font-size", "onClick", "innerHTML"], Wa = { key: 2 }, Ua = ["x", "y", "width"], Ha = ["x", "y", "width"], ja = {
|
|
15
15
|
key: 4,
|
|
16
16
|
class: "vue-data-ui-watermark"
|
|
17
|
-
}, Ja = ["onClick"], Ka =
|
|
17
|
+
}, Ja = ["onClick"], Ka = {
|
|
18
|
+
key: 6,
|
|
19
|
+
class: "vue-ui-donut-hollow"
|
|
20
|
+
}, Qa = ["innerHTML"], Za = {
|
|
18
21
|
__name: "vue-ui-donut",
|
|
19
22
|
props: {
|
|
20
23
|
config: {
|
|
@@ -31,15 +34,15 @@ const Bl = ["id"], Vl = ["xmlns", "viewBox"], El = ["width", "height"], Gl = { k
|
|
|
31
34
|
}
|
|
32
35
|
},
|
|
33
36
|
emits: ["selectLegend", "selectDatapoint"],
|
|
34
|
-
setup(
|
|
35
|
-
const Ot =
|
|
37
|
+
setup(qe, { expose: Mt, emit: zt }) {
|
|
38
|
+
const Ot = ye(() => import("./vue-ui-accordion-CnLY8CrQ.js")), Nt = ye(() => import("./DataTable-CKpA_OA_.js")), Yt = ye(() => import("./PackageVersion-CBHvscRY.js")), Xt = ye(() => import("./PenAndPaper-BCcfYvgR.js")), Dt = ye(() => import("./Tooltip-DQbksria.js")), Bt = ye(() => import("./UserOptions-CGnAZpYs.js")), { vue_ui_donut: Vt } = dl(), Et = rl(), k = qe, me = y({
|
|
36
39
|
get() {
|
|
37
40
|
return !!k.dataset && k.dataset.length;
|
|
38
41
|
},
|
|
39
42
|
set(l) {
|
|
40
43
|
return l;
|
|
41
44
|
}
|
|
42
|
-
}), E = H(null), be = p(null), Ae = p(null), Te = p(null),
|
|
45
|
+
}), E = H(null), be = p(null), Ae = p(null), Te = p(null), We = H(null), Ue = H(null), j = H(null), ue = H(null), He = H(null), je = H(null), Je = p(0), Ke = p(0), Qe = p(0), we = y({
|
|
43
46
|
get: () => e.value.style.chart.layout.labels.percentage.fontSize,
|
|
44
47
|
set: (l) => l
|
|
45
48
|
}), J = y({
|
|
@@ -47,10 +50,10 @@ const Bl = ["id"], Vl = ["xmlns", "viewBox"], El = ["width", "height"], Gl = { k
|
|
|
47
50
|
set: (l) => l
|
|
48
51
|
});
|
|
49
52
|
let Se = !1;
|
|
50
|
-
const
|
|
53
|
+
const R = () => {
|
|
51
54
|
!e.value.autoSize || Se || (Se = !0, requestAnimationFrame(() => {
|
|
52
55
|
Se = !1;
|
|
53
|
-
const l = e.value, o = be.value, t =
|
|
56
|
+
const l = e.value, o = be.value, t = ie.value;
|
|
54
57
|
if (!l.autoSize || !o || !t) return;
|
|
55
58
|
const [a, i, c, m] = t.getAttribute("viewBox").split(" ").map(Number), C = { x: a, y: i, width: c, height: m }, z = [
|
|
56
59
|
{
|
|
@@ -66,13 +69,13 @@ const Bl = ["id"], Vl = ["xmlns", "viewBox"], El = ["width", "height"], Gl = { k
|
|
|
66
69
|
sizeRef: J
|
|
67
70
|
}
|
|
68
71
|
];
|
|
69
|
-
z.map((B) => o.querySelectorAll(B.selector).length).reduce((B, Z) => B + Z, 0) !== 0 && (z.forEach(({ selector: B, baseSize: Z, minSize:
|
|
72
|
+
z.map((B) => o.querySelectorAll(B.selector).length).reduce((B, Z) => B + Z, 0) !== 0 && (z.forEach(({ selector: B, baseSize: Z, minSize: De, sizeRef: sl }) => {
|
|
70
73
|
o.querySelectorAll(B).forEach((nl) => {
|
|
71
74
|
const ul = kl({
|
|
72
75
|
el: nl,
|
|
73
76
|
bounds: C,
|
|
74
77
|
currentFontSize: Z,
|
|
75
|
-
minFontSize:
|
|
78
|
+
minFontSize: De,
|
|
76
79
|
attempts: 200,
|
|
77
80
|
padding: 1
|
|
78
81
|
});
|
|
@@ -85,7 +88,7 @@ const Bl = ["id"], Vl = ["xmlns", "viewBox"], El = ["width", "height"], Gl = { k
|
|
|
85
88
|
}));
|
|
86
89
|
};
|
|
87
90
|
kt(async () => {
|
|
88
|
-
|
|
91
|
+
Ze(), requestAnimationFrame(R);
|
|
89
92
|
});
|
|
90
93
|
let Pe;
|
|
91
94
|
kt(() => {
|
|
@@ -93,7 +96,7 @@ const Bl = ["id"], Vl = ["xmlns", "viewBox"], El = ["width", "height"], Gl = { k
|
|
|
93
96
|
for (const o of l) {
|
|
94
97
|
const { width: t, height: a } = o.contentRect;
|
|
95
98
|
if (t > 0 && a > 0) {
|
|
96
|
-
|
|
99
|
+
R();
|
|
97
100
|
break;
|
|
98
101
|
}
|
|
99
102
|
}
|
|
@@ -101,11 +104,11 @@ const Bl = ["id"], Vl = ["xmlns", "viewBox"], El = ["width", "height"], Gl = { k
|
|
|
101
104
|
}), xt(() => {
|
|
102
105
|
Pe?.disconnect();
|
|
103
106
|
}), xt(() => {
|
|
104
|
-
j.value && (
|
|
107
|
+
j.value && (ue.value && j.value.unobserve(ue.value), j.value.disconnect());
|
|
105
108
|
});
|
|
106
109
|
const Fe = y(() => !!e.value.debug);
|
|
107
|
-
function
|
|
108
|
-
if (Tt(k.dataset) ? (
|
|
110
|
+
function Ze() {
|
|
111
|
+
if (Tt(k.dataset) ? (Re({
|
|
109
112
|
componentName: "VueUiDonut",
|
|
110
113
|
type: "dataset",
|
|
111
114
|
debug: Fe.value
|
|
@@ -114,7 +117,7 @@ const Bl = ["id"], Vl = ["xmlns", "viewBox"], El = ["width", "height"], Gl = { k
|
|
|
114
117
|
datasetObject: l,
|
|
115
118
|
requiredAttributes: ["name", "values"]
|
|
116
119
|
}).forEach((t) => {
|
|
117
|
-
|
|
120
|
+
Re({
|
|
118
121
|
componentName: "VueUiDonut",
|
|
119
122
|
type: "datasetSerieAttribute",
|
|
120
123
|
property: t,
|
|
@@ -123,7 +126,7 @@ const Bl = ["id"], Vl = ["xmlns", "viewBox"], El = ["width", "height"], Gl = { k
|
|
|
123
126
|
}), me.value = !1, xe.value = !0;
|
|
124
127
|
});
|
|
125
128
|
}), k.dataset.forEach((l, o) => {
|
|
126
|
-
(!l.name || l.name === "") &&
|
|
129
|
+
(!l.name || l.name === "") && Re({
|
|
127
130
|
componentName: "VueUiDonut",
|
|
128
131
|
type: "datasetAttributeEmpty",
|
|
129
132
|
property: "name",
|
|
@@ -134,20 +137,20 @@ const Bl = ["id"], Vl = ["xmlns", "viewBox"], El = ["width", "height"], Gl = { k
|
|
|
134
137
|
const l = Sl(() => {
|
|
135
138
|
const { width: o, height: t } = Pl({
|
|
136
139
|
chart: E.value,
|
|
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 :
|
|
140
|
+
title: e.value.style.chart.title.text ? We.value : null,
|
|
141
|
+
legend: e.value.style.chart.legend.show ? Ue.value : null,
|
|
142
|
+
source: He.value,
|
|
143
|
+
noTitle: je.value,
|
|
144
|
+
padding: e.value.autoSize ? void 0 : ot.value
|
|
142
145
|
});
|
|
143
146
|
requestAnimationFrame(() => {
|
|
144
|
-
s.value.width = o, s.value.height = t,
|
|
147
|
+
s.value.width = o, s.value.height = t, R();
|
|
145
148
|
});
|
|
146
149
|
});
|
|
147
|
-
j.value && (
|
|
150
|
+
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
151
|
}
|
|
149
152
|
}
|
|
150
|
-
const g = p(hl()),
|
|
153
|
+
const g = p(hl()), Rt = p(null), Le = p(!1), Ie = p(""), Y = p(null), et = p(0);
|
|
151
154
|
function Me() {
|
|
152
155
|
const l = It({
|
|
153
156
|
userConfig: k.config,
|
|
@@ -159,10 +162,10 @@ const Bl = ["id"], Vl = ["xmlns", "viewBox"], El = ["width", "height"], Gl = { k
|
|
|
159
162
|
userConfig: $l.vue_ui_donut[l.theme] || k.config,
|
|
160
163
|
defaultConfig: l
|
|
161
164
|
}),
|
|
162
|
-
customPalette: _l[l.theme] ||
|
|
165
|
+
customPalette: _l[l.theme] || ne
|
|
163
166
|
} : o = l, k.config && Ge(k.config, "events.datapointEnter") ? o.events.datapointEnter = k.config.events.datapointEnter : o.events.datapointEnter = null, k.config && Ge(k.config, "events.datapointLeave") ? o.events.datapointLeave = k.config.events.datapointLeave : o.events.datapointLeave = null, k.config && Ge(k.config, "events.datapointClick") ? o.events.datapointClick = k.config.events.datapointClick : o.events.datapointClick = null, o;
|
|
164
167
|
}
|
|
165
|
-
const e = p(Me()), { loading: ke, FINAL_DATASET:
|
|
168
|
+
const e = p(Me()), { loading: ke, FINAL_DATASET: re, manualLoading: xe, skeletonDataset: Gt } = Ll({
|
|
166
169
|
...il(k),
|
|
167
170
|
FINAL_CONFIG: e,
|
|
168
171
|
prepareConfig: Me,
|
|
@@ -194,7 +197,7 @@ const Bl = ["id"], Vl = ["xmlns", "viewBox"], El = ["width", "height"], Gl = { k
|
|
|
194
197
|
userOptions: { show: !1 },
|
|
195
198
|
style: {
|
|
196
199
|
chart: {
|
|
197
|
-
backgroundColor: "#
|
|
200
|
+
backgroundColor: "#99999930",
|
|
198
201
|
layout: {
|
|
199
202
|
labels: {
|
|
200
203
|
dataLabels: { show: !1 },
|
|
@@ -206,7 +209,7 @@ const Bl = ["id"], Vl = ["xmlns", "viewBox"], El = ["width", "height"], Gl = { k
|
|
|
206
209
|
}
|
|
207
210
|
},
|
|
208
211
|
legend: {
|
|
209
|
-
backgroundColor: "
|
|
212
|
+
backgroundColor: "transparent",
|
|
210
213
|
showValue: !1,
|
|
211
214
|
showPercentage: !1
|
|
212
215
|
},
|
|
@@ -220,33 +223,33 @@ const Bl = ["id"], Vl = ["xmlns", "viewBox"], El = ["width", "height"], Gl = { k
|
|
|
220
223
|
}
|
|
221
224
|
}
|
|
222
225
|
})
|
|
223
|
-
}), T = p(!0),
|
|
226
|
+
}), T = p(!0), W = H([]);
|
|
224
227
|
function qt(l, o = 1e3, t = 50) {
|
|
225
228
|
return new Promise((a) => {
|
|
226
229
|
const i = l.length;
|
|
227
|
-
|
|
230
|
+
W.value = Array(i).fill(0);
|
|
228
231
|
let c = 0;
|
|
229
232
|
l.forEach((m, C) => {
|
|
230
233
|
setTimeout(() => {
|
|
231
234
|
const z = performance.now();
|
|
232
235
|
function O(B) {
|
|
233
|
-
const Z = Math.min((B - z) / o, 1),
|
|
234
|
-
|
|
236
|
+
const Z = Math.min((B - z) / o, 1), De = Lt(Z);
|
|
237
|
+
W.value[C] = m * De, W.value = [...W.value], Z < 1 ? (requestAnimationFrame(O), requestAnimationFrame(R)) : (W.value[C] = m, W.value = [...W.value], c += 1, c === i && a(), requestAnimationFrame(R));
|
|
235
238
|
}
|
|
236
239
|
requestAnimationFrame(O);
|
|
237
240
|
}, C * t);
|
|
238
241
|
});
|
|
239
242
|
});
|
|
240
243
|
}
|
|
241
|
-
const
|
|
244
|
+
const tt = p(!1);
|
|
242
245
|
ge(
|
|
243
246
|
() => ke.value,
|
|
244
247
|
async (l) => {
|
|
245
|
-
if (l ||
|
|
246
|
-
const o =
|
|
248
|
+
if (l || tt.value) return;
|
|
249
|
+
const o = re.value === Gt, t = e.value.startAnimation?.show;
|
|
247
250
|
if (!o && t) {
|
|
248
|
-
|
|
249
|
-
const a =
|
|
251
|
+
tt.value = !0;
|
|
252
|
+
const a = re.value.map(
|
|
250
253
|
(i) => i.values.reduce((c, m) => c + m, 0)
|
|
251
254
|
);
|
|
252
255
|
await qt(
|
|
@@ -259,17 +262,17 @@ const Bl = ["id"], Vl = ["xmlns", "viewBox"], El = ["width", "height"], Gl = { k
|
|
|
259
262
|
},
|
|
260
263
|
{ immediate: !0 }
|
|
261
264
|
);
|
|
262
|
-
const { userOptionsVisible: ze, setUserOptionsVisibility:
|
|
265
|
+
const { userOptionsVisible: ze, setUserOptionsVisibility: lt, keepUserOptionState: at } = Ml({ config: e.value }), { svgRef: ie } = zl({ config: e.value.style.chart.title });
|
|
263
266
|
function Wt() {
|
|
264
|
-
|
|
267
|
+
lt(!0);
|
|
265
268
|
}
|
|
266
269
|
function Ut() {
|
|
267
|
-
|
|
270
|
+
lt(!1);
|
|
268
271
|
}
|
|
269
272
|
ge(() => k.config, (l) => {
|
|
270
|
-
ke.value || (e.value = Me()), ze.value = !e.value.userOptions.showOnChartHover,
|
|
273
|
+
ke.value || (e.value = Me()), ze.value = !e.value.userOptions.showOnChartHover, Ze(), Je.value += 1, Ke.value += 1, Qe.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
274
|
}, { deep: !0 });
|
|
272
|
-
const
|
|
275
|
+
const ot = y(() => {
|
|
273
276
|
const { top: l, right: o, bottom: t, left: a } = e.value.style.chart.padding;
|
|
274
277
|
return {
|
|
275
278
|
css: `padding:${l}px ${o}px ${t}px ${a}px`,
|
|
@@ -278,11 +281,11 @@ const Bl = ["id"], Vl = ["xmlns", "viewBox"], El = ["width", "height"], Gl = { k
|
|
|
278
281
|
bottom: t,
|
|
279
282
|
left: a
|
|
280
283
|
};
|
|
281
|
-
}), { isPrinting:
|
|
284
|
+
}), { isPrinting: st, isImaging: nt, generatePdf: ut, generateImage: rt } = Fl({
|
|
282
285
|
elementId: `donut__${g.value}`,
|
|
283
286
|
fileName: e.value.style.chart.title.text || "vue-ui-donut",
|
|
284
287
|
options: e.value.userOptions.print
|
|
285
|
-
}), Ht = y(() => e.value.userOptions.show && !e.value.style.chart.title.text),
|
|
288
|
+
}), Ht = y(() => e.value.userOptions.show && !e.value.style.chart.title.text), it = y(() => fl(e.value.customPalette)), f = p({
|
|
286
289
|
dataLabels: {
|
|
287
290
|
show: e.value.style.chart.layout.labels.dataLabels.show
|
|
288
291
|
},
|
|
@@ -306,9 +309,9 @@ const Bl = ["id"], Vl = ["xmlns", "viewBox"], El = ["width", "height"], Gl = { k
|
|
|
306
309
|
return _.value;
|
|
307
310
|
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
311
|
return Math.max(t, 12 * (1 + l));
|
|
309
|
-
}),
|
|
312
|
+
}), vt = zt, G = y(() => re.value.map((l, o) => ({
|
|
310
313
|
name: l.name,
|
|
311
|
-
color: St(l.color) ||
|
|
314
|
+
color: St(l.color) || it.value[o] || ne[o] || ne[o % ne.length],
|
|
312
315
|
value: pl(l.values.reduce((t, a) => t + a, 0)),
|
|
313
316
|
absoluteValues: l.values,
|
|
314
317
|
comment: l.comment || "",
|
|
@@ -320,19 +323,19 @@ const Bl = ["id"], Vl = ["xmlns", "viewBox"], El = ["width", "height"], Gl = { k
|
|
|
320
323
|
ge(() => k.dataset, (l) => {
|
|
321
324
|
Array.isArray(l) && l.length > 0 && (xe.value = !1);
|
|
322
325
|
}, { immediate: !0 });
|
|
323
|
-
const M = H(
|
|
324
|
-
ge(() =>
|
|
325
|
-
M.value = l, requestAnimationFrame(
|
|
326
|
+
const M = H(G.value);
|
|
327
|
+
ge(() => G.value, (l) => {
|
|
328
|
+
M.value = l, requestAnimationFrame(R);
|
|
326
329
|
});
|
|
327
330
|
function jt() {
|
|
328
|
-
return
|
|
331
|
+
return G.value.map((l) => ({
|
|
329
332
|
name: l.name,
|
|
330
333
|
color: l.color,
|
|
331
334
|
value: l.value
|
|
332
335
|
}));
|
|
333
336
|
}
|
|
334
|
-
const
|
|
335
|
-
function
|
|
337
|
+
const q = p([]), te = p(!1);
|
|
338
|
+
function dt({ from: l, to: o, duration: t, onUpdate: a, onDone: i, easing: c = Lt }) {
|
|
336
339
|
const m = performance.now();
|
|
337
340
|
function C(z) {
|
|
338
341
|
const O = Math.min((z - m) / t, 1), B = c(O), Z = l + (o - l) * B;
|
|
@@ -340,68 +343,68 @@ const Bl = ["id"], Vl = ["xmlns", "viewBox"], El = ["width", "height"], Gl = { k
|
|
|
340
343
|
}
|
|
341
344
|
requestAnimationFrame(C);
|
|
342
345
|
}
|
|
343
|
-
function
|
|
344
|
-
const o =
|
|
346
|
+
function ct(l) {
|
|
347
|
+
const o = G.value.find((i, c) => c === l);
|
|
345
348
|
let a = M.value.find((i, c) => c === l).value;
|
|
346
|
-
if (
|
|
349
|
+
if (q.value.includes(l)) {
|
|
347
350
|
let c = function() {
|
|
348
351
|
M.value = M.value.map(
|
|
349
352
|
(C, z) => l === z ? { ...C, value: i } : C
|
|
350
353
|
);
|
|
351
354
|
}, m = function() {
|
|
352
|
-
te.value = !0,
|
|
355
|
+
te.value = !0, dt({
|
|
353
356
|
from: a,
|
|
354
357
|
to: i,
|
|
355
358
|
duration: e.value.serieToggleAnimation.durationMs,
|
|
356
359
|
onUpdate: (C, z) => {
|
|
357
360
|
M.value = M.value.map(
|
|
358
361
|
(O, B) => l === B ? { ...O, value: C } : O
|
|
359
|
-
), requestAnimationFrame(
|
|
362
|
+
), requestAnimationFrame(R);
|
|
360
363
|
},
|
|
361
364
|
onDone: () => {
|
|
362
365
|
c(), te.value = !1;
|
|
363
366
|
}
|
|
364
367
|
});
|
|
365
368
|
};
|
|
366
|
-
|
|
369
|
+
q.value = q.value.filter((C) => C !== l);
|
|
367
370
|
const i = o.value;
|
|
368
|
-
e.value.serieToggleAnimation.show && e.value.type === "classic" ? m() : (c(), requestAnimationFrame(
|
|
369
|
-
} else if (
|
|
371
|
+
e.value.serieToggleAnimation.show && e.value.type === "classic" ? m() : (c(), requestAnimationFrame(R));
|
|
372
|
+
} else if (q.value.length < G.value.length - 1) {
|
|
370
373
|
let i = function() {
|
|
371
|
-
|
|
374
|
+
q.value.push(l), M.value = M.value.map(
|
|
372
375
|
(m, C) => l === C ? { ...m, value: 0 } : m
|
|
373
376
|
);
|
|
374
377
|
}, c = function() {
|
|
375
|
-
te.value = !0,
|
|
378
|
+
te.value = !0, dt({
|
|
376
379
|
from: a,
|
|
377
380
|
to: 0,
|
|
378
381
|
duration: e.value.serieToggleAnimation.durationMs,
|
|
379
382
|
onUpdate: (m, C) => {
|
|
380
383
|
M.value = M.value.map(
|
|
381
384
|
(z, O) => l === O ? { ...z, value: m } : z
|
|
382
|
-
), requestAnimationFrame(
|
|
385
|
+
), requestAnimationFrame(R);
|
|
383
386
|
},
|
|
384
387
|
onDone: () => {
|
|
385
|
-
i(), requestAnimationFrame(
|
|
388
|
+
i(), requestAnimationFrame(R), te.value = !1;
|
|
386
389
|
}
|
|
387
390
|
});
|
|
388
391
|
};
|
|
389
392
|
e.value.serieToggleAnimation.show && e.value.type === "classic" ? c() : i();
|
|
390
393
|
}
|
|
391
|
-
|
|
394
|
+
vt("selectLegend", U.value.map((i) => ({
|
|
392
395
|
name: i.name,
|
|
393
396
|
color: i.color,
|
|
394
397
|
value: i.value
|
|
395
398
|
})));
|
|
396
399
|
}
|
|
397
|
-
const Jt = y(() =>
|
|
400
|
+
const Jt = y(() => re.value.reduce((l, o) => l + o.values.reduce((t, a) => t + a, 0), 0)), U = y(() => {
|
|
398
401
|
if (T.value && !ke.value) {
|
|
399
|
-
const l =
|
|
400
|
-
...
|
|
402
|
+
const l = W.value.map((t, a) => ({
|
|
403
|
+
...G.value[a],
|
|
401
404
|
value: t,
|
|
402
|
-
color:
|
|
405
|
+
color: G.value[a].color,
|
|
403
406
|
ghost: !1
|
|
404
|
-
})), o = Jt.value -
|
|
407
|
+
})), o = Jt.value - W.value.reduce((t, a) => t + a, 0);
|
|
405
408
|
return o > 0 && l.push({
|
|
406
409
|
name: "__ghost__",
|
|
407
410
|
value: o,
|
|
@@ -418,19 +421,19 @@ const Bl = ["id"], Vl = ["xmlns", "viewBox"], El = ["width", "height"], Gl = { k
|
|
|
418
421
|
}), M.value.map((l, o) => ({
|
|
419
422
|
...l,
|
|
420
423
|
seriesIndex: o
|
|
421
|
-
})).filter((l, o) => !
|
|
422
|
-
}),
|
|
424
|
+
})).filter((l, o) => !q.value.includes(o));
|
|
425
|
+
}), ht = y(() => re.value.map((l, o) => ({
|
|
423
426
|
name: l.name,
|
|
424
|
-
color: St(l.color) ||
|
|
427
|
+
color: St(l.color) || it.value[o] || ne[o] || ne[o % ne.length],
|
|
425
428
|
value: (l.values || []).reduce((t, a) => t + a, 0),
|
|
426
429
|
shape: "circle",
|
|
427
430
|
patternIndex: o
|
|
428
431
|
})).map((l, o) => ({
|
|
429
432
|
...l,
|
|
430
|
-
proportion: l.value /
|
|
431
|
-
opacity:
|
|
432
|
-
segregate: () => !te.value &&
|
|
433
|
-
isSegregated:
|
|
433
|
+
proportion: l.value / re.value.map((t) => (t.values || []).reduce((a, i) => a + i, 0)).reduce((t, a) => t + a, 0),
|
|
434
|
+
opacity: q.value.includes(o) ? 0.5 : 1,
|
|
435
|
+
segregate: () => !te.value && ct(o),
|
|
436
|
+
isSegregated: q.value.includes(o)
|
|
434
437
|
}))), Kt = y(() => ({
|
|
435
438
|
cy: "donut-div-legend",
|
|
436
439
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
@@ -439,8 +442,8 @@ const Bl = ["id"], Vl = ["xmlns", "viewBox"], El = ["width", "height"], Gl = { k
|
|
|
439
442
|
paddingBottom: 12,
|
|
440
443
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
441
444
|
})), _ = y(() => {
|
|
442
|
-
const l = Math.min(s.value.width
|
|
443
|
-
return
|
|
445
|
+
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);
|
|
446
|
+
return Math.max(12, t);
|
|
444
447
|
}), S = y(() => Pt({ series: U.value }, s.value.width / 2, s.value.height / 2, _.value, _.value, 1.99999, 2, 1, 360, 105.25, ee.value)), Qt = y(() => Math.abs(U.value.map((l) => l.value).reduce((l, o) => l + o, 0)) > 0), Zt = y(() => Pt({
|
|
445
448
|
series: [
|
|
446
449
|
{
|
|
@@ -465,7 +468,7 @@ const Bl = ["id"], Vl = ["xmlns", "viewBox"], El = ["width", "height"], Gl = { k
|
|
|
465
468
|
hasGhost: T.value
|
|
466
469
|
});
|
|
467
470
|
});
|
|
468
|
-
function
|
|
471
|
+
function ve(l) {
|
|
469
472
|
return l.x > s.value.width / 2 + 6 ? "start" : l.x < s.value.width / 2 - 6 ? "end" : "middle";
|
|
470
473
|
}
|
|
471
474
|
function el(l) {
|
|
@@ -490,12 +493,12 @@ const Bl = ["id"], Vl = ["xmlns", "viewBox"], El = ["width", "height"], Gl = { k
|
|
|
490
493
|
function tl(l) {
|
|
491
494
|
return [...l].map((o) => o.value).reduce((o, t) => o + t, 0);
|
|
492
495
|
}
|
|
493
|
-
const
|
|
494
|
-
function
|
|
496
|
+
const F = y(() => U.value.map((l) => l.value).reduce((l, o) => l + o, 0)), Ne = y(() => F.value / U.value.length), yt = y(() => (l) => te.value ? l.proportion * 100 : l.value / F.value * 100), Ye = p(null), pe = p(!1);
|
|
497
|
+
function de({ datapoint: l, seriesIndex: o }) {
|
|
495
498
|
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: l, seriesIndex: o }), Le.value = !1, Y.value = null;
|
|
496
499
|
}
|
|
497
|
-
function
|
|
498
|
-
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: l, seriesIndex: t }),
|
|
500
|
+
function ce({ datapoint: l, relativeIndex: o, seriesIndex: t, show: a = !1 }) {
|
|
501
|
+
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: l, seriesIndex: t }), Ye.value = { datapoint: l, seriesIndex: t, config: e.value, series: G.value }, Le.value = a, Y.value = o;
|
|
499
502
|
let i = "";
|
|
500
503
|
const c = e.value.style.chart.tooltip.customFormat;
|
|
501
504
|
if (pe.value = !1, Tl(c))
|
|
@@ -503,7 +506,7 @@ const Bl = ["id"], Vl = ["xmlns", "viewBox"], El = ["width", "height"], Gl = { k
|
|
|
503
506
|
const m = c({
|
|
504
507
|
seriesIndex: t,
|
|
505
508
|
datapoint: l,
|
|
506
|
-
series:
|
|
509
|
+
series: G.value,
|
|
507
510
|
config: e.value
|
|
508
511
|
});
|
|
509
512
|
typeof m == "string" && (Ie.value = m, pe.value = !0);
|
|
@@ -559,14 +562,14 @@ const Bl = ["id"], Vl = ["xmlns", "viewBox"], El = ["width", "height"], Gl = { k
|
|
|
559
562
|
vl(() => {
|
|
560
563
|
const o = K.value.head.map((i, c) => [[
|
|
561
564
|
i.name
|
|
562
|
-
], [K.value.body[c]], [isNaN(K.value.body[c] /
|
|
565
|
+
], [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 = Cl(t);
|
|
563
566
|
l ? l(a) : Al({ csvContent: a, title: e.value.style.chart.title.text || "vue-ui-donut" });
|
|
564
567
|
});
|
|
565
568
|
}
|
|
566
569
|
const _e = y(() => {
|
|
567
570
|
const l = [
|
|
568
571
|
' <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
|
-
N({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v:
|
|
572
|
+
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 }),
|
|
570
573
|
"100%"
|
|
571
574
|
], o = K.value.head.map((i, c) => [
|
|
572
575
|
{
|
|
@@ -574,7 +577,7 @@ const Bl = ["id"], Vl = ["xmlns", "viewBox"], El = ["width", "height"], Gl = { k
|
|
|
574
577
|
name: i.name || "-"
|
|
575
578
|
},
|
|
576
579
|
K.value.body[c],
|
|
577
|
-
isNaN(K.value.body[c] /
|
|
580
|
+
isNaN(K.value.body[c] / F.value) ? "-" : (K.value.body[c] / F.value * 100).toFixed(e.value.table.td.roundingPercentage) + "%"
|
|
578
581
|
]), t = {
|
|
579
582
|
th: {
|
|
580
583
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
@@ -598,16 +601,16 @@ const Bl = ["id"], Vl = ["xmlns", "viewBox"], El = ["width", "height"], Gl = { k
|
|
|
598
601
|
body: o,
|
|
599
602
|
config: t
|
|
600
603
|
};
|
|
601
|
-
}),
|
|
604
|
+
}), he = p(!1);
|
|
602
605
|
function pt(l) {
|
|
603
|
-
|
|
606
|
+
he.value = l, et.value += 1;
|
|
604
607
|
}
|
|
605
608
|
const gt = y(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent));
|
|
606
609
|
function ll(l) {
|
|
607
610
|
return l.toFixed(e.value.style.chart.legend.roundingPercentage).split("").map((o) => "-").join("");
|
|
608
611
|
}
|
|
609
612
|
function Q(l, o) {
|
|
610
|
-
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex: l.seriesIndex }),
|
|
613
|
+
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex: l.seriesIndex }), vt("selectDatapoint", { datapoint: l, index: o });
|
|
611
614
|
}
|
|
612
615
|
function mt() {
|
|
613
616
|
f.value.showTable = !f.value.showTable;
|
|
@@ -619,12 +622,12 @@ const Bl = ["id"], Vl = ["xmlns", "viewBox"], El = ["width", "height"], Gl = { k
|
|
|
619
622
|
f.value.showTooltip = !f.value.showTooltip;
|
|
620
623
|
}
|
|
621
624
|
const $e = p(!1);
|
|
622
|
-
function
|
|
625
|
+
function Xe() {
|
|
623
626
|
$e.value = !$e.value;
|
|
624
627
|
}
|
|
625
628
|
async function al({ scale: l = 2 } = {}) {
|
|
626
629
|
if (!E.value) return;
|
|
627
|
-
const { width: o, height: t } = E.value.getBoundingClientRect(), a = o / t, { imageUri: i, base64: c } = await
|
|
630
|
+
const { width: o, height: t } = E.value.getBoundingClientRect(), a = o / t, { imageUri: i, base64: c } = await Ol({ domElement: E.value, base64: !0, img: !0, scale: l });
|
|
628
631
|
return {
|
|
629
632
|
imageUri: i,
|
|
630
633
|
base64: c,
|
|
@@ -637,53 +640,53 @@ const Bl = ["id"], Vl = ["xmlns", "viewBox"], El = ["width", "height"], Gl = { k
|
|
|
637
640
|
function ol() {
|
|
638
641
|
if (!be.value) return;
|
|
639
642
|
const { x: l, y: o, width: t, height: a } = be.value.getBBox();
|
|
640
|
-
|
|
643
|
+
ie.value && ie.value.setAttribute("viewBox", `${l} ${o} ${t + Math.min(0, l)} ${a + Math.min(0, o)}`);
|
|
641
644
|
}
|
|
642
645
|
return Mt({
|
|
643
646
|
autoSize: ol,
|
|
644
647
|
getData: jt,
|
|
645
648
|
getImage: al,
|
|
646
|
-
generatePdf:
|
|
649
|
+
generatePdf: ut,
|
|
647
650
|
generateCsv: ft,
|
|
648
|
-
generateImage:
|
|
651
|
+
generateImage: rt,
|
|
649
652
|
toggleTable: mt,
|
|
650
653
|
toggleLabels: bt,
|
|
651
654
|
toggleTooltip: wt,
|
|
652
|
-
toggleAnnotator:
|
|
655
|
+
toggleAnnotator: Xe,
|
|
653
656
|
toggleFullscreen: pt
|
|
654
|
-
}), (l, o) => (
|
|
657
|
+
}), (l, o) => (n(), r("div", {
|
|
655
658
|
ref_key: "donutChart",
|
|
656
659
|
ref: E,
|
|
657
|
-
class:
|
|
660
|
+
class: Be(`vue-ui-donut ${he.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
658
661
|
style: $(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height:100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
659
662
|
id: `donut__${g.value}`,
|
|
660
663
|
onMouseenter: Wt,
|
|
661
664
|
onMouseleave: Ut
|
|
662
665
|
}, [
|
|
663
|
-
e.value.userOptions.buttons.annotator &&
|
|
666
|
+
e.value.userOptions.buttons.annotator && u(ie) ? (n(), ae(u(Xt), {
|
|
664
667
|
key: 0,
|
|
665
668
|
color: e.value.style.chart.color,
|
|
666
669
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
667
670
|
active: $e.value,
|
|
668
|
-
svgRef:
|
|
669
|
-
onClose:
|
|
671
|
+
svgRef: u(ie),
|
|
672
|
+
onClose: Xe
|
|
670
673
|
}, null, 8, ["color", "backgroundColor", "active", "svgRef"])) : v("", !0),
|
|
671
|
-
|
|
672
|
-
Ht.value ? (
|
|
674
|
+
b(l.$slots, "userConfig", {}, void 0, !0),
|
|
675
|
+
Ht.value ? (n(), r("div", {
|
|
673
676
|
key: 1,
|
|
674
677
|
ref_key: "noTitle",
|
|
675
|
-
ref:
|
|
678
|
+
ref: je,
|
|
676
679
|
class: "vue-data-ui-no-title-space",
|
|
677
680
|
style: "height:36px; width: 100%;background:transparent"
|
|
678
681
|
}, null, 512)) : v("", !0),
|
|
679
|
-
e.value.style.chart.title.text ? (
|
|
682
|
+
e.value.style.chart.title.text ? (n(), r("div", {
|
|
680
683
|
key: 2,
|
|
681
684
|
ref_key: "chartTitle",
|
|
682
|
-
ref:
|
|
685
|
+
ref: We,
|
|
683
686
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
684
687
|
}, [
|
|
685
|
-
(
|
|
686
|
-
key: `title_${
|
|
688
|
+
(n(), ae(Yl, {
|
|
689
|
+
key: `title_${Je.value}`,
|
|
687
690
|
config: {
|
|
688
691
|
title: {
|
|
689
692
|
cy: "donut-div-title",
|
|
@@ -696,14 +699,14 @@ const Bl = ["id"], Vl = ["xmlns", "viewBox"], El = ["width", "height"], Gl = { k
|
|
|
696
699
|
}
|
|
697
700
|
}, null, 8, ["config"]))
|
|
698
701
|
], 512)) : v("", !0),
|
|
699
|
-
e.value.userOptions.show && me.value && (
|
|
702
|
+
e.value.userOptions.show && me.value && (u(at) || u(ze)) ? (n(), ae(u(Bt), {
|
|
700
703
|
ref_key: "details",
|
|
701
|
-
ref:
|
|
702
|
-
key: `user_option_${
|
|
704
|
+
ref: Rt,
|
|
705
|
+
key: `user_option_${et.value}`,
|
|
703
706
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
704
707
|
color: e.value.style.chart.color,
|
|
705
|
-
isPrinting:
|
|
706
|
-
isImaging:
|
|
708
|
+
isPrinting: u(st),
|
|
709
|
+
isImaging: u(nt),
|
|
707
710
|
uid: g.value,
|
|
708
711
|
hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
|
|
709
712
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -712,7 +715,7 @@ const Bl = ["id"], Vl = ["xmlns", "viewBox"], El = ["width", "height"], Gl = { k
|
|
|
712
715
|
hasTable: e.value.userOptions.buttons.table,
|
|
713
716
|
hasLabel: e.value.userOptions.buttons.labels,
|
|
714
717
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
715
|
-
isFullscreen:
|
|
718
|
+
isFullscreen: he.value,
|
|
716
719
|
chartElement: E.value,
|
|
717
720
|
position: e.value.userOptions.position,
|
|
718
721
|
callbacks: e.value.userOptions.callbacks,
|
|
@@ -722,96 +725,96 @@ const Bl = ["id"], Vl = ["xmlns", "viewBox"], El = ["width", "height"], Gl = { k
|
|
|
722
725
|
isAnnotation: $e.value,
|
|
723
726
|
printScale: e.value.userOptions.print.scale,
|
|
724
727
|
onToggleFullscreen: pt,
|
|
725
|
-
onGeneratePdf:
|
|
728
|
+
onGeneratePdf: u(ut),
|
|
726
729
|
onGenerateCsv: ft,
|
|
727
|
-
onGenerateImage:
|
|
730
|
+
onGenerateImage: u(rt),
|
|
728
731
|
onToggleTable: mt,
|
|
729
732
|
onToggleLabels: bt,
|
|
730
733
|
onToggleTooltip: wt,
|
|
731
|
-
onToggleAnnotator:
|
|
734
|
+
onToggleAnnotator: Xe,
|
|
732
735
|
style: $({
|
|
733
|
-
visibility:
|
|
736
|
+
visibility: u(at) ? u(ze) ? "visible" : "hidden" : "visible"
|
|
734
737
|
})
|
|
735
738
|
}, _t({ _: 2 }, [
|
|
736
739
|
l.$slots.menuIcon ? {
|
|
737
740
|
name: "menuIcon",
|
|
738
741
|
fn: A(({ isOpen: t, color: a }) => [
|
|
739
|
-
|
|
742
|
+
b(l.$slots, "menuIcon", oe(se({ isOpen: t, color: a })), void 0, !0)
|
|
740
743
|
]),
|
|
741
744
|
key: "0"
|
|
742
745
|
} : void 0,
|
|
743
746
|
l.$slots.optionTooltip ? {
|
|
744
747
|
name: "optionTooltip",
|
|
745
748
|
fn: A(() => [
|
|
746
|
-
|
|
749
|
+
b(l.$slots, "optionTooltip", {}, void 0, !0)
|
|
747
750
|
]),
|
|
748
751
|
key: "1"
|
|
749
752
|
} : void 0,
|
|
750
753
|
l.$slots.optionPdf ? {
|
|
751
754
|
name: "optionPdf",
|
|
752
755
|
fn: A(() => [
|
|
753
|
-
|
|
756
|
+
b(l.$slots, "optionPdf", {}, void 0, !0)
|
|
754
757
|
]),
|
|
755
758
|
key: "2"
|
|
756
759
|
} : void 0,
|
|
757
760
|
l.$slots.optionCsv ? {
|
|
758
761
|
name: "optionCsv",
|
|
759
762
|
fn: A(() => [
|
|
760
|
-
|
|
763
|
+
b(l.$slots, "optionCsv", {}, void 0, !0)
|
|
761
764
|
]),
|
|
762
765
|
key: "3"
|
|
763
766
|
} : void 0,
|
|
764
767
|
l.$slots.optionImg ? {
|
|
765
768
|
name: "optionImg",
|
|
766
769
|
fn: A(() => [
|
|
767
|
-
|
|
770
|
+
b(l.$slots, "optionImg", {}, void 0, !0)
|
|
768
771
|
]),
|
|
769
772
|
key: "4"
|
|
770
773
|
} : void 0,
|
|
771
774
|
l.$slots.optionTable ? {
|
|
772
775
|
name: "optionTable",
|
|
773
776
|
fn: A(() => [
|
|
774
|
-
|
|
777
|
+
b(l.$slots, "optionTable", {}, void 0, !0)
|
|
775
778
|
]),
|
|
776
779
|
key: "5"
|
|
777
780
|
} : void 0,
|
|
778
781
|
l.$slots.optionLabels ? {
|
|
779
782
|
name: "optionLabels",
|
|
780
783
|
fn: A(() => [
|
|
781
|
-
|
|
784
|
+
b(l.$slots, "optionLabels", {}, void 0, !0)
|
|
782
785
|
]),
|
|
783
786
|
key: "6"
|
|
784
787
|
} : void 0,
|
|
785
788
|
l.$slots.optionFullscreen ? {
|
|
786
789
|
name: "optionFullscreen",
|
|
787
790
|
fn: A(({ toggleFullscreen: t, isFullscreen: a }) => [
|
|
788
|
-
|
|
791
|
+
b(l.$slots, "optionFullscreen", oe(se({ toggleFullscreen: t, isFullscreen: a })), void 0, !0)
|
|
789
792
|
]),
|
|
790
793
|
key: "7"
|
|
791
794
|
} : void 0,
|
|
792
795
|
l.$slots.optionAnnotator ? {
|
|
793
796
|
name: "optionAnnotator",
|
|
794
797
|
fn: A(({ toggleAnnotator: t, isAnnotator: a }) => [
|
|
795
|
-
|
|
798
|
+
b(l.$slots, "optionAnnotator", oe(se({ toggleAnnotator: t, isAnnotator: a })), void 0, !0)
|
|
796
799
|
]),
|
|
797
800
|
key: "8"
|
|
798
801
|
} : void 0
|
|
799
802
|
]), 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),
|
|
800
|
-
(
|
|
803
|
+
(n(), r("svg", {
|
|
801
804
|
ref_key: "svgRef",
|
|
802
|
-
ref:
|
|
803
|
-
xmlns:
|
|
804
|
-
class:
|
|
805
|
+
ref: ie,
|
|
806
|
+
xmlns: u(ml),
|
|
807
|
+
class: Be({ "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};${ot.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
|
-
|
|
814
|
-
l.$slots["chart-background"] ? (
|
|
816
|
+
Ve(u(Yt)),
|
|
817
|
+
l.$slots["chart-background"] ? (n(), r("foreignObject", {
|
|
815
818
|
key: 0,
|
|
816
819
|
x: 0,
|
|
817
820
|
y: 0,
|
|
@@ -821,36 +824,36 @@ const Bl = ["id"], Vl = ["xmlns", "viewBox"], El = ["width", "height"], Gl = { k
|
|
|
821
824
|
pointerEvents: "none"
|
|
822
825
|
}
|
|
823
826
|
}, [
|
|
824
|
-
|
|
827
|
+
b(l.$slots, "chart-background", {}, void 0, !0)
|
|
825
828
|
], 8, El)) : v("", !0),
|
|
826
|
-
e.value.type === "classic" && !isNaN(ee.value / _.value) ? (
|
|
827
|
-
e.value.style.chart.useGradient ? (
|
|
829
|
+
e.value.type === "classic" && !isNaN(ee.value / _.value) ? (n(), r("defs", Rl, [
|
|
830
|
+
e.value.style.chart.useGradient ? (n(), r("radialGradient", {
|
|
828
831
|
key: 0,
|
|
829
832
|
id: `gradient_${g.value}`
|
|
830
833
|
}, [
|
|
831
834
|
h("stop", {
|
|
832
835
|
offset: "0%",
|
|
833
|
-
"stop-color":
|
|
836
|
+
"stop-color": u(Ce)(e.value.style.chart.backgroundColor, 0),
|
|
834
837
|
"stop-opacity": "0"
|
|
835
838
|
}, null, 8, ql),
|
|
836
839
|
h("stop", {
|
|
837
840
|
offset: `${(1 - ee.value / _.value) * 100}%`,
|
|
838
|
-
"stop-color":
|
|
841
|
+
"stop-color": u(Ce)("#FFFFFF", 0),
|
|
839
842
|
"stop-opacity": "0"
|
|
840
843
|
}, null, 8, Wl),
|
|
841
844
|
h("stop", {
|
|
842
845
|
offset: `${(1 - ee.value / _.value / 2) * 100}%`,
|
|
843
|
-
"stop-color":
|
|
846
|
+
"stop-color": u(Ce)("#FFFFFF", e.value.style.chart.gradientIntensity)
|
|
844
847
|
}, null, 8, Ul),
|
|
845
848
|
h("stop", {
|
|
846
849
|
offset: "100%",
|
|
847
|
-
"stop-color":
|
|
850
|
+
"stop-color": u(Ce)(e.value.style.chart.backgroundColor, 0),
|
|
848
851
|
"stop-opacity": "0"
|
|
849
852
|
}, null, 8, Hl)
|
|
850
|
-
], 8,
|
|
853
|
+
], 8, Gl)) : v("", !0)
|
|
851
854
|
])) : v("", !0),
|
|
852
|
-
e.value.type === "polar" ? (
|
|
853
|
-
(
|
|
855
|
+
e.value.type === "polar" ? (n(), r("defs", jl, [
|
|
856
|
+
(n(!0), r(w, null, L(d.value, (t, a) => (n(), r("radialGradient", {
|
|
854
857
|
id: `polar_gradient_${a}_${g.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) + "%",
|
|
@@ -858,7 +861,7 @@ const Bl = ["id"], Vl = ["xmlns", "viewBox"], El = ["width", "height"], Gl = { k
|
|
|
858
861
|
}, [
|
|
859
862
|
h("stop", {
|
|
860
863
|
offset: "0%",
|
|
861
|
-
"stop-color":
|
|
864
|
+
"stop-color": u(bl)(S.value[a].color, 0.05),
|
|
862
865
|
"stop-opacity": e.value.style.chart.gradientIntensity / 100
|
|
863
866
|
}, null, 8, Kl),
|
|
864
867
|
h("stop", {
|
|
@@ -914,10 +917,10 @@ const Bl = ["id"], Vl = ["xmlns", "viewBox"], El = ["width", "height"], Gl = { k
|
|
|
914
917
|
}, null, 8, oa)
|
|
915
918
|
], 8, aa)
|
|
916
919
|
]),
|
|
917
|
-
e.value.type === "classic" ? (
|
|
918
|
-
D(t) && f.value.dataLabels.show ? (
|
|
920
|
+
e.value.type === "classic" ? (n(!0), r(w, { key: 3 }, L(S.value.filter((t) => !t.ghost), (t, a) => (n(), r("g", null, [
|
|
921
|
+
D(t) && f.value.dataLabels.show ? (n(), r("path", {
|
|
919
922
|
key: 0,
|
|
920
|
-
d:
|
|
923
|
+
d: u(wl)(t, { x: s.value.width / 2, y: s.value.height / 2 }, 16, 16, !1, !1, ee.value, 12, e.value.style.chart.layout.curvedMarkers),
|
|
921
924
|
stroke: t.color,
|
|
922
925
|
"stroke-width": "1",
|
|
923
926
|
"stroke-linecap": "round",
|
|
@@ -926,10 +929,10 @@ const Bl = ["id"], Vl = ["xmlns", "viewBox"], El = ["width", "height"], Gl = { k
|
|
|
926
929
|
filter: le(a)
|
|
927
930
|
}, null, 8, sa)) : v("", !0)
|
|
928
931
|
]))), 256)) : v("", !0),
|
|
929
|
-
e.value.type === "polar" ? (
|
|
930
|
-
D(t) && f.value.dataLabels.show ? (
|
|
932
|
+
e.value.type === "polar" ? (n(!0), r(w, { key: 4 }, L(S.value.filter((t) => !t.ghost), (t, a) => (n(), r("g", null, [
|
|
933
|
+
D(t) && f.value.dataLabels.show ? (n(), r("path", {
|
|
931
934
|
key: 0,
|
|
932
|
-
d: `M ${
|
|
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,
|
|
934
937
|
"stroke-width": "1",
|
|
935
938
|
"stroke-linecap": "round",
|
|
@@ -941,7 +944,7 @@ const Bl = ["id"], Vl = ["xmlns", "viewBox"], El = ["width", "height"], Gl = { k
|
|
|
941
944
|
})
|
|
942
945
|
}, null, 12, na)) : v("", !0)
|
|
943
946
|
]))), 256)) : v("", !0),
|
|
944
|
-
e.value.type === "classic" && e.value.style.chart.layout.donut.useShadow ? (
|
|
947
|
+
e.value.type === "classic" && e.value.style.chart.layout.donut.useShadow ? (n(), r("circle", {
|
|
945
948
|
key: 5,
|
|
946
949
|
cx: s.value.width / 2,
|
|
947
950
|
cy: s.value.height / 2,
|
|
@@ -949,20 +952,20 @@ const Bl = ["id"], Vl = ["xmlns", "viewBox"], El = ["width", "height"], Gl = { k
|
|
|
949
952
|
fill: e.value.style.chart.backgroundColor,
|
|
950
953
|
filter: `url(#shadow_${g.value})`
|
|
951
954
|
}, null, 8, ua)) : v("", !0),
|
|
952
|
-
l.$slots.pattern ? (
|
|
953
|
-
(
|
|
955
|
+
l.$slots.pattern ? (n(), r("g", ra, [
|
|
956
|
+
(n(!0), r(w, null, L(qe.dataset, (t, a) => (n(), r("defs", {
|
|
954
957
|
key: `pattern-${t.patternIndex}`
|
|
955
958
|
}, [
|
|
956
|
-
|
|
959
|
+
b(l.$slots, "pattern", $t({ ref_for: !0 }, { seriesIndex: a, patternId: `pattern_${g.value}_${a}` }), void 0, !0)
|
|
957
960
|
]))), 128))
|
|
958
961
|
])) : v("", !0),
|
|
959
|
-
|
|
960
|
-
(
|
|
962
|
+
F.value && e.value.type === "classic" ? (n(), r(w, { key: 7 }, [
|
|
963
|
+
(n(!0), r(w, null, L(X.value, (t, a) => (n(), r("path", {
|
|
961
964
|
stroke: e.value.style.chart.backgroundColor,
|
|
962
965
|
d: t.arcSlice,
|
|
963
966
|
fill: "#FFFFFF"
|
|
964
967
|
}, null, 8, ia))), 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,
|
|
@@ -970,8 +973,8 @@ const Bl = ["id"], Vl = ["xmlns", "viewBox"], El = ["width", "height"], Gl = { k
|
|
|
970
973
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
971
974
|
filter: le(a)
|
|
972
975
|
}, null, 8, va))), 256)),
|
|
973
|
-
l.$slots.pattern ? (
|
|
974
|
-
(
|
|
976
|
+
l.$slots.pattern ? (n(), r("g", da, [
|
|
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})`,
|
|
@@ -981,9 +984,9 @@ const Bl = ["id"], Vl = ["xmlns", "viewBox"], El = ["width", "height"], Gl = { k
|
|
|
981
984
|
}, null, 8, ca))), 256))
|
|
982
985
|
])) : v("", !0)
|
|
983
986
|
], 64)) : v("", !0),
|
|
984
|
-
|
|
985
|
-
S.value.length > 1 ? (
|
|
986
|
-
(
|
|
987
|
+
F.value && e.value.type === "polar" ? (n(), r(w, { key: 8 }, [
|
|
988
|
+
S.value.length > 1 ? (n(), r("g", ha, [
|
|
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,
|
|
989
992
|
fill: "#FFFFFF",
|
|
@@ -991,8 +994,8 @@ const Bl = ["id"], Vl = ["xmlns", "viewBox"], El = ["width", "height"], Gl = { k
|
|
|
991
994
|
transition: T.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
992
995
|
})
|
|
993
996
|
}, null, 12, ya))), 256)),
|
|
994
|
-
e.value.style.chart.layout.donut.useShadow ? (
|
|
995
|
-
(
|
|
997
|
+
e.value.style.chart.layout.donut.useShadow ? (n(), r("g", fa, [
|
|
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",
|
|
@@ -1004,8 +1007,8 @@ const Bl = ["id"], Vl = ["xmlns", "viewBox"], El = ["width", "height"], Gl = { k
|
|
|
1004
1007
|
})
|
|
1005
1008
|
}, null, 12, pa))), 256))
|
|
1006
1009
|
])) : v("", !0),
|
|
1007
|
-
l.$slots.pattern ? (
|
|
1008
|
-
(
|
|
1010
|
+
l.$slots.pattern ? (n(), r("g", ga, [
|
|
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})`,
|
|
@@ -1018,7 +1021,7 @@ const Bl = ["id"], Vl = ["xmlns", "viewBox"], El = ["width", "height"], Gl = { k
|
|
|
1018
1021
|
})
|
|
1019
1022
|
}, null, 12, ma))), 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
1027
|
fill: e.value.style.chart.useGradient ? `url(#polar_gradient_${a}_${g.value})` : t.color,
|
|
@@ -1029,8 +1032,8 @@ const Bl = ["id"], Vl = ["xmlns", "viewBox"], El = ["width", "height"], Gl = { k
|
|
|
1029
1032
|
transition: T.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
1030
1033
|
})
|
|
1031
1034
|
}, null, 12, ba))), 256))
|
|
1032
|
-
])) : (
|
|
1033
|
-
l.$slots.pattern ? (
|
|
1035
|
+
])) : (n(), r("g", wa, [
|
|
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,
|
|
@@ -1048,9 +1051,9 @@ const Bl = ["id"], Vl = ["xmlns", "viewBox"], El = ["width", "height"], Gl = { k
|
|
|
1048
1051
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth
|
|
1049
1052
|
}, null, 8, xa)
|
|
1050
1053
|
]))
|
|
1051
|
-
], 64)) : (
|
|
1052
|
-
e.value.type === "classic" && !Qt.value ? (
|
|
1053
|
-
(
|
|
1054
|
+
], 64)) : (n(), r(w, { key: 9 }, [
|
|
1055
|
+
e.value.type === "classic" && !Qt.value ? (n(), r("g", _a, [
|
|
1056
|
+
(n(!0), r(w, null, L(Zt.value, (t, a) => (n(), r("path", {
|
|
1054
1057
|
class: "vue-ui-donut-arc-path",
|
|
1055
1058
|
d: t.arcSlice,
|
|
1056
1059
|
fill: t.color,
|
|
@@ -1066,7 +1069,7 @@ const Bl = ["id"], Vl = ["xmlns", "viewBox"], El = ["width", "height"], Gl = { k
|
|
|
1066
1069
|
stroke: e.value.style.chart.backgroundColor
|
|
1067
1070
|
}, null, 8, Ca)
|
|
1068
1071
|
], 64)),
|
|
1069
|
-
e.value.style.chart.useGradient && e.value.type === "classic" ? (
|
|
1072
|
+
e.value.style.chart.useGradient && e.value.type === "classic" ? (n(), r("circle", {
|
|
1070
1073
|
key: 10,
|
|
1071
1074
|
cx: s.value.width / 2,
|
|
1072
1075
|
cy: s.value.height / 2,
|
|
@@ -1085,45 +1088,45 @@ const Bl = ["id"], Vl = ["xmlns", "viewBox"], El = ["width", "height"], Gl = { k
|
|
|
1085
1088
|
cy: s.value.height / 2,
|
|
1086
1089
|
r: Math.max(0.1, ee.value * 1.7)
|
|
1087
1090
|
}, null, 8, Ta),
|
|
1088
|
-
|
|
1089
|
-
S.value.length > 1 || e.value.type === "classic" ? (
|
|
1090
|
-
(
|
|
1091
|
+
F.value ? (n(), r(w, { key: 11 }, [
|
|
1092
|
+
S.value.length > 1 || e.value.type === "classic" ? (n(), r("g", Sa, [
|
|
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,
|
|
1093
1096
|
fill: Y.value === a ? e.value.style.chart.layout.donut.selectedColor : "transparent",
|
|
1094
|
-
onMouseenter: (i) =>
|
|
1097
|
+
onMouseenter: (i) => ce({
|
|
1095
1098
|
datapoint: t,
|
|
1096
1099
|
relativeIndex: a,
|
|
1097
1100
|
seriesIndex: t.seriesIndex,
|
|
1098
1101
|
show: !0
|
|
1099
1102
|
}),
|
|
1100
|
-
onMouseleave: (i) =>
|
|
1103
|
+
onMouseleave: (i) => de({ datapoint: t, seriesIndex: t.seriesIndex }),
|
|
1101
1104
|
onClick: (i) => Q(t, a)
|
|
1102
1105
|
}, null, 40, Pa))), 256))
|
|
1103
|
-
])) : (
|
|
1106
|
+
])) : (n(), r("g", Fa, [
|
|
1104
1107
|
h("circle", {
|
|
1105
1108
|
cx: s.value.width / 2,
|
|
1106
1109
|
cy: s.value.height / 2,
|
|
1107
1110
|
r: _.value,
|
|
1108
1111
|
fill: "transparent",
|
|
1109
|
-
onMouseenter: o[0] || (o[0] = (t) =>
|
|
1112
|
+
onMouseenter: o[0] || (o[0] = (t) => ce({
|
|
1110
1113
|
datapoint: S.value[0],
|
|
1111
1114
|
relativeIndex: 0,
|
|
1112
1115
|
seriesIndex: S.value[0].seriesIndex,
|
|
1113
1116
|
show: !0
|
|
1114
1117
|
})),
|
|
1115
|
-
onMouseleave: o[1] || (o[1] = (t) =>
|
|
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
1120
|
}, null, 40, La)
|
|
1118
1121
|
]))
|
|
1119
1122
|
], 64)) : v("", !0),
|
|
1120
|
-
e.value.type === "classic" ? (
|
|
1123
|
+
e.value.type === "classic" ? (n(), r("g", {
|
|
1121
1124
|
key: 12,
|
|
1122
1125
|
ref_key: "G_hollow",
|
|
1123
1126
|
ref: Ae,
|
|
1124
1127
|
class: "vue-data-ui-donut-hollow-labels"
|
|
1125
1128
|
}, [
|
|
1126
|
-
e.value.style.chart.layout.labels.hollow.total.show ? (
|
|
1129
|
+
e.value.style.chart.layout.labels.hollow.total.show ? (n(), r("text", {
|
|
1127
1130
|
key: 0,
|
|
1128
1131
|
"text-anchor": "middle",
|
|
1129
1132
|
x: s.value.width / 2,
|
|
@@ -1132,7 +1135,7 @@ const Bl = ["id"], Vl = ["xmlns", "viewBox"], El = ["width", "height"], Gl = { k
|
|
|
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
1137
|
}, I(e.value.style.chart.layout.labels.hollow.total.text), 13, Ia)) : v("", !0),
|
|
1135
|
-
e.value.style.chart.layout.labels.hollow.total.show ? (
|
|
1138
|
+
e.value.style.chart.layout.labels.hollow.total.show ? (n(), r("text", {
|
|
1136
1139
|
key: 1,
|
|
1137
1140
|
"text-anchor": "middle",
|
|
1138
1141
|
x: s.value.width / 2,
|
|
@@ -1140,16 +1143,16 @@ const Bl = ["id"], Vl = ["xmlns", "viewBox"], El = ["width", "height"], Gl = { k
|
|
|
1140
1143
|
fill: e.value.style.chart.layout.labels.hollow.total.value.color,
|
|
1141
1144
|
"font-size": e.value.style.chart.layout.labels.hollow.total.value.fontSize,
|
|
1142
1145
|
style: $(`font-weight:${e.value.style.chart.layout.labels.hollow.total.value.bold ? "bold" : ""}`)
|
|
1143
|
-
}, I(
|
|
1146
|
+
}, I(u(V)(
|
|
1144
1147
|
e.value.style.chart.layout.labels.hollow.total.value.formatter,
|
|
1145
|
-
|
|
1146
|
-
|
|
1148
|
+
F.value,
|
|
1149
|
+
u(N)({
|
|
1147
1150
|
p: e.value.style.chart.layout.labels.hollow.total.value.prefix,
|
|
1148
|
-
v:
|
|
1151
|
+
v: F.value,
|
|
1149
1152
|
s: e.value.style.chart.layout.labels.hollow.total.value.suffix
|
|
1150
1153
|
})
|
|
1151
1154
|
)), 13, Ma)) : v("", !0),
|
|
1152
|
-
e.value.style.chart.layout.labels.hollow.average.show ? (
|
|
1155
|
+
e.value.style.chart.layout.labels.hollow.average.show ? (n(), r("text", {
|
|
1153
1156
|
key: 2,
|
|
1154
1157
|
"text-anchor": "middle",
|
|
1155
1158
|
x: s.value.width / 2,
|
|
@@ -1158,7 +1161,7 @@ const Bl = ["id"], Vl = ["xmlns", "viewBox"], El = ["width", "height"], Gl = { k
|
|
|
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
1163
|
}, I(e.value.style.chart.layout.labels.hollow.average.text), 13, za)) : v("", !0),
|
|
1161
|
-
e.value.style.chart.layout.labels.hollow.average.show ? (
|
|
1164
|
+
e.value.style.chart.layout.labels.hollow.average.show ? (n(), r("text", {
|
|
1162
1165
|
key: 3,
|
|
1163
1166
|
"text-anchor": "middle",
|
|
1164
1167
|
x: s.value.width / 2,
|
|
@@ -1166,107 +1169,107 @@ const Bl = ["id"], Vl = ["xmlns", "viewBox"], El = ["width", "height"], Gl = { 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(te.value || T.value ? "--" :
|
|
1172
|
+
}, I(te.value || T.value ? "--" : u(V)(
|
|
1170
1173
|
e.value.style.chart.layout.labels.hollow.average.value.formatter,
|
|
1171
|
-
|
|
1172
|
-
|
|
1174
|
+
Ne.value,
|
|
1175
|
+
u(N)({
|
|
1173
1176
|
p: e.value.style.chart.layout.labels.hollow.average.value.prefix,
|
|
1174
|
-
v:
|
|
1177
|
+
v: Ne.value,
|
|
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
1181
|
)), 13, Oa)) : 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
1184
|
filter: le(a),
|
|
1182
|
-
class:
|
|
1185
|
+
class: Be({ animated: e.value.useCssAnimation }),
|
|
1183
1186
|
key: t.seriesIndex
|
|
1184
1187
|
}, [
|
|
1185
|
-
e.value.style.chart.layout.labels.dataLabels.useLabelSlots ? (
|
|
1186
|
-
(
|
|
1187
|
-
x:
|
|
1188
|
-
y:
|
|
1188
|
+
e.value.style.chart.layout.labels.dataLabels.useLabelSlots ? (n(), r("g", Ya, [
|
|
1189
|
+
(n(), r("foreignObject", {
|
|
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,
|
|
1191
|
+
y: u(fe)(t) - (gt.value ? 20 : 0),
|
|
1189
1192
|
width: "120",
|
|
1190
1193
|
height: "60",
|
|
1191
1194
|
style: { overflow: "visible" }
|
|
1192
1195
|
}, [
|
|
1193
1196
|
h("div", null, [
|
|
1194
|
-
|
|
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
1200
|
isSafari: gt.value,
|
|
1198
1201
|
isVisible: D(t) && f.value.dataLabels.show,
|
|
1199
|
-
textAlign:
|
|
1200
|
-
flexAlign:
|
|
1202
|
+
textAlign: u(x)(t, !0, 16, !0).anchor,
|
|
1203
|
+
flexAlign: u(x)(t, !0, 16).anchor,
|
|
1201
1204
|
percentage: Oe(t, X.value)
|
|
1202
1205
|
}), void 0, !0)
|
|
1203
1206
|
])
|
|
1204
1207
|
], 8, Xa))
|
|
1205
|
-
])) : (
|
|
1206
|
-
e.value.type === "classic" ? (
|
|
1207
|
-
D(t) && f.value.dataLabels.show ? (
|
|
1208
|
+
])) : (n(), r("g", Da, [
|
|
1209
|
+
e.value.type === "classic" ? (n(), r(w, { key: 0 }, [
|
|
1210
|
+
D(t) && f.value.dataLabels.show ? (n(), r("circle", {
|
|
1208
1211
|
key: 0,
|
|
1209
|
-
cx:
|
|
1210
|
-
cy:
|
|
1212
|
+
cx: u(x)(t).x,
|
|
1213
|
+
cy: u(fe)(t) - 3.5,
|
|
1211
1214
|
fill: t.color,
|
|
1212
1215
|
stroke: e.value.style.chart.backgroundColor,
|
|
1213
1216
|
"stroke-width": 1,
|
|
1214
1217
|
r: 3,
|
|
1215
1218
|
filter: !e.value.useBlurOnHover || [null, void 0].includes(Y.value) || Y.value === a ? "" : `url(#blur_${g.value})`,
|
|
1216
1219
|
onClick: (i) => Q(t, a),
|
|
1217
|
-
onMouseenter: (i) =>
|
|
1220
|
+
onMouseenter: (i) => ce({
|
|
1218
1221
|
datapoint: t,
|
|
1219
1222
|
relativeIndex: a,
|
|
1220
1223
|
seriesIndex: t.seriesIndex,
|
|
1221
1224
|
show: !0
|
|
1222
1225
|
}),
|
|
1223
|
-
onMouseleave: (i) =>
|
|
1226
|
+
onMouseleave: (i) => de({ datapoint: t, seriesIndex: t.seriesIndex })
|
|
1224
1227
|
}, null, 40, Ba)) : v("", !0)
|
|
1225
1228
|
], 64)) : v("", !0),
|
|
1226
|
-
e.value.type === "polar" ? (
|
|
1227
|
-
D(t) && f.value.dataLabels.show ? (
|
|
1229
|
+
e.value.type === "polar" ? (n(), r(w, { key: 1 }, [
|
|
1230
|
+
D(t) && f.value.dataLabels.show ? (n(), r("circle", {
|
|
1228
1231
|
key: 0,
|
|
1229
|
-
cx:
|
|
1230
|
-
cy:
|
|
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,
|
|
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,
|
|
1231
1234
|
fill: t.color,
|
|
1232
1235
|
stroke: e.value.style.chart.backgroundColor,
|
|
1233
1236
|
"stroke-width": 1,
|
|
1234
1237
|
r: 3,
|
|
1235
1238
|
filter: !e.value.useBlurOnHover || [null, void 0].includes(Y.value) || Y.value === a ? "" : `url(#blur_${g.value})`,
|
|
1236
1239
|
onClick: (i) => Q(t, a),
|
|
1237
|
-
onMouseenter: (i) =>
|
|
1240
|
+
onMouseenter: (i) => ce({
|
|
1238
1241
|
datapoint: t,
|
|
1239
1242
|
relativeIndex: a,
|
|
1240
1243
|
seriesIndex: t.seriesIndex,
|
|
1241
1244
|
show: !0
|
|
1242
1245
|
}),
|
|
1243
|
-
onMouseleave: (i) =>
|
|
1246
|
+
onMouseleave: (i) => de({ datapoint: t, seriesIndex: t.seriesIndex }),
|
|
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
1250
|
}, null, 44, Va)) : v("", !0)
|
|
1248
1251
|
], 64)) : v("", !0),
|
|
1249
|
-
e.value.type === "classic" ? (
|
|
1252
|
+
e.value.type === "classic" ? (n(), r(w, { key: 2 }, [
|
|
1250
1253
|
Ct(h("text", {
|
|
1251
1254
|
class: "vue-data-ui-datalabel-value",
|
|
1252
|
-
"text-anchor":
|
|
1253
|
-
x:
|
|
1254
|
-
y:
|
|
1255
|
+
"text-anchor": u(x)(t, !0, 12).anchor,
|
|
1256
|
+
x: u(x)(t, !0, 12).x,
|
|
1257
|
+
y: u(fe)(t),
|
|
1255
1258
|
fill: e.value.style.chart.layout.labels.percentage.color,
|
|
1256
1259
|
"font-size": we.value + "px",
|
|
1257
1260
|
style: $(`font-weight:${e.value.style.chart.layout.labels.percentage.bold ? "bold" : ""}`),
|
|
1258
1261
|
onClick: (i) => Q(t, a),
|
|
1259
|
-
onMouseenter: (i) =>
|
|
1262
|
+
onMouseenter: (i) => ce({
|
|
1260
1263
|
datapoint: t,
|
|
1261
1264
|
relativeIndex: a,
|
|
1262
1265
|
seriesIndex: t.seriesIndex,
|
|
1263
1266
|
show: !0
|
|
1264
1267
|
}),
|
|
1265
|
-
onMouseleave: (i) =>
|
|
1266
|
-
}, I(Oe(t, X.value)) + " " + I(e.value.style.chart.layout.labels.value.show ? `(${
|
|
1268
|
+
onMouseleave: (i) => de({ datapoint: t, seriesIndex: t.seriesIndex })
|
|
1269
|
+
}, I(Oe(t, X.value)) + " " + I(e.value.style.chart.layout.labels.value.show ? `(${u(V)(
|
|
1267
1270
|
e.value.style.chart.layout.labels.value.formatter,
|
|
1268
1271
|
t.value,
|
|
1269
|
-
|
|
1272
|
+
u(N)({
|
|
1270
1273
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
1271
1274
|
v: t.value,
|
|
1272
1275
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -1278,32 +1281,32 @@ const Bl = ["id"], Vl = ["xmlns", "viewBox"], El = ["width", "height"], Gl = { k
|
|
|
1278
1281
|
]),
|
|
1279
1282
|
Ct(h("text", {
|
|
1280
1283
|
class: "vue-data-ui-datalabel-name",
|
|
1281
|
-
"text-anchor":
|
|
1282
|
-
x:
|
|
1283
|
-
y:
|
|
1284
|
+
"text-anchor": u(x)(t).anchor,
|
|
1285
|
+
x: u(x)(t, !0, 12).x,
|
|
1286
|
+
y: u(fe)(t) + J.value * 1.2,
|
|
1284
1287
|
fill: e.value.style.chart.layout.labels.name.color,
|
|
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:
|
|
1291
|
+
innerHTML: u(Ft)({
|
|
1289
1292
|
content: t.name,
|
|
1290
1293
|
fontSize: J.value,
|
|
1291
1294
|
fill: e.value.style.chart.layout.labels.name.color,
|
|
1292
|
-
x:
|
|
1293
|
-
y:
|
|
1295
|
+
x: u(x)(t, !0, 12).x,
|
|
1296
|
+
y: u(fe)(t) + J.value
|
|
1294
1297
|
})
|
|
1295
|
-
}, null, 12,
|
|
1298
|
+
}, null, 12, Ra), [
|
|
1296
1299
|
[At, D(t) && f.value.dataLabels.show]
|
|
1297
1300
|
]),
|
|
1298
|
-
o[6] || (o[6] =
|
|
1301
|
+
o[6] || (o[6] = Ee(' @mouseenter="useTooltip({ datapoint: arc, relativeIndex: i, seriesIndex: arc.seriesIndex, show: true })" @mouseleave="handleDatapointLeave({ datapoint: arc, seriesIndex: arc.seriesIndex })" /> '))
|
|
1299
1302
|
], 64)) : v("", !0),
|
|
1300
|
-
e.value.type === "polar" ? (
|
|
1301
|
-
D(t) && f.value.dataLabels.show ? (
|
|
1303
|
+
e.value.type === "polar" ? (n(), r(w, { key: 3 }, [
|
|
1304
|
+
D(t) && f.value.dataLabels.show ? (n(), r("text", {
|
|
1302
1305
|
key: 0,
|
|
1303
1306
|
class: "vue-data-ui-datalabel-value",
|
|
1304
|
-
"text-anchor":
|
|
1305
|
-
x:
|
|
1306
|
-
y:
|
|
1307
|
+
"text-anchor": ve(d.value[a].middlePoint),
|
|
1308
|
+
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
|
+
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,
|
|
1307
1310
|
fill: e.value.style.chart.layout.labels.percentage.color,
|
|
1308
1311
|
"font-size": we.value,
|
|
1309
1312
|
style: $({
|
|
@@ -1311,30 +1314,30 @@ const Bl = ["id"], Vl = ["xmlns", "viewBox"], El = ["width", "height"], Gl = { k
|
|
|
1311
1314
|
fontWeight: e.value.style.chart.layout.labels.percentage.bold ? "bold" : "normal"
|
|
1312
1315
|
}),
|
|
1313
1316
|
onClick: (i) => Q(t, a),
|
|
1314
|
-
onMouseenter: (i) =>
|
|
1317
|
+
onMouseenter: (i) => ce({
|
|
1315
1318
|
datapoint: t,
|
|
1316
1319
|
relativeIndex: a,
|
|
1317
1320
|
seriesIndex: t.seriesIndex,
|
|
1318
1321
|
show: !0
|
|
1319
1322
|
}),
|
|
1320
|
-
onMouseleave: (i) =>
|
|
1321
|
-
}, I(Oe(t, X.value)) + " " + I(e.value.style.chart.layout.labels.value.show ? `(${
|
|
1323
|
+
onMouseleave: (i) => de({ datapoint: t, seriesIndex: t.seriesIndex })
|
|
1324
|
+
}, I(Oe(t, X.value)) + " " + I(e.value.style.chart.layout.labels.value.show ? `(${u(V)(
|
|
1322
1325
|
e.value.style.chart.layout.labels.value.formatter,
|
|
1323
1326
|
t.value,
|
|
1324
|
-
|
|
1327
|
+
u(N)({
|
|
1325
1328
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
1326
1329
|
v: t.value,
|
|
1327
1330
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
1328
1331
|
r: e.value.style.chart.layout.labels.value.rounding
|
|
1329
1332
|
}),
|
|
1330
1333
|
{ datapoint: t }
|
|
1331
|
-
)})` : ""), 45,
|
|
1332
|
-
D(t) && f.value.dataLabels.show ? (
|
|
1334
|
+
)})` : ""), 45, Ga)) : v("", !0),
|
|
1335
|
+
D(t) && f.value.dataLabels.show ? (n(), r("text", {
|
|
1333
1336
|
key: 1,
|
|
1334
1337
|
class: "vue-data-ui-datalabel-name",
|
|
1335
|
-
"text-anchor":
|
|
1336
|
-
x:
|
|
1337
|
-
y:
|
|
1338
|
+
"text-anchor": ve(d.value[a].middlePoint),
|
|
1339
|
+
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
|
+
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,
|
|
1338
1341
|
fill: e.value.style.chart.layout.labels.name.color,
|
|
1339
1342
|
"font-size": J.value,
|
|
1340
1343
|
style: $({
|
|
@@ -1342,35 +1345,35 @@ const Bl = ["id"], Vl = ["xmlns", "viewBox"], El = ["width", "height"], Gl = { 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:
|
|
1348
|
+
innerHTML: u(Ft)({
|
|
1346
1349
|
content: t.name,
|
|
1347
1350
|
fontSize: we.value,
|
|
1348
1351
|
fill: e.value.style.chart.layout.labels.name.color,
|
|
1349
|
-
x:
|
|
1350
|
-
y:
|
|
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,
|
|
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
1355
|
}, null, 12, qa)) : v("", !0),
|
|
1353
|
-
o[7] || (o[7] =
|
|
1356
|
+
o[7] || (o[7] = Ee(' @mouseenter="useTooltip({ datapoint: arc, relativeIndex: i, seriesIndex: arc.seriesIndex, show: true })" @mouseleave="handleDatapointLeave({ datapoint: arc, seriesIndex: arc.seriesIndex })" /> '))
|
|
1354
1357
|
], 64)) : v("", !0)
|
|
1355
1358
|
])),
|
|
1356
|
-
f.value.dataLabels.show && e.value.style.chart.comments.show && t.comment ? (
|
|
1357
|
-
D(t) && e.value.type === "classic" ? (
|
|
1359
|
+
f.value.dataLabels.show && e.value.style.chart.comments.show && t.comment ? (n(), r("g", Wa, [
|
|
1360
|
+
D(t) && e.value.type === "classic" ? (n(), r("foreignObject", {
|
|
1358
1361
|
key: 0,
|
|
1359
|
-
x: e.value.style.chart.comments.offsetX + (
|
|
1360
|
-
y:
|
|
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),
|
|
1363
|
+
y: u(fe)(t) + 24 + e.value.style.chart.comments.offsetY,
|
|
1361
1364
|
width: e.value.style.chart.comments.width,
|
|
1362
1365
|
height: "200",
|
|
1363
1366
|
style: { overflow: "visible", "pointer-events": "none" }
|
|
1364
1367
|
}, [
|
|
1365
1368
|
h("div", null, [
|
|
1366
|
-
|
|
1367
|
-
plot: { ...t, textAlign:
|
|
1369
|
+
b(l.$slots, "plot-comment", {
|
|
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
1373
|
], 8, Ua)) : v("", !0),
|
|
1371
|
-
D(t) && e.value.type === "polar" ? (
|
|
1374
|
+
D(t) && e.value.type === "polar" ? (n(), r("foreignObject", {
|
|
1372
1375
|
key: 1,
|
|
1373
|
-
x: e.value.style.chart.comments.offsetX + (
|
|
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
1377
|
y: el(d.value[a]) + e.value.style.chart.comments.offsetY,
|
|
1375
1378
|
width: e.value.style.chart.comments.width,
|
|
1376
1379
|
height: "200",
|
|
@@ -1381,37 +1384,37 @@ const Bl = ["id"], Vl = ["xmlns", "viewBox"], El = ["width", "height"], Gl = { k
|
|
|
1381
1384
|
})
|
|
1382
1385
|
}, [
|
|
1383
1386
|
h("div", null, [
|
|
1384
|
-
|
|
1385
|
-
plot: { ...t, textAlign:
|
|
1387
|
+
b(l.$slots, "plot-comment", {
|
|
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
1391
|
], 12, Ha)) : v("", !0)
|
|
1389
1392
|
])) : v("", !0)
|
|
1390
1393
|
], 10, Na))), 128)),
|
|
1391
|
-
|
|
1394
|
+
b(l.$slots, "svg", { svg: s.value }, void 0, !0)
|
|
1392
1395
|
], 512)
|
|
1393
1396
|
], 14, Vl)),
|
|
1394
|
-
l.$slots.watermark ? (
|
|
1395
|
-
|
|
1397
|
+
l.$slots.watermark ? (n(), r("div", ja, [
|
|
1398
|
+
b(l.$slots, "watermark", oe(se({ isPrinting: u(st) || u(nt) })), void 0, !0)
|
|
1396
1399
|
])) : v("", !0),
|
|
1397
1400
|
h("div", {
|
|
1398
1401
|
ref_key: "chartLegend",
|
|
1399
|
-
ref:
|
|
1402
|
+
ref: Ue
|
|
1400
1403
|
}, [
|
|
1401
|
-
e.value.style.chart.legend.show ? (
|
|
1402
|
-
key: `legend_${
|
|
1403
|
-
legendSet:
|
|
1404
|
+
e.value.style.chart.legend.show ? (n(), ae(Xl, {
|
|
1405
|
+
key: `legend_${Qe.value}`,
|
|
1406
|
+
legendSet: ht.value,
|
|
1404
1407
|
config: Kt.value,
|
|
1405
|
-
onClickMarker: o[3] || (o[3] = ({ i: t }) =>
|
|
1408
|
+
onClickMarker: o[3] || (o[3] = ({ i: t }) => ct(t))
|
|
1406
1409
|
}, _t({
|
|
1407
1410
|
item: A(({ legend: t, index: a }) => [
|
|
1408
1411
|
h("div", {
|
|
1409
|
-
style: $(`opacity:${
|
|
1412
|
+
style: $(`opacity:${q.value.includes(a) ? 0.5 : 1}`),
|
|
1410
1413
|
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 ?
|
|
1414
|
+
}, 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
1415
|
e.value.style.chart.layout.labels.value.formatter,
|
|
1413
1416
|
t.value,
|
|
1414
|
-
|
|
1417
|
+
u(N)({
|
|
1415
1418
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
1416
1419
|
v: t.value,
|
|
1417
1420
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -1421,10 +1424,10 @@ const Bl = ["id"], Vl = ["xmlns", "viewBox"], El = ["width", "height"], Gl = { k
|
|
|
1421
1424
|
datapoint: t,
|
|
1422
1425
|
index: a
|
|
1423
1426
|
}
|
|
1424
|
-
) : "") + " " + I(e.value.style.chart.legend.showPercentage ?
|
|
1427
|
+
) : "") + " " + 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
1428
|
e.value.style.chart.layout.labels.percentage.formatter,
|
|
1426
1429
|
yt.value(t),
|
|
1427
|
-
|
|
1430
|
+
u(N)({
|
|
1428
1431
|
v: yt.value(t),
|
|
1429
1432
|
s: "%",
|
|
1430
1433
|
r: e.value.style.chart.legend.roundingPercentage
|
|
@@ -1436,7 +1439,7 @@ const Bl = ["id"], Vl = ["xmlns", "viewBox"], El = ["width", "height"], Gl = { k
|
|
|
1436
1439
|
l.$slots.pattern ? {
|
|
1437
1440
|
name: "legend-pattern",
|
|
1438
1441
|
fn: A(({ legend: t, index: a }) => [
|
|
1439
|
-
|
|
1442
|
+
Ve(Nl, {
|
|
1440
1443
|
shape: t.shape,
|
|
1441
1444
|
radius: 30,
|
|
1442
1445
|
stroke: "none",
|
|
@@ -1447,17 +1450,24 @@ const Bl = ["id"], Vl = ["xmlns", "viewBox"], El = ["width", "height"], Gl = { k
|
|
|
1447
1450
|
key: "0"
|
|
1448
1451
|
} : void 0
|
|
1449
1452
|
]), 1032, ["legendSet", "config"])) : v("", !0),
|
|
1450
|
-
|
|
1453
|
+
b(l.$slots, "legend", { legend: ht.value }, void 0, !0)
|
|
1451
1454
|
], 512),
|
|
1452
|
-
l.$slots.source ? (
|
|
1455
|
+
l.$slots.source ? (n(), r("div", {
|
|
1453
1456
|
key: 5,
|
|
1454
1457
|
ref_key: "source",
|
|
1455
|
-
ref:
|
|
1458
|
+
ref: He,
|
|
1456
1459
|
dir: "auto"
|
|
1457
1460
|
}, [
|
|
1458
|
-
|
|
1461
|
+
b(l.$slots, "source", {}, void 0, !0)
|
|
1459
1462
|
], 512)) : v("", !0),
|
|
1460
|
-
|
|
1463
|
+
l.$slots.hollow ? (n(), r("div", Ka, [
|
|
1464
|
+
b(l.$slots, "hollow", oe(se({
|
|
1465
|
+
total: F.value,
|
|
1466
|
+
average: Ne.value,
|
|
1467
|
+
dataset: G.value
|
|
1468
|
+
})), void 0, !0)
|
|
1469
|
+
])) : v("", !0),
|
|
1470
|
+
Ve(u(Dt), {
|
|
1461
1471
|
show: f.value.showTooltip && Le.value,
|
|
1462
1472
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
1463
1473
|
color: e.value.style.chart.tooltip.color,
|
|
@@ -1471,18 +1481,20 @@ const Bl = ["id"], Vl = ["xmlns", "viewBox"], El = ["width", "height"], Gl = { k
|
|
|
1471
1481
|
parent: E.value,
|
|
1472
1482
|
content: Ie.value,
|
|
1473
1483
|
isCustom: pe.value,
|
|
1474
|
-
isFullscreen:
|
|
1484
|
+
isFullscreen: he.value,
|
|
1485
|
+
smooth: e.value.style.chart.tooltip.smooth,
|
|
1486
|
+
backdropFilter: e.value.style.chart.tooltip.backdropFilter
|
|
1475
1487
|
}, {
|
|
1476
1488
|
"tooltip-before": A(() => [
|
|
1477
|
-
|
|
1489
|
+
b(l.$slots, "tooltip-before", oe(se({ ...Ye.value })), void 0, !0)
|
|
1478
1490
|
]),
|
|
1479
1491
|
"tooltip-after": A(() => [
|
|
1480
|
-
|
|
1492
|
+
b(l.$slots, "tooltip-after", oe(se({ ...Ye.value })), void 0, !0)
|
|
1481
1493
|
]),
|
|
1482
1494
|
_: 3
|
|
1483
|
-
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "isFullscreen"]),
|
|
1484
|
-
me.value ? (
|
|
1485
|
-
key:
|
|
1495
|
+
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "isFullscreen", "smooth", "backdropFilter"]),
|
|
1496
|
+
me.value ? (n(), ae(u(Ot), {
|
|
1497
|
+
key: 7,
|
|
1486
1498
|
hideDetails: "",
|
|
1487
1499
|
config: {
|
|
1488
1500
|
open: f.value.showTable,
|
|
@@ -1498,8 +1510,8 @@ const Bl = ["id"], Vl = ["xmlns", "viewBox"], El = ["width", "height"], Gl = { k
|
|
|
1498
1510
|
}
|
|
1499
1511
|
}, {
|
|
1500
1512
|
content: A(() => [
|
|
1501
|
-
(
|
|
1502
|
-
key: `table_${
|
|
1513
|
+
(n(), ae(u(Nt), {
|
|
1514
|
+
key: `table_${Ke.value}`,
|
|
1503
1515
|
colNames: _e.value.colNames,
|
|
1504
1516
|
head: _e.value.head,
|
|
1505
1517
|
body: _e.value.body,
|
|
@@ -1511,21 +1523,21 @@ const Bl = ["id"], Vl = ["xmlns", "viewBox"], El = ["width", "height"], Gl = { k
|
|
|
1511
1523
|
h("div", {
|
|
1512
1524
|
innerHTML: t,
|
|
1513
1525
|
style: { display: "flex", "align-items": "center" }
|
|
1514
|
-
}, null, 8,
|
|
1526
|
+
}, null, 8, Qa)
|
|
1515
1527
|
]),
|
|
1516
1528
|
td: A(({ td: t }) => [
|
|
1517
|
-
|
|
1529
|
+
Ee(I(t.name ? t.name : isNaN(Number(t)) ? t.includes("%") ? t : u(V)(
|
|
1518
1530
|
e.value.style.chart.layout.labels.percentage.formatter,
|
|
1519
1531
|
t,
|
|
1520
|
-
|
|
1532
|
+
u(N)({
|
|
1521
1533
|
v: t,
|
|
1522
1534
|
s: "%",
|
|
1523
1535
|
r: e.value.style.chart.layout.labels.percentage.rounding
|
|
1524
1536
|
})
|
|
1525
|
-
) :
|
|
1537
|
+
) : u(V)(
|
|
1526
1538
|
e.value.style.chart.layout.labels.value.formatter,
|
|
1527
1539
|
t,
|
|
1528
|
-
|
|
1540
|
+
u(N)({
|
|
1529
1541
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
1530
1542
|
v: t,
|
|
1531
1543
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -1538,10 +1550,10 @@ const Bl = ["id"], Vl = ["xmlns", "viewBox"], El = ["width", "height"], Gl = { k
|
|
|
1538
1550
|
]),
|
|
1539
1551
|
_: 1
|
|
1540
1552
|
}, 8, ["config"])) : v("", !0),
|
|
1541
|
-
|
|
1553
|
+
u(ke) ? (n(), ae(Il, { key: 8 })) : v("", !0)
|
|
1542
1554
|
], 46, Bl));
|
|
1543
1555
|
}
|
|
1544
|
-
},
|
|
1556
|
+
}, yo = /* @__PURE__ */ Dl(Za, [["__scopeId", "data-v-3da81d6a"]]);
|
|
1545
1557
|
export {
|
|
1546
|
-
|
|
1558
|
+
yo as default
|
|
1547
1559
|
};
|